EI-Image-Viewer-Api/Start/Resource/EIImageViewerWeb/html/static/js/chunk-62b87436.8c3813c644c8...

49 lines
6.1 MiB
Raw Blame History

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-62b87436","chunk-dbe2aac2","chunk-fac8b8de","chunk-02944f40","chunk-4247bbbd","chunk-c82a08a2","chunk-3ff81158","chunk-3e3283e6","chunk-5946313a","chunk-29c13a80","chunk-c971a4b6","chunk-f6a43c10","chunk-bda7db16","chunk-324672dc","chunk-9ea55b60","chunk-ab1040ea","chunk-56757093","chunk-e201cbfa","chunk-55530d3c","chunk-2d0f012d"],{"0046":function(e,t,i){var n=i("6d8b"),a=n.each,r=n.createHashMap,o=i("4f85"),s=i("3301"),l=o.extend({type:"series.parallel",dependencies:["parallel"],visualColorAccessPath:"lineStyle.color",getInitialData:function(e,t){var i=this.getSource();return c(i,this),s(i,this)},getRawIndicesByActiveState:function(e){var t=this.coordinateSystem,i=this.getData(),n=[];return t.eachActiveState(i,(function(t,a){e===t&&n.push(i.getRawIndex(a))})),n},defaultOption:{zlevel:0,z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"}});function c(e,t){if(!e.encodeDefine){var i=t.ecModel.getComponent("parallel",t.get("parallelIndex"));if(i){var n=e.encodeDefine=r();a(i.dimensions,(function(e){var t=u(e);n.set(e,t)}))}}}function u(e){return+e.replace("dim","")}e.exports=l},"004f":function(e,t,i){var n=i("6d8b"),a=i("72b6"),r=i("2306"),o=i("a15a"),s=o.createSymbol,l=i("f934"),c=i("cbb0"),u=a.extend({type:"visualMap.piecewise",doRender:function(){var e=this.group;e.removeAll();var t=this.visualMapModel,i=t.get("textGap"),a=t.textStyleModel,o=a.getFont(),s=a.getTextColor(),c=this._getItemAlign(),u=t.itemSize,d=this._getViewData(),f=d.endsText,h=n.retrieve(t.get("showLabel",!0),!f);function p(a){var l=a.piece,d=new r.Group;d.onclick=n.bind(this._onItemClick,this,l),this._enableHoverLink(d,a.indexInModelPieceList);var f=t.getRepresentValue(l);if(this._createItemSymbol(d,f,[0,0,u[0],u[1]]),h){var p=this.visualMapModel.getValueState(f);d.add(new r.Text({style:{x:"right"===c?-i:u[0]+i,y:u[1]/2,text:l.text,textVerticalAlign:"middle",textAlign:c,textFont:o,textFill:s,opacity:"outOfRange"===p?.5:1}}))}e.add(d)}f&&this._renderEndsText(e,f[0],u,h,c),n.each(d.viewPieceList,p,this),f&&this._renderEndsText(e,f[1],u,h,c),l.box(t.get("orient"),e,t.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},_enableHoverLink:function(e,t){function i(e){var i=this.visualMapModel;i.option.hoverLink&&this.api.dispatchAction({type:e,batch:c.makeHighDownBatch(i.findTargetDataIndices(t),i)})}e.on("mouseover",n.bind(i,this,"highlight")).on("mouseout",n.bind(i,this,"downplay"))},_getItemAlign:function(){var e=this.visualMapModel,t=e.option;if("vertical"===t.orient)return c.getItemAlign(e,this.api,e.itemSize);var i=t.align;return i&&"auto"!==i||(i="left"),i},_renderEndsText:function(e,t,i,n,a){if(t){var o=new r.Group,s=this.visualMapModel.textStyleModel;o.add(new r.Text({style:{x:n?"right"===a?i[0]:0:i[0]/2,y:i[1]/2,textVerticalAlign:"middle",textAlign:n?a:"center",text:t,textFont:s.getFont(),textFill:s.getTextColor()}})),e.add(o)}},_getViewData:function(){var e=this.visualMapModel,t=n.map(e.getPieceList(),(function(e,t){return{piece:e,indexInModelPieceList:t}})),i=e.get("text"),a=e.get("orient"),r=e.get("inverse");return("horizontal"===a?r:!r)?t.reverse():i&&(i=i.slice().reverse()),{viewPieceList:t,endsText:i}},_createItemSymbol:function(e,t,i){e.add(s(this.getControllerVisual(t,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(t,"color")))},_onItemClick:function(e){var t=this.visualMapModel,i=t.option,a=n.clone(i.selected),r=t.getSelectedMapKey(e);"single"===i.selectedMode?(a[r]=!0,n.each(a,(function(e,t){a[t]=t===r}))):a[r]=!a[r],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:a})}}),d=u;e.exports=d},"0067":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"label-width":"100px"}},[i("el-form-item",{attrs:{label:"问题1",prop:"name"}},[i("el-input",{model:{value:e.ruleForm.name,callback:function(t){e.$set(e.ruleForm,"name",t)},expression:"ruleForm.name"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"问题2",prop:"region"}},[i("el-select",{attrs:{placeholder:"请选择"},model:{value:e.ruleForm.region,callback:function(t){e.$set(e.ruleForm,"region",t)},expression:"ruleForm.region"}},[i("el-option",{attrs:{label:"区域一",value:"shanghai"}}),e._v(" "),i("el-option",{attrs:{label:"区域二",value:"beijing"}})],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"问题3",required:""}},[i("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"选择日期"},model:{value:e.ruleForm.date1,callback:function(t){e.$set(e.ruleForm,"date1",t)},expression:"ruleForm.date1"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"问题4",prop:"delivery"}},[i("el-switch",{model:{value:e.ruleForm.delivery,callback:function(t){e.$set(e.ruleForm,"delivery",t)},expression:"ruleForm.delivery"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitForm("ruleForm")}}},[e._v("保存")]),e._v(" "),i("el-button",{on:{click:function(t){return e.resetForm("ruleForm")}}},[e._v("重置")])],1)],1)},a=[],r={data:function(){return{ruleForm:{name:"",region:"",date1:"",delivery:!1}}},methods:{submitForm:function(e){this.$refs[e].validate((function(e){if(!e)return console.log("error submit!!"),!1;alert("submit!")}))},resetForm:function(e){this.$refs[e].resetFields()}}},o=r,s=i("2877"),l=Object(s["a"])(o,n,a,!1,null,null,null);t["default"]=l.exports},"007d":function(e,t,i){var n=i("3eba");i("cb8f"),i("a96b"),i("42f6"),n.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},(function(){})),n.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},(function(){}))},"00ac":function(e,t,i){"use strict";i("6f59")},"00ba":function(e,t,i){var n=i("3eba"),a=i("6d8b"),r=i("e46b"),o=i("e0d3"),s=o.defaultEmphasis,l=i("0f99"),c=l.makeSeriesEncodeForNameBased,u=i("c4a3"),d=n.extendSeriesModel({type:"series.funnel",init:function(e){d.superApply(this,"init",arguments),this.legendVisualProvider=new u(a.bind(this.getData,this),a.bind(this.getRawData,this)),this._defaultLabelLine(e)},getInitialData:function(e,t){return r(this,{coordDimensions:["value"],encodeDefaulter:a.curry(c,this)})},_defaultLabelLine:function(e){s(e,"labelLine",["show"]);var t=e.labelLine,i=e.emphasis.labelLine;t.show=t.show&&e.label.show,i.show=i.show&&e.emphasis.label.show},getDataParams:function(e){var t=this.getData(),i=d.superCall(this,"getDataParams",e),n=t.mapDimension("value"),a=t.getSum(n);return i.percent=a?+(t.get(n,e)/a*100).toFixed(2):0,i.$vars.push("percent"),i},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1,type:"solid"}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}}}}),f=d;e.exports=f},"00d8":function(e,t,i){var n=i("6d8b");function a(e,t){return t=t||[0,0],n.map([0,1],(function(i){var n=t[i],a=e[i]/2,r=[],o=[];return r[i]=n-a,o[i]=n+a,r[1-i]=o[1-i]=t[1-i],Math.abs(this.dataToPoint(r)[i]-this.dataToPoint(o)[i])}),this)}function r(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(t){return e.dataToPoint(t)},size:n.bind(a,e)}}}e.exports=r},"00fd":function(e,t,i){var n=i("9e69"),a=Object.prototype,r=a.hasOwnProperty,o=a.toString,s=n?n.toStringTag:void 0;function l(e){var t=r.call(e,s),i=e[s];try{e[s]=void 0;var n=!0}catch(l){}var a=o.call(e);return n&&(t?e[s]=i:delete e[s]),a}e.exports=l},"0108":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[e.question.GroupName&&"group"===e.question.Type?i("div",{staticStyle:{"font-weight":"bold","font-size":"16px",margin:"5px 0px"}},[e._v("\n "+e._s(e.question.GroupName)+"\n ")]):[1===e.question.ShowQuestion&&e.questionForm[e.question.ParentId]===e.question.ParentTriggerValue||0===e.question.ShowQuestion?i("el-form-item",{class:["group"===e.question.Type?"mb":"upload"===e.question.Type?"uploadWrapper":""],attrs:{label:""+e.question.QuestionName,prop:e.question.Id,rules:[{required:(0===e.question.IsRequired||1===e.question.IsRequired&&e.question.RelevanceId&&e.questionForm[e.question.RelevanceId]===e.question.RelevanceValue)&&"group"!==e.question.Type&&"summary"!==e.question.Type,message:"请注明",trigger:["blur","change"]}]}},["input"===e.question.Type?i("el-input",{attrs:{disabled:e.readingTaskState>=2},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"textarea"===e.question.Type?i("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},disabled:e.readingTaskState>=2},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"select"===e.question.Type?i("el-select",{attrs:{disabled:e.readingTaskState>=2,clearable:""},on:{change:function(t){e.formItemChange(t,e.question)}},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},e._l(e.question.TypeValue.split("|"),(function(e){return i("el-option",{key:e,attrs:{label:e,value:e}})})),1):e._e(),e._v(" "),"radio"===e.question.Type?i("el-radio-group",{attrs:{disabled:e.readingTaskState>=2},on:{change:function(t){e.formItemChange(t,e.question)}},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},e._l(e.question.TypeValue.split("|"),(function(t){return i("el-radio",{key:t,attrs:{label:t}},[e._v("\n "+e._s(t)+"\n ")])})),1):e._e(),e._v(" "),"checkbox"===e.question.Type?i("el-checkbox-group",{attrs:{disabled:e.readingTaskState>=2},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},e._l(e.question.TypeValue.split("|"),(function(t){return i("el-checkbox",{key:t,attrs:{label:t}},[e._v("\n "+e._s(t)+"\n ")])})),1):e._e(),e._v(" "),"number"===e.question.Type?i("el-input-number",{attrs:{disabled:e.readingTaskState>=2},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"upload"===e.question.Type?i("el-upload",{class:{disabled:e.fileList.length>=e.question.ImageCount},attrs:{action:e.accept,limit:e.question.ImageCount,"on-preview":e.handlePictureCardPreview,"before-upload":e.handleBeforeUpload,"http-request":e.uploadScreenshot,"list-type":"picture-card","on-remove":e.handleRemove,"file-list":e.fileList,disabled:e.readingTaskState>=2},scopedSlots:e._u([{key:"file",fn:function(t){var n=t.file;return i("div",{},[i("img",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:n.url,alt:""}}),e._v(" "),i("span",{staticClass:"el-upload-list__item-actions"},[i("span",{staticClass:"el-upload-list__item-preview",on:{click:function(t){return e.handlePictureCardPreview(n)}}},[i("i",{staticClass:"el-icon-zoom-in"})]),e._v(" "),e.readingTaskState<2?i("span",{staticClass:"el-upload-list__item-delete",on:{click:function(t){return e.handleRemove(n)}}},[i("i",{staticClass:"el-icon-delete"})]):e._e()])])}}],null,!1,3246650725)},[i("i",{staticClass:"el-icon-plus",attrs:{slot:"default"},slot:"default"})]):e._e(),e._v(" "),i("el-dialog",{attrs:{"append-to-body":"",visible:e.imgVisible,width:"600px"},on:{"update:visible":function(t){e.imgVisible=t}}},[i("el-image",{attrs:{src:e.imageUrl,width:"100%"}},[i("div",{staticClass:"image-slot",attrs:{slot:"placeholder"},slot:"placeholder"},[e._v("\n 加载中"),i("span",{staticClass:"dot"},[e._v("...")])])])],1)],1):e._e()],e._v(" "),e._l(e.question.Childrens,(function(t){return i("FormItem",{key:t.Id,attrs:{question:t,"reading-task-state":e.readingTaskState,"question-form":e.questionForm,"visit-task-id":e.visitTaskId},on:{setFormItemData:e.setFormItemData,resetFormItemData:e.resetFormItemData}})}))],2)},a=[],r=(i("20d6"),i("386d"),i("7f7f"),i("ac6a"),i("28a5"),i("c5f6"),i("3e42")),o={name:"FormItem",props:{questionForm:{type:Object,default:function(){return{}}},question:{type:Object,default:function(){return[]}},readingTaskState:{type:Number,required:!0},visitTaskId:{type:String,default:""}},data:function(){return{fileList:[],accept:".png,.jpg,.jpeg",imgVisible:!1,imageUrl:"",urls:[]}},watch:{questionForm:{deep:!0,immediate:!0,handler:function(e){}}},mounted:function(){var e=this;"upload"===this.question.Type&&this.questionForm[this.question.Id]&&(this.urls=this.questionForm[this.question.Id].split("|"),this.fileList=[],this.urls.map((function(t){e.fileList.push({name:"",url:"/api/".concat(t)})})))},methods:{formItemChange:function(e,t){t.Childrens.length>0&&this.resetChild(t.Childrens)},resetChild:function(e){var t=this;e.forEach((function(e){t.$emit("resetFormItemData",e.Id),e.Childrens&&e.Childrens.length>0&&t.resetChild(e.Childrens)}))},resetFormItemData:function(e){this.$emit("resetFormItemData",e)},setFormItemData:function(e){this.$emit("setFormItemData",e)},uploadScreenshot:function(e){var t=this;if(this.visitTaskId){var i=this.$loading({target:document.querySelector(".ecrf-wrapper"),fullscreen:!1,lock:!0,text:"Loading",spinner:"el-icon-loading"}),n=new FormData;n.append("file",e.file),Object(r["Af"])(this.$route.query.trialId,this.visitTaskId,n).then((function(e){e.IsSuccess&&(t.fileList.push({url:"".concat(e.Result.Path)}),t.urls.push(e.Result.Path),t.$emit("setFormItemData",{key:t.question.Id,val:t.urls.length>0?t.urls.join("|"):""})),i.close()})).catch((function(){i.close()}))}},handleBeforeUpload:function(e){return!!this.checkFileSuffix(e.name)||(this.$message.error("必须是 ".concat(this.accept," 格式")),!1)},checkFileSuffix:function(e){var t=e.lastIndexOf("."),i=e.substring(t+1,e.length);return-1!==this.accept.toLocaleLowerCase().search(i.toLocaleLowerCase())},handlePictureCardPreview:function(e){this.imageUrl=e.url,this.imgVisible=!0},handleRemove:function(e,t){this.imageUrl="",this.fileList.splice(this.fileList.findIndex((function(t){return t.url===e.url})),1),this.urls.splice(this.fileList.findIndex((function(t){return t===e.url})),1),this.$emit("setFormItemData",{key:this.question.Id,val:this.urls.length>0?this.urls.join("|"):""})}}},s=o,l=(i("5c90"),i("2877")),c=Object(l["a"])(s,n,a,!1,null,"1ad78524",null);t["default"]=c.exports},"011b":function(e,t,i){e.exports=i.p+"static/img/CRC.74ed00c3.png"},"0141":function(e,t,i){var n=i("6d8b"),a=i("9850"),r=i("6cc5"),o=i("5b87");function s(e,t,i,n){r.call(this,e),this.map=t;var a=o.load(t,i);this._nameCoordMap=a.nameCoordMap,this._regionsMap=a.regionsMap,this._invertLongitute=null==n||n,this.regions=a.regions,this._rect=a.boundingRect}function l(e,t,i,n){var a=i.geoModel,r=i.seriesModel,o=a?a.coordinateSystem:r?r.coordinateSystem||(r.getReferringComponents("geo")[0]||{}).coordinateSystem:null;return o===this?o[e](n):null}s.prototype={constructor:s,type:"geo",dimensions:["lng","lat"],containCoord:function(e){for(var t=this.regions,i=0;i<t.length;i++)if(t[i].contain(e))return!0;return!1},transformTo:function(e,t,i,n){var r=this.getBoundingRect(),o=this._invertLongitute;r=r.clone(),o&&(r.y=-r.y-r.height);var s=this._rawTransformable;if(s.transform=r.calculateTransform(new a(e,t,i,n)),s.decomposeTransform(),o){var l=s.scale;l[1]=-l[1]}s.updateTransform(),this._updateTransform()},getRegion:function(e){return this._regionsMap.get(e)},getRegionByCoord:function(e){for(var t=this.regions,i=0;i<t.length;i++)if(t[i].contain(e))return t[i]},addGeoCoord:function(e,t){this._nameCoordMap.set(e,t)},getGeoCoord:function(e){return this._nameCoordMap.get(e)},getBoundingRect:function(){return this._rect},dataToPoint:function(e,t,i){if("string"===typeof e&&(e=this.getGeoCoord(e)),e)return r.prototype.dataToPoint.call(this,e,t,i)},convertToPixel:n.curry(l,"dataToPoint"),convertFromPixel:n.curry(l,"pointToData")},n.mixin(s,r);var c=s;e.exports=c},"0156":function(e,t,i){var n=i("6d8b");function a(e,t,i){i=i||{};var a=e.coordinateSystem,r=t.axis,o={},s=r.getAxesOnZeroOf()[0],l=r.position,c=s?"onZero":l,u=r.dim,d=a.getRect(),f=[d.x,d.x+d.width,d.y,d.y+d.height],h={left:0,right:1,top:0,bottom:1,onZero:2},p=t.get("offset")||0,m="x"===u?[f[2]-p,f[3]+p]:[f[0]-p,f[1]+p];if(s){var g=s.toGlobalCoord(s.dataToCoord(0));m[h.onZero]=Math.max(Math.min(g,m[1]),m[0])}o.position=["y"===u?m[h[c]]:f[0],"x"===u?m[h[c]]:f[3]],o.rotation=Math.PI/2*("x"===u?0:1);var v={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=v[l],o.labelOffset=s?m[h[l]]-m[h.onZero]:0,t.get("axisTick.inside")&&(o.tickDirection=-o.tickDirection),n.retrieve(i.labelInside,t.get("axisLabel.inside"))&&(o.labelDirection=-o.labelDirection);var b=t.get("axisLabel.rotate");return o.labelRotate="top"===c?-b:b,o.z2=1,o}t.layout=a},"01de9":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("base-model",{attrs:{config:e.dictionary_model}},[i("template",{slot:"dialog-body"},[i("el-form",{ref:"dictionaryForm",staticClass:"demo-ruleForm",attrs:{size:"small",model:e.form,rules:e.rules,"label-width":"90px"}},[i("el-form-item",{attrs:{label:"Type: ",prop:"Type"}},[i("el-input",{attrs:{readonly:""},model:{value:e.form.Type,callback:function(t){e.$set(e.form,"Type",t)},expression:"form.Type"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Key: ",prop:"KeyName"}},[i("el-input",{attrs:{readonly:""},model:{value:e.form.KeyName,callback:function(t){e.$set(e.form,"KeyName",t)},expression:"form.KeyName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Value: ",prop:"Value"}},[i("el-input",{model:{value:e.form.Value,callback:function(t){e.$set(e.form,"Value",t)},expression:"form.Value"}})],1),e._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"Employment"===e.type||"Specialty"===e.type,expression:"type=== 'Employment' || type=== 'Specialty'"}],attrs:{label:"Value CN: ",prop:"ValueCN"}},[i("el-input",{model:{value:e.form.ValueCN,callback:function(t){e.$set(e.form,"ValueCN",t)},expression:"form.ValueCN"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Order: ",prop:"ShowOrder"}},[i("el-input-number",{staticStyle:{width:"100%"},attrs:{min:0},model:{value:e.form.ShowOrder,callback:function(t){e.$set(e.form,"ShowOrder",t)},expression:"form.ShowOrder"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Description: "}},[i("el-input",{attrs:{autosize:{minRows:2,maxRows:4},type:"textarea"},model:{value:e.form.Description,callback:function(t){e.$set(e.form,"Description",t)},expression:"form.Description"}})],1)],1)],1),e._v(" "),i("template",{slot:"dialog-footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){e.dictionary_model.visible=!1}}},[e._v("Cancel")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleSave}},[e._v("Save")])],1)],2)},a=[],r=i("db72"),o=(i("ac6a"),i("456d"),i("e56e")),s=i("3d18"),l=i("7eeb"),c={name:"DictionaryForm",components:{BaseModel:l["default"]},props:{data:{type:Object,default:function(){return{}}},type:{type:String,required:!0},currentKeyName:{type:String,required:!0}},data:function(){return{dictionary_model:s["c"],form:{Type:"",KeyName:"",Value:"",ValueCN:"",ShowOrder:"",Description:""},rules:{Value:[{required:!0,message:"Please specify",trigger:"blur"},{max:50,message:"The maximum length is 50"}],ValueCN:[{max:50,message:"The maximum length is 50"}],ShowOrder:[{required:!0,message:"Please enter number",trigger:"blur"}],KeyName:[{required:!0,message:"Please select",trigger:["blur","change"]}],Type:[{required:!0,message:"Please select",trigger:["blur","change"]}]},btnLoading:!1}},mounted:function(){Object.keys(this.data).length&&this.data.Id?this.form=Object(r["a"])({},this.data):(this.form.KeyName=this.currentKeyName,this.form.Type=this.type)},methods:{handleSave:function(){var e=this;this.$refs.dictionaryForm.validate((function(t){t&&(e.btnLoading=!0,e.dictionary_model.showClose=!1,Object(o["h"])(e.form).then((function(t){e.btnLoading=!1,t.IsSuccess&&(e.$message.success("Saved successfully"),e.$store.dispatch("global/setDictionary",{}),e.$refs["dictionaryForm"].resetFields(),e.$emit("closeDialog"),e.dictionary_model.showClose=!0)})).catch((function(){e.btnLoading=!1,e.dictionary_model.showClose=!0})))}))}}},u=c,d=i("2877"),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},"01ed":function(e,t,i){var n=i("3eba"),a=i("6d8b"),r=i("2306");i("5aa9"),i("af24"),n.extendComponentView({type:"grid",render:function(e,t){this.group.removeAll(),e.get("show")&&this.group.add(new r.Rect({shape:e.coordinateSystem.getRect(),style:a.defaults({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))}}),n.registerPreprocessor((function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})}))},"01ef":function(e,t){function i(e,t,i){var n=e.target,a=n.position;a[0]+=t,a[1]+=i,n.dirty()}function n(e,t,i,n){var a=e.target,r=e.zoomLimit,o=a.position,s=a.scale,l=e.zoom=e.zoom||1;if(l*=t,r){var c=r.min||0,u=r.max||1/0;l=Math.max(Math.min(u,l),c)}var d=l/e.zoom;e.zoom=l,o[0]-=(i-o[0])*(d-1),o[1]-=(n-o[1])*(d-1),s[0]*=d,s[1]*=d,a.dirty()}t.updateViewOnPan=i,t.updateViewOnZoom=n},"0228":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"payment-list"},[i("div",{staticClass:"list-container"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],ref:"paymentList",attrs:{size:"small",stripe:"",data:e.list,height:"99%","show-summary":"","summary-method":e.getSummaries},on:{"sort-change":e.sortByColumn,"selection-change":e.selectMore}},[i("el-table-column",{attrs:{type:"selection"}}),e._v(" "),i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{label:"Name","show-overflow-tooltip":"","min-width":"130",prop:"FirstName",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.LastName)+" / "+e._s(t.row.FirstName))]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ChineseName",sortable:"custom",label:"Name CN","min-width":"120","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ReviewerCode",sortable:"custom",label:"Reviewer ID","min-width":"120","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"TotalUSD",label:"Total($)","min-width":"120","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.TotalUSD)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TotalCNY",label:"Total(¥)","min-width":"120","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.row.TotalCNY))])]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"Action","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{size:"small",type:"text"},on:{click:function(i){return e.handDetail(t.row)}}},[e._v("Detail")])]}}])})],1)],1),e._v(" "),i("div",{staticClass:"pagination"},[i("pagination",{attrs:{total:e.total,page:e.listQuery.PageIndex,limit:e.listQuery.PageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"PageIndex",t)},"update:limit":function(t){return e.$set(e.listQuery,"PageSize",t)},pagination:e.getList}})],1)])},a=[],r=(i("ac6a"),i("c5f6"),i("333d")),o=i("0340"),s=i("6b95"),l=i("3339"),c={components:{Pagination:r["default"]},filters:{rounding:function(e){return e?Number(e).toFixed(2):e}},props:{param:{type:Object,default:function(){return{}}}},data:function(){return{list:[],listQuery:{PageIndex:1,PageSize:20},listLoading:!1,total:0,arrID:[]}},watch:{param:{handler:function(e,t){this.listQuery.PageIndex=e.PageIndex,this.listQuery.Reviewer=e.Reviewer,this.listQuery.BeginMonth=e.BeginMonth,this.listQuery.EndMonth=e.EndMonth,this.listQuery.Nation=e.Nation},deep:!0}},mounted:function(){this.listQuery.Reviewer=this.param.Reviewer,this.listQuery.BeginMonth=this.param.BeginMonth,this.listQuery.EndMonth=this.param.EndMonth,this.listQuery.Nation=this.param.Nation,this.getList()},methods:{getList:function(){var e=this;this.listLoading=!0,Object(s["t"])(this.listQuery).then((function(t){e.listLoading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.listLoading=!1}))},handDetail:function(e){this.$router.push({name:"PaymentHistoryDetail",query:{name:e.LastName+" "+e.FirstName,beginMonth:this.listQuery.BeginMonth,endMonth:this.listQuery.EndMonth,reviewerId:e.ReviewerId}})},resetList:function(){this.listQuery.PageIndex=1,this.getList()},selectMore:function(e){for(var t=[],i=0;i<e.length;i++)t.push(e[i].ReviewerId);this.arrID=t,this.arrID.length>0?this.$emit("selectMore",!1):this.$emit("selectMore",!0)},getSummaries:function(e){var t=e.columns,i=e.data,n=[];return t.forEach((function(e,t){if(2!==t){if("TotalUSD"===e.property){var a=i.map((function(t){return Number(t[e.property])}));a.every((function(e){return isNaN(e)}))||(n[t]=a.reduce((function(e,t){var i=Number(t);return isNaN(i)?e:l["a"].add(e,t)}),0))}if("TotalCNY"===e.property){var r=i.map((function(t){return Number(t[e.property])}));r.every((function(e){return isNaN(e)}))||(n[t]=r.reduce((function(e,t){var i=Number(t);return isNaN(i)?e:l["a"].add(e,t)}),0))}}else n[t]="Total (Current Page)"})),n},sortByColumn:function(e){"ascending"===e.order?this.listQuery.Asc=!0:this.listQuery.Asc=!1,this.listQuery.SortField=e.prop,this.listQuery.PageIndex=1,this.getList()},export:function(){var e=this,t="".concat(this.listQuery.BeginMonth,"--").concat(this.listQuery.EndMonth),i=[{key:"Index",width:5},{key:"LastName",width:15},{key:"FirstName",width:15},{key:"ChineseName",width:15},{key:"ReviewerCode",width:20},{key:"TotalUSD",width:15},{key:"TotalCNY",width:15}],n="Type:Payment Beginning Month:".concat(this.listQuery.BeginMonth," End Month:").concat(this.listQuery.EndMonth),a=["","Surname","Given Name","Name CN","Reviewer ID","Total($)","Total(¥)"],r=[{colIndex:6,format:"#,##0.00"},{colIndex:7,format:"#,##0.00"}],s=0,l=0,c=this.list.filter((function(t){return e.arrID.indexOf(t.ReviewerId)>-1})),u=1;c.forEach((function(e){s+=e.TotalCNY,l+=e.TotalUSD,e.Index=u++}));var d=["","Total","","","",l,s];Object(o["a"])(t,i,"Payment History",n,a,c,d,r)}}},u=c,d=(i("63a2"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,"2bdf6672",null);t["default"]=f.exports},"027d":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"question-form-wrapper"},[i("div",{staticClass:"header-wrapper"},[i("h2",{staticStyle:{"text-align":"center"}},[e._v("\n "+e._s(e.$t("trials:researchForm:title:question"))+"\n ")]),e._v(" "),i("div",{staticStyle:{"text-align":"right"}},[0===e.state&&0===e.userTypeEnumInt?i("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.handleSubmit}},[e._v("\n "+e._s(e.$t("trials:researchForm:button:submit"))+"\n ")]):e._e(),e._v(" "),1===e.state&&e.hasPermi(["role:spm","role:cpm"])?i("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.handleSubmit}},[e._v("\n "+e._s(e.$t("trials:researchForm:button:auditPasses"))+"\n ")]):e._e(),e._v(" "),2===e.state&&e.hasPermi(["role:pm","role:apm"])?i("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.generateAccount}},[e._v("\n "+e._s(e.$t("trials:researchForm:button:auditPasses"))+"\n ")]):e._e(),e._v(" "),1===e.state&&e.hasPermi(["role:spm","role:cpm"])||2===e.state&&e.hasPermi(["role:pm","role:apm"])?i("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.handleReject}},[e._v("\n "+e._s(e.$t("trials:researchForm:button:auditRejected"))+"\n ")]):e._e(),e._v(" "),0===e.userTypeEnumInt?i("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.handleBack}},[e._v("\n "+e._s(e.$t("trials:researchForm:button:loginOut"))+"\n ")]):e._e()],1)]),e._v(" "),i("div",{staticClass:"center-wrapper"},[i("el-card",{attrs:{shadow:"hover"}},[i("BaseInfo",{ref:"baseResearchInfo"})],1),e._v(" "),i("el-card",{staticClass:"mt10",attrs:{shadow:"hover"}},[i("h4",[e._v(e._s(e.$t("trials:staffResearch:title:staff")))]),e._v(" "),i("ParticipantList",{ref:"researchParticipants",on:{refreshPage:e.refreshPage,getList:e.initPage}})],1),e._v(" "),i("el-card",{staticClass:"mt10",attrs:{shadow:"hover"}},[i("h4",[e._v(e._s(e.$t("trials:equiptResearch:title:equiptResearch")))]),e._v(" "),i("EquipmentList",{ref:"researchEquipments"})],1),e._v(" "),i("el-card",{staticClass:"mt10",attrs:{shadow:"hover"}},[i("h4",[e._v(e._s(e.$t("trials:equiptResearch:form:precautions")))]),e._v(" "),i("ol",[i("li",[e._v(e._s(e.$t("trials:equiptResearch:form:item1")))]),e._v(" "),i("li",[e._v(e._s(e.$t("trials:equiptResearch:form:item2")))]),e._v(" "),i("li",[e._v(e._s(e.$t("trials:equiptResearch:form:item3")))]),e._v(" "),i("li",[e._v(e._s(e.$t("trials:equiptResearch:form:item4")))])])])],1),e._v(" "),e.rejectVisible?i("el-dialog",{attrs:{visible:e.rejectVisible,"close-on-click-modal":!1,title:e.$t("trials:researchForm:dialogTitle:reject"),width:"600px","custom-class":"base-dialog-wrapper","append-to-body":0!==e.userTypeEnumInt},on:{"update:visible":function(t){e.rejectVisible=t}}},[i("el-form",{ref:"rejectForm",attrs:{model:e.rejectForm,"label-width":"100px"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:e.$t("trials:researchForm:form:rejectReson"),prop:"reason",rules:[{required:!0,message:e.$t("trials:researchForm:formRule:specify")}]}},[i("el-input",{staticStyle:{width:"100%"},attrs:{type:"textarea",autosize:{minRows:2,maxRows:4}},model:{value:e.rejectForm.reason,callback:function(t){e.$set(e.rejectForm,"reason",t)},expression:"rejectForm.reason"}})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{size:"small",type:"primary",disabled:e.btnLoading},on:{click:function(t){e.rejectVisible=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.reject}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])],1):e._e()],1)},a=[],r=i("896b"),o=i("cd95"),s=i("6bdc"),l=i("b853"),c=i("a599"),u={name:"QuestionForm",components:{BaseInfo:o["default"],ParticipantList:s["default"],EquipmentList:l["default"]},data:function(){return{trialId:this.$route.query.trialId,trialSiteSurveyId:"",loading:!1,state:null,userTypeEnumInt:0,isExistIncorrect:!1,rejectVisible:!1,rejectForm:{reason:""},btnLoading:!1}},mounted:function(){this.trialSiteSurveyId=Object(c["b"])("trialSiteSurveyId"),this.initPage(),zzSessionStorage.getItem("userTypeEnumInt")&&(this.userTypeEnumInt=1*zzSessionStorage.getItem("userTypeEnumInt"))},methods:{initPage:function(){var e=this;this.loading=!0,Object(r["f"])(this.trialId,this.trialSiteSurveyId).then((function(t){t.Result&&(e.state=t.Result.TrialSiteSurvey.State,e.$refs["baseResearchInfo"].initForm(t.Result.TrialInfo,t.Result.TrialSiteSurvey),e.$refs["researchParticipants"].initList(t.Result.TrialSiteUserSurveyList,t.Result.TrialSiteSurvey),e.$refs["researchEquipments"].initList(t.Result.TrialSiteEquipmentSurveyList,t.Result.TrialSiteSurvey),e.isExistIncorrect=t.Result.TrialSiteUserSurveyList.every((function(e){return!1===e.IsCorrect}))),e.loading=!1})).catch((function(){e.loading=!1}))},handleSubmit:function(){var e=this;if(0===this.userTypeEnumInt){if(0===this.$refs["researchParticipants"].list.length&&0===this.$refs["researchEquipments"].list.length)return void this.$message.error(this.$t("trials:researchForm:message:saveWarning"));this.loading=!0,this.$refs["baseResearchInfo"].handleSave(!0).then((function(t){e.loading=!1,t&&e.submit()})).catch((function(){e.loading=!1}))}else this.submit()},submit:function(){var e=this;this.$confirm(this.$t("trials:researchForm:message:submitWarning"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){e.loading=!0;var t={TrialId:e.trialId,TrialSiteSurveyId:e.trialSiteSurveyId};Object(r["m"])(t).then((function(t){e.loading=!1,t.IsSuccess&&(e.initPage(),0!==e.userTypeEnumInt&&e.$emit("refreshPage"),e.$message.success(e.$t("common:message:savedSuccessfully")))})).catch((function(){e.loading=!1}))})).catch((function(){}))},generateAccount:function(){var e=this;this.$confirm(this.$t("trials:researchForm:message:auditWarning"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){e.loading=!0;var t={TrialId:e.trialId,TrialSiteSurveyId:e.trialSiteSurveyId,LoginUrl:"".concat(location.protocol,"//").concat(location.host,"/login"),BaseUrl:"".concat(location.protocol,"//").concat(location.host,"/login"),RouteUrl:"".concat(location.protocol,"//").concat(location.host,"/email-recompose")};Object(r["m"])(t).then((function(t){e.loading=!1,t.IsSuccess&&(e.initPage(),e.$emit("refreshPage"),e.$message.success(e.$t("common:message:savedSuccessfully")))})).catch((function(){e.loading=!1}))})).catch((function(){}))},handleReject:function(){this.rejectForm.reason="",this.rejectVisible=!0},reject:function(){var e=this;this.$refs["rejectForm"].validate((function(t){if(t){e.btnLoading=!0;var i={trialId:e.trialId,trialSiteSurveyId:e.trialSiteSurveyId,latestBackReason:e.rejectForm.reason,routeUrl:"".concat(location.protocol,"//").concat(location.host,"/researchLogin?trialId=").concat(e.trialId)};Object(r["l"])(i).then((function(t){e.btnLoading=!1,t.IsSuccess&&(e.rejectVisible=!1,e.initPage(),e.$emit("refreshPage"),e.$message.success(e.$t("common:message:savedSuccessfully")))})).catch((function(){e.btnLoading=!1}))}}))},refreshPage:function(){this.$emit("refreshPage")},handleBack:function(){this.$router.push({path:"/researchLogin?trialId=".concat(this.trialId)})}}},d=u,f=(i("ca4e"),i("2877")),h=Object(f["a"])(d,n,a,!1,null,"388c5db9",null);t["default"]=h.exports},"0280":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"upload-dicom-files-wrapper"},[i("div",{staticClass:"functions",staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{disabled:0===e.deleteArr.length,type:"primary",size:"small",icon:"el-icon-delete"},on:{click:e.handleBatchDelete}},[e._v("\n "+e._s(e.$t("trials:uploadedDicoms:action:delete"))+"\n ")])],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.studyLoading,expression:"studyLoading"}],staticStyle:{width:"100%"},attrs:{data:e.studyList,"row-class-name":e.tableRowClassName,"max-height":"250"},on:{"selection-change":e.handleUploadedSelectionChange}},[i("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),i("el-table-column",{attrs:{prop:"StudyCode",label:e.$t("trials:uploadedDicoms:table:studyId"),"min-width":"80","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ModalityForEdit",label:e.$t("trials:audit:table:modality")}}),e._v(" "),i("el-table-column",{attrs:{prop:"Modalities",label:e.$t("trials:audit:table:modality1")}}),e._v(" "),i("el-table-column",{attrs:{prop:"BodyPartForEdit",label:e.$t("trials:uploadedDicoms:table:bodyPart"),"min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"SeriesCount",label:e.$t("trials:uploadedDicoms:table:seriesCount"),"min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"InstanceCount",label:e.$t("trials:uploadedDicoms:table:instanceCount"),"min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"StudyTime",label:e.$t("trials:uploadedDicoms:table:studyDate"),"min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.StudyTime?e.moment(t.row.StudyTime).format("YYYY-MM-DD"):"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"UploadedTime",label:e.$t("trials:uploadedDicoms:table:uploadedTime"),"min-width":"80","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action"),"min-width":"100",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:crc-upload:upload"],expression:"['trials:trials-panel:visit:crc-upload:upload']"}],attrs:{icon:"el-icon-edit-outline",title:e.$t("common:button:edit"),circle:"",disabled:t.row.IsDeleted},on:{click:function(i){return e.handleEditStudy(t.row)}}}),e._v(" "),i("el-button",{attrs:{icon:"el-icon-delete",disabled:t.row.IsDeleted,title:e.$t("trials:uploadedDicoms:action:delete"),circle:""},on:{click:function(i){return e.handleDeleteStudy(t.row)}}})]}}])})],1),e._v(" "),i("form",{ref:"uploadForm",attrs:{id:"inputForm",enctype:"multipart/form-data"}},[i("el-divider",{attrs:{"content-position":"left"}},[e._v(e._s(e.$t("trials:uploadedDicoms:title:dicomFilesOnly")))]),e._v(" "),i("div",{staticClass:"form-group"},[i("div",{staticClass:"btn btn-link file-input",attrs:{id:"directoryInputWrapper"}},[i("el-button",{attrs:{type:"primary",size:"small"}},[e._v(e._s(e.$t("trials:uploadedDicomsicom:button:selectFolder")))]),e._v(" "),i("input",{attrs:{type:"file",name:"file",webkitdirectory:"",multiple:""},on:{change:function(t){return e.beginScanFiles(t)}}})],1)])],1),e._v(" "),i("el-table",{ref:"dicomFilesTable",staticClass:"dicomFiles-table",attrs:{data:e.uploadQueues},on:{"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",width:"55",selectable:e.handleSelectable}}),e._v(" "),i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{"min-width":"200","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",{staticStyle:{"line-height":"15px"}},[i("div",[i("div",[t.row.dicomInfo.accNumber?i("span",[i("span",{staticStyle:{"font-weight":"500"}},[e._v("Acc:")]),e._v(" "+e._s(t.row.dicomInfo.accNumber))]):i("span",{staticStyle:{color:"#f44336"}},[e._v("N/A")])]),e._v(" "),i("div",{staticStyle:{display:"inline-block","margin-right":"2px"}},[t.row.dicomInfo.modality.length>0?i("span",[e._v(" "+e._s(t.row.dicomInfo.modality.join("、"))+",")]):i("span",{staticStyle:{color:"#f44336"}},[e._v("N/A,")])]),e._v(" "),i("div",{staticStyle:{display:"inline-block","margin-right":"2px"}},[t.row.seriesList.length?i("span",[e._v(e._s(t.row.seriesList.length)+" Series,")]):i("span",{staticStyle:{color:"#f44336"}},[e._v("N/A,")])]),e._v(" "),i("div",{staticStyle:{display:"inline-block"}},[t.row.fileList.length?i("span",[e._v(e._s(t.row.fileList.length)+" Instances")]):i("span",{staticStyle:{color:"#f44336"}},[e._v("N/A")])])]),e._v(" "),i("div",[i("div",{staticStyle:{display:"inline-block","margin-right":"2px"}},[t.row.dicomInfo.bodyPart?i("span",[e._v("\n "+e._s(t.row.dicomInfo.bodyPart)+",\n ")]):i("span",{staticStyle:{color:"#f44336"}},[e._v("N/A, ")])]),e._v(" "),i("div",{staticStyle:{display:"inline-block"}},[t.row.dicomInfo.description?i("span",[e._v("\n "+e._s(t.row.dicomInfo.description))]):i("span",{staticStyle:{color:"#f44336"}},[e._v("N/A")])])]),e._v(" "),i("div",[e._v("\n "+e._s(t.row.dicomInfo.studyTime)+"\n ")])])]}}])},[i("template",{slot:"header"},[i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n "+e._s(e.$t("trials:uploadDicomList:table:studyDetail1"))),i("br"),e._v("\n "+e._s(e.$t("trials:uploadDicomList:table:studyDetail2"))),i("br"),e._v("\n "+e._s(e.$t("trials:uploadedDicoms:table:studyDate"))+"\n ")]),e._v(" "),i("span",[e._v(e._s(e.$t("trials:uploadDicomList:table:studyInfo")))])])],1)],2),e._v(" "),i("el-table-column",{attrs:{"min-width":"130","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",{staticStyle:{"line-height":"15px"}},[i("div",[t.row.dicomInfo.patientId?i("span",[i("span",{staticStyle:{"font-weight":"500"}},[e._v("PID: ")]),e._v(e._s(t.row.dicomInfo.patientId))]):i("span",{staticStyle:{color:"#f44336"}},[e._v("N/A")])]),e._v(" "),i("div",[i("span",{class:[t.row.dicomInfo.patientName?"":"colorOfRed"]},[e._v("\n "+e._s(t.row.dicomInfo.patientName?t.row.dicomInfo.patientName:"N/A")+"\n ")])]),e._v(" "),i("div",[i("span",{class:[t.row.dicomInfo.patientSex?"":"colorOfRed"]},[e._v("\n "+e._s(t.row.dicomInfo.patientSex?t.row.dicomInfo.patientSex:"N/A")+",\n ")]),e._v(" "),i("span",{class:[t.row.dicomInfo.patientAge?"":"colorOfRed"]},[e._v("\n "+e._s(t.row.dicomInfo.patientAge?t.row.dicomInfo.patientAge:"N/A")+",\n ")]),e._v(" "),i("span",{class:[t.row.dicomInfo.patientBirthDate?"":"colorOfRed"]},[e._v("\n "+e._s(t.row.dicomInfo.patientBirthDate?t.row.dicomInfo.patientBirthDate:"N/A")+"\n ")])])])]}}])},[i("template",{slot:"header"},[i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n "+e._s(e.$t("trials:uploadDicomList:table:pId"))),i("br"),e._v("\n "+e._s(e.$t("trials:uploadDicomList:table:patientName"))),i("br"),e._v("\n "+e._s(e.$t("trials:uploadDicomList:table:pInfo"))+"\n ")]),e._v(" "),i("span",[e._v(e._s(e.$t("trials:uploadDicomList:table:patientInfo")))])])],1)],2),e._v(" "),i("el-table-column",{attrs:{label:e.$t("trials:uploadDicomList:table:status"),"min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-progress",{directives:[{name:"show",rawName:"v-show",value:t.row.uploadState.stateText,expression:"scope.row.uploadState.stateText"}],attrs:{percentage:t.row.uploadState.progressValue}}),e._v(" "),i("el-progress",{directives:[{name:"show",rawName:"v-show",value:t.row.uploadState.stateText,expression:"scope.row.uploadState.stateText"}],attrs:{color:"#409eff",format:e.format(t.row.uploadState.UpdataValue),percentage:t.row.uploadState.UpdataValue}}),e._v(" "),"Uploading not allowed"===t.row.uploadState.stateCode?i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:t.row.uploadState.errorMessage,placement:"bottom"}},[i("span",[e._v(e._s(t.row.uploadState.stateText))])]):i("span",[e._v(e._s(t.row.uploadState.stateText))])]}}])}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("trials:uploadDicomList:table:stats"),"min-width":"140","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",{staticStyle:{display:"flex","justify-content":"flex-start","align-items":"center"}},[t.row.uploadState.totalCount?i("div",{staticStyle:{"text-align":"center"}},[e._v("\n "+e._s(t.row.uploadState.totalCount+" / "+t.row.uploadState.successCount+" / "+t.row.uploadState.failedCount)+"\n ")]):e._e(),e._v(" "),t.row.uploadState.failedCount>0?i("div",[i("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(i){return e.exportFailedFiles(t.row.uploadState.ErrorFiles)}}},[e._v("\n "+e._s(e.$t("trials:uploadDicomList:button:exportFailed"))+"\n ")])],1):e._e()])]}}])}),e._v(" "),i("el-table-column",{directives:[{name:"show",rawName:"v-show",value:e.isScan,expression:"isScan"}],attrs:{label:e.$t("common:action:action"),width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{icon:"el-icon-delete",circle:"",title:e.$t("trials:uploadedDicoms:action:delete"),size:"small",disabled:""!==t.row.uploadState.stateCode},on:{click:function(i){return e.handleDelete(t.$index,t.row)}}})]}}])})],1),e._v(" "),i("div",{staticStyle:{"text-align":"right",padding:"10px 0px"}},[i("el-button",{attrs:{size:"small",type:"primary",disabled:0==e.selectArr.length||!e.isScan,loading:e.btnLoading||e.uploadCount!==e.uploadedCount},on:{click:e.beginUploadQueues}},[e._v("\n "+e._s(e.$t("trials:uploadDicomList:button:upload"))+"\n ")])],1),e._v(" "),e.previewVisible?i("el-dialog",{attrs:{fullscreen:!0,"show-close":!0,visible:e.previewVisible,"append-to-body":""},on:{"update:visible":function(t){e.previewVisible=t}}},[i("DicomPreview",{attrs:{uid:e.uid}})],1):e._e(),e._v(" "),e.warning_cfg.visible?i("el-dialog",{attrs:{visible:e.warning_cfg.visible,width:"500px","close-on-click-modal":!1,"append-to-body":"",title:"Warning","custom-class":"warning-dialog"},on:{"update:visible":function(t){return e.$set(e.warning_cfg,"visible",t)}}},[i("div",{staticStyle:{border:"1px solid #e0e0e0",padding:"10px"}},[i("div",{staticStyle:{color:"red","font-size":"14px","margin-bottom":"10px"}},[e._v("\n "+e._s(e.$t("trials:uploadDicomList:message:informationConsistent"))+":\n ")]),e._v(" "),e._l(e.warningArr,(function(t,n){return i("div",{key:t.index},[i("div",[e._v(e._s("("+(n+1)+"). ACC: "+t.accNumber))]),e._v(" "),e._l(t.warnings,(function(t,n){return i("div",{key:n,staticStyle:{margin:"10px 0px","font-size":"13px"}},[i("ul",[i("li",[e._v(e._s(t))])])])}))],2)}))],2),e._v(" "),i("div",{staticClass:"base-modal-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleCancelWarnVisible}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleContinueUpload}},[e._v("\n "+e._s(e.$t("trials:uploadDicomList:button:upload"))+"\n ")])],1)]):e._e(),e._v(" "),e.editStudyInfoVisible?i("el-dialog",{attrs:{title:e.$t("trials:audit:action:edit"),visible:e.editStudyInfoVisible,"close-on-click-modal":!1,"append-to-body":"","custom-class":"base-dialog-wrapper",width:"600px"},on:{"update:visible":function(t){e.editStudyInfoVisible=t}}},[i("div",{staticStyle:{padding:"10px",border:"1px solid #e0e0e0","max-height":"650px","overflow-y":"auto"}},[i("el-form",{ref:"studyForm",attrs:{model:e.studyForm,"label-width":"100px"}},[i("el-form-item",{attrs:{label:e.$t("trials:audit:table:studyId")}},[i("el-input",{attrs:{disabled:""},model:{value:e.studyForm.StudyCode,callback:function(t){e.$set(e.studyForm,"StudyCode",t)},expression:"studyForm.StudyCode"}})],1),e._v(" "),e.studyForm.IsDicomData?i("el-form-item",{attrs:{label:e.$t("trials:audit:table:modality")}},[i("el-input",{attrs:{disabled:""},model:{value:e.studyForm.Modalities,callback:function(t){e.$set(e.studyForm,"Modalities",t)},expression:"studyForm.Modalities"}})],1):i("el-form-item",{attrs:{label:e.$t("trials:audit:table:modality"),prop:"Modalities",rules:[{required:!0,message:e.$t("common:ruleMessage:specify"),trigger:"blur"}]}},[i("el-radio-group",{model:{value:e.studyForm.Modality,callback:function(t){e.$set(e.studyForm,"Modality",t)},expression:"studyForm.Modality"}},e._l(e.trialModalitys,(function(e){return i("el-radio",{directives:[{name:"show",rawName:"v-show",value:""!==e,expression:"m !== ''"}],key:e,staticStyle:{"margin-bottom":"15px"},attrs:{label:e}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:audit:table:bodyPart"),prop:"BodyPartForEdit",rules:[{required:!0,message:e.$t("common:ruleMessage:specify"),trigger:"blur"}]}},[i("el-checkbox-group",{model:{value:e.studyForm.BodyPartForEdit,callback:function(t){e.$set(e.studyForm,"BodyPartForEdit",t)},expression:"studyForm.BodyPartForEdit"}},e._l(e.trialBodyPartTypes,(function(e){return i("el-checkbox",{key:e,attrs:{label:e}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:audit:table:seriesCount")}},[i("el-input",{attrs:{disabled:""},model:{value:e.studyForm.SeriesCount,callback:function(t){e.$set(e.studyForm,"SeriesCount",t)},expression:"studyForm.SeriesCount"}})],1),e._v(" "),e.studyForm.InstanceCount?i("el-form-item",{attrs:{label:e.$t("trials:audit:table:instanceCount")}},[i("el-input",{attrs:{disabled:""},model:{value:e.studyForm.InstanceCount,callback:function(t){e.$set(e.studyForm,"InstanceCount",t)},expression:"studyForm.InstanceCount"}})],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:audit:table:studyDate")}},[i("el-date-picker",{staticStyle:{width:"100%"},attrs:{disabled:"",type:"date","value-format":"yyyy-MM-dd",format:"yyyy-MM-dd"},model:{value:e.studyForm.StudyTime,callback:function(t){e.$set(e.studyForm,"StudyTime",t)},expression:"studyForm.StudyTime"}})],1)],1)],1),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){e.editStudyInfoVisible=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{loading:e.btnLoading,size:"small",type:"primary"},on:{click:e.handleUpdateStudyInfo}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)]):e._e()],1)},a=[],r=(i("55dd"),i("7618")),o=(i("5df3"),i("20d6"),i("7514"),i("34ef"),i("75fc")),s=(i("28a5"),i("db72")),l=(i("ac6a"),i("456d"),i("3e42")),c=i("4360"),u=i("acd4");const d=[0,2e3,1e4,3e4,null];class f{constructor(e){this._retryDelays=void 0!==e?[...e,null]:d}nextRetryDelayInMilliseconds(e){return this._retryDelays[e.previousRetryCount]}}class h extends Error{constructor(e,t){const i=new.target.prototype;super(`${e}: Status code '${t}'`),this.statusCode=t,this.__proto__=i}}class p extends Error{constructor(e="A timeout occurred."){const t=new.target.prototype;super(e),this.__proto__=t}}class m extends Error{constructor(e="An abort occurred."){const t=new.target.prototype;super(e),this.__proto__=t}}class g extends Error{constructor(e,t){const i=new.target.prototype;super(e),this.transport=t,this.errorType="UnsupportedTransportError",this.__proto__=i}}class v extends Error{constructor(e,t){const i=new.target.prototype;super(e),this.transport=t,this.errorType="DisabledTransportError",this.__proto__=i}}class b extends Error{constructor(e,t){const i=new.target.prototype;super(e),this.transport=t,this.errorType="FailedToStartTransportError",this.__proto__=i}}class y extends Error{constructor(e){const t=new.target.prototype;super(e),this.errorType="FailedToNegotiateWithServerError",this.__proto__=t}}class w extends Error{constructor(e,t){const i=new.target.prototype;super(e),this.innerErrors=t,this.__proto__=i}}class _{constructor(e,t,i){this.statusCode=e,this.statusText=t,this.content=i}}class I{get(e,t){return this.send({...t,method:"GET",url:e})}post(e,t){return this.send({...t,method:"POST",url:e})}delete(e,t){return this.send({...t,method:"DELETE",url:e})}getCookieString(e){return""}}var x,S,T=i("33e1"),C=i("7ed1");class k extends I{constructor(e){if(super(),this._logger=e,"undefined"===typeof fetch){const e=require;this._jar=new(e("tough-cookie").CookieJar),this._fetchType=e("node-fetch"),this._fetchType=e("fetch-cookie")(this._fetchType,this._jar)}else this._fetchType=fetch.bind(Object(C["h"])());if("undefined"===typeof AbortController){const e=require;this._abortControllerType=e("abort-controller")}else this._abortControllerType=AbortController}async send(e){if(e.abortSignal&&e.abortSignal.aborted)throw new m;if(!e.method)throw new Error("No method defined.");if(!e.url)throw new Error("No url defined.");const t=new this._abortControllerType;let i;e.abortSignal&&(e.abortSignal.onabort=()=>{t.abort(),i=new m});let n,a=null;if(e.timeout){const n=e.timeout;a=setTimeout(()=>{t.abort(),this._logger.log(T["a"].Warning,"Timeout from HTTP request."),i=new p},n)}try{n=await this._fetchType(e.url,{body:e.content,cache:"no-cache",credentials:!0===e.withCredentials?"include":"same-origin",headers:{"Content-Type":"text/plain;charset=UTF-8","X-Requested-With":"XMLHttpRequest",...e.headers},method:e.method,mode:"cors",redirect:"follow",signal:t.signal})}catch(s){if(i)throw i;throw this._logger.log(T["a"].Warning,`Error from HTTP request. ${s}.`),s}finally{a&&clearTimeout(a),e.abortSignal&&(e.abortSignal.onabort=null)}if(!n.ok){const e=await R(n,"text");throw new h(e||n.statusText,n.status)}const r=R(n,e.responseType),o=await r;return new _(n.status,n.statusText,o)}getCookieString(e){let t="";return C["c"].isNode&&this._jar&&this._jar.getCookies(e,(e,i)=>t=i.join("; ")),t}}function R(e,t){let i;switch(t){case"arraybuffer":i=e.arrayBuffer();break;case"text":i=e.text();break;case"blob":case"document":case"json":throw new Error(t+" is not supported.");default:i=e.text();break}return i}class D extends I{constructor(e){super(),this._logger=e}send(e){return e.abortSignal&&e.abortSignal.aborted?Promise.reject(new m):e.method?e.url?new Promise((t,i)=>{const n=new XMLHttpRequest;n.open(e.method,e.url,!0),n.withCredentials=void 0===e.withCredentials||e.withCredentials,n.setRequestHeader("X-Requested-With","XMLHttpRequest"),n.setRequestHeader("Content-Type","text/plain;charset=UTF-8");const a=e.headers;a&&Object.keys(a).forEach(e=>{n.setRequestHeader(e,a[e])}),e.responseType&&(n.responseType=e.responseType),e.abortSignal&&(e.abortSignal.onabort=()=>{n.abort(),i(new m)}),e.timeout&&(n.timeout=e.timeout),n.onload=()=>{e.abortSignal&&(e.abortSignal.onabort=null),n.status>=200&&n.status<300?t(new _(n.status,n.statusText,n.response||n.responseText)):i(new h(n.response||n.responseText||n.statusText,n.status))},n.onerror=()=>{this._logger.log(T["a"].Warning,`Error from HTTP request. ${n.status}: ${n.statusText}.`),i(new h(n.statusText,n.status))},n.ontimeout=()=>{this._logger.log(T["a"].Warning,"Timeout from HTTP request."),i(new p)},n.send(e.content||"")}):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}}class L extends I{constructor(e){if(super(),"undefined"!==typeof fetch||C["c"].isNode)this._httpClient=new k(e);else{if("undefined"===typeof XMLHttpRequest)throw new Error("No usable HttpClient found.");this._httpClient=new D(e)}}send(e){return e.abortSignal&&e.abortSignal.aborted?Promise.reject(new m):e.method?e.url?this._httpClient.send(e):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}getCookieString(e){return this._httpClient.getCookieString(e)}}class O{}O.Authorization="Authorization",O.Cookie="Cookie",function(e){e[e["None"]=0]="None",e[e["WebSockets"]=1]="WebSockets",e[e["ServerSentEvents"]=2]="ServerSentEvents",e[e["LongPolling"]=4]="LongPolling"}(x||(x={})),function(e){e[e["Text"]=1]="Text",e[e["Binary"]=2]="Binary"}(S||(S={}));class ${constructor(){this._isAborted=!1,this.onabort=null}abort(){this._isAborted||(this._isAborted=!0,this.onabort&&this.onabort())}get signal(){return this}get aborted(){return this._isAborted}}class N{constructor(e,t,i,n){this._httpClient=e,this._accessTokenFactory=t,this._logger=i,this._pollAbort=new $,this._options=n,this._running=!1,this.onreceive=null,this.onclose=null}get pollAborted(){return this._pollAbort.aborted}async connect(e,t){if(C["a"].isRequired(e,"url"),C["a"].isRequired(t,"transferFormat"),C["a"].isIn(t,S,"transferFormat"),this._url=e,this._logger.log(T["a"].Trace,"(LongPolling transport) Connecting."),t===S.Binary&&"undefined"!==typeof XMLHttpRequest&&"string"!==typeof(new XMLHttpRequest).responseType)throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");const[i,n]=Object(C["i"])(),a={[i]:n,...this._options.headers},r={abortSignal:this._pollAbort.signal,headers:a,timeout:1e5,withCredentials:this._options.withCredentials};t===S.Binary&&(r.responseType="arraybuffer");const o=await this._getAccessToken();this._updateHeaderToken(r,o);const s=`${e}&_=${Date.now()}`;this._logger.log(T["a"].Trace,`(LongPolling transport) polling: ${s}.`);const l=await this._httpClient.get(s,r);200!==l.statusCode?(this._logger.log(T["a"].Error,`(LongPolling transport) Unexpected response code: ${l.statusCode}.`),this._closeError=new h(l.statusText||"",l.statusCode),this._running=!1):this._running=!0,this._receiving=this._poll(this._url,r)}async _getAccessToken(){return this._accessTokenFactory?await this._accessTokenFactory():null}_updateHeaderToken(e,t){e.headers||(e.headers={}),t?e.headers[O.Authorization]="Bearer "+t:e.headers[O.Authorization]&&delete e.headers[O.Authorization]}async _poll(e,t){try{while(this._running){const n=await this._getAccessToken();this._updateHeaderToken(t,n);try{const i=`${e}&_=${Date.now()}`;this._logger.log(T["a"].Trace,`(LongPolling transport) polling: ${i}.`);const n=await this._httpClient.get(i,t);204===n.statusCode?(this._logger.log(T["a"].Information,"(LongPolling transport) Poll terminated by server."),this._running=!1):200!==n.statusCode?(this._logger.log(T["a"].Error,`(LongPolling transport) Unexpected response code: ${n.statusCode}.`),this._closeError=new h(n.statusText||"",n.statusCode),this._running=!1):n.content?(this._logger.log(T["a"].Trace,`(LongPolling transport) data received. ${Object(C["f"])(n.content,this._options.logMessageContent)}.`),this.onreceive&&this.onreceive(n.content)):this._logger.log(T["a"].Trace,"(LongPolling transport) Poll timed out, reissuing.")}catch(i){this._running?i instanceof p?this._logger.log(T["a"].Trace,"(LongPolling transport) Poll timed out, reissuing."):(this._closeError=i,this._running=!1):this._logger.log(T["a"].Trace,"(LongPolling transport) Poll errored after shutdown: "+i.message)}}}finally{this._logger.log(T["a"].Trace,"(LongPolling transport) Polling complete."),this.pollAborted||this._raiseOnClose()}}async send(e){return this._running?Object(C["k"])(this._logger,"LongPolling",this._httpClient,this._url,this._accessTokenFactory,e,this._options):Promise.reject(new Error("Cannot send until the transport is connected"))}async stop(){this._logger.log(T["a"].Trace,"(LongPolling transport) Stopping polling."),this._running=!1,this._pollAbort.abort();try{await this._receiving,this._logger.log(T["a"].Trace,`(LongPolling transport) sending DELETE request to ${this._url}.`);const e={},[t,i]=Object(C["i"])();e[t]=i;const n={headers:{...e,...this._options.headers},timeout:this._options.timeout,withCredentials:this._options.withCredentials},a=await this._getAccessToken();this._updateHeaderToken(n,a),await this._httpClient.delete(this._url,n),this._logger.log(T["a"].Trace,"(LongPolling transport) DELETE request sent.")}finally{this._logger.log(T["a"].Trace,"(LongPolling transport) Stop finished."),this._raiseOnClose()}}_raiseOnClose(){if(this.onclose){let e="(LongPolling transport) Firing onclose event.";this._closeError&&(e+=" Error: "+this._closeError),this._logger.log(T["a"].Trace,e),this.onclose(this._closeError)}}}class A{constructor(e,t,i,n){this._httpClient=e,this._accessTokenFactory=t,this._logger=i,this._options=n,this.onreceive=null,this.onclose=null}async connect(e,t){if(C["a"].isRequired(e,"url"),C["a"].isRequired(t,"transferFormat"),C["a"].isIn(t,S,"transferFormat"),this._logger.log(T["a"].Trace,"(SSE transport) Connecting."),this._url=e,this._accessTokenFactory){const t=await this._accessTokenFactory();t&&(e+=(e.indexOf("?")<0?"?":"&")+"access_token="+encodeURIComponent(t))}return new Promise((i,n)=>{let a,r=!1;if(t===S.Text){if(C["c"].isBrowser||C["c"].isWebWorker)a=new this._options.EventSource(e,{withCredentials:this._options.withCredentials});else{const t=this._httpClient.getCookieString(e),i={};i.Cookie=t;const[n,r]=Object(C["i"])();i[n]=r,a=new this._options.EventSource(e,{withCredentials:this._options.withCredentials,headers:{...i,...this._options.headers}})}try{a.onmessage=e=>{if(this.onreceive)try{this._logger.log(T["a"].Trace,`(SSE transport) data received. ${Object(C["f"])(e.data,this._options.logMessageContent)}.`),this.onreceive(e.data)}catch(t){return void this._close(t)}},a.onerror=e=>{r?this._close():n(new Error("EventSource failed to connect. The connection could not be found on the server, either the connection ID is not present on the server, or a proxy is refusing/buffering the connection. If you have multiple servers check that sticky sessions are enabled."))},a.onopen=()=>{this._logger.log(T["a"].Information,"SSE connected to "+this._url),this._eventSource=a,r=!0,i()}}catch(o){return void n(o)}}else n(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"))})}async send(e){return this._eventSource?Object(C["k"])(this._logger,"SSE",this._httpClient,this._url,this._accessTokenFactory,e,this._options):Promise.reject(new Error("Cannot send until the transport is connected"))}stop(){return this._close(),Promise.resolve()}_close(e){this._eventSource&&(this._eventSource.close(),this._eventSource=void 0,this.onclose&&this.onclose(e))}}class P{constructor(e,t,i,n,a,r){this._logger=i,this._accessTokenFactory=t,this._logMessageContent=n,this._webSocketConstructor=a,this._httpClient=e,this.onreceive=null,this.onclose=null,this._headers=r}async connect(e,t){if(C["a"].isRequired(e,"url"),C["a"].isRequired(t,"transferFormat"),C["a"].isIn(t,S,"transferFormat"),this._logger.log(T["a"].Trace,"(WebSockets transport) Connecting."),this._accessTokenFactory){const t=await this._accessTokenFactory();t&&(e+=(e.indexOf("?")<0?"?":"&")+"access_token="+encodeURIComponent(t))}return new Promise((i,n)=>{let a;e=e.replace(/^http/,"ws");const r=this._httpClient.getCookieString(e);let o=!1;if(C["c"].isNode){const t={},[i,n]=Object(C["i"])();t[i]=n,r&&(t[O.Cookie]=""+r),a=new this._webSocketConstructor(e,void 0,{headers:{...t,...this._headers}})}a||(a=new this._webSocketConstructor(e)),t===S.Binary&&(a.binaryType="arraybuffer"),a.onopen=t=>{this._logger.log(T["a"].Information,`WebSocket connected to ${e}.`),this._webSocket=a,o=!0,i()},a.onerror=e=>{let t=null;t="undefined"!==typeof ErrorEvent&&e instanceof ErrorEvent?e.error:"There was an error with the transport",this._logger.log(T["a"].Information,`(WebSockets transport) ${t}.`)},a.onmessage=e=>{if(this._logger.log(T["a"].Trace,`(WebSockets transport) data received. ${Object(C["f"])(e.data,this._logMessageContent)}.`),this.onreceive)try{this.onreceive(e.data)}catch(t){return void this._close(t)}},a.onclose=e=>{if(o)this._close(e);else{let t=null;t="undefined"!==typeof ErrorEvent&&e instanceof ErrorEvent?e.error:"WebSocket failed to connect. The connection could not be found on the server, either the endpoint may not be a SignalR endpoint, the connection ID is not present on the server, or there is a proxy blocking WebSockets. If you have multiple servers check that sticky sessions are enabled.",n(new Error(t))}}})}send(e){return this._webSocket&&this._webSocket.readyState===this._webSocketConstructor.OPEN?(this._logger.log(T["a"].Trace,`(WebSockets transport) sending data. ${Object(C["f"])(e,this._logMessageContent)}.`),this._webSocket.send(e),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")}stop(){return this._webSocket&&this._close(void 0),Promise.resolve()}_close(e){this._webSocket&&(this._webSocket.onclose=()=>{},this._webSocket.onmessage=()=>{},this._webSocket.onerror=()=>{},this._webSocket.close(),this._webSocket=void 0),this._logger.log(T["a"].Trace,"(WebSockets transport) socket closed."),this.onclose&&(!this._isCloseEvent(e)||!1!==e.wasClean&&1e3===e.code?e instanceof Error?this.onclose(e):this.onclose():this.onclose(new Error(`WebSocket closed with status code: ${e.code} (${e.reason||"no reason given"}).`)))}_isCloseEvent(e){return e&&"boolean"===typeof e.wasClean&&"number"===typeof e.code}}const E=100;class M{constructor(e,t={}){if(this._stopPromiseResolver=()=>{},this.features={},this._negotiateVersion=1,C["a"].isRequired(e,"url"),this._logger=Object(C["e"])(t.logger),this.baseUrl=this._resolveUrl(e),t=t||{},t.logMessageContent=void 0!==t.logMessageContent&&t.logMessageContent,"boolean"!==typeof t.withCredentials&&void 0!==t.withCredentials)throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");t.withCredentials=void 0===t.withCredentials||t.withCredentials,t.timeout=void 0===t.timeout?1e5:t.timeout;let i=null,n=null;if(C["c"].isNode){const e=require;i=e("ws"),n=e("eventsource")}C["c"].isNode||"undefined"===typeof WebSocket||t.WebSocket?C["c"].isNode&&!t.WebSocket&&i&&(t.WebSocket=i):t.WebSocket=WebSocket,C["c"].isNode||"undefined"===typeof EventSource||t.EventSource?C["c"].isNode&&!t.EventSource&&"undefined"!==typeof n&&(t.EventSource=n):t.EventSource=EventSource,this._httpClient=t.httpClient||new L(this._logger),this._connectionState="Disconnected",this._connectionStarted=!1,this._options=t,this.onreceive=null,this.onclose=null}async start(e){if(e=e||S.Binary,C["a"].isIn(e,S,"transferFormat"),this._logger.log(T["a"].Debug,`Starting connection with transfer format '${S[e]}'.`),"Disconnected"!==this._connectionState)return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));if(this._connectionState="Connecting",this._startInternalPromise=this._startInternal(e),await this._startInternalPromise,"Disconnecting"===this._connectionState){const e="Failed to start the HttpConnection before stop() was called.";return this._logger.log(T["a"].Error,e),await this._stopPromise,Promise.reject(new Error(e))}if("Connected"!==this._connectionState){const e="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!";return this._logger.log(T["a"].Error,e),Promise.reject(new Error(e))}this._connectionStarted=!0}send(e){return"Connected"!==this._connectionState?Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")):(this._sendQueue||(this._sendQueue=new j(this.transport)),this._sendQueue.send(e))}async stop(e){return"Disconnected"===this._connectionState?(this._logger.log(T["a"].Debug,`Call to HttpConnection.stop(${e}) ignored because the connection is already in the disconnected state.`),Promise.resolve()):"Disconnecting"===this._connectionState?(this._logger.log(T["a"].Debug,`Call to HttpConnection.stop(${e}) ignored because the connection is already in the disconnecting state.`),this._stopPromise):(this._connectionState="Disconnecting",this._stopPromise=new Promise(e=>{this._stopPromiseResolver=e}),await this._stopInternal(e),void await this._stopPromise)}async _stopInternal(e){this._stopError=e;try{await this._startInternalPromise}catch(t){}if(this.transport){try{await this.transport.stop()}catch(t){this._logger.log(T["a"].Error,`HttpConnection.transport.stop() threw error '${t}'.`),this._stopConnection()}this.transport=void 0}else this._logger.log(T["a"].Debug,"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed.")}async _startInternal(e){let t=this.baseUrl;this._accessTokenFactory=this._options.accessTokenFactory;try{if(this._options.skipNegotiation){if(this._options.transport!==x.WebSockets)throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");this.transport=this._constructTransport(x.WebSockets),await this._startTransport(t,e)}else{let i=null,n=0;do{if(i=await this._getNegotiationResponse(t),"Disconnecting"===this._connectionState||"Disconnected"===this._connectionState)throw new Error("The connection was stopped during negotiation.");if(i.error)throw new Error(i.error);if(i.ProtocolVersion)throw new Error("Detected a connection attempt to an ASP.NET SignalR Server. This client only supports connecting to an ASP.NET Core SignalR Server. See https://aka.ms/signalr-core-differences for details.");if(i.url&&(t=i.url),i.accessToken){const e=i.accessToken;this._accessTokenFactory=()=>e}n++}while(i.url&&n<E);if(n===E&&i.url)throw new Error("Negotiate redirection limit exceeded.");await this._createTransport(t,this._options.transport,i,e)}this.transport instanceof N&&(this.features.inherentKeepAlive=!0),"Connecting"===this._connectionState&&(this._logger.log(T["a"].Debug,"The HttpConnection connected successfully."),this._connectionState="Connected")}catch(i){return this._logger.log(T["a"].Error,"Failed to start the connection: "+i),this._connectionState="Disconnected",this.transport=void 0,this._stopPromiseResolver(),Promise.reject(i)}}async _getNegotiationResponse(e){const t={};if(this._accessTokenFactory){const e=await this._accessTokenFactory();e&&(t[O.Authorization]="Bearer "+e)}const[i,n]=Object(C["i"])();t[i]=n;const a=this._resolveNegotiateUrl(e);this._logger.log(T["a"].Debug,`Sending negotiation request: ${a}.`);try{const e=await this._httpClient.post(a,{content:"",headers:{...t,...this._options.headers},timeout:this._options.timeout,withCredentials:this._options.withCredentials});if(200!==e.statusCode)return Promise.reject(new Error(`Unexpected status code returned from negotiate '${e.statusCode}'`));const i=JSON.parse(e.content);return(!i.negotiateVersion||i.negotiateVersion<1)&&(i.connectionToken=i.connectionId),i}catch(r){let e="Failed to complete negotiation with the server: "+r;return r instanceof h&&404===r.statusCode&&(e+=" Either this is not a SignalR endpoint or there is a proxy blocking the connection."),this._logger.log(T["a"].Error,e),Promise.reject(new y(e))}}_createConnectUrl(e,t){return t?e+(-1===e.indexOf("?")?"?":"&")+"id="+t:e}async _createTransport(e,t,i,n){let a=this._createConnectUrl(e,i.connectionToken);if(this._isITransport(t))return this._logger.log(T["a"].Debug,"Connection was provided an instance of ITransport, using that directly."),this.transport=t,await this._startTransport(a,n),void(this.connectionId=i.connectionId);const r=[],o=i.availableTransports||[];let s=i;for(const c of o){const i=this._resolveTransportOrError(c,t,n);if(i instanceof Error)r.push(c.transport+" failed:"),r.push(i);else if(this._isITransport(i)){if(this.transport=i,!s){try{s=await this._getNegotiationResponse(e)}catch(l){return Promise.reject(l)}a=this._createConnectUrl(e,s.connectionToken)}try{return await this._startTransport(a,n),void(this.connectionId=s.connectionId)}catch(l){if(this._logger.log(T["a"].Error,`Failed to start the transport '${c.transport}': ${l}`),s=void 0,r.push(new b(`${c.transport} failed: ${l}`,x[c.transport])),"Connecting"!==this._connectionState){const e="Failed to select transport before stop() was called.";return this._logger.log(T["a"].Debug,e),Promise.reject(new Error(e))}}}}return r.length>0?Promise.reject(new w("Unable to connect to the server with any of the available transports. "+r.join(" "),r)):Promise.reject(new Error("None of the transports supported by the client are supported by the server."))}_constructTransport(e){switch(e){case x.WebSockets:if(!this._options.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new P(this._httpClient,this._accessTokenFactory,this._logger,this._options.logMessageContent,this._options.WebSocket,this._options.headers||{});case x.ServerSentEvents:if(!this._options.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new A(this._httpClient,this._accessTokenFactory,this._logger,this._options);case x.LongPolling:return new N(this._httpClient,this._accessTokenFactory,this._logger,this._options);default:throw new Error(`Unknown transport: ${e}.`)}}_startTransport(e,t){return this.transport.onreceive=this.onreceive,this.transport.onclose=e=>this._stopConnection(e),this.transport.connect(e,t)}_resolveTransportOrError(e,t,i){const n=x[e.transport];if(null===n||void 0===n)return this._logger.log(T["a"].Debug,`Skipping transport '${e.transport}' because it is not supported by this client.`),new Error(`Skipping transport '${e.transport}' because it is not supported by this client.`);if(!F(t,n))return this._logger.log(T["a"].Debug,`Skipping transport '${x[n]}' because it was disabled by the client.`),new v(`'${x[n]}' is disabled by the client.`,n);{const t=e.transferFormats.map(e=>S[e]);if(!(t.indexOf(i)>=0))return this._logger.log(T["a"].Debug,`Skipping transport '${x[n]}' because it does not support the requested transfer format '${S[i]}'.`),new Error(`'${x[n]}' does not support ${S[i]}.`);if(n===x.WebSockets&&!this._options.WebSocket||n===x.ServerSentEvents&&!this._options.EventSource)return this._logger.log(T["a"].Debug,`Skipping transport '${x[n]}' because it is not supported in your environment.'`),new g(`'${x[n]}' is not supported in your environment.`,n);this._logger.log(T["a"].Debug,`Selecting transport '${x[n]}'.`);try{return this._constructTransport(n)}catch(a){return a}}}_isITransport(e){return e&&"object"===typeof e&&"connect"in e}_stopConnection(e){if(this._logger.log(T["a"].Debug,`HttpConnection.stopConnection(${e}) called while in state ${this._connectionState}.`),this.transport=void 0,e=this._stopError||e,this._stopError=void 0,"Disconnected"!==this._connectionState){if("Connecting"===this._connectionState)throw this._logger.log(T["a"].Warning,`Call to HttpConnection.stopConnection(${e}) was ignored because the connection is still in the connecting state.`),new Error(`HttpConnection.stopConnection(${e}) was called while the connection is still in the connecting state.`);if("Disconnecting"===this._connectionState&&this._stopPromiseResolver(),e?this._logger.log(T["a"].Error,`Connection disconnected with error '${e}'.`):this._logger.log(T["a"].Information,"Connection disconnected."),this._sendQueue&&(this._sendQueue.stop().catch(e=>{this._logger.log(T["a"].Error,`TransportSendQueue.stop() threw error '${e}'.`)}),this._sendQueue=void 0),this.connectionId=void 0,this._connectionState="Disconnected",this._connectionStarted){this._connectionStarted=!1;try{this.onclose&&this.onclose(e)}catch(t){this._logger.log(T["a"].Error,`HttpConnection.onclose(${e}) threw error '${t}'.`)}}}else this._logger.log(T["a"].Debug,`Call to HttpConnection.stopConnection(${e}) was ignored because the connection is already in the disconnected state.`)}_resolveUrl(e){if(0===e.lastIndexOf("https://",0)||0===e.lastIndexOf("http://",0))return e;if(!C["c"].isBrowser)throw new Error(`Cannot resolve '${e}'.`);const t=window.document.createElement("a");return t.href=e,this._logger.log(T["a"].Information,`Normalizing '${e}' to '${t.href}'.`),t.href}_resolveNegotiateUrl(e){const t=e.indexOf("?");let i=e.substring(0,-1===t?e.length:t);return"/"!==i[i.length-1]&&(i+="/"),i+="negotiate",i+=-1===t?"":e.substring(t),-1===i.indexOf("negotiateVersion")&&(i+=-1===t?"?":"&",i+="negotiateVersion="+this._negotiateVersion),i}}function F(e,t){return!e||0!==(t&e)}class j{constructor(e){this._transport=e,this._buffer=[],this._executing=!0,this._sendBufferedData=new V,this._transportResult=new V,this._sendLoopPromise=this._sendLoop()}send(e){return this._bufferData(e),this._transportResult||(this._transportResult=new V),this._transportResult.promise}stop(){return this._executing=!1,this._sendBufferedData.resolve(),this._sendLoopPromise}_bufferData(e){if(this._buffer.length&&typeof this._buffer[0]!==typeof e)throw new Error(`Expected data to be of type ${typeof this._buffer} but was of type ${typeof e}`);this._buffer.push(e),this._sendBufferedData.resolve()}async _sendLoop(){while(1){if(await this._sendBufferedData.promise,!this._executing){this._transportResult&&this._transportResult.reject("Connection stopped.");break}this._sendBufferedData=new V;const t=this._transportResult;this._transportResult=void 0;const i="string"===typeof this._buffer[0]?this._buffer.join(""):j._concatBuffers(this._buffer);this._buffer.length=0;try{await this._transport.send(i),t.resolve()}catch(e){t.reject(e)}}}static _concatBuffers(e){const t=e.map(e=>e.byteLength).reduce((e,t)=>e+t),i=new Uint8Array(t);let n=0;for(const a of e)i.set(new Uint8Array(a),n),n+=a.byteLength;return i.buffer}}class V{constructor(){this.promise=new Promise((e,t)=>[this._resolver,this._rejecter]=[e,t])}resolve(){this._resolver()}reject(e){this._rejecter(e)}}class q{static write(e){return`${e}${q.RecordSeparator}`}static parse(e){if(e[e.length-1]!==q.RecordSeparator)throw new Error("Message is incomplete.");const t=e.split(q.RecordSeparator);return t.pop(),t}}q.RecordSeparatorCode=30,q.RecordSeparator=String.fromCharCode(q.RecordSeparatorCode);class z{writeHandshakeRequest(e){return q.write(JSON.stringify(e))}parseHandshakeResponse(e){let t,i;if(Object(C["j"])(e)){const n=new Uint8Array(e),a=n.indexOf(q.RecordSeparatorCode);if(-1===a)throw new Error("Message is incomplete.");const r=a+1;t=String.fromCharCode.apply(null,Array.prototype.slice.call(n.slice(0,r))),i=n.byteLength>r?n.slice(r).buffer:null}else{const n=e,a=n.indexOf(q.RecordSeparator);if(-1===a)throw new Error("Message is incomplete.");const r=a+1;t=n.substring(0,r),i=n.length>r?n.substring(r):null}const n=q.parse(t),a=JSON.parse(n[0]);if(a.type)throw new Error("Expected a handshake response from the server.");const r=a;return[i,r]}}var B;(function(e){e[e["Invocation"]=1]="Invocation",e[e["StreamItem"]=2]="StreamItem",e[e["Completion"]=3]="Completion",e[e["StreamInvocation"]=4]="StreamInvocation",e[e["CancelInvocation"]=5]="CancelInvocation",e[e["Ping"]=6]="Ping",e[e["Close"]=7]="Close"})(B||(B={}));class U{constructor(){this.observers=[]}next(e){for(const t of this.observers)t.next(e)}error(e){for(const t of this.observers)t.error&&t.error(e)}complete(){for(const e of this.observers)e.complete&&e.complete()}subscribe(e){return this.observers.push(e),new C["d"](this,e)}}const Q=3e4,H=15e3;var G;(function(e){e["Disconnected"]="Disconnected",e["Connecting"]="Connecting",e["Connected"]="Connected",e["Disconnecting"]="Disconnecting",e["Reconnecting"]="Reconnecting"})(G||(G={}));class W{constructor(e,t,i,n){this._nextKeepAlive=0,this._freezeEventListener=()=>{this._logger.log(T["a"].Warning,"The page is being frozen, this will likely lead to the connection being closed and messages being lost. For more information see the docs at https://docs.microsoft.com/aspnet/core/signalr/javascript-client#bsleep")},C["a"].isRequired(e,"connection"),C["a"].isRequired(t,"logger"),C["a"].isRequired(i,"protocol"),this.serverTimeoutInMilliseconds=Q,this.keepAliveIntervalInMilliseconds=H,this._logger=t,this._protocol=i,this.connection=e,this._reconnectPolicy=n,this._handshakeProtocol=new z,this.connection.onreceive=e=>this._processIncomingData(e),this.connection.onclose=e=>this._connectionClosed(e),this._callbacks={},this._methods={},this._closedCallbacks=[],this._reconnectingCallbacks=[],this._reconnectedCallbacks=[],this._invocationId=0,this._receivedHandshakeResponse=!1,this._connectionState=G.Disconnected,this._connectionStarted=!1,this._cachedPingMessage=this._protocol.writeMessage({type:B.Ping})}static create(e,t,i,n){return new W(e,t,i,n)}get state(){return this._connectionState}get connectionId(){return this.connection&&this.connection.connectionId||null}get baseUrl(){return this.connection.baseUrl||""}set baseUrl(e){if(this._connectionState!==G.Disconnected&&this._connectionState!==G.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!e)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=e}start(){return this._startPromise=this._startWithStateTransitions(),this._startPromise}async _startWithStateTransitions(){if(this._connectionState!==G.Disconnected)return Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."));this._connectionState=G.Connecting,this._logger.log(T["a"].Debug,"Starting HubConnection.");try{await this._startInternal(),C["c"].isBrowser&&window.document.addEventListener("freeze",this._freezeEventListener),this._connectionState=G.Connected,this._connectionStarted=!0,this._logger.log(T["a"].Debug,"HubConnection connected successfully.")}catch(e){return this._connectionState=G.Disconnected,this._logger.log(T["a"].Debug,`HubConnection failed to start successfully because of error '${e}'.`),Promise.reject(e)}}async _startInternal(){this._stopDuringStartError=void 0,this._receivedHandshakeResponse=!1;const e=new Promise((e,t)=>{this._handshakeResolver=e,this._handshakeRejecter=t});await this.connection.start(this._protocol.transferFormat);try{const t={protocol:this._protocol.name,version:this._protocol.version};if(this._logger.log(T["a"].Debug,"Sending handshake request."),await this._sendMessage(this._handshakeProtocol.writeHandshakeRequest(t)),this._logger.log(T["a"].Information,`Using HubProtocol '${this._protocol.name}'.`),this._cleanupTimeout(),this._resetTimeoutPeriod(),this._resetKeepAliveInterval(),await e,this._stopDuringStartError)throw this._stopDuringStartError}catch(t){throw this._logger.log(T["a"].Debug,`Hub handshake failed with error '${t}' during start(). Stopping HubConnection.`),this._cleanupTimeout(),this._cleanupPingTimer(),await this.connection.stop(t),t}}async stop(){const e=this._startPromise;this._stopPromise=this._stopInternal(),await this._stopPromise;try{await e}catch(t){}}_stopInternal(e){return this._connectionState===G.Disconnected?(this._logger.log(T["a"].Debug,`Call to HubConnection.stop(${e}) ignored because it is already in the disconnected state.`),Promise.resolve()):this._connectionState===G.Disconnecting?(this._logger.log(T["a"].Debug,`Call to HttpConnection.stop(${e}) ignored because the connection is already in the disconnecting state.`),this._stopPromise):(this._connectionState=G.Disconnecting,this._logger.log(T["a"].Debug,"Stopping HubConnection."),this._reconnectDelayHandle?(this._logger.log(T["a"].Debug,"Connection stopped during reconnect delay. Done reconnecting."),clearTimeout(this._reconnectDelayHandle),this._reconnectDelayHandle=void 0,this._completeClose(),Promise.resolve()):(this._cleanupTimeout(),this._cleanupPingTimer(),this._stopDuringStartError=e||new Error("The connection was stopped before the hub handshake could complete."),this.connection.stop(e)))}stream(e,...t){const[i,n]=this._replaceStreamingParams(t),a=this._createStreamInvocation(e,t,n);let r;const o=new U;return o.cancelCallback=()=>{const e=this._createCancelInvocation(a.invocationId);return delete this._callbacks[a.invocationId],r.then(()=>this._sendWithProtocol(e))},this._callbacks[a.invocationId]=(e,t)=>{t?o.error(t):e&&(e.type===B.Completion?e.error?o.error(new Error(e.error)):o.complete():o.next(e.item))},r=this._sendWithProtocol(a).catch(e=>{o.error(e),delete this._callbacks[a.invocationId]}),this._launchStreams(i,r),o}_sendMessage(e){return this._resetKeepAliveInterval(),this.connection.send(e)}_sendWithProtocol(e){return this._sendMessage(this._protocol.writeMessage(e))}send(e,...t){const[i,n]=this._replaceStreamingParams(t),a=this._sendWithProtocol(this._createInvocation(e,t,!0,n));return this._launchStreams(i,a),a}invoke(e,...t){const[i,n]=this._replaceStreamingParams(t),a=this._createInvocation(e,t,!1,n),r=new Promise((e,t)=>{this._callbacks[a.invocationId]=(i,n)=>{n?t(n):i&&(i.type===B.Completion?i.error?t(new Error(i.error)):e(i.result):t(new Error("Unexpected message type: "+i.type)))};const n=this._sendWithProtocol(a).catch(e=>{t(e),delete this._callbacks[a.invocationId]});this._launchStreams(i,n)});return r}on(e,t){e&&t&&(e=e.toLowerCase(),this._methods[e]||(this._methods[e]=[]),-1===this._methods[e].indexOf(t)&&this._methods[e].push(t))}off(e,t){if(!e)return;e=e.toLowerCase();const i=this._methods[e];if(i)if(t){const n=i.indexOf(t);-1!==n&&(i.splice(n,1),0===i.length&&delete this._methods[e])}else delete this._methods[e]}onclose(e){e&&this._closedCallbacks.push(e)}onreconnecting(e){e&&this._reconnectingCallbacks.push(e)}onreconnected(e){e&&this._reconnectedCallbacks.push(e)}_processIncomingData(e){if(this._cleanupTimeout(),this._receivedHandshakeResponse||(e=this._processHandshakeResponse(e),this._receivedHandshakeResponse=!0),e){const i=this._protocol.parseMessages(e,this._logger);for(const e of i)switch(e.type){case B.Invocation:this._invokeClientMethod(e);break;case B.StreamItem:case B.Completion:{const i=this._callbacks[e.invocationId];if(i){e.type===B.Completion&&delete this._callbacks[e.invocationId];try{i(e)}catch(t){this._logger.log(T["a"].Error,"Stream callback threw error: "+Object(C["g"])(t))}}break}case B.Ping:break;case B.Close:{this._logger.log(T["a"].Information,"Close message received from server.");const t=e.error?new Error("Server returned an error on close: "+e.error):void 0;!0===e.allowReconnect?this.connection.stop(t):this._stopPromise=this._stopInternal(t);break}default:this._logger.log(T["a"].Warning,`Invalid message type: ${e.type}.`);break}}this._resetTimeoutPeriod()}_processHandshakeResponse(e){let t,i;try{[i,t]=this._handshakeProtocol.parseHandshakeResponse(e)}catch(n){const e="Error parsing handshake response: "+n;this._logger.log(T["a"].Error,e);const t=new Error(e);throw this._handshakeRejecter(t),t}if(t.error){const e="Server returned handshake error: "+t.error;this._logger.log(T["a"].Error,e);const i=new Error(e);throw this._handshakeRejecter(i),i}return this._logger.log(T["a"].Debug,"Server handshake complete."),this._handshakeResolver(),i}_resetKeepAliveInterval(){this.connection.features.inherentKeepAlive||(this._nextKeepAlive=(new Date).getTime()+this.keepAliveIntervalInMilliseconds,this._cleanupPingTimer())}_resetTimeoutPeriod(){if((!this.connection.features||!this.connection.features.inherentKeepAlive)&&(this._timeoutHandle=setTimeout(()=>this.serverTimeout(),this.serverTimeoutInMilliseconds),void 0===this._pingServerHandle)){let e=this._nextKeepAlive-(new Date).getTime();e<0&&(e=0),this._pingServerHandle=setTimeout(async()=>{if(this._connectionState===G.Connected)try{await this._sendMessage(this._cachedPingMessage)}catch{this._cleanupPingTimer()}},e)}}serverTimeout(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))}_invokeClientMethod(e){const t=this._methods[e.target.toLowerCase()];if(t){try{t.forEach(t=>t.apply(this,e.arguments))}catch(i){this._logger.log(T["a"].Error,`A callback for the method ${e.target.toLowerCase()} threw error '${i}'.`)}if(e.invocationId){const e="Server requested a response, which is not supported in this version of the client.";this._logger.log(T["a"].Error,e),this._stopPromise=this._stopInternal(new Error(e))}}else this._logger.log(T["a"].Warning,`No client method with the name '${e.target}' found.`)}_connectionClosed(e){this._logger.log(T["a"].Debug,`HubConnection.connectionClosed(${e}) called while in state ${this._connectionState}.`),this._stopDuringStartError=this._stopDuringStartError||e||new Error("The underlying connection was closed before the hub handshake could complete."),this._handshakeResolver&&this._handshakeResolver(),this._cancelCallbacksWithError(e||new Error("Invocation canceled due to the underlying connection being closed.")),this._cleanupTimeout(),this._cleanupPingTimer(),this._connectionState===G.Disconnecting?this._completeClose(e):this._connectionState===G.Connected&&this._reconnectPolicy?this._reconnect(e):this._connectionState===G.Connected&&this._completeClose(e)}_completeClose(e){if(this._connectionStarted){this._connectionState=G.Disconnected,this._connectionStarted=!1,C["c"].isBrowser&&window.document.removeEventListener("freeze",this._freezeEventListener);try{this._closedCallbacks.forEach(t=>t.apply(this,[e]))}catch(t){this._logger.log(T["a"].Error,`An onclose callback called with error '${e}' threw error '${t}'.`)}}}async _reconnect(e){const t=Date.now();let i=0,n=void 0!==e?e:new Error("Attempting to reconnect due to a unknown error."),a=this._getNextRetryDelay(i++,0,n);if(null===a)return this._logger.log(T["a"].Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),void this._completeClose(e);if(this._connectionState=G.Reconnecting,e?this._logger.log(T["a"].Information,`Connection reconnecting because of error '${e}'.`):this._logger.log(T["a"].Information,"Connection reconnecting."),0!==this._reconnectingCallbacks.length){try{this._reconnectingCallbacks.forEach(t=>t.apply(this,[e]))}catch(r){this._logger.log(T["a"].Error,`An onreconnecting callback called with error '${e}' threw error '${r}'.`)}if(this._connectionState!==G.Reconnecting)return void this._logger.log(T["a"].Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting.")}while(null!==a){if(this._logger.log(T["a"].Information,`Reconnect attempt number ${i} will start in ${a} ms.`),await new Promise(e=>{this._reconnectDelayHandle=setTimeout(e,a)}),this._reconnectDelayHandle=void 0,this._connectionState!==G.Reconnecting)return void this._logger.log(T["a"].Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting.");try{if(await this._startInternal(),this._connectionState=G.Connected,this._logger.log(T["a"].Information,"HubConnection reconnected successfully."),0!==this._reconnectedCallbacks.length)try{this._reconnectedCallbacks.forEach(e=>e.apply(this,[this.connection.connectionId]))}catch(r){this._logger.log(T["a"].Error,`An onreconnected callback called with connectionId '${this.connection.connectionId}; threw error '${r}'.`)}return}catch(r){if(this._logger.log(T["a"].Information,`Reconnect attempt failed because of error '${r}'.`),this._connectionState!==G.Reconnecting)return this._logger.log(T["a"].Debug,`Connection moved to the '${this._connectionState}' from the reconnecting state during reconnect attempt. Done reconnecting.`),void(this._connectionState===G.Disconnecting&&this._completeClose());n=r instanceof Error?r:new Error(r.toString()),a=this._getNextRetryDelay(i++,Date.now()-t,n)}}this._logger.log(T["a"].Information,`Reconnect retries have been exhausted after ${Date.now()-t} ms and ${i} failed attempts. Connection disconnecting.`),this._completeClose()}_getNextRetryDelay(e,t,i){try{return this._reconnectPolicy.nextRetryDelayInMilliseconds({elapsedMilliseconds:t,previousRetryCount:e,retryReason:i})}catch(n){return this._logger.log(T["a"].Error,`IRetryPolicy.nextRetryDelayInMilliseconds(${e}, ${t}) threw error '${n}'.`),null}}_cancelCallbacksWithError(e){const t=this._callbacks;this._callbacks={},Object.keys(t).forEach(i=>{const n=t[i];try{n(null,e)}catch(a){this._logger.log(T["a"].Error,`Stream 'error' callback called with '${e}' threw error: ${Object(C["g"])(a)}`)}})}_cleanupPingTimer(){this._pingServerHandle&&(clearTimeout(this._pingServerHandle),this._pingServerHandle=void 0)}_cleanupTimeout(){this._timeoutHandle&&clearTimeout(this._timeoutHandle)}_createInvocation(e,t,i,n){if(i)return 0!==n.length?{arguments:t,streamIds:n,target:e,type:B.Invocation}:{arguments:t,target:e,type:B.Invocation};{const i=this._invocationId;return this._invocationId++,0!==n.length?{arguments:t,invocationId:i.toString(),streamIds:n,target:e,type:B.Invocation}:{arguments:t,invocationId:i.toString(),target:e,type:B.Invocation}}}_launchStreams(e,t){if(0!==e.length){t||(t=Promise.resolve());for(const i in e)e[i].subscribe({complete:()=>{t=t.then(()=>this._sendWithProtocol(this._createCompletionMessage(i)))},error:e=>{let n;n=e instanceof Error?e.message:e&&e.toString?e.toString():"Unknown error",t=t.then(()=>this._sendWithProtocol(this._createCompletionMessage(i,n)))},next:e=>{t=t.then(()=>this._sendWithProtocol(this._createStreamItemMessage(i,e)))}})}}_replaceStreamingParams(e){const t=[],i=[];for(let n=0;n<e.length;n++){const a=e[n];if(this._isObservable(a)){const r=this._invocationId;this._invocationId++,t[r]=a,i.push(r.toString()),e.splice(n,1)}}return[t,i]}_isObservable(e){return e&&e.subscribe&&"function"===typeof e.subscribe}_createStreamInvocation(e,t,i){const n=this._invocationId;return this._invocationId++,0!==i.length?{arguments:t,invocationId:n.toString(),streamIds:i,target:e,type:B.StreamInvocation}:{arguments:t,invocationId:n.toString(),target:e,type:B.StreamInvocation}}_createCancelInvocation(e){return{invocationId:e,type:B.CancelInvocation}}_createStreamItemMessage(e,t){return{invocationId:e,item:t,type:B.StreamItem}}_createCompletionMessage(e,t,i){return t?{error:t,invocationId:e,type:B.Completion}:{invocationId:e,result:i,type:B.Completion}}}var Y=i("bf71");const K="json";class Z{constructor(){this.name=K,this.version=1,this.transferFormat=S.Text}parseMessages(e,t){if("string"!==typeof e)throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!e)return[];null===t&&(t=Y["a"].instance);const i=q.parse(e),n=[];for(const a of i){const e=JSON.parse(a);if("number"!==typeof e.type)throw new Error("Invalid payload.");switch(e.type){case B.Invocation:this._isInvocationMessage(e);break;case B.StreamItem:this._isStreamItemMessage(e);break;case B.Completion:this._isCompletionMessage(e);break;case B.Ping:break;case B.Close:break;default:t.log(T["a"].Information,"Unknown message type '"+e.type+"' ignored.");continue}n.push(e)}return n}writeMessage(e){return q.write(JSON.stringify(e))}_isInvocationMessage(e){this._assertNotEmptyString(e.target,"Invalid payload for Invocation message."),void 0!==e.invocationId&&this._assertNotEmptyString(e.invocationId,"Invalid payload for Invocation message.")}_isStreamItemMessage(e){if(this._assertNotEmptyString(e.invocationId,"Invalid payload for StreamItem message."),void 0===e.item)throw new Error("Invalid payload for StreamItem message.")}_isCompletionMessage(e){if(e.result&&e.error)throw new Error("Invalid payload for Completion message.");!e.result&&e.error&&this._assertNotEmptyString(e.error,"Invalid payload for Completion message."),this._assertNotEmptyString(e.invocationId,"Invalid payload for Completion message.")}_assertNotEmptyString(e,t){if("string"!==typeof e||""===e)throw new Error(t)}}const X={trace:T["a"].Trace,debug:T["a"].Debug,info:T["a"].Information,information:T["a"].Information,warn:T["a"].Warning,warning:T["a"].Warning,error:T["a"].Error,critical:T["a"].Critical,none:T["a"].None};function J(e){const t=X[e.toLowerCase()];if("undefined"!==typeof t)return t;throw new Error("Unknown log level: "+e)}class ee{configureLogging(e){if(C["a"].isRequired(e,"logging"),te(e))this.logger=e;else if("string"===typeof e){const t=J(e);this.logger=new C["b"](t)}else this.logger=new C["b"](e);return this}withUrl(e,t){return C["a"].isRequired(e,"url"),C["a"].isNotEmpty(e,"url"),this.url=e,this.httpConnectionOptions="object"===typeof t?{...this.httpConnectionOptions,...t}:{...this.httpConnectionOptions,transport:t},this}withHubProtocol(e){return C["a"].isRequired(e,"protocol"),this.protocol=e,this}withAutomaticReconnect(e){if(this.reconnectPolicy)throw new Error("A reconnectPolicy has already been set.");return e?Array.isArray(e)?this.reconnectPolicy=new f(e):this.reconnectPolicy=e:this.reconnectPolicy=new f,this}build(){const e=this.httpConnectionOptions||{};if(void 0===e.logger&&(e.logger=this.logger),!this.url)throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");const t=new M(this.url,e);return W.create(t,this.logger||Y["a"].instance,this.protocol||new Z,this.reconnectPolicy)}}function te(e){return void 0!==e.log}var ie=i("6422"),ne=i("5be4"),ae=i("5f87"),re=i("c1df"),oe=i.n(re),se={name:"UploadDicomFiles",components:{DicomPreview:ie["default"]},props:{data:{type:Object,default:function(){return{}}},subjectVisitId:{type:String,required:!0},subjectId:{type:String,required:!0}},data:function(){return{editStudyInfoVisible:!1,studyForm:{StudyCode:"",IsDicomData:!0,Modalities:"",BodyPartForEdit:[],SeriesCount:null,StudyTime:""},uploadQueues:ne["a"].studyList,selectArr:[],scanState:"",form:{SiteName:"",SubjectName:"",VisitName:"",SubjectId:"",VisitNum:null},btnLoading:!1,previewVisible:!1,warning_cfg:{visible:!1},warningArr:[],isScan:!1,studyLoading:!1,studyList:[],deleteArr:[],trialId:"",moment:oe.a,uploadCount:0,uploadedCount:0,wsList:[],relationInfo:null,trialBodyPartTypes:[],trialModalitys:[]}},mounted:function(){var e=this;this.trialId=this.$route.query.trialId,Object.keys(this.data).length&&(this.form=Object(s["a"])({},this.data));var t=(new ee).withUrl("/UploadHub",{accessTokenFactory:function(){return Object(ae["a"])()}}).configureLogging(T["a"].Information).withAutomaticReconnect().build();t.start(),t.on("ReceivProgressAsync",(function(t,i){e.onUploadProgress2(t,i)})),this.getStudyInfo()},methods:{handleEditStudy:function(e){this.editStudyInfoVisible=!0,this.studyForm=Object(s["a"])({},e);var t=[];-1!==this.studyForm.BodyPartForEdit.indexOf("|")?t=this.studyForm.BodyPartForEdit.split("|"):""!==this.studyForm.BodyPartForEdit&&t.push(this.studyForm.BodyPartForEdit),this.$set(this.studyForm,"Modality",e.ModalityForEdit),this.studyForm.BodyPartForEdit=t},handleUpdateStudyInfo:function(){var e=this;this.$refs["studyForm"].validate((function(t){if(t){e.btnLoading=!0,e.studyForm.BodyPart=e.studyForm.BodyPartForEdit.join("|");var i={id:e.studyForm.StudyId,subjectVisitId:e.data.Id,type:1,modality:e.studyForm.Modality,bodyPart:e.studyForm.BodyPart};Object(l["qf"])(e.data.TrialId,i).then((function(t){e.btnLoading=!1,t.IsSuccess&&(e.getStudyInfo(),e.$message.success(e.$t("common:message:savedSuccessfully")),e.editStudyInfoVisible=!1)})).catch((function(){e.btnLoading=!1}))}}))},format:function(e){return e},getStudyInfo:function(){var e=this;this.studyLoading=!0,Object(l["sd"])(this.subjectVisitId).then((function(t){e.studyList=t.Result,e.relationInfo=t.OtherInfo,e.trialBodyPartTypes=e.relationInfo.BodyPartTypes?e.relationInfo.BodyPartTypes.split("|"):[],e.trialModalitys=e.relationInfo.Modalitys?e.relationInfo.Modalitys.split("|"):[],e.studyLoading=!1})).catch((function(){e.studyLoading=!1}))},handleViewStudy:function(e){var t=Object(ae["a"])(),i=this.$router.resolve({path:"/showdicom?studyId=".concat(e.StudyId,"&TokenKey=").concat(t,"&type=Study")});window.open(i.href,"_blank")},handlePreviewAllFiles:function(){var e=Object(ae["a"])(),t=this.$router.resolve({path:"/showvisitdicoms?trialId=".concat(this.data.TrialId,"&visitInfo=").concat(this.data.VisitName,"(").concat(this.data.VisitNum,")&subjectVisitId=").concat(this.data.Id,"&TokenKey=").concat(e)});window.open(t.href,"_blank")},beginScanFiles:function(e){var t=e.target.files;if(t.length>0){console.log(t);Object(o["a"])(t);var i=this;i.scanState="",i.isScan=!1;for(var n=new Promise((function(e){e()})),a=0;a<t.length;++a)(function(e){n=n.then((function(){return i.parseDicomFile(t[e])}))})(a);n.then((function(e){i.scanState="finished",i.isScan=!0}))}},parseDicomFile:function(e){var t=this;return new Promise((function(i,n){if("cancelling"!==t.scanState){var a=new FileReader;a.onload=function(n){try{var a=u["parseDicom"](new Uint8Array(n.target.result)),r=a.string("x0020000d"),o=0;while(o<t.uploadQueues.length&&t.uploadQueues[o].dicomInfo.studyUid!==r)++o;if(o>=t.uploadQueues.length){var s=a.string("x00080020"),l=a.string("x00080030"),c="";s&&(s="".concat(s.substring(0,4),"-").concat(s.substring(4,6),"-").concat(s.substring(6,8))),l&&(l="".concat(l.substring(0,2),":").concat(l.substring(2,4),":").concat(l.substring(4,6))),s&&(c=l?"".concat(s," ").concat(l):"".concat(s," 00:00:00")),t.uploadQueues.push({studyIndex:o,seriesList:[],fileList:[],dicomInfo:{studyUid:r,patientId:a.string("x00100020"),patientName:a.string("x00100010")?a.string("x00100010"):"",patientAge:a.string("x00101010")?a.string("x00101010"):"",patientSex:a.string("x00100040")?a.string("x00100040"):"",patientBirthDate:a.string("x00100030"),hospitalName:a.string("x00080080"),accNumber:a.string("x00080050"),bodyPart:a.string("x00180015"),modality:[],institutionName:a.string("x00080080"),description:a.string("x00081030"),studyTime:c,VisitInfo:{},SubjectInfo:{}},uploadState:{selected:!1,stateCode:"",beginUploadTime:{},progressValue:0}})}var d=t.uploadQueues[o].dicomInfo.modality,f=a.string("x00080060");d.indexOf(f)>-1||d.push(f);var h=t.uploadQueues[o].fileList,p=a.string("x00080018"),m=0;while(m<h.length&&h[m].instanceUid!==p)++m;m>=h.length&&h.push({instanceUid:p,file:e});var g=a.string("x0020000e"),v=t.uploadQueues[o].seriesList,b=v.find((function(e){return e.seriesUid===g}));b||(b={seriesUid:g,seriesNumber:a.intString("x00200011")||1,modality:a.string("x00080060"),description:a.string("x0008103e"),instanceList:[]},v.push(b));var y=b.instanceList,w=y.find((function(e){return e.instanceUid===p}));w||(w={instanceUid:p,instanceNumber:a.intString("x00200013")||1,frameCount:a.intString("x00280008")||1,file:e},y.push(w)),i()}catch(_){console.log(_),i()}},a.onerror=function(e){i()},a.readAsArrayBuffer(e)}else i()}))},beginUploadQueues:function(){this.scanState="uploading",this.warningArr=[];for(var e=0;e<this.selectArr.length;++e){var t=this.selectArr[e].studyIndex;this.uploadQueues[t].uploadState.stateCode="uploading",this.verifyBasicInfos(t)}this.warningArr.length?this.warning_cfg.visible=!0:this.verifyStudy()},verifyBasicInfos:function(e){var t=[];this.uploadQueues[e].dicomInfo.patientSex&&this.form.SubjectSex&&this.uploadQueues[e].dicomInfo.patientSex.substr(0,1)!==this.form.SubjectSex.substr(0,1)&&t.push(this.$t("trials:uploadDicomList:message:genderConsistent")),t.length>0&&this.warningArr.push({index:this.uploadQueues[e].studyIndex+1,accNumber:this.uploadQueues[e].dicomInfo.accNumber,warnings:t})},verifyStudy:function(){var e=this;this.btnLoading=!0;var t=[];this.selectArr.forEach((function(e){t.push({studyInstanceUid:e.dicomInfo.studyUid,studyDate:e.dicomInfo.studyTime})}));var i={trialId:this.trialId,subjectId:this.subjectId,subjectVisitId:this.subjectVisitId,visitNum:this.form.VisitNum,studyInstanceUidList:t};Object(l["R"])(i).then((function(t){var i=[];if(t.Result.forEach((function(t){if(t.ErrorMesseage){var n=e.uploadQueues.findIndex((function(e){return e.dicomInfo.studyUid===t.StudyInstanceUid}));e.uploadQueues[n].uploadState.stateText=e.$t("trials:uploadDicomList:label:uploadingNotAllowed"),e.uploadQueues[n].uploadState.selected=!0,e.uploadQueues[n].uploadState.stateCode="Uploading not allowed",e.uploadQueues[n].uploadState.errorMessage=t.ErrorMesseage,e.$refs.dicomFilesTable.toggleRowSelection(e.uploadQueues[n]);var a="".concat(t.ErrorMesseage);i.push(a)}if(t.AllowReUpload){var r=e.uploadQueues.findIndex((function(e){return e.dicomInfo.studyUid===t.StudyInstanceUid}));e.uploadQueues[r].AbandonStudyId=t.StudyInfo?t.StudyInfo.Id:""}})),i.length>0){var n=i.map((function(e){return"<li>".concat(e,"</li>")})),a="\n <div>\n <ol>\n ".concat(n.join(""),"\n </ol>\n </div>");e.$alert(a,e.$t("trials:uploadDicomList:label:prompt"),{confirmButtonText:e.$t("trials:uploadDicomList:label:confirm"),dangerouslyUseHTMLString:!0,callback:function(e){}}),e.btnLoading=!1}var r=[];e.uploadCount=e.selectArr.length,e.uploadedCount=0;for(var o=0;o<e.selectArr.length;++o){var s=e.selectArr[o].studyIndex;r.push(e.archiveStudy(s))}Promise.all(r).then((function(t){e.btnLoading=!1})).catch((function(t){e.btnLoading=!1}))})).catch((function(t){e.btnLoading=!1}))},objectToQuery:function(){var e=this,t=arguments[0],i=arguments[1];if("object"!==Object(r["a"])(t))return"";var n=Object.keys(t);return n.reduce((function(a,o,s){if(0!==s||i||(a+="?"),"object"===Object(r["a"])(t[o])){var l=i?"".concat(i,"[").concat(o,"]"):o;a+=e.objectToQuery(t[o],l)}else a+=i?"".concat(i,"[").concat(o,"]=").concat(t[o]):"".concat(o,"=").concat(t[o]);return s!==n.length-1&&(a+="&"),a}),"")},archiveStudy:function(e){var t=this;return new Promise((function(i,n){var a=this;Object(l["se"])({subjectVisitId:t.subjectVisitId,isDicom:!0}).then((function(n){var r=new FormData,o=t.uploadQueues[e].dicomInfo,s=t.uploadQueues[e].seriesList.length,l=t.uploadQueues[e].fileList.length;o.seriesNum=s,o.fileNum=l,o.siteId=t.data.SiteId,o.subjectId=t.data.SubjectId,o.subjectVisitId=t.subjectVisitId;var u={trialId:t.trialId,subjectVisitId:t.subjectVisitId,studyInstanceUid:t.uploadQueues[e].dicomInfo.studyUid,StudyMonitorId:n.Result};t.uploadQueues[e].AbandonStudyId&&(u.abandonStudyId=t.uploadQueues[e].AbandonStudyId);for(var d=0;d<t.uploadQueues[e].fileList.length;++d)r.append("file",t.uploadQueues[e].fileList[d].file);t.btnLoading=!0;var f=new XMLHttpRequest;f.open("POST","/api/study/archiveStudy".concat(t.objectToQuery(u))),f.setRequestHeader("Authorization","Bearer ".concat(c["a"].getters.token)),f.timeout=72e4,f.responseType="text",f.onload=function(n){t.onUploadCompleted(n,e),i()},f.onerror=function(n){t.onUploadError(n,e),i()},f.upload.onprogress=function(i){t.onUploadProgress(i,e)},f.send(r);var h=t.uploadQueues[e].uploadState;h.stateText="".concat(a.$t("trials:uploadDicomList:label:uploading"),"..."),h.beginUploadTime=new Date,h.progressValue=0}))}))},onUploadCompleted:function(e,t){this.uploadedCount++;var i=this.uploadQueues[t].uploadState;if(200===e.target.status){var n=JSON.parse(e.target.responseText);if(i.stateCode="Finished",n.IsSuccess){this.uploadQueues[t].uploadState.selected=!0;var a=this.selectArr.findIndex((function(e){e.studyIndex}));this.selectArr.splice(a,1),this.$refs.dicomFilesTable.toggleRowSelection(this.uploadQueues[t]),i.totalCount=n.Result.ReceivedFileCount,i.failedCount=n.Result.ErrorFiles.length,i.successCount=i.totalCount-i.failedCount,i.ErrorFiles=n.Result.ErrorFiles,n.Result.ArchivedDicomStudies.length>0&&(i.stateText=this.$t("trials:uploadDicomList:label:uploaded"),this.scanState="Uploaded",this.getStudyInfo(),this.$emit("getList"))}else this.uploadQueues[t].uploadState.stateText=this.$t("trials:uploadDicomList:label:uploadFailed"),this.scanState="Failed",n.ErrorMessage&&this.$message.error(n.ErrorMessage);this.wariningMes=""}else i.stateCode="Failed",i.stateText=this.$t("trials:uploadDicomList:label:uploadFailed"),this.scanState="Failed";this.$forceUpdate()},onUploadError:function(e,t){this.uploadedCount++;var i=this.uploadQueues[t].uploadState;i.stateCode="Failed",i.stateText=this.$t("trials:uploadDicomList:label:uploadFailed"),this.scanState="Failed"},onUploadProgress2:function(e,t){var i=this.uploadQueues.find((function(t){return t.dicomInfo.studyUid===e}));i&&i.uploadState.stateText!==this.$t("trials:uploadDicomList:label:uploaded")&&(this.$set(i.uploadState,"UpdataValue",Math.floor(t/i.dicomInfo.fileNum*100)),this.$set(i.uploadState,"stateText",this.$t("trials:uploadDicomList:message:archiveSuccess")))},onUploadProgress:function(e,t){if(e.lengthComputable){var i=Math.floor(e.loaded/e.total*100);console.log(e.loaded,e.total,i),this.$set(this.uploadQueues[t].uploadState,"stateText",this.$t("trials:uploadDicomList:label:uploading")),this.$set(this.uploadQueues[t].uploadState,"progressValue",i)}},handleCancelWarnVisible:function(){this.warning_cfg.visible=!1;for(var e=0;e<this.selectArr.length;++e){var t=this.selectArr[e].studyIndex;this.uploadQueues[t].uploadState.stateCode=""}},handleContinueUpload:function(){this.warning_cfg.visible=!1,this.verifyStudy()},handlePreview:function(e){this.previewVisible=!0,this.uid=e},handleDelete:function(e,t){var i=this;this.$confirm(this.$t("trials:uploadedDicoms:message:deleteMes"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){i.$refs.uploadForm.reset(),i.selectArr=[],i.uploadQueues.splice(e,1)}))},handleSelectionChange:function(e){e.sort((function(e,t){return e.studyIndex-t.studyIndex})),this.selectArr=e},handleSelectable:function(e){return!e.uploadState.selected},handleUploadedSelectionChange:function(e){var t=this;this.deleteArr=[],e.forEach((function(e){t.deleteArr.push(e.StudyId)}))},handleBatchDelete:function(){var e=this;this.$confirm(this.$t("trials:uploadedDicoms:message:deleteMes"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){e.studyLoading=!0,Object(l["yb"])(e.trialId,e.subjectVisitId,e.deleteArr).then((function(t){t.IsSuccess&&(e.getStudyInfo(),e.$emit("getList"),e.$message.success(e.$t("trials:uploadedDicoms:message:deleteSuccessfully")))})).catch((function(){e.studyLoading=!0}))})).catch((function(){}))},handleDeleteStudy:function(e){var t=this;this.$confirm(this.$t("trials:uploadedDicoms:message:deleteMes"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.studyLoading=!0,Object(l["yb"])(t.trialId,t.subjectVisitId,[e.StudyId]).then((function(e){e.IsSuccess&&(t.getStudyInfo(),t.$emit("getList"),t.$message.success(t.$t("trials:uploadedDicoms:message:deleteSuccessfully")))})).catch((function(){t.studyLoading=!0}))})).catch((function(){}))},cancel:function(){this.scanState="cancelling",this.$emit("close")},compare:function(e,t){e=new Date(e),e=e.getTime(),t=new Date(t),t=t.getTime();var i=0;return i=e>t?e-t:t-e,Math.floor(i/864e5)},exportFailedFiles:function(e){var t=document.createElement("a"),i="";e.forEach((function(e){i+=e+"\n"})),t.setAttribute("href","data:text/html;charset=utf-8,"+i),t.setAttribute("download",+new Date+".txt"),t.style.display="none",document.body.appendChild(t),t.click(),document.body.removeChild(t)},tableRowClassName:function(e){var t=e.row;e.rowIndex;return t.IsDeleted?"delete-row":""}}},le=se,ce=(i("d7b7"),i("2877")),ue=Object(ce["a"])(le,n,a,!1,null,null,null);t["default"]=ue.exports},"0283":function(e,t,i){},"0293":function(e,t,i){"use strict";i("4880")},"02ab":function(e,t,i){},"02b8":function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-component",use:"icon-component-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-component"><path d="M0 0h54.857v54.857H0V0zm0 73.143h54.857V128H0V73.143zm73.143 0H128V128H73.143V73.143zm27.428-18.286C115.72 54.857 128 42.577 128 27.43 128 12.28 115.72 0 100.571 0 85.423 0 73.143 12.28 73.143 27.429c0 15.148 12.28 27.428 27.428 27.428z" /></symbol>'});o.a.add(s);t["default"]=s},"02c3":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ad_review_wrapper"},[i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.adInfo.VisitInfoList}},[i("el-table-column",{attrs:{prop:"VisitName",label:e.$t("trials:adReview:table:visitName"),"show-overflow-tooltip":"",width:"150"}}),e._v(" "),e._l(e.judgeQuestion,(function(t){return i("el-table-column",{key:t.armEnum,attrs:{label:e.$fd("ArmEnum",t.armEnum),align:"center",prop:"","show-overflow-tooltip":""}},[e._l(t.judgeQuestionList,(function(n,a){return i("el-table-column",{key:a,attrs:{prop:"",label:n,"show-overflow-tooltip":"",width:"150"},scopedSlots:e._u([{key:"default",fn:function(n){return[1===n.row.VisitTaskInfoList[t.index].JudgeQuestionList[a].QuestionType?i("div",[n.row.VisitTaskInfoList[t.index].JudgeQuestionList[a].DictionaryCode?i("span",[e._v(e._s(e.$fd(n.row.VisitTaskInfoList[t.index].JudgeQuestionList[a].DictionaryCode,parseInt(n.row.VisitTaskInfoList[t.index].JudgeQuestionList[a].Answer))))]):i("span",[e._v(e._s(n.row.VisitTaskInfoList[t.index].JudgeQuestionList[a].Answer))])]):2===n.row.VisitTaskInfoList[t.index].JudgeQuestionList[a].QuestionType?i("div",[n.row.VisitTaskInfoList[t.index].JudgeQuestionList[a].Answer?i("div",[i("span",[e._v(e._s(e.$fd("YesOrNo",n.row.VisitTaskInfoList[t.index].JudgeQuestionList[a].Answer)))]),e._v(" "),i("el-button",{staticStyle:{"margin-left":"5px"},attrs:{type:"text"},on:{click:function(i){return e.handleViewDetail(n.row.VisitTaskInfoList[t.index].GlobalVisitTaskId)}}},[e._v("\n "+e._s(e.$t("trials:adReview:table:view"))+"\n ")])],1):i("div",[e._v("\n "+e._s(e.$fd("YesOrNo",n.row.VisitTaskInfoList[t.index].JudgeQuestionList[a].Answer))+"\n ")])]):i("div",[e._v(e._s(n.row.VisitTaskInfoList[t.index].JudgeQuestionList[a].Answer))])]}}],null,!0)})}))],2)})),e._v(" "),i("el-table-column",{attrs:{label:e.$t("trials:adReview:table:view"),width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text",title:e.$t("trials:adReview:table:viewR1")},on:{click:function(i){return e.handleView(t.row,1)}}},[e._v("\n R1\n ")]),e._v(" "),i("el-button",{attrs:{type:"text",title:e.$t("trials:adReview:table:viewR2")},on:{click:function(i){return e.handleView(t.row,2)}}},[e._v("\n R2\n ")])]}}])})],2),e._v(" "),i("h3",[e._v(e._s(e.$t("trials:adReview:title:adResult")))]),e._v(" "),i("el-form",{ref:"adForm",staticStyle:{width:"800px"},attrs:{model:e.adForm,"label-width":"100"}},[i("el-form-item",{attrs:{label:e.$t("trials:adReview:title:choseReader"),prop:"judgeResultTaskId"}},[i("el-radio-group",{attrs:{disabled:""},model:{value:e.adForm.judgeResultTaskId,callback:function(t){e.$set(e.adForm,"judgeResultTaskId",t)},expression:"adForm.judgeResultTaskId"}},e._l(e.visitTaskArmList,(function(t){return i("el-radio",{key:t.VisitTaskId,attrs:{label:t.VisitTaskId}},[e._v("\n "+e._s(e.$fd("ArmEnum",t.ArmEnum))+"\n ")])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:adReview:title:adReason"),prop:"judgeResultRemark"}},[i("el-input",{attrs:{type:"textarea",autosize:{minRows:4,maxRows:6},disabled:""},model:{value:e.adForm.judgeResultRemark,callback:function(t){e.$set(e.adForm,"judgeResultRemark",t)},expression:"adForm.judgeResultRemark"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:adReview:title:screenShot")}},[i("el-upload",{staticClass:"disabled",attrs:{action:".png,.jpg,.jpeg","list-type":"picture-card","file-list":e.fileList,disabled:""},scopedSlots:e._u([{key:"file",fn:function(t){var n=t.file;return i("div",{},[i("img",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:n.url,alt:""}}),e._v(" "),i("span",{staticClass:"el-upload-list__item-actions"},[i("span",{staticClass:"el-upload-list__item-preview",on:{click:function(t){return e.handlePictureCardPreview(n)}}},[i("i",{staticClass:"el-icon-zoom-in"})])])])}}])},[i("i",{staticClass:"el-icon-plus",attrs:{slot:"default"},slot:"default"})]),e._v(" "),i("el-dialog",{attrs:{"append-to-body":"",visible:e.imgVisible,width:"600px"},on:{"update:visible":function(t){e.imgVisible=t}}},[i("el-image",{attrs:{src:e.imageUrl,width:"100%"}},[i("div",{staticClass:"image-slot",attrs:{slot:"placeholder"},slot:"placeholder"},[e._v("\n "+e._s(e.$t("trials:adReview:title:loading"))),i("span",{staticClass:"dot"},[e._v("...")])])])],1)],1)],1)],1)},a=[],r=(i("7514"),i("5f87")),o={name:"AReview",props:{auditInfo:{type:Object,default:function(){return{}}},rowData:{type:Object,default:function(){return{}}}},data:function(){return{adInfo:{},adForm:{},imgVisible:!1,imageUrl:"",fileList:[],visitTaskArmList:[],judgeQuestion:[]}},mounted:function(){this.initPage()},methods:{initPage:function(){var e=this,t=this.auditInfo.JudgeInfo,i=[];t.VisitInfoList.length>0&&t.VisitInfoList[0].VisitTaskInfoList.map((function(t,n){var a={armEnum:t.ArmEnum,judgeQuestionList:[],index:n};t.JudgeQuestionList.map((function(t){1===t.QuestionType?a.judgeQuestionList.push(t.QuestionName):a.judgeQuestionList.push(e.$fd("JudgeReadingQuestionType",t.QuestionType))})),i.push(a)})),this.judgeQuestion=i,this.adInfo=t,this.adForm.judgeResultTaskId=t.JudgeResultTaskId,this.adForm.judgeResultRemark=t.JudgeResultRemark,this.fileList=[],t.JudgeResultImagePathList&&(t.JudgeResultImagePathList.map((function(t){t&&e.fileList.push({name:"",url:t})})),this.adForm.judgeResultImagePathList=t.JudgeResultImagePathList),this.visitTaskArmList=t.VisitTaskArmList},handlePictureCardPreview:function(e){this.imageUrl=e.url,this.imgVisible=!0},handleViewDetail:function(e){console.log(this.rowData);var t=this.$route.query.trialId,i=Object(r["a"])(),n=this.rowData.CriterionType,a=this.rowData.ReadingTool;a=isNaN(parseInt(a))?null:parseInt(a);var o=this.rowData.IsReadingTaskViewInOrder,s=this.rowData.TrialReadingCriterionId,l="";l=0===a?"/readingDicoms?TrialReadingCriterionId=".concat(s,"&trialId=").concat(t,"&subjectCode=").concat(this.rowData.SubjectCode,"&subjectId=").concat(this.rowData.SubjectId,"&visitTaskId=").concat(e,"&isReadingTaskViewInOrder=").concat(o,"&criterionType=").concat(n,"&readingTool=").concat(a,"&TokenKey=").concat(i,"&key=").concat((new Date).getTime()):"/noneDicomReading?TrialReadingCriterionId=".concat(s,"&trialId=").concat(t,"&subjectCode=").concat(this.rowData.SubjectCode,"&subjectId=").concat(this.rowData.SubjectId,"&visitTaskId=").concat(e,"&isReadingTaskViewInOrder=").concat(o,"&criterionType=").concat(n,"&readingTool=").concat(a,"&TokenKey=").concat(i,"&key=").concat((new Date).getTime());var c=this.$router.resolve({path:l});window.open(c.href,"_blank")},handleView:function(e,t){var i=e.VisitTaskInfoList.find((function(e){return e.ArmEnum===t})),n=this.$route.query.trialId,a=Object(r["a"])(),o=this.rowData.CriterionType,s=this.rowData.ReadingTool;s=isNaN(parseInt(s))?null:parseInt(s);var l=this.rowData.IsReadingTaskViewInOrder,c=this.rowData.TrialReadingCriterionId,u="";u=0===s?"/readingDicoms?TrialReadingCriterionId=".concat(c,"&trialId=").concat(n,"&subjectCode=").concat(this.rowData.SubjectCode,"&subjectId=").concat(this.rowData.SubjectId,"&visitTaskId=").concat(i.VisitTaskId,"&isReadingTaskViewInOrder=").concat(l,"&criterionType=").concat(o,"&readingTool=").concat(s,"&TokenKey=").concat(a,"&key=").concat((new Date).getTime()):"/noneDicomReading?TrialReadingCriterionId=".concat(c,"&trialId=").concat(n,"&subjectCode=").concat(this.rowData.SubjectCode,"&subjectId=").concat(this.rowData.SubjectId,"&visitTaskId=").concat(i.VisitTaskId,"&isReadingTaskViewInOrder=").concat(l,"&criterionType=").concat(o,"&readingTool=").concat(s,"&TokenKey=").concat(a,"&key=").concat((new Date).getTime());var d=this.$router.resolve({path:u});window.open(d.href,"_blank")}}},s=o,l=(i("9755"),i("2877")),c=Object(l["a"])(s,n,a,!1,null,"61d9b27c",null);t["default"]=c.exports},"02c9":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",[i("div",{staticClass:"search"},[i("el-form",{staticClass:"base-search-form",attrs:{inline:!0,size:"mini"}},[i("el-form-item",{attrs:{label:"Group"}},[i("el-input",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.Group,callback:function(t){e.$set(e.searchData,"Group",t)},expression:"searchData.Group"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Element"}},[i("el-input",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.Element,callback:function(t){e.$set(e.searchData,"Element",t)},expression:"searchData.Element"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("admin:TagDescription")}},[i("el-input",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.TagDescription,callback:function(t){e.$set(e.searchData,"TagDescription",t)},expression:"searchData.TagDescription"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("admin:TagDescriptionCN")}},[i("el-input",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.TagDescriptionCN,callback:function(t){e.$set(e.searchData,"TagDescriptionCN",t)},expression:"searchData.TagDescriptionCN"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:e.handleReset}},[e._v(e._s(e.$t("common:button:reset")))]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.handleSearch}},[e._v(e._s(e.$t("common:button:search")))])],1)],1),e._v(" "),i("span",{staticStyle:{"margin-left":"auto"}},[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.handleAdd}},[e._v(e._s(e.$t("common:button:new")))])],1)],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:45},expression:"{bottomOffset:45}"}],attrs:{data:e.list,stripe:"",size:"small",height:"100"}},[i("el-table-column",{attrs:{type:"index",width:"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Group",label:"Group","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Element",label:"Element","show-overflow-tooltip":"","min-width":"110"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TagDescription",label:e.$t("admin:TagDescription"),"min-width":"110"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TagDescriptionCN",label:e.$t("admin:TagDescriptionCN"),"min-width":"110"}}),e._v(" "),i("el-table-column",{attrs:{prop:"ValueRepresentation",label:e.$t("admin:ValueRepresentation"),"min-width":"110"}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("admin:IsFixed"),width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},on:{change:function(i){return e.switchChange(i,t.row)}},model:{value:t.row.IsFixed,callback:function(i){e.$set(t.row,"IsFixed",i)},expression:"scope.row.IsFixed"}})]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ReplaceValue",label:e.$t("admin:ReplaceValue"),"min-width":"110"}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("admin:IsEnable"),width:"100",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},on:{change:function(i){return e.switchChange(i,t.row)}},model:{value:t.row.IsEnable,callback:function(i){e.$set(t.row,"IsEnable",i)},expression:"scope.row.IsEnable"}})]}}])}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"200",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("\n "+e._s(e.$t("common:button:edit"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("\n "+e._s(e.$t("common:button:delete"))+"\n ")])]}}])})],1),e._v(" "),i("AddDICOMConfig",{ref:"AddDICOMConfig",on:{getList:e.getList}})],1)},a=[],r=(i("20d6"),i("e56e")),o=i("b8ae"),s=i("f36a"),l=function(){return{Group:"",Element:"",TagDescription:"",IsAdd:!1,TagDescriptionCN:"",PageIndex:1,PageSize:500}},c={name:"Anonymization",components:{BoxContent:s["default"],AddDICOMConfig:o["default"]},data:function(){return{searchData:l(),list:[],total:0,loading:!1,rowData:{},model_cfg:{visible:!1,showClose:!0,width:"600px",title:""}}},mounted:function(){this.getList()},methods:{switchChange:function(e,t){var i=this;this.loading=!0,Object(r["t"])(t).then((function(e){i.$message.success("Saved successfully!"),i.loading=!1})).catch((function(){i.loading=!1}))},handleAdd:function(){var e=this;this.$nextTick((function(){e.$refs["AddDICOMConfig"].openDialog(e.$t("common:button:new"),{})}))},handleEdit:function(e){var t=this;this.$nextTick((function(){t.$refs["AddDICOMConfig"].openDialog(t.$t("common:button:edit"),e)}))},handleDelete:function(e){var t=this;this.$confirm(this.$t("common:message:delete"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.loading=!0,Object(r["O"])(e.Id).then((function(i){t.loading=!1,i.IsSuccess&&(t.list.splice(t.list.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success("Deleted successfully!"))})).catch((function(){t.loading=!1}))}))},getList:function(){var e=this;this.loading=!0,Object(r["xb"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData})).catch((function(){e.loading=!1}))},handleSearch:function(){this.getList()},handleReset:function(){this.searchData=l(),this.getList()}}},u=c,d=i("2877"),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},"0340":function(e,t,i){"use strict";i.d(t,"a",(function(){return r}));i("ac6a");var n=i("e8ae"),a=i.n(n);function r(e,t,i,n,r,o,s,l,c){var u=new a.a.Workbook,d=u.addWorksheet(e);d.columns=t;var f=String.fromCharCode(64+t.length);d.mergeCells("A1:".concat(f,"2")),d.getCell("A1").value=i,d.getCell("A1").alignment={vertical:"middle",horizontal:"center"},d.getCell("A1").font={name:"SimSun",family:4,size:13,bold:!0},d.mergeCells("A3:".concat(f,"3")),d.getCell("A3").value=n,d.getCell("A3").alignment={vertical:"middle",horizontal:"right"},d.getRow(4).values=r,d.getRow(4).font={name:"SimSun",family:4,size:11,bold:!0},d.getRow(4).alignment={vertical:"middle",horizontal:"left"},d.addRows(o),l.forEach((function(e){d.getColumn(e.colIndex).numFmt=e.format})),d.addRow(s),d.getRow(o.length+5).font={name:"SimSun",family:4,size:11,bold:!0},c&&d.mergeCells(c),d.eachRow((function(e,t){t>3&&e.eachCell((function(e){e.alignment={vertical:"center",horizontal:"left"},e.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}}))})),u.xlsx.writeBuffer({base64:!0}).then((function(t){var n=new Blob([t],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});if("msSaveOrOpenBlob"in navigator)window.navigator.msSaveOrOpenBlob(n,"".concat(e," ").concat(i,".xlsx"));else{var a=document.createElement("a"),r=URL.createObjectURL(n);a.href=r,a.download="".concat(e," ").concat(i,".xlsx"),document.body.appendChild(a),a.click(),setTimeout((function(){document.body.removeChild(a),window.URL.revokeObjectURL(r)}),0)}}))}},"0352":function(e,t,i){var n=i("6cb7"),a=i("b12f"),r=i("0f99"),o=r.detectSourceFormat,s=i("93d0"),l=s.SERIES_LAYOUT_BY_COLUMN;n.extend({type:"dataset",defaultOption:{seriesLayoutBy:l,sourceHeader:null,dimensions:null,source:null},optionUpdated:function(){o(this)}}),a.extend({type:"dataset"})},"038b":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("el-form",{ref:"trialStatusForm",attrs:{model:e.form,rules:e.rules,size:"small","label-width":"100px"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:e.$t("trials:trials-list:table:status"),prop:"trialStatusStr"}},[i("el-radio-group",{on:{change:e.handleTrialStatusChange},model:{value:e.form.trialStatusStr,callback:function(t){e.$set(e.form,"trialStatusStr",t)},expression:"form.trialStatusStr"}},[i("el-radio",{attrs:{label:"Initializing",disabled:""}},[e._v(e._s(e.$fd("TrialStatusEnum","Initializing")))]),e._v(" "),i("el-radio",{attrs:{label:"Ongoing"}},[e._v(e._s(e.$fd("TrialStatusEnum","Ongoing")))]),e._v(" "),i("el-radio",{attrs:{label:"Stopped",disabled:"Completed"===e.originalStatus||"Initializing"===e.originalStatus}},[e._v("\n "+e._s(e.$fd("TrialStatusEnum","Stopped"))+"\n ")]),e._v(" "),i("el-radio",{attrs:{label:"Completed",disabled:"Stopped"===e.originalStatus||"Initializing"===e.originalStatus}},[e._v("\n "+e._s(e.$fd("TrialStatusEnum","Completed"))+"\n ")])],1)],1),e._v(" "),"Completed"!==e.originalStatus&&"Stopped"!==e.originalStatus||"Ongoing"!==e.form.trialStatusStr?e._e():i("el-form-item",{attrs:{label:e.$t("trials:trials-list:label:reason"),prop:"reason"}},[i("el-input",{attrs:{type:"textarea",autosize:""},model:{value:e.form.reason,callback:function(t){e.$set(e.form,"reason",t)},expression:"form.reason"}})],1),e._v(" "),e.warningMessage?i("el-form-item",{attrs:{label:""}},[i("span",{staticStyle:{color:"red"}},[e._v(e._s(e.warningMessage))])]):e._e()],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{size:"small",type:"primary",disabled:e.btnLoading},on:{click:e.handleCancel}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",disabled:e.originalStatus===e.form.trialStatusStr,loading:e.btnLoading},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)]),e._v(" "),e.signVisible?i("el-dialog",{attrs:{visible:e.signVisible,"close-on-click-modal":!1,width:"600px","append-to-body":""},on:{"update:visible":function(t){e.signVisible=t}}},[i("div",{attrs:{slot:"title"},slot:"title"},[i("span",{staticStyle:{"font-size":"18px"}},[e._v(e._s(e.$t("common:dialogTitle:sign")))]),e._v(" "),i("span",{staticStyle:{"font-size":"12px","margin-left":"5px"}},[e._v(e._s("("+e.$t("common:label:sign")+e.currentUser+")"))])]),e._v(" "),i("SignForm",{ref:"signForm",attrs:{"trial-id":e.trialId,"sign-code-enum":e.signCode},on:{closeDialog:e.closeSignDialog}})],1):e._e()],1)},a=[],r=i("db72"),o=(i("ac6a"),i("456d"),i("adca")),s=i("25f2"),l=i("7a9e"),c={name:"TrialStatusForm",components:{SignForm:s["default"]},props:{data:{type:Object,default:function(){return{}}}},data:function(){return{form:{trialStatusStr:"",trialId:"",reason:""},originalStatus:"",rules:{trialStatusStr:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur"]}],reason:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:["blur"]}]},btnLoading:!1,signVisible:!1,currentUser:zzSessionStorage.getItem("userName"),signCode:l["default"].processSignature.TrialStatusChange,warningMessage:"",trialId:""}},mounted:function(){this.initForm()},methods:{initForm:function(){if(Object.keys(this.data).length>0){var e=Object(r["a"])({},this.data),t=e.Id,i=e.TrialStatusStr;this.form.trialId=t,this.form.trialStatusStr=i,this.originalStatus=i,this.form.reason="",this.trialId=t}},handleTrialStatusChange:function(e){this.warningMessage="","Initializing"===this.originalStatus&&"Ongoing"===e?this.warningMessage=this.$t("trials:trials-list:message:changeStatusMes1"):"Ongoing"===this.originalStatus&&"Completed"===e?this.warningMessage=this.$t("trials:trials-list:message:changeStatusMes2"):"Ongoing"===this.originalStatus&&"Stopped"===e&&(this.warningMessage=this.$t("trials:trials-list:message:changeStatusMes3"))},handleSave:function(){var e=this;this.$refs.trialStatusForm.validate((function(t){t&&(e.signVisible=!0)}))},changeStatus:function(e){var t=this;this.btnLoading=!0;var i={data:{trialId:this.form.trialId,trialStatusStr:this.form.trialStatusStr,reason:this.form.reason},signInfo:e};Object(o["a"])(i).then((function(e){t.btnLoading=!1,t.$refs["signForm"].btnLoading=!1,t.signVisible=!1,t.$emit("getList"),t.$message.success(t.$t("common:message:savedSuccessfully")),t.$emit("closeDialog")})).catch((function(){t.btnLoading=!1,t.$refs["signForm"].btnLoading=!1}))},handleCancel:function(){this.$emit("closeDialog")},closeSignDialog:function(e,t){e?this.changeStatus(t):this.signVisible=!1}}},u=c,d=i("2877"),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},"039a":function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-download",use:"icon-download-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-download"><defs><style type="text/css"></style></defs><path d="M768.35456 416a256 256 0 1 0-512 0 192 192 0 1 0 0 384v64a256 256 0 0 1-58.88-505.216 320.128 320.128 0 0 1 629.76 0A256.128 256.128 0 0 1 768.35456 864v-64a192 192 0 0 0 0-384z m-512 384h64v64H256.35456v-64z m448 0h64v64h-64v-64z" fill="#333333" p-id="3063" /><path d="M539.04256 845.248V512.192a32.448 32.448 0 0 0-32-32.192c-17.664 0-32 14.912-32 32.192v333.056l-36.096-36.096a32.192 32.192 0 0 0-45.056 0.192 31.616 31.616 0 0 0-0.192 45.056l90.88 90.944a31.36 31.36 0 0 0 22.528 9.088 30.08 30.08 0 0 0 22.4-9.088l90.88-90.88a32.192 32.192 0 0 0-0.192-45.12 31.616 31.616 0 0 0-45.056-0.192l-36.096 36.096z" fill="#333333" p-id="3064" /></symbol>'});o.a.add(s);t["default"]=s},"03e9":function(e,t,i){},"0417":function(e,t,i){},"0465":function(e,t,i){"use strict";i("a34c")},"046d":function(e,t,i){},"04f6":function(e,t){var i=32,n=7;function a(e){var t=0;while(e>=i)t|=1&e,e>>=1;return e+t}function r(e,t,i,n){var a=t+1;if(a===i)return 1;if(n(e[a++],e[t])<0){while(a<i&&n(e[a],e[a-1])<0)a++;o(e,t,a)}else while(a<i&&n(e[a],e[a-1])>=0)a++;return a-t}function o(e,t,i){i--;while(t<i){var n=e[t];e[t++]=e[i],e[i--]=n}}function s(e,t,i,n,a){for(n===t&&n++;n<i;n++){var r,o=e[n],s=t,l=n;while(s<l)r=s+l>>>1,a(o,e[r])<0?l=r:s=r+1;var c=n-s;switch(c){case 3:e[s+3]=e[s+2];case 2:e[s+2]=e[s+1];case 1:e[s+1]=e[s];break;default:while(c>0)e[s+c]=e[s+c-1],c--}e[s]=o}}function l(e,t,i,n,a,r){var o=0,s=0,l=1;if(r(e,t[i+a])>0){s=n-a;while(l<s&&r(e,t[i+a+l])>0)o=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{s=a+1;while(l<s&&r(e,t[i+a-l])<=0)o=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s);var c=o;o=a-l,l=a-c}o++;while(o<l){var u=o+(l-o>>>1);r(e,t[i+u])>0?o=u+1:l=u}return l}function c(e,t,i,n,a,r){var o=0,s=0,l=1;if(r(e,t[i+a])<0){s=a+1;while(l<s&&r(e,t[i+a-l])<0)o=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s);var c=o;o=a-l,l=a-c}else{s=n-a;while(l<s&&r(e,t[i+a+l])>=0)o=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}o++;while(o<l){var u=o+(l-o>>>1);r(e,t[i+u])<0?l=u:o=u+1}return l}function u(e,t){var i,a,r=n,o=0,s=0;o=e.length;var u=[];function d(e,t){i[s]=e,a[s]=t,s+=1}function f(){while(s>1){var e=s-2;if(e>=1&&a[e-1]<=a[e]+a[e+1]||e>=2&&a[e-2]<=a[e]+a[e-1])a[e-1]<a[e+1]&&e--;else if(a[e]>a[e+1])break;p(e)}}function h(){while(s>1){var e=s-2;e>0&&a[e-1]<a[e+1]&&e--,p(e)}}function p(n){var r=i[n],o=a[n],u=i[n+1],d=a[n+1];a[n]=o+d,n===s-3&&(i[n+1]=i[n+2],a[n+1]=a[n+2]),s--;var f=c(e[u],e,r,o,0,t);r+=f,o-=f,0!==o&&(d=l(e[r+o-1],e,u,d,d-1,t),0!==d&&(o<=d?m(r,o,u,d):g(r,o,u,d)))}function m(i,a,o,s){var d=0;for(d=0;d<a;d++)u[d]=e[i+d];var f=0,h=o,p=i;if(e[p++]=e[h++],0!==--s)if(1!==a){var m,g,v,b=r;while(1){m=0,g=0,v=!1;do{if(t(e[h],u[f])<0){if(e[p++]=e[h++],g++,m=0,0===--s){v=!0;break}}else if(e[p++]=u[f++],m++,g=0,1===--a){v=!0;break}}while((m|g)<b);if(v)break;do{if(m=c(e[h],u,f,a,0,t),0!==m){for(d=0;d<m;d++)e[p+d]=u[f+d];if(p+=m,f+=m,a-=m,a<=1){v=!0;break}}if(e[p++]=e[h++],0===--s){v=!0;break}if(g=l(u[f],e,h,s,0,t),0!==g){for(d=0;d<g;d++)e[p+d]=e[h+d];if(p+=g,h+=g,s-=g,0===s){v=!0;break}}if(e[p++]=u[f++],1===--a){v=!0;break}b--}while(m>=n||g>=n);if(v)break;b<0&&(b=0),b+=2}if(r=b,r<1&&(r=1),1===a){for(d=0;d<s;d++)e[p+d]=e[h+d];e[p+s]=u[f]}else{if(0===a)throw new Error;for(d=0;d<a;d++)e[p+d]=u[f+d]}}else{for(d=0;d<s;d++)e[p+d]=e[h+d];e[p+s]=u[f]}else for(d=0;d<a;d++)e[p+d]=u[f+d]}function g(i,a,o,s){var d=0;for(d=0;d<s;d++)u[d]=e[o+d];var f=i+a-1,h=s-1,p=o+s-1,m=0,g=0;if(e[p--]=e[f--],0!==--a)if(1!==s){var v=r;while(1){var b=0,y=0,w=!1;do{if(t(u[h],e[f])<0){if(e[p--]=e[f--],b++,y=0,0===--a){w=!0;break}}else if(e[p--]=u[h--],y++,b=0,1===--s){w=!0;break}}while((b|y)<v);if(w)break;do{if(b=a-c(u[h],e,i,a,a-1,t),0!==b){for(p-=b,f-=b,a-=b,g=p+1,m=f+1,d=b-1;d>=0;d--)e[g+d]=e[m+d];if(0===a){w=!0;break}}if(e[p--]=u[h--],1===--s){w=!0;break}if(y=s-l(e[f],u,0,s,s-1,t),0!==y){for(p-=y,h-=y,s-=y,g=p+1,m=h+1,d=0;d<y;d++)e[g+d]=u[m+d];if(s<=1){w=!0;break}}if(e[p--]=e[f--],0===--a){w=!0;break}v--}while(b>=n||y>=n);if(w)break;v<0&&(v=0),v+=2}if(r=v,r<1&&(r=1),1===s){for(p-=a,f-=a,g=p+1,m=f+1,d=a-1;d>=0;d--)e[g+d]=e[m+d];e[p]=u[h]}else{if(0===s)throw new Error;for(m=p-(s-1),d=0;d<s;d++)e[m+d]=u[d]}}else{for(p-=a,f-=a,g=p+1,m=f+1,d=a-1;d>=0;d--)e[g+d]=e[m+d];e[p]=u[h]}else for(m=p-(s-1),d=0;d<s;d++)e[m+d]=u[d]}i=[],a=[],this.mergeRuns=f,this.forceMergeRuns=h,this.pushRun=d}function d(e,t,n,o){n||(n=0),o||(o=e.length);var l=o-n;if(!(l<2)){var c=0;if(l<i)return c=r(e,n,o,t),void s(e,n,o,n+c,t);var d=new u(e,t),f=a(l);do{if(c=r(e,n,o,t),c<f){var h=l;h>f&&(h=f),s(e,n,n+h,n+c,t),c=h}d.pushRun(n,c),d.mergeRuns(),l-=c,n+=c}while(0!==l);d.forceMergeRuns()}}e.exports=d},"0560":function(e,t,i){"use strict";i("5616")},"059d":function(e,t,i){},"0636":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"wscn-http404-container"},[i("div",{staticClass:"wscn-http404",staticStyle:{display:"flex","align-items":"center"}},[e._m(0),e._v(" "),i("div",{staticClass:"bullshit"},[i("div",{staticClass:"bullshit__oops",staticStyle:{color:"#00d1b2"}},[e._v("出错了!")]),e._v(" "),i("div",{staticClass:"bullshit__headline"},[e._v(e._s(e.message))]),e._v(" "),i("div",{staticClass:"bullshit__return-home",staticStyle:{background:"#00d1b2"},on:{click:function(t){return e.$router.push({path:"/login"})}}},[e._v("返回")])])])])},a=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"pic-404"},[n("img",{staticClass:"pic-404__parent",attrs:{src:i("856c"),alt:"404"}}),e._v(" "),n("img",{staticClass:"pic-404__child left",attrs:{src:i("26fc"),alt:"404"}}),e._v(" "),n("img",{staticClass:"pic-404__child mid",attrs:{src:i("26fc"),alt:"404"}}),e._v(" "),n("img",{staticClass:"pic-404__child right",attrs:{src:i("26fc"),alt:"404"}})])}],r={computed:{message:function(){return this.$route.query.ErrorMessage}}},o=r,s=(i("1f2b"),i("2877")),l=Object(s["a"])(o,n,a,!1,null,"0a774d6a",null);t["default"]=l.exports},"0638":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-card",{attrs:{shadow:"never"}},[i("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[i("span",[e._v(e._s(e.doctorName)+" ' "+e._s(5==e.listQuery.Status?"Pending":8==e.listQuery.Status?"Approved":"Reading")+" trials")])]),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],ref:"trialsList",staticClass:"table",attrs:{data:e.list,stripe:"",size:"small",height:e.tableHeight},on:{"sort-change":e.handleSortChange}},[i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Code","min-width":"110",label:"Trial ID","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Expedited","min-width":"110",label:"Expedited","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(0==t.row.Expedited?"No":1==t.row.Expedited?"24H":"48H"))]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Indication",label:"Indication","min-width":"120","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Phase","min-width":"100",label:"Phase","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"ReviewType",label:"Review Type","min-width":"120","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Criterion",label:"Criteria","min-width":"120","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Modalities",label:"Modalities","min-width":"120",formatter:e.ModalitiesFormatter,"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"CRO",label:"CRO","min-width":"120","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Sponsor",label:"Sponsor","min-width":"120","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:"Date Created","min-width":"120","show-overflow-tooltip":"",formatter:e.timeFormatter,sortable:"custom"}})],1),e._v(" "),i("div",{staticStyle:{"margin-top":"5px","text-align":"right"}},[i("pagination",{attrs:{total:e.total,page:e.listQuery.PageIndex,limit:e.listQuery.PageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"PageIndex",t)},"update:limit":function(t){return e.$set(e.listQuery,"PageSize",t)},pagination:e.getList}})],1)],1)},a=[],r=(i("7f7f"),i("7878")),o=i("333d"),s=i("33ba"),l=i("4360"),c=i("a599"),u={name:"TrialStats",components:{Pagination:o["default"]},data:function(){return{list:[],listQuery:{DoctorId:"",Status:0,PageIndex:1,PageSize:20,Asc:!1,SortField:""},total:0,doctorName:"",listLoading:!1,tableHeight:document.documentElement.clientHeight-160}},mounted:function(){this.$router.currentRoute.query.TokenKey&&(l["a"].dispatch("user/setToken",this.$router.currentRoute.query.TokenKey),Object(c["a"])("TokenKey","")),this.listQuery.DoctorId=this.$router.currentRoute.query.doctorId,this.listQuery.Status=this.$router.currentRoute.query.status,this.doctorName=this.$router.currentRoute.query.name,this.getList()},methods:{getList:function(){var e=this;this.listLoading=!0,Object(s["t"])(this.listQuery).then((function(t){e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount,e.listLoading=!1})).catch((function(){e.listLoading=!1}))},handleSortChange:function(e){"ascending"===e.order?this.listQuery.Asc=!0:this.listQuery.Asc=!1,"ReviewType"===e.prop?e.prop="ReviewTypeId":"Criterion"===e.prop&&(e.prop="CriterionId"),this.listQuery.SortField=e.prop,this.listQuery.PageIndex=1,this.getList()},ModalitiesFormatter:function(e,t){if(e.ModalityList.length>0)return e.ModalityList.join(", ")},timeFormatter:function(e){if(e.CreateTime)return Object(r["formatUTCTime"])(e.CreateTime)},handleTrialstatus:function(e){return"RFP"===e.TrialStatusStr?"Request for Proposal":"Submitted"===e.TrialStatusStr?"CVs Submitted":"Approved"===e.TrialStatusStr||"Approved"===e.TrialStatusStr?"Readers Approved":e.TrialStatusStr}}},d=u,f=i("2877"),h=Object(f["a"])(d,n,a,!1,null,null,null);t["default"]=h.exports},"0641":function(e,t,i){"use strict";i("5f5b")},"0655":function(e,t,i){var n=i("8728"),a=1e-8;function r(e,t){return Math.abs(e-t)<a}function o(e,t,i){var a=0,o=e[0];if(!o)return!1;for(var s=1;s<e.length;s++){var l=e[s];a+=n(o[0],o[1],l[0],l[1],t,i),o=l}var c=e[0];return r(o[0],c[0])&&r(o[1],c[1])||(a+=n(o[0],o[1],c[0],c[1],t,i)),0!==a}t.contain=o},"0662":function(e,t,i){"use strict";i.d(t,"d",(function(){return a})),i.d(t,"g",(function(){return r})),i.d(t,"a",(function(){return o})),i.d(t,"b",(function(){return s})),i.d(t,"c",(function(){return l})),i.d(t,"f",(function(){return c})),i.d(t,"e",(function(){return u}));var n=i("b775");function a(e,t,i){return Object(n["a"])({url:"/TrialExternalUser/deleteTrialExternalUser/".concat(e,"/").concat(t,"/").concat(i),method:"delete"})}function r(e){return Object(n["a"])({url:"/Inspection/configTrialBasicInfo/TrialConfigSignatureConfirm",method:"post",data:e})}function o(e){return Object(n["a"])({url:"/Inspection/configTrialBasicInfo/ConfigTrialBasicInfoConfirm",method:"post",data:e})}function s(e){return Object(n["a"])({url:"/Inspection/configTrialBasicInfo/ConfigTrialProcessInfoConfirm",method:"post",data:e})}function l(e){return Object(n["a"])({url:"/Inspection/configTrialBasicInfo/ConfigTrialUrgentInfoConfirm",method:"post",data:e})}function c(e){return Object(n["a"])({url:"/ReadingQuestion/setTrialJudgyInfo",method:"post",data:e})}function u(e){return Object(n["a"])({url:"/ReadingQuestion/getTrialJudgyInfo",method:"post",data:e})}},"0676":function(e,t){function i(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},"06ad":function(e,t,i){var n=i("4436"),a=i("41ef"),r=i("6d8b"),o=r.isArrayLike,s=Array.prototype.slice;function l(e,t){return e[t]}function c(e,t,i){e[t]=i}function u(e,t,i){return(t-e)*i+e}function d(e,t,i){return i>.5?t:e}function f(e,t,i,n,a){var r=e.length;if(1===a)for(var o=0;o<r;o++)n[o]=u(e[o],t[o],i);else{var s=r&&e[0].length;for(o=0;o<r;o++)for(var l=0;l<s;l++)n[o][l]=u(e[o][l],t[o][l],i)}}function h(e,t,i){var n=e.length,a=t.length;if(n!==a){var r=n>a;if(r)e.length=a;else for(var o=n;o<a;o++)e.push(1===i?t[o]:s.call(t[o]))}var l=e[0]&&e[0].length;for(o=0;o<e.length;o++)if(1===i)isNaN(e[o])&&(e[o]=t[o]);else for(var c=0;c<l;c++)isNaN(e[o][c])&&(e[o][c]=t[o][c])}function p(e,t,i){if(e===t)return!0;var n=e.length;if(n!==t.length)return!1;if(1===i){for(var a=0;a<n;a++)if(e[a]!==t[a])return!1}else{var r=e[0].length;for(a=0;a<n;a++)for(var o=0;o<r;o++)if(e[a][o]!==t[a][o])return!1}return!0}function m(e,t,i,n,a,r,o,s,l){var c=e.length;if(1===l)for(var u=0;u<c;u++)s[u]=g(e[u],t[u],i[u],n[u],a,r,o);else{var d=e[0].length;for(u=0;u<c;u++)for(var f=0;f<d;f++)s[u][f]=g(e[u][f],t[u][f],i[u][f],n[u][f],a,r,o)}}function g(e,t,i,n,a,r,o){var s=.5*(i-e),l=.5*(n-t);return(2*(t-i)+s+l)*o+(-3*(t-i)-2*s-l)*r+s*a+t}function v(e){if(o(e)){var t=e.length;if(o(e[0])){for(var i=[],n=0;n<t;n++)i.push(s.call(e[n]));return i}return s.call(e)}return e}function b(e){return e[0]=Math.floor(e[0]),e[1]=Math.floor(e[1]),e[2]=Math.floor(e[2]),"rgba("+e.join(",")+")"}function y(e){var t=e[e.length-1].value;return o(t&&t[0])?2:1}function w(e,t,i,r,s,l){var c=e._getter,v=e._setter,w="spline"===t,_=r.length;if(_){var I,x=r[0].value,S=o(x),T=!1,C=!1,k=S?y(r):0;r.sort((function(e,t){return e.time-t.time})),I=r[_-1].time;for(var R=[],D=[],L=r[0].value,O=!0,$=0;$<_;$++){R.push(r[$].time/I);var N=r[$].value;if(S&&p(N,L,k)||!S&&N===L||(O=!1),L=N,"string"===typeof N){var A=a.parse(N);A?(N=A,T=!0):C=!0}D.push(N)}if(l||!O){var P=D[_-1];for($=0;$<_-1;$++)S?h(D[$],P,k):!isNaN(D[$])||isNaN(P)||C||T||(D[$]=P);S&&h(c(e._target,s),P,k);var E,M,F,j,V,q,z=0,B=0;if(T)var U=[0,0,0,0];var Q=function(e,t){var i;if(t<0)i=0;else if(t<B){for(E=Math.min(z+1,_-1),i=E;i>=0;i--)if(R[i]<=t)break;i=Math.min(i,_-2)}else{for(i=z;i<_;i++)if(R[i]>t)break;i=Math.min(i-1,_-2)}z=i,B=t;var n=R[i+1]-R[i];if(0!==n)if(M=(t-R[i])/n,w)if(j=D[i],F=D[0===i?i:i-1],V=D[i>_-2?_-1:i+1],q=D[i>_-3?_-1:i+2],S)m(F,j,V,q,M,M*M,M*M*M,c(e,s),k);else{if(T)a=m(F,j,V,q,M,M*M,M*M*M,U,1),a=b(U);else{if(C)return d(j,V,M);a=g(F,j,V,q,M,M*M,M*M*M)}v(e,s,a)}else if(S)f(D[i],D[i+1],M,c(e,s),k);else{var a;if(T)f(D[i],D[i+1],M,U,1),a=b(U);else{if(C)return d(D[i],D[i+1],M);a=u(D[i],D[i+1],M)}v(e,s,a)}},H=new n({target:e._target,life:I,loop:e._loop,delay:e._delay,onframe:Q,ondestroy:i});return t&&"spline"!==t&&(H.easing=t),H}}}var _=function(e,t,i,n){this._tracks={},this._target=e,this._loop=t||!1,this._getter=i||l,this._setter=n||c,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};_.prototype={when:function(e,t){var i=this._tracks;for(var n in t)if(t.hasOwnProperty(n)){if(!i[n]){i[n]=[];var a=this._getter(this._target,n);if(null==a)continue;0!==e&&i[n].push({time:0,value:v(a)})}i[n].push({time:e,value:t[n]})}return this},during:function(e){return this._onframeList.push(e),this},pause:function(){for(var e=0;e<this._clipList.length;e++)this._clipList[e].pause();this._paused=!0},resume:function(){for(var e=0;e<this._clipList.length;e++)this._clipList[e].resume();this._paused=!1},isPaused:function(){return!!this._paused},_doneCallback:function(){this._tracks={},this._clipList.length=0;for(var e=this._doneList,t=e.length,i=0;i<t;i++)e[i].call(this)},start:function(e,t){var i,n=this,a=0,r=function(){a--,a||n._doneCallback()};for(var o in this._tracks)if(this._tracks.hasOwnProperty(o)){var s=w(this,e,r,this._tracks[o],o,t);s&&(this._clipList.push(s),a++,this.animation&&this.animation.addClip(s),i=s)}if(i){var l=i.onframe;i.onframe=function(e,t){l(e,t);for(var i=0;i<n._onframeList.length;i++)n._onframeList[i](e,t)}}return a||this._doneCallback(),this},stop:function(e){for(var t=this._clipList,i=this.animation,n=0;n<t.length;n++){var a=t[n];e&&a.onframe(this._target,1),i&&i.removeClip(a)}t.length=0},delay:function(e){return this._delay=e,this},done:function(e){return e&&this._doneList.push(e),this},getClips:function(){return this._clipList}};var I=_;e.exports=I},"06b3":function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-tool",use:"icon-tool-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-tool"><defs><style type="text/css"></style></defs><path d="M898.831744 900.517641 103.816972 900.517641c-36.002982 0-65.363683-29.286-65.363683-65.313541l0-554.949184c0-36.041868 29.361725-65.326844 65.363683-65.326844l795.015795 0c36.002982 0 65.198931 29.284977 65.198931 65.326844l0 554.949184C964.030675 871.231641 934.834726 900.517641 898.831744 900.517641L898.831744 900.517641zM103.816972 255.593236c-13.576203 0-24.711821 11.085476-24.711821 24.662703l0 554.949184c0 13.576203 11.136641 24.662703 24.711821 24.662703l795.015795 0c13.577227 0 24.547069-11.086499 24.547069-24.662703l0-554.949184c0-13.577227-10.970866-24.662703-24.547069-24.662703L103.816972 255.593236 103.816972 255.593236zM664.346245 251.774257c-11.161201 0-20.332071-9.080819-20.332071-20.332071l0-101.278661c0-13.576203-11.047614-24.623817-24.699542-24.623817L383.181611 105.539708c-13.576203 0-24.712845 11.04659-24.712845 24.623817l0 101.278661c0 11.252275-9.041934 20.332071-20.332071 20.332071-11.20111 0-20.319791-9.080819-20.319791-20.332071l0-101.278661c0-35.989679 29.323862-65.275679 65.364707-65.275679l236.133022 0c36.06745 0 65.402569 29.284977 65.402569 65.275679l0 101.278661C684.717202 242.694461 675.636383 251.774257 664.346245 251.774257L664.346245 251.774257zM413.233044 521.725502 75.694471 521.725502c-11.163247 0-20.333094-9.117658-20.333094-20.35663 0-11.252275 9.169847-20.332071 20.333094-20.332071l337.538573 0c11.277858 0 20.319791 9.080819 20.319791 20.332071C433.552835 512.607844 424.510902 521.725502 413.233044 521.725502L413.233044 521.725502zM912.894018 521.725502 575.367725 521.725502c-11.213389 0-20.332071-9.117658-20.332071-20.35663 0-11.252275 9.118682-20.332071 20.332071-20.332071l337.526293 0c11.290137 0 20.332071 9.080819 20.332071 20.332071C933.226089 512.607844 924.184155 521.725502 912.894018 521.725502L912.894018 521.725502zM557.56322 634.217552 445.085496 634.217552c-11.213389 0-20.332071-9.079796-20.332071-20.331048l0-168.763658c0-11.251252 9.118682-20.332071 20.332071-20.332071l112.478747 0c11.290137 0 20.370956 9.080819 20.370956 20.332071l0 168.763658C577.934177 625.137757 568.853357 634.217552 557.56322 634.217552L557.56322 634.217552zM465.417567 593.514525l71.827909 0L537.245476 465.454918l-71.827909 0L465.417567 593.514525 465.417567 593.514525z" p-id="1685" fill="#bfbfbf" /></symbol>'});o.a.add(s);t["default"]=s},"06c7":function(e,t,i){var n=i("6d8b"),a=i("31d9"),r=i("6179"),o=i("b1d4"),s=function(e,t){this.name=e||"",this.depth=0,this.height=0,this.parentNode=null,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.hostTree=t};function l(e){this.root,this.data,this._nodes=[],this.hostModel=e}function c(e,t){var i=t.children;e.parentNode!==t&&(i.push(e),e.parentNode=t)}s.prototype={constructor:s,isRemoved:function(){return this.dataIndex<0},eachNode:function(e,t,i){"function"===typeof e&&(i=t,t=e,e=null),e=e||{},n.isString(e)&&(e={order:e});var a,r=e.order||"preorder",o=this[e.attr||"children"];"preorder"===r&&(a=t.call(i,this));for(var s=0;!a&&s<o.length;s++)o[s].eachNode(e,t,i);"postorder"===r&&t.call(i,this)},updateDepthAndHeight:function(e){var t=0;this.depth=e;for(var i=0;i<this.children.length;i++){var n=this.children[i];n.updateDepthAndHeight(e+1),n.height>t&&(t=n.height)}this.height=t+1},getNodeById:function(e){if(this.getId()===e)return this;for(var t=0,i=this.children,n=i.length;t<n;t++){var a=i[t].getNodeById(e);if(a)return a}},contains:function(e){if(e===this)return!0;for(var t=0,i=this.children,n=i.length;t<n;t++){var a=i[t].contains(e);if(a)return a}},getAncestors:function(e){var t=[],i=e?this:this.parentNode;while(i)t.push(i),i=i.parentNode;return t.reverse(),t},getValue:function(e){var t=this.hostTree.data;return t.get(t.getDimension(e||"value"),this.dataIndex)},setLayout:function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},getLayout:function(){return this.hostTree.data.getItemLayout(this.dataIndex)},getModel:function(e){if(!(this.dataIndex<0)){var t=this.hostTree,i=t.data.getItemModel(this.dataIndex);return i.getModel(e)}},setVisual:function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},getVisual:function(e,t){return this.hostTree.data.getItemVisual(this.dataIndex,e,t)},getRawIndex:function(){return this.hostTree.data.getRawIndex(this.dataIndex)},getId:function(){return this.hostTree.data.getId(this.dataIndex)},isAncestorOf:function(e){var t=e.parentNode;while(t){if(t===this)return!0;t=t.parentNode}return!1},isDescendantOf:function(e){return e!==this&&e.isAncestorOf(this)}},l.prototype={constructor:l,type:"tree",eachNode:function(e,t,i){this.root.eachNode(e,t,i)},getNodeByDataIndex:function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},getNodeByName:function(e){return this.root.getNodeByName(e)},update:function(){for(var e=this.data,t=this._nodes,i=0,n=t.length;i<n;i++)t[i].dataIndex=-1;for(i=0,n=e.count();i<n;i++)t[e.getRawIndex(i)].dataIndex=i},clearLayouts:function(){this.data.clearItemLayouts()}},l.createTree=function(e,t,i){var u=new l(t),d=[],f=1;function h(e,t){var i=e.value;f=Math.max(f,n.isArray(i)?i.length:1),d.push(e);var a=new s(e.name,u);t?c(a,t):u.root=a,u._nodes.push(a);var r=e.children;if(r)for(var o=0;o<r.length;o++)h(r[o],a)}h(e),u.root.updateDepthAndHeight(0);var p=o(d,{coordDimensions:["value"],dimensionsCount:f}),m=new r(p,t);return m.initData(d),i&&i(m),a({mainData:m,struct:u,structAttr:"tree"}),u.update(),u};var u=l;e.exports=u},"06cf":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"canvas",staticClass:"cornerstone-element",staticStyle:{width:"100%",height:"100%",position:"relative"},attrs:{id:"canvas","element-loading-text":"Loading...","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{contextmenu:function(t){return t.preventDefault(),e.onContextmenu(t)},mousemove:e.sliderMousemove,mouseup:e.sliderMouseup}},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.dicomInfo.series,expression:"dicomInfo.series"}],staticClass:"info-series"},[i("div",[e._v("Series #"+e._s(e.dicomInfo.series))]),e._v(" "),i("div",[e._v("Image #"+e._s(e.dicomInfo.frame))]),e._v(" "),i("div",[e._v(e._s(e.dicomInfo.modality))])]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:e.dicomInfo.series,expression:"dicomInfo.series"}],staticClass:"info-image"},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.mousePosition.mo,expression:"mousePosition.mo"}]},[e._v("\n Pos: "+e._s(e.mousePosition.x?e.mousePosition.x.toFixed(0):"")+", "+e._s(e.mousePosition.y?e.mousePosition.y.toFixed(0):"")+"\n ")]),e._v(" "),"CT"!==e.dicomInfo.modality&&"DR"!==e.dicomInfo.modality&&"CR"!==e.dicomInfo.modality||!e.mousePosition.mo?"PT"===e.dicomInfo.modality&&e.mousePosition.suv?i("div",[e._v("\n Density: "+e._s(e.mousePosition.suv.toFixed(3))+"SUV\n ")]):e.mousePosition.mo?i("div",[e._v("\n Density: "+e._s(e.mousePosition.mo)+"\n ")]):e._e():i("div",[e._v("\n Density: "+e._s(e.mousePosition.mo)+"HU\n ")]),e._v(" "),i("div",[e._v("\n W*H: "+e._s(e.dicomInfo.size)+"\n ")]),e._v(" "),i("div",[e._v("Zoom: "+e._s(e.dicomInfo.zoom))])]),e._v(" "),i("div",{staticClass:"info-subject"},[i("div",[e._v(e._s(e.stack.description))])]),e._v(" "),i("div",{ref:"sliderBox",staticClass:"my_slider_box",staticStyle:{position:"absolute",right:"1px",height:"calc(100% - 100px)",transform:"translateY(-50%)",top:"calc(50% - 30px)",width:"10px",background:"#333",cursor:"pointer"}},[i("div",{staticStyle:{"z-index":"10",background:"#9e9e9e",height:"20px",width:"100%",position:"absolute",top:"0",cursor:"move"},style:{top:e.height+"%"},on:{mousedown:function(t){return e.sliderMousedown(t)}}})]),e._v(" "),i("div",{staticStyle:{position:"absolute",left:"50%",top:"15px",color:"#f44336"}},[e._v("\n "+e._s(e.markers.top)+"\n ")]),e._v(" "),i("div",{staticStyle:{position:"absolute",top:"50%",right:"15px",color:"#f44336"}},[e._v("\n "+e._s(e.markers.right)+"\n ")]),e._v(" "),i("div",{staticStyle:{position:"absolute",left:"50%",bottom:"15px",color:"#f44336"}},[e._v("\n "+e._s(e.markers.bottom)+"\n ")]),e._v(" "),i("div",{staticStyle:{position:"absolute",top:"50%",left:"15px",color:"#f44336"}},[e._v("\n "+e._s(e.markers.left)+"\n ")]),e._v(" "),i("div",{staticClass:"info-instance"},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.dicomInfo.location,expression:"dicomInfo.location"}]},[e._v("Location: "+e._s(e.dicomInfo.location))]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:e.dicomInfo.thick,expression:"dicomInfo.thick"}]},[e._v("Slice Thickness: "+e._s(e.dicomInfo.thick)+"mm")]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:e.dicomInfo.wwwc,expression:"dicomInfo.wwwc"}]},[e._v("WW/WL: "+e._s(e.dicomInfo.wwwc))])])])},a=[],r=(i("84b4"),i("7f7f"),i("75fc")),o=(i("c5f6"),i("5df3"),i("1c4c"),i("ac6a"),i("28a5"),i("2b0e")),s=i("e5d9"),l=i("81d9"),c=i("6e43"),u=i("e6ad"),d=i("c8b5"),f=i.n(d),h=i("4a2a"),p=i("d22b"),m=i("01de"),g=i("0780");o["default"].use(s["a"]);var v=u["import"]("util/scrollToIndex");u["external"].cornerstone=l,u["external"].Hammer=f.a,u["external"].cornerstoneMath=c,u["toolStyle"].setToolWidth(2),u["toolColors"].setToolColor("rgb(255, 0, 0)"),u["toolColors"].setActiveColor("rgb(0, 255, 0)"),u["init"]();var b=u["globalImageIdSpecificToolStateManager"],y={name:"DicomCanvas",data:function(){return{loading:!1,canvas:{},height:0,stack:{seriesId:"",instanceId:"",seriesNumber:"",imageIds:[],currentImageIdIndex:0,firstImageLoading:!1},dicomInfo:{hospital:"",pid:"",name:"",sex:"",age:"",acc:"",modality:"",time:"",series:"",frame:"",size:"",pixel:0,thick:0,wwwc:"",zoom:0,fps:5},toolState:{initialized:!1,activeTool:"none",dicomInfoVisible:!1,clipPlaying:!1,viewportInvert:!1},loadImagePromise:null,AnnotationSync:null,allROIToolData:{},type:"",series:"",ToolStateManager:b,sliderInfo:{oldB:null,oldM:null,isMove:!1},mousePosition:{x:"",y:"",mo:""},markers:{top:"",right:"",bottom:"",left:""}}},mounted:function(){var e=this;this.type=this.$router.currentRoute.query.type?this.$router.currentRoute.query.type:"",this.canvas=this.$refs.canvas,this.canvas.addEventListener("cornerstonenewimage",this.onNewImage),this.canvas.addEventListener("cornerstoneimagerendered",this.onImageRendered),this.canvas.addEventListener("cornerstonetoolsclipstopped",this.onClipStopped),this.canvas.addEventListener("mouseleave",(function(){e.mousePosition.mo=""})),this.canvas.addEventListener("cornerstonetoolsmousemove",this.mouseMove),document.addEventListener("mouseup",(function(){e.sliderMouseup()})),this.canvas.addEventListener("cornerstonetoolsstackscroll",this.stackScrollCallback)},methods:{loadImageStack:function(e){var t=this;this.$nextTick((function(){t.series=e,t.stack.seriesId=e.seriesId,t.stack.seriesNumber=e.seriesNumber,t.stack.imageIds=e.imageIds,t.stack.currentImageIdIndex=e.imageIdIndex?e.imageIdIndex:0,t.stack.firstImageLoading=!0,t.stack.description=e.description,t.toolState.viewportInvert=!1,t.toolState.dicomInfoVisible=!1;var i=t.stack.imageIds[t.stack.currentImageIdIndex],n=i.split("/")[i.split("/").length-1];n=n.split(".")[0],t.stack.instanceId=n,t.toolState.clipPlaying&&t.toggleClipPlay();var a=t.$refs.canvas;l["enable"](a),t.loading=!0,l["loadAndCacheImage"](t.stack.imageIds[t.stack.currentImageIdIndex]).then((function(e){t.loading=!1,t.onFirstImageLoaded(e)})).catch((function(e){t.loading=!1,e.error&&e.error.message&&t.$message.error(e.error.message)}))}))},onFirstImageLoaded:function(e){var t=this.$refs.canvas,i=l["getDefaultViewportForImage"](this.canvas,e);if(l["displayImage"](this.canvas,e,i),!this.toolState.initialized){this.toolState.initialized=!0;var n=document.querySelectorAll("[data-tool]");Array.from(n).forEach((function(e){var i=e.getAttribute("data-tool"),n=u["".concat(i,"Tool")];if(n){var a=u["getToolForElement"](t,n);a||u["addToolForElement"](t,n)}e.addEventListener("contextmenu",(function(e){return e.preventDefault()}),!0),e.addEventListener("auxclick",(function(e){e.button&&1===e.button&&e.preventDefault()}),!1)})),u["getToolForElement"](t,u["WwwcRegionTool"])||u["addToolForElement"](t,u["WwwcRegionTool"]),u["getToolForElement"](t,u["StackScrollMouseWheelTool"])||u["addToolForElement"](t,u["StackScrollMouseWheelTool"]),u["setToolActiveForElement"](t,"StackScrollMouseWheel",{}),u["getToolForElement"](t,g["a"])||u["addToolForElement"](t,g["a"]),u["setToolActiveForElement"](t,"ScaleOverlay",{})}u["addStackStateManager"](this.canvas,["stack","stackPrefetch","playClip"]),u["addToolState"](this.canvas,"stack",this.stack),u["stackPrefetch"].enable(this.canvas),l["updateImage"](t,!0),this.stack.firstImageLoading=!1,this.toolState.dicomInfoVisible=!0;var a=e.imageId.split("/")[e.imageId.split("/").length-1];a=a.split(".")[0],this.stack.instanceId=a,this.height=100*this.stack.currentImageIdIndex/(this.stack.imageIds.length-1),this.resetWwwc()},onNewImage:function(e){e.detail.enabledElement.options={};var t=e.detail.image.data;this.dicomInfo.hospital=t.string("x00080080"),this.dicomInfo.pid=t.string("x00120040"),this.dicomInfo.name=t.string("x00100010"),this.dicomInfo.age=t.string("x00101010"),this.dicomInfo.sex=t.string("x00100040"),this.dicomInfo.acc=t.string("x00080050"),this.dicomInfo.modality=t.string("x00080060"),this.dicomInfo.time=this.formatDicomDateTime(t.string("x00080020"),t.string("x00080030")),this.dicomInfo.series=t.string("x00200011"),this.dicomInfo.frame="".concat(this.stack.currentImageIdIndex+1,"/").concat(this.stack.imageIds.length),this.dicomInfo.size="".concat(t.uint16("x00280011"),"x").concat(t.uint16("x00280010"));var i=t.floatString("x00280030");i&&(this.dicomInfo.pixel=i.toFixed(2)),this.dicomInfo.thick=t.floatString("x00180050"),this.dicomInfo.thick&&(this.dicomInfo.thick=this.dicomInfo.thick.toFixed(2))},stackScrollCallback:function(e){var t=e.detail;this.isScrollSync&&this.$emit("scrollSync",{canvasIndex:this.canvasIndex,direction:t.direction}),this.stack.currentImageIdIndex=e.detail.newImageIdIndex,this.height=100*this.stack.currentImageIdIndex/(this.stack.imageIds.length-1)},formatDicomDateTime:function(e,t){return e&&(e="".concat(e.substr(0,4),"-").concat(e.substr(4,2),"-").concat(e.substr(6,2))),t&&(t="".concat(t.substr(0,2),":").concat(t.substr(2,2),":").concat(t.substr(4,2))),t?"".concat(e," ").concat(t):"".concat(e," 00:00:00")},onImageRendered:function(e){var t=e.detail.image.imageId,i=t.split("/")[t.split("/").length-1];i=i.split(".")[0],this.imageId!==i&&(this.getOrientationMarker(e.detail.element),this.imageId=i),this.stack.instanceId=i;var n=e.detail.viewport;this.dicomInfo.wwwc="".concat(Math.round(n.voi.windowWidth),"/").concat(Math.round(n.voi.windowCenter)),this.dicomInfo.zoom=n.scale.toFixed(4);var a=e.detail.image.data,r=a.string("x00200032");this.dicomInfo.location=r?Number(r.split("\\")[r.split("\\").length-1]).toFixed(2):""},getOrientationMarker:function(e){var t=l["getEnabledElement"](e),i=l["metaData"].get("imagePlaneModule",t.image.imageId);if(i&&i.rowCosines&&i.columnCosines){var n=Object(h["a"])(i.rowCosines),a=Object(h["a"])(i.columnCosines),r=Object(p["a"])(n),o=Object(p["a"])(a),s={top:o,bottom:a,left:r,right:n};s&&(this.orientationMarkers=[o,n,a,r],this.originalMarkers=[o,n,a,r],this.setMarkers())}},setMarkers:function(){var e=Object(r["a"])(this.orientationMarkers);for(var t in this.markers){var i=e.shift(0);this.markers[t]=i}},onImageLoaded:function(e){var t=e.detail.image,i=t.data.string("x0020000e");console.log(i)},getToolForElement:function(e){for(var t=!1,i=0;i<u["store"].state.tools.length;i++)if(u["store"].state.tools[i].name===e){t=!0;break}return t},mouseMove:function(e){var t=e.detail,i=t.element,n=t.image,a=t.currentPoints,r=Math.round(a.image.x),o=Math.round(a.image.y),s={};r>=0&&o>=0&&r<n.columns&&o<n.rows&&(s.x=r,s.y=o,n.color?s.storedPixels=this.getRGBPixels(i,r,o,1,1):(s.storedPixels=l["getStoredPixels"](i,r,o,1,1),s.sp=s.storedPixels[0],s.mo=s.sp*n.slope+n.intercept,s.suv=Object(m["a"])(n,s.sp))),this.mousePosition.x=a.image.x+1,this.mousePosition.y=a.image.y+1,this.mousePosition.mo=s.mo,this.mousePosition.suv=s.suv},getRGBPixels:function(e,t,i,n,a){if(e){t=Math.round(t),i=Math.round(i);var r,o,s,c=l["getEnabledElement"](e),u=[],d=0,f=c.image.getPixelData();if(c.image.color)for(o=0;o<a;o++)for(s=0;s<n;s++){r=4*((o+i)*c.image.columns+(s+t));var h=f[r],p=f[r+1],m=f[r+2],g=f[r+3];u[d++]=h,u[d++]=p,u[d++]=m,u[d++]=g}return u}},sliderMousedown:function(e){var t=this.$refs["sliderBox"].clientHeight;this.sliderInfo.oldB=parseInt(e.srcElement.style.top)*t/100,this.sliderInfo.oldM=e.clientY,this.sliderInfo.isMove=!0},sliderMousemove:function(e){if(this.sliderInfo.isMove){var t=this.sliderInfo.oldB-(this.sliderInfo.oldM-e.clientY),i=this.$refs["sliderBox"].clientHeight;if(!(t<0)&&!(t>i)){var n=100*t/i,a=Math.trunc(this.stack.imageIds.length*this.height/100);a=a>this.stack.imageIds.length?this.stack.imageIds.length:a<0?0:a,this.height=n,this.stack.currentImageIdIndex!==a&&v(this.canvas,a)}}},sliderMouseup:function(e){this.sliderInfo.isMove=!1},onClipStopped:function(){this.toolState.clipPlaying=!1},onKeyPress:function(e){var t=e.detail.keyCode,i={PageUp:33,PageDown:34,End:35,Home:36};t<i.PageUp||t>i.Home||(t===i.Home?this.scrollPage(-9999):t===i.PageUp?this.scrollPage(-1):t===i.PageDown?this.scrollPage(1):t===i.End&&this.scrollPage(9999))},resizeCanvas:function(){l["resize"](this.canvas,!0)},activateCanvas:function(){this.canvas.tabIndex=0,this.canvas.focus()},resetViewport:function(){this.toolState.viewportInvert=!1;var e=l["getImage"](this.canvas);l["setViewport"](this.canvas,l["getDefaultViewportForImage"](this.canvas,e))},toggleDicomInfo:function(){this.toolState.dicomInfoVisible=!this.toolState.dicomInfoVisible,this.toolState.dicomInfoVisible?u["orientationMarkers"].enable(this.canvas):u["orientationMarkers"].disable(this.canvas),l["updateImage"](this.canvas)},setColormap:function(e){var t=l["getViewport"](this.canvas);t.colormap=e,l["setViewport"](this.canvas,t),l["updateImage"](this.canvas,!0),e||this.resetRenderCanvase(this.canvas)},resetRenderCanvase:function(e){var t=l["getEnabledElement"](e);t.renderingTools.colormapId=void 0,t.renderingTools.colorLut=void 0;var i=t.renderingTools.renderCanvas,n=i.getContext("2d");n.fillStyle="white",n.fillRect(0,0,i.width,i.height);var a=n.getImageData(0,0,i.width,i.height);t.renderingTools.renderCanvasContext=n,t.renderingTools.renderCanvasData=a},scrollPage:function(e){var t=this.stack.currentImageIdIndex+e;t<0?t=0:t>=this.stack.imageIds.length&&(t=this.stack.imageIds.length-1),t!==this.stack.currentImageIdIndex&&v(this.canvas,t)},toggleClipPlay:function(){if(this.toolState.clipPlaying)return u["stopClip"](this.canvas),void(this.toolState.clipPlaying=!1);this.toolState.clipPlaying=!0,u["playClip"](this.canvas,this.dicomInfo.fps),u["getToolState"](this.canvas,"playClip").data[0].loop=!1},setFps:function(e){this.dicomInfo.fps=e},resetWwwc:function(){this.toolState.viewportInvert=!1;var e=l["getViewport"](this.canvas);e.invert=!1;var t=l["getImage"](this.canvas);e.voi.windowWidth=t.windowWidth,e.voi.windowCenter=t.windowCenter,l["setViewport"](this.canvas,e)},setWwwc:function(e,t){var i=l["getViewport"](this.canvas);i.voi.windowWidth=e,i.voi.windowCenter=t,l["setViewport"](this.canvas,i)},toggleInvert:function(){this.toolState.viewportInvert=!this.toolState.viewportInvert;var e=l["getViewport"](this.canvas);e.invert=this.toolState.viewportInvert,l["setViewport"](this.canvas,e)},activateZoom:function(){u["addTool"](u["ZoomTool"],{configuration:{invert:!1,preventZoomOutsideImage:!1,minScale:.1,maxScale:20}}),u["setToolActive"]("Zoom",{mouseButtonMask:1}),this.toolState.activeTool="zoom"},resetRotate:function(){this.orientationMarkers=Object(r["a"])(this.originalMarkers),this.setMarkers();var e=l["getViewport"](this.canvas);e.hflip=!1,e.vflip=!1,e.rotation=0,l["setViewport"](this.canvas,e)},setRotate:function(e,t,i,n){var a=Object(r["a"])(this.orientationMarkers);2===n?(this.orientationMarkers[1]=a[3],this.orientationMarkers[3]=a[1]):3===n?(this.orientationMarkers[0]=a[2],this.orientationMarkers[2]=a[0]):4===n?this.orientationMarkers=a.slice(1,4).concat(a[0]):5===n&&(this.orientationMarkers=[a[3]].concat(a.slice(0,3))),this.setMarkers();var o=l["getViewport"](this.canvas);e&&(o.hflip=!o.hflip),t&&(o.vflip=!o.vflip),0!==i&&(o.rotation+=i),l["setViewport"](this.canvas,o)},saveImage:function(){var e=l["getImage"](this.canvas).data.string("x00080018");u["SaveAs"](this.canvas,"".concat(e,".png"))},fitToWindow:function(){this.stack.seriesNumber&&l["fitToWindow"](this.canvas)},fitToImage:function(){if(this.stack.seriesNumber){var e=l["getEnabledElement"](this.canvas);e.viewport.scale=1,l["updateImage"](this.canvas)}},clearMeasurement:function(){var e=l["getViewport"](this.canvas);e.colormap&&this.resetRenderCanvase(this.canvas),b.clear(this.canvas),l["setViewport"](this.canvas,l["getDefaultViewportForImage"](this.canvas,l["getImage"](this.canvas))),l["updateImage"](this.canvas)},setToolPassive:function(e){u["setToolPassiveForElement"](this.canvas,e)},setToolActive:function(e){u["setToolActiveForElement"](this.canvas,e,{mouseButtonMask:1})},setAllToolsPassive:function(){var e=this;u["store"].state.tools.forEach((function(t){u["setToolPassiveForElement"](e.canvas,t.name)}))},addTargetElement:function(e){e.addTarget(this.$refs.canvas)},removeTarget:function(e){e.removeTarget(this.$refs.canvas)},addSourceElement:function(e){e.addSource(this.$refs.canvas)},removeSource:function(e){e.removeSource(this.$refs.canvas)},activeReferenceLine:function(e){u["getToolForElement"](this.canvas,u["ReferenceLinesTool"])||u["addToolForElement"](this.canvas,u["ReferenceLinesTool"]),u["setToolEnabledForElement"](this.canvas,"ReferenceLines",{synchronizationContext:e})},disabledReferenceLine:function(e){e.enabled=!1,e.remove(this.canvas),u["setToolDisabledForElement"](this.canvas,"ReferenceLines")},activeViewPortToolSync:function(e,t){e.add(this.canvas),e.enabled=!0,u["getToolForElement"](this.canvas,u["".concat(t,"Tool")])||u["addToolForElement"](this.canvas,u["".concat(t,"Tool")]),u["setToolActiveForElement"](this.canvas,t,{mouseButtonMask:1,synchronizationContext:e})},disabledViewPortToolSync:function(e,t){e.enabled=!1,e.remove(this.canvas),u["setToolDisabledForElement"](this.canvas,t)},activeImageSync:function(e){return e.add(this.$refs.canvas),e.enabled=!0,!1},disabledImageSync:function(e){return e.remove(this.$refs.canvas),e.enabled=!1,!1},activeAnnotationSync:function(e){this.AnnotationSync=e,e.add(this.$refs.canvas),e.enabled=!0},disabledAnnotationSync:function(e){this.AnnotationSync=null,e.enabled=!1,e.remove(this.$refs.canvas),this.setAllToolsPassive()},onContextmenu:function(e){var t=this,i=l["colors"].getColormapsList(),n=[];return n.push({label:"默认值",onClick:function(){t.setColormap()}}),i.forEach((function(e){var i={};i.label=e.name,i.onClick=function(){t.setColormap(e.id)},n.push(i)})),this.$contextmenu({items:[{label:"移动",divided:!0,onClick:function(){t.setToolActive("Pan")}},{label:"缩放",divided:!0,children:[{label:"自由缩放",onClick:function(){t.setToolActive("Zoom")}},{label:"适应图像",onClick:function(){t.fitToWindow()}},{label:"适应窗口",onClick:function(){t.fitToImage()}}]},{label:"透镜",divided:!0,onClick:function(){t.setToolActive("Magnify")}},{label:"旋转",divided:!0,children:[{label:"默认值",onClick:function(){t.resetRotate()}},{label:"自由旋转",onClick:function(){t.setToolActive("Rotate")}},{label:"水平翻转",onClick:function(){t.setRotate(!0,!1,0)}},{label:"垂直翻转",onClick:function(){t.setRotate(!1,!0,0)}},{label:"左转90度",onClick:function(){t.setRotate(!1,!1,-90)}},{label:"右转90度",onClick:function(){t.setRotate(!1,!1,90)}}]},{label:"测量",divided:!0,minWidth:0,children:[{label:"探针",onClick:function(){t.setToolActive("Probe")}},{label:"长度测量",onClick:function(){t.setToolActive("Length")}},{label:"角度测量",onClick:function(){t.setToolActive("Angle")}},{label:"Cobb测量",onClick:function(){t.setToolActive("CobbAngle")}},{label:"椭圆测量",onClick:function(){t.setToolActive("EllipticalRoi")}},{label:"矩形测量",onClick:function(){t.setToolActive("RectangleRoi")}},{label:"多边形标记",onClick:function(){t.setToolActive("FreehandRoi")}},{label:"十字线",onClick:function(){t.setToolActive("Bidirectional")}},{label:"文字标注",onClick:function(){t.setToolActive("ArrowAnnotate")}}]},{label:"调窗",divided:!0,onClick:function(){t.setToolActive("Wwwc")}},{label:"反色",divided:!0,onClick:function(){t.toggleInvert()}},{label:"伪彩",children:n}],event:e,customClass:"class-a",zIndex:3,minWidth:100}),!1},getToolSate:function(){for(var e=["Probe","EllipticalRoi","RectangleRoi","ArrowAnnotate","Length","CobbAngle","Angle","Bidirectional","FreehandRoi"],t=0;t<e.length;t++){var i=e[t],n=JSON.stringify(u["getToolState"](this.canvas,i));void 0!==n&&(this.allROIToolData[e[t]]=JSON.parse(n))}},clearToolState:function(){b.clear(this.canvas),l["updateImage"](this.canvas)},removeLabel:function(e){var t=v(this.canvas,e.data.imageIdIndex),i=this;Promise.all([t]).then((function(t){u["removeToolState"](i.canvas,e.type,e.data),l["updateImage"](i.canvas)}))}}},w=y,_=(i("911c"),i("2877")),I=Object(_["a"])(w,n,a,!1,null,"7d39bfc4",null);t["default"]=I.exports},"06d8":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[i("div",{staticClass:"search-form",staticStyle:{"text-align":"right"}},[e.isCompleteConfig?e._e():i("el-button",{attrs:{size:"mini",type:"primary"},on:{click:e.handleAdd}},[e._v("\n 新增\n ")])],1),e._v(" "),i("el-table",{attrs:{data:e.list,size:"small",height:"500"}},[i("el-table-column",{attrs:{prop:"ShowOrder",label:"序号","min-width":"70"}}),e._v(" "),i("el-table-column",{attrs:{prop:"QuestionName",label:"阅片问题","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"QuestionEnName",label:"阅片问题(EN)","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Type",label:"类型","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("Criterion_Question_Type",t.row.Type))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TableQuestionType",label:"选项类型","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("TableQuestionType",t.row.TableQuestionType))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TypeValue",label:"选项","show-overflow-tooltip":"","min-width":"110"}}),e._v(" "),i("el-table-column",{attrs:{prop:"DependShowOrder",label:"关联问题","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"DataTableColumn",label:"关联字段","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("OrganColumn",t.row.DataTableColumn))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ShowQuestion",label:"是否显示","min-width":"90","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("ShowQuestion",t.row.ShowQuestion))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsRequired",label:"是否必填","min-width":"90","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("QuestionRequired",t.row.IsRequired))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsJudgeQuestion",label:"是否裁判问题","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("YesOrNo",t.row.IsJudgeQuestion))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ParentQuestionShowOrder",label:"显示依赖父问题","min-width":"90","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ParentTriggerValue",label:"显示触发值","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"RelevanceShowOrder",label:"必填依赖父问题","min-width":"90","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"RelevanceValue",label:"必填触发值","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ImageCount",label:"最大上传个数","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s("upload"===t.row.Type?t.row.ImageCount:"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"MaxRowCount",label:"最大行数","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.MaxRowCount?t.row.MaxRowCount:"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"",label:"操作",width:"150","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e.isCompleteConfig?i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(i){return e.handleLook(t.row)}}},[e._v("\n 查看\n ")]):e._e(),e._v(" "),e.isCompleteConfig?e._e():i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("\n 编辑\n ")]),e._v(" "),e.isCompleteConfig?e._e():i("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("\n 删除\n ")])]}}])})],1),e._v(" "),e.addOrEdit.visible?i("el-dialog",{attrs:{visible:e.addOrEdit.visible,"close-on-click-modal":!1,title:e.addOrEdit.title,width:"600px","append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){return e.$set(e.addOrEdit,"visible",t)}}},[i("TableQsForm",{ref:"addOrEdit",attrs:{data:e.rowData,type:e.type,"reading-question-id":e.readingQuestionId,"criterion-id":e.criterionId},on:{close:function(t){e.addOrEdit.visible=!1},getList:e.getList}})],1):e._e()],1)},a=[],r=i("db72"),o=i("3e42"),s=i("5591"),l=function(){return{QuestionName:""}},c={name:"TableQsList",components:{TableQsForm:s["default"]},props:{readingQuestionId:{type:String,required:!0},isCompleteConfig:{type:Boolean,required:!0},criterionId:{type:String,required:!0}},data:function(){return{searchData:l(),list:[],total:0,loading:!1,rowData:{},addOrEdit:{visible:!1,title:""},type:null}},mounted:function(){this.getList()},methods:{handleLook:function(e){this.type="look",this.rowData=Object(r["a"])({},e),this.addOrEdit.title="编辑",this.addOrEdit.visible=!0},getList:function(){var e=this;this.loading=!0,Object(o["bd"])({readingQuestionId:this.readingQuestionId}).then((function(t){e.loading=!1,e.list=t.Result})).catch((function(){e.loading=!1}))},handleAdd:function(){this.type="add",this.rowData={},this.addOrEdit.title="添加",this.addOrEdit.visible=!0},handleEdit:function(e){this.type="edit",this.rowData=Object(r["a"])({},e),this.addOrEdit.title="编辑",this.addOrEdit.visible=!0},handleDelete:function(e){var t=this;this.$confirm("是否确认删除?",{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.loading=!0,Object(o["ub"])(e.Id).then((function(e){t.loading=!1,e.IsSuccess&&(t.getList(),t.$message.success("删除成功!"))})).catch((function(){t.loading=!1}))}))},handleSearch:function(){this.getList()},handleReset:function(){this.searchData=l(),this.getList()}}},u=c,d=i("2877"),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},"06ea":function(e,t,i){var n=i("4e08"),a=(n.__DEV__,i("6d8b")),r=i("eaea"),o=i("5f14"),s=i("60e3"),l=i("3842"),c=l.reformIntervals,u=r.extend({type:"visualMap.piecewise",defaultOption:{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieceList:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0,showLabel:null},optionUpdated:function(e,t){u.superApply(this,"optionUpdated",arguments),this._pieceList=[],this.resetExtent();var i=this._mode=this._determineMode();d[this._mode].call(this),this._resetSelected(e,t);var n=this.option.categories;this.resetVisual((function(e,t){"categories"===i?(e.mappingMethod="category",e.categories=a.clone(n)):(e.dataExtent=this.getExtent(),e.mappingMethod="piecewise",e.pieceList=a.map(this._pieceList,(function(e){e=a.clone(e);return"inRange"!==t&&(e.visual=null),e})))}))},completeVisualOption:function(){var e=this.option,t={},i=o.listVisualTypes(),n=this.isCategory();function l(e,t,i){return e&&e[t]&&(a.isObject(e[t])?e[t].hasOwnProperty(i):e[t]===i)}a.each(e.pieces,(function(e){a.each(i,(function(i){e.hasOwnProperty(i)&&(t[i]=1)}))})),a.each(t,(function(t,i){var r=0;a.each(this.stateList,(function(t){r|=l(e,t,i)||l(e.target,t,i)}),this),!r&&a.each(this.stateList,(function(t){(e[t]||(e[t]={}))[i]=s.get(i,"inRange"===t?"active":"inactive",n)}))}),this),r.prototype.completeVisualOption.apply(this,arguments)},_resetSelected:function(e,t){var i=this.option,n=this._pieceList,r=(t?i:e).selected||{};if(i.selected=r,a.each(n,(function(e,t){var i=this.getSelectedMapKey(e);r.hasOwnProperty(i)||(r[i]=!0)}),this),"single"===i.selectedMode){var o=!1;a.each(n,(function(e,t){var i=this.getSelectedMapKey(e);r[i]&&(o?r[i]=!1:o=!0)}),this)}},getSelectedMapKey:function(e){return"categories"===this._mode?e.value+"":e.index+""},getPieceList:function(){return this._pieceList},_determineMode:function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},setSelected:function(e){this.option.selected=a.clone(e)},getValueState:function(e){var t=o.findPieceIndex(e,this._pieceList);return null!=t&&this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?"inRange":"outOfRange"},findTargetDataIndices:function(e){var t=[];return this.eachTargetSeries((function(i){var n=[],a=i.getData();a.each(this.getDataDimension(a),(function(t,i){var a=o.findPieceIndex(t,this._pieceList);a===e&&n.push(i)}),this),t.push({seriesId:i.id,dataIndex:n})}),this),t},getRepresentValue:function(e){var t;if(this.isCategory())t=e.value;else if(null!=e.value)t=e.value;else{var i=e.interval||[];t=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return t},getVisualMeta:function(e){if(!this.isCategory()){var t=[],i=[],n=this,r=this._pieceList.slice();if(r.length){var o=r[0].interval[0];o!==-1/0&&r.unshift({interval:[-1/0,o]}),o=r[r.length-1].interval[1],o!==1/0&&r.push({interval:[o,1/0]})}else r.push({interval:[-1/0,1/0]});var s=-1/0;return a.each(r,(function(e){var t=e.interval;t&&(t[0]>s&&l([s,t[0]],"outOfRange"),l(t.slice()),s=t[1])}),this),{stops:t,outerColors:i}}function l(a,r){var o=n.getRepresentValue({interval:a});r||(r=n.getValueState(o));var s=e(o,r);a[0]===-1/0?i[0]=s:a[1]===1/0?i[1]=s:t.push({value:a[0],color:s},{value:a[1],color:s})}}}),d={splitNumber:function(){var e=this.option,t=this._pieceList,i=Math.min(e.precision,20),n=this.getExtent(),r=e.splitNumber;r=Math.max(parseInt(r,10),1),e.splitNumber=r;var o=(n[1]-n[0])/r;while(+o.toFixed(i)!==o&&i<5)i++;e.precision=i,o=+o.toFixed(i),e.minOpen&&t.push({interval:[-1/0,n[0]],close:[0,0]});for(var s=0,l=n[0];s<r;l+=o,s++){var u=s===r-1?n[1]:l+o;t.push({interval:[l,u],close:[1,1]})}e.maxOpen&&t.push({interval:[n[1],1/0],close:[0,0]}),c(t),a.each(t,(function(e,t){e.index=t,e.text=this.formatValueText(e.interval)}),this)},categories:function(){var e=this.option;a.each(e.categories,(function(e){this._pieceList.push({text:this.formatValueText(e,!0),value:e})}),this),f(e,this._pieceList)},pieces:function(){var e=this.option,t=this._pieceList;a.each(e.pieces,(function(e,i){a.isObject(e)||(e={value:e});var n={text:"",index:i};if(null!=e.label&&(n.text=e.label),e.hasOwnProperty("value")){var r=n.value=e.value;n.interval=[r,r],n.close=[1,1]}else{for(var s=n.interval=[],l=n.close=[0,0],c=[1,0,1],u=[-1/0,1/0],d=[],f=0;f<2;f++){for(var h=[["gte","gt","min"],["lte","lt","max"]][f],p=0;p<3&&null==s[f];p++)s[f]=e[h[p]],l[f]=c[p],d[f]=2===p;null==s[f]&&(s[f]=u[f])}d[0]&&s[1]===1/0&&(l[0]=0),d[1]&&s[0]===-1/0&&(l[1]=0),s[0]===s[1]&&l[0]&&l[1]&&(n.value=s[0])}n.visual=o.retrieveVisuals(e),t.push(n)}),this),f(e,t),c(t),a.each(t,(function(e){var t=e.close,i=[["<","≤"][t[1]],[">","≥"][t[0]]];e.text=e.text||this.formatValueText(null!=e.value?e.value:e.interval,!1,i)}),this)}};function f(e,t){var i=e.inverse;("vertical"===e.orient?!i:i)&&t.reverse()}var h=u;e.exports=h},"0744":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"subjectForm",attrs:{model:e.form,rules:e.rules,size:"small","label-width":"120px"}},[i("div",{staticClass:"base-dialog-body",staticStyle:{border:"none"}},[i("el-form-item",{attrs:{label:e.$t("trials:subject:table:site"),prop:"SiteId"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",filterable:"",disabled:""},model:{value:e.form.SiteId,callback:function(t){e.$set(e.form,"SiteId",t)},expression:"form.SiteId"}},e._l(e.siteOptions,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.TrialSiteCode,value:e.SiteId}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:subject:table:subjectId"),prop:"Code"}},[i("el-input",{attrs:{disabled:""},model:{value:e.form.Code,callback:function(t){e.$set(e.form,"Code",t)},expression:"form.Code"}}),e._v(" "),i("span",{directives:[{name:"show",rawName:"v-show",value:e.otherInfo.IsNoticeSubjectCodeRule,expression:"otherInfo.IsNoticeSubjectCodeRule"}],staticStyle:{color:"#F56C6C","font-size":"12px"}},[e._v(e._s(e.otherInfo.SubjectCodeRule))])],1),e._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.otherInfo.IsHaveFirstGiveMedicineDate,expression:"otherInfo.IsHaveFirstGiveMedicineDate"}],attrs:{label:e.$t("trials:subject:table:firstGiveMedicineTime"),prop:"FirstGiveMedicineTime"}},[i("el-date-picker",{attrs:{type:"date","picker-options":e.pickerOption,"value-format":"yyyy-MM-dd",format:"yyyy-MM-dd"},model:{value:e.form.FirstGiveMedicineTime,callback:function(t){e.$set(e.form,"FirstGiveMedicineTime",t)},expression:"form.FirstGiveMedicineTime"}})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.handleCancel}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])},a=[],r=(i("ac6a"),i("456d"),i("96cf"),i("3b8d")),o=i("3e42"),s={name:"SubjectForm",props:{data:{type:Object,default:function(){return{}}},otherInfo:{type:Object,default:function(){return{}}}},data:function(){return{form:{Id:"",Code:"",ShortName:"",Height:"",Weight:"",Age:"",Sex:"",BirthDate:"",SiteId:"",MedicalNo:"",Status:1,FirstGiveMedicineTime:"",OutEnrollmentTime:"",VisitOverTime:"",Reason:"",StudyCount:"",SignDate:"",IsUrgent:!1},isHaveSubjectAge:!1,rules:{Code:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"},{max:50,message:"".concat(this.$t("common:ruleMessage:maxLength")," 50")}],FirstGiveMedicineTime:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}]},pickerOption:{disabledDate:function(e){return e.getTime()>Date.now()}},btnLoading:!1,siteOptions:[],loading:!1,trialId:""}},computed:{isEdit:function(){return!!this.form.Id&&this.hasPermi(["role:crc"])}},mounted:function(){this.trialId=this.$route.query.trialId,this.initForm()},methods:{initForm:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.loading=!0,e.next=3,Object(o["Zd"])(this.trialId);case 3:if(t=e.sent,this.loading=!1,this.siteOptions=t.Result,Object.keys(this.data).length>0)for(i in this.form)this.data.hasOwnProperty(i)&&(this.form[i]=this.data[i]);this.form.TrialId=this.trialId;case 8:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),handleSave:function(){var e=this;this.$refs.subjectForm.validate((function(t){t&&(e.btnLoading=!0,Object(o["y"])(e.form).then((function(t){e.btnLoading=!1,e.$emit("submitFirstGiveMedicineTime",e.form.FirstGiveMedicineTime)})).catch((function(){e.btnLoading=!1})))}))},handleCancel:function(){this.$emit("close")},getSite:function(){var e=this;Object(o["Zd"])(this.trialId).then((function(t){e.siteList=t.Result}))}}},l=s,c=i("2877"),u=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},"07445":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("user-info",{on:{getUserId:e.getUserId}})},a=[],r=i("a483"),o={name:"AddUser",components:{UserInfo:r["default"]},data:function(){return{userId:"",role:!1}},methods:{getUserId:function(e){this.userId=e}}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},"075e":function(e,t,i){},"07d7":function(e,t,i){var n=i("6d8b"),a=i("41ef"),r=i("607d"),o=i("65ed"),s=i("22d1"),l=i("eda2"),c=n.each,u=l.toCamelCase,d=["","-webkit-","-moz-","-o-"],f="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;";function h(e){var t="cubic-bezier(0.23, 1, 0.32, 1)",i="left "+e+"s "+t+",top "+e+"s "+t;return n.map(d,(function(e){return e+"transition:"+i})).join(";")}function p(e){var t=[],i=e.get("fontSize"),n=e.getTextColor();n&&t.push("color:"+n),t.push("font:"+e.getFont());var a=e.get("lineHeight");null==a&&(a=Math.round(3*i/2)),i&&t.push("line-height:"+a+"px");var r=e.get("textShadowColor"),o=e.get("textShadowBlur")||0,s=e.get("textShadowOffsetX")||0,l=e.get("textShadowOffsetY")||0;return o&&t.push("text-shadow:"+s+"px "+l+"px "+o+"px "+r),c(["decoration","align"],(function(i){var n=e.get(i);n&&t.push("text-"+i+":"+n)})),t.join(";")}function m(e){var t=[],i=e.get("transitionDuration"),n=e.get("backgroundColor"),r=e.getModel("textStyle"),o=e.get("padding");return i&&t.push(h(i)),n&&(s.canvasSupported?t.push("background-Color:"+n):(t.push("background-Color:#"+a.toHex(n)),t.push("filter:alpha(opacity=70)"))),c(["width","color","radius"],(function(i){var n="border-"+i,a=u(n),r=e.get(a);null!=r&&t.push(n+":"+r+("color"===i?"":"px"))})),t.push(p(r)),null!=o&&t.push("padding:"+l.normalizeCssArray(o).join("px ")+"px"),t.join(";")+";"}function g(e,t,i,n,a){var r=t&&t.painter;if(i){var s=r&&r.getViewportRoot();s&&o.transformLocalCoord(e,s,document.body,n,a)}else{e[0]=n,e[1]=a;var l=r&&r.getViewportRootOffset();l&&(e[0]+=l.offsetLeft,e[1]+=l.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}function v(e,t,i){if(s.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var a=this._zr=t.getZr(),o=this._appendToBody=i&&i.appendToBody;this._styleCoord=[0,0,0,0],g(this._styleCoord,a,o,t.getWidth()/2,t.getHeight()/2),o?document.body.appendChild(n):e.appendChild(n),this._container=e,this._show=!1,this._hideTimeout;var l=this;n.onmouseenter=function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0},n.onmousemove=function(e){if(e=e||window.event,!l._enterable){var t=a.handler,i=a.painter.getViewportRoot();r.normalizeEvent(i,e,!0),t.dispatch("mousemove",e)}},n.onmouseleave=function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1}}v.prototype={constructor:v,_enterable:!0,update:function(e){var t=this._container,i=t.currentStyle||document.defaultView.getComputedStyle(t),n=t.style;"absolute"!==n.position&&"absolute"!==i.position&&(n.position="relative");var a=e.get("alwaysShowContent");a&&this._moveTooltipIfResized()},_moveTooltipIfResized:function(){var e=this._styleCoord[2],t=this._styleCoord[3],i=e*this._zr.getWidth(),n=t*this._zr.getHeight();this.moveTo(i,n)},show:function(e){clearTimeout(this._hideTimeout);var t=this.el,i=this._styleCoord;t.style.cssText=f+m(e)+";left:"+i[0]+"px;top:"+i[1]+"px;"+(e.get("extraCssText")||""),t.style.display=t.innerHTML?"block":"none",t.style.pointerEvents=this._enterable?"auto":"none",this._show=!0},setContent:function(e){this.el.innerHTML=null==e?"":e},setEnterable:function(e){this._enterable=e},getSize:function(){var e=this.el;return[e.clientWidth,e.clientHeight]},moveTo:function(e,t){var i=this._styleCoord;g(i,this._zr,this._appendToBody,e,t);var n=this.el.style;n.left=i[0]+"px",n.top=i[1]+"px"},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(e){!this._show||this._inContent&&this._enterable||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(n.bind(this.hide,this),e)):this.hide())},isShow:function(){return this._show},dispose:function(){this.el.parentNode.removeChild(this.el)},getOuterSize:function(){var e=this.el.clientWidth,t=this.el.clientHeight;if(document.defaultView&&document.defaultView.getComputedStyle){var i=document.defaultView.getComputedStyle(this.el);i&&(e+=parseInt(i.borderLeftWidth,10)+parseInt(i.borderRightWidth,10),t+=parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10))}return{width:e,height:t}}};var b=v;e.exports=b},"07e6":function(e,t,i){i("4d85"),i("a753")},"0805":function(e,t,i){},"0811":function(e,t,i){"use strict";i("6c89")},"0817":function(e,t,i){var n=i("3eba");i("f306"),i("0046"),i("60d7");var a=i("ab71");n.registerVisual(a)},"0824":function(e,t,i){},"0848":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",[i("div",{staticClass:"search"},[i("span",{staticStyle:{"margin-left":"auto"}},[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.handleAdd}},[e._v("\n Add\n ")])],1)]),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:45},expression:"{bottomOffset:45}"}],staticStyle:{width:"100%"},attrs:{data:e.list,stripe:"",height:"100"}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Code",label:"编号",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Name",label:"场景类型","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Value",label:"签名内容(EN)","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ValueCN",label:"签名内容(CN)","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"UpdateTime",label:"更新时间","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:"创建时间","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{label:"Action",width:"200",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("\n Edit\n ")]),e._v(" "),i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("Delete")])]}}])})],1),e._v(" "),e.editVisible?i("el-dialog",{attrs:{visible:e.editVisible,"close-on-click-modal":!1,title:e.title,width:"700px","append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.editVisible=t}}},[i("SceneConfigForm",{attrs:{"parent-id":e.parentId,data:e.rowData},on:{closeDialog:e.closeDialog,getList:e.getList}})],1):e._e()],1)},a=[],r=(i("20d6"),i("db72")),o=i("e56e"),s=i("f36a"),l=i("f76e"),c={name:"SignTemplate",components:{BoxContent:s["default"],SceneConfigForm:l["default"]},props:{parentId:{type:String,required:!0}},data:function(){return{loading:!1,list:[],rowData:{},title:"",editVisible:!1}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0,Object(o["Y"])(this.parentId).then((function(t){e.loading=!1,e.list=t.Result})).catch((function(){e.loading=!1}))},handleAdd:function(){this.rowData={},this.title="Add",this.editVisible=!0},handleEdit:function(e){this.rowData=Object(r["a"])({},e),this.title="Edit",this.editVisible=!0},handleDelete:function(e){var t=this;this.$confirm("Sure to delete?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){Object(o["P"])(e.Id).then((function(i){i.IsSuccess&&(t.list.splice(t.list.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success("Deleted successfully!"))}))}))},closeDialog:function(){this.editVisible=!1}}},u=c,d=i("2877"),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},"085d":function(e,t,i){var n=i("3eba");i("bd92"),i("19e2");var a=i("eabf"),r=i("4c99"),o=i("09b1");n.registerPreprocessor(a),n.registerVisual(r),n.registerLayout(o)},"08a6":function(e,t,i){"use strict";i("55c6")},"08c3":function(e,t,i){var n=i("6d8b"),a=i("84ce"),r=function(e,t,i,n){a.call(this,e,t,i),this.type=n||"value",this.model=null};r.prototype={constructor:r,getLabelModel:function(){return this.model.getModel("label")},isHorizontal:function(){return"horizontal"===this.model.get("orient")}},n.inherits(r,a);var o=r;e.exports=o},"09a2":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",{staticClass:"stats-wrapper"},[i("div",{staticClass:"search"},[i("SearchForm",{attrs:{size:"mini",that:this,"search-data":e.searchData,"search-form":e.trialStats_form,"search-handle":e.trialStats_handle},on:{search:e.handleSearch,reset:e.handleReset,export:e.handleExportExcel}},[i("template",{slot:"croSlot"},[i("el-select",{ref:"CROSelection",staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.CROId,callback:function(t){e.$set(e.searchData,"CROId",t)},expression:"searchData.CROId"}},e._l(e.croList,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.CROName,value:e.Id}})})),1)],1),e._v(" "),i("template",{slot:"beginDateSlot"},[i("el-date-picker",{staticStyle:{width:"120px"},attrs:{placeholder:"Beginning Month",type:"month","value-format":"yyyy-MM",format:"yyyy-MM","picker-options":e.beginPickerOption,clearable:!1},model:{value:e.searchData.BeginDate,callback:function(t){e.$set(e.searchData,"BeginDate",t)},expression:"searchData.BeginDate"}})],1),e._v(" "),i("template",{slot:"endDateSlot"},[i("el-date-picker",{staticStyle:{width:"120px"},attrs:{size:"small",placeholder:"End Month",type:"month","value-format":"yyyy-MM",format:"yyyy-MM","picker-options":e.endpickerOption,clearable:!1},model:{value:e.searchData.EndDate,callback:function(t){e.$set(e.searchData,"EndDate",t)},expression:"searchData.EndDate"}})],1),e._v(" "),i("template",{slot:"exportSlot"},[i("el-button",{attrs:{type:"primary",disabled:0==e.arrID.length},on:{click:e.handleExportExcel}},[e._v("Export Excel")])],1)],2)],1),e._v(" "),i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:45},expression:"{bottomOffset:45}"},{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],ref:"trialStats",attrs:{stripe:"",height:"100",data:e.list,"summary-method":e.getSummaries,"show-summary":""},on:{"sort-change":e.sortByColumn,"selection-change":e.handleSelectChange}},[i("el-table-column",{attrs:{type:"selection"}}),e._v(" "),i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialCode",sortable:"custom",label:"Trial ID","min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Expedited","min-width":"90",label:"Expedited","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(0==t.row.Expedited?"No":1==t.row.Expedited?"24H":"48H"))]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Indication",label:"Indication","min-width":"100",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Cro",label:"CRO","min-width":"80",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:"CreateTime","min-width":"100",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ReviewerNameList",label:"Reviewer Name","min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.ReviewerNameList))]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ReviewerNameCNList",label:"Reviewer Name CN","min-width":"110","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.ReviewerNameCNList))]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"EnrollCount",label:"Entry Count","min-width":"90",sortable:"custom","show-overflow-tooltip":""}})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1)},a=[],r=(i("c5f6"),i("ac6a"),i("db72")),o=i("7878"),s=i("48fb"),l=i("0340"),c=i("4360"),u=i("2f62"),d=i("fe09"),f=i("333d"),h=i("f36a"),p=i("d13d"),m=function(){return{CroId:"",TrialCode:"",Indication:"",BeginDate:new Date((new Date).setMonth((new Date).getMonth()-5)).format("yyyy-MM"),EndDate:(new Date).format("yyyy-MM"),PageIndex:1,PageSize:20}},g={name:"WorkloadStats",components:{Pagination:f["default"],BoxContent:h["default"],SearchForm:p["default"]},data:function(){var e=this;return{trialStats_form:d["e"],trialStats_handle:d["f"],searchData:m(),list:[],listLoading:!1,total:0,arrID:[],beginPickerOption:{disabledDate:function(t){return e.searchData.EndDate?t.getTime()>new Date(e.searchData.EndDate).getTime():t.getTime()>Date.now()}},endpickerOption:{disabledDate:function(t){return e.searchData.BeginDate?t.getTime()>Date.now()||t.getTime()<=new Date(e.searchData.BeginDate).getTime():t.getTime()>Date.now()}}}},computed:Object(r["a"])({},Object(u["b"])(["croList"])),mounted:function(){this.getList(),c["a"].dispatch("global/getCROList")},methods:{getList:function(){var e=this;this.listLoading=!0,Object(s["b"])(this.searchData).then((function(t){e.listLoading=!1,e.list=t.Result.CurrentPageData,e.list.forEach((function(e){e.ReviewerNameList=e.ReviewerNameList.join(", "),e.ReviewerNameCNList=e.ReviewerNameCNList.join(", "),e.CreateTime=Object(o["formatUTCTime"])(e.CreateTime)})),e.total=t.Result.TotalCount})).catch((function(){e.listLoading=!1}))},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=m(),this.getList()},handleSelectChange:function(e){for(var t=[],i=0;i<e.length;i++)t.push(e[i].Id);this.arrID=t},getSummaries:function(e){var t=this;this.$nextTick((function(){t.$refs.trialStats.doLayout()}));var i=e.columns,n=e.data,a=[];return i.forEach((function(e,t){if(2!==t){var i=n.map((function(t){return Number(t[e.property])}));i.every((function(e){return isNaN(e)}))||(a[t]=i.reduce((function(e,t){var i=Number(t);return isNaN(i)?e:e+t}),0))}else a[t]="Total (Current Page)"})),a},sortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()},handleExportExcel:function(){var e=this,t="".concat(this.searchData.BeginDate,"~").concat(this.searchData.EndDate),i=[{key:"Index",width:5},{key:"TrialCode",width:15},{key:"Expedited",width:15},{key:"Indication",width:15},{key:"Cro",width:15},{key:"ReviewerNameList",width:25},{key:"ReviewerNameCNList",width:25},{key:"EnrollCount",width:15}],n="Beginning Month:".concat(this.searchData.BeginDate," End Month:").concat(this.searchData.EndDate),a=["","Trial ID","Expedited","Indication","CRO","Reviewer Name","Reviewer Name CN","Enroll Count"],r=0,o=1,s=this.list.filter((function(t){return e.arrID.indexOf(t.Id)>-1}));s.forEach((function(e){e.Index=o++,e.Expedited=0===e.Expedited?"No":1===e.Expedited?"24H":"48H",r+=e.EnrollCount}));var c=["","Total","","","","","",r];Object(l["a"])(t,i,"Enrollments Statistics",n,a,s,c,[])}}},v=g,b=i("2877"),y=Object(b["a"])(v,n,a,!1,null,null,null);t["default"]=y.exports},"09b1":function(e,t,i){var n=i("2306"),a=n.subPixelOptimize,r=i("cccd"),o=i("3842"),s=o.parsePercent,l=i("6d8b"),c=l.retrieve2,u="undefined"!==typeof Float32Array?Float32Array:Array,d={seriesType:"candlestick",plan:r(),reset:function(e){var t=e.coordinateSystem,i=e.getData(),n=h(e,i),r=0,o=1,s=["x","y"],l=i.mapDimension(s[r]),c=i.mapDimension(s[o],!0),d=c[0],p=c[1],m=c[2],g=c[3];if(i.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),!(null==l||c.length<4))return{progress:e.pipelineContext.large?b:v};function v(e,i){var s;while(null!=(s=e.next())){var c=i.get(l,s),u=i.get(d,s),h=i.get(p,s),v=i.get(m,s),b=i.get(g,s),y=Math.min(u,h),w=Math.max(u,h),_=C(y,c),I=C(w,c),x=C(v,c),S=C(b,c),T=[];k(T,I,0),k(T,_,1),T.push(D(S),D(I),D(x),D(_)),i.setItemLayout(s,{sign:f(i,s,u,h,p),initBaseline:u>h?I[o]:_[o],ends:T,brushRect:R(v,b,c)})}function C(e,i){var n=[];return n[r]=i,n[o]=e,isNaN(i)||isNaN(e)?[NaN,NaN]:t.dataToPoint(n)}function k(e,t,i){var o=t.slice(),s=t.slice();o[r]=a(o[r]+n/2,1,!1),s[r]=a(s[r]-n/2,1,!0),i?e.push(o,s):e.push(s,o)}function R(e,t,i){var a=C(e,i),s=C(t,i);return a[r]-=n/2,s[r]-=n/2,{x:a[0],y:a[1],width:o?n:s[0]-a[0],height:o?s[1]-a[1]:n}}function D(e){return e[r]=a(e[r],1),e}}function b(e,i){var n,a,s=new u(4*e.count),c=0,h=[],v=[];while(null!=(a=e.next())){var b=i.get(l,a),y=i.get(d,a),w=i.get(p,a),_=i.get(m,a),I=i.get(g,a);isNaN(b)||isNaN(_)||isNaN(I)?(s[c++]=NaN,c+=3):(s[c++]=f(i,a,y,w,p),h[r]=b,h[o]=_,n=t.dataToPoint(h,null,v),s[c++]=n?n[0]:NaN,s[c++]=n?n[1]:NaN,h[o]=I,n=t.dataToPoint(h,null,v),s[c++]=n?n[1]:NaN)}i.setLayout("largePoints",s)}}};function f(e,t,i,n,a){var r;return r=i>n?-1:i<n?1:t>0?e.get(a,t-1)<=n?1:-1:1,r}function h(e,t){var i,n=e.getBaseAxis(),a="category"===n.type?n.getBandWidth():(i=n.getExtent(),Math.abs(i[1]-i[0])/t.count()),r=s(c(e.get("barMaxWidth"),a),a),o=s(c(e.get("barMinWidth"),1),a),l=e.get("barWidth");return null!=l?s(l,a):Math.max(Math.min(a/2,r),o)}e.exports=d},"09fa":function(e,t,i){var n=i("4588"),a=i("9def");e.exports=function(e){if(void 0===e)return 0;var t=n(e),i=a(t);if(t!==i)throw RangeError("Wrong length!");return i}},"0a2a":function(e,t,i){},"0a32":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",[i("div",{staticClass:"search"},[i("el-form",{staticClass:"base-search-form",attrs:{inline:!0,size:"mini"}},[i("el-form-item",{attrs:{label:"问题名称:"}},[i("el-input",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.QuestionName,callback:function(t){e.$set(e.searchData,"QuestionName",t)},expression:"searchData.QuestionName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"类型:"}},[i("el-input",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.Type,callback:function(t){e.$set(e.searchData,"Type",t)},expression:"searchData.Type"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:e.handleReset}},[e._v("Reset")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.handleSearch}},[e._v("Search")])],1)],1),e._v(" "),i("span",{staticStyle:{"margin-left":"auto"}},[i("el-button",{attrs:{disabled:0===e.list.length,size:"mini",type:"primary"},on:{click:function(t){e.preview.visible=!0}}},[e._v("\n Preview\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.handleAdd}},[e._v("New")])],1)],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:45},expression:"{bottomOffset:45}"}],attrs:{data:e.list,stripe:"",size:"small",height:"100"}},[i("el-table-column",{attrs:{prop:"ShowOrder",label:"序号","min-width":"70"}}),e._v(" "),i("el-table-column",{attrs:{prop:"QuestionName",label:"问题名称","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Type",label:"类型","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s("radio"===t.row.Type?"单选框":"select"===t.row.Type?"下拉框":"input"===t.row.Type?"文本框":"textarea"===t.row.Type?"多行文本框":"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TypeValue",label:"选项","show-overflow-tooltip":"","min-width":"110"}}),e._v(" "),i("el-table-column",{attrs:{prop:"ParentShowOrder",label:"父问题","show-overflow-tooltip":"","min-width":"110"}}),e._v(" "),i("el-table-column",{attrs:{prop:"ParentTriggerValue",label:"父问题触发值","show-overflow-tooltip":"","min-width":"110"}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsRequired",label:"是否必填","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.IsRequired?"是":"否")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsEnable",label:"启用状态","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.IsEnable?"启用":"停用")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"Action",width:"200",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("\n Edit\n ")]),e._v(" "),i("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("\n Delete\n ")])]}}])})],1),e._v(" "),i("QcQuestionForm",{ref:"qcQuestionForm",on:{getList:e.getList}}),e._v(" "),e.preview.visible?i("el-dialog",{directives:[{name:"dialogDrag",rawName:"v-dialogDrag"}],attrs:{visible:e.preview.visible,"close-on-click-modal":!1,title:e.preview.title,width:"500px","append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){return e.$set(e.preview,"visible",t)}}},[i("div",{staticClass:"base-dialog-body"},[i("QcQuestionPreview")],1)]):e._e()],1)},a=[],r=(i("20d6"),i("e56e")),o=i("457a"),s=i("f36a"),l=i("d28b"),c=function(){return{QuestionName:"",Type:""}},u={name:"QcQuestions",components:{BoxContent:s["default"],QcQuestionForm:o["default"],QcQuestionPreview:l["default"]},data:function(){return{searchData:c(),list:[],total:0,loading:!1,rowData:{},model_cfg:{visible:!1,showClose:!0,width:"600px",title:""},preview:{visible:!1,title:"预览"}}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0,Object(r["mb"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result})).catch((function(){e.loading=!1}))},handleAdd:function(){var e=this;this.$nextTick((function(){e.$refs["qcQuestionForm"].openDialog("New",{})}))},handleEdit:function(e){var t=this;this.$nextTick((function(){t.$refs["qcQuestionForm"].openDialog("Edit",e)}))},handleDelete:function(e){var t=this;this.$confirm("Sure to delete?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){t.loading=!0,Object(r["I"])(e.Id).then((function(i){t.loading=!1,i.IsSuccess&&(t.list.splice(t.list.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success("Deleted successfully!"))})).catch((function(){t.loading=!1}))}))},handleSearch:function(){this.getList()},handleReset:function(){this.searchData=c(),this.getList()}}},d=u,f=i("2877"),h=Object(f["a"])(d,n,a,!1,null,null,null);t["default"]=h.exports},"0a45":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:55},expression:"{bottomOffset:55}"}],ref:"myTable",attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("trials:enrolledReviews:table:name"),"show-overflow-tooltip":"","min-width":"150",prop:"FirstName",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("router-link",{staticStyle:{color:"#00d1b2"},attrs:{tag:"a",to:{path:"/trialsResume?doctorId="+t.row.DoctorId+"&token="+e.token},target:"_blank"}},[e._v(e._s(t.row.LastName)+" / "+e._s(t.row.FirstName))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ChineseName",sortable:"custom",label:e.$t("trials:enrolledReviews:table:nameCN"),"min-width":"110","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:e.$t("trials:enrolledReviews:table:userName"),"min-width":"80",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"EnrollTimeStr",label:e.$t("trials:enrolledReviews:table:enrollmentTime"),width:"200",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.EnrollTime?i("span",[e._v("\n "+e._s(""+t.row.EnrollTime)+"\n ")]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"EnrollTimeStr",label:e.$t("trials:enrolledReviews:table:status"),width:"100",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",[i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},on:{change:function(i){return e.isEnableChange(t.row,i)}},model:{value:t.row.IsEnable,callback:function(i){e.$set(t.row,"IsEnable",i)},expression:"scope.row.IsEnable"}}),e._v(" "),i("span",[e._v(e._s(t.row.IsEnable?e.$t("trials:enrolledReviews:table:enable"):e.$t("trials:enrolledReviews:table:disable")))])],1)]}}])}),e._v(" "),e._l(e.TrialReadingCriterionList,(function(t){return i("el-table-column",{attrs:{label:t.TrialReadingCriterionName,width:"360","header-align":"center","show-overflow-tooltip":""}},[i("el-table-column",{attrs:{label:e.$t("trials:enrolledReviews:table:readingType"),width:"300","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(n){return[e._l(n.row.CriterionCategoryList.find((function(e){return e.TrialReadingCriterionId===t.TrialReadingCriterionId}))?n.row.CriterionCategoryList.find((function(e){return e.TrialReadingCriterionId===t.TrialReadingCriterionId})).ReadingCategorys:[],(function(t){return i("span",[1===t?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ReadingCategory",t)+"&"+e.$fd("ReadingCategory",2)))]):e._e(),e._v(" "),4===t?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ReadingCategory",t)))]):e._e(),e._v(" "),5===t?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("ReadingCategory",t)))]):e._e()],1)})),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:enrolled-reviewers:list:edit"],expression:"['trials:trials-panel:enrolled-reviewers:list:edit']"}],attrs:{type:"text"},on:{click:function(i){return e.openSetEnrollReadingCategory(n.row,t.TrialReadingCriterionId)}}},[e._v("\n "+e._s(e.$t("trials:enrolledReviews:button:config"))+"\n ")])]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("trials:enrolledReviews:button:sow"),width:"160","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(n){return[n.row.CriterionCategoryList.find((function(e){return e.TrialReadingCriterionId===t.TrialReadingCriterionId})).StatementCriterionFileList.length>0?i("div",[i("el-button",{attrs:{type:"text"},on:{click:function(i){e.windowOpen(n.row.CriterionCategoryList.find((function(e){return e.TrialReadingCriterionId===t.TrialReadingCriterionId})).StatementCriterionFileList[0].FilePath)}}},[e._v("View")])],1):i("div",[i("span",[e._v(e._s(e.$t("trials:enrolledReviews:label:notUpload")))]),e._v(" "),0===t.CriterionType?i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:enrolled-reviewers:list:edit"],expression:"['trials:trials-panel:enrolled-reviewers:list:edit']"}],staticStyle:{"margin-left":"10px"},attrs:{type:"text"},on:{click:function(i){e.addCol(0,n.row,t,e.$t("trials:enrolledReviews:button:sow"))}}},[e._v("\n "+e._s(e.$t("trials:enrolledReviews:button:upload"))+"\n ")]):e._e()],1)]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("trials:enrolledReviews:button:asow"),width:"160","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(n){return[n.row.CriterionCategoryList.find((function(e){return e.TrialReadingCriterionId===t.TrialReadingCriterionId})).AcknowledgementCriterionFileList.length>0?i("div",[i("el-button",{attrs:{type:"text"},on:{click:function(i){e.windowOpen(n.row.CriterionCategoryList.find((function(e){return e.TrialReadingCriterionId===t.TrialReadingCriterionId})).AcknowledgementCriterionFileList[0].FilePath)}}},[e._v("View")])],1):i("div",[i("span",[e._v(e._s(e.$t("trials:enrolledReviews:label:notUpload")))]),e._v(" "),0===t.CriterionType?i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:enrolled-reviewers:list:edit"],expression:"['trials:trials-panel:enrolled-reviewers:list:edit']"}],staticStyle:{"margin-left":"10px"},attrs:{type:"text"},on:{click:function(i){e.addCol(1,n.row,t,e.$t("trials:enrolledReviews:button:sow"))}}},[e._v("\n "+e._s(e.$t("trials:enrolledReviews:button:upload"))+"\n ")]):e._e()],1)]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("trials:enrolledReviews:button:tackNum"),width:"200","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(n){return[i("div",[e._v("\n "+e._s(n.row.CriterionCategoryList.find((function(e){return e.TrialReadingCriterionId===t.TrialReadingCriterionId})).PendingCount)+"\n /\n "+e._s(n.row.CriterionCategoryList.find((function(e){return e.TrialReadingCriterionId===t.TrialReadingCriterionId})).ComplectedCount)+"\n /\n "+e._s(n.row.CriterionCategoryList.find((function(e){return e.TrialReadingCriterionId===t.TrialReadingCriterionId})).TotalCount)+"\n ")])]}}],null,!0)})],1)}))],2)],1),e._v(" "),i("base-model",{attrs:{config:e.sow_model}},[i("template",{slot:"dialog-body"},[i("upload-acksow",{ref:"uploadAckSow",attrs:{"trial-id":e.listQuery.TrialId,"doctor-id":e.doctorId},on:{getFileList:e.getFileList}})],1)],2),e._v(" "),i("base-model",{attrs:{config:e.readingType_model}},[i("template",{slot:"dialog-body"},[i("label",[e._v(e._s(e.$t("trials:enrolledReviews:table:readingType"))+": ")]),e._v(" "),i("el-select",{staticStyle:{width:"70%"},attrs:{filterable:"","allow-create":"","default-first-option":""},model:{value:e.readingType,callback:function(t){e.readingType=t},expression:"readingType"}},[i("el-option",{attrs:{value:0,label:"TP&GL&AD"}}),e._v(" "),i("el-option",{attrs:{value:1,label:"TP&GL"}}),e._v(" "),i("el-option",{attrs:{value:2,label:"AD"}})],1)],1),e._v(" "),i("template",{slot:"dialog-footer"},[i("el-button",{attrs:{disabled:e.readingType_model.btnLoading,type:"primary"},on:{click:function(t){e.readingType_model.visible=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",loading:e.readingType_model.btnLoading},on:{click:e.handleUpdateReadingType}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],2),e._v(" "),i("base-model",{attrs:{config:e.readingCategory_model}},[i("template",{slot:"dialog-body"},[i("label",[e._v(e._s(e.$t("trials:enrolledReviews:table:readingType"))+": ")]),e._v(" "),i("el-select",{staticStyle:{width:"70%"},attrs:{filterable:"","allow-create":"",multiple:"","default-first-option":""},model:{value:e.ReadingCategorys,callback:function(t){e.ReadingCategorys=t},expression:"ReadingCategorys"}},[e._l(e.$d.ReadingCategory,(function(t){return 1===t.value?i("el-option",{key:t.id,attrs:{value:1,label:e.$fd("ReadingCategory",1)+"&"+e.$fd("ReadingCategory",2)}}):e._e()})),e._v(" "),e._l(e.$d.ReadingCategory,(function(t){return 4===t.value&&e.IsArbitrationReading?i("el-option",{key:t.id,attrs:{value:t.value,label:e.$fd("ReadingCategory",4)}}):e._e()})),e._v(" "),e._l(e.$d.ReadingCategory,(function(t){return 5===t.value&&e.IsOncologyReading?i("el-option",{key:t.id,attrs:{value:t.value,label:e.$fd("ReadingCategory",5)}}):e._e()}))],2)],1),e._v(" "),i("template",{slot:"dialog-footer"},[i("el-button",{attrs:{disabled:e.readingCategory_model.btnLoading,type:"primary"},on:{click:function(t){e.readingCategory_model.visible=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",loading:e.readingCategory_model.btnLoading},on:{click:e.handleUpdateReadingCategory}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],2),e._v(" "),i("base-model",{attrs:{config:e.reviewerStatus_model}},[i("template",{slot:"dialog-body"},[i("el-form",{ref:"updateStatusForm",attrs:{model:e.updateStatusForm,rules:e.updateStatusFormrules}},[i("el-form-item",{attrs:{label:e.$t("trials:enrolledReviews:label:enrollmentStatus"),prop:"Status"}},[i("el-select",{staticStyle:{width:"60%"},model:{value:e.updateStatusForm.Status,callback:function(t){e.$set(e.updateStatusForm,"Status",t)},expression:"updateStatusForm.Status"}},e._l(e.$d.OutOrInEnrollment,(function(t){return i("el-option",{key:"OutOrInEnrollment"+t.value,attrs:{value:t.value,label:t.label,disabled:0===t.value&&e.currentWorkload>0}})})),1)],1),e._v(" "),1==e.updateStatusForm.Status?i("el-form-item",{attrs:{label:e.$t("trials:enrolledReviews:label:outOfEnrollmentTime"),prop:"OutEnrollmentTime"}},[i("el-date-picker",{attrs:{type:"date","value-format":"yyyy-MM-dd",format:"yyyy-MM-dd"},model:{value:e.updateStatusForm.OutEnrollmentTime,callback:function(t){e.$set(e.updateStatusForm,"OutEnrollmentTime",t)},expression:"updateStatusForm.OutEnrollmentTime"}})],1):e._e()],1)],1),e._v(" "),i("template",{slot:"dialog-footer"},[i("el-button",{attrs:{disabled:e.reviewerStatus_model.btnLoading,type:"primary"},on:{click:function(t){e.reviewerStatus_model.visible=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",loading:e.reviewerStatus_model.btnLoading},on:{click:e.handleUpdateReviewerStatus}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],2),e._v(" "),i("BaseModel",{attrs:{config:e.model_cfg}},[i("template",{slot:"dialog-body"},[i("el-form",{ref:"DictionaryTypeConfigForm",attrs:{model:e.form,"label-width":"120px",size:"small"}},[i("el-form-item",{attrs:{label:"Criterion Type ",prop:"CriterionType"}},[i("el-input",{attrs:{disabled:""},model:{value:e.form.CriterionName,callback:function(t){e.$set(e.form,"CriterionName",t)},expression:"form.CriterionName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"File",prop:"FilePath"}},[i("el-upload",{staticClass:"upload-demo",attrs:{action:"","before-upload":e.beforeUpload,"http-request":e.handleUploadFile,"on-preview":e.handlePreview2,"on-remove":e.handleRemoveFile2,"show-file-list":!0,limit:1,"file-list":e.fileList}},[i("el-button",{attrs:{size:"small",type:"primary",disabled:e.fileList.length>0}},[e._v("点击上传")])],1)],1)],1)],1),e._v(" "),i("template",{slot:"dialog-footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.handleCancle}},[e._v("Cancel")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleSave}},[e._v("Save")])],1)],2)],2)},a=[],r=(i("c5f6"),i("7514"),i("7f7f"),i("ac6a"),i("456d"),i("3e42")),o=i("33ba"),s=i("a796"),l=i("958c"),c=i("985e"),u=i("4360"),d=i("6071"),f=i("7eeb"),h={components:{UploadAcksow:c["default"],BaseContainer:d["default"],BaseModel:f["default"]},data:function(){return{list:[],TrialReadingCriterionId:null,listQuery:{TrialId:"",PageIndex:1,PageSize:100,Asc:!1,SortField:""},doctorId:"",currentRow:{},listLoading:!1,total:0,trialId:"",currentClickRowData:"",btnLoading:!1,readingType:"",model_cfg:{visible:!1,showClose:!0,width:"600px",title:"",appendToBody:!0},sow_model:{visible:!1,title:this.$t("trials:enrolledReviews:dialogTitle:signedAckOfSow"),showClose:!0,width:"500px"},readingType_model:{visible:!1,title:this.$t("trials:enrolledReviews:dialogTitle:changeReadingType"),showClose:!0,width:"500px",btnLoading:!1},readingCategory_model:{visible:!1,title:this.$t("trials:enrolledReviews:dialogTitle:changeReadingType"),showClose:!0,width:"500px",btnLoading:!1},reviewerStatus_model:{visible:!1,title:this.$t("trials:enrolledReviews:dialogTitle:changeStatus"),showClose:!0,width:"500px",btnLoading:!1},updateStatusForm:{Status:"",OutEnrollmentTime:""},updateStatusFormrules:{Status:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}],OutEnrollmentTime:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}]},token:u["a"].getters.token,ReadingCategorys:[],apiReadingCategorys:[],TrialReadingCriterionList:[],IsArbitrationReading:!0,IsOncologyReading:!0,fileList:[],form:{}}},computed:{currentWorkload:function(){if(0===Object.keys(this.currentRow).length)return 0;var e=this.currentRow.Adjudication+this.currentRow.AdjudicationIn24H+this.currentRow.AdjudicationIn48H+this.currentRow.Timepoint+this.currentRow.TimepointIn24H+this.currentRow.TimepointIn48H+this.currentRow.TrainingTimes+this.currentRow.RefresherTraining+this.currentRow.Global+this.currentRow.Downtime;return e}},mounted:function(){this.trialId=this.$route.query.trialCode,this.listQuery.TrialId=this.$route.query.trialId,this.initPage()},methods:{beforeUpload:function(){this.fileList.length>0&&this.$message.error(this.$t("trials:enrolledReviews:message:uploadSowWaring1"))},handleSave:function(){var e=this;this.$refs["DictionaryTypeConfigForm"].validate((function(t){t&&Object(o["a"])(e.form).then((function(t){e.$message.success(e.$t("common:message:savedSuccessfully")),e.initPage(),e.handleCancle()}))}))},handlePreview3:function(e){e.FilePath&&window.open(e.FilePath,"_blank")},handlePreview2:function(e,t){e.fullPath&&window.open(e.fullPath,"_blank")},handleUploadFile:function(e){var t=this;this.btnLoading=!0;var i=new FormData;i.append("file",e.file),this.form.FileName=e.file.name,Object(s["f"])(e.file,0===this.form.FileType?this.$t("trials:enrolledReviews:message:SOW"):this.$t("trials:enrolledReviews:message:EQC"),this.form.DoctorId).then((function(i){t.form.FilePath=i.Result.FilePath,t.btnLoading=!1,t.fileList[0]={name:e.file.name,path:i.Result.FilePath,fullPath:i.Result.FullFilePath}}))},handleCancle:function(){this.model_cfg.visible=!1},handleRemoveFile2:function(){this.form.FileName=null,this.form.FilePath=null,this.fileList=[]},addCol:function(e,t,i){this.model_cfg.visible=!0,this.form={Remark:null,FileType:e,FileName:null,FilePath:null,IsEnable:!0,TrialId:this.listQuery.TrialId,DoctorId:t.DoctorId,CriterionType:i.CriterionType,CriterionName:i.TrialReadingCriterionName,TrialReadingCriterionId:i.TrialReadingCriterionId},this.handleRemoveFile2(),this.model_cfg.title=0===e?this.$t("trials:enrolledReviews:message:SOW"):this.$t("trials:enrolledReviews:message:EQC")},windowOpen:function(e){console.log(e),window.open(e)},isEnableChange:function(e,t){var i=this;console.log(e),this.listLoading=!0,Object(l["bb"])({TrialId:this.listQuery.TrialId,IsEnable:t,EnrollId:e.EnrollId}).then((function(e){i.$message.success(i.$t("common:message:savedSuccessfully")),i.listLoading=!1})).catch((function(){i.listLoading=!1}))},handleUpdateReadingCategory:function(){var e=this;this.readingCategory_model.btnLoading=!0,this.readingCategory_model.showClose=!1;var t={TrialId:this.$route.query.trialId,EnrollId:this.currentRow.EnrollId,ReadingCategorys:Object.assign([],this.ReadingCategorys),TrialReadingCriterionId:this.TrialReadingCriterionId};~this.ReadingCategorys.indexOf(1)&&t.ReadingCategorys.push(2),Object(r["Je"])(t).then((function(t){e.readingCategory_model.visible=!1,e.readingCategory_model.btnLoading=!1,e.readingCategory_model.showClose=!0,e.initPage(),e.$message.success(e.$t("common:message:savedSuccessfully"))})).catch((function(t){e.readingCategory_model.btnLoading=!1,e.readingCategory_model.showClose=!0}))},openSetEnrollReadingCategory:function(e,t){console.log(e),this.currentRow=e,this.TrialReadingCriterionId=t,this.readingCategory_model.visible=!0;var i=e.CriterionCategoryList.find((function(e){return e.TrialReadingCriterionId===t}))?e.CriterionCategoryList.find((function(e){return e.TrialReadingCriterionId===t})):null,n=e.TrialReadingCriterionList.find((function(e){return e.TrialReadingCriterionId===t}))?e.TrialReadingCriterionList.find((function(e){return e.TrialReadingCriterionId===t})):null;n&&(this.IsArbitrationReading=n.IsArbitrationReading,this.IsOncologyReading=n.IsOncologyReading),this.ReadingCategorys=Object.assign([],i.ReadingCategorys),this.currentRow.TrialReadingCriterionId=t;var a=i?i.ReadingCategorys.indexOf(2):-1;a>=0&&this.ReadingCategorys.splice(a,1)},initPage:function(){var e=this;this.listLoading=!0,Object(r["Kd"])(this.listQuery).then((function(t){e.listLoading=!1,e.list=t.Result.CurrentPageData,e.list.length>0&&(e.TrialReadingCriterionList=e.list[0].TrialReadingCriterionList),e.total=t.Result.TotalCount,e.$nextTick((function(){e.$refs.myTable&&e.$refs.myTable.doLayout&&e.$refs.myTable.doLayout()}))})).catch((function(){e.listLoading=!1}))},handleEnroll:function(){this.$router.push({path:"/trials/trials-panel/enrolled-reviewers/enroll?trialId=".concat(this.listQuery.TrialId,"&trialCode=").concat(this.trialId)})},changeStatus:function(e){this.reviewerStatus_model.visible=!0,this.currentRow=e},handleUpdateReviewerStatus:function(){var e=this;this.$refs.updateStatusForm.validate((function(t){t&&(e.reviewerStatus_model.btnLoading=!0,e.reviewerStatus_model.showClose=!1,Object(r["Ib"])(e.listQuery.TrialId,e.currentRow.DoctorId,e.updateStatusForm.Status).then((function(t){e.$nextTick((function(){e.$refs["updateStatusForm"].resetFields()})),e.reviewerStatus_model.btnLoading=!1,e.reviewerStatus_model.visible=!1,e.reviewerStatus_model.showClose=!0,e.initPage(),e.$message.success(e.$t("common:message:savedSuccessfully"))})).catch((function(){e.reviewerStatus_model.btnLoading=!1,e.reviewerStatus_model.showClose=!0})))}))},handleConfigReadingType:function(e){this.readingType_model.visible=!0;var t=e.ReviewerReadingType;this.readingType=t,this.currentRow=e},handleUpdateReadingType:function(){var e=this;this.readingType_model.btnLoading=!0,this.readingType_model.showClose=!1,Object(r["rf"])(this.listQuery.TrialId,this.currentRow.DoctorId,this.readingType).then((function(t){e.readingType_model.visible=!1,e.readingType_model.btnLoading=!1,e.readingType_model.showClose=!0,e.initPage(),e.$message.success(e.$t("common:message:savedSuccessfully"))})).catch((function(t){e.readingType_model.btnLoading=!1,e.readingType_model.showClose=!0}))},handleSortByColumn:function(e){"ascending"===e.order?this.listQuery.Asc=!0:this.listQuery.Asc=!1,"EnrollTimeStr"===e.prop?this.listQuery.SortField="EnrollTime":this.listQuery.SortField=e.prop,this.listQuery.PageIndex=1,this.initPage()},handleReviewerDetail:function(e){var t=this.$router.resolve({path:"/trials/trials-panel/enrolled-reviewers/resume?doctorId=".concat(e.DoctorId)}),i=t.href;window.open(i,"_blank")},handleUploadAckSow:function(e){this.doctorId=e.DoctorId,this.currentRow=e,this.sow_model.visible=!0;var t=[];"00000000-0000-0000-0000-000000000000"!==e.AgreementId&&(t=[{DoctorId:e.DoctorId,name:e.AgreementFileName,FileName:e.AgreementFileName,Path:e.AgreementPath,FullPath:e.AgreementFullPath,Type:"ACK of SOW"}]),this.$nextTick((function(){this.$refs.uploadAckSow.initFileList(t)}))},getFileList:function(e){this.currentRow.AgreementId=e.length>0?e[0].Id:"00000000-0000-0000-0000-000000000000",this.currentRow.AgreementFileName=e.length>0?e[0].FileName:"",this.currentRow.AgreementFullPath=e.length>0?e[0].FullPath:"",this.currentRow.AgreementPath=e.length>0?e[0].Path:""},handleViewAckSow:function(e){e.AgreementFullPath&&window.open(e.AgreementFullPath,"_blank")},handleDeleteAckSOW:function(e){var t=this;this.$confirm(this.$t("trials:enrolledReviews:message:deleteSOWWarning"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){Object(r["wb"])(t.listQuery.TrialId,e.DoctorId,e.AgreementId).then((function(i){e.AgreementId="00000000-0000-0000-0000-000000000000",e.AgreementFileName="",e.AgreementFullPath="",e.AgreementPath="",t.$message.success(t.$t("common:message:savedSuccessfully"))}))})).catch((function(e){}))},handleStats:function(e){var t=this;this.currentClickRowData=e,"00000000-0000-0000-0000-000000000000"===e.AgreementId?this.$confirm(this.$t("trials:enrolledReviews:message:statsWarning"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.handleTipCloseOK()})).catch((function(e){})):this.handleTipCloseOK()},handleTipCloseOK:function(){zzSessionStorage.setItem("ReviewerName",this.currentClickRowData.FirstName+" "+this.currentClickRowData.LastName),this.$router.push({path:"/trials/trials-panel/enrolled-reviewers/stats?doctorId=".concat(this.currentClickRowData.DoctorId,"&trialId=").concat(this.listQuery.TrialId,"&trialCode=").concat(this.trialId,"&doctorName=").concat(this.currentClickRowData.LastName,"/").concat(this.currentClickRowData.FirstName)})},getSummaries:function(e){var t=e.columns,i=e.data,n=[];return t.forEach((function(e,t){if(1!==t){var a=i.map((function(t){return Number(t[e.property])}));a.every((function(e){return isNaN(e)}))||(n[t]=a.reduce((function(e,t){var i=Number(t);return isNaN(i)?e:e+t}),0))}else n[t]="Total (Current Page)"})),n}}},p=h,m=(i("3a55"),i("2877")),g=Object(m["a"])(p,n,a,!1,null,null,null);t["default"]=g.exports},"0a53":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{ref:"equipmentForm",attrs:{model:e.form,rules:e.rules,"label-width":"150px"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:e.$t("trials:equiptResearch:form:equipment"),prop:"EquipmentTypeId"}},[i("el-select",{staticStyle:{width:"100%"},model:{value:e.form.EquipmentTypeId,callback:function(t){e.$set(e.form,"EquipmentTypeId",t)},expression:"form.EquipmentTypeId"}},e._l(e.$d.Modality,(function(e){return i("el-option",{key:e.id,attrs:{label:e.label,value:e.id}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:equiptResearch:form:param")}},[i("el-input",{model:{value:e.form.Parameters,callback:function(t){e.$set(e.form,"Parameters",t)},expression:"form.Parameters"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:equiptResearch:form:manufacturer")}},[i("el-input",{model:{value:e.form.ManufacturerName,callback:function(t){e.$set(e.form,"ManufacturerName",t)},expression:"form.ManufacturerName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:equiptResearch:form:model")}},[i("el-input",{model:{value:e.form.ScannerType,callback:function(t){e.$set(e.form,"ScannerType",t)},expression:"form.ScannerType"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:equiptResearch:form:remark")}},[i("el-input",{model:{value:e.form.Note,callback:function(t){e.$set(e.form,"Note",t)},expression:"form.Note"}})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{size:"small",type:"primary",disabled:e.btnLoading},on:{click:e.handleCancel}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])},a=[],r=i("db72"),o=(i("456d"),i("ac6a"),i("96cf"),i("3b8d")),s=i("896b"),l=i("a599"),c=i("86a6"),u={name:"ResearchEquipmentForm",props:{data:{type:Object,default:function(){return{}}},trialSiteSurveyEquipmentType:{type:String,default:""}},data:function(){return{form:{Id:"",EquipmentTypeId:"",Parameters:"",ManufacturerName:"",ScannerType:"",Note:"",TrialSiteSurveyId:""},rules:{EquipmentTypeId:[{required:!0,message:this.$t("trials:researchForm:formRule:select"),trigger:["blur","change"]}]},btnLoading:!1,dictionaryList:{}}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:Object.keys(this.data).forEach((function(e){t.form[e]=t.data[e]}));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),handleSave:function(){var e=this;this.$refs["equipmentForm"].validate((function(t){if(t){e.btnLoading=!0,e.form.TrialSiteSurveyId||(e.form.TrialSiteSurveyId=Object(l["b"])("trialSiteSurveyId"));var i=Object(l["b"])("trialId");Object(s["a"])(i,e.form).then((function(t){e.btnLoading=!1,t.IsSuccess&&(e.$message.success(e.$t("common:message:savedSuccessfully")),e.$emit("getList"),e.$emit("close"))})).catch((function(){e.btnLoading=!1}))}}))},handleCancel:function(){this.$emit("close")},getDicData:function(){var e=this;Object(c["c"])(["SiteSurvey_ScanEquipmentType"]).then((function(t){e.dictionaryList=Object(r["a"])({},t.Result)})).catch((function(){}))}}},d=u,f=i("2877"),h=Object(f["a"])(d,n,a,!1,null,null,null);t["default"]=h.exports},"0a58":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"organForm",attrs:{model:e.form,"label-width":"100px",size:"small",rules:e.rules}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:"靶病灶",prop:"TargetLesion"}},[i("el-select",{model:{value:e.form.TargetLesion,callback:function(t){e.$set(e.form,"TargetLesion",t)},expression:"form.TargetLesion"}},e._l(e.$d.TargetAssessment,(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"非靶病灶",prop:"NonTargetLesions"}},[i("el-select",{model:{value:e.form.NonTargetLesions,callback:function(t){e.$set(e.form,"NonTargetLesions",t)},expression:"form.NonTargetLesions"}},e._l(e.$d.NoTargetAssessment,(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"新病灶",prop:"NewLesion"}},[i("el-select",{model:{value:e.form.NewLesion,callback:function(t){e.$set(e.form,"NewLesion",t)},expression:"form.NewLesion"}},e._l(e.$d.NewLesionAssessment,(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"整体疗效",prop:"OverallEfficacy"}},[i("el-select",{model:{value:e.form.OverallEfficacy,callback:function(t){e.$set(e.form,"OverallEfficacy",t)},expression:"form.OverallEfficacy"}},e._l(e.$d.OverallAssessment,(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})})),1)],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{type:"primary"},on:{click:e.handleCancel}},[e._v(" "+e._s(e.$t("common:button:cancel")))]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])},a=[],r=(i("ac6a"),i("456d"),i("e56e")),o={name:"LesionTypeForm",props:{data:{type:Object,default:function(){return{}}}},data:function(){return{targetLesion:["CR","PR","SD","PD","NE","ND"],nonTargetLesion:["CR","NN","PD","NE","ND"],newLesion:["是","否","疑似","NE"],efficacyArr:["CR","PR","SD","NN","PD","NE","ND"],form:{Id:"",CriterionId:"",TargetLesion:"",NonTargetLesions:"",NewLesion:"",OverallEfficacy:""},rules:{TargetLesion:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:["blur"]}],NonTargetLesions:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:["blur"]}],NewLesion:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:["blur"]}],OverallEfficacy:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:["blur"]}]},loading:!1}},mounted:function(){this.initForm()},methods:{handleSave:function(){var e=this;this.$refs.organForm.validate((function(t){t&&(e.loading=!0,Object(r["w"])(e.form).then((function(t){e.loading=!1,e.$emit("close"),e.$emit("getList"),e.form.Id?e.$message.success(e.$t("common:message:savedSuccessfully")):e.$message.success(e.$t("common:message:addedSuccessfully"))})).catch((function(){e.loading=!1})))}))},handleCancel:function(){this.$emit("close")},initForm:function(){if(Object.keys(this.data).length>0)for(var e in this.form)this.data.hasOwnProperty(e)&&(this.form[e]=this.data[e]);this.loading=!1}}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},"0a6d":function(e,t,i){i("e4d1"),i("7f72")},"0b11":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{ref:"radiotherapyForm",staticClass:"radiotherapy-wrapper",attrs:{model:e.form,"label-width":"100px",size:"small",rules:e.rules}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:e.$t("trials:uploadClinicalData:table:bodyPart"),prop:"Position"}},[i("el-input",{model:{value:e.form.Position,callback:function(t){e.$set(e.form,"Position",t)},expression:"form.Position"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:uploadClinicalData:table:beginDate"),prop:"StartTime"}},[i("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date","value-format":"yyyy-MM-dd",format:"yyyy-MM-dd","picker-options":e.beginPickerOption},model:{value:e.form.StartTime,callback:function(t){e.$set(e.form,"StartTime",t)},expression:"form.StartTime"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:uploadClinicalData:table:endDate"),prop:"EndTime"}},[i("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date","value-format":"yyyy-MM-dd",format:"yyyy-MM-dd","picker-options":e.endpickerOption},model:{value:e.form.EndTime,callback:function(t){e.$set(e.form,"EndTime",t)},expression:"form.EndTime"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:uploadClinicalData:table:isPD")}},[i("el-radio-group",{model:{value:e.form.IsPD,callback:function(t){e.$set(e.form,"IsPD",t)},expression:"form.IsPD "}},e._l(e.$d.IsPdEnum,(function(t){return i("el-radio",{key:t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{size:"small",type:"primary",disabled:e.saveBtnLoading},on:{click:e.cancel}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.saveBtnLoading},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])},a=[],r=(i("ac6a"),i("456d"),i("3e42")),o={props:{data:{type:Object,default:function(){return{}}},subjectVisitId:{type:String,required:!0}},data:function(){var e=this;return{trialId:this.$route.query.trialId,form:{Id:"",Position:"",StartTime:"",EndTime:"",IsPD:2,ClinicalDataTrialSetId:""},rules:{Position:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:["blur","change"]}]},saveBtnLoading:!1,beginPickerOption:{disabledDate:function(t){return e.form.EndTime?t.getTime()>=new Date(e.form.EndTime).getTime():t.getTime()>Date.now()}},endpickerOption:{disabledDate:function(t){return e.form.StartTime?t.getTime()>Date.now()||t.getTime()<=new Date(e.form.StartTime).getTime()-864e5:t.getTime()>Date.now()}}}},mounted:function(){if(Object.keys(this.data).length)for(var e in this.form)this.data.hasOwnProperty(e)&&(this.form[e]=this.data[e])},methods:{handleSave:function(){var e=this;this.$refs.radiotherapyForm.validate((function(t){t&&(e.saveBtnLoading=!0,e.form.SubjectVisitId=e.subjectVisitId,Object(r["l"])(e.trialId,e.form).then((function(t){e.saveBtnLoading=!1,e.$emit("closePRDialog"),e.$emit("refresh"),e.$message.success(e.$t("common:message:savedSuccessfully"))})).catch((function(){e.saveBtnLoading=!1})))}))},cancel:function(){this.$emit("closePRDialog")}}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},"0b29":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"comment-info"},[i("el-form",{staticClass:"demo-form-inline",attrs:{model:e.statusList,size:"small"}},[i("el-form-item",{attrs:{label:"Comment:"}},[i("el-input",{attrs:{type:"textarea",autosize:"",readonly:""},model:{value:e.statusList.AdminComment,callback:function(t){e.$set(e.statusList,"AdminComment",t)},expression:"statusList.AdminComment"}})],1)],1)],1)},a=[],r={props:{statusList:{type:Object,default:function(){return{}}}}},o=r,s=(i("9159"),i("2877")),l=Object(s["a"])(o,n,a,!1,null,null,null);t["default"]=l.exports},"0b44":function(e,t,i){var n=i("607d"),a=function(){this._track=[]};function r(e){var t=e[1][0]-e[0][0],i=e[1][1]-e[0][1];return Math.sqrt(t*t+i*i)}function o(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}a.prototype={constructor:a,recognize:function(e,t,i){return this._doTrack(e,t,i),this._recognize(e)},clear:function(){return this._track.length=0,this},_doTrack:function(e,t,i){var a=e.touches;if(a){for(var r={points:[],touches:[],target:t,event:e},o=0,s=a.length;o<s;o++){var l=a[o],c=n.clientToLocal(i,l,{});r.points.push([c.zrX,c.zrY]),r.touches.push(l)}this._track.push(r)}},_recognize:function(e){for(var t in s)if(s.hasOwnProperty(t)){var i=s[t](this._track,e);if(i)return i}}};var s={pinch:function(e,t){var i=e.length;if(i){var n=(e[i-1]||{}).points,a=(e[i-2]||{}).points||n;if(a&&a.length>1&&n&&n.length>1){var s=r(n)/r(a);!isFinite(s)&&(s=1),t.pinchScale=s;var l=o(n);return t.pinchX=l[0],t.pinchY=l[1],{type:"pinch",target:e[0].target,event:t}}}}},l=a;e.exports=l},"0b4b":function(e,t,i){i("d28f"),i("f14c"),i("0ee7"),i("ebf9")},"0b82":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{"min-height":"500px"}},[e.isRender?i("el-form",{ref:"questions",attrs:{size:"small",model:e.questionForm}},[e._l(e.questions,(function(t){return i("QuestionFormItem",{key:t.Id,attrs:{question:t,"question-form":e.questionForm,"reading-task-state":e.readingTaskState,"criterion-id":e.criterionId,"calculation-list":e.CalculationList},on:{formItemNumberChange:e.formItemNumberChange,resetFormItemData:e.resetFormItemData,setFormItemData:e.setFormItemData}})}))],2):e._e()],1)},r=[],o=(n("ac6a"),n("c5f6"),n("3e42")),s=n("a92b"),l={name:"QuestionsPreview",components:{QuestionFormItem:s["default"]},props:{criterionId:{type:String,required:!0},formType:{type:Number,required:!0}},data:function(){return{loading:!1,questions:[],questionForm:{},publicQuestions:[],isRender:!1,readingTaskState:0,activeName:0,CalculationList:[]}},mounted:function(){this.getQuestionCalculateRelation(),this.getCustomTableQuestionPreview()},methods:{getQuestionCalculateRelation:function(){var e=this;Object(o["Jc"])({TrialReadingCriterionId:this.criterionId}).then((function(t){e.CalculationList=t.Result}))},getCustomTableQuestionPreview:function(){var e=this;this.loading=!0,Object(o["Yb"])({TrialReadingCriterionId:this.criterionId}).then((function(t){t.Result.SinglePage.map((function(t){"group"===t.Type&&0===t.Childrens.length||(t.IsPage||"group"===t.Type||"summary"===t.Type||"table"===t.Type||e.$set(e.questionForm,t.Id,t.Answer),"table"===t.Type&&e.$set(e.questionForm,t.Id,[]),t.Childrens.length>0&&e.setChild(t.Childrens))})),e.questions=t.Result.SinglePage,e.isRender=!0,e.loading=!1}))},getQuestions:function(){var e=this;this.loading=!0;var t={readingQuestionCriterionTrialId:this.criterionId,formType:this.formType};Object(o["Vd"])(t).then((function(t){2===t.OtherInfo.FormType?(t.Result.MultiPage.length>0&&(t.Result.MultiPage.map((function(t){"group"===t.Type&&0===t.Childrens.length&&"table"!==i.Type||(t.IsPage||"group"===t.Type||"summary"===t.Type||"table"===i.Type||e.$set(e.questionForm,t.Id,t.Answer),t.Childrens.length>0&&e.setChild(t.Childrens))})),e.questions=t.Result.MultiPage,e.activeName=t.Result.MultiPage[0].PageName),t.Result.PublicPage.length>0&&(t.Result.PublicPage.map((function(t){"group"===t.Type&&0===t.Childrens.length&&"table"!==i.Type||(t.IsPage||"group"===t.Type||"summary"===t.Type||"table"===i.Type||e.$set(e.questionForm,t.Id,t.Answer),t.Childrens.length>0&&e.setChild(t.Childrens))})),e.publicQuestions=t.Result.PublicPage)):(t.Result.SinglePage.map((function(t){"group"===t.Type&&0===t.Childrens.length&&"table"!==i.Type||(t.IsPage||"group"===t.Type||"summary"===t.Type||"table"===i.Type||"number"===i.Type||e.$set(e.questionForm,t.Id,t.Answer),"table"===i.Type&&e.$set(e.questionForm,t.Id,[]),"number"===i.Type&&e.$set(e.questionForm,t.Id,t.Answer),t.Childrens.length>0&&e.setChild(t.Childrens))})),e.questions=t.Result.SinglePage),e.isRender=!0,e.loading=!1})).catch((function(){e.loading=!1}))},setChild:function(e){var t=this;e.forEach((function(e){"group"!==e.Type&&"summary"!==e.Type&&e.Id&&"table"!==e.Type&&t.$set(t.questionForm,e.Id,e.Answer),"table"===e.Type&&t.$set(t.questionForm,e.Id,[]),"number"===e.Type&&t.$set(t.questionForm,e.Id,e.Answer),e.Childrens&&e.Childrens.length>0&&t.setChild(e.Childrens)}))},resetFormItemData:function(e){this.questionForm[e]=""},setFormItemData:function(e){this.$set(this.questionForm,e.key,JSON.parse(JSON.stringify(e.val)))}}},c=l,u=(n("ae98"),n("2877")),d=Object(u["a"])(c,a,r,!1,null,"72f85b2c",null);t["default"]=d.exports},"0b94":function(e,t,i){},"0bb1":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[e.question.GroupName&&"group"===e.question.Type?i("div",[i("h4",{staticStyle:{color:"#ddd",padding:"5px 0px",margin:"0"}},[e._v("\n "+e._s(e.question.GroupName)+"\n ")])]):[1===e.question.ShowQuestion&&e.questionForm[e.question.ParentId]===e.question.ParentTriggerValue||0===e.question.ShowQuestion?i("el-form-item",{class:["group"===e.question.Type?"mb":"upload"===e.question.Type?"uploadWrapper":""],attrs:{label:""+e.question.QuestionName,prop:e.question.Id,rules:[{required:(0===e.question.IsRequired||1===e.question.IsRequired&&e.question.RelevanceId&&e.questionForm[e.question.RelevanceId]===e.question.RelevanceValue)&&"group"!==e.question.Type&&"summary"!==e.question.Type,message:"请注明",trigger:["blur","change"]}]}},["input"===e.question.Type?i("el-input",{attrs:{disabled:e.readingTaskState>=2},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"textarea"===e.question.Type?i("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},disabled:e.readingTaskState>=2},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"select"===e.question.Type?i("el-select",{attrs:{disabled:e.readingTaskState>=2||(2===e.question.TableQuestionType||2===e.question.QuestionGenre)&&!!e.question.DictionaryCode,clearable:""},on:{change:function(t){e.formItemChange(t,e.question)}},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},[1===e.question.TableQuestionType?e._l(e.organList,(function(t){return i("el-option",{key:t.Id,attrs:{label:t[e.question.DataTableColumn],value:t[e.question.DataTableColumn]}})})):3===e.question.TableQuestionType||3===e.question.QuestionGenre?e._l(e.$d[e.question.DictionaryCode],(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})})):2!==e.question.TableQuestionType&&2!==e.question.QuestionGenre||!e.question.DictionaryCode?e._l(e.question.TypeValue.split("|"),(function(e){return i("el-option",{key:e,attrs:{label:e,value:e}})})):e._l(e.$d[e.question.DictionaryCode],(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})}))],2):e._e(),e._v(" "),"radio"===e.question.Type?i("el-radio-group",{attrs:{disabled:e.readingTaskState>=2},on:{change:function(t){e.formItemChange(t,e.question)}},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},e._l(e.question.TypeValue.split("|"),(function(t){return i("el-radio",{key:t,attrs:{label:t}},[e._v("\n "+e._s(t)+"\n ")])})),1):e._e(),e._v(" "),"checkbox"===e.question.Type?i("el-checkbox-group",{attrs:{disabled:e.readingTaskState>=2},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},e._l(e.question.TypeValue.split("|"),(function(t){return i("el-checkbox",{key:t,attrs:{label:t}},[e._v("\n "+e._s(t)+"\n ")])})),1):e._e(),e._v(" "),"number"===e.question.Type?i("el-input-number",{attrs:{disabled:e.readingTaskState>=2},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"upload"===e.question.Type?i("el-upload",{class:{disabled:e.fileList.length>=e.question.ImageCount},attrs:{action:e.accept,limit:e.question.ImageCount,"on-preview":e.handlePictureCardPreview,"before-upload":e.handleBeforeUpload,"http-request":e.uploadScreenshot,"list-type":"picture-card","on-remove":e.handleRemove,"file-list":e.fileList,disabled:e.readingTaskState>=2},scopedSlots:e._u([{key:"file",fn:function(t){var n=t.file;return i("div",{},[i("img",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:n.url,alt:""}}),e._v(" "),i("span",{staticClass:"el-upload-list__item-actions"},[i("span",{staticClass:"el-upload-list__item-preview",on:{click:function(t){return e.handlePictureCardPreview(n)}}},[i("i",{staticClass:"el-icon-zoom-in"})]),e._v(" "),e.readingTaskState<2?i("span",{staticClass:"el-upload-list__item-delete",on:{click:function(t){return e.handleRemove(n)}}},[i("i",{staticClass:"el-icon-delete"})]):e._e()])])}}],null,!1,3246650725)},[i("i",{staticClass:"el-icon-plus",attrs:{slot:"default"},slot:"default"})]):e._e(),e._v(" "),"upload"===e.question.Type?i("el-dialog",{attrs:{"append-to-body":"",visible:e.imgVisible,width:"600px"},on:{"update:visible":function(t){e.imgVisible=t}}},[i("el-image",{attrs:{src:e.imageUrl,width:"100%"}},[i("div",{staticClass:"image-slot",attrs:{slot:"placeholder"},slot:"placeholder"},[e._v("\n 加载中"),i("span",{staticClass:"dot"},[e._v("...")])])])],1):e._e()],1):e._e()],e._v(" "),e._l(e.question.Childrens,(function(t){return i("QuestionItem",{key:t.Id,attrs:{question:t,"reading-task-state":e.readingTaskState,"question-form":e.questionForm,"visit-task-id":e.visitTaskId},on:{setFormItemData:e.setFormItemData,resetFormItemData:e.resetFormItemData}})}))],2)},a=[],r=(i("20d6"),i("386d"),i("7f7f"),i("ac6a"),i("28a5"),i("c5f6"),i("3e42")),o={name:"QuestionItem",props:{questionForm:{type:Object,default:function(){return{}}},question:{type:Object,default:function(){return[]}},readingTaskState:{type:Number,required:!0},visitTaskId:{type:String,default:""}},data:function(){return{fileList:[],accept:".png,.jpg,.jpeg",imgVisible:!1,imageUrl:"",urls:[]}},watch:{questionForm:{deep:!0,immediate:!0,handler:function(e){}}},mounted:function(){var e=this;"upload"===this.question.Type&&this.questionForm[this.question.Id]&&(this.urls=this.questionForm[this.question.Id].split("|"),this.fileList=[],this.urls.map((function(t){e.fileList.push({name:"",url:"/api/".concat(t)})})))},methods:{formItemChange:function(e,t){t.Childrens.length>0&&this.resetChild(t.Childrens)},resetChild:function(e){var t=this;e.forEach((function(e){t.$emit("resetFormItemData",e.Id),e.Childrens&&e.Childrens.length>0&&t.resetChild(e.Childrens)}))},resetFormItemData:function(e){this.$emit("resetFormItemData",e)},setFormItemData:function(e){this.$emit("setFormItemData",e)},uploadScreenshot:function(e){var t=this;if(this.visitTaskId){var i=this.$loading({target:document.querySelector(".el-button"),fullscreen:!1,lock:!0,spinner:"el-icon-loading"}),n=new FormData;n.append("file",e.file),Object(r["Af"])(this.$route.query.trialId,this.visitTaskId,n).then((function(e){e.IsSuccess&&(t.fileList.push({url:"/api/".concat(e.Result.Path)}),t.urls.push(e.Result.Path),t.$emit("setFormItemData",{key:t.question.Id,val:t.urls.length>0?t.urls.join("|"):""})),i.close()})).catch((function(){i.close()}))}},handleBeforeUpload:function(e){return!!this.checkFileSuffix(e.name)||(this.$message.error("必须是 ".concat(this.accept," 格式")),!1)},checkFileSuffix:function(e){var t=e.lastIndexOf("."),i=e.substring(t+1,e.length);return-1!==this.accept.toLocaleLowerCase().search(i.toLocaleLowerCase())},handlePictureCardPreview:function(e){this.imageUrl=e.url,this.imgVisible=!0},handleRemove:function(e,t){this.imageUrl="",this.fileList.splice(this.fileList.findIndex((function(t){return t.url===e.url})),1),this.urls.splice(this.fileList.findIndex((function(t){return t===e.url})),1),this.$emit("setFormItemData",{key:this.question.Id,val:this.urls.length>0?this.urls.join("|"):""})}}},s=o,l=(i("ee49"),i("2877")),c=Object(l["a"])(s,n,a,!1,null,"5cf464e6",null);t["default"]=c.exports},"0bd1":function(e,t,i){},"0c12":function(e,t){function i(){}function n(e,t,i,n){for(var a=0,r=t.length,o=0,s=0;a<r;a++){var l=t[a];if(l.removed){for(c=[],u=s;u<s+l.count;u++)c.push(u);l.indices=c,s+=l.count}else{for(var c=[],u=o;u<o+l.count;u++)c.push(u);l.indices=c,o+=l.count,l.added||(s+=l.count)}}return t}function a(e){return{newPos:e.newPos,components:e.components.slice(0)}}i.prototype={diff:function(e,t,i){i||(i=function(e,t){return e===t}),this.equals=i;var r=this;e=e.slice(),t=t.slice();var o=t.length,s=e.length,l=1,c=o+s,u=[{newPos:-1,components:[]}],d=this.extractCommon(u[0],t,e,0);if(u[0].newPos+1>=o&&d+1>=s){for(var f=[],h=0;h<t.length;h++)f.push(h);return[{indices:f,count:t.length}]}function p(){for(var i=-1*l;i<=l;i+=2){var c,d=u[i-1],f=u[i+1],h=(f?f.newPos:0)-i;d&&(u[i-1]=void 0);var p=d&&d.newPos+1<o,m=f&&0<=h&&h<s;if(p||m){if(!p||m&&d.newPos<f.newPos?(c=a(f),r.pushComponent(c.components,void 0,!0)):(c=d,c.newPos++,r.pushComponent(c.components,!0,void 0)),h=r.extractCommon(c,t,e,i),c.newPos+1>=o&&h+1>=s)return n(r,c.components,t,e);u[i]=c}else u[i]=void 0}l++}while(l<=c){var m=p();if(m)return m}},pushComponent:function(e,t,i){var n=e[e.length-1];n&&n.added===t&&n.removed===i?e[e.length-1]={count:n.count+1,added:t,removed:i}:e.push({count:1,added:t,removed:i})},extractCommon:function(e,t,i,n){var a=t.length,r=i.length,o=e.newPos,s=o-n,l=0;while(o+1<a&&s+1<r&&this.equals(t[o+1],i[s+1]))o++,s++,l++;return l&&e.components.push({count:l}),e.newPos=o,s},tokenize:function(e){return e.slice()},join:function(e){return e.slice()}};var r=new i;function o(e,t,i){return r.diff(e,t,i)}e.exports=o},"0c16":function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-row",use:"icon-row-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-row"><defs><style type="text/css"></style></defs><path d="M152 854.856875h325.7146875V237.715625H134.856875v600q0 6.99375 5.0746875 12.0684375T152 854.856875z m737.143125-17.1421875v-600H546.284375v617.1421875H872q6.99375 0 12.0684375-5.07375t5.0746875-12.0684375z m68.5715625-651.429375V837.715625q0 35.3821875-25.16625 60.5484375T872 923.4284375H152q-35.383125 0-60.5484375-25.1653125T66.284375 837.7146875V186.284375q0-35.3821875 25.16625-60.5484375T152 100.5715625h720q35.383125 0 60.5484375 25.1653125t25.16625 60.5484375z" p-id="1183" /></symbol>'});o.a.add(s);t["default"]=s},"0c37":function(e,t,i){var n=i("6d8b"),a="--\x3e",r=function(e){return e.get("autoCurveness")||null},o=function(e,t){var i=r(e),a=20,o=[];if("number"===typeof i)a=i;else if(n.isArray(i))return void(e.__curvenessList=i);t>a&&(a=t);var s=a%2?a+2:a+3;o=[];for(var l=0;l<s;l++)o.push((l%2?l+1:l)/10*(l%2?-1:1));e.__curvenessList=o},s=function(e,t,i){var n=[e.id,e.dataIndex].join("."),r=[t.id,t.dataIndex].join(".");return[i.uid,n,r].join(a)},l=function(e){var t=e.split(a);return[t[0],t[2],t[1]].join(a)},c=function(e,t){var i=s(e.node1,e.node2,t);return t.__edgeMap[i]},u=function(e,t){var i=d(s(e.node1,e.node2,t),t),n=d(s(e.node2,e.node1,t),t);return i+n},d=function(e,t){var i=t.__edgeMap;return i[e]?i[e].length:0};function f(e){r(e)&&(e.__curvenessList=[],e.__edgeMap={},o(e))}function h(e,t,i,n){if(r(i)){var a=s(e,t,i),o=i.__edgeMap,c=o[l(a)];o[a]&&!c?o[a].isForward=!0:c&&o[a]&&(c.isForward=!0,o[a].isForward=!1),o[a]=o[a]||[],o[a].push(n)}}function p(e,t,i,a){var f=r(t),h=n.isArray(f);if(!f)return null;var p=c(e,t);if(!p)return null;for(var m=-1,g=0;g<p.length;g++)if(p[g]===i){m=g;break}var v=u(e,t);o(t,v),e.lineStyle=e.lineStyle||{};var b=s(e.node1,e.node2,t),y=t.__curvenessList,w=h||v%2?0:1;if(p.isForward)return y[w+m];var _=l(b),I=d(_,t),x=y[m+I+w];return a?h?f&&0===f[0]?(I+w)%2?x:-x:((I%2?0:1)+w)%2?x:-x:(I+w)%2?x:-x:y[m+I+w]}t.initCurvenessList=f,t.createEdgeMapForCurveness=h,t.getCurvenessForEdge=p},"0c41":function(e,t,i){var n=i("6d8b"),a=i("4a01"),r=i("01ef"),o=i("c526"),s=o.onIrrelevantElement,l=i("2306"),c=i("5b87"),u=i("8918"),d=u.getUID,f=i("0cde");function h(e){var t=e.getItemStyle(),i=e.get("areaColor");return null!=i&&(t.fill=i),t}function p(e,t,i,a,r){i.off("click"),i.off("mousedown"),t.get("selectedMode")&&(i.on("mousedown",(function(){e._mouseDownFlag=!0})),i.on("click",(function(o){if(e._mouseDownFlag){e._mouseDownFlag=!1;var s=o.target;while(!s.__regions)s=s.parent;if(s){var l={type:("geo"===t.mainType?"geo":"map")+"ToggleSelect",batch:n.map(s.__regions,(function(e){return{name:e.name,from:r.uid}}))};l[t.mainType+"Id"]=t.id,a.dispatchAction(l),m(t,i)}}})))}function m(e,t){t.eachChild((function(t){n.each(t.__regions,(function(i){t.trigger(e.isSelected(i.name)?"emphasis":"normal")}))}))}function g(e,t){var i=new l.Group;this.uid=d("ec_map_draw"),this._controller=new a(e.getZr()),this._controllerHost={target:t?i:null},this.group=i,this._updateGroup=t,this._mouseDownFlag,this._mapName,this._initialized,i.add(this._regionsGroup=new l.Group),i.add(this._backgroundGroup=new l.Group)}g.prototype={constructor:g,draw:function(e,t,i,a,r){var o="geo"===e.mainType,s=e.getData&&e.getData();o&&t.eachComponent({mainType:"series",subType:"map"},(function(t){s||t.getHostGeoModel()!==e||(s=t.getData())}));var c=e.coordinateSystem;this._updateBackground(c);var u,d=this._regionsGroup,g=this.group,v=c.getTransformInfo(),b=!d.childAt(0)||r;if(b)g.transform=v.roamTransform,g.decomposeTransform(),g.dirty();else{var y=new f;y.transform=v.roamTransform,y.decomposeTransform();var w={scale:y.scale,position:y.position};u=y.scale,l.updateProps(g,w,e)}var _=v.rawScale,I=v.rawPosition;d.removeAll();var x=["itemStyle"],S=["emphasis","itemStyle"],T=["label"],C=["emphasis","label"],k=n.createHashMap();n.each(c.regions,(function(t){var i=k.get(t.name)||k.set(t.name,new l.Group),a=new l.CompoundPath({segmentIgnoreThreshold:1,shape:{paths:[]}});i.add(a);var r,c=e.getRegionModel(t.name)||e,f=c.getModel(x),p=c.getModel(S),m=h(f),v=h(p),y=c.getModel(T),w=c.getModel(C);if(s){r=s.indexOfName(t.name);var R=s.getItemVisual(r,"color",!0);R&&(m.fill=R)}var D=function(e){return[e[0]*_[0]+I[0],e[1]*_[1]+I[1]]};n.each(t.geometries,(function(e){if("polygon"===e.type){for(var t=[],i=0;i<e.exterior.length;++i)t.push(D(e.exterior[i]));a.shape.paths.push(new l.Polygon({segmentIgnoreThreshold:1,shape:{points:t}}));for(i=0;i<(e.interiors?e.interiors.length:0);++i){for(var n=e.interiors[i],r=(t=[],0);r<n.length;++r)t.push(D(n[r]));a.shape.paths.push(new l.Polygon({segmentIgnoreThreshold:1,shape:{points:t}}))}}})),a.setStyle(m),a.style.strokeNoScale=!0,a.culling=!0;var L=y.get("show"),O=w.get("show"),$=s&&isNaN(s.get(s.mapDimension("value"),r)),N=s&&s.getItemLayout(r);if(o||$&&(L||O)||N&&N.showLabel){var A,P=o?t.name:r;(!s||r>=0)&&(A=e);var E=new l.Text({position:D(t.center.slice()),scale:[1/g.scale[0],1/g.scale[1]],z2:10,silent:!0});if(l.setLabelStyle(E.style,E.hoverStyle={},y,w,{labelFetcher:A,labelDataIndex:P,defaultText:t.name,useInsideStyle:!1},{textAlign:"center",textVerticalAlign:"middle"}),!b){var M=[1/u[0],1/u[1]];l.updateProps(E,{scale:M},e)}i.add(E)}if(s)s.setItemGraphicEl(r,i);else{c=e.getRegionModel(t.name);a.eventData={componentType:"geo",componentIndex:e.componentIndex,geoIndex:e.componentIndex,name:t.name,region:c&&c.option||{}}}var F=i.__regions||(i.__regions=[]);F.push(t),i.highDownSilentOnTouch=!!e.get("selectedMode"),l.setHoverStyle(i,v),d.add(i)})),this._updateController(e,t,i),p(this,e,d,i,a),m(e,d)},remove:function(){this._regionsGroup.removeAll(),this._backgroundGroup.removeAll(),this._controller.dispose(),this._mapName&&c.removeGraphic(this._mapName,this.uid),this._mapName=null,this._controllerHost={}},_updateBackground:function(e){var t=e.map;this._mapName!==t&&n.each(c.makeGraphic(t,this.uid),(function(e){this._backgroundGroup.add(e)}),this),this._mapName=t},_updateController:function(e,t,i){var a=e.coordinateSystem,o=this._controller,l=this._controllerHost;l.zoomLimit=e.get("scaleLimit"),l.zoom=a.getZoom(),o.enable(e.get("roam")||!1);var c=e.mainType;function u(){var t={type:"geoRoam",componentType:c};return t[c+"Id"]=e.id,t}o.off("pan").on("pan",(function(e){this._mouseDownFlag=!1,r.updateViewOnPan(l,e.dx,e.dy),i.dispatchAction(n.extend(u(),{dx:e.dx,dy:e.dy}))}),this),o.off("zoom").on("zoom",(function(e){if(this._mouseDownFlag=!1,r.updateViewOnZoom(l,e.scale,e.originX,e.originY),i.dispatchAction(n.extend(u(),{zoom:e.scale,originX:e.originX,originY:e.originY})),this._updateGroup){var t=this.group.scale;this._regionsGroup.traverse((function(e){"text"===e.type&&e.attr("scale",[1/t[0],1/t[1]])}))}}),this),o.setPointerChecker((function(t,n,r){return a.getViewRectAfterRoam().contain(n,r)&&!s(t,i,e)}))}};var v=g;e.exports=v},"0c44":function(e,t,i){},"0cde":function(e,t,i){var n=i("1687"),a=i("401b"),r=n.identity,o=5e-5;function s(e){return e>o||e<-o}var l=function(e){e=e||{},e.position||(this.position=[0,0]),null==e.rotation&&(this.rotation=0),e.scale||(this.scale=[1,1]),this.origin=this.origin||null},c=l.prototype;c.transform=null,c.needLocalTransform=function(){return s(this.rotation)||s(this.position[0])||s(this.position[1])||s(this.scale[0]-1)||s(this.scale[1]-1)};var u=[];c.updateTransform=function(){var e=this.parent,t=e&&e.transform,i=this.needLocalTransform(),a=this.transform;if(i||t){a=a||n.create(),i?this.getLocalTransform(a):r(a),t&&(i?n.mul(a,e.transform,a):n.copy(a,e.transform)),this.transform=a;var o=this.globalScaleRatio;if(null!=o&&1!==o){this.getGlobalScale(u);var s=u[0]<0?-1:1,l=u[1]<0?-1:1,c=((u[0]-s)*o+s)/u[0]||0,d=((u[1]-l)*o+l)/u[1]||0;a[0]*=c,a[1]*=c,a[2]*=d,a[3]*=d}this.invTransform=this.invTransform||n.create(),n.invert(this.invTransform,a)}else a&&r(a)},c.getLocalTransform=function(e){return l.getLocalTransform(this,e)},c.setTransform=function(e){var t=this.transform,i=e.dpr||1;t?e.setTransform(i*t[0],i*t[1],i*t[2],i*t[3],i*t[4],i*t[5]):e.setTransform(i,0,0,i,0,0)},c.restoreTransform=function(e){var t=e.dpr||1;e.setTransform(t,0,0,t,0,0)};var d=[],f=n.create();c.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],i=e[2]*e[2]+e[3]*e[3],n=this.position,a=this.scale;s(t-1)&&(t=Math.sqrt(t)),s(i-1)&&(i=Math.sqrt(i)),e[0]<0&&(t=-t),e[3]<0&&(i=-i),n[0]=e[4],n[1]=e[5],a[0]=t,a[1]=i,this.rotation=Math.atan2(-e[1]/i,e[0]/t)}},c.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(n.mul(d,e.invTransform,t),t=d);var i=this.origin;i&&(i[0]||i[1])&&(f[4]=i[0],f[5]=i[1],n.mul(d,t,f),d[4]-=i[0],d[5]-=i[1],t=d),this.setLocalTransform(t)}},c.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},c.transformCoordToLocal=function(e,t){var i=[e,t],n=this.invTransform;return n&&a.applyTransform(i,i,n),i},c.transformCoordToGlobal=function(e,t){var i=[e,t],n=this.transform;return n&&a.applyTransform(i,i,n),i},l.getLocalTransform=function(e,t){t=t||[],r(t);var i=e.origin,a=e.scale||[1,1],o=e.rotation||0,s=e.position||[0,0];return i&&(t[4]-=i[0],t[5]-=i[1]),n.scale(t,t,a),o&&n.rotate(t,t,o),i&&(t[4]+=i[0],t[5]+=i[1]),t[4]+=s[0],t[5]+=s[1],t};var h=l;e.exports=h},"0d29":function(e,t,i){},"0d82":function(e,t,i){"use strict";i("0805")},"0da8":function(e,t,i){var n=i("19eb"),a=i("9850"),r=i("6d8b"),o=i("5e76");function s(e){n.call(this,e)}s.prototype={constructor:s,type:"image",brush:function(e,t){var i=this.style,n=i.image;i.bind(e,this,t);var a=this._image=o.createOrUpdateImage(n,this._image,this,this.onload);if(a&&o.isImageReady(a)){var r=i.x||0,s=i.y||0,l=i.width,c=i.height,u=a.width/a.height;if(null==l&&null!=c?l=c*u:null==c&&null!=l?c=l/u:null==l&&null==c&&(l=a.width,c=a.height),this.setTransform(e),i.sWidth&&i.sHeight){var d=i.sx||0,f=i.sy||0;e.drawImage(a,d,f,i.sWidth,i.sHeight,r,s,l,c)}else if(i.sx&&i.sy){d=i.sx,f=i.sy;var h=l-d,p=c-f;e.drawImage(a,d,f,h,p,r,s,l,c)}else e.drawImage(a,r,s,l,c);null!=i.text&&(this.restoreTransform(e),this.drawRectText(e,this.getBoundingRect()))}},getBoundingRect:function(){var e=this.style;return this._rect||(this._rect=new a(e.x||0,e.y||0,e.width||0,e.height||0)),this._rect}},r.inherits(s,n);var l=s;e.exports=l},"0dd0":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"employment-info"},[i("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0,model:e.employment,size:"small"}},[i("el-row",[i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"Department:"}},[e.isEnglish?i("span",[e._v(e._s(e.employment.Department))]):i("span",[e._v(e._s(e.employment.DepartmentCN))])])],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"Rank:"}},[e.isEnglish?i("span",[e._v(e._s(e.employment.Rank))]):i("span",[e._v(e._s(e.employment.RankCN))])])],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"Physician:"}},[e.isEnglish?i("span",[e._v(e._s(e.employment.Physician))]):i("span",[e._v(e._s(e.employment.PhysicianCN))])])],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"Position:"}},[e.isEnglish?i("span",[e._v(e._s(e.employment.Position))]):i("span",[e._v(e._s(e.employment.PositionCN))])])],1)],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"Hospital:"}},[e.isEnglish?i("span",[e._v(e._s(e.employment.HospitalName))]):i("span",[e._v(e._s(e.employment.HospitalNameCN))])])],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"Affiliated University:"}},[e.isEnglish?i("span",[e._v(e._s(e.employment.UniversityAffiliated))]):i("span",[e._v(e._s(e.employment.UniversityAffiliatedCN))])])],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"City:"}},[e.isEnglish?i("span",[e._v(e._s(e.employment.City))]):i("span",[e._v(e._s(e.employment.CityCN))])])],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"State/Province:"}},[e.isEnglish?i("span",[e._v(e._s(e.employment.Province))]):i("span",[e._v(e._s(e.employment.ProvinceCN))])])],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"Country:"}},[e.isEnglish?i("span",[e._v(e._s(e.employment.Country))]):i("span",[e._v(e._s(e.employment.CountryCN))])])],1)],1)],1)],1)},a=[],r={props:{employment:{type:Object,default:function(){return{}}},isEnglish:{type:Boolean}}},o=r,s=(i("f027"),i("2877")),l=Object(s["a"])(o,n,a,!1,null,null,null);t["default"]=l.exports},"0e0d":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"question-login-wrapper"},[i("div",{staticClass:"box-wrapper"},[i("h2",{staticStyle:{"text-align":"center"}},[e._v("\n 独立阅片人信息填写\n ")]),e._v(" "),i("el-card",{staticStyle:{"padding-top":"40px"},attrs:{shadow:"hover"}},[i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"resetForm",staticClass:"demo-ruleForm",staticStyle:{width:"80%",margin:"0 auto"},attrs:{model:e.form,"label-width":"150px",rules:e.rules,size:"small"}},[i("el-form-item",{attrs:{label:e.$t("trials:researchForm:form:contactorEmail"),prop:"EmailOrPhone"}},[i("el-input",{attrs:{autocomplete:"new-password"},on:{change:e.handleEmailChange},model:{value:e.form.EmailOrPhone,callback:function(t){e.$set(e.form,"EmailOrPhone",t)},expression:"form.EmailOrPhone"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:researchForm:form:verifyCode"),required:""}},[i("el-col",{attrs:{span:20}},[i("el-form-item",{attrs:{prop:"VerificationCode"}},[i("el-input",{attrs:{autocomplete:"new-password"},model:{value:e.form.VerificationCode,callback:function(t){e.$set(e.form,"VerificationCode",t)},expression:"form.VerificationCode"}})],1)],1),e._v(" "),i("el-col",{attrs:{span:4}},[i("el-button",{staticStyle:{width:"100%"},attrs:{size:"small",type:"primary",disabled:e.sendDisabled},on:{click:e.handleSendCode}},[e._v(e._s(e.sendTitle))])],1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{size:"small",disabled:e.btnLoading},on:{click:e.onCancel}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.onSubmit}},[e._v("\n "+e._s(e.$t("common:button:submit"))+"\n ")])],1)],1)],1)],1)])},a=[],r=(i("96cf"),i("3b8d")),o=(i("c5f6"),i("7cdf"),i("896b"),i("33ba")),s=i("c24f"),l=i("4360"),c={data:function(){var e=this,t=function(t,i,n){var a=/^1[3|4|5|7|8][0-9]{9}$/;if(!i)return n(new Error(e.$t("trials:researchForm:formRule:specify")));setTimeout((function(){Number.isInteger(+i)&&a.test(i)?n():n(new Error(e.$t("trials:researchForm:formRule:phone")))}),100)},i=function(t,i,n){if(""===i)n(new Error(e.$t("trials:researchForm:formRule:specify")));else{var a=/^[A-Za-z0-9]+([_\.][A-Za-z0-9]+)*@([A-Za-z0-9\-]+\.)+[A-Za-z]{2,6}$/;e.form.EmailOrPhone&&a.test(e.form.EmailOrPhone)?(e.sendDisabled=!1,n()):(n(new Error(e.$t("trials:researchForm:formRule:email"))),e.sendDisabled=!0)}},n=function(t,i,n){if(""===i)n(new Error(e.$t("trials:researchForm:formRule:specify")));else{var a=/^[A-Za-z0-9]+([_\.][A-Za-z0-9]+)*@([A-Za-z0-9\-]+\.)+[A-Za-z]{2,6}$/;e.form.ReplaceUserEmailOrPhone&&a.test(e.form.ReplaceUserEmailOrPhone)?n():n(new Error(e.$t("trials:researchForm:formRule:email")))}};return{trialId:"",form:{Sponsor:null,ResearchProgramNo:null,TrialCode:null,IndicationType:null,ExperimentName:"",SiteId:null,UserName:null,Phone:null,EmailOrPhone:"",TrialSiteCode:"",IsUpdate:!1,ReplaceUserEmailOrPhone:"",VerificationCode:""},rules:{SiteId:[{required:!0,message:this.$t("trials:researchForm:formRule:specify"),trigger:["blur"]}],UserName:[{required:!0,message:this.$t("trials:researchForm:formRule:specify"),trigger:["blur"]},{min:0,max:50,message:this.$t("trials:researchForm:formRule:maxLength"),trigger:"blur"}],Phone:[{required:!0,validator:t,trigger:["blur"]}],EmailOrPhone:[{required:!0,validator:i,trigger:["blur","change"]}],ReplaceUserEmailOrPhone:[{required:!0,validator:n,trigger:["blur"]}],VerificationCode:[{required:!0,message:this.$t("trials:researchForm:formRule:specify"),trigger:["blur"]}]},siteOptions:[],loading:!1,sendDisabled:!0,btnLoading:!1,sendTitle:this.$t("trials:researchForm:button:send"),count:"",timer:null,isHaveSiteSurveyRecord:!1}},mounted:function(){},methods:{onSubmit:function(){var e=this;this.$refs["resetForm"].validate((function(t){if(!t)return!1;e.btnLoading=!0,e.sendDisabled=!0,e.form.IsUpdate||(e.form.ReplaceUserEmailOrPhone="");var i={emailOrPhone:e.form.EmailOrPhone,verificationCode:e.form.VerificationCode};Object(o["G"])(i).then(function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(i){var n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.btnLoading=!1,zzSessionStorage.clear(),l["a"].dispatch("user/setToken",i.Result.Token),zzSessionStorage.setItem("TokenKey",i.Result.Token),t.next=6,Object(s["e"])();case 6:return n=t.sent,t.next=9,Object(s["d"])();case 9:a=t.sent,l["a"].dispatch("user/setTree",a.Result),l["a"].dispatch("user/setPermissions",n.Result),e.$router.push({path:"/ReviewersResearchForm?Id=".concat(i.Result.DoctorId?i.Result.DoctorId:"","&tabActive=BasicInfo&ReviewStatus=").concat(i.Result.ReviewStatus)});case 13:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(){e.btnLoading=!1,e.sendDisabled=!1}))}))},handleSendCode:function(){var e=this;this.sendDisabled=!0;var t={Email:this.form.EmailOrPhone};Object(o["A"])(t).then((function(t){t.IsSuccess?e.getCode():e.$message.error(t.ErrorMessage)})).catch((function(){e.sendDisabled=!1}))},handleEmailChange:function(){var e=/^[A-Za-z0-9]+([_\.][A-Za-z0-9]+)*@([A-Za-z0-9\-]+\.)+[A-Za-z]{2,6}$/;this.form.EmailOrPhone&&e.test(this.form.EmailOrPhone)?this.sendDisabled=!1:this.sendDisabled=!0},getCode:function(){var e=this,t=60;this.timer||(this.count=t,this.sendDisabled=!0,this.timer=setInterval((function(){e.count>0&&e.count<=t?(e.count--,e.sendTitle="".concat(e.$t("trials:researchForm:button:send"),"(").concat(e.count,"s)"),e.sendDisabled=!0):(e.sendDisabled=!1,e.sendTitle=e.$t("trials:researchForm:button:send"),clearInterval(e.timer),e.timer=null)}),1e3))},onCancel:function(){this.$refs["resetForm"].resetFields()}}},u=c,d=(i("b82f"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,"326bf5de",null);t["default"]=f.exports},"0e0f":function(e,t,i){var n=i("5f14"),a=i("6d8b");function r(e,t){e.eachSeriesByType("sankey",(function(e){var t=e.getGraph(),i=t.nodes;if(i.length){var r=1/0,o=-1/0;a.each(i,(function(e){var t=e.getLayout().value;t<r&&(r=t),t>o&&(o=t)})),a.each(i,(function(t){var i=new n({type:"color",mappingMethod:"linear",dataExtent:[r,o],visual:e.get("color")}),a=i.mapValueToVisual(t.getLayout().value),s=t.getModel().get("itemStyle.color");null!=s?t.setVisual("color",s):t.setVisual("color",a)}))}}))}e.exports=r},"0e3c":function(e,t,i){"use strict";i("e61e")},"0e69":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"closeQCForm",attrs:{model:e.form,size:"small","label-width":"120px"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:e.$t("trials:medicalFeedback:label:closeReasonEnum"),prop:"MedicalDialogCloseEnum",rules:[{required:!0,message:e.$t("common:ruleMessage:select")}]}},[i("el-radio-group",{model:{value:e.form.MedicalDialogCloseEnum,callback:function(t){e.$set(e.form,"MedicalDialogCloseEnum",t)},expression:"form.MedicalDialogCloseEnum"}},e._l(e.$d.MedicalDialogCloseEnum,(function(t){return i("el-radio",{directives:[{name:"show",rawName:"v-show",value:3!==t.value,expression:"item.value!==3"}],key:t.id,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1),e._v(" "),2===e.form.MedicalDialogCloseEnum?i("el-form-item",{attrs:{label:e.$t("trials:medicalFeedback:label:closereasonRemarks"),prop:"DialogCloseReason",rules:[{required:!0,message:e.$t("common:ruleMessage:specify")}]}},[i("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:e.$t("common:ruleMessage:specify")},model:{value:e.form.DialogCloseReason,callback:function(t){e.$set(e.form,"DialogCloseReason",t)},expression:"form.DialogCloseReason"}})],1):e._e()],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleClose}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])},a=[],r=i("3e42"),o={name:"CloseQC",props:{taskMedicalReviewId:{type:String,required:!0}},data:function(){return{form:{MedicalDialogCloseEnum:null,DialogCloseReason:""},loading:!1}},methods:{handleClose:function(){this.$emit("close")},handleSave:function(){var e=this;this.$refs["closeQCForm"].validate((function(t){t&&(e.loading=!0,e.form.TaskMedicalReviewId=e.taskMedicalReviewId,e.form.IsClosedDialog=!0,Object(r["Y"])(e.form).then((function(t){e.loading=!1,t.IsSuccess&&(e.$message.success(e.$t("trials:qcQuality:message:closedSuccessfully")),e.$emit("close"),e.$emit("refresh"))})).catch((function(){e.loading=!1})))}))}}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},"0e8f":function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-tree",use:"icon-tree-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-tree"><path d="M126.713 90.023c.858.985 1.287 2.134 1.287 3.447v29.553c0 1.423-.429 2.6-1.287 3.53-.858.93-1.907 1.395-3.146 1.395H97.824c-1.145 0-2.146-.465-3.004-1.395-.858-.93-1.287-2.107-1.287-3.53V93.47c0-.875.19-1.696.572-2.462.382-.766.906-1.368 1.573-1.806a3.84 3.84 0 0 1 2.146-.657h9.725V69.007a3.84 3.84 0 0 0-.43-1.806 3.569 3.569 0 0 0-1.143-1.313 2.714 2.714 0 0 0-1.573-.492h-36.47v23.149h9.725c1.144 0 2.145.492 3.004 1.478.858.985 1.287 2.134 1.287 3.447v29.553c0 .876-.191 1.696-.573 2.463-.38.766-.905 1.368-1.573 1.806a3.84 3.84 0 0 1-2.145.656H51.915a3.84 3.84 0 0 1-2.145-.656c-.668-.438-1.216-1.04-1.645-1.806a4.96 4.96 0 0 1-.644-2.463V93.47c0-1.313.43-2.462 1.288-3.447.858-.986 1.907-1.478 3.146-1.478h9.582v-23.15h-37.9c-.953 0-1.74.356-2.359 1.068-.62.711-.93 1.56-.93 2.544v19.538h9.726c1.239 0 2.264.492 3.074 1.478.81.985 1.216 2.134 1.216 3.447v29.553c0 1.423-.405 2.6-1.216 3.53-.81.93-1.835 1.395-3.074 1.395H4.29c-.476 0-.93-.082-1.358-.246a4.1 4.1 0 0 1-1.144-.657 4.658 4.658 0 0 1-.93-1.067 5.186 5.186 0 0 1-.643-1.395 5.566 5.566 0 0 1-.215-1.56V93.47c0-.437.048-.875.143-1.313a3.95 3.95 0 0 1 .429-1.15c.19-.328.429-.656.715-.984.286-.329.572-.602.858-.821.286-.22.62-.383 1.001-.493.382-.11.763-.164 1.144-.164h9.726V61.619c0-.985.31-1.833.93-2.544.619-.712 1.358-1.068 2.216-1.068h44.335V39.62h-9.582c-1.24 0-2.288-.492-3.146-1.477a5.09 5.09 0 0 1-1.287-3.448V5.14c0-1.423.429-2.627 1.287-3.612.858-.985 1.907-1.477 3.146-1.477h25.743c.763 0 1.478.246 2.145.739a5.17 5.17 0 0 1 1.573 1.888c.382.766.573 1.587.573 2.462v29.553c0 1.313-.43 2.463-1.287 3.448-.859.985-1.86 1.477-3.004 1.477h-9.725v18.389h42.762c.954 0 1.74.355 2.36 1.067.62.711.93 1.56.93 2.545v26.925h9.582c1.239 0 2.288.492 3.146 1.478z" /></symbol>'});o.a.add(s);t["default"]=s},"0ea4":function(e,t,i){},"0ec8":function(e,t,i){"use strict";i("db47")},"0ee7":function(e,t,i){var n=i("6d8b"),a=i("2306"),r=i("f934"),o=i("5e97"),s=a.Group,l=["width","height"],c=["x","y"],u=o.extend({type:"legend.scroll",newlineDisabled:!0,init:function(){u.superCall(this,"init"),this._currentIndex=0,this.group.add(this._containerGroup=new s),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new s),this._showController},resetInner:function(){u.superCall(this,"resetInner"),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},renderInner:function(e,t,i,r,o,s,l){var c=this;u.superCall(this,"renderInner",e,t,i,r,o,s,l);var d=this._controllerGroup,f=t.get("pageIconSize",!0);n.isArray(f)||(f=[f,f]),p("pagePrev",0);var h=t.getModel("pageTextStyle");function p(e,i){var o=e+"DataIndex",s=a.createIcon(t.get("pageIcons",!0)[t.getOrient().name][i],{onclick:n.bind(c._pageGo,c,o,t,r)},{x:-f[0]/2,y:-f[1]/2,width:f[0],height:f[1]});s.name=e,d.add(s)}d.add(new a.Text({name:"pageText",style:{textFill:h.getTextColor(),font:h.getFont(),textVerticalAlign:"middle",textAlign:"center"},silent:!0})),p("pageNext",1)},layoutInner:function(e,t,i,a,o,s){var u=this.getSelectorGroup(),d=e.getOrient().index,f=l[d],h=c[d],p=l[1-d],m=c[1-d];o&&r.box("horizontal",u,e.get("selectorItemGap",!0));var g=e.get("selectorButtonGap",!0),v=u.getBoundingRect(),b=[-v.x,-v.y],y=n.clone(i);o&&(y[f]=i[f]-v[f]-g);var w=this._layoutContentAndController(e,a,y,d,f,p,m);if(o){if("end"===s)b[d]+=w[f]+g;else{var _=v[f]+g;b[d]-=_,w[h]-=_}w[f]+=v[f]+g,b[1-d]+=w[m]+w[p]/2-v[p]/2,w[p]=Math.max(w[p],v[p]),w[m]=Math.min(w[m],v[m]+b[1-d]),u.attr("position",b)}return w},_layoutContentAndController:function(e,t,i,o,s,l,c){var u=this.getContentGroup(),d=this._containerGroup,f=this._controllerGroup;r.box(e.get("orient"),u,e.get("itemGap"),o?i.width:null,o?null:i.height),r.box("horizontal",f,e.get("pageButtonItemGap",!0));var h=u.getBoundingRect(),p=f.getBoundingRect(),m=this._showController=h[s]>i[s],g=[-h.x,-h.y];t||(g[o]=u.position[o]);var v=[0,0],b=[-p.x,-p.y],y=n.retrieve2(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(m){var w=e.get("pageButtonPosition",!0);"end"===w?b[o]+=i[s]-p[s]:v[o]+=p[s]+y}b[1-o]+=h[l]/2-p[l]/2,u.attr("position",g),d.attr("position",v),f.attr("position",b);var _={x:0,y:0};if(_[s]=m?i[s]:h[s],_[l]=Math.max(h[l],p[l]),_[c]=Math.min(0,p[c]+b[1-o]),d.__rectSize=i[s],m){var I={x:0,y:0};I[s]=Math.max(i[s]-p[s]-y,0),I[l]=_[l],d.setClipPath(new a.Rect({shape:I})),d.__rectSize=I[s]}else f.eachChild((function(e){e.attr({invisible:!0,silent:!0})}));var x=this._getPageInfo(e);return null!=x.pageIndex&&a.updateProps(u,{position:x.contentPosition},!!m&&e),this._updatePageInfoView(e,x),_},_pageGo:function(e,t,i){var n=this._getPageInfo(t)[e];null!=n&&i.dispatchAction({type:"legendScroll",scrollDataIndex:n,legendId:t.id})},_updatePageInfoView:function(e,t){var i=this._controllerGroup;n.each(["pagePrev","pageNext"],(function(n){var a=null!=t[n+"DataIndex"],r=i.childOfName(n);r&&(r.setStyle("fill",a?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),r.cursor=a?"pointer":"default")}));var a=i.childOfName("pageText"),r=e.get("pageFormatter"),o=t.pageIndex,s=null!=o?o+1:0,l=t.pageCount;a&&r&&a.setStyle("text",n.isString(r)?r.replace("{current}",s).replace("{total}",l):r({current:s,total:l}))},_getPageInfo:function(e){var t=e.get("scrollDataIndex",!0),i=this.getContentGroup(),n=this._containerGroup.__rectSize,a=e.getOrient().index,r=l[a],o=c[a],s=this._findTargetItemIndex(t),u=i.children(),d=u[s],f=u.length,h=f?1:0,p={contentPosition:i.position.slice(),pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!d)return p;var m=w(d);p.contentPosition[a]=-m.s;for(var g=s+1,v=m,b=m,y=null;g<=f;++g)y=w(u[g]),(!y&&b.e>v.s+n||y&&!_(y,v.s))&&(v=b.i>v.i?b:y,v&&(null==p.pageNextDataIndex&&(p.pageNextDataIndex=v.i),++p.pageCount)),b=y;for(g=s-1,v=m,b=m,y=null;g>=-1;--g)y=w(u[g]),y&&_(b,y.s)||!(v.i<b.i)||(b=v,null==p.pagePrevDataIndex&&(p.pagePrevDataIndex=v.i),++p.pageCount,++p.pageIndex),v=y;return p;function w(e){if(e){var t=e.getBoundingRect(),i=t[o]+e.position[a];return{s:i,e:i+t[r],i:e.__legendDataIndex}}}function _(e,t){return e.e>=t&&e.s<=t+n}},_findTargetItemIndex:function(e){if(!this._showController)return 0;var t,i,n=this.getContentGroup();return n.eachChild((function(n,a){var r=n.__legendDataIndex;null==i&&null!=r&&(i=a),r===e&&(t=a)})),null!=t?t:i}}),d=u;e.exports=d},"0f07":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"search-container"},[i("div",{staticStyle:{"margin-left":"auto"}},[e.hasPermi(["role:pm"])?i("el-button",{attrs:{icon:"el-icon-check",type:"primary",disabled:0==e.confirmIdArr.length,loading:e.loading},on:{click:e.handleConfirm}},[e._v("\n "+e._s(e.$t("trials:seletctedReviews:button:confirm"))+"\n ")]):e._e()],1)]),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:65},expression:"{bottomOffset:65}"}],staticClass:"table",attrs:{height:"100",data:e.list,"row-class-name":e.handleHighLighRow},on:{"sort-change":e.handleSortChange,"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",selectable:e.handleSelectTable}}),e._v(" "),i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"LastName",label:e.$t("trials:seletctedReviews:table:name"),"show-overflow-tooltip":"","min-width":"120",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("router-link",{staticStyle:{color:"#00d1b2"},attrs:{tag:"a",to:{path:"/trialsResume?doctorId="+t.row.Id+"&token="+e.token},target:"_blank"}},[e._v(e._s(t.row.LastName)+" / "+e._s(t.row.FirstName))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ChineseName",label:e.$t("trials:seletctedReviews:table:nameCN"),"show-overflow-tooltip":"","min-width":"120",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Code",label:e.$t("trials:seletctedReviews:table:id"),"min-width":"100","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"DoctorTrialState",label:e.$t("trials:seletctedReviews:table:status"),"min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[10===t.row.DoctorTrialState?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("DoctorTrialState",t.row.DoctorTrialState)))]):e._e(),e._v(" "),9===t.row.DoctorTrialState?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("DoctorTrialState",t.row.DoctorTrialState)))]):e._e(),e._v(" "),8===t.row.DoctorTrialState?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("DoctorTrialState",t.row.DoctorTrialState)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"OptUserName",label:e.$t("trials:seletctedReviews:table:confirmor"),"min-width":"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"OptTimeStr",label:e.$t("trials:seletctedReviews:table:confirmationTime"),"min-width":"150"}})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.listQuery.PageIndex,limit:e.listQuery.PageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"PageIndex",t)},"update:limit":function(t){return e.$set(e.listQuery,"PageSize",t)},pagination:e.getList}})],1)],2)},a=[],r=i("6071"),o=i("333d"),s=i("3e42"),l=i("4360"),c={name:"Confirmation",components:{BaseContainer:r["default"],Pagination:o["default"]},data:function(){return{list:[],loading:!1,listQuery:{TrialId:"",PageIndex:1,PageSize:20,Asc:!1,SortField:""},total:0,listLoading:!1,confirmIdArr:[],token:l["a"].getters.token}},created:function(){this.initPage()},methods:{initPage:function(){this.getList()},getList:function(){var e=this;this.listLoading=!0,this.listQuery.TrialId=this.$route.query.trialId,Object(s["Tb"])(this.listQuery).then((function(t){e.listLoading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.listLoading=!1}))},handleConfirm:function(){var e=this;this.$confirm(this.$t("trials:seletctedReviews:message:msg2"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){e.doctorConfirm(1)})).catch((function(e){}))},doctorConfirm:function(e){var t=this;this.loading=!0;var i=this.$route.query.trialId,n={TrialId:i,DoctorIdArray:this.confirmIdArr,ConfirmState:e,BaseUrl:"".concat(location.protocol,"//").concat(location.host,"/login"),RouteUrl:"".concat(location.protocol,"//").concat(location.host,"/email-recompose")};Object(s["db"])(n).then((function(e){t.loading=!1,t.getList(),t.$message.success(t.$t("common:message:savedSuccessfully"))})).catch((function(){t.loading=!1}))},handleSelectionChange:function(e){for(var t=[],i=0;i<e.length;i++)t.push(e[i].Id);this.confirmIdArr=t},handleSortChange:function(e){"ascending"===e.order?this.listQuery.Asc=!0:this.listQuery.Asc=!1,this.listQuery.SortField=e.prop,this.listQuery.PageIndex=1,this.getList()},handleHighLighRow:function(e){var t=e.row;e.rowIndex;if(10===t.DoctorTrialState)return"selected"},handleSelectTable:function(e){return 10!==e.DoctorTrialState},handleDetail:function(e){var t=this.$router.resolve({path:"/trialsResume?doctorId=".concat(e.Id)}),i=t.href;window.open(i,"_blank")},cellColor:function(e){var t=e.row,i=(e.column,e.rowIndex,e.columnIndex);if(10===t.DoctorTrialState&&5===i)return{color:"#00d1b2"}}}},u=c,d=i("2877"),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},"0f10":function(e,t,i){"use strict";i("19e8")},"0f13":function(e,t,i){"use strict";i("341e")},"0f23":function(e,t,i){},"0f23a":function(e,t,i){"use strict";i("2bc3")},"0f40":function(e,t,i){},"0f55":function(e,t,i){var n=i("6d8b"),a=i("84ce"),r=function(e,t,i,n,r){a.call(this,e,t,i),this.type=n||"value",this.axisIndex=r};r.prototype={constructor:r,model:null,isHorizontal:function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")}},n.inherits(r,a);var o=r;e.exports=o},"0f88":function(e,t,i){var n,a=i("7726"),r=i("32e9"),o=i("ca5a"),s=o("typed_array"),l=o("view"),c=!(!a.ArrayBuffer||!a.DataView),u=c,d=0,f=9,h="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");while(d<f)(n=a[h[d++]])?(r(n.prototype,s,!0),r(n.prototype,l,!0)):u=!1;e.exports={ABV:c,CONSTR:u,TYPED:s,VIEW:l}},"0f99":function(e,t,i){var n=i("4e08"),a=(n.__DEV__,i("e0d3")),r=a.makeInner,o=a.getDataItemValue,s=i("6d8b"),l=s.createHashMap,c=s.each,u=s.map,d=s.isArray,f=s.isString,h=s.isObject,p=s.isTypedArray,m=s.isArrayLike,g=s.extend,v=(s.assert,i("ec6f")),b=i("93d0"),y=b.SOURCE_FORMAT_ORIGINAL,w=b.SOURCE_FORMAT_ARRAY_ROWS,_=b.SOURCE_FORMAT_OBJECT_ROWS,I=b.SOURCE_FORMAT_KEYED_COLUMNS,x=b.SOURCE_FORMAT_UNKNOWN,S=b.SOURCE_FORMAT_TYPED_ARRAY,T=b.SERIES_LAYOUT_BY_ROW,C={Must:1,Might:2,Not:3},k=r();function R(e){var t=e.option.source,i=x;if(p(t))i=S;else if(d(t)){0===t.length&&(i=w);for(var n=0,a=t.length;n<a;n++){var r=t[n];if(null!=r){if(d(r)){i=w;break}if(h(r)){i=_;break}}}}else if(h(t)){for(var o in t)if(t.hasOwnProperty(o)&&m(t[o])){i=I;break}}else if(null!=t)throw new Error("Invalid data");k(e).sourceFormat=i}function D(e){return k(e).source}function L(e){k(e).datasetMap=l()}function O(e){var t=e.option,i=t.data,n=p(i)?S:y,a=!1,r=t.seriesLayoutBy,o=t.sourceHeader,s=t.dimensions,l=F(e);if(l){var c=l.option;i=c.source,n=k(l).sourceFormat,a=!0,r=r||c.seriesLayoutBy,null==o&&(o=c.sourceHeader),s=s||c.dimensions}var u=$(i,n,r,o,s);k(e).source=new v({data:i,fromDataset:a,seriesLayoutBy:r,sourceFormat:n,dimensionsDefine:u.dimensionsDefine,startIndex:u.startIndex,dimensionsDetectCount:u.dimensionsDetectCount,encodeDefine:t.encode})}function $(e,t,i,n,a){if(!e)return{dimensionsDefine:N(a)};var r,s;if(t===w)"auto"===n||null==n?A((function(e){null!=e&&"-"!==e&&(f(e)?null==s&&(s=1):s=0)}),i,e,10):s=n?1:0,a||1!==s||(a=[],A((function(e,t){a[t]=null!=e?e:""}),i,e)),r=a?a.length:i===T?e.length:e[0]?e[0].length:null;else if(t===_)a||(a=P(e));else if(t===I)a||(a=[],c(e,(function(e,t){a.push(t)})));else if(t===y){var l=o(e[0]);r=d(l)&&l.length||1}return{startIndex:s,dimensionsDefine:N(a),dimensionsDetectCount:r}}function N(e){if(e){var t=l();return u(e,(function(e,i){if(e=g({},h(e)?e:{name:e}),null==e.name)return e;e.name+="",null==e.displayName&&(e.displayName=e.name);var n=t.get(e.name);return n?e.name+="-"+n.count++:t.set(e.name,{count:1}),e}))}}function A(e,t,i,n){if(null==n&&(n=1/0),t===T)for(var a=0;a<i.length&&a<n;a++)e(i[a]?i[a][0]:null,a);else{var r=i[0]||[];for(a=0;a<r.length&&a<n;a++)e(r[a],a)}}function P(e){var t,i=0;while(i<e.length&&!(t=e[i++]));if(t){var n=[];return c(t,(function(e,t){n.push(t)})),n}}function E(e,t,i){var n={},a=F(t);if(!a||!e)return n;var r,o,s=[],l=[],u=t.ecModel,d=k(u).datasetMap,f=a.uid+"_"+i.seriesLayoutBy;e=e.slice(),c(e,(function(t,i){!h(t)&&(e[i]={name:t}),"ordinal"===t.type&&null==r&&(r=i,o=g(e[i])),n[t.name]=[]}));var p=d.get(f)||d.set(f,{categoryWayDim:o,valueWayDim:0});function m(e,t,i){for(var n=0;n<i;n++)e.push(t+n)}function g(e){var t=e.dimsDef;return t?t.length:1}return c(e,(function(e,t){var i=e.name,a=g(e);if(null==r){var o=p.valueWayDim;m(n[i],o,a),m(l,o,a),p.valueWayDim+=a}else if(r===t)m(n[i],0,a),m(s,0,a);else{o=p.categoryWayDim;m(n[i],o,a),m(l,o,a),p.categoryWayDim+=a}})),s.length&&(n.itemName=s),l.length&&(n.seriesName=l),n}function M(e,t,i){var n={},a=F(e);if(!a)return n;var r,o=t.sourceFormat,s=t.dimensionsDefine;o!==_&&o!==I||c(s,(function(e,t){"name"===(h(e)?e.name:e)&&(r=t)}));var l=function(){for(var e={},n={},a=[],l=0,c=Math.min(5,i);l<c;l++){var u=V(t.data,o,t.seriesLayoutBy,s,t.startIndex,l);a.push(u);var d=u===C.Not;if(d&&null==e.v&&l!==r&&(e.v=l),(null==e.n||e.n===e.v||!d&&a[e.n]===C.Not)&&(e.n=l),f(e)&&a[e.n]!==C.Not)return e;d||(u===C.Might&&null==n.v&&l!==r&&(n.v=l),null!=n.n&&n.n!==n.v||(n.n=l))}function f(e){return null!=e.v&&null!=e.n}return f(e)?e:f(n)?n:null}();if(l){n.value=l.v;var u=null!=r?r:l.n;n.itemName=[u],n.seriesName=[u]}return n}function F(e){var t=e.option,i=t.data;if(!i)return e.ecModel.getComponent("dataset",t.datasetIndex||0)}function j(e,t){return V(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function V(e,t,i,n,a,r){var s,l,c,u=5;if(p(e))return C.Not;if(n){var m=n[r];h(m)?(l=m.name,c=m.type):f(m)&&(l=m)}if(null!=c)return"ordinal"===c?C.Must:C.Not;if(t===w)if(i===T){for(var g=e[r],v=0;v<(g||[]).length&&v<u;v++)if(null!=(s=k(g[a+v])))return s}else for(v=0;v<e.length&&v<u;v++){var b=e[a+v];if(b&&null!=(s=k(b[r])))return s}else if(t===_){if(!l)return C.Not;for(v=0;v<e.length&&v<u;v++){var x=e[v];if(x&&null!=(s=k(x[l])))return s}}else if(t===I){if(!l)return C.Not;g=e[l];if(!g||p(g))return C.Not;for(v=0;v<g.length&&v<u;v++)if(null!=(s=k(g[v])))return s}else if(t===y)for(v=0;v<e.length&&v<u;v++){x=e[v];var S=o(x);if(!d(S))return C.Not;if(null!=(s=k(S[r])))return s}function k(e){var t=f(e);return null!=e&&isFinite(e)&&""!==e?t?C.Might:C.Not:t&&"-"!==e?C.Must:void 0}return C.Not}t.BE_ORDINAL=C,t.detectSourceFormat=R,t.getSource=D,t.resetSourceDefaulter=L,t.prepareSource=O,t.makeSeriesEncodeForAxisCoordSys=E,t.makeSeriesEncodeForNameBased=M,t.guessOrdinal=j},"0fd3":function(e,t,i){var n=i("2306"),a=i("7e5b"),r=i("6d8b"),o=i("a15a"),s=o.createSymbol,l=i("401b"),c=i("4a3f");function u(e,t,i){n.Group.call(this),this.add(this.createLine(e,t,i)),this._updateEffectSymbol(e,t)}var d=u.prototype;d.createLine=function(e,t,i){return new a(e,t,i)},d._updateEffectSymbol=function(e,t){var i=e.getItemModel(t),n=i.getModel("effect"),a=n.get("symbolSize"),o=n.get("symbol");r.isArray(a)||(a=[a,a]);var l=n.get("color")||e.getItemVisual(t,"color"),c=this.childAt(1);this._symbolType!==o&&(this.remove(c),c=s(o,-.5,-.5,1,1,l),c.z2=100,c.culling=!0,this.add(c)),c&&(c.setStyle("shadowColor",l),c.setStyle(n.getItemStyle(["color"])),c.attr("scale",a),c.setColor(l),c.attr("scale",a),this._symbolType=o,this._symbolScale=a,this._updateEffectAnimation(e,n,t))},d._updateEffectAnimation=function(e,t,i){var n=this.childAt(1);if(n){var a=this,o=e.getItemLayout(i),s=1e3*t.get("period"),l=t.get("loop"),c=t.get("constantSpeed"),u=r.retrieve(t.get("delay"),(function(t){return t/e.count()*s/3})),d="function"===typeof u;if(n.ignore=!0,this.updateAnimationPoints(n,o),c>0&&(s=this.getLineLength(n)/c*1e3),s!==this._period||l!==this._loop){n.stopAnimation();var f=u;d&&(f=u(i)),n.__t>0&&(f=-s*n.__t),n.__t=0;var h=n.animate("",l).when(s,{__t:1}).delay(f).during((function(){a.updateSymbolPosition(n)}));l||h.done((function(){a.remove(n)})),h.start()}this._period=s,this._loop=l}},d.getLineLength=function(e){return l.dist(e.__p1,e.__cp1)+l.dist(e.__cp1,e.__p2)},d.updateAnimationPoints=function(e,t){e.__p1=t[0],e.__p2=t[1],e.__cp1=t[2]||[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]},d.updateData=function(e,t,i){this.childAt(0).updateData(e,t,i),this._updateEffectSymbol(e,t)},d.updateSymbolPosition=function(e){var t=e.__p1,i=e.__p2,n=e.__cp1,a=e.__t,r=e.position,o=[r[0],r[1]],s=c.quadraticAt,u=c.quadraticDerivativeAt;r[0]=s(t[0],n[0],i[0],a),r[1]=s(t[1],n[1],i[1],a);var d=u(t[0],n[0],i[0],a),f=u(t[1],n[1],i[1],a);if(e.rotation=-Math.atan2(f,d)-Math.PI/2,"line"===this._symbolType||"rect"===this._symbolType||"roundRect"===this._symbolType)if(void 0!==e.__lastT&&e.__lastT<e.__t){var h=1.05*l.dist(o,r);e.attr("scale",[e.scale[0],h]),1===a&&(r[0]=o[0]+(r[0]-o[0])/2,r[1]=o[1]+(r[1]-o[1])/2)}else if(1===e.__lastT){h=2*l.dist(t,r);e.attr("scale",[e.scale[0],h])}else e.attr("scale",this._symbolScale);e.__lastT=e.__t,e.ignore=!1},d.updateLayout=function(e,t){this.childAt(0).updateLayout(e,t);var i=e.getItemModel(t).getModel("effect");this._updateEffectAnimation(e,i,t)},r.inherits(u,n.Group);var f=u;e.exports=f},"10cc":function(e,t,i){var n=i("3eba"),a=i("6d8b"),r=i("9850"),o=i("2b8c"),s=i("a890"),l=i("88b3"),c=i("bd9e"),u=["inBrush","outOfBrush"],d="__ecBrushSelect",f="__ecInBrushSelectEvent",h=n.PRIORITY.VISUAL.BRUSH;function p(e){e.eachComponent({mainType:"brush"},(function(t){var i=t.brushTargetManager=new c(t.option,e);i.setInputRanges(t.areas,e)}))}function m(e,t,i,n,a){if(a){var r=e.getZr();if(!r[f]){r[d]||(r[d]=g);var o=l.createOrUpdate(r,d,i,t);o(e,n)}}}function g(e,t){if(!e.isDisposed()){var i=e.getZr();i[f]=!0,e.dispatchAction({type:"brushSelect",batch:t}),i[f]=!1}}function v(e,t,i,n){for(var a=0,r=t.length;a<r;a++){var o=t[a];if(e[o.brushType](n,i,o.selectors,o))return!0}}function b(e){var t=e.brushSelector;if(a.isString(t)){var i=[];return a.each(s,(function(e,n){i[n]=function(i,n,a,r){var o=n.getItemLayout(i);return e[t](o,a,r)}})),i}if(a.isFunction(t)){var n={};return a.each(s,(function(e,i){n[i]=t})),n}return t}function y(e,t){var i=e.option.seriesIndex;return null!=i&&"all"!==i&&(a.isArray(i)?a.indexOf(i,t)<0:t!==i)}function w(e){var t=e.selectors={};return a.each(s[e.brushType],(function(i,n){t[n]=function(n){return i(n,t,e)}})),e}n.registerLayout(h,(function(e,t,i){e.eachComponent({mainType:"brush"},(function(e){i&&"takeGlobalCursor"===i.type&&e.setBrushOption("brush"===i.key?i.brushOption:{brushType:!1})})),p(e)})),n.registerVisual(h,(function(e,t,i){var n,r,s=[];e.eachComponent({mainType:"brush"},(function(t,i){var l={brushId:t.id,brushIndex:i,brushName:t.name,areas:a.clone(t.areas),selected:[]};s.push(l);var c=t.option,d=c.brushLink,f=[],h=[],p=[],m=0;i||(n=c.throttleType,r=c.throttleDelay);var g=a.map(t.areas,(function(e){return w(a.defaults({boundingRect:_[e.brushType](e)},e))})),I=o.createVisualMappings(t.option,u,(function(e){e.mappingMethod="fixed"}));function x(e){return"all"===d||f[e]}function S(e){return!!e.length}function T(e,t){var i=e.coordinateSystem;m|=i.hasAxisBrushed(),x(t)&&i.eachActiveState(e.getData(),(function(e,t){"active"===e&&(h[t]=1)}))}function C(i,n,r){var o=b(i);if(o&&!y(t,n)&&(a.each(g,(function(n){o[n.brushType]&&t.brushTargetManager.controlSeries(n,i,e)&&r.push(n),m|=S(r)})),x(n)&&S(r))){var s=i.getData();s.each((function(e){v(o,r,s,e)&&(h[e]=1)}))}}a.isArray(d)&&a.each(d,(function(e){f[e]=1})),e.eachSeries((function(e,t){var i=p[t]=[];"parallel"===e.subType?T(e,t,i):C(e,t,i)})),e.eachSeries((function(e,t){var i={seriesId:e.id,seriesIndex:t,seriesName:e.name,dataIndex:[]};l.selected.push(i);var n=b(e),a=p[t],r=e.getData(),s=x(t)?function(e){return h[e]?(i.dataIndex.push(r.getRawIndex(e)),"inBrush"):"outOfBrush"}:function(e){return v(n,a,r,e)?(i.dataIndex.push(r.getRawIndex(e)),"inBrush"):"outOfBrush"};(x(t)?m:S(a))&&o.applyVisual(u,I,r,s)}))})),m(t,n,r,s,i)}));var _={lineX:a.noop,lineY:a.noop,rect:function(e){return I(e.range)},polygon:function(e){for(var t,i=e.range,n=0,a=i.length;n<a;n++){t=t||[[1/0,-1/0],[1/0,-1/0]];var r=i[n];r[0]<t[0][0]&&(t[0][0]=r[0]),r[0]>t[0][1]&&(t[0][1]=r[0]),r[1]<t[1][0]&&(t[1][0]=r[1]),r[1]>t[1][1]&&(t[1][1]=r[1])}return t&&I(t)}};function I(e){return new r(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}t.layoutCovers=p},1111:function(e,t,i){var n=i("3eba");i("67a8"),i("4784");var a=i("7f96"),r=i("87c3");n.registerVisual(a("effectScatter","circle")),n.registerLayout(r("effectScatter"))},"114c":function(e,t,i){"use strict";i("77f0")},1159:function(e,t,i){},1170:function(e,t,i){"use strict";i("d832")},"117f":function(e,t,i){},1186:function(e,t,i){},"11ae":function(e,t,i){"use strict";i("1937")},"11b0":function(e,t){function i(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},1249:function(e,t,i){"use strict";i("a1d1")},1266:function(e,t,i){"use strict";i("bc42")},1310:function(e,t){function i(e){return null!=e&&"object"==typeof e}e.exports=i},"132c":function(e,t,i){},1336:function(e,t,i){},"133d":function(e,t,i){var n=i("6d8b"),a=i("e0d3");function r(e,t){var i,r=[],o=e.seriesIndex;if(null==o||!(i=t.getSeriesByIndex(o)))return{point:[]};var s=i.getData(),l=a.queryDataIndex(s,e);if(null==l||l<0||n.isArray(l))return{point:[]};var c=s.getItemGraphicEl(l),u=i.coordinateSystem;if(i.getTooltipPosition)r=i.getTooltipPosition(l)||[];else if(u&&u.dataToPoint)r=u.dataToPoint(s.getValues(n.map(u.dimensions,(function(e){return s.mapDimension(e)})),l,!0))||[];else if(c){var d=c.getBoundingRect().clone();d.applyTransform(c.transform),r=[d.x+d.width/2,d.y+d.height/2]}return{point:r,el:c}}e.exports=r},1371:function(e,t,i){},"137a":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"subjectForm",attrs:{model:e.form,rules:e.rules,size:"small","label-width":"80px"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:"窗宽"}},[i("el-input-number",{attrs:{"controls-position":"right"},model:{value:e.form.ww,callback:function(t){e.$set(e.form,"ww",t)},expression:"form.ww"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"窗位"}},[i("el-input-number",{attrs:{"controls-position":"right"},model:{value:e.form.wc,callback:function(t){e.$set(e.form,"wc",t)},expression:"form.wc"}})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleCancel}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])},a=[],r={name:"CustomWwwcForm",data:function(){return{form:{ww:"",wc:""},rules:{ww:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}],wc:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}]},loading:!1}},methods:{handleSave:function(){var e=this;this.$refs.subjectForm.validate((function(t){t&&e.$emit("setWwwc",e.form)}))},handleCancel:function(){this.$emit("close")}}},o=r,s=i("2877"),l=Object(s["a"])(o,n,a,!1,null,null,null);t["default"]=l.exports},"13aa":function(e,t,i){},"13f4":function(e,t,i){},1418:function(e,t,i){var n=i("6d8b"),a=i("a15a"),r=a.createSymbol,o=i("2306"),s=i("3842"),l=s.parsePercent,c=i("c775"),u=c.getDefaultLabel;function d(e,t,i){o.Group.call(this),this.updateData(e,t,i)}var f=d.prototype,h=d.getSymbolSize=function(e,t){var i=e.getItemVisual(t,"symbolSize");return i instanceof Array?i.slice():[+i,+i]};function p(e){return[e[0]/2,e[1]/2]}function m(e,t){this.parent.drift(e,t)}f._createSymbol=function(e,t,i,n,a){this.removeAll();var o=t.getItemVisual(i,"color"),s=r(e,-1,-1,2,2,o,a);s.attr({z2:100,culling:!0,scale:p(n)}),s.drift=m,this._symbolType=e,this.add(s)},f.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(e)},f.getSymbolPath=function(){return this.childAt(0)},f.getScale=function(){return this.childAt(0).scale},f.highlight=function(){this.childAt(0).trigger("emphasis")},f.downplay=function(){this.childAt(0).trigger("normal")},f.setZ=function(e,t){var i=this.childAt(0);i.zlevel=e,i.z=t},f.setDraggable=function(e){var t=this.childAt(0);t.draggable=e,t.cursor=e?"move":t.cursor},f.updateData=function(e,t,i){this.silent=!1;var n=e.getItemVisual(t,"symbol")||"circle",a=e.hostModel,r=h(e,t),s=n!==this._symbolType;if(s){var l=e.getItemVisual(t,"symbolKeepAspect");this._createSymbol(n,e,t,r,l)}else{var c=this.childAt(0);c.silent=!1,o.updateProps(c,{scale:p(r)},a,t)}if(this._updateCommon(e,t,r,i),s){c=this.childAt(0);var u=i&&i.fadeIn,d={scale:c.scale.slice()};u&&(d.style={opacity:c.style.opacity}),c.scale=[0,0],u&&(c.style.opacity=0),o.initProps(c,d,a,t)}this._seriesModel=a};var g=["itemStyle"],v=["emphasis","itemStyle"],b=["label"],y=["emphasis","label"];function w(e,t){if(!this.incremental&&!this.useHoverLayer)if("emphasis"===t){var i=this.__symbolOriginalScale,n=i[1]/i[0],a={scale:[Math.max(1.1*i[0],i[0]+3),Math.max(1.1*i[1],i[1]+3*n)]};this.animateTo(a,400,"elasticOut")}else"normal"===t&&this.animateTo({scale:this.__symbolOriginalScale},400,"elasticOut")}f._updateCommon=function(e,t,i,a){var r=this.childAt(0),s=e.hostModel,c=e.getItemVisual(t,"color");"image"!==r.type?r.useStyle({strokeNoScale:!0}):r.setStyle({opacity:1,shadowBlur:null,shadowOffsetX:null,shadowOffsetY:null,shadowColor:null});var d=a&&a.itemStyle,f=a&&a.hoverItemStyle,h=a&&a.symbolOffset,m=a&&a.labelModel,_=a&&a.hoverLabelModel,I=a&&a.hoverAnimation,x=a&&a.cursorStyle;if(!a||e.hasItemOption){var S=a&&a.itemModel?a.itemModel:e.getItemModel(t);d=S.getModel(g).getItemStyle(["color"]),f=S.getModel(v).getItemStyle(),h=S.getShallow("symbolOffset"),m=S.getModel(b),_=S.getModel(y),I=S.getShallow("hoverAnimation"),x=S.getShallow("cursor")}else f=n.extend({},f);var T=r.style,C=e.getItemVisual(t,"symbolRotate");r.attr("rotation",(C||0)*Math.PI/180||0),h&&r.attr("position",[l(h[0],i[0]),l(h[1],i[1])]),x&&r.attr("cursor",x),r.setColor(c,a&&a.symbolInnerColor),r.setStyle(d);var k=e.getItemVisual(t,"opacity");null!=k&&(T.opacity=k);var R=e.getItemVisual(t,"liftZ"),D=r.__z2Origin;null!=R?null==D&&(r.__z2Origin=r.z2,r.z2+=R):null!=D&&(r.z2=D,r.__z2Origin=null);var L=a&&a.useNameLabel;function O(t,i){return L?e.getName(t):u(e,t)}o.setLabelStyle(T,f,m,_,{labelFetcher:s,labelDataIndex:t,defaultText:O,isRectText:!0,autoColor:c}),r.__symbolOriginalScale=p(i),r.hoverStyle=f,r.highDownOnUpdate=I&&s.isAnimationEnabled()?w:null,o.setHoverStyle(r)},f.fadeOut=function(e,t){var i=this.childAt(0);this.silent=i.silent=!0,(!t||!t.keepLabel)&&(i.style.text=null),o.updateProps(i,{style:{opacity:0},scale:[0,0]},this._seriesModel,this.dataIndex,e)},n.inherits(d,o.Group);var _=d;e.exports=_},"144c":function(e,t,i){"use strict";i("e872")},1453:function(e,t,i){},1466:function(e,t,i){var n=i("3eba"),a=i("2306"),r=i("6d8b"),o=i("a15a");function s(e){return r.isArray(e)||(e=[+e,+e]),e}var l=n.extendChartView({type:"radar",render:function(e,t,i){var n=e.coordinateSystem,l=this.group,c=e.getData(),u=this._data;function d(e,t){var i=e.getItemVisual(t,"symbol")||"circle",n=e.getItemVisual(t,"color");if("none"!==i){var a=s(e.getItemVisual(t,"symbolSize")),r=o.createSymbol(i,-1,-1,2,2,n),l=e.getItemVisual(t,"symbolRotate")||0;return r.attr({style:{strokeNoScale:!0},z2:100,scale:[a[0]/2,a[1]/2],rotation:l*Math.PI/180||0}),r}}function f(t,i,n,r,o,s){n.removeAll();for(var l=0;l<i.length-1;l++){var c=d(r,o);c&&(c.__dimIdx=l,t[l]?(c.attr("position",t[l]),a[s?"initProps":"updateProps"](c,{position:i[l]},e,o)):c.attr("position",i[l]),n.add(c))}}function h(e){return r.map(e,(function(e){return[n.cx,n.cy]}))}c.diff(u).add((function(t){var i=c.getItemLayout(t);if(i){var n=new a.Polygon,r=new a.Polyline,o={shape:{points:i}};n.shape.points=h(i),r.shape.points=h(i),a.initProps(n,o,e,t),a.initProps(r,o,e,t);var s=new a.Group,l=new a.Group;s.add(r),s.add(n),s.add(l),f(r.shape.points,i,l,c,t,!0),c.setItemGraphicEl(t,s)}})).update((function(t,i){var n=u.getItemGraphicEl(i),r=n.childAt(0),o=n.childAt(1),s=n.childAt(2),l={shape:{points:c.getItemLayout(t)}};l.shape.points&&(f(r.shape.points,l.shape.points,s,c,t,!1),a.updateProps(r,l,e),a.updateProps(o,l,e),c.setItemGraphicEl(t,n))})).remove((function(e){l.remove(u.getItemGraphicEl(e))})).execute(),c.eachItemGraphicEl((function(e,t){var i=c.getItemModel(t),n=e.childAt(0),o=e.childAt(1),s=e.childAt(2),u=c.getItemVisual(t,"color");l.add(e),n.useStyle(r.defaults(i.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:u})),n.hoverStyle=i.getModel("emphasis.lineStyle").getLineStyle();var d=i.getModel("areaStyle"),f=i.getModel("emphasis.areaStyle"),h=d.isEmpty()&&d.parentModel.isEmpty(),p=f.isEmpty()&&f.parentModel.isEmpty();p=p&&h,o.ignore=h,o.useStyle(r.defaults(d.getAreaStyle(),{fill:u,opacity:.7})),o.hoverStyle=f.getAreaStyle();var m=i.getModel("itemStyle").getItemStyle(["color"]),g=i.getModel("emphasis.itemStyle").getItemStyle(),v=i.getModel("label"),b=i.getModel("emphasis.label");s.eachChild((function(e){e.setStyle(m),e.hoverStyle=r.clone(g);var i=c.get(c.dimensions[e.__dimIdx],t);(null==i||isNaN(i))&&(i=""),a.setLabelStyle(e.style,e.hoverStyle,v,b,{labelFetcher:c.hostModel,labelDataIndex:t,labelDimIndex:e.__dimIdx,defaultText:i,autoColor:u,isRectText:!0})})),e.highDownOnUpdate=function(e,t){o.attr("ignore","emphasis"===t?p:h)},a.setHoverStyle(e)})),this._data=c},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}});e.exports=l},"148a":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",e._l(e.questions,(function(t,n){return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],key:n,staticClass:"lesions lesions_wrapper"},["group"===t.Type?i("h4",{staticStyle:{color:"#ddd",padding:"5px 0px",margin:"0"}},[e._v("\n "+e._s(t.GroupName)+"\n ")]):e._e(),e._v(" "),i("div",{staticClass:"lesion_list"},e._l(t.Childrens,(function(n){return i("div",{directives:[{name:"show",rawName:"v-show",value:!(e.isBaseLineTask&&2===n.LesionType)&&!(e.isBaseLineTask&&3===n.LesionType),expression:"!(isBaseLineTask && item.LesionType === 2) && !(isBaseLineTask && item.LesionType === 3)"}],key:n.Id},["table"===n.Type?i("div",{staticClass:"flex-row"},[i("div",{staticClass:"title"},[e._v(e._s(n.QuestionName))]),e._v(" "),e.readingTaskState<2&&(e.isBaseLineTask||2===n.LesionType)?i("div",{staticClass:"add-icon",on:{click:function(t){return t.preventDefault(),e.handleAdd(n)}}},[i("i",{staticClass:"el-icon-plus"})]):e._e()]):e._e(),e._v(" "),"table"===n.Type&&n.TableQuestions?i("el-collapse",{attrs:{accordion:""},on:{change:e.handleCollapseChange},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},e._l(n.TableQuestions.Answers,(function(a,r){return i("el-collapse-item",{key:r,attrs:{name:n.Id+"_"+a.RowIndex}},[i("template",{slot:"title"},[i("div",{staticStyle:{width:"300px",position:"relative"},style:{color:e.activeName===n.Id+a.RowIndex?"#ffeb3b":"#fff"}},[e._v("\n "+e._s(e.getLesionName(n.OrderMark,a.RowIndex,t.Childrens))+"\n "),e._v(" "),e.readingTaskState<2&&0===parseInt(n.TableQuestions.Answers[r].saveTypeEnum)?i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$t("trials:reading:button:unsaved"),placement:"bottom"}},[i("i",{staticClass:"el-icon-warning",staticStyle:{color:"red"}})]):e._e(),e._v(" "),e.readingTaskState<2&&1===parseInt(n.TableQuestions.Answers[r].saveTypeEnum)?i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$t("trials:reading:button:incompleteInfor"),placement:"bottom"}},[i("i",{staticClass:"el-icon-warning",staticStyle:{color:"#ff9800"}})]):e._e(),e._v(" "),i("div",{staticStyle:{position:"absolute",left:"60px",top:"2px"}},[i("div",{staticStyle:{display:"flex","flex-direction":"row","font-size":"10px",width:"200px"}},[n.TableQuestions.Answers[r].lesionPart?i("div",{staticStyle:{"margin-left":"10px","margin-bottom":"5px"}},[e._v("\n "+e._s(n.TableQuestions.Answers[r].lesionPart)+"\n ")]):e._e(),e._v(" "),n.TableQuestions.Answers[r].lesionState?i("div",{staticStyle:{"margin-left":"10px","margin-bottom":"5px"}},[e._v("\n "+e._s(e.$fd("EvaluationOfState",parseInt(n.TableQuestions.Answers[r].lesionState)))+"\n ")]):e._e(),e._v(" "),n.TableQuestions.Answers[r].lesionType?i("div",{staticStyle:{"margin-left":"10px","margin-bottom":"5px"}},[e._v("\n "+e._s(n.TableQuestions.Answers[r].lesionType)+"\n ")]):e._e(),e._v(" "),isNaN(parseInt(n.TableQuestions.Answers[r].lesionNum))||4!==n.LesionType?e._e():i("div",{staticStyle:{"margin-left":"10px","margin-bottom":"5px"}},[e._v("\n "+e._s(n.TableQuestions.Answers[r].lesionNum)+"\n ")])])])],1)]),e._v(" "),i("PCWG3QuestionsForm",{ref:n.Id+"_"+a.RowIndex,refInFor:!0,attrs:{questions:n.TableQuestions.Questions,answers:n.TableQuestions.Answers[r],"lesion-type":n.LesionType,"order-mark":n.OrderMark,"table-questions":e.tableQuestions,"row-index":String(a.RowIndex),"question-name":n.QuestionName,"parent-qs-id":n.Id,"visit-task-id":e.visitTaskId,"is-current-task":e.isCurrentTask,"reading-task-state":e.readingTaskState,"is-base-line-task":e.isBaseLineTask},on:{getReadingQuestionAndAnswer:e.getReadingQuestionAndAnswer,determineExistsUnsavedLession:e.determineExistsUnsavedLession,resetQuestions:e.resetQuestions,close:e.close}})],2)})),1):e._e()],1)})),0)])})),0)},a=[],r=(i("f576"),i("28a5"),i("ac6a"),i("a481"),i("7514"),i("20d6"),i("96cf"),i("3b8d")),o=i("db72"),s=(i("c5f6"),i("9b92")),l=i("7850"),c=i("4360"),u=i("2f62"),d={name:"PCWG3Questions",components:{PCWG3QuestionsForm:l["default"]},props:{questions:{type:Array,default:function(){return[]}},readingTaskStateParent:{type:Number,default:function(){return 0}}},data:function(){return{loading:!1,activeName:null,isBaseLineTask:!1,readingTaskState:0,tableQuestions:[],unSaveTargets:[],activeItem:{activeRowIndex:null,activeCollapseId:null},visitTaskId:"",isFirstRender:!1,isCurrentTask:!1,TaskNum:null,BlindName:null,isMax:!1}},computed:Object(o["a"])({},Object(u["b"])(["visitTaskList"])),watch:{readingTaskStateParent:function(e){this.readingTaskState=e},activeName:function(e){var t=this;if(e){var i="".concat(this.activeItem.activeCollapseId,"_").concat(this.activeItem.activeRowIndex);this.$nextTick((function(){t.$refs[i][0].questionForm&&!t.$refs[i][0].questionForm.MeasureData&&s["a"].$emit("PGWC3Active")}))}}},mounted:function(){var e=this;s["a"].$on("loadMeasurementList",function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(i){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.initPage(i);case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),s["a"].$on("getAllUnSaveLesions",(function(t){var i=e.getAllUnSaveLesions();t(i)})),s["a"].$on("setCollapseActive",(function(t){e.setCollapseActive(t)}))},methods:{modifyMeasuredData:function(e){if(e.questionInfo){this.activeItem.activeCollapseId=e.questionInfo.QuestionId,this.activeItem.activeRowIndex=String(e.questionInfo.RowIndex),this.activeName="".concat(this.activeItem.activeCollapseId,"_").concat(this.activeItem.activeRowIndex);var t="".concat(this.activeItem.activeCollapseId,"_").concat(this.activeItem.activeRowIndex);this.$refs[t][0].setMeasureData(e.measureData)}},setMeasuredData:function(e){var t=this;this.activeItem.activeCollapseId?this.$nextTick((function(){var i="".concat(t.activeItem.activeCollapseId,"_").concat(t.activeItem.activeRowIndex);t.$refs[i][0].questionForm&&t.$refs[i][0].questionForm.MeasureData&&e.data.uuid===t.$refs[i][0].questionForm.MeasureData.data.uuid||!t.$refs[i][0].questionForm.MeasureData?t.$refs[i][0].setMeasureData(e):t.isBaseLineTask?t.createNTTarget(e):t.createNLTarget(e)})):this.isBaseLineTask?this.createNTTarget(e):this.createNLTarget(e)},createNTTarget:function(e){var t=this.tableQuestions.findIndex((function(e){return 4===e.LesionType}));t>-1&&this.addTarget(this.tableQuestions[t],e)},setCollapseActive:function(e){if(e){if(this.activeItem.activeRowIndex===e.RowIndex&&this.activeItem.activeCollapseId===e.QuestionId)return;this.activeItem.activeCollapseId=e.QuestionId,this.activeItem.activeRowIndex=e.RowIndex,this.activeName="".concat(this.activeItem.activeCollapseId,"_").concat(this.activeItem.activeRowIndex)}},createNLTarget:function(e){var t=this.tableQuestions.findIndex((function(e){return 2===e.LesionType})),i=this.tableQuestions.findIndex((function(e){return 3===e.LesionType}));t>-1&&this.addTarget(this.tableQuestions[t],e,this.tableQuestions[i])},addTarget:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t,i,n){var a,r,o,s,l,u=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a={saveTypeEnum:0},r=t.TableQuestions.Questions.find((function(e){return 9===e.QuestionMark})),o=t.TableQuestions.Questions.find((function(e){return 7===e.QuestionMark})),o&&(a[o.Id]=2),s=this.getMaxRowIndex(t.TableQuestions.Answers),s<1&&!this.isBaseLineTask&&(s=this.getMaxRowIndex(n.TableQuestions.Answers)),a.RowIndex="".concat(s+1,".00"),r&&(a[r.Id]=this.BlindName,a["BlindName"]=this.BlindName,a["TaskNum"]=this.TaskNum),e.next=10,c["a"].dispatch("reading/addReadingQuestionAndAnswer",{lesionType:t.LesionType,visitTaskId:this.visitTaskId,lesionObj:a});case 10:this.activeItem.activeRowIndex=String(a.RowIndex),this.activeItem.activeCollapseId=t.Id,this.activeName="".concat(this.activeItem.activeCollapseId,"_").concat(this.activeItem.activeRowIndex),l="".concat(this.activeItem.activeCollapseId,"_").concat(this.activeItem.activeRowIndex),this.$nextTick((function(){u.$refs[l][0].setMeasureData(i)}));case 15:case"end":return e.stop()}}),e,this)})));function t(t,i,n){return e.apply(this,arguments)}return t}(),determineExistsUnsavedLession:function(e){if(this.getUnSaveTarget(),this.unSaveTargets.length>0){var t=String(this.unSaveTargets[0].rowIndex),i=this.unSaveTargets[0].questionId;if(t===String(this.activeItem.activeRowIndex)&&i===this.activeItem.activeCollapseId)return void e(!0);var n=this.$t("trials:reading:warnning:msg17");return n=n.replace("xxx",this.unSaveTargets[0].lessionName),this.$confirm(n,{type:"warning",showCancelButton:!1,callback:function(e){}}),void e(!1)}e(!0)},getReadingQuestionAndAnswer:function(){var e=this;return new Promise(function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(i){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.$loading({fullscreen:!0}),t.next=3,c["a"].dispatch("reading/refreshReadingQuestionAndAnswer",{trialId:e.$router.currentRoute.query.trialId,visitTaskId:e.visitTaskId}).then((function(){var t=e.visitTaskList.findIndex((function(t){return t.VisitTaskId===e.visitTaskId}));t>-1&&(e.visitTaskList[t].ReadingQuestions.length>0&&(e.questions=e.visitTaskList[t].ReadingQuestions),e.readingTaskState=e.visitTaskList[t].ReadingTaskState,e.isBaseLineTask=e.visitTaskList[t].IsBaseLineTask,e.isCurrentTask=e.visitTaskList[t].IsCurrentTask),e.getTableQuestions(),e.$nextTick((function(){e.tableQuestions.forEach((function(t){t.TableQuestions.Answers.forEach((function(i){var n="".concat(t.Id,"_").concat(i.RowIndex);e.$refs[n]&&e.$refs[n][0].initForm()}))}))}))}));case 3:return t.next=5,c["a"].dispatch("reading/refreshMeasuredData",e.visitTaskId);case 5:s["a"].$emit("getMeasureData"),n.close(),i();case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())},getUnSaveTarget:function(){var e=this;return this.unSaveTargets=[],this.isMax=!1,this.tableQuestions.map((function(t){t.TableQuestions&&t.TableQuestions.Answers&&t.TableQuestions.Answers.length<t.MaxQuestionCount?t.TableQuestions.Answers.map((function(i){if(!i.RowId){var n=e.getLesionName(t.OrderMark,i.RowIndex);e.unSaveTargets.push({lessionName:n,rowIndex:i.RowIndex,questionId:t.Id})}})):(e.isMax=!0,e.isBaseLineTask&&(e.isMax=!1),null===t.MaxQuestionCount&&(e.isMax=!1))})),this.unSaveTargets},resetQuestions:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.setQuestions(this.questions,t),e.next=3,c["a"].dispatch("reading/setReadingQuestionAndAnswer",{questions:this.questions,visitTaskId:this.visitTaskId});case 3:this.getTableQuestions();case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),setQuestions:function(e,t){var i=this;e.forEach((function(e){if("table"===e.Type&&e.Id===t.questionId){var n=e.TableQuestions.Answers.findIndex((function(e){return e.RowIndex===t.rowIndex}));for(var a in e.TableQuestions.Answers[n].isLymphLesion=t.isLymphLesion,e.TableQuestions.Answers[n].loctation=t.lesionOrgan,e.TableQuestions.Answers[n].lesionPart=t.lesionPart,e.TableQuestions.Answers[n].lesionLength=t.lesionLength,e.TableQuestions.Answers[n].lesionShort=t.lesionShort,e.TableQuestions.Answers[n].lesionState=t.lesionState,e.TableQuestions.Answers[n].lesionType=t.lesionType,e.TableQuestions.Answers[n].lesionNum=t.lesionNum,e.TableQuestions.Answers[n].saveTypeEnum=t.saveTypeEnum,t.anwsers)"MeasureData"===a&&t.anwsers[a]?(e.TableQuestions.Answers[n].InstanceId=t.anwsers[a].instanceId,e.TableQuestions.Answers[n].SeriesId=t.anwsers[a].seriesId,e.TableQuestions.Answers[n][a]=JSON.stringify(t.anwsers[a]),e.TableQuestions.Answers[n].isDicomReading=!(!1===t.anwsers[a].IsDicomReading||"False"===t.anwsers[a].IsDicomReading)):e.TableQuestions.Answers[n][a]=String(t.anwsers[a])}e.Childrens.length>0&&i.setQuestions(e.Childrens,t)}))},getQuestions:function(e){var t=this;return e.forEach((function(e){"table"===e.Type&&e.TableQuestions&&e.TableQuestions.Answers.length>0&&e.TableQuestions.Answers.forEach((function(i){t.$set(i,"loctation",t.getQuestionAnswer(e.TableQuestions.Questions,6,i)),t.$set(i,"lesionLength",t.getQuestionAnswer(e.TableQuestions.Questions,0,i)),t.$set(i,"lesionShort",t.getQuestionAnswer(e.TableQuestions.Questions,1,i));var n=t.getQuestionAnswer(e.TableQuestions.Questions,2,i);n=n?parseInt(n):null,t.$set(i,"isLymphLesion",n),t.$set(i,"isLesionSaved",!0);var a=t.getQuestionAnswer(e.TableQuestions.Questions,11,i);a=isNaN(parseInt(a))?"":parseInt(a),t.$set(i,"lesionNum",a);var r=t.getQuestionAnswer(e.TableQuestions.Questions,7,i);if(r=isNaN(parseInt(r))?"":parseInt(r),t.$set(i,"lesionState",r),i.RowId){var o=t.questions.findIndex((function(e){return 11===e.QuestionMark}));o>-1?t.$set(i,"saveTypeEnum",isNaN(parseInt(a))?1:2):t.$set(i,"saveTypeEnum",isNaN(parseInt(r))?1:2)}else t.$set(i,"saveTypeEnum",0)})),e.Childrens.length>0&&t.getQuestions(e.Childrens)})),e},getTableQuestions:function(){var e=this;this.tableQuestions=[],this.questions.map((function(t){"table"===t.Type&&e.tableQuestions.push(t),t.Childrens.length>0&&e.getTableQuestionsChild(t.Childrens)}))},getTableQuestionsChild:function(e){var t=this;e.map((function(e){"table"===e.Type&&t.tableQuestions.push(e),e.Childrens.length>0&&t.getTableQuestionsChild(e.Childrens)}))},getLesionName:function(e,t,i){var n="",a=t.split("."),r=parseInt(a[0]),o=parseInt(a[1]);return o>0?(o=String.fromCharCode(parseInt(a[1])-1+65+32),n="".concat(e).concat(String(r).padStart(2,"0")).concat(o)):n="".concat(e).concat(String(r).padStart(2,"0")),n},handleAdd:function(e){var t=this;if(this.getUnSaveTarget(),this.unSaveTargets.length>0){var i=this.$t("trials:reading:warnning:msg5");return i=i.replace("xxx",this.unSaveTargets[0].lessionName),void this.$confirm(i,{type:"warning",showCancelButton:!1,callback:function(e){}})}if(e.MaxQuestionCount&&e.MaxQuestionCount<=e.TableQuestions.Answers.length){var n=this.$t("trials:reading:pcwg:msg3").replace("xxx",e.QuestionName);n=n.replace("n",e.MaxQuestionCount),this.$confirm(n,{type:"warning",showCancelButton:!1,callback:function(e){}})}else{var a={saveTypeEnum:0},r=this.tableQuestions.findIndex((function(e){return 3===e.LesionType})),o=this.getMaxRowIndex(e.TableQuestions.Answers);o<1&&(o=this.getMaxRowIndex(this.tableQuestions[r].TableQuestions.Answers)),a.RowIndex="".concat(o+1,".00"),e.TableQuestions.Questions.forEach((function(e){9===e.QuestionMark?(a[e.Id]=t.BlindName,a["BlindName"]=t.BlindName,a["TaskNum"]=t.TaskNum):7===e.QuestionMark?a[e.Id]=2:a[e.Id]=""})),e.TableQuestions.Answers.push(a),this.activeItem.activeRowIndex=String(a.RowIndex),this.activeItem.activeCollapseId=e.Id,this.activeName="".concat(this.activeItem.activeCollapseId,"_").concat(this.activeItem.activeRowIndex)}},getMaxRowIndex:function(e){if(e.length>0){var t=[];e.forEach((function(e){var i=e.RowIndex;t.push(parseInt(i))}));var i=Math.max.apply(null,t);return i}return 0},handleCollapseChange:function(e){var t=this;if(this.activeName){var i=this.activeName.split("_");this.activeItem.activeRowIndex=i[1],this.activeItem.activeCollapseId=i[0],this.$nextTick((function(){var e="".concat(t.activeItem.activeCollapseId,"_").concat(t.activeItem.activeRowIndex);!1!==t.$refs[e][0].questionForm.IsDicomReading&&s["a"].$emit("imageLocation",{questionId:t.activeItem.activeCollapseId,rowIndex:t.activeItem.activeRowIndex,visitTaskId:t.visitTaskId,lesionName:t.$refs[e][0].lesionName,lesionType:t.$refs[e][0].lesionType})}))}else this.activeItem.activeRowIndex=null,this.activeItem.activeCollapseId=null},getAllUnSaveLesions:function(){var e=this,t=[];return this.tableQuestions.map((function(i){i.TableQuestions&&i.TableQuestions.Answers&&i.TableQuestions.Answers.map((function(n){var a="".concat(i.Id,"_").concat(n.RowIndex);if(e.$refs[a]&&e.$refs[a][0]&&2!==e.$refs[a][0].questionForm.saveTypeEnum){var r=e.getLesionName(i.OrderMark,n.RowIndex);t.push({lessionName:r,rowIndex:n.RowIndex,questionId:i.Id})}}))})),t},initPage:function(e){var t=this;this.visitTaskId!==e.visitTaskId&&(this.visitTaskId=e.visitTaskId,this.taskBlindName=e.taskBlindName,this.activeName="",this.activeItem.activeRowIndex=null,this.activeItem.activeCollapseId=null,this.$emit("getECRFQuestions",e));var i=this.visitTaskList.findIndex((function(t){return t.VisitTaskId===e.visitTaskId}));i>-1&&(this.visitTaskList[i].ReadingQuestions.length>0&&(this.questions=this.visitTaskList[i].ReadingQuestions),this.readingTaskState=this.visitTaskList[i].ReadingTaskState,this.isBaseLineTask=this.visitTaskList[i].IsBaseLineTask,this.isCurrentTask=this.visitTaskList[i].IsCurrentTask,this.TaskNum=this.visitTaskList[i].VisitTaskNum,this.BlindName=this.visitTaskList[i].TaskBlindName,this.getTableQuestions(),this.isFirstRender&&this.$nextTick((function(){t.tableQuestions.forEach((function(e){e.TableQuestions.Answers.forEach((function(i){var n="".concat(e.Id,"_").concat(i.RowIndex);t.$refs[n]&&t.$refs[n][0].initForm()}))}))}))),this.isFirstRender||(this.isFirstRender=!0)},isCanActiveTool:function(e){if(this.getUnSaveTarget(),this.activeName){var t="".concat(this.activeItem.activeCollapseId,"_").concat(this.activeItem.activeRowIndex);if(this.$refs[t][0].questionForm.MeasureData&&this.isMax)return{isCanActiveTool:!1,reason:this.$t("trials:reading:pcwg:msg1")}}else if(this.isMax)return{isCanActiveTool:!1,reason:this.$t("trials:reading:pcwg:msg1")};if(this.unSaveTargets.length>0){var i=String(this.unSaveTargets[0].rowIndex),n=this.unSaveTargets[0].questionId,a="".concat(this.activeItem.activeCollapseId,"_").concat(this.activeItem.activeRowIndex);if(i!==this.activeItem.activeRowIndex||n!==this.activeItem.activeCollapseId||this.$refs[a][0].questionForm.MeasureData){var r=this.$t("trials:reading:warnning:msg5");return r=r.replace("xxx",this.unSaveTargets[0].lessionName),{isCanActiveTool:!1,reason:r}}return this.checkToolCanActive(e)}return this.activeItem.activeCollapseId?this.checkToolCanActive(e):this.isBaseLineTask?"ArrowAnnotate"===e||"RectangleRoi"===e?{isCanActiveTool:!0,reason:""}:{isCanActiveTool:!1,reason:""}:"ArrowAnnotate"===e?{isCanActiveTool:!0,reason:""}:{isCanActiveTool:!1,reason:""}},checkToolCanActive:function(e){var t="".concat(this.activeItem.activeCollapseId,"_").concat(this.activeItem.activeRowIndex);return this.$refs[t][0].questionForm.MeasureData?"ArrowAnnotate"!==e?{isCanActiveTool:!1,reason:this.$t("trials:reading:pcwg:msg5")}:{isCanActiveTool:!0,reason:""}:this.isBaseLineTask?"RectangleRoi"!==e&&"ArrowAnnotate"!==e?{isCanActiveTool:!1,reason:this.$t("trials:reading:pcwg:msg4")}:{isCanActiveTool:!0,reason:""}:4===this.$refs[t][0].lesionType&&"RectangleRoi"!==e&&"ArrowAnnotate"!==e?{isCanActiveTool:!1,reason:this.$t("trials:reading:pcwg:msg4")}:4!==this.$refs[t][0].lesionType&&"ArrowAnnotate"!==e?{isCanActiveTool:!1,reason:this.$t("trials:reading:pcwg:msg5")}:{isCanActiveTool:!0,reason:""}},close:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t&&this.getReadingQuestionAndAnswer(t.visitTaskId),this.activeItem.activeRowIndex=null,this.activeItem.activeCollapseId=null,this.activeName="";case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()}},f=d,h=(i("d045"),i("2877")),p=Object(h["a"])(f,n,a,!1,null,"3c6fb6d4",null);t["default"]=p.exports},1493:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"glReview_wrapper"},[i("el-card",{staticStyle:{"margin-bottom":"10px"},attrs:{shadow:"never","body-style":{padding:"10px"}}},[e.isReadingShowSubjectInfo?i("h4",[e._v("\n 受试者:\n "),i("span",{staticStyle:{"font-weight":"normal"}},[e._v(e._s(e.subjectCode)+" ")]),e._v(" "),i("span",{staticStyle:{"font-weight":"normal"}},[e._v("("+e._s(e.taskBlindName)+")")])]):e._e()]),e._v(" "),i("el-card",{attrs:{"body-style":{padding:"10px"},shadow:"never"}},[i("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[i("span",{staticStyle:{"font-weight":"bold"}},[e._v("访视评估结果")])]),e._v(" "),e.taskList.length>0&&e.readingTaskState<2?i("div",{staticStyle:{"text-align":"right",margin:"5px 0"}},[i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleConfirm}},[e._v("\n 确认\n ")])],1):e._e(),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.taskList}},[i("el-table-column",{attrs:{prop:"VisitName",label:"访视名称","show-overflow-tooltip":"",width:"150"}}),e._v(" "),i("el-table-column",{attrs:{label:"评估结果",align:"center",prop:""}},[e._l(e.evaluationQsList,(function(t,n){return i("el-table-column",{key:n,attrs:{prop:"",label:t,"show-overflow-tooltip":"",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.BeforeQuestionList.length>n?t.row.BeforeQuestionList[n].Answer:"")+"\n ")]}}],null,!0)})}))],2),e._v(" "),i("el-table-column",{attrs:{label:"调整后结果",align:"center",prop:""}},[e._l(e.adjustedQsList,(function(t,n){return i("el-table-column",{key:n,attrs:{prop:"",label:t,"show-overflow-tooltip":"",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.AfterQuestionList.length>n?t.row.AfterQuestionList[n].Answer:"")+"\n ")]}}],null,!0)})}))],2),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{circle:"",title:"查看详情",icon:"el-icon-view"},on:{click:function(i){return e.handleView(t.row)}}}),e._v(" "),e.readingTaskState<2?i("el-button",{attrs:{circle:"",title:"调整",icon:"el-icon-edit"},on:{click:function(i){return e.handleEdit(t.row)}}}):e._e()]}}])})],1)],1),e._v(" "),e.isReadingShowPreviousResults?i("el-card",{attrs:{"body-style":{padding:"10px"},shadow:"never"}},[i("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[i("span",{staticStyle:{"font-weight":"bold"}},[e._v("既往全局阅片结果")])]),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.historyLoading,expression:"historyLoading"}],attrs:{data:e.historyTaskList}},[i("el-table-column",{attrs:{prop:"TaskBlindName",label:"全局","show-overflow-tooltip":"",width:"200"}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{circle:"",title:"查看详情",icon:"el-icon-view"},on:{click:function(i){return e.handleView(t.row)}}})]}}],null,!1,1012381834)})],1)],1):e._e(),e._v(" "),e.signVisible?i("el-dialog",{attrs:{visible:e.signVisible,"close-on-click-modal":!1,width:"600px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.signVisible=t}}},[i("div",{attrs:{slot:"title"},slot:"title"},[i("span",{staticStyle:{"font-size":"18px"}},[e._v(e._s(e.$t("common:dialogTitle:sign")))]),e._v(" "),i("span",{staticStyle:{"font-size":"12px","margin-left":"5px"}},[e._v(e._s("("+e.$t("common:label:sign")+e.currentUser+")"))])]),e._v(" "),i("SignForm",{ref:"signForm",attrs:{"sign-code-enum":e.signCode},on:{closeDialog:e.closeSignDialog}})],1):e._e(),e._v(" "),e.editVisible?i("el-dialog",{attrs:{visible:e.editVisible,"close-on-click-modal":!1,width:"600px","custom-class":"base-dialog-wrapper",title:"调整"},on:{"update:visible":function(t){e.editVisible=t}}},[i("EditGlobalForm",{attrs:{"global-task-id":e.visitTaskId,"visit-task-id":e.rowData.VisitTaskId,"question-list":e.rowData.AfterQuestionList,"subject-id":e.subjectId,"trial-id":e.trialId,"before-question-list":e.rowData.BeforeQuestionList},on:{getList:e.getGlInfo,close:function(t){e.editVisible=!1}}})],1):e._e()],1)},a=[],r=i("db72"),o=(i("c5f6"),i("3e42")),s=i("5f87"),l=i("7a9e"),c=i("fd1a"),u=i("179b"),d={name:"GlobalReview",components:{EditGlobalForm:c["default"],SignForm:u["default"]},props:{trialId:{type:String,required:!0},subjectId:{type:String,required:!0},visitTaskId:{type:String,required:!0},readingCategory:{type:Number,required:!0},subjectCode:{type:String,required:!0},taskBlindName:{type:String,required:!0},isReadingShowSubjectInfo:{type:Boolean,required:!0},isReadingShowPreviousResults:{type:Boolean,required:!0}},data:function(){return{loading:!1,maxLength:2,evaluationQsList:[],adjustedQsList:[],taskList:[],historyLoading:!1,historyTaskList:[],currentUser:zzSessionStorage.getItem("userName"),signVisible:!1,signCode:null,editVisible:!1,rowData:{},readingTaskState:0}},mounted:function(){this.getGlInfo(),this.isReadingShowPreviousResults&&this.getHistoryGlobalInfo()},methods:{getGlInfo:function(){var e=this;this.loading=!0,Object(o["fc"])({visitTaskId:this.visitTaskId}).then((function(t){var i=[],n=[];if(t.Result.TaskList.length>0){var a=t.Result.TaskList[0];a.BeforeQuestionList.map((function(e){i.push(e.QuestionName)})),a.AfterQuestionList.map((function(e){n.push(e.QuestionName)}))}e.evaluationQsList=i,e.adjustedQsList=n,e.taskList=t.Result.TaskList,e.readingTaskState=t.Result.ReadingTaskState,e.loading=!1})).catch((function(){e.loading=!1}))},getHistoryGlobalInfo:function(){var e=this;this.historyLoading=!0,Object(o["Tc"])({visitTaskId:this.visitTaskId}).then((function(t){e.historyTaskList=t.Result,e.historyLoading=!1})).catch((function(){e.historyLoading=!1}))},handleEdit:function(e){this.rowData=Object(r["a"])({},e),this.editVisible=!0},handleConfirm:function(){var e=l["default"].processSignature.ImageAssessmentReportConfirmation;this.signCode=e,this.signVisible=!0},closeSignDialog:function(e,t){e?this.signConfirm(t):this.signVisible=!1},signConfirm:function(e){var t=this;this.loading=!0;var i={data:{globalTaskId:this.visitTaskId},signInfo:e};Object(o["af"])(i).then((function(e){e.IsSuccess&&(t.$message.success(t.$t("common:message:savedSuccessfully")),t.$refs["signForm"].btnLoading=!1,t.signVisible=!1,window.location.reload(),window.opener.postMessage("refreshTaskList",window.location)),t.loading=!1})).catch((function(e){t.loading=!1,t.$refs["signForm"].btnLoading=!1}))},handleView:function(e){var t=Object(s["a"])(),i=e.VisitTaskId,n=this.$router.resolve({path:"/readingPage?subjectId=".concat(this.subjectId,"&trialId=").concat(this.trialId,"&visitTaskId=").concat(i,"&TokenKey=").concat(t,"&isReadingShowPreviousResults=false")});window.open(n.href,"_blank")}}},f=d,h=(i("5a7d"),i("2877")),p=Object(h["a"])(f,n,a,!1,null,"5918ea75",null);t["default"]=p.exports},"14b9":function(e,t,i){var n=i("5ca1");n(n.P,"String",{repeat:i("9744")})},"14d3":function(e,t,i){var n=i("6d8b"),a=i("2306"),r=i("fab22"),o=i("6679"),s=["axisLine","axisTickLabel","axisName"],l=["splitLine","splitArea","minorSplitLine"],c=o.extend({type:"radiusAxis",axisPointerClass:"PolarAxisPointer",render:function(e,t){if(this.group.removeAll(),e.get("show")){var i=e.axis,a=i.polar,o=a.getAngleAxis(),c=i.getTicksCoords(),d=i.getMinorTicksCoords(),f=o.getExtent()[0],h=i.getExtent(),p=u(a,e,f),m=new r(e,p);n.each(s,m.add,m),this.group.add(m.getGroup()),n.each(l,(function(t){e.get(t+".show")&&!i.scale.isBlank()&&this["_"+t](e,a,f,h,c,d)}),this)}},_splitLine:function(e,t,i,r,o){var s=e.getModel("splitLine"),l=s.getModel("lineStyle"),c=l.get("color"),u=0;c=c instanceof Array?c:[c];for(var d=[],f=0;f<o.length;f++){var h=u++%c.length;d[h]=d[h]||[],d[h].push(new a.Circle({shape:{cx:t.cx,cy:t.cy,r:o[f].coord}}))}for(f=0;f<d.length;f++)this.group.add(a.mergePath(d[f],{style:n.defaults({stroke:c[f%c.length],fill:null},l.getLineStyle()),silent:!0}))},_minorSplitLine:function(e,t,i,r,o,s){if(s.length){for(var l=e.getModel("minorSplitLine"),c=l.getModel("lineStyle"),u=[],d=0;d<s.length;d++)for(var f=0;f<s[d].length;f++)u.push(new a.Circle({shape:{cx:t.cx,cy:t.cy,r:s[d][f].coord}}));this.group.add(a.mergePath(u,{style:n.defaults({fill:null},c.getLineStyle()),silent:!0}))}},_splitArea:function(e,t,i,r,o){if(o.length){var s=e.getModel("splitArea"),l=s.getModel("areaStyle"),c=l.get("color"),u=0;c=c instanceof Array?c:[c];for(var d=[],f=o[0].coord,h=1;h<o.length;h++){var p=u++%c.length;d[p]=d[p]||[],d[p].push(new a.Sector({shape:{cx:t.cx,cy:t.cy,r0:f,r:o[h].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),f=o[h].coord}for(h=0;h<d.length;h++)this.group.add(a.mergePath(d[h],{style:n.defaults({fill:c[h%c.length]},l.getAreaStyle()),silent:!0}))}}});function u(e,t,i){return{position:[e.cx,e.cy],rotation:i/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}e.exports=c},"14e2":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"agreements-info"},[i("el-table",{staticStyle:{"margin-top":"10px"},attrs:{data:e.agreementList,"span-method":e.objectSpanMethod,border:"",size:"small"}},[i("el-table-column",{attrs:{type:"index",label:"No.",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialCode",label:"Trial ID","min-width":"50","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Type",label:"File Type","min-width":"80","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"FileName",label:"File Name","min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:"Upload Time","min-width":"60","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:"Action","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return["Statement of Work"==t.row.Type||"Acknowledgement of SOW"==t.row.Type||"Consultant Agreement"==t.row.Type?i("el-button",{attrs:{size:"small",type:"text"},on:{click:function(i){return e.preview(t.$index,t.row)}}},[e._v("View")]):e._e()]}}])})],1)],1)},a=[],r=(i("55dd"),i("ac6a"),{props:{doctorInfo:{type:Object,default:function(){return{}}}},data:function(){return{agreementList:[],spanArr:[],pos:0}},created:function(){this.initAgreement()},methods:{initAgreement:function(){var e=this;this.doctorInfo.AttachmentList&&(this.doctorInfo.AttachmentList.forEach((function(t){"Consultant Agreement"===t.Type&&(t.TrialCode="",e.agreementList.push(t))})),this.doctorInfo.SowList.forEach((function(t){t.Type="Statement of Work",e.agreementList.push(t)})),this.doctorInfo.AckSowList.forEach((function(t){t.Type="Acknowledgement of SOW",e.agreementList.push(t)})),this.agreementList=this.agreementList.sort((function(e,t){return e.TrialCode<t.TrialCode?-1:e.TrialCode===t.TrialCode?1:0})),this.getSpanArr(this.agreementList))},objectSpanMethod:function(e){e.row,e.column;var t=e.rowIndex,i=e.columnIndex;if(1===i){var n=this.spanArr[t],a=n>0?1:0;return{rowspan:n,colspan:a}}},getSpanArr:function(e){for(var t=0;t<e.length;t++)0===t?(this.spanArr.push(1),this.pos=0):e[t].TrialCode===e[t-1].TrialCode?(this.spanArr[this.pos]+=1,this.spanArr.push(0)):(this.spanArr.push(1),this.pos=t)},preview:function(e,t){var i=t.FullPath;i&&window.open(i,"_blank")},timeFormatter:function(e){return new Date(e.CreateTime).format("yyyy-MM-dd hh:mm:ss")},officalFormatter:function(e,t){return e.IsOfficial?"Yes":"No"}}}),o=r,s=(i("b0f2"),i("2877")),l=Object(s["a"])(o,n,a,!1,null,null,null);t["default"]=l.exports},"14e4":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[i("div",{staticClass:"search"},[i("el-form",{staticClass:"base-search-form",attrs:{inline:!0,size:"mini"}},[i("el-form-item",{attrs:{label:e.$t("trials:qcCfg:table:questionName")}},[i("el-input",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.QuestionName,callback:function(t){e.$set(e.searchData,"QuestionName",t)},expression:"searchData.QuestionName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:qcCfg:table:type")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.Type,callback:function(t){e.$set(e.searchData,"Type",t)},expression:"searchData.Type"}},e._l(e.$d.QcType,(function(e){return i("el-option",{key:e.label,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:qcCfg:table:level")}},[i("el-select",{model:{value:e.searchData.IsDefeaultViewParent,callback:function(t){e.$set(e.searchData,"IsDefeaultViewParent",t)},expression:"searchData.IsDefeaultViewParent"}},e._l(e.$d.IsDefeaultViewParentLevel,(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:e.handleSearch}},[e._v(e._s(e.$t("common:button:search")))]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.handleReset}},[e._v(e._s(e.$t("common:button:reset")))])],1)],1),e._v(" "),i("span",{staticStyle:{"margin-left":"auto"}},[i("el-button",{attrs:{type:"primary",size:"mini",disabled:e.selectArr.length<=0},on:{click:e.handleSubmit}},[e._v("\n "+e._s(e.$t("common:button:submit"))+"\n ")])],1)],1),e._v(" "),i("el-table",{ref:"qsList",attrs:{data:e.list,stripe:"",size:"small",height:"600"},on:{"selection-change":e.handleSelectChange,select:e.handleselect}},[i("el-table-column",{attrs:{type:"selection",align:"left",width:"45",selectable:e.handleSelectTable}}),e._v(" "),i("el-table-column",{attrs:{prop:"ShowOrder",label:e.$t("trials:qcCfg:table:order"),width:"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"QuestionName",label:e.$t("trials:qcCfg:table:questionName"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Type",label:e.$t("trials:qcCfg:table:type"),"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("QcType",t.row.Type))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TypeValue",label:e.$t("trials:qcCfg:table:typeValue"),"show-overflow-tooltip":"","min-width":"110"}}),e._v(" "),i("el-table-column",{attrs:{prop:"ParentShowOrder",label:e.$t("trials:qcCfg:table:parentQs"),"show-overflow-tooltip":"",width:"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"ParentTriggerValue",label:e.$t("trials:qcCfg:table:parentTriggerValue"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsRequired",label:e.$t("trials:qcCfg:table:isRequired"),"min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("YesOrNo",t.row.IsRequired))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsEnable",label:e.$t("trials:qcCfg:table:isEnable"),"min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("IsEnable",t.row.IsEnable))+"\n ")]}}])})],1)],1)},a=[],r=i("e56e"),o=i("3e42"),s=i("f36a"),l=function(){return{Asc:!0,SortField:"ShowOrder",QuestionName:"",Type:"",IsEnable:!0,IsDefeaultViewParent:!1}},c={name:"QcQuestions",components:{BoxContent:s["default"]},data:function(){return{trialId:"",searchData:l(),list:[],loading:!1,selectArr:[]}},mounted:function(){this.trialId=this.$route.query.trialId,this.getList()},methods:{getList:function(){var e=this;this.loading=!0,this.searchData.TrialId=this.trialId,Object(r["mb"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result})).catch((function(){e.loading=!1}))},handleSelectChange:function(e){this.selectArr=e},handleselect:function(e,t){var i=this,n=e.length&&-1!==e.indexOf(t);console.log(e);var a=this.list.filter((function(e){return e.ParentId===t.Id}));a.map((function(e){i.$refs.qsList.toggleRowSelection(e,n)}))},handleSubmit:function(){var e=this;this.loading=!0,Object(o["P"])(this.trialId,this.selectArr).then((function(t){e.loading=!1,t.IsSuccess&&(e.$message.success(e.$t("common:message:savedSuccessfully")),e.$emit("getList"),e.$emit("close"))})).catch((function(){e.loading=!1}))},handleSelectTable:function(e){return!e.ParentId},handleSearch:function(){this.getList()},handleReset:function(){this.searchData=l(),this.getList()}}},u=c,d=i("2877"),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},"14ee":function(e,t,i){"use strict";i("5bec")},"151b":function(e,t,i){"use strict";i("99f5")},1529:function(e,t,i){"use strict";i.d(t,"a",(function(){return D}));i("7f7f");var n=i("d225"),a=i("b0b4"),r=i("4e2b"),o=i("c603"),s=i("e6ad"),l=s["external"],c=s["EVENTS"],u=s["toolStyle"],d=s["textStyle"],f=s["toolColors"],h=s["import"]("util/pointInsideBoundingBox"),p=s["import"]("util/lineSegDistance"),m=s["import"]("util/triggerEvent"),g=s["import"]("manipulators/moveNewHandle"),v=s["addToolState"],b=s["getToolState"],y=s["removeToolState"],w=s["import"]("drawing/drawLinkedTextBox"),_=s["import"]("drawing/getNewContext"),I=s["import"]("drawing/draw"),x=s["import"]("drawing/setShadow"),S=s["import"]("drawing/drawArrow"),T=s["import"]("drawing/drawHandles"),C=s["import"]("tools/cursors"),k=C.arrowAnnotateCursor,R=s["getModule"],D=function(e){Object(r["a"])(i,e);var t=Object(o["a"])(i);function i(){var e,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(n["a"])(this,i);var r={name:"ArrowAnnotate",supportedInteractionTypes:["Mouse","Touch"],configuration:{getTextCallback:L,changeTextCallback:O,drawHandles:!1,drawHandlesOnHover:!0,hideHandlesIfMoving:!1,arrowFirst:!0,renderDashed:!1,allowEmptyLabel:!1},svgCursor:k};return e=t.call(this,a,r),e.preventNewMeasurement=!1,e}return Object(a["a"])(i,[{key:"textBoxWidth",value:function(e,t,i){var n=d.getFont(),a=e.font;n&&n!==a&&(e.font=n);var r=e.measureText(t).width;return n&&n!==a&&(e.font=a),r+2*i}},{key:"createNewMeasurement",value:function(e){return{visible:!0,active:!0,color:void 0,text:"",handles:{start:{x:e.detail.currentPoints.image.x,y:e.detail.currentPoints.image.y,highlight:!0,active:!1},end:{x:e.detail.currentPoints.image.x,y:e.detail.currentPoints.image.y,highlight:!0,active:!1},textBox:{active:!1,hasMoved:!1,movesIndependently:!1,drawnIndependently:!0,allowedOutsideImage:!0,hasBoundingBox:!0}}}}},{key:"pointNearTool",value:function(e,t,i){return!1!==t.visible&&p(e,t.handles.start,t.handles.end,i)<25}},{key:"updateCachedStats",value:function(){}},{key:"renderToolData",value:function(e){var t=this,i=e.detail,n=i.element,a=i.enabledElement,r=this.configuration,o=r.handleRadius,s=r.drawHandlesOnHover,c=r.hideHandlesIfMoving,h=r.renderDashed,p=b(n,this.name);if(p){var m,g=e.detail.canvasContext.canvas,v=_(g),y=u.getToolWidth();h&&(m=R("globalConfiguration").configuration.lineDash);for(var C=function(i){var r=p.data[i];if(!1===r.visible)return"continue";I(v,(function(i){x(i,t.configuration);var u=f.getColorIfActive(r),h=l.cornerstone.pixelToCanvas(n,r.handles.start),p=l.cornerstone.pixelToCanvas(n,r.handles.end);t.configuration.arrowFirst?S(i,p,h,u,y,m):S(i,h,p,u,y,m);var g={color:u,handleRadius:o,drawHandlesIfActive:s,hideHandlesIfMoving:c};t.configuration.drawHandles&&T(i,e.detail,r.handles,g);var v=[];if(r.hasOwnProperty("remark")&&(r.hasOwnProperty("status")&&r.status?v.push("".concat(r.remark,"(").concat(r.status,")")):v.push(r.remark)),v.push(D(r)),v&&""!==v){var b=5,_=t.textBoxWidth(i,v,b),I=d.getFontSize()+10,C=Math.max(_,I)/2+5;if(p.x<h.x&&(C=-C),!r.handles.textBox.hasMoved){var k;k=t.configuration.arrowFirst?{x:p.x-_/2+C,y:p.y-I/2}:{x:h.x-_/2-C,y:h.y-I/2};var R=l.cornerstone.internal.getTransform(a);R.invert();var O=R.transformPoint(k.x,k.y);r.handles.textBox.x=O.x,r.handles.textBox.y=O.y}w(i,n,r.handles.textBox,v,r.handles,L,u,y,0,!1)}}))},k=0;k<p.data.length;k++)C(k)}function D(e){return e.text}function L(e){var t={x:(e.start.x+e.end.x)/2,y:(e.start.y+e.end.y)/2};return[e.start,t,e.end]}}},{key:"addNewMeasurement",value:function(e,t){var i=this,n=e.detail.element,a=this.createNewMeasurement(e),r=this.configuration.allowEmptyLabel;v(n,this.name,a),l.cornerstone.updateImage(n),g(e.detail,this.name,a,a.handles.end,this.options,t,(function(t){t?r||void 0!==a.text||i.configuration.getTextCallback((function(e){if(e||r){a.text=e,a.active=!1;var t={toolName:i.name,toolType:i.name,element:n,measurementData:a};l.cornerstone.updateImage(n),m(n,c.MEASUREMENT_COMPLETED,t)}else y(n,i.name,a)}),e.detail):y(n,i.name,a),m(n,c.MEASUREMENT_COMPLETED,{toolName:i.name,toolType:i.name,element:n,measurementData:a}),l.cornerstone.updateImage(n)}))}},{key:"doubleClickCallback",value:function(e){return this._updateTextForNearbyAnnotation(e)}},{key:"touchPressCallback",value:function(e){return this._updateTextForNearbyAnnotation(e)}},{key:"_updateTextForNearbyAnnotation",value:function(e){var t=e.detail.element,i=e.detail.currentPoints.canvas,n=b(t,this.name);if(!n)return!1;for(var a=0;a<n.data.length;a++){var r=n.data[a];if(this.pointNearTool(t,r,i)||h(r.handles.textBox,i))return r.active=!0,l.cornerstone.updateImage(t),this.configuration.changeTextCallback(r,e.detail,this._doneChangingTextCallback.bind(this,t,r)),e.stopImmediatePropagation(),e.preventDefault(),e.stopPropagation(),!0}}},{key:"_doneChangingTextCallback",value:function(e,t,i,n){!0===n?y(e,this.name,t):t.text=i,t.active=!1,l.cornerstone.updateImage(e),m(e,c.MEASUREMENT_MODIFIED,{toolName:this.name,toolType:this.name,element:e,measurementData:t})}}]),i}(s["ArrowAnnotateTool"]);function L(e){e(prompt("Enter your annotation:"))}function O(e,t,i){i(prompt("Change your annotation:"))}},1548:function(e,t,i){var n=i("6d8b"),a=i("3301"),r=i("697e"),o=i("2023"),s=i("4319"),l=i("f934");l.getLayoutRect;t.getLayoutRect=l.getLayoutRect;var c=i("ee1a"),u=c.enableDataStack,d=c.isDimensionStacked,f=c.getStackedDimension,h=i("862d");t.completeDimensions=h;var p=i("b1d4");t.createDimensions=p;var m=i("a15a");function g(e){return a(e.getSource(),e)}t.createSymbol=m.createSymbol;var v={isDimensionStacked:d,enableDataStack:u,getStackedDimension:f};function b(e,t){var i=t;s.isInstance(t)||(i=new s(t),n.mixin(i,o));var a=r.createScaleByModel(i);return a.setExtent(e[0],e[1]),r.niceScaleExtent(a,i),a}function y(e){n.mixin(e,o)}t.createList=g,t.dataStack=v,t.createScale=b,t.mixinAxisModelCommonMethods=y},"15af":function(e,t,i){var n=i("3eba");i("cb69"),i("abffa");var a=i("7f96"),r=i("87c3");i("01ed"),n.registerVisual(a("scatter","circle")),n.registerLayout(r("scatter"))},"15b0":function(e,t,i){"use strict";i.r(t);var n,a,r=i("2877"),o={},s=Object(r["a"])(o,n,a,!1,null,null,null);t["default"]=s.exports},"15c0":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{"min-height":"400px"}},[e.isRender?i("el-form",{ref:"questions",attrs:{size:"small",model:e.questionForm}},e._l(e.questions,(function(t){return i("FormItem",{key:t.ReadingQuestionTrialId,attrs:{question:t,"question-form":e.questionForm,"reading-task-state":e.readingTaskState},on:{resetFormItemData:e.resetFormItemData}})})),1):e._e()],1)},a=[],r=(i("ac6a"),i("3e42")),o=i("0108"),s={name:"QuestionTpl",components:{FormItem:o["default"]},props:{criterionId:{type:String,required:!0}},data:function(){return{loading:!1,questionForm:{},isRender:!1,readingTaskState:0}},mounted:function(){this.getQuestions()},methods:{getQuestions:function(){var e=this;this.loading=!0;var t={readingQuestionCriterionTrialId:this.criterionId};Object(r["Vd"])(t).then((function(t){var i=[];t.Result.map((function(t){"group"===t.Type&&0===t.Childrens.length||(i.push(t),"group"!==t.Type&&"summary"!==t.Type&&e.$set(e.questionForm,t.ReadingQuestionTrialId,t.Answer),t.Childrens.length>0&&e.setChild(t.Childrens))})),e.questions=i,e.isRender=!0,e.loading=!1})).catch((function(){e.loading=!1}))},setChild:function(e){var t=this;e.forEach((function(e){"group"!==e.Type&&"summary"!==e.Type&&t.$set(t.questionForm,e.ReadingQuestionTrialId,e.Answer),e.Childrens&&e.Childrens.length>0&&t.setChild(e.Childrens)}))},resetFormItemData:function(e){this.questionForm[e]=""}}},l=s,c=i("2877"),u=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},"15cb":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{display:"flex","justify-content":"center"}},[i("div",{staticStyle:{width:"600px","padding-top":"100px"}},[i("div",{staticClass:"trial-myinfo-head",staticStyle:{"font-size":"16px","line-height":"40px","text-indent":"30px"}},[e._v("\n 是否参与的临床试验项目:"),i("span",{staticStyle:{color:"#00D1B2"}},[e._v(e._s(e.trialInfo.ExperimentName))]),e._v("(试验方案号:"),i("span",{staticStyle:{color:"#00D1B2"}},[e._v(e._s(e.trialInfo.ResearchProgramNo))]),e._v(" 的独立影像评估工作。请选择:\n ")]),e._v(" "),i("div",{staticStyle:{padding:"20px"}},[i("el-radio-group",{model:{value:e.form.IsJoin,callback:function(t){e.$set(e.form,"IsJoin",t)},expression:"form.IsJoin"}},[i("el-radio",{attrs:{disabled:e.disabled,label:!0}},[e._v("是")]),e._v(" "),i("el-radio",{attrs:{disabled:e.disabled,label:!1}},[e._v("否")])],1)],1),e._v(" "),!1===e.form.IsJoin?i("div",{staticStyle:{"margin-bottom":"40px"}},[i("textarea",{directives:[{name:"model",rawName:"v-model",value:e.form.RejectReason,expression:"form.RejectReason"}],staticStyle:{padding:"10px","font-size":"12px",background:"#f3f3f3","border-radius":"10px",width:"100%",height:"120px",border:"none",outline:"none",resize:"none"},attrs:{disabled:e.disabled,placeholder:"请说明拒绝原因"},domProps:{value:e.form.RejectReason},on:{input:function(t){t.target.composing||e.$set(e.form,"RejectReason",t.target.value)}}})]):e._e(),e._v(" "),i("div",{staticStyle:{"margin-top":"20px","text-align":"right"}},[i("el-button",{staticStyle:{"min-width":"100px"},attrs:{type:"primary",size:"small",loading:e.loading,disabled:e.disabled},on:{click:e.save}},[e._v("确定")])],1)])])},a=[],r=(i("a481"),i("b775"));function o(e){return Object(r["a"])({url:"/TrialExternalUser/trialExternalUserJoinTrial",method:"post",data:e})}function s(e){return Object(r["a"])({url:"/TrialExternalUser/trialSiteSurveyUserJoinTrial",method:"post",data:e})}function l(e){return Object(r["a"])({url:"/TrialExternalUser/joinBasicInfo?Id=".concat(e.Id,"&IsExternalUser=").concat(e.IsExternalUser),method:"post"})}var c=i("c1df"),u=i.n(c),d={data:function(){return{loading:!1,disabled:!1,Id:null,IsExternalUser:null,form:{IsJoin:null,RejectReason:null},trialInfo:{}}},mounted:function(){this.Id=this.$route.query.Id,this.IsExternalUser=this.$route.query.IsExternalUser,this.getInfo()},methods:{getInfo:function(){var e=this,t={Id:this.Id,IsExternalUser:"1"===this.IsExternalUser};l(t).then((function(t){e.trialInfo=t.Result,e.form.IsJoin=e.trialInfo.IsJoin,e.form.RejectReason=e.trialInfo.RejectReason,!0!==e.trialInfo.IsJoin&&!1!==e.trialInfo.IsJoin||(e.disabled=!0)}))},goLogin:function(){var e=this;setTimeout((function(){e.$router.replace({path:"/login"})}),2e3)},closeWindow:function(){window.colse()},save:function(){var e=this,t="".concat(location.protocol,"//").concat(location.host,"/login"),i={Id:this.Id,IsJoin:this.form.IsJoin,ConfirmTime:u()().format("YYYY-MM-DD HH:mm:ss"),RejectReason:this.form.RejectReason,BaseUrl:t};null!==this.form.IsJoin?!1!==this.form.IsJoin||this.form.RejectReason?(this.disabled=!0,this.loading=!0,"1"===this.IsExternalUser?o(i).then((function(t){i.IsJoin?(e.$message.success("加入项目成功!即将自动跳转登录页面"),e.goLogin()):(e.$message.success("已拒绝加入项目"),e.loading=!1,e.disabled=!0)})).catch((function(){e.disabled=!1,e.loading=!1})):s(i).then((function(t){i.IsJoin?(e.$message.success("加入项目成功!即将自动跳转登录页面"),e.goLogin()):(e.$message.success("已拒绝加入项目"),e.loading=!1,e.disabled=!0)})).catch((function(){e.disabled=!1,e.loading=!1}))):this.$message.error("拒绝请填写详细原因"):this.$message.error("请选择是否加入项目")}}},f=d,h=(i("f205"),i("2877")),p=Object(h["a"])(f,n,a,!1,null,null,null);t["default"]=p.exports},"15e8":function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-message",use:"icon-message-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-message"><path d="M0 20.967v59.59c0 11.59 8.537 20.966 19.075 20.966h28.613l1 26.477L76.8 101.523h32.125c10.538 0 19.075-9.377 19.075-20.966v-59.59C128 9.377 119.463 0 108.925 0h-89.85C8.538 0 0 9.377 0 20.967zm82.325 33.1c0-5.524 4.013-9.935 9.037-9.935 5.026 0 9.038 4.41 9.038 9.934 0 5.524-4.025 9.934-9.038 9.934-5.024 0-9.037-4.41-9.037-9.934zm-27.613 0c0-5.524 4.013-9.935 9.038-9.935s9.037 4.41 9.037 9.934c0 5.524-4.025 9.934-9.037 9.934-5.025 0-9.038-4.41-9.038-9.934zm-27.1 0c0-5.524 4.013-9.935 9.038-9.935s9.038 4.41 9.038 9.934c0 5.524-4.026 9.934-9.05 9.934-5.013 0-9.025-4.41-9.025-9.934z" /></symbol>'});o.a.add(s);t["default"]=s},1644:function(e,t,i){},1653:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container adjustment-container data-list"},[i("div",{staticClass:"filter-container"},[i("el-input",{staticClass:"mr",staticStyle:{width:"220px"},attrs:{size:"small",placeholder:"Reviewer ID"},model:{value:e.listQuery.Reviewer,callback:function(t){e.$set(e.listQuery,"Reviewer",t)},expression:"listQuery.Reviewer"}}),e._v(" "),i("el-date-picker",{staticClass:"mr",attrs:{size:"small",placeholder:"Beginning date",type:"month","value-format":"yyyy-MM",disabled:""},model:{value:e.listQuery.BeginMonth,callback:function(t){e.$set(e.listQuery,"BeginMonth",t)},expression:"listQuery.BeginMonth"}}),e._v(" "),i("el-button",{attrs:{size:"small",type:"text"},on:{click:e.handleReset}},[e._v("Reset")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.handleSearch}},[e._v("Search")]),e._v(" "),i("el-button",{staticStyle:{"margin-left":"auto"},attrs:{type:"primary",size:"small"},on:{click:e.handleNew}},[e._v("New")])],1),e._v(" "),i("div",{staticClass:"data-table"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],attrs:{stripe:"",data:e.list,height:"100%",size:"small"},on:{"sort-change":e.sortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"LastName",label:"Name","min-width":"100",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.LastName+" / "+t.row.FirstName))]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ChineseName",label:"Name CN","min-width":"120",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ReviewerCode",label:"Reviewer ID","min-width":"110",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"AdjustPaymentUSD",label:"Amount($)","min-width":"120",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e._f("rounding")(t.row.AdjustPaymentUSD)))]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"AdjustPaymentCNY",label:"Amount(¥)","min-width":"120",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.AdjustPaymentCNY)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Note",label:"Note","min-width":"120","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"YearMonth",label:"Adjust Month","min-width":"120",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:"Action"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{size:"small",type:"text",disabled:t.row.IsLock},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("Edit")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"text",disabled:t.row.IsLock},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("Delete")])]}}])})],1)],1),e._v(" "),i("div",{staticClass:"pagination"},[i("pagination",{attrs:{total:e.total,page:e.listQuery.PageIndex,limit:e.listQuery.PageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"PageIndex",t)},"update:limit":function(t){return e.$set(e.listQuery,"PageSize",t)},pagination:e.getList}})],1),e._v(" "),i("el-dialog",{attrs:{title:e.title,visible:e.dialogVisible,"close-on-click-modal":!1,width:"600px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("adjustment-form",{key:e.timer,attrs:{row:e.row,date:e.date,"exchange-rate":e.exchangeRate},on:{closeDialog:e.closeDialog,getList:e.getList}})],1)],1)},a=[],r=(i("c5f6"),i("333d")),o=i("6437"),s=i("6b95"),l=i("7878"),c={filters:{rounding:function(e){return e?Number(e).toFixed(2):e}},components:{Pagination:r["default"],AdjustmentForm:o["default"]},data:function(){return{listQuery:{TrialCode:"",Reviewer:"",BeginMonth:"",EndMonth:"",PageIndex:1,PageSize:20,Asc:!1,SortField:""},listLoading:!1,list:[],total:0,exchangeRate:"",date:"",timer:"",dialogVisible:!1,title:"",row:""}},mounted:function(){this.date=this.$router.currentRoute.query.date,this.listQuery.BeginMonth=this.date,this.listQuery.EndMonth=this.date,this.exchangeRate=this.$router.currentRoute.query.exchangeRate?this.$router.currentRoute.query.exchangeRate:0,this.getList()},methods:{getList:function(){var e=this;this.listLoading=!0,Object(s["r"])(this.listQuery).then((function(t){e.listLoading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount}))},handleNew:function(){this.title="New",this.row={},this.timer=(new Date).getTime(),this.dialogVisible=!0},handleEdit:function(e){this.title="Edit",this.row=JSON.parse(JSON.stringify(e)),this.timer=(new Date).getTime(),this.dialogVisible=!0},handleDelete:function(e){var t=this;this.$confirm("Confirm to delete?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){Object(s["k"])(e.Id).then((function(i){i.IsSuccess&&(t.list.splice(t.list.indexOf(e),1),t.total=t.total-1,t.$message.success("Deleted successfully !"))}))}))},handleSearch:function(){this.listQuery.PageIndex=1,this.getList()},handleReset:function(){this.listQuery.PageIndex=1,this.listQuery.Reviewer="",this.getList()},sortByColumn:function(e){"ascending"===e.order?this.listQuery.Asc=!0:this.listQuery.Asc=!1,this.listQuery.SortField=e.prop,this.listQuery.PageIndex=1,this.getList()},closeDialog:function(){this.dialogVisible=!1},adjustMonthFormatter:function(e){if(e.AdjustedYearMonth){var t=new Date(e.AdjustedYearMonth);return Object(l["FormatTime"])(t,"yyyy-MM")}return""}}},u=c,d=(i("a0f4"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},1687:function(e,t){var i="undefined"===typeof Float32Array?Array:Float32Array;function n(){var e=new i(6);return a(e),e}function a(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function r(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function o(e,t,i){var n=t[0]*i[0]+t[2]*i[1],a=t[1]*i[0]+t[3]*i[1],r=t[0]*i[2]+t[2]*i[3],o=t[1]*i[2]+t[3]*i[3],s=t[0]*i[4]+t[2]*i[5]+t[4],l=t[1]*i[4]+t[3]*i[5]+t[5];return e[0]=n,e[1]=a,e[2]=r,e[3]=o,e[4]=s,e[5]=l,e}function s(e,t,i){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+i[0],e[5]=t[5]+i[1],e}function l(e,t,i){var n=t[0],a=t[2],r=t[4],o=t[1],s=t[3],l=t[5],c=Math.sin(i),u=Math.cos(i);return e[0]=n*u+o*c,e[1]=-n*c+o*u,e[2]=a*u+s*c,e[3]=-a*c+u*s,e[4]=u*r+c*l,e[5]=u*l-c*r,e}function c(e,t,i){var n=i[0],a=i[1];return e[0]=t[0]*n,e[1]=t[1]*a,e[2]=t[2]*n,e[3]=t[3]*a,e[4]=t[4]*n,e[5]=t[5]*a,e}function u(e,t){var i=t[0],n=t[2],a=t[4],r=t[1],o=t[3],s=t[5],l=i*o-r*n;return l?(l=1/l,e[0]=o*l,e[1]=-r*l,e[2]=-n*l,e[3]=i*l,e[4]=(n*s-o*a)*l,e[5]=(r*a-i*s)*l,e):null}function d(e){var t=n();return r(t,e),t}t.create=n,t.identity=a,t.copy=r,t.mul=o,t.translate=s,t.rotate=l,t.scale=c,t.invert=u,t.clone=d},1748:function(e,t,i){var n=i("3eba"),a=i("6d8b"),r=i("71ad"),o=i("4319"),s=i("2023"),l=r.valueAxis;function c(e,t){return a.defaults({show:t},e)}var u=n.extendComponentModel({type:"radar",optionUpdated:function(){var e=this.get("boundaryGap"),t=this.get("splitNumber"),i=this.get("scale"),n=this.get("axisLine"),r=this.get("axisTick"),l=this.get("axisType"),c=this.get("axisLabel"),u=this.get("name"),d=this.get("name.show"),f=this.get("name.formatter"),h=this.get("nameGap"),p=this.get("triggerEvent"),m=a.map(this.get("indicator")||[],(function(m){null!=m.max&&m.max>0&&!m.min?m.min=0:null!=m.min&&m.min<0&&!m.max&&(m.max=0);var g=u;if(null!=m.color&&(g=a.defaults({color:m.color},u)),m=a.merge(a.clone(m),{boundaryGap:e,splitNumber:t,scale:i,axisLine:n,axisTick:r,axisType:l,axisLabel:c,name:m.text,nameLocation:"end",nameGap:h,nameTextStyle:g,triggerEvent:p},!1),d||(m.name=""),"string"===typeof f){var v=m.name;m.name=f.replace("{value}",null!=v?v:"")}else"function"===typeof f&&(m.name=f(m.name,m));var b=a.extend(new o(m,null,this.ecModel),s);return b.mainType="radar",b.componentIndex=this.componentIndex,b}),this);this.getIndicatorModels=function(){return m}},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,name:{show:!0},boundaryGap:[0,0],splitNumber:5,nameGap:15,scale:!1,shape:"polygon",axisLine:a.merge({lineStyle:{color:"#bbb"}},l.axisLine),axisLabel:c(l.axisLabel,!1),axisTick:c(l.axisTick,!1),axisType:"interval",splitLine:c(l.splitLine,!0),splitArea:c(l.splitArea,!0),indicator:[]}}),d=u;e.exports=d},1772:function(e,t,i){},1792:function(e,t){var i={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};function n(e,t){if("china"===e){var n=i[t.name];if(n){var a=t.center;a[0]+=n[0]/10.5,a[1]+=-n[1]/14}}}e.exports=n},"17b0":function(e,t,i){},"17b8":function(e,t,i){var n=i("3014"),a=n.extend({type:"series.bar",dependencies:["grid","polar"],brushSelector:"rect",getProgressive:function(){return!!this.get("large")&&this.get("progressive")},getProgressiveThreshold:function(){var e=this.get("progressiveThreshold"),t=this.get("largeThreshold");return t>e&&(e=t),e},defaultOption:{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1}}});e.exports=a},"17d6":function(e,t,i){var n=i("6d8b"),a=i("22d1"),r=i("e0d3"),o=r.makeInner,s=o(),l=n.each;function c(e,t,i){if(!a.node){var n=t.getZr();s(n).records||(s(n).records={}),u(n,t);var r=s(n).records[e]||(s(n).records[e]={});r.handler=i}}function u(e,t){function i(i,n){e.on(i,(function(i){var a=p(t);l(s(e).records,(function(e){e&&n(e,i,a.dispatchAction)})),d(a.pendings,t)}))}s(e).initialized||(s(e).initialized=!0,i("click",n.curry(h,"click")),i("mousemove",n.curry(h,"mousemove")),i("globalout",f))}function d(e,t){var i,n=e.showTip.length,a=e.hideTip.length;n?i=e.showTip[n-1]:a&&(i=e.hideTip[a-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function f(e,t,i){e.handler("leave",null,i)}function h(e,t,i,n){t.handler(e,i,n)}function p(e){var t={showTip:[],hideTip:[]},i=function(n){var a=t[n.type];a?a.push(n):(n.dispatchAction=i,e.dispatchAction(n))};return{dispatchAction:i,pendings:t}}function m(e,t){if(!a.node){var i=t.getZr(),n=(s(i).records||{})[e];n&&(s(i).records[e]=null)}}t.register=c,t.unregister=m},"17e0":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container my_menu"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:"模块"}},[i("el-select",{attrs:{placeholder:"模块",clearable:"",size:"small"},model:{value:e.queryParams.ModuleTypeId,callback:function(t){e.$set(e.queryParams,"ModuleTypeId",t)},expression:"queryParams.ModuleTypeId"}},e._l(e.dict.type.ModuleType,(function(e){return i("el-option",{attrs:{value:e.value,label:e.raw.ValueCN}})})),1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:e.handleQuery}},[e._v("搜索")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-plus",size:"mini"},on:{click:e.handleAdd}},[e._v("新增")])],1)],1),e._v(" "),i("div",[i("el-button",{attrs:{type:"info",plain:"",icon:"el-icon-sort",size:"mini"},on:{click:e.toggleExpandAll}},[e._v("展开/折叠")])],1),e._v(" "),e.refreshTable?i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:45},expression:"{bottomOffset:45}"},{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{height:"100",data:e.menuList,"default-expand-all":e.isExpandAll,"row-key":"Id","tree-props":{children:"Children",hasChildren:"hasChildren"}}},[i("el-table-column",{attrs:{prop:"ModuleTypeValueCN",label:"模块","show-overflow-tooltip":"",align:"left","min-width":"230px"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Description",label:"操作名称","show-overflow-tooltip":!0,"min-width":"200px"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.row.Description))])]}}],null,!1,2456653472)}),e._v(" "),i("el-table-column",{attrs:{prop:"Description",label:"其他","show-overflow-tooltip":!0,"min-width":"140px"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsEnable?e._e():i("span",{staticStyle:{cursor:"pointer","line-height":"20px","text-align":"center","font-size":"12px",display:"inline-block",width:"20px",height:"20px","border-radius":"50%",background:"#DC143C",color:"#fff"},attrs:{title:"被禁用"}},[e._v("禁")]),e._v(" "),t.row.IsHaveSign?i("span",{staticStyle:{cursor:"pointer","line-height":"20px","text-align":"center","font-size":"12px",display:"inline-block",width:"20px",height:"20px","border-radius":"50%",background:"#00D1B2",color:"#fff"},attrs:{title:"需要电签"}},[e._v("签")]):e._e(),e._v(" "),t.row.IsHaveReason?i("span",{staticStyle:{cursor:"pointer","line-height":"20px","text-align":"center","font-size":"12px",display:"inline-block",width:"20px",height:"20px","border-radius":"50%",background:"#fab6b6",color:"#fff"},attrs:{title:"需要原因"}},[e._v("因")]):e._e(),e._v(" "),t.row.IsFinish?i("span",{staticStyle:{cursor:"pointer","line-height":"20px","text-align":"center","font-size":"12px",display:"inline-block",width:"20px",height:"20px","border-radius":"50%",background:"#3CB371",color:"#fff"},attrs:{title:"已经记录"}},[e._v("记")]):e._e(),e._v(" "),t.row.IsJoinPlan?i("span",{staticStyle:{cursor:"pointer","line-height":"20px","text-align":"center","font-size":"12px",display:"inline-block",width:"20px",height:"20px","border-radius":"50%",background:"#FFA500",color:"#fff"},attrs:{title:"核对完"}},[e._v("核")]):e._e()]}}],null,!1,4157763984)}),e._v(" "),i("el-table-column",{attrs:{prop:"Identification",label:"标识","show-overflow-tooltip":!0,"min-width":"200px"}}),e._v(" "),i("el-table-column",{attrs:{prop:"OptTypeValueCN",label:"操作类型","show-overflow-tooltip":"",width:"100px"}}),e._v(" "),i("el-table-column",{attrs:{prop:"ObjectTypeValueCN",label:"对象类型","show-overflow-tooltip":"","min-width":"100px"}}),e._v(" "),i("el-table-column",{attrs:{prop:"ChildrenTypeValueCN",label:"数据类型","show-overflow-tooltip":"","min-width":"100px","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Sort",label:"显示顺序","min-width":"80","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:"启用",align:"center",prop:"CreateTime","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsEnable?i("el-tag",{attrs:{size:"success"}},[e._v("启用")]):i("el-tag",{attrs:{size:"danger"}},[e._v("禁用")])]}}],null,!1,3408094289)}),e._v(" "),i("el-table-column",{attrs:{label:"操作",align:"center",fixed:"right","min-width":"340","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.ModuleTypeValueCN&&t.row.ObjectTypeValueCN&&t.row.OptTypeValueCN&&t.row.ChildrenTypeValueCN?i("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-top"},on:{click:function(i){return e.handleUpMove(t.row)}}},[e._v("上移")]):e._e(),e._v(" "),i("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-edit"},on:{click:function(i){return e.handleUpdate(t.row)}}},[e._v("修改")]),e._v(" "),t.row.ModuleTypeValueCN&&t.row.ObjectTypeValueCN&&t.row.OptTypeValueCN&&t.row.ChildrenTypeValueCN?e._e():i("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-plus"},on:{click:function(i){return e.handleAdd(t.row)}}},[e._v("新增")]),e._v(" "),t.row.ModuleTypeValueCN&&t.row.ObjectTypeValueCN&&t.row.OptTypeValueCN&&t.row.ChildrenTypeValueCN?i("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-plus"},on:{click:function(i){return e.handleChildren(t.row)}}},[e._v("Children")]):e._e(),e._v(" "),t.row.ModuleTypeValueCN&&t.row.ObjectTypeValueCN&&t.row.OptTypeValueCN&&t.row.ChildrenTypeValueCN?i("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-plus"},on:{click:function(i){return e.handleCopy(t.row)}}},[e._v("复制到")]):e._e(),e._v(" "),i("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-delete"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("删除")])]}}],null,!1,4270745435)})],1):e._e(),e._v(" "),i("el-dialog",{attrs:{title:e.title,"close-on-click-modal":!1,id:"check_config",visible:e.open,width:"Table"===e.form.DataType?"1280px":"680px","append-to-body":""},on:{"update:visible":function(t){e.open=t}}},[i("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"100px"}},[i("el-row",[i("el-col",{directives:[{name:"show",rawName:"v-show",value:"复制"!==e.title,expression:"title !== '复制'"}],attrs:{span:24}},[i("el-divider",{attrs:{"content-position":"left"}},[e._v("基本信息")])],1),e._v(" "),i("el-col",{attrs:{span:24}},[i("el-form-item",{attrs:{label:"M"==e.form.ConfigType?"复制"!==e.title?"选择父节点":"复制到":"操作名称"}},[i("treeselect",{attrs:{disabled:"C"===e.form.ConfigType,options:e.menuOptions,normalizer:e.normalizer,"show-count":!0,placeholder:"选择上级操作"},model:{value:e.form.ParentId,callback:function(t){e.$set(e.form,"ParentId",t)},expression:"form.ParentId"}})],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"M"==e.form.ConfigType&&"复制"!==e.title,expression:"form.ConfigType == 'M' && title !== '复制'"}],attrs:{span:12}},[i("el-form-item",{attrs:{label:"操作名称",prop:"Description"}},[i("el-input",{attrs:{placeholder:"请输入名称"},model:{value:e.form.Description,callback:function(t){e.$set(e.form,"Description",t)},expression:"form.Description"}})],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"M"==e.form.ConfigType&&"复制"!==e.title,expression:"form.ConfigType == 'M' && title !== '复制'"}],attrs:{span:12}},[i("el-form-item",{attrs:{label:"标识",prop:"Identification"}},[i("el-input",{attrs:{placeholder:"请输入标识"},model:{value:e.form.Identification,callback:function(t){e.$set(e.form,"Identification",t)},expression:"form.Identification"}})],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"C"===e.form.ConfigType&&"复制"!==e.title,expression:"form.ConfigType === 'C' && title !== '复制'"}],attrs:{span:24}},[i("el-form-item",{attrs:{label:"字段key"}},[i("el-input",{attrs:{placeholder:"请输入字段key"},model:{value:e.form.Code,callback:function(t){e.$set(e.form,"Code",t)},expression:"form.Code"}})],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"C"===e.form.ConfigType&&"复制"!==e.title,expression:"form.ConfigType === 'C' && title !== '复制'"}],attrs:{span:12}},[i("el-form-item",{attrs:{label:"字段英文"}},[i("el-input",{attrs:{placeholder:"请输入字段英文"},model:{value:e.form.Value,callback:function(t){e.$set(e.form,"Value",t)},expression:"form.Value"}})],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"C"===e.form.ConfigType&&"复制"!==e.title,expression:"form.ConfigType === 'C' && title !== '复制'"}],attrs:{span:12}},[i("el-form-item",{attrs:{label:"字段中文"}},[i("el-input",{attrs:{placeholder:"请输入字段中文"},model:{value:e.form.ValueCN,callback:function(t){e.$set(e.form,"ValueCN",t)},expression:"form.ValueCN"}})],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"复制"!==e.title,expression:"title !== '复制'"}],attrs:{span:24}},[i("el-divider",{attrs:{"content-position":"left"}},[e._v("属性")])],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"M"===e.form.ConfigType&&"复制"!==e.title,expression:"form.ConfigType === 'M' && title !== '复制'"}],attrs:{span:12}},[i("el-form-item",{attrs:{label:"功能模块",prop:"menuType"}},[i("el-select",{attrs:{placeholder:"模块",clearable:"",size:"small"},on:{change:e.changeModule},model:{value:e.form.ModuleTypeId,callback:function(t){e.$set(e.form,"ModuleTypeId",t)},expression:"form.ModuleTypeId"}},e._l(e.dict.type.ModuleType,(function(e){return i("el-option",{attrs:{value:e.value,label:e.raw.ValueCN}})})),1)],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"M"===e.form.ConfigType&&"复制"!==e.title,expression:"form.ConfigType === 'M' && title !== '复制'"}],attrs:{span:12}},[i("el-form-item",{attrs:{label:"操作类型",prop:"menuType"}},[i("el-select",{attrs:{placeholder:"操作类型",clearable:"",size:"small"},on:{change:e.changeDescription},model:{value:e.form.OptTypeId,callback:function(t){e.$set(e.form,"OptTypeId",t)},expression:"form.OptTypeId"}},e._l(e.dict.type.OptType,(function(e){return i("el-option",{attrs:{value:e.value,label:e.raw.ValueCN}})})),1)],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"M"===e.form.ConfigType&&"复制"!==e.title,expression:"form.ConfigType === 'M' && title !== '复制'"}],attrs:{span:12}},[i("el-form-item",{attrs:{label:"对象类型",prop:"menuType"}},[i("el-select",{attrs:{placeholder:"对象类型",clearable:"",size:"small"},on:{change:e.changeDescription},model:{value:e.form.ObjectTypeId,callback:function(t){e.$set(e.form,"ObjectTypeId",t)},expression:"form.ObjectTypeId"}},e._l(e.dict.type.ObjectType,(function(t){return e.ChildGroup===t.raw.ChildGroup?i("el-option",{attrs:{value:t.value,label:t.raw.ValueCN}}):e._e()})),1)],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"M"===e.form.ConfigType&&"复制"!==e.title,expression:"form.ConfigType === 'M' && title !== '复制'"}],attrs:{span:12}},[i("el-form-item",{attrs:{label:"数据类型",prop:"menuType"}},[i("el-select",{attrs:{placeholder:"操作子类",clearable:"",size:"small"},on:{change:e.changeDescription},model:{value:e.form.ChildrenTypeId,callback:function(t){e.$set(e.form,"ChildrenTypeId",t)},expression:"form.ChildrenTypeId"}},e._l(e.dict.type.ChildrenType,(function(e){return i("el-option",{attrs:{value:e.value,label:e.raw.ValueCN}})})),1)],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"M"==e.form.ConfigType&&"复制"!==e.title,expression:"form.ConfigType == 'M' && title !== '复制'"}],attrs:{span:12}},[i("el-form-item",[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 是否电签\n ")]),e._v(" "),i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},model:{value:e.form.IsHaveSign,callback:function(t){e.$set(e.form,"IsHaveSign",t)},expression:"form.IsHaveSign"}})],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"M"==e.form.ConfigType&&"复制"!==e.title,expression:"form.ConfigType == 'M' && title !== '复制'"}],attrs:{span:12}},[i("el-form-item",[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 是否有原因\n ")]),e._v(" "),i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},model:{value:e.form.IsHaveReason,callback:function(t){e.$set(e.form,"IsHaveReason",t)},expression:"form.IsHaveReason"}})],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"C"===e.form.ConfigType&&"复制"!==e.title,expression:"form.ConfigType === 'C' && title !== '复制'"}],attrs:{span:24}},[i("el-form-item",[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 数据来源\n ")]),e._v(" "),i("el-radio-group",{model:{value:e.form.IsShowParent,callback:function(t){e.$set(e.form,"IsShowParent",t)},expression:"form.IsShowParent"}},[i("el-radio",{attrs:{label:0}},[e._v("业务数据")]),e._v(" "),i("el-radio",{attrs:{label:1}},[e._v("通用数据")]),e._v(" "),i("el-radio",{attrs:{label:2}},[e._v("列表数据")])],1)],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"C"===e.form.ConfigType&&"复制"!==e.title,expression:"form.ConfigType === 'C' && title !== '复制'"}],attrs:{span:12}},[i("el-form-item",[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 依赖父数据\n ")]),e._v(" "),i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},model:{value:e.form.IsShowByTrialConfig,callback:function(t){e.$set(e.form,"IsShowByTrialConfig",t)},expression:"form.IsShowByTrialConfig"}})],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"C"===e.form.ConfigType&&"复制"!==e.title&&e.form.IsShowByTrialConfig,expression:"form.ConfigType === 'C' && title !== '复制' && form.IsShowByTrialConfig"}],attrs:{span:12}},[i("el-form-item",[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 依赖字段\n ")]),e._v(" "),i("el-input",{attrs:{placeholder:"请输入依赖字段"},model:{value:e.form.TrialConfigRelyFieldName,callback:function(t){e.$set(e.form,"TrialConfigRelyFieldName",t)},expression:"form.TrialConfigRelyFieldName"}})],1)],1),e._v(" "),i("el-col",{staticStyle:{"margin-bottom":"10px"},attrs:{span:24}},[i("el-row",{staticStyle:{background:"#f8f8f8",padding:"0 20px","border-radius":"10px"}},[i("el-col",{directives:[{name:"show",rawName:"v-show",value:"C"===e.form.ConfigType&&"复制"!==e.title,expression:"form.ConfigType === 'C' && title !== '复制'"}],attrs:{span:24}},[i("el-form-item",{attrs:{label:"前端展示类型"}},[i("el-radio-group",{staticStyle:{"line-height":"30px","padding-top":"10px"},on:{change:function(t){"Table"===t&&e.rowDrop2()}},model:{value:e.form.DataType,callback:function(t){e.$set(e.form,"DataType",t)},expression:"form.DataType"}},[i("el-radio",{attrs:{label:""}},[e._v("字符串")]),e._v(" "),i("el-radio",{attrs:{label:"Array"}},[e._v("数组(类似QC问题审核)")]),e._v(" "),i("el-radio",{attrs:{label:"Dialog"}},[e._v("对话")]),e._v(" "),i("el-radio",{attrs:{label:"Link"}},[e._v("外链")]),e._v(" "),i("el-radio",{attrs:{label:"DialogTable"}},[e._v("弹框列表")]),e._v(" "),i("el-radio",{attrs:{label:"Table"}},[e._v("表格")]),e._v(" "),i("el-radio",{attrs:{label:"Router"}},[e._v("路由")]),e._v(" "),i("el-radio",{attrs:{label:"Image"}},[e._v("图片")]),e._v(" "),i("el-radio",{attrs:{label:"ImageList"}},[e._v("图片数组")])],1)],1)],1),e._v(" "),e.form.UrlConfig?i("el-row",{directives:[{name:"show",rawName:"v-show",value:"Router"===e.form.DataType,expression:"form.DataType === 'Router'"}]},[i("el-col",{attrs:{span:12}},[i("el-form-item",[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 路由地址\n ")]),e._v(" "),i("el-input",{attrs:{placeholder:"路由地址"},model:{value:e.form.UrlConfig.RoutePath,callback:function(t){e.$set(e.form.UrlConfig,"RoutePath",t)},expression:"form.UrlConfig.RoutePath"}})],1)],1),e._v(" "),i("el-col",{staticStyle:{display:"flex","align-items":"center","justify-content":"flex-end"},attrs:{span:8}},[i("el-form-item",[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 是否有参数\n ")]),e._v(" "),i("el-switch",{model:{value:e.form.UrlConfig.IsHaveParameters,callback:function(t){e.$set(e.form.UrlConfig,"IsHaveParameters",t)},expression:"form.UrlConfig.IsHaveParameters"}})],1)],1),e._v(" "),e.form.UrlConfig.IsHaveParameters?i("el-col",{staticStyle:{display:"flex","align-items":"center","justify-content":"flex-end"},attrs:{span:4}},[i("el-button",{staticStyle:{position:"relative",top:"5px"},attrs:{type:"primary",size:"mini"},on:{click:e.addParameter}},[e._v("\n 增加参数\n ")])],1):e._e()],1):e._e(),e._v(" "),e._l(e.form.UrlConfig?e.form.UrlConfig.ParameterList:[],(function(t,n){return e.form.UrlConfig&&e.form.UrlConfig.IsHaveParameters?i("el-row",{directives:[{name:"show",rawName:"v-show",value:"Router"===e.form.DataType,expression:"form.DataType === 'Router'"}]},[i("el-col",{attrs:{span:10}},[i("el-form-item",[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 参数名"+e._s(n+1)+"\n ")]),e._v(" "),i("el-input",{staticStyle:{width:"150px"},attrs:{placeholder:"参数名"},model:{value:e.form.UrlConfig.ParameterList[n].UrlParameterName,callback:function(t){e.$set(e.form.UrlConfig.ParameterList[n],"UrlParameterName",t)},expression:"form.UrlConfig.ParameterList[index].UrlParameterName"}})],1)],1),e._v(" "),i("el-col",{attrs:{span:10}},[i("el-form-item",[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 参数值"+e._s(n+1)+"\n ")]),e._v(" "),i("el-input",{staticStyle:{width:"150px"},attrs:{placeholder:"参数值"},model:{value:e.form.UrlConfig.ParameterList[n].UrlParameterValueName,callback:function(t){e.$set(e.form.UrlConfig.ParameterList[n],"UrlParameterValueName",t)},expression:"form.UrlConfig.ParameterList[index].UrlParameterValueName"}})],1)],1),e._v(" "),i("el-col",{attrs:{span:4}},[i("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-delete"},on:{click:function(t){return e.handleParameterListDelete(n)}}},[e._v("删除")])],1)],1):e._e()})),e._v(" "),i("el-button",{directives:[{name:"show",rawName:"v-show",value:"Table"===e.form.DataType,expression:"form.DataType === 'Table'"}],staticStyle:{position:"relative",top:"-15px"},attrs:{type:"primary",size:"mini"},on:{click:e.addCol}},[e._v("\n 增加列\n ")]),e._v(" "),e.rowDrop2TableIsShow?i("el-row",{directives:[{name:"show",rawName:"v-show",value:"Table"===e.form.DataType,expression:"form.DataType === 'Table'"}]},[i("el-table",{attrs:{data:e.form.TableConfigList,stripe:"",height:"280"}},[i("el-table-column",{attrs:{prop:"IsList","min-width":"120",label:"是否是数组","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-switch",{model:{value:t.row.IsList,callback:function(i){e.$set(t.row,"IsList",i)},expression:"scope.row.IsList"}})]}}],null,!1,1002134549)}),e._v(" "),i("el-table-column",{attrs:{prop:"ListName","min-width":"120",label:"数组","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-input",{attrs:{disabled:!t.row.IsList,placeholder:"数组"},model:{value:t.row.ListName,callback:function(i){e.$set(t.row,"ListName",i)},expression:"scope.row.ListName"}})]}}],null,!1,4133706702)}),e._v(" "),i("el-table-column",{attrs:{prop:"IsFixedColumn","min-width":"140",label:"是否固定列名","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-switch",{model:{value:t.row.IsFixedColumn,callback:function(i){e.$set(t.row,"IsFixedColumn",i)},expression:"scope.row.IsFixedColumn"}})]}}],null,!1,409891095)}),e._v(" "),i("el-table-column",{attrs:{prop:"FixedColumnName","min-width":"120",label:"固定列名","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-input",{attrs:{disabled:!t.row.IsFixedColumn,placeholder:"固定列名"},model:{value:t.row.FixedColumnName,callback:function(i){e.$set(t.row,"FixedColumnName",i)},expression:"scope.row.FixedColumnName"}})]}}],null,!1,1163635488)}),e._v(" "),i("el-table-column",{attrs:{prop:"ColumnName","min-width":"120",label:"列字段名","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-input",{attrs:{disabled:t.row.IsFixedColumn,placeholder:"列字段名"},model:{value:t.row.ColumnName,callback:function(i){e.$set(t.row,"ColumnName",i)},expression:"scope.row.ColumnName"}})]}}],null,!1,1381480725)}),e._v(" "),i("el-table-column",{attrs:{prop:"ColumnValue","min-width":"120",label:"列显示值","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-input",{attrs:{placeholder:"列显示值"},model:{value:t.row.ColumnValue,callback:function(i){e.$set(t.row,"ColumnValue",i)},expression:"scope.row.ColumnValue"}})]}}],null,!1,1462295186)}),e._v(" "),i("el-table-column",{attrs:{prop:"IsMerge","min-width":"80",label:"是否合并","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-switch",{model:{value:t.row.IsMerge,callback:function(i){e.$set(t.row,"IsMerge",i)},expression:"scope.row.IsMerge"}})]}}],null,!1,3074269999)}),e._v(" "),i("el-table-column",{attrs:{prop:"MergeColumnName","min-width":"120",label:"合并组","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-input",{attrs:{disabled:!t.row.IsMerge,placeholder:"合并组"},model:{value:t.row.MergeColumnName,callback:function(i){e.$set(t.row,"MergeColumnName",i)},expression:"scope.row.MergeColumnName"}})]}}],null,!1,4269760118)}),e._v(" "),i("el-table-column",{attrs:{prop:"IsPicture","min-width":"120",label:"是否图片","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-switch",{model:{value:t.row.IsPicture,callback:function(i){e.$set(t.row,"IsPicture",i)},expression:"scope.row.IsPicture"}})]}}],null,!1,2230992091)}),e._v(" "),i("el-table-column",{attrs:{prop:"IsDynamicTranslate","min-width":"140",label:"是否动态翻译","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-switch",{model:{value:t.row.IsDynamicTranslate,callback:function(i){e.$set(t.row,"IsDynamicTranslate",i)},expression:"scope.row.IsDynamicTranslate"}})]}}],null,!1,769141828)}),e._v(" "),i("el-table-column",{attrs:{prop:"IsNeedTransalate","min-width":"120",label:"是否翻译","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-switch",{model:{value:t.row.IsNeedTransalate,callback:function(i){e.$set(t.row,"IsNeedTransalate",i)},expression:"scope.row.IsNeedTransalate"}})]}}],null,!1,2023665146)}),e._v(" "),i("el-table-column",{attrs:{prop:"TranslateDictionaryName","min-width":"120",label:"翻译字典","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-input",{attrs:{disabled:!t.row.IsNeedTransalate,placeholder:"合并组"},model:{value:t.row.TranslateDictionaryName,callback:function(i){e.$set(t.row,"TranslateDictionaryName",i)},expression:"scope.row.TranslateDictionaryName"}})]}}],null,!1,4273102419)}),e._v(" "),i("el-table-column",{attrs:{prop:"MergeColumnName","min-width":"80",label:"操作","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-delete"},on:{click:function(i){return e.handleTableConfigListDelete(t.row,t.$index)}}},[e._v("删除")])]}}],null,!1,3893160276)})],1)],1):e._e(),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"C"===e.form.ConfigType&&"复制"!==e.title&&"Array"===e.form.DataType,expression:"form.ConfigType === 'C' && title !== '复制' && form.DataType === 'Array'"}],attrs:{span:12}},[i("el-form-item",[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 子数据Lable\n ")]),e._v(" "),i("el-input",{attrs:{placeholder:"请输入子数据Lable"},model:{value:e.form.ChildDataLabel,callback:function(t){e.$set(e.form,"ChildDataLabel",t)},expression:"form.ChildDataLabel"}})],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"C"===e.form.ConfigType&&"复制"!==e.title&&"Array"===e.form.DataType,expression:"form.ConfigType === 'C' && title !== '复制' && form.DataType === 'Array'"}],attrs:{span:12}},[i("el-form-item",[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 子数据Value\n ")]),e._v(" "),i("el-input",{attrs:{placeholder:"请输入子数据Value"},model:{value:e.form.ChildDataValue,callback:function(t){e.$set(e.form,"ChildDataValue",t)},expression:"form.ChildDataValue"}})],1)],1)],2)],1),e._v(" "),i("el-col",{staticStyle:{"margin-bottom":"10px"},attrs:{span:24}},[i("el-row",{staticStyle:{background:"#f8f8f8",padding:"0 20px","border-radius":"10px"}},[i("el-col",{directives:[{name:"show",rawName:"v-show",value:"C"===e.form.ConfigType&&"复制"!==e.title,expression:"form.ConfigType === 'C' && title !== '复制'"}],attrs:{span:24}},[i("el-form-item",{attrs:{label:"后端翻译类型"}},[i("el-radio-group",{model:{value:e.form.EnumType,callback:function(t){e.$set(e.form,"EnumType",t)},expression:"form.EnumType"}},[i("el-radio",{attrs:{label:""}},[e._v("字符串")]),e._v(" "),i("el-radio",{attrs:{label:"Date"}},[e._v("时间类型")]),e._v(" "),i("el-radio",{attrs:{label:"Dictionary"}},[e._v("字典或枚举")]),e._v(" "),i("el-radio",{attrs:{label:"Foreign"}},[e._v("系统数据")])],1)],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"C"===e.form.ConfigType&&"复制"!==e.title&&"Dictionary"===e.form.EnumType,expression:"form.ConfigType === 'C' && title !== '复制' && form.EnumType === 'Dictionary'"}],attrs:{span:12}},[i("el-form-item",{attrs:{label:"字典表名"}},[i("el-input",{attrs:{placeholder:"请输入字典表名"},model:{value:e.form.DictionaryCode,callback:function(t){e.$set(e.form,"DictionaryCode",t)},expression:"form.DictionaryCode"}})],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"C"===e.form.ConfigType&&"复制"!==e.title&&"Dictionary"===e.form.EnumType,expression:"form.ConfigType === 'C' && title !== '复制' && form.EnumType === 'Dictionary'"}],attrs:{span:12}},[i("el-form-item",{attrs:{label:"翻译字段"}},[i("el-input",{attrs:{placeholder:"请输入翻译字段"},model:{value:e.form.DictionaryType,callback:function(t){e.$set(e.form,"DictionaryType",t)},expression:"form.DictionaryType"}})],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"C"===e.form.ConfigType&&"复制"!==e.title&&"Date"===e.form.EnumType,expression:"form.ConfigType === 'C' && title !== '复制' && form.EnumType === 'Date'"}],attrs:{span:24}},[i("el-form-item",{attrs:{label:"时间格式化"}},[i("el-select",{attrs:{placeholder:"时间格式化",clearable:"",size:"small"},on:{change:e.changeDescription},model:{value:e.form.DateType,callback:function(t){e.$set(e.form,"DateType",t)},expression:"form.DateType"}},[i("el-option",{attrs:{value:"Date",label:"日期"}}),e._v(" "),i("el-option",{attrs:{value:"DateTime",label:"日期时间"}})],1)],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"C"===e.form.ConfigType&&"复制"!==e.title&&"Foreign"===e.form.EnumType,expression:"form.ConfigType === 'C' && title !== '复制' && form.EnumType === 'Foreign'"}],attrs:{span:12}},[i("el-form-item",{attrs:{label:"数据库表"}},[i("el-input",{attrs:{placeholder:"请输入数据库表"},model:{value:e.form.ForeignKeyTableName,callback:function(t){e.$set(e.form,"ForeignKeyTableName",t)},expression:"form.ForeignKeyTableName"}})],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"C"===e.form.ConfigType&&"复制"!==e.title&&"Foreign"===e.form.EnumType,expression:"form.ConfigType === 'C' && title !== '复制' && form.EnumType === 'Foreign'"}],attrs:{span:12}},[i("el-form-item",{attrs:{label:"字段form"}},[i("el-input",{attrs:{placeholder:"请输入数据库字段form"},model:{value:e.form.ForeignKeyValue,callback:function(t){e.$set(e.form,"ForeignKeyValue",t)},expression:"form.ForeignKeyValue"}})],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"C"===e.form.ConfigType&&"复制"!==e.title&&"Foreign"===e.form.EnumType,expression:"form.ConfigType === 'C' && title !== '复制' && form.EnumType === 'Foreign'"}],attrs:{span:12}},[i("el-form-item",{attrs:{label:"字段to"}},[i("el-input",{attrs:{placeholder:"请输入数据库字段to"},model:{value:e.form.ForeignKeyText,callback:function(t){e.$set(e.form,"ForeignKeyText",t)},expression:"form.ForeignKeyText"}})],1)],1)],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"复制"!==e.title,expression:"title !== '复制'"}],attrs:{span:24}},[i("el-form-item",{attrs:{label:"显示排序",prop:"ShowOrder"}},[i("el-input-number",{attrs:{"controls-position":"right",min:0},model:{value:e.form.Sort,callback:function(t){e.$set(e.form,"Sort",t)},expression:"form.Sort"}})],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"复制"!==e.title,expression:"title !== '复制'"}],attrs:{span:24}},[i("el-form-item",[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 是否启用\n ")]),e._v(" "),i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},model:{value:e.form.IsEnable,callback:function(t){e.$set(e.form,"IsEnable",t)},expression:"form.IsEnable"}})],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"复制"!==e.title&&"M"==e.form.ConfigType,expression:"title !== '复制' && form.ConfigType == 'M'"}],attrs:{span:24}},[i("el-divider",{attrs:{"content-position":"left"}},[e._v("其他信息")])],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"M"==e.form.ConfigType&&"复制"!==e.title,expression:"form.ConfigType == 'M' && title !== '复制'"}],attrs:{span:12}},[i("el-form-item",[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 是否核对\n ")]),e._v(" "),i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},model:{value:e.form.IsJoinPlan,callback:function(t){e.$set(e.form,"IsJoinPlan",t)},expression:"form.IsJoinPlan"}})],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"M"==e.form.ConfigType&&"复制"!==e.title,expression:"form.ConfigType == 'M' && title !== '复制'"}],attrs:{span:12}},[i("el-form-item",[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 是否记录\n ")]),e._v(" "),i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},model:{value:e.form.IsFinish,callback:function(t){e.$set(e.form,"IsFinish",t)},expression:"form.IsFinish"}})],1)],1)],1)],1),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},["复制"!==e.title?i("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("确 定")]):i("el-button",{attrs:{type:"primary"},on:{click:e.submitCopy}},[e._v("复 制")]),e._v(" "),i("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1)],1),e._v(" "),i("el-drawer",{attrs:{title:e.drawer_cfg.title,visible:e.drawer_cfg.drawerChild,direction:"rtl",size:"80%"},on:{"update:visible":function(t){return e.$set(e.drawer_cfg,"drawerChild",t)}}},[i("div",{staticStyle:{padding:"0 40px",display:"flex","flex-direction":"column"}},[i("div",{staticStyle:{"text-align":"right",height:"50px"}},[i("el-select",{attrs:{"collapse-tags":"",filterable:"",placeholder:"完全拷贝对象",clearable:"",size:"small"},model:{value:e.copeParams.FromItemId,callback:function(t){e.$set(e.copeParams,"FromItemId",t)},expression:"copeParams.FromItemId"}},e._l(e.list,(function(t){return e.drawer_cfg.drawerChild&&"M"===t.ConfigType&&t.ObjectTypeId===e.selectRow.ObjectTypeId&&t.OptTypeId&&t.ChildrenTypeId?i("el-option",{attrs:{value:t.Id,label:t.Description}}):e._e()})),1),e._v(" "),i("el-button",{staticStyle:{"margin-right":"10px"},attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.handleOverCope(e.selectRow)}}},[e._v("完全拷贝")]),e._v(" "),i("el-select",{attrs:{multiple:"","collapse-tags":"",filterable:"",placeholder:"拷贝对象",clearable:"",size:"small"},model:{value:e.copeParams.DataSourceGuids,callback:function(t){e.$set(e.copeParams,"DataSourceGuids",t)},expression:"copeParams.DataSourceGuids"}},e._l(e.list,(function(t){return e.drawer_cfg.drawerChild&&"M"===t.ConfigType&&t.ObjectTypeId===e.selectRow.ObjectTypeId&&t.OptTypeId&&t.ChildrenTypeId?i("el-option",{attrs:{value:t.Id,label:t.Description}}):e._e()})),1),e._v(" "),i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.handleCope(e.selectRow)}}},[e._v("拷贝")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.handleAdd(e.selectRow)}}},[e._v("新建")])],1),e._v(" "),i("div",{staticStyle:{flex:"1"}},[e.tableShow?i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:0},expression:"{bottomOffset:0}"},{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"singleTable",attrs:{data:e.childrenList,"row-key":e.selectRow?e.selectRow.Id:"1",height:"100"}},[i("el-table-column",{attrs:{prop:"Code",label:"字段名","min-width":"120px","show-overflow-tooltip":!0}}),e._v(" "),i("el-table-column",{attrs:{prop:"Value",label:"字段英文","min-width":"120px","show-overflow-tooltip":!0}}),e._v(" "),i("el-table-column",{attrs:{prop:"ValueCN",label:"字段中文","min-width":"120px","show-overflow-tooltip":!0}}),e._v(" "),i("el-table-column",{attrs:{prop:"Sort",label:"显示顺序","min-width":"80","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:"启用",align:"center",prop:"CreateTime","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsEnable?i("el-tag",{attrs:{size:"success"}},[e._v("启用")]):i("el-tag",{attrs:{size:"danger"}},[e._v("禁用")])]}}],null,!1,3408094289)}),e._v(" "),i("el-table-column",{attrs:{label:"是否使用父数据",align:"center",prop:"CreateTime","min-width":"130"},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.IsShowParent?i("el-tag",{attrs:{size:"success"}},[e._v("通用数据")]):e._e(),e._v(" "),0===t.row.IsShowParent?i("el-tag",{attrs:{size:"danger"}},[e._v("业务数据")]):e._e(),e._v(" "),2===t.row.IsShowParent?i("el-tag",{attrs:{size:"warning"}},[e._v("列表数据")]):e._e()]}}],null,!1,2628470102)}),e._v(" "),i("el-table-column",{attrs:{label:"是否依赖父数据",align:"center",prop:"CreateTime","min-width":"130"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsShowByTrialConfig?i("el-tag",{attrs:{size:"success"}},[e._v("依赖")]):i("el-tag",{attrs:{size:"danger"}},[e._v("不依赖")])]}}],null,!1,3180771523)}),e._v(" "),i("el-table-column",{attrs:{label:"字典依赖",align:"center",prop:"CreateTime","min-width":"130"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.EnumType&&t.row.DictionaryCode?i("span",[e._v("\n "+e._s(t.row.DictionaryCode)+"["+e._s(t.row.DictionaryType)+"]\n ")]):i("span",[e._v("\n 不依赖\n ")])]}}],null,!1,1959708567)}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialConfigRelyFieldName",label:"依赖字段","min-width":"120px","show-overflow-tooltip":!0}}),e._v(" "),i("el-table-column",{attrs:{label:"操作",align:"center","min-width":"180","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-edit"},on:{click:function(i){return e.handleUpdate(t.row)}}},[e._v("修改")]),e._v(" "),i("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-delete"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("删除")])]}}],null,!1,399506414)})],1):e._e()],1)])])],1)},a=[],r=(i("7514"),i("ac6a"),i("2938")),o=i("ca17"),s=i.n(o);i("542c");
/**!
* Sortable 1.15.0
* @author RubaXa <trash@rubaxa.org>
* @author owenm <owen23355@gmail.com>
* @license MIT
*/
function l(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function c(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?l(Object(i),!0).forEach((function(t){d(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):l(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function u(e){return u="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},u(e)}function d(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function f(){return f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},f.apply(this,arguments)}function h(e,t){if(null==e)return{};var i,n,a={},r=Object.keys(e);for(n=0;n<r.length;n++)i=r[n],t.indexOf(i)>=0||(a[i]=e[i]);return a}function p(e,t){if(null==e)return{};var i,n,a=h(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(n=0;n<r.length;n++)i=r[n],t.indexOf(i)>=0||Object.prototype.propertyIsEnumerable.call(e,i)&&(a[i]=e[i])}return a}var m="1.15.0";function g(e){if("undefined"!==typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var v=g(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),b=g(/Edge/i),y=g(/firefox/i),w=g(/safari/i)&&!g(/chrome/i)&&!g(/android/i),_=g(/iP(ad|od|hone)/i),I=g(/chrome/i)&&g(/android/i),x={capture:!1,passive:!1};function S(e,t,i){e.addEventListener(t,i,!v&&x)}function T(e,t,i){e.removeEventListener(t,i,!v&&x)}function C(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(i){return!1}return!1}}function k(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function R(e,t,i,n){if(e){i=i||document;do{if(null!=t&&(">"===t[0]?e.parentNode===i&&C(e,t):C(e,t))||n&&e===i)return e;if(e===i)break}while(e=k(e))}return null}var D,L=/\s+/g;function O(e,t,i){if(e&&t)if(e.classList)e.classList[i?"add":"remove"](t);else{var n=(" "+e.className+" ").replace(L," ").replace(" "+t+" "," ");e.className=(n+(i?" "+t:"")).replace(L," ")}}function $(e,t,i){var n=e&&e.style;if(n){if(void 0===i)return document.defaultView&&document.defaultView.getComputedStyle?i=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(i=e.currentStyle),void 0===t?i:i[t];t in n||-1!==t.indexOf("webkit")||(t="-webkit-"+t),n[t]=i+("string"===typeof i?"":"px")}}function N(e,t){var i="";if("string"===typeof e)i=e;else do{var n=$(e,"transform");n&&"none"!==n&&(i=n+" "+i)}while(!t&&(e=e.parentNode));var a=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return a&&new a(i)}function A(e,t,i){if(e){var n=e.getElementsByTagName(t),a=0,r=n.length;if(i)for(;a<r;a++)i(n[a],a);return n}return[]}function P(){var e=document.scrollingElement;return e||document.documentElement}function E(e,t,i,n,a){if(e.getBoundingClientRect||e===window){var r,o,s,l,c,u,d;if(e!==window&&e.parentNode&&e!==P()?(r=e.getBoundingClientRect(),o=r.top,s=r.left,l=r.bottom,c=r.right,u=r.height,d=r.width):(o=0,s=0,l=window.innerHeight,c=window.innerWidth,u=window.innerHeight,d=window.innerWidth),(t||i)&&e!==window&&(a=a||e.parentNode,!v))do{if(a&&a.getBoundingClientRect&&("none"!==$(a,"transform")||i&&"static"!==$(a,"position"))){var f=a.getBoundingClientRect();o-=f.top+parseInt($(a,"border-top-width")),s-=f.left+parseInt($(a,"border-left-width")),l=o+r.height,c=s+r.width;break}}while(a=a.parentNode);if(n&&e!==window){var h=N(a||e),p=h&&h.a,m=h&&h.d;h&&(o/=m,s/=p,d/=p,u/=m,l=o+u,c=s+d)}return{top:o,left:s,bottom:l,right:c,width:d,height:u}}}function M(e,t,i){var n=B(e,!0),a=E(e)[t];while(n){var r=E(n)[i],o=void 0;if(o="top"===i||"left"===i?a>=r:a<=r,!o)return n;if(n===P())break;n=B(n,!1)}return!1}function F(e,t,i,n){var a=0,r=0,o=e.children;while(r<o.length){if("none"!==o[r].style.display&&o[r]!==Je.ghost&&(n||o[r]!==Je.dragged)&&R(o[r],i.draggable,e,!1)){if(a===t)return o[r];a++}r++}return null}function j(e,t){var i=e.lastElementChild;while(i&&(i===Je.ghost||"none"===$(i,"display")||t&&!C(i,t)))i=i.previousElementSibling;return i||null}function V(e,t){var i=0;if(!e||!e.parentNode)return-1;while(e=e.previousElementSibling)"TEMPLATE"===e.nodeName.toUpperCase()||e===Je.clone||t&&!C(e,t)||i++;return i}function q(e){var t=0,i=0,n=P();if(e)do{var a=N(e),r=a.a,o=a.d;t+=e.scrollLeft*r,i+=e.scrollTop*o}while(e!==n&&(e=e.parentNode));return[t,i]}function z(e,t){for(var i in e)if(e.hasOwnProperty(i))for(var n in t)if(t.hasOwnProperty(n)&&t[n]===e[i][n])return Number(i);return-1}function B(e,t){if(!e||!e.getBoundingClientRect)return P();var i=e,n=!1;do{if(i.clientWidth<i.scrollWidth||i.clientHeight<i.scrollHeight){var a=$(i);if(i.clientWidth<i.scrollWidth&&("auto"==a.overflowX||"scroll"==a.overflowX)||i.clientHeight<i.scrollHeight&&("auto"==a.overflowY||"scroll"==a.overflowY)){if(!i.getBoundingClientRect||i===document.body)return P();if(n||t)return i;n=!0}}}while(i=i.parentNode);return P()}function U(e,t){if(e&&t)for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);return e}function Q(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function H(e,t){return function(){if(!D){var i=arguments,n=this;1===i.length?e.call(n,i[0]):e.apply(n,i),D=setTimeout((function(){D=void 0}),t)}}}function G(){clearTimeout(D),D=void 0}function W(e,t,i){e.scrollLeft+=t,e.scrollTop+=i}function Y(e){var t=window.Polymer,i=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):i?i(e).clone(!0)[0]:e.cloneNode(!0)}var K="Sortable"+(new Date).getTime();function Z(){var e,t=[];return{captureAnimationState:function(){if(t=[],this.options.animation){var e=[].slice.call(this.el.children);e.forEach((function(e){if("none"!==$(e,"display")&&e!==Je.ghost){t.push({target:e,rect:E(e)});var i=c({},t[t.length-1].rect);if(e.thisAnimationDuration){var n=N(e,!0);n&&(i.top-=n.f,i.left-=n.e)}e.fromRect=i}}))}},addAnimationState:function(e){t.push(e)},removeAnimationState:function(e){t.splice(z(t,{target:e}),1)},animateAll:function(i){var n=this;if(!this.options.animation)return clearTimeout(e),void("function"===typeof i&&i());var a=!1,r=0;t.forEach((function(e){var t=0,i=e.target,o=i.fromRect,s=E(i),l=i.prevFromRect,c=i.prevToRect,u=e.rect,d=N(i,!0);d&&(s.top-=d.f,s.left-=d.e),i.toRect=s,i.thisAnimationDuration&&Q(l,s)&&!Q(o,s)&&(u.top-s.top)/(u.left-s.left)===(o.top-s.top)/(o.left-s.left)&&(t=J(u,l,c,n.options)),Q(s,o)||(i.prevFromRect=o,i.prevToRect=s,t||(t=n.options.animation),n.animate(i,u,s,t)),t&&(a=!0,r=Math.max(r,t),clearTimeout(i.animationResetTimer),i.animationResetTimer=setTimeout((function(){i.animationTime=0,i.prevFromRect=null,i.fromRect=null,i.prevToRect=null,i.thisAnimationDuration=null}),t),i.thisAnimationDuration=t)})),clearTimeout(e),a?e=setTimeout((function(){"function"===typeof i&&i()}),r):"function"===typeof i&&i(),t=[]},animate:function(e,t,i,n){if(n){$(e,"transition",""),$(e,"transform","");var a=N(this.el),r=a&&a.a,o=a&&a.d,s=(t.left-i.left)/(r||1),l=(t.top-i.top)/(o||1);e.animatingX=!!s,e.animatingY=!!l,$(e,"transform","translate3d("+s+"px,"+l+"px,0)"),this.forRepaintDummy=X(e),$(e,"transition","transform "+n+"ms"+(this.options.easing?" "+this.options.easing:"")),$(e,"transform","translate3d(0,0,0)"),"number"===typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){$(e,"transition",""),$(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),n)}}}}function X(e){return e.offsetWidth}function J(e,t,i,n){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-i.top,2)+Math.pow(t.left-i.left,2))*n.animation}var ee=[],te={initializeByDefault:!0},ie={mount:function(e){for(var t in te)te.hasOwnProperty(t)&&!(t in e)&&(e[t]=te[t]);ee.forEach((function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")})),ee.push(e)},pluginEvent:function(e,t,i){var n=this;this.eventCanceled=!1,i.cancel=function(){n.eventCanceled=!0};var a=e+"Global";ee.forEach((function(n){t[n.pluginName]&&(t[n.pluginName][a]&&t[n.pluginName][a](c({sortable:t},i)),t.options[n.pluginName]&&t[n.pluginName][e]&&t[n.pluginName][e](c({sortable:t},i)))}))},initializePlugins:function(e,t,i,n){for(var a in ee.forEach((function(n){var a=n.pluginName;if(e.options[a]||n.initializeByDefault){var r=new n(e,t,e.options);r.sortable=e,r.options=e.options,e[a]=r,f(i,r.defaults)}})),e.options)if(e.options.hasOwnProperty(a)){var r=this.modifyOption(e,a,e.options[a]);"undefined"!==typeof r&&(e.options[a]=r)}},getEventProperties:function(e,t){var i={};return ee.forEach((function(n){"function"===typeof n.eventProperties&&f(i,n.eventProperties.call(t[n.pluginName],e))})),i},modifyOption:function(e,t,i){var n;return ee.forEach((function(a){e[a.pluginName]&&a.optionListeners&&"function"===typeof a.optionListeners[t]&&(n=a.optionListeners[t].call(e[a.pluginName],i))})),n}};function ne(e){var t=e.sortable,i=e.rootEl,n=e.name,a=e.targetEl,r=e.cloneEl,o=e.toEl,s=e.fromEl,l=e.oldIndex,u=e.newIndex,d=e.oldDraggableIndex,f=e.newDraggableIndex,h=e.originalEvent,p=e.putSortable,m=e.extraEventProperties;if(t=t||i&&i[K],t){var g,y=t.options,w="on"+n.charAt(0).toUpperCase()+n.substr(1);!window.CustomEvent||v||b?(g=document.createEvent("Event"),g.initEvent(n,!0,!0)):g=new CustomEvent(n,{bubbles:!0,cancelable:!0}),g.to=o||i,g.from=s||i,g.item=a||i,g.clone=r,g.oldIndex=l,g.newIndex=u,g.oldDraggableIndex=d,g.newDraggableIndex=f,g.originalEvent=h,g.pullMode=p?p.lastPutMode:void 0;var _=c(c({},m),ie.getEventProperties(n,t));for(var I in _)g[I]=_[I];i&&i.dispatchEvent(g),y[w]&&y[w].call(t,g)}}var ae=["evt"],re=function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=i.evt,a=p(i,ae);ie.pluginEvent.bind(Je)(e,t,c({dragEl:se,parentEl:le,ghostEl:ce,rootEl:ue,nextEl:de,lastDownEl:fe,cloneEl:he,cloneHidden:pe,dragStarted:ke,putSortable:we,activeSortable:Je.active,originalEvent:n,oldIndex:me,oldDraggableIndex:ve,newIndex:ge,newDraggableIndex:be,hideGhostForTarget:Ye,unhideGhostForTarget:Ke,cloneNowHidden:function(){pe=!0},cloneNowShown:function(){pe=!1},dispatchSortableEvent:function(e){oe({sortable:t,name:e,originalEvent:n})}},a))};function oe(e){ne(c({putSortable:we,cloneEl:he,targetEl:se,rootEl:ue,oldIndex:me,oldDraggableIndex:ve,newIndex:ge,newDraggableIndex:be},e))}var se,le,ce,ue,de,fe,he,pe,me,ge,ve,be,ye,we,_e,Ie,xe,Se,Te,Ce,ke,Re,De,Le,Oe,$e=!1,Ne=!1,Ae=[],Pe=!1,Ee=!1,Me=[],Fe=!1,je=[],Ve="undefined"!==typeof document,qe=_,ze=b||v?"cssFloat":"float",Be=Ve&&!I&&!_&&"draggable"in document.createElement("div"),Ue=function(){if(Ve){if(v)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),Qe=function(e,t){var i=$(e),n=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),a=F(e,0,t),r=F(e,1,t),o=a&&$(a),s=r&&$(r),l=o&&parseInt(o.marginLeft)+parseInt(o.marginRight)+E(a).width,c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+E(r).width;if("flex"===i.display)return"column"===i.flexDirection||"column-reverse"===i.flexDirection?"vertical":"horizontal";if("grid"===i.display)return i.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(a&&o["float"]&&"none"!==o["float"]){var u="left"===o["float"]?"left":"right";return!r||"both"!==s.clear&&s.clear!==u?"horizontal":"vertical"}return a&&("block"===o.display||"flex"===o.display||"table"===o.display||"grid"===o.display||l>=n&&"none"===i[ze]||r&&"none"===i[ze]&&l+c>n)?"vertical":"horizontal"},He=function(e,t,i){var n=i?e.left:e.top,a=i?e.right:e.bottom,r=i?e.width:e.height,o=i?t.left:t.top,s=i?t.right:t.bottom,l=i?t.width:t.height;return n===o||a===s||n+r/2===o+l/2},Ge=function(e,t){var i;return Ae.some((function(n){var a=n[K].options.emptyInsertThreshold;if(a&&!j(n)){var r=E(n),o=e>=r.left-a&&e<=r.right+a,s=t>=r.top-a&&t<=r.bottom+a;return o&&s?i=n:void 0}})),i},We=function(e){function t(e,i){return function(n,a,r,o){var s=n.options.group.name&&a.options.group.name&&n.options.group.name===a.options.group.name;if(null==e&&(i||s))return!0;if(null==e||!1===e)return!1;if(i&&"clone"===e)return e;if("function"===typeof e)return t(e(n,a,r,o),i)(n,a,r,o);var l=(i?n:a).options.group.name;return!0===e||"string"===typeof e&&e===l||e.join&&e.indexOf(l)>-1}}var i={},n=e.group;n&&"object"==u(n)||(n={name:n}),i.name=n.name,i.checkPull=t(n.pull,!0),i.checkPut=t(n.put),i.revertClone=n.revertClone,e.group=i},Ye=function(){!Ue&&ce&&$(ce,"display","none")},Ke=function(){!Ue&&ce&&$(ce,"display","")};Ve&&!I&&document.addEventListener("click",(function(e){if(Ne)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Ne=!1,!1}),!0);var Ze=function(e){if(se){e=e.touches?e.touches[0]:e;var t=Ge(e.clientX,e.clientY);if(t){var i={};for(var n in e)e.hasOwnProperty(n)&&(i[n]=e[n]);i.target=i.rootEl=t,i.preventDefault=void 0,i.stopPropagation=void 0,t[K]._onDragOver(i)}}},Xe=function(e){se&&se.parentNode[K]._isOutsideThisEl(e.target)};function Je(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=f({},t),e[K]=this;var i={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 Qe(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!==Je.supportPointer&&"PointerEvent"in window&&!w,emptyInsertThreshold:5};for(var n in ie.initializePlugins(this,e,i),i)!(n in t)&&(t[n]=i[n]);for(var a in We(t),this)"_"===a.charAt(0)&&"function"===typeof this[a]&&(this[a]=this[a].bind(this));this.nativeDraggable=!t.forceFallback&&Be,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?S(e,"pointerdown",this._onTapStart):(S(e,"mousedown",this._onTapStart),S(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(S(e,"dragover",this),S(e,"dragenter",this)),Ae.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),f(this,Z())}function et(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function tt(e,t,i,n,a,r,o,s){var l,c,u=e[K],d=u.options.onMove;return!window.CustomEvent||v||b?(l=document.createEvent("Event"),l.initEvent("move",!0,!0)):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=t,l.from=e,l.dragged=i,l.draggedRect=n,l.related=a||t,l.relatedRect=r||E(t),l.willInsertAfter=s,l.originalEvent=o,e.dispatchEvent(l),d&&(c=d.call(u,l,o)),c}function it(e){e.draggable=!1}function nt(){Fe=!1}function at(e,t,i){var n=E(F(i.el,0,i.options,!0)),a=10;return t?e.clientX<n.left-a||e.clientY<n.top&&e.clientX<n.right:e.clientY<n.top-a||e.clientY<n.bottom&&e.clientX<n.left}function rt(e,t,i){var n=E(j(i.el,i.options.draggable)),a=10;return t?e.clientX>n.right+a||e.clientX<=n.right&&e.clientY>n.bottom&&e.clientX>=n.left:e.clientX>n.right&&e.clientY>n.top||e.clientX<=n.right&&e.clientY>n.bottom+a}function ot(e,t,i,n,a,r,o,s){var l=n?e.clientY:e.clientX,c=n?i.height:i.width,u=n?i.top:i.left,d=n?i.bottom:i.right,f=!1;if(!o)if(s&&Le<c*a){if(!Pe&&(1===De?l>u+c*r/2:l<d-c*r/2)&&(Pe=!0),Pe)f=!0;else if(1===De?l<u+Le:l>d-Le)return-De}else if(l>u+c*(1-a)/2&&l<d-c*(1-a)/2)return st(t);return f=f||o,f&&(l<u+c*r/2||l>d-c*r/2)?l>u+c/2?1:-1:0}function st(e){return V(se)<V(e)?1:-1}function lt(e){var t=e.tagName+e.className+e.src+e.href+e.textContent,i=t.length,n=0;while(i--)n+=t.charCodeAt(i);return n.toString(36)}function ct(e){je.length=0;var t=e.getElementsByTagName("input"),i=t.length;while(i--){var n=t[i];n.checked&&je.push(n)}}function ut(e){return setTimeout(e,0)}function dt(e){return clearTimeout(e)}Je.prototype={constructor:Je,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(Re=null)},_getDirection:function(e,t){return"function"===typeof this.options.direction?this.options.direction.call(this,e,t,se):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,i=this.el,n=this.options,a=n.preventOnFilter,r=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,c=n.filter;if(ct(i),!se&&!(/mousedown|pointerdown/.test(r)&&0!==e.button||n.disabled)&&!l.isContentEditable&&(this.nativeDraggable||!w||!s||"SELECT"!==s.tagName.toUpperCase())&&(s=R(s,n.draggable,i,!1),(!s||!s.animated)&&fe!==s)){if(me=V(s),ve=V(s,n.draggable),"function"===typeof c){if(c.call(this,e,s,this))return oe({sortable:t,rootEl:l,name:"filter",targetEl:s,toEl:i,fromEl:i}),re("filter",t,{evt:e}),void(a&&e.cancelable&&e.preventDefault())}else if(c&&(c=c.split(",").some((function(n){if(n=R(l,n.trim(),i,!1),n)return oe({sortable:t,rootEl:n,name:"filter",targetEl:s,fromEl:i,toEl:i}),re("filter",t,{evt:e}),!0})),c))return void(a&&e.cancelable&&e.preventDefault());n.handle&&!R(l,n.handle,i,!1)||this._prepareDragStart(e,o,s)}}},_prepareDragStart:function(e,t,i){var n,a=this,r=a.el,o=a.options,s=r.ownerDocument;if(i&&!se&&i.parentNode===r){var l=E(i);if(ue=r,se=i,le=se.parentNode,de=se.nextSibling,fe=i,ye=o.group,Je.dragged=se,_e={target:se,clientX:(t||e).clientX,clientY:(t||e).clientY},Te=_e.clientX-l.left,Ce=_e.clientY-l.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,se.style["will-change"]="all",n=function(){re("delayEnded",a,{evt:e}),Je.eventCanceled?a._onDrop():(a._disableDelayedDragEvents(),!y&&a.nativeDraggable&&(se.draggable=!0),a._triggerDragStart(e,t),oe({sortable:a,name:"choose",originalEvent:e}),O(se,o.chosenClass,!0))},o.ignore.split(",").forEach((function(e){A(se,e.trim(),it)})),S(s,"dragover",Ze),S(s,"mousemove",Ze),S(s,"touchmove",Ze),S(s,"mouseup",a._onDrop),S(s,"touchend",a._onDrop),S(s,"touchcancel",a._onDrop),y&&this.nativeDraggable&&(this.options.touchStartThreshold=4,se.draggable=!0),re("delayStart",this,{evt:e}),!o.delay||o.delayOnTouchOnly&&!t||this.nativeDraggable&&(b||v))n();else{if(Je.eventCanceled)return void this._onDrop();S(s,"mouseup",a._disableDelayedDrag),S(s,"touchend",a._disableDelayedDrag),S(s,"touchcancel",a._disableDelayedDrag),S(s,"mousemove",a._delayedDragTouchMoveHandler),S(s,"touchmove",a._delayedDragTouchMoveHandler),o.supportPointer&&S(s,"pointermove",a._delayedDragTouchMoveHandler),a._dragStartTimer=setTimeout(n,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(){se&&it(se),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;T(e,"mouseup",this._disableDelayedDrag),T(e,"touchend",this._disableDelayedDrag),T(e,"touchcancel",this._disableDelayedDrag),T(e,"mousemove",this._delayedDragTouchMoveHandler),T(e,"touchmove",this._delayedDragTouchMoveHandler),T(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?S(document,"pointermove",this._onTouchMove):S(document,t?"touchmove":"mousemove",this._onTouchMove):(S(se,"dragend",this),S(ue,"dragstart",this._onDragStart));try{document.selection?ut((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(i){}},_dragStarted:function(e,t){if($e=!1,ue&&se){re("dragStarted",this,{evt:t}),this.nativeDraggable&&S(document,"dragover",Xe);var i=this.options;!e&&O(se,i.dragClass,!1),O(se,i.ghostClass,!0),Je.active=this,e&&this._appendGhost(),oe({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(Ie){this._lastX=Ie.clientX,this._lastY=Ie.clientY,Ye();var e=document.elementFromPoint(Ie.clientX,Ie.clientY),t=e;while(e&&e.shadowRoot){if(e=e.shadowRoot.elementFromPoint(Ie.clientX,Ie.clientY),e===t)break;t=e}if(se.parentNode[K]._isOutsideThisEl(e),t)do{if(t[K]){var i=void 0;if(i=t[K]._onDragOver({clientX:Ie.clientX,clientY:Ie.clientY,target:e,rootEl:t}),i&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);Ke()}},_onTouchMove:function(e){if(_e){var t=this.options,i=t.fallbackTolerance,n=t.fallbackOffset,a=e.touches?e.touches[0]:e,r=ce&&N(ce,!0),o=ce&&r&&r.a,s=ce&&r&&r.d,l=qe&&Oe&&q(Oe),c=(a.clientX-_e.clientX+n.x)/(o||1)+(l?l[0]-Me[0]:0)/(o||1),u=(a.clientY-_e.clientY+n.y)/(s||1)+(l?l[1]-Me[1]:0)/(s||1);if(!Je.active&&!$e){if(i&&Math.max(Math.abs(a.clientX-this._lastX),Math.abs(a.clientY-this._lastY))<i)return;this._onDragStart(e,!0)}if(ce){r?(r.e+=c-(xe||0),r.f+=u-(Se||0)):r={a:1,b:0,c:0,d:1,e:c,f:u};var d="matrix(".concat(r.a,",").concat(r.b,",").concat(r.c,",").concat(r.d,",").concat(r.e,",").concat(r.f,")");$(ce,"webkitTransform",d),$(ce,"mozTransform",d),$(ce,"msTransform",d),$(ce,"transform",d),xe=c,Se=u,Ie=a}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!ce){var e=this.options.fallbackOnBody?document.body:ue,t=E(se,!0,qe,!0,e),i=this.options;if(qe){Oe=e;while("static"===$(Oe,"position")&&"none"===$(Oe,"transform")&&Oe!==document)Oe=Oe.parentNode;Oe!==document.body&&Oe!==document.documentElement?(Oe===document&&(Oe=P()),t.top+=Oe.scrollTop,t.left+=Oe.scrollLeft):Oe=P(),Me=q(Oe)}ce=se.cloneNode(!0),O(ce,i.ghostClass,!1),O(ce,i.fallbackClass,!0),O(ce,i.dragClass,!0),$(ce,"transition",""),$(ce,"transform",""),$(ce,"box-sizing","border-box"),$(ce,"margin",0),$(ce,"top",t.top),$(ce,"left",t.left),$(ce,"width",t.width),$(ce,"height",t.height),$(ce,"opacity","0.8"),$(ce,"position",qe?"absolute":"fixed"),$(ce,"zIndex","100000"),$(ce,"pointerEvents","none"),Je.ghost=ce,e.appendChild(ce),$(ce,"transform-origin",Te/parseInt(ce.style.width)*100+"% "+Ce/parseInt(ce.style.height)*100+"%")}},_onDragStart:function(e,t){var i=this,n=e.dataTransfer,a=i.options;re("dragStart",this,{evt:e}),Je.eventCanceled?this._onDrop():(re("setupClone",this),Je.eventCanceled||(he=Y(se),he.removeAttribute("id"),he.draggable=!1,he.style["will-change"]="",this._hideClone(),O(he,this.options.chosenClass,!1),Je.clone=he),i.cloneId=ut((function(){re("clone",i),Je.eventCanceled||(i.options.removeCloneOnHide||ue.insertBefore(he,se),i._hideClone(),oe({sortable:i,name:"clone"}))})),!t&&O(se,a.dragClass,!0),t?(Ne=!0,i._loopId=setInterval(i._emulateDragOver,50)):(T(document,"mouseup",i._onDrop),T(document,"touchend",i._onDrop),T(document,"touchcancel",i._onDrop),n&&(n.effectAllowed="move",a.setData&&a.setData.call(i,n,se)),S(document,"drop",i),$(se,"transform","translateZ(0)")),$e=!0,i._dragStartId=ut(i._dragStarted.bind(i,t,e)),S(document,"selectstart",i),ke=!0,w&&$(document.body,"user-select","none"))},_onDragOver:function(e){var t,i,n,a,r=this.el,o=e.target,s=this.options,l=s.group,u=Je.active,d=ye===l,f=s.sort,h=we||u,p=this,m=!1;if(!Fe){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),o=R(o,s.draggable,r,!0),N("dragOver"),Je.eventCanceled)return m;if(se.contains(e.target)||o.animated&&o.animatingX&&o.animatingY||p._ignoreWhileAnimating===o)return P(!1);if(Ne=!1,u&&!s.disabled&&(d?f||(n=le!==ue):we===this||(this.lastPutMode=ye.checkPull(this,u,se,e))&&l.checkPut(this,u,se,e))){if(a="vertical"===this._getDirection(e,o),t=E(se),N("dragOverValid"),Je.eventCanceled)return m;if(n)return le=ue,A(),this._hideClone(),N("revert"),Je.eventCanceled||(de?ue.insertBefore(se,de):ue.appendChild(se)),P(!0);var g=j(r,s.draggable);if(!g||rt(e,a,this)&&!g.animated){if(g===se)return P(!1);if(g&&r===e.target&&(o=g),o&&(i=E(o)),!1!==tt(ue,r,se,t,o,i,e,!!o))return A(),g&&g.nextSibling?r.insertBefore(se,g.nextSibling):r.appendChild(se),le=r,q(),P(!0)}else if(g&&at(e,a,this)){var v=F(r,0,s,!0);if(v===se)return P(!1);if(o=v,i=E(o),!1!==tt(ue,r,se,t,o,i,e,!1))return A(),r.insertBefore(se,v),le=r,q(),P(!0)}else if(o.parentNode===r){i=E(o);var b,y,w=0,_=se.parentNode!==r,I=!He(se.animated&&se.toRect||t,o.animated&&o.toRect||i,a),x=a?"top":"left",S=M(o,"top","top")||M(se,"top","top"),T=S?S.scrollTop:void 0;if(Re!==o&&(b=i[x],Pe=!1,Ee=!I&&s.invertSwap||_),w=ot(e,o,i,a,I?1:s.swapThreshold,null==s.invertedSwapThreshold?s.swapThreshold:s.invertedSwapThreshold,Ee,Re===o),0!==w){var C=V(se);do{C-=w,y=le.children[C]}while(y&&("none"===$(y,"display")||y===ce))}if(0===w||y===o)return P(!1);Re=o,De=w;var k=o.nextElementSibling,D=!1;D=1===w;var L=tt(ue,r,se,t,o,i,e,D);if(!1!==L)return 1!==L&&-1!==L||(D=1===L),Fe=!0,setTimeout(nt,30),A(),D&&!k?r.appendChild(se):o.parentNode.insertBefore(se,D?k:o),S&&W(S,0,T-S.scrollTop),le=se.parentNode,void 0===b||Ee||(Le=Math.abs(b-E(o)[x])),q(),P(!0)}if(r.contains(se))return P(!1)}return!1}function N(s,l){re(s,p,c({evt:e,isOwner:d,axis:a?"vertical":"horizontal",revert:n,dragRect:t,targetRect:i,canSort:f,fromSortable:h,target:o,completed:P,onMove:function(i,n){return tt(ue,r,se,t,i,E(i),e,n)},changed:q},l))}function A(){N("dragOverAnimationCapture"),p.captureAnimationState(),p!==h&&h.captureAnimationState()}function P(t){return N("dragOverCompleted",{insertion:t}),t&&(d?u._hideClone():u._showClone(p),p!==h&&(O(se,we?we.options.ghostClass:u.options.ghostClass,!1),O(se,s.ghostClass,!0)),we!==p&&p!==Je.active?we=p:p===Je.active&&we&&(we=null),h===p&&(p._ignoreWhileAnimating=o),p.animateAll((function(){N("dragOverAnimationComplete"),p._ignoreWhileAnimating=null})),p!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(o===se&&!se.animated||o===r&&!o.animated)&&(Re=null),s.dragoverBubble||e.rootEl||o===document||(se.parentNode[K]._isOutsideThisEl(e.target),!t&&Ze(e)),!s.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),m=!0}function q(){ge=V(se),be=V(se,s.draggable),oe({sortable:p,name:"change",toEl:r,newIndex:ge,newDraggableIndex:be,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){T(document,"mousemove",this._onTouchMove),T(document,"touchmove",this._onTouchMove),T(document,"pointermove",this._onTouchMove),T(document,"dragover",Ze),T(document,"mousemove",Ze),T(document,"touchmove",Ze)},_offUpEvents:function(){var e=this.el.ownerDocument;T(e,"mouseup",this._onDrop),T(e,"touchend",this._onDrop),T(e,"pointerup",this._onDrop),T(e,"touchcancel",this._onDrop),T(document,"selectstart",this)},_onDrop:function(e){var t=this.el,i=this.options;ge=V(se),be=V(se,i.draggable),re("drop",this,{evt:e}),le=se&&se.parentNode,ge=V(se),be=V(se,i.draggable),Je.eventCanceled||($e=!1,Ee=!1,Pe=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),dt(this.cloneId),dt(this._dragStartId),this.nativeDraggable&&(T(document,"drop",this),T(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),w&&$(document.body,"user-select",""),$(se,"transform",""),e&&(ke&&(e.cancelable&&e.preventDefault(),!i.dropBubble&&e.stopPropagation()),ce&&ce.parentNode&&ce.parentNode.removeChild(ce),(ue===le||we&&"clone"!==we.lastPutMode)&&he&&he.parentNode&&he.parentNode.removeChild(he),se&&(this.nativeDraggable&&T(se,"dragend",this),it(se),se.style["will-change"]="",ke&&!$e&&O(se,we?we.options.ghostClass:this.options.ghostClass,!1),O(se,this.options.chosenClass,!1),oe({sortable:this,name:"unchoose",toEl:le,newIndex:null,newDraggableIndex:null,originalEvent:e}),ue!==le?(ge>=0&&(oe({rootEl:le,name:"add",toEl:le,fromEl:ue,originalEvent:e}),oe({sortable:this,name:"remove",toEl:le,originalEvent:e}),oe({rootEl:le,name:"sort",toEl:le,fromEl:ue,originalEvent:e}),oe({sortable:this,name:"sort",toEl:le,originalEvent:e})),we&&we.save()):ge!==me&&ge>=0&&(oe({sortable:this,name:"update",toEl:le,originalEvent:e}),oe({sortable:this,name:"sort",toEl:le,originalEvent:e})),Je.active&&(null!=ge&&-1!==ge||(ge=me,be=ve),oe({sortable:this,name:"end",toEl:le,originalEvent:e}),this.save())))),this._nulling()},_nulling:function(){re("nulling",this),ue=se=le=ce=de=he=fe=pe=_e=Ie=ke=ge=be=me=ve=Re=De=we=ye=Je.dragged=Je.ghost=Je.clone=Je.active=null,je.forEach((function(e){e.checked=!0})),je.length=xe=Se=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":se&&(this._onDragOver(e),et(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e,t=[],i=this.el.children,n=0,a=i.length,r=this.options;n<a;n++)e=i[n],R(e,r.draggable,this.el,!1)&&t.push(e.getAttribute(r.dataIdAttr)||lt(e));return t},sort:function(e,t){var i={},n=this.el;this.toArray().forEach((function(e,t){var a=n.children[t];R(a,this.options.draggable,n,!1)&&(i[e]=a)}),this),t&&this.captureAnimationState(),e.forEach((function(e){i[e]&&(n.removeChild(i[e]),n.appendChild(i[e]))})),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return R(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var i=this.options;if(void 0===t)return i[e];var n=ie.modifyOption(this,e,t);i[e]="undefined"!==typeof n?n:t,"group"===e&&We(i)},destroy:function(){re("destroy",this);var e=this.el;e[K]=null,T(e,"mousedown",this._onTapStart),T(e,"touchstart",this._onTapStart),T(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(T(e,"dragover",this),T(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Ae.splice(Ae.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!pe){if(re("hideClone",this),Je.eventCanceled)return;$(he,"display","none"),this.options.removeCloneOnHide&&he.parentNode&&he.parentNode.removeChild(he),pe=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(pe){if(re("showClone",this),Je.eventCanceled)return;se.parentNode!=ue||this.options.group.revertClone?de?ue.insertBefore(he,de):ue.appendChild(he):ue.insertBefore(he,se),this.options.group.revertClone&&this.animate(se,he),$(he,"display",""),pe=!1}}else this._hideClone()}},Ve&&S(document,"touchmove",(function(e){(Je.active||$e)&&e.cancelable&&e.preventDefault()})),Je.utils={on:S,off:T,css:$,find:A,is:function(e,t){return!!R(e,t,e,!1)},extend:U,throttle:H,closest:R,toggleClass:O,clone:Y,index:V,nextTick:ut,cancelNextTick:dt,detectDirection:Qe,getChild:F},Je.get=function(e){return e[K]},Je.mount=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e));e.utils&&(Je.utils=c(c({},Je.utils),e.utils)),ie.mount(e)}))},Je.create=function(e,t){return new Je(e,t)},Je.version=m;var ft,ht,pt,mt,gt,vt,bt=[],yt=!1;function wt(){function e(){for(var e in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===e.charAt(0)&&"function"===typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?S(document,"dragover",this._handleAutoScroll):this.options.supportPointer?S(document,"pointermove",this._handleFallbackAutoScroll):t.touches?S(document,"touchmove",this._handleFallbackAutoScroll):S(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?T(document,"dragover",this._handleAutoScroll):(T(document,"pointermove",this._handleFallbackAutoScroll),T(document,"touchmove",this._handleFallbackAutoScroll),T(document,"mousemove",this._handleFallbackAutoScroll)),It(),_t(),G()},nulling:function(){gt=ht=ft=yt=vt=pt=mt=null,bt.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var i=this,n=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,r=document.elementFromPoint(n,a);if(gt=e,t||this.options.forceAutoScrollFallback||b||v||w){xt(e,this.options,r,t);var o=B(r,!0);!yt||vt&&n===pt&&a===mt||(vt&&It(),vt=setInterval((function(){var r=B(document.elementFromPoint(n,a),!0);r!==o&&(o=r,_t()),xt(e,i.options,r,t)}),10),pt=n,mt=a)}else{if(!this.options.bubbleScroll||B(r,!0)===P())return void _t();xt(e,this.options,B(r,!1),!1)}}},f(e,{pluginName:"scroll",initializeByDefault:!0})}function _t(){bt.forEach((function(e){clearInterval(e.pid)})),bt=[]}function It(){clearInterval(vt)}var xt=H((function(e,t,i,n){if(t.scroll){var a,r=(e.touches?e.touches[0]:e).clientX,o=(e.touches?e.touches[0]:e).clientY,s=t.scrollSensitivity,l=t.scrollSpeed,c=P(),u=!1;ht!==i&&(ht=i,_t(),ft=t.scroll,a=t.scrollFn,!0===ft&&(ft=B(i,!0)));var d=0,f=ft;do{var h=f,p=E(h),m=p.top,g=p.bottom,v=p.left,b=p.right,y=p.width,w=p.height,_=void 0,I=void 0,x=h.scrollWidth,S=h.scrollHeight,T=$(h),C=h.scrollLeft,k=h.scrollTop;h===c?(_=y<x&&("auto"===T.overflowX||"scroll"===T.overflowX||"visible"===T.overflowX),I=w<S&&("auto"===T.overflowY||"scroll"===T.overflowY||"visible"===T.overflowY)):(_=y<x&&("auto"===T.overflowX||"scroll"===T.overflowX),I=w<S&&("auto"===T.overflowY||"scroll"===T.overflowY));var R=_&&(Math.abs(b-r)<=s&&C+y<x)-(Math.abs(v-r)<=s&&!!C),D=I&&(Math.abs(g-o)<=s&&k+w<S)-(Math.abs(m-o)<=s&&!!k);if(!bt[d])for(var L=0;L<=d;L++)bt[L]||(bt[L]={});bt[d].vx==R&&bt[d].vy==D&&bt[d].el===h||(bt[d].el=h,bt[d].vx=R,bt[d].vy=D,clearInterval(bt[d].pid),0==R&&0==D||(u=!0,bt[d].pid=setInterval(function(){n&&0===this.layer&&Je.active._onTouchMove(gt);var t=bt[this.layer].vy?bt[this.layer].vy*l:0,i=bt[this.layer].vx?bt[this.layer].vx*l:0;"function"===typeof a&&"continue"!==a.call(Je.dragged.parentNode[K],i,t,e,gt,bt[this.layer].el)||W(bt[this.layer].el,i,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&f!==c&&(f=B(f,!1)));yt=u}}),30),St=function(e){var t=e.originalEvent,i=e.putSortable,n=e.dragEl,a=e.activeSortable,r=e.dispatchSortableEvent,o=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(t){var l=i||a;o();var c=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,u=document.elementFromPoint(c.clientX,c.clientY);s(),l&&!l.el.contains(u)&&(r("spill"),this.onSpill({dragEl:n,putSortable:i}))}};function Tt(){}function Ct(){}Tt.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,i=e.putSortable;this.sortable.captureAnimationState(),i&&i.captureAnimationState();var n=F(this.sortable.el,this.startIndex,this.options);n?this.sortable.el.insertBefore(t,n):this.sortable.el.appendChild(t),this.sortable.animateAll(),i&&i.animateAll()},drop:St},f(Tt,{pluginName:"revertOnSpill"}),Ct.prototype={onSpill:function(e){var t=e.dragEl,i=e.putSortable,n=i||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:St},f(Ct,{pluginName:"removeOnSpill"});Je.mount(new wt),Je.mount(Ct,Tt);var kt=Je,Rt=i("7eeb"),Dt={name:"CheckConfig",dicts:["OptType","ObjectType","ModuleType","ChildrenType"],components:{Treeselect:s.a,BaseModel:Rt["default"]},data:function(){return{loading:!0,menuList:[],list:[],menuOptions:[],title:"",open:!1,visibleOptions:[],queryParams:{ModuleTypeId:null,ConfigType:"M"},copeParams:{DataSourceGuids:[],AddItemGuid:null,FromItemId:null,ToItemId:null},isExpandAll:!1,refreshTable:!0,childrenList:[],form:{},selectRow:null,model_cfg:{visible:!1,showClose:!0,width:"680px",title:"",appendToBody:!0},drawer_cfg:{drawerChild:!1,parentId:"",title:""},rules:{},ChildGroup:null,tableShow:!1,rowDrop2TableIsShow:!0}},created:function(){this.getList()},methods:{addParameter:function(){this.form.UrlConfig.ParameterList.push({UrlParameterName:null,UrlParameterValueName:null})},handleParameterListDelete:function(e){var t=this;this.$confirm("确定删除该项路由参数吗?保存配置后生效。").then((function(){t.form.UrlConfig.ParameterList.splice(e,1)}))},handleTableConfigListDelete:function(e,t){var i=this;this.$confirm("确定删除该项表格配置吗?保存配置后生效。").then((function(){i.form.TableConfigList.splice(t,1)}))},addCol:function(){this.form.TableConfigList.push({IsList:!1,ListName:null,IsFixedColumn:!1,FixedColumnName:null,ColumnName:null,ColumnValue:null,IsMerge:!1,MergeColumnName:null,IsPicture:!1,IsDynamicTranslate:!1,IsNeedTransalate:!1,TranslateDictionaryName:null})},submitCopy:function(){var e=this;Object(r["c"])({ParentId:this.form.ParentId,ChildId:this.form.Id}).then((function(t){e.$message.success("复制成功"),e.open=!1,e.getList()}))},handleCopy:function(e){this.reset(),this.getTreeselect(),this.form=Object.assign({},e),this.open=!0,this.title="复制"},findNearestNumber:function(e,t){return e.reduce((function(e,i){return console.log(e,i),e-t>i-t?i:e}))},handleUpMove:function(e){var t,i,n=this,a=this.list.filter((function(t,i){return e.ModuleTypeId===t.ModuleTypeId&&t.ModuleTypeValueCN&&t.ObjectTypeValueCN&&t.OptTypeValueCN&&t.ChildrenTypeValueCN}));if(a.forEach((function(i,n){e.Id===i.Id&&(t=n)})),console.log(t),0!==t){i=a[t-1],console.log(a);var o=[{Id:i.Id,Sort:e.Sort},{Id:e.Id,Sort:i.Sort}];this.loading=!0,Object(r["b"])(o).then((function(e){n.loading=!1,n.getList()})).catch((function(){n.loading=!1}))}else this.$message.error("该行排序已是最高")},rowDrop2:function(){var e=this;this.$nextTick((function(){var t=document.querySelector(".el-dialog__body .el-table__body-wrapper tbody"),i=e;kt.create(t,{animation:500,forceFallback:!0,delay:500,onEnd:function(e){var t=e.newIndex,n=e.oldIndex,a=Object.assign([],i.form.TableConfigList),r=a.splice(n,1)[0];a.splice(t,0,r);var o=a.map((function(e,t){return e}));i.rowDrop2TableIsShow=!1,i.$nextTick((function(){i.$set(i.form,"TableConfigList",o),i.rowDrop2TableIsShow=!0,i.rowDrop2()})),i.loading=!0}})}))},rowDrop:function(){var e=document.querySelector(".singleTable .el-table__body-wrapper tbody"),t=this;kt.create(e,{animation:500,forceFallback:!0,delay:500,onEnd:function(e){var i=e.newIndex,n=e.oldIndex,a=Object.assign([],t.childrenList),o=a.splice(n,1)[0];a.splice(i,0,o);var s=a.map((function(e,t){return{Id:e.Id,Sort:t}}));t.loading=!0,Object(r["b"])(s).then((function(e){t.loading=!1,t.getList()})).catch((function(){t.loading=!1}))}})},handleOverCope:function(e){var t=this;this.copeParams.FromItemId?(this.copeParams.ToItemId=e.Id,this.loading=!0,Object(r["f"])(this.copeParams).then((function(e){t.loading=!1,t.$message.success("完全Copy成功"),t.copeParams.FromItemId=null,t.selectRow&&t.handleChildren(t.selectRow,!0)})).catch((function(){t.loading=!1}))):this.$message.error("请选择完全拷贝对象")},handleCope:function(e){var t=this;0!==this.copeParams.DataSourceGuids.length?(this.copeParams.AddItemGuid=e.Id,this.loading=!0,Object(r["d"])(this.copeParams).then((function(e){t.loading=!1,t.$message.success("Copy成功"),t.copeParams.DataSourceGuids=[],t.selectRow&&t.handleChildren(t.selectRow,!0)})).catch((function(){t.loading=!1}))):this.$message.error("请选择拷贝对象")},changeModule:function(e){this.ChildGroup=this.dict.type.ModuleType.find((function(t){return t.value==e})).raw.ChildGroup,this.form.ObjectTypeId=null},handleChildren:function(e,t,i){var n=this;this.selectRow=e,this.tableShow=!1,Object(r["g"])(e.Id).then((function(i){n.$set(n,"childrenList",i.Result),n.tableShow=!0,t||(n.drawer_cfg={drawerChild:!0,parentId:e.Id,title:e.Description,parent:e}),n.$nextTick((function(){n.rowDrop()}))}))},toggleExpandAll:function(){var e=this;this.refreshTable=!1,this.isExpandAll=!this.isExpandAll,this.$nextTick((function(){e.refreshTable=!0}))},normalizer:function(e){return e.Children&&!e.Children.length&&delete e.Children,{id:e.Id,label:e.Description,children:e.Children}},toTree:function(e,t){function i(t){for(var n=[],a=0;a<e.length;a++){var r=e[a];r.hasChildren=!1,r.ParentId===t&&(r.Children=i(r.Id),n.push(r))}return n}return i(t)},selected:function(e){this.form.MenuIcon=e},getList:function(){var e=this;this.loading=!0,Object(r["h"])(this.queryParams).then((function(t){e.list=t.Result,e.menuList=e.toTree(e.list,"00000000-0000-0000-0000-000000000000"),e.selectRow&&e.handleChildren(e.selectRow,!0);var i={Id:"00000000-0000-0000-0000-000000000000",Description:"根节点",Children:[]};i.Children=e.menuList,e.menuOptions=Object.assign([],[i]),e.loading=!1})).catch((function(){}))},getTreeselect:function(){var e=this;this.loading=!0,Object(r["h"])({}).then((function(t){var i={Id:"00000000-0000-0000-0000-000000000000",Description:"根节点",Children:[]};i.Children=e.toTree(t.Result,"00000000-0000-0000-0000-000000000000"),e.menuOptions=Object.assign([],[i]),e.loading=!1})).catch((function(){}))},visibleFormat:function(e,t){return"F"===e.MenuType?"":this.selectDictLabel(this.visibleOptions,e.visible)},cancel:function(){this.open=!1,this.reset()},reset:function(){this.form={Id:null,ParentId:"00000000-0000-0000-0000-000000000000",ConfigType:"M",Description:null,InterfaceName:null,IsEnable:!0,ModuleTypeId:null,OptTypeId:null,ChildrenTypeId:null,ObjectTypeId:null,IsShowParent:0,Sort:0,Code:null,Value:null,ValueCN:null,EnumType:"",IsShowByTrialConfig:!1,TrialConfigRelyFieldName:null,Identification:null,IsForwardPosition:!1,IsHaveSign:!1,IsHaveReason:!1,IsJoinPlan:!1,IsFinish:!1,IsSpecialType:!1,DataType:"",ChildDataLabel:null,ChildDataValue:null,DateType:null,DictionaryCode:null,DictionaryType:null,ForeignKeyTableName:null,ForeignKeyValue:null,ForeignKeyText:null,TableConfigList:[],UrlConfig:{RoutePath:null,IsHaveParameters:!1,ParameterList:[]},IsTableFiled:null,TableFiledName:null},this.resetForm("form")},findName:function(e,t,i){return e?this.dict.type[t].find((function(t){return t.value===e})).raw[i]:""},changeDescription:function(){},handleQuery:function(){this.getList()},handleAdd:function(e){var t=this;if(this.reset(),this.getTreeselect(),e){try{var i=Math.max.apply(Math,e.Children.map((function(e){return e.Sort})))}catch(n){i=Math.max.apply(Math,this.childrenList.map((function(e){return e.Sort})))}this.form.Sort=i+1,this.form.ParentId=e.Id,this.form.ModuleTypeId=e.ModuleTypeId,this.form.OptTypeId=e.OptTypeId,this.form.ChildrenTypeId=e.ChildrenTypeId,e.ModuleTypeId&&e.OptTypeId&&e.ChildrenTypeId&&e.ObjectTypeId&&(this.form.ConfigType="C")}this.form.ModuleTypeId&&"M"===this.form.ConfigType&&(this.ChildGroup=this.dict.type.ModuleType.find((function(e){return e.value==t.form.ModuleTypeId}))?this.dict.type.ModuleType.find((function(e){return e.value==t.form.ModuleTypeId})).raw.ChildGroup:""),console.log(this.form.ParentId),this.open=!0,this.title="添加"},handleUpdate:function(e){var t=this;this.reset(),this.getTreeselect(),this.form=Object.assign({},e),this.form.ModuleTypeId&&("M"===this.form.ConfigType&&this.form.Identification,this.ChildGroup=this.dict.type.ModuleType.find((function(e){return e.value==t.form.ModuleTypeId}))?this.dict.type.ModuleType.find((function(e){return e.value==t.form.ModuleTypeId})).raw.ChildGroup:""),this.open=!0,this.title="修改",this.rowDrop2()},submitForm:function(){var e=this;this.$refs["form"].validate((function(t){t&&Object(r["a"])(e.form).then((function(t){e.$message.success("保存成功"),e.open=!1,e.getList()}))}))},handleDelete:function(e){var t=this;this.$confirm('是否确认删除名称为"'+e.Description+'"的数据项?',"警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){return t.loading=!0,Object(r["e"])(e.Id)})).then((function(){t.loading=!1,t.getList(),t.$message.success("删除成功")})).catch((function(){t.loading=!1}))}}},Lt=Dt,Ot=(i("307d1"),i("2877")),$t=Object(Ot["a"])(Lt,n,a,!1,null,null,null);t["default"]=$t.exports},1852:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",[i("div",{staticClass:"search"},[i("el-form",{staticClass:"base-search-form",attrs:{inline:!0,size:"mini"}},[i("el-form-item",{attrs:{label:"字典表名称:"}},[i("el-input",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.Code,callback:function(t){e.$set(e.searchData,"Code",t)},expression:"searchData.Code"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"字典分组:"}},[i("el-select",{attrs:{placeholder:"字典分组",clearable:"",size:"small"},model:{value:e.searchData.ConfigTypeId,callback:function(t){e.$set(e.searchData,"ConfigTypeId",t)},expression:"searchData.ConfigTypeId"}},e._l(e.basicDicList,(function(e){return i("el-option",{key:e.Id,attrs:{value:e.Id,label:e.Code}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"关键字:"}},[i("el-input",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.KeyInfo,callback:function(t){e.$set(e.searchData,"KeyInfo",t)},expression:"searchData.KeyInfo"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:e.handleReset}},[e._v("Reset")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.handleSearch}},[e._v("Search")])],1)],1),e._v(" "),i("span",{staticStyle:{"margin-left":"auto"}},[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.handleAdd}},[e._v("新建")])],1)],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:45},expression:"{bottomOffset:45}"}],attrs:{data:e.list,stripe:"",size:"small",height:"100"},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Code",label:"字典表名称",sortable:"custom","min-width":"180","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"DataTypeEnum",label:"类型",sortable:"custom","min-width":"180","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.DataTypeEnumList[t.row.DataTypeEnum])+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ConfigType",label:"字典分组",sortable:"custom","min-width":"180","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Description",label:"描述",sortable:"custom","min-width":"180","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ShowOrder",label:"显示顺序",sortable:"custom","min-width":"180","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:"是否可用",width:"100",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},on:{change:function(i){return e.switchChange(i,t.row)}},model:{value:t.row.IsEnable,callback:function(i){e.$set(t.row,"IsEnable",i)},expression:"scope.row.IsEnable"}})]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"操作",width:"300",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("\n 编辑\n ")]),e._v(" "),i("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(i){return e.handleChild(t.row)}}},[e._v("\n 子项\n ")]),e._v(" "),i("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("\n 删除\n ")])]}}])})],1),e._v(" "),i("div",{staticClass:"pagination",staticStyle:{"text-align":"right","margin-top":"5px"}},[i("pagination",{attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1),e._v(" "),i("DictionaryTypeConfigForm",{ref:"DictionaryTypeConfigForm",attrs:{"basic-dic-list":e.basicDicList},on:{getList:e.getList}}),e._v(" "),i("el-drawer",{attrs:{title:e.drawer_cfg.title,visible:e.drawer_cfg.drawerChild,direction:"rtl",size:"80%"},on:{"update:visible":function(t){return e.$set(e.drawer_cfg,"drawerChild",t)}}},[e.drawer_cfg.drawerChild?i("DictionaryChild",{ref:"DictionaryChild",attrs:{parent:e.drawer_cfg.parent}}):e._e()],1)],1)},a=[],r=(i("20d6"),i("e56e")),o=i("fc57"),s=i("cf221"),l=i("333d"),c=i("f36a"),u=function(){return{Asc:!0,SortField:"",Code:"",KeyName:"",PageIndex:1,PageSize:20,KeyInfo:null,ConfigTypeId:null}},d={components:{BoxContent:c["default"],Pagination:l["default"],DictionaryTypeConfigForm:o["default"],DictionaryChild:s["default"]},data:function(){return{searchData:u(),basicDicList:[],DataTypeEnumList:["config","select","enum","bool"],list:[],total:0,loading:!1,drawer_cfg:{drawerChild:!1,parentId:"",title:""},rowData:{},model_cfg:{visible:!1,showClose:!0,width:"600px",title:"",appendToBody:!0}}},mounted:function(){this.getList(),this.getDictionaryTypeConfig()},methods:{handleSortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()},handleChild:function(e){this.drawer_cfg={drawerChild:!0,parentId:e.Id,title:e.Code,parent:e}},handleSetting:function(){this.$router.push({path:"/dictionary/newDictionary/setting"})},switchChange:function(e,t){var i=this;this.loading=!0,Object(r["c"])(t).then((function(e){i.$message.success("Saved successfully!"),i.loading=!1})).catch((function(){i.loading=!1}))},handleEdit:function(e){var t=this;this.$nextTick((function(){t.$refs["DictionaryTypeConfigForm"].openDialog("DictionaryTypeConfig",e)}))},handleAdd:function(){var e=this;this.$nextTick((function(){e.$refs["DictionaryTypeConfigForm"].openDialog("DictionaryTypeConfig",{})}))},handleDelete:function(e){var t=this;this.$confirm("Sure to delete?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){t.loading=!0,Object(r["C"])(e.Id).then((function(i){t.loading=!1,i.IsSuccess&&(t.list.splice(t.list.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success("Deleted successfully!"))})).catch((function(){t.loading=!1}))}))},getList:function(){var e=this;this.loading=!0,Object(r["W"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},getDictionaryTypeConfig:function(){var e=this;Object(r["W"])({DataTypeEnum:0,SortField:"Code",PageSize:500}).then((function(t){e.basicDicList=t.Result.CurrentPageData,console.log(e.basicDicList)})).catch((function(){}))},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=u(),this.getList()}}},f=d,h=i("2877"),p=Object(h["a"])(f,n,a,!1,null,null,null);t["default"]=p.exports},"18c0":function(e,t,i){var n=i("6d8b"),a=i("e0d8"),r=i("8e43"),o=a.prototype,s=a.extend({type:"ordinal",init:function(e,t){e&&!n.isArray(e)||(e=new r({categories:e})),this._ordinalMeta=e,this._extent=t||[0,e.categories.length-1]},parse:function(e){return"string"===typeof e?this._ordinalMeta.getOrdinal(e):Math.round(e)},contain:function(e){return e=this.parse(e),o.contain.call(this,e)&&null!=this._ordinalMeta.categories[e]},normalize:function(e){return o.normalize.call(this,this.parse(e))},scale:function(e){return Math.round(o.scale.call(this,e))},getTicks:function(){var e=[],t=this._extent,i=t[0];while(i<=t[1])e.push(i),i++;return e},getLabel:function(e){if(!this.isBlank())return this._ordinalMeta.categories[e]},count:function(){return this._extent[1]-this._extent[0]+1},unionExtentFromData:function(e,t){this.unionExtent(e.getApproximateExtent(t))},getOrdinalMeta:function(){return this._ordinalMeta},niceTicks:n.noop,niceExtent:n.noop});s.create=function(){return new s};var l=s;e.exports=l},"18e0":function(e,t,i){"use strict";i("7b66")},"18e2":function(e,t,i){"use strict";i("b810")},"18e9":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"oncologyForm",attrs:{model:e.form,size:"small",rules:e.rules,"label-width":"110px"}},[i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:oncologyReading:title:oncologyAssessIdsStr"),prop:"OncologyAssessIdsStr"}},[i("el-input",{staticStyle:{width:"400px"},attrs:{type:"textarea",autosize:{minRows:1,maxRows:4},"show-word-limit":"",disabled:e.form.IsSystemCriterion||e.isSign||!e.hasPermi(["trials:trials-panel:setting:reading-unit:edit"])},model:{value:e.form.OncologyAssessIdsStr,callback:function(t){e.$set(e.form,"OncologyAssessIdsStr",t)},expression:"form.OncologyAssessIdsStr"}}),e._v(" "),i("el-button",{attrs:{disabled:e.form.IsSystemCriterion||e.isSign||!e.hasPermi(["trials:trials-panel:setting:reading-unit:edit"]),icon:"el-icon-plus",circle:""},on:{click:e.handleSetCriterion}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:oncologyReading:title:evaluationReason"),prop:"EvaluationReason"}},[i("el-input",{staticStyle:{width:"400px"},attrs:{type:"textarea",autosize:{minRows:3,maxRows:4},maxlength:"500","show-word-limit":"",disabled:e.isSign||!e.hasPermi(["trials:trials-panel:setting:reading-unit:edit"])},model:{value:e.form.EvaluationReason,callback:function(t){e.$set(e.form,"EvaluationReason",t)},expression:"form.EvaluationReason"}})],1),e._v(" "),!e.isSign&&e.hasPermi(["trials:trials-panel:setting:reading-unit:edit"])?i("el-form-item",[i("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.handleSave(!0)}}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1):e._e(),e._v(" "),e.config.visible?i("el-dialog",{attrs:{visible:e.config.visible,"close-on-click-modal":!1,title:e.config.title,width:"90%","append-to-body":""},on:{"update:visible":function(t){return e.$set(e.config,"visible",t)}}},[i("div",{staticStyle:{"text-align":"right"}},[i("el-button",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{size:"mini",type:"primary"},on:{click:e.handleTypeSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:80},expression:"{bottomOffset:80}"}],ref:"multipleTable",attrs:{height:"100",data:e.$d.OncologyAssessType,stripe:""},on:{"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),i("el-table-column",{attrs:{prop:"raw.ValueCN",label:e.$t("trials:readingUnit:oncologyReading:title:valueCN"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"raw.Value",label:e.$t("trials:readingUnit:oncologyReading:title:valueEN"),"show-overflow-tooltip":""}})],1)],1):e._e()],1)},a=[],r=(i("456d"),i("6b54"),i("7514"),i("ac6a"),i("3e42")),o={name:"OncologyForm",props:{trialReadingCriterionId:{type:String,default:function(){return""}}},data:function(){return{form:{TrialId:"",EvaluationResult:"",EvaluationReason:"",IsShowDetail:!1,OncologyAssessIds:[],IsSystemCriterion:!0,OncologyAssessIdsStr:null},rules:{OncologyAssessIdsStr:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:["blur"]}],EvaluationReason:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:["blur","change"]}],IsShowDetail:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}]},config:{visible:!1,title:this.$t("trials:readingUnit:oncologyReading:title:oncologyReading")},loading:!1,isSign:!0,selectedList:[]}},mounted:function(){this.initForm()},methods:{handleSelectionChange:function(e){this.selectedList=e},toggleSelection:function(e){var t=this;console.log(this.$refs.multipleTable),e?e.forEach((function(e){t.$refs.multipleTable.toggleRowSelection(e)})):this.$refs.multipleTable.clearSelection()},handleSetCriterion:function(){var e=this;this.config.visible=!0,this.$nextTick((function(){var t=e.$d.OncologyAssessType.filter((function(t){return!!e.form.OncologyAssessIds.find((function(e){return e===t.id}))}));e.toggleSelection(t)}))},handleTypeSave:function(){var e=this;this.form.OncologyAssessIds=this.selectedList.map((function(e){return e.id})),this.form.OncologyAssessIdsStr=this.form.OncologyAssessIds.map((function(t){return e.$fd("OncologyAssessType",t,"id")})).toString(),this.config.visible=!1},initForm:function(){var e=this;this.loading=!0,Object(r["zc"])({trialId:this.$route.query.trialId,TrialReadingCriterionId:this.trialReadingCriterionId}).then((function(t){if(Object.keys(t.Result).length>0){for(var i in t.Result)e.form.hasOwnProperty(i)&&(e.form[i]=t.Result[i]);e.isSign=t.Result.IsSign}e.form.OncologyAssessIdsStr=e.form.OncologyAssessIds.map((function(t){return e.$fd("OncologyAssessType",t,"id")})).toString(),e.loading=!1})).catch((function(){e.loading=!1}))},handleSave:function(e){var t=this;return new Promise((function(i,n){t.$refs["oncologyForm"].validate((function(n){n?(t.loading=!0,t.form.TrialId=t.$route.query.trialId,t.form.TrialReadingCriterionId=t.trialReadingCriterionId,Object(r["Oe"])(t.form).then((function(n){t.loading=!1,n.IsSuccess&&e&&t.$message.success(t.$t("common:message:savedSuccessfully")),i(!0)})).catch((function(e){t.loading=!1,i(!1)}))):i(!1)}))}))}}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},1918:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("el-tabs",{attrs:{type:"border-card"},model:{value:e.TrialReadingCriterionId,callback:function(t){e.TrialReadingCriterionId=t},expression:"TrialReadingCriterionId"}},e._l(e.trialCriterionList,(function(t){return i("el-tab-pane",{key:t.TrialReadingCriterionId,attrs:{label:t.TrialReadingCriterionName,name:t.TrialReadingCriterionId}},[e.TrialReadingCriterionId===t.TrialReadingCriterionId?i("div",[i("div",{attrs:{slot:"search-container"},slot:"search-container"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:rereadTask:table:siteCode")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:"",filterable:""},model:{value:e.searchData.SiteId,callback:function(t){e.$set(e.searchData,"SiteId",t)},expression:"searchData.SiteId"}},e._l(e.siteOptions,(function(e,t){return i("el-option",{key:t,attrs:{label:e.TrialSiteCode,value:e.SiteId}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:rereadTask:table:subjectCode")}},[i("el-input",{staticStyle:{width:"100px"},model:{value:e.searchData.SubjectCode,callback:function(t){e.$set(e.searchData,"SubjectCode",t)},expression:"searchData.SubjectCode"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:rereadTask:table:taskCode")}},[i("el-input",{staticStyle:{width:"130px"},attrs:{clearable:""},model:{value:e.searchData.TaskCode,callback:function(t){e.$set(e.searchData,"TaskCode",t)},expression:"searchData.TaskCode"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")])],1)],1)],1),e._v(" "),i("div",{attrs:{slot:"main-container"},slot:"main-container"},[i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:75},expression:"{bottomOffset:75}"},{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortChange}},[i("el-table-column",{attrs:{type:"index",width:"40",align:"left"}}),e._v(" "),i("el-table-column",{attrs:{prop:"OriginalReReadingTask.IsUrgent",label:e.$t("trials:rereadTask:table:isUrgent"),"show-overflow-tooltip":"",sortable:"custom","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.OriginalReReadingTask.IsUrgent?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.OriginalReReadingTask.IsUrgent)))]):i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.OriginalReReadingTask.IsUrgent)))])]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"OriginalReReadingTask.TaskCode","min-width":"100",label:e.$t("trials:rereadTask:table:taskCode"),sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"OriginalReReadingTask.TrialSiteCode",label:e.$t("trials:rereadTask:table:siteCode"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"OriginalReReadingTask.SubjectCode","min-width":"100",label:e.$t("trials:rereadTask:table:subjectCode"),sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"OriginalReReadingTask.TaskBlindName","min-width":"120",label:e.$t("trials:rereadTask:table:taskBlindName"),sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"OriginalReReadingTask.TrialReadingCriterionName",label:e.$t("trials:rereadTask:table:criterionName"),"min-width":"100","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"OriginalReReadingTask.TaskState",label:e.$t("trials:rereadTask:table:taskState"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.OriginalReReadingTask.TaskState?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("TaskState",t.row.OriginalReReadingTask.TaskState)))]):e._e(),e._v(" "),1===t.row.OriginalReReadingTask.TaskState?i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("TaskState",t.row.OriginalReReadingTask.TaskState)))]):e._e(),e._v(" "),3===t.row.OriginalReReadingTask.TaskState?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("TaskState",t.row.OriginalReReadingTask.TaskState)))]):e._e(),e._v(" "),4===t.row.OriginalReReadingTask.TaskState?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("TaskState",t.row.OriginalReReadingTask.TaskState)))]):e._e()]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"OriginalReReadingTask.ReadingCategory","min-width":"100",label:e.$t("trials:rereadTask:table:readingCategory"),sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.OriginalReReadingTask.ReadingCategory?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.OriginalReReadingTask.ReadingCategory)))]):e._e(),e._v(" "),2===t.row.OriginalReReadingTask.ReadingCategory?i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.OriginalReReadingTask.ReadingCategory)))]):e._e(),e._v(" "),4===t.row.OriginalReReadingTask.ReadingCategory?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.OriginalReReadingTask.ReadingCategory)))]):e._e(),e._v(" "),5===t.row.OriginalReReadingTask.ReadingCategory?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.OriginalReReadingTask.ReadingCategory)))]):e._e()]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"OriginalReReadingTask.SignTime","min-width":"120",label:e.$t("trials:rereadTask:table:signTime"),sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"RequestReReadingType","min-width":"100",label:e.$t("trials:rereadTask:table:requestReReadingType"),sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.RequestReReadingType?i("div",[2===t.row.RequestReReadingType?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("RequestReReadingType",t.row.RequestReReadingType)))]):i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("RequestReReadingType",t.row.RequestReReadingType)))])],1):e._e()]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"RequestReReadingTime","min-width":"100",label:e.$t("trials:rereadTask:table:requestReReadingTime"),sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"RequestReReadingReason","min-width":"100",label:e.$t("trials:rereadTask:table:requestReReadingReason"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"RequestReReadingResultEnum","min-width":"100",label:e.$t("trials:rereadTask:table:requestReReadingResultEnum"),sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.RequestReReadingResultEnum||0===t.row.RequestReReadingResultEnum?i("div",[2===t.row.RequestReReadingResultEnum?i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"top"}},[i("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n "+e._s(t.row.RequestReReadingRejectReason)+"\n ")]),e._v(" "),i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("RequestReReadingResult",t.row.RequestReReadingResultEnum)))])],1):e._e(),e._v(" "),1===t.row.RequestReReadingResultEnum?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("RequestReReadingResult",t.row.RequestReReadingResultEnum)))]):e._e(),e._v(" "),0===t.row.RequestReReadingResultEnum?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("RequestReReadingResult",t.row.RequestReReadingResultEnum)))]):e._e()],1):e._e()]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"ReReadingNewTaskCode",label:e.$t("trials:rereadTask:table:reReadingNewTaskCode"),"min-width":"120",sortable:"custom","show-overflow-tooltip":""}})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}}),e._v(" "),e.ConfirmReReadingVisible?i("el-dialog",{attrs:{title:"驳回",visible:e.ConfirmReReadingVisible,width:"600px","append-to-body":"","close-on-click-modal":!1,"custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.ConfirmReReadingVisible=t}}},[i("div",{staticStyle:{padding:"10px",border:"1px solid #e0e0e0","max-height":"650px","overflow-y":"auto"}},[i("el-form",{ref:"reasonForm",refInFor:!0,staticClass:"demo-ruleForm",attrs:{rules:e.rules,model:e.ConfirmReReadingForm,size:"small","label-width":"120px"}},[i("el-form-item",{attrs:{label:"驳回原因",prop:"RequestReReadingRejectReason"}},[i("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:e.$t("common:ruleMessage:specify"),maxlength:"500","show-word-limit":""},model:{value:e.ConfirmReReadingForm.RequestReReadingRejectReason,callback:function(t){e.$set(e.ConfirmReReadingForm,"RequestReReadingRejectReason",t)},expression:"ConfirmReReadingForm.RequestReReadingRejectReason"}})],1)],1)],1),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){e.ConfirmReReadingVisible=!1,e.ConfirmReReadingForm={RequestReReadingRejectReason:null}}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{loading:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){return e.handleConfirmReReading(e.rowData,2)}}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)]):e._e()],1)]):e._e()])})),1)],1)},a=[],r=i("db72"),o=i("3e42"),s=i("958c"),l=i("6071"),c=i("333d"),u=i("a599"),d=function(){return{SubjectCode:"",TaskCode:"",PageIndex:1,PageSize:20}},f={name:"RereadTask",components:{BaseContainer:l["default"],Pagination:c["default"]},data:function(){return{searchData:d(),list:[],siteOptions:[],total:0,loading:!1,trialId:"",ConfirmReReadingForm:{RequestReReadingRejectReason:null},rules:{RequestReReadingRejectReason:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}]},ConfirmReReadingVisible:!1,trialCriterionList:[],TrialReadingCriterionId:"0"}},watch:{TrialReadingCriterionId:function(e){e&&this.getList()}},mounted:function(){this.$route.query.SiteId&&(this.searchData.SiteId=this.$route.query.SiteId,this.searchData.SubjectCode=this.$route.query.SubjectCode,this.searchData.TaskName=this.$route.query.TaskName,Object(u["a"])("SiteId",""),Object(u["a"])("SubjectCode",""),Object(u["a"])("TaskName","")),this.trialId=this.$route.query.trialId,this.getSite(),this.getTrialCriterionList()},methods:{getTrialCriterionList:function(){var e=this;Object(s["U"])(this.trialId).then((function(t){e.trialCriterionList=t.Result,e.TrialReadingCriterionId=e.trialCriterionList[0].TrialReadingCriterionId})).catch((function(){}))},getSite:function(){var e=this;Object(o["Zd"])(this.trialId).then((function(t){e.siteOptions=t.Result}))},getList:function(){var e=this;this.loading=!0,this.searchData.TrialId=this.trialId,this.searchData.TrialReadingCriterionId=this.TrialReadingCriterionId,Object(o["jc"])(this.searchData).then((function(t){e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount,e.loading=!1})).catch((function(){e.loading=!1}))},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=d(),this.getList()},handleConfirmReReading:function(e,t,i){var n=this;if(i)return this.rowData=Object(r["a"])({},e),this.ConfirmReReadingVisible=!0,void(this.ConfirmReReadingForm={RequestReReadingRejectReason:null});2!==t?this.$confirm("确定".concat(1===t?"同意":"拒绝","该重阅申请?")).then((function(){var i={ConfirmReReadingList:[{Id:e.Id,OriginalReReadingTaskId:e.OriginalReReadingTaskId,RootReReadingTaskId:e.RootReReadingTaskId,NewReReadingTaskId:e.NewReReadingTaskId}],TrialId:n.$route.query.trialId,RequestReReadingResultEnum:t};n.loading=!0,n.btnLoading=!0,Object(s["q"])(i).then((function(){n.loading=!1,n.btnLoading=!1,n.$message.success("".concat(1===t?"同意":"拒绝","申请成功")),n.getList()})).catch((function(){n.loading=!1,n.btnLoading=!1}))})):this.$refs.reasonForm.validate((function(i){if(i){var a={ConfirmReReadingList:[{Id:e.Id,OriginalReReadingTaskId:e.OriginalReReadingTaskId,RootReReadingTaskId:e.RootReReadingTaskId,NewReReadingTaskId:e.NewReReadingTaskId}],RequestReReadingRejectReason:n.ConfirmReReadingForm.RequestReReadingRejectReason,TrialId:n.$route.query.trialId,RequestReReadingResultEnum:t};n.loading=!0,n.btnLoading=!0,Object(s["q"])(a).then((function(){n.loading=!1,n.btnLoading=!1,n.$message.success("".concat(1===t?"同意":"拒绝","申请成功")),n.getList(),n.ConfirmReReadingVisible=!1})).catch((function(){n.loading=!1,n.btnLoading=!1}))}}))},handleSortChange:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()}}},h=f,p=i("2877"),m=Object(p["a"])(h,n,a,!1,null,null,null);t["default"]=m.exports},1937:function(e,t,i){},1953:function(e,t,i){var n=i("2449"),a=n.extend({type:"markLine",defaultOption:{zlevel:0,z:5,symbol:["circle","arrow"],symbolSize:[8,16],precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"}});e.exports=a},"196d":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"report-wrapper"},[i("el-card",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{display:"flex","flex-direction":"column"},attrs:{shadow:"never"}},[i("div",{staticClass:"clearfix report-header",attrs:{slot:"header"},slot:"header"},[i("h3",{staticStyle:{margin:"0",padding:"0"}},[e._v("电子影像病例报告表eICRF")]),e._v(" "),i("div",{staticStyle:{"margin-left":"auto"}},[i("el-switch",{staticStyle:{"margin-right":"5px"},attrs:{"active-text":"展开详情","inactive-text":"折叠详情"},on:{change:e.handleShowDetail},model:{value:e.isShowDetail,callback:function(t){e.isShowDetail=t},expression:"isShowDetail"}}),e._v(" "),e.readingTaskState<2?i("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.getReportInfo}},[e._v("刷新")]):e._e(),e._v(" "),e.readingTaskState<2?i("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){return e.handleSave(!0)}}},[e._v("保存")]):e._e(),e._v(" "),e.readingTaskState<2?i("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.handleConfirm}},[e._v("提交")]):e._e()],1)]),e._v(" "),i("div",{staticStyle:{flex:"1"}},[i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:0},expression:"{bottomOffset:0}"}],ref:"reportList",attrs:{data:e.taskQuestions,"row-key":"Id",border:"","default-expand-all":"",height:"100","tree-props":{children:"Childrens",hasChildren:"hasChildren"},size:"mini"}},[i("el-table-column",{attrs:{prop:"",label:"","show-overflow-tooltip":"",width:"350px"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.QuestionName?i("span",[e._v(e._s((t.row.BlindName,t.row.QuestionName)))]):i("span",{staticStyle:{"font-weight":"bold","font-size":"16px",color:"#f44336"}},[e._v("\n "+e._s(t.row.GroupName)+"\n ")])]}}])}),e._v(" "),e._l(e.visitTaskList,(function(t){return i("el-table-column",{key:t.VisitTaskId,attrs:{prop:"date","show-overflow-tooltip":"",width:"200px"},scopedSlots:e._u([{key:"default",fn:function(n){return[e.readingTaskState<2&&t.VisitTaskId===e.visitTaskId&&("input"===n.row.Type||"number"===n.row.Type||"select"===n.row.Type||"textarea"===n.row.Type||"radio"===n.row.Type)?[[i("div",[t.IsBaseLine&&1===n.row.LimitEdit||!t.IsBaseLine&&2===n.row.LimitEdit||0===n.row.LimitEdit?e.questionForm[n.row.QuestionId]instanceof Array&&("input"===n.row.Type||"textarea"===n.row.Type)&&!n.row.IsShowInDicom&&(t.IsBaseLine&&1===n.row.LimitEdit||!t.IsBaseLine&&2===n.row.LimitEdit||0===n.row.LimitEdit)?i("el-input",{attrs:{size:"mini"},model:{value:e.questionForm[n.row.QuestionId][n.row.xfIndex][n.row.TableQuestionId],callback:function(t){e.$set(e.questionForm[n.row.QuestionId][n.row.xfIndex],n.row.TableQuestionId,t)},expression:"questionForm[scope.row.QuestionId][scope.row.xfIndex][scope.row.TableQuestionId]"}}):e.questionForm[n.row.QuestionId]instanceof Array&&("input"===n.row.Type||"textarea"===n.row.Type)?i("span",[e._v("\n "+e._s(e.questionForm[n.row.QuestionId][n.row.xfIndex][n.row.TableQuestionId])+"\n ")]):"input"!==n.row.Type&&"textarea"!==n.row.Type||n.row.IsShowInDicom||!(t.IsBaseLine&&1===n.row.LimitEdit||!t.IsBaseLine&&2===n.row.LimitEdit||0===n.row.LimitEdit)?"input"===n.row.Type||"textarea"===n.row.Type?i("span",[e._v("\n "+e._s(e.questionForm[n.row.QuestionId])+"\n ")]):e.questionForm[n.row.QuestionId]instanceof Array&&("select"===n.row.Type||"radio"===n.row.Type)&&!n.row.IsShowInDicom&&(t.IsBaseLine&&1===n.row.LimitEdit||!t.IsBaseLine&&2===n.row.LimitEdit||0===n.row.LimitEdit)?i("el-select",{attrs:{size:"mini",clearable:""},model:{value:e.questionForm[n.row.QuestionId][n.row.xfIndex][n.row.TableQuestionId],callback:function(t){e.$set(e.questionForm[n.row.QuestionId][n.row.xfIndex],n.row.TableQuestionId,t)},expression:"questionForm[scope.row.QuestionId][scope.row.xfIndex][scope.row.TableQuestionId]"}},[e._l(n.row.TypeValue.split("|"),(function(e){return i("el-option",{key:e,attrs:{label:e,value:e}})}))],2):e.questionForm[n.row.QuestionId]instanceof Array&&"select"===n.row.Type?i("span",[e._v("\n "+e._s(e.questionForm[n.row.QuestionId][n.row.xfIndex][n.row.TableQuestionId])+"\n ")]):"select"!==n.row.Type&&"radio"!==n.row.Type||n.row.IsShowInDicom||!(t.IsBaseLine&&1===n.row.LimitEdit||!t.IsBaseLine&&2===n.row.LimitEdit||0===n.row.LimitEdit)?"select"===n.row.Type||"radio"===n.row.Type?i("span",[e._v("\n "+e._s(e.questionForm[n.row.QuestionId])+"\n ")]):1!==n.row.DataSource&&e.questionForm[n.row.QuestionId]instanceof Array&&"number"===n.row.Type&&(n.row.xfIndex||0===n.row.xfIndex)&&!n.row.IsShowInDicom&&(t.IsBaseLine&&1===n.row.LimitEdit||!t.IsBaseLine&&2===n.row.LimitEdit||0===n.row.LimitEdit)?i("el-input",{attrs:{disabled:1===n.row.DataSource,onblur:"value=parseFloat(value).toFixed(parseInt(localStorage.getItem('digitPlaces')))",size:"mini"},on:{input:function(t){return e.limitInput(t,e.questionForm[n.row.QuestionId][n.row.xfIndex],n.row.TableQuestionId)},focus:function(){e.questionId=n.row.QuestionId}},model:{value:e.questionForm[n.row.QuestionId][n.row.xfIndex][n.row.TableQuestionId],callback:function(t){e.$set(e.questionForm[n.row.QuestionId][n.row.xfIndex],n.row.TableQuestionId,t)},expression:"questionForm[scope.row.QuestionId][scope.row.xfIndex][scope.row.TableQuestionId]"}},[0!==n.row.Unit?i("template",{slot:"append"},[e._v(e._s(4!==n.row.Unit?e.$fd("ValueUnit",n.row.Unit):n.row.CustomUnit))]):2===n.row.ValueType?i("template",{slot:"append"},[e._v("%")]):e._e()],2):e.questionForm[n.row.QuestionId]instanceof Array&&"number"===n.row.Type&&(n.row.xfIndex||0===n.row.xfIndex)?i("span",[0!==n.row.ValueType&&1!==n.row.ValueType||!n.row.Unit?2===n.row.ValueType?[e._v("\n "+e._s(isNaN(parseInt(e.questionForm[n.row.QuestionId][n.row.xfIndex][n.row.TableQuestionId]))?e.questionForm[n.row.QuestionId][n.row.xfIndex][n.row.TableQuestionId]:e.questionForm[n.row.QuestionId][n.row.xfIndex][n.row.TableQuestionId]+" %")+"\n ")]:e._e():[e._v("\n "+e._s(isNaN(parseInt(e.questionForm[n.row.QuestionId][n.row.xfIndex][n.row.TableQuestionId]))?e.questionForm[n.row.QuestionId][n.row.xfIndex][n.row.TableQuestionId]:e.questionForm[n.row.QuestionId][n.row.xfIndex][n.row.TableQuestionId]+" "+(4!==n.row.Unit?e.$fd("ValueUnit",n.row.Unit):n.row.CustomUnit))+"\n ")]],2):1!==n.row.DataSource&&"number"===n.row.Type&&!n.row.IsShowInDicom&&(t.IsBaseLine&&1===n.row.LimitEdit||!t.IsBaseLine&&2===n.row.LimitEdit||0===n.row.LimitEdit)?i("el-input",{attrs:{disabled:1===n.row.DataSource,onblur:"value=parseFloat(value).toFixed(parseInt(localStorage.getItem('digitPlaces')))",size:"mini"},on:{input:function(t){return e.limitInput(t,e.questionForm,n.row.QuestionId)},focus:function(){e.questionId=n.row.QuestionId}},model:{value:e.questionForm[n.row.QuestionId],callback:function(t){e.$set(e.questionForm,n.row.QuestionId,t)},expression:"questionForm[scope.row.QuestionId]"}},[0!==n.row.Unit?i("template",{slot:"append"},[e._v(e._s(4!==n.row.Unit?e.$fd("ValueUnit",n.row.Unit):n.row.CustomUnit))]):2===n.row.ValueType?i("template",{slot:"append"},[e._v("%")]):e._e()],2):"number"===n.row.Type?i("span",[0!==n.row.ValueType&&1!==n.row.ValueType||!n.row.Unit?2===n.row.ValueType?[e._v("\n "+e._s(isNaN(parseInt(e.questionForm[n.row.QuestionId]))?e.questionForm[n.row.QuestionId]:e.questionForm[n.row.QuestionId]+" %")+"\n ")]:e._e():[e._v("\n "+e._s(isNaN(parseInt(e.questionForm[n.row.QuestionId]))?e.questionForm[n.row.QuestionId]:e.questionForm[n.row.QuestionId]+" "+(4!==n.row.Unit?e.$fd("ValueUnit",n.row.Unit):n.row.CustomUnit))+"\n ")]],2):e._e():i("el-select",{attrs:{size:"mini",clearable:""},model:{value:e.questionForm[n.row.QuestionId],callback:function(t){e.$set(e.questionForm,n.row.QuestionId,t)},expression:"questionForm[scope.row.QuestionId]"}},[e._l(n.row.TypeValue.split("|"),(function(e){return i("el-option",{key:e,attrs:{label:e,value:e}})}))],2):i("el-input",{attrs:{size:"mini"},model:{value:e.questionForm[n.row.QuestionId],callback:function(t){e.$set(e.questionForm,n.row.QuestionId,t)},expression:"questionForm[scope.row.QuestionId]"}}):void 0],2)]]:t.VisitTaskId===e.visitTaskId&&"upload"===n.row.Type?["upload"!==n.row.Type||!n.row.xfIndex&&0!==n.row.xfIndex?"upload"===n.row.Type?i("CustomizeReportPageUpload",{attrs:{visitTaskId:e.visitTaskId,question:n.row,task:t,readingTaskState:e.readingTaskState,initUrl:e.questionForm[n.row.QuestionId]},on:{setImageUrl:function(t){e.setImageUrl(n.row.QuestionId,n.row.xfIndex,n.row.TableQuestionId,t)}}}):e._e():i("CustomizeReportPageUpload",{attrs:{visitTaskId:e.visitTaskId,question:n.row,task:t,readingTaskState:e.readingTaskState,initUrl:e.questionForm[n.row.QuestionId][n.row.xfIndex][n.row.TableQuestionId]},on:{setImageUrl:function(t){e.setImageUrl(n.row.QuestionId,n.row.xfIndex,n.row.TableQuestionId,t,n.row.RowId)}}})]:"upload"===n.row.Type?["upload"!==n.row.Type||!n.row.xfIndex&&0!==n.row.xfIndex?e._e():i("CustomizeReportPageUpload",{attrs:{visitTaskId:e.visitTaskId,question:n.row,task:t,readingTaskState:e.readingTaskState,initUrl:n.row.Answers[t.VisitTaskId]}})]:22===n.row.QuestionType?[e._v("\n "+e._s("-1"===n.row.Answers[t.VisitTaskId]?"未知":n.row.Answers[t.VisitTaskId])+"\n ")]:n.row.DictionaryCode?[e._v("\n "+e._s(e.$fd(n.row.DictionaryCode,n.row.Answers[t.VisitTaskId]))+"\n ")]:10===e.CriterionType?[e._v("\n "+e._s(isNaN(parseInt(n.row.Answers[t.VisitTaskId]))?n.row.Answers[t.VisitTaskId]:""+n.row.Answers[t.VisitTaskId])+"\n ")]:t.IsBaseLine&&1===n.row.LimitEdit||!t.IsBaseLine&&2===n.row.LimitEdit||0===n.row.LimitEdit?0!==n.row.ValueType&&1!==n.row.ValueType||!n.row.Unit?2===n.row.ValueType?[e._v("\n "+e._s(isNaN(parseInt(n.row.Answers[t.VisitTaskId]))?n.row.Answers[t.VisitTaskId]:n.row.Answers[t.VisitTaskId]+" %")+"\n ")]:n.row.Answers&&n.row.Answers.hasOwnProperty(t.VisitTaskId)?[e._v("\n "+e._s(n.row.Answers[t.VisitTaskId])+"\n ")]:e._e():[e._v("\n "+e._s(isNaN(parseInt(n.row.Answers[t.VisitTaskId]))?n.row.Answers[t.VisitTaskId]:n.row.Answers[t.VisitTaskId]+" "+(4!==n.row.Unit?e.$fd("ValueUnit",n.row.Unit):n.row.CustomUnit))+"\n ")]:void 0]}}],null,!0)},[i("template",{slot:"header"},[t.IsCurrentTask?i("div",[e._v("\n "+e._s(t.BlindName)+"\n ")]):i("div",[i("div",[e._v("\n "+e._s(t.BlindName)+"\n "),i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return e.previewDicoms(t)}}},[i("span",{staticClass:"el-icon-view"})])],1)])])],2)}))],2)],1)]),e._v(" "),e.signVisible?i("el-dialog",{attrs:{visible:e.signVisible,"close-on-click-modal":!1,width:"600px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.signVisible=t}}},[i("div",{attrs:{slot:"title"},slot:"title"},[i("span",{staticStyle:{"font-size":"18px"}},[e._v(e._s(e.$t("common:dialogTitle:sign")))]),e._v(" "),i("span",{staticStyle:{"font-size":"12px","margin-left":"5px"}},[e._v(e._s("("+e.$t("common:label:sign")+e.currentUser+")"))])]),e._v(" "),i("SignForm",{ref:"signForm",attrs:{"sign-code-enum":e.signCode},on:{closeDialog:e.closeSignDialog}})],1):e._e()],1)},a=[],r=(i("6b54"),i("456d"),i("20d6"),i("6762"),i("2fdb"),i("75fc")),o=(i("ac6a"),i("28a5"),i("96cf"),i("3b8d")),s=i("3e42"),l=i("9b92"),c=i("4176"),u=i("7a9e"),d=i("179b"),f=i("5f87"),h=i("4360"),p={name:"CustomizeReportPage",components:{SignForm:d["default"],CustomizeReportPageUpload:c["default"]},props:{visitTaskId:{type:String,required:!0}},data:function(){return{currentUser:zzSessionStorage.getItem("userName"),signVisible:!1,signCode:null,visitTaskList:[],taskQuestions:[],loading:!1,answers:[],readingTaskState:2,tumorEvaluate:null,currentEvaluateResult:null,isExistDisease:null,currentExistDisease:null,currentTaskReason:"",answerArr:[],questions:[],isShowDetail:!1,CriterionType:0,CalculationList:[],TrialReadingCriterionId:null,tableAnswers:{},questionForm:{},questionId:null}},watch:{questionForm:{deep:!0,immediate:!0,handler:function(e,t){try{if(!e[this.questionId]||!t[this.questionId])return}catch(i){}this.formItemNumberChange(this.questionId,!1)}},taskQuestions:function(){var e=this;this.$nextTick((function(){e.setScrollTop()}))}},mounted:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.CriterionType=parseInt(localStorage.getItem("CriterionType")),this.digitPlaces=parseInt(localStorage.getItem("digitPlaces")),this.TrialReadingCriterionId=this.$route.query.TrialReadingCriterionId,window.addEventListener("resize",(function(){t.handleResize(),t.setScrollTop()})),l["a"].$on("getReportInfo",(function(e){e&&t.getReportInfo()})),e.next=7,this.getQuestionCalculateRelation();case 7:this.getReportInfo();case 8:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),beforeDestroy:function(){l["a"].$off("getReportInfo")},methods:{limitInput:function(e,t,i){e.indexOf(".")>-1&&e.split(".")[1].length>=this.digitPlaces&&this.$set(t,i,parseFloat(e).toFixed(this.digitPlaces))},setImageUrl:function(e,t,i,n,a){t||0===t?(this.$set(this.questionForm[e][t],i,n),this.$set(this.questionForm[e][t],i+"_RowId",a),console.log(this.questionForm[e][t][i])):this.questionForm[e]=n},getTagterAnswers:function(e,t){var i=this;e.forEach((function(e){return e.QuestionId===t?(console.log(e.QuestionName),Object.assign({},e.Answers)):e.Childrens.length>0?i.getTagterAnswers(e.Childrens,t):void 0}))},formItemNumberChange:function(e,t){var i=this;t?this.CalculationList.forEach((function(t,n){var a=t.CalculateQuestionList.filter((function(t){return t.QuestionId===e}));if(a){var r=i.logic(t);!1!==r&&i.$set(i.questionForm,t.QuestionId,r)}})):this.CalculationList.forEach((function(t){var n=t.CalculateQuestionList.filter((function(t){return t.TableQuestionId===e}));if(n){var a=i.logic(t);!1!==a&&i.$set(i.questionForm,t.QuestionId,a)}})),console.log(this.questionForm)},getTableAnswers:function(e,t){var i=this,n=[];return window.xfList=t,t.forEach((function(e,t){var a={};e.Childrens.forEach((function(e){console.log(e,t),i.$set(e,"xfIndex",t),a[e.TableQuestionId+"_RowId"]=e.RowId,a[e.TableQuestionId]=e.Answers[i.visitTaskId]})),n.push(a)})),console.log("arr",n),n},InitVisitTaskQuestionForm:function(){var e=this;this.taskQuestions.map((function(t,i){if("group"!==t.Type||0!==t.Childrens.length||"table"===t.Type){if(t.IsPage||"group"===t.Type||"summary"===t.Type||"table"===t.Type||"number"===t.Type||e.$set(e.questionForm,t.QuestionId,t.Answers[e.visitTaskId]),"table"===t.Type){var n=e.getTableAnswers(t.QuestionId,t.Childrens,i);e.$set(e.questionForm,t.QuestionId,n)}"number"===t.Type&&e.$set(e.questionForm,t.QuestionId,""===t.Answers[e.visitTaskId]?parseFloat(0).toFixed(e.digitPlaces):t.Answers[e.visitTaskId]),t.Childrens.length>0&&e.setChild(t.Childrens)}})),this.formItemNumberChange(this.questionId,!1),console.log(this.questionForm)},setChild:function(e){var t=this;e.forEach((function(e,i){if("group"!==e.Type&&"summary"!==e.Type&&e.Id&&"table"!==e.Type&&t.$set(t.questionForm,e.QuestionId,e.Answers[t.visitTaskId]),"table"===e.Type){var n=t.getTableAnswers(e.QuestionId,e.Childrens,i);t.$set(t.questionForm,e.QuestionId,n)}"number"===e.Type&&t.$set(t.questionForm,e.QuestionId,""===e.Answers[t.visitTaskId]?parseFloat(0).toFixed(t.digitPlaces):e.Answers[t.visitTaskId]),e.Childrens&&e.Childrens.length>0&&"table"!==e.Type&&t.setChild(e.Childrens)}))},getQuestionCalculateRelation:function(){var e=this;return new Promise((function(t){Object(s["Jc"])({TrialReadingCriterionId:e.TrialReadingCriterionId}).then((function(i){e.CalculationList=i.Result,t()}))}))},logic:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;try{if(0===e.CalculateQuestionList.length)return!1;e.CalculateQuestionList.forEach((function(n,a){if(0===a)if(e.CustomCalculateMark>4)switch(e.CustomCalculateMark){case 5:t.questionForm[n.QuestionId].forEach((function(e,t){0===t?i=parseFloat(e[n.TableQuestionId]):i*=parseFloat(e[n.TableQuestionId])}));break;case 6:t.questionForm[n.QuestionId].forEach((function(e,t){console.log("为什么为0",parseFloat(e[n.TableQuestionId])),0===t?i=isNaN(parseFloat(e[n.TableQuestionId]))?null:parseFloat(e[n.TableQuestionId]):i+=isNaN(parseFloat(e[n.TableQuestionId]))?null:parseFloat(e[n.TableQuestionId]),console.log(i)}));break;case 7:t.questionForm[n.QuestionId].forEach((function(e,t){0===t?i=parseFloat(e[n.TableQuestionId]):i+=parseFloat(e[n.TableQuestionId])})),i=0===t.questionForm[n.QuestionId].length?0:i/t.questionForm[n.QuestionId].length;break;case 8:var o=[];t.questionForm[n.QuestionId].forEach((function(e){o.push(e[n.TableQuestionId])})),i=0===o.length?0:Math.max.apply(Math,Object(r["a"])(o));break;case 9:o=[];t.questionForm[n.QuestionId].forEach((function(e){o.push(e[n.TableQuestionId])})),i=0===o.length?0:Math.min.apply(Math,Object(r["a"])(o));break}else i=parseFloat(t.questionForm[n.TableQuestionId]);else switch(e.CustomCalculateMark){case 1:i+=parseFloat(t.questionForm[n.TableQuestionId]);break;case 2:i-=parseFloat(t.questionForm[n.TableQuestionId]);break;case 3:i*=parseFloat(t.questionForm[n.TableQuestionId]);break;case 4:i/=parseFloat(t.questionForm[n.TableQuestionId]);break}}))}catch(a){console.log(a)}var n=parseInt(localStorage.getItem("digitPlaces"));return 2===e.ValueType&&(i*=100),isNaN(i)?"":isFinite(i)?i.toFixed(n):"∞"},getReportInfo:function(){var e=this;this.loading=!0;var t={visitTaskId:this.visitTaskId,trialId:this.$router.currentRoute.query.trialId};Object(s["Yc"])(t).then((function(t){e.readingTaskState=t.Result.ReadingTaskState,e.tumorEvaluate=t.Result.CalculateResult.TumorEvaluate?parseInt(t.Result.CalculateResult.TumorEvaluate):null,e.isExistDisease=t.Result.CalculateResult.IsExistDisease?parseInt(t.Result.CalculateResult.IsExistDisease):null,e.answerArr=[],e.questions=t.Result.TaskQuestions.concat();var i=e.getQuestions(t.Result.TaskQuestions,!e.isShowDetail,null,null);e.taskQuestions=[],i.forEach((function(t){e.$set(e.taskQuestions,e.taskQuestions.length,t)})),e.visitTaskList=t.Result.VisitTaskList,console.log(e.taskQuestions),e.InitVisitTaskQuestionForm(),e.setScrollTop(),e.loading=!1})).catch((function(){e.loading=!1}))},setScrollTop:function(e){var t=this;setTimeout((function(){t.$refs.reportList.bodyWrapper.scrollTop=t.$refs.reportList.bodyWrapper.scrollHeight}),50),this.$refs.reportList.bodyWrapper.scrollTop=this.$refs.reportList.bodyWrapper.scrollHeight},getQuestions:function(e,t,i,n){var a=this,r=[];return 0!==e.length&&e.forEach((function(e){i=e.LesionType;var o=[];if(o=1!==e.LesionType&&2!==e.LesionType||!t?[3,4,5,6,2,8,10]:[0,1,3,4,5,6,2,8,10],0!==i||0!==n||a.isShowDetail||1!==a.CriterionType||o.push(1),!o.includes(e.QuestionMark)){var s=e;if(a.$set(s,"Answers",{}),e.RowIndex>0){var l=e.Childrens.findIndex((function(e){return 8===e.QuestionMark})),c=e.Childrens.findIndex((function(e){return 10===e.QuestionMark}));if(l>-1&&e.Childrens[l].Answer.length>0){var u=e.Childrens[l].Answer.findIndex((function(e){return""!==e.Answer})),d="";if(d=s.IsCanEditPosition?"".concat(e.Childrens[l].Answer[u].Answer,"--").concat(e.Childrens[c].Answer[u].Answer):"".concat(e.Childrens[l].Answer[u].Answer),e.SplitOrMergeLesionName&&u>-1?s.QuestionName="".concat(s.QuestionName," --").concat(d," (Split from ").concat(e.SplitOrMergeLesionName,")"):!e.SplitOrMergeLesionName&&u>-1?s.QuestionName="".concat(s.QuestionName," --").concat(d):s.QuestionName="".concat(s.QuestionName," "),1===a.CriterionType){var f=e.Childrens.findIndex((function(e){return 2===e.QuestionMark}));f>-1&&(n=e.Childrens[f].Answer[u].Answer?parseInt(e.Childrens[f].Answer[u].Answer):null)}}}var h=parseInt(localStorage.getItem("digitPlaces"))||0;e.Answer.forEach((function(t){e.DictionaryCode?a.$set(s.Answers,t.VisitTaskId,t.Answer?parseInt(t.Answer):null):"number"===e.Type?a.$set(s.Answers,t.VisitTaskId,isNaN(parseFloat(t.Answer))?t.Answer:parseFloat(t.Answer).toFixed(h)):a.$set(s.Answers,t.VisitTaskId,t.Answer)})),e.Childrens.length>=1&&(s.Childrens=a.getQuestions(e.Childrens,t,i,n)),r.push(s)}})),r},handleShowDetail:function(e){this.getReportInfo()},handleExistDiseaseChange:function(e){e===this.isExistDisease&&this.tumorEvaluate===this.currentEvaluateResult&&(this.currentTaskReason="",this.evaluateReasonChange(""));var t=this.answerArr.findIndex((function(e){return 15===e.questionType}));t>-1&&(this.answerArr[t].answer=e)},handleEvaluateResultChange:function(e){e===this.tumorEvaluate&&this.isExistDisease===this.currentExistDisease&&(this.currentTaskReason="",this.evaluateReasonChange(""));var t=this.answerArr.findIndex((function(e){return 13===e.questionType}));t>-1&&(this.answerArr[t].answer=e)},evaluateReasonChange:function(e){var t=this.answerArr.findIndex((function(e){return 14===e.questionType}));t>-1&&(this.answerArr[t].answer=e)},handleConfirm:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.handleSave(!1);case 2:return e.next=4,this.verifyVisitTaskQuestions();case 4:t=u["default"].processSignature.ImageAssessmentReportConfirmation,this.signCode=t,this.signVisible=!0;case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),verifyVisitTaskQuestions:function(){var e=this;return new Promise((function(t,i){e.loading=!0,Object(s["Of"])({visitTaskId:e.visitTaskId}).then((function(i){e.loading=!1,t()})).catch((function(){e.loading=!1,i()}))}))},handleResize:function(){var e=this;this.$nextTick((function(){e.$refs.reportList.doLayout()}))},closeSignDialog:function(e,t){e?this.signConfirm(t):this.signVisible=!1},signConfirm:function(e){var t=this;this.loading=!0;var i={data:{visitTaskId:this.visitTaskId},signInfo:e};Object(s["Ze"])(i).then((function(e){e.IsSuccess&&(t.$message.success(t.$t("common:message:savedSuccessfully")),t.$refs["signForm"]&&(t.$refs["signForm"].btnLoading=!1),t.signVisible=!1,t.readingTaskState=2,h["a"].dispatch("reading/setVisitTaskReadingTaskState",{visitTaskId:t.visitTaskId,readingTaskState:2}),l["a"].$emit("setReadingState",2),window.opener.postMessage("refreshTaskList",window.location),t.$confirm("当前阅片任务已完成,是否进入下一个阅片任务?",{type:"warning",distinguishCancelAndClose:!0}).then((function(){l["a"].$emit("getNextTask")})).catch((function(e){}))),t.loading=!1})).catch((function(){t.loading=!1,t.$refs["signForm"]&&t.$refs["signForm"].btnLoading&&(t.$refs["signForm"].btnLoading=!1)}))},previewDicoms:function(e){var t=Object(f["a"])(),i=this.$router.currentRoute.query.subjectCode,n=this.$router.currentRoute.query.subjectId,a=this.$router.currentRoute.query.trialId,r=this.$router.currentRoute.query.isReadingTaskViewInOrder,o=this.$router.currentRoute.query.criterionType,s=this.$router.currentRoute.query.readingTool,l="/readingDicoms?trialId=".concat(a,"&subjectCode=").concat(i,"&subjectId=").concat(n,"&visitTaskId=").concat(e.VisitTaskId,"&isReadingTaskViewInOrder=").concat(r,"&criterionType=").concat(o,"&readingTool=").concat(s,"&TokenKey=").concat(t),c=this.$router.resolve({path:l});window.open(c.href,"_blank")},handleSave:function(e){var t=this;return new Promise((function(i,n){t.loading=!0;var a=[],r=[],o=function(e){t.questionForm[e]instanceof Array?t.questionForm[e].forEach((function(t,i){Object.keys(t).forEach((function(i){console.log(i),-1===i.indexOf("_RowId")&&r.push({questionId:e,answer:t[i],tableQuestionId:i,rowId:t[i+"_RowId"]})}))})):a.push({questionId:e,answer:t.questionForm[e].toString()})};for(var c in t.questionForm)o(c);var u={visitTaskId:t.visitTaskId,questionAnswer:a,tableQuestionAnswer:r};console.log(u),Object(s["U"])(u).then((function(n){e&&t.$message.success(t.$t("common:message:savedSuccessfully")),l["a"].$emit("getCustomTableQuestionAnswer"),t.loading=!1,i()})).catch((function(){t.loading=!1,n()}))}))}}},m=p,g=(i("4aad"),i("2877")),v=Object(g["a"])(m,n,a,!1,null,"35c44234",null);t["default"]=v.exports},"198d":function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-password",use:"icon-password-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-password"><path d="M108.8 44.322H89.6v-5.36c0-9.04-3.308-24.163-25.6-24.163-23.145 0-25.6 16.881-25.6 24.162v5.361H19.2v-5.36C19.2 15.281 36.798 0 64 0c27.202 0 44.8 15.281 44.8 38.961v5.361zm-32 39.356c0-5.44-5.763-9.832-12.8-9.832-7.037 0-12.8 4.392-12.8 9.832 0 3.682 2.567 6.808 6.407 8.477v11.205c0 2.718 2.875 4.962 6.4 4.962 3.524 0 6.4-2.244 6.4-4.962V92.155c3.833-1.669 6.393-4.795 6.393-8.477zM128 64v49.201c0 8.158-8.645 14.799-19.2 14.799H19.2C8.651 128 0 121.359 0 113.201V64c0-8.153 8.645-14.799 19.2-14.799h89.6c10.555 0 19.2 6.646 19.2 14.799z" /></symbol>'});o.a.add(s);t["default"]=s},"199c":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"search-container"},[i("div",{staticStyle:{"margin-left":"auto"}})]),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:65},expression:"{bottomOffset:65}"}],staticClass:"table",attrs:{height:"100",data:e.list,"row-class-name":e.handleHighLighRow},on:{"sort-change":e.handleSortChange,"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"LastName",label:e.$t("trials:seletctedReviews:table:name"),"show-overflow-tooltip":"","min-width":"120",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("router-link",{staticStyle:{color:"#00d1b2"},attrs:{tag:"a",to:{path:"/trialsResume?doctorId="+t.row.Id+"&token="+e.token},target:"_blank"}},[e._v(e._s(t.row.LastName)+" / "+e._s(t.row.FirstName))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ChineseName",label:e.$t("trials:seletctedReviews:table:nameCN"),"show-overflow-tooltip":"","min-width":"120",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Code",label:e.$t("trials:seletctedReviews:table:id"),"min-width":"100","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"DoctorTrialState",label:e.$t("trials:seletctedReviews:table:status"),"min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[8===t.row.DoctorTrialState?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("DoctorTrialState",t.row.DoctorTrialState)))]):i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("DoctorTrialState",16)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"OptUserName",label:e.$t("trials:seletctedReviews:table:approver"),"min-width":"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"OptTimeStr",label:e.$t("trials:seletctedReviews:table:approvalTime"),"min-width":"150"}})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.listQuery.PageIndex,limit:e.listQuery.PageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"PageIndex",t)},"update:limit":function(t){return e.$set(e.listQuery,"PageSize",t)},pagination:e.getList}})],1)],2)},a=[],r=i("6071"),o=i("333d"),s=i("3e42"),l=i("4360"),c=4,u={name:"Approval",components:{BaseContainer:r["default"],Pagination:o["default"]},data:function(){return{list:[],loading:!1,listQuery:{TrialId:"",IntoGroupSearchState:c,PageIndex:1,PageSize:20,Asc:!1,SortField:""},total:0,listLoading:!1,approveIdArr:[],token:l["a"].getters.token}},created:function(){this.initPage()},methods:{initPage:function(){this.getList()},getList:function(){var e=this;this.listLoading=!0,this.listQuery.TrialId=this.$route.query.trialId,Object(s["td"])(this.listQuery).then((function(t){e.listLoading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.listLoading=!1}))},handleApprove:function(){var e=this;this.$confirm(this.$t("trials:seletctedReviews:message:msg2"),{type:"warning"}).then((function(){e.loading=!0;var t=e.$route.query.trialId;Object(s["L"])(t,e.approveIdArr,1).then((function(t){e.loading=!1,t.IsSuccess&&(e.getList(),e.$message.success(e.$t("common:message:savedSuccessfully")),e.$emit("nextStep","confirmation"))})).catch((function(){e.loading=!1}))}))},handleSelectionChange:function(e){for(var t=[],i=0;i<e.length;i++)t.push(e[i].Id);this.approveIdArr=t},handleSortChange:function(e){"ascending"===e.order?this.listQuery.Asc=!0:this.listQuery.Asc=!1,this.listQuery.SortField=e.prop,this.listQuery.PageIndex=1,this.getList()},handleHighLighRow:function(e){var t=e.row;e.rowIndex;if(8===t.DoctorTrialState)return"selected"},handleSelectTable:function(e){return 8!==e.DoctorTrialState},handleDetail:function(e){var t=this.$router.resolve({path:"/trialsResume?doctorId=".concat(e.Id)}),i=t.href;window.open(i,"_blank")}}},d=u,f=i("2877"),h=Object(f["a"])(d,n,a,!1,null,null,null);t["default"]=h.exports},"19ab":function(e,t,i){"use strict";i("f89d")},"19c3":function(e,t,i){e.exports=i.p+"static/img/PM.1c4496d5.png"},"19e2":function(e,t,i){var n=i("6d8b"),a=i("e887"),r=i("2306"),o=i("cbe5"),s=i("b0af"),l=s.createClipPath,c=["itemStyle"],u=["emphasis","itemStyle"],d=["color","color0","borderColor","borderColor0"],f=a.extend({type:"candlestick",render:function(e,t,i){this.group.removeClipPath(),this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},incrementalPrepareRender:function(e,t,i){this._clear(),this._updateDrawMode(e)},incrementalRender:function(e,t,i,n){this._isLargeDraw?this._incrementalRenderLarge(e,t):this._incrementalRenderNormal(e,t)},_updateDrawMode:function(e){var t=e.pipelineContext.large;(null==this._isLargeDraw||t^this._isLargeDraw)&&(this._isLargeDraw=t,this._clear())},_renderNormal:function(e){var t=e.getData(),i=this._data,n=this.group,a=t.getLayout("isSimpleBox"),o=e.get("clip",!0),s=e.coordinateSystem,l=s.getArea&&s.getArea();this._data||n.removeAll(),t.diff(i).add((function(i){if(t.hasValue(i)){var s,c=t.getItemLayout(i);if(o&&m(l,c))return;s=p(c,i,!0),r.initProps(s,{shape:{points:c.ends}},e,i),g(s,t,i,a),n.add(s),t.setItemGraphicEl(i,s)}})).update((function(s,c){var u=i.getItemGraphicEl(c);if(t.hasValue(s)){var d=t.getItemLayout(s);o&&m(l,d)?n.remove(u):(u?r.updateProps(u,{shape:{points:d.ends}},e,s):u=p(d,s),g(u,t,s,a),n.add(u),t.setItemGraphicEl(s,u))}else n.remove(u)})).remove((function(e){var t=i.getItemGraphicEl(e);t&&n.remove(t)})).execute(),this._data=t},_renderLarge:function(e){this._clear(),y(e,this.group);var t=e.get("clip",!0)?l(e.coordinateSystem,!1,e):null;t?this.group.setClipPath(t):this.group.removeClipPath()},_incrementalRenderNormal:function(e,t){var i,n=t.getData(),a=n.getLayout("isSimpleBox");while(null!=(i=e.next())){var r,o=n.getItemLayout(i);r=p(o,i),g(r,n,i,a),r.incremental=!0,this.group.add(r)}},_incrementalRenderLarge:function(e,t){y(t,this.group,!0)},remove:function(e){this._clear()},_clear:function(){this.group.removeAll(),this._data=null},dispose:n.noop}),h=o.extend({type:"normalCandlestickBox",shape:{},buildPath:function(e,t){var i=t.points;this.__simpleBox?(e.moveTo(i[4][0],i[4][1]),e.lineTo(i[6][0],i[6][1])):(e.moveTo(i[0][0],i[0][1]),e.lineTo(i[1][0],i[1][1]),e.lineTo(i[2][0],i[2][1]),e.lineTo(i[3][0],i[3][1]),e.closePath(),e.moveTo(i[4][0],i[4][1]),e.lineTo(i[5][0],i[5][1]),e.moveTo(i[6][0],i[6][1]),e.lineTo(i[7][0],i[7][1]))}});function p(e,t,i){var n=e.ends;return new h({shape:{points:i?v(n,e):n},z2:100})}function m(e,t){for(var i=!0,n=0;n<t.ends.length;n++)if(e.contain(t.ends[n][0],t.ends[n][1])){i=!1;break}return i}function g(e,t,i,n){var a=t.getItemModel(i),o=a.getModel(c),s=t.getItemVisual(i,"color"),l=t.getItemVisual(i,"borderColor")||s,f=o.getItemStyle(d);e.useStyle(f),e.style.strokeNoScale=!0,e.style.fill=s,e.style.stroke=l,e.__simpleBox=n;var h=a.getModel(u).getItemStyle();r.setHoverStyle(e,h)}function v(e,t){return n.map(e,(function(e){return e=e.slice(),e[1]=t.initBaseline,e}))}var b=o.extend({type:"largeCandlestickBox",shape:{},buildPath:function(e,t){for(var i=t.points,n=0;n<i.length;)if(this.__sign===i[n++]){var a=i[n++];e.moveTo(a,i[n++]),e.lineTo(a,i[n++])}else n+=3}});function y(e,t,i){var n=e.getData(),a=n.getLayout("largePoints"),r=new b({shape:{points:a},__sign:1});t.add(r);var o=new b({shape:{points:a},__sign:-1});t.add(o),w(1,r,e,n),w(-1,o,e,n),i&&(r.incremental=!0,o.incremental=!0)}function w(e,t,i,n){var a=e>0?"P":"N",r=n.getVisual("borderColor"+a)||n.getVisual("color"+a),o=i.getModel(c).getItemStyle(d);t.useStyle(o),t.style.fill=null,t.style.stroke=r}var _=f;e.exports=_},"19e8":function(e,t,i){},"19eb":function(e,t,i){var n=i("6d8b"),a=i("2b61"),r=i("d5b7"),o=i("9e2e");function s(e){for(var t in e=e||{},r.call(this,e),e)e.hasOwnProperty(t)&&"style"!==t&&(this[t]=e[t]);this.style=new a(e.style,this),this._rect=null,this.__clipPaths=null}s.prototype={constructor:s,type:"displayable",__dirty:!0,invisible:!1,z:0,z2:0,zlevel:0,draggable:!1,dragging:!1,silent:!1,culling:!1,cursor:"pointer",rectHover:!1,progressive:!1,incremental:!1,globalScaleRatio:1,beforeBrush:function(e){},afterBrush:function(e){},brush:function(e,t){},getBoundingRect:function(){},contain:function(e,t){return this.rectContain(e,t)},traverse:function(e,t){e.call(t,this)},rectContain:function(e,t){var i=this.transformCoordToLocal(e,t),n=this.getBoundingRect();return n.contain(i[0],i[1])},dirty:function(){this.__dirty=this.__dirtyText=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(e){return this.animate("style",e)},attrKV:function(e,t){"style"!==e?r.prototype.attrKV.call(this,e,t):this.style.set(t)},setStyle:function(e,t){return this.style.set(e,t),this.dirty(!1),this},useStyle:function(e){return this.style=new a(e,this),this.dirty(!1),this},calculateTextPosition:null},n.inherits(s,r),n.mixin(s,o);var l=s;e.exports=l},"19ec":function(e,t,i){},"19fd":function(e,t,i){"use strict";i("0d29")},"1a33":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-container",{staticClass:"participant-container"},[i("el-header",{staticStyle:{height:"50px"}},[i("div",{staticClass:"filter-container"},[i("span",[e._v(e._s(e.$t("trials:staff:table:name"))+":")]),e._v(" "),i("el-input",{staticClass:"mr",attrs:{size:"mini",clearable:""},model:{value:e.listQuery.UserRealName,callback:function(t){e.$set(e.listQuery,"UserRealName",t)},expression:"listQuery.UserRealName"}}),e._v(" "),i("span",[e._v(e._s(e.$t("trials:staff:table:uid"))+":")]),e._v(" "),i("el-input",{staticClass:"mr",attrs:{size:"mini",clearable:""},model:{value:e.listQuery.UserName,callback:function(t){e.$set(e.listQuery,"UserName",t)},expression:"listQuery.UserName"}}),e._v(" "),i("span",[e._v(e._s(e.$t("trials:staff:table:organization"))+":")]),e._v(" "),i("el-input",{staticClass:"mr",attrs:{size:"mini",clearable:""},model:{value:e.listQuery.OrganizationName,callback:function(t){e.$set(e.listQuery,"OrganizationName",t)},expression:"listQuery.OrganizationName"}}),e._v(" "),i("span",[e._v(e._s(e.$t("trials:staff:table:userType"))+":")]),e._v(" "),i("el-select",{staticClass:"mr",attrs:{size:"mini",clearable:""},model:{value:e.listQuery.UserTypeEnum,callback:function(t){e.$set(e.listQuery,"UserTypeEnum",t)},expression:"listQuery.UserTypeEnum"}},e._l(e.userTypeOptions,(function(t){return i("el-option",{key:t.Id,attrs:{label:t.UserTypeShortName,value:t.UserTypeEnum}},[i("span",[e._v(e._s(t.UserType))])])})),1),e._v(" "),i("el-button",{attrs:{type:"primary",size:"mini",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"mini",type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")]),e._v(" "),i("el-button",{staticStyle:{"margin-left":"auto"},attrs:{type:"primary",size:"mini",disabled:0===e.selectArr.length,loading:e.assignLoadStatus,icon:"el-icon-plus"},on:{click:e.handleAssign}},[e._v("\n "+e._s(e.$t("common:button:add"))+"\n ")])],1)]),e._v(" "),i("el-main",[i("div",{staticClass:"data-table"},[i("el-table",{staticClass:"participant-table-list",attrs:{data:e.list,stripe:"",height:"400px"},on:{"selection-change":e.handleSelectChange,"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"selection",width:"50",selectable:e.handleSelectable}}),e._v(" "),i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"UserRealName",label:e.$t("trials:staff:table:name"),"show-overflow-tooltip":"",sortable:"custom","min-width":"100"}}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:e.$t("trials:staff:table:uid"),"show-overflow-tooltip":"",sortable:"custom","min-width":"100"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Phone",label:e.$t("trials:staff:table:phone"),"show-overflow-tooltip":"",sortable:"custom","min-width":"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"EMail",label:e.$t("trials:staff:table:email"),"show-overflow-tooltip":"",sortable:"custom","min-width":"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"OrganizationName",label:e.$t("trials:staff:table:organization"),"show-overflow-tooltip":"","min-width":"100",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"UserType",label:e.$t("trials:staff:table:userType"),"show-overflow-tooltip":"",sortable:"custom","min-width":"100"}})],1)],1)]),e._v(" "),i("div",{staticClass:"pagination",staticStyle:{"text-align":"right","margin-top":"5px"}},[i("pagination",{attrs:{total:e.total,page:e.listQuery.PageIndex,limit:e.listQuery.PageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"PageIndex",t)},"update:limit":function(t){return e.$set(e.listQuery,"PageSize",t)},pagination:e.getList}})],1)],1)},a=[],r=i("3e42"),o=i("333d"),s=function(){return{UserRealName:"",UserName:"",OrganizationName:"",UserTypeEnum:"",PageIndex:1,PageSize:20}},l={components:{Pagination:o["default"]},data:function(){return{list:[],total:0,listQuery:s(),selectArr:[],assignLoadStatus:!1,isAdmin:JSON.parse(zzSessionStorage.getItem("IsAdmin")),userTypeOptions:[],trialId:""}},mounted:function(){this.trialId=this.$route.query.trialId,this.getUserType(),this.getList()},methods:{getList:function(){var e=this,t=this.$loading({target:document.querySelector(".participant-table-list"),fullscreen:!1,lock:!0});this.listQuery.TrialId=this.trialId,Object(r["be"])(this.listQuery).then((function(i){t.close(),e.list=i.Result.CurrentPageData,e.total=i.Result.TotalCount})).catch((function(){t.close()}))},handleAssign:function(){var e=this;this.$confirm(this.$t("trials:staff:message:addStaff"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){var t=e.$loading({target:document.querySelector(".participant-table-list"),fullscreen:!1,lock:!0});e.assignLoadStatus=!0,Object(r["K"])(e.selectArr).then((function(i){e.assignLoadStatus=!1,t.close(),i.IsSuccess&&(e.$emit("closeDialog"),e.$message.success(e.$t("common:message:addedSuccessfully")))})).catch((function(){t.close(),e.assignLoadStatus=!1}))}))},handleSearch:function(){this.listQuery.PageIndex=1,this.getList()},handleReset:function(){this.listQuery=s(),this.getList()},handleSelectChange:function(e){this.selectArr=e},handleSortByColumn:function(e){"ascending"===e.order?this.listQuery.Asc=!0:this.listQuery.Asc=!1,this.listQuery.SortField=e.prop,this.listQuery.PageIndex=1,this.getList()},handleSelectable:function(e){return!e.IsSelect},getUserType:function(){var e=this;Object(r["ge"])(2).then((function(t){e.userTypeOptions=t.Result}))}}},c=l,u=(i("0560"),i("2877")),d=Object(u["a"])(c,n,a,!1,null,"6ff0723f",null);t["default"]=d.exports},"1a8c":function(e,t){function i(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=i},"1ab3":function(e,t,i){var n=i("6d8b"),a=i("2306"),r=i("e887");function o(e,t,i,n){var a=t.getData(),r=this.dataIndex,o=a.getName(r),l=t.get("selectedOffset");n.dispatchAction({type:"pieToggleSelect",from:e,name:o,seriesId:t.id}),a.each((function(e){s(a.getItemGraphicEl(e),a.getItemLayout(e),t.isSelected(a.getName(e)),l,i)}))}function s(e,t,i,n,a){var r=(t.startAngle+t.endAngle)/2,o=Math.cos(r),s=Math.sin(r),l=i?n:0,c=[o*l,s*l];a?e.animate().when(200,{position:c}).start("bounceOut"):e.attr("position",c)}function l(e,t){a.Group.call(this);var i=new a.Sector({z2:2}),n=new a.Polyline,r=new a.Text;this.add(i),this.add(n),this.add(r),this.updateData(e,t,!0)}var c=l.prototype;c.updateData=function(e,t,i){var r=this.childAt(0),o=this.childAt(1),l=this.childAt(2),c=e.hostModel,u=e.getItemModel(t),d=e.getItemLayout(t),f=n.extend({},d);f.label=null;var h=c.getShallow("animationTypeUpdate");if(i){r.setShape(f);var p=c.getShallow("animationType");"scale"===p?(r.shape.r=d.r0,a.initProps(r,{shape:{r:d.r}},c,t)):(r.shape.endAngle=d.startAngle,a.updateProps(r,{shape:{endAngle:d.endAngle}},c,t))}else"expansion"===h?r.setShape(f):a.updateProps(r,{shape:f},c,t);var m=e.getItemVisual(t,"color");r.useStyle(n.defaults({lineJoin:"bevel",fill:m},u.getModel("itemStyle").getItemStyle())),r.hoverStyle=u.getModel("emphasis.itemStyle").getItemStyle();var g=u.getShallow("cursor");g&&r.attr("cursor",g),s(this,e.getItemLayout(t),c.isSelected(e.getName(t)),c.get("selectedOffset"),c.get("animation"));var v=!i&&"transition"===h;this._updateLabel(e,t,v),this.highDownOnUpdate=c.get("silent")?null:function(e,t){var i=c.isAnimationEnabled()&&u.get("hoverAnimation");"emphasis"===t?(o.ignore=o.hoverIgnore,l.ignore=l.hoverIgnore,i&&(r.stopAnimation(!0),r.animateTo({shape:{r:d.r+c.get("hoverOffset")}},300,"elasticOut"))):(o.ignore=o.normalIgnore,l.ignore=l.normalIgnore,i&&(r.stopAnimation(!0),r.animateTo({shape:{r:d.r}},300,"elasticOut")))},a.setHoverStyle(this)},c._updateLabel=function(e,t,i){var n=this.childAt(1),r=this.childAt(2),o=e.hostModel,s=e.getItemModel(t),l=e.getItemLayout(t),c=l.label,u=e.getItemVisual(t,"color");if(!c||isNaN(c.x)||isNaN(c.y))r.ignore=r.normalIgnore=r.hoverIgnore=n.ignore=n.normalIgnore=n.hoverIgnore=!0;else{var d={points:c.linePoints||[[c.x,c.y],[c.x,c.y],[c.x,c.y]]},f={x:c.x,y:c.y};i?(a.updateProps(n,{shape:d},o,t),a.updateProps(r,{style:f},o,t)):(n.attr({shape:d}),r.attr({style:f})),r.attr({rotation:c.rotation,origin:[c.x,c.y],z2:10});var h=s.getModel("label"),p=s.getModel("emphasis.label"),m=s.getModel("labelLine"),g=s.getModel("emphasis.labelLine");u=e.getItemVisual(t,"color");a.setLabelStyle(r.style,r.hoverStyle={},h,p,{labelFetcher:e.hostModel,labelDataIndex:t,defaultText:c.text,autoColor:u,useInsideStyle:!!c.inside},{textAlign:c.textAlign,textVerticalAlign:c.verticalAlign,opacity:e.getItemVisual(t,"opacity")}),r.ignore=r.normalIgnore=!h.get("show"),r.hoverIgnore=!p.get("show"),n.ignore=n.normalIgnore=!m.get("show"),n.hoverIgnore=!g.get("show"),n.setStyle({stroke:u,opacity:e.getItemVisual(t,"opacity")}),n.setStyle(m.getModel("lineStyle").getLineStyle()),n.hoverStyle=g.getModel("lineStyle").getLineStyle();var v=m.get("smooth");v&&!0===v&&(v=.4),n.setShape({smooth:v})}},n.inherits(l,a.Group);var u=r.extend({type:"pie",init:function(){var e=new a.Group;this._sectorGroup=e},render:function(e,t,i,a){if(!a||a.from!==this.uid){var r=e.getData(),s=this._data,c=this.group,u=t.get("animation"),d=!s,f=e.get("animationType"),h=e.get("animationTypeUpdate"),p=n.curry(o,this.uid,e,u,i),m=e.get("selectedMode");if(r.diff(s).add((function(e){var t=new l(r,e);d&&"scale"!==f&&t.eachChild((function(e){e.stopAnimation(!0)})),m&&t.on("click",p),r.setItemGraphicEl(e,t),c.add(t)})).update((function(e,t){var i=s.getItemGraphicEl(t);d||"transition"===h||i.eachChild((function(e){e.stopAnimation(!0)})),i.updateData(r,e),i.off("click"),m&&i.on("click",p),c.add(i),r.setItemGraphicEl(e,i)})).remove((function(e){var t=s.getItemGraphicEl(e);c.remove(t)})).execute(),u&&r.count()>0&&(d?"scale"!==f:"transition"!==h)){for(var g=r.getItemLayout(0),v=1;isNaN(g.startAngle)&&v<r.count();++v)g=r.getItemLayout(v);var b=Math.max(i.getWidth(),i.getHeight())/2,y=n.bind(c.removeClipPath,c);c.setClipPath(this._createClipPath(g.cx,g.cy,b,g.startAngle,g.clockwise,y,e,d))}else c.removeClipPath();this._data=r}},dispose:function(){},_createClipPath:function(e,t,i,n,r,o,s,l){var c=new a.Sector({shape:{cx:e,cy:t,r0:0,r:i,startAngle:n,endAngle:n,clockwise:r}}),u=l?a.initProps:a.updateProps;return u(c,{shape:{endAngle:n+(r?1:-1)*Math.PI*2}},s,o),c},containPoint:function(e,t){var i=t.getData(),n=i.getItemLayout(0);if(n){var a=e[0]-n.cx,r=e[1]-n.cy,o=Math.sqrt(a*a+r*r);return o<=n.r&&o>=n.r0}}}),d=u;e.exports=d},"1acd":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"preview-wrapper"},[i("div",{staticClass:"left-wrapper"},e._l(e.nonDicomStudyList,(function(t){return i("div",{key:t.Id},[i("div",{staticClass:"study-info"},[i("h4",[e._v(e._s(t.CodeView+" (Modality: "+t.Modality+")"))])]),e._v(" "),i("ul",e._l(t.NoneDicomStudyFileList,(function(t){return i("li",{key:t.Id},[i("el-button",{staticStyle:{width:"100%","text-align":"left"},attrs:{plain:""},on:{click:function(i){return e.preview(t)}}},[e._v(e._s(t.FileName))])],1)})),0)])})),0),e._v(" "),i("div",{staticClass:"right-wrapper"},[0===e.fileInfo.currentFileType?i("iframe",{attrs:{frameborder:"0",src:e.fileInfo.currentFilePath,width:"100%",height:"100%"}}):1===e.fileInfo.currentFileType?i("iframe",{attrs:{src:"/static/pdfjs/web/viewer.html?file="+e.fileInfo.currentFilePath,width:"100%",height:"100%",frameborder:"0"}}):3===e.fileInfo.currentFileType?i("videoPlayer",{staticStyle:{width:"100%",height:"100%"},attrs:{"video-src":e.fileInfo.currentFilePath}}):2===e.fileInfo.currentFileType?i("div",[e._v("\n "+e._s(e.$t("common:message:downloadFile"))+"\n "),i("el-link",{attrs:{type:"primary"},on:{click:function(t){return e.downLoadFile(e.fileInfo.currentFilePath)}}},[e._v("\n "+e._s(e.$t("common:button:download"))+"\n ")])],1):e._e()],1)])},a=[],r=(i("7514"),i("ac6a"),i("c7b8")),o={name:"PreviewFiles",components:{videoPlayer:r["default"]},props:{nonDicomStudyList:{type:Array,default:function(){return[]}}},data:function(){return{fileInfo:{currentFilePath:"",currentFileType:null},isShow:!1}},mounted:function(){this.initPage()},methods:{initPage:function(){this.nonDicomStudyList.forEach((function(e){e.VideoName&&e.NoneDicomStudyFileList.push({FullFilePath:e.VideoUrl,FileName:e.VideoName})}));var e=this.nonDicomStudyList.find((function(e){return e.NoneDicomStudyFileList.length>0}));void 0!==e&&this.preview(e.NoneDicomStudyFileList[0])},downLoadFile:function(e){e&&window.open(e,"_blank")},preview:function(e){this.$set(this.fileInfo,"currentFileType",this.getFileType(e.FileName)),this.$set(this.fileInfo,"currentFilePath",e.FullFilePath),console.log(this.fileInfo)},getFileType:function(e){if(!e)return null;var t=e.substring(e.lastIndexOf(".")+1).toLocaleLowerCase();return-1!==t.indexOf("jpg")||-1!==t.indexOf("png")?0:-1!==t.indexOf("pdf")?1:~t.indexOf("mp4")?2:3}}},s=o,l=(i("9b925"),i("2877")),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},"1b13":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{"min-height":"500px"}},[i("ECRF",{attrs:{"trial-id":e.trialId,"subject-id":e.subjectId,"criterion-id":e.criterionId,"visit-task-id":e.visitTaskId}})],1)},a=[],r=i("3e42"),o=i("26d1"),s={name:"Criterions",components:{ECRF:o["default"]},props:{trialId:{type:String,required:!0},subjectId:{type:String,required:!0},visitTaskId:{type:String,required:!0},criterionId:{type:String,required:!0}},data:function(){return{activeName:"",loading:!1,criterions:[]}},mounted:function(){this.getCriterions()},methods:{getCriterions:function(){var e=this;this.loading=!0;var t={trialId:this.$router.currentRoute.query.trialId};Object(r["Bd"])(t).then((function(t){e.criterions=t.Result,e.activeName=e.criterions[0].ReadingQuestionCriterionTrialId,e.loading=!1})).catch((function(){e.loading=!1}))}}},l=s,c=i("2877"),u=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},"1b24":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.isRender?i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"measurementForm",staticClass:"measurement-form",attrs:{model:e.questionForm,size:"mini"}},[i("div",{staticClass:"base-dialog-body"},[i("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[e.questionName?i("h3",{staticStyle:{color:"#ddd",padding:"5px 0px",margin:"0"}},[e._v("\n "+e._s(e.lesionName)+"\n ")]):e._e(),e._v(" "),i("div",[i("i",{staticClass:"el-icon-circle-close",staticStyle:{"font-size":"25px",cursor:"pointer"},on:{click:e.handleClose}})])]),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:reading:title:lesionType"),prop:"LesionType",rules:[{required:!0,message:e.$t("common:ruleMessage:select"),trigger:["blur"]}]}},[i("el-select",{attrs:{filterable:"",disabled:!e.isCurrentTask||e.readingTaskState>=2||!e.isBaseLineTask},on:{change:function(t){e.lesionTypeChange(t)}},model:{value:e.questionForm.LesionType,callback:function(t){e.$set(e.questionForm,"LesionType",t)},expression:"questionForm.LesionType"}},e._l(e.$d.LesionType,(function(t){return i("el-option",{directives:[{name:"show",rawName:"v-show",value:!(e.isBaseLineTask&&2===t.value),expression:"!(isBaseLineTask && item.value === 2)"}],key:t.id,attrs:{value:t.value,label:t.label}})})),1)],1),e._v(" "),e._l(e.questions,(function(t){return i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:2!==t.ShowQuestion,expression:"qs.ShowQuestion!==2"}],key:t.Id,attrs:{label:""+t.QuestionName,prop:t.Id,rules:[{required:(0===t.IsRequired||1===t.IsRequired&&t.RelevanceId&&e.questionForm[t.RelevanceId]===t.RelevanceValue||6===t.QuestionMark&&!0===e.questionForm.IsCanEditPosition||e.questionForm.IsCanEditPosition&&10===t.QuestionMark)&&"group"!==t.Type&&"summary"!==t.Type,message:["radio","select","checkbox"].includes(t.Type)?e.$t("common:ruleMessage:select"):e.$t("common:ruleMessage:specify"),trigger:["blur","change"]}]}},["input"===t.Type||"number"===t.Type?["input"===t.Type||"number"===t.Type?i("el-input",{attrs:{disabled:!e.isCurrentTask||e.readingTaskState>=2||0===t.QuestionMark||1===t.QuestionMark||2===t.QuestionMark||5===t.QuestionMark||6===t.QuestionMark&&("False"===e.isCurrentTaskAdd||"True"===e.isCurrentTaskAdd&&!e.questionForm.IsCanEditPosition||!!e.answers.SplitOrMergeLesionName)||8===t.QuestionMark&&("False"===e.isCurrentTaskAdd||!!e.answers.SplitOrMergeLesionName)&&2!==e.lesionType||10===t.QuestionMark&&("False"===e.isCurrentTaskAdd||!!e.answers.SplitOrMergeLesionName)},on:{change:function(i){e.formItemChange(i,t)}},model:{value:e.questionForm[t.Id],callback:function(i){e.$set(e.questionForm,t.Id,i)},expression:"questionForm[qs.Id]"}},[0!==t.QuestionMark&&1!==t.QuestionMark||!t.Unit?e._e():i("template",{slot:"append"},[e._v("\n "+e._s(e.$fd("ValueUnit",parseInt(t.Unit)))+"\n ")])],2):e._e()]:e._e(),e._v(" "),"textarea"===t.Type?i("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},disabled:!e.isCurrentTask||e.readingTaskState>=2},on:{change:function(i){e.formItemChange(i,t)}},model:{value:e.questionForm[t.Id],callback:function(i){e.$set(e.questionForm,t.Id,i)},expression:"questionForm[qs.Id]"}}):e._e(),e._v(" "),"select"===t.Type?i("el-select",{attrs:{filterable:"",placeholder:8===t.QuestionMark?e.$t("common:placeholder:selectorsearch"):e.$t("common:placeholder:select"),disabled:!e.isCurrentTask||e.readingTaskState>=2||0===t.QuestionMark||1===t.QuestionMark||2===t.QuestionMark||5===t.QuestionMark||6===t.QuestionMark&&("False"===e.isCurrentTaskAdd||"True"===e.isCurrentTaskAdd&&!e.questionForm.IsCanEditPosition||!!e.answers.SplitOrMergeLesionName)||8===t.QuestionMark&&("False"===e.isCurrentTaskAdd||!!e.answers.SplitOrMergeLesionName)||10===t.QuestionMark&&("False"===e.isCurrentTaskAdd||"True"===e.isCurrentTaskAdd&&!e.questionForm.IsCanEditPosition||!!e.answers.SplitOrMergeLesionName)},on:{change:function(i){e.formItemChange(i,t)}},scopedSlots:e._u([8===t.QuestionMark?{key:"prefix",fn:function(){return[i("span",{staticStyle:{"padding-left":"5px"}},[i("i",{staticClass:"el-icon-search"})])]},proxy:!0}:null],null,!0),model:{value:e.questionForm[t.Id],callback:function(i){e.$set(e.questionForm,t.Id,i)},expression:"questionForm[qs.Id]"}},[e._v(" "),1===t.TableQuestionType?e._l(e.organList,(function(e){return i("el-option",{key:e.Id,attrs:{label:e[t.DataTableColumn],value:e[t.DataTableColumn]}})})):t.DictionaryCode&&7===t.QuestionMark&&e.isBaseLineTask?e._l(e.$d[t.DictionaryCode],(function(t){return i("el-option",{directives:[{name:"show",rawName:"v-show",value:0===e.lesionType&&0===t.value||1===e.lesionType&&0===t.value,expression:"(lesionType === 0 && item.value ===0) || (lesionType === 1 && (item.value ===0))"}],key:t.id,attrs:{value:t.value,label:t.label}})})):t.DictionaryCode&&7===t.QuestionMark&&!e.isBaseLineTask?["True"===e.isCurrentTaskAdd&&2===e.lesionType?e._l(e.$d[t.DictionaryCode],(function(e){return i("el-option",{directives:[{name:"show",rawName:"v-show",value:0===e.value||1===e.value,expression:"item.value === 0 || item.value === 1"}],key:e.id,attrs:{value:e.value,label:e.label}})})):e._l(e.$d[t.DictionaryCode],(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})}))]:t.DictionaryCode&&7!==t.QuestionMark?e._l(e.$d[t.DictionaryCode],(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})})):e._l(t.TypeValue.split("|"),(function(e){return i("el-option",{key:e,attrs:{label:e,value:e}})}))],2):e._e(),e._v(" "),"radio"===t.Type?i("el-radio-group",{attrs:{disabled:!e.isCurrentTask||e.readingTaskState>=2},model:{value:e.questionForm[t.id],callback:function(i){e.$set(e.questionForm,t.id,i)},expression:"questionForm[qs.id]"}},e._l(t.options.split("|"),(function(t){return i("el-radio",{key:t,attrs:{label:t}},[e._v("\n "+e._s(t)+"\n ")])})),1):e._e()],2)}))],2),e._v(" "),e.isCurrentTask&&e.readingTaskState<2?i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[e.questionForm.MeasureData?i("el-button",{attrs:{size:"mini"},on:{click:e.handleDeleteMeasureData}},[e._v("\n "+e._s(e.$t("trials:reading:button:removeMark"))+"\n ")]):e._e(),e._v(" "),"False"!==e.isCurrentTaskAdd?i("el-button",{attrs:{size:"mini"},on:{click:e.handleDelete}},[e._v("\n "+e._s(e.$t("common:button:delete"))+"\n ")]):e._e(),e._v(" "),i("el-button",{attrs:{size:"mini"},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1):e._e()]):e._e()},a=[],r=(i("3b2b"),i("34ef"),i("6b54"),i("7514"),i("a481"),i("20d6"),i("f576"),i("28a5"),i("db72")),o=(i("ac6a"),i("96cf"),i("3b8d")),s=(i("c5f6"),i("3e42")),l=i("0a05"),c=i("9b92"),u=i("4360"),d={name:"MeasurementForm",props:{questions:{type:Array,default:function(){return[]}},answers:{type:Object,default:function(){return{}}},lesionType:{type:Number,required:!0},visitTaskId:{type:String,required:!0},parentQsId:{type:String,required:!0},isCurrentTask:{type:Boolean,required:!0},readingTaskState:{type:Number,required:!0},isBaseLineTask:{type:Boolean,required:!0},orderMark:{type:String,default:""},questionName:{type:String,required:!0},rowIndex:{type:String,required:!0},tableQuestions:{type:Array,default:function(){return[]}}},data:function(){return{questionForm:{},loading:!1,trialId:"",organList:[],originalQuestionForm:{},isRender:!1,toolType:"",lesionName:"",isCurrentTaskAdd:"False",splitOrMergeLesionName:"",lesionMark:"",deleteInfo:null,pictureBaseStr:""}},mounted:function(){this.trialId=this.$route.query.trialId,this.initForm()},methods:{initForm:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,i,n=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this.$loading({fullscreen:!0}),this.questions.forEach((function(e){var t=n.answers[e.Id];e.DictionaryCode&&(t=isNaN(parseInt(n.answers[e.Id]))?n.answers[e.Id]:parseInt(n.answers[e.Id])),n.isBaseLineTask&&7===e.QuestionMark&&0===n.lesionType&&(t=0),n.isBaseLineTask&&7===e.QuestionMark&&1===n.lesionType&&(t=0),n.$set(n.questionForm,e.Id,t)})),this.$set(this.questionForm,"MeasureData",this.answers.MeasureData?JSON.parse(this.answers.MeasureData):""),this.$set(this.questionForm,"RowIndex",this.answers.RowIndex?this.answers.RowIndex:""),this.$set(this.questionForm,"RowId",this.answers.RowId?this.answers.RowId:""),this.$set(this.questionForm,"OrganInfoId",this.answers.OrganInfoId?this.answers.OrganInfoId:""),i=this.getQuestionVal(7),this.questionForm.RowId?this.$set(this.questionForm,"saveTypeEnum",isNaN(parseInt(i))?1:2):this.$set(this.questionForm,"saveTypeEnum",0),this.$set(this.questionForm,"IsCanEditPosition","True"===this.answers.IsCanEditPosition),this.$set(this.questionForm,"IsDicomReading","False"!==this.answers.IsDicomReading),this.toolType=this.questionForm.MeasureData?this.questionForm.MeasureData.type:"",this.questionForm.LesionType||this.$set(this.questionForm,"LesionType",this.lesionType),this.originalQuestionForm=Object(r["a"])({},this.questionForm),!this.answers.measureObj){e.next=18;break}return e.next=16,this.setMeasureData(this.answers.measureObj,!0);case 16:e.next=39;break;case 18:if(!this.questionForm.MeasureData){e.next=36;break}if("Bidirectional"!==this.questionForm.MeasureData.type){e.next=25;break}return this.organList=[],e.next=23,this.getOrganInfoList(1);case 23:e.next=34;break;case 25:if("Length"!==this.questionForm.MeasureData.type){e.next=31;break}return this.organList=[],e.next=29,this.getOrganInfoList(0);case 29:e.next=34;break;case 31:return this.organList=[],e.next=34,this.getOrganInfoList();case 34:e.next=39;break;case 36:return this.organList=[],e.next=39,this.getOrganInfoList();case 39:this.lesionName=this.getLesionInfo(this.orderMark,this.rowIndex),this.isCurrentTaskAdd=this.answers.IsCurrentTaskAdd?this.answers.IsCurrentTaskAdd:"True",this.lesionMark=this.getLesionName(this.orderMark,this.questionForm.RowIndex),this.isRender=!0,t.close();case 44:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getLesionName:function(e,t){var i="",n=t.split("."),a=parseInt(n[0]),r=parseInt(n[1]);return r>0?(r=String.fromCharCode(parseInt(n[1])-1+65+32),i="".concat(e).concat(String(a).padStart(2,"0")).concat(r)):i="".concat(e).concat(String(a).padStart(2,"0")),i},getLesionInfo:function(e,t){var i=[],n="",a=t.split("."),r=parseInt(a[0]),o=parseInt(a[1]);return o>0?(o=String.fromCharCode(parseInt(a[1])-1+65+32),n="".concat(e).concat(String(r).padStart(2,"0")).concat(o),i.push(n)):(n="".concat(e).concat(String(r).padStart(2,"0")),i.push(n)),this.answers.SplitOrMergeLesionName&&0===parseInt(this.answers.SplitOrMergeType)&&i.push("(Split from ".concat(this.answers.SplitOrMergeLesionName,")")),i.join(" ")},getQuestionId:function(e){var t=this.questions.findIndex((function(t){return t.QuestionMark===e}));return t>-1?this.questions[t].Id:""},getOrganInfoList:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return new Promise(function(){var i=Object(o["a"])(regeneratorRuntime.mark((function i(n){var a,r;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(sessionStorage.getItem("organList")){i.next=3;break}return i.next=3,u["a"].dispatch("reading/getOrganInfo",e.visitTaskId);case 3:a=sessionStorage.getItem("organList")?JSON.parse(sessionStorage.getItem("organList")):[],r=a.findIndex((function(t){return t.LesionType===e.lesionType})),r>-1&&(a=a[r].OrganList,isNaN(parseInt(t))?e.organList=a:e.organList=a.filter((function(e){return e.IsLymphNodes===parseInt(t)}))),n();case 7:case"end":return i.stop()}}),i)})));return function(e){return i.apply(this,arguments)}}())},lesionTypeChange:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){var i=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.$emit("determineExistsUnsavedLession",function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(n){var a,r,o,s,l;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!n){e.next=27;break}if(!i.isBaseLineTask&&!1!==i.questionForm.IsDicomReading||!i.questionForm.MeasureData||"ArrowAnnotate"!==i.questionForm.MeasureData.type||0!==t){e.next=5;break}return i.$confirm(i.$t(" trials:reading:warnning:msg15"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){})).catch((function(){})),i.$set(i.questionForm,"LesionType",i.originalQuestionForm.LesionType),e.abrupt("return");case 5:if(a=i.tableQuestions.findIndex((function(e){return e.LesionType===t})),!(a>-1&&i.tableQuestions[a].MaxQuestionCount&&i.tableQuestions[a].MaxQuestionCount<=i.tableQuestions[a].TableQuestions.Answers.length)){e.next=12;break}return r=i.$t("trials:reading:warnning:msg14"),r=r.replace("xxx",i.tableQuestions[a].MaxQuestionCount),i.$confirm(r,{type:"warning",showCancelButton:!1,callback:function(e){}}),i.$set(i.questionForm,"LesionType",i.originalQuestionForm.LesionType),e.abrupt("return");case 12:o=[],i.questionForm[i.getQuestionId(8)]="",i.questionForm[i.getQuestionId(5)]="",i.questionForm[i.getQuestionId(10)]="",i.questionForm[i.getQuestionId(4)]="",i.questionForm[i.getQuestionId(6)]="",i.questionForm[i.getQuestionId(2)]="",i.questions.forEach((function(e){e.Answer=i.questionForm[e.Id]?i.questionForm[e.Id]:"",o.push(e)})),s={questionId:i.parentQsId,rowIndex:i.questionForm.RowIndex,visitTaskId:i.visitTaskId,lesionType:i.lesionType},c["a"].$emit("imageLocation",s),l=null,l=i.questionForm.RowId?1:0,c["a"].$emit("changeLesionType",{questionForm:o,oldLesionType:i.lesionType,newLesionType:t,rowIndex:i.questionForm.RowIndex,questionId:i.parentQsId,measureData:i.questionForm.MeasureData,type:l,rowId:i.questionForm.RowId}),e.next=28;break;case 27:i.$set(i.questionForm,"LesionType",i.originalQuestionForm.LesionType);case 28:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),deleteLesionInfo:function(){var e=this;return new Promise((function(t,i){var n=e.$loading({fullscreen:!0}),a={visitTaskId:e.visitTaskId,questionId:e.parentQsId,rowId:e.questionForm.RowId};Object(s["tb"])(a).then(function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(i){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:i.IsSuccess&&c["a"].$emit("getReportInfo",!0),n.close(),t();case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(){n.close(),i()}))}))},formItemChange:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t,i){var n,a,r,o,s,l,d,f,h,p=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(8===i.QuestionMark&&i.RelationQuestions.length>0&&(n=this.organList.findIndex((function(e){return e[i.DataTableColumn]===t})),n>-1?(a=this.organList[n],i.RelationQuestions.map((function(e){var t=a[e.DataTableColumn];p.$set(p.questionForm,e.Id,t)})),this.$set(this.questionForm,"OrganInfoId",a.OrganInfoId),this.$set(this.questionForm,"IsCanEditPosition",a["IsCanEditPosition"])):i.RelationQuestions.map((function(e){p.$set(p.questionForm,e.Id,"")}))),this.questionForm.RowId?this.$set(this.questionForm,"saveTypeEnum",1):this.$set(this.questionForm,"saveTypeEnum",0),r=this.getQuestionVal(2),r=isNaN(parseInt(r))?null:parseInt(r),o=this.getQuestionVal(8),s=this.getQuestionVal(6),l=isNaN(parseInt(this.getQuestionVal(0)))?"":this.getQuestionVal(0),d=isNaN(parseInt(this.getQuestionVal(1)))?"":this.getQuestionVal(1),f=isNaN(parseInt(this.getQuestionVal(7)))?"":parseInt(this.getQuestionVal(7)),this.$emit("resetQuestions",{isLymphLesion:r,lesionPart:o,lesionOrgan:s,lesionShort:d,lesionState:f,saveTypeEnum:this.questionForm.saveTypeEnum,lesionLength:l,rowIndex:this.rowIndex,questionId:this.parentQsId,anwsers:this.questionForm}),7!==i.QuestionMark){e.next=18;break}return h="",0===this.lesionType&&1===f&&(h="T"),(0===this.lesionType&&3===f||1===this.lesionType&&3===f||2===this.lesionType&&3===f)&&(h="D"),this.questionForm.measureData&&(this.questionForm.measureData.status=h),e.next=17,u["a"].dispatch("reading/updateMeasureDataStatus",{visitTaskId:this.visitTaskId,rowIndex:this.rowIndex,questionId:this.parentQsId,status:h});case 17:c["a"].$emit("getMeasureData");case 18:case"end":return e.stop()}}),e,this)})));function t(t,i){return e.apply(this,arguments)}return t}(),setMeasureData:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Promise((function(n){if(e){e.pictureBaseStr&&(t.pictureBaseStr=e.pictureBaseStr,e.pictureBaseStr="");var a=t.questions.find((function(e){return 0===e.QuestionMark})),r=t.questions.find((function(e){return 1===e.QuestionMark}));if("Length"===e.type||"Bidirectional"===e.type){var o="";"Length"===e.type?o=e.data.length:"Bidirectional"===e.type&&(o=e.data.longestDiameter),t.$set(t.questionForm,a.Id,o);var s="";"Bidirectional"===e.type&&(s=e.data.shortestDiameter),t.$set(t.questionForm,r.Id,s)}else"ArrowAnnotate"===e.type&&(t.$set(t.questionForm,a.Id,""),t.$set(t.questionForm,r.Id,""));"Bidirectional"===e.type?(t.organList=[],t.getOrganInfoList(1)):"Length"===e.type?(t.organList=[],t.getOrganInfoList(0)):(t.organList=[],t.getOrganInfoList());var l={};if(!1===e.isDicomReading)t.$set(t.questionForm,"IsDicomReading",!1),l={Id:"",IsDicomReading:!1,StudyId:e.studyId,InstanceId:e.instanceId,SeriesId:e.seriesId,MeasureData:e,QuestionId:t.parentQsId,RowIndex:t.questionForm.RowIndex,RowId:t.questionForm.RowId,VisitTaskId:t.visitTaskId},e.data.uuid="".concat(e.instanceId,"-").concat(e.data.remark);else{t.$set(t.questionForm,"IsDicomReading",!0);var d=t.getQuestionVal(2);d=isNaN(parseInt(d))?null:parseInt(d);var f=isNaN(parseInt(t.getQuestionVal(0)))?"":t.getQuestionVal(0),h=isNaN(parseInt(t.getQuestionVal(1)))?"":t.getQuestionVal(1);if(!t.isBaseLineTask&&0===t.lesionType&&(0===d&&f>0||1===d&&h>=10)){var p=t.getQuestionId(7);t.$set(t.questionForm,p,0)}if(!t.isBaseLineTask&&0===t.lesionType&&1===d&&"Bidirectional"===e.type&&h<10){var m=t.getQuestionId(7);t.$set(t.questionForm,m,3)}if(t.isBaseLineTask&&!v){var g=t.getQuestionId(7);t.$set(t.questionForm,g,0)}var v=isNaN(parseInt(t.getQuestionVal(7)))?"":parseInt(t.getQuestionVal(7)),b="";v&&(0===t.lesionType&&1===v&&(b="T"),(0===t.lesionType&&3===v||1===t.lesionType&&3===v||2===t.lesionType&&3===v)&&(b="D")),e.data.status=b,e.data.remark=t.getLesionName(t.orderMark,t.questionForm.RowIndex),l={Id:"",IsDicomReading:!0,StudyId:e.studyId,InstanceId:e.instanceId,SeriesId:e.seriesId,MeasureData:e,QuestionId:t.parentQsId,RowIndex:t.questionForm.RowIndex,RowId:t.questionForm.RowId,VisitTaskId:t.visitTaskId,frame:isNaN(parseInt(e.frame))?0:e.frame}}u["a"].dispatch("reading/addMeasuredData",{visitTaskId:t.visitTaskId,data:l}),t.questionForm.IsDicomReading||c["a"].$emit("addNoneDicomMeasureData",e),c["a"].$emit("getMeasureData",(function(e){t.pictureBaseStr=e}))}i||(t.questionForm.RowId?t.$set(t.questionForm,"saveTypeEnum",1):t.$set(t.questionForm,"saveTypeEnum",0)),t.$set(t.questionForm,"MeasureData",e);var y=t.getQuestionVal(2);y=isNaN(parseInt(y))?null:parseInt(y);var w=t.getQuestionVal(8),_=t.getQuestionVal(6),I=isNaN(parseInt(t.getQuestionVal(0)))?"":t.getQuestionVal(0),x=isNaN(parseInt(t.getQuestionVal(1)))?"":t.getQuestionVal(1),S=isNaN(parseInt(t.getQuestionVal(7)))?"":parseInt(t.getQuestionVal(7));t.$emit("resetQuestions",{isLymphLesion:y,lesionPart:w,lesionOrgan:_,lesionShort:x,lesionLength:I,lesionState:S,saveTypeEnum:t.questionForm.saveTypeEnum,rowIndex:t.rowIndex,questionId:t.parentQsId,anwsers:t.questionForm}),t.toolType=e.type,n()}))},returnFloat:function(e){if(!e){var t=Math.round(100*parseFloat(e))/100,i=t.toString().split(".");return 1===i.length?(t=t.toString()+".00",t):i.length>1?(i[1].length<2&&(t=t.toString()+"0"),t):void 0}},getQuestionVal:function(e){var t=this.questions.findIndex((function(t){return t.QuestionMark===e}));if(t>-1){var i=this.questions[t].Id;return this.questionForm[i]}return""},setDeleteInfo:function(e){this.deleteInfo=e},deleteOldLesion:function(e,t){var i=this;return new Promise((function(n,a){var r={visitTaskId:i.visitTaskId,questionId:e,rowId:t};Object(s["tb"])(r).then(function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:n();case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(){}))}))},uploadScreenshots:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t,i){var n,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,i=this.convertBase64ToBlob(i),n=new FormData,n.append("file",i),e.next=6,Object(l["s"])(n,this.$route.query.subjectId);case 6:return a=e.sent,a.url=a.Result.Path,e.abrupt("return",{isSuccess:!0,result:a});case 11:return e.prev=11,e.t0=e["catch"](0),console.log(e.t0),e.abrupt("return",{isSuccess:!1,result:e.t0});case 15:case"end":return e.stop()}}),e,this,[[0,11]])})));function t(t,i){return e.apply(this,arguments)}return t}(),convertBase64ToBlob:function(e){var t=e.split(","),i="",n="";t.length>1&&(n=t[1],i=t[0].substring(t[0].indexOf(":")+1,t[0].indexOf(";")));for(var a=atob(n),r=new ArrayBuffer(a.length),o=new Uint8Array(r),s=0;s<a.length;s++)o[s]=a.charCodeAt(s);return new Blob([r],{type:i})},handleSave:function(){var e=this;this.$refs.measurementForm.validate(function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(i){var n,a,l,u,d,f,h,p,m;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(i){t.next=2;break}return t.abrupt("return");case 2:if(n=e.$loading({fullscreen:!0}),a=e.questionForm.MeasureData,l=e.getQuestionVal(7),u=isNaN(parseInt(e.getQuestionVal(0)))?"":e.getQuestionVal(0),d=isNaN(parseInt(e.getQuestionVal(1)))?"":e.getQuestionVal(1),f=e.getQuestionVal(2),f=null!==f&&void 0!==f?parseInt(f):null,!e.isBaseLineTask){t.next=36;break}if(0!==e.lesionType||0!==l){t.next=22;break}if(1!==f){t.next=18;break}if(a&&"Bidirectional"===a.type&&d>=15){t.next=16;break}return e.$confirm(e.$t("trials:reading:warnning:msg19"),{type:"warning",showCancelButton:!1,callback:function(e){}}),n.close(),t.abrupt("return");case 16:t.next=22;break;case 18:if(a&&"Length"===a.type&&u>=10&&(a.thick&&u>=2*a.thick||!a.thick)){t.next=22;break}return e.$confirm(e.$t("trials:reading:warnning:msg20"),{type:"warning",showCancelButton:!1,callback:function(e){}}),n.close(),t.abrupt("return");case 22:if(1!==e.lesionType||0!==l){t.next=34;break}if(1!==f){t.next=30;break}if(a&&("Bidirectional"===a.type||"RectangleRoi"===a.type)){t.next=28;break}return e.$confirm(e.$t("trials:reading:warnning:msg21"),{type:"warning",showCancelButton:!1,callback:function(e){}}),n.close(),t.abrupt("return");case 28:t.next=34;break;case 30:if(a&&("Length"===a.type||"RectangleRoi"===a.type)){t.next=34;break}return e.$confirm(e.$t("trials:reading:warnning:msg22"),{type:"warning",showCancelButton:!1,callback:function(e){}}),n.close(),t.abrupt("return");case 34:t.next=189;break;case 36:if(0!==e.lesionType||0!==l){t.next=48;break}if(1!==f){t.next=44;break}if(a&&"Bidirectional"===a.type){t.next=42;break}return e.$confirm(e.$t("trials:reading:warnning:msg23"),{type:"warning",showCancelButton:!1,callback:function(e){}}),n.close(),t.abrupt("return");case 42:t.next=48;break;case 44:if(a&&"Length"===a.type){t.next=48;break}return e.$confirm(e.$t("trials:reading:warnning:msg24"),{type:"warning",showCancelButton:!1,callback:function(e){}}),n.close(),t.abrupt("return");case 48:if(0!==e.lesionType||1!==l){t.next=66;break}if(1!==f){t.next=59;break}if(a&&"ArrowAnnotate"===a.type){t.next=56;break}return e.$confirm(e.$t("trials:reading:warnning:msg25"),{type:"warning",showCancelButton:!1,callback:function(e){}}),n.close(),t.abrupt("return");case 56:a&&"ArrowAnnotate"===a.type&&(h=e.getQuestionId(1),e.$set(e.questionForm,h,5),d=5);case 57:t.next=66;break;case 59:if(a&&"ArrowAnnotate"===a.type){t.next=65;break}return e.$confirm(e.$t("trials:reading:warnning:msg26"),{type:"warning",showCancelButton:!1,callback:function(e){}}),n.close(),t.abrupt("return");case 65:a&&"ArrowAnnotate"===a.type&&(p=e.getQuestionId(0),e.$set(e.questionForm,p,5),u=5);case 66:if(0!==e.lesionType||2!==l){t.next=78;break}if(1!==f){t.next=74;break}if(!a){t.next=72;break}return e.$confirm(e.$t("trials:reading:warnning:msg27"),{type:"warning",showCancelButton:!1,callback:function(e){}}),n.close(),t.abrupt("return");case 72:t.next=78;break;case 74:if(!a){t.next=78;break}return e.$confirm(e.$t("trials:reading:warnning:msg28"),{type:"warning",showCancelButton:!1,callback:function(e){}}),n.close(),t.abrupt("return");case 78:if(0!==e.lesionType||3!==l){t.next=93;break}if(1!==f){t.next=86;break}if(a&&"Bidirectional"===a.type&&d<10){t.next=84;break}return e.$confirm(e.$t("trials:reading:warnning:msg29"),{type:"warning",showCancelButton:!1,callback:function(e){}}),n.close(),t.abrupt("return");case 84:t.next=93;break;case 86:if(a&&"ArrowAnnotate"===a.type){t.next=92;break}return e.$confirm(e.$t("trials:reading:warnning:msg30"),{type:"warning",showCancelButton:!1,callback:function(e){}}),n.close(),t.abrupt("return");case 92:a&&"ArrowAnnotate"===a.type&&(m=e.getQuestionId(0),e.$set(e.questionForm,m,0),u=0);case 93:if(1!==e.lesionType||0!==l){t.next=105;break}if(1!==f){t.next=101;break}if(a&&("Bidirectional"===a.type||"RectangleRoi"===a.type)){t.next=99;break}return e.$confirm(e.$t("trials:reading:warnning:msg31"),{type:"warning",showCancelButton:!1,callback:function(e){}}),n.close(),t.abrupt("return");case 99:t.next=105;break;case 101:if(a&&("Length"===a.type||"RectangleRoi"===a.type)){t.next=105;break}return e.$confirm(e.$t("trials:reading:warnning:msg32"),{type:"warning",showCancelButton:!1,callback:function(e){}}),n.close(),t.abrupt("return");case 105:if(1!==e.lesionType||1!==l){t.next=117;break}if(1!==f){t.next=113;break}if(a&&("Bidirectional"===a.type||"RectangleRoi"===a.type)){t.next=111;break}return e.$confirm(e.$t("trials:reading:warnning:msg33"),{type:"warning",showCancelButton:!1,callback:function(e){}}),n.close(),t.abrupt("return");case 111:t.next=117;break;case 113:if(a&&("Length"===a.type||"RectangleRoi"===a.type)){t.next=117;break}return e.$confirm(e.$t("trials:reading:warnning:msg34"),{type:"warning",showCancelButton:!1,callback:function(e){}}),n.close(),t.abrupt("return");case 117:if(1!==e.lesionType||2!==l){t.next=129;break}if(1!==f){t.next=125;break}if(!a){t.next=123;break}return e.$confirm(e.$t("trials:reading:warnning:msg35"),{type:"warning",showCancelButton:!1,callback:function(e){}}),n.close(),t.abrupt("return");case 123:t.next=129;break;case 125:if(!a){t.next=129;break}return e.$confirm(e.$t("trials:reading:warnning:msg36"),{type:"warning",showCancelButton:!1,callback:function(e){}}),n.close(),t.abrupt("return");case 129:if(1!==e.lesionType||3!==l){t.next=141;break}if(1!==f){t.next=137;break}if(a&&"ArrowAnnotate"===a.type){t.next=135;break}return e.$confirm(e.$t("trials:reading:warnning:msg37"),{type:"warning",showCancelButton:!1,callback:function(e){}}),n.close(),t.abrupt("return");case 135:t.next=141;break;case 137:if(a&&"ArrowAnnotate"===a.type){t.next=141;break}return e.$confirm(e.$t("trials:reading:warnning:msg38"),{type:"warning",showCancelButton:!1,callback:function(e){}}),n.close(),t.abrupt("return");case 141:if(2!==e.lesionType||0!==l){t.next=153;break}if(1!==f){t.next=149;break}if(a&&("Bidirectional"===a.type||"ArrowAnnotate"===a.type)){t.next=147;break}return e.$confirm(e.$t("trials:reading:warnning:msg39"),{type:"warning",showCancelButton:!1,callback:function(e){}}),n.close(),t.abrupt("return");case 147:t.next=153;break;case 149:if(a&&("Length"===a.type||"ArrowAnnotate"===a.type)){t.next=153;break}return e.$confirm(e.$t("trials:reading:warnning:msg40"),{type:"warning",showCancelButton:!1,callback:function(e){}}),n.close(),t.abrupt("return");case 153:if(2!==e.lesionType||1!==l){t.next=165;break}if(1!==f){t.next=161;break}if(a&&("Bidirectional"===a.type||"ArrowAnnotate"===a.type)){t.next=159;break}return e.$confirm(e.$t("trials:reading:warnning:msg41"),{type:"warning",showCancelButton:!1,callback:function(e){}}),n.close(),t.abrupt("return");case 159:t.next=165;break;case 161:if(a&&("Length"===a.type||"ArrowAnnotate"===a.type)){t.next=165;break}return e.$confirm(e.$t("trials:reading:warnning:msg42"),{type:"warning",showCancelButton:!1,callback:function(e){}}),n.close(),t.abrupt("return");case 165:if(2!==e.lesionType||2!==l){t.next=177;break}if(1!==f){t.next=173;break}if(!a){t.next=171;break}return e.$confirm(e.$t("trials:reading:warnning:msg43"),{type:"warning",showCancelButton:!1,callback:function(e){}}),n.close(),t.abrupt("return");case 171:t.next=177;break;case 173:if(!a){t.next=177;break}return e.$confirm(e.$t("trials:reading:warnning:msg44"),{type:"warning",showCancelButton:!1,callback:function(e){}}),n.close(),t.abrupt("return");case 177:if(2!==e.lesionType||3!==l){t.next=189;break}if(1!==f){t.next=185;break}if(a&&"ArrowAnnotate"===a.type){t.next=183;break}return e.$confirm(e.$t("trials:reading:warnning:msg45"),{type:"warning",showCancelButton:!1,callback:function(e){}}),n.close(),t.abrupt("return");case 183:t.next=189;break;case 185:if(a&&"ArrowAnnotate"===a.type){t.next=189;break}return e.$confirm(e.$t("trials:reading:warnning:msg46"),{type:"warning",showCancelButton:!1,callback:function(e){}}),n.close(),t.abrupt("return");case 189:c["a"].$emit("getScreenshots",function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(i){var l,f,h,p,m,g,v;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(l="",!i){t.next=18;break}return t.next=4,e.uploadScreenshots("".concat((new Date).getTime()),i);case 4:for(g in f=t.sent,l=f.isSuccess?f.result.url:"",h=[],p=new RegExp(/^[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}$/),m=function(t){p.test(t)&&-1===h.findIndex((function(e){return e.tableQuestionId===t}))&&h.push({tableQuestionId:t,answer:e.questionForm[t]})},e.questionForm)m(g);if(v={questionId:e.parentQsId,rowId:e.questionForm.RowId,rowIndex:e.answers.RowIndex,visitTaskId:e.visitTaskId,trialId:e.trialId,measureData:a?JSON.stringify(a):"",answerList:h,isCanEditPosition:e.questionForm.IsCanEditPosition,studyId:a?e.questionForm.MeasureData.studyId:"",seriesId:a?e.questionForm.MeasureData.seriesId:"",instanceId:a?e.questionForm.MeasureData.instanceId:"",numberOfFrames:a&&!isNaN(parseInt(e.questionForm.MeasureData.frame))?parseInt(e.questionForm.MeasureData.frame):0,picturePath:l,organInfoId:e.questionForm.OrganInfoId},!1===e.questionForm.IsDicomReading&&(v.isDicomReading=!1),!e.deleteInfo){t.next=17;break}return t.next=15,e.deleteOldLesion(e.deleteInfo.questionId,e.deleteInfo.rowId);case 15:e.deleteInfo=null,v.rowId="";case 17:Object(s["ef"])(v).then(function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(i){var a,o,s,l;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.$message.success(e.$t("common:message:savedSuccessfully")),e.$set(e.questionForm,"saveTypeEnum",2),e.originalQuestionForm=Object(r["a"])({},e.questionForm),n.close(),a=e.getQuestionVal(2),a=a?parseInt(a):null,o=e.getQuestionVal(6),e.$set(e.questionForm,"RowId",i.Result.RowId),s=e.getQuestionVal(8),l=Number(e.getQuestionVal(7)),e.$emit("resetQuestions",{isLymphLesion:a,lesionPart:s,lesionOrgan:o,lesionShort:d,saveTypeEnum:e.questionForm.saveTypeEnum,lesionLength:u,lesionState:l,rowIndex:e.rowIndex,questionId:e.parentQsId,anwsers:e.questionForm}),e.$emit("close"),c["a"].$emit("getReportInfo",!0);case 13:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(){n.close()}));case 18:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 190:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())},handleDeleteMeasureData:function(){var e=this;this.$confirm(this.$t("trials:reading:warnning:msg47"),{type:"warning",distinguishCancelAndClose:!0}).then(Object(o["a"])(regeneratorRuntime.mark((function t(){var i,n,a,r,o,s,l,d,f;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.organList=[],t.next=3,e.getOrganInfoList();case 3:return i=e.getQuestionId(0),e.$set(e.questionForm,i,""),n=e.getQuestionId(1),e.$set(e.questionForm,n,""),a=e.getQuestionId(7),e.$set(e.questionForm,a,""),e.questionForm.RowId?e.$set(e.questionForm,"saveTypeEnum",1):e.$set(e.questionForm,"saveTypeEnum",0),t.next=12,u["a"].dispatch("reading/removeMeasuredData",{visitTaskId:e.visitTaskId,measureData:e.questionForm.MeasureData,questionId:e.parentQsId,rowIndex:e.questionForm.RowIndex});case 12:c["a"].$emit("getMeasureData"),r=e.getQuestionVal(2),r=isNaN(parseInt(r))?null:parseInt(r),o=e.getQuestionVal(8),s=e.getQuestionVal(6),l="",d="",f=isNaN(parseInt(e.getQuestionVal(7)))?"":parseInt(e.getQuestionVal(7)),e.questionForm.IsDicomReading||c["a"].$emit("removeNoneDicomMeasureData",e.questionForm.MeasureData),e.$set(e.questionForm,"IsDicomReading",!0),e.$set(e.questionForm,"MeasureData",""),e.$emit("resetQuestions",{isLymphLesion:r,lesionPart:o,lesionOrgan:s,lesionShort:d,lesionState:f,saveTypeEnum:e.questionForm.saveTypeEnum,lesionLength:l,rowIndex:e.rowIndex,questionId:e.parentQsId,anwsers:e.questionForm});case 24:case"end":return t.stop()}}),t)})))).catch((function(){}))},handleDelete:function(){var e=this;this.$confirm(this.$t("trials:reading:warnning:msg48"),{type:"warning",distinguishCancelAndClose:!0}).then(Object(o["a"])(regeneratorRuntime.mark((function t(){var i,n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.questionForm.RowId?(i=e.$loading({fullscreen:!0}),n={visitTaskId:e.visitTaskId,questionId:e.parentQsId,rowId:e.questionForm.RowId},Object(s["tb"])(n).then(function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(i.close(),!n.IsSuccess){t.next=10;break}if(!e.questionForm.MeasureData){t.next=5;break}return t.next=5,u["a"].dispatch("reading/removeMeasuredData",{visitTaskId:e.visitTaskId,measureData:e.questionForm.MeasureData,questionId:e.parentQsId,rowIndex:e.questionForm.RowIndex});case 5:!e.questionForm.IsDicomReading&&e.questionForm.MeasureData&&c["a"].$emit("removeNoneDicomMeasureData",e.questionForm.MeasureData),e.$emit("close",{lesionType:e.lesionType,rowIndex:e.rowIndex,visitTaskId:e.visitTaskId}),c["a"].$emit("getReportInfo",!0),e.$message.success(e.$t("common:message:deletedSuccessfully")),i.close();case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(){i.close()}))):(!e.questionForm.IsDicomReading&&e.questionForm.MeasureData&&c["a"].$emit("removeNoneDicomMeasureData",e.questionForm.MeasureData),e.$emit("close",{lesionType:e.lesionType,rowIndex:e.rowIndex,visitTaskId:e.visitTaskId}));case 1:case"end":return t.stop()}}),t)}))))},handleClose:function(){var e=this;this.questionForm.RowId?(this.questionForm.saveTypeEnum,this.$emit("close")):this.$confirm(this.$t("trials:reading:warnning:msg49"),{type:"warning",distinguishCancelAndClose:!0}).then(Object(o["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.questionForm.MeasureData){t.next=3;break}return t.next=3,u["a"].dispatch("reading/removeMeasuredData",{visitTaskId:e.visitTaskId,measureData:e.questionForm.MeasureData,questionId:e.parentQsId,rowIndex:e.questionForm.RowIndex});case 3:c["a"].$emit("getMeasureData"),e.$emit("close",{lesionType:e.lesionType,rowIndex:e.rowIndex,visitTaskId:e.visitTaskId});case 5:case"end":return t.stop()}}),t)})))).catch((function(){}))}}},f=d,h=(i("0f10"),i("2877")),p=Object(h["a"])(f,n,a,!1,null,"6de23e7b",null);t["default"]=p.exports},"1b2e":function(e,t,i){},"1b38":function(e,t,i){},"1b3f":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"preview-wrapper"},[i("div",{staticClass:"left-wrapper"},e._l(e.noneDicomStudyList,(function(t){return i("div",{key:t.Id},[i("div",{staticClass:"study-info"},[i("h4",[e._v(e._s(t.CodeView+" (Modality: "+t.Modality+")"))])]),e._v(" "),i("ul",e._l(t.NoneDicomStudyFileList,(function(t){return i("li",{key:t.Id},[i("el-button",{class:{activeBtn:t.Id===e.fileInfo.currentId},staticStyle:{width:"100%","text-align":"left"},attrs:{plain:""},on:{click:function(i){return e.preview(t)}}},[e._v(e._s(t.FileName))])],1)})),0)])})),0),e._v(" "),i("div",{staticClass:"right-wrapper"},[0===e.fileInfo.currentFileType?i("iframe",{attrs:{frameborder:"0",src:e.fileInfo.currentFilePath,width:"100%",height:"100%"}}):1===e.fileInfo.currentFileType?i("iframe",{attrs:{src:"/static/pdfjs/web/viewer.html?file="+e.fileInfo.currentFilePath,width:"100%",height:"100%",frameborder:"0"}}):2===e.fileInfo.currentFileType?i("div",[e._v("\n "+e._s(e.$t("common:message:downloadFile"))+"\n "),i("el-link",{attrs:{type:"primary"},on:{click:function(t){return e.downLoadFile(e.fileInfo.currentFilePath)}}},[e._v(e._s(e.$t("common:button:download")))])],1):e._e()])])},a=[],r=(i("7514"),i("3e42")),o=i("4360"),s=i("a599"),l={name:"MultipleNoneDicom",data:function(){return{fileInfo:{currentId:"",currentFileName:"",currentFilePath:"",currentFileType:null},noneDicomStudyList:[],subjectVisitId:""}},mounted:function(){this.$router.currentRoute.query.TokenKey&&(o["a"].dispatch("user/setToken",this.$router.currentRoute.query.TokenKey),Object(s["a"])("TokenKey","")),this.subjectVisitId=this.$router.currentRoute.query.Id,this.getNoneDicomList()},methods:{getNoneDicomList:function(){var e=this;this.loading=!0,Object(r["xc"])(this.subjectVisitId).then((function(t){e.noneDicomStudyList=t.Result,e.loading=!1;var i=e.noneDicomStudyList.find((function(e,t){return e.NoneDicomStudyFileList.length>0}));void 0!==i&&e.preview(i.NoneDicomStudyFileList[0])})).catch((function(){e.loading=!1}))},downLoadFile:function(e){e&&window.open(e,"_blank")},preview:function(e){this.$set(this.fileInfo,"currentId",e.Id),this.$set(this.fileInfo,"currentFileName",e.FileName),this.$set(this.fileInfo,"currentFileType",this.getFileType(e.FileName)),this.$set(this.fileInfo,"currentFilePath",e.FullFilePath)},getFileType:function(e){if(!e)return null;var t=e.substring(e.lastIndexOf(".")+1).toLocaleLowerCase();return-1!==t.indexOf("jpg")||-1!==t.indexOf("png")?0:-1!==t.indexOf("pdf")?1:2}}},c=l,u=(i("a088"),i("2877")),d=Object(u["a"])(c,n,a,!1,null,null,null);t["default"]=d.exports},"1b5d":function(e,t,i){},"1bd1":function(e,t,i){},"1bd14":function(e,t){e.exports=(e,t)=>{const i=e._malloc(t.length*Uint32Array.BYTES_PER_ELEMENT);return t.forEach((t,n)=>{const a=e._malloc(t.length+1);e.writeAsciiToMemory(t,a),e.setValue(i+Uint32Array.BYTES_PER_ELEMENT*n,a,"i32")}),[t.length,i]}},"1c5f":function(e,t,i){var n=i("401b"),a=i("6d8b"),r=i("0c37"),o=r.getCurvenessForEdge;function s(e){var t=e.coordinateSystem;if(!t||"view"===t.type){var i=e.getGraph();i.eachNode((function(e){var t=e.getModel();e.setLayout([+t.get("x"),+t.get("y")])})),l(i,e)}}function l(e,t){e.eachEdge((function(e,i){var r=a.retrieve3(e.getModel().get("lineStyle.curveness"),-o(e,t,i,!0),0),s=n.clone(e.node1.getLayout()),l=n.clone(e.node2.getLayout()),c=[s,l];+r&&c.push([(s[0]+l[0])/2-(s[1]-l[1])*r,(s[1]+l[1])/2-(l[0]-s[0])*r]),e.setLayout(c)}))}t.simpleLayout=s,t.simpleLayoutEdge=l},"1ccf":function(e,t,i){var n=i("4e08"),a=(n.__DEV__,i("6d8b")),r=i("fd27"),o=i("3842"),s=o.parsePercent,l=i("697e"),c=l.createScaleByModel,u=l.niceScaleExtent,d=i("2039"),f=i("ee1a"),h=f.getStackedDimension;function p(e,t,i){var n=t.get("center"),r=i.getWidth(),o=i.getHeight();e.cx=s(n[0],r),e.cy=s(n[1],o);var l=e.getRadiusAxis(),c=Math.min(r,o)/2,u=t.get("radius");null==u?u=[0,"100%"]:a.isArray(u)||(u=[0,u]),u=[s(u[0],c),s(u[1],c)],l.inverse?l.setExtent(u[1],u[0]):l.setExtent(u[0],u[1])}function m(e,t){var i=this,n=i.getAngleAxis(),r=i.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),r.scale.setExtent(1/0,-1/0),e.eachSeries((function(e){if(e.coordinateSystem===i){var t=e.getData();a.each(t.mapDimension("radius",!0),(function(e){r.scale.unionExtentFromData(t,h(t,e))})),a.each(t.mapDimension("angle",!0),(function(e){n.scale.unionExtentFromData(t,h(t,e))}))}})),u(n.scale,n.model),u(r.scale,r.model),"category"===n.type&&!n.onBand){var o=n.getExtent(),s=360/n.scale.count();n.inverse?o[1]+=s:o[1]-=s,n.setExtent(o[0],o[1])}}function g(e,t){if(e.type=t.get("type"),e.scale=c(t),e.onBand=t.get("boundaryGap")&&"category"===e.type,e.inverse=t.get("inverse"),"angleAxis"===t.mainType){e.inverse^=t.get("clockwise");var i=t.get("startAngle");e.setExtent(i,i+(e.inverse?-360:360))}t.axis=e,e.model=t}i("78f0");var v={dimensions:r.prototype.dimensions,create:function(e,t){var i=[];return e.eachComponent("polar",(function(e,n){var a=new r(n);a.update=m;var o=a.getRadiusAxis(),s=a.getAngleAxis(),l=e.findAxisModel("radiusAxis"),c=e.findAxisModel("angleAxis");g(o,l),g(s,c),p(a,e,t),i.push(a),e.coordinateSystem=a,a.model=e})),e.eachSeries((function(t){if("polar"===t.get("coordinateSystem")){var i=e.queryComponents({mainType:"polar",index:t.get("polarIndex"),id:t.get("polarId")})[0];t.coordinateSystem=i.coordinateSystem}})),i}};d.register("polar",v)},"1cf3":function(e,t,i){"use strict";i("8c29")},"1d19":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{height:"100%","overflow-y":"auto"}},[i("router-view")],1)},a=[],r=i("2877"),o={},s=Object(r["a"])(o,n,a,!1,null,null,null);t["default"]=s.exports},"1d50":function(e,t,i){"use strict";i("6dd1")},"1d5d":function(e,t,i){},"1d64":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"sign-form-wrapper"},[i("div",{staticClass:"sign-form-body"},[e.signText?i("h4",{staticStyle:{color:"red"}},[e._v("*"+e._s(e.signText))]):e._e(),e._v(" "),i("el-form",{ref:"signForm",attrs:{model:e.signForm,size:"small","label-width":"100px"}},[i("el-form-item",{attrs:{label:e.$t("common:form:sign:userName"),prop:"UserName",rules:[{required:!0,message:e.$t("common:ruleMessage:specify"),trigger:"blur"}]}},[i("el-input",{model:{value:e.signForm.UserName,callback:function(t){e.$set(e.signForm,"UserName",t)},expression:"signForm.UserName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("common:form:sign:password"),prop:"Password",rules:[{required:!0,message:e.$t("common:ruleMessage:specify"),trigger:"blur"}]}},[i("el-input",{attrs:{"show-password":"","auto-complete":"new-password"},model:{value:e.signForm.Password,callback:function(t){e.$set(e.signForm,"Password",t)},expression:"signForm.Password"}})],1)],1)],1),e._v(" "),i("div",{staticClass:"dialog-footer sign-form-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.handleclose}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{loading:e.btnLoading,size:"small",type:"primary"},on:{click:e.userConfirm}},[e._v("\n "+e._s(e.$t("common:button:sign"))+"\n ")])],1)])},a=[],r=(i("a481"),i("e56e")),o=i("adca"),s=i("8237"),l=i.n(s),c="Document_Sign_Code",u={name:"SignForm",props:{fileName:{type:String,required:!0},isSystemDoc:{type:Boolean,required:!0},documentId:{type:String,required:!0},trialId:{type:String,default:""}},data:function(){return{signForm:{UserName:"",Password:""},signText:"",btnLoading:!1,loading:!1}},mounted:function(){var e=this;this.loading=!0,Object(r["yb"])(c).then((function(t){var i=t.Result.Value;e.signText=i.replace("xxx",e.fileName),e.loading=!1})).catch((function(){e.loading=!1}))},methods:{userConfirm:function(){var e=this,t=zzSessionStorage.getItem("userName").toLocaleLowerCase();this.$refs.signForm.validate((function(i){if(console.log(i),i)if(e.signForm.UserName.trim().toLocaleLowerCase()===t){e.btnLoading=!0;var n={data:{trialId:e.trialId,documentId:e.documentId,isSystemDoc:e.isSystemDoc},signInfo:{UserName:e.signForm.UserName,PassWord:l()(e.signForm.Password),TrialId:e.trialId,SignCode:"",SignText:e.signText,SignCodeId:"",SubjectVisitId:""}};Object(o["b"])(n).then((function(t){t.IsSuccess&&(e.$message.success(e.$t("common:message:signSuccessfully")),e.$emit("closeDialog",!0))})).catch((function(){e.btnLoading=!1}))}else e.$message.error(e.$t("common:message:signWarning"))}))},handleclose:function(){this.$emit("closeDialog",!1)}}},d=u,f=(i("0ec8"),i("2877")),h=Object(f["a"])(d,n,a,!1,null,"2bf9d970",null);t["default"]=h.exports},"1d92":function(e,t,i){var n=i("e0ef");function a(e){return n(2,e)}e.exports=a},"1db3":function(e,t,i){},"1ddd":function(e,t,i){},"1dfe":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[i("div",{staticStyle:{padding:"0 20px"}},[i("div",{staticStyle:{"font-size":"16px","margin-bottom":"10px"}},[e._v(e._s(e.$t("trials:consistencyCheck:title:message1")))]),e._v(" "),i("div",{staticStyle:{"font-size":"16px","margin-bottom":"10px"}},[e._v(e._s(e.$t("trials:consistencyCheck:title:message2")))]),e._v(" "),i("div",{staticStyle:{"padding-left":"10px"}},[i("el-checkbox-group",{staticStyle:{display:"flex","flex-direction":"column"},model:{value:e.checkedOne,callback:function(t){e.checkedOne=t},expression:"checkedOne"}},e._l(e.crcMessageInfo.arrayOnelist,(function(t,n){return i("el-checkbox",{staticStyle:{"margin-bottom":"10px"},attrs:{label:n}},[i("span",{domProps:{innerHTML:e._s(t)}},[e._v(e._s(t))])])})),1)],1),e._v(" "),i("div",{staticStyle:{"margin-top":"20px",color:"#F56C6C"}},[e.checkedOne.length>0?i("div",{staticStyle:{"margin-bottom":"10px"}},[e._v("\n "+e._s(e.$t("trials:consistencyCheck:title:message3"))+"\n ")]):e._e()]),e._v(" "),e.checkedOne.length>0?i("div",[i("el-form",[i("el-form-item",{attrs:{"label-width":"130px",label:e.$t("trials:consistencyCheck:title:message4")}},[i("el-input",{attrs:{type:"textarea",rows:2,maxlength:"100","show-word-limit":""},model:{value:e.reasonOne,callback:function(t){e.reasonOne=t},expression:"reasonOne"}})],1)],1)],1):e._e(),e._v(" "),e.crcMessageInfo.arrayTwolist.length>0?i("div",{staticStyle:{"font-size":"16px","margin-bottom":"10px","margin-top":"20px"}},[e._v("\n "+e._s(e.$t("trials:consistencyCheck:title:message5"))+"\n ")]):i("div",{staticStyle:{"font-size":"16px","margin-bottom":"10px","margin-top":"20px"}},[e._v("\n "+e._s(e.$t("trials:consistencyCheck:title:message6"))+"\n ")]),e._v(" "),i("div",{staticStyle:{"padding-left":"10px"}},[i("el-checkbox-group",{staticStyle:{display:"flex","flex-direction":"column"},model:{value:e.checkedTwo,callback:function(t){e.checkedTwo=t},expression:"checkedTwo"}},e._l(e.crcMessageInfo.arrayTwolist,(function(t,n){return i("el-checkbox",{staticStyle:{"margin-bottom":"10px"},attrs:{label:n}},[i("span",{domProps:{innerHTML:e._s(t)}},[e._v(e._s(t))])])})),1)],1),e._v(" "),i("div",{staticStyle:{"margin-top":"20px",color:"#F56C6C"}},[e.checkedTwo.length>0?i("div",{staticStyle:{"margin-bottom":"10px"}},[e._v("\n "+e._s(e.$t("trials:consistencyCheck:title:message7"))+"\n ")]):e._e()]),e._v(" "),e.checkedTwo.length>0?i("div",[i("el-form",[i("el-form-item",{attrs:{"label-width":"130px",label:e.$t("trials:consistencyCheck:title:message8")}},[i("el-checkbox-group",{staticStyle:{display:"flex","flex-direction":"column"},model:{value:e.reasonTwo,callback:function(t){e.reasonTwo=t},expression:"reasonTwo"}},[i("el-checkbox",{staticStyle:{display:"block"},attrs:{label:"EDC按疗效评估数据记录影像检查信息;"}},[e._v("\n "+e._s(e.$t("trials:consistencyCheck:title:message9"))+"\n ")]),e._v(" "),i("el-checkbox",{staticStyle:{display:"block"},attrs:{label:"EDC录入错误;"}},[e._v("\n "+e._s(e.$t("trials:consistencyCheck:title:message10"))+"\n ")]),e._v(" "),i("el-checkbox",{staticStyle:{display:"block"},attrs:{label:"IRC数据上传错误申请回退并重新上传;"}},[e._v("\n "+e._s(e.$t("trials:consistencyCheck:title:message11"))+"\n ")])],1)],1)],1)],1):e._e()]),e._v(" "),i("div",{staticClass:"function"},[i("el-button",{attrs:{type:"primary"},on:{click:e.handleReply}},[e._v("\n "+e._s(e.$t("trials:consistencyCheck:button:sendMessage"))+"\n ")])],1)])},a=[],r=(i("ac6a"),{name:"CrcSendMessage",props:{crcMessageInfo:{type:Object,default:function(){return{arrayOnelist:[],arrayTwolist:[]}}}},data:function(){return{checkedOne:[],checkedTwo:[],reasonTwo:[],reasonOne:null,loading:!1}},mounted:function(){console.log(this.crcMessageInfo)},methods:{closeLoading:function(){this.loading=!1},handleReply:function(){var e=this;this.loading=!0;var t="";return t+="".concat($t("trials:consistencyCheck:title:message12"),"<br>"),this.crcMessageInfo.arrayOnelist.forEach((function(i,n){e.checkedOne.indexOf(n)>-1?t+="".concat($t("trials:consistencyCheck:title:none"),"<br>"):t+=e.crcMessageInfo.arrayOnelist[n]+"<br>"})),console.log(t),t+="<br>",this.checkedTwo.length>0?(t+="".concat($t(" trials:consistencyCheck:title:message13"),"<br>"),this.checkedTwo.forEach((function(i){t+=e.crcMessageInfo.arrayTwolist[i]+"<br>"})),t+="<br>"):t+="".concat($t(" trials:consistencyCheck:title:message14"),"<br><br>"),t+="".concat($t(" trials:consistencyCheck:title:message15"),"<br>"),this.checkedOne.length>0&&(t+="".concat($t(" trials:consistencyCheck:title:message16")),t+=this.reasonOne,t+="<br>",!this.reasonOne)?(this.loading=!1,void this.$message.error(this.$t("trials:consistencyCheck:title:message17"))):this.checkedTwo.length>0&&(t+="".concat($t(" trials:consistencyCheck:title:message18")),this.reasonTwo.forEach((function(e){t+=e})),!this.reasonTwo.length)?(this.$message.error(this.$t("trials:consistencyCheck:title:message19")),void(this.loading=!1)):void this.$emit("sendMessage",t,this.closeLoading)}}}),o=r,s=(i("2b5b"),i("2877")),l=Object(s["a"])(o,n,a,!1,null,"6b20cede",null);t["default"]=l.exports},"1e25":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",{staticClass:"stats-wrapper"},[i("div",{staticClass:"search"},[i("SearchForm",{attrs:{size:"mini",that:this,"search-data":e.searchData,"search-form":e.workloadStats_form,"search-handle":e.workloadStats_handle},on:{search:e.handleSearch,reset:e.handleReset,export:e.handleExportExcel}},[i("template",{slot:"croSlot"},[i("el-select",{ref:"CROSelection",staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.CROId,callback:function(t){e.$set(e.searchData,"CROId",t)},expression:"searchData.CROId"}},e._l(e.croList,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.CROName,value:e.Id}})})),1)],1),e._v(" "),i("template",{slot:"hospitalSlot"},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.HospitalId,callback:function(t){e.$set(e.searchData,"HospitalId",t)},expression:"searchData.HospitalId"}},e._l(e.hospitalList,(function(e,t){return i("el-option",{key:t,attrs:{label:e.HospitalName,value:e.Id}})})),1)],1),e._v(" "),i("template",{slot:"beginDateSlot"},[i("el-date-picker",{staticStyle:{width:"120px"},attrs:{placeholder:"Beginning Month",type:"month","value-format":"yyyy-MM",format:"yyyy-MM","picker-options":e.beginPickerOption,clearable:!1},model:{value:e.searchData.BeginDate,callback:function(t){e.$set(e.searchData,"BeginDate",t)},expression:"searchData.BeginDate"}})],1),e._v(" "),i("template",{slot:"endDateSlot"},[i("el-date-picker",{staticStyle:{width:"120px"},attrs:{size:"small",placeholder:"End Month",type:"month","value-format":"yyyy-MM",format:"yyyy-MM","picker-options":e.endpickerOption,clearable:!1},model:{value:e.searchData.EndDate,callback:function(t){e.$set(e.searchData,"EndDate",t)},expression:"searchData.EndDate"}})],1),e._v(" "),i("template",{slot:"exportSlot"},[i("el-button",{attrs:{type:"primary",disabled:0==e.arrID.length},on:{click:e.handleExportExcel}},[e._v("Export Excel")])],1)],2)],1),e._v(" "),i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:45},expression:"{bottomOffset:45}"},{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],ref:"workloadStats",attrs:{stripe:"",height:"100",data:e.list,"summary-method":e.getSummaries,"show-summary":""},on:{"sort-change":e.sortByColumn,"selection-change":e.handleSelectChange}},[i("el-table-column",{attrs:{type:"selection"}}),e._v(" "),i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialCode",sortable:"custom",label:"Trial ID","min-width":"150","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Indication",sortable:"custom",label:"Indication","min-width":"120","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Cro",sortable:"custom",label:"CRO","min-width":"90","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:"Name","show-overflow-tooltip":"","min-width":"100",prop:"FirstName",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.LastName)+" / "+e._s(t.row.FirstName))]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ChineseName",sortable:"custom",label:"Name CN","min-width":"110","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ReviewerCode",label:"Reviewer ID","min-width":"130",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Training",sortable:"custom",label:"Training","min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"RefresherTraining",label:"Refresher Training","min-width":"170","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{label:"Timepoint",align:"center"}},[i("el-table-column",{attrs:{prop:"Timepoint",label:"Regular","min-width":"100","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TimepointIn48H",label:"48-hour","min-width":"100","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TimepointIn24H",label:"24-hour","min-width":"100","show-overflow-tooltip":"",sortable:"custom"}})],1),e._v(" "),i("el-table-column",{attrs:{label:"Adjudication",align:"center"}},[i("el-table-column",{attrs:{prop:"Adjudication",label:"Regular","min-width":"100","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"AdjudicationIn48H",label:"48-hour","min-width":"100","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"AdjudicationIn24H",label:"24-hour","min-width":"100","show-overflow-tooltip":"",sortable:"custom"}})],1),e._v(" "),i("el-table-column",{attrs:{prop:"Global",label:"Global","min-width":"90","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Downtime",label:"Downtime","min-width":"120","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"PersonalTotal",label:"Reading Total","min-width":"140","show-overflow-tooltip":"",sortable:"custom"}})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1)},a=[],r=(i("c5f6"),i("ac6a"),i("db72")),o=i("48fb"),s=i("4360"),l=i("2f62"),c=i("7878"),u=i("e8ae"),d=i.n(u),f=i("fe09"),h=i("333d"),p=i("f36a"),m=i("d13d"),g=function(){return{PageSize:20,PageIndex:1,Asc:!0,SortField:"",CROId:"",TrialCode:"",Reviewer:"",BeginDate:Object(c["FormatTime"])(new Date((new Date).setMonth((new Date).getMonth()-5)),"yyyy-MM"),EndDate:Object(c["FormatTime"])(new Date,"yyyy-MM")}},v={name:"WorkloadStats",components:{Pagination:h["default"],BoxContent:p["default"],SearchForm:m["default"]},data:function(){var e=this;return{workloadStats_form:f["g"],workloadStats_handle:f["h"],searchData:g(),list:[],listLoading:!1,total:0,arrID:[],beginPickerOption:{disabledDate:function(t){return e.searchData.EndDate?t.getTime()>new Date(e.searchData.EndDate).getTime():t.getTime()>Date.now()}},endpickerOption:{disabledDate:function(t){return e.searchData.BeginDate?t.getTime()>Date.now()||t.getTime()<=new Date(e.searchData.BeginDate).getTime():t.getTime()>Date.now()}}}},computed:Object(r["a"])({},Object(l["b"])(["croList","hospitalList"])),mounted:function(){this.getList(),s["a"].dispatch("global/getCROList"),s["a"].dispatch("global/getHospital")},methods:{getList:function(){var e=this;this.listLoading=!0,Object(o["e"])(this.searchData).then((function(t){e.listLoading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.listLoading=!1}))},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=g(),this.getList()},getSummaries:function(e){var t=this;this.$nextTick((function(){t.$refs.workloadStats.doLayout()}));var i=e.columns,n=e.data,a=[];return i.forEach((function(e,t){if(2!==t){if("TrialCode"!==e.property&&"Indication"!==e.property){var i=n.map((function(t){return Number(t[e.property])}));i.every((function(e){return isNaN(e)}))||(a[t]=i.reduce((function(e,t){var i=Number(t);return isNaN(i)?e:e+t}),0))}}else a[t]="Total (Current Page)"})),a},sortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()},handleSelectChange:function(e){for(var t=[],i=0;i<e.length;i++)t.push(e[i].Id);this.arrID=t},handleExportExcel:function(){var e=this,t="".concat(this.searchData.BeginDate,"~").concat(this.searchData.EndDate),i=[{key:"Index",width:5},{key:"TrialCode",width:20},{key:"Indication",width:15},{key:"Cro",width:10},{key:"LastName",width:15},{key:"FirstName",width:15},{key:"ChineseName",width:10},{key:"ReviewerCode",width:15},{key:"Training",width:10},{key:"RefresherTraining",width:22},{key:"Timepoint",width:10},{key:"TimepointIn48H",width:10},{key:"TimepointIn24H",width:10},{key:"Adjudication",width:10},{key:"AdjudicationIn48H",width:10},{key:"AdjudicationIn24H",width:10},{key:"Global",width:10},{key:"Downtime",width:10},{key:"PersonalTotal",width:10}],n=new d.a.Workbook,a=n.addWorksheet(t);a.columns=i;var r=String.fromCharCode(64+i.length);a.mergeCells("A1:".concat(r,"2")),a.getCell("A1").value="Workload Statistics",a.getCell("A1").alignment={vertical:"middle",horizontal:"center"},a.getCell("A1").font={name:"SimSun",family:4,size:13,bold:!0},a.mergeCells("A3:".concat(r,"3"));var o="Beginning Month:".concat(this.searchData.BeginDate," End Month:").concat(this.searchData.EndDate);this.$refs.CROSelection.selectedLabel&&(o="CRO:".concat(this.$refs.CROSelection.selectedLabel," Beginning Month:").concat(this.searchData.BeginDate," End Month:").concat(this.searchData.EndDate)),a.getCell("A3").value=o,a.getCell("A3").alignment={vertical:"middle",horizontal:"right"},a.getRow(4).values=["","Trial ID","Indication","CRO","Surname","Given Name","Name CN","Reviewer ID","Training","Refresher Training","Timepoint","","","Adjudication","","","Global","Downtime","Total"],a.getRow(4).font={name:"SimSun",family:4,size:11,bold:!0},a.getRow(4).alignment={vertical:"middle",horizontal:"left"},a.getRow(5).values=["","Trial ID","Indication","CRO","Surname","Given Name","Name CN","Reviewer ID","Training","Refresher Training","Regular","48-hour","24-hour","Regular","48-hour","24-hour","Global","Downtime","Total"],a.getRow(5).font={name:"SimSun",family:4,size:11,bold:!0},a.getRow(5).alignment={vertical:"middle",horizontal:"left"},a.mergeCells("K4:M4"),a.mergeCells("N4:P4"),a.mergeCells("A4:A5"),a.mergeCells("B4:B5"),a.mergeCells("C4:C5"),a.mergeCells("D4:D5"),a.mergeCells("E4:E5"),a.mergeCells("F4:F5"),a.mergeCells("G4:G5"),a.mergeCells("H4:H5"),a.mergeCells("I4:I5"),a.mergeCells("J4:J5"),a.mergeCells("Q4:Q5"),a.mergeCells("R4:R5"),a.mergeCells("S4:S5");var s={training:0,refreshertraining:0,tp:0,tp48:0,tp24:0,aj:0,aj48:0,aj24:0,global:0,downtime:0,total:0},l=1,c=this.list.filter((function(t){return e.arrID.indexOf(t.Id)>-1}));c.forEach((function(e){e.Index=l++,s.training+=e.Training,s.refreshertraining+=e.RefresherTraining,s.tp+=e.Timepoint,s.tp48+=e.TimepointIn48H,s.tp24+=e.TimepointIn24H,s.aj+=e.Adjudication,s.aj48+=e.AdjudicationIn48H,s.aj24+=e.AdjudicationIn24H,s.global+=e.Global,s.downtime+=e.Downtime,s.total+=e.PersonalTotal})),a.addRows(c),a.addRow(["","Total","","","","","","",s.training,s.refreshertraining,s.tp,s.tp48,s.tp24,s.aj,s.aj48,s.aj24,s.global,s.downtime,s.total]),a.getRow(c.length+6).font={name:"SimSun",family:4,size:11,bold:!0},a.getColumn(9).numFmt="#,##0.00",a.getColumn(10).numFmt="#,##0.00",a.getColumn(11).numFmt="#,##0.00",a.getColumn(12).numFmt="#,##0.00",a.getColumn(13).numFmt="#,##0.00",a.getColumn(14).numFmt="#,##0.00",a.getColumn(15).numFmt="#,##0.00",a.getColumn(16).numFmt="#,##0.00",a.getColumn(17).numFmt="#,##0.00",a.getColumn(18).numFmt="#,##0.00",a.getColumn(19).numFmt="#,##0.00",a.eachRow((function(e,t){t>3&&e.eachCell((function(e){e.alignment={vertical:"center",horizontal:"left"},e.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}}))})),n.xlsx.writeBuffer({base64:!0}).then((function(e){var i=new Blob([e],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});if("msSaveOrOpenBlob"in navigator)window.navigator.msSaveOrOpenBlob(i,"".concat(t," Workload Statistics.xlsx"));else{var n=document.createElement("a"),a=URL.createObjectURL(i);n.href=a,n.download="".concat(t," Workload Statistics.xlsx"),document.body.appendChild(n),n.click(),setTimeout((function(){document.body.removeChild(n),window.URL.revokeObjectURL(a)}),0)}}))}}},b=v,y=i("2877"),w=Object(y["a"])(b,n,a,!1,null,null,null);t["default"]=w.exports},"1e32":function(e,t,i){var n=i("6d8b"),a=i("3842"),r=a.parsePercent,o=i("ee1a"),s=o.isDimensionStacked;function l(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function c(e,t){return t.dim+e.model.componentIndex}function u(e,t,i){var a={},r=d(n.filter(t.getSeriesByType(e),(function(e){return!t.isSeriesFiltered(e)&&e.coordinateSystem&&"polar"===e.coordinateSystem.type})));t.eachSeriesByType(e,(function(e){if("polar"===e.coordinateSystem.type){var t=e.getData(),i=e.coordinateSystem,n=i.getBaseAxis(),o=c(i,n),u=l(e),d=r[o][u],f=d.offset,h=d.width,p=i.getOtherAxis(n),m=e.coordinateSystem.cx,g=e.coordinateSystem.cy,v=e.get("barMinHeight")||0,b=e.get("barMinAngle")||0;a[u]=a[u]||[];for(var y=t.mapDimension(p.dim),w=t.mapDimension(n.dim),_=s(t,y),I="radius"!==n.dim||!e.get("roundCap",!0),x="radius"===p.dim?p.dataToRadius(0):p.dataToAngle(0),S=0,T=t.count();S<T;S++){var C,k,R,D,L=t.get(y,S),O=t.get(w,S),$=L>=0?"p":"n",N=x;if(_&&(a[u][O]||(a[u][O]={p:x,n:x}),N=a[u][O][$]),"radius"===p.dim){var A=p.dataToRadius(L)-x,P=n.dataToAngle(O);Math.abs(A)<v&&(A=(A<0?-1:1)*v),C=N,k=N+A,R=P-f,D=R-h,_&&(a[u][O][$]=k)}else{var E=p.dataToAngle(L,I)-x,M=n.dataToRadius(O);Math.abs(E)<b&&(E=(E<0?-1:1)*b),C=M+f,k=C+h,R=N,D=N+E,_&&(a[u][O][$]=D)}t.setItemLayout(S,{cx:m,cy:g,r0:C,r:k,startAngle:-R*Math.PI/180,endAngle:-D*Math.PI/180})}}}),this)}function d(e,t){var i={};n.each(e,(function(e,t){var n=e.getData(),a=e.coordinateSystem,o=a.getBaseAxis(),s=c(a,o),u=o.getExtent(),d="category"===o.type?o.getBandWidth():Math.abs(u[1]-u[0])/n.count(),f=i[s]||{bandWidth:d,remainedWidth:d,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},h=f.stacks;i[s]=f;var p=l(e);h[p]||f.autoWidthCount++,h[p]=h[p]||{width:0,maxWidth:0};var m=r(e.get("barWidth"),d),g=r(e.get("barMaxWidth"),d),v=e.get("barGap"),b=e.get("barCategoryGap");m&&!h[p].width&&(m=Math.min(f.remainedWidth,m),h[p].width=m,f.remainedWidth-=m),g&&(h[p].maxWidth=g),null!=v&&(f.gap=v),null!=b&&(f.categoryGap=b)}));var a={};return n.each(i,(function(e,t){a[t]={};var i=e.stacks,o=e.bandWidth,s=r(e.categoryGap,o),l=r(e.gap,1),c=e.remainedWidth,u=e.autoWidthCount,d=(c-s)/(u+(u-1)*l);d=Math.max(d,0),n.each(i,(function(e,t){var i=e.maxWidth;i&&i<d&&(i=Math.min(i,c),e.width&&(i=Math.min(i,e.width)),c-=i,e.width=i,u--)})),d=(c-s)/(u+(u-1)*l),d=Math.max(d,0);var f,h=0;n.each(i,(function(e,t){e.width||(e.width=d),f=e,h+=e.width*(1+l)})),f&&(h-=f.width*l);var p=-h/2;n.each(i,(function(e,i){a[t][i]=a[t][i]||{offset:p,width:e.width},p+=e.width*(1+l)}))})),a}var f=u;e.exports=f},"1e9c":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("user-info",{on:{getUserId:e.getUserId}})},a=[],r=i("dcb4"),o={name:"AddUser",components:{UserInfo:r["default"]},data:function(){return{userId:"",role:!1}},methods:{getUserId:function(e){this.userId=e}}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},"1e9f":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"question-login-wrapper"},[i("div",{staticClass:"box-wrapper"},[i("h2",{staticStyle:{"text-align":"center"}},[e._v("\n "+e._s(e.$t("trials:researchForm:title:question"))+"\n ")]),e._v(" "),i("el-card",{attrs:{shadow:"hover"}},[i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"resetForm",staticClass:"demo-ruleForm",staticStyle:{width:"80%",margin:"0 auto"},attrs:{model:e.form,"label-width":"150px",rules:e.rules,size:"small"}},[i("el-form-item",{attrs:{label:e.$t("trials:researchForm:form:trialId")}},[i("el-input",{attrs:{disabled:""},model:{value:e.form.TrialCode,callback:function(t){e.$set(e.form,"TrialCode",t)},expression:"form.TrialCode"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:researchForm:form:researchNo")}},[i("el-input",{attrs:{disabled:""},model:{value:e.form.ResearchProgramNo,callback:function(t){e.$set(e.form,"ResearchProgramNo",t)},expression:"form.ResearchProgramNo"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:researchForm:form:researchName")}},[i("el-input",{attrs:{disabled:""},model:{value:e.form.ExperimentName,callback:function(t){e.$set(e.form,"ExperimentName",t)},expression:"form.ExperimentName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:researchForm:form:decleareType")}},[i("el-input",{attrs:{disabled:""},model:{value:e.form.IndicationType,callback:function(t){e.$set(e.form,"IndicationType",t)},expression:"form.IndicationType"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:researchForm:form:siteName"),prop:"SiteId"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{filterable:""},on:{change:e.handleSiteChange},model:{value:e.form.SiteId,callback:function(t){e.$set(e.form,"SiteId",t)},expression:"form.SiteId"}},e._l(e.siteOptions,(function(e,t){return i("el-option",{key:t,attrs:{label:e.TrialSiteAliasName,value:e.SiteId}})})),1)],1),e._v(" "),e.form.SiteId?i("el-form-item",{attrs:{label:e.$t("trials:researchForm:form:siteId")}},[i("el-input",{attrs:{disabled:""},model:{value:e.form.TrialSiteCode,callback:function(t){e.$set(e.form,"TrialSiteCode",t)},expression:"form.TrialSiteCode"}})],1):e._e(),e._v(" "),e.form.SiteId&&e.isHaveSiteSurveyRecord?i("el-form-item",{staticStyle:{"text-align":"right"},attrs:{label:""}},[e.form.IsUpdate?i("el-link",{attrs:{type:"primary"},on:{click:function(t){e.form.IsUpdate=!1,e.form.ReplaceUserEmailOrPhone=""}}},[e._v("\n "+e._s(e.$t("trials:researchForm:button:cancelUpdateQsForm"))+"\n ")]):i("el-link",{attrs:{type:"primary"},on:{click:function(t){e.form.IsUpdate=!0}}},[e._v("\n "+e._s(e.$t("trials:researchForm:button:updateQsForm"))+"\n ")])],1):e._e(),e._v(" "),e.form.IsUpdate?i("el-form-item",{attrs:{label:e.$t("trials:researchForm:form:originalEmail"),prop:"ReplaceUserEmailOrPhone"}},[i("el-input",{attrs:{autocomplete:"new-password"},model:{value:e.form.ReplaceUserEmailOrPhone,callback:function(t){e.$set(e.form,"ReplaceUserEmailOrPhone",t)},expression:"form.ReplaceUserEmailOrPhone"}})],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:researchForm:form:contactorEmail"),prop:"EmailOrPhone"}},[i("el-input",{attrs:{autocomplete:"new-password"},on:{change:e.handleEmailChange},model:{value:e.form.EmailOrPhone,callback:function(t){e.$set(e.form,"EmailOrPhone",t)},expression:"form.EmailOrPhone"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:researchForm:form:verifyCode"),required:""}},[i("el-col",{attrs:{span:20}},[i("el-form-item",{attrs:{prop:"VerificationCode"}},[i("el-input",{attrs:{autocomplete:"new-password"},model:{value:e.form.VerificationCode,callback:function(t){e.$set(e.form,"VerificationCode",t)},expression:"form.VerificationCode"}})],1)],1),e._v(" "),i("el-col",{attrs:{span:4}},[i("el-button",{staticStyle:{width:"100%"},attrs:{size:"small",type:"primary",disabled:e.sendDisabled},on:{click:e.handleSendCode}},[e._v(e._s(e.sendTitle))])],1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{size:"small",disabled:e.btnLoading},on:{click:e.onCancel}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.onSubmit}},[e._v("\n "+e._s(e.$t("common:button:submit"))+"\n ")])],1)],1)],1)],1)])},a=[],r=(i("7514"),i("456d"),i("ac6a"),i("96cf"),i("3b8d")),o=(i("c5f6"),i("7cdf"),i("896b")),s=i("c24f"),l=i("4360"),c={data:function(){var e=this,t=function(t,i,n){var a=/^1[3|4|5|7|8][0-9]{9}$/;if(!i)return n(new Error(e.$t("trials:researchForm:formRule:specify")));setTimeout((function(){Number.isInteger(+i)&&a.test(i)?n():n(new Error(e.$t("trials:researchForm:formRule:phone")))}),100)},i=function(t,i,n){if(""===i)n(new Error(e.$t("trials:researchForm:formRule:specify")));else{var a=/^[A-Za-z0-9]+([_\.][A-Za-z0-9]+)*@([A-Za-z0-9\-]+\.)+[A-Za-z]{2,6}$/;e.form.EmailOrPhone&&a.test(e.form.EmailOrPhone)?(e.sendDisabled=!1,n()):(n(new Error(e.$t("trials:researchForm:formRule:email"))),e.sendDisabled=!0)}},n=function(t,i,n){if(""===i)n(new Error(e.$t("trials:researchForm:formRule:specify")));else{var a=/^[A-Za-z0-9]+([_\.][A-Za-z0-9]+)*@([A-Za-z0-9\-]+\.)+[A-Za-z]{2,6}$/;e.form.ReplaceUserEmailOrPhone&&a.test(e.form.ReplaceUserEmailOrPhone)?n():n(new Error(e.$t("trials:researchForm:formRule:email")))}};return{trialId:"",form:{Sponsor:null,ResearchProgramNo:null,TrialCode:null,IndicationType:null,ExperimentName:"",SiteId:null,UserName:null,Phone:null,EmailOrPhone:"",TrialSiteCode:"",IsUpdate:!1,ReplaceUserEmailOrPhone:"",VerificationCode:""},rules:{SiteId:[{required:!0,message:this.$t("trials:researchForm:formRule:specify"),trigger:["blur"]}],UserName:[{required:!0,message:this.$t("trials:researchForm:formRule:specify"),trigger:["blur"]},{min:0,max:50,message:this.$t("trials:researchForm:formRule:maxLength"),trigger:"blur"}],Phone:[{required:!0,validator:t,trigger:["blur"]}],EmailOrPhone:[{required:!0,validator:i,trigger:["blur","change"]}],ReplaceUserEmailOrPhone:[{required:!0,validator:n,trigger:["blur"]}],VerificationCode:[{required:!0,message:this.$t("trials:researchForm:formRule:specify"),trigger:["blur"]}]},siteOptions:[],loading:!1,sendDisabled:!0,btnLoading:!1,sendTitle:this.$t("trials:researchForm:button:send"),count:"",timer:null,isHaveSiteSurveyRecord:!1}},mounted:function(){this.$route.query.trialId&&(this.trialId=this.$route.query.trialId,this.initPage())},methods:{initPage:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.loading=!0,Object(o["i"])(this.trialId).then((function(e){var i=e.Result;t.siteOptions=i.TrialSiteSelectList,Object.keys(t.form).forEach((function(e){i.hasOwnProperty(e)&&(t.form[e]=i[e])})),t.loading=!1})).catch((function(){t.loading=!1}));case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),onSubmit:function(){var e=this;this.$refs["resetForm"].validate((function(t){if(!t)return!1;e.btnLoading=!0,e.sendDisabled=!0,e.form.IsUpdate||(e.form.ReplaceUserEmailOrPhone="");var i={siteId:e.form.SiteId,userName:e.form.UserName,phone:e.form.Phone,verificationType:0,emailOrPhone:e.form.EmailOrPhone,verificationCode:e.form.VerificationCode,isUpdate:e.form.IsUpdate,replaceUserEmailOrPhone:e.form.ReplaceUserEmailOrPhone,trialId:e.trialId};Object(o["n"])(i).then(function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(i){var n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.btnLoading=!1,zzSessionStorage.clear(),l["a"].dispatch("user/setToken",i.Result.Token),zzSessionStorage.setItem("TokenKey",i.Result.Token),t.next=6,Object(s["e"])();case 6:return n=t.sent,t.next=9,Object(s["d"])();case 9:a=t.sent,l["a"].dispatch("user/setTree",a.Result),l["a"].dispatch("user/setPermissions",n.Result),e.$router.push({path:"/researchForm?trialId=".concat(e.trialId,"&trialSiteSurveyId=").concat(i.Result.TrialSiteSurveyId)});case 13:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(){e.btnLoading=!1,e.sendDisabled=!1}))}))},handleSiteChange:function(e){this.isHaveSiteSurveyRecord=!1;var t=this.siteOptions.find((function(t){return t.SiteId===e}));t&&(this.form.TrialSiteCode=t.TrialSiteCode,this.isHaveSiteSurveyRecord=t.IsHaveSiteSurveyRecord)},handleSendCode:function(){var e=this;this.sendDisabled=!0;var t={Email:this.form.EmailOrPhone,TrialId:this.trialId};Object(o["k"])(t).then((function(t){t.IsSuccess?e.getCode():e.$message.error(t.ErrorMessage)})).catch((function(){e.sendDisabled=!1}))},handleEmailChange:function(){var e=/^[A-Za-z0-9]+([_\.][A-Za-z0-9]+)*@([A-Za-z0-9\-]+\.)+[A-Za-z]{2,6}$/;this.form.EmailOrPhone&&e.test(this.form.EmailOrPhone)?this.sendDisabled=!1:this.sendDisabled=!0},getCode:function(){var e=this,t=60;this.timer||(this.count=t,this.sendDisabled=!0,this.timer=setInterval((function(){e.count>0&&e.count<=t?(e.count--,e.sendTitle="".concat(e.$t("trials:researchForm:button:send"),"(").concat(e.count,"s)"),e.sendDisabled=!0):(e.sendDisabled=!1,e.sendTitle=e.$t("trials:researchForm:button:send"),clearInterval(e.timer),e.timer=null)}),1e3))},onCancel:function(){this.$refs["resetForm"].resetFields()}}},u=c,d=(i("4946"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,"6f0b9dee",null);t["default"]=f.exports},"1ea6":function(e,t,i){},"1ee6":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{ref:"CROForm",staticClass:"demo-ruleForm",attrs:{model:e.form,rules:e.rules,size:"small","label-width":"120px"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:"CRO Name: ",prop:"CROName"}},[i("el-input",{model:{value:e.form.CROName,callback:function(t){e.$set(e.form,"CROName",t)},expression:"form.CROName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"CRO NameCN: ",prop:"CRONameCN"}},[i("el-input",{model:{value:e.form.CRONameCN,callback:function(t){e.$set(e.form,"CRONameCN",t)},expression:"form.CRONameCN"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"CRO Code: ",prop:"CROCode"}},[i("el-input",{model:{value:e.form.CROCode,callback:function(t){e.$set(e.form,"CROCode",t)},expression:"form.CROCode"}})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{disabled:e.btnLoading,type:"primary"},on:{click:e.handleCancel}},[e._v("Cancel")]),e._v(" "),i("el-button",{attrs:{type:"primary",loading:e.btnLoading},on:{click:e.handleSave}},[e._v("Save")])],1)],1)])},a=[],r=i("db72"),o=(i("ac6a"),i("456d"),i("e56e")),s={name:"CroForm",props:{data:{type:Object,default:function(){return{}}}},data:function(){return{btnLoading:!1,form:{Id:"",CROName:"",CRONameCN:"",CROCode:""},rules:{CROName:[{required:!0,message:"Please specify",trigger:"blur"},{max:50,message:"The maximum length is 50"}],CRONameCN:[{required:!0,message:"Please specify",trigger:"blur"},{max:50,message:"The maximum length is 50"}],CROCode:[{required:!0,message:"Please specify",trigger:"blur"},{max:50,message:"The maximum length is 50"}]}}},mounted:function(){Object.keys(this.data).length&&this.data.Id&&(this.form=Object(r["a"])({},this.data))},methods:{handleSave:function(){var e=this;this.$refs.CROForm.validate((function(t){t&&(e.btnLoading=!0,Object(o["g"])(e.form).then((function(t){e.btnLoading=!1,t.IsSuccess&&(e.$message.success("Saved successfully"),e.$refs["CROForm"].resetFields(),e.$emit("getList"),e.$emit("close"))})).catch((function(){e.btnLoading=!1})))}))},handleCancel:function(){this.$emit("close")}}},l=s,c=i("2877"),u=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},"1f0e":function(e,t,i){var n=i("cbe5"),a=n.extend({type:"echartsGaugePointer",shape:{angle:0,width:10,r:10,x:0,y:0},buildPath:function(e,t){var i=Math.cos,n=Math.sin,a=t.r,r=t.width,o=t.angle,s=t.x-i(o)*r*(r>=a/3?1:2),l=t.y-n(o)*r*(r>=a/3?1:2);o=t.angle-Math.PI/2,e.moveTo(s,l),e.lineTo(t.x+i(o)*r,t.y+n(o)*r),e.lineTo(t.x+i(t.angle)*a,t.y+n(t.angle)*a),e.lineTo(t.x-i(o)*r,t.y-n(o)*r),e.lineTo(s,l)}});e.exports=a},"1f1a":function(e,t,i){var n=i("6d8b"),a=i("e0d3"),r=i("6cb7"),o=i("4319"),s=i("7023"),l=i("eeea"),c=r.extend({type:"geo",coordinateSystem:null,layoutMode:"box",init:function(e){r.prototype.init.apply(this,arguments),a.defaultEmphasis(e,"label",["show"])},optionUpdated:function(){var e=this.option,t=this;e.regions=l.getFilledRegions(e.regions,e.map,e.nameMap),this._optionModelMap=n.reduce(e.regions||[],(function(e,i){return i.name&&e.set(i.name,new o(i,t)),e}),n.createHashMap()),this.updateSelectedMap(e.regions)},defaultOption:{zlevel:0,z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",color:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},getRegionModel:function(e){return this._optionModelMap.get(e)||new o(null,this,this.ecModel)},getFormattedLabel:function(e,t){t=t||"normal";var i=this.getRegionModel(e),n=i.get(("normal"===t?"":t+".")+"label.formatter"),a={name:e};return"function"===typeof n?(a.status=t,n(a)):"string"===typeof n?n.replace("{a}",null!=e?e:""):void 0},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e}});n.mixin(c,s);var u=c;e.exports=u},"1f2b":function(e,t,i){"use strict";i("fe0e")},"1f34":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{height:"100%","overflow-y":"auto"}},[i("router-view")],1)},a=[],r=i("2877"),o={},s=Object(r["a"])(o,n,a,!1,null,null,null);t["default"]=s.exports},"1f3d":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"signTempForm",attrs:{model:e.form,"label-width":"160px",size:"small",rules:e.rules}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:"Code: ",prop:"Code"}},[i("el-input",{model:{value:e.form.Code,callback:function(t){e.$set(e.form,"Code",t)},expression:"form.Code"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"模板: ",prop:"Name"}},[i("el-input",{model:{value:e.form.Name,callback:function(t){e.$set(e.form,"Name",t)},expression:"form.Name"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"签名内容(EN): ",prop:"Value"}},[i("el-input",{attrs:{type:"textarea",rows:"5"},model:{value:e.form.Value,callback:function(t){e.$set(e.form,"Value",t)},expression:"form.Value"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"签名内容(CN): ",prop:"ValueCN"}},[i("el-input",{attrs:{type:"textarea",rows:"5"},model:{value:e.form.ValueCN,callback:function(t){e.$set(e.form,"ValueCN",t)},expression:"form.ValueCN"}})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{size:"small",type:"primary",disabled:""===e.form.Type||""===e.form.Name,loading:e.saveBtnLoading},on:{click:e.handleSave}},[e._v("Save")])],1)],1)])},a=[],r=(i("96cf"),i("3b8d")),o=i("e56e"),s={props:{data:{type:Object,default:function(){return{}}}},data:function(){return{form:{Id:"",Code:"",Name:"",Value:"",ValueCN:""},rules:{Code:[{required:!0,message:"Please specify",trigger:["blur"]}],Name:[{required:!0,message:"Please specify",trigger:["blur"]}],Value:[{required:!0,message:"Please specify",trigger:["blur"]}],ValueCN:[{required:!0,message:"Please specify",trigger:["blur"]}]},scenarioOption:[],saveBtnLoading:!1,loading:!1}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:for(t in this.loading=!0,this.form)this.data.hasOwnProperty(t)&&(this.form[t]=this.data[t]);this.loading=!1;case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),handleSave:function(){var e=this;this.$refs.signTempForm.validate((function(t){t&&(e.saveBtnLoading=!0,Object(o["u"])(e.form).then((function(t){e.saveBtnLoading=!1,e.$emit("closeDialog"),e.$emit("getList"),e.$message.success("Saved successfully")})).catch((function(){e.saveBtnLoading=!1})))}))}}},l=s,c=i("2877"),u=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},"1f53":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"workload"},[i("el-form",{ref:"workloadForm",staticClass:"demo-ruleForm",attrs:{size:"small",model:e.workloadForm,rules:e.workloadRules,"label-width":"180px"}},[i("el-form-item",{attrs:{label:e.$t("trials:stats:form:expedited")}},[i("el-select",{attrs:{disabled:""},model:{value:e.trialExpeditedState,callback:function(t){e.trialExpeditedState=t},expression:"trialExpeditedState"}},e._l(e.$d.TrialExpeditedState,(function(e){return i("el-option",{attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:stats:form:dispalyAll")}},[i("el-switch",{model:{value:e.trialExpeditedDisplayAll,callback:function(t){e.trialExpeditedDisplayAll=t},expression:"trialExpeditedDisplayAll"}})],1),e._v(" "),0!=e.workloadForm.DataFrom?i("el-form-item",{attrs:{label:e.$t("trials:stats:form:workmonth"),prop:"WorkTime"}},[i("el-date-picker",{attrs:{type:"month","value-format":"yyyy-MM","picker-options":e.pickerOption,disabled:""},model:{value:e.workloadForm.WorkTime,callback:function(t){e.$set(e.workloadForm,"WorkTime",t)},expression:"workloadForm.WorkTime"}})],1):e._e(),e._v(" "),0==e.workloadForm.DataFrom?i("el-form-item",{attrs:{label:e.$t("trials:stats:form:workdate"),prop:"WorkTime"}},[i("el-date-picker",{attrs:{type:"date","default-value":e.defaultDate,"value-format":"yyyy-MM-dd","picker-options":e.pickerOption},on:{change:e.datePickerChange},model:{value:e.workloadForm.WorkTime,callback:function(t){e.$set(e.workloadForm,"WorkTime",t)},expression:"workloadForm.WorkTime"}})],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:stats:form:source"),prop:"DataFrom"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{"value-key":"value",disabled:""},model:{value:e.workloadForm.DataFrom,callback:function(t){e.$set(e.workloadForm,"DataFrom",t)},expression:"workloadForm.DataFrom"}},e._l(e.statusOption,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:enrolledReviews:table:training")}},[i("el-input-number",{staticStyle:{width:"100%"},attrs:{min:0},model:{value:e.workloadForm.Training,callback:function(t){e.$set(e.workloadForm,"Training",t)},expression:"workloadForm.Training"}}),e._v(" "),2==e.workloadForm.DataFrom&&e.info.clientData&&-1!==e.incorrectItem.indexOf("Training")?i("span",{staticStyle:{color:"#00D1B2","font-size":"13px"}},[e._v("\n "+e._s(e.$t("trials:stats:message:training")+" "+e.info.clientData.Training)+"\n ")]):e._e()],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:enrolledReviews:table:refresherTraining")}},[i("el-input-number",{staticStyle:{width:"100%"},attrs:{min:0},model:{value:e.workloadForm.RefresherTraining,callback:function(t){e.$set(e.workloadForm,"RefresherTraining",t)},expression:"workloadForm.RefresherTraining"}}),e._v(" "),2==e.workloadForm.DataFrom&&e.info.clientData&&-1!==e.incorrectItem.indexOf("Refresher Training")?i("span",{staticStyle:{color:"#00D1B2","font-size":"13px"}},[e._v("\n "+e._s(e.$t("trials:stats:message:refresherTraining")+" "+e.info.clientData.RefresherTraining)+"\n ")]):e._e()],1),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:0==e.trialExpeditedState||e.trialExpeditedDisplayAll,expression:"trialExpeditedState==0||trialExpeditedDisplayAll"}]},[i("el-form-item",{attrs:{label:e.$t("trials:enrolledReviews:table:tpRegular")}},[i("el-input-number",{staticStyle:{width:"100%"},attrs:{min:0},model:{value:e.workloadForm.Timepoint,callback:function(t){e.$set(e.workloadForm,"Timepoint",t)},expression:"workloadForm.Timepoint"}}),e._v(" "),2==e.workloadForm.DataFrom&&e.info.clientData&&-1!==e.incorrectItem.indexOf("Timepoint")?i("span",{staticStyle:{color:"#00D1B2","font-size":"13px"}},[e._v("\n "+e._s(e.$t("trials:stats:message:tp")+" "+e.info.clientData.Timepoint)+"\n ")]):e._e()],1),e._v(" "),i("el-form-item",{attrs:{label:"Adjudication"}},[i("el-input-number",{staticStyle:{width:"100%"},attrs:{min:0},model:{value:e.workloadForm.Adjudication,callback:function(t){e.$set(e.workloadForm,"Adjudication",t)},expression:"workloadForm.Adjudication"}}),e._v(" "),2==e.workloadForm.DataFrom&&e.info.clientData&&-1!==e.incorrectItem.indexOf("Adjudication")?i("span",{staticStyle:{color:"#00D1B2","font-size":"13px"}},[e._v("\n "+e._s(e.$t("trials:stats:message:ad")+" "+e.info.clientData.Adjudication)+"\n ")]):e._e()],1)],1),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:1==e.trialExpeditedState||e.trialExpeditedDisplayAll,expression:"trialExpeditedState==1||trialExpeditedDisplayAll"}]},[i("el-form-item",{attrs:{label:"Timepoint 24H"}},[i("el-input-number",{staticStyle:{width:"100%"},attrs:{min:0},model:{value:e.workloadForm.TimepointIn24H,callback:function(t){e.$set(e.workloadForm,"TimepointIn24H",t)},expression:"workloadForm.TimepointIn24H"}}),e._v(" "),2==e.workloadForm.DataFrom&&e.info.clientData&&-1!==e.incorrectItem.indexOf("Timepoint 24H")?i("span",{staticStyle:{color:"#00D1B2","font-size":"13px"}},[e._v("\n "+e._s(e.$t("trials:stats:message:tp24H")+" "+e.info.clientData.TimepointIn24H)+"\n ")]):e._e()],1),e._v(" "),i("el-form-item",{attrs:{label:"Adjudication 24H"}},[i("el-input-number",{staticStyle:{width:"100%"},attrs:{min:0},model:{value:e.workloadForm.AdjudicationIn24H,callback:function(t){e.$set(e.workloadForm,"AdjudicationIn24H",t)},expression:"workloadForm.AdjudicationIn24H"}}),e._v(" "),2==e.workloadForm.DataFrom&&e.info.clientData&&-1!==e.incorrectItem.indexOf("Adjudication 24H")?i("span",{staticStyle:{color:"#00D1B2","font-size":"13px"}},[e._v("\n "+e._s(e.$t("trials:stats:message:ad24H")+" "+e.info.clientData.AdjudicationIn24H)+"\n ")]):e._e()],1)],1),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:2==e.trialExpeditedState||e.trialExpeditedDisplayAll,expression:"trialExpeditedState==2||trialExpeditedDisplayAll"}]},[i("el-form-item",{attrs:{label:"Timepoint 48H"}},[i("el-input-number",{staticStyle:{width:"100%"},attrs:{min:0},model:{value:e.workloadForm.TimepointIn48H,callback:function(t){e.$set(e.workloadForm,"TimepointIn48H",t)},expression:"workloadForm.TimepointIn48H"}}),e._v(" "),2==e.workloadForm.DataFrom&&e.info.clientData&&-1!==e.incorrectItem.indexOf("Timepoint 48H")?i("span",{staticStyle:{color:"#00D1B2","font-size":"13px"}},[e._v("\n "+e._s(e.$t("trials:stats:message:tp48H")+" "+e.info.clientData.TimepointIn48H)+"\n ")]):e._e()],1),e._v(" "),i("el-form-item",{attrs:{label:"Adjudication 48H"}},[i("el-input-number",{staticStyle:{width:"100%"},attrs:{min:0},model:{value:e.workloadForm.AdjudicationIn48H,callback:function(t){e.$set(e.workloadForm,"AdjudicationIn48H",t)},expression:"workloadForm.AdjudicationIn48H"}}),e._v(" "),2==e.workloadForm.DataFrom&&e.info.clientData&&-1!==e.incorrectItem.indexOf("Adjudication 48H")?i("span",{staticStyle:{color:"#00D1B2","font-size":"13px"}},[e._v("\n "+e._s(e.$t("trials:stats:message:ad48H")+" "+e.info.clientData.AdjudicationIn48H)+"\n ")]):e._e()],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Global"}},[i("el-input-number",{staticStyle:{width:"100%"},attrs:{min:0},model:{value:e.workloadForm.Global,callback:function(t){e.$set(e.workloadForm,"Global",t)},expression:"workloadForm.Global"}}),e._v(" "),2==e.workloadForm.DataFrom&&e.info.clientData&&-1!==e.incorrectItem.indexOf("Global")?i("span",{staticStyle:{color:"#00D1B2","font-size":"13px"}},[e._v("\n "+e._s(e.$t("trials:stats:message:global")+" "+e.info.clientData.Global)+"\n ")]):e._e()],1),e._v(" "),i("el-form-item",{attrs:{label:"Downtime"}},[i("el-input-number",{staticStyle:{width:"100%"},attrs:{min:0},model:{value:e.workloadForm.Downtime,callback:function(t){e.$set(e.workloadForm,"Downtime",t)},expression:"workloadForm.Downtime"}}),e._v(" "),2==e.workloadForm.DataFrom&&e.info.clientData&&-1!==e.incorrectItem.indexOf("Downtime")?i("span",{staticStyle:{color:"#00D1B2","font-size":"13px"}},[e._v("\n "+e._s(e.$t("trials:stats:message:downtime")+" "+e.info.clientData.Downtime)+"\n ")]):e._e()],1),e._v(" "),i("el-row",[i("el-form-item",[i("el-button",{staticStyle:{float:"right"},attrs:{size:"small",type:"primary",disabled:e.btnDisabled},on:{click:e.saveWorkload}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)],1)],1)},a=[],r=(i("c5f6"),i("3e42")),o=i("7878"),s={props:{trialId:{type:String,default:""},doctorId:{type:String,default:""},id:{type:String,default:""},info:{type:Object,default:function(){}},yearMonth:{type:String,default:""},trialExpeditedState:{type:Number,default:0}},data:function(){var e=this;return{trialExpeditedDisplayAll:!1,defaultDate:"",YearMonthStr:"",isExist:!1,existObj:"",workloadForm:{Id:"",DoctorId:"",TrialId:"",Training:0,Timepoint:"",TimepointIn24H:0,TimepointIn48H:0,Adjudication:0,AdjudicationIn24H:0,AdjudicationIn48H:0,Global:0,Downtime:0,RefresherTraining:0,WorkTime:"",DataFrom:0},statusOption:[{label:"Data from Reviewer",value:0},{label:"Data from Client",value:1},{label:"Reconciled Data",value:2}],workloadRules:{WorkTime:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}],DataFrom:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}]},pickerOption:{disabledDate:function(t){var i=Object(o["parseISOLocal"])(e.yearMonth+"-01"),n=Object(o["parseISOLocal"])(e.yearMonth+"-01");return n.setMonth(n.getMonth()+1),n.setDate(n.getDate()-1),t.getTime()<i.getTime()||t.getTime()>n.getTime()||t.getTime()>Date.now()}},btnDisabled:!1,incorrectItem:[]}},mounted:function(){this.id?(this.workloadForm={Training:this.info.Training,Timepoint:this.info.Timepoint,TimepointIn24H:this.info.TimepointIn24H,TimepointIn48H:this.info.TimepointIn48H,Adjudication:this.info.Adjudication,AdjudicationIn24H:this.info.AdjudicationIn24H,AdjudicationIn48H:this.info.AdjudicationIn48H,Global:this.info.Global,RefresherTraining:this.info.RefresherTraining,Downtime:this.info.Downtime,WorkTime:this.info.WorkTimeStr,DataFrom:this.info.DataFrom},this.info.Id&&(this.workloadForm.Id=this.info.Id),this.YearMonthStr=this.info.YearMonthStr):(this.defaultDate=Object(o["parseISOLocal"])(this.yearMonth+"-01"),this.workloadForm.DataFrom=0)},methods:{datePickerChange:function(){this.existworkLoad()},existworkLoad:function(){var e=this,t={TrialId:this.trialId,DoctorId:this.doctorId,WorkDate:this.workloadForm.WorkTime,DataFrom:0},i=this;Object(r["Jb"])(t).then((function(t){t.IsSuccess?(i.isExist=t.Result.IsExist,i.existObj=t.Result.WorkLoad,i.isExist&&i.id&&i.$confirm(e.$t("trials:stats:message:editWorkload"),{type:"warning"}).then((function(){i.$emit("setTitle",e.$t("trials:stats:dialogTitle:edit")),i.workloadForm.Id=i.existObj.Id,i.workloadForm.DoctorId=i.existObj.DoctorId,i.workloadForm.TrialId=i.existObj.TrialId,i.workloadForm.Training=i.existObj.Training,i.workloadForm.Timepoint=i.existObj.Timepoint,i.workloadForm.TimepointIn24H=i.existObj.TimepointIn24H,i.workloadForm.TimepointIn48H=i.existObj.TimepointIn48H,i.workloadForm.Adjudication=i.existObj.Adjudication,i.workloadForm.AdjudicationIn24H=i.existObj.AdjudicationIn24H,i.workloadForm.AdjudicationIn48H=i.existObj.AdjudicationIn48H,i.workloadForm.Global=i.existObj.Global,i.workloadForm.RefresherTraining=i.existObj.RefresherTraining,i.workloadForm.Downtime=i.existObj.Downtime,i.workloadForm.WorkTime,i.existObj.WorkTime})).catch((function(){i.workloadForm.WorkTime=""}))):e.$message.error(t.ErrorMessage)}))},saveWorkload:function(){var e=this;this.$refs.workloadForm.validate((function(t){t&&(e.workloadForm.DoctorId=e.doctorId,e.workloadForm.TrialId=e.trialId,e.addWorkload())}))},addWorkload:function(){var e=this;if(this.incorrectItem=[],this.workloadForm.Timepoint+this.workloadForm.TimepointIn24H+this.workloadForm.TimepointIn48H+this.workloadForm.Global+this.workloadForm.Training+this.workloadForm.Downtime+this.workloadForm.Adjudication+this.workloadForm.AdjudicationIn24H+this.workloadForm.AdjudicationIn48H+this.workloadForm.RefresherTraining!==0)if(2===this.info.DataFrom){var t=[];if(this.workloadForm.Training!==this.info.clientData.Training&&t.push("Training"),this.workloadForm.Timepoint!==this.info.clientData.Timepoint&&t.push("Timepoint"),this.workloadForm.TimepointIn24H!==this.info.clientData.TimepointIn24H&&t.push("Timepoint 24H"),this.workloadForm.TimepointIn48H!==this.info.clientData.TimepointIn48H&&t.push("Timepoint 48H"),this.workloadForm.Adjudication!==this.info.clientData.Adjudication&&t.push("Adjudication"),this.workloadForm.AdjudicationIn24H!==this.info.clientData.AdjudicationIn24H&&t.push("Adjudication 24H"),this.workloadForm.AdjudicationIn48H!==this.info.clientData.AdjudicationIn48H&&t.push("Adjudication 48H"),this.workloadForm.Global!==this.info.clientData.Global&&t.push("Global"),this.workloadForm.RefresherTraining!==this.info.clientData.RefresherTraining&&t.push("Refresher Training"),this.workloadForm.Downtime!==this.info.clientData.Downtime&&t.push("Downtime"),0===t.length)this.workLoadAddOrUpdate();else{var i=this.$t("trials:stats:message:editWorkloadWarning2");this.$confirm(i,{type:"warning"}).then((function(){e.workLoadAddOrUpdate()})).catch((function(){e.incorrectItem=t}))}}else this.workLoadAddOrUpdate();else this.$message({showClose:!0,message:this.$t("trials:stats:message:editWorkloadWarning1"),type:"error"})},workLoadAddOrUpdate:function(){var e=this;this.btnDisabled=!0,Object(r["Qf"])(this.workloadForm).then((function(t){e.btnDisabled=!1,t.IsSuccess&&(e.workloadForm.Id||(e.workloadForm.Id=t.Result),e.$message.success(e.$t("common:message:savedSuccessfully")),e.$emit("handleClose"))})).catch((function(){e.btnDisabled=!1}))}}},l=s,c=(i("707c"),i("2877")),u=Object(c["a"])(l,n,a,!1,null,"5abf5b1d",null);t["default"]=u.exports},"1fab":function(e,t){var i=Array.prototype.slice,n=function(e){this._$handlers={},this._$eventProcessor=e};function a(e,t){var i=e._$eventProcessor;return null!=t&&i&&i.normalizeQuery&&(t=i.normalizeQuery(t)),t}function r(e,t,i,n,r,o){var s=e._$handlers;if("function"===typeof i&&(r=n,n=i,i=null),!n||!t)return e;i=a(e,i),s[t]||(s[t]=[]);for(var l=0;l<s[t].length;l++)if(s[t][l].h===n)return e;var c={h:n,one:o,query:i,ctx:r||e,callAtLast:n.zrEventfulCallAtLast},u=s[t].length-1,d=s[t][u];return d&&d.callAtLast?s[t].splice(u,0,c):s[t].push(c),e}n.prototype={constructor:n,one:function(e,t,i,n){return r(this,e,t,i,n,!0)},on:function(e,t,i,n){return r(this,e,t,i,n,!1)},isSilent:function(e){var t=this._$handlers;return!t[e]||!t[e].length},off:function(e,t){var i=this._$handlers;if(!e)return this._$handlers={},this;if(t){if(i[e]){for(var n=[],a=0,r=i[e].length;a<r;a++)i[e][a].h!==t&&n.push(i[e][a]);i[e]=n}i[e]&&0===i[e].length&&delete i[e]}else delete i[e];return this},trigger:function(e){var t=this._$handlers[e],n=this._$eventProcessor;if(t){var a=arguments,r=a.length;r>3&&(a=i.call(a,1));for(var o=t.length,s=0;s<o;){var l=t[s];if(n&&n.filter&&null!=l.query&&!n.filter(e,l.query))s++;else{switch(r){case 1:l.h.call(l.ctx);break;case 2:l.h.call(l.ctx,a[1]);break;case 3:l.h.call(l.ctx,a[1],a[2]);break;default:l.h.apply(l.ctx,a);break}l.one?(t.splice(s,1),o--):s++}}}return n&&n.afterTrigger&&n.afterTrigger(e),this},triggerWithContext:function(e){var t=this._$handlers[e],n=this._$eventProcessor;if(t){var a=arguments,r=a.length;r>4&&(a=i.call(a,1,a.length-1));for(var o=a[a.length-1],s=t.length,l=0;l<s;){var c=t[l];if(n&&n.filter&&null!=c.query&&!n.filter(e,c.query))l++;else{switch(r){case 1:c.h.call(o);break;case 2:c.h.call(o,a[1]);break;case 3:c.h.call(o,a[1],a[2]);break;default:c.h.apply(o,a);break}c.one?(t.splice(l,1),s--):l++}}}return n&&n.afterTrigger&&n.afterTrigger(e),this}};var o=n;e.exports=o},"1fcb":function(e,t,i){},2017:function(e,t,i){"use strict";i("b12d")},2021:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"form-container"},[i("div",{staticClass:"title-wrapper"},[i("p",[e._v("Education (in chronological order)")]),e._v(" "),i("el-button",{staticClass:"add",attrs:{disabled:"1"===e.$route.query.ReviewStatus,size:"small"},on:{click:e.handleAddEducation}},[e._v("Add")])],1),e._v(" "),i("el-table",{ref:"educationTbl",staticClass:"table",attrs:{data:e.educationList,border:"",size:"small"}},[i("el-table-column",{attrs:{type:"index",width:"30"}}),e._v(" "),i("el-table-column",{attrs:{prop:"BeginDateStr",label:"Start","min-width":"55","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"EndDateStr",label:"End","min-width":"55","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Degree",label:"Degree","min-width":"70","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.DegreeCN?t.row.Degree+" / "+t.row.DegreeCN:t.row.Degree)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Major",label:"Major","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.MajorCN?t.row.Major+" / "+t.row.MajorCN:t.row.Major)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Organization",label:"Institution","min-width":"150","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.OrganizationCN?t.row.Organization+" / "+t.row.OrganizationCN:t.row.Organization)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"City",label:"City","min-width":"90","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.CityCN?t.row.City+" / "+t.row.CityCN:t.row.City)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Province",label:"State/Province","min-width":"90","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.ProvinceCN?t.row.Province+" / "+t.row.ProvinceCN:t.row.Province)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Country",label:"Country","min-width":"80","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.CountryCN?t.row.Country+" / "+t.row.CountryCN:t.row.Country)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"Operation","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text",size:"small",disabled:"1"===e.$route.query.ReviewStatus},on:{click:function(i){return e.handleEducationEdit(t.row)}}},[e._v("Edit")]),e._v(" "),i("el-button",{attrs:{type:"text",size:"small",disabled:"1"===e.$route.query.ReviewStatus},on:{click:function(i){return e.handleEducationDelete(t.row)}}},[e._v("Delete")])]}}])})],1),e._v(" "),i("div",{staticClass:"title-wrapper",staticStyle:{"margin-top":"40px"}},[i("p",[e._v("Postgraduate Training (in chronological order)")]),e._v(" "),i("el-button",{staticClass:"add",attrs:{size:"small",disabled:"1"===e.$route.query.ReviewStatus},on:{click:e.handleAddPostgraduate}},[e._v("Add")])],1),e._v(" "),i("el-table",{ref:"postgraduateTbl",staticClass:"table",attrs:{data:e.postgraduateList,border:"",size:"small"}},[i("el-table-column",{attrs:{type:"index",width:"30"}}),e._v(" "),i("el-table-column",{attrs:{prop:"BeginDateStr",label:"Start","min-width":"55","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"EndDateStr",label:"End","min-width":"55","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Training",label:"Training","min-width":"70","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.TrainingCN?t.row.Training+" / "+t.row.TrainingCN:t.row.Training)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Major",label:"Specialty/Research Field","min-width":"155","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.MajorCN?t.row.Major+" / "+t.row.MajorCN:t.row.Major)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Hospital",label:"Hospital","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.HospitalCN?t.row.Hospital+" / "+t.row.HospitalCN:t.row.Hospital)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"School",label:"University","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.SchoolCN?t.row.School+" / "+t.row.SchoolCN:t.row.School)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"City",label:"City","min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.CityCN?t.row.City+" / "+t.row.CityCN:t.row.City)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Province",label:"State/Province","min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.ProvinceCN?t.row.Province+" / "+t.row.ProvinceCN:t.row.Province)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Country",label:"Country","min-width":"90","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.CountryCN?t.row.Country+" / "+t.row.CountryCN:t.row.Country)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"Operation","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text",size:"small",disabled:"1"===e.$route.query.ReviewStatus},on:{click:function(i){return e.handlePostgraduateEdit(t.row)}}},[e._v("Edit")]),e._v(" "),i("el-button",{attrs:{type:"text",size:"small",disabled:"1"===e.$route.query.ReviewStatus},on:{click:function(i){return e.handlePostgraduateDelete(t.row)}}},[e._v("Delete")])]}}])})],1),e._v(" "),e.educationDialogVisible?i("el-dialog",{attrs:{title:e.educationDialogTitle,visible:e.educationDialogVisible,width:"40%","close-on-click-modal":!1},on:{"update:visible":function(t){e.educationDialogVisible=t}}},[e.educationDialogVisible?i("el-form",{ref:"educationForm",attrs:{size:"small","label-width":"120px",model:e.educationForm,rules:e.educationRules}},[i("el-form-item",{attrs:{label:"Start",prop:"BeginDate"}},[i("el-date-picker",{attrs:{type:"month",placeholder:"select date","value-format":"yyyy-MM",format:"yyyy-MM",size:"small","picker-options":e.beginPickerOption},model:{value:e.educationForm.BeginDate,callback:function(t){e.$set(e.educationForm,"BeginDate",t)},expression:"educationForm.BeginDate"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"End",prop:"EndDate"}},[i("el-date-picker",{attrs:{type:"month",placeholder:"select date","value-format":"yyyy-MM",format:"yyyy-MM",size:"small","picker-options":e.endpickerOption},model:{value:e.educationForm.EndDate,callback:function(t){e.$set(e.educationForm,"EndDate",t)},expression:"educationForm.EndDate"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Degree",prop:"Degree"}},[i("el-select",{attrs:{placeholder:"Please select",size:"small"},model:{value:e.educationForm.Degree,callback:function(t){e.$set(e.educationForm,"Degree",t)},expression:"educationForm.Degree"}},e._l(e.degreeOptions,(function(e){return i("el-option",{key:e.value,attrs:{label:e.value,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Major",prop:"Major"}},[i("el-row",{attrs:{type:"flex",justify:"space-between"}},[i("el-col",{attrs:{span:11}},[i("el-input",{attrs:{placeholder:"Please specify in English",size:"small"},model:{value:e.educationForm.Major,callback:function(t){e.$set(e.educationForm,"Major",t)},expression:"educationForm.Major"}})],1),e._v(" "),i("el-col",{attrs:{span:11}},[i("el-input",{attrs:{placeholder:"请用中文注明",size:"small"},model:{value:e.educationForm.MajorCN,callback:function(t){e.$set(e.educationForm,"MajorCN",t)},expression:"educationForm.MajorCN"}})],1)],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Institution",prop:"Organization"}},[i("el-row",{attrs:{type:"flex",justify:"space-between"}},[i("el-col",{attrs:{span:11}},[i("el-input",{attrs:{placeholder:"Please specify in English",size:"small"},model:{value:e.educationForm.Organization,callback:function(t){e.$set(e.educationForm,"Organization",t)},expression:"educationForm.Organization"}})],1),e._v(" "),i("el-col",{attrs:{span:11}},[i("el-input",{attrs:{placeholder:"请用中文注明",size:"small"},model:{value:e.educationForm.OrganizationCN,callback:function(t){e.$set(e.educationForm,"OrganizationCN",t)},expression:"educationForm.OrganizationCN"}})],1)],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"City",prop:"City"}},[i("el-row",{attrs:{type:"flex",justify:"space-between"}},[i("el-col",{attrs:{span:11}},[i("el-input",{attrs:{placeholder:"Please specify in English",size:"small"},model:{value:e.educationForm.City,callback:function(t){e.$set(e.educationForm,"City",t)},expression:"educationForm.City"}})],1),e._v(" "),i("el-col",{attrs:{span:11}},[i("el-input",{attrs:{placeholder:"请用中文注明",size:"small"},model:{value:e.educationForm.CityCN,callback:function(t){e.$set(e.educationForm,"CityCN",t)},expression:"educationForm.CityCN"}})],1)],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"State/Province",prop:"Province"}},[i("el-row",{attrs:{type:"flex",justify:"space-between"}},[i("el-col",{attrs:{span:11}},[i("el-input",{attrs:{placeholder:"Please specify in English",size:"small"},model:{value:e.educationForm.Province,callback:function(t){e.$set(e.educationForm,"Province",t)},expression:"educationForm.Province"}})],1),e._v(" "),i("el-col",{attrs:{span:11}},[i("el-input",{attrs:{placeholder:"请用中文注明",size:"small"},model:{value:e.educationForm.ProvinceCN,callback:function(t){e.$set(e.educationForm,"ProvinceCN",t)},expression:"educationForm.ProvinceCN"}})],1)],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Country",prop:"Country"}},[i("el-row",{attrs:{type:"flex",justify:"space-between"}},[i("el-col",{attrs:{span:11}},[i("el-input",{attrs:{placeholder:"Please specify in English",size:"small"},model:{value:e.educationForm.Country,callback:function(t){e.$set(e.educationForm,"Country",t)},expression:"educationForm.Country"}})],1),e._v(" "),i("el-col",{attrs:{span:11}},[i("el-input",{attrs:{placeholder:"请用中文注明",size:"small"},model:{value:e.educationForm.CountryCN,callback:function(t){e.$set(e.educationForm,"CountryCN",t)},expression:"educationForm.CountryCN"}})],1)],1)],1)],1):e._e(),e._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{type:"primary",size:"small",loading:e.isDisabled},on:{click:e.handleEducationSave}},[e._v("Save")])],1)],1):e._e(),e._v(" "),e.postgraduateDialogVisible?i("el-dialog",{attrs:{title:e.postgraduateDialogTitle,visible:e.postgraduateDialogVisible,width:"40%","close-on-click-modal":!1},on:{"update:visible":function(t){e.postgraduateDialogVisible=t}}},[e.postgraduateDialogVisible?i("el-form",{ref:"postgraduateForm",attrs:{size:"small","label-width":"190px",model:e.postgraduateForm,rules:e.postgraduateRules}},[i("el-form-item",{attrs:{label:"Start",prop:"BeginDate"}},[i("el-date-picker",{attrs:{type:"month",placeholder:"select date","value-format":"yyyy-MM",format:"yyyy-MM","picker-options":e.postgraduateBeginPickerOption,size:"small"},model:{value:e.postgraduateForm.BeginDate,callback:function(t){e.$set(e.postgraduateForm,"BeginDate",t)},expression:"postgraduateForm.BeginDate"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"End",prop:"EndDate"}},[i("el-date-picker",{attrs:{type:"month",placeholder:"select date","value-format":"yyyy-MM",format:"yyyy-MM","picker-options":e.postgraduateEndpickerOption,size:"small"},model:{value:e.postgraduateForm.EndDate,callback:function(t){e.$set(e.postgraduateForm,"EndDate",t)},expression:"postgraduateForm.EndDate"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Training",prop:"Training"}},[i("el-select",{attrs:{placeholder:"Please select",size:"small"},model:{value:e.postgraduateForm.Training,callback:function(t){e.$set(e.postgraduateForm,"Training",t)},expression:"postgraduateForm.Training"}},e._l(e.TrainingOptions,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Specialty / Research Field",prop:"Major"}},[i("el-row",{attrs:{type:"flex",justify:"space-between"}},[i("el-col",{attrs:{span:11}},[i("el-input",{attrs:{placeholder:"Please specify in English",size:"small"},model:{value:e.postgraduateForm.Major,callback:function(t){e.$set(e.postgraduateForm,"Major",t)},expression:"postgraduateForm.Major"}})],1),e._v(" "),i("el-col",{attrs:{span:11}},[i("el-input",{attrs:{placeholder:"请用中文注明",size:"small"},model:{value:e.postgraduateForm.MajorCN,callback:function(t){e.$set(e.postgraduateForm,"MajorCN",t)},expression:"postgraduateForm.MajorCN"}})],1)],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Hospital",prop:"Hospital"}},[i("el-row",{attrs:{type:"flex",justify:"space-between"}},[i("el-col",{attrs:{span:11}},[i("el-input",{attrs:{placeholder:"Please specify in English",size:"small"},model:{value:e.postgraduateForm.Hospital,callback:function(t){e.$set(e.postgraduateForm,"Hospital",t)},expression:"postgraduateForm.Hospital"}})],1),e._v(" "),i("el-col",{attrs:{span:11}},[i("el-input",{attrs:{placeholder:"请用中文注明",size:"small"},model:{value:e.postgraduateForm.HospitalCN,callback:function(t){e.$set(e.postgraduateForm,"HospitalCN",t)},expression:"postgraduateForm.HospitalCN"}})],1)],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"University",prop:"School"}},[i("el-row",{attrs:{type:"flex",justify:"space-between"}},[i("el-col",{attrs:{span:11}},[i("el-input",{attrs:{placeholder:"Please specify in English",size:"small"},model:{value:e.postgraduateForm.School,callback:function(t){e.$set(e.postgraduateForm,"School",t)},expression:"postgraduateForm.School"}})],1),e._v(" "),i("el-col",{attrs:{span:11}},[i("el-input",{attrs:{placeholder:"请用中文注明",size:"small"},model:{value:e.postgraduateForm.SchoolCN,callback:function(t){e.$set(e.postgraduateForm,"SchoolCN",t)},expression:"postgraduateForm.SchoolCN"}})],1)],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"City",prop:"City"}},[i("el-row",{attrs:{type:"flex",justify:"space-between"}},[i("el-col",{attrs:{span:11}},[i("el-input",{attrs:{placeholder:"Please specify in English",size:"small"},model:{value:e.postgraduateForm.City,callback:function(t){e.$set(e.postgraduateForm,"City",t)},expression:"postgraduateForm.City"}})],1),e._v(" "),i("el-col",{attrs:{span:11}},[i("el-input",{attrs:{placeholder:"请用中文注明",size:"small"},model:{value:e.postgraduateForm.CityCN,callback:function(t){e.$set(e.postgraduateForm,"CityCN",t)},expression:"postgraduateForm.CityCN"}})],1)],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"State/Province",prop:"Province"}},[i("el-row",{attrs:{type:"flex",justify:"space-between"}},[i("el-col",{attrs:{span:11}},[i("el-input",{attrs:{placeholder:"Please specify in English",size:"small"},model:{value:e.postgraduateForm.Province,callback:function(t){e.$set(e.postgraduateForm,"Province",t)},expression:"postgraduateForm.Province"}})],1),e._v(" "),i("el-col",{attrs:{span:11}},[i("el-input",{attrs:{placeholder:"请用中文注明",size:"small"},model:{value:e.postgraduateForm.ProvinceCN,callback:function(t){e.$set(e.postgraduateForm,"ProvinceCN",t)},expression:"postgraduateForm.ProvinceCN"}})],1)],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Country",prop:"Country"}},[i("el-row",{attrs:{type:"flex",justify:"space-between"}},[i("el-col",{attrs:{span:11}},[i("el-input",{attrs:{placeholder:"Please specify in English",size:"small"},model:{value:e.postgraduateForm.Country,callback:function(t){e.$set(e.postgraduateForm,"Country",t)},expression:"postgraduateForm.Country"}})],1),e._v(" "),i("el-col",{attrs:{span:11}},[i("el-input",{attrs:{placeholder:"请用中文注明",size:"small"},model:{value:e.postgraduateForm.CountryCN,callback:function(t){e.$set(e.postgraduateForm,"CountryCN",t)},expression:"postgraduateForm.CountryCN"}})],1)],1)],1)],1):e._e(),e._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{size:"small",type:"primary",loading:e.isDisabled},on:{click:e.handlePostgraduateSave}},[e._v("Save")])],1)],1):e._e()],1)},a=[],r=(i("20d6"),i("a8db")),o=i("33ba"),s=["BeginDateStr","EndDateStr"],l=["BeginDateStr","EndDateStr"],c=function(){return{Id:"",DoctorId:"",BeginDate:"",EndDate:"",Degree:"",Major:"",MajorCN:"",Organization:"",OrganizationCN:"",City:"",CityCN:"",Province:"",ProvinceCN:"",Country:"",CountryCN:""}},u=function(){return{Id:"",DoctorId:"",BeginDate:"",EndDate:"",Training:"",Major:"",MajorCN:"",Hospital:"",HospitalCN:"",School:"",SchoolCN:"",City:"",CityCN:"",Province:"",ProvinceCN:"",Country:"",CountryCN:""}},d={name:"EducationTraining",data:function(){var e=this;return{educationList:[],postgraduateList:[],educationDialogTitle:"",educationForm:c(),educationRules:{BeginDate:[{required:!0,message:"Please select a start date",trigger:"blur"}],EndDate:[{required:!0,message:"Please select a valid date",trigger:"blur"}],Degree:[{required:!0,message:"Please enter the degree",trigger:"blur"},{max:100,message:"The maximum length is 100"}],Major:[{required:!0,message:"Please enter the major",trigger:"blur"},{max:100,message:"The maximum length is 100"}],Organization:[{required:!0,message:"Please enter the institution",trigger:"blur"},{max:100,message:"The maximum length is 100"}],City:[{required:!0,message:"Please enter the city",trigger:"blur"},{max:50,message:"The maximum length is 50"}],Province:[{required:!0,message:"Please enter the state/province",trigger:"blur"},{max:50,message:"The maximum length is 50"}],Country:[{required:!0,message:"Please enter the country",trigger:"blur"},{max:50,message:"The maximum length is 50"}]},educationDialogVisible:!1,degreeOptions:[{value:"Bachelor"},{value:"Master"},{value:"Doctorate"}],TrainingOptions:[{value:"Residency"},{value:"Fellowship"},{value:"Post-Doc"},{value:"Visiting Scholar"}],beginPickerOption:{disabledDate:function(t){return e.educationForm.EndDate?t.getTime()>new Date(e.educationForm.EndDate).getTime():t.getTime()>Date.now()}},endpickerOption:{disabledDate:function(t){return e.educationForm.BeginDate?t.getTime()>Date.now()||t.getTime()<=new Date(e.educationForm.BeginDate).getTime():t.getTime()>Date.now()}},postgraduateDialogTitle:"",postgraduateDialogVisible:!1,postgraduateForm:u(),postgraduateRules:{BeginDate:[{required:!0,message:"Please select a start date",trigger:"blur"}],EndDate:[{required:!0,message:"Please select a valid date",trigger:"blur"}],Training:[{required:!0,message:"Please enter the degree",trigger:"blur"},{max:100,message:"The maximum length is 100"}],Major:[{required:!0,message:"Please enter the major",trigger:"blur"},{max:100,message:"The maximum length is 100"}],City:[{required:!0,message:"Please enter the city",trigger:"blur"},{max:50,message:"The maximum length is 50"}],Province:[{required:!0,message:"Please enter the state/province",trigger:"blur"},{max:50,message:"The maximum length is 50"}],Country:[{required:!0,message:"Please enter the country",trigger:"blur"},{max:50,message:"The maximum length is 50"}]},postgraduateBeginPickerOption:{disabledDate:function(t){return e.postgraduateForm.EndDate?t.getTime()>new Date(e.postgraduateForm.EndDate).getTime():t.getTime()>Date.now()}},postgraduateEndpickerOption:{disabledDate:function(t){return e.postgraduateForm.BeginDate?t.getTime()>Date.now()||t.getTime()<=new Date(e.postgraduateForm.BeginDate).getTime():t.getTime()>Date.now()}},isDisabled:!1,loading:!1}},mounted:function(){this.initPage()},methods:{initPage:function(){var e=this,t=this.$route.query.Id;t&&(this.loading=!0,Object(o["u"])(t).then((function(t){e.educationList=t.Result.EducationList,e.postgraduateList=t.Result.PostgraduateList,e.loading=!1})).catch((function(){e.loading=!1})))},handleAddEducation:function(){this.educationDialogTitle="New",this.educationDialogVisible=!0,Object.assign(this.educationForm,c())},handleEducationEdit:function(e){e.BeginDateStr,e.EndDateStr;var t=Object(r["a"])(e,s);this.educationDialogTitle="Edit",this.educationDialogVisible=!0,this.educationForm=t},handleEducationSave:function(){var e=this;this.$refs.educationForm.validate((function(t){t&&(e.isDisabled=!0,e.educationForm.DoctorId=e.$route.query.Id,"Bachelor"===e.educationForm.Degree?e.educationForm.DegreeCN="学士":"Master"===e.educationForm.Degree?e.educationForm.DegreeCN="硕士":"Doctorate"===e.educationForm.Degree&&(e.educationForm.DegreeCN="博士"),Object(o["c"])(e.educationForm).then((function(t){e.isDisabled=!1,e.educationDialogVisible=!1,e.initPage(),e.educationForm.Id?e.$message({message:"Updated successfully",type:"success"}):e.$message({message:"Addedd successfully",type:"success"}),e.$refs["educationForm"].resetFields()})).catch((function(){e.isDisabled=!1})))}))},handleEducationDelete:function(e){var t=this;this.$confirm("Confirm to delete?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"OK",cancelButtonText:"Cancel"}).then((function(){Object(o["i"])(e.Id).then((function(i){t.educationList.splice(t.educationList.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success("Deleted successfully !")}))})).catch((function(e){}))},handleAddPostgraduate:function(){this.postgraduateDialogTitle="New",this.postgraduateDialogVisible=!0,Object.assign(this.postgraduateForm,u())},handlePostgraduateEdit:function(e){e.BeginDateStr,e.EndDateStr;var t=Object(r["a"])(e,l);this.postgraduateDialogTitle="Edit",this.postgraduateDialogVisible=!0,this.postgraduateForm=t},handlePostgraduateSave:function(){var e=this;this.$refs.postgraduateForm.validate((function(t){t&&(e.isDisabled=!0,e.postgraduateForm.DoctorId=e.$route.query.Id,"Residency"===e.postgraduateForm.Training?e.postgraduateForm.TrainingCN="规培":"Fellowship"===e.postgraduateForm.Training?e.postgraduateForm.TrainingCN="专科培训":"Post-Doc"===e.postgraduateForm.Training?e.postgraduateForm.TrainingCN="博士后":"Visiting Scholar"===e.postgraduateForm.Training&&(e.postgraduateForm.TrainingCN="访问学者"),Object(o["d"])(e.postgraduateForm).then((function(t){e.isDisabled=!1,e.postgraduateDialogVisible=!1,e.initPage(),e.postgraduateForm.Id?e.$message({message:"Updated successfully",type:"success"}):e.$message({message:"Addedd successfully",type:"success"}),e.$refs["postgraduateForm"].resetFields()})).catch((function(t){e.isDisabled=!1,console.log(t)})))}))},handlePostgraduateDelete:function(e){var t=this;this.$confirm("Confirm to delete?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"OK",cancelButtonText:"Cancel"}).then((function(){Object(o["j"])(e.Id).then((function(i){t.postgraduateList.splice(t.postgraduateList.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success("Deleted successfully !")}))})).catch((function(e){}))}}},f=d,h=i("2877"),p=Object(h["a"])(f,n,a,!1,null,null,null);t["default"]=p.exports},2023:function(e,t,i){var n=i("6d8b"),a={getMin:function(e){var t=this.option,i=e||null==t.rangeStart?t.min:t.rangeStart;return this.axis&&null!=i&&"dataMin"!==i&&"function"!==typeof i&&!n.eqNaN(i)&&(i=this.axis.scale.parse(i)),i},getMax:function(e){var t=this.option,i=e||null==t.rangeEnd?t.max:t.rangeEnd;return this.axis&&null!=i&&"dataMax"!==i&&"function"!==typeof i&&!n.eqNaN(i)&&(i=this.axis.scale.parse(i)),i},getNeedCrossZero:function(){var e=this.option;return null==e.rangeStart&&null==e.rangeEnd&&!e.scale},getCoordSysModel:n.noop,setRange:function(e,t){this.option.rangeStart=e,this.option.rangeEnd=t},resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}};e.exports=a},"202d":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"role"},[i("div",{ref:"leftContainer",staticClass:"left"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:"通知级别: ",prop:"NoticeLevelEnum"}},[i("el-select",{attrs:{placeholder:"通知级别",clearable:"",size:"small"},model:{value:e.searchData.NoticeLevelEnum,callback:function(t){e.$set(e.searchData,"NoticeLevelEnum",t)},expression:"searchData.NoticeLevelEnum"}},e._l(e.dict.type.NoteLevel,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:1*e.raw.Code}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"通知类型: ",prop:"NoticeTypeEnum"}},[i("el-select",{attrs:{placeholder:"通知类型",clearable:"",size:"small"},model:{value:e.searchData.NoticeTypeEnum,callback:function(t){e.$set(e.searchData,"NoticeTypeEnum",t)},expression:"searchData.NoticeTypeEnum"}},e._l(e.dict.type.NoteType,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:1*e.raw.Code}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"适用项目: ",prop:"ApplicableProjectEnum"}},[i("el-select",{attrs:{placeholder:"适用项目",clearable:"",size:"small"},model:{value:e.searchData.ApplicableProjectEnum,callback:function(t){e.$set(e.searchData,"ApplicableProjectEnum",t)},expression:"searchData.ApplicableProjectEnum"}},e._l(e.dict.type.NoticeApplicableTrial,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:1*e.raw.Code}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"使用角色: ",prop:"NoticeUserTypeIdList"}},[i("el-select",{attrs:{multiple:"",placeholder:"使用角色",clearable:"",size:"small"},model:{value:e.searchData.NoticeUserTypeIdList,callback:function(t){e.$set(e.searchData,"NoticeUserTypeIdList",t)},expression:"searchData.NoticeUserTypeIdList"}},e._l(e.roleList,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.UserTypeShortName,value:e.Id}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"提醒方式: ",prop:"NoticeModeEnum"}},[i("el-select",{attrs:{placeholder:"提醒方式",clearable:"",size:"small"},model:{value:e.searchData.NoticeModeEnum,callback:function(t){e.$set(e.searchData,"NoticeModeEnum",t)},expression:"searchData.NoticeModeEnum"}},e._l(e.dict.type.NoticeMode,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:1*e.raw.Code}})})),1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:e.getList}},[e._v("搜索")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-plus",size:"mini"},on:{click:e.handleAdd}},[e._v("新增")])],1)],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:45},expression:"{bottomOffset:45}"}],staticClass:"table",attrs:{height:"100",data:e.list}},[i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{label:"通知级别",prop:"NoticeLevelEnum","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.dict.type.NoteLevel.find((function(e){return 1*e.raw.Code===t.row.NoticeLevelEnum}))?e.dict.type.NoteLevel.find((function(e){return 1*e.raw.Code===t.row.NoticeLevelEnum})).label:"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"通知类型",prop:"NoticeTypeEnum","min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.dict.type.NoteType.find((function(e){return 1*e.raw.Code===t.row.NoticeTypeEnum}))?e.dict.type.NoteType.find((function(e){return 1*e.raw.Code===t.row.NoticeTypeEnum})).label:"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"通知内容",prop:"NoticeContent","min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.NoticeContent)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"通知状态",prop:"NoticeStateEnum","min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-tag",{attrs:{type:0===t.row.ActualNoticeStateEnum?"info":1===t.row.ActualNoticeStateEnum?"success":"danger"}},[e._v("\n "+e._s(e.dict.type.NoticeState.find((function(e){return 1*e.raw.Code===t.row.ActualNoticeStateEnum}))?e.dict.type.NoticeState.find((function(e){return 1*e.raw.Code===t.row.ActualNoticeStateEnum})).label:"")+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"适用项目",prop:"ApplicableProjectEnum","min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.dict.type.NoticeApplicableTrial.find((function(e){return 1*e.raw.Code===t.row.ApplicableProjectEnum}))?e.dict.type.NoticeApplicableTrial.find((function(e){return 1*e.raw.Code===t.row.ApplicableProjectEnum})).label:"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"适用角色",prop:"NoticeUserTypeList","min-width":"80","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.NoticeUserTypeList.map((function(e){return e.UserTypeShortName})).toString())+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"提示方式",prop:"NoticeModeEnum","min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.dict.type.NoticeMode.find((function(e){return 1*e.raw.Code===t.row.NoticeModeEnum}))?e.dict.type.NoticeMode.find((function(e){return 1*e.raw.Code===t.row.NoticeModeEnum})).label:"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"保留时长",prop:"StartDate","min-width":"240","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.StartDate)+"-"+e._s(t.row.EndDate)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"发布人",prop:"PublishUserName","min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:"发布时间",prop:"PublishedTime","min-width":"160","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:"更新时间",prop:"UpdateTime","min-width":"160","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.StartDate?t.row.StartDate:t.row.CreateTime)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"附件",fixed:"right",prop:"FileName","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("a",{staticStyle:{color:"#00D1B2"},attrs:{href:t.row.FullFilePath,target:"_blank"}},[e._v(e._s(t.row.FileName))])]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"操作",fixed:"right",prop:"UserTypeShortName","min-width":"200","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-edit-outline"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("编辑")]),e._v(" "),0===t.row.NoticeStateEnum?i("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-s-promotion"},on:{click:function(i){return e.handlePush(t.row)}}},[e._v("发布")]):e._e(),e._v(" "),1===t.row.NoticeStateEnum?i("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-s-release"},on:{click:function(i){return e.handleGet(t.row)}}},[e._v("撤回")]):e._e()]}}])})],1),e._v(" "),i("div",{staticClass:"pagination",staticStyle:{"text-align":"right","margin-top":"5px"}},[i("pagination",{attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1)],1),e._v(" "),i("notice-form",{ref:"NoticeForm",attrs:{"role-list":e.roleList},on:{getList:e.getList}})],1)},a=[],r=i("db72"),o=i("8b29"),s=i("50fc"),l=i("3577"),c=i("333d"),u=function(){return{Asc:!0,SortField:"",NoticeContent:null,FileName:null,NoticeTypeEnum:null,NoticeLevelEnum:null,ApplicableProjectEnum:null,NoticeModeEnum:null,NoticeStateEnum:null,PageIndex:1,PageSize:20}},d={components:{NoticeForm:l["default"],Pagination:c["default"]},dicts:["NoticeApplicableTrial","NoteLevel","NoteType","NoticeState","NoticeMode"],data:function(){return{list:[],total:0,loading:!1,treeData:[],defaultProps:{label:"MenuName",children:"Children"},userList:[],roleList:[],searchData:u(),dialogVisible:!1,editRow:{},expandedKeys:[],treeLoading:!1,funcListLoading:!1,funcList:[]}},mounted:function(){this.getUserTypeRoleList(),this.getList()},methods:{handlePush:function(e){var t=this;this.loading=!0;var i=Object(r["a"])({},e);i.NoticeUserTypeIdList=i.NoticeUserTypeList.map((function(e){return e.Id})),i.NoticeStateEnum=1,Object(o["a"])(i).then((function(e){t.loading=!1,t.$message.success("发布成功"),t.getList()})).catch((function(){t.loading=!1}))},handleGet:function(e){var t=this;this.loading=!0;var i=Object(r["a"])({},e);i.NoticeUserTypeIdList=i.NoticeUserTypeList.map((function(e){return e.Id})),i.NoticeStateEnum=0,Object(o["a"])(i).then((function(e){t.loading=!1,t.$message.success("撤回成功"),t.getList()})).catch((function(){t.loading=!1}))},handleEdit:function(e){var t=this;this.$nextTick((function(){t.$refs["NoticeForm"].openDialog("编辑",e)}))},handleAdd:function(){var e=this;this.$nextTick((function(){e.$refs["NoticeForm"].openDialog("新增",{})}))},getUserTypeRoleList:function(){var e=this;Object(s["p"])({}).then((function(t){e.roleList=t.Result})).catch((function(){}))},getList:function(){var e=this;this.loading=!0,Object(o["b"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))}}},f=d,h=(i("fefd"),i("2877")),p=Object(h["a"])(f,n,a,!1,null,null,null);t["default"]=p.exports},2039:function(e,t,i){var n=i("6d8b"),a={};function r(){this._coordinateSystems=[]}r.prototype={constructor:r,create:function(e,t){var i=[];n.each(a,(function(n,a){var r=n.create(e,t);i=i.concat(r||[])})),this._coordinateSystems=i},update:function(e,t){n.each(this._coordinateSystems,(function(i){i.update&&i.update(e,t)}))},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},r.register=function(e,t){a[e]=t},r.get=function(e){return a[e]};var o=r;e.exports=o},2048:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"study-wrapper"},[i("h4",{staticStyle:{color:"#ddd",padding:"5px 0px",margin:"0","text-align":"center","background-color":"#4c4c4c"}},[e._v("\n "+e._s(e.subjectCode)+"\n ")]),e._v(" "),i("h4",{staticStyle:{color:"#ddd",padding:"5px 0px",margin:"0","text-align":"center","background-color":"#4c4c4c","margin-bottom":"5px"}},[e._v("\n "+e._s(e.taskBlindName)+"\n ")]),e._v(" "),i("div",{staticClass:"ps"},[i("el-collapse",{model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},e._l(e.studyList,(function(t,n){return i("el-collapse-item",{key:""+t.StudyId,attrs:{name:""+t.StudyId}},[i("template",{slot:"title"},[t.IsCriticalSequence?i("div",{staticClass:"dicom-desc"},[e._v("\n "+e._s(e.$t("trials:reading:title:keySeries"))+"\n ")]):i("div",{staticClass:"dicom-desc",staticStyle:{width:"150px","white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis"}},[i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:t.StudyCode+" "+(t.Description?t.Description:"")+" "+t.Modalities+" ("+t.SeriesCount+")",placement:"right"}},[i("div",[i("span",[e._v(e._s(t.StudyCode)+" "+e._s(t.Description))]),e._v(" "),i("span",[e._v(" "+e._s(t.Modalities)+" ("+e._s(t.SeriesCount)+")")])])])],1)]),e._v(" "),i("div",{staticClass:"series"},e._l(t.SeriesList,(function(t,a){return i("div",{key:a,staticStyle:{position:"relative",margin:"10px 0px"},attrs:{"series-type":"current"},on:{click:function(i){return e.showSeriesImage(n,a,t)}}},[i("div",{staticClass:"series-wrapper",class:{"series-active":a==e.seriesIndex&&n===e.studyIndex}},[i("el-image",{staticClass:"image-preview",attrs:{src:t.previewImageUrl,fit:"fill"}}),e._v(" "),i("div",{staticClass:"image-desc"},[i("div",{staticClass:"flex-div"},[i("div",[e._v("#"+e._s(t.seriesNumber)+" ")]),e._v(" "),t.isDicom&&t.sliceThickness&&5!==parseInt(t.sliceThickness)&&t.instanceCount>100&&t.prefetchInstanceCount<t.instanceCount?i("div",[t.isLoading&&0!==t.prefetchInstanceCount?i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$t("trials:reading:button:pause"),placement:"bottom"}},[i("i",{staticClass:"el-icon-video-pause",staticStyle:{"font-size":"18px","margin-right":"5px",color:"#ffeb3b",cursor:"pointer"},on:{click:function(i){return i.stopPropagation(),e.stopLoadSeries(t,n,a)}}})]):i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$t("trials:reading:button:download"),placement:"bottom"}},[i("i",{staticClass:"el-icon-video-play",staticStyle:{"font-size":"18px","margin-right":"5px",color:"#ffeb3b",cursor:"pointer"},on:{click:function(i){return i.stopPropagation(),e.loadSeries(t,n,a)}}})])],1):0===t.prefetchInstanceCount?i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$t("trials:reading:button:download"),placement:"bottom"}},[i("i",{staticClass:"el-icon-video-play",staticStyle:{"font-size":"18px","margin-right":"5px",color:"#ffeb3b",cursor:"pointer"},on:{click:function(i){return i.stopPropagation(),e.loadSeries(t,n,a)}}})]):e._e()],1),e._v(" "),i("p",{directives:[{name:"show",rawName:"v-show",value:t.description,expression:"series.description"}]},[i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:t.description,placement:"right"}},[i("div",{},[e._v(e._s(t.description))])])],1),e._v(" "),i("p",{directives:[{name:"show",rawName:"v-show",value:t.sliceThickness,expression:"series.sliceThickness"}]},[e._v("\n T: "+e._s(t.sliceThickness)+"\n ")]),e._v(" "),i("p",{directives:[{name:"show",rawName:"v-show",value:t.instanceCount,expression:"series.instanceCount"}]},[e._v("\n "+e._s(t.modality)+": "+e._s(t.instanceCount)+" image\n ")]),e._v(" "),i("div",{staticClass:"flex-div"},[t.isBeMark||e.measureData.findIndex((function(e){return e.SeriesId===t.seriesId}))>-1?i("div",[i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$t("trials:reading:button:marked"),placement:"right"}},[i("i",{staticClass:"el-icon-star-on",staticStyle:{"font-size":"16px",color:"#ff5722"}})])],1):e._e()])])],1),e._v(" "),t.isDicom&&t.prefetchInstanceCount>0&&t.prefetchInstanceCount<t.instanceCount?i("div",{staticStyle:{width:"100%"}},[i("el-progress",{attrs:{percentage:parseInt((t.prefetchInstanceCount/t.instanceCount*100).toFixed(2))}})],1):e._e()])})),0)],2)})),1)],1)])},a=[],r=(i("6762"),i("2fdb"),i("ac6a"),i("456d"),i("28a5"),i("75fc")),o=(i("96cf"),i("3b8d")),s=(i("20d6"),i("db72")),l=(i("c5f6"),i("acd4")),c=i("81d9"),u=i("344d"),d=i("f5c4"),f=i("9b92"),h=i("2f62"),p=i("4360");u["external"].dicomParser=l,u["external"].cornerstone=c;var m={name:"CustomizeStudyList",props:{trialId:{type:String,required:!0},subjectVisitId:{type:String,required:!0},visitTaskId:{type:String,required:!0},isReading:{type:Number,default:0},taskBlindName:{type:String,default:""}},data:function(){return{studyList:[],cachedImages:[],studyIndex:null,seriesIndex:null,loading:!1,measureData:[],isRender:!1,firstInstanceId:"",firstSeries:[],firstSeriesId:"",isStartLoad:!1,subjectCode:"",activeNames:[],seriesArr:[],imageList:[],loopLoadStatus:0,numRequest:0,maxRequest:2}},computed:Object(s["a"])({},Object(h["b"])(["visitTaskList"])),mounted:function(){var e=this;this.subjectCode=this.$router.currentRoute.query.subjectCode,f["a"].$on("getMeasureData",(function(){var t=e.visitTaskList.findIndex((function(t){return t.VisitTaskId===e.visitTaskId}));e.measureData=e.visitTaskList[t].MeasureData})),f["a"].$on("setReadingState",(function(t){var i=e.visitTaskList.findIndex((function(t){return t.VisitTaskId===e.visitTaskId}));i>-1&&(e.studyList=e.visitTaskList[i].StudyList)})),c["events"].addEventListener("cornerstoneimageloaded",this.cornerstoneImageLoaded),c["events"].addEventListener("cornerstoneimagecachechanged",(function(){}))},beforeDestroy:function(){console.log("beforeDestroy"),c["imageCache"].purgeCache(),f["a"].$off("getMeasureData")},methods:{getStudyInfo:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.isRender||t){var i=this.$loading({fullscreen:!0});this.getInitSeries().then((function(t){var i=t.findIndex((function(e){return e.isCurrentTask}));if(i>-1){e.firstSeriesId=t[i].seriesId;var n=parseInt((new Date).getTime()),a=e.visitTaskList.findIndex((function(t){return t.VisitTaskId===e.visitTaskId}));a>-1&&(e.studyList=e.visitTaskList[a].StudyList,e.studyList.map((function(a,r){a.SeriesList.map((function(a,o){var s=isNaN(parseInt(a.sliceThickness))?null:parseInt(a.sliceThickness);(5===s||a.instanceCount<=100)&&a.imageIds.map((function(s){var l=0;l=a.seriesId===t[i].seriesId?10*parseInt((new Date).getTime()):--n,e.imageList.push({imageId:s,seriesId:a.seriesId,studyIndex:r,seriesIndex:o,visitTaskId:a.visitTaskId,priority:l})}))}))})),e.loopLoad())}f["a"].$emit("loadImageStacks",t)})),this.isRender=!0,i.close()}else this.$emit("loadImageStack",this.studyList[this.studyIndex].SeriesList[this.seriesIndex])},initStudyList:function(){var e=this;if(!this.isRender){var t=this.visitTaskList.findIndex((function(t){return t.VisitTaskId===e.visitTaskId}));if(t>-1&&this.visitTaskList[t].StudyList&&this.visitTaskList[t].StudyList.length>0){this.studyList=this.visitTaskList[t].StudyList;var i=this.studyList.findIndex((function(e){return e.IsDicom}));i>-1&&(this.studyIndex=i,this.seriesIndex=0,this.activeNames=["".concat(this.studyList[i].StudyId)],this.loadImages(this.visitTaskList[t]))}this.isRender=!0}},getInitSeries:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,i,n,a,o,l,c,u,d,f,h,m,g,v,b,y,w=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=[],i=JSON.parse(this.$router.currentRoute.query.isReadingTaskViewInOrder),n=this.visitTaskList.findIndex((function(e){return e.VisitTaskId===w.visitTaskId})),this.studyList=this.visitTaskList[n].StudyList,!this.visitTaskList[n].IsBaseLineTask&&i){e.next=18;break}a=this.getFirstMarkedSeries(this.visitTaskList[n].MeasureData,Object(r["a"])(this.visitTaskList[n].StudyList)),this.studyIndex=a.studyIndex,this.seriesIndex=a.seriesIndex,t.push(a.series),this.activeNames=["".concat(this.studyList[this.studyIndex].StudyId)],o=a.series.imageIds[a.series.imageIdIndex],l=o.split("/")[o.split("/").length-1],l=l.split(".")[0],this.firstInstanceId=l,this.firstSeries=a.series.imageIds,this.studyList[a.studyIndex].SeriesList[a.seriesIndex].isFirstRender=!0,e.next=51;break;case 18:if(c=null,u=parseInt(localStorage.getItem("CriterionType")),10===u?(d=this.visitTaskList.findIndex((function(e){return e.IsCurrentTask})),c=d-1):c=this.visitTaskList.findIndex((function(e){return e.IsBaseLineTask})),!(c>-1)){e.next=44;break}return f=this.$router.currentRoute.query.trialId,e.next=25,p["a"].dispatch("reading/getMeasuredData",this.visitTaskList[c].VisitTaskId);case 25:return e.next=27,p["a"].dispatch("reading/getStudyInfo",{trialId:f,subjectVisitId:this.visitTaskList[c].VisitId,visitTaskId:this.visitTaskList[c].VisitTaskId,taskBlindName:this.visitTaskList[c].TaskBlindName});case 27:h=this.getFirstMarkedSeries(this.visitTaskList[c].MeasureData,Object(r["a"])(this.visitTaskList[c].StudyList)),t.push(h.series),m=this.getSecondMarkedSeries(h,Object(s["a"])({},this.visitTaskList[n])),this.studyIndex=m.studyIndex,this.seriesIndex=m.seriesIndex,t.push(m.series),g=m.series.imageIds[m.series.imageIdIndex],v=g.split("/")[g.split("/").length-1],v=v.split(".")[0],this.firstInstanceId=v,this.firstSeries=m.series.imageIds,this.studyList[m.studyIndex].SeriesList[m.seriesIndex].isFirstRender=!0,this.studyIndex=m.studyIndex,this.seriesIndex=m.seriesIndex,this.activeNames=["".concat(this.studyList[m.studyIndex].StudyId)],e.next=51;break;case 44:b=this.studyList.findIndex((function(e){return e.IsDicom})),y=this.studyList[b].SeriesList[0],y.imageIdIndex=Math.floor(y.imageIds.length/2),t.push(y),this.studyIndex=b,this.seriesIndex=0,this.activeNames=["".concat(this.studyList[b].StudyId)];case 51:return e.abrupt("return",t);case 52:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getSecondMarkedSeries:function(e,t){var i={},n=t.StudyList,a=t.MeasureData;if(e.isMarked){var o=a.findIndex((function(t){return Object.keys(t.MeasureData).length>0&&t.OrderMarkName===e.measureData.OrderMarkName}));if(-1!==o){var s=n.findIndex((function(e){return e.StudyId===a[o].StudyId})),l=n[s].SeriesList,c=l.findIndex((function(e){return e.seriesId===a[o].SeriesId})),u=l[c].instanceList,d=u.findIndex((function(e){return e.includes(a[o].InstanceId)})),f=l[c];return f.imageIdIndex=d,i.studyIndex=s,i.seriesIndex=c,i.series=f,i.seriesId=f.seriesId,i}}var h=[];if(n.forEach((function(t,i){var n=t.SeriesList.filter((function(t){return t.description===e.series.description}));n.length>0&&h.push.apply(h,Object(r["a"])(n))})),h.length>0){var p=h.filter((function(t){return t.sliceThickness===e.series.sliceThickness}));if(p.length>0){var m=this.findSerialNumberClosest(p,e.series.seriesNumber);if(m>-1){i.studyIndex=p[m].studyIndex,i.seriesIndex=p[m].seriesIndex,i.series=p[m];var g=Math.floor(p[m].imageIds.length*(e.series.imageIdIndex/e.series.instanceCount));i.series.imageIdIndex=g,i.seriesId=p[m].seriesId}else{var v=p[0].studyIndex,b=p[0],y=Math.floor(b.imageIds.length*(e.series.imageIdIndex/e.series.instanceCount));i.studyIndex=v,i.seriesIndex=0,i.series=b,i.series.imageIdIndex=y,i.seriesId=b.seriesId}}else{var w=h[0].studyIndex,_=h[0],I=Math.floor(_.imageIds.length*(e.series.imageIdIndex/e.series.instanceCount));i.studyIndex=w,i.seriesIndex=0,i.series=_,i.series.imageIdIndex=I,i.seriesId=_.seriesId}}else{for(var x=null,S=0;S<n.length;S++){var T=n[S].SeriesList.findIndex((function(e){return e.sliceThickness&&5===parseInt(e.sliceThickness)}));if(T>-1){x={studyIndex:S,seriesIdx:T,series:n[S].SeriesList[T]};break}}if(x)i.studyIndex=x.studyIndex,i.seriesIndex=x.seriesIdx,x.series.imageIdIndex=Math.floor(x.series.imageIds.length/2),i.series=x.series,i.seriesId=x.series.seriesId;else{var C=n.findIndex((function(e){return e.IsDicom})),k=n[C].SeriesList[0];k.imageIdIndex=Math.floor(k.imageIds.length/2),i.studyIndex=C,i.seriesIndex=0,i.series=k,i.seriesId=k.seriesId}}return i},findSerialNumberClosest:function(e,t){for(var i=[],n=0;n<e.length;n++){var a=t-e[n].seriesNumber;i.push({index:n,n:Math.abs(a)})}var r=Math.min.apply(null,i.map((function(e){return e.n}))),o=i.findIndex((function(e){return e.n===r}));return o},getFirstMarkedSeries:function(e,t){var i={},n=e.findIndex((function(e){return Object.keys(e.MeasureData).length>0}));if(-1!==n){var a=t.findIndex((function(t){return t.StudyId===e[n].StudyId})),r=t[a].SeriesList,o=r.findIndex((function(t){return t.seriesId===e[n].SeriesId})),s=r[o].instanceList,l=s.findIndex((function(t){return t.includes(e[n].InstanceId)})),c=r[o];c.imageIdIndex=l,i.studyIndex=a,i.seriesIndex=o,i.series=c,i.seriesId=c.seriesId,i.isMarked=!0,i.measureData=e[n]}else{for(var u=null,d=0;d<t.length;d++){var f=t[d].SeriesList.findIndex((function(e){return e.sliceThickness&&5===parseInt(e.sliceThickness)}));if(f>-1){u={studyIndex:d,seriesIdx:f,series:t[d].SeriesList[f]};break}}if(u)i.studyIndex=u.studyIndex,i.seriesIndex=u.seriesIdx,u.series.imageIdIndex=Math.floor(u.series.imageIds.length/2),i.series=u.series,i.seriesId=u.series.seriesId,i.isMarked=!1;else{var h=t.findIndex((function(e){return e.IsDicom})),p=t[h].SeriesList[0],m=Math.floor(p.imageIds.length/2);i.studyIndex=h,i.seriesIndex=0,i.series=p,i.series.imageIdIndex=m,i.seriesId=p.seriesId,i.isMarked=!1}}return i},previewImageLoad:function(){this.studyList[0].PreviewImageCount++,this.studyList[0].PreviewImageCount===this.studyList[0].SeriesCount&&this.loadAllImages()},previewImageLoadError:function(){this.studyList[0].PreviewImageCount++,this.studyList[0].previewImageCount===this.studyList[0].seriesCount&&this.loadAllImages()},showSeriesImage:function(e,t,i){var n=this;if(i.isDicom){this.studyIndex=e,this.seriesIndex=t,this.studyList[e].SeriesList[t].measureData=this.measureData;var a=this.studyList[e].SeriesList[t];if(this.$emit("loadImageStack",a),!i.loadStatus){this.loopLoadStatus=-1,i.isLoading=!0;var r=parseInt((new Date).getTime());i.imageIds.map((function(a,o){var s="";s=0===o?10*parseInt((new Date).getTime()):--r,n.imageList.push({imageId:a,seriesId:i.seriesId,studyIndex:e,seriesIndex:t,visitTaskId:i.visitTaskId,priority:s})})),this.imageList.length>0&&(this.loopLoadStatus=0,this.loopLoad())}f["a"].$emit("loadMeasurementList",{visitTaskId:this.visitTaskId,taskBlindName:this.taskBlindName})}else this.$emit("previewNoneDicoms",{visitTaskId:this.visitTaskId})},selectSeries:function(e){var t=this.studyList.map((function(e){return e.SeriesList})).flat(),i=t.findIndex((function(t){return t.seriesId===e.seriesId&&t.studyId===e.studyId}));if(-1!==i){var n=i+e.offset;n<0?n=0:n>=t.length&&(n=t.length-1),console.log(t[n]),t[n].seriesIndex===this.seriesIndex&&t[n].studyIndex===this.studyIndex||(this.showSeriesImage(t[n].studyIndex,t[n].seriesIndex,t[n]),this.activeSeries(t[n]))}},activeSeries:function(e){console.log(e.studyIndex,e.seriesIndex),this.studyIndex=e.studyIndex,this.seriesIndex=e.seriesIndex;var t=this.visitTaskList.findIndex((function(t){return t.VisitTaskId===e.visitTaskId}));if(-1!==t){this.studyList=this.visitTaskList[t].StudyList;var i="".concat(this.studyList[e.studyIndex].StudyId);this.activeNames.includes(i)||this.activeNames.push(i)}},toggleStudy:function(e){var t=this;if(console.log("toggleStudy"),e.studyId){if(!this.isRender){var i=this.visitTaskList.findIndex((function(e){return e.VisitTaskId===t.visitTaskId}));i>-1&&this.visitTaskList[i].StudyList&&this.visitTaskList[i].StudyList.length>0&&(this.studyList=this.visitTaskList[i].StudyList,this.loadImages(this.visitTaskList[i])),this.isRender=!0}var n=this.studyList.findIndex((function(t){return t.StudyId===e.studyId}));if(-1!==n){var a=this.studyList[n],r=a.SeriesList.findIndex((function(t){return t.seriesId===e.seriesId}));-1!==r&&(this.studyIndex=n,this.seriesIndex=r,this.activeNames.includes("".concat(this.studyList[n].StudyId))||this.activeNames.push("".concat(this.studyList[n].StudyId)),f["a"].$emit("loadMeasurementList",{visitTaskId:this.visitTaskId,taskBlindName:this.taskBlindName}))}}},loadImages:function(e){var t=this,i=parseInt((new Date).getTime());if(e.IsCurrentTask)this.studyList.map((function(e,n){e.SeriesList.map((function(e,a){var r=isNaN(parseInt(e.sliceThickness))?null:parseInt(e.sliceThickness);(5===r||e.instanceCount<=100)&&e.imageIds.map((function(r){i-=1,t.imageList.push({imageId:r,seriesId:e.seriesId,studyIndex:n,seriesIndex:a,visitTaskId:e.visitTaskId,priority:i})}))}))})),this.loopLoad();else{var n=this.studyList.findIndex((function(e){return e.IsCriticalSequence}));if(-1===n)return;this.studyList[n].SeriesList.forEach((function(e,a){e.loadStatus||e.imageIds.map((function(r){i--,t.imageList.push({imageId:r,seriesId:e.seriesId,studyIndex:n,seriesIndex:a,visitTaskId:e.visitTaskId,priority:i})}))})),this.loopLoad()}},loopLoad:function(){var e=this;this.imageList.length>0&&(d["a"].startTaskTimer(),this.imageList.map((function(t){d["a"].loadAndCacheImagePlus(t.imageId,t.seriesId,t.priority).then((function(i){e.imageLoaded(t,i.data.string("x0020000e"))}))})),this.imageList=[])},loadSeries:function(e,t,i){var n=this;console.log("loadSeries"),this.loopLoadStatus=-1,this.$set(this.studyList[t].SeriesList[i],"isLoading",!0);var a=parseInt((new Date).getTime());e.imageIds.map((function(r){-1===e.imageloadedArr.indexOf(r)&&n.imageList.push({imageId:r,seriesId:e.seriesId,studyIndex:t,seriesIndex:i,visitTaskId:e.visitTaskId,priority:a})})),this.imageList.length>0&&(this.loopLoadStatus=0,this.loopLoad())},stopLoadSeries:function(e,t,i){console.log("stopLoadSeries"),d["a"].removeTask(e.seriesId),this.$set(this.studyList[t].SeriesList[i],"isLoading",!1)},stopLoadSeries2:function(e,t,i){this.loopLoadStatus=-1,this.$set(this.studyList[t].SeriesList[i],"isLoading",!1);for(var n=this.imageList.length-1;n>=0;n--){var a=this.imageList[n];a.seriesId===e.seriesId&&this.imageList.splice(n,1)}this.loopLoadStatus=0},load:function(e,t,i){return new Promise((function(e,t){}))},buildImageRequestTask:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(s["a"])(Object(s["a"])({key:e},t),{},{execute:function(){return c["loadAndCacheImage"](e)}})},datasetsCacheChanged:function(e){var t=e.detail.cacheInfo;t.cacheSizeInBytes},imageLoaded:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t,i){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,p["a"].dispatch("reading/updateStudyList",{visitTaskId:t.visitTaskId,imageId:t.imageId,seriesUid:i});case 2:case"end":return e.stop()}}),e)})));function t(t,i){return e.apply(this,arguments)}return t}(),cornerstoneImageLoaded:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){var i,n,a,r,o,s,l,c,u,d,f=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,p["a"].dispatch("reading/updateStudyList",{visitTaskId:this.visitTaskId,imageId:t.detail.image.imageId,seriesUid:t.detail.image.data.string("x0020000e")});case 2:i=this.visitTaskList.findIndex((function(e){return e.VisitTaskId===f.visitTaskId})),t.detail.image.imageId.includes(this.firstInstanceId)&&!this.isStartLoad&&(this.isStartLoad=!0),this.studyList=this.visitTaskList[i].StudyList,n=t.detail.image.sharedCacheKey,a=this.cachedImages.findIndex((function(e){return e.uri===n})),-1===a?this.cachedImages.push({uri:n,timestamp:(new Date).getTime()}):this.cachedImages[a].timestamp=(new Date).getTime(),r=t.detail.image.imageId,o=t.detail.image.data.string("x0020000e"),s=-1,l=-1,c=0;case 13:if(!(c<this.studyList.length)){e.next=28;break}u=0;case 15:if(!(u<this.studyList[c].SeriesList.length)){e.next=23;break}if(this.studyList[c].SeriesList[u].seriesUid!==o){e.next=20;break}return s=c,l=u,e.abrupt("break",23);case 20:++u,e.next=15;break;case 23:if(!(s>0)){e.next=25;break}return e.abrupt("break",28);case 25:++c,e.next=13;break;case 28:if(!(l<0)){e.next=30;break}return e.abrupt("return");case 30:if(d=this.studyList[s].SeriesList[l].imageIds.indexOf(r),!(d<0)){e.next=33;break}return e.abrupt("return");case 33:this.studyList[s].SeriesList[l].imageloadedArr.indexOf(r)<0&&this.studyList[s].SeriesList[l].prefetchInstanceCount>=this.studyList[s].SeriesList[l].instanceCount&&(this.studyList[s].SeriesList[l].loadStatus=!0);case 34:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()}},g=m,v=(i("0293"),i("2877")),b=Object(v["a"])(g,n,a,!1,null,"7863a3da",null);t["default"]=b.exports},2054:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",[i("div",{staticClass:"search"},[i("el-form",{staticClass:"base-search-form",attrs:{inline:!0,size:"mini"}},[i("el-form-item",{attrs:{label:"字典表名称:"}},[i("el-input",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.Code,callback:function(t){e.$set(e.searchData,"Code",t)},expression:"searchData.Code"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"字典分组:"}},[i("el-select",{attrs:{placeholder:"字典分组",clearable:"",size:"small"},model:{value:e.searchData.ConfigTypeId,callback:function(t){e.$set(e.searchData,"ConfigTypeId",t)},expression:"searchData.ConfigTypeId"}},e._l(e.basicDicList,(function(e){return i("el-option",{key:e.Id,attrs:{value:e.Id,label:e.Code}})})),1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:e.handleReset}},[e._v("Reset")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.handleSearch}},[e._v("Search")])],1)],1),e._v(" "),i("span",{staticStyle:{"margin-left":"auto"}},[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.handleSetting}},[e._v("配置字典分组")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.handleAdd}},[e._v("新建")])],1)],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:45},expression:"{bottomOffset:45}"}],attrs:{data:e.list,stripe:"",size:"small",height:"100"},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Code",label:"字典表名称",sortable:"custom","min-width":"180","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ConfigType",label:"字典分组",sortable:"custom","min-width":"180","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Description",label:"描述",sortable:"custom","min-width":"180","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ShowOrder",label:"显示顺序",sortable:"custom","min-width":"180","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:"是否可用",width:"100",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},on:{change:function(i){return e.switchChange(i,t.row)}},model:{value:t.row.IsEnable,callback:function(i){e.$set(t.row,"IsEnable",i)},expression:"scope.row.IsEnable"}})]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"操作",width:"300",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("\n 编辑\n ")]),e._v(" "),i("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(i){return e.handleChild(t.row)}}},[e._v("\n 子项\n ")]),e._v(" "),i("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("\n 删除\n ")])]}}])})],1),e._v(" "),i("div",{staticClass:"pagination",staticStyle:{"text-align":"right","margin-top":"5px"}},[i("pagination",{attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1),e._v(" "),i("DictionaryTypeConfigForm",{ref:"DictionaryTypeConfigForm",attrs:{"basic-dic-list":e.basicDicList},on:{getList:e.getList}}),e._v(" "),i("el-drawer",{attrs:{title:e.drawer_cfg.title,visible:e.drawer_cfg.drawerChild,direction:"rtl",size:"80%"},on:{"update:visible":function(t){return e.$set(e.drawer_cfg,"drawerChild",t)}}},[e.drawer_cfg.drawerChild?i("DictionaryChild",{ref:"DictionaryChild",attrs:{parent:e.drawer_cfg.parent}}):e._e()],1)],1)},a=[],r=(i("20d6"),i("e56e")),o=i("fc57"),s=i("333d"),l=i("f36a"),c=function(){return{Asc:!0,SortField:"",Code:"",KeyName:"",IsConfig:!1,PageIndex:1,PageSize:20,ConfigTypeId:null}},u={components:{BoxContent:l["default"],Pagination:s["default"],DictionaryTypeConfigForm:o["default"],DictionaryChild:o["default"]},data:function(){return{searchData:c(),basicDicList:[],list:[],total:0,loading:!1,drawer_cfg:{drawerChild:!1,parentId:"",title:""},rowData:{},model_cfg:{visible:!1,showClose:!0,width:"600px",title:"",appendToBody:!0}}},mounted:function(){this.getList(),this.getDictionaryTypeConfig()},methods:{handleSortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()},handleChild:function(e){this.drawer_cfg={drawerChild:!0,parentId:e.Id,title:e.Code,parent:e}},handleSetting:function(){this.$router.push({path:"/dictionary/newDictionary/setting"})},switchChange:function(e,t){var i=this;this.loading=!0,Object(r["c"])(t).then((function(e){i.$message.success("Saved successfully!"),i.loading=!1})).catch((function(){i.loading=!1}))},handleEdit:function(e){var t=this;this.$nextTick((function(){t.$refs["DictionaryTypeConfigForm"].openDialog("DictionaryTypeConfig",e)}))},handleAdd:function(){var e=this;this.$nextTick((function(){e.$refs["DictionaryTypeConfigForm"].openDialog("DictionaryTypeConfig",{})}))},handleDelete:function(e){var t=this;this.$confirm("Sure to delete?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){t.loading=!0,Object(r["C"])(e.Id).then((function(i){t.loading=!1,i.IsSuccess&&(t.list.splice(t.list.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success("Deleted successfully!"))})).catch((function(){t.loading=!1}))}))},getList:function(){var e=this;this.loading=!0,Object(r["W"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},getDictionaryTypeConfig:function(){var e=this;Object(r["W"])({IsConfig:!0,SortField:"Code"}).then((function(t){e.basicDicList=t.Result.CurrentPageData,console.log(e.basicDicList)})).catch((function(){}))},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=c(),this.getList()}}},d=u,f=i("2877"),h=Object(f["a"])(d,n,a,!1,null,null,null);t["default"]=h.exports},"20aa":function(e,t,i){"use strict";i("7810")},"20c8":function(e,t,i){var n=i("4a3f"),a=i("401b"),r=i("e263"),o=i("9850"),s=i("2cf4"),l=s.devicePixelRatio,c={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},u=[],d=[],f=[],h=[],p=Math.min,m=Math.max,g=Math.cos,v=Math.sin,b=Math.sqrt,y=Math.abs,w="undefined"!==typeof Float32Array,_=function(e){this._saveData=!e,this._saveData&&(this.data=[]),this._ctx=null};_.prototype={constructor:_,_xi:0,_yi:0,_x0:0,_y0:0,_ux:0,_uy:0,_len:0,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(e,t,i){i=i||0,this._ux=y(i/l/e)||0,this._uy=y(i/l/t)||0},getContext:function(){return this._ctx},beginPath:function(e){return this._ctx=e,e&&e.beginPath(),e&&(this.dpr=e.dpr),this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(e,t){return this.addData(c.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},lineTo:function(e,t){var i=y(e-this._xi)>this._ux||y(t-this._yi)>this._uy||this._len<5;return this.addData(c.L,e,t),this._ctx&&i&&(this._needsDash()?this._dashedLineTo(e,t):this._ctx.lineTo(e,t)),i&&(this._xi=e,this._yi=t),this},bezierCurveTo:function(e,t,i,n,a,r){return this.addData(c.C,e,t,i,n,a,r),this._ctx&&(this._needsDash()?this._dashedBezierTo(e,t,i,n,a,r):this._ctx.bezierCurveTo(e,t,i,n,a,r)),this._xi=a,this._yi=r,this},quadraticCurveTo:function(e,t,i,n){return this.addData(c.Q,e,t,i,n),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(e,t,i,n):this._ctx.quadraticCurveTo(e,t,i,n)),this._xi=i,this._yi=n,this},arc:function(e,t,i,n,a,r){return this.addData(c.A,e,t,i,i,n,a-n,0,r?0:1),this._ctx&&this._ctx.arc(e,t,i,n,a,r),this._xi=g(a)*i+e,this._yi=v(a)*i+t,this},arcTo:function(e,t,i,n,a){return this._ctx&&this._ctx.arcTo(e,t,i,n,a),this},rect:function(e,t,i,n){return this._ctx&&this._ctx.rect(e,t,i,n),this.addData(c.R,e,t,i,n),this},closePath:function(){this.addData(c.Z);var e=this._ctx,t=this._x0,i=this._y0;return e&&(this._needsDash()&&this._dashedLineTo(t,i),e.closePath()),this._xi=t,this._yi=i,this},fill:function(e){e&&e.fill(),this.toStatic()},stroke:function(e){e&&e.stroke(),this.toStatic()},setLineDash:function(e){if(e instanceof Array){this._lineDash=e,this._dashIdx=0;for(var t=0,i=0;i<e.length;i++)t+=e[i];this._dashSum=t}return this},setLineDashOffset:function(e){return this._dashOffset=e,this},len:function(){return this._len},setData:function(e){var t=e.length;this.data&&this.data.length===t||!w||(this.data=new Float32Array(t));for(var i=0;i<t;i++)this.data[i]=e[i];this._len=t},appendPath:function(e){e instanceof Array||(e=[e]);for(var t=e.length,i=0,n=this._len,a=0;a<t;a++)i+=e[a].len();w&&this.data instanceof Float32Array&&(this.data=new Float32Array(n+i));for(a=0;a<t;a++)for(var r=e[a].data,o=0;o<r.length;o++)this.data[n++]=r[o];this._len=n},addData:function(e){if(this._saveData){var t=this.data;this._len+arguments.length>t.length&&(this._expandData(),t=this.data);for(var i=0;i<arguments.length;i++)t[this._len++]=arguments[i];this._prevCmd=e}},_expandData:function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},_needsDash:function(){return this._lineDash},_dashedLineTo:function(e,t){var i,n,a=this._dashSum,r=this._dashOffset,o=this._lineDash,s=this._ctx,l=this._xi,c=this._yi,u=e-l,d=t-c,f=b(u*u+d*d),h=l,g=c,v=o.length;u/=f,d/=f,r<0&&(r=a+r),r%=a,h-=r*u,g-=r*d;while(u>0&&h<=e||u<0&&h>=e||0===u&&(d>0&&g<=t||d<0&&g>=t))n=this._dashIdx,i=o[n],h+=u*i,g+=d*i,this._dashIdx=(n+1)%v,u>0&&h<l||u<0&&h>l||d>0&&g<c||d<0&&g>c||s[n%2?"moveTo":"lineTo"](u>=0?p(h,e):m(h,e),d>=0?p(g,t):m(g,t));u=h-e,d=g-t,this._dashOffset=-b(u*u+d*d)},_dashedBezierTo:function(e,t,i,a,r,o){var s,l,c,u,d,f=this._dashSum,h=this._dashOffset,p=this._lineDash,m=this._ctx,g=this._xi,v=this._yi,y=n.cubicAt,w=0,_=this._dashIdx,I=p.length,x=0;for(h<0&&(h=f+h),h%=f,s=0;s<1;s+=.1)l=y(g,e,i,r,s+.1)-y(g,e,i,r,s),c=y(v,t,a,o,s+.1)-y(v,t,a,o,s),w+=b(l*l+c*c);for(;_<I;_++)if(x+=p[_],x>h)break;s=(x-h)/w;while(s<=1)u=y(g,e,i,r,s),d=y(v,t,a,o,s),_%2?m.moveTo(u,d):m.lineTo(u,d),s+=p[_]/w,_=(_+1)%I;_%2!==0&&m.lineTo(r,o),l=r-u,c=o-d,this._dashOffset=-b(l*l+c*c)},_dashedQuadraticTo:function(e,t,i,n){var a=i,r=n;i=(i+2*e)/3,n=(n+2*t)/3,e=(this._xi+2*e)/3,t=(this._yi+2*t)/3,this._dashedBezierTo(e,t,i,n,a,r)},toStatic:function(){var e=this.data;e instanceof Array&&(e.length=this._len,w&&(this.data=new Float32Array(e)))},getBoundingRect:function(){u[0]=u[1]=f[0]=f[1]=Number.MAX_VALUE,d[0]=d[1]=h[0]=h[1]=-Number.MAX_VALUE;for(var e=this.data,t=0,i=0,n=0,s=0,l=0;l<e.length;){var p=e[l++];switch(1===l&&(t=e[l],i=e[l+1],n=t,s=i),p){case c.M:n=e[l++],s=e[l++],t=n,i=s,f[0]=n,f[1]=s,h[0]=n,h[1]=s;break;case c.L:r.fromLine(t,i,e[l],e[l+1],f,h),t=e[l++],i=e[l++];break;case c.C:r.fromCubic(t,i,e[l++],e[l++],e[l++],e[l++],e[l],e[l+1],f,h),t=e[l++],i=e[l++];break;case c.Q:r.fromQuadratic(t,i,e[l++],e[l++],e[l],e[l+1],f,h),t=e[l++],i=e[l++];break;case c.A:var m=e[l++],b=e[l++],y=e[l++],w=e[l++],_=e[l++],I=e[l++]+_;l+=1;var x=1-e[l++];1===l&&(n=g(_)*y+m,s=v(_)*w+b),r.fromArc(m,b,y,w,_,I,x,f,h),t=g(I)*y+m,i=v(I)*w+b;break;case c.R:n=t=e[l++],s=i=e[l++];var S=e[l++],T=e[l++];r.fromLine(n,s,n+S,s+T,f,h);break;case c.Z:t=n,i=s;break}a.min(u,u,f),a.max(d,d,h)}return 0===l&&(u[0]=u[1]=d[0]=d[1]=0),new o(u[0],u[1],d[0]-u[0],d[1]-u[1])},rebuildPath:function(e){for(var t,i,n,a,r,o,s=this.data,l=this._ux,u=this._uy,d=this._len,f=0;f<d;){var h=s[f++];switch(1===f&&(n=s[f],a=s[f+1],t=n,i=a),h){case c.M:t=n=s[f++],i=a=s[f++],e.moveTo(n,a);break;case c.L:r=s[f++],o=s[f++],(y(r-n)>l||y(o-a)>u||f===d-1)&&(e.lineTo(r,o),n=r,a=o);break;case c.C:e.bezierCurveTo(s[f++],s[f++],s[f++],s[f++],s[f++],s[f++]),n=s[f-2],a=s[f-1];break;case c.Q:e.quadraticCurveTo(s[f++],s[f++],s[f++],s[f++]),n=s[f-2],a=s[f-1];break;case c.A:var p=s[f++],m=s[f++],b=s[f++],w=s[f++],_=s[f++],I=s[f++],x=s[f++],S=s[f++],T=b>w?b:w,C=b>w?1:b/w,k=b>w?w/b:1,R=Math.abs(b-w)>.001,D=_+I;R?(e.translate(p,m),e.rotate(x),e.scale(C,k),e.arc(0,0,T,_,D,1-S),e.scale(1/C,1/k),e.rotate(-x),e.translate(-p,-m)):e.arc(p,m,T,_,D,1-S),1===f&&(t=g(_)*b+p,i=v(_)*w+m),n=g(D)*b+p,a=v(D)*w+m;break;case c.R:t=n=s[f],i=a=s[f+1],e.rect(s[f++],s[f++],s[f++],s[f++]);break;case c.Z:e.closePath(),n=t,a=i}}}},_.CMD=c;var I=_;e.exports=I},"20e7":function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-chart",use:"icon-chart-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-chart"><path d="M0 54.857h36.571V128H0V54.857zM91.429 27.43H128V128H91.429V27.429zM45.714 0h36.572v128H45.714V0z" /></symbol>'});o.a.add(s);t["default"]=s},2145:function(e,t){var i={};function n(e,t){i[e]=t}function a(e){return i[e]}t.register=n,t.get=a},2163:function(e,t,i){var n=i("4f85"),a=i("06c7"),r=i("eda2"),o=r.encodeHTML,s=i("4319"),l=n.extend({type:"series.tree",layoutInfo:null,layoutMode:"box",getInitialData:function(e){var t={name:e.name,children:e.data},i=e.leaves||{},n=new s(i,this,this.ecModel),r=a.createTree(t,this,o);function o(e){e.wrapMethod("getItemModel",(function(e,t){var i=r.getNodeByDataIndex(t);return i.children.length&&i.isExpand||(e.parentModel=n),e}))}var l=0;r.eachNode("preorder",(function(e){e.depth>l&&(l=e.depth)}));var c=e.expandAndCollapse,u=c&&e.initialTreeDepth>=0?e.initialTreeDepth:l;return r.root.eachNode("preorder",(function(e){var t=e.hostTree.data.getRawDataItem(e.dataIndex);e.isExpand=t&&null!=t.collapsed?!t.collapsed:e.depth<=u})),r.data},getOrient:function(){var e=this.get("orient");return"horizontal"===e?e="LR":"vertical"===e&&(e="TB"),e},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e},formatTooltip:function(e){var t=this.getData().tree,i=t.root.children[0],n=t.getNodeByDataIndex(e),a=n.getValue(),r=n.name;while(n&&n!==i)r=n.parentNode.name+"."+r,n=n.parentNode;return o(r+(isNaN(a)||null==a?"":" : "+a))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderColor:"#c23531",borderWidth:1.5},label:{show:!0,color:"#555"},leaves:{label:{show:!0}},animationEasing:"linear",animationDuration:700,animationDurationUpdate:1e3}});e.exports=l},"216a":function(e,t,i){var n=i("6d8b"),a=i("3842"),r=i("eda2"),o=i("944e"),s=i("89e3"),l=s.prototype,c=Math.ceil,u=Math.floor,d=1e3,f=60*d,h=60*f,p=24*h,m=function(e,t,i,n){while(i<n){var a=i+n>>>1;e[a][1]<t?i=a+1:n=a}return i},g=s.extend({type:"time",getLabel:function(e){var t=this._stepLvl,i=new Date(e);return r.formatTime(t[0],i,this.getSetting("useUTC"))},niceExtent:function(e){var t=this._extent;if(t[0]===t[1]&&(t[0]-=p,t[1]+=p),t[1]===-1/0&&t[0]===1/0){var i=new Date;t[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),t[0]=t[1]-p}this.niceTicks(e.splitNumber,e.minInterval,e.maxInterval);var n=this._interval;e.fixMin||(t[0]=a.round(u(t[0]/n)*n)),e.fixMax||(t[1]=a.round(c(t[1]/n)*n))},niceTicks:function(e,t,i){e=e||10;var n=this._extent,r=n[1]-n[0],s=r/e;null!=t&&s<t&&(s=t),null!=i&&s>i&&(s=i);var l=v.length,d=m(v,s,0,l),f=v[Math.min(d,l-1)],h=f[1];if("year"===f[0]){var p=r/h,g=a.nice(p/e,!0);h*=g}var b=this.getSetting("useUTC")?0:60*new Date(+n[0]||+n[1]).getTimezoneOffset()*1e3,y=[Math.round(c((n[0]-b)/h)*h+b),Math.round(u((n[1]-b)/h)*h+b)];o.fixExtent(y,n),this._stepLvl=f,this._interval=h,this._niceExtent=y},parse:function(e){return+a.parseDate(e)}});n.each(["contain","normalize"],(function(e){g.prototype[e]=function(t){return l[e].call(this,this.parse(t))}}));var v=[["hh:mm:ss",d],["hh:mm:ss",5*d],["hh:mm:ss",10*d],["hh:mm:ss",15*d],["hh:mm:ss",30*d],["hh:mm\nMM-dd",f],["hh:mm\nMM-dd",5*f],["hh:mm\nMM-dd",10*f],["hh:mm\nMM-dd",15*f],["hh:mm\nMM-dd",30*f],["hh:mm\nMM-dd",h],["hh:mm\nMM-dd",2*h],["hh:mm\nMM-dd",6*h],["hh:mm\nMM-dd",12*h],["MM-dd\nyyyy",p],["MM-dd\nyyyy",2*p],["MM-dd\nyyyy",3*p],["MM-dd\nyyyy",4*p],["MM-dd\nyyyy",5*p],["MM-dd\nyyyy",6*p],["week",7*p],["MM-dd\nyyyy",10*p],["week",14*p],["week",21*p],["month",31*p],["week",42*p],["month",62*p],["week",70*p],["quarter",95*p],["month",31*p*4],["month",31*p*5],["half-year",380*p/2],["month",31*p*8],["month",31*p*10],["year",380*p]];g.create=function(e){return new g({useUTC:e.ecModel.get("useUTC")})};var b=g;e.exports=b},"217b":function(e,t,i){var n=i("4e08"),a=(n.__DEV__,i("3301")),r=i("4f85"),o=r.extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(e,t){return a(this.getSource(),this,{useEncodeDefaulter:!0})},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,clip:!0,label:{position:"top"},lineStyle:{width:2,type:"solid"},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0}});e.exports=o},"217c":function(e,t,i){},"217c8":function(e,t,i){var n=i("6d8b"),a=i("6cb7");i("df3a");var r=a.extend({type:"parallel",dependencies:["parallelAxis"],coordinateSystem:null,dimensions:null,parallelAxisIndex:null,layoutMode:"box",defaultOption:{zlevel:0,z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},init:function(){a.prototype.init.apply(this,arguments),this.mergeOption({})},mergeOption:function(e){var t=this.option;e&&n.merge(t,e,!0),this._initDimensions()},contains:function(e,t){var i=e.get("parallelIndex");return null!=i&&t.getComponent("parallel",i)===this},setAxisExpand:function(e){n.each(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(t){e.hasOwnProperty(t)&&(this.option[t]=e[t])}),this)},_initDimensions:function(){var e=this.dimensions=[],t=this.parallelAxisIndex=[],i=n.filter(this.dependentModels.parallelAxis,(function(e){return(e.get("parallelIndex")||0)===this.componentIndex}),this);n.each(i,(function(i){e.push("dim"+i.get("dim")),t.push(i.componentIndex)}))}});e.exports=r},"21a6":function(e,t,i){(function(i){var n,a,r;(function(i,o){a=[],n=o,r="function"===typeof n?n.apply(t,a):n,void 0===r||(e.exports=r)})(0,(function(){"use strict";function t(e,t){return"undefined"==typeof t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}function n(e,t,i){var n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.onload=function(){l(n.response,t,i)},n.onerror=function(){console.error("could not download file")},n.send()}function a(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function r(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var o="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof i&&i.global===i?i:void 0,s=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=o.saveAs||("object"!=typeof window||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(e,t,i){var s=o.URL||o.webkitURL,l=document.createElement("a");t=t||e.name||"download",l.download=t,l.rel="noopener","string"==typeof e?(l.href=e,l.origin===location.origin?r(l):a(l.href)?n(e,t,i):r(l,l.target="_blank")):(l.href=s.createObjectURL(e),setTimeout((function(){s.revokeObjectURL(l.href)}),4e4),setTimeout((function(){r(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,i,o){if(i=i||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(t(e,o),i);else if(a(e))n(e,i,o);else{var s=document.createElement("a");s.href=e,s.target="_blank",setTimeout((function(){r(s)}))}}:function(e,t,i,a){if(a=a||open("","_blank"),a&&(a.document.title=a.document.body.innerText="downloading..."),"string"==typeof e)return n(e,t,i);var r="application/octet-stream"===e.type,l=/constructor/i.test(o.HTMLElement)||o.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||r&&l||s)&&"undefined"!=typeof FileReader){var u=new FileReader;u.onloadend=function(){var e=u.result;e=c?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=e:location=e,a=null},u.readAsDataURL(e)}else{var d=o.URL||o.webkitURL,f=d.createObjectURL(e);a?a.location=f:location.href=f,a=null,setTimeout((function(){d.revokeObjectURL(f)}),4e4)}});o.saveAs=l.saveAs=l,e.exports=l}))}).call(this,i("c8ba"))},"21ec":function(e,t,i){"use strict";i("7a54")},"221a":function(e,t,i){},2236:function(e,t,i){var n=i("5a43");function a(e){if(Array.isArray(e))return n(e)}e.exports=a,e.exports.__esModule=!0,e.exports["default"]=e.exports},"224d":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"back-btn-position-fx-style"},[e._t("default")],2)},a=[],r={name:"Affix",props:{},data:function(){return{}},mounted:function(){window.addEventListener("scroll",this.handleScroll)},methods:{handleScroll:function(e){if(document.documentElement.scrollHeight-document.documentElement.scrollTop<=document.documentElement.clientHeight+317){var t=document.getElementsByClassName("back-btn-position-fx-style");t.length>0&&(t[0].classList.add("back-btn-position-ab-style"),t[0].classList.remove("back-btn-position-fx-style"))}else{var i=document.getElementsByClassName("back-btn-position-ab-style");i.length>0&&(i[0].classList.add("back-btn-position-fx-style"),i[0].classList.remove("back-btn-position-ab-style"))}}}},o=r,s=(i("e5bc"),i("2877")),l=Object(s["a"])(o,n,a,!1,null,"38d36c93",null);t["default"]=l.exports},2294:function(e,t,i){"use strict";i("39b6")},"22a0":function(e,t,i){"use strict";i("ea20")},"22d1":function(e,t){var i={};i="object"===typeof wx&&"function"===typeof wx.getSystemInfoSync?{browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:"undefined"===typeof document&&"undefined"!==typeof self?{browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:"undefined"===typeof navigator?{browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:a(navigator.userAgent);var n=i;function a(e){var t={},i={},n=e.match(/Firefox\/([\d.]+)/),a=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),r=e.match(/Edge\/([\d.]+)/),o=/micromessenger/i.test(e);return n&&(i.firefox=!0,i.version=n[1]),a&&(i.ie=!0,i.version=a[1]),r&&(i.edge=!0,i.version=r[1]),o&&(i.weChat=!0),{browser:i,os:t,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:"undefined"!==typeof SVGRect,touchEventsSupported:"ontouchstart"in window&&!i.ie&&!i.edge,pointerEventsSupported:"onpointerdown"in window&&(i.edge||i.ie&&i.version>=11),domSupported:"undefined"!==typeof document}}e.exports=n},"22da":function(e,t,i){var n=i("f934");function a(e){e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};var t,i,n=[e];while(t=n.pop())if(i=t.children,t.isExpand&&i.length)for(var a=i.length,r=a-1;r>=0;r--){var o=i[r];o.hierNode={defaultAncestor:null,ancestor:o,prelim:0,modifier:0,change:0,shift:0,i:r,thread:null},n.push(o)}}function r(e,t){var i=e.isExpand?e.children:[],n=e.parentNode.children,a=e.hierNode.i?n[e.hierNode.i-1]:null;if(i.length){u(e);var r=(i[0].hierNode.prelim+i[i.length-1].hierNode.prelim)/2;a?(e.hierNode.prelim=a.hierNode.prelim+t(e,a),e.hierNode.modifier=e.hierNode.prelim-r):e.hierNode.prelim=r}else a&&(e.hierNode.prelim=a.hierNode.prelim+t(e,a));e.parentNode.hierNode.defaultAncestor=d(e,a,e.parentNode.hierNode.defaultAncestor||n[0],t)}function o(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function s(e){return arguments.length?e:g}function l(e,t){var i={};return e-=Math.PI/2,i.x=t*Math.cos(e),i.y=t*Math.sin(e),i}function c(e,t){return n.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function u(e){var t=e.children,i=t.length,n=0,a=0;while(--i>=0){var r=t[i];r.hierNode.prelim+=n,r.hierNode.modifier+=n,a+=r.hierNode.change,n+=r.hierNode.shift+a}}function d(e,t,i,n){if(t){var a=e,r=e,o=r.parentNode.children[0],s=t,l=a.hierNode.modifier,c=r.hierNode.modifier,u=o.hierNode.modifier,d=s.hierNode.modifier;while(s=f(s),r=h(r),s&&r){a=f(a),o=h(o),a.hierNode.ancestor=e;var g=s.hierNode.prelim+d-r.hierNode.prelim-c+n(s,r);g>0&&(m(p(s,e,i),e,g),c+=g,l+=g),d+=s.hierNode.modifier,c+=r.hierNode.modifier,l+=a.hierNode.modifier,u+=o.hierNode.modifier}s&&!f(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=d-l),r&&!h(o)&&(o.hierNode.thread=r,o.hierNode.modifier+=c-u,i=e)}return i}function f(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function h(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function p(e,t,i){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:i}function m(e,t,i){var n=i/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=n,t.hierNode.shift+=i,t.hierNode.modifier+=i,t.hierNode.prelim+=i,e.hierNode.change+=n}function g(e,t){return e.parentNode===t.parentNode?1:2}t.init=a,t.firstWalk=r,t.secondWalk=o,t.separation=s,t.radialCoordinate=l,t.getViewRect=c},2306:function(e,t,i){var n=i("6d8b"),a=i("342d"),r=i("41ef"),o=i("1687"),s=i("401b"),l=i("cbe5"),c=i("0cde"),u=i("0da8");t.Image=u;var d=i("e1fc");t.Group=d;var f=i("76a5");t.Text=f;var h=i("d9fc");t.Circle=h;var p=i("4aa23");t.Sector=p;var m=i("4573");t.Ring=m;var g=i("87b1");t.Polygon=g;var v=i("d498");t.Polyline=v;var b=i("c7a2");t.Rect=b;var y=i("cb11");t.Line=y;var w=i("ac0f");t.BezierCurve=w;var _=i("8d32");t.Arc=_;var I=i("d4c6");t.CompoundPath=I;var x=i("48a9");t.LinearGradient=x;var S=i("dded");t.RadialGradient=S;var T=i("9850");t.BoundingRect=T;var C=i("392f");t.IncrementalDisplayable=C;var k=i("9cf9"),R=Math.max,D=Math.min,L={},O=1,$={color:"textFill",textBorderColor:"textStroke",textBorderWidth:"textStrokeWidth"},N="emphasis",A="normal",P=1,E={},M={};function F(e){return l.extend(e)}function j(e,t){return a.extendFromString(e,t)}function V(e,t){M[e]=t}function q(e){if(M.hasOwnProperty(e))return M[e]}function z(e,t,i,n){var r=a.createFromString(e,t);return i&&("center"===n&&(i=U(i,r.getBoundingRect())),H(r,i)),r}function B(e,t,i){var n=new u({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if("center"===i){var a={width:e.width,height:e.height};n.setStyle(U(t,a))}}});return n}function U(e,t){var i,n=t.width/t.height,a=e.height*n;a<=e.width?i=e.height:(a=e.width,i=a/n);var r=e.x+e.width/2,o=e.y+e.height/2;return{x:r-a/2,y:o-i/2,width:a,height:i}}var Q=a.mergePath;function H(e,t){if(e.applyTransform){var i=e.getBoundingRect(),n=i.calculateTransform(t);e.applyTransform(n)}}function G(e){return k.subPixelOptimizeLine(e.shape,e.shape,e.style),e}function W(e){return k.subPixelOptimizeRect(e.shape,e.shape,e.style),e}var Y=k.subPixelOptimize;function K(e){return null!=e&&"none"!==e}var Z=n.createHashMap(),X=0;function J(e){if("string"!==typeof e)return e;var t=Z.get(e);return t||(t=r.lift(e,-.1),X<1e4&&(Z.set(e,t),X++)),t}function ee(e){if(e.__hoverStlDirty){e.__hoverStlDirty=!1;var t=e.__hoverStl;if(t){var i=e.__cachedNormalStl={};e.__cachedNormalZ2=e.z2;var n=e.style;for(var a in t)null!=t[a]&&(i[a]=n[a]);i.fill=n.fill,i.stroke=n.stroke}else e.__cachedNormalStl=e.__cachedNormalZ2=null}}function te(e){var t=e.__hoverStl;if(t&&!e.__highlighted){var i=e.__zr,n=e.useHoverLayer&&i&&"canvas"===i.painter.type;if(e.__highlighted=n?"layer":"plain",!(e.isGroup||!i&&e.useHoverLayer)){var a=e,r=e.style;n&&(a=i.addHover(e),r=a.style),Se(r),n||ee(a),r.extendFrom(t),ie(r,t,"fill"),ie(r,t,"stroke"),xe(r),n||(e.dirty(!1),e.z2+=O)}}}function ie(e,t,i){!K(t[i])&&K(e[i])&&(e[i]=J(e[i]))}function ne(e){var t=e.__highlighted;if(t&&(e.__highlighted=!1,!e.isGroup))if("layer"===t)e.__zr&&e.__zr.removeHover(e);else{var i=e.style,n=e.__cachedNormalStl;n&&(Se(i),e.setStyle(n),xe(i));var a=e.__cachedNormalZ2;null!=a&&e.z2-a===O&&(e.z2=a)}}function ae(e,t,i){var n,a=A,r=A;e.__highlighted&&(a=N,n=!0),t(e,i),e.__highlighted&&(r=N,n=!0),e.isGroup&&e.traverse((function(e){!e.isGroup&&t(e,i)})),n&&e.__highDownOnUpdate&&e.__highDownOnUpdate(a,r)}function re(e,t){t=e.__hoverStl=!1!==t&&(e.hoverStyle||t||{}),e.__hoverStlDirty=!0,e.__highlighted&&(e.__cachedNormalStl=null,ne(e),te(e))}function oe(e){!ue(this,e)&&!this.__highByOuter&&ae(this,te)}function se(e){!ue(this,e)&&!this.__highByOuter&&ae(this,ne)}function le(e){this.__highByOuter|=1<<(e||0),ae(this,te)}function ce(e){!(this.__highByOuter&=~(1<<(e||0)))&&ae(this,ne)}function ue(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function de(e,t){fe(e,!0),ae(e,re,t)}function fe(e,t){var i=!1===t;if(e.__highDownSilentOnTouch=e.highDownSilentOnTouch,e.__highDownOnUpdate=e.highDownOnUpdate,!i||e.__highDownDispatcher){var n=i?"off":"on";e[n]("mouseover",oe)[n]("mouseout",se),e[n]("emphasis",le)[n]("normal",ce),e.__highByOuter=e.__highByOuter||0,e.__highDownDispatcher=!i}}function he(e){return!(!e||!e.__highDownDispatcher)}function pe(e){var t=E[e];return null==t&&P<=32&&(t=E[e]=P++),t}function me(e,t,i,a,r,o,s){r=r||L;var l,c=r.labelFetcher,u=r.labelDataIndex,d=r.labelDimIndex,f=r.labelProp,h=i.getShallow("show"),p=a.getShallow("show");(h||p)&&(c&&(l=c.getFormattedLabel(u,"normal",null,d,f)),null==l&&(l=n.isFunction(r.defaultText)?r.defaultText(u,r):r.defaultText));var m=h?l:null,g=p?n.retrieve2(c?c.getFormattedLabel(u,"emphasis",null,d,f):null,l):null;null==m&&null==g||(ve(e,i,o,r),ve(t,a,s,r,!0)),e.text=m,t.text=g}function ge(e,t,i){var a=e.style;t&&(Se(a),e.setStyle(t),xe(a)),a=e.__hoverStl,i&&a&&(Se(a),n.extend(a,i),xe(a))}function ve(e,t,i,a,r){return ye(e,t,a,r),i&&n.extend(e,i),e}function be(e,t,i){var n,a={isRectText:!0};!1===i?n=!0:a.autoColor=i,ye(e,t,a,n)}function ye(e,t,i,a){if(i=i||L,i.isRectText){var r;i.getTextPosition?r=i.getTextPosition(t,a):(r=t.getShallow("position")||(a?null:"inside"),"outside"===r&&(r="top")),e.textPosition=r,e.textOffset=t.getShallow("offset");var o=t.getShallow("rotate");null!=o&&(o*=Math.PI/180),e.textRotation=o,e.textDistance=n.retrieve2(t.getShallow("distance"),a?null:5)}var s,l=t.ecModel,c=l&&l.option.textStyle,u=we(t);if(u)for(var d in s={},u)if(u.hasOwnProperty(d)){var f=t.getModel(["rich",d]);_e(s[d]={},f,c,i,a)}return e.rich=s,_e(e,t,c,i,a,!0),i.forceRich&&!i.textStyle&&(i.textStyle={}),e}function we(e){var t;while(e&&e!==e.ecModel){var i=(e.option||L).rich;if(i)for(var n in t=t||{},i)i.hasOwnProperty(n)&&(t[n]=1);e=e.parentModel}return t}function _e(e,t,i,a,r,o){i=!r&&i||L,e.textFill=Ie(t.getShallow("color"),a)||i.color,e.textStroke=Ie(t.getShallow("textBorderColor"),a)||i.textBorderColor,e.textStrokeWidth=n.retrieve2(t.getShallow("textBorderWidth"),i.textBorderWidth),r||(o&&(e.insideRollbackOpt=a,xe(e)),null==e.textFill&&(e.textFill=a.autoColor)),e.fontStyle=t.getShallow("fontStyle")||i.fontStyle,e.fontWeight=t.getShallow("fontWeight")||i.fontWeight,e.fontSize=t.getShallow("fontSize")||i.fontSize,e.fontFamily=t.getShallow("fontFamily")||i.fontFamily,e.textAlign=t.getShallow("align"),e.textVerticalAlign=t.getShallow("verticalAlign")||t.getShallow("baseline"),e.textLineHeight=t.getShallow("lineHeight"),e.textWidth=t.getShallow("width"),e.textHeight=t.getShallow("height"),e.textTag=t.getShallow("tag"),o&&a.disableBox||(e.textBackgroundColor=Ie(t.getShallow("backgroundColor"),a),e.textPadding=t.getShallow("padding"),e.textBorderColor=Ie(t.getShallow("borderColor"),a),e.textBorderWidth=t.getShallow("borderWidth"),e.textBorderRadius=t.getShallow("borderRadius"),e.textBoxShadowColor=t.getShallow("shadowColor"),e.textBoxShadowBlur=t.getShallow("shadowBlur"),e.textBoxShadowOffsetX=t.getShallow("shadowOffsetX"),e.textBoxShadowOffsetY=t.getShallow("shadowOffsetY")),e.textShadowColor=t.getShallow("textShadowColor")||i.textShadowColor,e.textShadowBlur=t.getShallow("textShadowBlur")||i.textShadowBlur,e.textShadowOffsetX=t.getShallow("textShadowOffsetX")||i.textShadowOffsetX,e.textShadowOffsetY=t.getShallow("textShadowOffsetY")||i.textShadowOffsetY}function Ie(e,t){return"auto"!==e?e:t&&t.autoColor?t.autoColor:null}function xe(e){var t,i=e.textPosition,n=e.insideRollbackOpt;if(n&&null==e.textFill){var a=n.autoColor,r=n.isRectText,o=n.useInsideStyle,s=!1!==o&&(!0===o||r&&i&&"string"===typeof i&&i.indexOf("inside")>=0),l=!s&&null!=a;(s||l)&&(t={textFill:e.textFill,textStroke:e.textStroke,textStrokeWidth:e.textStrokeWidth}),s&&(e.textFill="#fff",null==e.textStroke&&(e.textStroke=a,null==e.textStrokeWidth&&(e.textStrokeWidth=2))),l&&(e.textFill=a)}e.insideRollback=t}function Se(e){var t=e.insideRollback;t&&(e.textFill=t.textFill,e.textStroke=t.textStroke,e.textStrokeWidth=t.textStrokeWidth,e.insideRollback=null)}function Te(e,t){var i=t&&t.getModel("textStyle");return n.trim([e.fontStyle||i&&i.getShallow("fontStyle")||"",e.fontWeight||i&&i.getShallow("fontWeight")||"",(e.fontSize||i&&i.getShallow("fontSize")||12)+"px",e.fontFamily||i&&i.getShallow("fontFamily")||"sans-serif"].join(" "))}function Ce(e,t,i,n,a,r){"function"===typeof a&&(r=a,a=null);var o=n&&n.isAnimationEnabled();if(o){var s=e?"Update":"",l=n.getShallow("animationDuration"+s),c=n.getShallow("animationEasing"+s),u=n.getShallow("animationDelay"+s);"function"===typeof u&&(u=u(a,n.getAnimationDelayParams?n.getAnimationDelayParams(t,a):null)),"function"===typeof l&&(l=l(a)),l>0?t.animateTo(i,l,u||0,c,r,!!r):(t.stopAnimation(),t.attr(i),r&&r())}else t.stopAnimation(),t.attr(i),r&&r()}function ke(e,t,i,n,a){Ce(!0,e,t,i,n,a)}function Re(e,t,i,n,a){Ce(!1,e,t,i,n,a)}function De(e,t){var i=o.identity([]);while(e&&e!==t)o.mul(i,e.getLocalTransform(),i),e=e.parent;return i}function Le(e,t,i){return t&&!n.isArrayLike(t)&&(t=c.getLocalTransform(t)),i&&(t=o.invert([],t)),s.applyTransform([],e,t)}function Oe(e,t,i){var n=0===t[4]||0===t[5]||0===t[0]?1:Math.abs(2*t[4]/t[0]),a=0===t[4]||0===t[5]||0===t[2]?1:Math.abs(2*t[4]/t[2]),r=["left"===e?-n:"right"===e?n:0,"top"===e?-a:"bottom"===e?a:0];return r=Le(r,t,i),Math.abs(r[0])>Math.abs(r[1])?r[0]>0?"right":"left":r[1]>0?"bottom":"top"}function $e(e,t,i,a){if(e&&t){var r=o(e);t.traverse((function(e){if(!e.isGroup&&e.anid){var t=r[e.anid];if(t){var n=l(e);e.attr(l(t)),ke(e,n,i,e.dataIndex)}}}))}function o(e){var t={};return e.traverse((function(e){!e.isGroup&&e.anid&&(t[e.anid]=e)})),t}function l(e){var t={position:s.clone(e.position),rotation:e.rotation};return e.shape&&(t.shape=n.extend({},e.shape)),t}}function Ne(e,t){return n.map(e,(function(e){var i=e[0];i=R(i,t.x),i=D(i,t.x+t.width);var n=e[1];return n=R(n,t.y),n=D(n,t.y+t.height),[i,n]}))}function Ae(e,t){var i=R(e.x,t.x),n=D(e.x+e.width,t.x+t.width),a=R(e.y,t.y),r=D(e.y+e.height,t.y+t.height);if(n>=i&&r>=a)return{x:i,y:a,width:n-i,height:r-a}}function Pe(e,t,i){t=n.extend({rectHover:!0},t);var a=t.style={strokeNoScale:!0};if(i=i||{x:-1,y:-1,width:2,height:2},e)return 0===e.indexOf("image://")?(a.image=e.slice(8),n.defaults(a,i),new u(t)):z(e.replace("path://",""),t,i,"center")}function Ee(e,t,i,n,a){for(var r=0,o=a[a.length-1];r<a.length;r++){var s=a[r];if(Me(e,t,i,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function Me(e,t,i,n,a,r,o,s){var l=i-e,c=n-t,u=o-a,d=s-r,f=Fe(u,d,l,c);if(je(f))return!1;var h=e-a,p=t-r,m=Fe(h,p,l,c)/f;if(m<0||m>1)return!1;var g=Fe(h,p,u,d)/f;return!(g<0||g>1)}function Fe(e,t,i,n){return e*n-i*t}function je(e){return e<=1e-6&&e>=-1e-6}V("circle",h),V("sector",p),V("ring",m),V("polygon",g),V("polyline",v),V("rect",b),V("line",y),V("bezierCurve",w),V("arc",_),t.Z2_EMPHASIS_LIFT=O,t.CACHED_LABEL_STYLE_PROPERTIES=$,t.extendShape=F,t.extendPath=j,t.registerShape=V,t.getShapeClass=q,t.makePath=z,t.makeImage=B,t.mergePath=Q,t.resizePath=H,t.subPixelOptimizeLine=G,t.subPixelOptimizeRect=W,t.subPixelOptimize=Y,t.setElementHoverStyle=re,t.setHoverStyle=de,t.setAsHighDownDispatcher=fe,t.isHighDownDispatcher=he,t.getHighlightDigit=pe,t.setLabelStyle=me,t.modifyLabelStyle=ge,t.setTextStyle=ve,t.setText=be,t.getFont=Te,t.updateProps=ke,t.initProps=Re,t.getTransform=De,t.applyTransform=Le,t.transformDirection=Oe,t.groupTransition=$e,t.clipPointsByRect=Ne,t.clipRectByRect=Ae,t.createIcon=Pe,t.linePolygonIntersect=Ee,t.lineLineIntersect=Me},2325:function(e,t,i){var n=i("6d8b"),a=i("607d"),r=i("2306"),o=i("88b3"),s=i("7dcf"),l=i("3842"),c=i("f934"),u=i("ef6a"),d=r.Rect,f=l.linearMap,h=l.asc,p=n.bind,m=n.each,g=7,v=1,b=30,y="horizontal",w="vertical",_=5,I=["line","bar","candlestick","scatter"],x=s.extend({type:"dataZoom.slider",init:function(e,t){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._handleWidth,this._handleHeight,this._location,this._dragging,this._dataShadowInfo,this.api=t},render:function(e,t,i,n){x.superApply(this,"render",arguments),o.createOrUpdate(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=e.get("orient"),!1!==this.dataZoomModel.get("show")?(n&&"dataZoom"===n.type&&n.from===this.uid||this._buildView(),this._updateView()):this.group.removeAll()},remove:function(){x.superApply(this,"remove",arguments),o.clear(this,"_dispatchZoomAction")},dispose:function(){x.superApply(this,"dispose",arguments),o.clear(this,"_dispatchZoomAction")},_buildView:function(){var e=this.group;e.removeAll(),this._resetLocation(),this._resetInterval();var t=this._displayables.barGroup=new r.Group;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},_resetLocation:function(){var e=this.dataZoomModel,t=this.api,i=this._findCoordRect(),a={width:t.getWidth(),height:t.getHeight()},r=this._orient===y?{right:a.width-i.x-i.width,top:a.height-b-g,width:i.width,height:b}:{right:g,top:i.y,width:b,height:i.height},o=c.getLayoutParams(e.option);n.each(["right","top","width","height"],(function(e){"ph"===o[e]&&(o[e]=r[e])}));var s=c.getLayoutRect(o,a,e.padding);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],this._orient===w&&this._size.reverse()},_positionGroup:function(){var e=this.group,t=this._location,i=this._orient,n=this.dataZoomModel.getFirstTargetAxisModel(),a=n&&n.get("inverse"),r=this._displayables.barGroup,o=(this._dataShadowInfo||{}).otherAxisInverse;r.attr(i!==y||a?i===y&&a?{scale:o?[-1,1]:[-1,-1]}:i!==w||a?{scale:o?[-1,-1]:[-1,1],rotation:Math.PI/2}:{scale:o?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:o?[1,1]:[1,-1]});var s=e.getBoundingRect([r]);e.attr("position",[t.x-s.x,t.y-s.y])},_getViewExtent:function(){return[0,this._size[0]]},_renderBackground:function(){var e=this.dataZoomModel,t=this._size,i=this._displayables.barGroup;i.add(new d({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get("backgroundColor")},z2:-40})),i.add(new d({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:"transparent"},z2:0,onclick:n.bind(this._onClickPanelClick,this)}))},_renderDataShadow:function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(e){var t=this._size,i=e.series,a=i.getRawData(),o=i.getShadowDim?i.getShadowDim():e.otherDim;if(null!=o){var s=a.getDataExtent(o),l=.3*(s[1]-s[0]);s=[s[0]-l,s[1]+l];var c,u=[0,t[1]],d=[0,t[0]],h=[[t[0],0],[0,0]],p=[],m=d[1]/(a.count()-1),g=0,v=Math.round(a.count()/t[0]);a.each([o],(function(e,t){if(v>0&&t%v)g+=m;else{var i=null==e||isNaN(e)||""===e,n=i?0:f(e,s,u,!0);i&&!c&&t?(h.push([h[h.length-1][0],0]),p.push([p[p.length-1][0],0])):!i&&c&&(h.push([g,0]),p.push([g,0])),h.push([g,n]),p.push([g,n]),g+=m,c=i}}));var b=this.dataZoomModel;this._displayables.barGroup.add(new r.Polygon({shape:{points:h},style:n.defaults({fill:b.get("dataBackgroundColor")},b.getModel("dataBackground.areaStyle").getAreaStyle()),silent:!0,z2:-20})),this._displayables.barGroup.add(new r.Polyline({shape:{points:p},style:b.getModel("dataBackground.lineStyle").getLineStyle(),silent:!0,z2:-19}))}}},_prepareDataShadowInfo:function(){var e=this.dataZoomModel,t=e.get("showDataShadow");if(!1!==t){var i,a=this.ecModel;return e.eachTargetAxis((function(r,o){var s=e.getAxisProxy(r.name,o).getTargetSeriesModels();n.each(s,(function(e){if(!i&&!(!0!==t&&n.indexOf(I,e.get("type"))<0)){var s,l=a.getComponent(r.axis,o).axis,c=S(r.name),u=e.coordinateSystem;null!=c&&u.getOtherAxis&&(s=u.getOtherAxis(l).inverse),c=e.getData().mapDimension(c),i={thisAxis:l,series:e,thisDim:r.name,otherDim:c,otherAxisInverse:s}}}),this)}),this),i}},_renderHandle:function(){var e=this._displayables,t=e.handles=[],i=e.handleLabels=[],n=this._displayables.barGroup,a=this._size,o=this.dataZoomModel;n.add(e.filler=new d({draggable:!0,cursor:T(this._orient),drift:p(this._onDragMove,this,"all"),ondragstart:p(this._showDataInfo,this,!0),ondragend:p(this._onDragEnd,this),onmouseover:p(this._showDataInfo,this,!0),onmouseout:p(this._showDataInfo,this,!1),style:{fill:o.get("fillerColor"),textPosition:"inside"}})),n.add(new d({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{stroke:o.get("dataBackgroundColor")||o.get("borderColor"),lineWidth:v,fill:"rgba(0,0,0,0)"}})),m([0,1],(function(e){var a=r.createIcon(o.get("handleIcon"),{cursor:T(this._orient),draggable:!0,drift:p(this._onDragMove,this,e),ondragend:p(this._onDragEnd,this),onmouseover:p(this._showDataInfo,this,!0),onmouseout:p(this._showDataInfo,this,!1)},{x:-1,y:0,width:2,height:2}),s=a.getBoundingRect();this._handleHeight=l.parsePercent(o.get("handleSize"),this._size[1]),this._handleWidth=s.width/s.height*this._handleHeight,a.setStyle(o.getModel("handleStyle").getItemStyle());var c=o.get("handleColor");null!=c&&(a.style.fill=c),n.add(t[e]=a);var u=o.textStyleModel;this.group.add(i[e]=new r.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textVerticalAlign:"middle",textAlign:"center",textFill:u.getTextColor(),textFont:u.getFont()},z2:10}))}),this)},_resetInterval:function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[f(e[0],[0,100],t,!0),f(e[1],[0,100],t,!0)]},_updateInterval:function(e,t){var i=this.dataZoomModel,n=this._handleEnds,a=this._getViewExtent(),r=i.findRepresentativeAxisProxy().getMinMaxSpan(),o=[0,100];u(t,n,a,i.get("zoomLock")?"all":e,null!=r.minSpan?f(r.minSpan,o,a,!0):null,null!=r.maxSpan?f(r.maxSpan,o,a,!0):null);var s=this._range,l=this._range=h([f(n[0],a,o,!0),f(n[1],a,o,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},_updateView:function(e){var t=this._displayables,i=this._handleEnds,n=h(i.slice()),a=this._size;m([0,1],(function(e){var n=t.handles[e],r=this._handleHeight;n.attr({scale:[r/2,r/2],position:[i[e],a[1]/2-r/2]})}),this),t.filler.setShape({x:n[0],y:0,width:n[1]-n[0],height:a[1]}),this._updateDataInfo(e)},_updateDataInfo:function(e){var t=this.dataZoomModel,i=this._displayables,n=i.handleLabels,a=this._orient,o=["",""];if(t.get("showDetail")){var s=t.findRepresentativeAxisProxy();if(s){var l=s.getAxisModel().axis,c=this._range,u=e?s.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:s.getDataValueWindow();o=[this._formatLabel(u[0],l),this._formatLabel(u[1],l)]}}var d=h(this._handleEnds.slice());function f(e){var t=r.getTransform(i.handles[e].parent,this.group),s=r.transformDirection(0===e?"right":"left",t),l=this._handleWidth/2+_,c=r.applyTransform([d[e]+(0===e?-l:l),this._size[1]/2],t);n[e].setStyle({x:c[0],y:c[1],textVerticalAlign:a===y?"middle":s,textAlign:a===y?s:"center",text:o[e]})}f.call(this,0),f.call(this,1)},_formatLabel:function(e,t){var i=this.dataZoomModel,a=i.get("labelFormatter"),r=i.get("labelPrecision");null!=r&&"auto"!==r||(r=t.getPixelPrecision());var o=null==e||isNaN(e)?"":"category"===t.type||"time"===t.type?t.scale.getLabel(Math.round(e)):e.toFixed(Math.min(r,20));return n.isFunction(a)?a(e,o):n.isString(a)?a.replace("{value}",o):o},_showDataInfo:function(e){e=this._dragging||e;var t=this._displayables.handleLabels;t[0].attr("invisible",!e),t[1].attr("invisible",!e)},_onDragMove:function(e,t,i,n){this._dragging=!0,a.stop(n.event);var o=this._displayables.barGroup.getLocalTransform(),s=r.applyTransform([t,i],o,!0),l=this._updateInterval(e,s[0]),c=this.dataZoomModel.get("realtime");this._updateView(!c),l&&c&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1);var e=this.dataZoomModel.get("realtime");!e&&this._dispatchZoomAction()},_onClickPanelClick:function(e){var t=this._size,i=this._displayables.barGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(i[0]<0||i[0]>t[0]||i[1]<0||i[1]>t[1])){var n=this._handleEnds,a=(n[0]+n[1])/2,r=this._updateInterval("all",i[0]-a);this._updateView(),r&&this._dispatchZoomAction()}},_dispatchZoomAction:function(){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:e[0],end:e[1]})},_findCoordRect:function(){var e;if(m(this.getTargetCoordInfo(),(function(t){if(!e&&t.length){var i=t[0].model.coordinateSystem;e=i.getRect&&i.getRect()}})),!e){var t=this.api.getWidth(),i=this.api.getHeight();e={x:.2*t,y:.2*i,width:.6*t,height:.6*i}}return e}});function S(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function T(e){return"vertical"===e?"ns-resize":"ew-resize"}var C=x;e.exports=C},2345:function(e,t,i){},2369:function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-education",use:"icon-education-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-education"><path d="M88.883 119.565c-7.284 0-19.434 2.495-21.333 8.25v.127c-4.232.13-5.222 0-7.108 0-1.895-5.76-14.045-8.256-21.333-8.256H0V0h42.523c9.179 0 17.109 5.47 21.47 13.551C68.352 5.475 76.295 0 85.478 0H128v119.57l-39.113-.005h-.004zM60.442 24.763c0-9.651-8.978-16.507-17.777-16.507H7.108V111.43H39.11c7.054-.14 18.177.082 21.333 6.12v-4.628c-.134-5.722-.004-13.522 0-13.832V27.413l.004-2.655-.004.005zm60.442-16.517h-35.55c-8.802 0-17.78 6.856-17.78 16.493v74.259c.004.32.138 8.115 0 13.813v4.627c3.155-6.022 14.279-6.26 21.333-6.114h32V8.25l-.003-.005z" /></symbol>'});o.a.add(s);t["default"]=s},"237f":function(e,t,i){var n=i("6d8b"),a=i("6179"),r=i("7368"),o=i("31d9"),s=i("b1d4"),l=i("2039"),c=i("3301");function u(e,t,i,u,d){for(var f=new r(u),h=0;h<e.length;h++)f.addNode(n.retrieve(e[h].id,e[h].name,h),h);var p=[],m=[],g=0;for(h=0;h<t.length;h++){var v=t[h],b=v.source,y=v.target;f.addEdge(b,y,g)&&(m.push(v),p.push(n.retrieve(v.id,b+" > "+y)),g++)}var w,_=i.get("coordinateSystem");if("cartesian2d"===_||"polar"===_)w=c(e,i);else{var I=l.get(_),x=I&&"view"!==I.type&&I.dimensions||[];n.indexOf(x,"value")<0&&x.concat(["value"]);var S=s(e,{coordDimensions:x});w=new a(S,i),w.initData(e)}var T=new a(["value"],i);return T.initData(m,p),d&&d(w,T),o({mainData:w,struct:f,structAttr:"graph",datas:{node:w,edge:T},datasAttr:{node:"data",edge:"edgeData"}}),f.update(),f}e.exports=u},"23ab":function(e,t,i){"use strict";i("4e3f")},"23df":function(e,t,i){},"23e0":function(e,t,i){var n=i("6d8b"),a=i("7887"),r=i("89e3"),o=i("3842"),s=i("697e"),l=s.getScaleExtent,c=s.niceScaleExtent,u=i("2039"),d=i("8c2a");function f(e,t,i){this._model=e,this.dimensions=[],this._indicatorAxes=n.map(e.getIndicatorModels(),(function(e,t){var i="indicator_"+t,n=new a(i,"log"===e.get("axisType")?new d:new r);return n.name=e.get("name"),n.model=e,e.axis=n,this.dimensions.push(i),n}),this),this.resize(e,i),this.cx,this.cy,this.r,this.r0,this.startAngle}f.prototype.getIndicatorAxes=function(){return this._indicatorAxes},f.prototype.dataToPoint=function(e,t){var i=this._indicatorAxes[t];return this.coordToPoint(i.dataToCoord(e),t)},f.prototype.coordToPoint=function(e,t){var i=this._indicatorAxes[t],n=i.angle,a=this.cx+e*Math.cos(n),r=this.cy-e*Math.sin(n);return[a,r]},f.prototype.pointToData=function(e){var t=e[0]-this.cx,i=e[1]-this.cy,n=Math.sqrt(t*t+i*i);t/=n,i/=n;for(var a,r=Math.atan2(-i,t),o=1/0,s=-1,l=0;l<this._indicatorAxes.length;l++){var c=this._indicatorAxes[l],u=Math.abs(r-c.angle);u<o&&(a=c,s=l,o=u)}return[s,+(a&&a.coordToData(n))]},f.prototype.resize=function(e,t){var i=e.get("center"),a=t.getWidth(),r=t.getHeight(),s=Math.min(a,r)/2;this.cx=o.parsePercent(i[0],a),this.cy=o.parsePercent(i[1],r),this.startAngle=e.get("startAngle")*Math.PI/180;var l=e.get("radius");"string"!==typeof l&&"number"!==typeof l||(l=[0,l]),this.r0=o.parsePercent(l[0],s),this.r=o.parsePercent(l[1],s),n.each(this._indicatorAxes,(function(e,t){e.setExtent(this.r0,this.r);var i=this.startAngle+t*Math.PI*2/this._indicatorAxes.length;i=Math.atan2(Math.sin(i),Math.cos(i)),e.angle=i}),this)},f.prototype.update=function(e,t){var i=this._indicatorAxes,a=this._model;n.each(i,(function(e){e.scale.setExtent(1/0,-1/0)})),e.eachSeriesByType("radar",(function(t,r){if("radar"===t.get("coordinateSystem")&&e.getComponent("radar",t.get("radarIndex"))===a){var o=t.getData();n.each(i,(function(e){e.scale.unionExtentFromData(o,o.mapDimension(e.dim))}))}}),this);var r=a.get("splitNumber");function s(e){var t=Math.pow(10,Math.floor(Math.log(e)/Math.LN10)),i=e/t;return 2===i?i=5:i*=2,i*t}n.each(i,(function(e,t){var i=l(e.scale,e.model).extent;c(e.scale,e.model);var n=e.model,a=e.scale,u=n.getMin(),d=n.getMax(),f=a.getInterval();if(null!=u&&null!=d)a.setExtent(+u,+d),a.setInterval((d-u)/r);else if(null!=u){do{p=u+f*r,a.setExtent(+u,p),a.setInterval(f),f=s(f)}while(p<i[1]&&isFinite(p)&&isFinite(i[1]))}else if(null!=d){do{m=d-f*r,a.setExtent(m,+d),a.setInterval(f),f=s(f)}while(m>i[0]&&isFinite(m)&&isFinite(i[0]))}else{var h=a.getTicks().length-1;h>r&&(f=s(f));var p=Math.ceil(i[1]/f)*f,m=o.round(p-f*r);a.setExtent(m,p),a.setInterval(f)}}))},f.dimensions=[],f.create=function(e,t){var i=[];return e.eachComponent("radar",(function(n){var a=new f(n,e,t);i.push(a),n.coordinateSystem=a})),e.eachSeriesByType("radar",(function(e){"radar"===e.get("coordinateSystem")&&(e.coordinateSystem=i[e.get("radarIndex")||0])})),i},u.register("radar",f);var h=f;e.exports=h},"23ee":function(e,t,i){var n=i("3eba");i("879e"),i("9704"),i("d747");var a=i("675a"),r=i("7f96"),o=i("2943"),s=i("de6e"),l=i("d357"),c=i("adda"),u=i("5866"),d=i("7b0c");n.registerProcessor(a),n.registerVisual(r("graph","circle",null)),n.registerVisual(o),n.registerVisual(s),n.registerLayout(l),n.registerLayout(n.PRIORITY.VISUAL.POST_CHART_LAYOUT,c),n.registerLayout(u),n.registerCoordinateSystem("graphView",{create:d})},"23f1":function(e,t,i){var n={"./404.svg":"49be","./bug.svg":"937c","./build.svg":"b88c","./chart.svg":"20e7","./clipboard.svg":"5aa7","./component.svg":"02b8","./dashboard.svg":"7154","./date.svg":"a2bf","./dict.svg":"da75","./documentation.svg":"ed00","./download.svg":"039a","./drag.svg":"a2f6","./druid.svg":"bc7b","./edit.svg":"2fb0","./education.svg":"2369","./email.svg":"caf7","./example.svg":"b6f9","./excel.svg":"e3ff","./exit-fullscreen.svg":"f22e","./eye-open.svg":"74a2","./eye.svg":"57fa","./form.svg":"4576","./fullscreen.svg":"72e5","./guide.svg":"72d1","./icon.svg":"9f4c","./international.svg":"a601","./job.svg":"e82a","./language.svg":"a17a","./link.svg":"5fda","./list.svg":"35615","./lock.svg":"a0121","./log.svg":"9cb5","./logininfor.svg":"9b2c","./message.svg":"15e8","./money.svg":"4955","./monitor.svg":"f71f","./nested.svg":"91be","./online.svg":"575e","./password.svg":"198d","./pdf.svg":"8989","./people.svg":"ae6e","./peoples.svg":"dc13","./phone.svg":"b470","./post.svg":"482c","./qq.svg":"39e1","./row.svg":"0c16","./search.svg":"679a","./server.svg":"4738","./shopping.svg":"98ab","./size.svg":"879b","./skill.svg":"a263","./star.svg":"4e5a","./swagger.svg":"84e5","./system.svg":"922f","./tab.svg":"2723","./table.svg":"dc78","./theme.svg":"7271","./tool.svg":"06b3","./tree-table.svg":"4d24","./tree.svg":"0e8f","./user.svg":"d88a","./validCode.svg":"67bd","./wechat.svg":"2ba1","./zip.svg":"a75d"};function a(e){var t=r(e);return i(t)}function r(e){var t=n[e];if(!(t+1)){var i=new Error("Cannot find module '"+e+"'");throw i.code="MODULE_NOT_FOUND",i}return t}a.keys=function(){return Object.keys(n)},a.resolve=r,e.exports=a,a.id="23f1"},"23f7":function(e,t,i){"use strict";i("60d2")},2449:function(e,t,i){var n=i("4e08"),a=(n.__DEV__,i("3eba")),r=i("6d8b"),o=i("22d1"),s=i("e0d3"),l=i("eda2"),c=i("38a2"),u=l.addCommas,d=l.encodeHTML;function f(e){s.defaultEmphasis(e,"label",["show"])}var h=a.extendComponentModel({type:"marker",dependencies:["series","grid","polar","geo"],init:function(e,t,i){this.mergeDefaultAndTheme(e,i),this._mergeOption(e,i,!1,!0)},isAnimationEnabled:function(){if(o.node)return!1;var e=this.__hostSeries;return this.getShallow("animation")&&e&&e.isAnimationEnabled()},mergeOption:function(e,t){this._mergeOption(e,t,!1,!1)},_mergeOption:function(e,t,i,n){var a=this.constructor,o=this.mainType+"Model";i||t.eachSeries((function(e){var i=e.get(this.mainType,!0),s=e[o];i&&i.data?(s?s._mergeOption(i,t,!0):(n&&f(i),r.each(i.data,(function(e){e instanceof Array?(f(e[0]),f(e[1])):f(e)})),s=new a(i,this,t),r.extend(s,{mainType:this.mainType,seriesIndex:e.seriesIndex,name:e.name,createdBySelf:!0}),s.__hostSeries=e),e[o]=s):e[o]=null}),this)},formatTooltip:function(e,t,i,n){var a=this.getData(),o=this.getRawValue(e),s=r.isArray(o)?r.map(o,u).join(", "):u(o),l=a.getName(e),c=d(this.name),f="html"===n?"<br/>":"\n";return(null!=o||l)&&(c+=f),l&&(c+=d(l),null!=o&&(c+=" : ")),null!=o&&(c+=d(s)),c},getData:function(){return this._data},setData:function(e){this._data=e}});r.mixin(h,c);var p=h;e.exports=p},2460:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"sysTemplateFrom",staticClass:"upload-temporary-file",attrs:{model:e.form,"label-width":"90px",size:"small",rules:e.rules}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:"Code",prop:"Code"}},[i("el-input",{model:{value:e.form.Code,callback:function(t){e.$set(e.form,"Code",t)},expression:"form.Code"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"业务场景: ",prop:"BusinessScenarioEnum"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{size:"small",filterable:""},model:{value:e.form.BusinessScenarioEnum,callback:function(t){e.$set(e.form,"BusinessScenarioEnum",t)},expression:"form.BusinessScenarioEnum"}},e._l(e.$d.Common_File_BusinessScenario,(function(e){return i("el-option",{key:e.id,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"文件: "}},[i("div",{staticClass:"upload-container"},[i("el-upload",{staticClass:"upload-demo",attrs:{action:"",accept:".xls,.xlsx,.doc,.docx","before-upload":e.beforeUpload,"http-request":e.handleUploadFile,"on-preview":e.handlePreview,"on-remove":e.handleRemoveFile,"show-file-list":!0,"file-list":e.fileList,limit:1,"on-exceed":e.handleExceed,disabled:!e.form.FileTypeEnum||!e.form.BusinessScenarioEnum}},[i("el-button",{attrs:{size:"small",type:"primary",disabled:!e.form.FileTypeEnum||!e.form.BusinessScenarioEnum,loading:e.btnLoading}},[e._v("Select")]),e._v(" "),i("span",{staticClass:"el-upload__tip",staticStyle:{"margin-left":"10px"},attrs:{slot:"tip"},slot:"tip"},[e._v("\n (must be in xlsx/xls/doc/docx format)\n ")])],1)],1)]),e._v(" "),""!==e.form.Id?i("el-form-item",{attrs:{label:"是否废除: "}},[i("el-radio-group",{model:{value:e.form.IsDeleted,callback:function(t){e.$set(e.form,"IsDeleted",t)},expression:"form.IsDeleted"}},[i("el-radio",{attrs:{label:!0}},[e._v("是")]),e._v(" "),i("el-radio",{attrs:{label:!1}},[e._v("否")])],1)],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:"描述"}},[i("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"请输入内容"},model:{value:e.form.Description,callback:function(t){e.$set(e.form,"Description",t)},expression:"form.Description"}})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{size:"small",type:"primary",disabled:!e.form.FileTypeEnum||!e.form.BusinessScenarioEnum,loading:e.saveBtnLoading},on:{click:e.handleSave}},[e._v("Save")])],1)],1)])},a=[],r=(i("7f7f"),i("db72")),o=(i("ac6a"),i("456d"),i("96cf"),i("3b8d")),s=i("e56e"),l=i("86a6"),c={name:"TemplateForm",props:{data:{type:Object,default:function(){return{}}}},data:function(){return{form:{Id:"",Code:"",FileTypeEnum:null,BusinessScenarioEnum:null,Name:"",Path:"",Description:"",IsDeleted:!1},rules:{Code:[{required:!0,message:"Please specify",trigger:["blur"]}],BusinessScenarioEnum:[{required:!0,message:"Please select",trigger:["blur"]}]},fileList:[],btnLoading:!1,saveBtnLoading:!1,loading:!1,dictionaryList:{}}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getDicData();case 2:if(Object.keys(this.data).length>0)for(t in this.data.Path&&(this.fileList=[{name:this.data.Name,path:this.data.Path,type:this.data.Type}]),this.form)this.data.hasOwnProperty(t)&&(this.form[t]=this.data[t]);case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getDicData:function(){var e=this;this.loading=!0,Object(l["c"])(["Common_File_ModuleType","Common_File_Type"]).then((function(t){e.dictionaryList=Object(r["a"])({},t.Result),e.loading=!1})).catch((function(){e.loading=!1}))},beforeUpload:function(e){return this.checkFileSuffix(e.name)?(this.fileList=[],!0):(this.$message.error("必须是word/excel格式"),!1)},handleUploadFile:function(e){var t=this;this.btnLoading=!0,Object(s["Pb"])(e.file).then((function(i){if(t.btnLoading=!1,i.IsSuccess){t.form.Path=i.Result.FilePath,t.form.Name=e.file.name;var n={name:t.form.Name,path:t.form.Path};t.fileList.push(n)}})).catch((function(){t.btnLoading=!1}))},handleSave:function(){var e=this;this.$refs.sysTemplateFrom.validate((function(t){t&&(e.form.Name?(e.saveBtnLoading=!0,Object(s["e"])(e.form).then((function(t){e.saveBtnLoading=!1,e.$emit("closeDialog"),e.$emit("getList"),e.$message.success("Uploaded successfully")})).catch((function(){e.saveBtnLoading=!1}))):e.$message.error("Please select file."))}))},handleRemoveFile:function(){this.fileList=[],this.form.Path="",this.form.Name=""},handlePreview:function(e){e.fullPath&&window.open(e.fullPath,"_blank")},handleExceed:function(e,t){this.$message.warning("Upload is currently limited to 1 file")},checkFileSuffix:function(e){var t=["xls","xlsx","doc","docx"],i=e.substring(e.lastIndexOf(".")+1).toLocaleLowerCase();return-1!==t.indexOf(i)}}},u=c,d=(i("27e2"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},"247f":function(e,t,i){},"24b9":function(e,t,i){var n=i("4e08"),a=(n.__DEV__,i("f934")),r=i("3842"),o=r.parsePercent,s=r.linearMap;function l(e,t){return a.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function c(e,t){for(var i=e.mapDimension("value"),n=e.mapArray(i,(function(e){return e})),a=[],r="ascending"===t,o=0,s=e.count();o<s;o++)a[o]=o;return"function"===typeof t?a.sort(t):"none"!==t&&a.sort((function(e,t){return r?n[e]-n[t]:n[t]-n[e]})),a}function u(e){e.each((function(t){var i,n,a,r,o=e.getItemModel(t),s=o.getModel("label"),l=s.get("position"),c=o.get("orient"),u=o.getModel("labelLine"),d=e.getItemLayout(t),f=d.points,h="inner"===l||"inside"===l||"center"===l||"insideLeft"===l||"insideRight"===l;if(h)"insideLeft"===l?(n=(f[0][0]+f[3][0])/2+5,a=(f[0][1]+f[3][1])/2,i="left"):"insideRight"===l?(n=(f[1][0]+f[2][0])/2-5,a=(f[1][1]+f[2][1])/2,i="right"):(n=(f[0][0]+f[1][0]+f[2][0]+f[3][0])/4,a=(f[0][1]+f[1][1]+f[2][1]+f[3][1])/4,i="center"),r=[[n,a],[n,a]];else{var p,m,g,v,b=u.get("length");"left"===l?(p=(f[3][0]+f[0][0])/2,m=(f[3][1]+f[0][1])/2,g=p-b,n=g-5,i="right"):"right"===l?(p=(f[1][0]+f[2][0])/2,m=(f[1][1]+f[2][1])/2,g=p+b,n=g+5,i="left"):"top"===l?(p=(f[3][0]+f[0][0])/2,m=(f[3][1]+f[0][1])/2,v=m-b,a=v-5,i="center"):"bottom"===l?(p=(f[1][0]+f[2][0])/2,m=(f[1][1]+f[2][1])/2,v=m+b,a=v+5,i="center"):"rightTop"===l?(p="horizontal"===c?f[3][0]:f[1][0],m="horizontal"===c?f[3][1]:f[1][1],"horizontal"===c?(v=m-b,a=v-5,i="center"):(g=p+b,n=g+5,i="top")):"rightBottom"===l?(p=f[2][0],m=f[2][1],"horizontal"===c?(v=m+b,a=v+5,i="center"):(g=p+b,n=g+5,i="bottom")):"leftTop"===l?(p=f[0][0],m="horizontal"===c?f[0][1]:f[1][1],"horizontal"===c?(v=m-b,a=v-5,i="center"):(g=p-b,n=g-5,i="right")):"leftBottom"===l?(p="horizontal"===c?f[1][0]:f[3][0],m="horizontal"===c?f[1][1]:f[2][1],"horizontal"===c?(v=m+b,a=v+5,i="center"):(g=p-b,n=g-5,i="right")):(p=(f[1][0]+f[2][0])/2,m=(f[1][1]+f[2][1])/2,"horizontal"===c?(v=m+b,a=v+5,i="center"):(g=p+b,n=g+5,i="left")),"horizontal"===c?(g=p,n=g):(v=m,a=v),r=[[p,m],[g,v]]}d.label={linePoints:r,x:n,y:a,verticalAlign:"middle",textAlign:i,inside:h}}))}function d(e,t,i){e.eachSeriesByType("funnel",(function(e){var i=e.getData(),n=i.mapDimension("value"),a=e.get("sort"),r=l(e,t),d=c(i,a),f=e.get("orient"),h=r.width,p=r.height,m=r.x,g=r.y,v="horizontal"===f?[o(e.get("minSize"),p),o(e.get("maxSize"),p)]:[o(e.get("minSize"),h),o(e.get("maxSize"),h)],b=i.getDataExtent(n),y=e.get("min"),w=e.get("max");null==y&&(y=Math.min(b[0],0)),null==w&&(w=b[1]);var _=e.get("funnelAlign"),I=e.get("gap"),x="horizontal"===f?h:p,S=(x-I*(i.count()-1))/i.count(),T=function(e,t){if("horizontal"===f){var a,r=i.get(n,e)||0,o=s(r,[y,w],v,!0);switch(_){case"top":a=g;break;case"center":a=g+(p-o)/2;break;case"bottom":a=g+(p-o);break}return[[t,a],[t,a+o]]}r=i.get(n,e)||0;var l,c=s(r,[y,w],v,!0);switch(_){case"left":l=m;break;case"center":l=m+(h-c)/2;break;case"right":l=m+h-c;break}return[[l,t],[l+c,t]]};"ascending"===a&&(S=-S,I=-I,"horizontal"===f?m+=h:g+=p,d=d.reverse());for(var C=0;C<d.length;C++){var k=d[C],R=d[C+1],D=i.getItemModel(k);if("horizontal"===f){var L=D.get("itemStyle.width");null==L?L=S:(L=o(L,h),"ascending"===a&&(L=-L));var O=T(k,m),$=T(R,m+L);m+=L+I,i.setItemLayout(k,{points:O.concat($.slice().reverse())})}else{var N=D.get("itemStyle.height");null==N?N=S:(N=o(N,p),"ascending"===a&&(N=-N));O=T(k,"horizontal"===f?m:g),$=T(R,"horizontal"===f?m+L:g+N);g+=N+I,i.setItemLayout(k,{points:O.concat($.slice().reverse())})}}u(i)}))}e.exports=d},"254d":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("base-model",{attrs:{config:e.model_cfg}},[i("template",{slot:"dialog-body"},[i("el-form",{ref:"roleForm",staticClass:"demo-ruleForm",attrs:{rules:e.rules,model:e.form,size:"small","label-width":"120px"}},[i("el-form-item",{attrs:{label:"User Type: ",prop:"UserType"}},[i("el-input",{model:{value:e.form.UserType,callback:function(t){e.$set(e.form,"UserType",t)},expression:"form.UserType"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Shortname: ",prop:"UserTypeShortName"}},[i("el-input",{model:{value:e.form.UserTypeShortName,callback:function(t){e.$set(e.form,"UserTypeShortName",t)},expression:"form.UserTypeShortName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"是否内部角色: ",prop:"IsInternal"}},[i("el-radio-group",{model:{value:e.form.IsInternal,callback:function(t){e.$set(e.form,"IsInternal",t)},expression:"form.IsInternal"}},[i("el-radio",{attrs:{label:!0}},[e._v("是")]),e._v(" "),i("el-radio",{attrs:{label:!1}},[e._v("否")])],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Group: ",prop:"Type"}},[i("el-select",{model:{value:e.form.Type,callback:function(t){e.$set(e.form,"Type",t)},expression:"form.Type"}},e._l(e.userTypeGroupOptions,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Order: "}},[i("el-input-number",{attrs:{"controls-position":"right",min:0},model:{value:e.form.Order,callback:function(t){e.$set(e.form,"Order",t)},expression:"form.Order"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Description: ",prop:"Description"}},[i("el-input",{attrs:{type:"textarea",rows:5},model:{value:e.form.Description,callback:function(t){e.$set(e.form,"Description",t)},expression:"form.Description"}})],1)],1)],1),e._v(" "),i("template",{slot:"dialog-footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){e.model_cfg.visible=!1}}},[e._v("Cancel")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleSave}},[e._v("Save")])],1)],2)},a=[],r=i("db72"),o=(i("ac6a"),i("456d"),i("50fc")),s=i("429f"),l=i("7eeb"),c={components:{BaseModel:l["default"]},props:{data:{type:Object,default:function(){return{Id:"",UserType:"",IsInternal:!0,UserTypeShortName:"",Order:"",Description:""}}}},data:function(){return{userTypeGroupOptions:[{value:1,label:"Trial"},{value:2,label:"Reviewer"},{value:3,label:"Other"}],model_cfg:s["a"],form:{Id:"",UserType:"",IsInternal:!0,UserTypeShortName:"",Type:null,Description:""},rules:{UserType:[{required:!0,message:"Please specify",trigger:"blur"},{max:50,message:"The maximum length is 50"}],UserTypeShortName:[{required:!0,message:"Please specify",trigger:"blur"},{max:50,message:"The maximum length is 50",trigger:"blur"}],Description:[{max:500,message:"The maximum length is 500"}],Type:[{required:!0,message:"Please specify",trigger:"blur"}]},btnLoading:!1}},mounted:function(){Object.keys(this.data).length&&this.data.Id&&(this.form=Object(r["a"])({},this.data))},methods:{handleSave:function(){var e=this;this.$refs.roleForm.validate((function(t){t&&(e.btnLoading=!0,e.model_cfg.showClose=!1,Object(o["b"])(e.form).then((function(t){e.btnLoading=!1,e.$refs["roleForm"].resetFields(),e.$emit("close"),e.model_cfg.showClose=!0,e.$message.success("Saved successfully!")})).catch((function(){e.btnLoading=!1,e.model_cfg.showClose=!0})))}))}}},u=c,d=i("2877"),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},"255c":function(e,t,i){var n=i("3eba"),a=i("d4d1"),r=a.Polygon,o=i("2306"),s=i("6d8b"),l=s.bind,c=s.extend,u=i("80f0"),d=n.extendChartView({type:"themeRiver",init:function(){this._layers=[]},render:function(e,t,i){var n=e.getData(),a=this.group,s=e.getLayerSeries(),d=n.getLayout("layoutInfo"),h=d.rect,p=d.boundaryGap;function m(e){return e.name}a.attr("position",[0,h.y+p[0]]);var g=new u(this._layersSeries||[],s,m,m),v={};function b(t,i,l){var u=this._layers;if("remove"!==t){for(var d,h,p,m=[],g=[],b=s[i].indices,y=0;y<b.length;y++){var w=n.getItemLayout(b[y]),_=w.x,I=w.y0,x=w.y;m.push([_,I]),g.push([_,I+x]),d=n.getItemVisual(b[y],"color")}var S=n.getItemLayout(b[0]),T=n.getItemModel(b[y-1]),C=T.getModel("label"),k=C.get("margin");if("add"===t){var R=v[i]=new o.Group;h=new r({shape:{points:m,stackedOnPoints:g,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),p=new o.Text({style:{x:S.x-k,y:S.y0+S.y/2}}),R.add(h),R.add(p),a.add(R),h.setClipPath(f(h.getBoundingRect(),e,(function(){h.removeClipPath()})))}else{R=u[l];h=R.childAt(0),p=R.childAt(1),a.add(R),v[i]=R,o.updateProps(h,{shape:{points:m,stackedOnPoints:g}},e),o.updateProps(p,{style:{x:S.x-k,y:S.y0+S.y/2}},e)}var D=T.getModel("emphasis.itemStyle"),L=T.getModel("itemStyle");o.setTextStyle(p.style,C,{text:C.get("show")?e.getFormattedLabel(b[y-1],"normal")||n.getName(b[y-1]):null,textVerticalAlign:"middle"}),h.setStyle(c({fill:d},L.getItemStyle(["color"]))),o.setHoverStyle(h,D.getItemStyle())}else a.remove(u[i])}g.add(l(b,this,"add")).update(l(b,this,"update")).remove(l(b,this,"remove")).execute(),this._layersSeries=s,this._layers=v},dispose:function(){}});function f(e,t,i){var n=new o.Rect({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return o.initProps(n,{shape:{width:e.width+20,height:e.height+20}},t,i),n}e.exports=d},"25c7":function(e,t,i){},"25f2":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"sign-form-wrapper"},[i("div",{staticClass:"sign-form-body"},[e.signText?i("h4",{staticStyle:{color:"red"}},[e._v("*"+e._s(e.signText))]):e._e(),e._v(" "),i("el-form",{ref:"signForm",attrs:{model:e.signForm,size:"small","label-width":"100px"}},[i("el-form-item",{attrs:{label:e.$t("common:form:sign:userName"),prop:"userName",rules:[{required:!0,message:e.$t("common:ruleMessage:specify"),trigger:"blur"}]}},[i("el-input",{model:{value:e.signForm.userName,callback:function(t){e.$set(e.signForm,"userName",t)},expression:"signForm.userName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("common:form:sign:password"),prop:"password",rules:[{required:!0,message:e.$t("common:ruleMessage:specify"),trigger:"blur"}]}},[i("el-input",{attrs:{"show-password":"","auto-complete":"new-password"},model:{value:e.signForm.password,callback:function(t){e.$set(e.signForm,"password",t)},expression:"signForm.password"}})],1)],1)],1),e._v(" "),i("div",{staticClass:"dialog-footer sign-form-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.handleclose}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{loading:e.btnLoading,size:"small",type:"primary"},on:{click:e.handleVerifySignature}},[e._v("\n "+e._s(e.$t("common:button:sign"))+"\n ")])],1)])},a=[],r=(i("c5f6"),i("8237")),o=i.n(r),s={name:"SignForm",props:{signCodeEnum:{type:Number,required:!0},trialId:{type:String,required:!0}},data:function(){return{signForm:{userName:"",password:""},signText:"",signCodeId:"",signCode:"",btnLoading:!1,loading:!1}},mounted:function(){var e=this;this.loading=!0,this.$store.dispatch("trials/getSignInfo",{signCode:this.signCodeEnum}).then((function(t){e.loading=!1,e.signText=t.SignText,e.signCode=t.SignCode,e.signCodeId=t.SignCodeId})).catch((function(){e.loading=!1}))},methods:{handleVerifySignature:function(){var e=this,t=zzSessionStorage.getItem("userName").toLocaleLowerCase();this.$refs.signForm.validate((function(i){if(i)if(e.signForm.userName.trim().toLocaleLowerCase()===t){e.btnLoading=!0;var n={UserName:e.signForm.userName,PassWord:o()(e.signForm.password),TrialId:e.trialId,SignCode:e.signCode,SignText:e.signText,SignCodeId:e.signCodeId,SubjectVisitId:""};e.$emit("closeDialog",!0,n)}else e.$message.error(e.$t("common:message:signWarning"))}))},handleclose:function(){this.$emit("closeDialog",!1)}}},l=s,c=(i("842e"),i("2877")),u=Object(c["a"])(l,n,a,!1,null,"2f5fc11f",null);t["default"]=u.exports},"25fc":function(e,t,i){},2610:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container analysis"},[i("div",{staticClass:"filter-container"},[i("el-select",{staticClass:"mr",staticStyle:{width:"110px"},attrs:{size:"small"},on:{change:e.handleTypeChange},model:{value:e.type,callback:function(t){e.type=t},expression:"type"}},e._l(e.types,(function(e){return i("el-option",{key:e,attrs:{label:e,value:e}})})),1),e._v(" "),i("el-select",{directives:[{name:"show",rawName:"v-show",value:"Trial"==e.type,expression:"type=='Trial'"}],ref:"croSelection",staticClass:"mr",staticStyle:{width:"110px"},attrs:{size:"small",placeholder:"CRO",clearable:""},model:{value:e.listQuery.CroId,callback:function(t){e.$set(e.listQuery,"CroId",t)},expression:"listQuery.CroId"}},e._l(e.croList,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.CROName,value:e.Id}})})),1),e._v(" "),i("el-select",{directives:[{name:"show",rawName:"v-show",value:"Reviewer"==e.type,expression:"type=='Reviewer'"}],staticStyle:{width:"110px","margin-right":"5px"},attrs:{placeholder:"Nation",size:"small",clearable:""},model:{value:e.listQuery.Nation,callback:function(t){e.$set(e.listQuery,"Nation",t)},expression:"listQuery.Nation"}},[i("el-option",{attrs:{label:"CN",value:"0"}}),e._v(" "),i("el-option",{attrs:{label:"US",value:"1"}})],1),e._v(" "),i("el-input",{directives:[{name:"show",rawName:"v-show",value:"Reviewer"==e.type,expression:"type=='Reviewer'"}],staticClass:"mr",staticStyle:{width:"120px"},attrs:{size:"small",placeholder:"Reviewer ID",clearable:""},model:{value:e.listQuery.Reviewer,callback:function(t){e.$set(e.listQuery,"Reviewer",t)},expression:"listQuery.Reviewer"}}),e._v(" "),i("el-select",{directives:[{name:"show",rawName:"v-show",value:"Trial"==e.type,expression:"type=='Trial'"}],staticStyle:{width:"150px","margin-right":"5px"},attrs:{placeholder:"Attended Type",size:"small",clearable:""},model:{value:e.listQuery.AttendedReviewerType,callback:function(t){e.$set(e.listQuery,"AttendedReviewerType",t)},expression:"listQuery.AttendedReviewerType"}},[i("el-option",{attrs:{label:"CN",value:"0"}}),e._v(" "),i("el-option",{attrs:{label:"US",value:"1"}}),e._v(" "),i("el-option",{attrs:{label:"CN&US",value:"2"}})],1),e._v(" "),i("el-input",{directives:[{name:"show",rawName:"v-show",value:"Trial"==e.type,expression:"type=='Trial'"}],staticClass:"mr",staticStyle:{width:"120px"},attrs:{size:"small",placeholder:"Trial ID",clearable:""},model:{value:e.listQuery.TrialCode,callback:function(t){e.$set(e.listQuery,"TrialCode",t)},expression:"listQuery.TrialCode"}}),e._v(" "),i("el-date-picker",{staticStyle:{width:"120px","margin-right":"5px"},attrs:{size:"small",placeholder:"Beginning Month","value-format":"yyyy-MM",format:"yyyy-MM",type:"month","picker-options":e.beginPickerOption,clearable:!1},model:{value:e.listQuery.BeginDate,callback:function(t){e.$set(e.listQuery,"BeginDate",t)},expression:"listQuery.BeginDate"}}),e._v("To\n "),i("el-date-picker",{staticStyle:{width:"120px",margin:"0 5px"},attrs:{size:"small",placeholder:"End Month","value-format":"yyyy-MM",format:"yyyy-MM",type:"month","picker-options":e.endpickerOption,clearable:!1},model:{value:e.listQuery.EndDate,callback:function(t){e.$set(e.listQuery,"EndDate",t)},expression:"listQuery.EndDate"}}),e._v(" "),i("el-button",{attrs:{type:"text",size:"small"},on:{click:e.handleReset}},[e._v("Reset")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.handleSearch}},[e._v("Search")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"small",disabled:e.exportDisabled},on:{click:e.handleExport}},[e._v("Export Excel")]),e._v(" "),i("el-button",{attrs:{loading:e.dialogLoading,type:"primary",size:"small"},on:{click:e.handleVerify}},[e._v("Verify")])],1),e._v(" "),i("div",{ref:"listContainer",staticClass:"list-container clearfix"},["Reviewer"==e.type?i("reviewer-analysis",{ref:"Reviewer",attrs:{param:e.listQuery},on:{selectMore:e.selectMore}}):e._e(),e._v(" "),"Trial"==e.type?i("trial-ananlysis",{ref:"Trial",attrs:{param:e.listQuery},on:{selectMore:e.selectMore}}):e._e()],1),e._v(" "),i("el-dialog",{attrs:{title:"Analysis Verification",visible:e.dialogVisible,size:"small",width:"600px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[e._l(e.monthVerifyList,(function(t,n){return i("div",{key:n,staticStyle:{"margin-bottom":"5px","word-break":"keep-all","word-wrap":"break-word"}},[e._v("\n Month:\n "),i("span",{staticStyle:{"font-weight":"bold","margin-right":"5px"}},[e._v(e._s(t.YearMonth))]),e._v(" "),i("span",[e._v("("+e._s(t.ReviewerNameList.join(", "))+" "),i("span",{staticStyle:{color:"red"}},[e._v("not locked")]),e._v(")")])])})),e._v(" "),i("el-divider"),e._v(" "),e._l(e.verifyList,(function(t){return i("div",{key:t.trialCode,staticStyle:{"margin-bottom":"5px"}},[e._v("\n Trial ID:\n "),i("span",{staticStyle:{"font-weight":"bold","margin-right":"5px"}},[e._v(e._s(t.trialCode))]),e._v(" "),i("span",[e._v("("+e._s(t.priceType.join(", "))+" "),i("span",{staticStyle:{color:"red"}},[e._v("did not set unit price")]),e._v(")")])])}))],2)],1)},a=[],r=(i("ac6a"),i("db72")),o=i("e04d"),s=i("e6fa"),l=(i("7878"),i("4360")),c=i("2f62"),u=i("6b95"),d={components:{ReviewerAnalysis:o["default"],TrialAnanlysis:s["default"]},data:function(){var e=this;return{listQuery:{Reviewer:"",CroId:"",TrialCode:"",BeginDate:new Date((new Date).setMonth((new Date).getMonth()-5)).format("yyyy-MM"),EndDate:(new Date).format("yyyy-MM"),Nation:"",AttendedReviewerType:""},types:["Reviewer","Trial"],type:"Reviewer",exportDisabled:!0,dialogVisible:!1,dialogLoading:!1,verifyList:[],monthVerifyList:[],beginPickerOption:{disabledDate:function(t){return e.listQuery.EndDate?t.getTime()>new Date(e.listQuery.EndDate).getTime():t.getTime()>Date.now()}},endpickerOption:{disabledDate:function(t){return e.listQuery.BeginDate?t.getTime()>Date.now()||t.getTime()<=new Date(e.listQuery.BeginDate).getTime():t.getTime()>Date.now()}}}},computed:Object(r["a"])({},Object(c["b"])(["croList"])),created:function(){l["a"].dispatch("global/getCROList")},methods:{handleSearch:function(){this.$refs[this.type].getList()},handleReset:function(){this.listQuery.Reviewer="",this.listQuery.EndDate=(new Date).format("yyyy-MM"),this.listQuery.BeginDate=new Date((new Date).setMonth((new Date).getMonth()-5)).format("yyyy-MM"),this.$refs[this.type].resetList()},handleTypeChange:function(){"Trial"===this.type?this.exportDisabled=!1:this.exportDisabled=!0,this.listQuery.Reviewer="",this.listQuery.CroId="",this.listQuery.TrialCode="",this.listQuery.EndDate=(new Date).format("yyyy-MM"),this.listQuery.BeginDate=new Date((new Date).setMonth((new Date).getMonth()-5)).format("yyyy-MM")},handleExport:function(){this.$refs[this.type].export()},selectMore:function(e){this.exportDisabled=e},handleVerify:function(){var e=this;this.dialogLoading=!0;var t={beginDate:this.listQuery.BeginDate,endDate:this.listQuery.EndDate};Object(u["n"])(t).then((function(t){e.dialogVisible=!0,e.dialogLoading=!1,e.monthVerifyList=t.Result.MonthVerifyResult,e.verifyList=[],t.Result.RevenuesVerifyList&&t.Result.RevenuesVerifyList.forEach((function(t){var i={};for(var n in i.trialCode=t.TrialCode,i.priceType=[],t)!1===t[n]&&i.priceType.push(n);e.verifyList.push(i)}))}))}}},f=d,h=(i("5599"),i("2877")),p=Object(h["a"])(f,n,a,!1,null,null,null);t["default"]=p.exports},"262e":function(e,t,i){const n=i("3e15"),{log:a}=i("908e"),r=async(e,t)=>{a("info","fetch "+e);const i=await(await fetch(e)).arrayBuffer();a("info",`${e} file size = ${i.byteLength} bytes`);const n=new Blob([i],{type:t}),r=URL.createObjectURL(n);return a("info",`${e} blob URL = ${r}`),r};e.exports=async({corePath:e})=>{if("string"!==typeof e)throw Error("corePath should be a string!");const t=n(e),i=await r(t,"application/javascript"),o=await r(t.replace("ffmpeg-core.js","ffmpeg-core.wasm"),"application/wasm"),s=await r(t.replace("ffmpeg-core.js","ffmpeg-core.worker.js"),"application/javascript");return"undefined"===typeof createFFmpegCore?new Promise(e=>{const t=document.createElement("script"),n=()=>{t.removeEventListener("load",n),a("info","ffmpeg-core.js script loaded"),e({createFFmpegCore:createFFmpegCore,corePath:i,wasmPath:o,workerPath:s})};t.src=i,t.type="text/javascript",t.addEventListener("load",n),document.getElementsByTagName("head")[0].appendChild(t)}):(a("info","ffmpeg-core.js script is loaded already"),Promise.resolve({createFFmpegCore:createFFmpegCore,corePath:i,wasmPath:o,workerPath:s}))}},2655:function(e,t){function i(e){return!!e&&("object"===typeof e||"function"===typeof e)&&"function"===typeof e.then}e.exports=i,e.exports.default=i},2659:function(e,t,i){"use strict";i("a44c")},"268d":function(e,t,i){"use strict";i("a9f8")},"268e":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAH8UlEQVRYR71Ze1BU5xX/fXffy8tlgV1ggRJeQnQsAaNGnAbTtNg81CZEJppMh7FqWnSczKSJU50wYyaxNGMnSoHOVNMaOsRiB6OYTIeOior1gU4cmyggtZIF9u4uC+zDfdzd/Tr38pCVhb1r05x/dma/8zvnd893z/nOdy7BIwillGFZdinDSMsBlFCKAoCmAoibNOcAyDAh6AFwLRj0n9HpdFcJIcFo3ZFoAFarNd3vD9YQQjYBMESDBWCklDZLpUx9UlLSoFisKIJGo1Erkyn2AqgGoBBrfA49L4DDHOfdYzAYRiLZikjQZLJUEYKDAJIiGYty3UoIU5OSoj06H25OgpRSqdls5Ylti9JxtOpNKSlJ2wkh/nDAsAQppSqLxdpKKZ6L1tuj6BOCU8nJSZWEEPfD+FkE+chZLNbj3xW5KUKTJNc9HMlZBFnW0vgdbOtcgW7S6ZLfmLkYQnAyIVoeZZu+LQwhTNXMxJkmOFlKbv8fsjVa7laO8y6cKkHTBFnW2gDQkPCGszw4OIjLly/B5XJCqVQhNjZWUOM4Dhzng9/vB6WAXC6HRqNBYWER9Hp9tCQbdbrkX/AggSB/QgQCtD9SEbbb7WhoqIfP5xPtkGEYrFnzHEpKSkRjAHglEpLDnzgCQZPJ/AEh5J1IFq5fv4b29pOR1GatKxQK7Nz5JvhfsUIp3afXp+wi/MFvNlvviTlbe3pu4+jRTyFhGCzJiIN+gRKxCgnkUgaEEHD+IJxeP8x2H74cGIfP/6A34Le6svIVsfx4PWNKSlIWMZlMywiRXBKDDAQCaGj4PcpyE/DjwqnGJTzyt5/34Z41tO5WV2+GwSC+x6A0sJyYzdZ3KKUfiCEoPJbRiHR7N3Tq+Tunfe29MNo8IWbLylZh9epnxLrid2UXYVnzMYC8JBoV5OC4cAgXunuRm6XDypI8AXq+uxdD7BiKctOwuMCAln8a0dVnCzH75JPLUFGxRrQrQsgxwrLWmwBdJBYl4RxgO/+MrDQtZFIJ5HKpAB133AfnD8A25kJ+th5Gmxt1p/oQpBOWpRKC5SvKooogQP5FWNZiiaY4S702JA6fxcioE5p4NfxeH+RqJSilsI27oF0wURd5OXZlUIjizoocpCYoMaBahPj0hWJjwetZeYL8iyI6/2VuMzTsBfx6/9+wZ3MFlPExkxF04w8tZ/CrLT+ZJnBjYBy3h51YW6SBTCkHtyAb9uSl0RD0PgJBFhq2S3Disd+HXK0AI5WEdTp+n4PN5UOqkkCmksOX8BgcyaVRE4xqi2UeCzSm87hrcaG5ywizw4sYuQRP5SXiheJUkDAdpt/HCQ/BapZCosmKhiC/xdEniXawA4fP3YPD7UdRepxQToZG3ahaYUBOysSWz5RRlw+fdBlRunotcnMnsl6ckJt8HWyllL4sDgCABpE8cBKEBkRDhkY9eP9kLzZu3IScnFzROKHMRFuoeevxlitQuoyiHVkdPhzoNGPLlm1ClyNWhEIdzVE3ZZjhnEgcOg2GTtxzOI9PyNK5xMPEYiS1HDKZTCw3QU846qJpFmZaV7PXITV/Lfzlc3ugjI1BMPBg2/nsJhIpvJoiIKMEbi+Fz+ua6O/EyUSzwOuKbbeCQYr+/1ihVKvxeH4q8M1VKEe/QjAQ5B83pNxwCi38hhVQJvKZTeC678Ohli6kJqmwrDgLSuX80Zxut3iCkRrWMbsbnRfvoOvKvzE67saGl57Cq+ueQDAYhGe4D6qh8yB0onmgRAJPcjGkaYshkz8g0fr5DTS3nBd01CoZnv3BQjyzKh+q8ERDG1YexLKWBgAhLb/D6UF7x1c4d6kf/hm9XdnKQry1baIr4dt7t20YintnEJDFIpBZBmV8Ykg97B+wYe+HJzA66gzZ3Bi1HM8/+zjKV+ZBImFmroW2/PzKzEsTxwXQca4HX5y+BY+Hm/XGLF6UhffefmH6/yCl6O0bRmZGEtSq0GRxe/34sPEf6L52Z843L02fgFfXl6AgN0XY0LCXJuFdtNiqrt8cbvlr22XYRl1zGszNS0Pd7vWQMAQ+LoBDzafxUWMbSovzcbBuKzQJqmnsF509aPpjh6i0KF2SgQ0vPlFVUJA5Pa+ZlVQ/2/Fxo83mnHceo9drUPfuy5DLpPj5joO4co0fA05IVqYOB+q2ojA3FcMWJ979zXGw7JgogiBoOvHJ9rkv7ryVp5+ulcYbtMeBuecySqUcu99ai0V5OmyorsOXN+9OE9Bq4nDi091Qx8Tg45aL6Dh9Qxw54JTdOLLu7NnakCFS2LJUWblf5VXIWucjuX3rj/DDsny8v78Vf2k9J5QShhB8tG8zylctRlf3Xfyu4e/guLBDq4dJn1J4ucrW1jcjD4+mkEIkM7QHQcOP31756XJsXF+K6poDuHDp1rTDtuZdyM7S4+332jAwwDdKEYSgyf7NyPaHIzeFiljYX3ytvgqUH2DSkAFm8fezsXrF97B5R30Ig23VFcjOeQx/au6MxMxKGFLz2ZFfPtoAc6b19a/XawNB7AXo9Ag4LV2Lgbt30Nc/FEKkeEkeYuKSMDJin4ugFyCHJQz2tB2p+d9HwDO9PP96Yzqh/hpCsSlRG2e42HVZuIvMlPLy5TCZHOHIGSlBMyXS+vYjb3y7Q/RZ3mprmdcsmUu/vnWr3D7mKAXhP0NAn5OTEZeo1cHp8DgIqAlADwjTDdAzn+VYr6K2NurPEP8FU+MuU4jj0k4AAAAASUVORK5CYII="},"26b3":function(e,t,i){},"26c0":function(e,t,i){},"26d1":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"ecrf-wrapper",staticStyle:{"min-height":"400px"}},[e.isRender?i("el-form",{ref:"questions",attrs:{size:"small",model:e.questionForm}},[2===e.formType?[i("el-tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},e._l(e.questions,(function(t){return i("el-tab-pane",{key:t.PageName,attrs:{label:t.PageName,name:t.PageName}},[t.Childrens.length>0?i("div",{class:{tabContent:e.publicQuestions.length>0}},e._l(t.Childrens,(function(t){return i("FormItem",{key:t.Id,attrs:{question:t,"question-form":e.questionForm,"reading-task-state":e.readingTaskState,"visit-task-id":e.visitTaskId},on:{setFormItemData:e.setFormItemData,resetFormItemData:e.resetFormItemData}})})),1):e._e()])})),1),e._v(" "),e.publicQuestions.length>0?i("el-divider",{attrs:{"content-position":"left"}}):e._e(),e._v(" "),e._l(e.publicQuestions,(function(t){return i("div",{key:t.PageName},[i("h4",[e._v(e._s(t.PageName))]),e._v(" "),t.Childrens.length>0?e._l(t.Childrens,(function(t){return i("FormItem",{key:t.Id,attrs:{question:t,"question-form":e.questionForm,"reading-task-state":e.readingTaskState,"visit-task-id":e.visitTaskId},on:{setFormItemData:e.setFormItemData,resetFormItemData:e.resetFormItemData}})})):e._e()],2)}))]:e._l(e.questions,(function(t){return i("FormItem",{key:t.Id,attrs:{question:t,"question-form":e.questionForm,"reading-task-state":e.readingTaskState,"visit-task-id":e.visitTaskId},on:{setFormItemData:e.setFormItemData,resetFormItemData:e.resetFormItemData}})})),e._v(" "),e.readingTaskState<2?i("el-form-item",[i("div",{staticStyle:{"text-align":"center"}},[i("el-button",{attrs:{type:"primary"},on:{click:e.handleSave}},[e._v("保存")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.handleSubmit}},[e._v("提交")])],1)]):e._e()],2):e._e(),e._v(" "),e.signVisible?i("el-dialog",{attrs:{visible:e.signVisible,"close-on-click-modal":!1,width:"600px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.signVisible=t}}},[i("div",{attrs:{slot:"title"},slot:"title"},[i("span",{staticStyle:{"font-size":"18px"}},[e._v(e._s(e.$t("common:dialogTitle:sign")))]),e._v(" "),i("span",{staticStyle:{"font-size":"12px","margin-left":"5px"}},[e._v(e._s("("+e.$t("common:label:sign")+e.currentUser+")"))])]),e._v(" "),i("SignForm",{ref:"signForm",attrs:{"sign-code-enum":e.signCode},on:{closeDialog:e.closeSignDialog}})],1):e._e()],1)},a=[],r=(i("ac6a"),i("3e42")),o=i("7a9e"),s=i("0108"),l=i("179b"),c=i("9b92"),u={name:"ECRF",components:{FormItem:s["default"],SignForm:l["default"]},props:{trialId:{type:String,required:!0},subjectId:{type:String,required:!0},criterionId:{type:String,required:!0},visitTaskId:{type:String,required:!0}},data:function(){return{loading:!1,questions:[],questionForm:{},publicQuestions:[],isRender:!1,signVisible:!1,signCode:null,currentUser:zzSessionStorage.getItem("userName"),readingTaskState:0,activeName:0,formType:null}},mounted:function(){this.getQuestions()},methods:{getQuestions:function(){var e=this;this.loading=!0;var t={readingQuestionCriterionTrialId:this.criterionId,visitTaskId:this.visitTaskId};Object(r["Vd"])(t).then((function(t){e.readingTaskState=t.OtherInfo.readingTaskState,e.formType=t.OtherInfo.FormType,2===t.OtherInfo.FormType?(t.Result.MultiPage.length>0&&(t.Result.MultiPage.map((function(t){"group"===t.Type&&0===t.Childrens.length||(t.IsPage||"group"===t.Type||"summary"===t.Type||e.$set(e.questionForm,t.Id,t.Answer?t.Answer:null),t.Childrens.length>0&&e.setChild(t.Childrens))})),e.questions=t.Result.MultiPage,e.activeName=t.Result.MultiPage[0].PageName),t.Result.PublicPage.length>0&&(t.Result.PublicPage.map((function(t){"group"===t.Type&&0===t.Childrens.length||(t.IsPage||"group"===t.Type||"summary"===t.Type||e.$set(e.questionForm,t.Id,t.Answer?t.Answer:null),t.Childrens.length>0&&e.setChild(t.Childrens))})),e.publicQuestions=t.Result.PublicPage)):(t.Result.SinglePage.map((function(t){"group"===t.Type&&0===t.Childrens.length||(t.IsPage||"group"===t.Type||"summary"===t.Type||e.$set(e.questionForm,t.Id,t.Answer?t.Answer:null),t.Childrens.length>0&&e.setChild(t.Childrens))})),e.questions=t.Result.SinglePage),e.isRender=!0,e.loading=!1})).catch((function(){e.loading=!1}))},setChild:function(e){var t=this;e.forEach((function(e){"group"!==e.Type&&"summary"!==e.Type&&e.Id&&t.$set(t.questionForm,e.Id,e.Answer?e.Answer:null),e.Childrens&&e.Childrens.length>0&&t.setChild(e.Childrens)}))},handleSave:function(){var e=this;this.$refs["questions"].validate((function(t){if(t){e.loading=!0;var i=[];for(var n in e.questionForm)i.push({readingQuestionTrialId:n,answer:e.questionForm[n]});var a={trialId:e.trialId,visitTaskId:e.visitTaskId,readingQuestionCriterionTrialId:e.criterionId,answerList:i};Object(r["Ce"])(a).then((function(t){e.$message.success(e.$t("common:message:savedSuccessfully")),e.loading=!1})).catch((function(){e.loading=!1}))}}))},handleSubmit:function(){var e=this;this.$refs["questions"].validate((function(t){if(t){var i=o["default"].processSignature.ImageAssessmentReportConfirmation;e.signCode=i,e.signVisible=!0}}))},closeSignDialog:function(e,t){e?this.signConfirm(t):this.signVisible=!1},signConfirm:function(e){var t=this;this.loading=!0;var i=[];for(var n in this.questionForm)i.push({readingQuestionTrialId:n,answer:this.questionForm[n]});var a={data:{trialId:this.trialId,visitTaskId:this.visitTaskId,readingQuestionCriterionTrialId:this.criterionId,answerList:i},signInfo:e};Object(r["gf"])(a).then((function(e){e.IsSuccess&&(t.$message.success(t.$t("common:message:savedSuccessfully")),t.isEdit=!1,t.$refs["signForm"].btnLoading=!1,t.signVisible=!1,t.readingTaskState=2,window.opener.postMessage("refreshTaskList",window.location),t.$confirm("当前阅片任务已完成,是否进入下一个阅片任务?",{type:"warning",distinguishCancelAndClose:!0}).then((function(){c["a"].$emit("getNextTask")})).catch((function(e){}))),t.loading=!1})).catch((function(e){t.loading=!1,t.$refs["signForm"].btnLoading=!1}))},resetFormItemData:function(e){this.questionForm[e]=null},setFormItemData:function(e){this.questionForm[e.key]=e.val}}},d=u,f=(i("dfa3"),i("2877")),h=Object(f["a"])(d,n,a,!1,null,"87df063e",null);t["default"]=h.exports},"26de":function(e,t,i){},"26e1":function(e,t,i){var n=i("6d8b"),a=i("e0d3"),r=n.each,o=n.isObject,s=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function l(e){var t=e&&e.itemStyle;if(t)for(var i=0,a=s.length;i<a;i++){var r=s[i],o=t.normal,l=t.emphasis;o&&o[r]&&(e[r]=e[r]||{},e[r].normal?n.merge(e[r].normal,o[r]):e[r].normal=o[r],o[r]=null),l&&l[r]&&(e[r]=e[r]||{},e[r].emphasis?n.merge(e[r].emphasis,l[r]):e[r].emphasis=l[r],l[r]=null)}}function c(e,t,i){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var a=e[t].normal,r=e[t].emphasis;a&&(i?(e[t].normal=e[t].emphasis=null,n.defaults(e[t],a)):e[t]=a),r&&(e.emphasis=e.emphasis||{},e.emphasis[t]=r)}}function u(e){c(e,"itemStyle"),c(e,"lineStyle"),c(e,"areaStyle"),c(e,"label"),c(e,"labelLine"),c(e,"upperLabel"),c(e,"edgeLabel")}function d(e,t){var i=o(e)&&e[t],n=o(i)&&i.textStyle;if(n)for(var r=0,s=a.TEXT_STYLE_OPTIONS.length;r<s;r++){t=a.TEXT_STYLE_OPTIONS[r];n.hasOwnProperty(t)&&(i[t]=n[t])}}function f(e){e&&(u(e),d(e,"label"),e.emphasis&&d(e.emphasis,"label"))}function h(e){if(o(e)){l(e),u(e),d(e,"label"),d(e,"upperLabel"),d(e,"edgeLabel"),e.emphasis&&(d(e.emphasis,"label"),d(e.emphasis,"upperLabel"),d(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(l(t),f(t));var i=e.markLine;i&&(l(i),f(i));var a=e.markArea;a&&f(a);var r=e.data;if("graph"===e.type){r=r||e.nodes;var s=e.links||e.edges;if(s&&!n.isTypedArray(s))for(var h=0;h<s.length;h++)f(s[h]);n.each(e.categories,(function(e){u(e)}))}if(r&&!n.isTypedArray(r))for(h=0;h<r.length;h++)f(r[h]);t=e.markPoint;if(t&&t.data){var p=t.data;for(h=0;h<p.length;h++)f(p[h])}i=e.markLine;if(i&&i.data){var m=i.data;for(h=0;h<m.length;h++)n.isArray(m[h])?(f(m[h][0]),f(m[h][1])):f(m[h])}"gauge"===e.type?(d(e,"axisLabel"),d(e,"title"),d(e,"detail")):"treemap"===e.type?(c(e.breadcrumb,"itemStyle"),n.each(e.levels,(function(e){u(e)}))):"tree"===e.type&&u(e.leaves)}}function p(e){return n.isArray(e)?e:e?[e]:[]}function m(e){return(n.isArray(e)?e[0]:e)||{}}function g(e,t){r(p(e.series),(function(e){o(e)&&h(e)}));var i=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&i.push("valueAxis","categoryAxis","logAxis","timeAxis"),r(i,(function(t){r(p(e[t]),(function(e){e&&(d(e,"axisLabel"),d(e.axisPointer,"label"))}))})),r(p(e.parallel),(function(e){var t=e&&e.parallelAxisDefault;d(t,"axisLabel"),d(t&&t.axisPointer,"label")})),r(p(e.calendar),(function(e){c(e,"itemStyle"),d(e,"dayLabel"),d(e,"monthLabel"),d(e,"yearLabel")})),r(p(e.radar),(function(e){d(e,"name")})),r(p(e.geo),(function(e){o(e)&&(f(e),r(p(e.regions),(function(e){f(e)})))})),r(p(e.timeline),(function(e){f(e),c(e,"label"),c(e,"itemStyle"),c(e,"controlStyle",!0);var t=e.data;n.isArray(t)&&n.each(t,(function(e){n.isObject(e)&&(c(e,"label"),c(e,"itemStyle"))}))})),r(p(e.toolbox),(function(e){c(e,"iconStyle"),r(e.feature,(function(e){c(e,"iconStyle")}))})),d(m(e.axisPointer),"label"),d(m(e.tooltip).axisPointer,"label")}e.exports=g},"26fc":function(e,t,i){e.exports=i.p+"static/img/404_cloud.0f4bc32b.png"},2723:function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-tab",use:"icon-tab-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-tab"><path d="M78.921.052H49.08c-1.865 0-3.198 1.599-3.198 3.464v6.661c0 1.865 1.6 3.464 3.198 3.464h29.84c1.865 0 3.198-1.599 3.198-3.464V3.516C82.385 1.65 80.786.052 78.92.052zm45.563 0H94.642c-1.865 0-3.464 1.599-3.464 3.464v6.661c0 1.865 1.599 3.464 3.464 3.464h29.842c1.865-.266 3.464-1.599 3.464-3.464V3.516c0-1.865-1.599-3.464-3.464-3.464zm0 22.382H40.02c-1.866 0-3.464-1.599-3.464-3.464V3.516c0-1.865-1.599-3.464-3.464-3.464H3.516C1.65.052.052 1.651.052 3.516V124.75c0 1.598 1.599 3.197 3.464 3.197h120.968c1.865 0 3.464-1.599 3.464-3.464V25.898c0-1.865-1.599-3.464-3.464-3.464z" /></symbol>'});o.a.add(s);t["default"]=s},2763:function(e,t,i){},"278c":function(e,t,i){var n=i("c135"),a=i("9b42"),r=i("6613"),o=i("c240");function s(e,t){return n(e)||a(e,t)||r(e,t)||o()}e.exports=s,e.exports.__esModule=!0,e.exports["default"]=e.exports},2791:function(e,t,i){"use strict";i("1b2e")},"27a6":function(e,t,i){"use strict";i("be0c")},"27bd":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container"},[i("el-tabs",{attrs:{"before-leave":e.checkLeave},on:{"tab-click":e.clickTab},model:{value:e.active,callback:function(t){e.active=t},expression:"active"}},[i("el-tab-pane",{attrs:{label:"Basic Info",name:"BasicInfo"}},[e.load.BasicInfo?i("basic-info"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Employment",name:"Employment"}},[e.load.Employment?i("Employment"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Specialty",name:"Specialty"}},[e.load.Specialty?i("specialty"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Education & Training",name:"EducationTraining"}},[e.load.EducationTraining?i("education-training"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Research & Publication",name:"ResearchPublication"}},[e.load.ResearchPublication?i("research-publication"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Trial Experience",name:"TrialExperience"}},[e.load.TrialExperience?i("trial-experience"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Credentials",name:"Credentials"}},[e.load.Credentials?i("Credentials"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Resumes",name:"Resumes"}},[e.load.Resumes?i("Resumes"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Agreements",name:"Agreements"}},[e.load.Agreements?i("Agreements"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Setting",name:"Setting"}},[e.load.Setting?i("Setting"):e._e()],1)],1)],1)},a=[],r=(i("386d"),i("4917"),i("3b2b"),i("7f7f"),i("383e")),o=i("cf4f"),s=i("ff7e"),l=i("2021"),c=i("77f5"),u=i("3290"),d=i("63a6"),f=i("4aa2"),h=i("6cce"),p=i("ca86"),m=i("a599"),g={components:{BasicInfo:r["default"],Employment:o["default"],Specialty:s["default"],EducationTraining:l["default"],ResearchPublication:c["default"],TrialExperience:u["default"],Credentials:d["default"],Resumes:f["default"],Agreements:h["default"],Setting:p["default"]},data:function(){return{active:"BasicInfo",load:{BasicInfo:!0,Employment:!1,Specialty:!1,EducationTraining:!1,ResearchPublication:!1,TrialExperience:!1,Credentials:!1,Resumes:!1,Agreements:!1,Setting:!1}}},mounted:function(){this.active=this.$route.query.tabActive,""===this.$route.query.Id&&"BasicInfo"!==this.active&&this.$router.push({path:"/reviewers/reviewers-list"}),this.load[this.active]=!0},methods:{clickTab:function(e,t){!1===this.load[e.name]&&(this.load[e.name]=!0),Object(m["a"])("tabActive",e.name);var i=Object(m["b"])("Id"),n=Object(m["b"])("isEnglish");this.$router.push({path:"/reviewers/reviewers-add?Id=".concat(i,"&isEnglish=").concat(n,"&tabActive=").concat(e.name)})},checkLeave:function(){var e=Object(m["b"])("Id");return!!e||(this.$message({message:"Please fill in the basic information first",type:"warning"}),!1)},getQueryString:function(e){console.log(window.location.href);var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),i=window.location.search.substr(1).match(t);return null!=i?unescape(i[2]):null}}},v=g,b=(i("48de"),i("2877")),y=Object(b["a"])(v,n,a,!1,null,"50678ac2",null);t["default"]=y.exports},"27e2":function(e,t,i){"use strict";i("0f40")},2824:function(e,t,i){},"282b":function(e,t,i){var n=i("6d8b");function a(e){for(var t=0;t<e.length;t++)e[t][1]||(e[t][1]=e[t][0]);return function(t,i,a){for(var r={},o=0;o<e.length;o++){var s=e[o][1];if(!(i&&n.indexOf(i,s)>=0||a&&n.indexOf(a,s)<0)){var l=t.getShallow(s);null!=l&&(r[e[o][0]]=l)}}return r}}e.exports=a},"283c":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"study-info"},[i("div",{staticClass:"functions",staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{type:"primary",size:"small",disabled:0===e.studyList.length,icon:"el-icon-view"},on:{click:e.handlePreviewAllFiles}},[e._v("\n "+e._s(e.$t("trials:audit:action:preview"))+"\n ")])],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.studyLoading,expression:"studyLoading"}],staticStyle:{width:"100%"},attrs:{data:e.studyList,height:"300","row-class-name":e.tableRowClassName},on:{"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{prop:"StudyCode",label:e.$t("trials:audit:table:studyId"),"min-width":"80","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Modalities",label:e.$t("trials:audit:table:modality"),"min-width":"80","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"BodyPartExamined",label:e.$t("trials:audit:table:bodyPart"),"min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"SeriesCount",label:e.$t("trials:audit:table:seriesCount"),"min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"InstanceCount",label:e.$t("trials:audit:table:instanceCount"),"min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"StudyTime",label:e.$t("trials:audit:table:studyDate"),"min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.moment(t.row.StudyTime).format("YYYY-MM-DD"))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"UploadedTime",label:e.$t("trials:audit:table:studyUploadTime"),"min-width":"80","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action"),"min-width":"100",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{icon:"el-icon-view",disabled:0===t.row.SeriesCount||t.row.IsDeleted,title:e.$t("trials:audit:action:preview"),circle:""},on:{click:function(i){return e.handleViewStudy(t.row)}}})]}}])})],1)],1)},a=[],r=(i("ac6a"),i("3e42")),o=i("5f87"),s=i("c1df"),l=i.n(s),c={name:"StudyInfo",props:{data:{type:Object,default:function(){return{}}}},data:function(){return{userTypeEnumInt:1*zzSessionStorage.getItem("userTypeEnumInt"),deleteArr:[],studyLoading:!1,studyList:[],trialId:this.$route.query.trialId,moment:l.a}},mounted:function(){this.getStudyInfo()},methods:{getStudyInfo:function(){var e=this;this.studyLoading=!0,Object(r["sd"])(this.data.Id).then((function(t){e.studyList=t.Result,e.studyLoading=!1})).catch((function(){e.studyLoading=!1}))},handleBatchDelete:function(){var e=this;this.$confirm(this.$t("trials:qcCheck:message:delete"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){e.studyLoading=!0,Object(r["yb"])(e.trialId,e.data.Id,e.deleteArr).then((function(t){t.IsSuccess&&(e.getStudyInfo(),e.$emit("getList"),e.$message.success(e.$t("trials:qcCheck:message:deletedSuccessfully")))})).catch((function(){e.studyLoading=!0}))})).catch((function(){}))},handlePreviewAllFiles:function(){var e=Object(o["a"])(),t=this.$router.resolve({path:"/showvisitdicoms?trialId=".concat(this.data.TrialId,"&visitInfo=").concat(this.data.VisitName,"(").concat(this.data.VisitNum,")&subjectVisitId=").concat(this.data.Id,"&TokenKey=").concat(e)});window.open(t.href,"_blank")},handleViewStudy:function(e){var t=Object(o["a"])(),i=this.$router.resolve({path:"/showdicom?studyId=".concat(e.StudyId,"&TokenKey=").concat(t,"&type=Study")});window.open(i.href,"_blank")},handleSelectionChange:function(e){var t=this;this.deleteArr=[],e.forEach((function(e){t.deleteArr.push(e.StudyId)}))},hasDeleted:function(e){return!e.IsDeleted},tableRowClassName:function(e){var t=e.row;e.rowIndex;return t.IsDeleted?"delete-row":""}}},u=c,d=(i("57a4"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},2860:function(e,t,i){},"289d":function(e,t,i){},"28b8":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",[i("div",{staticClass:"search"},[i("el-form",{staticClass:"base-search-form",attrs:{inline:!0,size:"mini"}}),e._v(" "),i("span",{staticStyle:{"margin-left":"auto"}},[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.handleAdd}},[e._v("新建")])],1)],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:45},expression:"{bottomOffset:45}"}],attrs:{data:e.list,stripe:"",size:"small",height:"100"}},[i("el-table-column",{attrs:{type:"index",width:"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Code",label:"字典键值","min-width":"180","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ValueCN",label:"中文值","min-width":"180","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Value",label:"英文值","min-width":"180","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ChildGroup",label:"分组","min-width":"180","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ShowOrder",label:"显示顺序","min-width":"180","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Description",label:"描述","min-width":"180","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:"是否可用",width:"100",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},on:{change:function(i){return e.switchChange(i,t.row)}},model:{value:t.row.IsEnable,callback:function(i){e.$set(t.row,"IsEnable",i)},expression:"scope.row.IsEnable"}})]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"操作",width:"300",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("\n 编辑\n ")]),e._v(" "),i("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("\n 删除\n ")])]}}])})],1),e._v(" "),i("DictionaryChildAddOrUpdateForm",{ref:"DictionaryChildAddOrUpdateForm",on:{getList:e.getList}})],1)},a=[],r=(i("20d6"),i("e56e")),o=i("f36a"),s=i("e1e6"),l=function(){return{parentId:""}},c={components:{BoxContent:o["default"],DictionaryChildAddOrUpdateForm:s["default"]},props:{parent:{type:Object,default:function(){return{}}}},data:function(){return{searchData:l(),basicDicList:[],list:[],total:0,loading:!1,drawerChild:!1,rowData:{},childList:[],model_cfg:{visible:!1,showClose:!0,width:"600px",title:"",appendToBody:!0}}},mounted:function(){this.getList()},methods:{handleChild:function(e){this.drawerChild=!0,this.getDictionaryChildList(e.Id)},getDictionaryChildList:function(e){var t=this;Object(r["fb"])(e).then((function(e){t.childList=e.Result.CurrentPageData})).catch((function(){t.loading=!1}))},switchChange:function(e,t){var i=this;this.loading=!0,Object(r["c"])(t).then((function(e){i.$message.success("Saved successfully!"),i.loading=!1})).catch((function(){i.loading=!1}))},handleEdit:function(e){var t=this;this.$nextTick((function(){t.$refs["DictionaryChildAddOrUpdateForm"].openDialog("DictionaryChild Edit",e)}))},handleAdd:function(){var e=this;this.$nextTick((function(){e.$refs["DictionaryChildAddOrUpdateForm"].openDialog("DictionaryChild Add",{},{ConfigTypeId:e.parent.ConfigTypeId,parentId:e.parent.Id})}))},handleDelete:function(e){var t=this;this.$confirm("Sure to delete?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){t.loading=!0,Object(r["C"])(e.Id).then((function(i){t.loading=!1,i.IsSuccess&&(t.list.splice(t.list.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success("Deleted successfully!"))})).catch((function(){t.loading=!1}))}))},getList:function(){var e=this;this.loading=!0,Object(r["fb"])(this.parent.Id).then((function(t){e.loading=!1,e.list=t.Result})).catch((function(){e.loading=!1}))},handleSearch:function(){this.getList()},handleReset:function(){this.searchData=l(),this.getList()}}},u=c,d=i("2877"),f=Object(d["a"])(u,n,a,!1,null,"537cce14",null);t["default"]=f.exports},"292e":function(e,t,i){var n=i("3842"),a=n.parsePercent,r=n.linearMap,o=i("f934"),s=i("bb70"),l=i("6d8b"),c=2*Math.PI,u=Math.PI/180;function d(e,t){return o.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function f(e,t,i,n){t.eachSeriesByType(e,(function(e){var t=e.getData(),n=t.mapDimension("value"),o=d(e,i),f=e.get("center"),h=e.get("radius");l.isArray(h)||(h=[0,h]),l.isArray(f)||(f=[f,f]);var p=a(o.width,i.getWidth()),m=a(o.height,i.getHeight()),g=Math.min(p,m),v=a(f[0],p)+o.x,b=a(f[1],m)+o.y,y=a(h[0],g/2),w=a(h[1],g/2),_=-e.get("startAngle")*u,I=e.get("minAngle")*u,x=0;t.each(n,(function(e){!isNaN(e)&&x++}));var S=t.getSum(n),T=Math.PI/(S||x)*2,C=e.get("clockwise"),k=e.get("roseType"),R=e.get("stillShowZeroSum"),D=t.getDataExtent(n);D[0]=0;var L=c,O=0,$=_,N=C?1:-1;if(t.each(n,(function(e,i){var n;if(isNaN(e))t.setItemLayout(i,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:C,cx:v,cy:b,r0:y,r:k?NaN:w,viewRect:o});else{n="area"!==k?0===S&&R?T:e*T:c/x,n<I?(n=I,L-=I):O+=e;var a=$+N*n;t.setItemLayout(i,{angle:n,startAngle:$,endAngle:a,clockwise:C,cx:v,cy:b,r0:y,r:k?r(e,D,[y,w]):w,viewRect:o}),$=a}})),L<c&&x)if(L<=.001){var A=c/x;t.each(n,(function(e,i){if(!isNaN(e)){var n=t.getItemLayout(i);n.angle=A,n.startAngle=_+N*i*A,n.endAngle=_+N*(i+1)*A}}))}else T=L/O,$=_,t.each(n,(function(e,i){if(!isNaN(e)){var n=t.getItemLayout(i),a=n.angle===I?I:e*T;n.startAngle=$,n.endAngle=$+N*a,$+=N*a}}));s(e,w,o.width,o.height,o.x,o.y)}))}e.exports=f},2938:function(e,t,i){"use strict";i.d(t,"h",(function(){return a})),i.d(t,"a",(function(){return r})),i.d(t,"e",(function(){return o})),i.d(t,"d",(function(){return s})),i.d(t,"g",(function(){return l})),i.d(t,"b",(function(){return c})),i.d(t,"i",(function(){return u})),i.d(t,"c",(function(){return d})),i.d(t,"f",(function(){return f}));var n=i("b775");function a(e){return Object(n["a"])({url:"/FrontAuditConfig/getFrontAuditConfigList",method:"post",data:e})}function r(e){return Object(n["a"])({url:"/FrontAuditConfig/addOrUpdateFrontAuditConfig",method:"post",data:e})}function o(e){return Object(n["a"])({url:"/FrontAuditConfig/deleteFrontAuditConfig/".concat(e),method:"delete"})}function s(e){return Object(n["a"])({url:"/FrontAuditConfig/copyOtherToThisItem",method:"post",data:e})}function l(e){return Object(n["a"])({url:"/FrontAuditConfig/getAuditConfigChildList?frontAuditConfigId=".concat(e),method:"get"})}function c(e){return Object(n["a"])({url:"/FrontAuditConfig/changeFrontAuditSort",method:"post",data:e})}function u(e){return Object(n["a"])({url:"".concat(""===e?"/FrontAuditConfig/getModuleTypeDescriptionList":"/FrontAuditConfig/getModuleTypeDescriptionList?moduleTypeId="+e),method:"get"})}function d(e){return Object(n["a"])({url:"/FrontAuditConfig/copyFrontAuditConfigItem",method:"post",data:e})}function f(e){return Object(n["a"])({url:"/FrontAuditConfig/fullyReplicated",method:"post",data:e})}},"293b":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",[i("div",{staticClass:"search"},[i("el-form",{staticClass:"base-search-form",attrs:{inline:!0,size:"small"}},[i("el-form-item",{attrs:{label:"Site Name:"}},[i("el-input",{staticStyle:{width:"120px"},model:{value:e.searchData.SiteName,callback:function(t){e.$set(e.searchData,"SiteName",t)},expression:"searchData.SiteName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Alias Name:"}},[i("el-input",{staticStyle:{width:"120px"},model:{value:e.searchData.AliasName,callback:function(t){e.$set(e.searchData,"AliasName",t)},expression:"searchData.AliasName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Country:"}},[i("el-input",{staticStyle:{width:"120px"},model:{value:e.searchData.Country,callback:function(t){e.$set(e.searchData,"Country",t)},expression:"searchData.Country"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"City:"}},[i("el-input",{staticStyle:{width:"120px"},model:{value:e.searchData.City,callback:function(t){e.$set(e.searchData,"City",t)},expression:"searchData.City"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("Search")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("Reset")])],1)],1),e._v(" "),i("el-button",{staticStyle:{"margin-left":"auto"},attrs:{type:"primary",size:"small",icon:"el-icon-plus"},on:{click:e.handleAddSite}},[e._v("New")])],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"}],attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"SiteCode",label:"Site Code","min-width":"120","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"SiteName",label:"Site Name","min-width":"150","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"AliasName",label:"Alias Name","min-width":"150","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"UniqueCode",label:"组织机构代码","min-width":"130","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Country",label:"Country","min-width":"120","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"City",label:"City","min-width":"120","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Address",label:"Address","min-width":"120","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"HospitalName",label:"Affiliated Hospital","min-width":"180","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"DirectorName",label:"Director Name","min-width":"160","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"DirectorPhone",label:"Director Phone","min-width":"150","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"ContactName",label:"Contact Name","min-width":"150","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"ContactPhone",label:"Contact Phone","min-width":"160","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{label:"Action",fixed:"right",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{circle:"",icon:"el-icon-edit-outline",title:"编辑"},on:{click:function(i){return e.handleEdit(t.row)}}}),e._v(" "),i("el-button",{attrs:{circle:"",icon:"el-icon-delete",title:"删除"},on:{click:function(i){return e.handleDelete(t.row)}}})]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}}),e._v(" "),e.editVisible?i("el-dialog",{attrs:{visible:e.editVisible,"close-on-click-modal":!1,title:e.title,width:"600px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.editVisible=t}}},[e.editVisible?i("site-form",{attrs:{data:e.rowData},on:{close:e.close,getList:e.getList}}):e._e()],1):e._e()],1)},a=[],r=(i("20d6"),i("e56e")),o=i("f36a"),s=i("333d"),l=i("7c6f"),c=function(){return{SiteName:"",PageIndex:1,PageSize:20,Asc:!0,SortField:"",AliasName:"",Country:null,City:null}},u={name:"Sites",components:{BoxContent:o["default"],Pagination:s["default"],SiteForm:l["default"]},data:function(){return{editVisible:!1,title:"Add",searchData:c(),list:[],total:0,loading:!1,rowData:{}}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0,Object(r["vb"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},handleAddSite:function(){this.rowData={},this.title="Add",this.editVisible=!0},handleEdit:function(e){this.rowData=e,this.title="Edit",this.editVisible=!0},handleDelete:function(e){var t=this;this.$confirm("Sure to delete?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){t.loading=!0,Object(r["M"])(e.Id).then((function(i){t.loading=!1,i.IsSuccess&&(t.list.splice(t.list.findIndex((function(t){return t.Id===e.Id})),1),t.$store.dispatch("global/setSite",{}),t.$message.success("Deleted successfully!"))})).catch((function(){t.loading=!1}))}))},handleReset:function(){this.searchData=c(),this.getList()},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleSortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()},close:function(){this.editVisible=!1}}},d=u,f=(i("14ee"),i("2877")),h=Object(f["a"])(d,n,a,!1,null,"14852b26",null);t["default"]=h.exports},2943:function(e,t){function i(e){var t={};e.eachSeriesByType("graph",(function(e){var i=e.getCategoriesData(),n=e.getData(),a={};i.each((function(n){var r=i.getName(n);a["ec-"+r]=n;var o=i.getItemModel(n),s=o.get("itemStyle.color")||e.getColorFromPalette(r,t);i.setItemVisual(n,"color",s);for(var l=["opacity","symbol","symbolSize","symbolKeepAspect"],c=0;c<l.length;c++){var u=o.getShallow(l[c],!0);null!=u&&i.setItemVisual(n,l[c],u)}})),i.count()&&n.each((function(e){var t=n.getItemModel(e),r=t.getShallow("category");if(null!=r){"string"===typeof r&&(r=a["ec-"+r]);for(var o=["color","opacity","symbol","symbolSize","symbolKeepAspect"],s=0;s<o.length;s++)null==n.getItemVisual(e,o[s],!0)&&n.setItemVisual(e,o[s],i.getItemVisual(r,o[s]))}}))}))}e.exports=i},2985:function(e,t,i){},"29a8":function(e,t){var i={legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType}",withoutName:"第{seriesId}个系列是一个{seriesType}",separator:{middle:"",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:"",end:""}}}};e.exports=i},"29a9":function(e,t,i){var n=i("3eba"),a=i("b336");i("bc5f"),i("ab05"),i("06ea"),i("004f"),i("d6ef"),n.registerPreprocessor(a)},"29be":function(e,t,i){"use strict";i("e7a0")},"29ce":function(e,t,i){"use strict";i("9fa2")},"29d7":function(e,t,i){},"29f3":function(e,t){var i=Object.prototype,n=i.toString;function a(e){return n.call(e)}e.exports=a},"2a0d":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"emailForm",staticClass:"email_wrapper",attrs:{model:e.form,"label-width":"150px",size:"small",rules:e.rules}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:e.$t("trials:emailManageCfg:title:code"),prop:"Code"}},[i("el-input",{model:{value:e.form.Code,callback:function(t){e.$set(e.form,"Code",t)},expression:"form.Code"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:consistencyAnalysis:table:criterionName"),prop:"TrialReadingCriterionId"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{clearable:""},model:{value:e.form.TrialReadingCriterionId,callback:function(t){e.$set(e.form,"TrialReadingCriterionId",t)},expression:"form.TrialReadingCriterionId"}},e._l(e.trialCriterionList,(function(e){return i("el-option",{key:"TrialReadingCriterionId"+e.TrialReadingCriterionId,attrs:{value:e.TrialReadingCriterionId,label:e.TrialReadingCriterionName}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:emailManageCfg:title:businessScenario"),prop:"BusinessScenarioEnum"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{size:"small"},model:{value:e.form.BusinessScenarioEnum,callback:function(t){e.$set(e.form,"BusinessScenarioEnum",t)},expression:"form.BusinessScenarioEnum"}},e._l(e.$d.Common_File_BusinessScenario,(function(e){return i("el-option",{key:e.id,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:emailManageCfg:title:toUserTypeList"),prop:"ToUserTypeList"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{size:"small",multiple:""},model:{value:e.form.ToUserTypeList,callback:function(t){e.$set(e.form,"ToUserTypeList",t)},expression:"form.ToUserTypeList"}},e._l(e.toUsers,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.UserTypeShortName,value:e.UserTypeEnum}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:emailManageCfg:title:copyUserTypeList"),prop:"CopyUserTypeList"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{size:"small",multiple:""},model:{value:e.form.CopyUserTypeList,callback:function(t){e.$set(e.form,"CopyUserTypeList",t)},expression:"form.CopyUserTypeList"}},e._l(e.copyUsers,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.UserTypeShortName,value:e.UserTypeEnum}})})),1)],1),e._v(" "),0===e.criterionType?i("el-form-item",{attrs:{label:e.$t("trials:emailManageCfg:title:fileName")}},[i("div",{staticClass:"upload-container"},[i("el-upload",{staticClass:"upload-demo",attrs:{action:"",accept:".xls,.xlsx,.doc,.docx","before-upload":e.beforeUpload,"http-request":e.handleUploadFile,"on-preview":e.handlePreview,"on-remove":e.handleRemoveFile,"show-file-list":!0,"file-list":e.fileList,limit:1,"on-exceed":e.handleExceed}},[i("el-button",{attrs:{size:"small",type:"primary"}},[e._v(e._s(e.$t("trials:emailManageCfg:button:select")))]),e._v(" "),i("span",{staticClass:"el-upload__tip",staticStyle:{"margin-left":"10px"},attrs:{slot:"tip"},slot:"tip"},[e._v("\n "+e._s(e.$t("trials:emailManageCfg:message:format"))+"\n ")])],1)],1)]):e._e(),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:emailManageCfg:title:isReturnRequired"),prop:"IsReturnRequired"}},[i("el-radio-group",{model:{value:e.form.IsReturnRequired,callback:function(t){e.$set(e.form,"IsReturnRequired",t)},expression:"form.IsReturnRequired"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"IsReturnRequired"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:emailManageCfg:title:isUrgent"),prop:"IsUrgent"}},[i("el-radio-group",{model:{value:e.form.IsUrgent,callback:function(t){e.$set(e.form,"IsUrgent",t)},expression:"form.IsUrgent"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"IsUrgent"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:emailManageCfg:title:isAutoSend"),prop:"IsAutoSend"}},[i("el-radio-group",{model:{value:e.form.IsAutoSend,callback:function(t){e.$set(e.form,"IsAutoSend",t)},expression:"form.IsAutoSend"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"IsAutoSend"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.close}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])},a=[],r=(i("7f7f"),i("96cf"),i("3b8d")),o=(i("c5f6"),i("3e42")),s=i("958c"),l=i("e56e"),c={props:{data:{type:Object,default:function(){return{}}},criterionType:{type:Number,required:!0}},data:function(){return{form:{Id:"",Code:"",AuthorizationCode:"",SMTPServerAddress:"smtp.qiye.aliyun.com",SMTPServerPort:465,BusinessScenarioEnum:null,CriterionTypeEnum:null,TrialReadingCriterionId:null,FromName:"",FromEmail:"",ToUserTypeList:[],CopyUserTypeList:[],IsReturnRequired:!0,IsUrgent:!0,IsEnable:!0,IsAutoSend:!0,FilePath:"",FileName:""},rules:{Code:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:["blur"]}],AuthorizationCode:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:["blur"]}],SMTPServerAddress:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:["blur"]}],SMTPServerPort:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:["blur"]}],FromName:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:["blur"]}],TrialReadingCriterionId:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:["blur"]}],FromEmail:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"},{type:"email",message:this.$t("passwordReset:formRule:passwordinvalid"),trigger:["blur"]}],ToUserTypeList:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur"]}],BusinessScenarioEnum:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur"]}]},scenarioOption:[],fileList:[],toUsers:[],copyUsers:[],loading:!1,trialCriterionList:[]}},mounted:function(){this.trialId=this.$route.query.trialId,this.initForm(),this.getTrialCriterionList()},methods:{getTrialCriterionList:function(){var e=this;this.loading=!0,Object(s["U"])(this.trialId).then((function(t){e.trialCriterionList=t.Result,e.loading=!1})).catch((function(){e.loading=!1}))},initForm:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.loading=!0,e.next=3,this.getToUserTypeSelectList();case 3:return e.next=5,this.getToCopyTypeSelectList();case 5:for(t in this.form)this.data.hasOwnProperty(t)&&(this.form[t]=this.data[t]);this.loading=!1;case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getToUserTypeSelectList:function(){var e=this;Object(o["ge"])(4).then((function(t){e.toUsers=t.Result})).catch((function(){e.loading=!1}))},getToCopyTypeSelectList:function(){var e=this;Object(o["ge"])(5).then((function(t){e.copyUsers=t.Result})).catch((function(){e.loading=!1}))},handleSave:function(){var e=this;this.$refs.emailForm.validate((function(t){t&&(e.loading=!0,e.form.TrialId=e.$route.query.trialId,Object(o["C"])(e.form).then((function(t){e.loading=!1,e.$emit("closeDialog"),e.$emit("getList"),e.$message.success(e.$t("common:message:savedSuccessfully"))})).catch((function(){e.loading=!1})))}))},beforeUpload:function(e){return this.checkFileSuffix(e.name)?(this.fileList=[],!0):(this.$message.error(this.$t("trials:emailManageCfg:message:format")),!1)},handleUploadFile:function(e){var t=this;this.loading=!0,Object(l["Pb"])(e.file).then((function(i){if(t.loading=!1,i.IsSuccess){t.form.FilePath=i.Result.FilePath,t.form.FileName=e.file.name;var n={name:t.form.FileName,path:t.form.FilePath};t.fileList.push(n)}})).catch((function(){t.loading=!1}))},handleRemoveFile:function(){this.fileList=[],this.form.FilePath="",this.form.FileName=""},handlePreview:function(e){e.fullPath&&window.open(e.fullPath,"_blank")},handleExceed:function(e,t){this.$message.warning(this.$t("trials:emailManageCfg:message:onlyOneFile"))},checkFileSuffix:function(e){var t=["xls","xlsx","doc","docx"],i=e.substring(e.lastIndexOf(".")+1).toLocaleLowerCase();return-1!==t.indexOf(i)},close:function(){this.$emit("closeDialog")}}},u=c,d=(i("86f9"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,"20cb5bbc",null);t["default"]=f.exports},"2a2b":function(e,t,i){"use strict";i("d62e")},"2a37":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{ref:"previewCanvas",staticStyle:{height:"72px",width:"72px"}})])},a=[],r=i("81d9"),o={props:{imageId:String},mounted:function(){var e=this.$refs.previewCanvas;r["enable"](e),r["loadImage"](this.imageId).then((function(t){r["displayImage"](e,t)}))}},s=o,l=(i("6a98"),i("2877")),c=Object(l["a"])(s,n,a,!1,null,"779965d0",null);t["default"]=c.exports},"2a6b":function(e,t,i){},"2acd":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"search-container"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:stats:form:name")}},[i("el-input",{attrs:{disabled:""},model:{value:e.listQuery.ReviewerName,callback:function(t){e.$set(e.listQuery,"ReviewerName",t)},expression:"listQuery.ReviewerName"}})],1),e._v(" "),i("el-form-item",{staticClass:"my_multiple",attrs:{label:e.$t("trials:stats:form:source")}},[i("el-select",{staticClass:"handle-select",staticStyle:{width:"140px"},attrs:{multiple:"",clearable:""},model:{value:e.listQuery.WorkLoadFromStatus,callback:function(t){e.$set(e.listQuery,"WorkLoadFromStatus",t)},expression:"listQuery.WorkLoadFromStatus"}},e._l(e.statusOption,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:stats:form:beginMonth")}},[i("el-date-picker",{attrs:{type:"month","value-format":"yyyy-MM",format:"yyyy-MM","picker-options":e.beginPickerOption},model:{value:e.listQuery.SearchBeginDateTime,callback:function(t){e.$set(e.listQuery,"SearchBeginDateTime",t)},expression:"listQuery.SearchBeginDateTime"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:stats:form:endMonth")}},[i("el-date-picker",{attrs:{type:"month","value-format":"yyyy-MM",format:"yyyy-MM","picker-options":e.endpickerOption},model:{value:e.listQuery.SearchEndDateTime,callback:function(t){e.$set(e.listQuery,"SearchEndDateTime",t)},expression:"listQuery.SearchEndDateTime"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")])],1)],1)],1),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:55},expression:"{bottomOffset:55}"}],attrs:{size:"small",height:"100",data:e.list,"cell-style":e.cellColor,"row-key":"RowGuid",lazy:"",border:"",load:e.load,"tree-props":{hasChildren:"hasChildren"}}},[i("el-table-column",{attrs:{width:"60"}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("trials:stats:table:month"),"min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",{directives:[{name:"show",rawName:"v-show",value:e.ShowMonthSelect(t.row.DataFrom),expression:"ShowMonthSelect(scope.row.DataFrom)"}]},[e._v(e._s(t.row.WorkTimeStr))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"DataFrom",label:e.$t("trials:stats:form:source"),"min-width":"150","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(0===t.row.DataFrom?"Reviewer":1===t.row.DataFrom?"Client":"Reconciled"))]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Training",label:e.$t("trials:enrolledReviews:table:training"),"min-width":"75","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"RefresherTraining",label:e.$t("trials:enrolledReviews:table:refresherTraining"),"min-width":"130","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("trials:enrolledReviews:table:tp"),align:"center"}},[i("el-table-column",{attrs:{prop:"Timepoint",label:e.$t("trials:enrolledReviews:table:tpRegular"),"min-width":"80","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"TimepointIn48H",label:e.$t("trials:enrolledReviews:table:tp48H"),"min-width":"90","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"TimepointIn24H",label:e.$t("trials:enrolledReviews:table:tp24H"),"min-width":"90","show-overflow-tooltip":""}})],1),e._v(" "),i("el-table-column",{attrs:{label:e.$t("trials:enrolledReviews:table:ad"),align:"center"}},[i("el-table-column",{attrs:{prop:"Adjudication",label:e.$t("trials:enrolledReviews:table:adRegular"),"min-width":"80","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"AdjudicationIn48H",label:e.$t("trials:enrolledReviews:table:ad48H"),"min-width":"90","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"AdjudicationIn24H",label:e.$t("trials:enrolledReviews:table:ad24H"),"min-width":"90","show-overflow-tooltip":""}})],1),e._v(" "),i("el-table-column",{attrs:{prop:"Global",label:e.$t("trials:enrolledReviews:table:gl"),"min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Downtime",label:e.$t("trials:enrolledReviews:table:downtime"),"min-width":"90","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"150",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.hasChildren?i("div",[i("el-button",{attrs:{circle:"",icon:"el-icon-plus",disabled:t.row.IsLock,title:e.$t("trials:stats:action:add")},on:{click:function(i){return e.handleAdd(t.row)}}})],1):i("div",[i("el-button",{attrs:{circle:"",icon:"el-icon-edit-outline",title:e.$t("trials:stats:action:edit"),disabled:t.row.IsLock},on:{click:function(i){return e.handleUpdate(t.row)}}}),e._v(" "),t.row.DataFrom?i("el-button",{attrs:{circle:"",title:e.$t("trials:stats:action:reset"),icon:"el-icon-refresh",disabled:t.row.Id==e.guidEmpty||null==t.row.Id||t.row.IsLock},on:{click:function(i){return e.handleDelete(t.row)}}}):e._e(),e._v(" "),t.row.DataFrom?e._e():i("el-button",{attrs:{circle:"",title:e.$t("trials:stats:action:del"),icon:"el-icon-delete",disabled:t.row.IsLock},on:{click:function(i){return e.handleDelete(t.row)}}})],1)]}}])})],1)],1),e._v(" "),i("el-dialog",{directives:[{name:"dialogDrag",rawName:"v-dialogDrag"}],key:e.timer,ref:"dialog__wrapper",attrs:{size:"small",visible:e.dialogVisible,width:"40%",title:e.title,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("add-workload",{attrs:{id:e.Id,"trial-id":e.trialId,"doctor-id":e.doctorId,"trial-expedited-state":e.expeditedState,info:e.row,"year-month":e.yearMonth},on:{handleClose:e.handleClose,setTitle:e.setTitle}})],1)],2)},a=[],r=i("75fc"),o=(i("7514"),i("db72")),s=(i("ac6a"),i("5df3"),i("f400"),i("3e42")),l=(i("8fc4"),i("6071")),c=i("1f53");i("7878");var u=function(){return{TrialId:"",DoctorId:"",WorkLoadFromStatus:[0,1,2],SearchBeginDateTime:new Date((new Date).setMonth((new Date).getMonth()-3)).format("yyyy-MM"),SearchEndDateTime:(new Date).format("yyyy-MM"),PageIndex:1,PageSize:20,Asc:!1,SortField:""}},d={name:"Stats",components:{BaseContainer:l["default"],AddWorkload:c["default"]},data:function(){var e=this;return{list:[],listQuery:u(),statusOption:this.$d.WorkLoadStatusOption,listLoading:!1,beginPickerOption:{disabledDate:function(t){return e.listQuery.SearchEndDateTime?t.getTime()>new Date(e.listQuery.SearchEndDateTime).getTime():t.getTime()>Date.now()}},endpickerOption:{disabledDate:function(e){var t=Date.now();return e.getTime()>t}},expeditedState:0,dialogVisible:!1,Id:"",trialId:"",doctorId:"",title:"",row:{},timer:"",yearMonth:"",maps:new Map,guidEmpty:"00000000-0000-0000-0000-000000000000",trialCode:""}},mounted:function(){this.trialCode=this.$route.query.trialCode,this.trialId=this.$route.query.trialId,this.listQuery.TrialCode=this.trialCode,this.listQuery.ReviewerName=this.$route.query.doctorName,this.doctorId=this.$route.query.doctorId,this.initPage(),this.getExpeditedState()},methods:{initPage:function(){var e=this;this.listLoading=!0,this.listQuery.DoctorId=this.$route.query.doctorId,this.listQuery.TrialId=this.$route.query.trialId,this.listQuery.TrialCode=this.trialCode,this.listQuery.ReviewerName=this.$route.query.doctorName,Object(s["cc"])(this.listQuery).then((function(t){e.listLoading=!1;var i=t.Result.CurrentPageData;i.forEach((function(e){0===e.DataFrom&&(e.hasChildren=!0)})),e.list=i})).catch((function(){e.listLoading=!1}))},handleReset:function(){this.listQuery=u(),this.initPage()},handleSearch:function(){this.listQuery.PageIndex=1,this.initPage()},handleAdd:function(e){this.timer=(new Date).getTime(),this.title=this.$t("trials:stats:dialogTitle:add"),this.Id="",this.row=Object(o["a"])({},e),this.yearMonth=e.YearMonthStr,this.dialogVisible=!0},handleUpdate:function(e){if(this.row={},this.timer=(new Date).getTime(),this.title=this.$t("trials:stats:dialogTitle:edit"),this.Id=e.Id,this.dialogVisible=!0,this.row=Object(o["a"])({},e),2===e.DataFrom){var t=this.list.find((function(t){return 1===t.DataFrom&&t.WorkTimeStr===e.WorkTimeStr}));this.row.clientData=t}},handleDelete:function(e){var t=this,i="";i=0===e.DataFrom?this.$t("trials:stats:message:del"):this.$t("trials:stats:message:reset"),this.$confirm(i,{type:"warning",distinguishCancelAndClose:!0}).then((function(){Object(s["Eb"])(e.Id,t.trialId).then((function(e){e.IsSuccess&&(t.initPage(),t.$message.success(t.$t("common:message:deletedSuccessfully")))}))}))},handleClose:function(){this.dialogVisible=!1,this.initPage()},load:function(e,t,i,n){var a=this,r=e.YearMonthStr;this.maps.set(r,{tree:e,treeNode:t,resolve:i});var l={TrialId:this.trialId,DoctorId:this.$route.query.doctorId,YearMonthStr:e.WorkTimeStr};Object(s["gd"])(l).then((function(e){if(e.IsSuccess&&e.Result){var t=e.Result,n=e.Result.map((function(e){return Object(o["a"])(Object(o["a"])({},e),{},{hasChildren:e.level<=2})}));i(n),t.length>0&&(a.reFlashTbl(t),a.$message.success(a.$t("common:message:savedSuccessfully")))}}))},reFlashTbl:function(e){for(var t=0;t<this.list.length;t++)if(this.list[t].YearMonthStr===e[0].YearMonthStr&&0===this.list[t].DataFrom){for(var i=0,n=0,a=0,r=0,o=0,s=0,l=0,c=0,u=0,d=0;d<e.length;d++)i=e[d].Training+i,n=e[d].Timepoint+n,a=e[d].TimepointIn24H+a,r=e[d].TimepointIn48H+r,o=e[d].Adjudication+o,s=e[d].AdjudicationIn24H+s,l=e[d].AdjudicationIn48H+l,c=e[d].Global+c,u=e[d].Downtime+u;this.list[t].Training=i,this.list[t].Timepoint=n,this.list[t].TimepointIn24H=a,this.list[t].TimepointIn48H=r,this.list[t].Adjudication=o,this.list[t].AdjudicationIn24H=s,this.list[t].AdjudicationIn48H=l,this.list[t].Global=c,this.list[t].Downtime=u;break}},getExpeditedState:function(){var e=this,t=this.$route.query.trialId;Object(s["Ld"])(t).then((function(t){e.expeditedState=t.Result}))},ShowMonthSelect:function(e){return Math.min.apply(Math,Object(r["a"])(this.listQuery.WorkLoadFromStatus))===e},cellColor:function(e){var t=e.row;e.column,e.rowIndex,e.columnIndex;return 1===t.DataFrom?{color:"#0099cc"}:2===t.DataFrom?{color:"#f56c6c"}:void 0},setTitle:function(e){this.title=this.$t("trials:stats:dialogTitle:edit")}}},f=d,h=(i("d9f2"),i("2877")),p=Object(h["a"])(f,n,a,!1,null,"6aecdb4c",null);t["default"]=p.exports},"2ae9":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",[i("div",{staticClass:"search"},[i("el-form",{staticClass:"base-search-form",attrs:{inline:!0,size:"mini"}},[i("el-form-item",{attrs:{label:"问题名称:"}},[i("el-input",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.QuestionName,callback:function(t){e.$set(e.searchData,"QuestionName",t)},expression:"searchData.QuestionName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"类型:"}},[i("el-input",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.Type,callback:function(t){e.$set(e.searchData,"Type",t)},expression:"searchData.Type"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"阅片标准:"}},[i("el-select",{model:{value:e.searchData.CriterionTypeEnum,callback:function(t){e.$set(e.searchData,"CriterionTypeEnum",t)},expression:"searchData.CriterionTypeEnum"}},e._l(e.$d.CriterionType,(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"是否通用:"}},[i("el-select",{model:{value:e.searchData.IsGeneral,callback:function(t){e.$set(e.searchData,"IsGeneral",t)},expression:"searchData.IsGeneral"}},e._l(e.$d.YesOrNo,(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:e.handleReset}},[e._v("重置")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.handleSearch}},[e._v("查询")])],1)],1),e._v(" "),i("span",{staticStyle:{"margin-left":"auto"}},[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.handleAdd}},[e._v("新增")])],1)],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:50},expression:"{bottomOffset:50}"}],attrs:{data:e.list,stripe:"",size:"small",height:"100"}},[i("el-table-column",{attrs:{prop:"ShowOrder",label:"序号",width:"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"QuestionName",label:"问题名称","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Type",label:"类型","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("QcType",t.row.Type))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TypeValue",label:"选项","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ReadingCategory",label:"任务类型","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.ReadingCategory?i("el-tag",{attrs:{type:"primary"}},[e._v("\n "+e._s(e.$fd("ReadingCategory",t.row.ReadingCategory))+"\n ")]):e._e(),e._v(" "),2===t.row.ReadingCategory?i("el-tag",{attrs:{type:"info"}},[e._v("\n "+e._s(e.$fd("ReadingCategory",t.row.ReadingCategory))+"\n ")]):e._e(),e._v(" "),4===t.row.ReadingCategory?i("el-tag",{attrs:{type:"danger"}},[e._v("\n "+e._s(e.$fd("ReadingCategory",t.row.ReadingCategory))+"\n ")]):e._e(),e._v(" "),5===t.row.ReadingCategory?i("el-tag",{attrs:{type:"warning"}},[e._v("\n "+e._s(e.$fd("ReadingCategory",t.row.ReadingCategory))+"\n ")]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ReadingCategory",label:"阅片标准",width:"240","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",[e._v("\n "+e._s(e.$fd("CriterionType",t.row.CriterionTypeEnum))+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsGeneral",label:"是否通用",width:"80","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",[e._v("\n "+e._s(e.$fd("YesOrNo",t.row.IsGeneral))+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ParentShowOrder",label:"父问题","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ParentTriggerValue",label:"父问题触发值","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsRequired",label:"是否必填"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("YesOrNo",t.row.IsRequired))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsEnable",label:"启用状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("IsEnable",t.row.IsEnable))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"Action",width:"200",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("\n 编辑\n ")]),e._v(" "),i("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("\n 删除\n ")])]}}])})],1),e._v(" "),i("Pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}}),e._v(" "),i("MedicalAuditForm",{ref:"medicalAuditForm",on:{getList:e.getList}})],1)},a=[],r=i("e56e"),o=i("f36a"),s=i("333d"),l=i("8839"),c=function(){return{PageIndex:1,PageSize:20,QuestionName:"",Type:"",CriterionTypeEnum:null,IsGeneral:null}},u={name:"MedicalAudit",components:{BoxContent:o["default"],MedicalAuditForm:l["default"],Pagination:s["default"]},data:function(){return{searchData:c(),list:[],loading:!1,rowData:{},model_cfg:{visible:!1,showClose:!0,width:"600px",title:""},total:0}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0,Object(r["sb"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},handleAdd:function(){var e=this;this.$nextTick((function(){e.$refs["medicalAuditForm"].openDialog("新增",{})}))},handleEdit:function(e){var t=this;this.$nextTick((function(){t.$refs["medicalAuditForm"].openDialog("编辑",e)}))},handleDelete:function(e){var t=this;this.$confirm("是否确认删除?",{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.loading=!0,Object(r["J"])(e.Id).then((function(e){t.loading=!1,e.IsSuccess&&(t.getList(),t.$message.success("删除成功!"))})).catch((function(){t.loading=!1}))}))},handleSearch:function(){this.getList()},handleReset:function(){this.searchData=c(),this.getList()}}},d=u,f=i("2877"),h=Object(f["a"])(d,n,a,!1,null,null,null);t["default"]=h.exports},"2b17":function(e,t,i){var n=i("4e08"),a=(n.__DEV__,i("6d8b")),r=(a.isTypedArray,a.extend),o=(a.assert,a.each),s=a.isObject,l=i("e0d3"),c=l.getDataItemValue,u=l.isDataItemOption,d=i("3842"),f=d.parseDate,h=i("ec6f"),p=i("93d0"),m=p.SOURCE_FORMAT_TYPED_ARRAY,g=p.SOURCE_FORMAT_ARRAY_ROWS,v=p.SOURCE_FORMAT_ORIGINAL,b=p.SOURCE_FORMAT_OBJECT_ROWS;function y(e,t){h.isInstance(e)||(e=h.seriesDataToSource(e)),this._source=e;var i=this._data=e.data,n=e.sourceFormat;n===m&&(this._offset=0,this._dimSize=t,this._data=i);var a=_[n===g?n+"_"+e.seriesLayoutBy:n];r(this,a)}var w=y.prototype;w.pure=!1,w.persistent=!0,w.getSource=function(){return this._source};var _={arrayRows_column:{pure:!0,count:function(){return Math.max(0,this._data.length-this._source.startIndex)},getItem:function(e){return this._data[e+this._source.startIndex]},appendData:S},arrayRows_row:{pure:!0,count:function(){var e=this._data[0];return e?Math.max(0,e.length-this._source.startIndex):0},getItem:function(e){e+=this._source.startIndex;for(var t=[],i=this._data,n=0;n<i.length;n++){var a=i[n];t.push(a?a[e]:null)}return t},appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},objectRows:{pure:!0,count:I,getItem:x,appendData:S},keyedColumns:{pure:!0,count:function(){var e=this._source.dimensionsDefine[0].name,t=this._data[e];return t?t.length:0},getItem:function(e){for(var t=[],i=this._source.dimensionsDefine,n=0;n<i.length;n++){var a=this._data[i[n].name];t.push(a?a[e]:null)}return t},appendData:function(e){var t=this._data;o(e,(function(e,i){for(var n=t[i]||(t[i]=[]),a=0;a<(e||[]).length;a++)n.push(e[a])}))}},original:{count:I,getItem:x,appendData:S},typedArray:{persistent:!1,pure:!0,count:function(){return this._data?this._data.length/this._dimSize:0},getItem:function(e,t){e-=this._offset,t=t||[];for(var i=this._dimSize*e,n=0;n<this._dimSize;n++)t[n]=this._data[i+n];return t},appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}}};function I(){return this._data.length}function x(e){return this._data[e]}function S(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}var T={arrayRows:C,objectRows:function(e,t,i,n){return null!=i?e[n]:e},keyedColumns:C,original:function(e,t,i,n){var a=c(e);return null!=i&&a instanceof Array?a[i]:a},typedArray:C};function C(e,t,i,n){return null!=i?e[i]:e}var k={arrayRows:R,objectRows:function(e,t,i,n){return D(e[t],this._dimensionInfos[t])},keyedColumns:R,original:function(e,t,i,n){var a=e&&(null==e.value?e:e.value);return!this._rawData.pure&&u(e)&&(this.hasItemOption=!0),D(a instanceof Array?a[n]:a,this._dimensionInfos[t])},typedArray:function(e,t,i,n){return e[n]}};function R(e,t,i,n){return D(e[n],this._dimensionInfos[t])}function D(e,t){var i=t&&t.type;if("ordinal"===i){var n=t&&t.ordinalMeta;return n?n.parseAndCollect(e):e}return"time"===i&&"number"!==typeof e&&null!=e&&"-"!==e&&(e=+f(e)),null==e||""===e?NaN:+e}function L(e,t,i){if(e){var n=e.getRawDataItem(t);if(null!=n){var a,r,o=e.getProvider().getSource().sourceFormat,s=e.getDimensionInfo(i);return s&&(a=s.name,r=s.index),T[o](n,t,r,a)}}}function O(e,t,i){if(e){var n=e.getProvider().getSource().sourceFormat;if(n===v||n===b){var a=e.getRawDataItem(t);return n!==v||s(a)||(a=null),a?a[i]:void 0}}}t.DefaultDataProvider=y,t.defaultDimValueGetters=k,t.retrieveRawValue=L,t.retrieveRawAttr=O},"2b3e":function(e,t,i){var n=i("585a"),a="object"==typeof self&&self&&self.Object===Object&&self,r=n||a||Function("return this")();e.exports=r},"2b40":function(e,t,i){},"2b4d":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"questionForm",attrs:{model:e.form,"label-width":"120px",size:"small",rules:e.rules}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:e.$t("trials:qcCfg:table:questionName"),prop:"QuestionName"}},[i("el-input",{model:{value:e.form.QuestionName,callback:function(t){e.$set(e.form,"QuestionName",t)},expression:"form.QuestionName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:qcCfg:table:type")}},[i("el-select",{on:{change:function(t){e.typeChange(t,e.form)}},model:{value:e.form.Type,callback:function(t){e.$set(e.form,"Type",t)},expression:"form.Type"}},e._l(e.$d.QcType,(function(e){return i("el-option",{key:e.value,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),"select"===e.form.Type||"radio"===e.form.Type?i("el-form-item",{attrs:{label:e.$t("trials:qcCfg:table:typeValue"),prop:"TypeValue"}},[i("el-input",{attrs:{placeholder:e.$t("trials:qcCfg:message:typeValue"),type:"textarea",autosize:{minRows:2,maxRows:4}},model:{value:e.form.TypeValue,callback:function(t){e.$set(e.form,"TypeValue",t)},expression:"form.TypeValue"}})],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:qcCfg:table:parentQs")}},[i("el-select",{attrs:{clearable:""},on:{change:function(t){e.parentQuestionChange(t,e.form)}},model:{value:e.form.ParentId,callback:function(t){e.$set(e.form,"ParentId",t)},expression:"form.ParentId"}},e._l(e.parentOptions,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.QuestionName,value:e.Id}})})),1)],1),e._v(" "),e.form.ParentId?i("el-form-item",{attrs:{label:e.$t("trials:qcCfg:table:parentTriggerValue"),prop:"ParentTriggerValue"}},[i("el-select",{model:{value:e.form.ParentTriggerValue,callback:function(t){e.$set(e.form,"ParentTriggerValue",t)},expression:"form.ParentTriggerValue"}},e._l(e.parentTriggerValOptions,(function(e){return i("el-option",{key:e,attrs:{label:e,value:e}})})),1)],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:qcCfg:table:order"),prop:"ShowOrder"}},[i("el-input-number",{attrs:{"controls-position":"right",min:0},model:{value:e.form.ShowOrder,callback:function(t){e.$set(e.form,"ShowOrder",t)},expression:"form.ShowOrder"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:qcCfg:table:isRequired")}},[i("el-radio-group",{model:{value:e.form.IsRequired,callback:function(t){e.$set(e.form,"IsRequired",t)},expression:"form.IsRequired"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"IsRequired"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:qcCfg:table:isEnable")}},[i("el-radio-group",{model:{value:e.form.IsEnable,callback:function(t){e.$set(e.form,"IsEnable",t)},expression:"form.IsEnable"}},e._l(e.$d.IsEnable,(function(t){return i("el-radio",{key:t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleClose}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])},a=[],r=(i("456d"),i("20d6"),i("96cf"),i("3b8d")),o=(i("ac6a"),i("5df3"),i("4f7f"),i("28a5"),i("3e42")),s={name:"MedicalAuditQSFrom",props:{data:{type:Object,default:function(){return{}}}},data:function(){var e=this,t=function(t,i,n){if(""===i)n(new Error(e.$t("common:ruleMessage:specify")));else{var a=i.split("|");new Set(a).size!==a.length?n(new Error(e.$t("trials:qcCfg:message:msg1"))):n()}};return{form:{Id:"",QuestionName:"",IsRequired:!0,IsEnable:!0,Type:"select",TypeValue:"",ShowOrder:0,ParentId:"",ParentTriggerValue:""},rules:{QuestionName:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"},{max:50,message:"".concat(this.$t("common:ruleMessage:maxLength")," 50")}],TypeValue:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"},{validator:t,trigger:"blur"},{max:200,message:"".concat(this.$t("common:ruleMessage:maxLength")," 200")}],ParentTriggerValue:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}]},trialId:"",loading:!1,parentOptions:[],parentTriggerValOptions:[]}},mounted:function(){this.trialId=this.$route.query.trialId,this.initForm()},methods:{initForm:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,i,n=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.loading=!0,e.next=3,this.getParentQsOpntions();case 3:if(this.data.ParentId&&(t=this.parentOptions.findIndex((function(e){return e.Id===n.data.ParentId})),-1!==t&&(this.parentTriggerValOptions=this.parentOptions[t].TypeValue.split("|"))),Object.keys(this.data).length>0)for(i in this.form)this.data.hasOwnProperty(i)&&(this.form[i]=this.data[i]);this.loading=!1;case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),handleSave:function(){var e=this;this.$refs.questionForm.validate((function(t){t&&(e.loading=!0,e.form.TrialId=e.trialId,Object(o["E"])(e.form).then((function(t){e.loading=!1,t.IsSuccess&&(e.$emit("close"),e.$emit("getList"),e.$message.success(e.$t("common:message:savedSuccessfully")))})).catch((function(){e.loading=!1})))}))},getParentQsOpntions:function(){var e=this;return new Promise((function(t,i){var n={trialId:e.trialId,id:e.data.Id?e.data.Id:"",typeArray:["select","radio"]};Object(o["Td"])(n).then((function(i){e.parentOptions=i.Result,t()})).catch((function(){i()}))}))},typeChange:function(e,t){"select"!==e&&"radio"!==e&&(t.TypeValue="")},parentQuestionChange:function(e,t){if(e){var i=this.parentOptions.findIndex((function(t){return t.Id===e}));-1!==i&&(this.parentTriggerValOptions=this.parentOptions[i].TypeValue.split("|"))}t.ParentTriggerValue=""},handleClose:function(){this.$emit("close")}}},l=s,c=i("2877"),u=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},"2b5b":function(e,t,i){"use strict";i("e330")},"2b61":function(e,t,i){var n=i("7d6d"),a=i("82eb"),r=a.ContextCachedBy,o=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],s=function(e){this.extendFrom(e,!1)};function l(e,t,i){var n=null==t.x?0:t.x,a=null==t.x2?1:t.x2,r=null==t.y?0:t.y,o=null==t.y2?0:t.y2;t.global||(n=n*i.width+i.x,a=a*i.width+i.x,r=r*i.height+i.y,o=o*i.height+i.y),n=isNaN(n)?0:n,a=isNaN(a)?1:a,r=isNaN(r)?0:r,o=isNaN(o)?0:o;var s=e.createLinearGradient(n,r,a,o);return s}function c(e,t,i){var n=i.width,a=i.height,r=Math.min(n,a),o=null==t.x?.5:t.x,s=null==t.y?.5:t.y,l=null==t.r?.5:t.r;t.global||(o=o*n+i.x,s=s*a+i.y,l*=r);var c=e.createRadialGradient(o,s,0,o,s,l);return c}s.prototype={constructor:s,fill:"#000",stroke:null,opacity:1,fillOpacity:null,strokeOpacity:null,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,font:null,textFont:null,fontStyle:null,fontWeight:null,fontSize:null,fontFamily:null,textTag:null,textFill:"#000",textStroke:null,textWidth:null,textHeight:null,textStrokeWidth:0,textLineHeight:null,textPosition:"inside",textRect:null,textOffset:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowColor:"transparent",textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textBoxShadowColor:"transparent",textBoxShadowBlur:0,textBoxShadowOffsetX:0,textBoxShadowOffsetY:0,transformText:!1,textRotation:0,textOrigin:null,textBackgroundColor:null,textBorderColor:null,textBorderWidth:0,textBorderRadius:0,textPadding:null,rich:null,truncate:null,blend:null,bind:function(e,t,i){var a=this,s=i&&i.style,l=!s||e.__attrCachedBy!==r.STYLE_BIND;e.__attrCachedBy=r.STYLE_BIND;for(var c=0;c<o.length;c++){var u=o[c],d=u[0];(l||a[d]!==s[d])&&(e[d]=n(e,d,a[d]||u[1]))}if((l||a.fill!==s.fill)&&(e.fillStyle=a.fill),(l||a.stroke!==s.stroke)&&(e.strokeStyle=a.stroke),(l||a.opacity!==s.opacity)&&(e.globalAlpha=null==a.opacity?1:a.opacity),(l||a.blend!==s.blend)&&(e.globalCompositeOperation=a.blend||"source-over"),this.hasStroke()){var f=a.lineWidth;e.lineWidth=f/(this.strokeNoScale&&t&&t.getLineScale?t.getLineScale():1)}},hasFill:function(){var e=this.fill;return null!=e&&"none"!==e},hasStroke:function(){var e=this.stroke;return null!=e&&"none"!==e&&this.lineWidth>0},extendFrom:function(e,t){if(e)for(var i in e)!e.hasOwnProperty(i)||!0!==t&&(!1===t?this.hasOwnProperty(i):null==e[i])||(this[i]=e[i])},set:function(e,t){"string"===typeof e?this[e]=t:this.extendFrom(e,!0)},clone:function(){var e=new this.constructor;return e.extendFrom(this,!0),e},getGradient:function(e,t,i){for(var n="radial"===t.type?c:l,a=n(e,t,i),r=t.colorStops,o=0;o<r.length;o++)a.addColorStop(r[o].offset,r[o].color);return a}};for(var u=s.prototype,d=0;d<o.length;d++){var f=o[d];f[0]in u||(u[f[0]]=f[1])}s.getGradient=u.getGradient;var h=s;e.exports=h},"2b6c":function(e,t,i){},"2b8c":function(e,t,i){var n=i("6d8b"),a=i("5f14"),r=n.each;function o(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!0}function s(e,t,i){var o={};return r(t,(function(t){var l=o[t]=s();r(e[t],(function(e,r){if(a.isValidType(r)){var o={type:r,visual:e};i&&i(o,t),l[r]=new a(o),"opacity"===r&&(o=n.clone(o),o.type="colorAlpha",l.__hidden.__alphaForOpacity=new a(o))}}))})),o;function s(){var e=function(){};e.prototype.__hidden=e.prototype;var t=new e;return t}}function l(e,t,i){var a;n.each(i,(function(e){t.hasOwnProperty(e)&&o(t[e])&&(a=!0)})),a&&n.each(i,(function(i){t.hasOwnProperty(i)&&o(t[i])?e[i]=n.clone(t[i]):delete e[i]}))}function c(e,t,i,r,o,s){var l,c={};function u(e){return i.getItemVisual(l,e)}function d(e,t){i.setItemVisual(l,e,t)}function f(e,n){l=null==s?e:n;var a=i.getRawDataItem(l);if(!a||!1!==a.visualMap)for(var f=r.call(o,e),h=t[f],p=c[f],m=0,g=p.length;m<g;m++){var v=p[m];h[v]&&h[v].applyVisual(e,u,d)}}n.each(e,(function(e){var i=a.prepareVisualTypes(t[e]);c[e]=i})),null==s?i.each(f):i.each([s],f)}function u(e,t,i,r){var o={};function s(e,n){function a(e){return n.getItemVisual(l,e)}function s(e,t){n.setItemVisual(l,e,t)}var l;null!=r&&(r=n.getDimension(r));while(null!=(l=e.next())){var c=n.getRawDataItem(l);if(!c||!1!==c.visualMap)for(var u=null!=r?n.get(r,l,!0):l,d=i(u),f=t[d],h=o[d],p=0,m=h.length;p<m;p++){var g=h[p];f[g]&&f[g].applyVisual(u,a,s)}}}return n.each(e,(function(e){var i=a.prepareVisualTypes(t[e]);o[e]=i})),{progress:s}}t.createVisualMappings=s,t.replaceVisualOption=l,t.applyVisual=c,t.incrementalApplyVisual=u},"2ba1":function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-wechat",use:"icon-wechat-usage",viewBox:"0 0 128 110",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 110" id="icon-wechat"><path d="M86.635 33.334c1.467 0 2.917.113 4.358.283C87.078 14.392 67.58.111 45.321.111 20.44.111.055 17.987.055 40.687c0 13.104 6.781 23.863 18.115 32.209l-4.527 14.352 15.82-8.364c5.666 1.182 10.207 2.395 15.858 2.395 1.42 0 2.829-.073 4.227-.189-.886-3.19-1.398-6.53-1.398-9.996 0-20.845 16.98-37.76 38.485-37.76zm-24.34-12.936c3.407 0 5.665 2.363 5.665 5.954 0 3.576-2.258 5.97-5.666 5.97-3.392 0-6.795-2.395-6.795-5.97 0-3.591 3.403-5.954 6.795-5.954zM30.616 32.323c-3.393 0-6.818-2.395-6.818-5.971 0-3.591 3.425-5.954 6.818-5.954 3.392 0 5.65 2.363 5.65 5.954 0 3.576-2.258 5.97-5.65 5.97z" /><path d="M127.945 70.52c0-19.075-18.108-34.623-38.448-34.623-21.537 0-38.5 15.548-38.5 34.623 0 19.108 16.963 34.622 38.5 34.622 4.508 0 9.058-1.2 13.584-2.395l12.414 7.167-3.404-11.923c9.087-7.184 15.854-16.712 15.854-27.471zm-50.928-5.97c-2.254 0-4.53-2.362-4.53-4.773 0-2.378 2.276-4.771 4.53-4.771 3.422 0 5.665 2.393 5.665 4.771 0 2.41-2.243 4.773-5.665 4.773zm24.897 0c-2.24 0-4.498-2.362-4.498-4.773 0-2.378 2.258-4.771 4.498-4.771 3.392 0 5.665 2.393 5.665 4.771 0 2.41-2.273 4.773-5.665 4.773z" /></symbol>'});o.a.add(s);t["default"]=s},"2bb4":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"trialAttachmentFrom",staticClass:"upload-temporary-file",attrs:{model:e.form,"label-width":"170px",size:"small",rules:e.rules}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:e.$t("trials:attachment:table:fileType"),prop:"FileTypeId"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{size:"small"},model:{value:e.form.FileTypeId,callback:function(t){e.$set(e.form,"FileTypeId",t)},expression:"form.FileTypeId"}},e._l(e.dictionaryList.Trial_Document,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.Value,value:e.Id}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:attachment:form:file")}},[i("div",{staticClass:"upload-container"},[i("el-upload",{staticClass:"upload-demo",attrs:{action:"",accept:".pdf","before-upload":e.beforeUpload,"http-request":e.handleUploadFile,"on-remove":e.handleRemoveFile,"show-file-list":!0,"file-list":e.fileList,limit:1,"on-exceed":e.handleExceed,disabled:""===e.form.FileTypeId}},[i("el-button",{attrs:{size:"small",type:"primary",disabled:""===e.form.FileTypeId||e.saveBtnLoading,loading:e.btnLoading}},[e._v("\n "+e._s(e.$t("trials:attachment:button:select"))+"\n ")]),e._v(" "),i("span",{staticClass:"el-upload__tip",staticStyle:{"margin-left":"10px"},attrs:{slot:"tip"},slot:"tip"},[e._v("\n ("+e._s(e.$t("trials:attachment:message:pdf"))+")\n ")])],1)],1)]),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:attachment:table:userType"),prop:"NeedConfirmedUserTypeIdList"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{multiple:""},model:{value:e.form.NeedConfirmedUserTypeIdList,callback:function(t){e.$set(e.form,"NeedConfirmedUserTypeIdList",t)},expression:"form.NeedConfirmedUserTypeIdList"}},e._l(e.userTypeOptions,(function(t){return 1!==t.UserTypeEnum&&20!==t.UserTypeEnum?i("el-option",{key:t.Id,attrs:{label:t.UserTypeShortName,value:t.Id}},[i("span",[e._v(e._s(t.UserType))])]):e._e()})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:attachment:table:min"),prop:"SignViewMinimumMinutes"}},[i("el-input-number",{attrs:{"controls-position":"right",min:1,max:50},model:{value:e.form.SignViewMinimumMinutes,callback:function(t){e.$set(e.form,"SignViewMinimumMinutes",t)},expression:"form.SignViewMinimumMinutes"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:attachment:table:description"),prop:"Description"}},[i("el-input",{attrs:{type:"textarea",autosize:{minRows:5,maxRows:6},maxlength:"500","show-word-limit":""},model:{value:e.form.Description,callback:function(t){e.$set(e.form,"Description",t)},expression:"form.Description"}})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{size:"small",type:"primary",disabled:""===e.form.FileTypeId||""===e.form.Name,loading:e.saveBtnLoading},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])},a=[],r=(i("7f7f"),i("20d6"),i("db72")),o=(i("ac6a"),i("456d"),i("96cf"),i("3b8d")),s=i("3e42"),l=i("86a6"),c={name:"TrialAttachmentFrom",props:{data:{type:Object,default:function(){return{}}}},data:function(){return{form:{Id:"",TrialId:"",FileTypeId:"",Name:"",Path:"",IsDeleted:!1,SignViewMinimumMinutes:null,Description:"",NeedConfirmedUserTypeIdList:[]},rules:{FileTypeId:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}],SignViewMinimumMinutes:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:["change"]}],NeedConfirmedUserTypeIdList:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}],Description:[{max:500,message:"".concat(this.$t("common:ruleMessage:maxLength")," 500"),trigger:["blur","change"]}]},fileList:[],userTypeOptions:[],btnLoading:!1,saveBtnLoading:!1,loading:!1,dictionaryList:{}}},mounted:function(){this.initForm()},methods:{handleSave:function(){var e=this;this.$refs.trialAttachmentFrom.validate((function(t){t&&(e.form.Name?(""===e.form.TrialId&&(e.form.TrialId=e.$route.query.trialId),e.saveBtnLoading=!0,Object(s["B"])(e.form).then((function(t){e.saveBtnLoading=!1,e.$emit("closeDialog"),e.$emit("getList"),e.form.Id?e.$message.success(e.$t("common:message:savedSuccessfully")):e.$message.success(e.$t("common:message:addedSuccessfully"))})).catch((function(){e.saveBtnLoading=!1}))):e.$message.error(e.$t("trials:attachment:message:selectFile")))}))},initForm:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.loading=!0,e.next=3,this.getDicData();case 3:return e.next=5,this.getUserType();case 5:Object.keys(this.data).length>0&&(this.data.Path&&(this.fileList=[{name:this.data.Name,path:this.data.Path}]),this.form.Id=this.data.Id,this.form.FileTypeId=this.data.FileTypeId,this.form.Name=this.data.Name,this.form.Path=this.data.Path,this.form.IsDeleted=this.data.IsDeleted,this.form.Description=this.data.Description,this.form.SignViewMinimumMinutes=this.data.SignViewMinimumMinutes),this.loading=!1;case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getDicData:function(){var e=this;Object(l["c"])(["Trial_Document"]).then((function(t){e.dictionaryList=Object(r["a"])({},t.Result)}))},getUserType:function(){var e=this;Object(s["de"])().then((function(t){e.userTypeOptions=t.Result,e.form.Id&&(e.form.NeedConfirmedUserTypeIdList=e.data.NeedConfirmedUserTypeeIds)})).catch((function(){e.loading=!1}))},handleViewableUserTypeChange:function(e){var t=this;this.form.NeedConfirmedUserTypeIdList=[],this.needConfirmedUserTypeOptions=[],e.forEach((function(e){var i=t.userTypeOptions.findIndex((function(t){return t.Id===e}));t.needConfirmedUserTypeOptions.push(t.userTypeOptions[i])}))},beforeUpload:function(e){return this.checkFileSuffix(e.name)?(this.fileList=[],!0):(this.$message.error(this.$t("trials:attachment:message:pdf")),!1)},handleUploadFile:function(e){var t=this;this.btnLoading=!0;var i=this.$route.query.trialId;Object(s["Cf"])(i,e.file).then((function(i){if(t.btnLoading=!1,i.IsSuccess){t.form.Path=i.Result.FilePath,t.form.Name=e.file.name;var n={name:t.form.Name,path:t.form.Path};t.fileList.push(n)}})).catch((function(){t.btnLoading=!1}))},handleRemoveFile:function(){this.fileList=[],this.form.Path="",this.form.Name=""},handleExceed:function(e,t){this.$message.warning(this.$t("trials:attachment:message:uploadFile"))},checkFileSuffix:function(e){var t=["pdf"],i=e.substring(e.lastIndexOf(".")+1).toLocaleLowerCase();return-1!==t.indexOf(i)}}},u=c,d=(i("59fb"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},"2bc3":function(e,t,i){},"2c17":function(e,t,i){var n=i("3eba"),a=i("6d8b"),r=a.createHashMap,o=a.each;n.registerProcessor({getTargetSeries:function(e){var t=r();return e.eachComponent("dataZoom",(function(e){e.eachTargetAxis((function(e,i,n){var a=n.getAxisProxy(e.name,i);o(a.getTargetSeriesModels(),(function(e){t.set(e.uid,e)}))}))})),t},modifyOutputEnd:!0,overallReset:function(e,t){e.eachComponent("dataZoom",(function(e){e.eachTargetAxis((function(e,i,n){n.getAxisProxy(e.name,i).reset(n,t)})),e.eachTargetAxis((function(e,i,n){n.getAxisProxy(e.name,i).filterData(n,t)}))})),e.eachComponent("dataZoom",(function(e){var t=e.findRepresentativeAxisProxy(),i=t.getDataPercentWindow(),n=t.getDataValueWindow();e.setCalculatedRange({start:i[0],end:i[1],startValue:n[0],endValue:n[1]})}))}})},"2c29":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"status-info"},[i("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0,model:e.basicInfo,size:"small"}},[i("el-row",[i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"Pending:"}},[e.statusList.Submitted?i("span",{staticStyle:{color:"#00d1b2"}},[i("router-link",{attrs:{to:{path:"/trialStats?name="+e.basicInfo.FirstName+" "+e.basicInfo.LastName+"&doctorId="+e.basicInfo.Id+"&status=5&TokenKey="+e.tokenKey},target:"_blank",title:"Pending client approval"}},[e._v(e._s(e.statusList.Submitted))])],1):i("span",[e._v(e._s(e.statusList.Submitted))])])],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"Approved:"}},[e.statusList.Approved?i("span",{staticStyle:{color:"#00d1b2"}},[i("router-link",{attrs:{to:{path:"/trialStats?name="+e.basicInfo.FirstName+" "+e.basicInfo.LastName+"&doctorId="+e.basicInfo.Id+"&status=8&TokenKey="+e.tokenKey},target:"_blank",title:"Approved, waiting for training"}},[e._v(e._s(e.statusList.Approved))])],1):i("span",[e._v(e._s(e.statusList.Approved))])])],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"Reading:"}},[e.statusList.Reading?i("span",{staticStyle:{color:"#00d1b2"}},[i("router-link",{attrs:{to:{path:"/trialStats?name="+e.basicInfo.FirstName+" "+e.basicInfo.LastName+"&doctorId="+e.basicInfo.Id+"&status=10&TokenKey="+e.tokenKey},target:"_blank"}},[e._v(e._s(e.statusList.Reading))])],1):i("span",[e._v(e._s(e.statusList.Reading))])])],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"On Vacation:"}},[i("span",{staticStyle:{"font-size":"12px","margin-right":"20px"}},[e._v(e._s(e.holiday))]),e._v(" "),i("el-button",{attrs:{type:"text",size:"small"},on:{click:e.initHolidayList}},[e._v("Planned Vacation")])],1)],1)],1)],1),e._v(" "),i("el-dialog",{attrs:{title:"Vacation",visible:e.dialogVisible,width:"35%","close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list,size:"small"}},[i("el-table-column",{attrs:{type:"index"}}),e._v(" "),i("el-table-column",{attrs:{property:"StartDate",label:"Beginning Date","min-width":"120",formatter:e.beginTimeFormatter}}),e._v(" "),i("el-table-column",{attrs:{property:"EndDate",label:"End Date","min-width":"120",formatter:e.endTimeFormatter}})],1),e._v(" "),i("div",{staticClass:"pagination"},[i("el-pagination",{attrs:{background:"",layout:"total,sizes,prev, pager, next",total:e.total,"page-sizes":[5,10,20,50],"page-size":e.pageSize,"current-page":e.pageIndex},on:{"update:currentPage":function(t){e.pageIndex=t},"update:current-page":function(t){e.pageIndex=t},"current-change":e.handleCurrentChange,"size-change":e.handleSizeChange}})],1)],1)],1)},a=[],r=i("33ba"),o=i("7878"),s=i("5f87"),l={props:{basicInfo:{type:Object,default:function(){return{}}},statusList:{type:Object,default:function(){return{}}},doctorId:{type:String,default:""},holiday:{type:String,default:""}},data:function(){return{list:[],total:0,dialogVisible:!1,loading:!1,pageIndex:1,pageSize:10,tokenKey:Object(s["a"])()}},methods:{initHolidayList:function(){var e=this;this.dialogVisible=!0,this.loading=!0,Object(r["z"])(this.doctorId,this.pageIndex,this.pageSize).then((function(t){t.IsSuccess&&(e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount),e.loading=!1})).catch((function(){e.loading=!1}))},beginTimeFormatter:function(e){if(e.StartDate)return Object(o["fmtDate"])(e.StartDate)},endTimeFormatter:function(e){if(e.EndDate)return Object(o["fmtDate"])(e.EndDate)},handleCurrentChange:function(e){this.pageIndex=e,this.initHolidayList()},handleSizeChange:function(e){this.pageSize=e,this.initHolidayList()}}},c=l,u=(i("e51b"),i("2877")),d=Object(u["a"])(c,n,a,!1,null,null,null);t["default"]=d.exports},"2c2e":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},[i("el-tab-pane",{attrs:{label:"全部",name:"/dictionary/newDictionary/list"}},["/dictionary/newDictionary/list"==e.activeTab?i("dictList"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"下拉框字典",name:"/dictionary/newDictionary/select"}},["/dictionary/newDictionary/select"==e.activeTab?i("dictSelect"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"枚举字典",name:"/dictionary/newDictionary/enum"}},["/dictionary/newDictionary/enum"==e.activeTab?i("dictEnum"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"布尔字典",name:"/dictionary/newDictionary/bool"}},["/dictionary/newDictionary/bool"==e.activeTab?i("dictBool"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"字典类型配置",name:"/dictionary/newDictionary/config"}},["/dictionary/newDictionary/config"==e.activeTab?i("dictConfig"):e._e()],1)],1)],1)},a=[],r=i("1852"),o=i("e327"),s=i("6c83"),l=i("b034"),c=i("be50"),u={components:{dictList:r["default"],dictSelect:o["default"],dictEnum:s["default"],dictBool:l["default"],dictConfig:c["default"]},data:function(){return{activeTab:"/dictionary/newDictionary/list"}},created:function(){},methods:{handleClick:function(e){}}},d=u,f=(i("d454"),i("2877")),h=Object(f["a"])(d,n,a,!1,null,null,null);t["default"]=h.exports},"2c7e":function(e,t,i){"use strict";i("4df0")},"2c9b":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-container",{staticClass:"participant-container"},[i("el-header",{staticStyle:{height:"50px"}},[i("div",{staticClass:"filter-container"},[i("span",[e._v(e._s(e.$t("trials:externalStaff:table:name"))+":")]),e._v(" "),i("el-input",{staticClass:"mr",attrs:{size:"mini",clearable:""},model:{value:e.listQuery.Name,callback:function(t){e.$set(e.listQuery,"Name",t)},expression:"listQuery.Name"}}),e._v(" "),i("span",[e._v(e._s(e.$t("trials:externalStaff:table:email"))+":")]),e._v(" "),i("el-input",{staticClass:"mr",attrs:{size:"mini",clearable:""},model:{value:e.listQuery.Email,callback:function(t){e.$set(e.listQuery,"Email",t)},expression:"listQuery.Email"}}),e._v(" "),i("span",[e._v(e._s(e.$t("trials:externalStaff:table:phone"))+":")]),e._v(" "),i("el-input",{staticClass:"mr",attrs:{size:"mini",clearable:""},model:{value:e.listQuery.Phone,callback:function(t){e.$set(e.listQuery,"Phone",t)},expression:"listQuery.Phone"}}),e._v(" "),i("el-button",{attrs:{type:"primary",size:"mini",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"mini",type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")]),e._v(" "),i("el-button",{staticStyle:{"margin-left":"auto"},attrs:{type:"primary",size:"mini",disabled:0===e.selectArr.length,loading:e.assignLoadStatus,icon:"el-icon-message"},on:{click:e.sendEmail}},[e._v("\n "+e._s(e.$t("trials:staff:button:sendEmail"))+"\n ")]),e._v(" "),i("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-plus",size:"mini",loading:e.assignLoadStatus},on:{click:e.handleAdd}},[e._v("\n "+e._s(e.$t("common:button:add"))+"\n ")])],1)]),e._v(" "),i("el-main",[i("div",{staticClass:"data-table"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"participant-table-list",attrs:{data:e.list,stripe:"",height:"400px"},on:{"selection-change":e.handleSelectChange,"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"selection",width:"50",selectable:e.handleSelectable}}),e._v(" "),i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"UserRealName",label:e.$t("trials:externalStaff:table:name"),"show-overflow-tooltip":"",sortable:"custom","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.LastName+"/"+t.row.FirstName))]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"UserType",label:e.$t("trials:externalStaff:table:userType"),"show-overflow-tooltip":"",sortable:"custom","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.userTypeOptions.length>0?e.userTypeOptions.find((function(e){return e.Id==t.row.UserTypeId})).UserTypeShortName:"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Phone",label:e.$t("trials:externalStaff:table:phone"),"show-overflow-tooltip":"",sortable:"custom","min-width":"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Email",label:e.$t("trials:externalStaff:table:email"),"show-overflow-tooltip":"",sortable:"custom","min-width":"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"OrganizationName",label:e.$t("trials:externalStaff:table:organization"),"show-overflow-tooltip":"",sortable:"custom","min-width":"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"inviteState",label:e.$t("trials:externalStaff:table:status"),fixed:"right","show-overflow-tooltip":"",sortable:"custom","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e.$fd("IsJoin",t.row.IsJoin)))]}}])}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action"),fixed:"right","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{circle:"",icon:"el-icon-delete",title:e.$t("trials:externalStaff:button:delete")},on:{click:function(i){return e.deleteTrialExternalUser(t.row)}}})]}}])})],1)],1)]),e._v(" "),i("StaffExternalAdd",{ref:"StaffExternalAdd",attrs:{"user-type-options":e.userTypeOptions},on:{getList:e.refeshList}})],1)},a=[],r=i("3e42"),o=i("0662"),s=i("de99"),l=function(){return{Phone:"",Email:"",Name:""}},c={components:{StaffExternalAdd:s["default"]},data:function(){return{list:[],loading:!1,listQuery:l(),selectArr:[],assignLoadStatus:!1,isAdmin:JSON.parse(zzSessionStorage.getItem("IsAdmin")),userTypeOptions:[],stateList:["WaitSent","HasSend","UserConfirmed","UserReject","OverTime"],trialId:""}},mounted:function(){this.trialId=this.$route.query.trialId,this.getUserType(),this.getList()},methods:{refeshList:function(){this.getList(),this.$emit("getList")},isSendEmail:function(e){console.log(e)},handleEdit:function(e){var t=this;this.$nextTick((function(){t.$refs["StaffExternalAdd"].openDialog(t.$t("trials:externalStaff:dialogTitle:edit"),e)}))},handleAdd:function(){var e=this;this.$nextTick((function(){e.$refs["StaffExternalAdd"].openDialog(e.$t("trials:externalStaff:dialogTitle:add"),{})}))},deleteTrialExternalUser:function(e){var t=this;this.$confirm(this.$t("trials:externalStaff:message:delete"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.loading=!0,Object(o["d"])(e.Id,e.IsSystemUser,e.SystemUserId).then((function(e){t.$message.success(t.$t("common:message:deletedSuccessfully")),t.getList(),t.loading=!1})).catch((function(){t.loading=!1}))}))},sendEmail:function(){var e=this,t=this.$loading({target:document.querySelector(".participant-table-list"),fullscreen:!1,lock:!0}),i="".concat(location.protocol,"//").concat(location.host,"/login"),n="".concat(location.protocol,"//").concat(location.host,"/email-recompose"),a=this.selectArr.map((function(e){return{Id:e.Id,Email:e.Email,IsSystemUser:e.IsSystemUser,SystemUserId:e.SystemUserId}}));Object(r["Ee"])({TrialId:this.trialId,SendUsers:a,BaseUrl:i,RouteUrl:n}).then((function(){t.close(),e.$message.success(e.$t("common:message:savedSuccessfully")),e.getList(),e.$emit("getList")})).catch((function(){t.close()}))},getList:function(){var e=this,t=this.$loading({target:document.querySelector(".participant-table-list"),fullscreen:!1,lock:!0});this.listQuery.TrialId=this.trialId,Object(r["Md"])(this.listQuery).then((function(i){t.close(),e.list=i.Result})).catch((function(){t.close()}))},handleAssign:function(){var e=this;this.$confirm(this.$t("trials:externalStaff:message:add"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){var t=e.$loading({target:document.querySelector(".participant-table-list"),fullscreen:!1,lock:!0});e.assignLoadStatus=!0,Object(r["K"])(e.selectArr).then((function(i){e.assignLoadStatus=!1,t.close(),i.IsSuccess&&(e.$emit("closeDialog"),e.$message.success(e.$t("common:message:savedSuccessfully")))})).catch((function(){t.close(),e.assignLoadStatus=!1}))}))},handleSearch:function(){this.listQuery.PageIndex=1,this.getList()},handleReset:function(){this.listQuery=l(),this.getList()},handleSelectChange:function(e){this.selectArr=e},handleSortByColumn:function(e){"ascending"===e.order?this.listQuery.Asc=!0:this.listQuery.Asc=!1,this.listQuery.SortField=e.prop,this.listQuery.PageIndex=1,this.getList()},handleSelectable:function(e){return 0===e.State||4===e.State||3===e.State},getUserType:function(){var e=this;Object(r["ge"])(1).then((function(t){e.userTypeOptions=t.Result}))}}},u=c,d=(i("23ab"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,"57affaa8",null);t["default"]=f.exports},"2cbc":function(e,t,i){},"2cc1":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container data-list"},[i("div",{staticClass:"toolbar"},[i("el-row",[i("el-input",{staticStyle:{width:"160px"},attrs:{placeholder:"Trial ID",size:"small",clearable:""},model:{value:e.listQuery.Code,callback:function(t){e.$set(e.listQuery,"Code",t)},expression:"listQuery.Code"}}),e._v(" "),i("el-input",{staticStyle:{width:"160px"},attrs:{placeholder:"Indication",size:"small",clearable:""},model:{value:e.listQuery.Indication,callback:function(t){e.$set(e.listQuery,"Indication",t)},expression:"listQuery.Indication"}}),e._v(" "),i("el-select",{staticStyle:{width:"160px"},attrs:{"value-key":"value",placeholder:"Expedited",clearable:"",size:"small"},model:{value:e.listQuery.Expedited,callback:function(t){e.$set(e.listQuery,"Expedited",t)},expression:"listQuery.Expedited"}},e._l(e.expeditedOption,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),e._v(" "),i("el-select",{staticStyle:{width:"160px"},attrs:{"value-key":"value",placeholder:"Enroll Status",clearable:"",size:"small"},model:{value:e.listQuery.EnrollStatus,callback:function(t){e.$set(e.listQuery,"EnrollStatus",t)},expression:"listQuery.EnrollStatus"}},e._l(e.enrollStatusOption,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),e._v(" "),i("el-button",{attrs:{type:"text",size:"small"},on:{click:e.handleReset}},[e._v("Reset")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.handleSearch}},[e._v("Search")])],1)],1),e._v(" "),i("div",{staticClass:"data-table"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],ref:"trialsList",staticClass:"table",attrs:{data:e.list,stripe:"",size:"small",height:"100%"},on:{"sort-change":e.handleSortChange}},[i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Code","min-width":"110",label:"Trial ID","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Expedited","min-width":"110",label:"Expedited","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(0==t.row.Expedited?"No":1==t.row.Expedited?"24H":"48H"))]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Indication",label:"Indication","min-width":"120","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Phase","min-width":"100",label:"Phase","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"ReviewMode",label:"Review Mode","min-width":"120","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Criterion",label:"Criteria","min-width":"120","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Modalities",label:"Modalities","min-width":"120",formatter:e.ModalitiesFormatter,"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"CRO",label:"CRO","min-width":"120","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Sponsor",label:"Sponsor","min-width":"120","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:"Date Created","min-width":"120","show-overflow-tooltip":"",formatter:e.timeFormatter,sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"EnrollStatus",label:"Enroll State","min-width":"120","show-overflow-tooltip":"",formatter:e.enrollStatusFormatter,sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{label:"Action","min-width":"150",align:"left",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.EnrollStatus>=10?i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return e.handleToWorkLoad(t.row)}}},[e._v("WorkLoad")]):e._e(),e._v(" "),i("el-button",{attrs:{disabled:8!=t.row.EnrollStatus,type:"text",size:"small"},on:{click:function(i){e.enrollVisible=!0,e.trialId=t.row.Id,e.enrollStatus=t.row.EnrollStatus}}},[e._v("Enroll")])]}}])})],1)],1),e._v(" "),i("div",{staticClass:"pagination"},[i("pagination",{attrs:{total:e.total,page:e.listQuery.PageIndex,limit:e.listQuery.PageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"PageIndex",t)},"update:limit":function(t){return e.$set(e.listQuery,"PageSize",t)},pagination:e.getList}})],1),e._v(" "),i("el-dialog",{attrs:{title:"Enroll",visible:e.enrollVisible,width:"400px",size:"small","close-on-click-modal":!1},on:{"update:visible":function(t){e.enrollVisible=t}}},[i("el-radio-group",{model:{value:e.enrollStatus,callback:function(t){e.enrollStatus=t},expression:"enrollStatus"}},[i("el-radio",{attrs:{label:9}},[e._v("Reject Enroll")]),e._v(" "),i("el-radio",{attrs:{label:10}},[e._v("Confirm Enroll")])],1),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{size:"small"},on:{click:function(t){e.enrollVisible=!1}}},[e._v("Cancel")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",disabled:e.btnDisable},on:{click:e.handleEnroll}},[e._v("OK")])],1)],1)],1)},a=[],r=i("333d"),o=i("7878"),s=i("0a05"),l=function(){return{Code:"",Expedited:"",Indication:"",EnrollStatus:"",PageIndex:1,PageSize:20,Asc:!1,SortField:""}},c={name:"ReviewerTrials",components:{Pagination:r["default"]},data:function(){return{btnDisable:!1,trialId:"",enrollStatus:"",enrollVisible:!1,listQuery:l(),list:[],listLoading:!1,total:0,expeditedOption:[{value:0,label:"No"},{value:2,label:"48-Hour"},{value:1,label:"24-Hour"}],enrollStatusOption:[{value:8,label:"Enrolling"},{value:9,label:"Rejected"},{value:10,label:"Reading"},{value:14,label:"End"}]}},created:function(){this.getList()},methods:{getList:function(){var e=this;this.listLoading=!0,Object(s["l"])(this.listQuery).then((function(t){e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount,e.listLoading=!1})).catch((function(){e.listLoading=!1}))},handleSelectSearch:function(){this.isShow=!1,this.getList()},handleSearch:function(){this.listQuery.PageIndex=1,this.getList()},handleReset:function(){this.listQuery=l(),this.getList()},handleEnroll:function(){var e=this;this.btnDisable=!0,Object(s["r"])(this.trialId,this.enrollStatus).then((function(t){e.enrollVisible=!1,9===e.enrollStatus?e.$message.success("Reject successfully"):e.$message.success("Enroll successfully"),e.getList()})).catch((function(){e.btnDisable=!1}))},handleToWorkLoad:function(e){this.$router.push({name:"WorkloadPannel",query:{TrialId:e.Id}})},ModalitiesFormatter:function(e,t){if(e.ModalityList.length>0)return e.ModalityList.join(", ")},timeFormatter:function(e){if(e.CreateTime)return Object(o["formatUTCTime"])(e.CreateTime)},enrollStatusFormatter:function(e){return 8===e.EnrollStatus?"Need Confirm":9===e.EnrollStatus?"Rejected":10===e.EnrollStatus||12===e.EnrollStatus||13===e.EnrollStatus?"Reading":"End"},handleSortChange:function(e){"ascending"===e.order?this.listQuery.Asc=!0:this.listQuery.Asc=!1,this.listQuery.SortField=e.prop,this.listQuery.PageIndex=1,this.getList()}}},u=c,d=i("2877"),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},"2cf4":function(e,t){var i=1;"undefined"!==typeof window&&(i=Math.max(window.devicePixelRatio||1,1));var n=0,a=i;t.debugMode=n,t.devicePixelRatio=a},"2cfc":function(e,t,i){var n=i("3eba");i("4338"),i("bcbe"),i("c62c"),i("cb8f"),i("f138"),n.extendComponentView({type:"single"})},"2db3":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"template-wrapper"},[i("div",{staticClass:"left-wrapper"},[i("box-content",[i("div",{staticClass:"search"},[i("SearchForm",{attrs:{size:"mini",that:this,"search-data":e.searchData,"search-form":e.template_form,"search-handle":e.template_handle},on:{search:e.handleSearch,reset:e.handleReset}}),e._v(" "),i("span",{staticStyle:{"margin-left":"auto"}},[i("el-button",{staticStyle:{"margin-left":"auto"},attrs:{type:"primary",size:"small"},on:{click:e.handleAdd}},[e._v("New")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.handleSetting}},[e._v("Setting")])],1)],1),e._v(" "),i("base-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{columns:e.template_cols,list:e.list,"search-data":e.searchData,total:e.total},on:{getList:e.getList,items:e.handleView,edit:e.handleEdit,delete:e.handleDelete,sortByColumn:e.sortByColumn}})],1)],1),e._v(" "),i("div",{staticClass:"right-wrapper"},[e.template.Name?i("div",[i("span",[e._v("Name:")]),e._v(" "),i("el-input",{staticStyle:{width:"150px"},attrs:{size:"small",readonly:""},model:{value:e.template.Name,callback:function(t){e.$set(e.template,"Name",t)},expression:"template.Name"}})],1):e._e(),e._v(" "),e.template.Name?i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.itemLoading,expression:"itemLoading"}],ref:"itemList",staticClass:"table",attrs:{data:e.itmeList,size:"small"},on:{select:e.onTableSelect}},[i("el-table-column",{attrs:{type:"selection",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Name",label:"Item","show-overflow-tooltip":""}})],1):e._e()],1),e._v(" "),e.template_model.visible?i("template-form",{attrs:{data:e.rowData},on:{close:e.closeModel}}):e._e()],1)},a=[],r=(i("ac6a"),i("20d6"),i("e56e")),o=i("aaf3"),s=i("f36a"),l=i("d13d"),c=i("c0ee"),u=i("7f7d"),d=i("fab6"),f=function(){return{Name:"",PageIndex:1,PageSize:20}},h={name:"TemplateList",components:{BoxContent:s["default"],SearchForm:l["default"],BaseTable:c["default"],TemplateForm:u["default"]},mixins:[d["a"]],data:function(){return{template_cols:o["e"],template_form:o["f"],template_handle:o["g"],template_model:o["h"],searchData:f(),list:[],total:0,loading:!1,rowData:{},template:{},itmeList:[],itemLoading:!1}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0,Object(r["pb"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount,e.template={},e.itmeList=[]}))},handleAdd:function(){this.rowData={},this.template_model.title="New",this.template_model.visible=!0},handleSetting:function(){this.$router.push({name:"TemplateOfSetting"})},handleEdit:function(e){this.rowData=e,this.template_model.title="Edit",this.template_model.visible=!0},handleDelete:function(e){var t=this;this.$confirm("Sure to delete?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){Object(r["G"])(e.Id).then((function(i){i.IsSuccess&&(t.list.splice(t.list.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success("Deleted successfully!"))}))}))},handleView:function(e){var t=this;this.template=e,this.itemLoading=!0,Object(r["ob"])(e.Id,e.ModalityId).then((function(e){t.itmeList=e.Result,t.itmeList.forEach((function(e){t.$nextTick(function(){this.$refs.itemList.toggleRowSelection(e,e.IsSelect)}.bind(t))})),t.itemLoading=!1}))},onTableSelect:function(e,t){var i=this,n={qaTemplateItemId:t.Id,qaTemplateId:this.template.Id,isSelect:-1!==e.indexOf(t)};Object(r["y"])(n).then((function(e){i.$message.success("Updated successfully")}))},handleReset:function(){this.searchData=f(),this.getList(),this.template={},this.itmeList=[]},closeModel:function(){this.template_model.visible=!1,this.getList()}}},p=h,m=(i("604c"),i("2877")),g=Object(m["a"])(p,n,a,!1,null,null,null);t["default"]=g.exports},"2dd1":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"sign-form-wrapper"},[i("div",{staticClass:"sign-form-body"},[e.signText?i("h4",{staticStyle:{color:"red"}},[e._v("*"+e._s(e.signText))]):e._e(),e._v(" "),i("el-form",{ref:"signForm",attrs:{model:e.signForm,size:"small","label-width":"100px"}},[i("el-form-item",{attrs:{label:"User ID: ",prop:"userName",rules:[{required:!0,message:"please specify.",trigger:"blur"}]}},[i("el-input",{model:{value:e.signForm.userName,callback:function(t){e.$set(e.signForm,"userName",t)},expression:"signForm.userName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Password: ",prop:"password",rules:[{required:!0,message:"please specify.",trigger:"blur"}]}},[i("el-input",{attrs:{"show-password":"","auto-complete":"new-password"},model:{value:e.signForm.password,callback:function(t){e.$set(e.signForm,"password",t)},expression:"signForm.password"}})],1)],1)],1),e._v(" "),i("div",{staticClass:"dialog-footer sign-form-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.handleclose}},[e._v("Cancel")]),e._v(" "),i("el-button",{attrs:{loading:e.btnLoading,size:"small",type:"primary"},on:{click:e.handleVerifySignature}},[e._v("签名")])],1)])},a=[],r=(i("c5f6"),i("3e42")),o=i("8237"),s=i.n(o),l={name:"SignForm",props:{signCodeEnum:{type:Number,required:!0},subjectVisitId:{type:String,default:""}},data:function(){return{signForm:{userName:"",password:""},signText:"",signCodeId:"",signCode:"",btnLoading:!1,loading:!1}},mounted:function(){var e=this;this.loading=!0,this.$store.dispatch("trials/getSignInfo",{signCode:this.signCodeEnum}).then((function(t){e.loading=!1,e.signText=t.SignText,e.signCode=t.SignCode,e.signCodeId=t.SignCodeId})).catch((function(){e.loading=!1}))},methods:{handleVerifySignature:function(){var e=this,t=zzSessionStorage.getItem("userName").toLocaleLowerCase();this.$refs.signForm.validate((function(i){if(i)if(e.signForm.userName.trim().toLocaleLowerCase()===t){e.btnLoading=!0;var n={userName:e.signForm.userName,passWord:s()(e.signForm.password),trialId:e.$route.query.trialId,signCode:e.signCode,signText:e.signText,signCodeId:e.signCodeId,subjectVisitId:e.subjectVisitId};Object(r["Mf"])(n).then((function(t){var i=t.Result;e.$emit("closeDialog",!0,i,e.signCode,n)})).catch((function(){e.btnLoading=!1}))}else e.$message.error("用户名输入错误!")}))},handleclose:function(){this.$emit("closeDialog",!1)}}},c=l,u=(i("cf53"),i("2877")),d=Object(u["a"])(c,n,a,!1,null,"aaeb5fd2",null);t["default"]=d.exports},"2ddb":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"search-container"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:site:table:site")}},[i("el-input",{staticStyle:{width:"130px"},attrs:{clearable:""},model:{value:e.searchData.SiteName,callback:function(t){e.$set(e.searchData,"SiteName",t)},expression:"searchData.SiteName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:site:table:staff")}},[i("el-input",{staticStyle:{width:"130px"},attrs:{clearable:""},model:{value:e.searchData.UserRealName,callback:function(t){e.$set(e.searchData,"UserRealName",t)},expression:"searchData.UserRealName"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")])],1)],1)],1),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"},{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortChange}},[i("el-table-column",{attrs:{type:"index",width:"40",align:"left"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialSiteCode","min-width":"100",label:e.$t("trials:site:table:siteId"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialSiteAliasName","min-width":"100",label:e.$t("trials:site:table:site"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"City","min-width":"100",label:e.$t("trials:site:table:city"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Country","min-width":"100",label:e.$t("trials:site:table:country"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCount","min-width":"100",label:e.$t("trials:site:table:subjects"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitCount","min-width":"100",label:e.$t("trials:site:table:visits"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"UserCount","min-width":"150",label:e.$t("trials:site:table:staff"),"show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.UserCount>0?i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.getStaffList(t.row)}}},[e._v("\n "+e._s(t.row.UserNameList.length>0?t.row.UserNameList.join(", "):"")+"\n ")]):e._e()]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1),e._v(" "),e.crc_model.visible?i("base-model",{attrs:{config:e.crc_model}},[i("template",{slot:"dialog-body"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.userListLoading,expression:"userListLoading"}],attrs:{data:e.userList,height:"400"}},[i("el-table-column",{attrs:{prop:"UserRealName",label:e.$t("trials:site:table:name"),width:"150"}}),e._v(" "),i("el-table-column",{attrs:{prop:"UserType",label:e.$t("trials:site:table:userType"),width:"120","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"OrganizationName",label:e.$t("trials:site:table:organization"),width:"150"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Phone",label:e.$t("trials:site:table:phone"),"show-overflow-tooltip":"",sortable:"custom",width:"150"}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsDeleted",label:e.$t("trials:site:table:status"),"show-overflow-tooltip":"",sortable:"","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsDeleted?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("IsUserExitTrial",t.row.IsDeleted)))]):i("el-tag",[e._v(e._s(e.$fd("IsUserExitTrial",t.row.IsDeleted)))])]}}],null,!1,2183258100)}),e._v(" "),i("el-table-column",{attrs:{prop:"UpdateTime",label:e.$t("trials:site:table:dataAssigned"),"show-overflow-tooltip":"",sortable:"custom","min-width":"150"}}),e._v(" "),i("el-table-column",{attrs:{prop:"DeletedTime",label:e.$t("trials:site:table:deletedTime"),"show-overflow-tooltip":"",sortable:"","min-width":"150"}})],1)],1)],2):e._e()],2)},a=[],r=i("db72"),o=i("3e42"),s=i("6071"),l=i("7eeb"),c=i("333d"),u=function(){return{UserRealName:"",SiteName:"",SortField:"TrialSiteCode",Asc:!0,PageIndex:1,PageSize:20}},d={name:"SiteList",components:{BaseContainer:s["default"],BaseModel:l["default"],Pagination:c["default"]},data:function(){return{searchData:u(),list:[],total:0,loading:!1,crc_model:{visible:!1,title:this.$t("trials:site:dialogTitle:staff"),width:"60%"},userListLoading:"",userList:[],trialId:""}},mounted:function(){this.trialId=this.$route.query.trialId,this.getList()},methods:{getList:function(){var e=this;this.loading=!0,this.searchData.TrialId=this.trialId,Object(o["kd"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},getStaffList:function(e){var t=this;this.currentRow=Object(r["a"])({},e),this.crc_model.visible=!0,this.userListLoading=!0,Object(o["Xd"])(this.trialId,this.currentRow.SiteId).then((function(e){t.userListLoading=!1,t.userList=e.Result})).catch((function(){t.userListLoading=!1}))},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=u(),this.getList()},handleSortChange:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()}}},f=d,h=i("2877"),p=Object(h["a"])(f,n,a,!1,null,null,null);t["default"]=p.exports},"2de6":function(e,t,i){"use strict";i("2cbc")},"2dff":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"img-container"},[i("el-card",{staticClass:"box-card left"},[e.otherInfo&&e.otherInfo.IsReadingShowSubjectInfo?i("div",{staticClass:"title"},[i("span",[e._v("受试者:"+e._s(e.otherInfo.SubjectCode)+" ")]),e._v(" "),i("span",[e._v("("+e._s(e.otherInfo.TaskBlindName)+")")])]):e._e(),e._v(" "),i("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[i("el-tab-pane",{staticClass:"left-content",attrs:{label:"当前任务",name:"first"}},[i("div",e._l(e.studyList,(function(t,n){return i("div",{key:t.CodeView},[i("div",{staticClass:"study-desc"},[i("span",[e._v(e._s(t.CodeView))]),e._v(" "),i("span",{staticStyle:{margin:"0 5px"}},[e._v(e._s(t.Modality))]),e._v(" "),i("span",[e._v(e._s(t.BodyPart))])]),e._v(" "),0===t.NoneDicomStudyFileList.length?i("div",{staticClass:"empty-text"},[e._t("empty",[e._v("暂无数据")])],2):i("div",{staticStyle:{height:"100%"},attrs:{id:"imgList"}},e._l(t.NoneDicomStudyFileList,(function(t,a){return i("div",{key:t.Id,staticClass:"img-box",class:{"is-boxActive":t.Id===e.currentFileId},attrs:{id:"img"+t.Id},on:{click:function(i){return e.selected(t,n,a,!0)}}},[e._v("\n "+e._s(a+1+". "+t.FileName)+"\n ")])})),0)])})),0)]),e._v(" "),!0===e.showOtherTask?i("el-tab-pane",{attrs:{label:"关联任务",name:"second"}},[i("div",{staticStyle:{height:"100%"}},[0===e.associatedList.length?i("div",{staticClass:"empty-text"},[e._t("empty",[e._v("暂无数据")])],2):i("div",e._l(e.associatedList,(function(t,n){return i("div",{key:t.VisitTaskId,staticClass:"img-box",class:{"is-boxActive":t.VisitTaskId===e.currentTaskId},on:{click:function(i){return e.handleImageRead(t)}}},[e._v("\n "+e._s(n+1+". "+t.TaskBlindName)+"\n ")])})),0)])]):e._e()],1)],1),e._v(" "),i("el-card",{staticClass:"box-card right"},[i("div",{staticStyle:{width:"100%",height:"100%"}},[e.previewImage.imgList.length>0?i("Preview",{ref:"previewImage",staticStyle:{width:"100%"},attrs:{"preview-image":e.previewImage,value:e.currentStudyFileIndex},on:{selectedImg:e.selectedImg}}):e._e()],1)]),e._v(" "),i("el-card",{staticClass:"box-card",staticStyle:{width:"400px",height:"100%",padding:"10px","margin-left":"10px","overflow-y":"auto"}},[e.otherInfo&&e.otherInfo.IsExistsClinicalData?i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.previewCD}},[e._v("\n 临床数据\n ")]):e._e(),e._v(" "),e.otherInfo&&""!==e.visitTaskId&&""!==e.subjectId&&null!==e.readingCategory&&4!==e.readingCategory?i("Criterions",{attrs:{"trial-id":e.trialId,"subject-id":e.subjectId,"visit-task-id":e.visitTaskId,"criterion-id":e.otherInfo.TrialCriterionId}}):e._e()],1)],1)},a=[],r=(i("7f7f"),i("20d6"),i("c5f6"),i("3e42")),o=i("5f87"),s=i("bcd4"),l=i("1b13"),c={name:"VisitReview",components:{Preview:s["default"],Criterions:l["default"]},props:{trialId:{type:String,required:!0},subjectId:{type:String,required:!0},subjectCode:{type:String,required:!0},visitTaskId:{type:String,required:!0},readingCategory:{type:Number,required:!0}},data:function(){return{activeName:"first",currentFileId:"",currentStudyIndex:0,currentStudyFileIndex:0,pageSize:0,previewImage:{imgList:[],index:0,infinite:!0,popup:!0,studyCode:"",modality:"",bodyPart:""},previewVisible:!1,studyList:[],loading:!1,isRenderAssocicatedTasks:!1,associatedList:[],currentTaskId:"",otherInfo:null,isReadingShowPreviousResults:!1}},computed:{showOtherTask:function(){return this.otherInfo&&this.otherInfo.IsReadingShowPreviousResults&&this.isReadingShowPreviousResults}},mounted:function(){this.isReadingShowPreviousResults=void 0===this.$router.currentRoute.query.isReadingShowPreviousResults||this.$router.currentRoute.query.isReadingShowPreviousResults,this.getNoneDicomList(this.isReadingShowPreviousResults)},methods:{getNoneDicomList:function(){var e=this;this.loading=!0;var t={subjectId:this.subjectId,trialId:this.trialId,visistTaskId:this.visitTaskId};Object(r["Oc"])(t).then((function(t){if(e.otherInfo=t.OtherInfo,t.Result.length>0){e.studyList=t.Result;var i=e.studyList.findIndex((function(e){return e.NoneDicomStudyFileList.length>0}));if(i>-1){var n=e.studyList[i]["NoneDicomStudyFileList"];e.selected(n[0],i,0,!0)}}e.loading=!1})).catch((function(){e.loading=!1}))},selected:function(e,t,i){var n=this,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];this.currentFileId=e.Id,this.currentStudyIndex=t,this.previewImage.imgList=this.studyList[t].NoneDicomStudyFileList,this.currentStudyFileIndex=i,this.previewImage.index=i,this.previewImage.studyCode=this.studyList[t].CodeView,this.previewImage.bodyPart=this.studyList[t].BodyPart,this.previewImage.modality=this.studyList[t].Modality,this.$nextTick((function(){a&&n.$refs["previewImage"].selected(i)}))},selectedImg:function(e){var t=this;this.studyList.length>0&&(this.currentStudyFileIndex=e,this.currentFileId=this.studyList[this.currentStudyIndex].NoneDicomStudyFileList[e].Id,this.previewImage.index=e,this.previewImage.studyCode=this.studyList[this.currentStudyIndex].CodeView,this.previewImage.bodyPart=this.studyList[this.currentStudyIndex].BodyPart,this.previewImage.modality=this.studyList[this.currentStudyIndex].Modality,this.$nextTick((function(){var e=document.getElementById("img".concat(t.currentFileId)),i=document.getElementsByClassName("left-content")[0];i.scrollTop=e.offsetTop-i.offsetTop})))},preview:function(){this.previewVisible=!0},handleClick:function(e){"second"!==e.name||this.isRenderAssocicatedTasks||this.getAssociatedTask()},getAssociatedTask:function(){var e=this;this.loading=!0;var t={trialId:this.trialId,subjectId:this.subjectId,visitTaskId:this.visitTaskId};Object(r["Tc"])(t).then((function(t){e.associatedList=t.Result,e.isRenderAssocicatedTasks=!0,e.loading=!1})).catch((function(){e.loading=!1}))},handleImageRead:function(e){this.currentTaskId=e.VisitTaskId;var t=this.$router.currentRoute.query.criterionType,i=this.$router.currentRoute.query.readingTool,n=this.$router.currentRoute.query.isReadingTaskViewInOrder,a=this.$router.currentRoute.query.TrialReadingCriterionId,r=Object(o["a"])(),s="/noneDicomReading?TrialReadingCriterionId=".concat(a,"&trialId=").concat(this.trialId,"&subjectCode=").concat(this.subjectCode,"&subjectId=").concat(this.subjectId,"&isReadingTaskViewInOrder=").concat(n,"&criterionType=").concat(t,"&readingTool=").concat(i,"&TokenKey=").concat(r),l=this.$router.resolve({path:s});window.open(l.href,"_blank")},previewCD:function(){var e=Object(o["a"])(),t=this.$router.resolve({path:"/clinicalData?subjectId=".concat(this.subjectId,"&trialId=").concat(this.trialId,"&visitTaskId=").concat(this.visitTaskId,"&TokenKey=").concat(e)});window.open(t.href,"_blank")}}},u=c,d=(i("5a8d"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,"2483507d",null);t["default"]=f.exports},"2e08":function(e,t,i){var n=i("9def"),a=i("9744"),r=i("be13");e.exports=function(e,t,i,o){var s=String(r(e)),l=s.length,c=void 0===i?" ":String(i),u=n(t);if(u<=l||""==c)return s;var d=u-l,f=a.call(c,Math.ceil(d/c.length));return f.length>d&&(f=f.slice(0,d)),o?f+s:s+f}},"2e08c":function(e,t,i){},"2e2c":function(e,t,i){},"2e39":function(e,t,i){"use strict";function n(e,t){var i=t.length,n=e.length;if(n>i)return!1;if(n===i)return e===t;e:for(var a=0,r=0;a<n;a++){var o=e.charCodeAt(a);while(r<i)if(t.charCodeAt(r++)===o)continue e;return!1}return!0}e.exports=n},"2e99":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.list,stripe:""}},[i("el-table-column",{attrs:{prop:"",label:"",width:"50"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.$index+1)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Code",label:e.$t("trials:readingUnit:baseDataCfg:title:dictTbl"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Description",label:e.$t("trials:readingUnit:baseDataCfg:title:dictDesc"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Count",label:e.$t("trials:readingUnit:baseDataCfg:title:dictChildCount"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ShowOrder",label:e.$t("trials:readingUnit:baseDataCfg:title:dictOrder"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Description",label:e.$t("common:action:action"),"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(i){return e.openChildren(t.row)}}},[e._v("\n "+e._s(e.$t("trials:readingUnit:baseDataCfg:title:dictView"))+"\n ")])]}}])})],1),e._v(" "),i("el-drawer",{attrs:{title:e.drawer_cfg.title,"append-to-body":!0,"modal-append-to-body":!1,visible:e.drawer_cfg.drawerChild,direction:"rtl",size:"80%"},on:{"update:visible":function(t){return e.$set(e.drawer_cfg,"drawerChild",t)}}},[e.drawer_cfg.drawerChild?i("CriterionDictionaryConfig",{attrs:{"criterion-id":e.criterionId,"parent-code":e.drawer_cfg.title},on:{getList:e.getList}}):e._e()],1)],1)},a=[],r=i("e56e"),o=i("80c8"),s={components:{CriterionDictionaryConfig:o["default"]},props:{criterionId:{type:String,required:!0}},data:function(){return{list:[],total:0,loading:!1,rowData:{},activeName:"0",drawer_cfg:{drawerChild:!1,parentId:"",title:""},selectedList:[],dicList:[]}},mounted:function(){this.getList(),this.getBasicConfigSelect()},methods:{getBasicConfigSelect:function(){var e=this;Object(r["U"])("Reading_eCRF_Criterion").then((function(t){e.dicList=t.Result}))},openChildren:function(e){this.drawer_cfg={drawerChild:!0,title:e.Code,parent:e}},getList:function(){var e=this;this.loading=!0,Object(r["Gb"])({TrialCriterionId:this.criterionId}).then((function(t){e.loading=!1,e.list=t.Result}))}}},l=s,c=(i("4b1d"),i("2877")),u=Object(c["a"])(l,n,a,!1,null,"5a693235",null);t["default"]=u.exports},"2ea9":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{height:"100%",background:"#fff",padding:"10px","box-sizing":"border-box"}},[i("el-tabs",{attrs:{type:"border-card"},model:{value:e.trialReadingCriterionId,callback:function(t){e.trialReadingCriterionId=t},expression:"trialReadingCriterionId"}},e._l(e.trialCriterionList,(function(t){return i("el-tab-pane",{key:t.TrialReadingCriterionId,attrs:{label:t.TrialReadingCriterionName,name:t.TrialReadingCriterionId}},[i("div",{staticClass:"search"},[i("el-form",{staticClass:"base-search-form",attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:qcCfg:table:questionName")}},[i("el-input",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.QuestionName,callback:function(t){e.$set(e.searchData,"QuestionName",t)},expression:"searchData.QuestionName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:medicalFeedbackCfg:title:taskType")}},[i("el-select",{attrs:{clearable:""},model:{value:e.searchData.ReadingCategory,callback:function(t){e.$set(e.searchData,"ReadingCategory",t)},expression:"searchData.ReadingCategory"}},e._l(e.$d.ReadingCategory,(function(e){return i("el-option",{key:e.value,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:qcCfg:table:isEnable")}},[i("el-select",{attrs:{clearable:""},model:{value:e.searchData.IsEnable,callback:function(t){e.$set(e.searchData,"IsEnable",t)},expression:"searchData.IsEnable"}},e._l(e.$d.IsEnable,(function(e){return i("el-option",{key:e.value,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:qcCfg:table:isRequired")}},[i("el-select",{attrs:{clearable:""},model:{value:e.searchData.IsRequired,callback:function(t){e.$set(e.searchData,"IsRequired",t)},expression:"searchData.IsRequired"}},e._l(e.$d.YesOrNo,(function(e){return i("el-option",{key:"IsRequired"+e.value,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")])],1)],1),e._v(" "),i("span",{staticStyle:{"margin-left":"auto"}},[i("el-button",{attrs:{disabled:0===e.otherInfo.QuestionCount,type:"primary",icon:"el-icon-view"},on:{click:function(t){e.preview.visible=!0}}},[e._v("\n "+e._s(e.$t("common:button:preview"))+"\n ")]),e._v(" "),!e.otherInfo.IsConfirmMedicineQuestion&&e.hasPermi(["trials:trials-panel:setting:medical-audit:confirm"])?i("el-button",{attrs:{type:"primary",icon:"el-icon-plus"},on:{click:e.handleAdd}},[e._v("\n "+e._s(e.$t("trials:qcCfg:button:default"))+"\n ")]):e._e(),e._v(" "),!e.otherInfo.IsConfirmMedicineQuestion&&e.hasPermi(["trials:trials-panel:setting:medical-audit:confirm"])?i("el-button",{attrs:{type:"primary",icon:"el-icon-plus"},on:{click:e.handleCustomQS}},[e._v("\n "+e._s(e.$t("trials:qcCfg:button:custom"))+"\n ")]):e._e(),e._v(" "),!e.otherInfo.IsConfirmMedicineQuestion&&e.hasPermi(["trials:trials-panel:setting:medical-audit:confirm"])?i("el-button",{attrs:{disabled:0===e.otherInfo.QuestionCount,type:"danger",icon:"el-icon-circle-check"},on:{click:e.handleConfirm}},[e._v("\n "+e._s(e.$t("trials:qcCfg:button:confirm"))+"\n ")]):e._e()],1)],1),e._v(" "),e.isShow?i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:75},expression:"{bottomOffset:75}"}],attrs:{data:e.list,stripe:"",height:"100"}},[i("el-table-column",{attrs:{prop:"ShowOrder",label:e.$t("trials:qcCfg:table:order"),width:"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"QuestionName",label:e.$t("trials:qcCfg:table:questionName"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Type",label:e.$t("trials:qcCfg:table:type"),"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("QcType",t.row.Type))+"\n ")]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"TypeValue",label:e.$t("trials:qcCfg:table:typeValue"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ReadingCategory",label:e.$t("trials:medicalFeedbackCfg:title:taskType"),"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.ReadingCategory?i("el-tag",{attrs:{type:"primary"}},[e._v("\n "+e._s(e.$fd("ReadingCategory",t.row.ReadingCategory))+"\n ")]):e._e(),e._v(" "),2===t.row.ReadingCategory?i("el-tag",{attrs:{type:"info"}},[e._v("\n "+e._s(e.$fd("ReadingCategory",t.row.ReadingCategory))+"\n ")]):e._e(),e._v(" "),4===t.row.ReadingCategory?i("el-tag",{attrs:{type:"danger"}},[e._v("\n "+e._s(e.$fd("ReadingCategory",t.row.ReadingCategory))+"\n ")]):e._e(),e._v(" "),5===t.row.ReadingCategory?i("el-tag",{attrs:{type:"warning"}},[e._v("\n "+e._s(e.$fd("ReadingCategory",t.row.ReadingCategory))+"\n ")]):e._e()]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"ParentShowOrder",label:e.$t("trials:qcCfg:table:parentQs"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ParentTriggerValue",label:e.$t("trials:qcCfg:table:parentTriggerValue"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsRequired",label:e.$t("trials:qcCfg:table:isRequired")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("YesOrNo",t.row.IsRequired))+"\n ")]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"IsEnable",label:e.$t("trials:qcCfg:table:isEnable")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("IsEnable",t.row.IsEnable))+"\n ")]}}],null,!0)}),e._v(" "),!e.otherInfo.IsConfirmMedicineQuestion&&e.hasPermi(["trials:trials-panel:setting:medical-audit:confirm"])?i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{circle:"",title:e.$t("common:button:edit"),icon:"el-icon-edit-outline"},on:{click:function(i){return e.handleEdit(t.row)}}}),e._v(" "),i("el-button",{attrs:{circle:"",title:e.$t("common:button:delete"),icon:"el-icon-delete"},on:{click:function(i){return e.handleDelete(t.row)}}})]}}],null,!0)}):e._e()],1):e._e(),e._v(" "),i("Pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1)})),1),e._v(" "),e.addVisible?i("el-dialog",{attrs:{visible:e.addVisible,width:"1200px","close-on-click-modal":!1,"custom-class":"base-dialog-wrapper",title:e.$t("trials:qcCfg:button:default")},on:{"update:visible":function(t){e.addVisible=t}}},[i("div",{staticClass:"base-dialog-body"},[i("DefaultQS",{attrs:{"trial-reading-criterion-id":e.trialReadingCriterionId,"current-criterion-type":e.CurrentCriterionType},on:{getList:e.getList,close:function(t){e.addVisible=!1}}})],1)]):e._e(),e._v(" "),e.qsForm.visible?i("el-dialog",{attrs:{visible:e.qsForm.visible,"close-on-click-modal":!1,"custom-class":"base-dialog-wrapper",title:e.qsForm.title,width:"600px"},on:{"update:visible":function(t){return e.$set(e.qsForm,"visible",t)}}},[i("QSForm",{attrs:{"trial-reading-criterion-id":e.trialReadingCriterionId,data:e.currentRow},on:{getList:e.getList,close:function(t){e.qsForm.visible=!1}}})],1):e._e(),e._v(" "),e.preview.visible?i("el-dialog",{attrs:{visible:e.preview.visible,"close-on-click-modal":!1,"custom-class":"base-dialog-wrapper",title:e.preview.title,width:"600px"},on:{"update:visible":function(t){return e.$set(e.preview,"visible",t)}}},[i("div",{staticClass:"base-dialog-body"},[i("QuestionsPreview",{attrs:{"trial-reading-criterion-id":e.trialReadingCriterionId}})],1)]):e._e(),e._v(" "),e.signVisible?i("el-dialog",{attrs:{visible:e.signVisible,"close-on-click-modal":!1,width:"600px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.signVisible=t}}},[i("div",{attrs:{slot:"title"},slot:"title"},[i("span",{staticStyle:{"font-size":"18px"}},[e._v("\n "+e._s(e.$t("common:dialogTitle:sign"))+"\n ")]),e._v(" "),i("span",{staticStyle:{"font-size":"12px","margin-left":"5px"}},[e._v("\n "+e._s("("+e.$t("common:label:sign")+e.currentUser+")")+"\n ")])]),e._v(" "),i("SignForm",{ref:"signForm",attrs:{"sign-code-enum":e.signCode},on:{closeDialog:e.closeSignDialog}})],1):e._e()],1)},a=[],r=(i("20d6"),i("db72")),o=(i("7514"),i("3e42")),s=i("958c"),l=i("f36a"),c=i("a7ad"),u=i("5582"),d=i("333d"),f=i("c94a"),h=i("179b"),p=i("7a9e"),m=function(){return{QuestionName:"",ReadingCategory:null,Type:"",IsEnable:null,PageIndex:1,PageSize:10}},g={name:"MedicalAuditQS",components:{Pagination:d["default"],BoxContent:l["default"],DefaultQS:c["default"],QSForm:u["default"],QuestionsPreview:f["default"],SignForm:h["default"]},data:function(){return{searchData:m(),list:[],total:0,loading:!1,addVisible:!1,btnLoading:!1,signText:"",signCode:null,currentUser:zzSessionStorage.getItem("userName"),signVisible:!1,userTypeEnumInt:1*zzSessionStorage.getItem("userTypeEnumInt"),otherInfo:{IsConfirmMedicineQuestion:!0},trialId:"",qsForm:{visible:!1,title:""},preview:{visible:!1,title:this.$t("common:button:preview")},currentRow:{},trialCriterionList:[],trialReadingCriterionId:"0",CurrentCriterionType:null,isShow:!1}},watch:{trialReadingCriterionId:function(e){var t=this;this.getList(),this.CurrentCriterionType=this.trialCriterionList.find((function(e){return e.TrialReadingCriterionId===t.trialReadingCriterionId})).CriterionType,console.log(this.CurrentCriterionType)}},mounted:function(){this.trialId=this.$route.query.trialId,this.getTrialCriterionList()},methods:{getTrialCriterionList:function(){var e=this;Object(s["U"])(this.trialId).then((function(t){e.trialCriterionList=t.Result,e.trialReadingCriterionId=e.trialCriterionList[0].TrialReadingCriterionId,e.CurrentCriterionType=e.trialCriterionList.find((function(t){return t.TrialReadingCriterionId===e.trialReadingCriterionId})).CriterionType})).catch((function(){}))},getList:function(){var e=this;this.loading=!0,this.isShow=!1,this.searchData.TrialId=this.trialId,this.searchData.TrialReadingCriterionId=this.trialReadingCriterionId,Object(o["Qc"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount,e.isShow=!0,e.otherInfo.IsConfirmMedicineQuestion=!1,e.otherInfo=t.OtherInfo})).catch((function(){e.loading=!1}))},handleAdd:function(){this.addVisible=!0},handleEdit:function(e){this.currentRow=Object(r["a"])({},e),this.qsForm.title=this.$t("common:button:edit"),this.qsForm.visible=!0},handleDelete:function(e){var t=this,i=this.list.findIndex((function(t){return t.ParentId===e.Id}));-1!==i?this.$message.error(this.$t("trials:qcCfg:message:deleteWarning")):this.$confirm(this.$t("trials:qcCfg:message:delete"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.loading=!0;var i={trialId:t.trialId,id:e.Id};Object(o["pb"])(i).then((function(e){t.loading=!1,e.IsSuccess&&(t.getList(),t.$message.success(t.$t("common:message:deletedSuccessfully")))})).catch((function(){t.loading=!1}))}))},handleCustomQS:function(){this.currentRow={},this.qsForm.title=this.$t("common:button:new"),this.qsForm.visible=!0},handleSearch:function(){this.getList()},handleReset:function(){this.searchData=m(),this.getList()},handleConfirm:function(){var e=this;0!==this.otherInfo.QuestionCount?(this.loading=!0,Object(o["Jf"])({trialId:this.trialId,TrialReadingCriterionId:this.trialReadingCriterionId}).then((function(t){e.loading=!1;var i=p["default"].processSignature.MedicalAuditConfirmation;e.signCode=i,e.signVisible=!0})).catch((function(){e.loading=!1}))):this.$message.error(this.$t("trials:medicalFeedbackCfg:message:msg1"))},closeSignDialog:function(e,t){e?this.signConfirm(t):this.signVisible=!1},signConfirm:function(e){var t=this;this.loading=!0;var i={data:{trialId:this.trialId,TrialReadingCriterionId:this.trialReadingCriterionId},signInfo:e,TrialReadingCriterionId:this.trialReadingCriterionId};Object(o["cb"])(i).then((function(e){t.loading=!1,e.IsSuccess&&(t.$message.success(t.$t("common:message:savedSuccessfully")),t.$refs["signForm"].btnLoading=!1,t.signVisible=!1,t.getList())})).catch((function(e){t.loading=!1,t.$refs["signForm"].btnLoading=!1}))}}},v=g,b=i("2877"),y=Object(b["a"])(v,n,a,!1,null,null,null);t["default"]=y.exports},"2eec":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"clinicalDataForm",attrs:{model:e.form,size:"small",rules:e.rules,"label-width":"110px",inline:!0}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:e.$t("trials:readingPeriod:cd:table:clinicalDataName"),prop:"ClinicalDataTrialSetId"}},[i("el-col",{attrs:{span:20}},[i("el-select",{on:{change:e.handleClinicalDataSetChange},model:{value:e.form.ClinicalDataTrialSetId,callback:function(t){e.$set(e.form,"ClinicalDataTrialSetId",t)},expression:"form.ClinicalDataTrialSetId"}},e._l(e.clinicalDatas,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.ClinicalDataSetName,value:e.Id}})})),1)],1),e._v(" "),i("el-col",{attrs:{span:4}},[e.currentTpl.isExist?i("el-button",{attrs:{type:"text"},on:{click:e.handleDownloadTpl}},[e._v("\n "+e._s(e.$t("trials:readingPeriod:cd:title:downloadTpl"))+"\n ")]):e._e()],1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:readingPeriod:cd:form:data")}},[i("form",{ref:"uploadForm",attrs:{id:"inputForm"}},[i("div",{staticClass:"form-group"},[i("div",{staticClass:"btn btn-link",staticStyle:{position:"relative",overflow:"hidden",display:"inline-block"},attrs:{id:"directoryInputWrapper"}},[i("el-button",{staticStyle:{width:"56px"},attrs:{type:"primary",size:"small"}},[e._v("\n "+e._s(e.$t("trials:uploadClinicalData:button:selectFile"))+"\n ")]),e._v(" "),i("input",{staticStyle:{position:"absolute",top:"0",left:"0",width:"56px",height:"100%",opacity:"0",cursor:"pointer"},attrs:{type:"file",name:"file",multiple:"",accept:e.faccept.join(",")},on:{change:function(t){return e.beginScanFiles(t)}}}),e._v(" "),i("span",[e._v(e._s(e.$t("trials:attachment:message:pdf")))])],1)])]),e._v(" "),i("el-table",{ref:"filesTable",staticClass:"dicomFiles-table",staticStyle:{width:"100%"},attrs:{data:e.fileList,height:"300",border:""}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"FileName",label:e.$t("trials:uploadClinicalData:table:fileName"),width:"190","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{circle:"",title:e.$t("trials:readingPeriod:cd:action:deleteFile"),icon:"el-icon-delete"},on:{click:function(i){return e.handleDeleteFile(t.$index,t.row)}}})]}}])})],1)],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.close}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.save}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])},a=[],r=(i("20d6"),i("7f7f"),i("ac6a"),i("456d"),i("96cf"),i("3b8d")),o=i("3e42"),s={name:"AddOrUpdateClinicalData",props:{trialReadingCriterionId:{type:String,default:""},data:{type:Object,default:function(){return{}}}},data:function(){return{fileList:[],faccept:[".pdf"],form:{Id:"",TrialId:"",SubjectId:"",ReadingId:"",ClinicalDataTrialSetId:"",IsVisist:!0,AddFileList:[],DeleteFileIds:[],FileList:[]},rules:{ClinicalDataTrialSetId:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}]},loading:!1,btnLoading:!1,clinicalDatas:[],pendingUploadList:[],pendingDeleteList:[],currentTpl:{id:"",isExist:!1}}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getClinicalDatas();case 2:if(Object.keys(this.data).length>0){for(t in this.form)this.data.hasOwnProperty(t)&&(this.form[t]=this.data[t]);this.handleClinicalDataSetChange(this.form.ClinicalDataTrialSetId),this.fileList=this.form.FileList.concat()}case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),save:function(){var e=this;this.$refs.clinicalDataForm.validate((function(t){if(t)if(0!==e.fileList.length){e.pendingUploadList=[];for(var i=0;i<e.fileList.length;++i)0===e.fileList[i].Status&&e.pendingUploadList.push(e.fileList[i].Files);e.pendingUploadList.length>0?e.uploadFilesAndSave():e.saveClinicalData()}else e.$message.error(e.$t("trials:readingPeriod:cd:message:uploadFile"))}))},uploadFilesAndSave:function(){var e=this;return new Promise((function(t,i){for(var n=new FormData,a=0;a<e.pendingUploadList.length;++a)n.append("file",e.pendingUploadList[a]);e.btnLoading=!0,Object(o["wf"])(e.data.TrialId,e.data.SubjectId,e.data.ReadingId,n).then((function(i){e.btnLoading=!1,e.form.AddFileList=i.Result,e.saveClinicalData(),t(i.Result)})).catch((function(){e.btnLoading=!1,i()}))}))},saveClinicalData:function(){var e=this;return new Promise((function(t,i){e.btnLoading=!0,e.form.DeleteFileIds=e.pendingDeleteList,Object(o["q"])(e.form).then((function(i){e.btnLoading=!1,e.$emit("getList"),e.$emit("close"),e.$message.success(e.$t("common:message:savedSuccessfully")),t()})).catch((function(){e.btnLoading=!1,i()}))}))},getClinicalDatas:function(){var e=this;return new Promise((function(t,i){e.loading=!0;var n={trialId:e.data.TrialId,IsVisit:e.data.IsVisit,ReadingId:e.data.ReadingId,SubjectId:e.data.SubjectId,ReadingClinicalDataId:e.data.Id?e.data.Id:"",IsBaseLine:e.data.IsBaseLine,TrialReadingCriterionId:e.trialReadingCriterionId};Object(o["xd"])(n).then((function(i){e.clinicalDatas=i.Result,e.loading=!1,t()})).catch((function(){e.loading=!1,i()}))}))},handleDeleteFile:function(e,t){var i=this;this.$confirm(this.$t("trials:readingPeriod:cd:message:delete"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.Id&&i.pendingDeleteList.push(t.Id),i.fileList.splice(e,1)})).catch((function(){}))},beginScanFiles:function(e){for(var t=e.target.files,i=0;i<t.length;++i){var n=t[i].name,a=n.substring(n.lastIndexOf(".")).toLocaleLowerCase();-1!==this.faccept.indexOf(a)&&this.fileList.push({FileName:n,Path:"",Status:0,Files:t[i]})}},handleClinicalDataSetChange:function(e){var t=this.clinicalDatas.findIndex((function(t){return t.Id===e}));t>-1&&(this.currentTpl.id=this.clinicalDatas[t].Id,this.currentTpl.isExist=!!this.clinicalDatas[t].FileName)},handleDownloadTpl:function(){var e=this;this.loading=!0,Object(o["a"])(this.currentTpl.id).then((function(t){e.loading=!1})).catch((function(){e.loading=!1}))},close:function(){this.$emit("close")}}},l=s,c=i("2877"),u=Object(c["a"])(l,n,a,!1,null,"4b797971",null);t["default"]=u.exports},"2f07":function(e,t,i){},"2f19":function(e,t,i){},"2f31":function(e,t,i){var n=i("3eba"),a=i("ae75");i("10cc"),i("f31f"),i("c2dd"),i("b8ec"),i("fecb"),n.registerPreprocessor(a)},"2f45":function(e,t,i){var n=i("6d8b"),a=n.each,r=n.createHashMap,o=(n.assert,i("4e08")),s=(o.__DEV__,r(["tooltip","label","itemName","itemId","seriesName"]));function l(e){var t={},i=t.encode={},n=r(),o=[],l=[],u=t.userOutput={dimensionNames:e.dimensions.slice(),encode:{}};a(e.dimensions,(function(t){var a=e.getDimensionInfo(t),r=a.coordDim;if(r){var f=a.coordDimIndex;c(i,r)[f]=t,a.isExtraCoord||(n.set(r,1),d(a.type)&&(o[0]=t),c(u.encode,r)[f]=a.index),a.defaultTooltip&&l.push(t)}s.each((function(e,t){var n=c(i,t),r=a.otherDims[t];null!=r&&!1!==r&&(n[r]=a.name)}))}));var f=[],h={};n.each((function(e,t){var n=i[t];h[t]=n[0],f=f.concat(n)})),t.dataDimsOnCoord=f,t.encodeFirstDimNotExtra=h;var p=i.label;p&&p.length&&(o=p.slice());var m=i.tooltip;return m&&m.length?l=m.slice():l.length||(l=o.slice()),i.defaultedLabel=o,i.defaultedTooltip=l,t}function c(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function u(e){return"category"===e?"ordinal":"time"===e?"time":"float"}function d(e){return!("ordinal"===e||"time"===e)}t.OTHER_DIMENSIONS=s,t.summarizeDimensions=l,t.getDimensionTypeByAxis=u},"2f6a":function(e,t,i){},"2f73":function(e,t,i){var n=i("3eba"),a=i("6d8b"),r=i("1e32");i("1ccf"),i("f5e6"),i("792e"),i("cb8f"),i("6acf"),n.registerLayout(a.curry(r,"bar")),n.extendComponentView({type:"polar"})},"2f91":function(e,t){var i=["itemStyle","borderColor"];function n(e,t){var n=e.get("color");e.eachRawSeriesByType("boxplot",(function(t){var a=n[t.seriesIndex%n.length],r=t.getData();r.setVisual({legendSymbol:"roundRect",color:t.get(i)||a}),e.isSeriesFiltered(t)||r.each((function(e){var t=r.getItemModel(e);r.setItemVisual(e,{color:t.get(i,!0)})}))}))}e.exports=n},"2fb0":function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-edit",use:"icon-edit-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-edit"><path d="M106.133 67.2a4.797 4.797 0 0 0-4.8 4.8c0 .187.014.36.027.533h-.027V118.4H9.6V26.667h50.133c2.654 0 4.8-2.147 4.8-4.8 0-2.654-2.146-4.8-4.8-4.8H9.6a9.594 9.594 0 0 0-9.6 9.6V118.4c0 5.307 4.293 9.6 9.6 9.6h91.733c5.307 0 9.6-4.293 9.6-9.6V72.533h-.026c.013-.173.026-.346.026-.533 0-2.653-2.146-4.8-4.8-4.8z" /><path d="M125.16 13.373L114.587 2.8c-3.747-3.747-9.854-3.72-13.6.027l-52.96 52.96a4.264 4.264 0 0 0-.907 1.36L33.813 88.533c-.746 1.76-.226 3.534.907 4.68 1.133 1.147 2.92 1.667 4.693.92l31.4-13.293c.507-.213.96-.52 1.36-.907l52.96-52.96c3.747-3.746 3.774-9.853.027-13.6zM66.107 72.4l-18.32 7.76 7.76-18.32L92.72 24.667l10.56 10.56L66.107 72.4zm52.226-52.227l-8.266 8.267-10.56-10.56 8.266-8.267.027-.026 10.56 10.56-.027.026z" /></symbol>'});o.a.add(s);t["default"]=s},"2fd0":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"clinical-data-wrapper"},[i("el-tabs",{attrs:{type:"border-card"}},e._l(e.clinicalDatas,(function(t){return i("el-tab-pane",{key:t.ClinicalDataTrialSetId,attrs:{label:t.ClinicalDataSetName}},[1*t.ClinicalUploadType===0?i("div",[i("h4",[e._v(e._s(e.$t("trials:uploadClinicalData:title:pastTreatment")))]),e._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.ClinicalTableData.PreviousHistoryList}},[i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Position",label:e.$t("trials:uploadClinicalData:table:bodyPart"),width:"180"}}),e._v(" "),i("el-table-column",{attrs:{prop:"StartTime",label:e.$t("trials:uploadClinicalData:table:beginDate"),width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.StartTime?e.moment(t.row.StartTime).format("YYYY-MM-DD"):"")+"\n ")]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"EndTime",label:e.$t("trials:uploadClinicalData:table:endDate"),width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.EndTime?e.moment(t.row.EndTime).format("YYYY-MM-DD"):"")+"\n ")]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"IsPD",label:e.$t("trials:uploadClinicalData:table:isPD"),width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("IsPdEnum",t.row.IsPD))+"\n ")]}}],null,!0)})],1),e._v(" "),i("h4",[e._v(e._s(e.$t("trials:uploadClinicalData:title:pastSurgery")))]),e._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.ClinicalTableData.PreviousSurgeryList}},[i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"OperationName",label:e.$t("trials:uploadClinicalData:table:surgeryName"),width:"180"}}),e._v(" "),i("el-table-column",{attrs:{prop:"OperationTime",label:e.$t("trials:uploadClinicalData:table:surgeryDate"),width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.OperationTime?e.moment(t.row.OperationTime).format("YYYY-MM-DD"):"")+"\n ")]}}],null,!0)})],1),e._v(" "),i("h4",[e._v(e._s(e.$t("trials:uploadClinicalData:title:others")))]),e._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.ClinicalTableData.PreviousOtherList}},[i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TreatmentType",label:e.$t("trials:uploadClinicalData:table:treatmentType"),width:"180"}}),e._v(" "),i("el-table-column",{attrs:{prop:"StartTime",label:e.$t("trials:uploadClinicalData:table:treatmentbeginDate"),width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.StartTime?e.moment(t.row.StartTime).format("YYYY-MM-DD"):"")+"\n ")]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"EndTime",label:e.$t("trials:uploadClinicalData:table:treatmentendDate"),width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.EndTime?e.moment(t.row.EndTime).format("YYYY-MM-DD"):"")+"\n ")]}}],null,!0)})],1)],1):e._e(),e._v(" "),1*t.ClinicalUploadType===1?i("div",[i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.PDFFileList}},[i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"FileName",label:e.$t("trials:uploadClinicalData:table:fileName"),width:"250"}}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:e.$t("trials:uploadClinicalData:table:uploadedTime"),width:"200"}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(i){return i.preventDefault(),e.preview(t.row.Path)}}},[e._v("\n "+e._s(e.$t("trials:uploadClinicalData:action:preview"))+"\n ")])]}}],null,!0)})],1)],1):e._e()])})),1)],1)},a=[],r=(i("c5f6"),i("3e42")),o=i("c1df"),s=i.n(o),l={name:"ClinicalData",props:{subjectVisitId:{type:String,required:!0},enumType:{type:Number,default:0},subjectId:{type:String,required:!0},data:{type:Object,default:function(){return{}}},subjectClinicalData:{type:Object,default:function(){return{}}}},data:function(){return{loading:!1,moment:s.a,clinicalDatas:[]}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0;var t={subjectVisitId:this.subjectVisitId,trialId:this.$route.query.trialId,subjectId:this.subjectId,isBaseLine:this.data.IsBaseLine};Object(r["Nb"])(t).then((function(t){e.clinicalDatas=t.Result,e.loading=!1})).catch((function(){e.loading=!1}))},preview:function(e){e&&window.open(e,"_blank")}}},c=l,u=i("2877"),d=Object(u["a"])(c,n,a,!1,null,null,null);t["default"]=d.exports},"2fea":function(e,t,i){},3014:function(e,t,i){var n=i("4f85"),a=i("3301"),r=n.extend({type:"series.__base_bar__",getInitialData:function(e,t){return a(this.getSource(),this,{useEncodeDefaulter:!0})},getMarkerPosition:function(e){var t=this.coordinateSystem;if(t){var i=t.dataToPoint(t.clampData(e)),n=this.getData(),a=n.getLayout("offset"),r=n.getLayout("size"),o=t.getBaseAxis().isHorizontal()?0:1;return i[o]+=a+r/2,i}return[NaN,NaN]},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",itemStyle:{},emphasis:{}}});e.exports=r},3016:function(e,t,i){"use strict";i("4203")},"303f":function(e,t,i){e.exports=i.p+"static/img/QC.0b5cd448.png"},3041:function(e,t,i){var n=i("e1fc"),a=i("0da8"),r=i("76a5"),o=i("d9fc"),s=i("c7a2"),l=i("ae69"),c=i("cb11"),u=i("cbe5"),d=i("87b1"),f=i("d498"),h=i("48a9"),p=i("2b61"),m=i("1687"),g=i("342d"),v=g.createFromString,b=i("6d8b"),y=b.isString,w=b.extend,_=b.defaults,I=b.trim,x=b.each,S=/[\s,]+/;function T(e){if(y(e)){var t=new DOMParser;e=t.parseFromString(e,"text/xml")}9===e.nodeType&&(e=e.firstChild);while("svg"!==e.nodeName.toLowerCase()||1!==e.nodeType)e=e.nextSibling;return e}function C(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}C.prototype.parse=function(e,t){t=t||{};var i=T(e);if(!i)throw new Error("Illegal svg");var a=new n;this._root=a;var r=i.getAttribute("viewBox")||"",o=parseFloat(i.getAttribute("width")||t.width),l=parseFloat(i.getAttribute("height")||t.height);isNaN(o)&&(o=null),isNaN(l)&&(l=null),N(i,a,null,!0);var c,u,d=i.firstChild;while(d)this._parseNode(d,a),d=d.nextSibling;if(r){var f=I(r).split(S);f.length>=4&&(c={x:parseFloat(f[0]||0),y:parseFloat(f[1]||0),width:parseFloat(f[2]),height:parseFloat(f[3])})}if(c&&null!=o&&null!=l&&(u=V(c,o,l),!t.ignoreViewBox)){var h=a;a=new n,a.add(h),h.scale=u.scale.slice(),h.position=u.position.slice()}return t.ignoreRootClip||null==o||null==l||a.setClipPath(new s({shape:{x:0,y:0,width:o,height:l}})),{root:a,width:o,height:l,viewBoxRect:c,viewBoxTransform:u}},C.prototype._parseNode=function(e,t){var i,n=e.nodeName.toLowerCase();if("defs"===n?this._isDefine=!0:"text"===n&&(this._isText=!0),this._isDefine){var a=R[n];if(a){var r=a.call(this,e),o=e.getAttribute("id");o&&(this._defs[o]=r)}}else{a=k[n];a&&(i=a.call(this,e,t),t.add(i))}var s=e.firstChild;while(s)1===s.nodeType&&this._parseNode(s,i),3===s.nodeType&&this._isText&&this._parseText(s,i),s=s.nextSibling;"defs"===n?this._isDefine=!1:"text"===n&&(this._isText=!1)},C.prototype._parseText=function(e,t){if(1===e.nodeType){var i=e.getAttribute("dx")||0,n=e.getAttribute("dy")||0;this._textX+=parseFloat(i),this._textY+=parseFloat(n)}var a=new r({style:{text:e.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});L(t,a),N(e,a,this._defs);var o=a.style.fontSize;o&&o<9&&(a.style.fontSize=9,a.scale=a.scale||[1,1],a.scale[0]*=o/9,a.scale[1]*=o/9);var s=a.getBoundingRect();return this._textX+=s.width,t.add(a),a};var k={g:function(e,t){var i=new n;return L(t,i),N(e,i,this._defs),i},rect:function(e,t){var i=new s;return L(t,i),N(e,i,this._defs),i.setShape({x:parseFloat(e.getAttribute("x")||0),y:parseFloat(e.getAttribute("y")||0),width:parseFloat(e.getAttribute("width")||0),height:parseFloat(e.getAttribute("height")||0)}),i},circle:function(e,t){var i=new o;return L(t,i),N(e,i,this._defs),i.setShape({cx:parseFloat(e.getAttribute("cx")||0),cy:parseFloat(e.getAttribute("cy")||0),r:parseFloat(e.getAttribute("r")||0)}),i},line:function(e,t){var i=new c;return L(t,i),N(e,i,this._defs),i.setShape({x1:parseFloat(e.getAttribute("x1")||0),y1:parseFloat(e.getAttribute("y1")||0),x2:parseFloat(e.getAttribute("x2")||0),y2:parseFloat(e.getAttribute("y2")||0)}),i},ellipse:function(e,t){var i=new l;return L(t,i),N(e,i,this._defs),i.setShape({cx:parseFloat(e.getAttribute("cx")||0),cy:parseFloat(e.getAttribute("cy")||0),rx:parseFloat(e.getAttribute("rx")||0),ry:parseFloat(e.getAttribute("ry")||0)}),i},polygon:function(e,t){var i=e.getAttribute("points");i&&(i=O(i));var n=new d({shape:{points:i||[]}});return L(t,n),N(e,n,this._defs),n},polyline:function(e,t){var i=new u;L(t,i),N(e,i,this._defs);var n=e.getAttribute("points");n&&(n=O(n));var a=new f({shape:{points:n||[]}});return a},image:function(e,t){var i=new a;return L(t,i),N(e,i,this._defs),i.setStyle({image:e.getAttribute("xlink:href"),x:e.getAttribute("x"),y:e.getAttribute("y"),width:e.getAttribute("width"),height:e.getAttribute("height")}),i},text:function(e,t){var i=e.getAttribute("x")||0,a=e.getAttribute("y")||0,r=e.getAttribute("dx")||0,o=e.getAttribute("dy")||0;this._textX=parseFloat(i)+parseFloat(r),this._textY=parseFloat(a)+parseFloat(o);var s=new n;return L(t,s),N(e,s,this._defs),s},tspan:function(e,t){var i=e.getAttribute("x"),a=e.getAttribute("y");null!=i&&(this._textX=parseFloat(i)),null!=a&&(this._textY=parseFloat(a));var r=e.getAttribute("dx")||0,o=e.getAttribute("dy")||0,s=new n;return L(t,s),N(e,s,this._defs),this._textX+=r,this._textY+=o,s},path:function(e,t){var i=e.getAttribute("d")||"",n=v(i);return L(t,n),N(e,n,this._defs),n}},R={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||0,10),i=parseInt(e.getAttribute("y1")||0,10),n=parseInt(e.getAttribute("x2")||10,10),a=parseInt(e.getAttribute("y2")||0,10),r=new h(t,i,n,a);return D(e,r),r},radialgradient:function(e){}};function D(e,t){var i=e.firstChild;while(i){if(1===i.nodeType){var n=i.getAttribute("offset");n=n.indexOf("%")>0?parseInt(n,10)/100:n?parseFloat(n):0;var a=i.getAttribute("stop-color")||"#000000";t.addColorStop(n,a)}i=i.nextSibling}}function L(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),_(t.__inheritedStyle,e.__inheritedStyle))}function O(e){for(var t=I(e).split(S),i=[],n=0;n<t.length;n+=2){var a=parseFloat(t[n]),r=parseFloat(t[n+1]);i.push([a,r])}return i}var $={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-align":"textAlign","alignment-baseline":"textBaseline"};function N(e,t,i,n){var a=t.__inheritedStyle||{},r="text"===t.type;if(1===e.nodeType&&(M(e,t),w(a,j(e)),!n))for(var o in $)if($.hasOwnProperty(o)){var s=e.getAttribute(o);null!=s&&(a[$[o]]=s)}var l=r?"textFill":"fill",c=r?"textStroke":"stroke";t.style=t.style||new p;var u=t.style;null!=a.fill&&u.set(l,P(a.fill,i)),null!=a.stroke&&u.set(c,P(a.stroke,i)),x(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(e){var t="lineWidth"===e&&r?"textStrokeWidth":e;null!=a[e]&&u.set(t,parseFloat(a[e]))})),a.textBaseline&&"auto"!==a.textBaseline||(a.textBaseline="alphabetic"),"alphabetic"===a.textBaseline&&(a.textBaseline="bottom"),"start"===a.textAlign&&(a.textAlign="left"),"end"===a.textAlign&&(a.textAlign="right"),x(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign","textBaseline"],(function(e){null!=a[e]&&u.set(e,a[e])})),a.lineDash&&(t.style.lineDash=I(a.lineDash).split(S)),u[c]&&"none"!==u[c]&&(t[c]=!0),t.__inheritedStyle=a}var A=/url\(\s*#(.*?)\)/;function P(e,t){var i=t&&e&&e.match(A);if(i){var n=I(i[1]),a=t[n];return a}return e}var E=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g;function M(e,t){var i=e.getAttribute("transform");if(i){i=i.replace(/,/g," ");var n=null,a=[];i.replace(E,(function(e,t,i){a.push(t,i)}));for(var r=a.length-1;r>0;r-=2){var o=a[r],s=a[r-1];switch(n=n||m.create(),s){case"translate":o=I(o).split(S),m.translate(n,n,[parseFloat(o[0]),parseFloat(o[1]||0)]);break;case"scale":o=I(o).split(S),m.scale(n,n,[parseFloat(o[0]),parseFloat(o[1]||o[0])]);break;case"rotate":o=I(o).split(S),m.rotate(n,n,parseFloat(o[0]));break;case"skew":o=I(o).split(S),console.warn("Skew transform is not supported yet");break;case"matrix":o=I(o).split(S);n[0]=parseFloat(o[0]),n[1]=parseFloat(o[1]),n[2]=parseFloat(o[2]),n[3]=parseFloat(o[3]),n[4]=parseFloat(o[4]),n[5]=parseFloat(o[5]);break}}t.setLocalTransform(n)}}var F=/([^\s:;]+)\s*:\s*([^:;]+)/g;function j(e){var t=e.getAttribute("style"),i={};if(!t)return i;var n,a={};F.lastIndex=0;while(null!=(n=F.exec(t)))a[n[1]]=n[2];for(var r in $)$.hasOwnProperty(r)&&null!=a[r]&&(i[$[r]]=a[r]);return i}function V(e,t,i){var n=t/e.width,a=i/e.height,r=Math.min(n,a),o=[r,r],s=[-(e.x+e.width/2)*r+t/2,-(e.y+e.height/2)*r+i/2];return{scale:o,position:s}}function q(e,t){var i=new C;return i.parse(e,t)}t.parseXML=T,t.makeViewBoxTransform=V,t.parseSVG=q},3059:function(e,t,i){"use strict";i("132c")},3075:function(e,t,i){"use strict";i("6e2e")},"307a":function(e,t,i){var n=i("6d8b"),a=i("eaea"),r=i("3842"),o=[20,140],s=a.extend({type:"visualMap.continuous",defaultOption:{align:"auto",calculable:!1,range:null,realtime:!0,itemHeight:null,itemWidth:null,hoverLink:!0,hoverLinkDataSize:null,hoverLinkOnHandle:null},optionUpdated:function(e,t){s.superApply(this,"optionUpdated",arguments),this.resetExtent(),this.resetVisual((function(e){e.mappingMethod="linear",e.dataExtent=this.getExtent()})),this._resetRange()},resetItemSize:function(){s.superApply(this,"resetItemSize",arguments);var e=this.itemSize;"horizontal"===this._orient&&e.reverse(),(null==e[0]||isNaN(e[0]))&&(e[0]=o[0]),(null==e[1]||isNaN(e[1]))&&(e[1]=o[1])},_resetRange:function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):n.isArray(t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},completeVisualOption:function(){a.prototype.completeVisualOption.apply(this,arguments),n.each(this.stateList,(function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=0)}),this)},setSelected:function(e){this.option.range=e.slice(),this._resetRange()},getSelected:function(){var e=this.getExtent(),t=r.asc((this.get("range")||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]<e[0]&&(t[0]=e[0]),t[1]<e[0]&&(t[1]=e[0]),t},getValueState:function(e){var t=this.option.range,i=this.getExtent();return(t[0]<=i[0]||t[0]<=e)&&(t[1]>=i[1]||e<=t[1])?"inRange":"outOfRange"},findTargetDataIndices:function(e){var t=[];return this.eachTargetSeries((function(i){var n=[],a=i.getData();a.each(this.getDataDimension(a),(function(t,i){e[0]<=t&&t<=e[1]&&n.push(i)}),this),t.push({seriesId:i.id,dataIndex:n})}),this),t},getVisualMeta:function(e){var t=l(this,"outOfRange",this.getExtent()),i=l(this,"inRange",this.option.range.slice()),n=[];function a(t,i){n.push({value:t,color:e(t,i)})}for(var r=0,o=0,s=i.length,c=t.length;o<c&&(!i.length||t[o]<=i[0]);o++)t[o]<i[r]&&a(t[o],"outOfRange");for(var u=1;r<s;r++,u=0)u&&n.length&&a(i[r],"outOfRange"),a(i[r],"inRange");for(u=1;o<c;o++)(!i.length||i[i.length-1]<t[o])&&(u&&(n.length&&a(n[n.length-1].value,"outOfRange"),u=0),a(t[o],"outOfRange"));var d=n.length;return{stops:n,outerColors:[d?n[0].color:"transparent",d?n[d-1].color:"transparent"]}}});function l(e,t,i){if(i[0]===i[1])return i.slice();for(var n=200,a=(i[1]-i[0])/n,r=i[0],o=[],s=0;s<=n&&r<i[1];s++)o.push(r),r+=a;return o.push(i[1]),o}var c=s;e.exports=c},"307b":function(e,t,i){var n=i("6d8b");function a(e,t){var i=this.getAxis(),n=t instanceof Array?t[0]:t,a=(e instanceof Array?e[0]:e)/2;return"category"===i.type?i.getBandWidth():Math.abs(i.dataToCoord(n-a)-i.dataToCoord(n+a))}function r(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:n.bind(a,e)}}}e.exports=r},"307d":function(e,t,i){var n=i("6d8b"),a=i("6179"),r=i("3842"),o=i("923d"),s=i("73ca"),l=i("88f0"),c=i("ee1a"),u=c.getStackedDimension,d=function(e,t,i,a){var r=e.getData(),s=a.type;if(!n.isArray(a)&&("min"===s||"max"===s||"average"===s||"median"===s||null!=a.xAxis||null!=a.yAxis)){var l,c;if(null!=a.yAxis||null!=a.xAxis)l=t.getAxis(null!=a.yAxis?"y":"x"),c=n.retrieve(a.yAxis,a.xAxis);else{var d=o.getAxisInfo(a,r,t,e);l=d.valueAxis;var f=u(r,d.valueDataDim);c=o.numCalculate(r,f,s)}var h="x"===l.dim?0:1,p=1-h,m=n.clone(a),g={};m.type=null,m.coord=[],g.coord=[],m.coord[p]=-1/0,g.coord[p]=1/0;var v=i.get("precision");v>=0&&"number"===typeof c&&(c=+c.toFixed(Math.min(v,20))),m.coord[h]=g.coord[h]=c,a=[m,g,{type:s,valueIndex:a.valueIndex,value:c}]}return a=[o.dataTransform(e,a[0]),o.dataTransform(e,a[1]),n.extend({},a[2])],a[2].type=a[2].type||"",n.merge(a[2],a[0]),n.merge(a[2],a[1]),a};function f(e){return!isNaN(e)&&!isFinite(e)}function h(e,t,i,n){var a=1-e,r=n.dimensions[e];return f(t[a])&&f(i[a])&&t[e]===i[e]&&n.getAxis(r).containData(t[e])}function p(e,t){if("cartesian2d"===e.type){var i=t[0].coord,n=t[1].coord;if(i&&n&&(h(1,i,n,e)||h(0,i,n,e)))return!0}return o.dataFilter(e,t[0])&&o.dataFilter(e,t[1])}function m(e,t,i,n,a){var o,s=n.coordinateSystem,l=e.getItemModel(t),c=r.parsePercent(l.get("x"),a.getWidth()),u=r.parsePercent(l.get("y"),a.getHeight());if(isNaN(c)||isNaN(u)){if(n.getMarkerPosition)o=n.getMarkerPosition(e.getValues(e.dimensions,t));else{var d=s.dimensions,h=e.get(d[0],t),p=e.get(d[1],t);o=s.dataToPoint([h,p])}if("cartesian2d"===s.type){var m=s.getAxis("x"),g=s.getAxis("y");d=s.dimensions;f(e.get(d[0],t))?o[0]=m.toGlobalCoord(m.getExtent()[i?0:1]):f(e.get(d[1],t))&&(o[1]=g.toGlobalCoord(g.getExtent()[i?0:1]))}isNaN(c)||(o[0]=c),isNaN(u)||(o[1]=u)}else o=[c,u];e.setItemLayout(t,o)}var g=l.extend({type:"markLine",updateTransform:function(e,t,i){t.eachSeries((function(e){var t=e.markLineModel;if(t){var n=t.getData(),a=t.__from,r=t.__to;a.each((function(t){m(a,t,!0,e,i),m(r,t,!1,e,i)})),n.each((function(e){n.setItemLayout(e,[a.getItemLayout(e),r.getItemLayout(e)])})),this.markerGroupMap.get(e.id).updateLayout()}}),this)},renderSeries:function(e,t,i,a){var r=e.coordinateSystem,o=e.id,l=e.getData(),c=this.markerGroupMap,u=c.get(o)||c.set(o,new s);this.group.add(u.group);var d=v(r,e,t),f=d.from,h=d.to,p=d.line;t.__from=f,t.__to=h,t.setData(p);var g=t.get("symbol"),b=t.get("symbolSize");function y(t,i,n){var r=t.getItemModel(i);m(t,i,n,e,a),t.setItemVisual(i,{symbolRotate:r.get("symbolRotate"),symbolSize:r.get("symbolSize")||b[n?0:1],symbol:r.get("symbol",!0)||g[n?0:1],color:r.get("itemStyle.color")||l.getVisual("color")})}n.isArray(g)||(g=[g,g]),"number"===typeof b&&(b=[b,b]),d.from.each((function(e){y(f,e,!0),y(h,e,!1)})),p.each((function(e){var t=p.getItemModel(e).get("lineStyle.color");p.setItemVisual(e,{color:t||f.getItemVisual(e,"color")}),p.setItemLayout(e,[f.getItemLayout(e),h.getItemLayout(e)]),p.setItemVisual(e,{fromSymbolRotate:f.getItemVisual(e,"symbolRotate"),fromSymbolSize:f.getItemVisual(e,"symbolSize"),fromSymbol:f.getItemVisual(e,"symbol"),toSymbolRotate:h.getItemVisual(e,"symbolRotate"),toSymbolSize:h.getItemVisual(e,"symbolSize"),toSymbol:h.getItemVisual(e,"symbol")})})),u.updateData(p),d.line.eachItemGraphicEl((function(e,i){e.traverse((function(e){e.dataModel=t}))})),u.__keep=!0,u.group.silent=t.get("silent")||e.get("silent")}});function v(e,t,i){var r;r=e?n.map(e&&e.dimensions,(function(e){var i=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return n.defaults({name:e},i)})):[{name:"value",type:"float"}];var s=new a(r,i),l=new a(r,i),c=new a([],i),u=n.map(i.get("data"),n.curry(d,t,e,i));e&&(u=n.filter(u,n.curry(p,e)));var f=e?o.dimValueGetter:function(e){return e.value};return s.initData(n.map(u,(function(e){return e[0]})),null,f),l.initData(n.map(u,(function(e){return e[1]})),null,f),c.initData(n.map(u,(function(e){return e[2]}))),c.hasItemOption=!0,{from:s,to:l,line:c}}e.exports=g},"307d1":function(e,t,i){"use strict";i("d898")},"30a1":function(e,t,i){"use strict";i("25fc")},"30a3":function(e,t,i){var n=i("6d8b"),a=i("607d"),r=a.Dispatcher,o=i("98b7"),s=i("06ad"),l=function(e){e=e||{},this.stage=e.stage||{},this.onframe=e.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,r.call(this)};l.prototype={constructor:l,addClip:function(e){this._clips.push(e)},addAnimator:function(e){e.animation=this;for(var t=e.getClips(),i=0;i<t.length;i++)this.addClip(t[i])},removeClip:function(e){var t=n.indexOf(this._clips,e);t>=0&&this._clips.splice(t,1)},removeAnimator:function(e){for(var t=e.getClips(),i=0;i<t.length;i++)this.removeClip(t[i]);e.animation=null},_update:function(){for(var e=(new Date).getTime()-this._pausedTime,t=e-this._time,i=this._clips,n=i.length,a=[],r=[],o=0;o<n;o++){var s=i[o],l=s.step(e,t);l&&(a.push(l),r.push(s))}for(o=0;o<n;)i[o]._needsRemove?(i[o]=i[n-1],i.pop(),n--):o++;n=a.length;for(o=0;o<n;o++)r[o].fire(a[o]);this._time=e,this.onframe(t),this.trigger("frame",t),this.stage.update&&this.stage.update()},_startLoop:function(){var e=this;function t(){e._running&&(o(t),!e._paused&&e._update())}this._running=!0,o(t)},start:function(){this._time=(new Date).getTime(),this._pausedTime=0,this._startLoop()},stop:function(){this._running=!1},pause:function(){this._paused||(this._pauseStart=(new Date).getTime(),this._paused=!0)},resume:function(){this._paused&&(this._pausedTime+=(new Date).getTime()-this._pauseStart,this._paused=!1)},clear:function(){this._clips=[]},isFinished:function(){return!this._clips.length},animate:function(e,t){t=t||{};var i=new s(e,t.loop,t.getter,t.setter);return this.addAnimator(i),i}},n.mixin(l,r);var c=l;e.exports=c},"30b0":function(e,t,i){"use strict";i.d(t,"b",(function(){return n})),i.d(t,"a",(function(){return a}));var n=[{type:"index"},{prop:"UserType",label:"User Type",minWidth:120,showOverflowTooltip:!0},{prop:"UserTypeShortName",label:"Shortname",minWidth:100,showOverflowTooltip:!0},{prop:"Type",label:"Group",hidden:!0,minWidth:100,showOverflowTooltip:!0,slot:"TypeSlot"},{prop:"Description",label:"Description",minWidth:100,showOverflowTooltip:!0},{type:"operate",label:"Action",minWidth:100,operates:[{name:"Edit",type:"primary",emitKey:"edit"},{name:"Delete",type:"danger",emitKey:"delete"}]}],a={visible:!1,title:"",width:"600px",showClose:!0}},3114:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",[i("div",{staticClass:"base-dialog-body"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{"min-height":"400px"},attrs:{data:e.list,stripe:"",height:"100"},on:{"selection-change":e.handleSelectChange}},[i("el-table-column",{attrs:{selectable:e.selectable,type:"selection",align:"left",width:"45"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialSiteCode",label:e.$t("trials:grouptConsistencyAnalysis:table:siteCode"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode",label:e.$t("trials:grouptConsistencyAnalysis:table:subjectCode"),"min-width":"120",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ValidVisitCount",label:e.$t("trials:grouptConsistencyAnalysis:table:validVisitCount"),"min-width":"160",sortable:"custom","show-overflow-tooltip":""}})],1),e._v(" "),i("div",{staticStyle:{"text-align":"right"}},[i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.close}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.save}},[e._v("\n "+e._s(e.$t("trials:grouptConsistencyAnalysis:button:create"))+"\n ")])],1)],1)])},a=[],r=(i("c5f6"),i("958c")),o=i("6071"),s=i("333d"),l=function(){return{PageIndex:1,PageSize:20,Asc:!0,SortField:"",TrialId:null,TaskConsistentRuleId:null}},c={name:"TrialsNotice",components:{BaseContainer:o["default"],Pagination:s["default"]},props:{changeNum:{type:Number,default:function(){return 0}},IsSelfAnalysis:{type:Boolean,default:function(){return!1}},TrialReadingCriterionId:{type:String,required:!0},data:{type:Object,default:function(){return{}}}},watch:{changeNum:function(e){this.getList()}},data:function(){return{searchData:l(),list:[],total:0,loading:!1,trialId:this.$route.query.trialId,SelectList:[],btnLoading:!1}},mounted:function(){this.getList()},methods:{selectable:function(e){return!e.IsHaveGeneratedTask},handleSelectChange:function(e){this.SelectList=e},save:function(){var e=this;if(0!==this.SelectList.length){this.btnLoading=!0,this.loading=!0;var t={TrialId:this.$route.query.trialId,SubejctIdList:this.SelectList.map((function(e){return e.SubjectId}))};Object(r["o"])(t).then((function(t){e.loading=!1,e.btnLoading=!1,e.$message.success(e.$t("common:message:savedSuccessfully")),e.close(),e.$emit("getList")})).catch((function(){e.loading=!1,e.btnLoading=!1}))}else this.$message.error(this.$t("trials:grouptConsistencyAnalysis:message:msg1"))},getList:function(){var e=this;this.searchData.TrialId=this.$route.query.trialId,this.loading=!0,this.searchData.TrialReadingCriterionId=this.TrialReadingCriterionId,Object(r["C"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},close:function(){this.$emit("close")},handleSortChange:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()}}},u=c,d=i("2877"),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},"311a":function(e,t,i){var n=i("3eba");i("d01c"),i("5b69"),i("bdc0");var a=i("81ac"),r=i("0e0f");n.registerLayout(a),n.registerVisual(r)},"313e":function(e,t,i){var n=i("3eba");(function(){for(var e in n){if(null==n||!n.hasOwnProperty(e)||"default"===e||"__esModule"===e)return;t[e]=n[e]}})();var a=i("b719");(function(){for(var e in a){if(null==a||!a.hasOwnProperty(e)||"default"===e||"__esModule"===e)return;t[e]=a[e]}})(),i("0352"),i("ef97"),i("94b1"),i("c037"),i("15af"),i("8deb"),i("675c"),i("ef97a"),i("dae1"),i("23ee"),i("07e6"),i("a4b1"),i("0817"),i("311a"),i("fa52"),i("085d"),i("1111"),i("a7e2"),i("5ce2"),i("aadf"),i("6c12f"),i("d7169"),i("e057"),i("cd12"),i("2f73"),i("d070"),i("2cfc"),i("f306"),i("9390"),i("7f59"),i("b11c"),i("007d"),i("cb8f"),i("2f31"),i("627c"),i("ee95"),i("db0e"),i("95a8"),i("7e32"),i("0b4b"),i("d28f"),i("0a6d"),i("7f72"),i("e4d1"),i("5450"),i("7419"),i("29a9"),i("f170"),i("8ee0")},"317d":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[i("el-form-item",{attrs:{label:e.$t("trials:adRules:title:arbitrationRule"),"label-width":"120px"}},[i("el-radio-group",{attrs:{disabled:e.OtherInfo.IsSign},model:{value:e.JudgyInfo.ArbitrationRule,callback:function(t){e.$set(e.JudgyInfo,"ArbitrationRule",t)},expression:"JudgyInfo.ArbitrationRule"}},e._l(e.$d.ArbitrationRule,(function(t){return i("el-radio",{key:t.id,attrs:{disabled:!e.JudgyInfo.IsReadingTaskViewInOrder||!0,label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1),e._v(" "),i("el-collapse",{model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},e._l(e.QuestionList,(function(t,n){return i("el-collapse-item",{key:t.ReadingQuestionTrialId,staticStyle:{position:"relative"},attrs:{name:t.ReadingQuestionTrialId}},[i("div",{attrs:{slot:"title"},slot:"title"},[e._v("\n "+e._s(t.PageName)+"Q"+e._s(n+1)+""+e._s(t.QuestionName)+"\n ")]),e._v(" "),i("div",{staticStyle:{position:"relative"}},[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:setting:reading-unit:edit"],expression:"['trials:trials-panel:setting:reading-unit:edit']"}],staticStyle:{position:"absolute",right:"0",top:"0","z-index":"10"},attrs:{size:"mini",type:"primary",disabled:e.OtherInfo.IsSign},on:{click:function(i){return e.apply(t.ReadingQuestionTrialId,n)}}},[e._v(e._s(e.$t("common:button:save")))]),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:setting:reading-unit:edit"],expression:"['trials:trials-panel:setting:reading-unit:edit']"}],staticStyle:{position:"absolute",right:"60px",top:"0","z-index":"10"},attrs:{size:"mini",type:"primary",disabled:e.OtherInfo.IsSign},on:{click:function(i){return e.reset(t.ReadingQuestionTrialId,n)}}},[e._v(e._s(e.$t("common:button:reset")))]),e._v(" "),i("el-form-item",{attrs:{"label-width":"150px",label:e.$t("trials:adRules:title:judgeTypeEnum")}},[i("el-radio-group",{model:{value:e.QuestionList[n].JudgeType,callback:function(t){e.$set(e.QuestionList[n],"JudgeType",t)},expression:"QuestionList[index].JudgeType"}},e._l(e.$d.JudgeTypeEnum,(function(t){return i("el-radio",{key:t.id,attrs:{disabled:e.OtherInfo.IsSign||!e.hasPermi(["trials:trials-panel:setting:reading-unit:edit"]),label:t.value}},[e._v(e._s(t.label))])})),1)],1)],1),e._v(" "),3===e.QuestionList[n].JudgeType?i("div",{staticStyle:{"text-align":"right",margin:"10px 0"}},[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:setting:reading-unit:edit"],expression:"['trials:trials-panel:setting:reading-unit:edit']"}],attrs:{size:"mini",type:"primary",disabled:e.OtherInfo.IsSign},on:{click:function(t){return e.addGroup(n,null)}}},[e._v(e._s(e.$t("trials:adRules:button:addRule")))])],1):e._e(),e._v(" "),3===e.QuestionList[n].JudgeType?i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.QuestionList[n].AnswerGroupList,border:"",stripe:""}},[i("el-table-column",{attrs:{prop:"AnswerGroupA",label:e.$t("trials:adRules:title:order"),width:"50"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.$index+1)+"\n ")]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"AnswerGroupA",label:e.$t("trials:adRules:title:answerGroupA"),"min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(3===e.QuestionList[n].QuestionGenre?t.row.AnswerGroupA.map((function(t){return e.$fd(e.QuestionList[n].DictionaryCode,parseInt(t))})).toString():t.row.AnswerGroupA.toString())+"\n ")]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"AnswerGroupB",label:e.$t("trials:adRules:title:answerGroupB"),"min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(3===e.QuestionList[n].QuestionGenre?t.row.AnswerGroupB.map((function(t){return e.$fd(e.QuestionList[n].DictionaryCode,parseInt(t))})).toString():t.row.AnswerGroupB.toString())+"\n ")]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"AnswerGroupB",label:e.$t("common:action:action"),"min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{icon:"el-icon-edit",circle:"",title:e.$t("common:button:edit"),size:"mini",disabled:e.OtherInfo.IsSign},on:{click:function(i){return e.addGroup(n,t.$index)}}}),e._v(" "),i("el-button",{attrs:{icon:"el-icon-delete",circle:"",title:e.$t("common:button:delete"),size:"mini",disabled:e.OtherInfo.IsSign},on:{click:function(i){return e.tagClose(n,t.$index)}}})]}}],null,!0)})],1):e._e(),e._v(" "),2===e.QuestionList[n].JudgeType?i("div",[i("div",{staticStyle:{background:"#f6f6f6","border-radius":"20px",padding:"15px 20px","margin-top":"10px"}},[3===e.QuestionList[n].QuestionGenre?i("el-checkbox-group",{model:{value:e.QuestionList[n].grouping,callback:function(t){e.$set(e.QuestionList[n],"grouping",t)},expression:"QuestionList[index].grouping"}},e._l(e.$d[e.QuestionList[n].DictionaryCode],(function(t){return-1!==t.value?i("el-checkbox",{key:t.id,attrs:{disabled:e.OtherInfo.IsSign,label:t.value}},[e._v(e._s(t.label))]):e._e()})),1):i("el-checkbox-group",{model:{value:e.QuestionList[n].grouping,callback:function(t){e.$set(e.QuestionList[n],"grouping",t)},expression:"QuestionList[index].grouping"}},e._l(t.TypeValue.split("|"),(function(t){return i("el-checkbox",{key:t,attrs:{disabled:e.OtherInfo.IsSign,label:t}},[e._v(e._s(t))])})),1),e._v(" "),i("div",{staticStyle:{"margin-top":"20px"}},[e._v("\n "+e._s(e.$t("trials:adRules:title:selectAnswerGroup"))+"\n "),e.QuestionList[n].grouping.length>0&&3!==e.QuestionList[n].QuestionGenre?i("el-tag",[e._v(e._s(e.QuestionList[n].grouping.toString().replaceAll(",","|")))]):e._e(),e._v(" "),e.QuestionList[n].grouping.length>0&&3===e.QuestionList[n].QuestionGenre?i("el-tag",[e._v(e._s(e.QuestionList[n].grouping.map((function(t){return e.$d[e.QuestionList[n].DictionaryCode].find((function(e){return e.value===t})).label})).toString().replaceAll(",","|")))]):e._e(),e._v(" "),i("el-button",{attrs:{size:"mini",type:"primary",disabled:e.OtherInfo.IsSign},on:{click:function(t){return e.addGroup2(n)}}},[e._v("\n "+e._s(e.$t("trials:adRules:title:addGroup"))+"\n ")])],1)],1),e._v(" "),3!==e.QuestionList[n].QuestionGenre?i("div",{staticStyle:{"margin-top":"20px"}},[e._v("分组: "),e._l(e.QuestionList[n].AnswerGroup2List,(function(t){return i("el-tag",{key:t,staticStyle:{"margin-right":"10px"},attrs:{closable:""},on:{close:function(){return e.tagClose2(n,e.indexA)}}},[e._v(e._s(t))])}))],2):e._e(),e._v(" "),3===e.QuestionList[n].QuestionGenre?i("div",{staticStyle:{"margin-top":"20px"}},[e._v("\n "+e._s(e.$t("trials:adRules:title:group"))+"\n "),e._l(e.QuestionList[n].AnswerGroup2List,(function(t){return i("el-tag",{key:t,staticStyle:{"margin-right":"10px"},attrs:{closable:""},on:{close:function(){return e.tagClose2(n,e.indexA)}}},[e._v("\n "+e._s(t.split("|").map((function(t){return e.$fd(e.QuestionList[n].DictionaryCode,parseInt(t))})).join("|"))+"\n ")])}))],2):e._e()]):e._e()],1)})),1),e._v(" "),e.QuestionVisible?i("el-dialog",{attrs:{title:e.$t("trials:adRules:title:selectAnswer"),visible:e.QuestionVisible,width:"800px","close-on-click-modal":!1,"custom-class":"base-dialog-wrapper","append-to-body":""},on:{"update:visible":function(t){e.QuestionVisible=t}}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{"label-width":"110px",label:e.$t("trials:adRules:title:answerGroupA")}},[i("el-checkbox-group",{model:{value:e.QuestionList[e.selectIndex].groupingA,callback:function(t){e.$set(e.QuestionList[e.selectIndex],"groupingA",t)},expression:"QuestionList[selectIndex].groupingA"}},[e._l(e.QuestionList[e.selectIndex].TypeValue.split("|"),(function(t,n){return 3!==e.QuestionList[e.selectIndex].QuestionGenre?i("el-checkbox",{key:t,attrs:{label:t,disabled:!!e.QuestionList[e.selectIndex].groupingB.length&&~e.QuestionList[e.selectIndex].groupingB.indexOf(t)}},[e._v(e._s(t))]):e._e()})),e._v(" "),e._l(e.$d[e.QuestionList[e.selectIndex].DictionaryCode],(function(t,n){return 3===e.QuestionList[e.selectIndex].QuestionGenre&&-1!==t.value?i("el-checkbox",{key:t.id,attrs:{label:t.value,disabled:!!e.QuestionList[e.selectIndex].groupingB.length&&~e.QuestionList[e.selectIndex].groupingB.indexOf(t.value)}},[e._v(e._s(t.label))]):e._e()}))],2)],1),e._v(" "),i("el-form-item",{attrs:{"label-width":"110px",label:e.$t("trials:adRules:title:answerGroupB")}},[i("el-checkbox-group",{model:{value:e.QuestionList[e.selectIndex].groupingB,callback:function(t){e.$set(e.QuestionList[e.selectIndex],"groupingB",t)},expression:"QuestionList[selectIndex].groupingB"}},[e._l(e.QuestionList[e.selectIndex].TypeValue.split("|"),(function(t,n){return 3!==e.QuestionList[e.selectIndex].QuestionGenre?i("el-checkbox",{key:t,attrs:{label:t,disabled:!!e.QuestionList[e.selectIndex].groupingA.length&&~e.QuestionList[e.selectIndex].groupingA.indexOf(t)}},[e._v(e._s(t))]):e._e()})),e._v(" "),e._l(e.$d[e.QuestionList[e.selectIndex].DictionaryCode],(function(t,n){return 3===e.QuestionList[e.selectIndex].QuestionGenre&&-1!==t.value?i("el-checkbox",{key:t.id,attrs:{label:t.value,disabled:!!e.QuestionList[e.selectIndex].groupingA.length&&~e.QuestionList[e.selectIndex].groupingA.indexOf(t.value)}},[e._v(e._s(t.label))]):e._e()}))],2)],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:setting:reading-unit:edit"],expression:"['trials:trials-panel:setting:reading-unit:edit']"}],attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){e.QuestionVisible=!1,e.$set(e.QuestionList[e.selectIndex],"groupingA",[]),e.$set(e.QuestionList[e.selectIndex],"groupingB",[])}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:setting:reading-unit:edit"],expression:"['trials:trials-panel:setting:reading-unit:edit']"}],attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.save}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)]):e._e()],1)},a=[],r=(i("6b54"),i("5df3"),i("ac6a"),i("958c")),o=i("0662"),s={props:{trialReadingCriterionId:{type:String,default:""}},data:function(){return{CriterionList:[],QuestionList:[],ReadingQuestionCriterionTrialId:null,btnLoading:!1,loading:!1,index:0,QuestionVisible:!1,activeNames:null,indexA:null,type:null,OtherInfo:{IsSign:!0},JudgyInfo:{}}},watch:{TrialReadingCriterionId:function(e){var t=this;null!==e&&(this.loading=!0,Object(r["T"])({TrialId:this.$route.query.trialId,TrialReadingCriterionId:this.trialReadingCriterionId}).then((function(e){t.loading=!1,t.QuestionList=e.Result,t.OtherInfo=e.OtherInfo,t.activeNames=t.QuestionList.map((function(e){return e.ReadingQuestionTrialId})),t.QuestionList.forEach((function(e){t.$set(e,"grouping",[]),t.$set(e,"groupingA",[]),t.$set(e,"groupingB",[]),t.$set(e,"AnswerGroupList",Object.assign([],e.AnswerCombination)),t.$set(e,"AnswerGroup2List",Object.assign([],e.AnswerGroup))}))})).catch((function(){t.btnLoading=!1,t.loading=!1})))}},mounted:function(){this.getList(),this.getTrialJudgyInfo()},methods:{saveAllSync:function(){var e=this;return new Promise((function(t,i){var n=[];e.QuestionList.forEach((function(t,i){n.push(e.applySync(t.ReadingQuestionTrialId,i))})),Promise.all(n).then((function(e){console.log(e),t(!0)})).catch((function(e){console.log("进入catch"),t(!1)}))}))},applySync:function(e,t){var i=this;return new Promise((function(n,a){console.log(i.QuestionList[t].JudgeType),0!==i.QuestionList[t].JudgeType&&(2!==i.QuestionList[t].JudgeType||0!==i.QuestionList[t].AnswerGroup2List.length)&&(3!==i.QuestionList[t].JudgeType||0!==i.QuestionList[t].AnswerGroupList.length)?(i.btnLoading=!0,i.loading=!0,Object(r["ab"])({ReadingQuestionTrialId:e,AnswerGroup:i.QuestionList[t].AnswerGroup2List,AnswerCombination:i.QuestionList[t].AnswerGroupList,JudgeType:i.QuestionList[t].JudgeType}).then((function(e){n(),i.btnLoading=!1,i.loading=!1})).catch((function(){a(!1),i.btnLoading=!1,i.loading=!1}))):a(!1)}))},setTrialJudgyInfo:function(){var e=this;this.loading=!0,Object(o["f"])({TrialId:this.$route.query.trialId,ArbitrationRule:this.JudgyInfo.ArbitrationRule,TrialReadingCriterionId:this.trialReadingCriterionId}).then((function(t){e.loading=!1,e.$message.success(e.$t("common:message:savedSuccessfully"))})).catch((function(){e.loading=!1}))},getTrialJudgyInfo:function(){var e=this;this.loading=!0,Object(o["e"])({TrialId:this.$route.query.trialId,TrialReadingCriterionId:this.trialReadingCriterionId}).then((function(t){e.JudgyInfo=t.Result,e.loading=!1})).catch((function(t){e.loading=!1}))},tagClose2:function(e,t){var i=this;this.$confirm(this.$t("trials:adRules:message:msg1")).then((function(){i.QuestionList[e].AnswerGroup2List.splice(t,1)}))},tagClose:function(e,t){var i=this;this.$confirm(this.$t("trials:adRules:message:msg1")).then((function(){i.QuestionList[e].AnswerGroupList.splice(t,1)}))},save:function(){var e=this.selectIndex,t=this.indexA;0!==this.QuestionList[e].groupingA.length?0!==this.QuestionList[e].groupingB.length?("add"===this.type?this.QuestionList[e].AnswerGroupList.push({AnswerGroupA:this.QuestionList[e].groupingA,AnswerGroupB:this.QuestionList[e].groupingB}):(this.$set(this.QuestionList[e].AnswerGroupList[t],"AnswerGroupA",this.QuestionList[e].groupingA),this.$set(this.QuestionList[e].AnswerGroupList[t],"AnswerGroupB",this.QuestionList[e].groupingB)),this.$set(this.QuestionList[e],"groupingA",[]),this.$set(this.QuestionList[e],"groupingB",[]),this.$message.success(this.$t("trials:adRules:message:msg4")),this.QuestionVisible=!1):this.$message.error(this.$t("trials:adRules:message:msg3")):this.$message.error(this.$t("trials:adRules:message:msg2"))},addGroup2:function(e){if(0!==this.QuestionList[e].grouping.length){var t=this.QuestionList[e].grouping.toString().replaceAll(",","|");this.QuestionList[e].AnswerGroup2List.push("|".concat(t,"|")),this.$set(this.QuestionList[e],"grouping",[])}else this.$message.error(this.$t("trials:adRules:message:msg5"))},addGroup:function(e,t){this.selectIndex=e,this.type="add",null!==t&&(this.indexA=t,this.type="edit",this.$set(this.QuestionList[e],"groupingA",this.QuestionList[e].AnswerGroupList[t].AnswerGroupA),this.$set(this.QuestionList[e],"groupingB",this.QuestionList[e].AnswerGroupList[t].AnswerGroupB)),this.QuestionVisible=!0},reset:function(e,t){var i=this;this.$confirm(this.$t("trials:adRules:message:msg6")).then((function(){i.btnLoading=!0,i.loading=!0,Object(r["ab"])({ReadingQuestionTrialId:e,AnswerGroup:[],AnswerCombination:[],JudgeType:0}).then((function(e){i.$set(i.QuestionList[t],"AnswerGroup2List",[]),i.$set(i.QuestionList[t],"AnswerGroupList",[]),i.$set(i.QuestionList[t],"JudgeType",0),i.$message.success(i.$t("trials:adRules:message:msg7")),i.btnLoading=!1,i.loading=!1})).catch((function(){i.btnLoading=!1,i.loading=!1}))}))},apply:function(e,t){var i=this;0!==this.QuestionList[t].JudgeType&&(2!==this.QuestionList[t].JudgeType||0!==this.QuestionList[t].AnswerGroup2List.length)&&(3!==this.QuestionList[t].JudgeType||0!==this.QuestionList[t].AnswerGroupList.length)?(this.btnLoading=!0,this.loading=!0,Object(r["ab"])({ReadingQuestionTrialId:e,AnswerGroup:this.QuestionList[t].AnswerGroup2List,AnswerCombination:this.QuestionList[t].AnswerGroupList,JudgeType:this.QuestionList[t].JudgeType}).then((function(e){i.$message.success(i.$t("trials:adRules:message:msg9")),i.btnLoading=!1,i.loading=!1})).catch((function(){i.btnLoading=!1,i.loading=!1}))):this.$message.error(this.$t("trials:adRules:message:msg8"))},tabClick:function(e){this.ReadingQuestionCriterionTrialId=this.CriterionList[this.index].ReadingQuestionCriterionTrialId},getList:function(){var e=this;this.loading=!0,Object(r["T"])({TrialId:this.$route.query.trialId,TrialReadingCriterionId:this.trialReadingCriterionId}).then((function(t){e.loading=!1,e.QuestionList=t.Result,e.OtherInfo=t.OtherInfo,e.activeNames=e.QuestionList.map((function(e){return e.ReadingQuestionTrialId})),e.QuestionList.forEach((function(t){e.$set(t,"grouping",[]),e.$set(t,"groupingA",[]),e.$set(t,"groupingB",[]),e.$set(t,"AnswerGroupList",Object.assign([],t.AnswerCombination)),e.$set(t,"AnswerGroup2List",Object.assign([],t.AnswerGroup))}))})).catch((function(){e.btnLoading=!1,e.loading=!1}))}}},l=s,c=i("2877"),u=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},"31bc":function(e,t,i){},"31d6":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{ref:"reviewers_stats",staticStyle:{width:"100%",height:"100%",padding:"5px"}})},a=[],r=i("313e"),o=i.n(r),s=i("5fd4"),l=i("6331"),c={props:{area:{type:String,default:""}},data:function(){return{myChart:"",data:[],sum:0}},watch:{area:function(){this.myChart&&this.myChart.resize()}},mounted:function(){this.getData()},methods:{initChart:function(e){var t=["#47A2FF ","#53C8D1","#6666CC","#00FFCC"],i={title:{text:"Reviewers",subtext:this.sum,textStyle:{fontSize:Object(l["a"])(.16),color:"#fff"},subtextStyle:{fontSize:Object(l["a"])(.2),color:"#fff"},textAlign:"center",left:"49%",top:"41%"},tooltip:{trigger:"item",formatter:"{a} <br/>{b}: {c} ({d}%)"},legend:{show:!0,top:"2%",icon:"circle",itemWidth:Object(l["a"])(.1),textStyle:{color:"#fff",fontSize:Object(l["a"])(.14)}},color:t,series:[{name:"Reviewers",type:"pie",radius:["50%","75%"],center:["50%","50%"],labelLine:{normal:{length:"4%",length2:"2%",lineStyle:{color:"#e6e6e6"}}},label:{normal:{position:"inner",formatter:"{per|{c}}",rich:{a:{color:"#fff",fontSize:11,lineHeight:20,align:"center"},hr:{width:"100%",height:0,alien:"center"},per:{color:"#fff",align:"center",fontSize:Object(l["a"])(.15)}}}},itemStyle:{borderWidth:Object(l["a"])(.3)},data:e}]};this.$refs.reviewers_stats&&(this.myChart=o.a.init(this.$refs.reviewers_stats),this.myChart.setOption(i))},getData:function(){var e=this;Object(s["f"])().then((function(t){if(t.IsSuccess){var i=[];if(t.Result)for(var n=0;n<t.Result.length;n++)i.push({name:t.Result[n].RankNameAbbreviation,value:t.Result[n].ReviewerCount}),e.sum+=t.Result[n].ReviewerCount;e.initChart(i)}else e.$message({message:t.ErrorMessage,type:"error"})}))}}},u=c,d=i("2877"),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},"31d9":function(e,t,i){var n=i("6d8b"),a=n.each,r="\0__link_datas",o="\0__link_mainData";function s(e){var t=e.mainData,i=e.datas;i||(i={main:t},e.datasAttr={main:"data"}),e.datas=e.mainData=null,h(t,i,e),a(i,(function(i){a(t.TRANSFERABLE_METHODS,(function(t){i.wrapMethod(t,n.curry(l,e))}))})),t.wrapMethod("cloneShallow",n.curry(u,e)),a(t.CHANGABLE_METHODS,(function(i){t.wrapMethod(i,n.curry(c,e))})),n.assert(i[t.dataType]===t)}function l(e,t){if(f(this)){var i=n.extend({},this[r]);i[this.dataType]=t,h(t,i,e)}else p(t,this.dataType,this[o],e);return t}function c(e,t){return e.struct&&e.struct.update(this),t}function u(e,t){return a(t[r],(function(i,n){i!==t&&p(i.cloneShallow(),n,t,e)})),t}function d(e){var t=this[o];return null==e||null==t?t:t[r][e]}function f(e){return e[o]===e}function h(e,t,i){e[r]={},a(t,(function(t,n){p(t,n,e,i)}))}function p(e,t,i,n){i[r][t]=e,e[o]=i,e.dataType=t,n.struct&&(e[n.structAttr]=n.struct,n.struct[n.datasAttr[t]]=e),e.getLinkedData=d}var m=s;e.exports=m},"320a":function(e,t,i){for(var n=i("6d8b"),a=i("f279"),r=[126,25],o=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],s=0;s<o.length;s++)for(var l=0;l<o[s].length;l++)o[s][l][0]/=10.5,o[s][l][1]/=-14,o[s][l][0]+=r[0],o[s][l][1]+=r[1];function c(e,t){"china"===e&&t.push(new a("南海诸岛",n.map(o,(function(e){return{type:"polygon",exterior:e}})),r))}e.exports=c},"324a":function(e,t,i){"use strict";i.r(t);var n=i("bffc"),a=i("cd83");for(var r in a)"default"!==r&&function(e){i.d(t,e,(function(){return a[e]}))}(r);var o=i("2877"),s=Object(o["a"])(a["default"],n["a"],n["b"],!1,null,null,null);t["default"]=s.exports},3250:function(e,t,i){"use strict";i("c17f")},3264:function(e,t,i){"use strict";i("1db3")},3290:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"form-container"},[i("div",{staticClass:"title-wrapper"},[i("p",[e._v("Clinical Trial Experience")]),e._v(" "),i("el-button",{staticClass:"add",attrs:{disabled:"1"===e.$route.query.ReviewStatus,size:"small"},on:{click:e.handleAddClinicalTrial}},[e._v("Add")])],1),e._v(" "),i("div",{staticStyle:{padding:"0 40px"}},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"clinicalTrialTbl",staticClass:"table",attrs:{data:e.clinicalTrialList,size:"small"}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Phase",label:"Phase","min-width":"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"EvaluationCriteriaList",label:"Review Criteria","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.EvaluationCriteriaList.length>0?t.row.EvaluationCriteriaList.join(", "):"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"EvaluationCriteriaList",label:"Starting And Ending Date","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.StartTime?i("span",[e._v(e._s(t.row.StartTime.split("-")[0])+"-"+e._s(t.row.EndTime?t.row.EndTime.split("-")[0]:"至今"))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitReadingCount",label:"Visit Reading Count","min-width":"70"}}),e._v(" "),i("el-table-column",{attrs:{prop:"EvaluationContent",label:"Indication","min-width":"70"}}),e._v(" "),i("el-table-column",{attrs:{label:"Operation","min-width":"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text",size:"small",disabled:"1"===e.$route.query.ReviewStatus},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("Edit")]),e._v(" "),i("el-button",{attrs:{type:"text",size:"small",disabled:"1"===e.$route.query.ReviewStatus},on:{click:function(i){return e.handleDel(t.row)}}},[e._v("Delete")])]}}])})],1)],1),e._v(" "),e._m(0),e._v(" "),i("div",{staticStyle:{"margin-left":"40px",width:"40%"}},[i("gcp-certificate",{attrs:{"doctor-id":e.doctorId,gcp:e.GCP,"gcp-id":e.GCPID}})],1),e._v(" "),e._m(1),e._v(" "),i("div",{staticStyle:{padding:"0 40px"}},[i("el-row",{attrs:{type:"flex",justify:"space-between"}},[i("el-col",{attrs:{span:11}},[i("el-input",{attrs:{type:"textarea",rows:"5",placeholder:"Please specify in English",size:"small"},model:{value:e.OtherClinicalExperience,callback:function(t){e.OtherClinicalExperience=t},expression:"OtherClinicalExperience"}})],1),e._v(" "),i("el-col",{attrs:{span:11}},[i("el-input",{attrs:{disabled:"1"===e.$route.query.ReviewStatus,type:"textarea",rows:"5",placeholder:"请用中文注明",size:"small"},model:{value:e.OtherClinicalExperienceCN,callback:function(t){e.OtherClinicalExperienceCN=t},expression:"OtherClinicalExperienceCN"}})],1)],1),e._v(" "),i("el-button",{staticStyle:{"margin-top":"20px"},attrs:{type:"primary",size:"small",disabled:e.isBtnDisabled||"1"===e.$route.query.ReviewStatus},on:{click:e.handleSaveOtherClinical}},[e._v("Save")])],1),e._v(" "),e.clinicalTrialDialogVisible?i("el-dialog",{attrs:{title:e.clinicalTrialDialogTitle,visible:e.clinicalTrialDialogVisible,width:"480px","close-on-click-modal":!1},on:{"update:visible":function(t){e.clinicalTrialDialogVisible=t}}},[i("el-form",{ref:"clinicalTrialForm",staticClass:"demo-ruleForm",attrs:{"label-width":"150px",rules:e.clinicalTrialRules,model:e.clinicalTrialForm,size:"small"}},[i("el-form-item",{attrs:{label:"Phase",prop:"PhaseId"}},[i("el-select",{attrs:{placeholder:"Please select"},model:{value:e.clinicalTrialForm.PhaseId,callback:function(t){e.$set(e.clinicalTrialForm,"PhaseId",t)},expression:"clinicalTrialForm.PhaseId"}},e._l(e.dictionaryList.Trial_Phase,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.Value,value:e.Id}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Review Criteria",prop:"EvaluationCriteriaIdList"}},[i("el-select",{attrs:{placeholder:"Please select",multiple:""},model:{value:e.clinicalTrialForm.EvaluationCriteriaIdList,callback:function(t){e.$set(e.clinicalTrialForm,"EvaluationCriteriaIdList",t)},expression:"clinicalTrialForm.EvaluationCriteriaIdList"}},e._l(e.dictionaryList.ReadingStandard,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.Value,value:e.Id}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Start Time",prop:"StartTime"}},[i("el-date-picker",{attrs:{type:"year",placeholder:"Select Start Time"},model:{value:e.clinicalTrialForm.StartTime,callback:function(t){e.$set(e.clinicalTrialForm,"StartTime",t)},expression:"clinicalTrialForm.StartTime"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"End Time",prop:"EndTime"}},[i("el-date-picker",{attrs:{type:"year",placeholder:"Select End Time"},model:{value:e.clinicalTrialForm.EndTime,callback:function(t){e.$set(e.clinicalTrialForm,"EndTime",t)},expression:"clinicalTrialForm.EndTime"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Visit Reading Count",prop:"VisitReadingCount"}},[i("el-input",{staticStyle:{width:"100%"},attrs:{oninput:"value=value.replace(/[^\\d]/g,'')","controls-position":"right",min:0},model:{value:e.clinicalTrialForm.VisitReadingCount,callback:function(t){e.$set(e.clinicalTrialForm,"VisitReadingCount",t)},expression:"clinicalTrialForm.VisitReadingCount"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Indication",prop:"EvaluationContent"}},[i("el-input",{model:{value:e.clinicalTrialForm.EvaluationContent,callback:function(t){e.$set(e.clinicalTrialForm,"EvaluationContent",t)},expression:"clinicalTrialForm.EvaluationContent"}})],1)],1),e._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{type:"primary",size:"small",loading:e.isDisabled},on:{click:e.handleSave}},[e._v("Save")])],1)],1):e._e()],1)},a=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"title-wrapper",staticStyle:{"margin-top":"10px"}},[i("p",[e._v("GCP Certificate")])])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"title-wrapper",staticStyle:{"margin-top":"10px"}},[i("p",[e._v("Other Relevant Experience")])])}],r=(i("20d6"),i("db72")),o=(i("96cf"),i("3b8d")),s=i("33ba"),l=i("86a6"),c=i("642b"),u=function(){return{PhaseId:"",EvaluationCriteriaIdList:[],EvaluationContent:"",VisitReadingCount:0,StartTime:null,EndTime:null}},d={name:"TrialExperience",components:{GcpCertificate:c["default"]},data:function(){return{loading:!1,clinicalTrialList:[],clinicalTrialDialogTitle:"",clinicalTrialDialogVisible:!1,clinicalTrialForm:u(),clinicalTrialRules:{PhaseId:[{required:!0,message:"Please select",trigger:["blur","change"]}],EvaluationCriteriaIdList:[{required:!0,message:"Please select",trigger:["blur","change"]}],VisitReadingCount:[{required:!0,message:"Please specify",trigger:"blur"}],EvaluationContent:[{required:!0,message:"Please specify",trigger:"blur"},{max:300,message:"The maximum length is 300"}],StartTime:[{required:!0,message:"Please specify",trigger:"blur"}]},GCP:0,GCPID:"",OtherClinicalExperience:"",OtherClinicalExperienceCN:"",isDisabled:!1,doctorId:this.$route.query.Id,isBtnDisabled:!1,selectId:"00000000-0000-0000-0000-000000000000",dictionaryList:{}}},created:function(){this.initForm()},methods:{initForm:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,i=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getDicData();case 2:t=this.$route.query.Id,t&&(this.loading=!0,Object(s["y"])(t).then((function(e){i.clinicalTrialList=e.Result.ClinicalTrialExperienceList,i.GCP=e.Result.GCP,i.GCPID=e.Result.GCPId,i.OtherClinicalExperience=e.Result.OtherClinicalExperience,i.OtherClinicalExperienceCN=e.Result.OtherClinicalExperienceCN,i.loading=!1})).catch((function(){i.loading=!1})));case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getDicData:function(){var e=this;Object(l["c"])(["Trial_Phase","ReadingStandard"]).then((function(t){e.dictionaryList=Object(r["a"])({},t.Result)}))},handleAddClinicalTrial:function(){this.clinicalTrialDialogTitle="New",this.clinicalTrialDialogVisible=!0,this.clinicalTrialForm.Id=null,this.clinicalTrialForm=Object.assign({},u())},handleEdit:function(e){var t=e.Id,i=e.PhaseId,n=e.EvaluationCriteriaIdList,a=e.EvaluationContent,r=e.StartTime,o=e.EndTime,s=e.VisitReadingCount;this.clinicalTrialForm=Object.assign({},u()),this.clinicalTrialDialogTitle="Edit",this.clinicalTrialDialogVisible=!0,this.clinicalTrialForm.Id=t,this.clinicalTrialForm.StartTime=r,this.clinicalTrialForm.EndTime=o,this.clinicalTrialForm.PhaseId=i,this.clinicalTrialForm.VisitReadingCount=s,this.clinicalTrialForm.EvaluationCriteriaIdList=n,this.clinicalTrialForm.EvaluationContent=a},handleSave:function(){var e=this;this.$refs.clinicalTrialForm.validate((function(t){var i;t&&(e.isDisabled=!0,e.clinicalTrialForm.DoctorId=e.$route.query.Id,e.clinicalTrialForm.StartTime&&(i=new Date(e.clinicalTrialForm.StartTime),e.clinicalTrialForm.StartTime=new Date(i.setDate(i.getDate()+1))),e.clinicalTrialForm.EndTime&&(i=new Date(e.clinicalTrialForm.EndTime),e.clinicalTrialForm.EndTime=new Date(i.setDate(i.getDate()+1))),Object(s["f"])(e.clinicalTrialForm).then((function(t){e.isDisabled=!1,e.initForm(),e.clinicalTrialForm.Id?e.$message({message:"Updated successfully",type:"success"}):e.$message({message:"Addedd successfully",type:"success"}),e.clinicalTrialDialogVisible=!1})).catch((function(){e.isDisabled=!1})))}))},handleDel:function(e){var t=this;this.$confirm("Confirm to delete?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"OK",cancelButtonText:"Cancel"}).then((function(){Object(s["k"])(e.Id).then((function(i){t.clinicalTrialList.splice(t.clinicalTrialList.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success("Deleted successfully !")}))})).catch((function(e){}))},handleSaveOtherClinical:function(){var e=this,t={DoctorId:this.doctorId,OtherClinicalExperience:this.OtherClinicalExperience,OtherClinicalExperienceCN:this.OtherClinicalExperienceCN};Object(s["E"])(t).then((function(t){t.IsSuccess&&(e.id?e.$message.success("Updated successfully"):e.$message.success("Addedd successfully"))}))}}},f=d,h=i("2877"),p=Object(h["a"])(f,n,a,!1,null,null,null);t["default"]=p.exports},"32a1":function(e,t,i){var n=i("6d8b"),a=i("7dcf"),r=i("ef6a"),o=i("5576"),s=n.bind,l=a.extend({type:"dataZoom.inside",init:function(e,t){this._range},render:function(e,t,i,a){l.superApply(this,"render",arguments),this._range=e.getPercentRange(),n.each(this.getTargetCoordInfo(),(function(t,a){var r=n.map(t,(function(e){return o.generateCoordId(e.model)}));n.each(t,(function(t){var l=t.model,u={};n.each(["pan","zoom","scrollMove"],(function(e){u[e]=s(c[e],this,t,a)}),this),o.register(i,{coordId:o.generateCoordId(l),allCoordIds:r,containsPoint:function(e,t,i){return l.coordinateSystem.containPoint([t,i])},dataZoomId:e.id,dataZoomModel:e,getRange:u})}),this)}),this)},dispose:function(){o.unregister(this.api,this.dataZoomModel.id),l.superApply(this,"dispose",arguments),this._range=null}}),c={zoom:function(e,t,i,n){var a=this._range,o=a.slice(),s=e.axisModels[0];if(s){var l=d[t](null,[n.originX,n.originY],s,i,e),c=(l.signal>0?l.pixelStart+l.pixelLength-l.pixel:l.pixel-l.pixelStart)/l.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/n.scale,0);o[0]=(o[0]-c)*u+c,o[1]=(o[1]-c)*u+c;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return r(0,o,[0,100],0,f.minSpan,f.maxSpan),this._range=o,a[0]!==o[0]||a[1]!==o[1]?o:void 0}},pan:u((function(e,t,i,n,a,r){var o=d[n]([r.oldX,r.oldY],[r.newX,r.newY],t,a,i);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength})),scrollMove:u((function(e,t,i,n,a,r){var o=d[n]([0,0],[r.scrollDelta,r.scrollDelta],t,a,i);return o.signal*(e[1]-e[0])*r.scrollDelta}))};function u(e){return function(t,i,n,a){var o=this._range,s=o.slice(),l=t.axisModels[0];if(l){var c=e(s,l,t,i,n,a);return r(c,s,[0,100],"all"),this._range=s,o[0]!==s[0]||o[1]!==s[1]?s:void 0}}}var d={grid:function(e,t,i,n,a){var r=i.axis,o={},s=a.model.coordinateSystem.getRect();return e=e||[0,0],"x"===r.dim?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=r.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=r.inverse?-1:1),o},polar:function(e,t,i,n,a){var r=i.axis,o={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),c=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),"radiusAxis"===i.mainType?(o.pixel=t[0]-e[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=r.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=c[1]-c[0],o.pixelStart=c[0],o.signal=r.inverse?-1:1),o},singleAxis:function(e,t,i,n,a){var r=i.axis,o=a.model.coordinateSystem.getRect(),s={};return e=e||[0,0],"horizontal"===r.orient?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=r.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=r.inverse?-1:1),s}},f=l;e.exports=f},"32af":function(e,t,i){"use strict";i("ce01")},"32f6":function(e,t,i){"use strict";i("ffe7")},"32fb":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{ref:"revenusForm",attrs:{size:"small","label-width":"170px",rules:e.rules,model:e.form}},[i("el-form-item",{staticStyle:{position:"relative"},attrs:{label:"Doctor ID: ",prop:"Id"}},[i("el-input",{attrs:{disabled:""}}),e._v(" "),i("span",{staticStyle:{position:"absolute",left:"10px",top:"50%",transform:"translateY(-50%)"}},[e._v(e._s(e.form.ReviewerCode))])],1),e._v(" "),i("el-form-item",{staticStyle:{position:"relative"},attrs:{label:"Name: ",prop:"Indication"}},[i("el-input",{attrs:{disabled:""}}),e._v(" "),i("span",{staticStyle:{position:"absolute",left:"10px",top:"50%",transform:"translateY(-50%)"}},[e._v(e._s(e.form.LastName+e.form.FirstName))])],1),e._v(" "),i("el-form-item",{staticStyle:{position:"relative"},attrs:{label:"Name CN: ",prop:"Indication"}},[i("el-input",{attrs:{disabled:""}}),e._v(" "),i("span",{staticStyle:{position:"absolute",left:"10px",top:"50%",transform:"translateY(-50%)"}},[e._v(e._s(e.form.ChineseName))])],1),e._v(" "),i("el-form-item",{attrs:{label:"Dispaly All: "}},[i("el-switch",{model:{value:e.isDispaly,callback:function(t){e.isDispaly=t},expression:"isDispaly"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Training ($): ",prop:"Training"}},[i("el-input",{attrs:{type:"number",oninput:"this.value=this.value.replace(/[^\\d.]/g,'');"},model:{value:e.form.Training,callback:function(t){e.$set(e.form,"Training",t)},expression:"form.Training"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Refresher Training ($): ",prop:"RefresherTraining"}},[i("el-input",{attrs:{type:"number",oninput:"this.value=this.value.replace(/[^\\d.]/g,'');"},model:{value:e.form.RefresherTraining,callback:function(t){e.$set(e.form,"RefresherTraining",t)},expression:"form.RefresherTraining"}})],1),e._v(" "),!e.isDispaly&&0==e.form.Expedited||e.isDispaly?i("el-form-item",{attrs:{label:"Timepoint ($): ",prop:"Timepoint"}},[i("el-input",{attrs:{type:"number",oninput:"this.value=this.value.replace(/[^\\d.]/g,'');"},model:{value:e.form.Timepoint,callback:function(t){e.$set(e.form,"Timepoint",t)},expression:"form.Timepoint"}})],1):e._e(),e._v(" "),!e.isDispaly&&2==e.form.Expedited||e.isDispaly?i("el-form-item",{attrs:{label:"Timepoint 48H ($): ",prop:"Timepoint48H"}},[i("el-input",{attrs:{type:"number",oninput:"this.value=this.value.replace(/[^\\d.]/g,'');"},model:{value:e.form.Timepoint48H,callback:function(t){e.$set(e.form,"Timepoint48H",t)},expression:"form.Timepoint48H"}})],1):e._e(),e._v(" "),!e.isDispaly&&1==e.form.Expedited||e.isDispaly?i("el-form-item",{attrs:{label:"Timepoint 24H ($): ",prop:"Timepoint24H"}},[i("el-input",{attrs:{type:"number",oninput:"this.value=this.value.replace(/[^\\d.]/g,'');"},model:{value:e.form.Timepoint24H,callback:function(t){e.$set(e.form,"Timepoint24H",t)},expression:"form.Timepoint24H"}})],1):e._e(),e._v(" "),!e.isDispaly&&0==e.form.Expedited&&"Double review with adjudication"==e.form.ReviewMode||e.isDispaly&&"Double review with adjudication"==e.form.ReviewMode?i("el-form-item",{attrs:{label:"Adjudication ($): ",prop:"Adjudication"}},[i("el-input",{attrs:{type:"number",oninput:"this.value=this.value.replace(/[^\\d.]/g,'');"},model:{value:e.form.Adjudication,callback:function(t){e.$set(e.form,"Adjudication",t)},expression:"form.Adjudication"}})],1):e._e(),e._v(" "),!e.isDispaly&&2==e.form.Expedited&&"Double review with adjudication"==e.form.ReviewMode||e.isDispaly&&"Double review with adjudication"==e.form.ReviewMode?i("el-form-item",{attrs:{label:"Adjudication 48H ($): ",prop:"Adjudication48H"}},[i("el-input",{attrs:{type:"number",oninput:"this.value=this.value.replace(/[^\\d.]/g,'');"},model:{value:e.form.Adjudication48H,callback:function(t){e.$set(e.form,"Adjudication48H",t)},expression:"form.Adjudication48H"}})],1):e._e(),e._v(" "),!e.isDispaly&&1==e.form.Expedited&&"Double review with adjudication"==e.form.ReviewMode||e.isDispaly&&"Double review with adjudication"==e.form.ReviewMode?i("el-form-item",{attrs:{label:"Adjudication 24H ($): ",prop:"Adjudication24H"}},[i("el-input",{attrs:{type:"number",oninput:"this.value=this.value.replace(/[^\\d.]/g,'');"},model:{value:e.form.Adjudication24H,callback:function(t){e.$set(e.form,"Adjudication24H",t)},expression:"form.Adjudication24H"}})],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:"Global ($): ",prop:"Global"}},[i("el-input",{attrs:{type:"number",oninput:"this.value=this.value.replace(/[^\\d.]/g,'');"},model:{value:e.form.Global,callback:function(t){e.$set(e.form,"Global",t)},expression:"form.Global"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Downtime ($): ",prop:"Downtime"}},[i("el-input",{attrs:{type:"number",oninput:"this.value=this.value.replace(/[^\\d.]/g,'');"},model:{value:e.form.Downtime,callback:function(t){e.$set(e.form,"Downtime",t)},expression:"form.Downtime"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",disabled:e.btnDisabled},on:{click:e.handleSave}},[e._v("Save")])],1)],1)},a=[],r=i("6b95"),o=/^([1-9]\d*(\.\d+)?|0)$/,s={props:{form:{type:Object,default:function(){return{}}}},data:function(){return{rules:{Training:[{required:!0,trigger:"blur"},{pattern:o,message:"Please specify a number greater than 0"}],RefresherTraining:[{required:!0,trigger:"blur"},{pattern:o,message:"Please specify a number greater than 0"}],Timepoint:[{required:!0,trigger:"blur"},{pattern:o,message:"Please specify a number greater than 0"}],Timepoint24H:[{required:!0,trigger:"blur"},{pattern:o,message:"Please specify a number greater than 0"}],Timepoint48H:[{required:!0,trigger:"blur"},{pattern:o,message:"Please specify a number greater than 0"}],Adjudication:[{required:!0,trigger:"blur"},{pattern:o,message:"Please specify a number greater than 0"}],Adjudication24H:[{required:!0,trigger:"blur"},{pattern:o,message:"Please specify a number greater than 0"}],Adjudication48H:[{required:!0,trigger:"blur"},{pattern:o,message:"Please specify a number greater than 0"}],Global:[{required:!0,trigger:["blur","change"]},{pattern:o,message:"Please specify a number greater than 0"}]},isDispaly:!1,btnDisabled:!1}},methods:{handleSave:function(){var e=this;this.$refs.revenusForm.validate((function(t){t&&(e.btnDisabled=!0,Object(r["a"])(e.form).then((function(t){t.IsSuccess&&(e.$emit("getList",{TrialId:e.form.TrialId}),e.$message.success("Updated successfully!"),e.$emit("closeDialog"))})))}))}}},l=s,c=i("2877"),u=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},3301:function(e,t,i){var n=i("6d8b"),a=i("6179"),r=i("b1d4"),o=i("93d0"),s=o.SOURCE_FORMAT_ORIGINAL,l=i("2f45"),c=l.getDimensionTypeByAxis,u=i("e0d3"),d=u.getDataItemValue,f=i("2039"),h=i("8b7f"),p=h.getCoordSysInfoBySeries,m=i("ec6f"),g=i("ee1a"),v=g.enableDataStack,b=i("0f99"),y=b.makeSeriesEncodeForAxisCoordSys;function w(e,t,i){i=i||{},m.isInstance(e)||(e=m.seriesDataToSource(e));var o,s=t.get("coordinateSystem"),l=f.get(s),u=p(t);u&&(o=n.map(u.coordSysDims,(function(e){var t={name:e},i=u.axisMap.get(e);if(i){var n=i.get("type");t.type=c(n)}return t}))),o||(o=l&&(l.getDimensionsInfo?l.getDimensionsInfo():l.dimensions.slice())||["x","y"]);var d,h,g=r(e,{coordDimensions:o,generateCoord:i.generateCoord,encodeDefaulter:i.useEncodeDefaulter?n.curry(y,o,t):null});u&&n.each(g,(function(e,t){var i=e.coordDim,n=u.categoryAxisMap.get(i);n&&(null==d&&(d=t),e.ordinalMeta=n.getOrdinalMeta()),null!=e.otherDims.itemName&&(h=!0)})),h||null==d||(g[d].otherDims.itemName=0);var b=v(t,g),w=new a(g,t);w.setCalculationInfo(b);var I=null!=d&&_(e)?function(e,t,i,n){return n===d?i:this.defaultDimValueGetter(e,t,i,n)}:null;return w.hasItemOption=!1,w.initData(e,null,I),w}function _(e){if(e.sourceFormat===s){var t=I(e.data||[]);return null!=t&&!n.isArray(d(t))}}function I(e){var t=0;while(t<e.length&&null==e[t])t++;return e[t]}var x=w;e.exports=x},3329:function(e,t,i){var n=i("3eba"),a=i("6d8b"),r=i("2306"),o=i("a15a"),s=o.createSymbol,l=i("3842"),c=l.parsePercent,u=l.isNumeric,d=i("e7aa"),f=d.setLabel,h=["itemStyle","borderWidth"],p=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],m=new r.Circle,g=n.extendChartView({type:"pictorialBar",render:function(e,t,i){var n=this.group,a=e.getData(),r=this._data,o=e.coordinateSystem,s=o.getBaseAxis(),l=!!s.isHorizontal(),c=o.grid.getRect(),u={ecSize:{width:i.getWidth(),height:i.getHeight()},seriesModel:e,coordSys:o,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:l,valueDim:p[+l],categoryDim:p[1-l]};return a.diff(r).add((function(e){if(a.hasValue(e)){var t=R(a,e),i=v(a,e,t,u),r=$(a,u,i);a.setItemGraphicEl(e,r),n.add(r),F(r,u,i)}})).update((function(e,t){var i=r.getItemGraphicEl(t);if(a.hasValue(e)){var o=R(a,e),s=v(a,e,o,u),l=P(a,s);i&&l!==i.__pictorialShapeStr&&(n.remove(i),a.setItemGraphicEl(e,null),i=null),i?N(i,u,s):i=$(a,u,s,!0),a.setItemGraphicEl(e,i),i.__pictorialSymbolMeta=s,n.add(i),F(i,u,s)}else n.remove(i)})).remove((function(e){var t=r.getItemGraphicEl(e);t&&A(r,e,t.__pictorialSymbolMeta.animationModel,t)})).execute(),this._data=a,this.group},dispose:a.noop,remove:function(e,t){var i=this.group,n=this._data;e.get("animation")?n&&n.eachItemGraphicEl((function(t){A(n,t.dataIndex,e,t)})):i.removeAll()}});function v(e,t,i,n){var r=e.getItemLayout(t),o=i.get("symbolRepeat"),s=i.get("symbolClip"),l=i.get("symbolPosition")||"start",u=i.get("symbolRotate"),d=(u||0)*Math.PI/180||0,f=i.get("symbolPatternSize")||2,h=i.isAnimationEnabled(),p={dataIndex:t,layout:r,itemModel:i,symbolType:e.getItemVisual(t,"symbol")||"circle",color:e.getItemVisual(t,"color"),symbolClip:s,symbolRepeat:o,symbolRepeatDirection:i.get("symbolRepeatDirection"),symbolPatternSize:f,rotation:d,animationModel:h?i:null,hoverAnimation:h&&i.get("hoverAnimation"),z2:i.getShallow("z",!0)||0};b(i,o,r,n,p),w(e,t,r,o,s,p.boundingLength,p.pxSign,f,n,p),_(i,p.symbolScale,d,n,p);var m=p.symbolSize,g=i.get("symbolOffset");return a.isArray(g)&&(g=[c(g[0],m[0]),c(g[1],m[1])]),I(i,m,r,o,s,g,l,p.valueLineWidth,p.boundingLength,p.repeatCutLength,n,p),p}function b(e,t,i,n,r){var o,s=n.valueDim,l=e.get("symbolBoundingData"),c=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),u=c.toGlobalCoord(c.dataToCoord(0)),d=1-+(i[s.wh]<=0);if(a.isArray(l)){var f=[y(c,l[0])-u,y(c,l[1])-u];f[1]<f[0]&&f.reverse(),o=f[d]}else o=null!=l?y(c,l)-u:t?n.coordSysExtent[s.index][d]-u:i[s.wh];r.boundingLength=o,t&&(r.repeatCutLength=i[s.wh]),r.pxSign=o>0?1:o<0?-1:0}function y(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function w(e,t,i,n,r,o,s,l,u,d){var f=u.valueDim,h=u.categoryDim,p=Math.abs(i[h.wh]),m=e.getItemVisual(t,"symbolSize");a.isArray(m)?m=m.slice():(null==m&&(m="100%"),m=[m,m]),m[h.index]=c(m[h.index],p),m[f.index]=c(m[f.index],n?p:Math.abs(o)),d.symbolSize=m;var g=d.symbolScale=[m[0]/l,m[1]/l];g[f.index]*=(u.isHorizontal?-1:1)*s}function _(e,t,i,n,a){var r=e.get(h)||0;r&&(m.attr({scale:t.slice(),rotation:i}),m.updateTransform(),r/=m.getLineScale(),r*=t[n.valueDim.index]),a.valueLineWidth=r}function I(e,t,i,n,r,o,s,l,d,f,h,p){var m=h.categoryDim,g=h.valueDim,v=p.pxSign,b=Math.max(t[g.index]+l,0),y=b;if(n){var w=Math.abs(d),_=a.retrieve(e.get("symbolMargin"),"15%")+"",I=!1;_.lastIndexOf("!")===_.length-1&&(I=!0,_=_.slice(0,_.length-1)),_=c(_,t[g.index]);var x=Math.max(b+2*_,0),S=I?0:2*_,T=u(n),C=T?n:j((w+S)/x),k=w-C*b;_=k/2/(I?C:C-1),x=b+2*_,S=I?0:2*_,T||"fixed"===n||(C=f?j((Math.abs(f)+S)/x):0),y=C*x-S,p.repeatTimes=C,p.symbolMargin=_}var R=v*(y/2),D=p.pathPosition=[];D[m.index]=i[m.wh]/2,D[g.index]="start"===s?R:"end"===s?d-R:d/2,o&&(D[0]+=o[0],D[1]+=o[1]);var L=p.bundlePosition=[];L[m.index]=i[m.xy],L[g.index]=i[g.xy];var O=p.barRectShape=a.extend({},i);O[g.wh]=v*Math.max(Math.abs(i[g.wh]),Math.abs(D[g.index]+R)),O[m.wh]=i[m.wh];var $=p.clipShape={};$[m.xy]=-i[m.xy],$[m.wh]=h.ecSize[m.wh],$[g.xy]=0,$[g.wh]=i[g.wh]}function x(e){var t=e.symbolPatternSize,i=s(e.symbolType,-t/2,-t/2,t,t,e.color);return i.attr({culling:!0}),"image"!==i.type&&i.setStyle({strokeNoScale:!0}),i}function S(e,t,i,n){var a=e.__pictorialBundle,r=i.symbolSize,o=i.valueLineWidth,s=i.pathPosition,l=t.valueDim,c=i.repeatTimes||0,u=0,d=r[t.valueDim.index]+o+2*i.symbolMargin;for(E(e,(function(e){e.__pictorialAnimationIndex=u,e.__pictorialRepeatTimes=c,u<c?M(e,null,p(u),i,n):M(e,null,{scale:[0,0]},i,n,(function(){a.remove(e)})),O(e,i),u++}));u<c;u++){var f=x(i);f.__pictorialAnimationIndex=u,f.__pictorialRepeatTimes=c,a.add(f);var h=p(u);M(f,{position:h.position,scale:[0,0]},{scale:h.scale,rotation:h.rotation},i,n),f.on("mouseover",m).on("mouseout",g),O(f,i)}function p(e){var t=s.slice(),n=i.pxSign,a=e;return("start"===i.symbolRepeatDirection?n>0:n<0)&&(a=c-1-e),t[l.index]=d*(a-c/2+.5)+s[l.index],{position:t,scale:i.symbolScale.slice(),rotation:i.rotation}}function m(){E(e,(function(e){e.trigger("emphasis")}))}function g(){E(e,(function(e){e.trigger("normal")}))}}function T(e,t,i,n){var a=e.__pictorialBundle,r=e.__pictorialMainPath;function o(){this.trigger("emphasis")}function s(){this.trigger("normal")}r?M(r,null,{position:i.pathPosition.slice(),scale:i.symbolScale.slice(),rotation:i.rotation},i,n):(r=e.__pictorialMainPath=x(i),a.add(r),M(r,{position:i.pathPosition.slice(),scale:[0,0],rotation:i.rotation},{scale:i.symbolScale.slice()},i,n),r.on("mouseover",o).on("mouseout",s)),O(r,i)}function C(e,t,i){var n=a.extend({},t.barRectShape),o=e.__pictorialBarRect;o?M(o,null,{shape:n},t,i):(o=e.__pictorialBarRect=new r.Rect({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),e.add(o))}function k(e,t,i,n){if(i.symbolClip){var o=e.__pictorialClipPath,s=a.extend({},i.clipShape),l=t.valueDim,c=i.animationModel,u=i.dataIndex;if(o)r.updateProps(o,{shape:s},c,u);else{s[l.wh]=0,o=new r.Rect({shape:s}),e.__pictorialBundle.setClipPath(o),e.__pictorialClipPath=o;var d={};d[l.wh]=i.clipShape[l.wh],r[n?"updateProps":"initProps"](o,{shape:d},c,u)}}}function R(e,t){var i=e.getItemModel(t);return i.getAnimationDelayParams=D,i.isAnimationEnabled=L,i}function D(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function L(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function O(e,t){e.off("emphasis").off("normal");var i=t.symbolScale.slice();t.hoverAnimation&&e.on("emphasis",(function(){this.animateTo({scale:[1.1*i[0],1.1*i[1]]},400,"elasticOut")})).on("normal",(function(){this.animateTo({scale:i.slice()},400,"elasticOut")}))}function $(e,t,i,n){var a=new r.Group,o=new r.Group;return a.add(o),a.__pictorialBundle=o,o.attr("position",i.bundlePosition.slice()),i.symbolRepeat?S(a,t,i):T(a,t,i),C(a,i,n),k(a,t,i,n),a.__pictorialShapeStr=P(e,i),a.__pictorialSymbolMeta=i,a}function N(e,t,i){var n=i.animationModel,a=i.dataIndex,o=e.__pictorialBundle;r.updateProps(o,{position:i.bundlePosition.slice()},n,a),i.symbolRepeat?S(e,t,i,!0):T(e,t,i,!0),C(e,i,!0),k(e,t,i,!0)}function A(e,t,i,n){var o=n.__pictorialBarRect;o&&(o.style.text=null);var s=[];E(n,(function(e){s.push(e)})),n.__pictorialMainPath&&s.push(n.__pictorialMainPath),n.__pictorialClipPath&&(i=null),a.each(s,(function(e){r.updateProps(e,{scale:[0,0]},i,t,(function(){n.parent&&n.parent.remove(n)}))})),e.setItemGraphicEl(t,null)}function P(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function E(e,t,i){a.each(e.__pictorialBundle.children(),(function(n){n!==e.__pictorialBarRect&&t.call(i,n)}))}function M(e,t,i,n,a,o){t&&e.attr(t),n.symbolClip&&!a?i&&e.attr(i):i&&r[a?"updateProps":"initProps"](e,i,n.animationModel,n.dataIndex,o)}function F(e,t,i){var n=i.color,o=i.dataIndex,s=i.itemModel,l=s.getModel("itemStyle").getItemStyle(["color"]),c=s.getModel("emphasis.itemStyle").getItemStyle(),u=s.getShallow("cursor");E(e,(function(e){e.setColor(n),e.setStyle(a.defaults({fill:n,opacity:i.opacity},l)),r.setHoverStyle(e,c),u&&(e.cursor=u),e.z2=i.z2}));var d={},h=t.valueDim.posDesc[+(i.boundingLength>0)],p=e.__pictorialBarRect;f(p.style,d,s,n,t.seriesModel,o,h),r.setHoverStyle(p,d)}function j(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var V=g;e.exports=V},3339:function(e,t,i){"use strict";function n(e){return Math.floor(e)===e}function a(e){var t={times:1,num:0};if(n(e))return t.num=e,t;var i=e+"",a=i.indexOf("."),r=i.substr(a+1).length,o=Math.pow(10,r),s=parseInt(e*o+.5,10);return t.times=o,t.num=s,t}function r(e,t,i){var n=a(e),r=a(t),o=n.num,s=r.num,l=n.times,c=r.times,u=l>c?l:c,d=null;switch(i){case"add":return d=l===c?o+s:l>c?o+s*(l/c):o*(c/l)+s,d/u;case"subtract":return d=l===c?o-s:l>c?o-s*(l/c):o*(c/l)-s,d/u;case"multiply":return d=o*s/(l*c),d;case"divide":return d=o/s*(c/l),d}}function o(e,t){return r(e,t,"add")}function s(e,t){return r(e,t,"subtract")}function l(e,t){return r(e,t,"multiply")}function c(e,t){return r(e,t,"divide")}t["a"]={add:o,subtract:s,multiply:l,divide:c}},"333d":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-pagination",e._b({attrs:{background:e.background,"current-page":e.currentPage,"page-size":e.pageSize,layout:e.layout,"page-sizes":e.pageSizes,total:e.total,"pager-count":5},on:{"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"update:pageSize":function(t){e.pageSize=t},"update:page-size":function(t){e.pageSize=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}},"el-pagination",e.$attrs,!1))},a=[];i("c5f6");Math.easeInOutQuad=function(e,t,i,n){return e/=n/2,e<1?i/2*e*e+t:(e--,-i/2*(e*(e-2)-1)+t)};var r=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function o(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function s(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function l(e,t,i){var n=s(),a=e-n,l=20,c=0;t="undefined"===typeof t?500:t;var u=function e(){c+=l;var s=Math.easeInOutQuad(c,n,a,t);o(s),c<t?r(e):i&&"function"===typeof i&&i()};u()}var c={name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:1},limit:{type:Number,default:20},pageSizes:{type:Array,default:function(){return[10,20,30,50]}},layout:{type:String,default:"total, sizes, prev, pager, next, jumper"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0}},computed:{currentPage:{get:function(){return this.page},set:function(e){this.$emit("update:page",e)}},pageSize:{get:function(){return this.limit},set:function(e){this.$emit("update:limit",e)}}},methods:{handleSizeChange:function(e){this.currentPage=1,this.$emit("pagination",{page:this.currentPage,limit:e}),this.autoScroll&&l(0,800)},handleCurrentChange:function(e){this.$emit("pagination",{page:e,limit:this.pageSize}),this.autoScroll&&l(0,800)}}},u=c,d=i("2877"),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},"337a":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"organForm",attrs:{model:e.form,"label-width":"130px",size:"small",rules:e.rules}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:"标准名称",prop:"CriterionName"}},[i("el-input",{model:{value:e.form.CriterionName,callback:function(t){e.$set(e.form,"CriterionName",t)},expression:"form.CriterionName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"标准类型",prop:"CriterionType"}},[i("el-select",{model:{value:e.form.CriterionType,callback:function(t){e.$set(e.form,"CriterionType",t)},expression:"form.CriterionType"}},e._l(e.$d.CriterionType,(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),""!==e.form.Id?i("el-form-item",{attrs:{label:"是否配置完成"}},[i("el-switch",{model:{value:e.form.IsCompleteConfig,callback:function(t){e.$set(e.form,"IsCompleteConfig",t)},expression:"form.IsCompleteConfig"}})],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:"描述"}},[i("el-input",{model:{value:e.form.Description,callback:function(t){e.$set(e.form,"Description",t)},expression:"form.Description"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"显示序号: ",prop:"ShowOrder"}},[i("el-input-number",{staticStyle:{width:"100%"},attrs:{min:0},model:{value:e.form.ShowOrder,callback:function(t){e.$set(e.form,"ShowOrder",t)},expression:"form.ShowOrder"}})],1),e._v(" "),""!==e.form.Id?i("el-form-item",{attrs:{label:"是否启用"}},[i("el-switch",{model:{value:e.form.IsEnable,callback:function(t){e.$set(e.form,"IsEnable",t)},expression:"form.IsEnable"}})],1):e._e(),e._v(" "),""!==e.form.Id?i("el-form-item",{attrs:{label:"eCRF是否显示在影像阅片页面"}},[i("el-switch",{model:{value:e.form.IseCRFShowInDicomReading,callback:function(t){e.$set(e.form,"IseCRFShowInDicomReading",t)},expression:"form.IseCRFShowInDicomReading"}})],1):e._e()],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{type:"primary"},on:{click:e.handleCancel}},[e._v(" "+e._s(e.$t("common:button:cancel")))]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])},a=[],r=(i("ac6a"),i("456d"),i("e56e")),o={name:"AddCriterionForm",props:{data:{type:Object,default:function(){return{}}}},data:function(){return{form:{Id:"",CriterionName:"",CriterionType:null,IsEnable:!0,IsCompleteConfig:!1,ShowOrder:null,Description:"",IseCRFShowInDicomReading:!1},rules:{CriterionName:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:["blur"]}],CriterionType:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur"]}]},loading:!1,criterions:[]}},mounted:function(){this.initForm()},methods:{handleSave:function(){var e=this;this.$refs.organForm.validate((function(t){t&&(e.loading=!0,Object(r["p"])(e.form).then((function(t){e.loading=!1,e.$emit("close"),e.$emit("getList"),e.form.Id?e.$message.success(e.$t("common:message:savedSuccessfully")):e.$message.success(e.$t("common:message:addedSuccessfully"))})).catch((function(){e.loading=!1})))}))},handleCancel:function(){this.$emit("close")},initForm:function(){if(this.loading=!0,Object.keys(this.data).length>0)for(var e in this.form)this.data.hasOwnProperty(e)&&(this.form[e]=this.data[e]);this.loading=!1}}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},"33ba":function(e,t,i){"use strict";i.d(t,"s",(function(){return a})),i.d(t,"n",(function(){return r})),i.d(t,"p",(function(){return o})),i.d(t,"b",(function(){return s})),i.d(t,"v",(function(){return l})),i.d(t,"C",(function(){return c})),i.d(t,"x",(function(){return u})),i.d(t,"F",(function(){return d})),i.d(t,"u",(function(){return f})),i.d(t,"c",(function(){return h})),i.d(t,"i",(function(){return p})),i.d(t,"d",(function(){return m})),i.d(t,"j",(function(){return g})),i.d(t,"w",(function(){return v})),i.d(t,"e",(function(){return b})),i.d(t,"y",(function(){return y})),i.d(t,"f",(function(){return w})),i.d(t,"k",(function(){return _})),i.d(t,"E",(function(){return I})),i.d(t,"D",(function(){return x})),i.d(t,"o",(function(){return S})),i.d(t,"B",(function(){return T})),i.d(t,"z",(function(){return C})),i.d(t,"g",(function(){return k})),i.d(t,"l",(function(){return R})),i.d(t,"m",(function(){return D})),i.d(t,"q",(function(){return L})),i.d(t,"t",(function(){return O})),i.d(t,"a",(function(){return $})),i.d(t,"h",(function(){return N})),i.d(t,"r",(function(){return A})),i.d(t,"A",(function(){return P})),i.d(t,"G",(function(){return E}));var n=i("b775");function a(e){return Object(n["a"])({url:"/doctorList/getDoctorSearchList",method:"post",data:e})}function r(e,t){return Object(n["a"])({url:"/file/downloadOfficialCV/".concat(t),method:"post",data:e})}function o(e){return Object(n["a"])({url:"/doctor/getBasicInfo/".concat(e),method:"get"})}function s(e){return Object(n["a"])({url:"/doctor/addOrUpdateDoctorBasicInfo",method:"post",data:e})}function l(e){return Object(n["a"])({url:"/doctor/getEmploymentInfo/".concat(e),method:"get"})}function c(e){return Object(n["a"])({url:"/doctor/updateEmploymentInfo",method:"post",data:e})}function u(e){return Object(n["a"])({url:"/doctor/getSpecialtyInfo/".concat(e),method:"get"})}function d(e){return Object(n["a"])({url:"/doctor/updateSpecialtyInfo",method:"post",data:e})}function f(e){return Object(n["a"])({url:"/education/getEducation/".concat(e),method:"get"})}function h(e){return Object(n["a"])({url:"/education/addOrUpdateEducationInfo",method:"post",data:e})}function p(e){return Object(n["a"])({url:"/education/deleteEducationInfo/".concat(e),method:"delete"})}function m(e){return Object(n["a"])({url:"/education/addOrUpdatePostgraduateInfo",method:"post",data:e})}function g(e){return Object(n["a"])({url:"/education/deletePostgraduateInfo/".concat(e),method:"delete"})}function v(e){return Object(n["a"])({url:"/researchPublication/getResearchPublication/".concat(e),method:"get"})}function b(e){return Object(n["a"])({url:"/researchPublication/addOrUpdateResearchPublication",method:"post",data:e})}function y(e){return Object(n["a"])({url:"/trialExperience/getTrialExperience/".concat(e),method:"get"})}function w(e){return Object(n["a"])({url:"/trialExperience/addOrUpdateTrialExperience",method:"post",data:e})}function _(e){return Object(n["a"])({url:"/trialExperience/deleteTrialExperience/".concat(e),method:"delete"})}function I(e){return Object(n["a"])({url:"/trialExperience/updateOtherExperience",method:"post",data:e})}function x(e){return Object(n["a"])({url:"/trialExperience/updateGcpExperience",method:"post",data:e})}function S(e){return Object(n["a"])({url:"/doctor/getAuditState/".concat(e),method:"get"})}function T(e){return Object(n["a"])({url:"/doctor/updateAuditResume",method:"post",data:e})}function C(e,t,i){return Object(n["a"])({url:"/vacation/getVacationList/".concat(e,"/").concat(t,"/").concat(i),method:"get"})}function k(e){return Object(n["a"])({url:"/vacation/addOrUpdateVacation",method:"post",data:e})}function R(e){return Object(n["a"])({url:"/vacation/deleteVacation/".concat(e),method:"delete"})}function D(e,t){var i={attachmentIds:t};return Object(n["a"])({url:"/file/downloadByAttachmentId/".concat(e),method:"post",data:i})}function L(e){return Object(n["a"])({url:"/doctor/getDetail/".concat(e),method:"get"})}function O(e){return Object(n["a"])({url:"/trial/getReviewerTrialListByEnrollmentStatus",method:"post",data:e})}function $(e){return Object(n["a"])({url:"/Doctor/addDoctorCriterionFile",method:"post",data:e})}function N(e){return Object(n["a"])({url:"/Doctor/deleteDoctorCriterionFile",method:"post",data:e})}function A(e){return Object(n["a"])({url:"/Doctor/getDoctorCriterionFile",method:"post",data:e})}function P(e){return Object(n["a"])({url:"/TrialSiteSurvey/sendEmialVerifyCode",method:"post",data:e})}function E(e){return Object(n["a"])({url:"/TrialSiteSurvey/verifyEmialGetDoctorInfo",method:"post",data:e})}},"33e1":function(e,t,i){"use strict";var n;i.d(t,"a",(function(){return n})),function(e){e[e["Trace"]=0]="Trace",e[e["Debug"]=1]="Debug",e[e["Information"]=2]="Information",e[e["Warning"]=3]="Warning",e[e["Error"]=4]="Error",e[e["Critical"]=5]="Critical",e[e["None"]=6]="None"}(n||(n={}))},3407:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"search-container"},[i("el-form",{attrs:{inline:!0,size:"small"}},[i("el-form-item",{attrs:{label:"业务场景"}},[i("el-select",{staticStyle:{width:"150px"},model:{value:e.searchData.BusinessScenarioEnum,callback:function(t){e.$set(e.searchData,"BusinessScenarioEnum",t)},expression:"searchData.BusinessScenarioEnum"}},e._l(e.$d.Common_File_BusinessScenario,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"文件名称"}},[i("el-input",{staticStyle:{width:"130px"},attrs:{clearable:""},model:{value:e.searchData.Name,callback:function(t){e.$set(e.searchData,"Name",t)},expression:"searchData.Name"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")])],1)],1)],1),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"},{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortChange}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Code",label:"Code","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"BusinessScenarioEnum",label:"业务场景","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("Common_File_BusinessScenario",t.row.BusinessScenarioEnum))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Name",label:"文件名称","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"CriterionTypeEnum",label:"阅片标准","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("CriterionType",t.row.CriterionTypeEnum))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Description",label:"描述","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsDeleted",label:"是否废除","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsDeleted?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsDeleted)))]):i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsDeleted)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"UpdateTime",label:"更新时间","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{label:"Action"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleDownload(t.row)}}},[e._v("\n 下载\n ")])]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}}),e._v(" "),e.editDialog.visible?i("el-dialog",{attrs:{visible:e.editDialog.visible,"close-on-click-modal":!1,title:e.editDialog.title,width:"600px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){return e.$set(e.editDialog,"visible",t)}}},[i("TemplateForm",{attrs:{data:e.currentRow},on:{closeDialog:e.closeDialog,getList:e.getList}})],1):e._e()],1)],2)},a=[],r=i("db72"),o=i("e56e"),s=i("6071"),l=i("333d"),c=i("667d"),u=3,d=function(){return{FileTypeEnum:u,BusinessScenarioEnum:null,Name:"",PageIndex:1,PageSize:20}},f={name:"ExportTemplate",components:{BaseContainer:s["default"],Pagination:l["default"],TemplateForm:c["default"]},data:function(){return{searchData:d(),list:[],total:0,currentRow:{},editDialog:{title:"",visible:!1},loading:!1}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0,Object(o["ab"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},handleAdd:function(){this.editDialog.title="Add",this.currentRow={FileTypeEnum:u},this.editDialog.visible=!0},handleDownload:function(e){var t=this;this.loading=!0,Object(o["a"])(e.Code).then((function(e){t.loading=!1})).catch((function(){t.loading=!1}))},handleEdit:function(e){this.editDialog.title="Edit",this.currentRow=Object(r["a"])({},e),this.editDialog.visible=!0},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=d(),this.getList()},closeDialog:function(){this.editDialog.visible=!1},handleSortChange:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()}}},h=f,p=i("2877"),m=Object(p["a"])(h,n,a,!1,null,null,null);t["default"]=m.exports},"340c":function(e,t,i){"use strict";i("1336")},"340d":function(e,t,i){var n=i("6d8b"),a=i("e887"),r=i("4e47"),o=i("80f0"),s=i("eda2"),l=s.windowOpen,c="sunburstRootToNode",u=a.extend({type:"sunburst",init:function(){},render:function(e,t,i,a){var s=this;this.seriesModel=e,this.api=i,this.ecModel=t;var l=e.getData(),c=l.tree.root,u=e.getViewRoot(),d=this.group,f=e.get("renderLabelForZeroData"),h=[];u.eachNode((function(e){h.push(e)}));var p=this._oldChildren||[];if(v(h,p),w(c,u),a&&a.highlight&&a.highlight.piece){var m=e.getShallow("highlightPolicy");a.highlight.piece.onEmphasis(m)}else if(a&&a.unhighlight){var g=this.virtualPiece;!g&&c.children.length&&(g=c.children[0].piece),g&&g.onNormal()}function v(e,t){function i(e){return e.getId()}function a(i,n){var a=null==i?null:e[i],r=null==n?null:t[n];b(a,r)}0===e.length&&0===t.length||new o(t,e,i,i).add(a).update(a).remove(n.curry(a,null)).execute()}function b(i,n){if(f||!i||i.getValue()||(i=null),i!==c&&n!==c)if(n&&n.piece)i?(n.piece.updateData(!1,i,"normal",e,t),l.setItemGraphicEl(i.dataIndex,n.piece)):y(n);else if(i){var a=new r(i,e,t);d.add(a),l.setItemGraphicEl(i.dataIndex,a)}}function y(e){e&&e.piece&&(d.remove(e.piece),e.piece=null)}function w(i,n){if(n.depth>0){s.virtualPiece?s.virtualPiece.updateData(!1,i,"normal",e,t):(s.virtualPiece=new r(i,e,t),d.add(s.virtualPiece)),n.piece._onclickEvent&&n.piece.off("click",n.piece._onclickEvent);var a=function(e){s._rootToNode(n.parentNode)};n.piece._onclickEvent=a,s.virtualPiece.on("click",a)}else s.virtualPiece&&(d.remove(s.virtualPiece),s.virtualPiece=null)}this._initEvents(),this._oldChildren=h},dispose:function(){},_initEvents:function(){var e=this,t=function(t){var i=!1,n=e.seriesModel.getViewRoot();n.eachNode((function(n){if(!i&&n.piece&&n.piece.childAt(0)===t.target){var a=n.getModel().get("nodeClick");if("rootToNode"===a)e._rootToNode(n);else if("link"===a){var r=n.getModel(),o=r.get("link");if(o){var s=r.get("target",!0)||"_blank";l(o,s)}}i=!0}}))};this.group._onclickEvent&&this.group.off("click",this.group._onclickEvent),this.group.on("click",t),this.group._onclickEvent=t},_rootToNode:function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:c,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},containPoint:function(e,t){var i=t.getData(),n=i.getItemLayout(0);if(n){var a=e[0]-n.cx,r=e[1]-n.cy,o=Math.sqrt(a*a+r*r);return o<=n.r&&o>=n.r0}}}),d=u;e.exports=d},"341e":function(e,t,i){},"342d":function(e,t,i){var n=i("cbe5"),a=i("20c8"),r=i("ee84"),o=Math.sqrt,s=Math.sin,l=Math.cos,c=Math.PI,u=function(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])},d=function(e,t){return(e[0]*t[0]+e[1]*t[1])/(u(e)*u(t))},f=function(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(d(e,t))};function h(e,t,i,n,a,r,u,h,p,m,g){var v=p*(c/180),b=l(v)*(e-i)/2+s(v)*(t-n)/2,y=-1*s(v)*(e-i)/2+l(v)*(t-n)/2,w=b*b/(u*u)+y*y/(h*h);w>1&&(u*=o(w),h*=o(w));var _=(a===r?-1:1)*o((u*u*(h*h)-u*u*(y*y)-h*h*(b*b))/(u*u*(y*y)+h*h*(b*b)))||0,I=_*u*y/h,x=_*-h*b/u,S=(e+i)/2+l(v)*I-s(v)*x,T=(t+n)/2+s(v)*I+l(v)*x,C=f([1,0],[(b-I)/u,(y-x)/h]),k=[(b-I)/u,(y-x)/h],R=[(-1*b-I)/u,(-1*y-x)/h],D=f(k,R);d(k,R)<=-1&&(D=c),d(k,R)>=1&&(D=0),0===r&&D>0&&(D-=2*c),1===r&&D<0&&(D+=2*c),g.addData(m,S,T,u,h,C,D,v,r)}var p=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,m=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function g(e){if(!e)return new a;for(var t,i=0,n=0,r=i,o=n,s=new a,l=a.CMD,c=e.match(p),u=0;u<c.length;u++){for(var d,f=c[u],g=f.charAt(0),v=f.match(m)||[],b=v.length,y=0;y<b;y++)v[y]=parseFloat(v[y]);var w=0;while(w<b){var _,I,x,S,T,C,k,R=i,D=n;switch(g){case"l":i+=v[w++],n+=v[w++],d=l.L,s.addData(d,i,n);break;case"L":i=v[w++],n=v[w++],d=l.L,s.addData(d,i,n);break;case"m":i+=v[w++],n+=v[w++],d=l.M,s.addData(d,i,n),r=i,o=n,g="l";break;case"M":i=v[w++],n=v[w++],d=l.M,s.addData(d,i,n),r=i,o=n,g="L";break;case"h":i+=v[w++],d=l.L,s.addData(d,i,n);break;case"H":i=v[w++],d=l.L,s.addData(d,i,n);break;case"v":n+=v[w++],d=l.L,s.addData(d,i,n);break;case"V":n=v[w++],d=l.L,s.addData(d,i,n);break;case"C":d=l.C,s.addData(d,v[w++],v[w++],v[w++],v[w++],v[w++],v[w++]),i=v[w-2],n=v[w-1];break;case"c":d=l.C,s.addData(d,v[w++]+i,v[w++]+n,v[w++]+i,v[w++]+n,v[w++]+i,v[w++]+n),i+=v[w-2],n+=v[w-1];break;case"S":_=i,I=n;var L=s.len(),O=s.data;t===l.C&&(_+=i-O[L-4],I+=n-O[L-3]),d=l.C,R=v[w++],D=v[w++],i=v[w++],n=v[w++],s.addData(d,_,I,R,D,i,n);break;case"s":_=i,I=n;L=s.len(),O=s.data;t===l.C&&(_+=i-O[L-4],I+=n-O[L-3]),d=l.C,R=i+v[w++],D=n+v[w++],i+=v[w++],n+=v[w++],s.addData(d,_,I,R,D,i,n);break;case"Q":R=v[w++],D=v[w++],i=v[w++],n=v[w++],d=l.Q,s.addData(d,R,D,i,n);break;case"q":R=v[w++]+i,D=v[w++]+n,i+=v[w++],n+=v[w++],d=l.Q,s.addData(d,R,D,i,n);break;case"T":_=i,I=n;L=s.len(),O=s.data;t===l.Q&&(_+=i-O[L-4],I+=n-O[L-3]),i=v[w++],n=v[w++],d=l.Q,s.addData(d,_,I,i,n);break;case"t":_=i,I=n;L=s.len(),O=s.data;t===l.Q&&(_+=i-O[L-4],I+=n-O[L-3]),i+=v[w++],n+=v[w++],d=l.Q,s.addData(d,_,I,i,n);break;case"A":x=v[w++],S=v[w++],T=v[w++],C=v[w++],k=v[w++],R=i,D=n,i=v[w++],n=v[w++],d=l.A,h(R,D,i,n,C,k,x,S,T,d,s);break;case"a":x=v[w++],S=v[w++],T=v[w++],C=v[w++],k=v[w++],R=i,D=n,i+=v[w++],n+=v[w++],d=l.A,h(R,D,i,n,C,k,x,S,T,d,s);break}}"z"!==g&&"Z"!==g||(d=l.Z,s.addData(d),i=r,n=o),t=d}return s.toStatic(),s}function v(e,t){var i=g(e);return t=t||{},t.buildPath=function(e){if(e.setData){e.setData(i.data);var t=e.getContext();t&&e.rebuildPath(t)}else{t=e;i.rebuildPath(t)}},t.applyTransform=function(e){r(i,e),this.dirty(!0)},t}function b(e,t){return new n(v(e,t))}function y(e,t){return n.extend(v(e,t))}function w(e,t){for(var i=[],a=e.length,r=0;r<a;r++){var o=e[r];o.path||o.createPathProxy(),o.__dirtyPath&&o.buildPath(o.path,o.shape,!0),i.push(o.path)}var s=new n(t);return s.createPathProxy(),s.buildPath=function(e){e.appendPath(i);var t=e.getContext();t&&e.rebuildPath(t)},s}t.createFromString=b,t.extendFromString=y,t.mergePath=w},3469:function(e,t,i){"use strict";i("5ea7")},"347f":function(e,t,i){var n=i("6d8b"),a=i("9850"),r=i("1687"),o=i("2306"),s=i("f934"),l=i("933b"),c=i("08c3"),u=i("a15a"),d=u.createSymbol,f=i("697e"),h=i("3842"),p=i("eda2"),m=p.encodeHTML,g=n.bind,v=n.each,b=Math.PI,y=l.extend({type:"timeline.slider",init:function(e,t){this.api=t,this._axis,this._viewRect,this._timer,this._currentPointer,this._mainGroup,this._labelGroup},render:function(e,t,i,n){if(this.model=e,this.api=i,this.ecModel=t,this.group.removeAll(),e.get("show",!0)){var a=this._layout(e,i),r=this._createGroup("mainGroup"),o=this._createGroup("labelGroup"),s=this._axis=this._createAxis(a,e);e.formatTooltip=function(e){return m(s.scale.getLabel(e))},v(["AxisLine","AxisTick","Control","CurrentPointer"],(function(t){this["_render"+t](a,r,s,e)}),this),this._renderAxisLabel(a,o,s,e),this._position(a,e)}this._doPlayStop()},remove:function(){this._clearTimer(),this.group.removeAll()},dispose:function(){this._clearTimer()},_layout:function(e,t){var i=e.get("label.position"),n=e.get("orient"),a=w(e,t);null==i||"auto"===i?i="horizontal"===n?a.y+a.height/2<t.getHeight()/2?"-":"+":a.x+a.width/2<t.getWidth()/2?"+":"-":isNaN(i)&&(i={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[n][i]);var r,o,s,l,c={horizontal:"center",vertical:i>=0||"+"===i?"left":"right"},u={horizontal:i>=0||"+"===i?"top":"bottom",vertical:"middle"},d={horizontal:0,vertical:b/2},f="vertical"===n?a.height:a.width,h=e.getModel("controlStyle"),p=h.get("show",!0),m=p?h.get("itemSize"):0,g=p?h.get("itemGap"):0,v=m+g,y=e.get("label.rotate")||0;y=y*b/180;var _=h.get("position",!0),I=p&&h.get("showPlayBtn",!0),x=p&&h.get("showPrevBtn",!0),S=p&&h.get("showNextBtn",!0),T=0,C=f;return"left"===_||"bottom"===_?(I&&(r=[0,0],T+=v),x&&(o=[T,0],T+=v),S&&(s=[C-m,0],C-=v)):(I&&(r=[C-m,0],C-=v),x&&(o=[0,0],T+=v),S&&(s=[C-m,0],C-=v)),l=[T,C],e.get("inverse")&&l.reverse(),{viewRect:a,mainLength:f,orient:n,rotation:d[n],labelRotation:y,labelPosOpt:i,labelAlign:e.get("label.align")||c[n],labelBaseline:e.get("label.verticalAlign")||e.get("label.baseline")||u[n],playPosition:r,prevBtnPosition:o,nextBtnPosition:s,axisExtent:l,controlSize:m,controlGap:g}},_position:function(e,t){var i=this._mainGroup,n=this._labelGroup,a=e.viewRect;if("vertical"===e.orient){var o=r.create(),s=a.x,l=a.y+a.height;r.translate(o,o,[-s,-l]),r.rotate(o,o,-b/2),r.translate(o,o,[s,l]),a=a.clone(),a.applyTransform(o)}var c=v(a),u=v(i.getBoundingRect()),d=v(n.getBoundingRect()),f=i.position,h=n.position;h[0]=f[0]=c[0][0];var p=e.labelPosOpt;if(isNaN(p)){var m="+"===p?0:1;y(f,u,c,1,m),y(h,d,c,1,1-m)}else{m=p>=0?0:1;y(f,u,c,1,m),h[1]=f[1]+p}function g(e){var t=e.position;e.origin=[c[0][0]-t[0],c[1][0]-t[1]]}function v(e){return[[e.x,e.x+e.width],[e.y,e.y+e.height]]}function y(e,t,i,n,a){e[n]+=i[n][a]-t[n][a]}i.attr("position",f),n.attr("position",h),i.rotation=n.rotation=e.rotation,g(i),g(n)},_createAxis:function(e,t){var i=t.getData(),n=t.get("axisType"),a=f.createScaleByModel(t,n);a.getTicks=function(){return i.mapArray(["value"],(function(e){return e}))};var r=i.getDataExtent("value");a.setExtent(r[0],r[1]),a.niceTicks();var o=new c("value",a,e.axisExtent,n);return o.model=t,o},_createGroup:function(e){var t=this["_"+e]=new o.Group;return this.group.add(t),t},_renderAxisLine:function(e,t,i,a){var r=i.getExtent();a.get("lineStyle.show")&&t.add(new o.Line({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:n.extend({lineCap:"round"},a.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(e,t,i,n){var a=n.getData(),r=i.scale.getTicks();v(r,(function(e){var r=i.dataToCoord(e),s=a.getItemModel(e),l=s.getModel("itemStyle"),c=s.getModel("emphasis.itemStyle"),u={position:[r,0],onclick:g(this._changeTimeline,this,e)},d=I(s,l,t,u);o.setHoverStyle(d,c.getItemStyle()),s.get("tooltip")?(d.dataIndex=e,d.dataModel=n):d.dataIndex=d.dataModel=null}),this)},_renderAxisLabel:function(e,t,i,n){var a=i.getLabelModel();if(a.get("show")){var r=n.getData(),s=i.getViewLabels();v(s,(function(n){var a=n.tickValue,s=r.getItemModel(a),l=s.getModel("label"),c=s.getModel("emphasis.label"),u=i.dataToCoord(n.tickValue),d=new o.Text({position:[u,0],rotation:e.labelRotation-e.rotation,onclick:g(this._changeTimeline,this,a),silent:!1});o.setTextStyle(d.style,l,{text:n.formattedLabel,textAlign:e.labelAlign,textVerticalAlign:e.labelBaseline}),t.add(d),o.setHoverStyle(d,o.setTextStyle({},c))}),this)}},_renderControl:function(e,t,i,n){var a=e.controlSize,r=e.rotation,s=n.getModel("controlStyle").getItemStyle(),l=n.getModel("emphasis.controlStyle").getItemStyle(),c=[0,-a/2,a,a],u=n.getPlayState(),d=n.get("inverse",!0);function f(e,i,u,d){if(e){var f={position:e,origin:[a/2,0],rotation:d?-r:0,rectHover:!0,style:s,onclick:u},h=_(n,i,c,f);t.add(h),o.setHoverStyle(h,l)}}f(e.nextBtnPosition,"controlStyle.nextIcon",g(this._changeTimeline,this,d?"-":"+")),f(e.prevBtnPosition,"controlStyle.prevIcon",g(this._changeTimeline,this,d?"+":"-")),f(e.playPosition,"controlStyle."+(u?"stopIcon":"playIcon"),g(this._handlePlayClick,this,!u),!0)},_renderCurrentPointer:function(e,t,i,n){var a=n.getData(),r=n.getCurrentIndex(),o=a.getItemModel(r).getModel("checkpointStyle"),s=this,l={onCreate:function(e){e.draggable=!0,e.drift=g(s._handlePointerDrag,s),e.ondragend=g(s._handlePointerDragend,s),x(e,r,i,n,!0)},onUpdate:function(e){x(e,r,i,n)}};this._currentPointer=I(o,o,this._mainGroup,{},this._currentPointer,l)},_handlePlayClick:function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},_handlePointerDrag:function(e,t,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},_handlePointerDragend:function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},_pointerChangeTimeline:function(e,t){var i=this._toAxisCoord(e)[0],n=this._axis,a=h.asc(n.getExtent().slice());i>a[1]&&(i=a[1]),i<a[0]&&(i=a[0]),this._currentPointer.position[0]=i,this._currentPointer.dirty();var r=this._findNearestTick(i),o=this.model;(t||r!==o.getCurrentIndex()&&o.get("realtime"))&&this._changeTimeline(r)},_doPlayStop:function(){function e(){var e=this.model;this._changeTimeline(e.getCurrentIndex()+(e.get("rewind",!0)?-1:1))}this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(g(e,this),this.model.get("playInterval")))},_toAxisCoord:function(e){var t=this._mainGroup.getLocalTransform();return o.applyTransform(e,t,!0)},_findNearestTick:function(e){var t,i=this.model.getData(),n=1/0,a=this._axis;return i.each(["value"],(function(i,r){var o=a.dataToCoord(i),s=Math.abs(o-e);s<n&&(n=s,t=r)})),t},_clearTimer:function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},_changeTimeline:function(e){var t=this.model.getCurrentIndex();"+"===e?e=t+1:"-"===e&&(e=t-1),this.api.dispatchAction({type:"timelineChange",currentIndex:e,from:this.uid})}});function w(e,t){return s.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},e.get("padding"))}function _(e,t,i,n){var r=n.style,s=o.createIcon(e.get(t),n||{},new a(i[0],i[1],i[2],i[3]));return r&&s.setStyle(r),s}function I(e,t,i,a,r,o){var s=t.get("color");if(r)r.setColor(s),i.add(r),o&&o.onUpdate(r);else{var l=e.get("symbol");r=d(l,-1,-1,2,2,s),r.setStyle("strokeNoScale",!0),i.add(r),o&&o.onCreate(r)}var c=t.getItemStyle(["color","symbol","symbolSize"]);r.setStyle(c),a=n.merge({rectHover:!0,z2:100},a,!0);var u=e.get("symbolSize");u=u instanceof Array?u.slice():[+u,+u],u[0]/=2,u[1]/=2,a.scale=u;var f=e.get("symbolOffset");if(f){var p=a.position=a.position||[0,0];p[0]+=h.parsePercent(f[0],u[0]),p[1]+=h.parsePercent(f[1],u[1])}var m=e.get("symbolRotate");return a.rotation=(m||0)*Math.PI/180||0,r.attr(a),r.updateTransform(),r}function x(e,t,i,n,a){if(!e.dragging){var r=n.getModel("checkpointStyle"),o=i.dataToCoord(n.getData().get(["value"],t));a||!r.get("animation",!0)?e.attr({position:[o,0]}):(e.stopAnimation(!0),e.animateTo({position:[o,0]},r.get("animationDuration",!0),r.get("animationEasing",!0)))}}e.exports=y},"34ef":function(e,t,i){i("ec30")("Uint8",1,(function(e){return function(t,i,n){return e(this,t,i,n)}}))},3557:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"reading-rule-config-form"},[i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"readingRulesForm",staticStyle:{width:"800px"},attrs:{model:e.form,rules:e.rules,"label-width":"260px",size:"small"}},[i("el-form-item",{attrs:{label:e.$t("trials:processCfg:form:imagePlatform"),prop:"ImagePlatform"}},[i("el-radio-group",{attrs:{disabled:e.isConfirm||!e.hasPermi(["trials:trials-panel:setting:reading-unit:edit"])},model:{value:e.form.ImagePlatform,callback:function(t){e.$set(e.form,"ImagePlatform",t)},expression:"form.ImagePlatform"}},e._l(e.$d.ImagePlatform,(function(t){return i("el-radio",{key:t.id,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1),e._v(" "),3===e.form.ImagePlatform?i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:readingRules:title:readingTool"),prop:"ReadingTool"}},[i("el-radio-group",{attrs:{disabled:e.isConfirm||!e.hasPermi(["trials:trials-panel:setting:reading-unit:edit"])},model:{value:e.form.ReadingTool,callback:function(t){e.$set(e.form,"ReadingTool",t)},expression:"form.ReadingTool"}},e._l(e.$d.ReadingTool,(function(t){return i("el-radio",{key:t.id,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:processCfg:form:readingType"),prop:"ReadingType"}},[i("el-radio-group",{attrs:{disabled:e.isConfirm||!e.hasPermi(["trials:trials-panel:setting:reading-unit:edit"])},model:{value:e.form.ReadingType,callback:function(t){e.$set(e.form,"ReadingType",t)},expression:"form.ReadingType"}},e._l(e.$d.ReadingMethod,(function(t){return i("el-radio",{key:t.id,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:readingRules:title:isReadingPeriod"),prop:"IsReadingPeriod"}},[i("el-radio-group",{attrs:{disabled:e.isConfirm||!e.hasPermi(["trials:trials-panel:setting:reading-unit:edit"])},model:{value:e.form.IsReadingPeriod,callback:function(t){e.$set(e.form,"IsReadingPeriod",t)},expression:"form.IsReadingPeriod"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"IsReadingPeriod"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:processCfg:form:global"),prop:"IsGlobalReading"}},[i("el-radio-group",{attrs:{disabled:e.IsMustGlobalReading||e.isConfirm||!e.hasPermi(["trials:trials-panel:setting:reading-unit:edit"])},model:{value:e.form.IsGlobalReading,callback:function(t){e.$set(e.form,"IsGlobalReading",t)},expression:"form.IsGlobalReading"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"IsGlobalReading"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1),e._v(" "),2===e.form.ReadingType?i("el-form-item",{attrs:{label:e.$t("trials:processCfg:form:ad"),prop:"IsArbitrationReading"}},[i("el-radio-group",{attrs:{disabled:e.isConfirm||!e.hasPermi(["trials:trials-panel:setting:reading-unit:edit"])},model:{value:e.form.IsArbitrationReading,callback:function(t){e.$set(e.form,"IsArbitrationReading",t)},expression:"form.IsArbitrationReading"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"IsArbitrationReading"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:processCfg:form:clinical"),prop:"IsOncologyReading"}},[i("el-radio-group",{attrs:{disabled:e.form.IsSystemCriterion||e.isConfirm||!e.hasPermi(["trials:trials-panel:setting:reading-unit:edit"])},model:{value:e.form.IsOncologyReading,callback:function(t){e.$set(e.form,"IsOncologyReading",t)},expression:"form.IsOncologyReading"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"IsOncologyReading"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:readingRules:title:readingTaskViewInOrder"),prop:"IsReadingTaskViewInOrder"}},[i("el-radio-group",{attrs:{disabled:e.isConfirm||!e.hasPermi(["trials:trials-panel:setting:reading-unit:edit"])},on:{change:function(t){t?(e.form.IsReadingShowSubjectInfo=!0,e.form.IsReadingShowPreviousResults=!0,e.IsNotReadingShowSubjectInfoChange=!0,e.form.IseCRFShowInDicomReading=!1):e.IsNotReadingShowSubjectInfoChange=!1}},model:{value:e.form.IsReadingTaskViewInOrder,callback:function(t){e.$set(e.form,"IsReadingTaskViewInOrder",t)},expression:"form.IsReadingTaskViewInOrder"}},e._l(e.$d.IsReadingTaskViewInOrder,(function(t){return i("el-radio",{key:"IsReadingTaskViewInOrder"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:readingRules:title:readingTaskViewEnum"),prop:"ReadingTaskViewEnum"}},[i("el-radio-group",{attrs:{disabled:e.isConfirm||!e.isReadingTaskViewInOrder||!e.hasPermi(["trials:trials-panel:setting:reading-unit:edit"])},model:{value:e.form.ReadingTaskViewEnum,callback:function(t){e.$set(e.form,"ReadingTaskViewEnum",t)},expression:"form.ReadingTaskViewEnum"}},e._l(e.$d.ReadingTaskViewEnum,(function(t){return i("el-radio",{key:t.id,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:readingRules:title:isReadingShowSubjectInfo"),prop:"IsReadingShowSubjectInfo"}},[i("el-radio-group",{attrs:{disabled:e.isConfirm||!e.hasPermi(["trials:trials-panel:setting:reading-unit:edit"])||e.form.IsReadingTaskViewInOrder},model:{value:e.form.IsReadingShowSubjectInfo,callback:function(t){e.$set(e.form,"IsReadingShowSubjectInfo",t)},expression:"form.IsReadingShowSubjectInfo"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"IsReadingShowSubjectInfo"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:readingRules:title:isReadingShowPreviousResults"),prop:"IsReadingShowPreviousResults"}},[i("el-radio-group",{attrs:{disabled:e.isConfirm||!e.hasPermi(["trials:trials-panel:setting:reading-unit:edit"])||e.form.IsReadingTaskViewInOrder},model:{value:e.form.IsReadingShowPreviousResults,callback:function(t){e.$set(e.form,"IsReadingShowPreviousResults",t)},expression:"form.IsReadingShowPreviousResults"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"IsReadingShowPreviousResults"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:processCfg:form:digitPlaces"),prop:"DigitPlaces"}},[i("el-radio-group",{attrs:{disabled:e.isConfirm||!e.hasPermi(["trials:trials-panel:setting:reading-unit:edit"])},model:{value:e.form.DigitPlaces,callback:function(t){e.$set(e.form,"DigitPlaces",t)},expression:"form.DigitPlaces"}},e._l(e.$d.DigitPlaces,(function(t){return i("el-radio",{key:t.id,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:readingRules:title:isECRFShowInDicomReading"),prop:"IseCRFShowInDicomReading"}},[i("el-radio-group",{attrs:{disabled:e.form.IsSystemCriterion||e.isConfirm||!e.hasPermi(["trials:trials-panel:setting:reading-unit:edit"])||e.form.IsReadingTaskViewInOrder},model:{value:e.form.IseCRFShowInDicomReading,callback:function(t){e.$set(e.form,"IseCRFShowInDicomReading",t)},expression:"form.IseCRFShowInDicomReading"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:t.label,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1),e._v(" "),!e.isConfirm&&e.hasPermi(["trials:trials-panel:setting:reading-unit:edit"])?i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.handleSave(!0)}}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1):e._e()],1)],1)},a=[],r=i("3e42"),o={name:"ReadingRules",props:{trialReadingCriterionId:{type:String,default:function(){return""}}},data:function(){return{form:{TrialId:"",ImagePlatform:null,ReadingTool:0,ReadingTaskViewEnum:null,IsImageLabeled:null,IsReadingShowSubjectInfo:null,IsReadingShowPreviousResults:null,ReadingType:1,IsGlobalReading:!1,IsArbitrationReading:!1,IsOncologyReading:0,IsReadingTaskViewInOrder:!1,IsReadingPeriod:!1,ArbitrationRule:null,GlobalUpdateType:null,IsSystemCriterion:!0,DigitPlaces:null,IseCRFShowInDicomReading:!1},rules:{ImagePlatform:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}],ReadingTool:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}],ReadingTaskViewEnum:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}],IsImageLabeled:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}],IsReadingShowSubjectInfo:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}],IsReadingShowPreviousResults:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}],ReadingType:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}],IsReadingTaskViewInOrder:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}],IsGlobalReading:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}],IsArbitrationReading:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}],IsOncologyReading:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}],DigitPlaces:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}],IseCRFShowInDicomReading:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}],IsReadingPeriod:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}]},loading:!1,readingInfo:{},isConfirm:!0,isReadingTaskViewInOrder:null,IsMustGlobalReading:!1,IsNotReadingShowSubjectInfoChange:!1}},mounted:function(){this.initPage(),console.log(this.$d.GlobalAssessType)},methods:{initPage:function(){var e=this;this.loading=!0;var t=this.$route.query.trialId;Object(r["Wb"])({trialId:t,TrialReadingCriterionId:this.trialReadingCriterionId}).then((function(t){for(var i in e.loading=!1,e.form)t.Result.hasOwnProperty(i)&&(e.form[i]=t.Result[i]);e.isReadingTaskViewInOrder=t.Result.IsReadingTaskViewInOrder,e.isConfirm=t.Result.IsSign,e.IsMustGlobalReading=t.Result.IsMustGlobalReading,e.$emit("setConfirm",t.Result.IsSign),e.$emit("setArbitrationReading",t.Result.IsArbitrationReading),e.$emit("setIsClinicalReading",t.Result.IsClinicalReading),e.$emit("setGlobalReading",t.Result.IsGlobalReading),e.$emit("setOncologyReading",t.Result.IsOncologyReading),e.$emit("setDigitPlaces",t.Result.DigitPlaces),1===t.Result.ReadingType&&e.$emit("setArbitrationReading",!1)})).catch((function(){e.loading=!1}))},handleSave:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return new Promise((function(i,n){e.$refs["readingRulesForm"].validate((function(n){n?(e.loading=!0,1===e.form.ReadingType&&(e.form.IsArbitrationReading=!1),e.form.TrialReadingCriterionId=e.trialReadingCriterionId,Object(r["Ie"])(e.form).then((function(n){e.loading=!1,e.$emit("reloadArbitrationRules"),e.$emit("setArbitrationReading",e.form.IsArbitrationReading),e.$emit("setIsClinicalReading",e.form.IsClinicalReading),e.$emit("setGlobalReading",e.form.IsGlobalReading),e.$emit("setOncologyReading",e.form.IsOncologyReading),e.$emit("setDigitPlaces",e.form.DigitPlaces),1===e.form.ReadingType&&e.$emit("setArbitrationReading",!1),n.IsSuccess&&t&&e.$message.success(e.$t("common:message:savedSuccessfully")),i(!0)})).catch((function(t){e.loading=!1,i(!1)}))):i(!1)}))}))}}},s=o,l=(i("51df"),i("2877")),c=Object(l["a"])(s,n,a,!1,null,"2244477a",null);t["default"]=c.exports},35615:function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-list",use:"icon-list-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-list"><path d="M1.585 12.087c0 6.616 3.974 11.98 8.877 11.98 4.902 0 8.877-5.364 8.877-11.98 0-6.616-3.975-11.98-8.877-11.98-4.903 0-8.877 5.364-8.877 11.98zM125.86.107H35.613c-1.268 0-2.114 1.426-2.114 2.852v18.255c0 1.712 1.057 2.853 2.114 2.853h90.247c1.268 0 2.114-1.426 2.114-2.853V2.96c0-1.711-1.057-2.852-2.114-2.852zM.106 62.86c0 6.615 3.974 11.979 8.876 11.979 4.903 0 8.877-5.364 8.877-11.98 0-6.616-3.974-11.98-8.877-11.98-4.902 0-8.876 5.364-8.876 11.98zM124.17 50.88H33.921c-1.268 0-2.114 1.425-2.114 2.851v18.256c0 1.711 1.057 2.852 2.114 2.852h90.247c1.268 0 2.114-1.426 2.114-2.852V53.73c0-1.426-.846-2.852-2.114-2.852zM.106 115.913c0 6.616 3.974 11.98 8.876 11.98 4.903 0 8.877-5.364 8.877-11.98 0-6.616-3.974-11.98-8.877-11.98-4.902 0-8.876 5.364-8.876 11.98zm124.064-11.98H33.921c-1.268 0-2.114 1.426-2.114 2.853v18.255c0 1.711 1.057 2.852 2.114 2.852h90.247c1.268 0 2.114-1.426 2.114-2.852v-18.255c0-1.427-.846-2.853-2.114-2.853z" /></symbol>'});o.a.add(s);t["default"]=s},3577:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("base-model",{attrs:{config:e.model_cfg}},[i("template",{slot:"dialog-body"},[i("el-form",{ref:"NoticeForm",attrs:{model:e.form,rules:e.rules,"label-width":"120px",size:"small"}},[i("el-form-item",{attrs:{label:"通知级别: ",prop:"NoticeLevelEnum"}},[i("el-select",{attrs:{placeholder:"通知级别",clearable:"",size:"small"},model:{value:e.form.NoticeLevelEnum,callback:function(t){e.$set(e.form,"NoticeLevelEnum",t)},expression:"form.NoticeLevelEnum"}},e._l(e.dict.type.NoteLevel,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:1*e.raw.Code}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"通知类型: ",prop:"NoticeTypeEnum"}},[i("el-select",{attrs:{placeholder:"通知类型",clearable:"",size:"small"},model:{value:e.form.NoticeTypeEnum,callback:function(t){e.$set(e.form,"NoticeTypeEnum",t)},expression:"form.NoticeTypeEnum"}},e._l(e.dict.type.NoteType,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:1*e.raw.Code}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"适用项目: ",prop:"ApplicableProjectEnum"}},[i("el-select",{attrs:{placeholder:"适用项目",clearable:"",size:"small"},model:{value:e.form.ApplicableProjectEnum,callback:function(t){e.$set(e.form,"ApplicableProjectEnum",t)},expression:"form.ApplicableProjectEnum"}},e._l(e.dict.type.NoticeApplicableTrial,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:1*e.raw.Code}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"适用角色: ",prop:"NoticeUserTypeIdList"}},[i("el-select",{attrs:{multiple:"",placeholder:"使用角色",clearable:"",size:"small"},model:{value:e.form.NoticeUserTypeIdList,callback:function(t){e.$set(e.form,"NoticeUserTypeIdList",t)},expression:"form.NoticeUserTypeIdList"}},e._l(e.roleList,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.UserTypeShortName,value:e.Id}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"提醒方式: ",prop:"NoticeModeEnum"}},[i("el-select",{attrs:{placeholder:"提醒方式",clearable:"",size:"small"},model:{value:e.form.NoticeModeEnum,callback:function(t){e.$set(e.form,"NoticeModeEnum",t)},expression:"form.NoticeModeEnum"}},e._l(e.dict.type.NoticeMode,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:1*e.raw.Code}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"开始时间: ",prop:"Code"}},[i("el-date-picker",{attrs:{type:"datetime",placeholder:"选择开始时间"},model:{value:e.form.StartDate,callback:function(t){e.$set(e.form,"StartDate",t)},expression:"form.StartDate"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"结束时间: ",prop:"Code"}},[i("el-date-picker",{attrs:{type:"datetime",placeholder:"选择结束时间"},model:{value:e.form.EndDate,callback:function(t){e.$set(e.form,"EndDate",t)},expression:"form.EndDate"}})],1),e._v(" "),e.form.Id?e._e():i("el-form-item",{attrs:{label:"是否发布: ",prop:"Code"}},[i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},model:{value:e.form.IsPush,callback:function(t){e.$set(e.form,"IsPush",t)},expression:"form.IsPush"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"通知内容: ",prop:"NoticeContent"}},[i("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4}},model:{value:e.form.NoticeContent,callback:function(t){e.$set(e.form,"NoticeContent",t)},expression:"form.NoticeContent"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"附件: "}},[i("el-upload",{staticClass:"upload-demo",attrs:{action:"","before-upload":e.beforeUpload,"http-request":e.handleUploadFile,"on-preview":e.handlePreview,"on-remove":e.handleRemoveFile,"show-file-list":!0,limit:1,"file-list":e.fileList}},[i("el-button",{attrs:{size:"small",type:"primary",disabled:e.fileList.length>0}},[e._v("点击上传")])],1)],1)],1)],1),e._v(" "),i("template",{slot:"dialog-footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.handleCancle}},[e._v("Cancel")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleSave}},[e._v("Save")])],1)],2)},a=[],r=i("db72"),o=(i("ac6a"),i("456d"),i("7f7f"),i("8b29")),s=i("7eeb"),l=function(){return{Id:null,NoticeLevelEnum:null,NoticeTypeEnum:null,NoticeContent:null,ApplicableProjectEnum:null,NoticeModeEnum:null,NoticeStateEnum:0,StartDate:null,EndDate:null,FileName:null,Path:null,IsPush:!1,NoticeUserTypeIdList:[]}},c={components:{BaseModel:s["default"]},props:{roleList:{type:Array,default:function(){return[]}}},dicts:["NoticeApplicableTrial","NoteLevel","NoteType","NoticeState","NoticeMode"],data:function(){return{btnLoading:!1,form:l(),rules:{NoticeLevelEnum:[{required:!0,message:"Please specify",trigger:"blur"}],NoticeTypeEnum:[{required:!0,message:"Please specify",trigger:"blur"}],NoticeContent:[{required:!0,message:"Please specify",trigger:"blur"}],ApplicableProjectEnum:[{required:!0,message:"Please specify",trigger:"blur"}],NoticeModeEnum:[{required:!0,message:"Please specify",trigger:"blur"}],NoticeUserTypeIdList:[{required:!0,message:"Please specify",trigger:"blur"}]},fileList:[],model_cfg:{visible:!1,showClose:!0,width:"600px",title:"",appendToBody:!0}}},mounted:function(){},methods:{handleRemoveFile:function(){this.form.FileName=null,this.form.Path=null,this.fileList=[]},beforeUpload:function(){this.fileList.length>0&&this.$message.error("最多只能传一个附件")},handlePreview:function(e,t){e.fullPath&&window.open(e.fullPath,"_blank")},handleUploadFile:function(e){var t=this;this.btnLoading=!0;var i=new FormData;i.append("file",e.file),this.form.FileName=e.file.name,Object(o["c"])(i).then((function(i){t.form.Path=i.Result.FilePath,t.btnLoading=!1,t.fileList[0]={name:e.file.name,path:i.Result.FilePath,fullPath:i.Result.FullFilePath}}))},openDialog:function(e,t){this.model_cfg.visible=!0,this.model_cfg.title=e,this.fileList=[],Object.keys(t).length?(this.form=Object(r["a"])({},t),this.form.FileName&&(this.fileList[0]={name:this.form.FileName,path:this.form.FilePath,fullPath:this.form.FullFilePath}),this.$set(this.form,"NoticeUserTypeIdList",this.form.NoticeUserTypeList.map((function(e){return e.Id})))):this.form=l()},handleSave:function(){var e=this;this.$refs.NoticeForm.validate((function(t){!e.form.Id&&e.form.IsPush&&(e.form.NoticeStateEnum=1),t&&(e.form.StartDate=e.form.StartDate?e.parseTime(e.form.StartDate):null,e.form.EndDate=e.parseTime(e.form.EndDate)?e.parseTime(e.form.EndDate):null,e.btnLoading=!0,Object(o["a"])(e.form).then((function(t){e.btnLoading=!1,e.$message.success("Saved successfully!"),e.model_cfg.visible=!1,e.$emit("getList")})).catch((function(){e.btnLoading=!1})))}))},handleCancle:function(){this.model_cfg.visible=!1}}},u=c,d=i("2877"),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},"35dd":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("el-form",{ref:"questions",staticStyle:{width:"600px"},attrs:{size:"small",model:e.questionForm}},[e._l(e.questions,(function(t){return i("div",{key:t.id},[i("div",{staticStyle:{"font-weight":"bold",padding:"5px 0"}},[e._v(e._s(t.group))]),e._v(" "),e._l(t.questions,(function(t){return i("FormItem",{key:t.id,attrs:{question:t,"question-form":e.questionForm},on:{resetFormItemData:e.resetFormItemData}})}))],2)})),e._v(" "),i("el-form-item",[i("el-button",[e._v("取消")]),e._v(" "),i("el-button",{on:{click:e.submit}},[e._v("提交")])],1)],2)],1)},a=[],r=i("bd41"),o={name:"Home",components:{FormItem:r["default"]},data:function(){return{questions:[{id:"01",group:"图像质量",questions:[{id:"001",parentId:"",question:"问题1",type:"select",typeValue:"A|B|C",value:"",isRequired:!0,childrens:[{id:"002",parentId:"001",triggleValue:"A",question:"问题1.1",type:"input",typeValue:"",value:"",childrens:[]}]}]},{id:"02",group:"质控问题",questions:[{id:"003",parentId:"",question:"问题2",type:"radio",typeValue:"Yes|No",value:"",childrens:[{id:"004",parentId:"003",triggleValue:"Yes",question:"问题2.1",type:"input",typeValue:"",value:"",childrens:[]},{id:"005",parentId:"003",triggleValue:"No",question:"问题2.2",type:"radio",typeValue:"是|否",value:"",childrens:[{id:"006",parentId:"005",triggleValue:"是",question:"问题2.2.1",type:"input",typeValue:"",value:"",childrens:[]},{id:"007",parentId:"005",triggleValue:"否",question:"问题2.2.2",type:"input",typeValue:"",value:"",childrens:[]}]}]}]}],questionForm:{"001":"","002":"","003":"","004":"","005":"","006":"","007":""}}},methods:{submit:function(){this.$refs["questions"].validate((function(e){}))},resetFormItemData:function(e){this.questionForm[e]=""}}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},"35fc":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"reading-unit-wrapper"},[e.isShow?i("div",{staticClass:"content"},[i("el-tabs",{attrs:{type:"border-card"},model:{value:e.TrialReadingCriterionId,callback:function(t){e.TrialReadingCriterionId=t},expression:"TrialReadingCriterionId"}},e._l(e.trialCriterionList,(function(t){return e.isPaneShow?i("el-tab-pane",{key:t.TrialReadingCriterionId,attrs:{label:t.TrialReadingCriterionName,name:t.TrialReadingCriterionId}},[i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left",loading:e.loading,size:"mini"},on:{click:e.handleSync}},[e._v("\n "+e._s(e.$t("trials:readingUnit:button:sync"))+"\n ")]),e._v(" "),i("el-collapse",{staticClass:"setting-config",model:{value:e.activeCollapse,callback:function(t){e.activeCollapse=t},expression:"activeCollapse"}},[i("el-collapse-item",{attrs:{title:e.$t("trials:readingUnit:readingCriterion"),name:"2"}},[i("ReadingCriterions",{ref:"readingCriterions"+t.TrialReadingCriterionId,refInFor:!0,attrs:{"trial-reading-criterion-id":e.TrialReadingCriterionId,"digit-places":e.digitPlaces},on:{reloadArbitrationRules:e.reloadArbitrationRules}})],1),e._v(" "),e.isGlobalReading?i("el-collapse-item",{attrs:{title:e.$t("trials:readingUnit:GlobalReading"),name:"5"}},[i("GlobalReading",{ref:"globalReading"+t.TrialReadingCriterionId,refInFor:!0,attrs:{"trial-reading-criterion-id":e.TrialReadingCriterionId}})],1):e._e(),e._v(" "),e.isArbitrationReading?i("el-collapse-item",{attrs:{title:e.$t("trials:readingUnit:adRules"),name:"3"}},[i("ArbitrationRules",{ref:"arbitrationRules"+t.TrialReadingCriterionId,refInFor:!0,attrs:{"trial-reading-criterion-id":e.TrialReadingCriterionId}})],1):e._e(),e._v(" "),e.isOncologyReading?i("el-collapse-item",{attrs:{title:e.$t("trials:readingUnit:oncologyReading"),name:"4"}},[i("OncologyForm",{ref:"oncologyForm"+t.TrialReadingCriterionId,refInFor:!0,attrs:{"trial-reading-criterion-id":e.TrialReadingCriterionId}})],1):e._e()],1)],1):e._e()})),1)],1):e._e(),e._v(" "),!e.isConfirm&&e.hasPermi(["trials:trials-panel:setting:reading-unit:edit"])?i("div",{staticClass:"bottom"},[i("el-button",{attrs:{type:"danger"},on:{click:e.handleConfirm}},[e._v("\n "+e._s(e.$t("trials:readingUnit:button:confirm"))+"\n ")])],1):e._e(),e._v(" "),e.signVisible?i("el-dialog",{attrs:{visible:e.signVisible,"close-on-click-modal":!1,width:"600px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.signVisible=t}}},[i("div",{attrs:{slot:"title"},slot:"title"},[i("span",{staticStyle:{"font-size":"18px"}},[e._v(e._s(e.$t("common:dialogTitle:sign")))]),e._v(" "),i("span",{staticStyle:{"font-size":"12px","margin-left":"5px"}},[e._v(e._s("("+e.$t("common:label:sign")+e.currentUser+")"))])]),e._v(" "),i("SignForm",{ref:"signForm",attrs:{"sign-code-enum":e.signCode},on:{closeDialog:e.closeSignDialog}})],1):e._e()],1)},a=[],r=(i("a481"),i("96cf"),i("3b8d")),o=i("3e42"),s=i("3557"),l=i("411cc"),c=i("317d"),u=i("6469"),d=i("18e9"),f=i("179b"),h=i("7a9e"),p={name:"ReadingUnit",components:{GlobalReading:u["default"],ReadingRules:s["default"],ReadingCriterions:l["default"],ArbitrationRules:c["default"],OncologyForm:d["default"],SignForm:f["default"]},data:function(){return{NODE_ENV:"production",activeCollapse:["1","2","3","4","5"],signCode:null,signVisible:!1,currentUser:zzSessionStorage.getItem("userName"),isConfirm:!0,loading:!1,isArbitrationReading:!1,isClinicalReading:!1,trialCriterionList:[],TrialReadingCriterionId:"0",trialId:this.$route.query.trialId,isPaneShow:!0,isShow:!1,isOncologyReading:!1,isGlobalReading:!1,digitPlaces:0}},watch:{TrialReadingCriterionId:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){var i=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.asyncTrialCriterionDictionary(t);case 2:this.isPaneShow=!1,this.$nextTick((function(){i.isPaneShow=!0}));case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},mounted:function(){this.getTrialCriterionList()},methods:{handleSync:function(){var e=this;this.$confirm(this.$t("trials:readingUnit:message:sync")).then((function(){e.loading=!0,Object(o["we"])(e.TrialReadingCriterionId).then(function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(i){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.asyncTrialCriterionDictionary(e.TrialReadingCriterionId);case 2:e.isPaneShow=!1,e.$nextTick((function(){e.isPaneShow=!0,e.loading=!1}));case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())}))},asyncTrialCriterionDictionary:function(e){var t=this;return new Promise((function(e){Object(o["N"])({TrialReadingCriterionId:t.TrialReadingCriterionId}).then((function(t){e()}))}))},getTrialCriterionList:function(){var e=this;Object(o["Cd"])(this.trialId,!1).then(function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(i){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.trialCriterionList=i.Result,e.TrialReadingCriterionId=e.trialCriterionList[0].TrialReadingCriterionId,e.isShow=!0;case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(){}))},setConfirm:function(e){this.isConfirm=e},setDigitPlaces:function(e){this.digitPlaces=e},setIsClinicalReading:function(e){this.isClinicalReading=e},setArbitrationReading:function(e){this.isArbitrationReading=e},setGlobalReading:function(e){this.isGlobalReading=e},setOncologyReading:function(e){this.isOncologyReading=e},updateCriterions:function(){var e=this;this.loading=!0,Object(o["hf"])({trialId:this.$route.query.trialId,TrialReadingCriterionId:this.TrialReadingCriterionId}).then((function(t){e.$router.push({path:"/trials/trials-panel/setting/reading-unit?trialId=".concat(e.$route.query.trialId,"&trialCode=").concat(e.$route.query.trialCode,"&researchProgramNo=").concat(e.$route.query.researchProgramNo,"&t=").concat((new Date).getTime())}),e.loading=!1})).catch((function(){e.loading=!1}))},handleConfirm:function(){var e=this;this.loading=!0,Object(o["Pf"])({trialId:this.$route.query.trialId,TrialReadingCriterionId:this.TrialReadingCriterionId}).then(function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(i){var n,a,r,s,l,c,u;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.loading=!1,1===i.Result){t.next=5;break}e.$confirm(e.$t("trials:readingUnit:message:msg1"),{type:"warning"}).then((function(){e.updateCriterions()})).catch((function(e){})),t.next=32;break;case 5:if(t.prev=5,n=[],!e.$refs["arbitrationRules"+e.TrialReadingCriterionId]||!e.$refs["arbitrationRules"+e.TrialReadingCriterionId].length){t.next=12;break}return t.next=10,e.$refs["arbitrationRules"+e.TrialReadingCriterionId][0].saveAllSync();case 10:a=t.sent,n.push({isCheck:a,msg:e.$t("trials:readingUnit:adRules")});case 12:return t.next=14,e.$refs["readingRules"+e.TrialReadingCriterionId][0].handleSave(!1);case 14:if(r=t.sent,n.push({isCheck:r,msg:e.$t("trials:readingUnit:readingRules")}),!e.$refs["globalReading"+e.TrialReadingCriterionId]||!e.$refs["globalReading"+e.TrialReadingCriterionId].length){t.next=21;break}return t.next=19,e.$refs["globalReading"+e.TrialReadingCriterionId][0].handleSave(!1);case 19:s=t.sent,n.push({isCheck:s,msg:e.$t("trials:readingUnit:GlobalReading")});case 21:if(!e.$refs["oncologyForm"+e.TrialReadingCriterionId]||!e.$refs["oncologyForm"+e.TrialReadingCriterionId].length){t.next=26;break}return t.next=24,e.$refs["oncologyForm"+e.TrialReadingCriterionId][0].handleSave(!1);case 24:l=t.sent,n.push({isCheck:l,msg:e.$t("trials:readingUnit:oncologyReading")});case 26:n.every((function(e){return!0===e.isCheck}))?Object(o["lf"])({trialId:e.$route.query.trialId,TrialReadingCriterionId:e.TrialReadingCriterionId}).then((function(t){if(t.IsSuccess){var i=h["default"].processSignature.ReadingUnitConfirmation;e.signCode=i,e.signVisible=!0}})):(c=n.filter((function(e){return!1===e.isCheck})),u=c.map((function(e){return e.msg})),u=e.$t("trials:readingUnit:message:msg2").replace("xxx",u),e.$alert(u)),t.next=32;break;case 29:t.prev=29,t.t0=t["catch"](5),console.log(t.t0);case 32:case"end":return t.stop()}}),t,null,[[5,29]])})));return function(e){return t.apply(this,arguments)}}()).catch((function(){console.log(222),e.loading=!1}))},closeSignDialog:function(e,t){e?this.signConfirm(t):this.signVisible=!1},signConfirm:function(e){var t=this;this.loading=!0;var i={data:{trialId:this.$route.query.trialId,TrialReadingCriterionId:this.TrialReadingCriterionId},signInfo:e};Object(o["kf"])(i).then((function(e){e.IsSuccess&&(t.$message.success(t.$t("common:message:savedSuccessfully")),t.$refs["signForm"].btnLoading=!1,t.signVisible=!1,t.isConfirm=!0,t.$refs["readingRules"+t.TrialReadingCriterionId][0].initPage(),t.$refs["readingCriterions"+t.TrialReadingCriterionId][0].initPage(),t.$refs["arbitrationRules"+t.TrialReadingCriterionId][0].getList(),t.$refs["oncologyForm"+t.TrialReadingCriterionId][0].initForm()),t.loading=!1})).catch((function(e){t.loading=!1,t.$refs["signForm"].btnLoading=!1}))},reloadArbitrationRules:function(){this.$refs["arbitrationRules"+this.TrialReadingCriterionId][0].getList(),this.$refs["arbitrationRules"+this.TrialReadingCriterionId][0].getTrialJudgyInfo()}}},m=p,g=(i("80cd"),i("2877")),v=Object(g["a"])(m,n,a,!1,null,"22396cc4",null);t["default"]=v.exports},3609:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[i("el-tab-pane",{attrs:{label:"器官",name:"organs"}},[i("OrgansTbl",{attrs:{"criterion-id":e.criterionId,"is-complete-config":e.isCompleteConfig}})],1),e._v(" "),i("el-tab-pane",{attrs:{label:"疗效评估",name:"efficacyAssessment"}},[e.tabs.includes("efficacyAssessment")?i("EfficacyAssessment",{attrs:{"criterion-id":e.criterionId,"is-complete-config":e.isCompleteConfig}}):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"标准字典",name:"criterionDictionary"}},[e.tabs.includes("criterionDictionary")?i("CriterionDictionary",{attrs:{"criterion-id":e.criterionId,"is-complete-config":e.isCompleteConfig}}):e._e()],1)],1)},a=[],r=(i("7f7f"),i("6762"),i("2fdb"),i("4f10")),o=i("e09f"),s=i("f142"),l={name:"CriterionsBaseData",components:{OrgansTbl:r["default"],EfficacyAssessment:o["default"],CriterionDictionary:s["default"]},props:{criterionId:{type:String,required:!0},isCompleteConfig:{type:Boolean,required:!0}},data:function(){return{activeName:"organs",tabs:["organs"]}},methods:{handleClick:function(e,t){this.tabs.includes(e.name)||this.tabs.push(e.name)}}},c=l,u=i("2877"),d=Object(u["a"])(c,n,a,!1,null,null,null);t["default"]=d.exports},3644:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"search-container"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:seletctedReviews:form:modality")}},[i("el-select",{staticClass:"handle-select",attrs:{clearable:"",multiple:"","collapse-tags":""},model:{value:e.listQuery.ReadingTypeIds,callback:function(t){e.$set(e.listQuery,"ReadingTypeIds",t)},expression:"listQuery.ReadingTypeIds"}},e._l(e.$d.ReadingType,(function(e){return i("el-option",{key:e.id,attrs:{label:e.label,value:e.id}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:seletctedReviews:form:subspeciality")}},[i("el-select",{staticClass:"handle-select",attrs:{clearable:"",multiple:"","collapse-tags":""},model:{value:e.listQuery.SubspecialityIds,callback:function(t){e.$set(e.listQuery,"SubspecialityIds",t)},expression:"listQuery.SubspecialityIds"}},e._l(e.$d.Subspeciality,(function(e){return i("el-option",{key:e.id,attrs:{label:e.label,value:e.id}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:seletctedReviews:form:position")}},[i("el-select",{staticClass:"handle-select",attrs:{clearable:""},model:{value:e.listQuery.PositionId,callback:function(t){e.$set(e.listQuery,"PositionId",t)},expression:"listQuery.PositionId"}},e._l(e.$d.Position,(function(e){return i("el-option",{key:e.id,attrs:{label:e.label,value:e.id}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:seletctedReviews:form:rank")}},[i("el-select",{staticClass:"handle-select",attrs:{placeholder:e.$t("trials:seletctedReviews:form:rank"),clearable:""},model:{value:e.listQuery.RankId,callback:function(t){e.$set(e.listQuery,"RankId",t)},expression:"listQuery.RankId"}},e._l(e.$d.Rank,(function(e){return i("el-option",{key:e.id,attrs:{label:e.label,value:e.id}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:seletctedReviews:form:institution")}},[i("el-select",{staticClass:"handle-select mr10",attrs:{placeholder:e.$t("trials:seletctedReviews:form:institution"),clearable:""},model:{value:e.listQuery.HospitalId,callback:function(t){e.$set(e.listQuery,"HospitalId",t)},expression:"listQuery.HospitalId"}},e._l(e.hospitalList,(function(e,t){return i("el-option",{key:t,attrs:{label:e.HospitalName,value:e.Id}})})),1)],1),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-search",loading:e.loading},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left",loading:e.loading},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")]),e._v(" "),e.hasPermi(["role:pm"])?i("el-button",{attrs:{type:"primary",disabled:0==e.selectIdArr.length,icon:"el-icon-check",loading:e.loading},on:{click:e.handleApply}},[e._v("\n "+e._s(e.$t("trials:seletctedReviews:button:select"))+"\n ")]):e._e()],1)],1),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:65},expression:"{bottomOffset:65}"}],ref:"selectionList",staticClass:"table",attrs:{height:"100",data:e.list,"row-class-name":e.handleHighLighRow},on:{"sort-change":e.handleSortChange,"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",selectable:e.handleSelectTable}}),e._v(" "),i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"LastName",label:e.$t("trials:seletctedReviews:table:name"),"show-overflow-tooltip":"",width:"120",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("router-link",{staticStyle:{color:"#00d1b2"},attrs:{tag:"a",to:{path:"/trialsResume?doctorId="+t.row.Id+"&token="+e.token},target:"_blank"}},[e._v(e._s(t.row.LastName)+" / "+e._s(t.row.FirstName))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ChineseName",label:e.$t("trials:seletctedReviews:table:nameCN"),"show-overflow-tooltip":"",sortable:"custom",width:"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"DoctorTrialState",label:e.$t("trials:seletctedReviews:table:status"),width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.DoctorTrialState?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("DoctorTrialState",16)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Submitted",label:e.$t("trials:seletctedReviews:table:submitted"),"show-overflow-tooltip":"",sortable:"custom",width:"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Approved",label:e.$t("trials:seletctedReviews:table:approved"),"show-overflow-tooltip":"",sortable:"custom",width:"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Reading",label:e.$t("trials:seletctedReviews:table:reading"),"show-overflow-tooltip":"",sortable:"custom",width:"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Speciality",label:e.$t("trials:seletctedReviews:table:specialty"),"show-overflow-tooltip":"","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.SpecialityId===e.otherId?t.row.SpecialityOther?t.row.SpecialityOther:"Other":t.row.Speciality)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Subspeciality",label:e.$t("trials:seletctedReviews:table:subspecialty"),"show-overflow-tooltip":"","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.SubspecialityIds.map((function(t){return e.$fd("Subspeciality",t,"id")})).toString())+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"HospitalName",label:e.$t("trials:seletctedReviews:table:institution"),"show-overflow-tooltip":"",width:"150"}}),e._v(" "),i("el-table-column",{attrs:{prop:"City",label:e.$t("trials:seletctedReviews:table:city"),"show-overflow-tooltip":"",width:"150"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Country",label:e.$t("trials:seletctedReviews:table:country"),"show-overflow-tooltip":"",width:"150"}}),e._v(" "),i("el-table-column",{attrs:{prop:"OptUserName",label:e.$t("trials:seletctedReviews:table:selector"),width:"150"}}),e._v(" "),i("el-table-column",{attrs:{prop:"OptTimeStr",label:e.$t("trials:seletctedReviews:table:selectionTime"),width:"150"}})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.listQuery.PageIndex,limit:e.listQuery.PageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"PageIndex",t)},"update:limit":function(t){return e.$set(e.listQuery,"PageSize",t)},pagination:e.getList}})],1)],2)},a=[],r=i("db72"),o=i("6071"),s=i("333d"),l=i("4360"),c=i("2f62"),u=i("3e42"),d=function(){return{TrialId:"",ReadingTypeIds:[],SubspecialityIds:[],PageIndex:1,PageSize:20,PositionId:"",RankId:"",HospitalId:"",Asc:!1,SortField:"",AcceptingNewTrial:!0,InformationConfirmed:!0,ContractorStatus:1}},f={name:"Selection",components:{BaseContainer:o["default"],Pagination:s["default"]},dicts:["ReadingType","Subspeciality","Position","Rank"],data:function(){return{list:[],listQuery:d(),total:0,loading:!1,listLoading:!1,selectIdArr:[],otherId:"ef84e9cb-f1a6-49d7-b6da-34be2c12abd5",token:l["a"].getters.token}},computed:Object(r["a"])({},Object(c["b"])(["hospitalList"])),created:function(){this.initPage()},methods:{initPage:function(){this.getList(),l["a"].dispatch("global/getHospital")},getList:function(){var e=this;this.listLoading=!0,this.listQuery.TrialId=this.$route.query.trialId,Object(u["hd"])(this.listQuery).then((function(t){e.listLoading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.listLoading=!1}))},handleApply:function(){var e=this;this.$confirm(this.$t("trials:seletctedReviews:message:msg1"),{type:"warning"}).then((function(){e.loading=!0;var t=e.$route.query.trialId;Object(u["De"])(t,e.selectIdArr).then((function(t){e.loading=!1,t.IsSuccess&&(e.getList(),e.$message.success(e.$t("common:message:savedSuccessfully")),e.$emit("nextStep","submission"))})).catch((function(){e.loading=!1}))}))},handleSelectionChange:function(e){for(var t=[],i=0;i<e.length;i++)t.push(e[i].Id);this.selectIdArr=t},handleSortChange:function(e){"ascending"===e.order?this.listQuery.Asc=!0:this.listQuery.Asc=!1,this.listQuery.SortField=e.prop,this.listQuery.PageIndex=1,this.getList()},handleHighLighRow:function(e){var t=e.row;e.rowIndex;if(1===t.DoctorTrialState)return"selected"},handleSelectTable:function(e){return 1!==e.DoctorTrialState},handleDetail:function(e){var t=this.$router.resolve({path:"/trialsResume?doctorId=".concat(e.Id)}),i=t.href;window.open(i,"_blank")},handleSearch:function(){this.listQuery.PageIndex=1,this.getList()},handleReset:function(){this.listQuery=d(),this.getList()}}},h=f,p=i("2877"),m=Object(p["a"])(h,n,a,!1,null,null,null);t["default"]=m.exports},"365d":function(e,t,i){"use strict";i.d(t,"a",(function(){return I}));i("c5f6"),i("7f7f");var n=i("d225"),a=i("b0b4"),r=i("4e2b"),o=i("c603"),s=i("e6ad"),l=s["getToolState"],c=s["toolStyle"],u=s["toolColors"],d=s["import"]("drawing/getNewContext"),f=s["import"]("drawing/draw"),h=s["import"]("drawing/setShadow"),p=s["import"]("drawing/drawLine"),m=s["import"]("drawing/drawLinkedTextBox"),g=s["import"]("drawing/drawHandles"),v=s["import"]("util/lineSegDistance"),b=s["import"]("tools/cursors"),y=s["import"]("util/getPixelSpacing"),w=s["import"]("util/throttle"),_=s["getModule"],I=function(e){Object(r["a"])(i,e);var t=Object(o["a"])(i);function i(){var e,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(n["a"])(this,i);var r={name:"Length",supportedInteractionTypes:["Mouse","Touch"],svgCursor:b,configuration:{drawHandles:!0,drawHandlesOnHover:!1,hideHandlesIfMoving:!1,renderDashed:!1,digits:2}};return e=t.call(this,a,r),e.throttledUpdateCachedStats=w(e.updateCachedStats,110),e}return Object(a["a"])(i,[{key:"createNewMeasurement",value:function(e){var t=e&&e.currentPoints&&e.currentPoints.image;if(t){var i=e.currentPoints.image,n=i.x,a=i.y;return{visible:!0,active:!0,color:void 0,invalidated:!0,handles:{start:{x:n,y:a,highlight:!0,active:!1},end:{x:n,y:a,highlight:!0,active:!0},textBox:{active:!1,hasMoved:!1,movesIndependently:!1,drawnIndependently:!0,allowedOutsideImage:!0,hasBoundingBox:!0}}}}console.log("required eventData not supplied to tool ".concat(this.name,"'s createNewMeasurement"))}},{key:"pointNearTool",value:function(e,t,i){var n=t&&t.handles&&t.handles.start&&t.handles.end,a=n;return a?!1!==t.visible&&v(e,t.handles.start,t.handles.end,i)<25:(console.log("invalid parameters supplied to tool ".concat(this.name,"'s pointNearTool")),!1)}},{key:"updateCachedStats",value:function(e,t,i){var n=this.configuration.digits,a=y(e),r=a.rowPixelSpacing,o=a.colPixelSpacing,s=(i.handles.end.x-i.handles.start.x)*(o||1),l=(i.handles.end.y-i.handles.start.y)*(r||1),c=Math.sqrt(s*s+l*l);i.length=c.toFixed(n),i.invalidated=!1}},{key:"renderToolData",value:function(e){var t=this,i=e.detail,n=this.configuration,a=n.handleRadius,r=n.drawHandlesOnHover,o=n.hideHandlesIfMoving,s=n.renderDashed,v=n.digits,b=l(e.currentTarget,this.name);if(b)for(var w=d(i.canvasContext.canvas),I=i.image,S=i.element,T=y(I),C=T.rowPixelSpacing,k=T.colPixelSpacing,R=c.getToolWidth(),D=_("globalConfiguration").configuration.lineDash,L=function(e){var n=b.data[e];if(!1===n.visible)return"continue";f(w,(function(e){h(e,t.configuration);var l=u.getColorIfActive(n),c={color:l};s&&(c.lineDash=D),p(e,S,n.handles.start,n.handles.end,c);var d={color:l,handleRadius:a,drawHandlesIfActive:r,hideHandlesIfMoving:o};if(t.configuration.drawHandles&&g(e,i,n.handles,d),!n.handles.textBox.hasMoved){var f={x:Math.max(n.handles.start.x,n.handles.end.x)};f.x===n.handles.start.x?f.y=n.handles.start.y:f.y=n.handles.end.y,n.handles.textBox.x=f.x,n.handles.textBox.y=f.y}var v=10;!0===n.invalidated&&(n.length?t.throttledUpdateCachedStats(I,S,n):t.updateCachedStats(I,S,n));var b=[];n.hasOwnProperty("remark")&&(n.hasOwnProperty("status")&&n.status?b.push("".concat(n.remark,"(").concat(n.status,")")):b.push(n.remark)),b.push($(n,C,k)),m(e,S,n.handles.textBox,b,n.handles,N,l,R,v,!0)}))},O=0;O<b.data.length;O++)L(O);function $(e,t,i){var n=x(e.length);if(!n)return"";var a="mm";return t&&i||(a="pixels"),e.unit=a,"".concat(n.toFixed(v)," ").concat(a)}function N(e){var t={x:(e.start.x+e.end.x)/2,y:(e.start.y+e.end.y)/2};return[e.start,t,e.end]}}}]),i}(s["LengthTool"]);function x(e){var t=Number(e),i=!isNaN(t);return i?t:void 0}},"367f":function(e,t,i){},"36b5":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"addSubjectPR",attrs:{model:e.form,size:"small",rules:e.rules,"label-width":"100px"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:e.$t("trials:readingPeriod:table:siteCode")}},[i("el-input",{attrs:{disabled:""},model:{value:e.form.TrialSiteCode,callback:function(t){e.$set(e.form,"TrialSiteCode",t)},expression:"form.TrialSiteCode"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:readingPeriod:table:subjectCode")}},[i("el-input",{attrs:{disabled:""},model:{value:e.form.SubjectCode,callback:function(t){e.$set(e.form,"SubjectCode",t)},expression:"form.SubjectCode"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:addSubjectPR:table:rpType")}},[i("el-input",{attrs:{disabled:""},model:{value:e.form.ReadingSetTypeName,callback:function(t){e.$set(e.form,"ReadingSetTypeName",t)},expression:"form.ReadingSetTypeName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:addSubjectPR:table:rpName"),prop:"Name"}},[i("el-input",{model:{value:e.form.Name,callback:function(t){e.$set(e.form,"Name",t)},expression:"form.Name"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:addSubjectPR:table:deadlineVisit"),prop:"VisitStageId"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{clearable:""},on:{change:e.handleVisitChange},model:{value:e.form.VisitStageId,callback:function(t){e.$set(e.form,"VisitStageId",t)},expression:"form.VisitStageId"}},e._l(e.visitPlanOptions,(function(t,n){return i("el-option",{key:n,attrs:{label:t.VisitName,value:t.SubjectVisitId}},[i("span",{staticStyle:{float:"left"}},[e._v(e._s(t.VisitName))])])})),1)],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right",padding:"5px 0"}},[i("el-form-item",[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.close}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])},a=[],r=(i("ac6a"),i("456d"),i("96cf"),i("3b8d")),o=i("3e42"),s={name:"AddSubjectPR",props:{trialReadingCriterionId:{type:String,default:""},data:{type:Object,default:function(){return{}}}},data:function(){return{loading:!1,btnLoading:!1,visitPlanOptions:[],form:{Id:"",TrialId:"",SubjectId:"",SubjectCode:"",TrialSiteCode:"",Name:"",ReadingSetType:null,ReadingSetTypeName:"",VisitStageId:"",ExpirationVisitNum:null},rules:{Name:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"},{max:50,message:"".concat(this.$t("common:ruleMessage:maxLength")," 50")}],ReadingSetType:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}],VisitStageId:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}]},trialId:"",readingSetTypes:[]}},mounted:function(){this.trialId=this.$route.query.trialId,this.initForm()},methods:{initForm:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.loading=!0,e.next=3,this.getReadingSetType();case 3:if(Object.keys(this.data).length>0){for(t in this.form)this.data.hasOwnProperty(t)&&(this.form[t]=this.data[t]);this.form.ReadingSetTypeName=this.$fd("ReadingSetType",this.form.ReadingSetType)}this.form.TrialId=this.trialId,this.loading=!1;case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),handleSave:function(){var e=this;this.$refs.addSubjectPR.validate((function(t){t&&(e.btnLoading=!0,e.form.TrialReadingCriterionId=e.trialReadingCriterionId,Object(o["H"])(e.form).then((function(t){e.btnLoading=!1,e.$emit("getList"),e.$emit("close"),e.form.Name=null,e.form.VisitStageId=null,e.$message.success(e.$t("common:message:savedSuccessfully"))})).catch((function(){e.btnLoading=!1})))}))},handleVisitChange:function(e){var t=this.visitPlanOptions.filter((function(t){return t.SubjectVisitId===e}));t.length>0?this.form.ExpirationVisitNum=t[0].VisitNum:this.form.ExpirationVisitNum=null},getReadingSetType:function(){var e=this;return this.visitPlanOptions=[],new Promise((function(t,i){Object(o["qd"])(e.data.ReadingSetType,e.data.SubjectId,e.trialReadingCriterionId).then((function(i){e.visitPlanOptions=i.Result,t()})).catch((function(){i()}))}))},close:function(){this.$emit("close")}}},l=s,c=i("2877"),u=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},"36bd":function(e,t,i){"use strict";var n=i("4bf8"),a=i("77f1"),r=i("9def");e.exports=function(e){var t=n(this),i=r(t.length),o=arguments.length,s=a(o>1?arguments[1]:void 0,i),l=o>2?arguments[2]:void 0,c=void 0===l?i:a(l,i);while(c>s)t[s++]=e;return t}},"36fb":function(e,t,i){},"36ff":function(e,t,i){},3723:function(e,t,i){"use strict";i("d0b8")},3726:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{"text-align":"center"}},[i("div",{staticStyle:{display:"flex","justify-content":"center"}},[e.videoSrc?i("video",{attrs:{id:"video",controls:"",crossorigin:"anonymous",width:"400",height:"270"}},[i("source",{attrs:{src:e.videoSrc,type:"video/mp4"}}),e._v("\n 无法播放,请点击转码\n ")]):i("div",{staticStyle:{border:"2px dashed #999","border-radius":"10px",cursor:"pointer",width:"400px",height:"270px",display:"flex","justify-content":"center","align-items":"center"},on:{click:function(t){return e.$refs.fileInput.click()}}},[e._v("\n 请选择视频文件\n ")])]),e._v(" "),i("input",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],ref:"fileInput",attrs:{type:"file",accept:"video/*"},on:{change:e.fileChange}}),e._v(" "),e.isVideoToMp4?i("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"right","margin-top":"10px"}},[i("div",[e._v("转码进度: ")]),e._v(" "),i("el-progress",{staticStyle:{width:"200px"},attrs:{percentage:e.percentage,format:function(){return e.percentage+"%"}}})],1):e._e(),e._v(" "),i("div",{staticStyle:{"margin-top":"10px",display:"flex","justify-content":"right","align-items":"center"}},[i("el-button",{attrs:{size:"small",type:"primary",disabled:e.isVideoToMp4||e.isDisabled},on:{click:function(t){return e.$refs.fileInput.click()}}},[e._v("选择文件")]),e._v(" "),e.isNeedToMp4?i("el-button",{attrs:{size:"small",type:"primary",disabled:!e.videoSrc||e.isVideoToMp4||e.isDisabled},on:{click:e.videoToMp4}},[e._v("转码")]):e._e(),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",disabled:!e.videoSrc||e.isVideoToMp4||e.isDisabled},on:{click:e.upload}},[e._v("上传")])],1)])},a=[],r=i("92be"),o=r["a"],s=(i("b510"),i("2877")),l=Object(s["a"])(o,n,a,!1,null,null,null);t["default"]=l.exports},3729:function(e,t,i){var n=i("9e69"),a=i("00fd"),r=i("29f3"),o="[object Null]",s="[object Undefined]",l=n?n.toStringTag:void 0;function c(e){return null==e?void 0===e?s:o:l&&l in Object(e)?a(e):r(e)}e.exports=c},3790:function(e,t,i){var n=i("3a56"),a=n.extend({type:"dataZoom.slider",layoutMode:"box",defaultOption:{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#2f4554",width:.5,opacity:.3},areaStyle:{color:"rgba(47,69,84,0.3)",opacity:.3}},borderColor:"#ddd",fillerColor:"rgba(167,183,204,0.4)",handleIcon:"M8.2,13.6V3.9H6.3v9.7H3.1v14.9h3.3v9.7h1.8v-9.7h3.3V13.6H8.2z M9.7,24.4H4.8v-1.4h4.9V24.4z M9.7,19.1H4.8v-1.4h4.9V19.1z",handleSize:"100%",handleStyle:{color:"#a7b7cc"},labelPrecision:null,labelFormatter:null,showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#333"}}}),r=a;e.exports=r},"383a":function(e,t,i){},"383a4":function(e,t,i){"use strict";i("fc99")},"383e":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"form-container basic-form"},[i("el-card",{staticClass:"box-card"},[i("div",{staticStyle:{width:"1000px"}},[i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"basicInfoForm",staticClass:"demo-ruleForm",attrs:{inline:!0,rules:e.rules,model:e.basicInfo,"label-width":"120px",size:"small"}},[i("el-row",[i("el-col",{attrs:{span:12}},[e.basicInfo.ReviewerCode?i("el-form-item",{attrs:{label:"ID: "}},[i("el-input",{attrs:{disabled:"",size:"small"},model:{value:e.basicInfo.ReviewerCode,callback:function(t){e.$set(e.basicInfo,"ReviewerCode",t)},expression:"basicInfo.ReviewerCode"}})],1):e._e()],1)],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{label:"Surname: ",prop:"LastName"}},[i("el-input",{attrs:{disabled:"1"===e.$route.query.ReviewStatus,size:"small"},model:{value:e.basicInfo.LastName,callback:function(t){e.$set(e.basicInfo,"LastName",t)},expression:"basicInfo.LastName"}})],1)],1),e._v(" "),i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{label:"Given Name: ",prop:"FirstName"}},[i("el-input",{attrs:{disabled:"1"===e.$route.query.ReviewStatus,size:"small"},model:{value:e.basicInfo.FirstName,callback:function(t){e.$set(e.basicInfo,"FirstName",t)},expression:"basicInfo.FirstName"}})],1)],1)],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{label:"Name CN: ",prop:"ChineseName"}},[i("el-input",{attrs:{disabled:"1"===e.$route.query.ReviewStatus,size:"small"},model:{value:e.basicInfo.ChineseName,callback:function(t){e.$set(e.basicInfo,"ChineseName",t)},expression:"basicInfo.ChineseName"}})],1)],1),e._v(" "),i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{label:"Gender: ",prop:"Sex"}},[i("el-select",{attrs:{prop:"Sex",placeholder:"Please select gender",size:"small",disabled:"1"===e.$route.query.ReviewStatus},model:{value:e.basicInfo.Sex,callback:function(t){e.$set(e.basicInfo,"Sex",t)},expression:"basicInfo.Sex"}},e._l(e.genderOptions,(function(e,t){return i("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1)],1)],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{label:"Phone: ",prop:"Phone"}},[i("el-input",{attrs:{disabled:"1"===e.$route.query.ReviewStatus,size:"small"},model:{value:e.basicInfo.Phone,callback:function(t){e.$set(e.basicInfo,"Phone",t)},expression:"basicInfo.Phone"}})],1)],1),e._v(" "),i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{label:"Title: ",prop:"TitleIds"}},[i("el-select",{attrs:{disabled:"1"===e.$route.query.ReviewStatus,placeholder:"Please select Title",size:"small"},model:{value:e.basicInfo.TitleIds[0],callback:function(t){e.$set(e.basicInfo.TitleIds,0,t)},expression:"basicInfo.TitleIds[0]"}},e._l(e.dictionaryList.Title,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.Value,value:e.Id}})})),1)],1)],1)],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{label:"EMail: ",prop:"EMail"}},[i("el-input",{attrs:{disabled:"1"===e.$route.query.ReviewStatus,size:"small"},model:{value:e.basicInfo.EMail,callback:function(t){e.$set(e.basicInfo,"EMail",t)},expression:"basicInfo.EMail"}})],1)],1),e._v(" "),i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{label:"WeChat: ",prop:"WeChat"}},[i("el-input",{attrs:{disabled:"1"===e.$route.query.ReviewStatus,size:"small"},model:{value:e.basicInfo.WeChat,callback:function(t){e.$set(e.basicInfo,"WeChat",t)},expression:"basicInfo.WeChat"}})],1)],1)],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{label:"Payment Type: ",prop:"Nation"}},[i("el-select",{staticClass:"mr",attrs:{disabled:"1"===e.$route.query.ReviewStatus,size:"small",clearable:""},model:{value:e.basicInfo.Nation,callback:function(t){e.$set(e.basicInfo,"Nation",t)},expression:"basicInfo.Nation"}},[i("el-option",{attrs:{value:0,label:"CN"}}),e._v(" "),i("el-option",{attrs:{value:1,label:"Abroad"}})],1)],1)],1)],1),e._v(" "),i("el-row",[i("el-form-item",{staticStyle:{"margin-left":"120px"}},[i("el-button",{attrs:{disabled:"1"===e.$route.query.ReviewStatus,type:"primary",loading:e.isDisabled,size:"small"},on:{click:e.handleSave}},[e._v("Save")])],1)],1)],1)],1)])],1)},a=[],r=i("db72"),o=i("a8db"),s=(i("96cf"),i("3b8d")),l=i("33ba"),c=i("a599"),u=i("86a6"),d=["TitleList"],f={data:function(){return{basicInfo:{Id:"",ReviewerCode:"",FirstName:"",LastName:"",ChineseName:"",Sex:"",TitleIds:[],Phone:"",EMail:"",WeChat:"",Introduction:"",Nation:0},rules:{FirstName:[{required:!0,message:"Please enter FirstName",trigger:"blur"},{max:50,message:"The maximum length is 50"}],LastName:[{required:!0,message:"Please enter LastName",trigger:"blur"},{max:50,message:"The maximum length is 50"}],ChineseName:[{max:50,message:"The maximum length is 50"}],Sex:[{required:!0,message:"Please select gender",trigger:"blur"}],TitleIds:[{required:!0,message:"Please select Title",trigger:"blur"}],Phone:[{required:!0,message:"Please enter phone number",trigger:"blur"},{max:20,min:7,message:"The length is 7 to 20"}],EMail:[{required:!0,message:"Please input the email address",trigger:"blur"},{type:"email",message:"Please input the correct email address",trigger:"blur,change"},{max:50,message:"The maximum length is 50"}],WeChat:[{max:50,message:"The maximum length is 50"}]},isDisabled:!1,loading:!1,genderOptions:[{label:"Male",value:0},{label:"Female",value:1}],dictionaryList:{}}},mounted:function(){this.initForm()},methods:{handleSave:function(){var e=this;this.$refs.basicInfoForm.validate((function(t){t&&(e.loading=!0,e.isDisabled=!0,Object(l["b"])(e.basicInfo).then((function(t){e.isDisabled=!1,e.loading=!1,e.$message.success("Saved successfully"),e.id||(e.basicInfo.Id=t.Result.Id,Object(c["a"])("Id",t.Result.Id),e.basicInfo.ReviewerCode=t.Result.ReviewerCode)})).catch((function(){e.isDisabled=!1,e.loading=!1})))}))},initForm:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t,i=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getDicData();case 2:t=this.$route.query.Id,t&&(this.loading=!0,Object(l["p"])(t).then((function(e){var t=e.Result,n=(t.TitleList,Object(o["a"])(t,d));i.basicInfo=n,i.loading=!1})).catch((function(){i.loading=!1})));case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getDicData:function(){var e=this;Object(u["c"])(["Title"]).then((function(t){e.dictionaryList=Object(r["a"])({},t.Result)})).catch((function(){}))}}},h=f,p=(i("2a2b"),i("2877")),m=Object(p["a"])(h,n,a,!1,null,"1734fa9a",null);t["default"]=m.exports},3842:function(e,t,i){var n=i("6d8b"),a=1e-4;function r(e){return e.replace(/^\s+|\s+$/g,"")}function o(e,t,i,n){var a=t[1]-t[0],r=i[1]-i[0];if(0===a)return 0===r?i[0]:(i[0]+i[1])/2;if(n)if(a>0){if(e<=t[0])return i[0];if(e>=t[1])return i[1]}else{if(e>=t[0])return i[0];if(e<=t[1])return i[1]}else{if(e===t[0])return i[0];if(e===t[1])return i[1]}return(e-t[0])/a*r+i[0]}function s(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return"string"===typeof e?r(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e}function l(e,t,i){return null==t&&(t=10),t=Math.min(Math.max(0,t),20),e=(+e).toFixed(t),i?e:+e}function c(e){return e.sort((function(e,t){return e-t})),e}function u(e){if(e=+e,isNaN(e))return 0;var t=1,i=0;while(Math.round(e*t)/t!==e)t*=10,i++;return i}function d(e){var t=e.toString(),i=t.indexOf("e");if(i>0){var n=+t.slice(i+1);return n<0?-n:0}var a=t.indexOf(".");return a<0?0:t.length-1-a}function f(e,t){var i=Math.log,n=Math.LN10,a=Math.floor(i(e[1]-e[0])/n),r=Math.round(i(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-a+r,0),20);return isFinite(o)?o:20}function h(e,t,i){if(!e[t])return 0;var a=n.reduce(e,(function(e,t){return e+(isNaN(t)?0:t)}),0);if(0===a)return 0;var r=Math.pow(10,i),o=n.map(e,(function(e){return(isNaN(e)?0:e)/a*r*100})),s=100*r,l=n.map(o,(function(e){return Math.floor(e)})),c=n.reduce(l,(function(e,t){return e+t}),0),u=n.map(o,(function(e,t){return e-l[t]}));while(c<s){for(var d=Number.NEGATIVE_INFINITY,f=null,h=0,p=u.length;h<p;++h)u[h]>d&&(d=u[h],f=h);++l[f],u[f]=0,++c}return l[t]/r}var p=9007199254740991;function m(e){var t=2*Math.PI;return(e%t+t)%t}function g(e){return e>-a&&e<a}var v=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d\d)(?::(\d\d)(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function b(e){if(e instanceof Date)return e;if("string"===typeof e){var t=v.exec(e);if(!t)return new Date(NaN);if(t[8]){var i=+t[4]||0;return"Z"!==t[8].toUpperCase()&&(i-=t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,i,+(t[5]||0),+t[6]||0,+t[7]||0))}return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,+t[7]||0)}return null==e?new Date(NaN):new Date(Math.round(e))}function y(e){return Math.pow(10,w(e))}function w(e){if(0===e)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function _(e,t){var i,n=w(e),a=Math.pow(10,n),r=e/a;return i=t?r<1.5?1:r<2.5?2:r<4?3:r<7?5:10:r<1?1:r<2?2:r<3?3:r<5?5:10,e=i*a,n>=-20?+e.toFixed(n<0?-n:0):e}function I(e,t){var i=(e.length-1)*t+1,n=Math.floor(i),a=+e[n-1],r=i-n;return r?a+r*(e[n]-a):a}function x(e){e.sort((function(e,t){return s(e,t,0)?-1:1}));for(var t=-1/0,i=1,n=0;n<e.length;){for(var a=e[n].interval,r=e[n].close,o=0;o<2;o++)a[o]<=t&&(a[o]=t,r[o]=o?1:1-i),t=a[o],i=r[o];a[0]===a[1]&&r[0]*r[1]!==1?e.splice(n,1):n++}return e;function s(e,t,i){return e.interval[i]<t.interval[i]||e.interval[i]===t.interval[i]&&(e.close[i]-t.close[i]===(i?-1:1)||!i&&s(e,t,1))}}function S(e){return e-parseFloat(e)>=0}t.linearMap=o,t.parsePercent=s,t.round=l,t.asc=c,t.getPrecision=u,t.getPrecisionSafe=d,t.getPixelPrecision=f,t.getPercentWithPrecision=h,t.MAX_SAFE_INTEGER=p,t.remRadian=m,t.isRadianAroundZero=g,t.parseDate=b,t.quantity=y,t.quantityExponent=w,t.nice=_,t.quantile=I,t.reformIntervals=x,t.isNumeric=S},3866:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"chat-wrapper"},[i("div",{staticClass:"chat-content"},e._l(e.recordContent,(function(t,n){return i("div",{key:n},[i("div",{class:[t.IsCurrentUser?"word-my":"word"]},[1*t.UserTypeEnumInt===14?i("img",{attrs:{src:e.mimAvatar,alt:"MIM"}}):i("img",{attrs:{src:e.irAvatar,alt:"IR"}}),e._v(" "),i("div",{staticClass:"info"},[i("p",{staticClass:"user-info"},[i("span",{staticStyle:{"font-weight":"700"}},[e._v(e._s(t.CreateUserName)+" ")]),e._v(" "),i("span",[e._v("("+e._s(t.CreateTime)+") ")])]),e._v(" "),i("div",{staticClass:"info-content"},[14===t.UserTypeEnumInt&&null!==t.MedicalDialogCloseEnum?[i("div",[e._v(e._s(e.$t("trials:medicalFeedback:title:closeReasonEnum"))+e._s(e.$fd("MedicalDialogCloseEnum",t.MedicalDialogCloseEnum)))]),e._v(" "),t.Content?i("div",[e._v(e._s(e.$t("trials:medicalFeedback:title:closereasonRemarks"))+e._s(t.Content))]):e._e()]:14!==t.UserTypeEnumInt||t.Content?14===t.UserTypeEnumInt&&t.Content?[i("div",[e._v(e._s(t.Content))])]:[i("div",[e._v("\n "+e._s(e.$t("trials:medicalFeedback:title:isEndorse"))+e._s(e.$fd("MedicalReviewDoctorUserIdea",t.DoctorUserIdeaEnum))+"\n ")]),e._v(" "),2===t.DoctorUserIdeaEnum?i("div",[e._v(" "+e._s(e.$t("trials:medicalFeedback:title:reason"))+e._s(t.DisagreeReason))]):e._e(),e._v(" "),null!==t.MedicalDialogCloseEnum?i("div",[e._v("\n "+e._s(e.$t("trials:medicalFeedback:title:isRequestReread"))+e._s(e.$fd("YesOrNo",t.IsApplyHeavyReading))+"\n ")]):e._e(),e._v(" "),t.FileList&&t.FileList.length>0?i("div",{staticStyle:{"margin-top":"5px"}},[e._v("\n "+e._s(e.$t("trials:medicalFeedback:message:msg5"))+"\n "),i("ol",e._l(t.FileList,(function(t){return i("li",{key:t.ImagePath,staticStyle:{"list-style":"none"}},[i("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(i){return e.previewImage(t.ImagePath)}}},[e._v(e._s(t.FileName))])],1)})),0)]):e._e()]:[i("div",[e._v("\n "+e._s(e.$t("trials:medicalFeedback:message:msg1"))+"\n "),i("ol",[e._v("\n "+e._s(t.Questioning)+"\n ")])]),e._v(" "),t.FileList&&t.FileList.length>0?i("div",{staticStyle:{"margin-top":"5px"}},[e._v("\n "+e._s(e.$t("trials:medicalFeedback:message:msg2"))+"\n "),i("ol",e._l(t.FileList,(function(t){return i("li",{key:t.ImagePath,staticStyle:{"list-style":"none"}},[i("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(i){return e.previewImage(t.ImagePath)}}},[e._v(e._s(t.FileName))])],1)})),0)]):e._e(),e._v(" "),i("div",{staticStyle:{"margin-top":"5px"}},[e._v("\n "+e._s(e.$t("trials:medicalFeedback:message:msg3"))+"\n "),i("ol",[i("span",{staticStyle:{color:"red"}},[e._v(e._s(e.$fd("AuditAdvice",t.AuditAdviceEnum)))])])]),e._v(" "),i("div",{staticStyle:{"margin-top":"5px"}},[e._v("\n "+e._s(e.$t("trials:medicalFeedback:message:msg4"))+"\n ")])]],2)])])])})),0),e._v(" "),e.otherInfo&&!e.otherInfo.IsClosedDialog&&14===e.userTypeEnumInt?i("div",{staticClass:"chat-message"},[i("div",{staticClass:"message"},[i("el-input",{attrs:{type:"textarea",rows:2},model:{value:e.newMessage,callback:function(t){e.newMessage=t},expression:"newMessage"}})],1),e._v(" "),i("div",{staticClass:"function"},[i("el-button",{attrs:{disabled:""===e.newMessage,type:"primary"},on:{click:e.handleReply}},[e._v("\n "+e._s(e.$t("trials:medicalFeedback:button:reply"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.handleCloseQc}},[e._v("\n "+e._s(e.$t("trials:medicalFeedback:button:close"))+"\n ")])],1)]):e._e(),e._v(" "),e.otherInfo&&!e.otherInfo.IsClosedDialog&&13===e.userTypeEnumInt?i("div",{staticClass:"chat-message"},[i("div",{staticClass:"function"},[i("el-button",{attrs:{type:"primary"},on:{click:e.handleIRReply}},[e._v("\n "+e._s(e.$t("trials:medicalFeedback:button:reply"))+"\n ")])],1)]):e._e(),e._v(" "),i("el-dialog",{attrs:{"append-to-body":"",visible:e.previewDialog,width:"600px"},on:{"update:visible":function(t){e.previewDialog=t}}},[i("el-image",{attrs:{src:e.imagePath,width:"100%"}},[i("div",{staticClass:"image-slot",attrs:{slot:"placeholder"},slot:"placeholder"},[e._v("\n "+e._s(e.$t("trials:medicalFeedback:message:loading"))),i("span",{staticClass:"dot"},[e._v("...")])])])],1),e._v(" "),e.irFeedbackForm.visible?i("el-dialog",{attrs:{visible:e.irFeedbackForm.visible,"close-on-click-modal":!1,"custom-class":"base-dialog-wrapper",title:e.irFeedbackForm.title,width:"1200px","append-to-body":""},on:{"update:visible":function(t){return e.$set(e.irFeedbackForm,"visible",t)}}},[i("FeedbackForm",{attrs:{"task-medical-review-id":e.taskMedicalReviewId,"visit-task-id":e.visitTaskId},on:{getList:e.getMessageList,close:function(t){e.irFeedbackForm.visible=!1}}})],1):e._e()],1)},a=[],r=i("3e42"),o=i("a7ea"),s=i("f0da"),l=i.n(s),c=i("cc27"),u=i.n(c),d={name:"ChatForm",components:{FeedbackForm:o["default"]},props:{taskMedicalReviewId:{type:String,required:!0},visitTaskId:{type:String,required:!0}},data:function(){return{recordContent:[],newMessage:"",showNewMessage:!1,loading:!1,userId:zzSessionStorage.getItem("userId"),mimAvatar:l.a,irAvatar:u.a,userTypeEnumInt:1*zzSessionStorage.getItem("userTypeEnumInt"),ReuploadEnum:0,trialId:this.$route.query.trialId,currentUserId:zzSessionStorage.getItem("userId"),otherInfo:{},previewDialog:!1,imagePath:"",irFeedbackForm:{visible:!1,title:""}}},mounted:function(){this.getMessageList()},methods:{getMessageList:function(){var e=this;this.loading=!0;var t={taskMedicalReviewId:this.taskMedicalReviewId};Object(r["qc"])(t).then((function(t){e.otherInfo=t.OtherInfo,e.recordContent=t.Result,e.setScrollHeight(),e.loading=!1})).catch((function(){e.loading=!1}))},setScrollHeight:function(){setTimeout((function(){var e=document.querySelectorAll(".chat-content")[0];e.scrollTop=e.scrollHeight}),100)},handleReply:function(){var e=this;if(this.newMessage){var t={taskMedicalReviewId:this.taskMedicalReviewId,content:this.newMessage};this.loading=!0,Object(r["Fe"])(t).then((function(t){e.loading=!1,t.IsSuccess&&(e.newMessage="",e.getMessageList())})).catch((function(){e.loading=!1}))}},handleCloseQc:function(){this.$emit("handleCloseReply")},previewImage:function(e){this.imagePath="/api/".concat(e),this.previewDialog=!0},handleIRReply:function(){this.irFeedbackForm.title=this.$t("trials:medicalFeedback:title:feedback"),this.irFeedbackForm.visible=!0}}},f=d,h=(i("a9fb"),i("2877")),p=Object(h["a"])(f,n,a,!1,null,"1f092bae",null);t["default"]=p.exports},"38a2":function(e,t,i){var n=i("2b17"),a=n.retrieveRawValue,r=i("eda2"),o=r.getTooltipMarker,s=r.formatTpl,l=i("e0d3"),c=l.getTooltipRenderMode,u=/\{@(.+?)\}/g,d={getDataParams:function(e,t){var i=this.getData(t),n=this.getRawValue(e,t),a=i.getRawIndex(e),r=i.getName(e),s=i.getRawDataItem(e),l=i.getItemVisual(e,"color"),u=i.getItemVisual(e,"borderColor"),d=this.ecModel.getComponent("tooltip"),f=d&&d.get("renderMode"),h=c(f),p=this.mainType,m="series"===p,g=i.userOutput;return{componentType:p,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:m?this.subType:null,seriesIndex:this.seriesIndex,seriesId:m?this.id:null,seriesName:m?this.name:null,name:r,dataIndex:a,data:s,dataType:t,value:n,color:l,borderColor:u,dimensionNames:g?g.dimensionNames:null,encode:g?g.encode:null,marker:o({color:l,renderMode:h}),$vars:["seriesName","name","value"]}},getFormattedLabel:function(e,t,i,n,r){t=t||"normal";var o=this.getData(i),l=o.getItemModel(e),c=this.getDataParams(e,i);null!=n&&c.value instanceof Array&&(c.value=c.value[n]);var d=l.get("normal"===t?[r||"label","formatter"]:[t,r||"label","formatter"]);if("function"===typeof d)return c.status=t,c.dimensionIndex=n,d(c);if("string"===typeof d){var f=s(d,c);return f.replace(u,(function(t,i){var n=i.length;return"["===i.charAt(0)&&"]"===i.charAt(n-1)&&(i=+i.slice(1,n-1)),a(o,e,i)}))}},getRawValue:function(e,t){return a(this.getData(t),e)},formatTooltip:function(){}};e.exports=d},"38a6":function(e,t,i){"use strict";i("efe6")},"38b6":function(e,t,i){"use strict";i("7838")},3901:function(e,t,i){var n=i("282b"),a=n([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),r={getLineStyle:function(e){var t=a(this,e);return t.lineDash=this.getLineDash(t.lineWidth),t},getLineDash:function(e){null==e&&(e=1);var t=this.get("type"),i=Math.max(e,2),n=4*e;return"solid"!==t&&null!=t&&("dashed"===t?[n,n]:[i,i])}};e.exports=r},3902:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"share-image-container"},[i("div",{staticClass:"share-image-banner"},[i("h2",{staticStyle:{"text-align":"center"}},[e._v("IRC Management System")]),e._v(" "),i("el-card",{attrs:{shadow:"hover"}},[i("h4",[e._v("请输入提取码:")]),e._v(" "),i("el-form",{ref:"validateForm",attrs:{inline:!0,rules:e.rules,model:e.form}},[i("el-form-item",{attrs:{label:"",prop:"ExtractionCode"}},[i("el-input",{staticStyle:{width:"400px"},model:{value:e.form.ExtractionCode,callback:function(t){e.$set(e.form,"ExtractionCode",t)},expression:"form.ExtractionCode"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("提交")])],1)],1)],1)],1)])},a=[],r=i("acd9"),o={data:function(){return{resourceId:"",form:{ExtractionCode:""},rules:{ExtractionCode:[{required:!0,message:"请输入提取码",trigger:"blur"},{min:4,max:6,message:"长度在 4 到 6 个字符",trigger:"blur"}]}}},created:function(){this.resourceId=this.$route.query.id},methods:{onSubmit:function(){var e=this;this.$refs["validateForm"].validate((function(t){if(t){var i=e.$loading({target:document.querySelector(".share-image-banner"),fullscreen:!1,lock:!0,text:"Loading...",spinner:"el-icon-loading"});if(!e.resourceId)return;Object(r["b"])(e.resourceId,e.form.ExtractionCode).then((function(t){i.close(),t.IsSuccess&&(zzSessionStorage.setItem("studyId",t.Result.StudyId),zzSessionStorage.setItem("TokenKey",t.Result.Token),e.$store.dispatch("user/setToken",zzSessionStorage.getItem("TokenKey")),e.$router.push({path:"/showdicom?studyId=".concat(t.Result.StudyId,"&TokenKey=").concat(t.Result.Token,"&type=Share")}))})).catch((function(){i.close()}))}}))}}},s=o,l=(i("c2a1"),i("2877")),c=Object(l["a"])(s,n,a,!1,null,"37582852",null);t["default"]=c.exports},3916:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",{staticClass:"log-wrapper"},[i("div",{staticClass:"search"},[i("SearchForm",{attrs:{size:"mini",that:this,"search-data":e.searchData,"search-form":e.searchForm,"search-handle":e.searchHandle},on:{search:e.handleSearch,reset:e.handleReset}},[i("template",{slot:"beginTimeSlot"},[i("el-date-picker",{staticStyle:{width:"150px"},attrs:{size:"small",placeholder:"Beginning date","value-format":"yyyy-MM-dd",format:"yyyy-MM-dd","picker-options":e.beginPickerOption},model:{value:e.searchData.BeginTime,callback:function(t){e.$set(e.searchData,"BeginTime",t)},expression:"searchData.BeginTime"}})],1),e._v(" "),i("template",{slot:"endTimeSlot"},[i("el-date-picker",{staticStyle:{width:"150px"},attrs:{size:"small",placeholder:"End Date","value-format":"yyyy-MM-dd",format:"yyyy-MM-dd","picker-options":e.endPickerOption},model:{value:e.searchData.EndTime,callback:function(t){e.$set(e.searchData,"EndTime",t)},expression:"searchData.EndTime"}})],1)],2)],1),e._v(" "),i("base-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{columns:e.columns,list:e.list,"search-data":e.searchData,total:e.total},on:{getList:e.getList,sortByColumn:e.sortByColumn,celldblclick:e.celldblclick}})],1)},a=[],r=[{type:"index"},{prop:"LogCategory",label:"Category",minWidth:50,sortable:"custom",showOverflowTooltip:!0},{prop:"ApiPath",label:"Api",minWidth:100,sortable:"custom",showOverflowTooltip:!0},{prop:"RequestTime",label:"Request Time",minWidth:100,sortable:"custom",showOverflowTooltip:!0},{prop:"ElapsedMilliseconds",label:"Elapsed Milliseconds",minWidth:100,showOverflowTooltip:!0},{prop:"OptUserName",label:"Operator",minWidth:100,sortable:"custom",showOverflowTooltip:!0},{prop:"ClientIP",label:"Client IP",minWidth:100,showOverflowTooltip:!0},{prop:"Status",label:"Status",minWidth:70,sortable:"custom",showOverflowTooltip:!0},{prop:"Message",label:"Message",minWidth:70,showOverflowTooltip:!0}],o=[{label:"Reviewer",value:"Reviewer"},{label:"Trial",value:"Trial"},{label:"Enroll",value:"Enroll"},{label:"Workload",value:"Workload"},{label:"Common",value:"Common"},{label:"Institution",value:"Institution"},{label:"Financial",value:"Financial"},{label:"Management",value:"Management"},{label:"Image",value:"Image"}],s=[{type:"Select",label:"Category:",prop:"LogCategory",width:"120px",placeholder:"",options:o,props:{label:"label",value:"value"},change:function(e){return""}},{type:"Input",label:"Keyword:",prop:"Keyword",width:"120px",placeholder:""},{type:"Custom",slot:"beginTimeSlot",label:"Begin Time:",prop:"BeginTime"},{type:"Custom",slot:"endTimeSlot",label:"End Time:",prop:"EndTime"}],l=[{label:"Reset",type:"primary",emitKey:"reset"},{label:"Search",type:"primary",emitKey:"search"}],c=i("50fc"),u=i("f36a"),d=i("d13d"),f=i("c0ee"),h=i("fab6"),p=i("4eb5"),m=i.n(p),g=i("2b0e"),v=i("c1df"),b=i.n(v);g["default"].use(m.a);var y=function(){return{LogCategory:"",Keyword:"",BeginTime:b()().subtract(5,"days").format("YYYY-MM-DD"),EndTime:b()().format("YYYY-MM-DD"),PageIndex:1,PageSize:20,Asc:!0,SortField:""}},w={name:"Log",components:{BoxContent:u["default"],SearchForm:d["default"],BaseTable:f["default"]},mixins:[h["a"]],data:function(){var e=this;return{searchData:y(),searchForm:s,searchHandle:l,columns:r,loading:!1,total:0,list:[],beginPickerOption:{disabledDate:function(t){return e.searchData.EndTime?t.getTime()>new Date(e.searchData.EndTime).getTime():t.getTime()>Date.now()}},endPickerOption:{disabledDate:function(e){return e.getTime()>Date.now()}}}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0,Object(c["h"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount}))},handleReset:function(){this.searchData=y(),this.getList()},celldblclick:function(e,t){var i=this;this.$copyText(e[t.property]).then((function(e){i.$message.success("Copyed successfully")}),(function(e){i.$message.error("Cope failed")}))}}},_=w,I=i("2877"),x=Object(I["a"])(_,n,a,!1,null,null,null);t["default"]=x.exports},"392f":function(e,t,i){var n=i("6d8b"),a=n.inherits,r=i("19eb"),o=i("9850");function s(e){r.call(this,e),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}s.prototype.incremental=!0,s.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},s.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.dirty()},s.prototype.addDisplayables=function(e,t){t=t||!1;for(var i=0;i<e.length;i++)this.addDisplayable(e[i],t)},s.prototype.eachPendingDisplayable=function(e){for(var t=this._cursor;t<this._displayables.length;t++)e&&e(this._displayables[t]);for(t=0;t<this._temporaryDisplayables.length;t++)e&&e(this._temporaryDisplayables[t])},s.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var t=this._displayables[e];t.parent=this,t.update(),t.parent=null}for(e=0;e<this._temporaryDisplayables.length;e++){t=this._temporaryDisplayables[e];t.parent=this,t.update(),t.parent=null}},s.prototype.brush=function(e,t){for(var i=this._cursor;i<this._displayables.length;i++){var n=this._displayables[i];n.beforeBrush&&n.beforeBrush(e),n.brush(e,i===this._cursor?null:this._displayables[i-1]),n.afterBrush&&n.afterBrush(e)}this._cursor=i;for(i=0;i<this._temporaryDisplayables.length;i++){n=this._temporaryDisplayables[i];n.beforeBrush&&n.beforeBrush(e),n.brush(e,0===i?null:this._temporaryDisplayables[i-1]),n.afterBrush&&n.afterBrush(e)}this._temporaryDisplayables=[],this.notClear=!0};var l=[];s.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new o(1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var i=this._displayables[t],n=i.getBoundingRect().clone();i.needLocalTransform()&&n.applyTransform(i.getLocalTransform(l)),e.union(n)}this._rect=e}return this._rect},s.prototype.contain=function(e,t){var i=this.transformCoordToLocal(e,t),n=this.getBoundingRect();if(n.contain(i[0],i[1]))for(var a=0;a<this._displayables.length;a++){var r=this._displayables[a];if(r.contain(e,t))return!0}return!1},a(s,r);var c=s;e.exports=c},3942:function(e,t,i){var n=i("3eba"),a=i("6d8b");n.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},(function(e,t){var i=t.getComponent("timeline");return i&&null!=e.currentIndex&&(i.setCurrentIndex(e.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.setPlayState(!1)),t.resetOption("timeline"),a.defaults({currentIndex:i.option.currentIndex},e)})),n.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},(function(e,t){var i=t.getComponent("timeline");i&&null!=e.playState&&i.setPlayState(e.playState)}))},3970:function(e,t,i){var n=i("4f85"),a=i("3301"),r=i("2039"),o=n.extend({type:"series.heatmap",getInitialData:function(e,t){return a(this.getSource(),this,{generateCoord:"value"})},preventIncremental:function(){var e=r.get(this.get("coordinateSystem"));if(e&&e.dimensions)return"lng"===e.dimensions[0]&&"lat"===e.dimensions[1]},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0}});e.exports=o},"397a":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"monthly-payment data-list"},[i("div",{staticClass:"filter-container"},[i("el-date-picker",{staticClass:"mr",attrs:{type:"month","value-format":"yyyy-MM",format:"yyyy-MM",placeholder:"Select Month","picker-options":e.pickerOption,clearable:!1,size:"small"},model:{value:e.listQuery.StatisticsDate,callback:function(t){e.$set(e.listQuery,"StatisticsDate",t)},expression:"listQuery.StatisticsDate"}}),e._v(" "),i("el-select",{staticStyle:{width:"120px","margin-right":"5px"},attrs:{placeholder:"Nation",size:"small",clearable:""},model:{value:e.listQuery.Nation,callback:function(t){e.$set(e.listQuery,"Nation",t)},expression:"listQuery.Nation"}},[i("el-option",{attrs:{label:"CN",value:"0"}}),e._v(" "),i("el-option",{attrs:{label:"US",value:"1"}})],1),e._v(" "),i("el-input",{staticClass:"handle-select",staticStyle:{width:"150px","margin-right":"5px"},attrs:{placeholder:"ID or Name",size:"small"},model:{value:e.listQuery.KeyWord,callback:function(t){e.$set(e.listQuery,"KeyWord",t)},expression:"listQuery.KeyWord"}}),e._v(" "),i("el-button",{staticStyle:{"margin-left":"5px"},attrs:{type:"text",size:"small"},on:{click:e.handleReset}},[e._v("Reset")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.handleSearch}},[e._v("Search")]),e._v(" "),i("el-button",{attrs:{type:"primary",disabled:0==e.unlockCount||!e.exchangeRate>0||0==e.arrID.length,size:"small",loading:e.lockLoading},on:{click:e.handleLock}},[e._v("Lock")]),e._v(" "),i("el-button",{attrs:{type:"primary",disabled:0==e.arrID.length||0==e.unlockCount,size:"small",loading:e.calcLoading},on:{click:e.handleCalculate}},[e._v("Calculate")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"small",disabled:!e.exchangeRate>0||0==e.arrID.length,loading:e.exportLoading},on:{click:e.handleExportExcel}},[e._v("Export Summary")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"small",disabled:!e.exchangeRate>0||0==e.arrID.length,loading:e.exportDetailLoading},on:{click:e.handleExportDetail}},[e._v("Export Details")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"small",disabled:!e.exchangeRate>0||0==e.arrID.length,loading:e.exportPayrollLoading},on:{click:e.handleExportPayroll}},[e._v("Export Payrolls")]),e._v(" "),i("el-button",{staticStyle:{"margin-left":"auto"},attrs:{type:"primary",size:"small"},on:{click:e.handleAdjustment}},[e._v("Adjustment")]),e._v(" "),i("el-button",{staticStyle:{"margin-left":"5px"},attrs:{type:"primary",size:"small"},on:{click:e.handleSetting}},[e._v("Settings")])],1),e._v(" "),i("div",{staticClass:"data-table"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],ref:"table",attrs:{size:"small",height:"99%",data:e.list,stripe:"","cell-style":e.cellStyle,"summary-method":e.getSummaries,"show-summary":""},on:{"sort-change":e.handleSortChange,"selection-change":e.handleSelectChange}},[i("el-table-column",{attrs:{type:"selection",selectable:e.handleSelectTable}}),e._v(" "),i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"LastName",label:"Name","show-overflow-tooltip":"","min-width":"140",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.LastName+" / "+t.row.FirstName))]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"DoctorNameInBank",label:"Name CN","show-overflow-tooltip":"","min-width":"110",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.DoctorNameInBank?t.row.DoctorNameInBank:t.row.ChineseName))]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Code",label:"ID","show-overflow-tooltip":"","min-width":"90",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"RankName",label:"Rank","show-overflow-tooltip":"","min-width":"80"}}),e._v(" "),i("el-table-column",{attrs:{prop:"IDCard",label:"Resident ID","show-overflow-tooltip":"","min-width":"100"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Phone",label:"Phone Number","show-overflow-tooltip":"","min-width":"115"}}),e._v(" "),i("el-table-column",{attrs:{prop:"BankName",label:"Bank","show-overflow-tooltip":"","min-width":"80"}}),e._v(" "),i("el-table-column",{attrs:{prop:"BankCardNumber",label:"Account Number","show-overflow-tooltip":"","min-width":"125"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TotalPaymentUSD",label:"Payment ($)","min-width":"130",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"top"}},[i("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n "+e._s("Current month: "+t.row.PaymentUSD)+"\n "),i("br"),e._v("\n "+e._s("Adjustment: "+t.row.AdjustPaymentUSD)+"\n ")]),e._v(" "),i("div",[e._v("\n "+e._s(t.row.IDCard&&t.row.BankCardNumber&&t.row.RankName?t.row.TotalPaymentUSD.toFixed(2):"Setting Needed")+"\n\n ")])])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ExchangeRate",label:"Exchange Rate","min-width":"110"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.ExchangeRate)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TotalPaymentCNY",label:"Payment(¥)","min-width":"110",sortable:"custom",formatter:e.paymentCNFormatter},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"top"}},[i("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n "+e._s("Current month: "+t.row.PaymentCNY)+"\n "),i("br"),e._v("\n "+e._s("Adjustment: "+t.row.AdjustPaymentCNY)+"\n ")]),e._v(" "),i("div",[e._v(e._s(t.row.ExchangeRate>0?t.row.TotalPaymentCNY:"Setting Needed"))])])]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"Status",prop:"IsLock",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.IsLock?"Locked":"Pending"))]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"Action","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{size:"small",type:"text",disabled:!(t.row.IDCard&&t.row.BankCardNumber)},on:{click:function(i){return e.handleDetail(t.row)}}},[e._v("Detail")]),e._v(" "),t.row.IDCard&&t.row.BankCardNumber&&t.row.RankName?e._e():i("el-button",{staticStyle:{color:"red"},attrs:{size:"small",type:"text"},on:{click:function(i){return e.handleSettingDoctor(t.row)}}},[e._v("Setting")])]}}])})],1)],1),e._v(" "),i("div",{staticClass:"pagination"},[i("pagination",{attrs:{total:e.total,page:e.listQuery.PageIndex,limit:e.listQuery.PageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"PageIndex",t)},"update:limit":function(t){return e.$set(e.listQuery,"PageSize",t)},pagination:e.getList}})],1),e._v(" "),i("el-dialog",{key:e.form.DoctorId,attrs:{title:"Edit",visible:e.dialogVisible,width:"500px","close-on-click-modal":!1,size:"small"},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("el-form",{ref:"reviewerDataForm",attrs:{"label-width":"170px",rules:e.rules,model:e.form,size:"small"}},[i("el-form-item",{attrs:{label:"Name: "}},[i("el-input",{attrs:{readonly:""},model:{value:e.form.Name,callback:function(t){e.$set(e.form,"Name",t)},expression:"form.Name"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Name CN: ",prop:"DoctorNameInBank"}},[i("el-input",{model:{value:e.form.DoctorNameInBank,callback:function(t){e.$set(e.form,"DoctorNameInBank",t)},expression:"form.DoctorNameInBank"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"ID: ",prop:"Code"}},[i("el-input",{attrs:{readonly:""},model:{value:e.form.Code,callback:function(t){e.$set(e.form,"Code",t)},expression:"form.Code"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Rank: ",prop:"Rank"}},[i("el-select",{staticStyle:{width:"100%"},model:{value:e.form.RankId,callback:function(t){e.$set(e.form,"RankId",t)},expression:"form.RankId"}},e._l(e.rankList,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.RankName,value:e.Id}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Personal Adjustment ($): ",prop:"Additional"}},[i("el-input",{attrs:{type:"number"},model:{value:e.form.Additional,callback:function(t){e.$set(e.form,"Additional",t)},expression:"form.Additional"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Resident ID: ",prop:"IDCard"}},[i("el-input",{model:{value:e.form.IDCard,callback:function(t){e.$set(e.form,"IDCard",t)},expression:"form.IDCard"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Bank: ",prop:"BankName"}},[i("el-input",{model:{value:e.form.BankName,callback:function(t){e.$set(e.form,"BankName",t)},expression:"form.BankName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Account Number: ",prop:"BankCardNumber"}},[i("el-input",{model:{value:e.form.BankCardNumber,callback:function(t){e.$set(e.form,"BankCardNumber",t)},expression:"form.BankCardNumber"}})],1)],1),e._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{size:"small"},on:{click:function(t){e.dialogVisible=!1}}},[e._v("Cancel")]),e._v(" "),i("el-button",{attrs:{type:"primary",disabled:e.btnDisabled,size:"small"},on:{click:e.handleSave}},[e._v("Ok")])],1)],1)],1)},a=[],r=(i("7514"),i("6b54"),i("28a5"),i("c5f6"),i("ac6a"),i("db72")),o=i("333d"),s=i("7878"),l=i("3339"),c=i("6b95"),u=i("4360"),d=i("2f62"),f=i("e8ae"),h=i.n(f),p=i("c4e3"),m=i.n(p),g=i("21a6"),v=function(){return{StatisticsDate:"",KeyWord:"",PageSize:20,PageIndex:1,Asc:!0,SortField:""}},b={name:"EnrollmentsStats",components:{Pagination:o["default"]},filters:{rounding:function(e){return e}},data:function(){return{listQuery:v(),list:[],listLoading:!1,total:0,exchangeRate:"",arrID:"",excelData:[],excelDataCount:0,excelDataPayroll:[],excelDataPayrollCount:0,lockLoading:!1,calcLoading:!1,exportLoading:!1,exportDetailLoading:!1,exportPayrollLoading:!1,form:{},rules:{DoctorNameInBank:[{required:!0,message:"Please specify",trigger:"blur"}],BankName:[{required:!0,message:"Please specify",trigger:"blur"}],BankCardNumber:[{required:!0,message:"Please specify",trigger:"blur"}],IDCard:[{required:!0,message:"Please specify",trigger:"blur"},{pattern:/(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/,message:"Incorrect ID card format"}],Rank:[{required:!0,message:"Please select",trigger:["blur","change"]}]},btnDisabled:!1,dialogVisible:!1,pickerOption:{disabledDate:function(e){var t=Date.now();return e.getTime()>t}}}},computed:Object(r["a"])(Object(r["a"])({},Object(d["b"])(["rankList","paymentQuery"])),{},{unlockCount:function(){var e=this,t=0;return this.list.forEach((function(i){e.arrID.indexOf(i.DoctorId)>-1&&(i.IsLock||t++)})),t}}),mounted:function(){this.listQuery.StatisticsDate=new Date((new Date).setMonth((new Date).getMonth()-1)).format("yyyy-MM"),this.paymentQuery&&(this.listQuery=this.paymentQuery),this.getList()},destroyed:function(){},methods:Object(r["a"])({getList:function(){var e=this;this.listLoading=!0,this.setQueryParam(this.listQuery),Object(c["p"])(this.listQuery).then((function(t){e.listLoading=!1,e.list=t.Result.CostList.CurrentPageData,e.total=t.Result.CostList.TotalCount,e.exchangeRate=t.Result.ExchangeRate})).catch((function(){e.listLoading=!1}))},handleSearch:function(){this.listQuery.PageIndex=1,this.getList()},handleReset:function(){this.listQuery=v(),this.listQuery.StatisticsDate=new Date((new Date).setMonth((new Date).getMonth()-1)).format("yyyy-MM"),this.getList()},handleLock:function(){var e=this,t={ReviewerIdList:this.arrID,Month:this.listQuery.StatisticsDate};this.lockLoading=!0,Object(c["I"])(t).then((function(t){e.lockLoading=!1,e.getList(),e.$message.success("Locked successfully")})).catch((function(){e.lockLoading=!1}))},handleCalculate:function(){var e=this,t={CalculateMonth:this.listQuery.StatisticsDate,NeedCalculateReviewers:this.arrID};this.calcLoading=!0,Object(c["i"])(t).then((function(t){e.calcLoading=!1,e.getList(),e.$message.success("Calculate successfully")})).catch((function(){e.calcLoading=!1}))},handleAdjustment:function(){this.$router.push({name:"Adjustment",query:{exchangeRate:this.exchangeRate,date:this.listQuery.StatisticsDate}})},handleSetting:function(){this.$router.push({name:"PaymentSettings"})},handleDetail:function(e){this.$router.push({name:"PaymentDetail",query:e})},handleSettingDoctor:function(e){u["a"].dispatch("financials/getRank"),this.form=function(e){var t=e.FirstName,i=e.LastName,n=e.ChineseName,a=e.Code,r=e.DoctorId,o=e.DoctorNameInBank,s=e.IDCard,l=e.BankCardNumber,c=e.BankName,u=e.RankId,d=e.Additional;return{FirstName:t,LastName:i,ChineseName:n,Code:a,DoctorId:r,DoctorNameInBank:o,IDCard:s,BankCardNumber:l,BankName:c,RankId:u,Additional:d}}(e),this.form.Name="".concat(e.LastName," / ").concat(e.FirstName),this.form.DoctorNameInBank=this.form.DoctorNameInBank?this.form.DoctorNameInBank:this.form.ChineseName,this.dialogVisible=!0},handleSave:function(){var e=this;this.btnDisabled=!0;var t=function(e){var t=e.DoctorId,i=e.DoctorNameInBank,n=e.IDCard,a=e.BankCardNumber,r=e.BankName,o=e.RankId,s=e.Additional;return{DoctorId:t,DoctorNameInBank:i,IDCard:n,BankCardNumber:a,BankName:r,RankId:o,Additional:s}}(this.form);Object(c["e"])(t).then((function(t){e.btnDisabled=!1,e.dialogVisible=!1,e.getList(),e.$message.success("Updated successfully")})).catch((function(){e.btnDisabled=!1}))},handleSortChange:function(e){"ascending"===e.order?this.listQuery.Asc=!0:this.listQuery.Asc=!1,this.listQuery.SortField=e.prop,this.listQuery.PageIndex=1,this.getList()},handleSelectChange:function(e){for(var t=[],i=0;i<e.length;i++)t.push(e[i].DoctorId);this.arrID=t},getSummaries:function(e){var t=e.columns,i=e.data,n=[];return t.forEach((function(e,t){if(2!==t){if("TotalPaymentUSD"===e.property){var a=i.map((function(t){return Number(t[e.property])}));a.every((function(e){return isNaN(e)}))||(n[t]=a.reduce((function(e,t){var i=Number(t);return isNaN(i)?e:l["a"].add(e,t)}),0))}if("TotalPaymentCNY"===e.property){var r=i.map((function(t){return Number(t[e.property])}));r.every((function(e){return isNaN(e)}))||(n[t]=r.reduce((function(e,t){var i=Number(t);return isNaN(i)?e:l["a"].add(e,t)}),0))}}else n[t]="Total (Current Page)"})),n},addNum:function(e,t){var i,n,a;try{i=e.toString().split(".")[1].length}catch(r){i=0}try{n=t.toString().split(".")[1].length}catch(r){n=0}return a=Math.pow(10,Math.max(i,n)),console.log(e+"==="+t+"==="+a+"==="+(e*a+t*a)/a),(e*a+t*a)/a},handleSelectTable:function(e){return!!(e.IDCard&&e.BankCardNumber&&e.BankName)},onSelected:function(e){var t=this.rankOption.find((function(t){return t.Id===e}));this.form.Rank=t.RankName},cellStyle:function(e){var t=e.row,i=(e.column,e.rowIndex,e.columnIndex);if(0===t.TotalPaymentCNY&&12===i||10===i&&(!t.IDCard||!t.BankCardNumber||!t.RankName))return"color:red"},paymentCNFormatter:function(e,t){return e.ExchangeRate>0?Object(s["num2Money"])(e.PaymentCNY+e.AdjustPaymentCNY,2,0):"Setting Needed"},handleExportDetail:function(){var e=this,t=this;t.excelData=[];var i=[];this.list.forEach((function(t){e.arrID.indexOf(t.DoctorId)>-1&&i.push({PaymentId:t.Id,ReviewerId:t.DoctorId,YearMonth:t.YearMonth})})),t.exportDetailLoading=!0,Object(c["C"])(i).then((function(e){t.excelDataCount=e.Result.length,e.Result.forEach((function(e){t.exportDetailExcel(e.DoctorInfo,e.DetailList)}))})).catch((function(){t.exportDetailLoading=!1}))},handleExportPayroll:function(){var e=this,t=this;t.excelDataPayroll=[];var i=[];this.list.forEach((function(t){e.arrID.indexOf(t.DoctorId)>-1&&i.push(t.Id)})),t.exportPayrollLoading=!0,Object(c["q"])(i).then((function(e){t.ExportExcelPayroll(e.Result)})).catch((function(){t.exportPayrollLoading=!1}))},ExportExcelPayroll:function(e){var t=new h.a.Workbook,i=t.addWorksheet(this.listQuery.StatisticsDate);i.properties.defaultRowHeight=22,i.columns=[{key:"ChineseName",width:15},{key:"ResidentId",width:30},{key:"Phone",width:15},{key:"AccountNumber",width:20},{key:"Bank",width:30},{key:"PaymentCNY",width:20},{key:"TaxCNY",width:20},{key:"ActuallyPaidCNY",width:20}];var n=this;i.mergeCells("A1","H2"),i.getCell("A1").value=n.listQuery.StatisticsDate+" Payroll Summary",i.getCell("A1").alignment={vertical:"middle",horizontal:"center"},i.getCell("A1").font={name:"SimSun",family:4,size:13,bold:!0},i.mergeCells("A3","H3"),i.getCell("A3").value="Month"+n.listQuery.StatisticsDate,i.getCell("A3").alignment={vertical:"middle",horizontal:"right"},i.getRow(4).values=["Name CN","Resident ID","Phone Number","Account Number","Bank","劳务费总计","应付税额","实付劳务费"],i.getRow(4).font={name:"SimSun",family:4,size:11,bold:!0},i.getRow(4).alignment={vertical:"middle",horizontal:"left"},i.addRows(e),i.getColumn(6).numFmt="#,##0.00",i.getColumn(7).numFmt="#,##0.00",i.getColumn(8).numFmt="#,##0.00",i.eachRow((function(e,t){t>3&&e.eachCell((function(e,t){e.alignment={vertical:"center",horizontal:"left"},e.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}}))})),t.xlsx.writeBuffer({base64:!0}).then((function(t){var i=new Blob([t],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});n.excelDataPayrollCount=e.length+1,n.excelDataPayroll.push({data:i,fileName:"Payroll Summary_"+n.listQuery.StatisticsDate+".xlsx"}),e.forEach((function(e){n.ExportExcelPayrollDeatil(e)}))}))},ExportExcelPayrollDeatil:function(e){var t=this,i=new h.a.Workbook,n=i.addWorksheet(e.ChineseName+" "+this.listQuery.StatisticsDate);n.properties.defaultRowHeight=25,n.properties.defaultColWidth=30,n.mergeCells("A1","E1"),n.getCell("A1").value="上海致准信息科技有限公司",n.getCell("A1").alignment={vertical:"middle",horizontal:"center"},n.getCell("A1").font={name:"SimSun",family:4,size:13,bold:!0},n.mergeCells("A2","E2"),n.getCell("A2").value="劳务支付单",n.getCell("A2").alignment={vertical:"middle",horizontal:"center"},n.getCell("A2").font={name:"SimSun",family:4,size:13,bold:!0},n.getRow(3).values=["姓名","身份证号","","工作月份","发放月份"],n.mergeCells("B3","C3");var a=new Date,r=a.getFullYear(),o=a.getMonth()+1;o<10&&(o="0"+o),n.getRow(4).values=[e.ChineseName,e.ResidentId,"",e.YearMonth,r+"-"+o],n.mergeCells("B4","C4"),n.getRow(5).values=["应付金额","代扣税金","实付金额","银行转账",""],n.getRow(6).values=[e.PaymentCNY,e.TaxCNY,e.ActuallyPaidCNY,e.ActuallyPaidCNY,""],n.mergeCells("D5","E5"),n.mergeCells("D6","E6"),n.getRow(7).values=["审核","","经办","",""],n.mergeCells("A7","B7"),n.mergeCells("C7","E7"),n.eachRow((function(e,t){t>2&&e.eachCell((function(e,i){t<7&&(e.alignment={vertical:"center",horizontal:"center"}),e.numFmt="#,##0.00",e.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}}))})),i.xlsx.writeBuffer({base64:!0}).then((function(i){var n=new Blob([i],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});if(t.excelDataPayroll.push({data:n,fileName:e.ChineseName+"_paystub_"+e.YearMonth+".xlsx"}),t.excelDataPayrollCount===t.excelDataPayroll.length){var a=new m.a;t.excelDataPayroll.forEach((function(e){a.file(e.fileName,e.data)})),a.generateAsync({type:"blob"}).then((function(t){Object(g["saveAs"])(t,"Monthly Payroll "+e.YearMonth+".zip")}))}t.exportPayrollLoading=!1}))},exportDetailExcel:function(e,t){var i=new h.a.Workbook,n=i.addWorksheet(e.ChineseName+" "+e.YearMonth);n.properties.defaultRowHeight=22,n.columns=[{header:"Project ID",key:"TrialCode",width:15},{header:"Type",key:"PaymentType",width:30},{header:"Count",key:"Count",width:15},{header:"Base Price",key:"BasePrice",width:15},{header:"Personal Additional",key:"PersonalAdditional",width:22},{header:"Trial Additional",key:"TrialAdditional",width:22},{header:"Total Price",key:"TotalUnitPrice",width:22},{header:"Total Fee",key:"PaymentUSD",width:22},{header:"Subtotal(¥)",key:"PaymentCNY",width:22}];var a=this,r=0,o=0;t.forEach((function(e){r+=parseFloat(e.PaymentUSD),o+=parseFloat(e.PaymentCNY)}));var s=Number(t.length+1),l=4;n.mergeCells("A1","I2"),n.getCell("A1").value="Monthly Payment",n.getCell("A1").alignment={vertical:"middle",horizontal:"center"},n.getCell("A1").font={name:"SimSun",family:4,size:13,bold:!0},n.mergeCells("A3","D3"),n.getCell("A3").value="Name"+e.ChineseName+" ID:"+e.Code,n.mergeCells("E3","I3"),n.getCell("E3").value=" Rank"+e.PayTitle+" Month"+e.YearMonth+" Exchange Rate: "+Number(t[0].ExchangeRate).toFixed(2),n.getCell("A3").alignment={vertical:"middle",horizontal:"left"},n.getCell("E3").alignment={vertical:"middle",horizontal:"right"},n.getCell("A4").value="Project ID",n.getCell("B4").value="Read Type",n.getCell("C4").value="Volume",n.getCell("D4").value="Base Rate($)",n.getCell("E4").value="Personal Adjustment($)",n.getCell("F4").value="Project Adjustment($)",n.getCell("G4").value="Adjusted Rate($)",n.getCell("H4").value="Subtotal($)",n.getCell("I4").value="Subtotal(¥)",n.getRow(4).font={name:"SimSun",family:4,size:11,bold:!0},n.addRows(t);for(var c=Math.floor(Number(t.length/9)),u=0;u<c;u++){var d="A"+(10*u+l+1),f="A"+(10*(u+1)+l);10*(u+1)<s&&(n.mergeCells(d,f),n.getCell(d).alignment={vertical:"middle",horizontal:"center"})}var p=t.filter((function(e){return"Volume Reward"===e.TrialCode})).length,v=t.filter((function(e){return"Adjustment"===e.TrialCode})).length;if(p>0){var b="A"+(10*c+l+1),y="A"+(10*c+l+p);n.mergeCells(b,y),n.getCell(b).alignment={vertical:"middle",horizontal:"center"}}if(v>0){var w="A"+(10*c+l+p+1),_="A"+(s+l-1);n.mergeCells(w,_),n.getCell(w).alignment={vertical:"middle",horizontal:"center"};var I=0;for(I=0;I<v;I++){var x="B"+(10*c+l+p+1+I),S="C"+(10*c+l+p+1+I),T="G"+(10*c+l+p+1+I);n.mergeCells(S,T);var C=10*c+p+I;n.getCell(x).value=t[C].AdjustmentView.AdjustType,n.getCell(S).value=t[C].AdjustmentView.Note}}var k="A"+(s+1+l-1),R="B"+(s+1+l-1),D="G"+(s+1+l-1),L="H"+(s+1+l-1),O="I"+(s+1+l-1);n.mergeCells(R,D),n.getCell(k).value="Total",n.getCell(L).value=r,n.getCell(O).value=o,n.getCell(L).font={name:"SimSun",family:4,size:13,bold:!0},n.getRow(s+l).font={name:"SimSun",family:4,size:13,bold:!0},n.getColumn(7).numFmt="#,##0.00",n.getColumn(8).numFmt="#,##0.00",n.getColumn(9).numFmt="#,##0.00",n.eachRow((function(e,t){t>3&&e.eachCell((function(e,t){e.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}}))})),i.xlsx.writeBuffer({base64:!0}).then((function(t){var i=new Blob([t],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});if(a.excelData.push({data:i,fileName:e.ChineseName+"_detail_ "+e.YearMonth+".xlsx"}),a.excelDataCount===a.excelData.length){var n=new m.a;a.excelData.forEach((function(e){n.file(e.fileName,e.data)})),n.generateAsync({type:"blob"}).then((function(t){Object(g["saveAs"])(t,"Monthly Payment Detail_"+e.YearMonth+".zip")})),a.exportDetailLoading=!1}}))},handleExportExcel:function(){var e=this,t=new h.a.Workbook,i=t.addWorksheet(this.listQuery.StatisticsDate);i.properties.defaultRowHeight=22,i.columns=[{key:"Index",width:5},{key:"LastName",width:15},{key:"FirstName",width:15},{key:"DoctorNameInBank",width:15},{key:"Code",width:15},{key:"IDCard",width:20},{key:"Phone",width:15},{key:"BankCardNumber",width:25},{key:"BankName",width:30},{key:"PaymentUSD",width:20},{key:"ExchangeRate",width:20},{key:"PaymentCNY",width:20},{key:"IsLock",width:20}];var n=this,a=0,r=0,o=1,s=this.list.filter((function(t){return e.arrID.indexOf(t.DoctorId)>-1}));s.forEach((function(e){e.Index=o,e.PaymentUSD=e.PaymentUSD+e.AdjustPaymentUSD,e.PaymentCNY=e.PaymentCNY+e.AdjustPaymentCNY,a+=e.PaymentUSD,r+=e.PaymentCNY,e.IsLock=e.IsLock?"Locked":"Pending",o++})),i.mergeCells("A1","M2"),i.getCell("A1").value=n.listQuery.StatisticsDate+" Payment Summary",i.getCell("A1").alignment={vertical:"middle",horizontal:"center"},i.getCell("A1").font={name:"SimSun",family:4,size:13,bold:!0},i.mergeCells("A3","M3"),i.getCell("A3").value="Month"+n.listQuery.StatisticsDate,i.getCell("A3").alignment={vertical:"middle",horizontal:"right"},i.getRow(4).values=["","Surname","Given Name","Name CN","ID","Resident ID","Phone Number","Account Number","Bank","Payment($)","Exchange Rate","Payment(¥)","Status"],i.getRow(4).font={name:"SimSun",family:4,size:11,bold:!0},i.getRow(4).alignment={vertical:"middle",horizontal:"left"},i.addRows(s),i.addRow(["","Total","","","","","","","",a,"",r,""]),i.getRow(s.length+5).font={name:"SimSun",family:4,size:11,bold:!0},i.getColumn(10).numFmt="#,##0.00",i.getColumn(11).numFmt="#,##0.00",i.getColumn(12).numFmt="#,##0.00",i.eachRow((function(e,t){t>3&&e.eachCell((function(e,t){e.alignment={vertical:"center",horizontal:"left"},e.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}}))})),t.xlsx.writeBuffer({base64:!0}).then((function(e){var t=new Blob([e],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});if("msSaveOrOpenBlob"in navigator)window.navigator.msSaveOrOpenBlob(t,"Payment Summary_"+n.listQuery.StatisticsDate+".xlsx");else{var i=document.createElement("a"),a=URL.createObjectURL(t);i.href=a,i.download="Payment Summary_"+n.listQuery.StatisticsDate+".xlsx",document.body.appendChild(i),i.click(),setTimeout((function(){document.body.removeChild(i),window.URL.revokeObjectURL(a)}),0)}}))}},Object(d["c"])({setQueryParam:"financials/SET_PAYMENTQUERYPARAM"}))},y=b,w=(i("e199"),i("2877")),_=Object(w["a"])(y,n,a,!1,null,"23a2239d",null);t["default"]=_.exports},3983:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container financials"},[i("el-tabs",{on:{"tab-click":e.clickTab},model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},[i("el-tab-pane",{attrs:{label:"Monthly Payment",name:"MonthlyPayment"}},["MonthlyPayment"==e.activeTab?i("monthly-payment"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Payment History",name:"PaymentHistory"}},["PaymentHistory"==e.activeTab?i("payment-history"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Revenues",name:"Revenues"}},["Revenues"==e.activeTab?i("Revenues"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Analysis",name:"Analysis"}},[i("keep-alive",["Analysis"==e.activeTab?i("Analysis"):e._e()],1)],1)],1)],1)},a=[],r=(i("7f7f"),i("db72")),o=i("397a"),s=i("e297"),l=i("4463"),c=i("2610"),u=i("2f62"),d=i("4360"),f={name:"Financials",components:{MonthlyPayment:o["default"],PaymentHistory:s["default"],Revenues:l["default"],Analysis:c["default"]},data:function(){return{activeTab:"MonthlyPayment"}},computed:Object(r["a"])({},Object(u["b"])(["financialsActiveName"])),created:function(){this.activeTab=this.financialsActiveName},methods:{clickTab:function(e,t){this.activeTab=e.name,d["a"].dispatch("financials/setActiveName",e.name)}}},h=f,p=(i("1266"),i("2877")),m=Object(p["a"])(h,n,a,!1,null,null,null);t["default"]=m.exports},"39b2":function(e,t,i){},"39b6":function(e,t,i){},"39e1":function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-qq",use:"icon-qq-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-qq"><path d="M18.448 57.545l-.244-.744-.198-.968-.132-.53v-2.181l.236-.859.24-.908.317-.953.428-1.06.561-1.103.794-1.104v-.773l.077-.724.123-.984.34-1.106.313-1.194.25-.548.289-.511.371-.569.405-.423v-2.73l.234-1.407.236-1.633.42-1.955.577-2.035.43-1.118.426-1.217.468-1.135.559-1.216.57-1.332.655-1.247.737-1.331.929-1.33.43-.762.457-.624.995-1.406 1.025-1.403 1.163-1.444 1.246-1.405 1.352-1.384 1.41-1.423 1.708-1.536 1.083-.934 1.322-1.008 1.34-.89 1.448-.855 1.392-.76 1.57-.63 1.667-.775 1.657-.532 1.653-.552 1.787-.548 1.785-.417 1.876-.347L59.128.68l1.879-.245 1.876-.252 2.002-.106h5.912l1.97.243 1.981.231 2.019.207 1.874.441 1.979.413 1.857.475 2.035.53 1.862.646 1.782.738 1.904.78 1.736.853 1.689.95 1.655 1.044 1.425.971.662.548.693.401 1.323 1.1 1.115 1.064 1.112 1.1 1.083 1.214.894 1.178 1.064 1.217.74 1.306.752 1.162.798 1.352.661 1.175 1.113 2.489.546 1.286.428 1.192.428 1.294.384 1.217.267 1.047.347 1.231.607 2.198.388 1.924.253 1.861.217 1.497.342 2.28.077.362.274.41.737 1.18.473.8.42.832.534.892.472 1.07.307 1.093.334 1.2.252 1.232.115.605.106.746v.648l-.106.643v.8l-.192.774-.35 1.5-.403.76-.299.852v.213l.142.264.4.623 1.746 2.53 1.377 1.9.66 1.267.889 1.389.774 1.52.893 1.627.894 1.828 1.006 2.069.567 1.268.518 1.239.447 1.307.44 1.175.336 1.235.342 1.16.432 2.261.343 2.31.235 2.05v2.891l-.158 1.025-.226 1.768-.308 1.59-.48 1.44-.18.588-.336.707-.28.493-.375.607-.33.383-.42.494-.375.4-.401.34-.48.207-.432.207-.355.114h-.543l-.346-.114-.66-.32-.302-.212-.317-.223-.347-.304-.35-.342-.579-.63-.684-.89-.539-.917-.538-.734-.526-.855-.741-1.517-.833-1.579-.098-.055h-.138l-.338.247-.196.415-.326.516-.567 1.533-.856 2.182-1.096 2.626-.824 1.308-.864 1.366-1.027 1.536-1.09 1.503-.557.68-.676.743-1.555 1.497.136.135.21.214.777.446 3.235 1.524 1.41.779 1.347.756 1.332.953 1.187.982.574.443.432.511.445.593.367.643.198.533.242.64.105.554.115.647-.115.433v.44l-.105.454-.242.415-.092.325-.22.394-.587.784-.543.627-.42.47-.35.348-.893.638-1.01.556-1.077.532-1.155.511-1.287.495-.693.207-.608.167-1.496.342-1.545.325-1.552.323-1.689.27-1.74.072-1.785.21h-5.539l-1.998-.114-1.86-.168-2.005-.27-1.99-.209-2.095-.286-2.03-.495-1.981-.374-1.968-.552-2.019-.707-1.98-.585-1.044-.342-.927-.323-.586-.223-.582-.12h-1.647l-1.904-.131-.962-.096-1.24-.135-.795.705-1.085.665-1.471.701-1.628.875-.99.475-1.033.376-2.281.914-1.24.305-1.3.343-1.803.344-1.13.086-1.193.1-1.246.135-1.45.053h-5.926l-3.346-.053-3.25-.321-1.644-.23-1.589-.23-1.546-.227-1.547-.305-1.442-.456-1.434-.325-1.294-.51-1.223-.474-1.142-.533-.99-.583-.984-.71-.336-.343-.44-.415-.334-.362-.3-.417-.278-.415-.215-.42-.311-.89-.109-.46-.138-.51v-.473l.138-.533v-.53l.109-.53v-1.069l.052-.564.259-.647.215-.646.39-.779.286-.3.236-.348.615-.738.49-.38.464-.266.428-.338.676-.21.543-.324.676-.341.77-.227.775-.231.897-.192.85-.11 1.008-.13 1.093-.081.284-.092h.063l.137-.115v-.13l-.2-.266-.58-.27-1.45-1.231-.975-.761-1.127-.967-1.136-1.082-1.181-1.382-1.36-1.558-.508-.843-.672-.87-.58-1.007-.522-1.1-.704-1.047-.459-1.194-.547-1.192-.546-1.33-.397-1.273-.378-1.575-.112-.057h-.115l-.059-.113h-.14l-.23.113-.114.057-.158.264-.057.321-.119.286-.206.477-.664 1.157-.345.701-.546.612-.58.736-.641.816-.677.724-.795.701-.734.658-.814.524-.89.546-.855.325-1.008.247-.99.095h-.233l-.228-.095-.18-.384-.29-.188-.38-.912-.237-.493-.255-.707-.21-.734-.113-.724-.313-1.648-.12-.972v-3.185l.12-2.379.196-1.214.23-1.252.21-1.347.374-1.254.42-1.443.431-1.407.578-1.448.545-1.38.754-1.4.699-1.52.855-1.425 1.006-1.538 1.023-1.382 1.069-1.538.891-1.071 1.142-1.227 1.202-1.237.56-.59.678-.662.985-.836 1.012-.853 1.647-1.446 1.242-.889z" /></symbol>'});o.a.add(s);t["default"]=s},"3a1d":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"basic-info"},[i("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0,model:e.basicInfo,size:"small"}},[i("el-row",[i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"Surname:"}},[i("span",[e._v(e._s(e.basicInfo.LastName))])])],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"Given Name:"}},[i("span",[e._v(e._s(e.basicInfo.FirstName))])])],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"Name CN:"}},[i("span",[e._v(e._s(e.basicInfo.ChineseName))])])],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"ID:"}},[i("span",[e._v(e._s(e.basicInfo.ReviewerCode))])])],1)],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"Gender:"}},[e.isEnglish?i("span",[e._v(e._s(0===e.basicInfo.Sex?"Male":"Female"))]):i("span",[e._v(e._s(0===e.basicInfo.Sex?"男":"女"))])])],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"Title:"}},[e.isEnglish?i("span",[e._v("\n "+e._s(Array.isArray(e.basicInfo.Title)&&e.basicInfo.Title.length>0?e.basicInfo.TitleList.join(", "):"")+"\n ")]):i("span",[e._v("\n "+e._s(Array.isArray(e.basicInfo.TitleCNList)&&e.basicInfo.TitleCNList.length>0?e.basicInfo.TitleCNList.join(", "):"")+"\n ")])])],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"Phone:"}},[i("span",[e._v(e._s(e.basicInfo.Phone))])])],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"Email:"}},[i("span",[e._v(e._s(e.basicInfo.EMail))])])],1)],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"WeChat:"}},[i("span",[e._v(e._s(e.basicInfo.WeChat))])])],1)],1)],1)],1)},a=[],r={props:{basicInfo:{type:Object,default:function(){return{}}},isEnglish:{type:Boolean}}},o=r,s=(i("7a70"),i("2877")),l=Object(s["a"])(o,n,a,!1,null,null,null);t["default"]=l.exports},"3a55":function(e,t,i){"use strict";i("c067")},"3a56":function(e,t,i){var n=i("4e08"),a=(n.__DEV__,i("3eba")),r=i("6d8b"),o=i("22d1"),s=i("e0d3"),l=i("50e5"),c=i("cc39"),u=r.each,d=l.eachAxisDim,f=a.extendComponentModel({type:"dataZoom",dependencies:["xAxis","yAxis","zAxis","radiusAxis","angleAxis","singleAxis","series"],defaultOption:{zlevel:0,z:4,orient:null,xAxisIndex:null,yAxisIndex:null,filterMode:"filter",throttle:null,start:0,end:100,startValue:null,endValue:null,minSpan:null,maxSpan:null,minValueSpan:null,maxValueSpan:null,rangeMode:null},init:function(e,t,i){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0,this._rangePropMode=["percent","percent"];var n=h(e);this.settledOption=n,this.mergeDefaultAndTheme(e,i),this.doInit(n)},mergeOption:function(e){var t=h(e);r.merge(this.option,e,!0),r.merge(this.settledOption,t,!0),this.doInit(t)},doInit:function(e){var t=this.option;o.canvasSupported||(t.realtime=!1),this._setDefaultThrottle(e),p(this,e);var i=this.settledOption;u([["start","startValue"],["end","endValue"]],(function(e,n){"value"===this._rangePropMode[n]&&(t[e[0]]=i[e[0]]=null)}),this),this.textStyleModel=this.getModel("textStyle"),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var e=this._axisProxies;this.eachTargetAxis((function(t,i,n,a){var r=this.dependentModels[t.axis][i],o=r.__dzAxisProxy||(r.__dzAxisProxy=new c(t.name,i,this,a));e[t.name+"_"+i]=o}),this)},_resetTarget:function(){var e=this.option,t=this._judgeAutoMode();d((function(t){var i=t.axisIndex;e[i]=s.normalizeToArray(e[i])}),this),"axisIndex"===t?this._autoSetAxisIndex():"orient"===t&&this._autoSetOrient()},_judgeAutoMode:function(){var e=this.option,t=!1;d((function(i){null!=e[i.axisIndex]&&(t=!0)}),this);var i=e.orient;return null==i&&t?"orient":t?void 0:(null==i&&(e.orient="horizontal"),"axisIndex")},_autoSetAxisIndex:function(){var e=!0,t=this.get("orient",!0),i=this.option,n=this.dependentModels;if(e){var a="vertical"===t?"y":"x";n[a+"Axis"].length?(i[a+"AxisIndex"]=[0],e=!1):u(n.singleAxis,(function(n){e&&n.get("orient",!0)===t&&(i.singleAxisIndex=[n.componentIndex],e=!1)}))}e&&d((function(t){if(e){var n=[],a=this.dependentModels[t.axis];if(a.length&&!n.length)for(var r=0,o=a.length;r<o;r++)"category"===a[r].get("type")&&n.push(r);i[t.axisIndex]=n,n.length&&(e=!1)}}),this),e&&this.ecModel.eachSeries((function(e){this._isSeriesHasAllAxesTypeOf(e,"value")&&d((function(t){var n=i[t.axisIndex],a=e.get(t.axisIndex),o=e.get(t.axisId),s=e.ecModel.queryComponents({mainType:t.axis,index:a,id:o})[0];a=s.componentIndex,r.indexOf(n,a)<0&&n.push(a)}))}),this)},_autoSetOrient:function(){var e;this.eachTargetAxis((function(t){!e&&(e=t.name)}),this),this.option.orient="y"===e?"vertical":"horizontal"},_isSeriesHasAllAxesTypeOf:function(e,t){var i=!0;return d((function(n){var a=e.get(n.axisIndex),r=this.dependentModels[n.axis][a];r&&r.get("type")===t||(i=!1)}),this),i},_setDefaultThrottle:function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},getFirstTargetAxisModel:function(){var e;return d((function(t){if(null==e){var i=this.get(t.axisIndex);i.length&&(e=this.dependentModels[t.axis][i[0]])}}),this),e},eachTargetAxis:function(e,t){var i=this.ecModel;d((function(n){u(this.get(n.axisIndex),(function(a){e.call(t,n,a,this,i)}),this)}),this)},getAxisProxy:function(e,t){return this._axisProxies[e+"_"+t]},getAxisModel:function(e,t){var i=this.getAxisProxy(e,t);return i&&i.getAxisModel()},setRawRange:function(e){var t=this.option,i=this.settledOption;u([["start","startValue"],["end","endValue"]],(function(n){null==e[n[0]]&&null==e[n[1]]||(t[n[0]]=i[n[0]]=e[n[0]],t[n[1]]=i[n[1]]=e[n[1]])}),this),p(this,e)},setCalculatedRange:function(e){var t=this.option;u(["start","startValue","end","endValue"],(function(i){t[i]=e[i]}))},getPercentRange:function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},getValueRange:function(e,t){if(null!=e||null!=t)return this.getAxisProxy(e,t).getDataValueWindow();var i=this.findRepresentativeAxisProxy();return i?i.getDataValueWindow():void 0},findRepresentativeAxisProxy:function(e){if(e)return e.__dzAxisProxy;var t=this._axisProxies;for(var i in t)if(t.hasOwnProperty(i)&&t[i].hostedBy(this))return t[i];for(var i in t)if(t.hasOwnProperty(i)&&!t[i].hostedBy(this))return t[i]},getRangePropMode:function(){return this._rangePropMode.slice()}});function h(e){var t={};return u(["start","end","startValue","endValue","throttle"],(function(i){e.hasOwnProperty(i)&&(t[i]=e[i])})),t}function p(e,t){var i=e._rangePropMode,n=e.get("rangeMode");u([["start","startValue"],["end","endValue"]],(function(e,a){var r=null!=t[e[0]],o=null!=t[e[1]];r&&!o?i[a]="percent":!r&&o?i[a]="value":n?i[a]=n[a]:r&&(i[a]="percent")}))}var m=f;e.exports=m},"3b50":function(e,t,i){"use strict";i("e64a")},"3ba1":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"pageBreakForm",attrs:{model:e.form,size:"small",rules:e.rules,"label-width":"110px"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:"分页名称",prop:"PageName"}},[i("el-input",{model:{value:e.form.PageName,callback:function(t){e.$set(e.form,"PageName",t)},expression:"form.PageName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"是否公共分页",prop:"IsPublicPage"}},[i("el-radio-group",{model:{value:e.form.IsPublicPage,callback:function(t){e.$set(e.form,"IsPublicPage",t)},expression:"form.IsPublicPage"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"IsPublicPage"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"序号",prop:"ShowOrder"}},[i("el-input-number",{attrs:{"controls-position":"right",min:0},model:{value:e.form.ShowOrder,callback:function(t){e.$set(e.form,"ShowOrder",t)},expression:"form.ShowOrder"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"是否启用"}},[i("el-radio-group",{model:{value:e.form.IsEnable,callback:function(t){e.$set(e.form,"IsEnable",t)},expression:"form.IsEnable"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"IsEnable"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleClose}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])},a=[],r=(i("ac6a"),i("456d"),i("3e42")),o={name:"PageBreakList",props:{data:{type:Object,default:function(){return{}}}},data:function(){return{form:{TrialId:"",Id:"",PageName:"",IsPublicPage:!1,IsEnable:!0,ShowOrder:0},rules:{PageName:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:["blur","change"]}],IsPublicPage:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}]},loading:!1,trialId:""}},mounted:function(){this.trialId=this.$route.query.trialId,this.initForm()},methods:{initForm:function(){if(Object.keys(this.data).length>0){for(var e in this.form)this.data.hasOwnProperty(e)&&(this.form[e]=this.data[e]);if(!this.data.Path)return;this.fileList=[{name:this.data.FileName,path:this.data.Path}]}},handleSave:function(){var e=this;this.$refs.pageBreakForm.validate((function(t){t&&(e.loading=!0,e.form.TrialId=e.trialId,Object(r["r"])(e.form).then((function(t){e.loading=!1,e.$emit("getList",!0),e.$emit("close"),e.$emit("reloadArbitrationRules"),e.$message.success(e.$t("common:message:savedSuccessfully"))})).catch((function(){e.loading=!1})))}))},handleClose:function(){this.$emit("close")}}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,"07f9a91f",null);t["default"]=c.exports},"3c0de":function(e,t,i){"use strict";i("b590")},"3c13":function(e,t,i){"use strict";i("bad9")},"3ca6":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"search-container"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:reviewAssign:readingTask:table:siteCode")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:"",filterable:""},model:{value:e.searchData.SiteId,callback:function(t){e.$set(e.searchData,"SiteId",t)},expression:"searchData.SiteId"}},e._l(e.siteOptions,(function(e,t){return i("el-option",{key:t,attrs:{label:e.TrialSiteCode,value:e.SiteId}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:reviewAssign:readingTask:table:subjectCode")}},[i("el-input",{staticStyle:{width:"100px"},model:{value:e.searchData.SubjectCode,callback:function(t){e.$set(e.searchData,"SubjectCode",t)},expression:"searchData.SubjectCode"}})],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:reviewAssign:readingTask:table:visitName")}},[i("el-input",{staticStyle:{width:"100px"},attrs:{clearable:""},model:{value:e.searchData.TaskName,callback:function(t){e.$set(e.searchData,"TaskName",t)},expression:"searchData.TaskName"}})],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:reviewAssign:readingTask:table:reader")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.DoctorUserId,callback:function(t){e.$set(e.searchData,"DoctorUserId",t)},expression:"searchData.DoctorUserId"}},e._l(e.DoctorUserList,(function(e){return i("el-option",{key:"DoctorUserId"+e.DoctorUserId,attrs:{value:e.DoctorUserId,label:e.UserName+"("+e.FullName+")"}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:reviewAssign:readingTask:table:criterionName")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.TrialReadingCriterionId,callback:function(t){e.$set(e.searchData,"TrialReadingCriterionId",t)},expression:"searchData.TrialReadingCriterionId"}},e._l(e.trialCriterionList,(function(e){return i("el-option",{key:"TrialReadingCriterionId"+e.TrialReadingCriterionId,attrs:{value:e.TrialReadingCriterionId,label:e.TrialReadingCriterionName}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:reviewAssign:readingTask:table:isUrgent")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.IsUrgent,callback:function(t){e.$set(e.searchData,"IsUrgent",t)},expression:"searchData.IsUrgent"}},e._l(e.$d.YesOrNo,(function(e){return i("el-option",{key:"IsUrgent"+e.label,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:reviewAssign:readingTask:table:taskStatus")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.TaskState,callback:function(t){e.$set(e.searchData,"TaskState",t)},expression:"searchData.TaskState"}},e._l(e.$d.TaskState,(function(e){return i("el-option",{key:"TaskState"+e.label,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:reviewAssign:readingTask:table:taskType")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.ReadingCategory,callback:function(t){e.$set(e.searchData,"ReadingCategory",t)},expression:"searchData.ReadingCategory"}},e._l(e.$d.ReadingCategory,(function(t){return 4!==t.value?i("el-option",{key:"ReadingCategory"+t.label,attrs:{value:t.value,label:t.label}}):e._e()})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:reviewAssign:readingTask:table:assignStatus")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.TaskAllocationState,callback:function(t){e.$set(e.searchData,"TaskAllocationState",t)},expression:"searchData.TaskAllocationState"}},e._l(e.$d.TaskAllocationState,(function(e){return i("el-option",{key:"TaskAllocationState"+e.label,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:reviewAssign:readingTask:table:assignTime")}},[i("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd HH:mm:ss",type:"datetimerange"},on:{change:e.changeTimeList},model:{value:e.timeList,callback:function(t){e.timeList=t},expression:"timeList"}})],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"}},[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")])],1)],1)],1),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"},{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortChange}},[i("el-table-column",{attrs:{prop:"IsUrgent",label:e.$t("trials:reviewAssign:readingTask:table:isUrgent"),"show-overflow-tooltip":"","min-width":"100",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsUrgent?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsUrgent)))]):i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsUrgent)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskCode",label:e.$t("trials:reviewAssign:readingTask:table:taskCode"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialSiteCode",label:e.$t("trials:reviewAssign:readingTask:table:siteCode"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode",label:e.$t("trials:reviewAssign:readingTask:table:subjectCode"),"min-width":"120",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitTaskNum",label:e.$t("trials:reviewAssign:readingTask:table:visitName"),"min-width":"160",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.TaskName)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskBlindName",label:e.$t("trials:reviewAssign:readingTask:table:blindName"),"min-width":"140",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:e.$t("trials:reviewAssign:readingTask:table:createTime"),"min-width":"140",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskState",label:e.$t("trials:reviewAssign:readingTask:table:taskStatus"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.TaskState?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e(),e._v(" "),1===t.row.TaskState?i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e(),e._v(" "),3===t.row.TaskState?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e(),e._v(" "),4===t.row.TaskState?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ReadingCategory",label:e.$t("trials:reviewAssign:readingTask:table:taskType"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.ReadingCategory?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e(),e._v(" "),2===t.row.ReadingCategory?i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e(),e._v(" "),4===t.row.ReadingCategory?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e(),e._v(" "),5===t.row.ReadingCategory?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskAllocationState",label:e.$t("trials:reviewAssign:readingTask:table:assignStatus"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.TaskAllocationState?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("TaskAllocationState",t.row.TaskAllocationState)))]):i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("TaskAllocationState",t.row.TaskAllocationState)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ArmEnum",label:e.$t("trials:reviewAssign:readingTask:table:role"),sortable:"custom","min-width":"80","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.ArmEnum?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ArmEnum",t.row.ArmEnum)))]):e._e(),e._v(" "),2===t.row.ArmEnum?i("el-tag",{attrs:{type:"success"}},[e._v(e._s(e.$fd("ArmEnum",t.row.ArmEnum)))]):e._e(),e._v(" "),3===t.row.ArmEnum?i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("ArmEnum",t.row.ArmEnum)))]):e._e(),e._v(" "),4===t.row.ArmEnum?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ArmEnum",t.row.ArmEnum)))]):e._e(),e._v(" "),5===t.row.ArmEnum?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("ArmEnum",t.row.ArmEnum)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:e.$t("trials:reviewAssign:readingTask:table:reader"),"min-width":"180",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return t.row.UserName?[e._v("\n "+e._s(t.row.UserName+"("+t.row.FullName+")")+"\n ")]:void 0}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialReadingCriterionName",label:e.$t("trials:reviewAssign:readingTask:table:criterionName"),"min-width":"180",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"AllocateTime",label:e.$t("trials:reviewAssign:readingTask:table:assignTime"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""}})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}}),e._v(" "),i("el-dialog",{attrs:{title:"分配规则",visible:e.AllocationConfigVisible,width:"1200px","close-on-click-modal":!1,"custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.AllocationConfigVisible=t}}},[i("div",{staticClass:"base-dialog-body",staticStyle:{position:"relative"}},[i("el-divider",{attrs:{"content-position":"left"}},[e._v("首次分配规则")]),e._v(" "),i("el-button",{staticStyle:{position:"absolute",right:"10px",top:"60px","z-index":"100"},attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:function(t){return e.addOrEdit()}}},[e._v("\n 添加阅片人\n ")]),e._v(" "),i("el-form",{ref:"signForm",attrs:{size:"small","label-width":"100px"}},[i("el-form-item",{attrs:{label:"分配对象"}},[i("el-radio-group",{model:{value:e.TrialTaskInfo.TaskAllocateObjEnum,callback:function(t){e.$set(e.TrialTaskInfo,"TaskAllocateObjEnum",t)},expression:"TrialTaskInfo.TaskAllocateObjEnum"}},e._l(e.$d.TaskAllocateObj,(function(t){return i("el-radio",{key:"TaskAllocateObjEnum"+t.value,attrs:{label:t.value,disabled:1===t.value}},[e._v(e._s(t.label))])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"阅片人列表"}},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{border:"",data:e.TaskAllocationRuleList,stripe:""}},[i("el-table-column",{attrs:{prop:"UserName",label:"阅片人","min-width":"180","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.UserName+"("+t.row.FullName+")")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"PlanReadingRatio",label:"计划受试者比例","min-width":"130","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.PlanReadingRatio?t.row.PlanReadingRatio+"%":"0%")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"当前受试者比例","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.ApplyedTotalSubjectCount>0?(100*t.row.SelfApplyedSubjectCount/t.row.ApplyedTotalSubjectCount).toFixed(2)+"%":"0%")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"已分配任务比例","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.ApplyedTotalTaskCount>0?(100*t.row.SelfApplyedTaskCount/t.row.ApplyedTotalTaskCount).toFixed(2)+"%":"0%")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"已分配总任务量","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.SelfApplyedTaskCount)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"待处理任务量","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.SelfUndoTaskCount)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsEnable",label:"状态","min-width":"80","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsEnable?i("el-tag",[e._v(e._s(e.$fd("IsEnable",t.row.IsEnable)))]):i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("IsEnable",t.row.IsEnable)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Note",label:"备注","min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{fixed:"right",label:"操作",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{circle:"",icon:"el-icon-edit-outline",title:"编辑"},on:{click:function(i){return e.addOrEdit(t.row)}}}),e._v(" "),i("el-button",{attrs:{circle:"",icon:"el-icon-delete",title:"删除"},on:{click:function(i){return e.handleDelete(t.row)}}})]}}])})],1)],1),e._v(" "),i("el-divider",{attrs:{"content-position":"left"}},[e._v("后续分配规则")]),e._v(" "),i("el-descriptions",{staticClass:"margin-top",attrs:{column:1}},[i("el-descriptions-item",[i("template",{slot:"label"},[i("el-checkbox",{attrs:{disabled:""},model:{value:e.value1,callback:function(t){e.value1=t},expression:"value1"}},[e._v("同一病例随访阅片任务自动分配(在拟分配的阅片人未标记为退出项目状态时)默认状态 已分配 ")])],1),e._v(" "),i("div",{staticStyle:{"margin-left":"10px"}})],2),e._v(" "),i("el-descriptions-item",{attrs:{label:"同一病例随访阅片任务自动分配(在拟分配的阅片人未标记为退出项目状态时)"}},[i("template",{slot:"label"},[i("el-checkbox",{attrs:{disabled:""},model:{value:e.value1,callback:function(t){e.value1=t},expression:"value1"}},[e._v("同一病例全局任务自动分配(在拟分配的阅片人未标记为退出项目状态时 默认状态 已分配 ")])],1),e._v(" "),i("div",{staticStyle:{"margin-left":"10px"}})],2)],1)],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.handleCancel}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)]),e._v(" "),e.taskAllocationRuleVisible?i("el-dialog",{attrs:{title:e.title,visible:e.taskAllocationRuleVisible,width:"600px","close-on-click-modal":!1},on:{"update:visible":function(t){e.taskAllocationRuleVisible=t}}},[i("AddOrEditTaskAllocationRule",{attrs:{data:e.rowData,"doctor-user-list":e.DoctorUserList},on:{close:function(){e.taskAllocationRuleVisible=!1},getList:e.openAllocationConfigVisible}})],1):e._e(),e._v(" "),e.AutoAlloctionVisible?i("el-dialog",{attrs:{title:"分配阅片人",visible:e.AutoAlloctionVisible,"close-on-click-modal":!1,fullscreen:!0,"append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.AutoAlloctionVisible=t}}},[i("el-divider",{attrs:{"content-position":"left"}},[e._v("分配规则")]),e._v(" "),i("el-descriptions",{staticClass:"margin-top",attrs:{column:3,border:""}},[i("el-descriptions-item",[i("template",{slot:"label"},[e._v("\n 分配对象\n ")]),e._v("\n "+e._s(e.$fd("TaskAllocateObj",e.TrialTaskInfo.TaskAllocateObjEnum))+"\n ")],2),e._v(" "),i("el-descriptions-item",[i("template",{slot:"label"},[e._v("\n 备选医生\n ")]),e._v(" "),i("el-tag",[e._v(e._s(e.TaskAllocationRuleList.length?e.TaskAllocationRuleList.map((function(e){return e.UserName+"("+e.FullName+")"})).toString().replaceAll(",","/"):"无"))])],2)],1),e._v(" "),i("el-divider",{attrs:{"content-position":"left"}},[e._v("受试者阅片人最新关系表")]),e._v(" "),i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:consistencyCheck:table:siteId")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:"",filterable:""},model:{value:e.taskSearchData.SiteId,callback:function(t){e.$set(e.taskSearchData,"SiteId",t)},expression:"taskSearchData.SiteId"}},e._l(e.siteOptions,(function(e,t){return i("el-option",{key:"taskSearchData"+t,attrs:{label:e.TrialSiteCode,value:e.SiteId}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:consistencyCheck:table:subjectId")}},[i("el-input",{staticStyle:{width:"100px"},model:{value:e.taskSearchData.SubjectCode,callback:function(t){e.$set(e.taskSearchData,"SubjectCode",t)},expression:"taskSearchData.SubjectCode"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"阅片人"}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.taskSearchData.DoctorUserId,callback:function(t){e.$set(e.taskSearchData,"DoctorUserId",t)},expression:"taskSearchData.DoctorUserId"}},e._l(e.DoctorUserList,(function(e){return i("el-option",{key:"taskSearchData"+e.DoctorUserId,attrs:{value:e.DoctorUserId,label:e.UserName+"("+e.FullName+")"}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"是否已分配阅片人"}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.taskSearchData.IsHaveAssigned,callback:function(t){e.$set(e.taskSearchData,"IsHaveAssigned",t)},expression:"taskSearchData.IsHaveAssigned"}},e._l(e.$d.YesOrNo,(function(e){return i("el-option",{key:"taskSearchData.IsHaveAssigned"+e.value,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"是否生效"}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.taskSearchData.IsAssignConfirmed,callback:function(t){e.$set(e.taskSearchData,"IsAssignConfirmed",t)},expression:"taskSearchData.IsAssignConfirmed"}},e._l(e.$d.YesOrNo,(function(e){return i("el-option",{key:"taskSearchData.IsHaveAssigned"+e.value,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.openAutoAlloction}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset2}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",loading:e.btnLoading},on:{click:e.autoSubjectAssignDoctor}},[e._v("\n 自动分配\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",loading:e.btnLoading},on:{click:function(t){return e.manualAllocation()}}},[e._v("\n 手动分配\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",loading:e.btnLoading},on:{click:function(t){return e.cancelSubjectAssignDoctor()}}},[e._v("\n 解除分配\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",loading:e.btnLoading},on:{click:function(t){return e.manualAssignDoctorApplyTask(null)}}},[e._v("\n 生效\n ")])],1)],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:100},expression:"{bottomOffset:100}"}],attrs:{border:"",data:e.SubjectAssignList,stripe:""},on:{"selection-change":e.handleSubjectAssignListSelectChange}},[i("el-table-column",{attrs:{type:"selection",align:"left",width:"45"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialSiteCode",label:"中心编号",width:"140","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode",label:"受试者编号",width:"140","show-overflow-tooltip":""}}),e._v(" "),1===e.ReadingType?i("el-table-column",{attrs:{prop:"SubjectCode",label:"阅片人","min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.DoctorUserList.length?i("div",{staticStyle:{display:"flex","justify-content":"left","align-items":"center"}},e._l(t.row.DoctorUserList,(function(t){return i("div",{key:"SubjectCode"+t.UserName,staticStyle:{display:"flex","justify-content":"center","align-items":"center","margin-right":"5px"}},[i("el-tag",[e._v("\n "+e._s(t.UserName+"("+t.FullName+")")+"\n ")])],1)})),0):e._e()]}}],null,!1,4042622574)}):e._e(),e._v(" "),2===e.ReadingType?i("el-table-column",{attrs:{prop:"SubjectCode",label:"阅片人(组001)","min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.DoctorUserList.length?i("div",{staticStyle:{display:"flex","justify-content":"left","align-items":"center"}},[i("el-tag",[e._v("\n "+e._s(t.row.DoctorUserList[0].UserName+"("+t.row.DoctorUserList[0].FullName+")")+"\n ")])],1):e._e()]}}],null,!1,479975459)}):e._e(),e._v(" "),2===e.ReadingType?i("el-table-column",{attrs:{prop:"SubjectCode",label:"阅片人(组002)","min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.DoctorUserList.length?i("div",{staticStyle:{display:"flex","justify-content":"left","align-items":"center"}},[i("el-tag",[e._v("\n "+e._s(t.row.DoctorUserList[1].UserName+"("+t.row.DoctorUserList[1].FullName+")")+"\n ")])],1):e._e()]}}],null,!1,979808675)}):e._e(),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode",label:"是否分配阅片人","min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsAssignedDoctorUser?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsAssignedDoctorUser)))]):i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsAssignedDoctorUser)))])]}}],null,!1,76085216)}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode",label:"是否生效","min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsConfirmed?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsConfirmed)))]):i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsConfirmed)))])]}}],null,!1,1672716963)}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode",label:"绑定时间",width:"240","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.DoctorUserList.length?t.row.DoctorUserList[0].AssignTime:"")+"\n ")]}}],null,!1,1889675366)}),e._v(" "),i("el-table-column",{attrs:{prop:"",label:"操作",width:"180","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{circle:"",icon:"el-icon-connection",title:"应用"},on:{click:function(i){return e.manualAssignDoctorApplyTask(t.row)}}}),e._v(" "),i("el-button",{attrs:{circle:"",icon:"el-icon-close",title:"清空阅片人"},on:{click:function(i){return e.cancelSubjectAssignDoctor(t.row)}}}),e._v(" "),i("el-button",{attrs:{circle:"",icon:"el-icon-refresh-right",title:"手动分配"},on:{click:function(i){return e.manualAllocation(t.row)}}})]}}],null,!1,1674162749)})],1),e._v(" "),i("pagination",{staticClass:"page",staticStyle:{"text-align":"right","margin-top":"10px"},attrs:{total:e.SubjectAssignListTotal,page:e.taskSearchData.PageIndex,limit:e.taskSearchData.PageSize},on:{"update:page":function(t){return e.$set(e.taskSearchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.taskSearchData,"PageSize",t)},pagination:e.openAutoAlloction}})],1):e._e(),e._v(" "),e.manualAllocationVisible?i("el-dialog",{attrs:{id:"TaskAllocationRuleList",title:"选择阅片人",visible:e.manualAllocationVisible,width:"1000px","close-on-click-modal":!1},on:{"update:visible":function(t){e.manualAllocationVisible=t}}},[i("div",[i("div",{staticStyle:{"line-height":"32px"}},[e._v("\n 当前项目阅片模式为:"+e._s(e.$fd("ReadingMethod",e.ReadingType))+"\n ")]),e._v(" "),2===e.ReadingType?i("div",{staticStyle:{"line-height":"32px","margin-bottom":"10px"}},[e._v("\n 当前选择阅片人为:"),e.TaskAllocationRuleSelectList.length?i("el-tag",[e._v("组001"+e._s(e.TaskAllocationRuleSelectList[0].UserName.toString()+"("+e.TaskAllocationRuleSelectList[0].FullName+")"))]):e._e(),e._v(" "),e.TaskAllocationRuleSelectList.length>1?i("el-tag",[e._v("组002"+e._s(e.TaskAllocationRuleSelectList[1].UserName.toString()+"("+e.TaskAllocationRuleSelectList[1].FullName+")"))]):e._e()],1):e._e(),e._v(" "),i("div",{staticStyle:{"font-size":"12px",color:"#f00","margin-bottom":"20px"}},[e._v("\n 双重阅片模式下,阅片人根据勾选顺序进行分组\n ")]),e._v(" "),1===e.ReadingType?i("div",{staticStyle:{"line-height":"32px","margin-bottom":"10px"}},[e._v("\n 当前选择阅片人为:"),e.TaskAllocationRuleSelectList.length?i("el-tag",[e._v(e._s(e.TaskAllocationRuleSelectList.map((function(e){return e.UserName+"("+e.FullName+")"})).toString()))]):e._e()],1):e._e()]),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{border:"",data:e.TaskAllocationRuleList,stripe:""},on:{"selection-change":e.handleTaskAllocationRuleListSelectChange}},[i("el-table-column",{attrs:{selectable:e.selectable,type:"selection",align:"left",width:"45"}}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"阅片人","min-width":"180","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.UserName+"("+t.row.FullName+")")+"\n ")]}}],null,!1,228767710)}),e._v(" "),i("el-table-column",{attrs:{prop:"PlanReadingRatio",label:"计划受试者比例","min-width":"130","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.PlanReadingRatio?t.row.PlanReadingRatio+"%":"0%")+"\n ")]}}],null,!1,3338179)}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"当前受试者比例","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.ApplyedTotalSubjectCount>0?(100*t.row.SelfApplyedSubjectCount/t.row.ApplyedTotalSubjectCount).toFixed(2)+"%":"0%")+"\n ")]}}],null,!1,4239279070)}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"已分配任务比例","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.ApplyedTotalTaskCount>0?(100*t.row.SelfApplyedTaskCount/t.row.ApplyedTotalTaskCount).toFixed(2)+"%":"0%")+"\n ")]}}],null,!1,617846255)}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"已分配总任务量","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.SelfApplyedTaskCount)+"\n ")]}}],null,!1,1142938874)}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"待处理任务量","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.SelfUndoTaskCount)+"\n ")]}}],null,!1,934377311)}),e._v(" "),i("el-table-column",{attrs:{prop:"IsEnable",label:"状态","min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsEnable?i("el-tag",[e._v(e._s(e.$fd("IsEnable",t.row.IsEnable)))]):i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("IsEnable",t.row.IsEnable)))])]}}],null,!1,805216297)}),e._v(" "),i("el-table-column",{attrs:{prop:"Note",label:"备注","min-width":"100","show-overflow-tooltip":""}})],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){e.manualAllocationVisible=!1,e.TaskAllocationRuleSelectList=[]}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleSaveTaskAllocationRuleSelectList}},[e._v("\n 分配\n ")])],1)],1):e._e(),e._v(" "),e.readVisible?i("el-dialog",{attrs:{title:"分配",visible:e.readVisible,width:"360px","close-on-click-modal":!1},on:{"update:visible":function(t){e.readVisible=t}}},[i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"readDataForm",attrs:{model:e.rowData,size:"small",rules:e.rules,"label-width":"90px"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:"阅片人",prop:"DoctorUserId"}},[i("el-select",{attrs:{clearable:""},model:{value:e.rowData.DoctorUserId,callback:function(t){e.$set(e.rowData,"DoctorUserId",t)},expression:"rowData.DoctorUserId"}},e._l(e.DoctorUserList,(function(e){return i("el-option",{key:e.DoctorUserId,attrs:{label:e.UserName+"("+e.FullName+")",value:e.DoctorUserId}})})),1)],1)],1)]),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){e.readVisible=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.assignSubjectTaskToDoctorSave}},[e._v("\n 保存\n ")])],1)],1):e._e(),e._v(" "),e.applyVisible?i("el-dialog",{attrs:{title:"分配",visible:e.applyVisible,width:"360px","close-on-click-modal":!1},on:{"update:visible":function(t){e.applyVisible=t}}},[i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"readDataForm",attrs:{model:e.rowData,size:"small",rules:e.rules,"label-width":"90px"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:"阅片人",prop:"DoctorUserId"}},[i("el-select",{attrs:{clearable:""},model:{value:e.rowData.DoctorUserId,callback:function(t){e.$set(e.rowData,"DoctorUserId",t)},expression:"rowData.DoctorUserId"}},e._l(e.DoctorUserList,(function(e){return i("el-option",{key:e.DoctorUserId,attrs:{label:e.UserName+"("+e.FullName+")",value:e.DoctorUserId}})})),1)],1)],1)]),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){e.readVisible=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.assignSubjectTaskToDoctorSave}},[e._v("\n 保存\n ")])],1)],1):e._e(),e._v(" "),e.WaitApplyVisible?i("el-dialog",{attrs:{title:"确定生效吗?",visible:e.WaitApplyVisible,width:"1400px","close-on-click-modal":!1},on:{"update:visible":function(t){e.WaitApplyVisible=t}}},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{border:"",data:e.WaitApplyList,stripe:""}},[i("el-table-column",{attrs:{prop:"UserName",label:"阅片人","min-width":"180","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.UserName+"("+t.row.FullName+")")+"\n ")]}}],null,!1,228767710)}),e._v(" "),i("el-table-column",{attrs:{prop:"PlanReadingRatio",label:"计划受试者比例","min-width":"130","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.PlanReadingRatio?t.row.PlanReadingRatio+"%":"0%")+"\n ")]}}],null,!1,3338179)}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"当前受试者比例","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.ApplyedTotalSubjectCount>0?(100*t.row.SelfApplyedSubjectCount/t.row.ApplyedTotalSubjectCount).toFixed(2)+"%":"0%")+"\n ")]}}],null,!1,4239279070)}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"生效后受试者比例","min-width":"140","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{staticStyle:{color:"#f66"}},[e._v("\n "+e._s(t.row.ApplyedTotalSubjectCount+t.row.WaitApplyTotalSubjectCount>0?(100*(t.row.SelfApplyedSubjectCount+t.row.WaitApplySelfSubjectCount)/(t.row.ApplyedTotalSubjectCount+t.row.WaitApplyTotalSubjectCount)).toFixed(2)+"%":"0%")+"\n ")])]}}],null,!1,876227081)}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"已分配任务比例","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.ApplyedTotalTaskCount>0?(100*t.row.SelfApplyedTaskCount/t.row.ApplyedTotalTaskCount).toFixed(2)+"%":"0%")+"\n ")]}}],null,!1,617846255)}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"生效后任务比例","min-width":"140","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{staticStyle:{color:"#f66"}},[e._v("\n "+e._s(t.row.ApplyedTotalTaskCount+t.row.WaitApplyTotalTaskCount>0?(100*(t.row.SelfApplyedTaskCount+t.row.WaitApplySelfTaskCount)/(t.row.ApplyedTotalTaskCount+t.row.WaitApplyTotalTaskCount)).toFixed(2)+"%":"0%")+"\n ")])]}}],null,!1,2167506441)}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"已分配总任务量","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.SelfApplyedTaskCount)+"\n ")]}}],null,!1,1142938874)}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"生效后总任务量","min-width":"140","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{staticStyle:{color:"#f66"}},[e._v(e._s(t.row.SelfApplyedTaskCount+t.row.WaitApplySelfTaskCount))])]}}],null,!1,261709692)}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"待处理任务量","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.SelfUndoTaskCount)+"\n ")]}}],null,!1,934377311)}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"生效后待处理任务量","min-width":"150","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{staticStyle:{color:"#f66"}},[e._v(" "+e._s(t.row.SelfUndoTaskCount+t.row.WaitApplySelfTaskCount))])]}}],null,!1,518290002)})],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){e.WaitApplyVisible=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.manualAssignDoctorApplyTaskSave}},[e._v("\n 确定\n ")])],1)],1):e._e()],1)],2)},a=[],r=(i("96cf"),i("3b8d")),o=(i("7514"),i("db72")),s=(i("c5f6"),i("3e42")),l=i("958c"),c=i("853a"),u=i("6071"),d=i("333d"),f=function(){return{PageIndex:1,PageSize:20,Asc:!0,SortField:"",TrialId:null,SiteId:null,SubjectId:null,SubjectCode:null,IsUrgent:null,TaskName:null,TaskState:null,DoctorUserId:null,ReadingCategory:null,TaskAllocationState:null,BeginAllocateDate:null,EndAllocateDate:null,TrialReadingCriterionId:null}},h=function(){return{PageIndex:1,PageSize:20,Asc:!0,SortField:"",TrialId:null,SiteId:null,SubjectId:null,SubjectCode:null,DoctorUserId:null,IsHaveAssigned:null,IsAssignConfirmed:null,TrialReadingCriterionId:null}},p={name:"TrialsNotice",components:{BaseContainer:u["default"],Pagination:d["default"],AddOrEditTaskAllocationRule:c["default"]},props:{allocationReadingCategory:{type:Number},allocationSubjectCode:{type:String},trialReadingCriterionId:{type:Number}},data:function(){return{trialCriterionList:[],searchData:f(),taskSearchData:h(),maxLength:0,list:[],siteOptions:[],total:0,SubjectAssignListTotal:0,loading:!1,AllocationConfigVisible:!1,taskAllocationRuleVisible:!1,AutoAlloctionVisible:!1,WaitApplyVisible:!1,applyVisible:!1,manualAllocationVisible:!1,trialId:this.$route.query.trialId,currentData:{},param:{},DoctorUserList:[],TaskAllocationRuleList:[],btnLoading:!1,value:!0,value1:!0,TrialTaskInfo:{TrialId:null,TaskAllocateObjEnum:0,FollowVisitAutoAssignDefaultState:0,FollowGlobalVisitAutoAssignDefaultState:0,TaskAllocateDefaultState:1,IsFollowVisitAutoAssign:!0,IsFollowGlobalVisitAutoAssign:!0},ReadingType:null,rules:{DoctorUserId:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}]},title:"",rowData:{},ApplyTaskInfo:{},timeList:[],WaitApplyList:[],SubjectAssignList:[],SubjectAssignSelectList:[],TaskAllocationRuleSelectList:[],readVisible:!1,TaskOptType:null,OtherInfo:null}},mounted:function(){this.searchData.ReadingCategory=this.allocationReadingCategory,this.searchData.SubjectCode=this.allocationSubjectCode,this.searchData.TrialReadingCriterionId=this.trialReadingCriterionId,this.getDoctorUserSelectList(),this.getSite(),this.getList(),this.getTrialCriterionList()},methods:{getTrialCriterionList:function(){var e=this;Object(l["U"])(this.trialId).then((function(t){e.trialCriterionList=t.Result})).catch((function(){}))},assignSubjectTaskToDoctor:function(e,t){var i=this;this.rowData=Object(o["a"])({},e),this.rowData.TaskOptType=t,1===t||2===t?this.readVisible=!0:3===t?this.$confirm("是否确定分配").then((function(){i.btnLoading=!0,i.loading=!0;var e=Object.assign({},i.rowData);Object(l["h"])(e).then((function(e){i.$message.success("保存成功"),i.btnLoading=!1,i.loading=!1,i.readVisible=!1,i.getList()})).catch((function(){i.btnLoading=!1,i.loading=!1}))})):4===t&&this.$confirm("是否确定取消分配").then((function(){i.btnLoading=!0,i.loading=!0;var e=Object.assign({},i.rowData);Object(l["h"])(e).then((function(e){i.$message.success("保存成功"),i.btnLoading=!1,i.loading=!1,i.readVisible=!1,i.getList()})).catch((function(){i.btnLoading=!1,i.loading=!1}))}))},assignSubjectTaskToDoctorSave:function(){var e=this;this.$refs.readDataForm.validate((function(t){if(t){e.btnLoading=!0,e.loading=!0;var i=Object.assign({},e.rowData);Object(l["h"])(i).then((function(t){e.$message.success("保存成功"),e.btnLoading=!1,e.loading=!1,e.readVisible=!1,e.getList()})).catch((function(){e.btnLoading=!1,e.loading=!1}))}}))},manualAssignDoctorApplyTaskSave:function(){var e=this;this.loading=!0,this.btnLoading=!0,Object(l["W"])(this.ApplyTaskInfo).then((function(t){e.loading=!1,e.btnLoading=!1,e.$message.success("生效成功"),e.WaitApplyVisible=!1,e.getList(),e.openAutoAlloction()})).catch((function(){e.loading=!1,e.btnLoading=!1}))},manualAssignDoctorApplyTask:function(e){var t=this,i={TrialId:this.trialId,SubjectIdList:Object.assign([],this.SubjectAssignSelectList.map((function(e){return e.SubjectId})))};if(this.ApplyTaskInfo={TrialId:this.trialId,SubjectDoctorUserList:Object.assign([],this.SubjectAssignSelectList.map((function(e){return e.DoctorUserIdArmList=e.DoctorUserList,e})))},e){i.SubjectIdList=[e.SubjectId];var n=Object.assign({},e);n.DoctorUserIdArmList=n.DoctorUserList,this.ApplyTaskInfo=Object.assign({},e),delete this.ApplyTaskInfo.DoctorUserList,delete this.ApplyTaskInfo.DoctorUserIdList,this.ApplyTaskInfo.SubjectDoctorUserList=[n]}this.loading=!0,this.btnLoading=!0,Object(l["M"])(i).then((function(e){0!==e.Result.length?(t.WaitApplyList=e.Result,t.WaitApplyVisible=!0,t.loading=!1,t.btnLoading=!1):t.$message.error("该项目没有有效阅片人")})).catch((function(){t.loading=!1,t.btnLoading=!1}))},autoSubjectAssignDoctor:function(){var e=this;this.$confirm("确定执行自动分配?").then((function(){e.loading=!0,e.btnLoading=!0,Object(l["i"])({TrialId:e.trialId}).then((function(t){e.loading=!1,e.btnLoading=!1,e.$message.success("自动分配成功"),e.getList(),e.openAutoAlloction()})).catch((function(){e.loading=!1,e.btnLoading=!1}))}))},handleSaveTaskAllocationRuleSelectList:function(){var e,t=this;if(0!==this.TaskAllocationRuleSelectList.length)if(e=2===this.ReadingType?2:1,this.TaskAllocationRuleSelectList.length===e){this.loading=!0,this.btnLoading=!0;var i={DoctorUserIdArmList:this.TaskAllocationRuleSelectList.map((function(e,i){return{DoctorUserId:e.DoctorUserId,ArmEnum:1===t.ReadingType?1:i+1}})),SubjectIdList:this.SubjectAssignSelectList.map((function(e){return e.SubjectId})),TrialId:this.trialId,IsReAssign:!0};Object(l["g"])(i).then((function(e){t.loading=!1,t.btnLoading=!1,t.openAutoAlloction(),t.TaskAllocationRuleSelectList=[],t.SubjectAssignSelectList=[],t.getDoctorUserSelectList(),t.$message.success("分配成功"),t.manualAllocationVisible=!1})).catch((function(){t.loading=!1,t.btnLoading=!1}))}else this.$message.error("当前阅片模式为".concat(this.$fd("ReadingMethod",this.ReadingType),",请选择正确阅片人数量"));else this.$message.error("请选择阅片人")},selectable:function(e){var t;return t=2===this.ReadingType?2:1,!(this.TaskAllocationRuleSelectList.length===t&&!this.TaskAllocationRuleSelectList.find((function(t){return t.UserName===e.UserName})))},cancelSubjectAssignDoctor:function(e){var t=this;e?this.$confirm("确定要清空该受试者的阅片人吗?").then((function(){var i={SubjectIdList:[e.SubjectId],TrialId:t.trialId};t.loading=!0,t.btnLoading=!0,Object(l["k"])(i).then((function(e){t.$message.success("清空成功"),t.loading=!1,t.btnLoading=!1,t.openAutoAlloction()})).catch((function(e){t.loading=!1,t.btnLoading=!1}))})):0!==this.SubjectAssignSelectList.length?this.$confirm("确定要清空该受试者的阅片人吗?").then((function(){var e={SubjectIdList:t.SubjectAssignSelectList.map((function(e){return e.SubjectId})),TrialId:t.trialId};t.loading=!0,t.btnLoading=!0,Object(l["k"])(e).then((function(e){t.$message.success("清空成功"),t.loading=!1,t.btnLoading=!1,t.openAutoAlloction()})).catch((function(e){t.loading=!1,t.btnLoading=!1}))})):this.$message.error("请勾选要清空阅片人的受试者")},manualAllocation:function(e){e&&(this.SubjectAssignSelectList=[e]),0!==this.SubjectAssignSelectList.length?this.manualAllocationVisible=!0:this.$message.error("请勾选要分配的受试者")},handleTaskAllocationRuleListSelectChange:function(e){this.TaskAllocationRuleSelectList=e},handleSubjectAssignListSelectChange:function(e){this.SubjectAssignSelectList=e},changeTimeList:function(){this.timeList?(this.searchData.BeginAllocateDate=this.timeList[0],this.searchData.EndAllocateDate=this.timeList[1]):(this.searchData.BeginAllocateDate=null,this.searchData.EndAllocateDate=null)},handleCancel:function(){this.AllocationConfigVisible=!1},handleSave:function(){var e=this;this.btnLoading=!0,this.loading=!0;var t=Object.assign({},this.TrialTaskInfo);t.TrialId=this.$route.query.trialId,Object(l["n"])(t).then((function(t){e.btnLoading=!1,e.loading=!1,e.AllocationConfigVisible=!1,e.getList(),e.$message.success("保存成功")})).catch((function(){e.btnLoading=!1,e.loading=!1}))},handleDelete:function(e){var t=this;this.$confirm("确定要删除".concat(e.UserName,"(").concat(e.FullName,")的任务分配规则?"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.loading=!0,Object(l["r"])(e.Id,!1).then((function(e){t.loading=!1,t.$message.success("删除成功"),t.openAllocationConfigVisible()})).catch((function(){t.loading=!1}))}))},addOrEdit:function(e){e?(this.rowData=Object(o["a"])({},e),this.title="编辑"):(this.rowData={},this.title="新增"),this.taskAllocationRuleVisible=!0},openAllocationConfigVisible:function(){var e=this;this.loading=!0,Object(l["R"])({TrialId:this.$route.query.trialId}).then((function(t){e.loading=!1,e.TaskAllocationRuleList=t.Result,e.TrialTaskInfo=Object.assign({},t.OtherInfo),e.AllocationConfigVisible=!0,e.taskAllocationRuleVisible=!1})).catch((function(){e.loading=!1}))},openAutoAlloction:function(){var e=this;this.loading=!0,Object(l["R"])({TrialId:this.$route.query.trialId}).then(function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(i){var n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.taskSearchData.TrialId=e.$route.query.trialId,n=Object.assign({},e.taskSearchData),t.next=4,Object(l["O"])(n);case 4:a=t.sent,e.SubjectAssignList=a.Result.CurrentPageData,e.SubjectAssignListTotal=a.Result.TotalCount,e.loading=!1,e.TaskAllocationRuleList=i.Result,e.TrialTaskInfo=Object.assign({},i.OtherInfo),e.AutoAlloctionVisible=!0;case 11:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(){e.loading=!1}))},getDoctorUserSelectList:function(){var e=this;Object(l["A"])(this.$route.query.trialId).then((function(t){e.DoctorUserList=t.Result,e.DoctorUserList.length>0&&(e.ReadingType=e.DoctorUserList[0].ReadingType)}))},getList:function(){var e=this;this.searchData.TrialId=this.$route.query.trialId,this.loading=!0,Object(s["ke"])(this.searchData).then((function(t){e.loading=!1,e.OtherInfo=t.OtherInfo,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=f(),this.getList()},handleReset2:function(){this.taskSearchData=h(),this.openAutoAlloction()},getSite:function(){var e=this;Object(s["Zd"])(this.trialId).then((function(t){e.siteOptions=t.Result}))},handleSortChange:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()}}},m=p,g=(i("811f"),i("2877")),v=Object(g["a"])(m,n,a,!1,null,"1ce9d17e",null);t["default"]=v.exports},"3cd6":function(e,t,i){var n=i("6d8b"),a=i("48a9"),r=i("607d"),o=i("72b6"),s=i("2306"),l=i("3842"),c=i("ef6a"),u=i("cbb0"),d=i("e0d3"),f=l.linearMap,h=n.each,p=Math.min,m=Math.max,g=12,v=6,b=o.extend({type:"visualMap.continuous",init:function(){b.superApply(this,"init",arguments),this._shapes={},this._dataInterval=[],this._handleEnds=[],this._orient,this._useHandle,this._hoverLinkDataIndices=[],this._dragging,this._hovering},doRender:function(e,t,i,n){n&&"selectDataRange"===n.type&&n.from===this.uid||this._buildView()},_buildView:function(){this.group.removeAll();var e=this.visualMapModel,t=this.group;this._orient=e.get("orient"),this._useHandle=e.get("calculable"),this._resetInterval(),this._renderBar(t);var i=e.get("text");this._renderEndsText(t,i,0),this._renderEndsText(t,i,1),this._updateView(!0),this.renderBackground(t),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(t)},_renderEndsText:function(e,t,i){if(t){var n=t[1-i];n=null!=n?n+"":"";var a=this.visualMapModel,r=a.get("textGap"),o=a.itemSize,l=this._shapes.barGroup,c=this._applyTransform([o[0]/2,0===i?-r:o[1]+r],l),u=this._applyTransform(0===i?"bottom":"top",l),d=this._orient,f=this.visualMapModel.textStyleModel;this.group.add(new s.Text({style:{x:c[0],y:c[1],textVerticalAlign:"horizontal"===d?"middle":u,textAlign:"horizontal"===d?u:"center",text:n,textFont:f.getFont(),textFill:f.getTextColor()}}))}},_renderBar:function(e){var t=this.visualMapModel,i=this._shapes,a=t.itemSize,r=this._orient,o=this._useHandle,s=u.getItemAlign(t,this.api,a),l=i.barGroup=this._createBarGroup(s);l.add(i.outOfRange=y()),l.add(i.inRange=y(null,o?S(this._orient):null,n.bind(this._dragHandle,this,"all",!1),n.bind(this._dragHandle,this,"all",!0)));var c=t.textStyleModel.getTextRect("国"),d=m(c.width,c.height);o&&(i.handleThumbs=[],i.handleLabels=[],i.handleLabelPoints=[],this._createHandle(l,0,a,d,r,s),this._createHandle(l,1,a,d,r,s)),this._createIndicator(l,a,d,r),e.add(l)},_createHandle:function(e,t,i,a,o){var l=n.bind(this._dragHandle,this,t,!1),c=n.bind(this._dragHandle,this,t,!0),u=y(w(t,a),S(this._orient),l,c);u.position[0]=i[0],e.add(u);var d=this.visualMapModel.textStyleModel,f=new s.Text({draggable:!0,drift:l,onmousemove:function(e){r.stop(e.event)},ondragend:c,style:{x:0,y:0,text:"",textFont:d.getFont(),textFill:d.getTextColor()}});this.group.add(f);var h=["horizontal"===o?a/2:1.5*a,"horizontal"===o?0===t?-1.5*a:1.5*a:0===t?-a/2:a/2],p=this._shapes;p.handleThumbs[t]=u,p.handleLabelPoints[t]=h,p.handleLabels[t]=f},_createIndicator:function(e,t,i,n){var a=y([[0,0]],"move");a.position[0]=t[0],a.attr({invisible:!0,silent:!0}),e.add(a);var r=this.visualMapModel.textStyleModel,o=new s.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textFont:r.getFont(),textFill:r.getTextColor()}});this.group.add(o);var l=["horizontal"===n?i/2:v+3,0],c=this._shapes;c.indicator=a,c.indicatorLabel=o,c.indicatorLabelPoint=l},_dragHandle:function(e,t,i,n){if(this._useHandle){if(this._dragging=!t,!t){var a=this._applyTransform([i,n],this._shapes.barGroup,!0);this._updateInterval(e,a[1]),this._updateView()}t===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),t?!this._hovering&&this._clearHoverLinkToSeries():x(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},_resetInterval:function(){var e=this.visualMapModel,t=this._dataInterval=e.getSelected(),i=e.getExtent(),n=[0,e.itemSize[1]];this._handleEnds=[f(t[0],i,n,!0),f(t[1],i,n,!0)]},_updateInterval:function(e,t){t=t||0;var i=this.visualMapModel,n=this._handleEnds,a=[0,i.itemSize[1]];c(t,n,a,e,0);var r=i.getExtent();this._dataInterval=[f(n[0],a,r,!0),f(n[1],a,r,!0)]},_updateView:function(e){var t=this.visualMapModel,i=t.getExtent(),n=this._shapes,a=[0,t.itemSize[1]],r=e?a:this._handleEnds,o=this._createBarVisual(this._dataInterval,i,r,"inRange"),s=this._createBarVisual(i,i,a,"outOfRange");n.inRange.setStyle({fill:o.barColor,opacity:o.opacity}).setShape("points",o.barPoints),n.outOfRange.setStyle({fill:s.barColor,opacity:s.opacity}).setShape("points",s.barPoints),this._updateHandle(r,o)},_createBarVisual:function(e,t,i,n){var r={forceState:n,convertOpacityToAlpha:!0},o=this._makeColorGradient(e,r),s=[this.getControllerVisual(e[0],"symbolSize",r),this.getControllerVisual(e[1],"symbolSize",r)],l=this._createBarPoints(i,s);return{barColor:new a(0,0,0,1,o),barPoints:l,handlesColor:[o[0].color,o[o.length-1].color]}},_makeColorGradient:function(e,t){var i=100,n=[],a=(e[1]-e[0])/i;n.push({color:this.getControllerVisual(e[0],"color",t),offset:0});for(var r=1;r<i;r++){var o=e[0]+a*r;if(o>e[1])break;n.push({color:this.getControllerVisual(o,"color",t),offset:r/i})}return n.push({color:this.getControllerVisual(e[1],"color",t),offset:1}),n},_createBarPoints:function(e,t){var i=this.visualMapModel.itemSize;return[[i[0]-t[0],e[0]],[i[0],e[0]],[i[0],e[1]],[i[0]-t[1],e[1]]]},_createBarGroup:function(e){var t=this._orient,i=this.visualMapModel.get("inverse");return new s.Group("horizontal"!==t||i?"horizontal"===t&&i?{scale:"bottom"===e?[-1,1]:[1,1],rotation:-Math.PI/2}:"vertical"!==t||i?{scale:"left"===e?[1,1]:[-1,1]}:{scale:"left"===e?[1,-1]:[-1,-1]}:{scale:"bottom"===e?[1,1]:[-1,1],rotation:Math.PI/2})},_updateHandle:function(e,t){if(this._useHandle){var i=this._shapes,n=this.visualMapModel,a=i.handleThumbs,r=i.handleLabels;h([0,1],(function(o){var l=a[o];l.setStyle("fill",t.handlesColor[o]),l.position[1]=e[o];var c=s.applyTransform(i.handleLabelPoints[o],s.getTransform(l,this.group));r[o].setStyle({x:c[0],y:c[1],text:n.formatValueText(this._dataInterval[o]),textVerticalAlign:"middle",textAlign:this._applyTransform("horizontal"===this._orient?0===o?"bottom":"top":"left",i.barGroup)})}),this)}},_showIndicator:function(e,t,i,n){var a=this.visualMapModel,r=a.getExtent(),o=a.itemSize,l=[0,o[1]],c=f(e,r,l,!0),u=this._shapes,d=u.indicator;if(d){d.position[1]=c,d.attr("invisible",!1),d.setShape("points",_(!!i,n,c,o[1]));var h={convertOpacityToAlpha:!0},p=this.getControllerVisual(e,"color",h);d.setStyle("fill",p);var m=s.applyTransform(u.indicatorLabelPoint,s.getTransform(d,this.group)),g=u.indicatorLabel;g.attr("invisible",!1);var v=this._applyTransform("left",u.barGroup),b=this._orient;g.setStyle({text:(i||"")+a.formatValueText(t),textVerticalAlign:"horizontal"===b?v:"middle",textAlign:"horizontal"===b?"center":v,x:m[0],y:m[1]})}},_enableHoverLinkToSeries:function(){var e=this;this._shapes.barGroup.on("mousemove",(function(t){if(e._hovering=!0,!e._dragging){var i=e.visualMapModel.itemSize,n=e._applyTransform([t.offsetX,t.offsetY],e._shapes.barGroup,!0,!0);n[1]=p(m(0,n[1]),i[1]),e._doHoverLinkToSeries(n[1],0<=n[0]&&n[0]<=i[0])}})).on("mouseout",(function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()}))},_enableHoverLinkFromSeries:function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),e.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},_doHoverLinkToSeries:function(e,t){var i=this.visualMapModel,n=i.itemSize;if(i.option.hoverLink){var a=[0,n[1]],r=i.getExtent();e=p(m(a[0],e),a[1]);var o=I(i,r,a),s=[e-o,e+o],l=f(e,a,r,!0),c=[f(s[0],a,r,!0),f(s[1],a,r,!0)];s[0]<a[0]&&(c[0]=-1/0),s[1]>a[1]&&(c[1]=1/0),t&&(c[0]===-1/0?this._showIndicator(l,c[1],"< ",o):c[1]===1/0?this._showIndicator(l,c[0],"> ",o):this._showIndicator(l,l,"≈ ",o));var h=this._hoverLinkDataIndices,g=[];(t||x(i))&&(g=this._hoverLinkDataIndices=i.findTargetDataIndices(c));var v=d.compressBatches(h,g);this._dispatchHighDown("downplay",u.makeHighDownBatch(v[0],i)),this._dispatchHighDown("highlight",u.makeHighDownBatch(v[1],i))}},_hoverLinkFromSeriesMouseOver:function(e){var t=e.target,i=this.visualMapModel;if(t&&null!=t.dataIndex){var n=this.ecModel.getSeriesByIndex(t.seriesIndex);if(i.isTargetSeries(n)){var a=n.getData(t.dataType),r=a.get(i.getDataDimension(a),t.dataIndex,!0);isNaN(r)||this._showIndicator(r,r)}}},_hideIndicator:function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0)},_clearHoverLinkToSeries:function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",u.makeHighDownBatch(e,this.visualMapModel)),e.length=0},_clearHoverLinkFromSeries:function(){this._hideIndicator();var e=this.api.getZr();e.off("mouseover",this._hoverLinkFromSeriesMouseOver),e.off("mouseout",this._hideIndicator)},_applyTransform:function(e,t,i,a){var r=s.getTransform(t,a?null:this.group);return s[n.isArray(e)?"applyTransform":"transformDirection"](e,r,i)},_dispatchHighDown:function(e,t){t&&t.length&&this.api.dispatchAction({type:e,batch:t})},dispose:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},remove:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()}});function y(e,t,i,n){return new s.Polygon({shape:{points:e},draggable:!!i,cursor:t,drift:i,onmousemove:function(e){r.stop(e.event)},ondragend:n})}function w(e,t){return 0===e?[[0,0],[t,0],[t,-t]]:[[0,0],[t,0],[t,t]]}function _(e,t,i,n){return e?[[0,-p(t,m(i,0))],[v,0],[0,p(t,m(n-i,0))]]:[[0,0],[5,-5],[5,5]]}function I(e,t,i){var n=g/2,a=e.get("hoverLinkDataSize");return a&&(n=f(a,t,i,!0)/2),n}function x(e){var t=e.get("hoverLinkOnHandle");return!!(null==t?e.get("realtime"):t)}function S(e){return"vertical"===e?"ns-resize":"ew-resize"}var T=b;e.exports=T},"3ce3":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container"},[i("el-card",{staticClass:"Security",staticStyle:{width:"800px"}},[i("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[i("span",[e._v(e._s(e.$t("admin:Security")))])]),e._v(" "),i("el-form",{ref:"userAccount",staticStyle:{width:"600px"},attrs:{model:e.user,rules:e.userFormRules,"label-width":"150px"}},[i("el-form-item",{attrs:{label:e.$t("admin:OldPassWord"),prop:"OldPassWord"}},[i("el-input",{attrs:{type:"password"},model:{value:e.user.OldPassWord,callback:function(t){e.$set(e.user,"OldPassWord",t)},expression:"user.OldPassWord"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("admin:NewPassWord"),prop:"NewPassWord"}},[i("el-input",{attrs:{type:"password"},model:{value:e.user.NewPassWord,callback:function(t){e.$set(e.user,"NewPassWord",t)},expression:"user.NewPassWord"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("admin:ConfirmPassWord"),prop:"ConfirmPassWord"}},[i("el-input",{attrs:{type:"password"},model:{value:e.user.ConfirmPassWord,callback:function(t){e.$set(e.user,"ConfirmPassWord",t)},expression:"user.ConfirmPassWord"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.save}},[e._v(e._s(e.$t("common:button:save")))])],1)],1)],1)],1)},a=[],r=i("db72"),o=i("50fc"),s=i("4360"),l=i("2f62"),c=i("8237"),u=i.n(c),d={data:function(){return{user:{},userFormRules:{OldPassWord:[{required:!0,message:"Please specify",trigger:"blur"}],NewPassWord:[{required:!0,message:"Please specify",trigger:"blur"},{min:6,max:20,message:"Passwords consist of 6-20 characters",trigger:"blur"}],ConfirmPassWord:[{required:!0,message:"Please specify",trigger:"blur"},{min:6,max:20,message:"Passwords consist of 6-20 characters",trigger:"blur"}]}}},computed:Object(r["a"])({},Object(l["b"])(["userId"])),created:function(){""===this.userId&&s["a"].dispatch("user/getInfo")},methods:{save:function(){var e=this;this.$refs.userAccount.validate((function(t){if(t){if(e.user.NewPassWord!==e.user.ConfirmPassWord)return void e.$message.error("The two passwords differ");var i={UserId:e.userId,NewPassWord:u()(e.user.NewPassWord),OldPassWord:u()(e.user.OldPassWord)};Object(o["r"])(i).then((function(t){t.IsSuccess&&e.$message({message:"Updated successfully",type:"success"})}))}}))}}},f=d,h=i("2877"),p=Object(h["a"])(f,n,a,!1,null,null,null);t["default"]=p.exports},"3ce7":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"tp-list data-list"},[i("div",{staticClass:"filter-container"},[i("span",[e._v("Subject ID:")]),e._v(" "),i("el-input",{staticClass:"mr",attrs:{size:"small"},model:{value:e.listQuery.SubjectCode,callback:function(t){e.$set(e.listQuery,"SubjectCode",t)},expression:"listQuery.SubjectCode"}}),e._v(" "),i("span",[e._v("Status:")]),e._v(" "),i("el-select",{staticClass:"mr",attrs:{size:"small",clearable:""},model:{value:e.listQuery.Status,callback:function(t){e.$set(e.listQuery,"Status",t)},expression:"listQuery.Status"}},[i("el-option",{attrs:{value:30,label:"待读"}}),e._v(" "),i("el-option",{attrs:{value:80,label:"已读"}})],1),e._v(" "),i("el-button",{attrs:{size:"small",type:"text"},on:{click:e.handleReset}},[e._v("Reset")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.handleSearch}},[e._v("Search")])],1),e._v(" "),i("div",{staticClass:"data-table"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],attrs:{data:e.list,stripe:"",size:"small"},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialCode",label:"TrialId",sortable:"custom","show-overflow-tooltip":"","min-width":"90"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialIndication",label:"Indication",sortable:"custom","show-overflow-tooltip":"","min-width":"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Sponsor",label:"Sponsor",sortable:"custom","show-overflow-tooltip":"","min-width":"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Expedited","min-width":"110",label:"Expedited","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(0==t.row.Expedited?"No":1==t.row.Expedited?"24H":"48H"))]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode",label:"Subject ID","show-overflow-tooltip":"",sortable:"custom","min-width":"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Status",label:"Status","show-overflow-tooltip":"",sortable:"custom","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e.handleStatus(t.row.Status)))]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"UpdateTime",label:"UpdateTime","show-overflow-tooltip":"",sortable:"custom","min-width":"120"}}),e._v(" "),i("el-table-column",{attrs:{label:"Action","min-width":"150",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return e.goAdReport(t.row)}}},[e._v("Detail")])]}}])})],1)],1),e._v(" "),i("div",{staticClass:"pagination"},[i("pagination",{attrs:{total:e.total,page:e.listQuery.PageIndex,limit:e.listQuery.PageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"PageIndex",t)},"update:limit":function(t){return e.$set(e.listQuery,"PageSize",t)},pagination:e.getList}})],1)])},a=[],r=i("3e42"),o=i("333d"),s=function(){return{SubjectCode:"",Status:30,WorkloadType:3,Expedited:"",PageIndex:1,PageSize:20}},l={components:{Pagination:o["default"]},data:function(){return{list:[],listQuery:s(),listLoading:!1,total:0,row:{},trialCode:"",types:[{Type:"TP",Value:1},{Type:"Global",Value:2},{Type:"AD",Value:3}]}},created:function(){this.listQuery.TrialId=zzSessionStorage.getItem("trialId"),this.getList()},methods:{getList:function(){var e=this;this.listLoading=!0,Object(r["me"])(this.listQuery).then((function(t){e.listLoading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.listLoading=!1}))},goAdReport:function(e){this.$router.push({name:"adTask",query:e})},handleStatus:function(e){return 30===e?"待读":80===e?"已读":""},handleSearch:function(){this.listQuery.PageIndex=1,this.getList()},handleReset:function(){this.listQuery=s(),this.getList()},handleSortByColumn:function(e){"ascending"===e.order?this.listQuery.Asc=!0:this.listQuery.Asc=!1,this.listQuery.SortField=e.prop,this.listQuery.PageIndex=1,this.getList()}}},c=l,u=(i("e254"),i("2877")),d=Object(u["a"])(c,n,a,!1,null,"838a4de0",null);t["default"]=d.exports},"3cf3":function(e,t,i){"use strict";i("49dc")},"3d18":function(e,t,i){"use strict";i.d(t,"a",(function(){return n})),i.d(t,"b",(function(){return a})),i.d(t,"c",(function(){return r}));var n=[{type:"index"},{prop:"KeyName",label:"Key",minWidth:150,sortable:"custom",showOverflowTooltip:!0},{prop:"Value",label:"Value",minWidth:150,sortable:"custom",showOverflowTooltip:!0},{prop:"ValueCN",label:"Value CN",minWidth:150,sortable:"custom",showOverflowTooltip:!0},{prop:"ShowOrder",label:"Show Order",minWidth:150,sortable:"custom",showOverflowTooltip:!0},{prop:"Description",label:"Description",minWidth:150,sortable:"custom",showOverflowTooltip:!0},{type:"operate",label:"Action",minWidth:150,operates:[{name:"Edit",type:"primary",emitKey:"edit"},{name:"Delete",type:"danger",emitKey:"delete"}]}],a=[{type:"index"},{prop:"KeyName",label:"Key",minWidth:150,sortable:"custom",showOverflowTooltip:!0},{prop:"Value",label:"Value",minWidth:150,sortable:"custom",showOverflowTooltip:!0},{prop:"ShowOrder",label:"Show Order",minWidth:150,sortable:"custom",showOverflowTooltip:!0},{prop:"Description",label:"Description",minWidth:150,sortable:"custom",showOverflowTooltip:!0},{type:"operate",label:"Action",minWidth:150,operates:[{name:"Edit",type:"primary",emitKey:"edit"},{name:"Delete",type:"danger",emitKey:"delete"}]}],r={visible:!1,title:"",width:"600px",showClose:!0}},"3d24":function(e,t,i){"use strict";i("ebd6c")},"3d8c":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[e.isRender?i("el-form",{ref:"questions",attrs:{size:"small",model:e.questionForm}},[2!==e.auditState&&14===e.userTypeEnumInt?i("el-form-item",{staticStyle:{"text-align":"right",width:"500px"}}):e._e(),e._v(" "),e._l(e.questions,(function(t){return i("FormItem",{key:t.Id,attrs:{question:t,"question-form":e.questionForm,"audit-state":e.state},on:{resetFormItemData:e.resetFormItemData}})}))],2):e._e()],1)},a=[],r=(i("ac6a"),i("c5f6"),i("3e42")),o=i("9c7e"),s={name:"QuestionTpl",components:{FormItem:o["default"]},props:{questionAnswerList:{type:Array,default:function(){return[]}},taskMedicalReviewId:{type:String,required:!0},auditState:{type:Number,required:!0}},data:function(){return{loading:!1,questionForm:{},isRender:!1,trialId:"",readingTaskState:0,userTypeEnumInt:1*zzSessionStorage.getItem("userTypeEnumInt"),state:1*zzSessionStorage.getItem("userTypeEnumInt")===14?this.auditState:2}},mounted:function(){this.trialId=this.$route.query.trialId,this.getQuestions()},methods:{handleSave:function(e){var t=this;return new Promise((function(i,n){t.$refs["questions"].validate((function(a){if(a){t.loading=!0;var o=[];for(var s in t.questionForm)o.push({id:s,answer:t.questionForm[s]});var l={visitTaskId:t.visitTaskId,taskMedicalReviewId:t.taskMedicalReviewId,questionAnswerList:o};Object(r["Be"])(l).then((function(n){e&&t.$message.success(t.$t("common:message:savedSuccessfully")),t.loading=!1,i()})).catch((function(){t.loading=!1,n()}))}else n()}))}))},save:function(){var e=this;return new Promise((function(t,i){e.$refs["questions"].validate((function(n){if(n){e.loading=!0;var a=[];for(var o in e.questionForm)a.push({id:o,answer:e.questionForm[o]});var s={visitTaskId:e.visitTaskId,taskMedicalReviewId:e.taskMedicalReviewId,questionAnswerList:a};Object(r["Be"])(s).then((function(i){e.loading=!1,t(!0)})).catch((function(){e.loading=!1,i()}))}else t(!1)}))}))},getQuestions:function(){var e=this;this.loading=!0;var t=[];this.questionAnswerList.map((function(i){"group"===i.Type&&0===i.Childrens.length||(t.push(i),"group"!==i.Type&&"summary"!==i.Type&&(e.$set(e.questionForm,i.Id,i.Answer?i.Answer:""),i.Childrens.length>0&&e.setChild(i.Childrens)))})),this.questions=t,this.isRender=!0,this.loading=!1},setChild:function(e){var t=this;e.forEach((function(e){t.$set(t.questionForm,e.Id,e.Answer),e.Childrens&&e.Childrens.length>0&&t.setChild(e.Childrens)}))},resetFormItemData:function(e){this.questionForm[e]=null}}},l=s,c=i("2877"),u=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},"3d96":function(e,t,i){},"3da5":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"tp-list data-list"},[i("div",{staticClass:"filter-container"},[i("span",[e._v("Subject ID:")]),e._v(" "),i("el-input",{staticClass:"mr",attrs:{size:"small"},model:{value:e.listQuery.SubjectCode,callback:function(t){e.$set(e.listQuery,"SubjectCode",t)},expression:"listQuery.SubjectCode"}}),e._v(" "),i("span",[e._v("Status:")]),e._v(" "),i("el-select",{staticClass:"mr",attrs:{size:"small",clearable:""},model:{value:e.listQuery.Status,callback:function(t){e.$set(e.listQuery,"Status",t)},expression:"listQuery.Status"}},[i("el-option",{attrs:{value:30,label:"待读"}}),e._v(" "),i("el-option",{attrs:{value:80,label:"已读"}})],1),e._v(" "),i("el-button",{attrs:{size:"small",type:"text"},on:{click:e.handleReset}},[e._v("Reset")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.handleSearch}},[e._v("Search")])],1),e._v(" "),i("div",{staticClass:"data-table"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],attrs:{data:e.list,stripe:"",size:"small"},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialCode",label:"TrialId",sortable:"custom","show-overflow-tooltip":"","min-width":"90"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialIndication",label:"Indication",sortable:"custom","show-overflow-tooltip":"","min-width":"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Sponsor",label:"Sponsor",sortable:"custom","show-overflow-tooltip":"","min-width":"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Expedited","min-width":"110",label:"Expedited","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(0==t.row.Expedited?"No":1==t.row.Expedited?"24H":"48H"))]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode",label:"Subject ID","show-overflow-tooltip":"",sortable:"custom","min-width":"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitName",label:"Visit Name","show-overflow-tooltip":"",sortable:"custom","min-width":"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitNum",label:"Visit Num","show-overflow-tooltip":"",sortable:"custom","min-width":"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Status",label:"Status","show-overflow-tooltip":"",sortable:"custom","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e.handleStatus(t.row.Status)))]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"UpdateTime",label:"UpdateTime","show-overflow-tooltip":"",sortable:"custom","min-width":"120"}}),e._v(" "),i("el-table-column",{attrs:{label:"Action","min-width":"150",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return e.handleDetail(t.row)}}},[e._v("Read")])]}}])})],1)],1),e._v(" "),i("div",{staticClass:"pagination"},[i("pagination",{attrs:{total:e.total,page:e.listQuery.PageIndex,limit:e.listQuery.PageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"PageIndex",t)},"update:limit":function(t){return e.$set(e.listQuery,"PageSize",t)},pagination:e.getList}})],1)])},a=[],r=i("3e42"),o=i("333d"),s=function(){return{SubjectCode:"",Status:30,WorkloadType:1,Expedited:"",PageIndex:1,PageSize:20}},l={components:{Pagination:o["default"]},data:function(){return{list:[],listQuery:s(),listLoading:!1,total:0,row:{},trialCode:"",types:[{Type:"TP",Value:1},{Type:"Global",Value:2},{Type:"AD",Value:3}]}},created:function(){this.listQuery.TrialId=zzSessionStorage.getItem("trialId"),this.getList()},methods:{getList:function(){var e=this;this.listLoading=!0,Object(r["me"])(this.listQuery).then((function(t){e.listLoading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.listLoading=!1}))},handleDetail:function(e){1===e.VisitNum?this.$router.push({name:"baselineTask",query:e}):this.$router.push({name:"VisitTask",query:e});var t=this.$router.resolve({path:"/showdicom",query:{studyId:e.StudyId,tpCode:e.WorkloadCode,baseLine:1===e.VisitNum,type:"TP",token:zzSessionStorage.getItem("TokenKey")}});window.setTimeout((function(){window.open(t.href,"_blank")}),1e3)},handleStatus:function(e){return 30===e||40===e?"待读":80===e?"已读":""},handleSearch:function(){this.listQuery.PageIndex=1,this.getList()},handleReset:function(){this.listQuery=s(),this.getList()},handleSortByColumn:function(e){"ascending"===e.order?this.listQuery.Asc=!0:this.listQuery.Asc=!1,this.listQuery.SortField=e.prop,this.listQuery.PageIndex=1,this.getList()}}},c=l,u=(i("9f39"),i("2877")),d=Object(u["a"])(c,n,a,!1,null,"3d0ebc70",null);t["default"]=d.exports},"3e15":function(e,t,i){var n,a;!function(r,o){n=o,a="function"===typeof n?n.call(t,i,t,e):n,void 0===a||(e.exports=a)}(0,(function(){function e(){var e=arguments.length;if(0===e)throw new Error("resolveUrl requires at least one argument; got none.");var t=document.createElement("base");if(t.href=arguments[0],1===e)return t.href;var i=document.getElementsByTagName("head")[0];i.insertBefore(t,i.firstChild);for(var n,a=document.createElement("a"),r=1;r<e;r++)a.href=arguments[r],n=a.href,t.href=n;return i.removeChild(t),n}return e}))},"3e5f":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"email-wrapper"},[i("el-collapse",{staticClass:"setting-config",model:{value:e.activeCollapse,callback:function(t){e.activeCollapse=t},expression:"activeCollapse"}},[i("el-collapse-item",{attrs:{title:e.$t("trials:emailManageCfg:title:sendEmailCfg"),name:"1"}},[i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"emailRulesForm",staticStyle:{width:"800px"},attrs:{model:e.form,rules:e.rules,"label-width":"160px",size:"small"}},[i("el-form-item",{attrs:{label:e.$t("trials:emailManageCfg:title:sendEmailAccount"),prop:"EmailFromEmail"}},[i("el-input",{attrs:{disabled:!e.isEdit},model:{value:e.form.EmailFromEmail,callback:function(t){e.$set(e.form,"EmailFromEmail",t)},expression:"form.EmailFromEmail"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:emailManageCfg:title:fromName"),prop:"EmailFromName"}},[i("el-input",{attrs:{disabled:!e.isEdit},model:{value:e.form.EmailFromName,callback:function(t){e.$set(e.form,"EmailFromName",t)},expression:"form.EmailFromName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:emailManageCfg:title:password"),prop:"EmailAuthorizationCode"}},[i("el-input",{attrs:{disabled:!e.isEdit},model:{value:e.form.EmailAuthorizationCode,callback:function(t){e.$set(e.form,"EmailAuthorizationCode",t)},expression:"form.EmailAuthorizationCode"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:emailManageCfg:title:SMTPServerAddress"),prop:"EmailSMTPServerAddress"}},[i("el-input",{attrs:{disabled:!e.isEdit},model:{value:e.form.EmailSMTPServerAddress,callback:function(t){e.$set(e.form,"EmailSMTPServerAddress",t)},expression:"form.EmailSMTPServerAddress"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:emailManageCfg:title:SMTPServerPort"),prop:"EmailSMTPServerPort"}},[i("el-radio-group",{attrs:{disabled:!e.isEdit},model:{value:e.form.EmailSMTPServerPort,callback:function(t){e.$set(e.form,"EmailSMTPServerPort",t)},expression:"form.EmailSMTPServerPort"}},[i("el-radio",{attrs:{label:465}},[e._v("\n 465\n ")]),e._v(" "),i("el-radio",{attrs:{label:25}},[e._v("\n 25\n ")])],1)],1),e._v(" "),i("el-form-item",{attrs:{"label-width":"160px"}},[e.isEdit?i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.setTrialEmail}},[e._v("\n "+e._s(e.$t("common:button:confirm"))+"\n ")]):i("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){e.isEdit=!0}}},[e._v("\n "+e._s(e.$t("trials:trialCfg:button:update"))+"\n ")])],1)],1)],1),e._v(" "),i("el-collapse-item",{attrs:{title:e.$t("trials:emailManageCfg:title:emailTpl"),name:"2"}},[i("el-tabs",{attrs:{type:"border-card"},model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},[i("el-tab-pane",{attrs:{label:e.$t("trials:emailManageCfg:title:commom"),name:"0"}},["0"===e.activeTab?i("EmailList",{ref:"emailList",attrs:{"is-distinguish-criteria":!1,"is-edit":e.isEdit}}):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:e.$t("trials:emailManageCfg:title:criterions"),name:"1"}},["1"===e.activeTab?i("EmailList",{ref:"emailList",attrs:{"is-distinguish-criteria":!0,"is-edit":e.isEdit}}):e._e()],1)],1)],1)],1)],1)},a=[],r=i("fb6c"),o=i("958c"),s=i("3e42"),l={name:"EmailManage",components:{EmailList:r["default"]},data:function(){return{activeCollapse:["1","2"],trialId:"",activeTab:"0",trialCriterionList:[],loading:!1,isEdit:!0,form:{EmailFromEmail:"test@extimaging.com",EmailFromName:"Test_IRC",EmailAuthorizationCode:"SHzyyl2021",EmailSMTPServerAddress:"smtp.qiye.aliyun.com",EmailSMTPServerPort:465,IsConfigureEmail:!0},rules:{EmailFromEmail:[{required:!0,message:this.$t("common:ruleMessage:specify")}],EmailFromName:[{required:!0,message:this.$t("common:ruleMessage:specify")}],EmailAuthorizationCode:[{required:!0,message:this.$t("common:ruleMessage:specify")}],EmailSMTPServerAddress:[{required:!0,message:this.$t("common:ruleMessage:specify")}],EmailSMTPServerPort:[{required:!0,message:this.$t("common:ruleMessage:select")}]}}},watch:{activeTab:function(e){console.log(e)}},mounted:function(){this.trialId=this.$route.query.trialId,this.getTrialEmail(),this.getTrialCriterionList()},methods:{setTrialEmail:function(){var e=this;this.$refs["emailRulesForm"].validate((function(t){t&&(e.form.TrialId=e.trialId,Object(s["Ve"])(e.form).then((function(t){e.$message.success("保存成功"),e.isEdit=!1,e.$refs["emailList"].getList()})))}))},getTrialEmail:function(){var e=this;Object(s["Id"])({TrialId:this.trialId}).then((function(t){t.Result.IsConfigureEmail&&(e.form=Object.assign(e.form,t.Result),e.isEdit=!1)}))},getTrialCriterionList:function(){var e=this;this.loading=!0,Object(o["U"])(this.trialId).then((function(t){e.trialCriterionList=t.Result,e.loading=!1})).catch((function(){e.loading=!1}))}}},c=l,u=(i("dc83"),i("6ff0"),i("2877")),d=Object(u["a"])(c,n,a,!1,null,"4b03e461",null);t["default"]=d.exports},"3e8b":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"sceneConfigForm",attrs:{model:e.form,"label-width":"160px",size:"small",rules:e.rules}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:"编号: ",prop:"Code"}},[i("el-input",{model:{value:e.form.Code,callback:function(t){e.$set(e.form,"Code",t)},expression:"form.Code"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"场景类型: ",prop:"Name"}},[i("el-input",{model:{value:e.form.Name,callback:function(t){e.$set(e.form,"Name",t)},expression:"form.Name"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"签名内容(EN): ",prop:"Value"}},[i("el-input",{attrs:{type:"textarea",rows:"5"},model:{value:e.form.Value,callback:function(t){e.$set(e.form,"Value",t)},expression:"form.Value"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"签名内容(CN): ",prop:"ValueCN"}},[i("el-input",{attrs:{type:"textarea",rows:"5"},model:{value:e.form.ValueCN,callback:function(t){e.$set(e.form,"ValueCN",t)},expression:"form.ValueCN"}})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{size:"small",type:"primary",disabled:""===e.form.Type||""===e.form.Name,loading:e.saveBtnLoading},on:{click:e.handleSave}},[e._v("Save")])],1)],1)])},a=[],r=(i("96cf"),i("3b8d")),o=i("e56e"),s={props:{data:{type:Object,default:function(){return{}}},parentId:{type:String,required:!0}},data:function(){return{form:{Id:"",Code:"",Name:"",Value:"",ValueCN:"",ParentId:""},rules:{Code:[{required:!0,message:"Please specify",trigger:["blur"]}],Name:[{required:!0,message:"Please specify",trigger:["blur"]}],Value:[{required:!0,message:"Please specify",trigger:["blur"]}],ValueCN:[{required:!0,message:"Please specify",trigger:["blur"]}]},scenarioOption:[],saveBtnLoading:!1,loading:!1}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:for(t in this.loading=!0,this.form)this.data.hasOwnProperty(t)&&(this.form[t]=this.data[t]);this.loading=!1;case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),handleSave:function(){var e=this;this.$refs.sceneConfigForm.validate((function(t){t&&(e.saveBtnLoading=!0,e.form.ParentId=e.parentId,Object(o["u"])(e.form).then((function(t){e.saveBtnLoading=!1,e.$emit("closeDialog"),e.$emit("getList"),e.$message.success("Saved successfully")})).catch((function(){e.saveBtnLoading=!1})))}))}}},l=s,c=i("2877"),u=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},"3eba":function(e,t,i){var n=i("4e08"),a=(n.__DEV__,i("697e7")),r=i("6d8b"),o=i("41ef"),s=i("22d1"),l=i("04f6"),c=i("1fab"),u=i("7e63"),d=i("843e"),f=i("2039"),h=i("ca98"),p=i("fb05"),m=i("d15d"),g=i("6cb7"),v=i("4f85"),b=i("b12f"),y=i("e887"),w=i("2306"),_=i("e0d3"),I=i("88b3"),x=I.throttle,S=i("fd63"),T=i("b809"),C=i("998c"),k=i("69ff"),R=i("c533"),D=i("f219");i("0352");var L=i("ec34"),O=r.assert,$=r.each,N=r.isFunction,A=r.isObject,P=g.parseClassType,E="4.9.0",M={zrender:"4.3.2"},F=1,j=1e3,V=800,q=900,z=5e3,B=1e3,U=1100,Q=2e3,H=3e3,G=3500,W=4e3,Y=5e3,K={PROCESSOR:{FILTER:j,SERIES_FILTER:V,STATISTIC:z},VISUAL:{LAYOUT:B,PROGRESSIVE_LAYOUT:U,GLOBAL:Q,CHART:H,POST_CHART_LAYOUT:G,COMPONENT:W,BRUSH:Y}},Z="__flagInMainProcess",X="__optionUpdated",J=/^[a-zA-Z0-9_]+$/;function ee(e,t){return function(i,n,a){t||!this._disposed?(i=i&&i.toLowerCase(),c.prototype[e].call(this,i,n,a)):we(this.id)}}function te(){c.call(this)}function ie(e,t,i){i=i||{},"string"===typeof t&&(t=$e[t]),this.id,this.group,this._dom=e;var n="canvas",o=this._zr=a.init(e,{renderer:i.renderer||n,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height});this._throttledZrFlush=x(r.bind(o.flush,o),17);t=r.clone(t);t&&p(t,!0),this._theme=t,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new f;var s=this._api=Se(this);function u(e,t){return e.__prio-t.__prio}l(Oe,u),l(Re,u),this._scheduler=new k(this,s,Re,Oe),c.call(this,this._ecEventProcessor=new Te),this._messageCenter=new te,this._initEvents(),this.resize=r.bind(this.resize,this),this._pendingActions=[],o.animation.on("frame",this._onframe,this),fe(o,this),r.setAsPrimitive(this)}te.prototype.on=ee("on",!0),te.prototype.off=ee("off",!0),te.prototype.one=ee("one",!0),r.mixin(te,c);var ne=ie.prototype;function ae(e,t,i){if(this._disposed)we(this.id);else{var n,a=this._model,r=this._coordSysMgr.getCoordinateSystems();t=_.parseFinder(a,t);for(var o=0;o<r.length;o++){var s=r[o];if(s[e]&&null!=(n=s[e](a,t,i)))return n}}}ne._onframe=function(){if(!this._disposed){var e=this._scheduler;if(this[X]){var t=this[X].silent;this[Z]=!0,oe(this),re.update.call(this),this[Z]=!1,this[X]=!1,ue.call(this,t),de.call(this,t)}else if(e.unfinished){var i=F,n=this._model,a=this._api;e.unfinished=!1;do{var r=+new Date;e.performSeriesTasks(n),e.performDataProcessorTasks(n),le(this,n),e.performVisualTasks(n),ve(this,this._model,a,"remain"),i-=+new Date-r}while(i>0&&e.unfinished);e.unfinished||this._zr.flush()}}},ne.getDom=function(){return this._dom},ne.getZr=function(){return this._zr},ne.setOption=function(e,t,i){if(this._disposed)we(this.id);else{var n;if(A(t)&&(i=t.lazyUpdate,n=t.silent,t=t.notMerge),this[Z]=!0,!this._model||t){var a=new h(this._api),r=this._theme,o=this._model=new u;o.scheduler=this._scheduler,o.init(null,null,r,a)}this._model.setOption(e,De),i?(this[X]={silent:n},this[Z]=!1):(oe(this),re.update.call(this),this._zr.flush(),this[X]=!1,this[Z]=!1,ue.call(this,n),de.call(this,n))}},ne.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},ne.getModel=function(){return this._model},ne.getOption=function(){return this._model&&this._model.getOption()},ne.getWidth=function(){return this._zr.getWidth()},ne.getHeight=function(){return this._zr.getHeight()},ne.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},ne.getRenderedCanvas=function(e){if(s.canvasSupported){e=e||{},e.pixelRatio=e.pixelRatio||1,e.backgroundColor=e.backgroundColor||this._model.get("backgroundColor");var t=this._zr;return t.painter.getRenderedCanvas(e)}},ne.getSvgDataURL=function(){if(s.svgSupported){var e=this._zr,t=e.storage.getDisplayList();return r.each(t,(function(e){e.stopAnimation(!0)})),e.painter.toDataURL()}},ne.getDataURL=function(e){if(!this._disposed){e=e||{};var t=e.excludeComponents,i=this._model,n=[],a=this;$(t,(function(e){i.eachComponent({mainType:e},(function(e){var t=a._componentsMap[e.__viewId];t.group.ignore||(n.push(t),t.group.ignore=!0)}))}));var r="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.getRenderedCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return $(n,(function(e){e.group.ignore=!1})),r}we(this.id)},ne.getConnectedDataURL=function(e){if(this._disposed)we(this.id);else if(s.canvasSupported){var t="svg"===e.type,i=this.group,n=Math.min,o=Math.max,l=1/0;if(Pe[i]){var c=l,u=l,d=-l,f=-l,h=[],p=e&&e.pixelRatio||1;r.each(Ae,(function(a,s){if(a.group===i){var l=t?a.getZr().painter.getSvgDom().innerHTML:a.getRenderedCanvas(r.clone(e)),p=a.getDom().getBoundingClientRect();c=n(p.left,c),u=n(p.top,u),d=o(p.right,d),f=o(p.bottom,f),h.push({dom:l,left:p.left,top:p.top})}})),c*=p,u*=p,d*=p,f*=p;var m=d-c,g=f-u,v=r.createCanvas(),b=a.init(v,{renderer:t?"svg":"canvas"});if(b.resize({width:m,height:g}),t){var y="";return $(h,(function(e){var t=e.left-c,i=e.top-u;y+='<g transform="translate('+t+","+i+')">'+e.dom+"</g>"})),b.painter.getSvgRoot().innerHTML=y,e.connectedBackgroundColor&&b.painter.setBackgroundColor(e.connectedBackgroundColor),b.refreshImmediately(),b.painter.toDataURL()}return e.connectedBackgroundColor&&b.add(new w.Rect({shape:{x:0,y:0,width:m,height:g},style:{fill:e.connectedBackgroundColor}})),$(h,(function(e){var t=new w.Image({style:{x:e.left*p-c,y:e.top*p-u,image:e.dom}});b.add(t)})),b.refreshImmediately(),v.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}},ne.convertToPixel=r.curry(ae,"convertToPixel"),ne.convertFromPixel=r.curry(ae,"convertFromPixel"),ne.containPixel=function(e,t){if(!this._disposed){var i,n=this._model;return e=_.parseFinder(n,e),r.each(e,(function(e,n){n.indexOf("Models")>=0&&r.each(e,(function(e){var a=e.coordinateSystem;if(a&&a.containPoint)i|=!!a.containPoint(t);else if("seriesModels"===n){var r=this._chartsMap[e.__viewId];r&&r.containPoint&&(i|=r.containPoint(t,e))}}),this)}),this),!!i}we(this.id)},ne.getVisual=function(e,t){var i=this._model;e=_.parseFinder(i,e,{defaultMainType:"series"});var n=e.seriesModel,a=n.getData(),r=e.hasOwnProperty("dataIndexInside")?e.dataIndexInside:e.hasOwnProperty("dataIndex")?a.indexOfRawIndex(e.dataIndex):null;return null!=r?a.getItemVisual(r,t):a.getVisual(t)},ne.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},ne.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]};var re={prepareAndUpdate:function(e){oe(this),re.update.call(this,e)},update:function(e){var t=this._model,i=this._api,n=this._zr,a=this._coordSysMgr,r=this._scheduler;if(t){r.restoreData(t,e),r.performSeriesTasks(t),a.create(t,i),r.performDataProcessorTasks(t,e),le(this,t),a.update(t,i),pe(t),r.performVisualTasks(t,e),me(this,t,i,e);var l=t.get("backgroundColor")||"transparent";if(s.canvasSupported)n.setBackgroundColor(l);else{var c=o.parse(l);l=o.stringify(c,"rgb"),0===c[3]&&(l="transparent")}be(t,i)}},updateTransform:function(e){var t=this._model,i=this,n=this._api;if(t){var a=[];t.eachComponent((function(r,o){var s=i.getViewOfComponentModel(o);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(o,t,n,e);l&&l.update&&a.push(s)}else a.push(s)}));var o=r.createHashMap();t.eachSeries((function(a){var r=i._chartsMap[a.__viewId];if(r.updateTransform){var s=r.updateTransform(a,t,n,e);s&&s.update&&o.set(a.uid,1)}else o.set(a.uid,1)})),pe(t),this._scheduler.performVisualTasks(t,e,{setDirty:!0,dirtyMap:o}),ve(i,t,n,e,o),be(t,this._api)}},updateView:function(e){var t=this._model;t&&(y.markUpdateMethod(e,"updateView"),pe(t),this._scheduler.performVisualTasks(t,e,{setDirty:!0}),me(this,this._model,this._api,e),be(t,this._api))},updateVisual:function(e){re.update.call(this,e)},updateLayout:function(e){re.update.call(this,e)}};function oe(e){var t=e._model,i=e._scheduler;i.restorePipelines(t),i.prepareStageTasks(),he(e,"component",t,i),he(e,"chart",t,i),i.plan()}function se(e,t,i,n,a){var o=e._model;if(n){var s={};s[n+"Id"]=i[n+"Id"],s[n+"Index"]=i[n+"Index"],s[n+"Name"]=i[n+"Name"];var l={mainType:n,query:s};a&&(l.subType=a);var c=i.excludeSeriesId;null!=c&&(c=r.createHashMap(_.normalizeToArray(c))),o&&o.eachComponent(l,(function(t){c&&null!=c.get(t.id)||u(e["series"===n?"_chartsMap":"_componentsMap"][t.__viewId])}),e)}else $(e._componentsViews.concat(e._chartsViews),u);function u(n){n&&n.__alive&&n[t]&&n[t](n.__model,o,e._api,i)}}function le(e,t){var i=e._chartsMap,n=e._scheduler;t.eachSeries((function(e){n.updateStreamModes(e,i[e.__viewId])}))}function ce(e,t){var i=e.type,n=e.escapeConnect,a=Ce[i],o=a.actionInfo,s=(o.update||"update").split(":"),l=s.pop();s=null!=s[0]&&P(s[0]),this[Z]=!0;var c=[e],u=!1;e.batch&&(u=!0,c=r.map(e.batch,(function(t){return t=r.defaults(r.extend({},t),e),t.batch=null,t})));var d,f=[],h="highlight"===i||"downplay"===i;$(c,(function(e){d=a.action(e,this._model,this._api),d=d||r.extend({},e),d.type=o.event||d.type,f.push(d),h?se(this,l,e,"series"):s&&se(this,l,e,s.main,s.sub)}),this),"none"===l||h||s||(this[X]?(oe(this),re.update.call(this,e),this[X]=!1):re[l].call(this,e)),d=u?{type:o.event||i,escapeConnect:n,batch:f}:f[0],this[Z]=!1,!t&&this._messageCenter.trigger(d.type,d)}function ue(e){var t=this._pendingActions;while(t.length){var i=t.shift();ce.call(this,i,e)}}function de(e){!e&&this.trigger("updated")}function fe(e,t){e.on("rendered",(function(){t.trigger("rendered"),!e.animation.isFinished()||t[X]||t._scheduler.unfinished||t._pendingActions.length||t.trigger("finished")}))}function he(e,t,i,n){for(var a="component"===t,r=a?e._componentsViews:e._chartsViews,o=a?e._componentsMap:e._chartsMap,s=e._zr,l=e._api,c=0;c<r.length;c++)r[c].__alive=!1;function u(e){var t="_ec_"+e.id+"_"+e.type,c=o[t];if(!c){var u=P(e.type),d=a?b.getClass(u.main,u.sub):y.getClass(u.sub);c=new d,c.init(i,l),o[t]=c,r.push(c),s.add(c.group)}e.__viewId=c.__id=t,c.__alive=!0,c.__model=e,c.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},!a&&n.prepareView(c,e,i,l)}a?i.eachComponent((function(e,t){"series"!==e&&u(t)})):i.eachSeries(u);for(c=0;c<r.length;){var d=r[c];d.__alive?c++:(!a&&d.renderTask.dispose(),s.remove(d.group),d.dispose(i,l),r.splice(c,1),delete o[d.__id],d.__id=d.group.__ecComponentInfo=null)}}function pe(e){e.clearColorPalette(),e.eachSeries((function(e){e.clearColorPalette()}))}function me(e,t,i,n){ge(e,t,i,n),$(e._chartsViews,(function(e){e.__alive=!1})),ve(e,t,i,n),$(e._chartsViews,(function(e){e.__alive||e.remove(t,i)}))}function ge(e,t,i,n,a){$(a||e._componentsViews,(function(e){var a=e.__model;e.render(a,t,i,n),xe(a,e)}))}function ve(e,t,i,n,a){var r,o=e._scheduler;t.eachSeries((function(t){var i=e._chartsMap[t.__viewId];i.__alive=!0;var s=i.renderTask;o.updatePayload(s,n),a&&a.get(t.uid)&&s.dirty(),r|=s.perform(o.getPerformArgs(s)),i.group.silent=!!t.get("silent"),xe(t,i),Ie(t,i)})),o.unfinished|=r,_e(e,t),T(e._zr.dom,t)}function be(e,t){$(Le,(function(i){i(e,t)}))}ne.resize=function(e){if(this._disposed)we(this.id);else{this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var i=t.resetOption("media"),n=e&&e.silent;this[Z]=!0,i&&oe(this),re.update.call(this),this[Z]=!1,ue.call(this,n),de.call(this,n)}}},ne.showLoading=function(e,t){if(this._disposed)we(this.id);else if(A(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),Ne[e]){var i=Ne[e](this._api,t),n=this._zr;this._loadingFX=i,n.add(i)}},ne.hideLoading=function(){this._disposed?we(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},ne.makeActionFromEvent=function(e){var t=r.extend({},e);return t.type=ke[e.type],t},ne.dispatchAction=function(e,t){this._disposed?we(this.id):(A(t)||(t={silent:!!t}),Ce[e.type]&&this._model&&(this[Z]?this._pendingActions.push(e):(ce.call(this,e,t.silent),t.flush?this._zr.flush(!0):!1!==t.flush&&s.browser.weChat&&this._throttledZrFlush(),ue.call(this,t.silent),de.call(this,t.silent))))},ne.appendData=function(e){if(this._disposed)we(this.id);else{var t=e.seriesIndex,i=this.getModel(),n=i.getSeriesByIndex(t);n.appendData(e),this._scheduler.unfinished=!0}},ne.on=ee("on",!1),ne.off=ee("off",!1),ne.one=ee("one",!1);var ye=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function we(e){}function _e(e,t){var i=e._zr,n=i.storage,a=0;n.traverse((function(e){a++})),a>t.get("hoverLayerThreshold")&&!s.node&&t.eachSeries((function(t){if(!t.preventUsingHoverLayer){var i=e._chartsMap[t.__viewId];i.__alive&&i.group.traverse((function(e){e.useHoverLayer=!0}))}}))}function Ie(e,t){var i=e.get("blendMode")||null;t.group.traverse((function(e){e.isGroup||e.style.blend!==i&&e.setStyle("blend",i),e.eachPendingDisplayable&&e.eachPendingDisplayable((function(e){e.setStyle("blend",i)}))}))}function xe(e,t){var i=e.get("z"),n=e.get("zlevel");t.group.traverse((function(e){"group"!==e.type&&(null!=i&&(e.z=i),null!=n&&(e.zlevel=n))}))}function Se(e){var t=e._coordSysMgr;return r.extend(new d(e),{getCoordinateSystems:r.bind(t.getCoordinateSystems,t),getComponentByElement:function(t){while(t){var i=t.__ecComponentInfo;if(null!=i)return e._model.getComponent(i.mainType,i.index);t=t.parent}}})}function Te(){this.eventInfo}ne._initEvents=function(){$(ye,(function(e){var t=function(t){var i,n=this.getModel(),a=t.target,o="globalout"===e;if(o)i={};else if(a&&null!=a.dataIndex){var s=a.dataModel||n.getSeriesByIndex(a.seriesIndex);i=s&&s.getDataParams(a.dataIndex,a.dataType,a)||{}}else a&&a.eventData&&(i=r.extend({},a.eventData));if(i){var l=i.componentType,c=i.componentIndex;"markLine"!==l&&"markPoint"!==l&&"markArea"!==l||(l="series",c=i.seriesIndex);var u=l&&null!=c&&n.getComponent(l,c),d=u&&this["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];i.event=t,i.type=e,this._ecEventProcessor.eventInfo={targetEl:a,packedEvent:i,model:u,view:d},this.trigger(e,i)}};t.zrEventfulCallAtLast=!0,this._zr.on(e,t,this)}),this),$(ke,(function(e,t){this._messageCenter.on(t,(function(e){this.trigger(t,e)}),this)}),this)},ne.isDisposed=function(){return this._disposed},ne.clear=function(){this._disposed?we(this.id):this.setOption({series:[]},!0)},ne.dispose=function(){if(this._disposed)we(this.id);else{this._disposed=!0,_.setAttribute(this.getDom(),Fe,"");var e=this._api,t=this._model;$(this._componentsViews,(function(i){i.dispose(t,e)})),$(this._chartsViews,(function(i){i.dispose(t,e)})),this._zr.dispose(),delete Ae[this.id]}},r.mixin(ie,c),Te.prototype={constructor:Te,normalizeQuery:function(e){var t={},i={},n={};if(r.isString(e)){var a=P(e);t.mainType=a.main||null,t.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};r.each(e,(function(e,a){for(var r=!1,l=0;l<o.length;l++){var c=o[l],u=a.lastIndexOf(c);if(u>0&&u===a.length-c.length){var d=a.slice(0,u);"data"!==d&&(t.mainType=d,t[c.toLowerCase()]=e,r=!0)}}s.hasOwnProperty(a)&&(i[a]=e,r=!0),r||(n[a]=e)}))}return{cptQuery:t,dataQuery:i,otherQuery:n}},filter:function(e,t,i){var n=this.eventInfo;if(!n)return!0;var a=n.targetEl,r=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=t.cptQuery,c=t.dataQuery;return u(l,o,"mainType")&&u(l,o,"subType")&&u(l,o,"index","componentIndex")&&u(l,o,"name")&&u(l,o,"id")&&u(c,r,"name")&&u(c,r,"dataIndex")&&u(c,r,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,a,r));function u(e,t,i,n){return null==e[i]||t[n||i]===e[i]}},afterTrigger:function(){this.eventInfo=null}};var Ce={},ke={},Re=[],De=[],Le=[],Oe=[],$e={},Ne={},Ae={},Pe={},Ee=new Date-0,Me=new Date-0,Fe="_echarts_instance_";function je(e){var t=0,i=1,n=2,a="__connectUpdateStatus";function r(e,t){for(var i=0;i<e.length;i++){var n=e[i];n[a]=t}}$(ke,(function(o,s){e._messageCenter.on(s,(function(o){if(Pe[e.group]&&e[a]!==t){if(o&&o.escapeConnect)return;var s=e.makeActionFromEvent(o),l=[];$(Ae,(function(t){t!==e&&t.group===e.group&&l.push(t)})),r(l,t),$(l,(function(e){e[a]!==i&&e.dispatchAction(s)})),r(l,n)}}))}))}function Ve(e,t,i){var n=Qe(e);if(n)return n;var a=new ie(e,t,i);return a.id="ec_"+Ee++,Ae[a.id]=a,_.setAttribute(e,Fe,a.id),je(a),a}function qe(e){if(r.isArray(e)){var t=e;e=null,$(t,(function(t){null!=t.group&&(e=t.group)})),e=e||"g_"+Me++,$(t,(function(t){t.group=e}))}return Pe[e]=!0,e}function ze(e){Pe[e]=!1}var Be=ze;function Ue(e){"string"===typeof e?e=Ae[e]:e instanceof ie||(e=Qe(e)),e instanceof ie&&!e.isDisposed()&&e.dispose()}function Qe(e){return Ae[_.getAttribute(e,Fe)]}function He(e){return Ae[e]}function Ge(e,t){$e[e]=t}function We(e){De.push(e)}function Ye(e,t){it(Re,e,t,j)}function Ke(e){Le.push(e)}function Ze(e,t,i){"function"===typeof t&&(i=t,t="");var n=A(e)?e.type:[e,e={event:t}][0];e.event=(e.event||n).toLowerCase(),t=e.event,O(J.test(n)&&J.test(t)),Ce[n]||(Ce[n]={action:i,actionInfo:e}),ke[t]=n}function Xe(e,t){f.register(e,t)}function Je(e){var t=f.get(e);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function et(e,t){it(Oe,e,t,B,"layout")}function tt(e,t){it(Oe,e,t,H,"visual")}function it(e,t,i,n,a){(N(t)||A(t))&&(i=t,t=n);var r=k.wrapStageHandler(i,a);return r.__prio=t,r.__raw=i,e.push(r),r}function nt(e,t){Ne[e]=t}function at(e){return g.extend(e)}function rt(e){return b.extend(e)}function ot(e){return v.extend(e)}function st(e){return y.extend(e)}function lt(e){r.$override("createCanvas",e)}function ct(e,t,i){L.registerMap(e,t,i)}function ut(e){var t=L.retrieveMap(e);return t&&t[0]&&{geoJson:t[0].geoJSON,specialAreas:t[0].specialAreas}}tt(Q,S),We(p),Ye(q,m),nt("default",C),Ze({type:"highlight",event:"highlight",update:"highlight"},r.noop),Ze({type:"downplay",event:"downplay",update:"downplay"},r.noop),Ge("light",R),Ge("dark",D);var dt={};t.version=E,t.dependencies=M,t.PRIORITY=K,t.init=Ve,t.connect=qe,t.disConnect=ze,t.disconnect=Be,t.dispose=Ue,t.getInstanceByDom=Qe,t.getInstanceById=He,t.registerTheme=Ge,t.registerPreprocessor=We,t.registerProcessor=Ye,t.registerPostUpdate=Ke,t.registerAction=Ze,t.registerCoordinateSystem=Xe,t.getCoordinateSystemDimensions=Je,t.registerLayout=et,t.registerVisual=tt,t.registerLoading=nt,t.extendComponentModel=at,t.extendComponentView=rt,t.extendSeriesModel=ot,t.extendChartView=st,t.setCanvasCreator=lt,t.registerMap=ct,t.getMap=ut,t.dataTool=dt;var ft=i("b719");(function(){for(var e in ft)ft.hasOwnProperty(e)&&(t[e]=ft[e])})()},"3eff":function(e,t,i){"use strict";i("7d9d")},"3f1c":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"feedBackForm",attrs:{model:e.form,"label-width":"150px",size:"small",rules:e.rules}},[i("div",{staticClass:"base-dialog-body",staticStyle:{"min-height":"500px"}},[i("el-form-item",{attrs:{label:"是否认可医学反馈",prop:"DoctorUserIdeaEnum"}},[i("el-radio-group",{model:{value:e.form.DoctorUserIdeaEnum,callback:function(t){e.$set(e.form,"DoctorUserIdeaEnum",t)},expression:"form.DoctorUserIdeaEnum"}},e._l(e.$d.MedicalReviewDoctorUserIdea,(function(t){return i("el-radio",{key:t.id,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1),e._v(" "),2===e.form.DoctorUserIdeaEnum?i("el-form-item",{attrs:{label:"原因",prop:"DisagreeReason"}},[i("el-input",{model:{value:e.form.DisagreeReason,callback:function(t){e.$set(e.form,"DisagreeReason",t)},expression:"form.DisagreeReason"}})],1):e._e(),e._v(" "),1===e.form.DoctorUserIdeaEnum?i("el-form-item",{attrs:{label:"是否申请重阅",prop:"IsApplyHeavyReading"}},[i("el-radio-group",{on:{change:e.handleIsApplyHeavyReadingChange},model:{value:e.form.IsApplyHeavyReading,callback:function(t){e.$set(e.form,"IsApplyHeavyReading",t)},expression:"form.IsApplyHeavyReading"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"IsApplyHeavyReading"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1):e._e(),e._v(" "),e.form.IsApplyHeavyReading?i("el-form-item",{attrs:{label:"申请原因",prop:"ReReadingReason",rules:[{required:!0,message:e.$t("common:ruleMessage:select")}]}},[i("el-radio-group",{model:{value:e.form.ReReadingReason,callback:function(t){e.$set(e.form,"ReReadingReason",t)},expression:"form.ReReadingReason"}},[i("el-radio",{attrs:{label:"阅片记录错误"}}),e._v(" "),i("el-radio",{attrs:{label:"其他"}})],1)],1):e._e(),e._v(" "),"其他"===e.form.ReReadingReason?i("el-form-item",{attrs:{label:"备注",prop:"OtherReason",rules:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"},{max:500,message:this.$t("common:ruleMessage:maxLength")+" 500"}]}},[i("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:e.$t("common:ruleMessage:specify"),maxlength:"500","show-word-limit":""},model:{value:e.form.OtherReason,callback:function(t){e.$set(e.form,"OtherReason",t)},expression:"form.OtherReason"}})],1):e._e(),e._v(" "),e.form.IsApplyHeavyReading?i("el-form-item",{attrs:{label:"是否复制访视阅片表单",prop:"IsCopyOrigenalForms",rules:[{required:!0,message:e.$t("common:ruleMessage:select")}]}},[i("el-radio-group",{model:{value:e.form.IsCopyOrigenalForms,callback:function(t){e.$set(e.form,"IsCopyOrigenalForms",t)},expression:"form.IsCopyOrigenalForms"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"IsCopyOrigenalForms"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:"相关截图"}},[i("el-upload",{class:{disabled:e.uploadDisabled},attrs:{action:e.accept,limit:1,"on-preview":e.handlePictureCardPreview,"before-upload":e.handleBeforeUpload,"http-request":e.uploadScreenshot,"list-type":"picture-card","on-remove":e.handleRemove,"file-list":e.fileList},scopedSlots:e._u([{key:"file",fn:function(t){var n=t.file;return i("div",{},[i("img",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:n.url,alt:""}}),e._v(" "),i("span",{staticClass:"el-upload-list__item-actions"},[i("span",{staticClass:"el-upload-list__item-preview",on:{click:function(t){return e.handlePictureCardPreview(n)}}},[i("i",{staticClass:"el-icon-zoom-in"})]),e._v(" "),i("span",{staticClass:"el-upload-list__item-delete",on:{click:function(t){return e.handleRemove(n)}}},[i("i",{staticClass:"el-icon-delete"})])])])}}])},[i("i",{staticClass:"el-icon-plus",attrs:{slot:"default"},slot:"default"})]),e._v(" "),i("el-dialog",{attrs:{"append-to-body":"",visible:e.imgVisible,width:"600px"},on:{"update:visible":function(t){e.imgVisible=t}}},[i("el-image",{attrs:{src:e.imageUrl,width:"100%"}},[i("div",{staticClass:"image-slot",attrs:{slot:"placeholder"},slot:"placeholder"},[e._v("\n 加载中"),i("span",{staticClass:"dot"},[e._v("...")])])])],1)],1),e._v(" "),e.form.IsApplyHeavyReading?i("div",{staticStyle:{"margin-bottom":"10px","padding-left":"5px","font-weight":"bold",color:"#666"}},[e._v("\n 重阅影响任务列表\n ")]):e._e(),e._v(" "),e.form.IsApplyHeavyReading?i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],attrs:{data:e.InfluenceTaskList,stripe:"",border:""}},[i("el-table-column",{attrs:{prop:"TaskCode",label:"任务编号","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialSiteCode",label:"中心编号","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode",label:"受试者编号","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskBlindName",label:"访视盲态名称","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskState",label:"任务状态","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.TaskState?i("el-tag",{attrs:{type:"primary"}},[e._v("\n "+e._s(e.$fd("TaskState",t.row.TaskState))+"\n ")]):e._e(),e._v(" "),1===t.row.TaskState?i("el-tag",{attrs:{type:"info"}},[e._v("\n "+e._s(e.$fd("TaskState",t.row.TaskState))+"\n ")]):e._e(),e._v(" "),3===t.row.TaskState?i("el-tag",{attrs:{type:"danger"}},[e._v("\n "+e._s(e.$fd("TaskState",t.row.TaskState))+"\n ")]):e._e(),e._v(" "),4===t.row.TaskState?i("el-tag",{attrs:{type:"warning"}},[e._v("\n "+e._s(e.$fd("TaskState",t.row.TaskState))+"\n ")]):e._e()]}}],null,!1,2997874565)}),e._v(" "),i("el-table-column",{attrs:{prop:"ReadingCategory",label:"任务类型","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.ReadingCategory?i("el-tag",{attrs:{type:"primary"}},[e._v("\n "+e._s(e.$fd("ReadingCategory",t.row.ReadingCategory))+"\n ")]):e._e(),e._v(" "),2===t.row.ReadingCategory?i("el-tag",{attrs:{type:"info"}},[e._v("\n "+e._s(e.$fd("ReadingCategory",t.row.ReadingCategory))+"\n ")]):e._e(),e._v(" "),4===t.row.ReadingCategory?i("el-tag",{attrs:{type:"danger"}},[e._v("\n "+e._s(e.$fd("ReadingCategory",t.row.ReadingCategory))+"\n ")]):e._e(),e._v(" "),5===t.row.ReadingCategory?i("el-tag",{attrs:{type:"warning"}},[e._v("\n "+e._s(e.$fd("ReadingCategory",t.row.ReadingCategory))+"\n ")]):e._e()]}}],null,!1,2761530721)}),e._v(" "),i("el-table-column",{attrs:{prop:"ReadingTaskState",label:"阅片状态","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[2===t.row.ReadingTaskState?i("el-tag",{attrs:{type:"primary"}},[e._v("\n "+e._s(e.$fd("ReadingTaskState",t.row.ReadingTaskState))+"\n ")]):i("el-tag",{attrs:{type:"danger"}},[e._v("\n "+e._s(e.$fd("ReadingTaskState",t.row.ReadingTaskState))+"\n ")])]}}],null,!1,3142573228)}),e._v(" "),i("el-table-column",{attrs:{prop:"OptType",label:"生效后影响","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.OptType?i("el-tag",{attrs:{type:"primary"}},[e._v("\n "+e._s(e.$fd("ReReadingOrBackOptType",t.row.OptType))+"\n ")]):e._e(),e._v(" "),1===t.row.OptType?i("el-tag",{attrs:{type:"danger"}},[e._v("\n "+e._s(e.$fd("ReReadingOrBackOptType",t.row.OptType))+"\n ")]):e._e(),e._v(" "),2===t.row.OptType?i("el-tag",{attrs:{type:"warning"}},[e._v("\n "+e._s(e.$fd("ReReadingOrBackOptType",t.row.OptType))+"\n ")]):e._e()]}}],null,!1,1781672879)}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"阅片人","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return t.row.DoctorUser?[e._v("\n "+e._s(t.row.DoctorUser.UserName)+"("+e._s(t.row.DoctorUser.FullName)+")\n ")]:void 0}}],null,!0)})],1):e._e()],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleClose}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleSave}},[e._v("\n 发送\n ")])],1)],1)])},a=[],r=(i("386d"),i("7f7f"),i("3e42")),o=i("958c"),s={name:"FeedbackFrom",props:{taskMedicalReviewId:{type:String,required:!0},visitTaskId:{type:String,required:!0}},data:function(){return{form:{TaskMedicalReviewId:"",DoctorUserIdeaEnum:null,DisagreeReason:"",IsApplyHeavyReading:null,IsCopyOrigenalForms:null,IsCopyFollowForms:null,RequestReReadingType:0,RequestReReadingReason:"",ReReadingReason:"",OtherReason:"",ImagePath:"",FileName:""},InfluenceTaskList:[],rules:{DoctorUserIdeaEnum:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}],DisagreeReason:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"},{max:500,message:"".concat(this.$t("common:ruleMessage:maxLength")," 500")}],IsApplyHeavyReading:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}]},loading:!1,accept:".png,.jpg,.jpeg",imgVisible:!1,imageUrl:"",uploadDisabled:!1,listLoading:!1,fileList:[]}},mounted:function(){},methods:{handleSave:function(){var e=this;this.$refs.feedBackForm.validate((function(t){t&&(e.loading=!0,e.form.TaskMedicalReviewId=e.taskMedicalReviewId,e.form.RequestReReadingReason=e.form.OtherReason?e.form.OtherReason:e.form.ReReadingReason,e.form.TrialId=e.$route.query.trialId,Object(r["ne"])(e.form).then((function(t){e.loading=!1,t.IsSuccess&&(e.$emit("close"),e.$emit("getList"),e.$message.success(e.$t("common:message:savedSuccessfully")))})).catch((function(){e.loading=!1})))}))},handleClose:function(){this.$emit("close")},handleIsApplyHeavyReadingChange:function(e){var t=this;!0===e&&(this.listLoading=!0,Object(o["H"])(this.visitTaskId,!0).then((function(e){t.InfluenceTaskList=e.Result,t.listLoading=!1})).catch((function(){t.listLoading=!1})))},handleBeforeUpload:function(e){return this.checkFileSuffix(e.name)?(this.fileList=[],!0):(this.$message.error("必须是 ".concat(this.accept," 格式")),!1)},checkFileSuffix:function(e){var t=e.lastIndexOf("."),i=e.substring(t+1,e.length);return-1!==this.accept.toLocaleLowerCase().search(i.toLocaleLowerCase())},uploadScreenshot:function(e){var t=this;this.loading=!0,this.uploadDisabled=!1;var i=new FormData;i.append("file",e.file),Object(r["d"])(this.$route.query.trialId,this.taskMedicalReviewId,i).then((function(e){t.loading=!1,e.IsSuccess&&(t.fileList.push({name:e.Result.FileName,url:"/api/".concat(e.Result.Path)}),t.imageUrl="/api/".concat(e.Result.Path),t.form.ImagePath=e.Result.Path,t.form.FileName=e.Result.FileName),t.uploadDisabled=!0})).catch((function(){t.loading=!1}))},handlePictureCardPreview:function(){this.imgVisible=!0,this.uploadDisabled=!0},handleRemove:function(e,t){this.uploadDisabled=!1,this.imageUrl="",this.fileList=[],this.form.ImagePath="",this.form.FileName=""}}},l=s,c=(i("e389"),i("2877")),u=Object(c["a"])(l,n,a,!1,null,"0911e772",null);t["default"]=u.exports},"3f2a":function(e,t,i){"use strict";i.d(t,"a",(function(){return r})),i.d(t,"i",(function(){return o})),i.d(t,"o",(function(){return s})),i.d(t,"k",(function(){return l})),i.d(t,"d",(function(){return c})),i.d(t,"b",(function(){return u})),i.d(t,"l",(function(){return d})),i.d(t,"j",(function(){return f})),i.d(t,"g",(function(){return h})),i.d(t,"m",(function(){return p})),i.d(t,"f",(function(){return m})),i.d(t,"q",(function(){return g})),i.d(t,"h",(function(){return v})),i.d(t,"e",(function(){return b})),i.d(t,"c",(function(){return y})),i.d(t,"n",(function(){return w})),i.d(t,"p",(function(){return _}));var n=i("b775"),a=i("c5af");function r(e){return Object(a["a"])({url:"/ExcelExport/cRCVisitList_Export",method:"post",responseType:"blob",data:e})}function o(e){return Object(a["a"])({url:"/ExcelExport/getQCChallengeList_Export",method:"post",responseType:"blob",data:e})}function s(e){return Object(a["a"])({url:"/ExcelExport/getSubjectList_Export",method:"post",responseType:"blob",data:e})}function l(e){return Object(a["a"])({url:"/ExcelExport/getReadingPeriodList_Export",method:"post",responseType:"blob",data:e})}function c(e){return Object(a["a"])({url:"/ExcelExport/getDicomAndNoneDicomStudyList_Export",method:"post",responseType:"blob",data:e})}function u(e){return Object(a["a"])({url:"/ExcelExport/getConsistencyVerificationList_Export",method:"post",responseType:"blob",data:e})}function d(e){return Object(a["a"])({url:"/ExcelExport/getReadingTaskList_Export",method:"post",responseType:"blob",data:e})}function f(e){return Object(a["a"])({url:"/ExcelExport/getReReadingTaskList_Export",method:"post",responseType:"blob",data:e})}function h(e){return Object(a["a"])({url:"/ExcelExport/getMedicalReviewTaskList_Export",method:"post",responseType:"blob",data:e})}function p(e){return Object(a["a"])({url:"/ExcelExport/getSelfAnalysisTaskList_Export",method:"post",responseType:"blob",data:e})}function m(e){return Object(a["a"])({url:"/ExcelExport/getGroupAnalysisTaskList_Export",method:"post",responseType:"blob",data:e})}function g(e){return Object(n["a"])({url:"/ExcelExport/getTrialReadingCriterionCanExportDocumentList?TrialReadingCriterionId=".concat(e.TrialReadingCriterionId),method:"get"})}function v(e){return Object(a["a"])({url:"/ExcelExport/getOverallTumorEvaluationList_Export",method:"post",responseType:"blob",data:e})}function b(e){return Object(a["a"])({url:"/ExcelExport/getEvaluationOfTumorEfficacy_Export",method:"post",responseType:"blob",data:e})}function y(e){return Object(a["a"])({url:"/ExcelExport/getDetailedOfEvaluatedLesion_Export",method:"post",responseType:"blob",data:e})}function w(e){return Object(a["a"])({url:"/ExcelExport/getStudyUploadMonitor_Export",method:"post",responseType:"blob",data:e})}function _(e){return Object(a["a"])({url:"/ExcelExport/getSubjectProgress_Export",method:"post",responseType:"blob",data:e})}},"3f73":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"siteResearch-wrapper"},[i("el-row",[i("el-col",{attrs:{span:12}},[i("h3",[e._v(e._s(e.$t("trials:workbench:title:pendingSiteResearch")))])]),e._v(" "),i("el-col",{staticStyle:{"text-align":"right"},attrs:{span:12}},[i("h3",[i("Pagination",{staticClass:"page",staticStyle:{display:"inline-block"},attrs:{total:e.total,page:e.listQuery.pageIndex,limit:e.listQuery.pageSize,layout:"total, sizes, prev, pager, next",background:!1},on:{"update:page":function(t){return e.$set(e.listQuery,"pageIndex",t)},"update:limit":function(t){return e.$set(e.listQuery,"pageSize",t)},pagination:e.getList}}),e._v(" "),i("el-button",{attrs:{icon:"el-icon-refresh-left",circle:"",title:e.$t("common:button:reset"),size:"small"},on:{click:e.handleReset}})],1)])],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],ref:"siteResearchList",attrs:{data:e.list,"show-header":!0,height:"calc(100% - 100px)"},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("trials:workbench:table:trialId"),prop:"TrialCode","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("trials:workbench:table:experimentName"),prop:"ExperimentName","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("trials:workbench:table:researchNo"),prop:"ResearchProgramNo","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("trials:pendingSiteResearch:table:siteCount"),prop:"ApprovalRequiredSiteCount","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action")},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{icon:"el-icon-edit-outline",circle:"",title:e.$t("trials:pendingSiteResearch:action:audit")},on:{click:function(i){return e.handleAudit(t.row)}}})]}}])})],1)],1)},a=[],r=i("3e42"),o=i("333d"),s=function(){return{pageIndex:1,pageSize:20,asc:!0,sortField:""}},l={name:"SiteResearch",components:{Pagination:o["default"]},data:function(){return{listLoading:!1,list:[],listQuery:s(),total:0}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.listLoading=!0,Object(r["nd"])(this.listQuery).then((function(t){e.listLoading=!1,e.total=t.Result.TotalCount,e.list=t.Result.CurrentPageData})).catch((function(){e.listLoading=!1}))},handleAudit:function(e){this.$router.push({path:"/trials/trials-panel/attachments/site-research?trialId=".concat(e.Id,"&trialCode=").concat(e.TrialCode,"&researchProgramNo=").concat(e.ResearchProgramNo)})},handleReset:function(){var e=this;this.listQuery=s(),this.getList(),this.$nextTick((function(){e.$refs.siteResearchList.clearSort()}))},handleSortByColumn:function(e){"ascending"===e.order?this.listQuery.asc=!0:this.listQuery.asc=!1,this.listQuery.sortField=e.prop,this.getList()}}},c=l,u=(i("d36a"),i("2877")),d=Object(u["a"])(c,n,a,!1,null,"049a176a",null);t["default"]=d.exports},"3f77":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{ref:"sponsorForm",staticClass:"demo-ruleForm",attrs:{model:e.form,rules:e.rules,size:"small","label-width":"150px"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:"Sponsor Name: ",prop:"SponsorName"}},[i("el-input",{model:{value:e.form.SponsorName,callback:function(t){e.$set(e.form,"SponsorName",t)},expression:"form.SponsorName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Sponsor NameCN: ",prop:"SponsorName"}},[i("el-input",{model:{value:e.form.SponsorNameCN,callback:function(t){e.$set(e.form,"SponsorNameCN",t)},expression:"form.SponsorNameCN"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Sponsor Code: ",prop:"SponsorName"}},[i("el-input",{model:{value:e.form.SponsorCode,callback:function(t){e.$set(e.form,"SponsorCode",t)},expression:"form.SponsorCode"}})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.handleCancel}},[e._v("Cancel")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleSave}},[e._v("Save")])],1)],1)])},a=[],r=i("db72"),o=(i("ac6a"),i("456d"),i("e56e")),s={name:"SponsorForm",props:{data:{type:Object,default:function(){return{}}}},data:function(){return{btnLoading:!1,form:{Id:"",SponsorName:"",SponsorNameCN:"",SponsorCode:""},rules:{SponsorName:[{required:!0,message:"Please specify",trigger:"blur"},{max:50,message:"The maximum length is 50"}],SponsorNameCN:[{required:!0,message:"Please specify",trigger:"blur"},{max:50,message:"The maximum length is 50"}],SponsorCode:[{required:!0,message:"Please specify",trigger:"blur"},{max:50,message:"The maximum length is 50"}]}}},mounted:function(){Object.keys(this.data).length&&this.data.Id&&(this.form=Object(r["a"])({},this.data))},methods:{handleSave:function(){var e=this;this.$refs.sponsorForm.validate((function(t){t&&(e.btnLoading=!0,Object(o["s"])(e.form).then((function(t){e.btnLoading=!1,t.IsSuccess&&(e.$message.success("Saved successfully"),e.$refs["sponsorForm"].resetFields(),e.$emit("getList"),e.$emit("close"))})).catch((function(){e.btnLoading=!1})))}))},handleCancel:function(){this.$emit("close")}}},l=s,c=i("2877"),u=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},"3f8e":function(e,t,i){var n=i("8727"),a=n.createElement,r=i("20c8"),o=i("9850"),s=i("1687"),l=i("e86a"),c=i("a73c"),u=i("76a5"),d=r.CMD,f=Array.prototype.join,h="none",p=Math.round,m=Math.sin,g=Math.cos,v=Math.PI,b=2*Math.PI,y=180/v,w=1e-4;function _(e){return p(1e4*e)/1e4}function I(e){return e<w&&e>-w}function x(e,t){var i=t?e.textFill:e.fill;return null!=i&&i!==h}function S(e,t){var i=t?e.textStroke:e.stroke;return null!=i&&i!==h}function T(e,t){t&&C(e,"transform","matrix("+f.call(t,",")+")")}function C(e,t,i){(!i||"linear"!==i.type&&"radial"!==i.type)&&e.setAttribute(t,i)}function k(e,t,i){e.setAttributeNS("http://www.w3.org/1999/xlink",t,i)}function R(e,t,i,n){if(x(t,i)){var a=i?t.textFill:t.fill;a="transparent"===a?h:a,C(e,"fill",a),C(e,"fill-opacity",null!=t.fillOpacity?t.fillOpacity*t.opacity:t.opacity)}else C(e,"fill",h);if(S(t,i)){var r=i?t.textStroke:t.stroke;r="transparent"===r?h:r,C(e,"stroke",r);var o=i?t.textStrokeWidth:t.lineWidth,s=!i&&t.strokeNoScale?n.getLineScale():1;C(e,"stroke-width",o/s),C(e,"paint-order",i?"stroke":"fill"),C(e,"stroke-opacity",null!=t.strokeOpacity?t.strokeOpacity:t.opacity);var l=t.lineDash;l?(C(e,"stroke-dasharray",t.lineDash.join(",")),C(e,"stroke-dashoffset",p(t.lineDashOffset||0))):C(e,"stroke-dasharray",""),t.lineCap&&C(e,"stroke-linecap",t.lineCap),t.lineJoin&&C(e,"stroke-linejoin",t.lineJoin),t.miterLimit&&C(e,"stroke-miterlimit",t.miterLimit)}else C(e,"stroke",h)}function D(e){for(var t=[],i=e.data,n=e.len(),a=0;a<n;){var r=i[a++],o="",s=0;switch(r){case d.M:o="M",s=2;break;case d.L:o="L",s=2;break;case d.Q:o="Q",s=4;break;case d.C:o="C",s=6;break;case d.A:var l=i[a++],c=i[a++],u=i[a++],f=i[a++],h=i[a++],w=i[a++],x=i[a++],S=i[a++],T=Math.abs(w),C=I(T-b)||(S?w>=b:-w>=b),k=w>0?w%b:w%b+b,R=!1;R=!!C||!I(T)&&k>=v===!!S;var D=_(l+u*g(h)),L=_(c+f*m(h));C&&(w=S?b-1e-4:1e-4-b,R=!0,9===a&&t.push("M",D,L));var O=_(l+u*g(h+w)),$=_(c+f*m(h+w));t.push("A",_(u),_(f),p(x*y),+R,+S,O,$);break;case d.Z:o="Z";break;case d.R:O=_(i[a++]),$=_(i[a++]);var N=_(i[a++]),A=_(i[a++]);t.push("M",O,$,"L",O+N,$,"L",O+N,$+A,"L",O,$+A,"L",O,$);break}o&&t.push(o);for(var P=0;P<s;P++)t.push(_(i[a++]))}return t.join(" ")}var L={brush:function(e){var t=e.style,i=e.__svgEl;i||(i=a("path"),e.__svgEl=i),e.path||e.createPathProxy();var n=e.path;if(e.__dirtyPath){n.beginPath(),n.subPixelOptimize=!1,e.buildPath(n,e.shape),e.__dirtyPath=!1;var r=D(n);r.indexOf("NaN")<0&&C(i,"d",r)}R(i,t,!1,e),T(i,e.transform),null!=t.text?M(e,e.getBoundingRect()):q(e)}},O={brush:function(e){var t=e.style,i=t.image;if(i instanceof HTMLImageElement){var n=i.src;i=n}if(i){var r=t.x||0,o=t.y||0,s=t.width,l=t.height,c=e.__svgEl;c||(c=a("image"),e.__svgEl=c),i!==e.__imageSrc&&(k(c,"href",i),e.__imageSrc=i),C(c,"width",s),C(c,"height",l),C(c,"x",r),C(c,"y",o),T(c,e.transform),null!=t.text?M(e,e.getBoundingRect()):q(e)}}},$={},N=new o,A={},P=[],E={left:"start",right:"end",center:"middle",middle:"middle"},M=function(e,t){var i=e.style,n=e.transform,r=e instanceof u||i.transformText;e.__dirty&&c.normalizeTextStyle(i,!0);var o=i.text;if(null!=o&&(o+=""),c.needDrawText(o,i)){null==o&&(o=""),!r&&n&&(N.copy(t),N.applyTransform(n),t=N);var s=e.__textSvgEl;s||(s=a("text"),e.__textSvgEl=s);var d=s.style,f=i.font||l.DEFAULT_FONT,h=s.__computedFont;f!==s.__styleFont&&(d.font=s.__styleFont=f,h=s.__computedFont=d.font);var p=i.textPadding,m=i.textLineHeight,g=e.__textCotentBlock;g&&!e.__dirtyText||(g=e.__textCotentBlock=l.parsePlainText(o,h,p,m,i.truncate));var v=g.outerHeight,b=g.lineHeight;c.getBoxPosition(A,e,i,t);var y=A.baseX,w=A.baseY,_=A.textAlign||"left",I=A.textVerticalAlign;F(s,r,n,i,t,y,w);var x=l.adjustTextY(w,v,I),S=y,T=x;p&&(S=j(y,_,p),T+=p[0]),T+=b/2,R(s,i,!0,e);var C=g.canCacheByTextString,k=e.__tspanList||(e.__tspanList=[]),D=k.length;if(C&&e.__canCacheByTextString&&e.__text===o){if(e.__dirtyText&&D)for(var L=0;L<D;++L)V(k[L],_,S,T+L*b)}else{e.__text=o,e.__canCacheByTextString=C;var O=g.lines,$=O.length;for(L=0;L<$;L++){var P=k[L],E=O[L];P?P.__zrText!==E&&(P.innerHTML="",P.appendChild(document.createTextNode(E))):(P=k[L]=a("tspan"),s.appendChild(P),P.appendChild(document.createTextNode(E))),V(P,_,S,T+L*b)}if(D>$){for(;L<D;L++)s.removeChild(k[L]);k.length=$}}}};function F(e,t,i,n,a,r,o){s.identity(P),t&&i&&s.copy(P,i);var l=n.textRotation;if(a&&l){var c=n.textOrigin;"center"===c?(r=a.width/2+a.x,o=a.height/2+a.y):c&&(r=c[0]+a.x,o=c[1]+a.y),P[4]-=r,P[5]-=o,s.rotate(P,P,l),P[4]+=r,P[5]+=o}T(e,P)}function j(e,t,i){return"right"===t?e-i[1]:"center"===t?e+i[3]/2-i[1]/2:e+i[3]}function V(e,t,i,n){C(e,"dominant-baseline","middle"),C(e,"text-anchor",E[t]),C(e,"x",i),C(e,"y",n)}function q(e){e&&e.__textSvgEl&&(e.__textSvgEl.parentNode&&e.__textSvgEl.parentNode.removeChild(e.__textSvgEl),e.__textSvgEl=null,e.__tspanList=[],e.__text=null)}$.drawRectText=M,$.brush=function(e){var t=e.style;null!=t.text?M(e,!1):q(e)},t.path=L,t.image=O,t.text=$},"3fa8":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"criterion-config"},[i("div",{staticClass:"search-form",staticStyle:{display:"flex","justify-content":"space-between"}},[i("el-form",{staticClass:"base-search-form",attrs:{inline:!0,size:"mini"}},[i("el-form-item",{attrs:{label:"阅片问题"}},[i("el-input",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.QuestionName,callback:function(t){e.$set(e.searchData,"QuestionName",t)},expression:"searchData.QuestionName"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:e.handleReset}},[e._v("\n 重置\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.handleSearch}},[e._v("\n 查询\n ")])],1)],1),e._v(" "),i("div",[i("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(t){e.preview.visible=!0}}},[e._v("预览")]),e._v(" "),e.data.IsCompleteConfig||e.data.IsSystemData?e._e():i("el-button",{attrs:{size:"mini",type:"primary"},on:{click:e.handleAdd}},[e._v("\n 添加\n ")])],1)],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{height:"450",data:e.list,stripe:""},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{prop:"ShowOrder",label:"序号","min-width":"70"}}),e._v(" "),i("el-table-column",{attrs:{prop:"GroupName",label:"分组名称","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"QuestionName",label:"阅片问题","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Type",label:"类型","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("Criterion_Question_Type",t.row.Type))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TypeValue",label:"选项","show-overflow-tooltip":"","min-width":"110"}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsRequired",label:"是否必填","min-width":"90","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.IsRequired?"是":"否")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsJudgeQuestion",label:"是否裁判问题","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.IsJudgeQuestion?"是":"否")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ParentQuestionShowOrder",label:"父问题","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ParentTriggerValue",label:"父问题触发值","show-overflow-tooltip":""}}),e._v(" "),e.data.IsCompleteConfig||e.data.IsSystemData?e._e():i("el-table-column",{attrs:{prop:"",label:"操作",width:"180","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("\n 编辑\n ")]),e._v(" "),i("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("\n 删除\n ")])]}}],null,!1,15902945)})],1),e._v(" "),i("pagination",{staticClass:"page",staticStyle:{"text-align":"right","margin-top":"10px"},attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}}),e._v(" "),e.addOrEdit.visible?i("el-dialog",{attrs:{visible:e.addOrEdit.visible,"close-on-click-modal":!1,title:e.addOrEdit.title,width:"500px","append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){return e.$set(e.addOrEdit,"visible",t)}}},[i("CriterionQuestionForm",{ref:"addOrEdit",attrs:{data:e.rowData},on:{close:function(t){e.addOrEdit.visible=!1},getList:e.getList}})],1):e._e(),e._v(" "),e.preview.visible?i("el-dialog",{directives:[{name:"dialogDrag",rawName:"v-dialogDrag"}],attrs:{visible:e.preview.visible,"close-on-click-modal":!1,title:e.preview.title,width:"500px","append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){return e.$set(e.preview,"visible",t)}}},[i("div",{staticClass:"base-dialog-body"},[i("Questions",{ref:"previewQuestions",attrs:{"criterion-id":e.data.Id}})],1)]):e._e()],1)},a=[],r=i("db72"),o=i("3e42"),s=i("333d"),l=i("a031"),c=i("15c0"),u=function(){return{QuestionName:"",PageIndex:1,PageSize:20}},d={name:"QcQuestions",components:{Pagination:s["default"],CriterionQuestionForm:l["default"],Questions:c["default"]},props:{data:{type:Object,default:function(){return{}}}},data:function(){return{searchData:u(),list:[],total:0,loading:!1,rowData:{},addOrEdit:{visible:!1,title:""},preview:{visible:!1,title:"eCRF预览"}}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0,this.searchData.ReadingQuestionCriterionTrialId=this.data.Id,Object(o["Xc"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},handleAdd:function(){this.rowData={ReadingQuestionCriterionTrialId:this.data.Id,Id:""},this.addOrEdit.title="添加",this.addOrEdit.visible=!0},handleEdit:function(e){this.rowData=Object(r["a"])({},e),this.addOrEdit.title="编辑",this.addOrEdit.visible=!0},handleDelete:function(e){var t=this;this.$confirm("是否确认删除?",{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.loading=!0,Object(o["sb"])(e.Id).then((function(e){t.loading=!1,e.IsSuccess&&(t.getList(),t.$message.success("删除成功!"))})).catch((function(){t.loading=!1}))}))},handleSearch:function(){this.getList()},handleReset:function(){this.searchData=u(),this.getList()},handleSortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()}}},f=d,h=i("2877"),p=Object(h["a"])(f,n,a,!1,null,null,null);t["default"]=p.exports},"3fa9":function(e,t,i){},"3fc1":function(e,t,i){"use strict";i("13f4")},"3fd5":function(e,t,i){"use strict";i("de10")},"3fdc":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"emailForm",attrs:{model:e.form,"label-width":"120px",size:"small",rules:e.rules}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:"Code: ",prop:"Code"}},[i("el-input",{model:{value:e.form.Code,callback:function(t){e.$set(e.form,"Code",t)},expression:"form.Code"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"业务场景: ",prop:"BusinessScenarioEnum"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{size:"small"},model:{value:e.form.BusinessScenarioEnum,callback:function(t){e.$set(e.form,"BusinessScenarioEnum",t)},expression:"form.BusinessScenarioEnum"}},e._l(e.$d.Common_File_BusinessScenario,(function(e){return i("el-option",{key:e.id,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"是否需要回执: ",prop:"IsReturnRequired"}},[i("el-radio-group",{model:{value:e.form.IsReturnRequired,callback:function(t){e.$set(e.form,"IsReturnRequired",t)},expression:"form.IsReturnRequired"}},[i("el-radio",{attrs:{label:!0}},[e._v("是")]),e._v(" "),i("el-radio",{attrs:{label:!1}},[e._v("否")])],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"是否加急: ",prop:"IsUrgent"}},[i("el-radio-group",{model:{value:e.form.IsUrgent,callback:function(t){e.$set(e.form,"IsUrgent",t)},expression:"form.IsUrgent"}},[i("el-radio",{attrs:{label:!0}},[e._v("是")]),e._v(" "),i("el-radio",{attrs:{label:!1}},[e._v("否")])],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"是否自动发送: ",prop:"IsAutoSend"}},[i("el-radio-group",{model:{value:e.form.IsAutoSend,callback:function(t){e.$set(e.form,"IsAutoSend",t)},expression:"form.IsAutoSend"}},[i("el-radio",{attrs:{label:!0}},[e._v("是")]),e._v(" "),i("el-radio",{attrs:{label:!1}},[e._v("否")])],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"是否区分标准: ",prop:"IsDistinguishCriteria"}},[i("el-radio-group",{model:{value:e.form.IsDistinguishCriteria,callback:function(t){e.$set(e.form,"IsDistinguishCriteria",t)},expression:"form.IsDistinguishCriteria"}},[i("el-radio",{attrs:{label:!0}},[e._v("是")]),e._v(" "),i("el-radio",{attrs:{label:!1}},[e._v("否")])],1)],1),e._v(" "),e.form.Id?i("el-form-item",{attrs:{label:"是否启用: ",prop:"IsEnable"}},[i("el-radio-group",{model:{value:e.form.IsEnable,callback:function(t){e.$set(e.form,"IsEnable",t)},expression:"form.IsEnable"}},[i("el-radio",{attrs:{label:!0}},[e._v("是")]),e._v(" "),i("el-radio",{attrs:{label:!1}},[e._v("否")])],1)],1):e._e()],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleSave}},[e._v("Save")])],1)],1)])},a=[],r=(i("96cf"),i("3b8d")),o=i("e56e"),s={props:{data:{type:Object,default:function(){return{}}}},data:function(){return{form:{Id:"",Code:"",BusinessScenarioEnum:null,IsDistinguishCriteria:!0,IsReturnRequired:!0,IsUrgent:!0,IsEnable:!0,IsAutoSend:!0},rules:{Code:[{required:!0,message:"Please select",trigger:["blur"]}],BusinessScenarioEnum:[{required:!0,message:"Please select",trigger:["blur"]}]},scenarioOption:[],loading:!1}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:for(t in this.loading=!0,this.form)this.data.hasOwnProperty(t)&&(this.form[t]=this.data[t]);this.loading=!1;case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),handleSave:function(){var e=this;this.$refs.emailForm.validate((function(t){t&&(e.loading=!0,Object(o["i"])(e.form).then((function(t){e.loading=!1,e.$emit("closeDialog"),e.$emit("getList"),e.$message.success("Saved successfully")})).catch((function(){e.loading=!1})))}))}}},l=s,c=i("2877"),u=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},"3fde":function(e,t,i){"use strict";i("6592")},"401b":function(e,t){var i="undefined"===typeof Float32Array?Array:Float32Array;function n(e,t){var n=new i(2);return null==e&&(e=0),null==t&&(t=0),n[0]=e,n[1]=t,n}function a(e,t){return e[0]=t[0],e[1]=t[1],e}function r(e){var t=new i(2);return t[0]=e[0],t[1]=e[1],t}function o(e,t,i){return e[0]=t,e[1]=i,e}function s(e,t,i){return e[0]=t[0]+i[0],e[1]=t[1]+i[1],e}function l(e,t,i,n){return e[0]=t[0]+i[0]*n,e[1]=t[1]+i[1]*n,e}function c(e,t,i){return e[0]=t[0]-i[0],e[1]=t[1]-i[1],e}function u(e){return Math.sqrt(f(e))}var d=u;function f(e){return e[0]*e[0]+e[1]*e[1]}var h=f;function p(e,t,i){return e[0]=t[0]*i[0],e[1]=t[1]*i[1],e}function m(e,t,i){return e[0]=t[0]/i[0],e[1]=t[1]/i[1],e}function g(e,t){return e[0]*t[0]+e[1]*t[1]}function v(e,t,i){return e[0]=t[0]*i,e[1]=t[1]*i,e}function b(e,t){var i=u(t);return 0===i?(e[0]=0,e[1]=0):(e[0]=t[0]/i,e[1]=t[1]/i),e}function y(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var w=y;function _(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var I=_;function x(e,t){return e[0]=-t[0],e[1]=-t[1],e}function S(e,t,i,n){return e[0]=t[0]+n*(i[0]-t[0]),e[1]=t[1]+n*(i[1]-t[1]),e}function T(e,t,i){var n=t[0],a=t[1];return e[0]=i[0]*n+i[2]*a+i[4],e[1]=i[1]*n+i[3]*a+i[5],e}function C(e,t,i){return e[0]=Math.min(t[0],i[0]),e[1]=Math.min(t[1],i[1]),e}function k(e,t,i){return e[0]=Math.max(t[0],i[0]),e[1]=Math.max(t[1],i[1]),e}t.create=n,t.copy=a,t.clone=r,t.set=o,t.add=s,t.scaleAndAdd=l,t.sub=c,t.len=u,t.length=d,t.lenSquare=f,t.lengthSquare=h,t.mul=p,t.div=m,t.dot=g,t.scale=v,t.normalize=b,t.distance=y,t.dist=w,t.distanceSquare=_,t.distSquare=I,t.negate=x,t.lerp=S,t.applyTransform=T,t.min=C,t.max=k},"404e":function(e,t,i){"use strict";i("5ade")},"408c":function(e,t,i){var n=i("2b3e"),a=function(){return n.Date.now()};e.exports=a},"411cc":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"readingCriterionsForm",attrs:{model:e.form,rules:e.rules,"label-width":"120px",size:"small"}},[i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:readingCriterion:title:formQs")}},[1===e.form.FormType?i("QuestionsList",{attrs:{"trial-reading-criterion-id":e.trialReadingCriterionId,list:e.readingInfo.TrialQuestionList,"trial-criterion-id":e.readingInfo.TrialCriterionId,"is-confirm":e.isConfirm,"is-from-system":e.readingInfo.IsFromSystem,"digit-places":e.digitPlaces},on:{reloadArbitrationRules:e.reloadArbitrationRules}}):e._e()],1),e._v(" "),e.hasPermi(["trials:trials-panel:setting:reading-unit:edit"])?i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:function(t){e.configBaseDataVisible=!0}}},[e._v("\n "+e._s(e.$t("trials:readingUnit:readingCriterion:title:baseDataCfg"))+"\n ")])],1):e._e()],1),e._v(" "),e.configBaseDataVisible?i("el-dialog",{attrs:{title:e.$t("trials:readingUnit:readingCriterion:title:baseDataCfg"),visible:e.configBaseDataVisible,"close-on-click-modal":!1,fullscreen:!0,"append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.configBaseDataVisible=t}}},[i("BaseDataConfig",{attrs:{"trial-reading-criterion-id":e.trialReadingCriterionId,"is-from-system":e.readingInfo.IsFromSystem,"is-confirm":e.isConfirm}})],1):e._e()],1)},a=[],r=(i("c5f6"),i("3e42")),o=i("f4bc"),s=i("b147"),l=i("4dc3"),c={name:"ReadingCriterion",components:{PageBreakList:o["default"],QuestionsList:s["default"],BaseDataConfig:l["default"]},props:{digitPlaces:{type:Number,default:0},trialReadingCriterionId:{type:String,default:""}},data:function(){return{loading:!1,form:{TrialCriterionId:"",FormType:null,DigitPlaces:null},rules:{FormType:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}],DigitPlaces:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}]},readingInfo:{},isConfirm:!0,configBaseDataVisible:!1}},mounted:function(){this.initPage()},methods:{initPage:function(){var e=this;this.loading=!0;var t=this.$route.query.trialId;Object(r["Ud"])({trialId:t,TrialReadingCriterionId:this.trialReadingCriterionId}).then((function(t){for(var i in e.loading=!1,e.readingInfo=t.Result,e.form)t.Result.hasOwnProperty(i)&&(e.form[i]=t.Result[i]);e.isConfirm=t.Result.IsSign})).catch((function(){e.loading=!1}))},handleSave:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return new Promise((function(i,n){e.$refs["readingCriterionsForm"].validate((function(n){n?(e.loading=!0,t||(e.form.IsSignSave=!0),e.form.TrialReadingCriterionId=e.trialReadingCriterionId,Object(r["We"])(e.form).then((function(n){e.loading=!1,n.IsSuccess&&t&&e.$message.success(e.$t("common:message:savedSuccessfully")),e.$emit("reloadArbitrationRules"),i(!0)})).catch((function(t){e.loading=!1,i(!1)}))):i(!1)}))}))},reloadArbitrationRules:function(){this.$emit("reloadArbitrationRules")},handleConfig:function(){}}},u=c,d=i("2877"),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},"414c":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"ImageReviewTask-list app-container"},[i("el-collapse",{model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},[i("el-form",{ref:"qualifiedForm",attrs:{model:e.reportResult}},[i("el-form-item",{attrs:{prop:"Qualified",label:"Qualified for Review:","label-width":"200px",rules:[{required:!0,message:"",trigger:"blur"}]}},[i("el-radio-group",{attrs:{disabled:e.isReportSaved},model:{value:e.reportResult.Qualified,callback:function(t){e.$set(e.reportResult,"Qualified",t)},expression:"reportResult.Qualified"}},[i("el-radio",{attrs:{label:!0}},[e._v("Qualified")]),e._v(" "),i("el-radio",{attrs:{label:!1}},[e._v("Non-Qualified")])],1),e._v(" "),!1===e.reportResult.Qualified?i("div",[i("el-radio-group",{attrs:{disabled:e.isReportSaved},model:{value:e.reportResult.AffectRead,callback:function(t){e.$set(e.reportResult,"AffectRead",t)},expression:"reportResult.AffectRead"}},[i("el-radio",{attrs:{label:!0}},[e._v("Affect")]),e._v(" "),i("el-radio",{attrs:{label:!1}},[e._v("Non-Affect")])],1),e._v(" "),i("el-input",{attrs:{type:"textarea",rows:4,placeholder:"Please input Reason Or Note"},model:{value:e.reportResult.AffectReadNote,callback:function(t){e.$set(e.reportResult,"AffectReadNote",t)},expression:"reportResult.AffectReadNote"}})],1):e._e()],1)],1),e._v(" "),i("el-collapse-item",{attrs:{title:"Non-nodular Target Lesions (Non-lymph Node Target Lesions)",name:"Non-lymphNodeTarget",disabled:""}},[i("el-table",{ref:"Non-lymphNodeTarget",attrs:{data:e.NonlymphNodeTargetList,stripe:"",size:"small"}},[i("el-table-column",{attrs:{type:"index",width:"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TULNKID",label:"Lesion No","show-overflow-tooltip":"","min-width":"100"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Anatomy",label:"Anatomy","show-overflow-tooltip":"","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.TULOC+" "+t.row.TULAT+" "+t.row.TUDIR))]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TRORRES",label:"Long Axis Measurement(mm)","show-overflow-tooltip":"","min-width":"150"}}),e._v(" "),i("el-table-column",{attrs:{label:"Anatomy Description","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-input",{attrs:{type:"text",placeholder:"",size:"small",disabled:e.isReportSaved},model:{value:t.row.LocDescription,callback:function(i){e.$set(t.row,"LocDescription",i)},expression:"scope.row.LocDescription"}})]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Note",label:"Comments","show-overflow-tooltip":"","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-input",{attrs:{type:"text",placeholder:"",size:"small",disabled:e.isReportSaved},model:{value:t.row.Note,callback:function(i){e.$set(t.row,"Note",i)},expression:"scope.row.Note"}})]}}])})],1)],1),e._v(" "),i("el-collapse-item",{attrs:{title:"Nodular Target Lesions (Lymph Node Target Lesions)",name:"LymphNodeTarget",disabled:""}},[i("el-table",{ref:"Non-lymphNodeTarget",attrs:{data:e.LymphNodeTargetList,stripe:"",size:"small"}},[i("el-table-column",{attrs:{type:"index",width:"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TULNKID",label:"Lesion No","show-overflow-tooltip":"","min-width":"100"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Anatomy",label:"Anatomy","show-overflow-tooltip":"","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.TULOC+" "+t.row.TULAT+" "+t.row.TUDIR))]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TRORRES",label:"Short Axis Measurement(mm)","show-overflow-tooltip":"","min-width":"150"}}),e._v(" "),i("el-table-column",{attrs:{prop:"LocDescription",label:"Anatomy Description","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-input",{attrs:{type:"text",placeholder:"",size:"small",disabled:e.isReportSaved},model:{value:t.row.LocDescription,callback:function(i){e.$set(t.row,"LocDescription",i)},expression:"scope.row.LocDescription"}})]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Note",label:"Comments","show-overflow-tooltip":"","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-input",{attrs:{type:"text",placeholder:"",size:"small",disabled:e.isReportSaved},model:{value:t.row.Note,callback:function(i){e.$set(t.row,"Note",i)},expression:"scope.row.Note"}})]}}])})],1)],1),e._v(" "),i("el-collapse-item",{attrs:{title:"Non-target Lesion",name:"Non-targetLesion",disabled:""}},[i("el-table",{ref:"Non-lymphNodeTarget",attrs:{data:e.NontargetLesionList,stripe:"",size:"small"}},[i("el-table-column",{attrs:{type:"index",width:"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TULNKID",label:"Lesion No","show-overflow-tooltip":"","min-width":"100"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Anatomy",label:"Anatomy","show-overflow-tooltip":"","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.TULOC+" "+t.row.TULAT+" "+t.row.TUDIR))]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"LocDescription",label:"Anatomy Description","show-overflow-tooltip":"","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-input",{attrs:{type:"text",placeholder:"",size:"small",disabled:e.isReportSaved},model:{value:t.row.LocDescription,callback:function(i){e.$set(t.row,"LocDescription",i)},expression:"scope.row.LocDescription"}})]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Note",label:"Comments","show-overflow-tooltip":"","min-width":"100",disabled:e.isReportSaved},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-input",{attrs:{type:"text",placeholder:"",size:"small"},model:{value:t.row.Note,callback:function(i){e.$set(t.row,"Note",i)},expression:"scope.row.Note"}})]}}])})],1)],1),e._v(" "),i("el-collapse-item",{attrs:{title:"Measurements Calculation",name:"MeasurementsCalculation",disabled:""}},[i("el-row",{attrs:{gutter:20}},[i("el-col",{attrs:{span:6}},[i("div",{staticClass:"grid-content bg-purple"},[i("span",{staticStyle:{"margin-left":"10px"}},[e._v("SOD(mm):")]),e._v(" "),i("el-input",{attrs:{disabled:""},model:{value:e.SOD,callback:function(t){e.SOD=t},expression:"SOD"}})],1)]),e._v(" "),i("el-col",{attrs:{span:6,offset:6}},[i("div",{staticClass:"grid-content bg-purple"},[i("span",{staticStyle:{"margin-left":"10px"}},[e._v("Non-nodular Lesions SOD(mm):")]),e._v(" "),i("el-input",{attrs:{disabled:""},model:{value:e.NonnodularLesionsSOD,callback:function(t){e.NonnodularLesionsSOD=t},expression:"NonnodularLesionsSOD"}})],1)])],1)],1),e._v(" "),i("el-collapse-item",{attrs:{title:"Disease Situation",name:"DiseaseSituation",disabled:""}},[i("el-form",{ref:"situationForm",attrs:{model:e.reportResult,"label-width":"100px"}},[i("el-form-item",{attrs:{prop:"DiseaseSituation",label:"Disease present or absent:","label-width":"200px",rules:[{required:!0,message:"",trigger:"blur"}]}},[i("el-radio-group",{attrs:{disabled:e.isReportSaved},model:{value:e.reportResult.DiseaseSituation,callback:function(t){e.$set(e.reportResult,"DiseaseSituation",t)},expression:"reportResult.DiseaseSituation"}},[i("el-radio",{attrs:{label:1}},[e._v("Present")]),e._v(" "),i("el-radio",{attrs:{label:2}},[e._v("Absent")]),e._v(" "),i("el-radio",{attrs:{label:3}},[e._v("NE")])],1)],1),e._v(" "),i("el-form-item",{attrs:{prop:"Comments",label:"Comments"}},[i("el-input",{staticStyle:{margin:"10px"},attrs:{type:"textarea",rows:2,placeholder:"Comment",disabled:e.isReportSaved},model:{value:e.reportResult.Comment,callback:function(t){e.$set(e.reportResult,"Comment",t)},expression:"reportResult.Comment"}})],1)],1)],1)],1),e._v(" "),i("div",{attrs:{id:"footer"}},[i("el-button",{staticStyle:{float:"left","margin-left":"500px"},attrs:{type:"primary",disabled:e.isReportSaved},on:{click:e.addBaseLine}},[e._v("Save")]),e._v(" "),i("el-button",{staticStyle:{float:"left","margin-left":"600px"},attrs:{type:"primary",disabled:e.isReportSaved},on:{click:e.submiteReport}},[e._v("Submit Report")])],1)],1)},a=[],r=(i("55dd"),i("28a5"),i("ac6a"),i("0a05")),o={name:"WorkloadTask",data:function(){return{isReportSaved:!1,pageTPInfo:"",activeNames:["ImageQualityAssessment","Non-lymphNodeTarget","LymphNodeTarget","Non-targetLesion","MeasurementsCalculation","DiseaseSituation"],NonlymphNodeTargetEditVisible:!1,LymphNodeTargetEditVisible:!1,NontargetLesionEditVisible:!1,lymphNodeTargetFormModel:{},nonlymphNodeTargetFormModel:{},nontargetLesionFormModel:{},NonlymphNodeTargetList:[],LymphNodeTargetList:[],NontargetLesionList:[],imageLabelList:[],imageDataHasUpdate:!1,reportResult:{TpCode:"",Qualified:"",DiseaseProgression:"",NotEvaluable:"",Timepoint:"",TrialCode:"",SubjectCode:"",VisitNum:"",VisitName:"",DiseaseSituation:"",Comment:"",TPId:"",DicomStudyId:""}}},computed:{SOD:function(){var e=0;return this.NonlymphNodeTargetList.forEach((function(t){return e+=parseInt(t.TRORRES)})),this.LymphNodeTargetList.forEach((function(t){return e+=parseInt(t.TRORRES)})),e},NonnodularLesionsSOD:function(){var e=0;return this.NonlymphNodeTargetList.forEach((function(t){return e+=parseInt(t.TRORRES)})),e}},created:function(){this.pageTPInfo=this.$route.query,this.reportResult.TpCode=this.pageTPInfo.WorkloadCode,this.reportResult.TrialCode=this.pageTPInfo.TrialCode,this.reportResult.SubjectCode=this.pageTPInfo.SubjectCode,this.reportResult.VisitNum=this.pageTPInfo.VisitNum,this.reportResult.VisitName=this.pageTPInfo.VisitName,this.reportResult.TPId=this.pageTPInfo.WorkloadId,this.reportResult.DicomStudyId=this.pageTPInfo.StudyId,this.isReportSaved=80===this.pageTPInfo.Status,this.getBLLineLesion()},mounted:function(){var e=this;window.addEventListener("storage",(function(t){if(-1!==t.url.indexOf("baseLine")&&"measureData"===t.key){var i=JSON.parse(t.newValue),n=i[e.pageTPInfo.WorkloadCode];if(i){e.imageDataHasUpdate=!0,e.imageLabelList=[],n.forEach((function(t){return e.imageLabelList.push(t)}));var a=n.filter((function(e){return 1===e.lesionType})),r=n.filter((function(e){return 2===e.lesionType})),o=n.filter((function(e){return 3===e.lesionType}));a.length>0&&(a.forEach((function(t){var i=t.lesionLocation.split("-");t.TRORRES=t.lesionValue.substring(0,t.lesionValue.length-2),t.TULOC=i[0]||"",t.TULAT=i[1]||"",t.TUDIR=i[2]||"";var n=e.NonlymphNodeTargetList.filter((function(e){return e.lesionValue===t.lesionValue&&e.lesionLocation===t.lesionLocation}))[0];n&&(t.LocDescription=n.LocDescription,t.Note=n.Note)})),e.NonlymphNodeTargetList=a),r.length>0&&(r.forEach((function(t){var i=t.lesionLocation.split("-");t.TRORRES=t.lesionValue.substring(0,t.lesionValue.length-2),t.TULOC=i[0]||"",t.TULAT=i[1]||"",t.TUDIR=i[2]||"";var n=e.LymphNodeTargetList.filter((function(e){return e.lesionValue===t.lesionValue&&e.lesionLocation===t.lesionLocation}))[0];n&&(t.LocDescription=n.LocDescription,t.Note=n.Note)})),e.LymphNodeTargetList=r),o.length>0&&(o.forEach((function(t){var i=t.lesionLocation.split("-");t.TULOC=i[0]||"",t.TULAT=i[1]||"",t.TUDIR=i[2]||"";var n=e.NontargetLesionList.filter((function(e){return e.lesionLocation===t.lesionLocation}))[0];n&&(t.LocDescription=n.LocDescription,t.Note=n.Note)})),e.NontargetLesionList=o),delete i[e.pageTPInfo.WorkloadCode],localStorage.setItem("measureData",JSON.stringify(i))}}}))},methods:{getBLLineLesion:function(){var e=this,t=this;Object(r["f"])(this.pageTPInfo.TrialCode,this.pageTPInfo.SubjectCode,this.pageTPInfo.WorkloadCode).then((function(i){i.Result.LesionInformation.length>0&&(t.NonlymphNodeTargetList=i.Result.LesionInformation.filter((function(e){return 1===e.LesionType})),t.LymphNodeTargetList=i.Result.LesionInformation.filter((function(e){return 2===e.LesionType})),t.NontargetLesionList=i.Result.LesionInformation.filter((function(e){return 3===e.LesionType}))),i.Result.ReportResult&&(t.reportResult=i.Result.ReportResult),t.reportResult.TpCode=e.pageTPInfo.WorkloadCode}))},addBaseLine:function(){var e=this,t=this;this.$refs.qualifiedForm.validate((function(i){i&&e.$refs.situationForm.validate((function(i){if(i){var n=[];t.NonlymphNodeTargetList.length+t.LymphNodeTargetList.length>5&&n.push("The number of target lesions should not exceed 5 .");var a=t.NonlymphNodeTargetList.map((function(e,t){if(e.TULOC)return e.TULOC})),o=t.LymphNodeTargetList.map((function(e,t){if(e.TULOC)return e.TULOC})),s=a.concat(o),l=t.getCount(s,1);if(l[0].count>2){n.push("The number of lesions in the same organ should not exceed 2 ");var c=n.join("\n");e.$alert(c,"target lesion",{confirmButtonText:"确定"})}var u=[];e.NonlymphNodeTargetList.forEach((function(t){u.push({LesionType:1,STUDYID:e.pageTPInfo.TrialCode,USUBJID:e.pageTPInfo.SubjectCode,TUSPID:e.pageTPInfo.Sponsor,TUTESTCD:"TUMIDENT",TUTEST:"Tumor Identification",TUORRES:"TARGET",TUSTRESC:"TARGET",TUNAM:"zhizhun",LocDescription:t.LocDescription,TULOC:t.TULOC,TULAT:t.TULAT,TUDIR:t.TUDIR,TUPORTOT:"",TUMETHOD:"",TUEVAL:"",TUEVALID:"",TUACPTFL:"",VISITNUM:e.pageTPInfo.VisitNum,VISIT:e.pageTPInfo.VisitName,VISITDY:0,EPOCH:"",TUDTC:"",TUDY:0,TRTESTCD:"",TRTEST:"",TRORRES:t.TRORRES,TRORRESU:"",TRSTRESC:"",TRSTRESN:0,TRSTRESU:"",TRSTAT:"",TRREASND:"",Note:t.Note,TRGRPID:"",TRDTC:"",TRDY:0})})),e.LymphNodeTargetList.forEach((function(t){u.push({LesionType:2,STUDYID:e.pageTPInfo.TrialCode,USUBJID:e.pageTPInfo.SubjectCode,TUSPID:e.pageTPInfo.Sponsor,TUTESTCD:"TUMIDENT",TUTEST:"Tumor Identification",TUORRES:"TARGET",TUSTRESC:"TARGET",TUNAM:"zhizhun",LocDescription:t.LocDescription,TULOC:t.TULOC,TULAT:t.TULAT,TUDIR:t.TUDIR,TUPORTOT:"",TUMETHOD:"",TUEVAL:"",TUEVALID:"",TUACPTFL:"",VISITNUM:e.pageTPInfo.VisitNum,VISIT:e.pageTPInfo.VisitName,VISITDY:0,EPOCH:"",TUDTC:"",TUDY:0,TRTESTCD:"",TRTEST:"",TRORRES:t.TRORRES,TRORRESU:"",TRSTRESC:"",TRSTRESN:0,TRSTRESU:"",TRSTAT:"",TRREASND:"",Note:t.Note,TRGRPID:"",TRDTC:"",TRDY:0})})),e.NontargetLesionList.forEach((function(t){u.push({LesionType:3,STUDYID:e.pageTPInfo.TrialCode,USUBJID:e.pageTPInfo.SubjectCode,TUSPID:e.pageTPInfo.Sponsor,TUTESTCD:"TUMIDENT",TUTEST:"Tumor Identification",TUORRES:"None TARGET",TUSTRESC:"None TARGET",TUNAM:"zhizhun",LocDescription:t.LocDescription,TULOC:t.TULOC,TULAT:t.TULAT,TUDIR:t.TUDIR,TUPORTOT:"",TUMETHOD:"",TUEVAL:"",TUEVALID:"",TUACPTFL:"",VISITNUM:e.pageTPInfo.VisitNum,VISIT:e.pageTPInfo.VisitName,VISITDY:0,EPOCH:"",TUDTC:"",TUDY:0,TRTESTCD:"",TRTEST:"",TRORRES:t.TRORRES,TRORRESU:"",TRSTRESC:"",TRSTRESN:0,TRSTRESU:"",TRSTAT:"",TRREASND:"",Note:t.Note,TRGRPID:"",TRDTC:"",TRDY:0})})),e.$confirm("Sure fill in all the information?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){Object(r["d"])({lesionInformation:u,reportResult:e.reportResult,sumOfDiameter:e.SOD,sumDiameterOfNonLymphNode:e.NonnodularLesionsSOD}).then((function(t){e.getBLLineLesion(),e.$message.success("saved successfully")}))})),t.imageDataHasUpdate&&t.saveImageLabel()}}))}))},saveImageLabel:function(){var e=this,t={};t.TpCode=this.pageTPInfo.WorkloadCode,t.ImageLabelList=[],this.imageLabelList.forEach((function(i){t.ImageLabelList.push({StudyId:e.pageTPInfo.StudyId,LabelValue:JSON.stringify(i),SeriesId:i.seriesId,InstanceId:i.instanceId})})),Object(r["o"])(t).then((function(t){e.imageDataHasUpdate=!1,e.$message.success("saved imgeLable successfully")}))},submiteReport:function(){var e=this;Object(r["q"])(this.pageTPInfo.WorkloadId).then((function(t){e.$message.success("Report saved successfully"),e.isReportSaved=!0}))},getCount:function(e,t,i){for(var n,a={},r=[],o=0,s=e.length;o<s;o++)n=e[o],a[n]?a[n]++:a[n]=1;for(var l in a)r.push({el:l,count:a[l]});r.sort((function(e,t){return t.count-e.count})),1===i&&(r=r.reverse());var c=t||r.length;return r.slice(0,c)}}},s=o,l=(i("1249"),i("2877")),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},"414c3":function(e,t,i){var n=i("3a56"),a=n.extend({type:"dataZoom.select"});e.exports=a},4151:function(e,t,i){},4165:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"customSiteForm",staticClass:"demo-ruleForm",attrs:{model:e.form,rules:e.rules,size:"small","label-width":"150px"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:e.$t("trials:customSite:form:siteId"),prop:"SiteCode"}},[i("el-input",{model:{value:e.form.SiteCode,callback:function(t){e.$set(e.form,"SiteCode",t)},expression:"form.SiteCode"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:customSite:form:siteName"),prop:"SiteName"}},[i("el-input",{model:{value:e.form.SiteName,callback:function(t){e.$set(e.form,"SiteName",t)},expression:"form.SiteName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:customSite:form:orgCode")}},[i("el-input",{model:{value:e.form.UniqueCode,callback:function(t){e.$set(e.form,"UniqueCode",t)},expression:"form.UniqueCode"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:customSite:form:country"),prop:"Country"}},[i("el-input",{model:{value:e.form.Country,callback:function(t){e.$set(e.form,"Country",t)},expression:"form.Country"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:customSite:form:city"),prop:"City"}},[i("el-input",{model:{value:e.form.City,callback:function(t){e.$set(e.form,"City",t)},expression:"form.City"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:customSite:form:address"),prop:"Address"}},[i("el-input",{model:{value:e.form.Address,callback:function(t){e.$set(e.form,"Address",t)},expression:"form.Address"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:customSite:form:hospital")}},[i("el-select",{staticStyle:{width:"100%"},attrs:{clearable:""},model:{value:e.form.HospitalId,callback:function(t){e.$set(e.form,"HospitalId",t)},expression:"form.HospitalId"}},e._l(e.hospitalList,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.HospitalName,value:e.Id}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:customSite:form:director"),prop:"DirectorName"}},[i("el-input",{model:{value:e.form.DirectorName,callback:function(t){e.$set(e.form,"DirectorName",t)},expression:"form.DirectorName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:customSite:form:directorPhone"),prop:"DirectorPhone"}},[i("el-input",{model:{value:e.form.DirectorPhone,callback:function(t){e.$set(e.form,"DirectorPhone",t)},expression:"form.DirectorPhone"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:customSite:form:contactor"),prop:"ContactName"}},[i("el-input",{model:{value:e.form.ContactName,callback:function(t){e.$set(e.form,"ContactName",t)},expression:"form.ContactName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:customSite:form:contactorPhone"),prop:"ContactPhone"}},[i("el-input",{model:{value:e.form.ContactPhone,callback:function(t){e.$set(e.form,"ContactPhone",t)},expression:"form.ContactPhone"}})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.handleCancel}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])},a=[],r=(i("96cf"),i("3b8d")),o=i("e56e"),s=i("4360"),l={name:"CustomSiteForm",props:{data:{type:Object,default:function(){return{}}}},data:function(){return{btnLoading:!1,hospitalList:[],form:{Id:"",SiteCode:"",SiteName:"",Country:"",City:"",HospitalId:"",DirectorName:"",DirectorPhone:"",ContactName:"",ContactPhone:"",UniqueCode:"",Address:""},rules:{SiteName:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"},{max:50,message:"".concat(this.$t("common:ruleMessage:maxLength")," 50")}],SiteCode:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"},{max:50,message:"".concat(this.$t("common:ruleMessage:maxLength")," 50")}],Country:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"},{max:50,message:"".concat(this.$t("common:ruleMessage:maxLength")," 50")}],City:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"},{max:50,message:"".concat(this.$t("common:ruleMessage:maxLength")," 50")}],Address:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}],DirectorName:[{max:50,message:"".concat(this.$t("common:ruleMessage:maxLength")," 50")}],DirectorPhone:[{max:50,message:"".concat(this.$t("common:ruleMessage:maxLength")," 50")}],ContactName:[{max:50,message:"".concat(this.$t("common:ruleMessage:maxLength")," 50")}],ContactPhone:[{max:50,message:"".concat(this.$t("common:ruleMessage:maxLength")," 50")}]},loading:!1}},mounted:function(){this.initForm()},methods:{handleSave:function(){var e=this;this.$refs.customSiteForm.validate((function(t){t&&(e.btnLoading=!0,Object(o["r"])(e.form).then((function(t){e.btnLoading=!1,t.IsSuccess&&(e.$message.success(e.$t("common:message:savedSuccessfully")),e.$emit("getList"),e.$emit("close"))})).catch((function(){e.btnLoading=!1})))}))},handleCancel:function(){this.$emit("close")},initForm:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.loading=!0,e.next=3,s["a"].dispatch("global/getHospital");case 3:this.hospitalList=e.sent,this.loading=!1;case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}},c=l,u=i("2877"),d=Object(u["a"])(c,n,a,!1,null,null,null);t["default"]=d.exports},4176:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("el-upload",{class:{disabled:e.readingTaskState>=2||e.fileList.length>=e.question.ImageCount||e.task.VisitTaskId!==e.visitTaskId||e.question.IsShowInDicom},attrs:{action:e.accept,limit:e.question.ImageCount,"on-preview":e.handlePictureCardPreview,"before-upload":e.handleBeforeUpload,"http-request":e.uploadScreenshot,"list-type":"picture-card","on-remove":e.handleRemove,"file-list":e.fileList,disabled:e.readingTaskState>=2||e.task.VisitTaskId!==e.visitTaskId||e.question.IsShowInDicom},scopedSlots:e._u([{key:"file",fn:function(t){var n=t.file;return i("div",{},[i("img",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:n.url,alt:""}}),e._v(" "),i("span",{staticClass:"el-upload-list__item-actions"},[i("span",{staticClass:"el-upload-list__item-preview",on:{click:function(t){return e.handlePictureCardPreview(n)}}},[i("i",{staticClass:"el-icon-zoom-in"})]),e._v(" "),e.readingTaskState<2?i("span",{staticClass:"el-upload-list__item-delete",on:{click:function(t){return e.handleRemove(n)}}},[i("i",{staticClass:"el-icon-delete"})]):e._e()])])}}])},[i("i",{staticClass:"el-icon-plus",attrs:{slot:"default"},slot:"default"})]),e._v(" "),i("el-dialog",{attrs:{"append-to-body":"",visible:e.imgVisible,width:"600px"},on:{"update:visible":function(t){e.imgVisible=t}}},[i("el-image",{attrs:{src:e.imageUrl,width:"100%"}},[i("div",{staticClass:"image-slot",attrs:{slot:"placeholder"},slot:"placeholder"},[e._v("\n 加载中"),i("span",{staticClass:"dot"},[e._v("...")])])])],1)],1)},a=[],r=(i("20d6"),i("7f7f"),i("386d"),i("28a5"),i("c5f6"),i("3e42")),o={name:"CustomizeReportPageUpload",props:{task:{Type:Object,required:!0},question:{Type:Object,required:!0},visitTaskId:{type:String,required:!0},readingTaskState:{type:Number,required:!0},initUrl:{type:String,default:""}},data:function(){return{imgVisible:!1,imageUrl:null,accept:".png,.jpg,.jpeg",fileList:[]}},mounted:function(){var e=this;console.log(this.initUrl),console.log(this.readingTaskState),this.urls=""===this.initUrl?[]:this.initUrl.split("|"),this.fileList=[],this.urls.map((function(t){e.fileList.push({name:"",url:"/api/".concat(t)})}))},methods:{checkFileSuffix:function(e){var t=e.lastIndexOf("."),i=e.substring(t+1,e.length);return-1!==this.accept.toLocaleLowerCase().search(i.toLocaleLowerCase())},uploadScreenshot:function(e){var t=this;if(this.visitTaskId){var i=this.$loading({target:document.querySelector(".ecrf-wrapper"),fullscreen:!1,lock:!0,text:"Loading",spinner:"el-icon-loading"}),n=new FormData;n.append("file",e.file),Object(r["Af"])(this.$route.query.trialId,this.visitTaskId,n).then((function(e){e.IsSuccess&&(t.fileList.push({url:"/api/".concat(e.Result.Path)}),t.urls.push(e.Result.Path),t.$emit("setImageUrl",t.urls.length>0?t.urls.join("|"):"")),i.close()})).catch((function(){i.close()}))}},handleBeforeUpload:function(e){return!!this.checkFileSuffix(e.name)||(this.$message.error("必须是 ".concat(this.accept," 格式")),!1)},handlePictureCardPreview:function(e){this.imageUrl=e.url,this.imgVisible=!0},handleRemove:function(e,t){this.imageUrl="",this.fileList.splice(this.fileList.findIndex((function(t){return t.url===e.url})),1),this.urls.splice(this.fileList.findIndex((function(t){return t===e.url})),1),this.$emit("setFormItemData",{key:this.question.Id,val:this.urls.length>0?this.urls.join("|"):""})}}},s=o,l=(i("bdab5"),i("2877")),c=Object(l["a"])(s,n,a,!1,null,"3c669c59",null);t["default"]=c.exports},"41ef":function(e,t,i){var n=i("d51b"),a={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function r(e){return e=Math.round(e),e<0?0:e>255?255:e}function o(e){return e=Math.round(e),e<0?0:e>360?360:e}function s(e){return e<0?0:e>1?1:e}function l(e){return e.length&&"%"===e.charAt(e.length-1)?r(parseFloat(e)/100*255):r(parseInt(e,10))}function c(e){return e.length&&"%"===e.charAt(e.length-1)?s(parseFloat(e)/100):s(parseFloat(e))}function u(e,t,i){return i<0?i+=1:i>1&&(i-=1),6*i<1?e+(t-e)*i*6:2*i<1?t:3*i<2?e+(t-e)*(2/3-i)*6:e}function d(e,t,i){return e+(t-e)*i}function f(e,t,i,n,a){return e[0]=t,e[1]=i,e[2]=n,e[3]=a,e}function h(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var p=new n(20),m=null;function g(e,t){m&&h(m,t),m=p.put(e,m||t.slice())}function v(e,t){if(e){t=t||[];var i=p.get(e);if(i)return h(t,i);e+="";var n=e.replace(/ /g,"").toLowerCase();if(n in a)return h(t,a[n]),g(e,t),t;if("#"!==n.charAt(0)){var r=n.indexOf("("),o=n.indexOf(")");if(-1!==r&&o+1===n.length){var s=n.substr(0,r),u=n.substr(r+1,o-(r+1)).split(","),d=1;switch(s){case"rgba":if(4!==u.length)return void f(t,0,0,0,1);d=c(u.pop());case"rgb":return 3!==u.length?void f(t,0,0,0,1):(f(t,l(u[0]),l(u[1]),l(u[2]),d),g(e,t),t);case"hsla":return 4!==u.length?void f(t,0,0,0,1):(u[3]=c(u[3]),b(u,t),g(e,t),t);case"hsl":return 3!==u.length?void f(t,0,0,0,1):(b(u,t),g(e,t),t);default:return}}f(t,0,0,0,1)}else{if(4===n.length){var m=parseInt(n.substr(1),16);return m>=0&&m<=4095?(f(t,(3840&m)>>4|(3840&m)>>8,240&m|(240&m)>>4,15&m|(15&m)<<4,1),g(e,t),t):void f(t,0,0,0,1)}if(7===n.length){m=parseInt(n.substr(1),16);return m>=0&&m<=16777215?(f(t,(16711680&m)>>16,(65280&m)>>8,255&m,1),g(e,t),t):void f(t,0,0,0,1)}}}}function b(e,t){var i=(parseFloat(e[0])%360+360)%360/360,n=c(e[1]),a=c(e[2]),o=a<=.5?a*(n+1):a+n-a*n,s=2*a-o;return t=t||[],f(t,r(255*u(s,o,i+1/3)),r(255*u(s,o,i)),r(255*u(s,o,i-1/3)),1),4===e.length&&(t[3]=e[3]),t}function y(e){if(e){var t,i,n=e[0]/255,a=e[1]/255,r=e[2]/255,o=Math.min(n,a,r),s=Math.max(n,a,r),l=s-o,c=(s+o)/2;if(0===l)t=0,i=0;else{i=c<.5?l/(s+o):l/(2-s-o);var u=((s-n)/6+l/2)/l,d=((s-a)/6+l/2)/l,f=((s-r)/6+l/2)/l;n===s?t=f-d:a===s?t=1/3+u-f:r===s&&(t=2/3+d-u),t<0&&(t+=1),t>1&&(t-=1)}var h=[360*t,i,c];return null!=e[3]&&h.push(e[3]),h}}function w(e,t){var i=v(e);if(i){for(var n=0;n<3;n++)i[n]=t<0?i[n]*(1-t)|0:(255-i[n])*t+i[n]|0,i[n]>255?i[n]=255:e[n]<0&&(i[n]=0);return R(i,4===i.length?"rgba":"rgb")}}function _(e){var t=v(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function I(e,t,i){if(t&&t.length&&e>=0&&e<=1){i=i||[];var n=e*(t.length-1),a=Math.floor(n),o=Math.ceil(n),l=t[a],c=t[o],u=n-a;return i[0]=r(d(l[0],c[0],u)),i[1]=r(d(l[1],c[1],u)),i[2]=r(d(l[2],c[2],u)),i[3]=s(d(l[3],c[3],u)),i}}var x=I;function S(e,t,i){if(t&&t.length&&e>=0&&e<=1){var n=e*(t.length-1),a=Math.floor(n),o=Math.ceil(n),l=v(t[a]),c=v(t[o]),u=n-a,f=R([r(d(l[0],c[0],u)),r(d(l[1],c[1],u)),r(d(l[2],c[2],u)),s(d(l[3],c[3],u))],"rgba");return i?{color:f,leftIndex:a,rightIndex:o,value:n}:f}}var T=S;function C(e,t,i,n){if(e=v(e),e)return e=y(e),null!=t&&(e[0]=o(t)),null!=i&&(e[1]=c(i)),null!=n&&(e[2]=c(n)),R(b(e),"rgba")}function k(e,t){if(e=v(e),e&&null!=t)return e[3]=s(t),R(e,"rgba")}function R(e,t){if(e&&e.length){var i=e[0]+","+e[1]+","+e[2];return"rgba"!==t&&"hsva"!==t&&"hsla"!==t||(i+=","+e[3]),t+"("+i+")"}}t.parse=v,t.lift=w,t.toHex=_,t.fastLerp=I,t.fastMapToColor=x,t.lerp=S,t.mapToColor=T,t.modifyHSL=C,t.modifyAlpha=k,t.stringify=R},4203:function(e,t,i){},"421a":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"preview-wrapper"},[i("div",{staticClass:"left-wrapper"},[i("div",{staticClass:"basic-info"},[e.otherInfo.SubjectCode?i("span",[e._v(e._s(""+e.otherInfo.SubjectCode))]):e._e(),e._v(" "),e.otherInfo.ReadingNameOrTaskBlindName?i("span",[e._v("("+e._s(""+e.otherInfo.ReadingNameOrTaskBlindName)+")")]):e._e()]),e._v(" "),e.cdList.length>0?i("div",{staticClass:"basic-content"},e._l(e.cdList,(function(t){return i("div",{key:t.Id,staticClass:"cd-wrapper"},[i("div",{staticClass:"cd-name-wrapper"},[e._v(e._s(t.ClinicalDataSetName))]),e._v(" "),1===t.ClinicalUploadType?e._l(t.FileList,(function(t){return i("div",{key:t.Id,staticClass:"cd-item",class:{activeBtn:t.Id===e.selected.id},on:{click:function(i){return i.preventDefault(),e.preview(t,1)}}},[e._v("\n "+e._s(t.FileName)+"\n ")])})):i("div",{staticClass:"cd-item",class:{activeBtn:t.Id===e.selected.id},on:{click:function(i){return i.preventDefault(),e.preview(t,0)}}},[e._v("\n "+e._s(e.$t("trials:uploadClinicalData:title:table"))+"\n ")])],2)})),0):i("div",{staticClass:"basic-content-empty"},[i("span",[e._v(e._s(e.$t("trials:clinicaldara:title:nodata")))])])]),e._v(" "),i("div",{staticClass:"right-wrapper"},[1===e.selected.type?i("div",{staticClass:"right-content"},[i("iframe",{attrs:{src:"/static/pdfjs/web/viewer.html?file="+e.selected.filePath,width:"100%",height:"100%",frameborder:"0"}})]):0===e.selected.type?i("div",{staticClass:"right-content",staticStyle:{padding:"10px","overflow-y":"auto"}},[i("h4",[e._v(e._s(e.$t("trials:uploadClinicalData:title:pastTreatment")))]),e._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.selected.clinicalTableData.PreviousHistoryList}},[i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Position",label:e.$t("trials:uploadClinicalData:table:bodyPart"),width:"180"}}),e._v(" "),i("el-table-column",{attrs:{prop:"StartTime",label:e.$t("trials:uploadClinicalData:table:beginDate"),width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.StartTime?e.moment(t.row.StartTime).format("YYYY-MM-DD"):"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"EndTime",label:e.$t("trials:uploadClinicalData:table:endDate"),width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.EndTime?e.moment(t.row.EndTime).format("YYYY-MM-DD"):"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsPD",label:e.$t("trials:uploadClinicalData:table:isPD"),width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("IsPdEnum",t.row.IsPD))+"\n ")]}}])})],1),e._v(" "),i("h4",[e._v(e._s(e.$t("trials:uploadClinicalData:title:pastSurgery")))]),e._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.selected.clinicalTableData.PreviousSurgeryList}},[i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"OperationName",label:e.$t("trials:uploadClinicalData:table:surgeryName"),width:"180"}}),e._v(" "),i("el-table-column",{attrs:{prop:"OperationTime",label:e.$t("trials:uploadClinicalData:table:surgeryDate"),width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.OperationTime?e.moment(t.row.OperationTime).format("YYYY-MM-DD"):"")+"\n ")]}}])})],1),e._v(" "),i("h4",[e._v(e._s(e.$t("trials:uploadClinicalData:title:others")))]),e._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.selected.clinicalTableData.PreviousOtherList}},[i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TreatmentType",label:e.$t("trials:uploadClinicalData:table:treatmentType"),width:"180"}}),e._v(" "),i("el-table-column",{attrs:{prop:"StartTime",label:e.$t("trials:uploadClinicalData:table:treatmentbeginDate"),width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.StartTime?e.moment(t.row.StartTime).format("YYYY-MM-DD"):"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"EndTime",label:e.$t("trials:uploadClinicalData:table:treatmentendDate"),width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.EndTime?e.moment(t.row.EndTime).format("YYYY-MM-DD"):"")+"\n ")]}}])})],1)],1):e._e()])])},a=[],r=i("3e42"),o=i("c1df"),s=i.n(o),l={name:"MultipleNoneDicom",props:{trialId:{type:String,required:!0},subjectId:{type:String,required:!0},visitTaskId:{type:String,required:!0}},data:function(){return{selected:{id:"",type:null,fileName:"",filePath:"",clinicalTableData:[]},cdList:[],otherInfo:{},moment:s.a,loading:!1}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0;var t={subjectId:this.subjectId,trialId:this.trialId,visitTaskId:this.visitTaskId,readingClinicalDataId:"",readingId:""};Object(r["Rc"])(t).then((function(t){if(e.cdList=t.Result,e.otherInfo=t.OtherInfo,e.loading=!1,e.cdList.length>0){var i=1===e.cdList[0].ClinicalUploadType?1:0,n=1===i?e.cdList[0].FileList[0]:e.cdList[0];e.preview(n,i)}})).catch((function(){e.loading=!1}))},preview:function(e,t){this.$set(this.selected,"id",e.Id),this.$set(this.selected,"type",t),1===t?(this.$set(this.selected,"fileName",e.FileName),this.$set(this.selected,"filePath",e.Path)):this.$set(this.selected,"clinicalTableData",e.ClinicalTableData)}}},c=l,u=(i("0e3c"),i("2877")),d=Object(u["a"])(c,n,a,!1,null,null,null);t["default"]=d.exports},"429f":function(e,t,i){"use strict";i.d(t,"b",(function(){return n})),i.d(t,"a",(function(){return a}));var n=[{type:"index"},{prop:"UserType",label:"User Type",minWidth:120,showOverflowTooltip:!0},{prop:"UserTypeShortName",label:"Shortname",minWidth:100,showOverflowTooltip:!0},{prop:"Type",label:"Group",hidden:!0,minWidth:100,showOverflowTooltip:!0,slot:"TypeSlot"},{prop:"Description",label:"Description",minWidth:100,showOverflowTooltip:!0},{type:"operate",label:"Action",minWidth:100,operates:[{name:"Edit",type:"primary",emitKey:"edit"},{name:"Delete",type:"danger",emitKey:"delete"}]}],a={visible:!1,title:"",width:"600px",showClose:!0}},"42e5":function(e,t){var i=function(e){this.colorStops=e||[]};i.prototype={constructor:i,addColorStop:function(e,t){this.colorStops.push({offset:e,color:t})}};var n=i;e.exports=n},"42f6":function(e,t,i){var n=i("3eba"),a=i("6d8b"),r=i("22d1"),o=i("07d7"),s=i("82f9"),l=i("eda2"),c=i("3842"),u=i("2306"),d=i("133d"),f=i("f934"),h=i("4319"),p=i("17d6"),m=i("697e"),g=i("ff2e"),v=i("e0d3"),b=v.getTooltipRenderMode,y=a.bind,w=a.each,_=c.parsePercent,I=new u.Rect({shape:{x:-1,y:-1,width:2,height:2}}),x=n.extendComponentView({type:"tooltip",init:function(e,t){if(!r.node){var i,n=e.getComponent("tooltip"),a=n.get("renderMode");this._renderMode=b(a),"html"===this._renderMode?(i=new o(t.getDom(),t,{appendToBody:n.get("appendToBody",!0)}),this._newLine="<br/>"):(i=new s(t),this._newLine="\n"),this._tooltipContent=i}},render:function(e,t,i){if(!r.node){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=i,this._lastDataByCoordSys=null,this._alwaysShowContent=e.get("alwaysShowContent");var n=this._tooltipContent;n.update(e),n.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow()}},_initGlobalListener:function(){var e=this._tooltipModel,t=e.get("triggerOn");p.register("itemTooltip",this._api,y((function(e,i,n){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(i,n):"leave"===e&&this._hide(n))}),this))},_keepShow:function(){var e=this._tooltipModel,t=this._ecModel,i=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==e.get("triggerOn")){var n=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!i.isDisposed()&&n.manuallyShowTip(e,t,i,{x:n._lastX,y:n._lastY})}))}},manuallyShowTip:function(e,t,i,n){if(n.from!==this.uid&&!r.node){var a=T(n,i);this._ticket="";var o=n.dataByCoordSys;if(n.tooltip&&null!=n.x&&null!=n.y){var s=I;s.position=[n.x,n.y],s.update(),s.tooltip=n.tooltip,this._tryShow({offsetX:n.x,offsetY:n.y,target:s},a)}else if(o)this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,dataByCoordSys:n.dataByCoordSys,tooltipOption:n.tooltipOption},a);else if(null!=n.seriesIndex){if(this._manuallyAxisShowTip(e,t,i,n))return;var l=d(n,t),c=l.point[0],u=l.point[1];null!=c&&null!=u&&this._tryShow({offsetX:c,offsetY:u,position:n.position,target:l.el},a)}else null!=n.x&&null!=n.y&&(i.dispatchAction({type:"updateAxisPointer",x:n.x,y:n.y}),this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,target:i.getZr().findHover(n.x,n.y).target},a))}},manuallyHideTip:function(e,t,i,n){var a=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&a.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,n.from!==this.uid&&this._hide(T(n,i))},_manuallyAxisShowTip:function(e,t,i,n){var a=n.seriesIndex,r=n.dataIndex,o=t.getComponent("axisPointer").coordSysAxesInfo;if(null!=a&&null!=r&&null!=o){var s=t.getSeriesByIndex(a);if(s){var l=s.getData();e=S([l.getItemModel(r),s,(s.coordinateSystem||{}).model,e]);if("axis"===e.get("trigger"))return i.dispatchAction({type:"updateAxisPointer",seriesIndex:a,dataIndex:r,position:n.position}),!0}}},_tryShow:function(e,t){var i=e.target,n=this._tooltipModel;if(n){this._lastX=e.offsetX,this._lastY=e.offsetY;var a=e.dataByCoordSys;a&&a.length?this._showAxisTooltip(a,e):i&&null!=i.dataIndex?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(e,i,t)):i&&i.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(e,i,t)):(this._lastDataByCoordSys=null,this._hide(t))}},_showOrMove:function(e,t){var i=e.get("showDelay");t=a.bind(t,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(t,i):t()},_showAxisTooltip:function(e,t){var i=this._ecModel,n=this._tooltipModel,r=[t.offsetX,t.offsetY],o=[],s=[],c=S([t.tooltipOption,n]),u=this._renderMode,d=this._newLine,f={};w(e,(function(e){w(e.dataByAxis,(function(e){var t=i.getComponent(e.axisDim+"Axis",e.axisIndex),n=e.value,r=[];if(t&&null!=n){var c=g.getValueLabel(n,t.axis,i,e.seriesDataIndices,e.valueLabelOpt);a.each(e.seriesDataIndices,(function(o){var l=i.getSeriesByIndex(o.seriesIndex),d=o.dataIndexInside,h=l&&l.getDataParams(d);if(h.axisDim=e.axisDim,h.axisIndex=e.axisIndex,h.axisType=e.axisType,h.axisId=e.axisId,h.axisValue=m.getAxisRawValue(t.axis,n),h.axisValueLabel=c,h){s.push(h);var p,g=l.formatTooltip(d,!0,null,u);if(a.isObject(g)){p=g.html;var v=g.markers;a.merge(f,v)}else p=g;r.push(p)}}));var h=c;"html"!==u?o.push(r.join(d)):o.push((h?l.encodeHTML(h)+d:"")+r.join(d))}}))}),this),o.reverse(),o=o.join(this._newLine+this._newLine);var h=t.position;this._showOrMove(c,(function(){this._updateContentNotChangedOnAxis(e)?this._updatePosition(c,h,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(c,o,s,Math.random(),r[0],r[1],h,void 0,f)}))},_showSeriesItemTooltip:function(e,t,i){var n=this._ecModel,r=t.seriesIndex,o=n.getSeriesByIndex(r),s=t.dataModel||o,l=t.dataIndex,c=t.dataType,u=s.getData(c),d=S([u.getItemModel(l),s,o&&(o.coordinateSystem||{}).model,this._tooltipModel]),f=d.get("trigger");if(null==f||"item"===f){var h,p,m=s.getDataParams(l,c),g=s.formatTooltip(l,!1,c,this._renderMode);a.isObject(g)?(h=g.html,p=g.markers):(h=g,p=null);var v="item_"+s.name+"_"+l;this._showOrMove(d,(function(){this._showTooltipContent(d,h,m,v,e.offsetX,e.offsetY,e.position,e.target,p)})),i({type:"showTip",dataIndexInside:l,dataIndex:u.getRawIndex(l),seriesIndex:r,from:this.uid})}},_showComponentItemTooltip:function(e,t,i){var n=t.tooltip;if("string"===typeof n){var a=n;n={content:a,formatter:a}}var r=new h(n,this._tooltipModel,this._ecModel),o=r.get("content"),s=Math.random();this._showOrMove(r,(function(){this._showTooltipContent(r,o,r.get("formatterParams")||{},s,e.offsetX,e.offsetY,e.position,t)})),i({type:"showTip",from:this.uid})},_showTooltipContent:function(e,t,i,n,a,r,o,s,c){if(this._ticket="",e.get("showContent")&&e.get("show")){var u=this._tooltipContent,d=e.get("formatter");o=o||e.get("position");var f=t;if(d&&"string"===typeof d)f=l.formatTpl(d,i,!0);else if("function"===typeof d){var h=y((function(t,n){t===this._ticket&&(u.setContent(n,c,e),this._updatePosition(e,o,a,r,u,i,s))}),this);this._ticket=n,f=d(i,n,h)}u.setContent(f,c,e),u.show(e),this._updatePosition(e,o,a,r,u,i,s)}},_updatePosition:function(e,t,i,n,r,o,s){var l=this._api.getWidth(),c=this._api.getHeight();t=t||e.get("position");var u=r.getSize(),d=e.get("align"),h=e.get("verticalAlign"),p=s&&s.getBoundingRect().clone();if(s&&p.applyTransform(s.transform),"function"===typeof t&&(t=t([i,n],o,r.el,p,{viewSize:[l,c],contentSize:u.slice()})),a.isArray(t))i=_(t[0],l),n=_(t[1],c);else if(a.isObject(t)){t.width=u[0],t.height=u[1];var m=f.getLayoutRect(t,{width:l,height:c});i=m.x,n=m.y,d=null,h=null}else if("string"===typeof t&&s){var g=R(t,p,u);i=g[0],n=g[1]}else{g=C(i,n,r,l,c,d?null:20,h?null:20);i=g[0],n=g[1]}if(d&&(i-=D(d)?u[0]/2:"right"===d?u[0]:0),h&&(n-=D(h)?u[1]/2:"bottom"===h?u[1]:0),e.get("confine")){g=k(i,n,r,l,c);i=g[0],n=g[1]}r.moveTo(i,n)},_updateContentNotChangedOnAxis:function(e){var t=this._lastDataByCoordSys,i=!!t&&t.length===e.length;return i&&w(t,(function(t,n){var a=t.dataByAxis||{},r=e[n]||{},o=r.dataByAxis||[];i&=a.length===o.length,i&&w(a,(function(e,t){var n=o[t]||{},a=e.seriesDataIndices||[],r=n.seriesDataIndices||[];i&=e.value===n.value&&e.axisType===n.axisType&&e.axisId===n.axisId&&a.length===r.length,i&&w(a,(function(e,t){var n=r[t];i&=e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex}))}))})),this._lastDataByCoordSys=e,!!i},_hide:function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},dispose:function(e,t){r.node||(this._tooltipContent.dispose(),p.unregister("itemTooltip",t))}});function S(e){var t=e.pop();while(e.length){var i=e.pop();i&&(h.isInstance(i)&&(i=i.get("tooltip",!0)),"string"===typeof i&&(i={formatter:i}),t=new h(i,t,t.ecModel))}return t}function T(e,t){return e.dispatchAction||a.bind(t.dispatchAction,t)}function C(e,t,i,n,a,r,o){var s=i.getOuterSize(),l=s.width,c=s.height;return null!=r&&(e+l+r>n?e-=l+r:e+=r),null!=o&&(t+c+o>a?t-=c+o:t+=o),[e,t]}function k(e,t,i,n,a){var r=i.getOuterSize(),o=r.width,s=r.height;return e=Math.min(e+o,n)-o,t=Math.min(t+s,a)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function R(e,t,i){var n=i[0],a=i[1],r=5,o=0,s=0,l=t.width,c=t.height;switch(e){case"inside":o=t.x+l/2-n/2,s=t.y+c/2-a/2;break;case"top":o=t.x+l/2-n/2,s=t.y-a-r;break;case"bottom":o=t.x+l/2-n/2,s=t.y+c+r;break;case"left":o=t.x-n-r,s=t.y+c/2-a/2;break;case"right":o=t.x+l+r,s=t.y+c/2-a/2}return[o,s]}function D(e){return"center"===e||"middle"===e}e.exports=x},4303:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"subjectForm",attrs:{model:e.form,rules:e.rules,size:"small","label-width":"80px"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:e.$t("CustomWwwcForm:form:label:ww")}},[i("el-input-number",{attrs:{"controls-position":"right",min:1,precision:0,step:1},model:{value:e.form.ww,callback:function(t){e.$set(e.form,"ww",t)},expression:"form.ww"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("CustomWwwcForm:form:label:wl")}},[i("el-input-number",{attrs:{"controls-position":"right",precision:0,step:1},model:{value:e.form.wc,callback:function(t){e.$set(e.form,"wc",t)},expression:"form.wc"}})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleCancel}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])},a=[],r={name:"CustomWwwcForm",data:function(){return{form:{ww:null,wc:null},rules:{ww:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}],wc:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}]},loading:!1}},methods:{handleSave:function(){var e=this;this.$refs.subjectForm.validate((function(t){t&&e.$emit("setWwwc",e.form)}))},handleCancel:function(){this.$emit("close")}}},o=r,s=i("2877"),l=Object(s["a"])(o,n,a,!1,null,null,null);t["default"]=l.exports},4308:function(e,t,i){"use strict";i("8cf6")},4319:function(e,t,i){var n=i("6d8b"),a=i("22d1"),r=i("e0d3"),o=r.makeInner,s=i("625e"),l=s.enableClassExtend,c=s.enableClassCheck,u=i("3901"),d=i("9bdb"),f=i("fe21"),h=i("551f"),p=n.mixin,m=o();function g(e,t,i){this.parentModel=t,this.ecModel=i,this.option=e}function v(e,t,i){for(var n=0;n<t.length;n++)if(t[n]&&(e=e&&"object"===typeof e?e[t[n]]:null,null==e))break;return null==e&&i&&(e=i.get(t)),e}function b(e,t){var i=m(e).getParent;return i?i.call(e,t):e.parentModel}g.prototype={constructor:g,init:null,mergeOption:function(e){n.merge(this.option,e,!0)},get:function(e,t){return null==e?this.option:v(this.option,this.parsePath(e),!t&&b(this,e))},getShallow:function(e,t){var i=this.option,n=null==i?i:i[e],a=!t&&b(this,e);return null==n&&a&&(n=a.getShallow(e)),n},getModel:function(e,t){var i,n=null==e?this.option:v(this.option,e=this.parsePath(e));return t=t||(i=b(this,e))&&i.getModel(e),new g(n,t,this.ecModel)},isEmpty:function(){return null==this.option},restoreData:function(){},clone:function(){var e=this.constructor;return new e(n.clone(this.option))},setReadOnly:function(e){},parsePath:function(e){return"string"===typeof e&&(e=e.split(".")),e},customizeGetParent:function(e){m(this).getParent=e},isAnimationEnabled:function(){if(!a.node){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}}},l(g),c(g),p(g,u),p(g,d),p(g,f),p(g,h);var y=g;e.exports=y},4338:function(e,t,i){var n=i("4bf6"),a=i("2039");function r(e,t){var i=[];return e.eachComponent("singleAxis",(function(a,r){var o=new n(a,e,t);o.name="single_"+r,o.resize(a,t),a.coordinateSystem=o,i.push(o)})),e.eachSeries((function(t){if("singleAxis"===t.get("coordinateSystem")){var i=e.queryComponents({mainType:"singleAxis",index:t.get("singleAxisIndex"),id:t.get("singleAxisId")})[0];t.coordinateSystem=i&&i.coordinateSystem}})),i}a.register("single",{create:r,dimensions:n.prototype.dimensions})},"435b":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-container",{staticClass:"crcform-container"},[i("el-header",[i("div",{staticClass:"filter-container"},[i("span",[e._v(e._s(e.$t("trials:internalStaff:table:name"))+":")]),e._v(" "),i("el-input",{staticClass:"mr",attrs:{size:"small",clearable:""},model:{value:e.listQuery.UserRealName,callback:function(t){e.$set(e.listQuery,"UserRealName",t)},expression:"listQuery.UserRealName"}}),e._v(" "),i("el-button",{attrs:{type:"primary",size:"small",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")]),e._v(" "),i("el-button",{staticStyle:{"margin-left":"auto"},attrs:{type:"primary",size:"small",icon:"el-icon-plus",disabled:0===e.selectArr.length,loading:e.assignLoadStatus},on:{click:e.handleAssign}},[e._v("\n "+e._s(e.$t("trials:internalStaff:button:assign"))+"\n ")])],1)]),e._v(" "),i("el-main",[i("div",{staticClass:"data-table"},[i("el-table",{staticClass:"crc-table-list",attrs:{data:e.list,stripe:"",size:"small",height:"400px"},on:{"selection-change":e.handleSelectChange,"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"selection",width:"50",selectable:e.handleSelectable}}),e._v(" "),i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"UserRealName",label:e.$t("trials:internalStaff:table:name"),"show-overflow-tooltip":"",sortable:"custom","min-width":"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:e.$t("trials:internalStaff:table:uid"),"min-width":"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Phone",label:e.$t("trials:internalStaff:table:phone"),"show-overflow-tooltip":"",sortable:"custom","min-width":"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"EMail",label:e.$t("trials:internalStaff:table:email"),"show-overflow-tooltip":"",sortable:"custom","min-width":"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"OrganizationName",label:e.$t("trials:internalStaff:table:organization"),"show-overflow-tooltip":"","min-width":"120",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"UserType",label:e.$t("trials:internalStaff:table:userType"),"show-overflow-tooltip":"",sortable:"custom","min-width":"120"}})],1)],1)]),e._v(" "),i("el-footer",{staticStyle:{"text-align":"right"}},[i("div",{staticClass:"pagination"},[i("pagination",{attrs:{total:e.total,page:e.listQuery.PageIndex,limit:e.listQuery.PageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"PageIndex",t)},"update:limit":function(t){return e.$set(e.listQuery,"PageSize",t)},pagination:e.getList}})],1)])],1)},a=[],r=i("3e42"),o=i("333d"),s=function(){return{UserRealName:"",PageIndex:1,PageSize:20}},l={components:{Pagination:o["default"]},props:{siteId:{type:String,default:""}},data:function(){return{list:[],total:0,listQuery:s(),selectArr:[],assignLoadStatus:!1,trialId:""}},mounted:function(){this.trialId=this.$route.query.trialId,this.getList()},methods:{getList:function(){var e=this,t=this.$loading({target:document.querySelector(".crc-table-list"),fullscreen:!1,lock:!0});this.listQuery.TrialId=this.trialId,this.listQuery.SiteId=this.siteId,Object(r["ld"])(this.listQuery).then((function(i){t.close(),e.list=i.Result.CurrentPageData,e.total=i.Result.TotalCount})).catch((function(){t.close()}))},handleAssign:function(){var e=this;this.$confirm(this.$t("trials:internalStaff:message:assign"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){var t=e.$loading({target:document.querySelector(".crc-table-list"),fullscreen:!1,lock:!0});e.assignLoadStatus=!0,Object(r["M"])(e.selectArr).then((function(i){e.assignLoadStatus=!1,t.close(),i.IsSuccess&&e.$emit("closeDialog",!0)})).catch((function(){t.close(),e.assignLoadStatus=!1}))}))},handleSearch:function(){this.listQuery.PageIndex=1,this.getList()},handleReset:function(){this.listQuery=s(),this.getList()},handleSelectChange:function(e){this.selectArr=e},handleSortByColumn:function(e){"ascending"===e.order?this.listQuery.Asc=!0:this.listQuery.Asc=!1,this.listQuery.SortField=e.prop,this.listQuery.PageIndex=1,this.getList()},handleSelectable:function(e){return!e.IsSelect}}},c=l,u=(i("3723"),i("2877")),d=Object(u["a"])(c,n,a,!1,null,"5110d0bb",null);t["default"]=d.exports},"437a":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"search-container"},[i("el-form",{attrs:{inline:!0,size:"small"}},[i("el-form-item",{attrs:{label:"业务场景"}},[i("el-select",{staticStyle:{width:"150px"},model:{value:e.searchData.BusinessScenarioEnum,callback:function(t){e.$set(e.searchData,"BusinessScenarioEnum",t)},expression:"searchData.BusinessScenarioEnum"}},e._l(e.$d.Common_File_BusinessScenario,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"文件名称"}},[i("el-input",{staticStyle:{width:"130px"},attrs:{clearable:""},model:{value:e.searchData.Name,callback:function(t){e.$set(e.searchData,"Name",t)},expression:"searchData.Name"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")])],1)],1),e._v(" "),i("el-button",{staticStyle:{"margin-left":"auto"},attrs:{type:"primary",icon:"el-icon-plus",size:"small"},on:{click:e.handleAdd}},[e._v("\n "+e._s(e.$t("common:button:new"))+"\n ")])],1),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"},{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortChange}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Code",label:"Code","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"BusinessScenarioEnum",label:"业务场景","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("Common_File_BusinessScenario",t.row.BusinessScenarioEnum))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Name",label:"文件名称","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Description",label:"描述","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsDeleted",label:"是否废除","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsDeleted?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsDeleted)))]):i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsDeleted)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"UpdateTime",label:"更新时间","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{label:"Action"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleDownload(t.row)}}},[e._v("\n 下载\n ")]),e._v(" "),i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("\n 编辑\n ")])]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}}),e._v(" "),e.editDialog.visible?i("el-dialog",{attrs:{visible:e.editDialog.visible,"close-on-click-modal":!1,title:e.editDialog.title,width:"600px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){return e.$set(e.editDialog,"visible",t)}}},[i("TemplateForm",{attrs:{data:e.currentRow},on:{closeDialog:e.closeDialog,getList:e.getList}})],1):e._e()],1)],2)},a=[],r=i("db72"),o=i("e56e"),s=i("6071"),l=i("333d"),c=i("2460"),u=1,d=function(){return{FileTypeEnum:u,BusinessScenarioEnum:null,Name:"",PageIndex:1,PageSize:20}},f={name:"UploadTemplate",components:{BaseContainer:s["default"],Pagination:l["default"],TemplateForm:c["default"]},data:function(){return{searchData:d(),list:[],total:0,currentRow:{},editDialog:{title:"",visible:!1},loading:!1}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0,Object(o["ab"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},handleAdd:function(){this.editDialog.title="Add",this.currentRow={FileTypeEnum:u},this.editDialog.visible=!0},handleDownload:function(e){var t=this;this.loading=!0,Object(o["a"])(e.Code).then((function(e){t.loading=!1})).catch((function(){t.loading=!1}))},handleEdit:function(e){this.editDialog.title="Edit",this.currentRow=Object(r["a"])({},e),this.editDialog.visible=!0},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=d(),this.getList()},closeDialog:function(){this.editDialog.visible=!1},handleSortChange:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()}}},h=f,p=i("2877"),m=Object(p["a"])(h,n,a,!1,null,null,null);t["default"]=m.exports},"43b8":function(e,t,i){var n=i("2449"),a=n.extend({type:"markArea",defaultOption:{zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}}});e.exports=a},4411:function(e,t,i){for(var n=i("3eba"),a=i("55ac"),r=function(){},o=["treemapZoomToNode","treemapRender","treemapMove"],s=0;s<o.length;s++)n.registerAction({type:o[s],update:"updateView"},r);n.registerAction({type:"treemapRootToNode",update:"updateView"},(function(e,t){function i(t,i){var n=["treemapZoomToNode","treemapRootToNode"],r=a.retrieveTargetInfo(e,n,t);if(r){var o=t.getViewRoot();o&&(e.direction=a.aboveViewRoot(o,r.node)?"rollUp":"drillDown"),t.resetViewRoot(r.node)}}t.eachComponent({mainType:"series",subType:"treemap",query:e},i)}))},4416:function(e,t){function i(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}e.exports=i},4436:function(e,t,i){var n=i("74cb");function a(e){this._target=e.target,this._life=e.life||1e3,this._delay=e.delay||0,this._initialized=!1,this.loop=null!=e.loop&&e.loop,this.gap=e.gap||0,this.easing=e.easing||"Linear",this.onframe=e.onframe,this.ondestroy=e.ondestroy,this.onrestart=e.onrestart,this._pausedTime=0,this._paused=!1}a.prototype={constructor:a,step:function(e,t){if(this._initialized||(this._startTime=e+this._delay,this._initialized=!0),this._paused)this._pausedTime+=t;else{var i=(e-this._startTime-this._pausedTime)/this._life;if(!(i<0)){i=Math.min(i,1);var a=this.easing,r="string"===typeof a?n[a]:a,o="function"===typeof r?r(i):i;return this.fire("frame",o),1===i?this.loop?(this.restart(e),"restart"):(this._needsRemove=!0,"destroy"):null}}},restart:function(e){var t=(e-this._startTime-this._pausedTime)%this._life;this._startTime=e-t+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(e,t){e="on"+e,this[e]&&this[e](this._target,t)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var r=a;e.exports=r},4463:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"revenues"},[i("div",{staticClass:"filter-container"},[i("el-select",{staticClass:"mr",attrs:{size:"small",placeholder:"Stats Type"},on:{change:e.handleStatsTypeChange},model:{value:e.listQuery.StatType,callback:function(t){e.$set(e.listQuery,"StatType",t)},expression:"listQuery.StatType"}},e._l(e.statsType,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),e._v(" "),i("el-select",{ref:"croSelection",staticStyle:{width:"120px","margin-right":"5px"},attrs:{size:"small",placeholder:"CRO",clearable:""},model:{value:e.listQuery.CroId,callback:function(t){e.$set(e.listQuery,"CroId",t)},expression:"listQuery.CroId"}},e._l(e.croList,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.CROName,value:e.Id}})})),1),e._v(" "),i("el-select",{directives:[{name:"show",rawName:"v-show",value:2==e.listQuery.StatType||0==e.listQuery.StatType,expression:"listQuery.StatType == 2 || listQuery.StatType == 0"}],staticStyle:{width:"120px","margin-right":"5px"},attrs:{placeholder:"Nation",size:"small",clearable:""},model:{value:e.listQuery.Nation,callback:function(t){e.$set(e.listQuery,"Nation",t)},expression:"listQuery.Nation"}},[i("el-option",{attrs:{label:"CN",value:"0"}}),e._v(" "),i("el-option",{attrs:{label:"US",value:"1"}})],1),e._v(" "),i("el-select",{directives:[{name:"show",rawName:"v-show",value:1==e.listQuery.StatType||0==e.listQuery.StatType||3==e.listQuery.StatType,expression:"listQuery.StatType == 1 || listQuery.StatType == 0|| listQuery.StatType == 3"}],staticStyle:{width:"150px","margin-right":"5px"},attrs:{placeholder:"Attended Type",size:"small",clearable:""},model:{value:e.listQuery.AttendedReviewerType,callback:function(t){e.$set(e.listQuery,"AttendedReviewerType",t)},expression:"listQuery.AttendedReviewerType"}},[i("el-option",{attrs:{label:"CN",value:"0"}}),e._v(" "),i("el-option",{attrs:{label:"US",value:"1"}}),e._v(" "),i("el-option",{attrs:{label:"CN&US",value:"2"}})],1),e._v(" "),i("el-input",{directives:[{name:"show",rawName:"v-show",value:2==e.listQuery.StatType||0==e.listQuery.StatType,expression:"listQuery.StatType == 2 || listQuery.StatType == 0"}],staticClass:"mr",attrs:{size:"small",placeholder:"Reviewer ID",clearable:""},model:{value:e.listQuery.Reviewer,callback:function(t){e.$set(e.listQuery,"Reviewer",t)},expression:"listQuery.Reviewer"}}),e._v(" "),i("el-input",{directives:[{name:"show",rawName:"v-show",value:1==e.listQuery.StatType||0==e.listQuery.StatType,expression:"listQuery.StatType == 1 || listQuery.StatType == 0"}],staticClass:"mr",attrs:{size:"small",placeholder:"Trial ID",clearable:""},model:{value:e.listQuery.TrialCode,callback:function(t){e.$set(e.listQuery,"TrialCode",t)},expression:"listQuery.TrialCode"}}),e._v(" "),i("el-date-picker",{staticStyle:{width:"120px","margin-right":"5px"},attrs:{size:"small",placeholder:"Beginning Month","value-format":"yyyy-MM",format:"yyyy-MM",type:"month","picker-options":e.beginPickerOption,clearable:!1},model:{value:e.listQuery.BeginDate,callback:function(t){e.$set(e.listQuery,"BeginDate",t)},expression:"listQuery.BeginDate"}}),e._v("To\n "),i("el-date-picker",{staticStyle:{width:"120px",margin:"0 5px"},attrs:{size:"small",placeholder:"End Month","value-format":"yyyy-MM",format:"yyyy-MM",type:"month","picker-options":e.endpickerOption,clearable:!1},model:{value:e.listQuery.EndDate,callback:function(t){e.$set(e.listQuery,"EndDate",t)},expression:"listQuery.EndDate"}}),e._v(" "),i("el-button",{attrs:{type:"text",size:"small"},on:{click:e.handleReset}},[e._v("Reset")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.handleSearch}},[e._v("Search")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"small",disabled:0==e.arrID.length},on:{click:e.handleExport}},[e._v("Export Excel")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"small",loading:e.dialogLoading},on:{click:e.handleVerify}},[e._v("Verify")]),e._v(" "),i("el-button",{staticStyle:{"margin-left":"auto"},attrs:{type:"primary",size:"small"},on:{click:e.handleSetting}},[e._v("Settings")])],1),e._v(" "),i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],ref:"listContainer",staticClass:"list-container clearfix"},[e.tableHeight?i("el-table",{ref:"revenusList",attrs:{size:"small",stripe:"",data:e.list,height:"99%","show-summary":"","summary-method":e.getSummaries},on:{"sort-change":e.sortByColumn,"selection-change":e.handleSelectChange}},[i("el-table-column",{attrs:{type:"selection"}}),e._v(" "),i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),e._l(e.cols,(function(e,t){return i("el-table-column",{key:t,attrs:{prop:e.prop,label:e.label,"min-width":e.width,sortable:"custom","show-overflow-tooltip":""}})})),e._v(" "),i("el-table-column",{attrs:{prop:"Total",label:"Total($)","min-width":"200","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==e.statsType&&t.row.MissingTrialCodes.length>0?i("div",[i("span",[e._v(e._s(e._f("rounding")(t.row.Total)))]),e._v(" "),i("span",{staticStyle:{color:"red"}},[e._v(" (Need setting trial unit price)")])]):t.row.MissingTrialCodes.length>0?i("div",[i("span",[e._v(e._s(e._f("rounding")(t.row.Total)))]),e._v(" "),i("span",{staticStyle:{color:"red"}},[e._v(" ("+e._s(t.row.MissingTrialCodes.join(","))+" need setting trial unit price)")])]):i("div",[e._v(e._s(e._f("rounding")(t.row.Total)))])]}}],null,!1,3489361780)})],2):e._e()],1),e._v(" "),i("div",{staticClass:"pagination"},[i("pagination",{attrs:{total:e.total,page:e.listQuery.PageIndex,limit:e.listQuery.PageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"PageIndex",t)},"update:limit":function(t){return e.$set(e.listQuery,"PageSize",t)},pagination:e.getList}})],1),e._v(" "),i("el-dialog",{attrs:{title:"Revenues Price Verification",visible:e.dialogVisible,size:"small",width:"600px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[e.verifyList.length>0?i("div",{staticClass:"verify-wrapper"},e._l(e.verifyList,(function(t,n){return i("div",{key:n,staticStyle:{"margin-bottom":"5px","word-break":"keep-all","word-wrap":"break-word"}},[e._v("\n Trial ID:\n "),i("span",{staticStyle:{"font-weight":"bold","margin-right":"5px"}},[e._v(e._s(t.trialCode))]),e._v(" "),i("span",[e._v("("+e._s(t.priceType.join(", "))+" "),i("span",{staticStyle:{color:"red"}},[e._v("did not set unit price")]),e._v(")")])])})),0):i("div",[e._v("\n No data.\n ")])])],1)},a=[],r=(i("ac6a"),i("db72")),o=(i("c5f6"),i("333d")),s=(i("7878"),i("4360")),l=i("2f62"),c=i("6b95"),u=[{label:"Trial ID",width:"90",prop:"TrialCode"},{label:"Expedited",width:"110",prop:"Expedited"},{label:"Indication",width:"110",prop:"Indication"},{label:"CRO",width:"90",prop:"Cro"},{label:"Name",width:"90",prop:"FullName"},{label:"Name CN",width:"100",prop:"ChineseName"},{label:"Reviewer ID",width:"115",prop:"ReviewerCode"},{label:"Month",width:"100",prop:"YearMonth"}],d=[{label:"Trial ID",width:"105",prop:"TrialCode"},{label:"Expedited",width:"105",prop:"Expedited"},{label:"Indication",width:"105",prop:"Indication"},{label:"CRO",width:"105",prop:"Cro"}],f=[{label:"Name",width:"105",prop:"FullName"},{label:"Name CN",width:"105",prop:"ChineseName"},{label:"Reviewer ID",width:"120",prop:"ReviewerCode"}],h=[{label:"Month",width:"100",prop:"YearMonth"}];function p(e){return 0===e?u:1===e?d:2===e?f:3===e?h:[]}var m=i("0340"),g=i("3339"),v=function(){return{CroId:"",TrialCode:"",Reviewer:"",BeginDate:new Date((new Date).setMonth((new Date).getMonth()-1)).format("yyyy-MM"),EndDate:new Date((new Date).setMonth((new Date).getMonth()-1)).format("yyyy-MM"),StatType:3,PageIndex:1,PageSize:20,Asc:!0,SortField:""}},b={components:{Pagination:o["default"]},filters:{rounding:function(e){return e?Number(e).toFixed(2):e}},data:function(){var e=this;return{listQuery:v(),list:[],total:0,listLoading:!1,beginPickerOption:{disabledDate:function(t){return e.listQuery.EndDate?t.getTime()>new Date(e.listQuery.EndDate).getTime():t.getTime()>Date.now()}},endpickerOption:{disabledDate:function(t){return e.listQuery.BeginDate?t.getTime()>Date.now()||t.getTime()<=new Date(e.listQuery.BeginDate).getTime():t.getTime()>Date.now()}},statsType:[{label:"Monthly",value:3},{label:"Trial",value:1},{label:"Reviewer",value:2},{label:"Detail",value:0}],cols:[],arrID:[],tableHeight:0,dialogVisible:!1,dialogLoading:!1,verifyList:[]}},computed:Object(r["a"])({},Object(l["b"])(["croList","revenusQuery"])),mounted:function(){s["a"].dispatch("global/getCROList"),this.revenusQuery&&(this.listQuery=this.revenusQuery),this.cols=p(this.listQuery.StatType),this.getList()},methods:Object(r["a"])({getList:function(){var e=this;this.listLoading=!0,Object(c["x"])(this.listQuery).then((function(t){e.listLoading=!1,e.tableHeight=e.$refs.listContainer.clientHeight-10+"px",e.list=t.Result.CurrentPageData,e.list.forEach((function(e){e.Expedited=0===e.Expedited?"No":1===e.Expedited?"24-Hour":"48-Hour",e.LastName&&e.FirstName&&(e.FullName="".concat(e.LastName," / ").concat(e.FirstName))})),e.total=t.Result.TotalCount})).catch((function(){e.listLoading=!1}))},handleSearch:function(){this.listQuery.PageIndex=1,this.getList(),this.setQueryParam(this.listQuery)},handleReset:function(){var e=this.listQuery.StatType;this.listQuery=v(),this.listQuery.StatType=e,this.getList()},handleStatsTypeChange:function(e){this.tableHeight=0,this.cols=p(e),this.listQuery.Reviewer="",this.listQuery.CroId="",this.listQuery.TrialCode="",this.listQuery.PageIndex=1,this.listQuery.Asc=!0,this.listQuery.SortField="",this.$refs.revenusList.doLayout(),this.arrID=[],this.getList(),this.$refs.revenusList.doLayout()},handleVerify:function(){var e=this;this.dialogLoading=!0;var t={beginDate:this.listQuery.BeginDate,endDate:this.listQuery.EndDate};Object(c["y"])(t).then((function(t){e.dialogLoading=!1,e.dialogVisible=!0,e.verifyList=[],t.Result&&t.Result.forEach((function(t){var i={};for(var n in i.trialCode=t.TrialCode,i.priceType=[],t)!1===t[n]&&i.priceType.push(n);e.verifyList.push(i)}))}))},handleExport:function(){var e=this,t=this.$refs.croSelection.selectedLabel,i="".concat(this.listQuery.BeginDate,"--").concat(this.listQuery.EndDate),n=[],a="",r=[],o=[],s=[],l=0,c=1,u=this.list.filter((function(t){return e.arrID.indexOf(t.Id)>-1}));u.forEach((function(t){l+=t.Total,t.Index=c++,1===e.listQuery.StatType&&(0===t.Expedited?t.Expedited="No":1===t.Expedited?t.Expedited="24-Hour":t.Expedited="48-Hour")})),0===this.listQuery.StatType?(n=[{key:"Index",width:5},{key:"TrialCode",width:20},{key:"Expedited",width:15},{key:"Indication",width:15},{key:"Cro",width:15},{key:"FullName",width:30},{key:"ChineseName",width:15},{key:"ReviewerCode",width:15},{key:"YearMonth",width:15},{key:"Total",width:20}],a=t?"Type:Detail CRO:".concat(t," Beginning Month:").concat(this.listQuery.BeginDate," End Month:").concat(this.listQuery.EndDate):"Type:Detail Beginning Month:".concat(this.listQuery.BeginDate," End Month:").concat(this.listQuery.EndDate),r=["","Trial ID","Expedited","Indication","CRO","Name","Name CN","Reviewer ID","Month","Total($)"],o=[{colIndex:10,format:"#,##0.00"}],s=["","Total(Current Page)","","","","","","","",l]):1===this.listQuery.StatType?(n=[{key:"Index",width:5},{key:"TrialCode",width:20},{key:"Expedited",width:15},{key:"Indication",width:15},{key:"Cro",width:15},{key:"Total",width:20}],a=t?"Type:Trial CRO:".concat(t," Beginning Month:").concat(this.listQuery.BeginDate," End Month:").concat(this.listQuery.EndDate):"Type:Trial Beginning Month:".concat(this.listQuery.BeginDate," End Month:").concat(this.listQuery.EndDate),r=["","Trial ID","Expedited","Indication","CRO","Total($)"],o=[{colIndex:6,format:"#,##0.00"}],s=["","Total(Current Page)","","","",l]):2===this.listQuery.StatType?(n=[{key:"Index",width:5},{key:"FullName",width:30},{key:"ChineseName",width:15},{key:"ReviewerCode",width:15},{key:"Total",width:20}],a=t?"Type:Reviewer CRO:".concat(t," Beginning Month:").concat(this.listQuery.BeginDate," End Month:").concat(this.listQuery.EndDate):"Type:Reviewer Beginning Month:".concat(this.listQuery.BeginDate," End Month:").concat(this.listQuery.EndDate),r=["","Name","Name CN","Reviewer ID","Total($)"],o=[{colIndex:5,format:"#,##0.00"}],s=["","Total(Current Page)","","",l]):(n=[{key:"Index",width:5},{key:"YearMonth",width:40},{key:"Total",width:40}],a=t?"Type:Monthly CRO:".concat(t," Beginning Month:").concat(this.listQuery.BeginDate," End Month:").concat(this.listQuery.EndDate):"Type:Monthly Beginning Month:".concat(this.listQuery.BeginDate," End Month:").concat(this.listQuery.EndDate),r=["","Month","Total($)"],o=[{colIndex:3,format:"#,##0.00"}],s=["","Total(Current Page)",l]),Object(m["a"])(i,n,"Revenues",a,r,u,s,o)},handleSetting:function(){this.$router.push({name:"RevenuesSetting"})},getSummaries:function(e){var t=e.columns,i=e.data,n=[];return t.forEach((function(e,t){if(2!==t){if("Total"===e.property){var a=i.map((function(t){return Number(t[e.property])}));a.every((function(e){return isNaN(e)}))||(n[t]=a.reduce((function(e,t){var i=Number(t);return isNaN(i)?e:g["a"].add(e,t)}),0))}}else n[t]="Total (Current Page)"})),n},sortByColumn:function(e){"ascending"===e.order?this.listQuery.Asc=!0:this.listQuery.Asc=!1,"FullName"===e.prop?this.listQuery.SortField="LastName":this.listQuery.SortField=e.prop,this.listQuery.PageIndex=1,this.getList()},handleSelectChange:function(e){for(var t=[],i=0;i<e.length;i++)t.push(e[i].Id);this.arrID=t}},Object(l["c"])({setQueryParam:"financials/SET_REVENUSQUERYPARAM"}))},y=b,w=(i("5049"),i("2877")),_=Object(w["a"])(y,n,a,!1,null,null,null);t["default"]=_.exports},"448a":function(e,t,i){var n=i("2236"),a=i("11b0"),r=i("6613"),o=i("0676");function s(e){return n(e)||a(e)||r(e)||o()}e.exports=s,e.exports.__esModule=!0,e.exports["default"]=e.exports},"44fb":function(e,t,i){var n=i("3eba"),a=i("55ac"),r="sunburstRootToNode";n.registerAction({type:r,update:"updateView"},(function(e,t){function i(t,i){var n=a.retrieveTargetInfo(e,[r],t);if(n){var o=t.getViewRoot();o&&(e.direction=a.aboveViewRoot(o,n.node)?"rollUp":"drillDown"),t.resetViewRoot(n.node)}}t.eachComponent({mainType:"series",subType:"sunburst",query:e},i)}));var o="sunburstHighlight";n.registerAction({type:o,update:"updateView"},(function(e,t){function i(t,i){var n=a.retrieveTargetInfo(e,[o],t);n&&(e.highlight=n.node)}t.eachComponent({mainType:"series",subType:"sunburst",query:e},i)}));var s="sunburstUnhighlight";n.registerAction({type:s,update:"updateView"},(function(e,t){function i(t,i){e.unhighlight=!0}t.eachComponent({mainType:"series",subType:"sunburst",query:e},i)}))},"451c":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"education-info"},[i("div",{staticClass:"title"},[e._v("Education (in chronological order)")]),e._v(" "),i("el-table",{staticStyle:{width:"100%","margin-top":"10px"},attrs:{data:e.educationList,border:"",size:"small"}},[i("el-table-column",{attrs:{type:"index",label:"No.",width:"45"}}),e._v(" "),i("el-table-column",{attrs:{prop:"BeginDateStr",label:"Start","min-width":"55","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"EndDateStr",label:"End","min-width":"55","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Degree",label:"Degree","min-width":"70","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{directives:[{name:"show",rawName:"v-show",value:t.row.Degree,expression:"scope.row.Degree"}]},[e._v("\n "+e._s(e.isEnglish?t.row.Degree:t.row.DegreeCN)+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Major",label:"Major","min-width":"130","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{directives:[{name:"show",rawName:"v-show",value:t.row.Major,expression:"scope.row.Major"}]},[e._v("\n "+e._s(e.isEnglish?t.row.Major:t.row.MajorCN)+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Organization",label:"Institution","min-width":"150","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{directives:[{name:"show",rawName:"v-show",value:t.row.Organization,expression:"scope.row.Organization"}]},[e._v("\n "+e._s(e.isEnglish?t.row.Organization:t.row.OrganizationCN)+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"City",label:"City","min-width":"70","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{directives:[{name:"show",rawName:"v-show",value:t.row.City,expression:"scope.row.City"}]},[e._v("\n "+e._s(e.isEnglish?t.row.City:t.row.CityCN)+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Province",label:"State/Province","min-width":"80","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{directives:[{name:"show",rawName:"v-show",value:t.row.Province,expression:"scope.row.Province"}]},[e._v("\n "+e._s(e.isEnglish?t.row.Province:t.row.ProvinceCN)+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Country",label:"Country","min-width":"70","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{directives:[{name:"show",rawName:"v-show",value:t.row.Country,expression:"scope.row.Country"}]},[e._v("\n "+e._s(e.isEnglish?t.row.Country:t.row.CountryCN)+"\n ")])]}}])})],1),e._v(" "),i("div",{staticClass:"title"},[e._v("Postgraduate Training (in chronological order)")]),e._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.postgraduateList,border:"",size:"small"}},[i("el-table-column",{attrs:{type:"index",label:"No.",width:"45"}}),e._v(" "),i("el-table-column",{attrs:{prop:"BeginDateStr",label:"Start","min-width":"55","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"EndDateStr",label:"End","min-width":"55","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Training",label:"Training","min-width":"70","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{directives:[{name:"show",rawName:"v-show",value:t.row.Training,expression:"scope.row.Training"}]},[e._v("\n "+e._s(e.isEnglish?t.row.Training:t.row.TrainingCN)+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Major",label:"Specialty / Research Field","min-width":"140","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{directives:[{name:"show",rawName:"v-show",value:t.row.Major,expression:"scope.row.Major"}]},[e._v("\n "+e._s(e.isEnglish?t.row.Major:t.row.MajorCN)+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Hospital",label:"Hospital","min-width":"110","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{directives:[{name:"show",rawName:"v-show",value:t.row.Hospital,expression:"scope.row.Hospital"}]},[e._v("\n "+e._s(e.isEnglish?t.row.Hospital:t.row.HospitalCN)+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"School",label:"University","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{directives:[{name:"show",rawName:"v-show",value:t.row.School,expression:"scope.row.School"}]},[e._v("\n "+e._s(e.isEnglish?t.row.School:t.row.SchoolCN)+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"City",label:"City","min-width":"70","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{directives:[{name:"show",rawName:"v-show",value:t.row.City,expression:"scope.row.City"}]},[e._v("\n "+e._s(e.isEnglish?t.row.City:t.row.CityCN)+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Province",label:"State/Province","min-width":"90","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{directives:[{name:"show",rawName:"v-show",value:t.row.Province,expression:"scope.row.Province"}]},[e._v("\n "+e._s(e.isEnglish?t.row.Province:t.row.ProvinceCN)+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Country",label:"Country","min-width":"70","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{directives:[{name:"show",rawName:"v-show",value:t.row.Country,expression:"scope.row.Country"}]},[e._v("\n "+e._s(e.isEnglish?t.row.Country:t.row.CountryCN)+"\n ")])]}}])})],1)],1)},a=[],r={props:{educationList:{type:Array,default:function(){return[]}},postgraduateList:{type:Array,default:function(){return[]}},isEnglish:{type:Boolean}},methods:{}},o=r,s=(i("27a6"),i("2877")),l=Object(s["a"])(o,n,a,!1,null,null,null);t["default"]=l.exports},4527:function(e,t,i){var n=i("2306"),a=i("6d8b");function r(e,t,i){n.Group.call(this),this._createPolyline(e,t,i)}var o=r.prototype;o._createPolyline=function(e,t,i){var a=e.getItemLayout(t),r=new n.Polyline({shape:{points:a}});this.add(r),this._updateCommonStl(e,t,i)},o.updateData=function(e,t,i){var a=e.hostModel,r=this.childAt(0),o={shape:{points:e.getItemLayout(t)}};n.updateProps(r,o,a,t),this._updateCommonStl(e,t,i)},o._updateCommonStl=function(e,t,i){var r=this.childAt(0),o=e.getItemModel(t),s=e.getItemVisual(t,"color"),l=i&&i.lineStyle,c=i&&i.hoverLineStyle;i&&!e.hasItemOption||(l=o.getModel("lineStyle").getLineStyle(),c=o.getModel("emphasis.lineStyle").getLineStyle()),r.useStyle(a.defaults({strokeNoScale:!0,fill:"none",stroke:s},l)),r.hoverStyle=c,n.setHoverStyle(this)},o.updateLayout=function(e,t){var i=this.childAt(0);i.setShape("points",e.getItemLayout(t))},a.inherits(r,n.Group);var s=r;e.exports=s},"455b":function(e,t,i){"use strict";i("82d6")},4572:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"organForm",attrs:{model:e.form,"label-width":"100px",size:"small",rules:e.rules}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:"病灶类型",prop:"LesionType"}},[i("el-select",{model:{value:e.form.LesionType,callback:function(t){e.$set(e.form,"LesionType",t)},expression:"form.LesionType"}},e._l(e.CriterionDictionaryList.LesionType,(function(e){return i("el-option",{key:e.Id,attrs:{value:parseInt(e.Code),label:e.ValueCN}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"器官类型",prop:"OrganType"}},[i("el-select",{model:{value:e.form.OrganType,callback:function(t){e.$set(e.form,"OrganType",t)},expression:"form.OrganType"}},e._l(e.$d.OrganType,(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})})),1)],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{type:"primary"},on:{click:e.handleCancel}},[e._v(" "+e._s(e.$t("common:button:cancel")))]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])},a=[],r=(i("ac6a"),i("456d"),i("e56e")),o={name:"LesionTypeForm",props:{data:{type:Object,default:function(){return{}}}},data:function(){return{form:{Id:"",CriterionId:"",LesionType:"",OrganType:""},rules:{LesionType:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur"]}],OrganType:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur"]}]},loading:!1,CriterionDictionaryList:[]}},mounted:function(){this.initForm(),this.getCriterionDictionary()},methods:{getCriterionDictionary:function(){var e=this;Object(r["bb"])({ReadingCriterionId:this.form.CriterionId,DictionaryCode:"LesionType"}).then((function(t){e.CriterionDictionaryList=t.Result}))},handleSave:function(){var e=this;this.$refs.organForm.validate((function(t){t&&(e.loading=!0,Object(r["f"])(e.form).then((function(t){e.loading=!1,e.$emit("close"),e.$emit("getList"),e.form.Id?e.$message.success(e.$t("common:message:savedSuccessfully")):e.$message.success(e.$t("common:message:addedSuccessfully"))})).catch((function(){e.loading=!1})))}))},handleCancel:function(){this.$emit("close")},initForm:function(){if(Object.keys(this.data).length>0)for(var e in this.form)this.data.hasOwnProperty(e)&&(this.form[e]=this.data[e]);this.loading=!1}}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},4573:function(e,t,i){var n=i("cbe5"),a=n.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(e,t){var i=t.cx,n=t.cy,a=2*Math.PI;e.moveTo(i+t.r,n),e.arc(i,n,t.r,0,a,!1),e.moveTo(i+t.r0,n),e.arc(i,n,t.r0,0,a,!0)}});e.exports=a},4576:function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-form",use:"icon-form-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-form"><path d="M84.068 23.784c-1.02 0-1.877-.32-2.572-.96a8.588 8.588 0 0 1-1.738-2.237 11.524 11.524 0 0 1-1.042-2.621c-.232-.895-.348-1.641-.348-2.238V0h.278c.834 0 1.622.085 2.363.256.742.17 1.645.575 2.711 1.214 1.066.64 2.363 1.535 3.892 2.686 1.53 1.15 3.453 2.664 5.77 4.54 2.502 2.045 4.494 3.771 5.977 5.178 1.483 1.406 2.618 2.6 3.406 3.58.787.98 1.274 1.812 1.46 2.494.185.682.277 1.278.277 1.79v2.046H84.068zM127.3 84.01c.278.682.464 1.535.556 2.558.093 1.023-.37 2.003-1.39 2.94-.463.427-.88.832-1.25 1.215-.372.384-.696.704-.974.96a6.69 6.69 0 0 1-.973.767l-11.816-10.741a44.331 44.331 0 0 0 1.877-1.535 31.028 31.028 0 0 1 1.737-1.406c1.112-.938 2.317-1.343 3.615-1.215 1.297.128 2.363.405 3.197.83.927.427 1.923 1.173 2.989 2.239 1.065 1.065 1.876 2.195 2.432 3.388zM78.23 95.902c2.038 0 3.752-.511 5.143-1.534l-26.969 25.83H18.037c-1.761 0-3.684-.47-5.77-1.407a24.549 24.549 0 0 1-5.838-3.709 21.373 21.373 0 0 1-4.518-5.306c-1.204-2.003-1.807-4.07-1.807-6.202V16.495c0-1.79.44-3.665 1.32-5.626A18.41 18.41 0 0 1 5.04 5.562a21.798 21.798 0 0 1 5.213-3.964C12.198.533 14.237 0 16.37 0h53.24v15.984c0 1.62.278 3.367.834 5.242a16.704 16.704 0 0 0 2.572 5.179c1.159 1.577 2.665 2.898 4.518 3.964 1.853 1.066 4.078 1.598 6.673 1.598h20.295v42.325L85.458 92.45c1.02-1.364 1.529-2.856 1.529-4.476 0-2.216-.857-4.113-2.572-5.69-1.714-1.577-3.776-2.366-6.186-2.366H26.1c-2.409 0-4.448.789-6.116 2.366-1.668 1.577-2.502 3.474-2.502 5.69 0 2.217.834 4.092 2.502 5.626 1.668 1.535 3.707 2.302 6.117 2.302h52.13zM26.1 47.951c-2.41 0-4.449.789-6.117 2.366-1.668 1.577-2.502 3.473-2.502 5.69 0 2.216.834 4.092 2.502 5.626 1.668 1.534 3.707 2.302 6.117 2.302h52.13c2.409 0 4.47-.768 6.185-2.302 1.715-1.534 2.572-3.41 2.572-5.626 0-2.217-.857-4.113-2.572-5.69-1.714-1.577-3.776-2.366-6.186-2.366H26.1zm52.407 64.063l1.807-1.663 3.476-3.196a479.75 479.75 0 0 0 4.587-4.284 500.757 500.757 0 0 1 5.004-4.667c3.985-3.666 8.48-7.758 13.485-12.276l11.677 10.741-13.485 12.404-5.004 4.603-4.587 4.22a179.46 179.46 0 0 0-3.267 3.068c-.88.853-1.367 1.322-1.46 1.407-.463.341-.973.703-1.529 1.087-.556.383-1.112.703-1.668.959-.556.256-1.413.575-2.572.959a83.5 83.5 0 0 1-3.545 1.087 72.2 72.2 0 0 1-3.475.895c-1.112.256-1.946.426-2.502.511-1.112.17-1.854.043-2.224-.383-.371-.426-.464-1.151-.278-2.174.092-.511.278-1.279.556-2.302.278-1.023.602-2.067.973-3.132l1.042-3.005c.325-.938.58-1.577.765-1.918a10.157 10.157 0 0 1 2.224-2.941z" /></symbol>'});o.a.add(s);t["default"]=s},"457a":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("base-model",{attrs:{config:e.model_cfg}},[i("template",{slot:"dialog-body"},[i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"qcQuestionForm",attrs:{model:e.form,rules:e.rules,"label-width":"130px",size:"small"}},[i("el-form-item",{attrs:{label:"问题名称",prop:"QuestionName"}},[i("el-input",{model:{value:e.form.QuestionName,callback:function(t){e.$set(e.form,"QuestionName",t)},expression:"form.QuestionName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"类型"}},[i("el-select",{on:{change:function(t){e.typeChange(t,e.form)}},model:{value:e.form.Type,callback:function(t){e.$set(e.form,"Type",t)},expression:"form.Type"}},[i("el-option",{attrs:{value:"select",label:"下拉框"}}),e._v(" "),i("el-option",{attrs:{value:"input",label:"单行文本框"}}),e._v(" "),i("el-option",{attrs:{value:"textarea",label:"多行文本框"}}),e._v(" "),i("el-option",{attrs:{value:"radio",label:"单选框"}})],1)],1),e._v(" "),"select"===e.form.Type||"radio"===e.form.Type?i("el-form-item",{attrs:{label:"选项: ",prop:"TypeValue"}},[i("el-input",{attrs:{placeholder:"选项请用‘|’分割多个选项"},model:{value:e.form.TypeValue,callback:function(t){e.$set(e.form,"TypeValue",t)},expression:"form.TypeValue"}})],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:"父问题"}},[i("el-select",{attrs:{clearable:""},on:{change:function(t){e.parentQuestionChange(t,e.form)}},model:{value:e.form.ParentId,callback:function(t){e.$set(e.form,"ParentId",t)},expression:"form.ParentId"}},e._l(e.parentOptions,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.QuestionName,value:e.Id}})})),1)],1),e._v(" "),e.form.ParentId?i("el-form-item",{attrs:{label:"父问题触发值",prop:"ParentTriggerValue"}},[i("el-select",{model:{value:e.form.ParentTriggerValue,callback:function(t){e.$set(e.form,"ParentTriggerValue",t)},expression:"form.ParentTriggerValue"}},e._l(e.parentTriggerValOptions,(function(e){return i("el-option",{key:e,attrs:{label:e,value:e}})})),1)],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:"是否必填"}},[i("el-radio-group",{model:{value:e.form.IsRequired,callback:function(t){e.$set(e.form,"IsRequired",t)},expression:"form.IsRequired"}},[i("el-radio",{attrs:{label:!0}},[e._v("是")]),e._v(" "),i("el-radio",{attrs:{label:!1}},[e._v("否")])],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"启用状态"}},[i("el-radio-group",{model:{value:e.form.IsEnable,callback:function(t){e.$set(e.form,"IsEnable",t)},expression:"form.IsEnable"}},[i("el-radio",{attrs:{label:!0}},[e._v("启用")]),e._v(" "),i("el-radio",{attrs:{label:!1}},[e._v("停用")])],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"序号",prop:"ShowOrder"}},[i("el-input-number",{attrs:{"controls-position":"right",min:0},model:{value:e.form.ShowOrder,callback:function(t){e.$set(e.form,"ShowOrder",t)},expression:"form.ShowOrder"}})],1)],1)],1),e._v(" "),i("template",{slot:"dialog-footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.handleCancle}},[e._v("Cancel")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleSave}},[e._v("Save")])],1)],2)},a=[],r=i("db72"),o=(i("456d"),i("20d6"),i("96cf"),i("3b8d")),s=(i("ac6a"),i("5df3"),i("4f7f"),i("28a5"),i("e56e")),l=i("7eeb"),c=function(){return{Id:"",QuestionName:"",IsRequired:!0,IsEnable:!0,Type:"select",TypeValue:"",ShowOrder:0,ParentId:"",ParentTriggerValue:""}},u={name:"QcQuestionForm",components:{BaseModel:l["default"]},data:function(){var e=this,t=function(t,i,n){if(""===i)n(new Error(e.$t("common:ruleMessage:specify")));else{var a=i.split("|");new Set(a).size!==a.length?n(new Error("选项不允许存在相同值")):n()}};return{btnLoading:!1,form:c(),rules:{QuestionName:[{required:!0,message:"Please specify",trigger:"blur"},{max:50,message:"The maximum length is 50"}],TypeValue:[{required:!0,message:"Please specify",trigger:"blur"},{validator:t,trigger:"blur"},{max:200,message:"The maximum length is 200"}],ParentTriggerValue:[{required:!0,message:"Please select",trigger:"blur"}]},model_cfg:{visible:!1,showClose:!0,width:"600px",title:""},parentOptions:[],parentTriggerValOptions:[],loading:!1}},mounted:function(){},methods:{openDialog:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t,i){var n,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i.Id||(this.form=c()),this.model_cfg.visible=!0,this.model_cfg.title=t,n={id:i.Id?i.Id:"",typeArray:["select","radio"]},e.next=6,this.getParentQsOpntions(n);case 6:i.ParentId&&(a=this.parentOptions.findIndex((function(e){return e.Id===i.ParentId})),-1!==a&&(this.parentTriggerValOptions=this.parentOptions[a].TypeValue.split("|"))),Object.keys(i).length&&i.Id&&(this.form=Object(r["a"])({},i));case 8:case"end":return e.stop()}}),e,this)})));function t(t,i){return e.apply(this,arguments)}return t}(),handleSave:function(){var e=this;this.$refs.qcQuestionForm.validate((function(t){t&&(e.btnLoading=!0,Object(s["n"])(e.form).then((function(t){e.btnLoading=!1,e.$message.success("Saved successfully!"),e.model_cfg.visible=!1,e.$emit("getList")})).catch((function(){e.btnLoading=!1})))}))},handleCancle:function(){this.model_cfg.visible=!1},typeChange:function(e,t){"select"!==e&&"radio"!==e&&(t.TypeValue="")},getParentQsOpntions:function(e){var t=this;return new Promise((function(i,n){t.loading=!0,Object(s["nb"])(e).then((function(e){t.parentOptions=e.Result,t.loading=!1,i()})).catch((function(){t.loading=!1,n()}))}))},parentQuestionChange:function(e,t){if(e){var i=this.parentOptions.findIndex((function(t){return t.Id===e}));-1!==i&&(this.parentTriggerValOptions=this.parentOptions[i].TypeValue.split("|"))}t.ParentTriggerValue=""}}},d=u,f=i("2877"),h=Object(f["a"])(d,n,a,!1,null,null,null);t["default"]=h.exports},"45b7":function(e,t,i){},"45e6":function(e,t,i){},"45f0":function(e,t,i){"use strict";i("8c49")},4650:function(e,t,i){var n=i("3eba"),a=i("6d8b");function r(e,t,i){var n,r={},o="toggleSelected"===e;return i.eachComponent("legend",(function(i){o&&null!=n?i[n?"select":"unSelect"](t.name):"allSelect"===e||"inverseSelect"===e?i[e]():(i[e](t.name),n=i.isSelected(t.name));var s=i.getData();a.each(s,(function(e){var t=e.get("name");if("\n"!==t&&""!==t){var n=i.isSelected(t);r.hasOwnProperty(t)?r[t]=r[t]&&n:r[t]=n}}))})),"allSelect"===e||"inverseSelect"===e?{selected:r}:{name:t.name,selected:r}}n.registerAction("legendToggleSelect","legendselectchanged",a.curry(r,"toggleSelected")),n.registerAction("legendAllSelect","legendselectall",a.curry(r,"allSelect")),n.registerAction("legendInverseSelect","legendinverseselect",a.curry(r,"inverseSelect")),n.registerAction("legendSelect","legendselected",a.curry(r,"select")),n.registerAction("legendUnSelect","legendunselected",a.curry(r,"unSelect"))},4663:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"canvas",staticClass:"cornerstone-element",staticStyle:{position:"relative"},attrs:{id:"canvas","element-loading-text":"Loading...","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{contextmenu:function(t){return t.preventDefault(),e.onContextmenu(t)},mousemove:e.sliderMousemove,mouseup:e.sliderMouseup}},[e.stack.imageRendered&&e.isReadingTaskViewInOrder?i("div",{staticClass:"info-visit",on:{dblclick:function(t){return t.stopPropagation(),e.preventDefault(t)}}},[i("div",{staticClass:"arrw_div_wrapper",style:{cursor:e.stack.visitTaskNum<=e.minVistNum?"not-allowed":"pointer",color:e.stack.visitTaskNum<=e.minVistNum?"#888":"#fff"},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.toggleSeries(t,-1)},dblclick:function(t){return t.stopPropagation(),e.preventDefault(t)}}},[i("i",{staticClass:"el-icon-caret-left"})]),e._v(" "),i("div",{staticClass:"blind_name_wrapper"},[e._v("\n "+e._s(e.stack.taskBlindName)+"\n ")]),e._v(" "),i("div",{staticClass:"arrw_div_wrapper",style:{cursor:e.stack.visitTaskNum>=e.maxVistNum?"not-allowed":"pointer",color:e.stack.visitTaskNum>=e.maxVistNum?"#888":"#fff"},on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.toggleSeries(t,1)},dblclick:function(t){return t.stopPropagation(),e.preventDefault(t)}}},[i("i",{staticClass:"el-icon-caret-right"})])]):e._e(),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:e.dicomInfo.series,expression:"dicomInfo.series"}],staticClass:"info-series"},[e.isReadingShowSubjectInfo?i("h2",{staticStyle:{color:"#f44336",padding:"5px 0px",margin:"0"}},[e._v(e._s(e.subjectCode)+" "+e._s(e.stack.taskBlindName))]):e._e(),e._v(" "),i("div",[e._v("Series: #"+e._s(e.dicomInfo.series))]),e._v(" "),i("div",[e._v("Image: #"+e._s(e.dicomInfo.frame))]),e._v(" "),i("div",[e._v(e._s(e.dicomInfo.modality))])]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:e.dicomInfo.series,expression:"dicomInfo.series"}],staticClass:"info-image"},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.mousePosition.mo,expression:"mousePosition.mo"}]},[e._v("\n Pos: "+e._s(e.mousePosition.x?e.mousePosition.x.toFixed(0):"")+", "+e._s(e.mousePosition.y?e.mousePosition.y.toFixed(0):"")+"\n ")]),e._v(" "),"CT"!==e.dicomInfo.modality&&"DR"!==e.dicomInfo.modality&&"CR"!==e.dicomInfo.modality||!e.mousePosition.mo?"PT"===e.dicomInfo.modality&&e.mousePosition.suv?i("div",[e._v("\n Density: "+e._s(-1===e.digitPlaces?e.mousePosition.suv:e.mousePosition.suv.toFixed(e.digitPlaces))+" SUV\n ")]):e.mousePosition.mo?i("div",[e._v("\n Density: "+e._s(e.mousePosition.mo)+"\n ")]):e._e():i("div",[e._v("\n Density: "+e._s(e.mousePosition.mo)+" HU\n ")]),e._v(" "),i("div",[e._v("\n W*H: "+e._s(e.dicomInfo.size)+"\n ")]),e._v(" "),i("div",[e._v("Zoom: "+e._s(e.dicomInfo.zoom))])]),e._v(" "),i("div",{staticClass:"info-subject"},[i("div",[e._v(e._s(e.stack.description))])]),e._v(" "),i("div",{ref:"sliderBox",staticClass:"my_slider_box",staticStyle:{position:"absolute",right:"1px",height:"calc(100% - 140px)",transform:"translateY(-50%)",top:"calc(50% - 30px)",width:"10px",background:"#333",cursor:"pointer"},on:{click:function(t){return t.stopPropagation(),e.goViewer(t)}}},[i("div",{staticStyle:{"z-index":"10",background:"#9e9e9e",height:"20px",width:"100%",position:"absolute",top:"0",cursor:"move"},style:{top:e.height+"%"},on:{mousedown:function(t){return t.stopPropagation(),e.sliderMousedown(t)}}})]),e._v(" "),i("div",{staticStyle:{position:"absolute",left:"50%",top:"30px",color:"#f44336",transform:"translateX(-50%)"}},[e._v("\n "+e._s(e.markers.top)+"\n ")]),e._v(" "),i("div",{staticStyle:{position:"absolute",top:"50%",right:"15px",color:"#f44336",transform:"translateY(-50%)"}},[e._v("\n "+e._s(e.markers.right)+"\n ")]),e._v(" "),i("div",{staticStyle:{position:"absolute",left:"50%",bottom:"15px",color:"#f44336",transform:"translateX(-50%)"}},[e._v("\n "+e._s(e.markers.bottom)+"\n ")]),e._v(" "),i("div",{staticStyle:{position:"absolute",top:"50%",left:"15px",color:"#f44336",transform:"translateY(-50%)"}},[e._v("\n "+e._s(e.markers.left)+"\n ")]),e._v(" "),i("div",{staticClass:"info-instance"},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.dicomInfo.location,expression:"dicomInfo.location"}]},[e._v("Location: "+e._s(e.dicomInfo.location))]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:e.dicomInfo.thick,expression:"dicomInfo.thick"}]},[e._v("Slice Thickness: "+e._s(e.dicomInfo.thick)+"mm")]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:e.dicomInfo.wwwc,expression:"dicomInfo.wwwc"}]},[e._v("WW/WL: "+e._s(e.dicomInfo.wwwc))])])])},a=[],r=i("75fc"),o=(i("7f7f"),i("5df3"),i("1c4c"),i("ac6a"),i("6762"),i("2fdb"),i("28a5"),i("20d6"),i("84b4"),i("db72")),s=(i("c5f6"),i("9b92")),l=i("2b0e"),c=i("2f62"),u=i("e5d9"),d=i("81d9"),f=i("6e43"),h=i("e6ad"),p=i("c8b5"),m=i.n(p),g=i("365d"),v=i("ac6b"),b=i("1529"),y=i("d225"),w=i("b0b4"),_=i("4e2b"),I=i("c603"),x=h["external"],S=h["getToolState"],T=h["toolStyle"],C=h["toolColors"],k=h["import"]("drawing/getNewContext"),R=h["import"]("drawing/draw"),D=h["import"]("drawing/drawHandles"),L=h["import"]("drawing/drawRect"),O=h["import"]("drawing/drawLinkedTextBox"),$=h["import"]("drawing/setShadow"),N=h["import"]("util/calculateSUV"),A=h["import"]("util/getROITextBoxCoords"),P=h["import"]("util/numbersWithCommas"),E=h["import"]("util/throttle"),M=h["import"]("tools/cursors"),F=h["import"]("util/getPixelSpacing"),j=h["getModule"],V=function(e){Object(_["a"])(i,e);var t=Object(I["a"])(i);function i(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(y["a"])(this,i);var a={name:"RectangleRoi",supportedInteractionTypes:["Mouse","Touch"],configuration:{drawHandles:!0,drawHandlesOnHover:!1,hideHandlesIfMoving:!1,renderDashed:!1},svgCursor:M};return e=t.call(this,n,a),e.throttledUpdateCachedStats=E(e.updateCachedStats,110),e}return Object(w["a"])(i,[{key:"createNewMeasurement",value:function(e){var t=e&&e.currentPoints&&e.currentPoints.image;if(t)return{visible:!0,active:!0,color:void 0,invalidated:!0,handles:{start:{x:e.currentPoints.image.x,y:e.currentPoints.image.y,highlight:!0,active:!1},end:{x:e.currentPoints.image.x,y:e.currentPoints.image.y,highlight:!0,active:!0},initialRotation:e.viewport.rotation,textBox:{active:!1,hasMoved:!1,movesIndependently:!1,drawnIndependently:!0,allowedOutsideImage:!0,hasBoundingBox:!0}}};console.log("required eventData not supplied to tool ".concat(this.name,"'s createNewMeasurement"))}},{key:"pointNearTool",value:function(e,t,i,n){var a=t&&t.handles&&t.handles.start&&t.handles.end,r=a;if(r||console.log("invalid parameters supplied to tool ".concat(this.name,"'s pointNearTool")),!r||!1===t.visible)return!1;var o="mouse"===n?15:25,s=x.cornerstone.pixelToCanvas(e,t.handles.start),l=x.cornerstone.pixelToCanvas(e,t.handles.end),c={left:Math.min(s.x,l.x),top:Math.min(s.y,l.y),width:Math.abs(s.x-l.x),height:Math.abs(s.y-l.y)},u=x.cornerstoneMath.rect.distanceToPoint(c,i);return u<o}},{key:"updateCachedStats",value:function(e,t,i){var n=x.cornerstone.metaData.get("generalSeriesModule",e.imageId)||{},a=n.modality,r=F(e),o=z(e,t,i.handles,a,r);i.cachedStats=o,i.invalidated=!1}},{key:"renderToolData",value:function(e){var t=this,i=S(e.currentTarget,this.name);if(i){var n=e.detail,a=n.image,r=n.element,o=T.getToolWidth(),s=j("globalConfiguration").configuration.lineDash,l=this.configuration,c=l.handleRadius,u=l.drawHandlesOnHover,d=l.hideHandlesIfMoving,f=l.renderDashed,h=k(n.canvasContext.canvas),p=F(a),m=p.rowPixelSpacing,g=p.colPixelSpacing,v=x.cornerstone.metaData.get("generalSeriesModule",a.imageId)||{},b=v.modality,y=m&&g;R(h,(function(e){for(var l=0;l<i.data.length;l++){var h=i.data[l];if(!1!==h.visible){var p=C.getColorIfActive(h),m={color:p,handleRadius:c,drawHandlesIfActive:u,hideHandlesIfMoving:d};$(e,t.configuration);var g={color:p};if(f&&(g.lineDash=s),L(e,r,h.handles.start,h.handles.end,g,"pixel",h.handles.initialRotation),t.configuration.drawHandles&&D(e,n,h.handles,m),!0===h.invalidated&&(h.cachedStats?t.throttledUpdateCachedStats(a,r,h):t.updateCachedStats(a,r,h)),!h.handles.textBox.hasMoved){var v=A(n.viewport,h.handles);Object.assign(h.handles.textBox,v)}var w=function(e){return U(e.start,e.end)},_=H(e,a.color,h.cachedStats,b,y,t.configuration,h);h.unit=Q(b,t.configuration.showHounsfieldUnits),O(e,r,h.handles.textBox,_,h.handles,w,p,o,10,!0)}}}))}}}]),i}(h["RectangleRoiTool"]);function q(e,t){return{left:Math.min(e.x,t.x),top:Math.min(e.y,t.y),width:Math.abs(e.x-t.x),height:Math.abs(e.y-t.y)}}function z(e,t,i,n,a){var r,o=q(i.start,i.end),s=x.cornerstone.getPixels(t,o.left,o.top,o.width,o.height),l=B(s,o);"PT"===n&&(r={mean:N(e,l.mean,!0)||0,stdDev:N(e,l.stdDev,!0)||0});var c=o.width*(a.colPixelSpacing||1)*(o.height*(a.rowPixelSpacing||1)),u=2*o.width*(a.colPixelSpacing||1)+2*o.height*(a.rowPixelSpacing||1);return{area:c||0,perimeter:u,count:l.count||0,mean:l.mean||0,variance:l.variance||0,stdDev:l.stdDev||0,min:l.min||0,max:l.max||0,meanStdDevSUV:r}}function B(e,t){for(var i=0,n=0,a=0,r=0,o=e?e[0]:null,s=e?e[0]:null,l=t.top;l<t.top+t.height;l++)for(var c=t.left;c<t.left+t.width;c++)i+=e[r],n+=e[r]*e[r],o=Math.min(o,e[r]),s=Math.max(s,e[r]),a++,r++;if(0===a)return{count:a,mean:0,variance:0,stdDev:0,min:0,max:0};var u=i/a,d=n/a-u*u;return{count:a,mean:u,variance:d,stdDev:Math.sqrt(d),min:o,max:s}}function U(e,t){var i=q(e,t),n=i.left,a=i.top,r=i.width,o=i.height;return[{x:n+r/2,y:a},{x:n,y:a+o/2},{x:n+r/2,y:a+o},{x:n+r,y:a+o/2}]}function Q(e,t){return"CT"===e&&!1!==t?"HU":""}function H(e,t,i,n,a){i.area;var r=i.mean,o=i.stdDev,s=i.min,l=i.max,c=i.meanStdDevSUV,u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},d=arguments.length>6?arguments[6]:void 0,f=u.showMinMax||!1,h=[],p=[];if(!t){var m=c&&0!==c.mean,g=Q(n,u.showHounsfieldUnits),v="Mean: ".concat(P(r.toFixed(2))," ").concat(g),b="Std Dev: ".concat(P(o.toFixed(2))," ").concat(g);if(m){var y=" SUV: ",w="".concat(y).concat(P(c.mean.toFixed(2))),_="".concat(y).concat(P(c.stdDev.toFixed(2))),I=Math.floor(e.measureText("".concat(b," ")).width);while(e.measureText(v).width<I)v+=" ";p.push("".concat(v).concat(w)),p.push("".concat(b," ").concat(_))}else p.push("".concat(v)),p.push("".concat(b));if(f){var x="Min: ".concat(s," ").concat(g),S="Max: ".concat(l," ").concat(g),T=m?Math.floor(e.measureText("".concat(b," ")).width):Math.floor(e.measureText("".concat(v," ")).width);while(e.measureText(x).width<T)x+=" ";p.push("".concat(x).concat(S))}}return d.hasOwnProperty("remark")&&(d.hasOwnProperty("status")&&d.status?h.push("".concat(d.remark,"(").concat(d.status,")")):h.push(d.remark)),h}var G=i("0780"),W=i("4a2a"),Y=i("d22b"),K=i("c41f"),Z=i("01de");l["default"].use(u["a"]);var X=h["import"]("util/scrollToIndex"),J=h["import"]("manipulators/getHandleNearImagePoint");h["external"].cornerstone=d,h["external"].Hammer=m.a,h["external"].cornerstoneMath=f,h["toolStyle"].setToolWidth(1),h["toolColors"].setToolColor("rgb(255, 0, 0)"),h["toolColors"].setActiveColor("rgb(0, 255, 0)"),h["init"]();var ee={name:"DicomCanvas",props:{isScrollSync:{type:Boolean,required:!0},canvasIndex:{type:Number,required:!0},currentDicomCanvasIndex:{type:Number,required:!0},isReadingShowSubjectInfo:{type:Boolean,required:!0},isReadingTaskViewInOrder:{type:Boolean,required:!0},hotKeyList:{type:Array,default:function(){return[]}}},data:function(){return{loading:!1,canvas:{},index:0,height:0,cornerstoneStyle:{},stack:{studyId:"",seriesId:"",instanceId:"",seriesNumber:"",imageIds:[],currentImageIdIndex:0,firstImageLoading:!1,visitTaskId:"",taskBlindName:"",frame:null,imageRendered:!1},dicomInfo:{hospital:"",pid:"",name:"",sex:"",age:"",acc:"",modality:"",time:"",series:"",frame:"",size:"",pixel:0,thick:0,wwwc:"",zoom:0,fps:5},toolState:{initialized:!1,activeTool:"none",dicomInfoVisible:!1,clipPlaying:!1,viewportInvert:!1},loadImagePromise:null,AnnotationSync:null,allROIToolData:{},type:"",series:"",ToolStateManager:null,renderedMeasured:[],measuredTools:["Length","Bidirectional","ArrowAnnotate","RectangleRoi"],measureData:[],selectedLesion:null,activeTool:0,activeToolName:"",isCurrentTask:!1,isBaseline:!1,readingTaskState:2,image:null,CriterionType:0,digitPlaces:2,sliderInfo:{oldB:null,oldM:null,isMove:!1},oldPosition:{},subjectCode:"",isMsg:!1,mousePosition:{x:"",y:"",mo:""},orientationMarkers:[],originalMarkers:[],imageId:"",markers:{top:"",right:"",bottom:"",left:""},maxVistNum:0,minVistNum:0,isFirstLoadIns:!1,isFirstChangeTask:!1,disabledMarks:[],wwwcArrIdx:0,wwwcArr:[{label:"CT Brain",val:5,wc:40,ww:80},{label:"CT Lungs",val:7,wc:-400,ww:1500},{label:"CT Abdomen",val:2,wc:60,ww:400},{label:"CT Liver",val:2,wc:40,ww:400},{label:"CT Bone",val:4,wc:300,ww:1500}]}},computed:Object(o["a"])({},Object(c["b"])(["visitTaskList","currentReadingTaskState"])),watch:{currentReadingTaskState:{immediate:!0,handler:function(e){2===e&&(this.activeTool=0),this.readingTaskState=e;var t=this.$refs.canvas,i=null;t&&(i=d["getEnabledElement"](t)),t&&i&&d["updateImage"](t,!0)}}},mounted:function(){var e=this;this.subjectCode=this.$router.currentRoute.query.subjectCode,document.addEventListener("mouseup",(function(){e.sliderMouseup()}));var t=Number(localStorage.getItem("digitPlaces"));this.digitPlaces=-1===t?this.digitPlaces:t,this.type=this.$router.currentRoute.query.type?this.$router.currentRoute.query.type:"",this.CriterionType=parseInt(localStorage.getItem("CriterionType")),this.canvas=this.$refs.canvas,this.canvas.addEventListener("dblclick",(function(t){e.dbclick(t)})),this.canvas.addEventListener("cornerstonenewimage",this.onNewImage),this.canvas.addEventListener("cornerstoneimagerendered",this.onImageRendered),this.canvas.addEventListener("cornerstoneimageloaded",this.onImageLoaded),this.canvas.addEventListener("cornerstonetoolsclipstopped",this.onClipStopped),this.canvas.addEventListener("cornerstonetoolsmeasurementcompleted",this.onMeasurementcompleted),this.canvas.addEventListener("cornerstonetoolsmeasurementmodified",this.onMeasurementmodified),this.canvas.addEventListener("cornerstonetoolsmouseup",this.mouseUp),this.canvas.addEventListener("cornerstonetoolsmousedown",this.mouseDown),this.canvas.addEventListener("cornerstonetoolsmouseclick",this.mouseClick),this.canvas.addEventListener("cornerstonetoolsstackscroll",this.stackScrollCallback),this.canvas.addEventListener("cornerstonetoolsmousemove",this.mouseMove),this.canvas.addEventListener("mouseleave",(function(){e.mousePosition.mo=""})),s["a"].$on("setReadingState",(function(t){2===t&&(e.activeTool=0),e.readingTaskState=t,d["updateImage"](e.canvas,!0)}))},beforeDestroy:function(){s["a"].$off("setReadingState")},methods:{goViewer:function(e){console.log(e.offsetY),console.log(this.$refs["sliderBox"].clientHeight);var t=100*e.offsetY/this.$refs["sliderBox"].clientHeight;this.height=t;var i=Math.trunc(this.stack.imageIds.length*this.height/100);X(this.canvas,i)},dbclick:function(e){this.$emit("setCornerstoneStyle"),this.preventDefault(e)},setZoomScale:function(e){var t=d["getViewport"](this.canvas);t.scale=e>0?2*t.scale:t.scale/2,d["setViewport"](this.canvas,t)},reloadCanvas:function(){d["resize"](this.canvas)},mouseMove:function(e){var t=e.detail,i=t.element,n=t.image,a=t.currentPoints,r=Math.round(a.image.x),o=Math.round(a.image.y),s={};r>=0&&o>=0&&r<n.columns&&o<n.rows&&(s.x=r,s.y=o,n.color?s.storedPixels=this.getRGBPixels(i,r,o,1,1):(s.storedPixels=d["getStoredPixels"](i,r,o,1,1),s.sp=s.storedPixels[0],s.mo=s.sp*n.slope+n.intercept,s.suv=Object(Z["a"])(n,s.sp))),this.mousePosition.x=a.image.x+1,this.mousePosition.y=a.image.y+1,this.mousePosition.mo=s.mo,this.mousePosition.suv=s.suv,this.isFirstChangeTask&&this.pointNearTool(e)&&(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault())},mouseUp:function(e){console.log("mouseUp"),this.readingTaskState>=2||(this.image=e.detail.image,this.getToolStateInfo(e))},mouseDown:function(e){console.log("mouseDown"),this.image=e.detail.image,this.isFirstChangeTask&&this.pointNearTool(e)&&(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault())},pointNearTool:function(e){for(var t=e.detail,i=t.element,n=t.image,a=t.currentPoints,r=h["globalImageIdSpecificToolStateManager"],o=0;o<this.measuredTools.length;o++){var s=this.measuredTools[o],l=r.getImageIdToolState(n.imageId,s);if(l){var c=new(h["".concat(s,"Tool")]),u=l.data.findIndex((function(e){return c.pointNearTool(i,e,a.canvas,"mouse")}));if(u>-1&&this.disabledMarks.length>0&&this.disabledMarks.indexOf(l.data[u].remark)>-1)return!0;if(u=l.data.findIndex((function(e){return J(i,e.handles,a.canvas)})),u>-1&&this.disabledMarks.length>0&&this.disabledMarks.indexOf(l.data[u].remark)>-1)return!0}}return!1},getDisabledMarks:function(e){var t=[];return e.map((function(e){0!==e.LesionType&&1!==e.LesionType&&7!==e.LesionType||!e.IsFirstChangeTask||t.push(e.OrderMarkName)})),t},getRGBPixels:function(e,t,i,n,a){if(e){t=Math.round(t),i=Math.round(i);var r,o,s,l=d["getEnabledElement"](e),c=[],u=0,f=l.image.getPixelData();if(l.image.color)for(o=0;o<a;o++)for(s=0;s<n;s++){r=4*((o+i)*l.image.columns+(s+t));var h=f[r],p=f[r+1],m=f[r+2],g=f[r+3];c[u++]=h,c[u++]=p,c[u++]=m,c[u++]=g}return c}},sliderMousedown:function(e){var t=this.$refs["sliderBox"].clientHeight;this.sliderInfo.oldB=parseInt(e.srcElement.style.top)*t/100,this.sliderInfo.oldM=e.clientY,this.sliderInfo.isMove=!0,e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault()},sliderMousemove:function(e){if(this.sliderInfo.isMove){var t=this.sliderInfo.oldB-(this.sliderInfo.oldM-e.clientY),i=this.$refs["sliderBox"].clientHeight;if(!(t<0)&&!(t>i)){var n=100*t/i,a=Math.trunc(this.stack.imageIds.length*this.height/100);a=a>this.stack.imageIds.length?this.stack.imageIds.length:a<0?0:a,this.height=n,this.stack.currentImageIdIndex!==a&&X(this.canvas,a)}}},sliderMouseup:function(e){this.sliderInfo.isMove=!1},getMeasureData:function(){var e=this,t=this.visitTaskList.findIndex((function(t){return t.VisitTaskId===e.stack.visitTaskId}));this.measureData=this.visitTaskList[t].MeasureData;var i=h["globalImageIdSpecificToolStateManager"],n=this.stack.imageIds[this.stack.currentImageIdIndex];return i.clearImageIdToolState(n),d["updateImage"](this.canvas,!0),!0},onContextmenu:function(e){var t=this;if(this.isBaseline||this.readingTaskState>=2||10===this.CriterionType)return!1;var i=e.offsetX,n=e.offsetY,a=h["globalImageIdSpecificToolStateManager"],r=d["getEnabledElement"](this.canvas),o=r.image.imageId;this.measuredTools.map((function(r){var s=a.getImageIdToolState(o,r);if(s){var l=new(h["".concat(r,"Tool")]),c=s.data.findIndex((function(e){return l.pointNearTool(t.canvas,e,{x:i,y:n},"mouse")}));if(-1===c)return!1;var u=t.measureData.findIndex((function(e){return e.MeasureData&&e.MeasureData.data&&e.MeasureData.data.uuid===s.data[c].uuid})),d=null;return u>-1&&(d=t.measureData[u].RowId),!!d&&(t.selectedLesion=s.data[c],t.$contextmenu({items:[{label:"Split",divided:!0,onClick:function(){t.handleSplit()}}],event:e,x:e.clientX,y:e.clientY,customClass:"class-a",zIndex:3,minWidth:100}),!1)}}))},handleSplit:function(){var e=this,t=this.measureData.findIndex((function(t){return t.MeasureData&&t.MeasureData.data&&t.MeasureData.data.uuid===e.selectedLesion.uuid}));t>-1&&s["a"].$emit("split",this.measureData[t])},getToolStateInfo:function(e){var t=e.detail,i=t.element,n=t.currentPoints,a=t.image,r=t.viewport,o=a.imageId,s=o.split("/")[o.split("/").length-1],l=null;s.includes("?frame=")&&(l=s.split("?frame=")[1],s=s.split("?frame=")[0]),this.stack.frame=isNaN(parseInt(l))?0:parseInt(l),s=s.split(".")[0];for(var c=h["globalImageIdSpecificToolStateManager"],u=0;u<this.measuredTools.length;u++){var d=this.measuredTools[u],f=c.getImageIdToolState(e.detail.image.imageId,d);if(f){var p=new(h["".concat(d,"Tool")]),m=f.data.findIndex((function(e){return p.pointNearTool(i,e,n.canvas,"mouse")}));if(m>-1){var g={};g.studyId=this.stack.studyId,g.seriesId=this.stack.seriesId,g.instanceId=s,g.frame=this.stack.frame?this.stack.frame:0,g.data=f.data[m],g.type=d,g.thick=this.dicomInfo.thick;var v=f.data[m].uuid,b=this.measureData.findIndex((function(e){return e.MeasureData&&e.MeasureData.data&&e.MeasureData.data.uuid===v}));if(b>-1){var y=this.measureData[b].OrderMarkName;if(-1!==this.disabledMarks.indexOf(y)&&this.disabledMarks)return e.stopImmediatePropagation(),e.stopPropagation(),void e.preventDefault();g.ww=Math.round(r.voi.windowWidth),g.wc=Math.round(r.voi.windowCenter);var w=this.measureData[b],_=this.canvas.querySelector("canvas");return g.pictureBaseStr=_.toDataURL("image/png",1),void this.$emit("modifyMeasureData",{measureData:g,questionInfo:w})}}}}},stackScrollCallback:function(e){var t=e.detail;this.isScrollSync&&this.$emit("scrollSync",{canvasIndex:this.canvasIndex,direction:t.direction}),this.stack.currentImageIdIndex=e.detail.newImageIdIndex,this.stack.imageIdIndex=e.detail.newImageIdIndex,this.series.imageIdIndex=e.detail.newImageIdIndex,this.height=100*this.stack.currentImageIdIndex/(this.stack.imageIds.length-1)},getSeriesLoadStatus:function(){var e=this,t=-1,i=this.visitTaskList.findIndex((function(t){return t.VisitTaskId===e.stack.visitTaskId}));if(-1===i)return t;var n=this.visitTaskList[i].StudyList,a=n.findIndex((function(t){return t.StudyId===e.stack.studyId}));if(-1===a)return t;var r=n[a].SeriesList,o=r.findIndex((function(t){return t.seriesId===e.stack.seriesId}));return-1===o?t:r[o].loadStatus?1:0},renderMeasuredData:function(e){var t=this;this.stack.frame=isNaN(parseInt(this.stack.frame))?0:parseInt(this.stack.frame);var i=this.visitTaskList.findIndex((function(e){return e.VisitTaskId===t.stack.visitTaskId}));this.measureData=this.visitTaskList[i].MeasureData;var n=e.detail.element,a=h["globalImageIdSpecificToolStateManager"];this.measureData.forEach((function(i){if(i.MeasureData&&(2===t.activeTool&&t.readingTaskState<2?i.MeasureData&&t.activeToolName===i.MeasureData.type?h["setToolActiveForElement"](n,i.MeasureData.type,{mouseButtonMask:1}):h["setToolPassiveForElement"](n,i.MeasureData.type,{mouseButtonMask:1}):1===t.activeTool&&t.readingTaskState<2?h["setToolPassiveForElement"](n,i.MeasureData.type,{mouseButtonMask:1}):h["setToolEnabledForElement"](n,i.MeasureData.type,{mouseButtonMask:1}),console.log("renderMeasuredData",t.stack.frame),t.stack.instanceId.includes(i.InstanceId)&&(i.NumberOfFrames===t.stack.frame||!i.NumberOfFrames)&&i.MeasureData)){var r=a.getImageIdToolState(e.detail.image.imageId,i.MeasureData.type);if(r&&r.data.length>0){var o=r.data.findIndex((function(e){return e.uuid===i.MeasureData.data.uuid}));-1===o&&a.addImageIdToolState(e.detail.image.imageId,i.MeasureData.type,i.MeasureData.data)}else a.addImageIdToolState(e.detail.image.imageId,i.MeasureData.type,i.MeasureData.data)}}))},initWwc:function(){if(this.isFirstLoadIns){for(var e=0;e<this.measureData.length;e++)if(this.stack.instanceId.includes(this.measureData[e].InstanceId)&&this.measureData[e].MeasureData){var t=this.measureData[e].MeasureData;this.setWwwc(t.ww,t.wc);break}}else{for(var i=0,n=0;n<this.measureData.length;n++)if(this.stack.instanceId.includes(this.measureData[n].InstanceId)&&this.measureData[n].MeasureData){var a=this.measureData[n].MeasureData;this.setWwwc(a.ww,a.wc),++i;break}0===i&&this.series.ww&&this.series.wc&&this.setWwwc(this.series.ww,this.series.wc),this.isFirstLoadIns=!0}},mouseClick:function(e){var t=this,i=e.detail,n=i.element,a=i.currentPoints,r=h["globalImageIdSpecificToolStateManager"];this.measuredTools.map((function(i){var o=r.getImageIdToolState(e.detail.image.imageId,i);if(o){var l=new(h["".concat(i,"Tool")]),c=o.data.findIndex((function(e){return l.pointNearTool(n,e,a.canvas,"mouse")}));if(c>-1){var u=t.measureData.findIndex((function(e){return e.MeasureData&&e.MeasureData.data&&e.MeasureData.data.uuid===o.data[c].uuid}));u>-1&&s["a"].$emit("setCollapseActive",t.measureData[u])}}}))},loadImageStack:function(e){var t=this;return new Promise((function(i){t.isCurrentTask=e.isCurrentTask,t.isBaseline=e.isBaseline,t.readingTaskState=e.readingTaskState,t.isCurrentTask&&t.readingTaskState<2?t.activeTool=1:t.activeTool=0,t.series=e,t.stack.seriesId=e.seriesId,t.stack.studyId=e.studyId,t.stack.seriesNumber=e.seriesNumber,t.stack.imageIds=e.imageIds,t.stack.currentImageIdIndex=e.imageIdIndex?e.imageIdIndex:0,t.stack.imageIdIndex=e.imageIdIndex,t.stack.firstImageLoading=!0,t.stack.visitTaskId=e.visitTaskId,t.stack.taskBlindName=e.taskBlindName,t.stack.description=e.description,t.stack.studyIndex=e.studyIndex,t.stack.seriesIndex=e.seriesIndex,t.stack.sliceThickness=e.sliceThickness,t.stack.instanceCount=e.instanceCount;var n=t.visitTaskList.findIndex((function(t){return t.VisitTaskId===e.visitTaskId}));t.stack.visitTaskNum=t.visitTaskList[n].VisitTaskNum,t.isFirstChangeTask=t.visitTaskList[n].IsFirstChangeTask,t.isFirstChangeTask&&(t.disabledMarks=t.getDisabledMarks(t.visitTaskList[n].MeasureData)),t.maxVistNum=t.visitTaskList[t.visitTaskList.length-1].VisitTaskNum,t.minVistNum=t.visitTaskList[0].VisitTaskNum,t.measureData=t.visitTaskList[n].MeasureData;var a=t.stack.imageIds[t.stack.currentImageIdIndex],r=a.split("/")[a.split("/").length-1],o=null;r.includes("?frame=")&&(o=r.split("?frame=")[1],r=r.split("?frame=")[0]),t.stack.frame=isNaN(parseInt(o))?0:parseInt(o),r=r.split(".")[0],t.stack.instanceId=r;var s=h["globalImageIdSpecificToolStateManager"];s.clearImageIdToolState(e.imageIds),t.toolState.clipPlaying&&t.toggleClipPlay(),t.toolState.viewportInvert=!1,t.toolState.dicomInfoVisible=!1;var l=t.$refs.canvas;d["enable"](l),l.tabIndex=0,l.focus();var c=t;d["loadAndCacheImage"](t.stack.imageIds[t.stack.currentImageIdIndex]).then((function(e){c.onFirstImageLoaded(e),i()})).catch((function(e){e.error&&e.error.message&&t.$message.error(e.error.message),i()}))}))},onFirstImageLoaded:function(e){var t=this;console.log("onFirstImageLoaded");var i=this.$refs.canvas,n=d["getDefaultViewportForImage"](this.canvas,e);if(d["displayImage"](this.canvas,e,n),!this.toolState.initialized){this.toolState.initialized=!0;var a=document.querySelectorAll("[data-tool]");Array.from(a).forEach((function(e){var n=e.getAttribute("data-tool"),a=h["".concat(n,"Tool")];if(a){var r=h["getToolForElement"](i,a);r||("Length"===n?h["addToolForElement"](i,g["a"],{configuration:{handleRadius:!1,drawHandlesOnHover:!0,hideHandlesIfMoving:!0,digits:t.digitPlaces,drawHandles:!0}}):"Bidirectional"===n?h["addToolForElement"](i,v["a"],{configuration:{digits:t.digitPlaces,drawHandles:!0}}):"ArrowAnnotate"===n?h["addToolForElement"](i,b["a"],{configuration:{allowEmptyLabel:!0,handleRadius:!1,drawHandlesOnHover:!0,hideHandlesIfMoving:!0}}):"RectangleRoi"===n?h["addToolForElement"](i,V,{configuration:{allowEmptyLabel:!0,handleRadius:!1,drawHandlesOnHover:!0,hideHandlesIfMoving:!0}}):h["addToolForElement"](i,a))}})),h["getToolForElement"](i,h["WwwcRegionTool"])||h["addToolForElement"](i,h["WwwcRegionTool"]),h["getToolForElement"](i,h["StackScrollMouseWheelTool"])||h["addToolForElement"](i,h["StackScrollMouseWheelTool"]),h["setToolActiveForElement"](i,"StackScrollMouseWheel",{}),h["getToolForElement"](i,G["a"])||h["addToolForElement"](i,G["a"]),h["setToolActiveForElement"](i,"ScaleOverlay",{})}h["addStackStateManager"](this.canvas,["stack","playClip"]),h["addToolState"](this.canvas,"stack",this.stack),d["updateImage"](i,!0),this.stack.firstImageLoading=!1,this.toolState.dicomInfoVisible=!0;var r=e.imageId.split("/")[e.imageId.split("/").length-1],o=null;r.includes("?frame=")&&(o=r.split("?frame=")[1],r=r.split("?frame=")[0]),this.stack.frame=isNaN(parseInt(o))?0:parseInt(o),r=r.split(".")[0],this.stack.instanceId=r,this.height=100*this.stack.currentImageIdIndex/(this.stack.imageIds.length-1),this.resetWwwc()},onNewImage:function(e){console.log("cornerstonenewimage");var t=e.detail.image,i=h["globalImageIdSpecificToolStateManager"],n=t.imageId;i.clearImageIdToolState(n),e.detail.enabledElement.options={};var a=e.detail.image.data;this.dicomInfo.hospital=a.string("x00080080"),this.dicomInfo.pid=a.string("x00120040"),this.dicomInfo.name=a.string("x00100010"),this.dicomInfo.age=a.string("x00101010"),this.dicomInfo.sex=a.string("x00100040"),this.dicomInfo.acc=a.string("x00080050"),this.dicomInfo.modality=a.string("x00080060"),this.dicomInfo.time=this.formatDicomDateTime(a.string("x00080020"),a.string("x00080030")),this.dicomInfo.series=a.string("x00200011"),this.dicomInfo.frame="".concat(this.stack.currentImageIdIndex+1,"/").concat(this.stack.imageIds.length),this.dicomInfo.size="".concat(a.uint16("x00280011"),"*").concat(a.uint16("x00280010"));var r=a.floatString("x00280030");r&&(this.dicomInfo.pixel=r.toFixed(2)),this.dicomInfo.thick=a.floatString("x00180050"),this.dicomInfo.thick&&(this.dicomInfo.thick=this.dicomInfo.thick.toFixed(2))},getScreenshots:function(){var e=this.canvas.querySelector("canvas"),t=e.toDataURL("image/png",1);return t},formatDicomDateTime:function(e,t){return e&&(e="".concat(e.substr(0,4),"-").concat(e.substr(4,2),"-").concat(e.substr(6,2))),t&&(t="".concat(t.substr(0,2),":").concat(t.substr(2,2),":").concat(t.substr(4,2))),t?"".concat(e," ").concat(t):"".concat(e," 00:00:00")},onImageLoaded:function(e){console.log("onImageLoaded")},onImageRendered:function(e){console.log("onImageRendered"),this.stack.imageRendered=!0;var t=e.detail.image.imageId,i=t.split("/")[t.split("/").length-1],n=null;i.includes("?frame=")&&(n=i.split("?frame=")[1],i=i.split("?frame=")[0]),this.stack.frame=isNaN(parseInt(n))?0:parseInt(n),i=i.split(".")[0],this.imageId!==i&&(this.getOrientationMarker(e.detail.element),this.isFirstLoadIns=!1,this.imageId=i),this.stack.instanceId=i;var a=e.detail.viewport;this.dicomInfo.wwwc="".concat(Math.round(a.voi.windowWidth),"/").concat(Math.round(a.voi.windowCenter)),this.dicomInfo.zoom=a.scale.toFixed(4);var r=e.detail.image.data,o=r.string("x00200032");this.dicomInfo.location=o?Number(o.split("\\")[o.split("\\").length-1]).toFixed(2):"",this.renderMeasuredData(e)},getOrientationMarker:function(e){var t=d["getEnabledElement"](e),i=d["metaData"].get("imagePlaneModule",t.image.imageId);if(i&&i.rowCosines&&i.columnCosines){var n=Object(W["a"])(i.rowCosines),a=Object(W["a"])(i.columnCosines),r=Object(Y["a"])(n),o=Object(Y["a"])(a),s={top:o,bottom:a,left:r,right:n};s&&(this.orientationMarkers=[o,n,a,r],this.originalMarkers=[o,n,a,r],this.setMarkers())}},onMeasurementcompleted:function(e){if(!(this.readingTaskState>=2)){var t=d["getEnabledElement"](this.canvas),i=t.viewport;console.log("completed"),this.activeTool=1,this.activeToolName="";var n=t.image.imageId,a=n.split("/")[n.split("/").length-1],r=null;if(a.includes("?frame=")&&(r=a.split("?frame=")[1],a=a.split("?frame=")[0]),this.stack.frame=isNaN(parseInt(r))?0:parseInt(r),a=a.split(".")[0],"Length"===e.detail.toolName||"ArrowAnnotate"===e.detail.toolName||"RectangleRoi"===e.detail.toolName){var o={};o.studyId=this.stack.studyId,o.seriesId=this.stack.seriesId,o.instanceId=a,o.frame=this.stack.frame?this.stack.frame:0,o.data=e.detail.measurementData,o.type=e.detail.toolName,o.thick=this.dicomInfo.thick,o.ww=Math.round(i.voi.windowWidth),o.wc=Math.round(i.voi.windowCenter);var s=this.canvas.querySelector("canvas");o.pictureBaseStr=s.toDataURL("image/png",1),this.$emit("setMeasureData",o),h["setToolPassiveForElement"](this.canvas,e.detail.toolName)}else if("Bidirectional"===e.detail.toolName){var l=Object(K["a"])(e.detail.measurementData,t.image,this.digitPlaces),c=l.longestDiameter,u=l.shortestDiameter,f={};f.studyId=this.stack.studyId,f.seriesId=this.stack.seriesId,f.instanceId=a,f.frame=this.stack.frame?this.stack.frame:0,f.data=e.detail.measurementData,f.type=e.detail.toolName,f.thick=this.dicomInfo.thick,f.ww=Math.round(i.voi.windowWidth),f.wc=Math.round(i.voi.windowCenter),f.data.longestDiameter=c,f.data.shortestDiameter=u;var p=this.canvas.querySelector("canvas");f.pictureBaseStr=p.toDataURL("image/png",1),this.$emit("setMeasureData",f),h["setToolPassiveForElement"](this.canvas,e.detail.toolName)}}},onMeasurementremoved:function(e){},onMeasurementmodified:function(e){console.log("modified")},measurementMouseUpHandler:function(e){console.log("measurementMouseUp")},updateImage:function(e){var t=this,i=this.visitTaskList.findIndex((function(e){return e.VisitTaskId===t.stack.visitTaskId}));this.measureData=this.visitTaskList[i].MeasureData;var n=h["globalImageIdSpecificToolStateManager"],a=d["getEnabledElement"](this.canvas),r=a.image.imageId;n.clearImageIdToolState(r),d["updateImage"](a,!0)},toggleSeries:function(e,t){var i=this;e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault(),this.measuredTools.forEach((function(e){h["setToolEnabledForElement"](i.canvas,e)}));var n=this.stack.visitTaskNum+t;if(!(n<this.minVistNum||n>this.maxVistNum)){var a=d["getEnabledElement"](this.canvas),r=a.image.imageId,o=r.split("/")[r.split("/").length-1];o.includes("?frame=")&&(o=o.split("?frame=")[0]),o=o.split(".")[0];var l=this.measureData.findIndex((function(e){return e.InstanceId===o})),c=null;l>-1&&(c=this.measureData[l]),this.series.imageIdIndex=this.stack.currentImageIdIndex,s["a"].$emit("toggleSeries",{series:this.series,type:t,canvasIndex:this.canvasIndex,measureData:c})}},removeToolState:function(e){var t=this,i=this.visitTaskList.findIndex((function(e){return e.VisitTaskId===t.stack.visitTaskId}));this.measureData=this.visitTaskList[i].MeasureData;var n=this.measureData.findIndex((function(t){return t.MeasureData&&t.MeasureData.data.uuid===e.data.uuid}));if(n>-1){this.measureData.splice(n,1);var a=d["getEnabledElement"](this.canvas),r=h["globalImageIdSpecificToolStateManager"],o=a.image.imageId;r.clearImageIdToolState(o),d["updateImage"](a,!0)}},getToolForElement:function(e){for(var t=!1,i=0;i<h["store"].state.tools.length;i++)if(h["store"].state.tools[i].name===e){t=!0;break}return t},onClipStopped:function(){this.toolState.clipPlaying=!1},onKeyPress:function(e){var t=e.detail.keyCode,i={PageUp:33,PageDown:34,End:35,Home:36};t<i.PageUp||t>i.Home||(t===i.Home?this.scrollPage(-9999):t===i.PageUp?this.scrollPage(-1):t===i.PageDown?this.scrollPage(1):t===i.End&&this.scrollPage(9999))},resizeCanvas:function(){d["resize"](this.canvas,!0)},activateCanvas:function(){this.canvas.tabIndex=0,this.canvas.focus()},resetViewport:function(){this.toolState.viewportInvert=!1;var e=d["getImage"](this.canvas);d["setViewport"](this.canvas,d["getDefaultViewportForImage"](this.canvas,e))},toggleDicomInfo:function(){this.toolState.dicomInfoVisible=!this.toolState.dicomInfoVisible,this.toolState.dicomInfoVisible?h["orientationMarkers"].enable(this.canvas):h["orientationMarkers"].disable(this.canvas),d["updateImage"](this.canvas)},setColormap:function(e){var t=d["getViewport"](this.canvas);t.colormap=e,d["setViewport"](this.canvas,t),d["updateImage"](this.canvas,!0),e||this.resetRenderCanvase(this.canvas)},resetRenderCanvase:function(e){var t=d["getEnabledElement"](e);t.renderingTools.colormapId=void 0,t.renderingTools.colorLut=void 0;var i=t.renderingTools.renderCanvas,n=i.getContext("2d");n.fillStyle="white",n.fillRect(0,0,i.width,i.height);var a=n.getImageData(0,0,i.width,i.height);t.renderingTools.renderCanvasContext=n,t.renderingTools.renderCanvasData=a},scrollPage:function(e){var t=this.stack.currentImageIdIndex+e;this.index=this.stack.currentImageIdIndex+e,t<0?t=0:t>=this.stack.imageIds.length&&(t=this.stack.imageIds.length-1),t!==this.stack.currentImageIdIndex&&X(this.canvas,t)},toggleClipPlay:function(){if(this.toolState.clipPlaying)return h["stopClip"](this.canvas),void(this.toolState.clipPlaying=!1);this.toolState.clipPlaying=!0,h["playClip"](this.canvas,this.dicomInfo.fps),h["getToolState"](this.canvas,"playClip").data[0].loop=!1},setFps:function(e){this.dicomInfo.fps=e},resetWwwc:function(){this.toolState.viewportInvert=!1;var e=d["getViewport"](this.canvas);e.invert=!1;var t=d["getImage"](this.canvas);e.voi.windowWidth=t.windowWidth,e.voi.windowCenter=t.windowCenter,d["setViewport"](this.canvas,e)},setWwwc:function(e,t){var i=d["getViewport"](this.canvas);i.voi.windowWidth=e,i.voi.windowCenter=t,d["setViewport"](this.canvas,i)},toggleInvert:function(){this.toolState.viewportInvert=!this.toolState.viewportInvert;var e=d["getViewport"](this.canvas);e.invert=this.toolState.viewportInvert,d["setViewport"](this.canvas,e)},activateZoom:function(){h["addTool"](h["ZoomTool"],{configuration:{invert:!1,preventZoomOutsideImage:!1,minScale:.1,maxScale:20}}),h["setToolActive"]("Zoom",{mouseButtonMask:1}),this.toolState.activeTool="zoom"},resetRotate:function(){this.orientationMarkers=Object(r["a"])(this.originalMarkers),this.setMarkers();var e=d["getViewport"](this.canvas);e.hflip=!1,e.vflip=!1,e.rotation=0,d["setViewport"](this.canvas,e)},setMarkers:function(){var e=Object(r["a"])(this.orientationMarkers);for(var t in this.markers){var i=e.shift(0);this.markers[t]=i}},setRotate:function(e,t,i,n){var a=Object(r["a"])(this.orientationMarkers);2===n?(this.orientationMarkers[0]=a[2],this.orientationMarkers[2]=a[0]):3===n?(this.orientationMarkers[1]=a[3],this.orientationMarkers[3]=a[1]):4===n?this.orientationMarkers=a.slice(1,4).concat(a[0]):5===n&&(this.orientationMarkers=[a[3]].concat(a.slice(0,3))),this.setMarkers();var o=d["getViewport"](this.canvas);e&&(o.hflip=!o.hflip),t&&(o.vflip=!o.vflip),0!==i&&(o.rotation+=i),d["setViewport"](this.canvas,o)},saveImage:function(){var e=d["getImage"](this.canvas).data.string("x00080018");h["SaveAs"](this.canvas,"".concat(e,".png"))},fitToWindow:function(){this.stack.seriesNumber&&d["fitToWindow"](this.canvas)},fitToImage:function(){if(this.stack.seriesNumber){var e=d["getEnabledElement"](this.canvas);e.viewport.scale=1,d["updateImage"](this.canvas)}},removeLabel:function(e){var t=X(this.canvas,e.data.imageIdIndex),i=this;Promise.all([t]).then((function(t){h["removeToolState"](i.canvas,e.type,e.data),d["updateImage"](i.canvas)}))},setToolPassive:function(e){h["setToolPassiveForElement"](this.canvas,e),this.activeTool=1,this.activeToolName=""},setToolActive:function(e){var t=this;this.activeTool=2,this.activeToolName=e,this.$nextTick((function(){h["isToolActiveForElement"](t.canvas,e)||h["setToolActiveForElement"](t.canvas,e,{mouseButtonMask:1})}))},setToolEnabled:function(e){this.activeToolName="",h["setToolEnabledForElement"](this.canvas,e),this.activeTool=0,this.readingTaskState=2},setAllToolsPassive:function(){var e=this;h["store"].state.tools.forEach((function(t){h["setToolPassiveForElement"](e.canvas,t.name)}))},addTargetElement:function(e){e.addTarget(this.$refs.canvas)},removeTarget:function(e){e.removeTarget(this.$refs.canvas)},addSourceElement:function(e){e.addSource(this.$refs.canvas)},removeSource:function(e){e.removeSource(this.$refs.canvas)},activeReferenceLine:function(e){h["getToolForElement"](this.canvas,h["ReferenceLinesTool"])||h["addToolForElement"](this.canvas,h["ReferenceLinesTool"]),h["setToolEnabledForElement"](this.canvas,"ReferenceLines",{synchronizationContext:e})},disabledReferenceLine:function(e){e.enabled=!1,e.remove(this.canvas),h["setToolDisabledForElement"](this.canvas,"ReferenceLines")},activeViewPortToolSync:function(e,t){e.add(this.canvas),e.enabled=!0,h["getToolForElement"](this.canvas,h["".concat(t,"Tool")])||h["addToolForElement"](this.canvas,h["".concat(t,"Tool")]),h["setToolActiveForElement"](this.canvas,t,{mouseButtonMask:1,synchronizationContext:e})},disabledViewPortToolSync:function(e,t){e.enabled=!1,e.remove(this.canvas),h["setToolDisabledForElement"](this.canvas,t)},activeImageSync:function(e){return e.add(this.$refs.canvas),e.enabled=!0,!1},disabledImageSync:function(e){return e.remove(this.$refs.canvas),e.enabled=!1,!1},activeAnnotationSync:function(e){this.AnnotationSync=e,e.add(this.$refs.canvas),e.enabled=!0},disabledAnnotationSync:function(e){this.AnnotationSync=null,e.enabled=!1,e.remove(this.$refs.canvas),this.setAllToolsPassive()},getToolSate:function(){for(var e=["Probe","EllipticalRoi","RectangleRoi","ArrowAnnotate","Length","CobbAngle","Angle","Bidirectional","FreehandRoi"],t=0;t<e.length;t++){var i=e[t],n=JSON.stringify(h["getToolState"](this.canvas,i));void 0!==n&&(this.allROIToolData[e[t]]=JSON.parse(n))}},preventDefault:function(e){e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault()}}},te=ee,ie=(i("62a7"),i("b169"),i("2877")),ne=Object(ie["a"])(te,n,a,!1,null,"3605968b",null);t["default"]=ne.exports},"46c8":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"sysAttachmentFrom",staticClass:"upload-temporary-file",attrs:{model:e.form,"label-width":"170px",size:"small",rules:e.rules}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:"文件类型: ",prop:"FileTypeId"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{size:"small",filterable:""},model:{value:e.form.FileTypeId,callback:function(t){e.$set(e.form,"FileTypeId",t)},expression:"form.FileTypeId"}},e._l(e.dictionaryList.Sys_Document,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.Value,value:e.Id}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"文件: "}},[i("div",{staticClass:"upload-container"},[i("el-upload",{staticClass:"upload-demo",attrs:{action:"",accept:".pdf","before-upload":e.beforeUpload,"http-request":e.handleUploadFile,"on-preview":e.handlePreview,"on-remove":e.handleRemoveFile,"show-file-list":!0,"file-list":e.fileList,limit:1,"on-exceed":e.handleExceed,disabled:""===e.form.Type}},[i("el-button",{attrs:{size:"small",type:"primary",disabled:""===e.form.FileTypeId,loading:e.btnLoading}},[e._v("Select")]),e._v(" "),i("span",{staticClass:"el-upload__tip",staticStyle:{"margin-left":"10px"},attrs:{slot:"tip"},slot:"tip"},[e._v("\n (must be in pdf format)\n ")])],1)],1)]),e._v(" "),i("el-form-item",{attrs:{label:"需要签署的用户类型: ",prop:"NeedConfirmedUserTypeIdList"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{multiple:""},model:{value:e.form.NeedConfirmedUserTypeIdList,callback:function(t){e.$set(e.form,"NeedConfirmedUserTypeIdList",t)},expression:"form.NeedConfirmedUserTypeIdList"}},e._l(e.userTypeOptions,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.UserTypeShortName,value:e.Id}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"查看最短时间(分钟): ",prop:"SignViewMinimumMinutes"}},[i("el-input-number",{attrs:{"controls-position":"right",min:1,max:50},model:{value:e.form.SignViewMinimumMinutes,callback:function(t){e.$set(e.form,"SignViewMinimumMinutes",t)},expression:"form.SignViewMinimumMinutes"}})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{size:"small",type:"primary",disabled:""===e.form.FileTypeId||""===e.form.Name,loading:e.saveBtnLoading},on:{click:e.handleSave}},[e._v("Save")])],1)],1)])},a=[],r=(i("7f7f"),i("db72")),o=(i("ac6a"),i("456d"),i("96cf"),i("3b8d")),s=i("e56e"),l=i("3e42"),c=i("86a6"),u={props:{data:{type:Object,default:function(){return{}}}},data:function(){return{form:{Id:"",FileTypeId:"",Name:"",Path:"",IsDeleted:!1,SignViewMinimumMinutes:null},rules:{FileTypeId:[{required:!0,message:"Please select",trigger:["blur"]}],SignViewMinimumMinutes:[{required:!0,message:"Please specify",trigger:["change"]}],NeedConfirmedUserTypeIdList:[{required:!0,message:"Please select",trigger:["blur"]}]},fileList:[],userTypeOptions:[],btnLoading:!1,saveBtnLoading:!1,loading:!1,dictionaryList:{}}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.loading=!0,e.next=3,this.getDicData();case 3:return e.next=5,this.getUserType();case 5:Object.keys(this.data).length>0&&(this.data.Path&&(this.fileList=[{name:this.data.Name,path:this.data.Path}]),this.form.Id=this.data.Id,this.form.FileTypeId=this.data.FileTypeId,this.form.Name=this.data.Name,this.form.Path=this.data.Path,this.form.IsDeleted=this.data.IsDeleted,this.form.SignViewMinimumMinutes=this.data.SignViewMinimumMinutes),this.loading=!1;case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getDicData:function(){var e=this;Object(c["c"])(["Sys_Document"]).then((function(t){e.dictionaryList=Object(r["a"])({},t.Result)})).catch((function(){}))},getUserType:function(){var e=this;Object(l["de"])().then((function(t){e.userTypeOptions=t.Result,e.form.Id&&(e.form.NeedConfirmedUserTypeIdList=e.data.NeedConfirmedUserTypeIds)})).catch((function(){e.loading=!1}))},beforeUpload:function(e){return this.checkFileSuffix(e.name)?(this.fileList=[],!0):(this.$message.error("must be in pdf format"),!1)},handleUploadFile:function(e){var t=this;this.btnLoading=!0,Object(s["Qb"])(e.file).then((function(i){if(t.btnLoading=!1,i.IsSuccess){t.form.Path=i.Result.FilePath,t.form.Name=e.file.name;var n={name:t.form.Name,path:t.form.Path};t.fileList.push(n)}})).catch((function(){t.btnLoading=!1}))},handleSave:function(){var e=this;this.$refs.sysAttachmentFrom.validate((function(t){t&&(e.form.Name?(e.saveBtnLoading=!0,Object(s["v"])(e.form).then((function(t){e.saveBtnLoading=!1,e.$emit("closeDialog"),e.$emit("getList"),e.$message.success("Uploaded successfully")})).catch((function(){e.saveBtnLoading=!1}))):e.$message.error("Please select file."))}))},handleRemoveFile:function(){this.fileList=[],this.form.Path="",this.form.Name=""},handlePreview:function(e){e.fullPath&&window.open(e.fullPath,"_blank")},handleExceed:function(e,t){this.$message.warning("Upload is currently limited to 1 file")},checkFileSuffix:function(e){var t=["pdf"],i=e.substring(e.lastIndexOf(".")+1).toLocaleLowerCase();return-1!==t.indexOf(i)}}},d=u,f=(i("ce0b"),i("2877")),h=Object(f["a"])(d,n,a,!1,null,null,null);t["default"]=h.exports},"46f5":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-table",{ref:"taskTbl",staticClass:"historicAssess_wrapper",attrs:{data:e.taskList,"row-class-name":e.rowClass}},[i("el-table-column",{attrs:{prop:"VisitTaskNum",label:e.$t("trials:medicalFeedback:table:taskName"),width:"200",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.TaskName)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskBlindName",label:e.$t("trials:medicalFeedback:table:taskBlindName"),width:"200",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),e.judgeQuestion&&e.judgeQuestion.length>0?e._l(e.judgeQuestion,(function(t,n){return i("el-table-column",{key:t,attrs:{prop:"",label:t,"show-overflow-tooltip":"",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.JudgeQuestionAnswerInfoList[n]&&3===t.row.JudgeQuestionAnswerInfoList[n].QuestionGenre&&t.row.JudgeQuestionAnswerInfoList[n].DictionaryCode?i("span",[e._v("\n "+e._s(t.row.JudgeQuestionAnswerInfoList[n].Answer?e.$fd(t.row.JudgeQuestionAnswerInfoList[n].DictionaryCode,parseInt(t.row.JudgeQuestionAnswerInfoList[n].Answer)):"")+"\n ")]):i("span",[e._v("\n "+e._s(t.row.JudgeQuestionAnswerInfoList.length>n?t.row.JudgeQuestionAnswerInfoList[n].Answer:"")+"\n ")])]}}],null,!0)})})):e._e(),e._v(" "),i("el-table-column",{attrs:{prop:"ArmEnum",label:e.$t("trials:medicalFeedback:title:currentReader"),"show-overflow-tooltip":"",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.TaskId?i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleView(t.row,t.row.TaskId)}}},[e._v("\n "+e._s(e.$fd("ArmEnum",t.row.ArmEnum))+"\n ")]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"OtherArmEnum",label:e.$t("trials:medicalFeedback:title:otherReader"),"show-overflow-tooltip":"",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.OtherTaskId?i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleView(t.row,t.row.OtherTaskId)}}},[e._v("\n "+e._s(e.$fd("ArmEnum",t.row.OtherArmEnum))+"\n ")]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"GlobalTaskName",label:e.$t("trials:medicalFeedback:title:relatedGlobalTask"),"show-overflow-tooltip":"",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.GlobalTaskId?i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleView(t.row,t.row.GlobalTaskId)}}},[e._v("\n "+e._s(t.row.GlobalTaskName)+"\n ")]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"JudgeTaskName",label:e.$t("trials:medicalFeedback:title:relatedadjudicationTask"),"show-overflow-tooltip":"",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.JudgeTaskId?i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleView(t.row,t.row.JudgeTaskId)}}},[e._v("\n "+e._s(t.row.JudgeTaskName)+"\n ")]):e._e()]}}])})],2)},a=[],r=i("5f87"),o={name:"VReview",props:{auditInfo:{type:Object,default:function(){return{}}},rowData:{type:Object,default:function(){return{}}}},data:function(){return{taskList:[],judgeQuestion:[]}},mounted:function(){this.initPage()},methods:{initPage:function(){var e=[];this.auditInfo.TaskList.length>0&&this.auditInfo.TaskList[0].JudgeQuestionAnswerInfoList&&this.auditInfo.TaskList[0].JudgeQuestionAnswerInfoList.map((function(t){e.push(t.QuestionName)})),this.judgeQuestion=e,this.taskList=this.auditInfo.TaskList},handleView:function(e,t){var i=this.$route.query.trialId,n=Object(r["a"])(),a=this.rowData.CriterionType,o=this.rowData.ReadingTool;o=isNaN(parseInt(o))?null:parseInt(o);var s=this.rowData.IsReadingTaskViewInOrder,l=this.rowData.TrialReadingCriterionId,c="";c=0===o?"/readingDicoms?TrialReadingCriterionId=".concat(l,"&trialId=").concat(i,"&subjectCode=").concat(this.rowData.SubjectCode,"&subjectId=").concat(this.rowData.SubjectId,"&visitTaskId=").concat(t,"&isReadingTaskViewInOrder=").concat(s,"&criterionType=").concat(a,"&readingTool=").concat(o,"&TokenKey=").concat(n,"&key=").concat((new Date).getTime()):"/noneDicomReading?TrialReadingCriterionId=".concat(l,"&trialId=").concat(i,"&subjectCode=").concat(this.rowData.SubjectCode,"&subjectId=").concat(this.rowData.SubjectId,"&visitTaskId=").concat(t,"&isReadingTaskViewInOrder=").concat(s,"&criterionType=").concat(a,"&readingTool=").concat(o,"&TokenKey=").concat(n,"&key=").concat((new Date).getTime());var u=this.$router.resolve({path:c});window.open(u.href,"_blank")},rowClass:function(e){var t=e.row;e.rowIndex;if(t.IsCurrentTask)return"highlight_row"}}},s=o,l=(i("d55a"),i("2877")),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},4713:function(e,t,i){"use strict";i("2f19")},"471e":function(e,t){function i(e){var t=e.getRect(),i=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:i.start,end:i.end,weeks:i.weeks,dayCount:i.allDay}},api:{coord:function(t,i){return e.dataToPoint(t,i)}}}}e.exports=i},4738:function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-server",use:"icon-server-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-server"><defs><style type="text/css"></style></defs><path d="M890 120H134a70 70 0 0 0-70 70v500a70 70 0 0 0 70 70h756a70 70 0 0 0 70-70V190a70 70 0 0 0-70-70z m-10 520a40 40 0 0 1-40 40H712V448a40 40 0 0 0-80 0v232h-80V368a40 40 0 0 0-80 0v312h-80V512a40 40 0 0 0-80 0v168H184a40 40 0 0 1-40-40V240a40 40 0 0 1 40-40h656a40 40 0 0 1 40 40zM696 824H328a40 40 0 0 0 0 80h368a40 40 0 0 0 0-80z" fill="#bfbfbf" p-id="6718" /></symbol>'});o.a.add(s);t["default"]=s},4784:function(e,t,i){var n=i("3eba"),a=i("f706"),r=i("c8ef"),o=i("1687"),s=i("87c3"),l=n.extendChartView({type:"effectScatter",init:function(){this._symbolDraw=new a(r)},render:function(e,t,i){var n=e.getData(),a=this._symbolDraw;a.updateData(n),this.group.add(a.group)},updateTransform:function(e,t,i){var n=e.getData();this.group.dirty();var a=s().reset(e);a.progress&&a.progress({start:0,end:n.count()},n),this._symbolDraw.updateLayout(n)},_updateGroupTransform:function(e){var t=e.coordinateSystem;t&&t.getRoamTransform&&(this.group.transform=o.clone(t.getRoamTransform()),this.group.decomposeTransform())},remove:function(e,t){this._symbolDraw&&this._symbolDraw.remove(t)},dispose:function(){}});e.exports=l},"479b":function(e,t,i){},"47ad":function(e,t,i){},"47b4":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"emailForm",attrs:{model:e.form,"label-width":"160px",size:"small",rules:e.rules}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:"Code: ",prop:"Code"}},[i("el-input",{model:{value:e.form.Code,callback:function(t){e.$set(e.form,"Code",t)},expression:"form.Code"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"场景: ",prop:"ScenarioId"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{size:"small"},model:{value:e.form.ScenarioId,callback:function(t){e.$set(e.form,"ScenarioId",t)},expression:"form.ScenarioId"}},e._l(e.scenarioOption,(function(e){return i("el-option",{key:e,attrs:{label:e,value:e}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"标题: ",prop:"Title"}},[i("el-input",{model:{value:e.form.Title,callback:function(t){e.$set(e.form,"Title",t)},expression:"form.Title"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"正文: ",prop:"Body"}},[i("el-input",{attrs:{type:"textarea",rows:"5"},model:{value:e.form.Body,callback:function(t){e.$set(e.form,"Body",t)},expression:"form.Body"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"发件箱: ",prop:"FromEmail"}},[i("el-input",{model:{value:e.form.FromEmail,callback:function(t){e.$set(e.form,"FromEmail",t)},expression:"form.FromEmail"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"发件箱授权码: ",prop:"AuthorizationCode"}},[i("el-input",{model:{value:e.form.AuthorizationCode,callback:function(t){e.$set(e.form,"AuthorizationCode",t)},expression:"form.AuthorizationCode"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"收件人: ",prop:"ReceiveEmail"}},[i("el-input",{model:{value:e.form.ReceiveEmail,callback:function(t){e.$set(e.form,"ReceiveEmail",t)},expression:"form.ReceiveEmail"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"抄送邮箱: ",prop:"CopyEmail"}},[i("el-input",{model:{value:e.form.CopyEmail,callback:function(t){e.$set(e.form,"CopyEmail",t)},expression:"form.CopyEmail"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"是否需要回执: ",prop:"IsReturnRequired"}},[i("el-radio-group",{model:{value:e.form.IsReturnRequired,callback:function(t){e.$set(e.form,"IsReturnRequired",t)},expression:"form.IsReturnRequired"}},[i("el-radio",{attrs:{label:!0}},[e._v("是")]),e._v(" "),i("el-radio",{attrs:{label:!1}},[e._v("否")])],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"是否加急: ",prop:"IsUrgent"}},[i("el-radio-group",{model:{value:e.form.IsUrgent,callback:function(t){e.$set(e.form,"IsUrgent",t)},expression:"form.IsUrgent"}},[i("el-radio",{attrs:{label:!0}},[e._v("是")]),e._v(" "),i("el-radio",{attrs:{label:!1}},[e._v("否")])],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"是否自动发送: ",prop:"IsAutoSend"}},[i("el-radio-group",{model:{value:e.form.IsUrgent,callback:function(t){e.$set(e.form,"IsUrgent",t)},expression:"form.IsUrgent"}},[i("el-radio",{attrs:{label:!0}},[e._v("是")]),e._v(" "),i("el-radio",{attrs:{label:!1}},[e._v("否")])],1)],1),e._v(" "),e.form.Id?i("el-form-item",{attrs:{label:"是否启用: ",prop:"IsEnable"}},[i("el-radio-group",{model:{value:e.form.IsEnable,callback:function(t){e.$set(e.form,"IsEnable",t)},expression:"form.IsEnable"}},[i("el-radio",{attrs:{label:!0}},[e._v("是")]),e._v(" "),i("el-radio",{attrs:{label:!1}},[e._v("否")])],1)],1):e._e()],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{size:"small",type:"primary",loading:e.saveBtnLoading},on:{click:e.handleSave}},[e._v("Save")])],1)],1)])},a=[],r=(i("96cf"),i("3b8d")),o=i("e56e"),s={props:{data:{type:Object,default:function(){return{}}}},data:function(){return{form:{Id:"",Code:"",AuthorizationCode:"",ScenarioId:"",Title:"",Body:"",FromEmail:"",ReceiveEmail:"",CopyEmail:"",IsReturnRequired:!0,IsUrgent:!0,IsEnable:!0,IsAutoSend:!0},rules:{Code:[{required:!0,message:"Please select",trigger:["blur"]}],ScenarioId:[{required:!0,message:"Please select",trigger:["blur"]}]},scenarioOption:[],saveBtnLoading:!1,loading:!1}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:for(t in this.loading=!0,this.form)this.data.hasOwnProperty(t)&&"ScenarioId"!==t&&(this.form[t]=this.data[t]);this.loading=!1;case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getScenarios:function(){var e=this;Object(o["V"])(["Email_Scenario"]).then((function(t){e.scenarioOption=t.Result,e.form.Id&&(e.form.ScenarioId=e.data.ScenarioId)})).catch((function(){e.loading=!1}))},handleSave:function(){var e=this;this.$refs.emailForm.validate((function(t){t&&(e.saveBtnLoading=!0,Object(o["i"])(e.form).then((function(t){e.saveBtnLoading=!1,e.$emit("closeDialog"),e.$emit("getList"),e.$message.success("Saved successfully")})).catch((function(){e.saveBtnLoading=!1})))}))}}},l=s,c=i("2877"),u=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},"47c1":function(e,t,i){},"480e":function(e,t,i){var n=i("4e08"),a=(n.__DEV__,i("3eba")),r=i("2306"),o=i("cd84"),s=i("6d8b");function l(e,t,i){var n=e[1]-e[0];t=s.map(t,(function(t){return{interval:[(t.interval[0]-e[0])/n,(t.interval[1]-e[0])/n]}}));var a=t.length,r=0;return function(e){for(var n=r;n<a;n++){var o=t[n].interval;if(o[0]<=e&&e<=o[1]){r=n;break}}if(n===a)for(n=r-1;n>=0;n--){o=t[n].interval;if(o[0]<=e&&e<=o[1]){r=n;break}}return n>=0&&n<a&&i[n]}}function c(e,t){var i=e[1]-e[0];return t=[(t[0]-e[0])/i,(t[1]-e[0])/i],function(e){return e>=t[0]&&e<=t[1]}}function u(e){var t=e.dimensions;return"lng"===t[0]&&"lat"===t[1]}var d=a.extendChartView({type:"heatmap",render:function(e,t,i){var n;t.eachComponent("visualMap",(function(t){t.eachTargetSeries((function(i){i===e&&(n=t)}))})),this.group.removeAll(),this._incrementalDisplayable=null;var a=e.coordinateSystem;"cartesian2d"===a.type||"calendar"===a.type?this._renderOnCartesianAndCalendar(e,i,0,e.getData().count()):u(a)&&this._renderOnGeo(a,e,n,i)},incrementalPrepareRender:function(e,t,i){this.group.removeAll()},incrementalRender:function(e,t,i,n){var a=t.coordinateSystem;a&&this._renderOnCartesianAndCalendar(t,n,e.start,e.end,!0)},_renderOnCartesianAndCalendar:function(e,t,i,n,a){var o,l,c=e.coordinateSystem;if("cartesian2d"===c.type){var u=c.getAxis("x"),d=c.getAxis("y");o=u.getBandWidth(),l=d.getBandWidth()}for(var f=this.group,h=e.getData(),p="itemStyle",m="emphasis.itemStyle",g="label",v="emphasis.label",b=e.getModel(p).getItemStyle(["color"]),y=e.getModel(m).getItemStyle(),w=e.getModel(g),_=e.getModel(v),I=c.type,x="cartesian2d"===I?[h.mapDimension("x"),h.mapDimension("y"),h.mapDimension("value")]:[h.mapDimension("time"),h.mapDimension("value")],S=i;S<n;S++){var T;if("cartesian2d"===I){if(isNaN(h.get(x[2],S)))continue;var C=c.dataToPoint([h.get(x[0],S),h.get(x[1],S)]);T=new r.Rect({shape:{x:Math.floor(Math.round(C[0])-o/2),y:Math.floor(Math.round(C[1])-l/2),width:Math.ceil(o),height:Math.ceil(l)},style:{fill:h.getItemVisual(S,"color"),opacity:h.getItemVisual(S,"opacity")}})}else{if(isNaN(h.get(x[1],S)))continue;T=new r.Rect({z2:1,shape:c.dataToRect([h.get(x[0],S)]).contentShape,style:{fill:h.getItemVisual(S,"color"),opacity:h.getItemVisual(S,"opacity")}})}var k=h.getItemModel(S);h.hasItemOption&&(b=k.getModel(p).getItemStyle(["color"]),y=k.getModel(m).getItemStyle(),w=k.getModel(g),_=k.getModel(v));var R=e.getRawValue(S),D="-";R&&null!=R[2]&&(D=R[2]),r.setLabelStyle(b,y,w,_,{labelFetcher:e,labelDataIndex:S,defaultText:D,isRectText:!0}),T.setStyle(b),r.setHoverStyle(T,h.hasItemOption?y:s.extend({},y)),T.incremental=a,a&&(T.useHoverLayer=!0),f.add(T),h.setItemGraphicEl(S,T)}},_renderOnGeo:function(e,t,i,n){var a=i.targetVisuals.inRange,s=i.targetVisuals.outOfRange,u=t.getData(),d=this._hmLayer||this._hmLayer||new o;d.blurSize=t.get("blurSize"),d.pointSize=t.get("pointSize"),d.minOpacity=t.get("minOpacity"),d.maxOpacity=t.get("maxOpacity");var f=e.getViewRect().clone(),h=e.getRoamTransform();f.applyTransform(h);var p=Math.max(f.x,0),m=Math.max(f.y,0),g=Math.min(f.width+f.x,n.getWidth()),v=Math.min(f.height+f.y,n.getHeight()),b=g-p,y=v-m,w=[u.mapDimension("lng"),u.mapDimension("lat"),u.mapDimension("value")],_=u.mapArray(w,(function(t,i,n){var a=e.dataToPoint([t,i]);return a[0]-=p,a[1]-=m,a.push(n),a})),I=i.getExtent(),x="visualMap.continuous"===i.type?c(I,i.option.range):l(I,i.getPieceList(),i.option.selected);d.update(_,b,y,a.color.getNormalizer(),{inRange:a.color.getColorMapper(),outOfRange:s.color.getColorMapper()},x);var S=new r.Image({style:{width:b,height:y,x:p,y:m,image:d.canvas},silent:!0});this.group.add(S)},dispose:function(){}});e.exports=d},"480f":function(e,t,i){var n=i("4a3f"),a=i("401b"),r=i("53f3"),o=r.getSymbolSize,s=[],l=[],c=[],u=n.quadraticAt,d=a.distSquare,f=Math.abs;function h(e,t,i){for(var n,a=e[0],r=e[1],o=e[2],h=1/0,p=i*i,m=.1,g=.1;g<=.9;g+=.1){s[0]=u(a[0],r[0],o[0],g),s[1]=u(a[1],r[1],o[1],g);var v=f(d(s,t)-p);v<h&&(h=v,n=g)}for(var b=0;b<32;b++){var y=n+m;l[0]=u(a[0],r[0],o[0],n),l[1]=u(a[1],r[1],o[1],n),c[0]=u(a[0],r[0],o[0],y),c[1]=u(a[1],r[1],o[1],y);v=d(l,t)-p;if(f(v)<.01)break;var w=d(c,t)-p;m/=2,v<0?w>=0?n+=m:n-=m:w>=0?n-=m:n+=m}return n}function p(e,t){var i=[],r=n.quadraticSubdivide,s=[[],[],[]],l=[[],[]],c=[];t/=2,e.eachEdge((function(e,n){var u=e.getLayout(),d=e.getVisual("fromSymbol"),f=e.getVisual("toSymbol");u.__original||(u.__original=[a.clone(u[0]),a.clone(u[1])],u[2]&&u.__original.push(a.clone(u[2])));var p=u.__original;if(null!=u[2]){if(a.copy(s[0],p[0]),a.copy(s[1],p[2]),a.copy(s[2],p[1]),d&&"none"!==d){var m=o(e.node1),g=h(s,p[0],m*t);r(s[0][0],s[1][0],s[2][0],g,i),s[0][0]=i[3],s[1][0]=i[4],r(s[0][1],s[1][1],s[2][1],g,i),s[0][1]=i[3],s[1][1]=i[4]}if(f&&"none"!==f){m=o(e.node2),g=h(s,p[1],m*t);r(s[0][0],s[1][0],s[2][0],g,i),s[1][0]=i[1],s[2][0]=i[2],r(s[0][1],s[1][1],s[2][1],g,i),s[1][1]=i[1],s[2][1]=i[2]}a.copy(u[0],s[0]),a.copy(u[1],s[2]),a.copy(u[2],s[1])}else{if(a.copy(l[0],p[0]),a.copy(l[1],p[1]),a.sub(c,l[1],l[0]),a.normalize(c,c),d&&"none"!==d){m=o(e.node1);a.scaleAndAdd(l[0],l[0],c,m*t)}if(f&&"none"!==f){m=o(e.node2);a.scaleAndAdd(l[1],l[1],c,-m*t)}a.copy(u[0],l[0]),a.copy(u[1],l[1])}}))}e.exports=p},"482c":function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-post",use:"icon-post-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-post"><defs><style type="text/css"></style></defs><path d="M136.4 434.3h77.7c21.5 0 38.9-17.4 38.9-38.9s-17.4-38.9-38.9-38.9h-77.7c-21.5 0-38.9 17.4-38.9 38.9s17.4 38.9 38.9 38.9zM252.9 628.6c0-21.5-17.4-38.9-38.9-38.9h-77.7c-21.5 0-38.9 17.4-38.9 38.9s17.4 38.9 38.9 38.9H214c21.5-0.1 38.9-17.5 38.9-38.9z" p-id="3999" /><path d="M874.7 97.5H227c-28.6 0-51.8 23.2-51.8 51.8v194.3h38.9c28.6 0 51.8 23.2 51.8 51.8 0 28.6-23.2 51.8-51.8 51.8h-38.9v129.5h38.9c28.6 0 51.8 23.2 51.8 51.8 0 28.6-23.2 51.8-51.8 51.8h-38.9v194.3c0 28.6 23.2 51.8 51.8 51.8h647.7c28.6 0 51.8-23.2 51.8-51.8V149.3c0-28.6-23.2-51.8-51.8-51.8z m-311.3 723c-15.6 0-146.7-71.6-146.7-91 0-19.4 102-368.6 102-368.6l-83.6-104s-12.3-23.1 24.6-23.1h208.9c36.9 0 18.4 23.1 18.4 23.1l-79 104s102 351.3 102 368.6c0.1 17.3-131 91-146.6 91z m169.2-253.6l-27.9 40.2-74.5-240 103.4 171.7c4.6 7.9 4.2 20.6-1 28.1z" p-id="4000" /></symbol>'});o.a.add(s);t["default"]=s},4880:function(e,t,i){},"489f":function(e,t,i){"use strict";i("750f")},"48a9":function(e,t,i){var n=i("6d8b"),a=i("42e5"),r=function(e,t,i,n,r,o){this.x=null==e?0:e,this.y=null==t?0:t,this.x2=null==i?1:i,this.y2=null==n?0:n,this.type="linear",this.global=o||!1,a.call(this,r)};r.prototype={constructor:r},n.inherits(r,a);var o=r;e.exports=o},"48ac":function(e,t,i){var n=i("3eba"),a=n.extendComponentModel({type:"axisPointer",coordSysAxesInfo:null,defaultOption:{show:"auto",triggerOn:null,zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#aaa",width:1,type:"solid"},shadowStyle:{color:"rgba(150,150,150,0.3)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,shadowBlur:3,shadowColor:"#aaa"},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}}}),r=a;e.exports=r},"48c7":function(e,t,i){var n=i("6d8b"),a=i("6cb7"),r=i("9e47"),o=i("2023"),s=a.extend({type:"cartesian2dAxis",axis:null,init:function(){s.superApply(this,"init",arguments),this.resetRange()},mergeOption:function(){s.superApply(this,"mergeOption",arguments),this.resetRange()},restoreData:function(){s.superApply(this,"restoreData",arguments),this.resetRange()},getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid",index:this.option.gridIndex,id:this.option.gridId})[0]}});function l(e,t){return t.type||(t.data?"category":"value")}n.merge(s.prototype,o);var c={offset:0};r("x",s,l,c),r("y",s,l,c);var u=s;e.exports=u},"48cc":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"MedicalManagerDataForm",attrs:{model:e.form,size:"small",rules:e.rules,"label-width":"140px"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:e.$t("trials:pmMedicalReview:allocation:MIM"),prop:"MedicalManagerUserId"}},[i("el-select",{attrs:{clearable:""},model:{value:e.form.MedicalManagerUserId,callback:function(t){e.$set(e.form,"MedicalManagerUserId",t)},expression:"form.MedicalManagerUserId"}},e._l(e.doctorUserList,(function(e){return i("el-option",{key:e.UserId,attrs:{label:e.UserName+"("+e.FullName+")",value:e.UserId}})})),1)],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.close}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.save}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])},a=[],r=i("958c"),o={name:"AddOrUpdateTaskAllocationRuleData",props:{data:{type:Object,default:function(){return{}}},doctorUserList:{type:Array,default:function(){return[]}},selectList:{type:Array,default:function(){return[]}}},data:function(){return{form:{MedicalManagerUserId:null,TaskOptType:1},rules:{MedicalManagerUserId:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}]},loading:!1,btnLoading:!1}},mounted:function(){this.form.TrialId=this.$route.query.trialId,this.data.Id?(this.form.TaskIdList=[this.data.Id],this.form.TaskOptType=2,this.form.MedicalManagerUserId=this.data.MedicalManagerUserId):this.form.TaskIdList=Object.assign([],this.selectList.map((function(e){return e.Id})))},methods:{save:function(){var e=this;this.$refs.MedicalManagerDataForm.validate((function(t){console.log(t),t&&(e.btnLoading=!0,e.loading=!0,Object(r["X"])(e.form).then((function(t){e.loading=!1,e.btnLoading=!1,e.$message.success(e.$t("common:message:savedSuccessfully")),e.$emit("getList")})).catch((function(){e.loading=!1,e.btnLoading=!1})))}))},close:function(){this.$emit("close")}}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,"7e02151d",null);t["default"]=c.exports},"48de":function(e,t,i){"use strict";i("a8b5")},"48fb":function(e,t,i){"use strict";i.d(t,"e",(function(){return a})),i.d(t,"a",(function(){return r})),i.d(t,"b",(function(){return o})),i.d(t,"d",(function(){return s})),i.d(t,"c",(function(){return l}));var n=i("b775");function a(e){return Object(n["a"])({url:"/statistics/getWorkloadByTrialAndReviewer",method:"post",data:e})}function r(e){return Object(n["a"])({url:"/statistics/getEnrollStatByReviewer",method:"post",data:e})}function o(e){return Object(n["a"])({url:"/statistics/getEnrollStatByTrial",method:"post",data:e})}function s(e){return Object(n["a"])({url:"/statistics/getParticipateTrialStat",method:"post",data:e})}function l(e){return Object(n["a"])({url:"/statistics/getParticipateTrialList/".concat(e),method:"get"})}},"491a":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"criterion-config"},[i("el-tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[i("el-tab-pane",{attrs:{label:"访视阅片",name:"0"}},[i("div",{staticClass:"search-form",staticStyle:{display:"flex","justify-content":"space-between"}},[i("el-form",{staticClass:"base-search-form",attrs:{inline:!0,size:"mini"}},[i("el-form-item",{attrs:{label:"阅片问题"}},[i("el-input",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.QuestionName,callback:function(t){e.$set(e.searchData,"QuestionName",t)},expression:"searchData.QuestionName"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:e.handleReset}},[e._v("重置")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.handleSearch}},[e._v("查询")])],1)],1),e._v(" "),i("div",[i("el-button",{attrs:{disabled:0===e.list.length,size:"mini",type:"primary"},on:{click:function(t){e.preview.visible=!0}}},[e._v("\n 预览\n ")]),e._v(" "),Object.keys(e.data).length>0&&!e.data.IsCompleteConfig&&!e.data.IsBeUsed?i("el-button",{attrs:{size:"mini",type:"primary"},on:{click:e.handleAdd}},[e._v("\n 添加\n ")]):e._e()],1)],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:80},expression:"{bottomOffset:80}"}],ref:"criterionQSList",attrs:{height:"100",data:e.list,stripe:""},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{prop:"ShowOrder",label:"",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"GroupName",label:"分组","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"GroupEnName",label:"分组(EN)","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"QuestionName",label:"名称","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"QuestionEnName",label:"名称(EN)","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Type",label:"题型","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("Criterion_Question_Type",t.row.Type))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsRequired",label:"是否必填","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("QuestionRequired",t.row.IsRequired))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ShowQuestion",label:"是否显示","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("ShowQuestion",t.row.ShowQuestion))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsJudgeQuestion",label:"是否裁判问题",width:"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("YesOrNo",t.row.IsJudgeQuestion))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsShowInDicom",label:"是否在阅片页面显示",width:"140","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("YesOrNo",t.row.IsShowInDicom))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Remark",label:e.$t("trials:readingUnit:qsList:title:Remark"),width:"140","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"GlobalReadingShowType",label:"是否在全局阅片显示",width:"160","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("GlobalReadingShowType",t.row.GlobalReadingShowType))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"LimitEdit",label:e.$t("trials:readingUnit:qsList:title:limitEdit"),width:"160","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("LimitEdit",t.row.LimitEdit))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"",label:"操作",width:"250","show-overflow-tooltip":"",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[Object.keys(e.data).length>0&&!e.data.IsCompleteConfig&&!e.data.IsBeUsed?i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("\n 编辑\n ")]):i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(i){return e.handleLook(t.row)}}},[e._v("\n 查看\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"mini",disabled:"table"!==t.row.Type},on:{click:function(i){return e.handleConfig(t.row)}}},[e._v("\n 表格问题\n ")]),e._v(" "),Object.keys(e.data).length>0&&!e.data.IsCompleteConfig&&!e.data.IsBeUsed?i("el-button",{attrs:{type:"danger",size:"mini",disabled:t.row.IsEnable},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("\n 删除\n ")]):e._e()]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",staticStyle:{"text-align":"right","margin-top":"10px"},attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1),e._v(" "),i("el-tab-pane",{attrs:{label:"全局阅片",name:"Global"}},[i("EvaluationOfGlobalConfig",{attrs:{data:e.data,"criterion-id":e.criterionId}})],1),e._v(" "),i("el-tab-pane",{attrs:{label:"肿瘤学阅片",name:"Oncology"}},[i("EvaluationOfOncologyConfig",{attrs:{data:e.data,"criterion-id":e.criterionId}})],1)],1),e._v(" "),e.addOrEdit.visible?i("el-dialog",{attrs:{visible:e.addOrEdit.visible,"close-on-click-modal":!1,title:e.addOrEdit.title,width:"600px","append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){return e.$set(e.addOrEdit,"visible",t)}}},[i("CriterionQuestionForm",{ref:"addOrEdit",attrs:{data:e.rowData,type:e.type},on:{close:function(t){e.addOrEdit.visible=!1},getList:e.getList}})],1):e._e(),e._v(" "),e.preview.visible?i("el-dialog",{directives:[{name:"dialogDrag",rawName:"v-dialogDrag"}],attrs:{visible:e.preview.visible,"close-on-click-modal":!1,title:e.preview.title,fullscreen:"","append-to-body":""},on:{"update:visible":function(t){return e.$set(e.preview,"visible",t)}}},[i("div",[i("ECRF",{attrs:{"criterion-id":e.criterionId}})],1)]):e._e(),e._v(" "),e.config.visible?i("el-dialog",{attrs:{visible:e.config.visible,"close-on-click-modal":!1,title:e.config.title,width:"90%","append-to-body":""},on:{"update:visible":function(t){return e.$set(e.config,"visible",t)}}},[i("TableQsList",{attrs:{"criterion-id":e.criterionId,"reading-question-id":e.rowData.Id,"is-complete-config":e.data.IsCompleteConfig,"lesion-type":e.rowData.LesionType}})],1):e._e()],1)},a=[],r=i("db72"),o=i("e56e"),s=i("333d"),l=i("923b"),c=i("aaa2"),u=i("78f5"),d=i("df51"),f=i("06d8"),h=function(){return{QuestionName:"",PageIndex:1,PageSize:20}},p={name:"QcQuestions",components:{Pagination:s["default"],CriterionQuestionForm:l["default"],ECRF:d["default"],TableQsList:f["default"],EvaluationOfOncologyConfig:c["default"],EvaluationOfGlobalConfig:u["default"]},props:{criterionId:{type:String,required:!0},data:{type:Object,default:function(){return{}}}},data:function(){return{searchData:h(),list:[],total:0,type:null,loading:!1,rowData:{},activeName:"0",addOrEdit:{visible:!1,title:""},preview:{visible:!1,title:"eCRF预览"},config:{visible:!1,title:""}}},watch:{list:function(){var e=this;this.$nextTick((function(){e.$refs.criterionQSList.doLayout()}))}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0,this.searchData.ReadingQuestionCriterionSystemId=this.criterionId,Object(o["ub"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},handleAdd:function(){this.rowData={ReadingQuestionCriterionSystemId:this.criterionId,Id:""},this.type="add",this.addOrEdit.title="添加",this.addOrEdit.visible=!0},handleLook:function(e){this.rowData=Object(r["a"])({},e),this.type="look",this.addOrEdit.title="查看",this.addOrEdit.visible=!0},handleEdit:function(e){this.rowData=Object(r["a"])({},e),this.type="edit",this.addOrEdit.title="编辑",this.addOrEdit.visible=!0},handleDelete:function(e){var t=this;this.$confirm("是否确认删除?",{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.loading=!0,Object(o["L"])(e.Id).then((function(e){t.loading=!1,e.IsSuccess&&(t.getList(),t.$message.success("删除成功!"))})).catch((function(){t.loading=!1}))}))},handleConfig:function(e){this.rowData=Object(r["a"])({},e),this.config.title="".concat(this.$fd("LesionType",e.LesionType),":表格问题"),this.config.visible=!0},handleSearch:function(){this.getList()},handleReset:function(){this.searchData=h(),this.getList()},handleSortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()}}},m=p,g=i("2877"),v=Object(g["a"])(m,n,a,!1,null,"3cdf3a80",null);t["default"]=v.exports},4942:function(e,t,i){var n=i("2cf4"),a=n.debugMode,r=function(){};1===a&&(r=console.error);var o=r;e.exports=o},4946:function(e,t,i){"use strict";i("919a")},4955:function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-money",use:"icon-money-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-money"><path d="M54.122 127.892v-28.68H7.513V87.274h46.609v-12.4H7.513v-12.86h38.003L.099 0h22.6l32.556 45.07c3.617 5.144 6.44 9.611 8.487 13.385 1.788-3.05 4.89-7.779 9.301-14.186L103.93 0h24.01L82.385 62.013h38.34v12.862h-46.41v12.4h46.41v11.937h-46.41v28.68H54.123z" /></symbol>'});o.a.add(s);t["default"]=s},"49be":function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-404",use:"icon-404-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-404"><path d="M121.718 73.272v9.953c3.957-7.584 6.199-16.05 6.199-24.995C127.917 26.079 99.273 0 63.958 0 28.644 0 0 26.079 0 58.23c0 .403.028.806.028 1.21l22.97-25.953h13.34l-19.76 27.187h6.42V53.77l13.728-19.477v49.361H22.998V73.272H2.158c5.951 20.284 23.608 36.208 45.998 41.399-1.44 3.3-5.618 11.263-12.565 12.674-8.607 1.764 23.358.428 46.163-13.178 17.519-4.611 31.938-15.849 39.77-30.513h-13.506V73.272H85.02V59.464l22.998-25.977h13.008l-19.429 27.187h6.421v-7.433l13.727-19.402v39.433h-.027zm-78.24 2.822a10.516 10.516 0 0 1-.996-4.535V44.548c0-1.613.332-3.124.996-4.535a11.66 11.66 0 0 1 2.713-3.68c1.134-1.032 2.49-1.864 4.04-2.468 1.55-.605 3.21-.908 4.982-.908h11.292c1.77 0 3.431.303 4.981.908 1.522.604 2.85 1.41 3.986 2.418l-12.26 16.303v-2.898a1.96 1.96 0 0 0-.665-1.512c-.443-.403-.996-.604-1.66-.604-.665 0-1.218.201-1.661.604a1.96 1.96 0 0 0-.664 1.512v9.071L44.364 77.606a10.556 10.556 0 0 1-.886-1.512zm35.73-4.535c0 1.613-.332 3.124-.997 4.535a11.66 11.66 0 0 1-2.712 3.68c-1.134 1.032-2.49 1.864-4.04 2.469-1.55.604-3.21.907-4.982.907H55.185c-1.77 0-3.431-.303-4.981-.907-1.55-.605-2.906-1.437-4.041-2.47a12.49 12.49 0 0 1-1.384-1.512l13.727-18.217v6.375c0 .605.222 1.109.665 1.512.442.403.996.604 1.66.604.664 0 1.218-.201 1.66-.604a1.96 1.96 0 0 0 .665-1.512V53.87L75.97 36.838c.913.932 1.66 1.99 2.214 3.175.664 1.41.996 2.922.996 4.535v27.011h.028z" /></symbol>'});o.a.add(s);t["default"]=s},"49dc":function(e,t,i){},"49e3":function(e,t,i){"use strict";i("1644")},"49e4":function(e,t,i){"use strict";i("cddb")},"49e8":function(e,t,i){var n=i("3eba"),a=i("6d8b"),r=i("d81e"),o=r.updateCenterAndZoom;n.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},(function(e,t){var i=e.componentType||"series";t.eachComponent({mainType:i,query:e},(function(t){var n=t.coordinateSystem;if("geo"===n.type){var r=o(n,e,t.get("scaleLimit"));t.setCenter&&t.setCenter(r.center),t.setZoom&&t.setZoom(r.zoom),"series"===i&&a.each(t.seriesGroup,(function(e){e.setCenter(r.center),e.setZoom(r.zoom)}))}}))}))},"4a01":function(e,t,i){var n=i("6d8b"),a=i("1fab"),r=i("607d"),o=i("a4fe");function s(e){this.pointerChecker,this._zr=e,this._opt={};var t=n.bind,i=t(l,this),r=t(c,this),o=t(u,this),s=t(d,this),h=t(f,this);a.call(this),this.setPointerChecker=function(e){this.pointerChecker=e},this.enable=function(t,a){this.disable(),this._opt=n.defaults(n.clone(a)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==t&&(t=!0),!0!==t&&"move"!==t&&"pan"!==t||(e.on("mousedown",i),e.on("mousemove",r),e.on("mouseup",o)),!0!==t&&"scale"!==t&&"zoom"!==t||(e.on("mousewheel",s),e.on("pinch",h))},this.disable=function(){e.off("mousedown",i),e.off("mousemove",r),e.off("mouseup",o),e.off("mousewheel",s),e.off("pinch",h)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}function l(e){if(!(r.isMiddleOrRightButtonOnMouseUpDown(e)||e.target&&e.target.draggable)){var t=e.offsetX,i=e.offsetY;this.pointerChecker&&this.pointerChecker(e,t,i)&&(this._x=t,this._y=i,this._dragging=!0)}}function c(e){if(this._dragging&&m("moveOnMouseMove",e,this._opt)&&"pinch"!==e.gestureEvent&&!o.isTaken(this._zr,"globalPan")){var t=e.offsetX,i=e.offsetY,n=this._x,a=this._y,s=t-n,l=i-a;this._x=t,this._y=i,this._opt.preventDefaultMouseMove&&r.stop(e.event),p(this,"pan","moveOnMouseMove",e,{dx:s,dy:l,oldX:n,oldY:a,newX:t,newY:i})}}function u(e){r.isMiddleOrRightButtonOnMouseUpDown(e)||(this._dragging=!1)}function d(e){var t=m("zoomOnMouseWheel",e,this._opt),i=m("moveOnMouseWheel",e,this._opt),n=e.wheelDelta,a=Math.abs(n),r=e.offsetX,o=e.offsetY;if(0!==n&&(t||i)){if(t){var s=a>3?1.4:a>1?1.2:1.1,l=n>0?s:1/s;h(this,"zoom","zoomOnMouseWheel",e,{scale:l,originX:r,originY:o})}if(i){var c=Math.abs(n),u=(n>0?1:-1)*(c>3?.4:c>1?.15:.05);h(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:u,originX:r,originY:o})}}}function f(e){if(!o.isTaken(this._zr,"globalPan")){var t=e.pinchScale>1?1.1:1/1.1;h(this,"zoom",null,e,{scale:t,originX:e.pinchX,originY:e.pinchY})}}function h(e,t,i,n,a){e.pointerChecker&&e.pointerChecker(n,a.originX,a.originY)&&(r.stop(n.event),p(e,t,i,n,a))}function p(e,t,i,a,r){r.isAvailableBehavior=n.bind(m,null,i,a),e.trigger(t,r)}function m(e,t,i){var a=i[e];return!e||a&&(!n.isString(a)||t.event[a+"Key"])}n.mixin(s,a);var g=s;e.exports=g},"4a1d":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[e.question.GroupName&&"group"===e.question.Type?i("div",[i("h4",{staticStyle:{color:"#ddd",padding:"5px 0px",margin:"0","font-size":"15px"}},[e._v("\n "+e._s("en"===e.language?e.question.GroupEnName:e.question.GroupName)+"\n ")])]):[i("el-form-item",{class:["group"===e.question.Type?"mb":""],attrs:{label:""+("en"===e.language?e.question.QuestionEnName:e.question.QuestionName),prop:e.question.Id,rules:[{required:!0,message:e.$t("common:ruleMessage:select"),trigger:["blur","change"]}]}},["select"===e.question.Type?i("el-select",{attrs:{clearable:""},on:{change:function(t){e.formItemChange(t,e.question)}},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},[e.question.DictionaryCode?e._l(e.$d[e.question.DictionaryCode],(function(e){return i("el-option",{key:e.id,attrs:{value:String(e.value),label:e.label}})})):e._l(e.question.TypeValue.split("|"),(function(e){return i("el-option",{key:e,attrs:{label:e,value:e}})}))],2):e._e(),e._v(" "),"radio"===e.question.Type?i("el-radio-group",{on:{change:function(t){e.formItemChange(t,e.question)}},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},[e.question.DictionaryCode?e._l(e.$d[e.question.DictionaryCode],(function(t){return i("el-radio",{key:t.id,attrs:{label:String(t.value)}},[e._v("\n "+e._s(t.label)+"\n ")])})):e.question.TypeValue?e._l(e.question.TypeValue.split("|"),(function(t){return i("el-radio",{key:t,attrs:{label:t}},[e._v("\n "+e._s(t)+"\n ")])})):e._e()],2):e._e()],1)],e._v(" "),e._l(e.question.Childrens,(function(t){return i("AssessmentFormItem",{key:t.Id,attrs:{question:t,"question-form":e.questionForm},on:{setFormItemData:e.setFormItemData,resetFormItemData:e.resetFormItemData}})}))],2)},a=[],r=(i("ac6a"),i("db72")),o=i("2f62"),s={name:"AssessmentFormItem",props:{questionForm:{type:Object,default:function(){return{}}},question:{type:Object,default:function(){return[]}}},data:function(){return{}},computed:Object(r["a"])({},Object(o["b"])(["language"])),watch:{questionForm:{deep:!0,immediate:!0,handler:function(e){}}},mounted:function(){},methods:{formItemChange:function(e,t){t.Childrens.length>0&&this.resetChild(t.Childrens)},resetChild:function(e){var t=this;e.forEach((function(e){t.$emit("resetFormItemData",e.Id),e.Childrens&&e.Childrens.length>0&&t.resetChild(e.Childrens)}))},resetFormItemData:function(e){this.$emit("resetFormItemData",e)},setFormItemData:function(e){this.$emit("setFormItemData",e)}}},l=s,c=(i("18e2"),i("2877")),u=Object(c["a"])(l,n,a,!1,null,"51d4180b",null);t["default"]=u.exports},"4a3f":function(e,t,i){var n=i("401b"),a=n.create,r=n.distSquare,o=Math.pow,s=Math.sqrt,l=1e-8,c=1e-4,u=s(3),d=1/3,f=a(),h=a(),p=a();function m(e){return e>-l&&e<l}function g(e){return e>l||e<-l}function v(e,t,i,n,a){var r=1-a;return r*r*(r*e+3*a*t)+a*a*(a*n+3*r*i)}function b(e,t,i,n,a){var r=1-a;return 3*(((t-e)*r+2*(i-t)*a)*r+(n-i)*a*a)}function y(e,t,i,n,a,r){var l=n+3*(t-i)-e,c=3*(i-2*t+e),f=3*(t-e),h=e-a,p=c*c-3*l*f,g=c*f-9*l*h,v=f*f-3*c*h,b=0;if(m(p)&&m(g))if(m(c))r[0]=0;else{var y=-f/c;y>=0&&y<=1&&(r[b++]=y)}else{var w=g*g-4*p*v;if(m(w)){var _=g/p,I=(y=-c/l+_,-_/2);y>=0&&y<=1&&(r[b++]=y),I>=0&&I<=1&&(r[b++]=I)}else if(w>0){var x=s(w),S=p*c+1.5*l*(-g+x),T=p*c+1.5*l*(-g-x);S=S<0?-o(-S,d):o(S,d),T=T<0?-o(-T,d):o(T,d);y=(-c-(S+T))/(3*l);y>=0&&y<=1&&(r[b++]=y)}else{var C=(2*p*c-3*l*g)/(2*s(p*p*p)),k=Math.acos(C)/3,R=s(p),D=Math.cos(k),L=(y=(-c-2*R*D)/(3*l),I=(-c+R*(D+u*Math.sin(k)))/(3*l),(-c+R*(D-u*Math.sin(k)))/(3*l));y>=0&&y<=1&&(r[b++]=y),I>=0&&I<=1&&(r[b++]=I),L>=0&&L<=1&&(r[b++]=L)}}return b}function w(e,t,i,n,a){var r=6*i-12*t+6*e,o=9*t+3*n-3*e-9*i,l=3*t-3*e,c=0;if(m(o)){if(g(r)){var u=-l/r;u>=0&&u<=1&&(a[c++]=u)}}else{var d=r*r-4*o*l;if(m(d))a[0]=-r/(2*o);else if(d>0){var f=s(d),h=(u=(-r+f)/(2*o),(-r-f)/(2*o));u>=0&&u<=1&&(a[c++]=u),h>=0&&h<=1&&(a[c++]=h)}}return c}function _(e,t,i,n,a,r){var o=(t-e)*a+e,s=(i-t)*a+t,l=(n-i)*a+i,c=(s-o)*a+o,u=(l-s)*a+s,d=(u-c)*a+c;r[0]=e,r[1]=o,r[2]=c,r[3]=d,r[4]=d,r[5]=u,r[6]=l,r[7]=n}function I(e,t,i,n,a,o,l,u,d,m,g){var b,y,w,_,I,x=.005,S=1/0;f[0]=d,f[1]=m;for(var T=0;T<1;T+=.05)h[0]=v(e,i,a,l,T),h[1]=v(t,n,o,u,T),_=r(f,h),_<S&&(b=T,S=_);S=1/0;for(var C=0;C<32;C++){if(x<c)break;y=b-x,w=b+x,h[0]=v(e,i,a,l,y),h[1]=v(t,n,o,u,y),_=r(h,f),y>=0&&_<S?(b=y,S=_):(p[0]=v(e,i,a,l,w),p[1]=v(t,n,o,u,w),I=r(p,f),w<=1&&I<S?(b=w,S=I):x*=.5)}return g&&(g[0]=v(e,i,a,l,b),g[1]=v(t,n,o,u,b)),s(S)}function x(e,t,i,n){var a=1-n;return a*(a*e+2*n*t)+n*n*i}function S(e,t,i,n){return 2*((1-n)*(t-e)+n*(i-t))}function T(e,t,i,n,a){var r=e-2*t+i,o=2*(t-e),l=e-n,c=0;if(m(r)){if(g(o)){var u=-l/o;u>=0&&u<=1&&(a[c++]=u)}}else{var d=o*o-4*r*l;if(m(d)){u=-o/(2*r);u>=0&&u<=1&&(a[c++]=u)}else if(d>0){var f=s(d),h=(u=(-o+f)/(2*r),(-o-f)/(2*r));u>=0&&u<=1&&(a[c++]=u),h>=0&&h<=1&&(a[c++]=h)}}return c}function C(e,t,i){var n=e+i-2*t;return 0===n?.5:(e-t)/n}function k(e,t,i,n,a){var r=(t-e)*n+e,o=(i-t)*n+t,s=(o-r)*n+r;a[0]=e,a[1]=r,a[2]=s,a[3]=s,a[4]=o,a[5]=i}function R(e,t,i,n,a,o,l,u,d){var m,g=.005,v=1/0;f[0]=l,f[1]=u;for(var b=0;b<1;b+=.05){h[0]=x(e,i,a,b),h[1]=x(t,n,o,b);var y=r(f,h);y<v&&(m=b,v=y)}v=1/0;for(var w=0;w<32;w++){if(g<c)break;var _=m-g,I=m+g;h[0]=x(e,i,a,_),h[1]=x(t,n,o,_);y=r(h,f);if(_>=0&&y<v)m=_,v=y;else{p[0]=x(e,i,a,I),p[1]=x(t,n,o,I);var S=r(p,f);I<=1&&S<v?(m=I,v=S):g*=.5}}return d&&(d[0]=x(e,i,a,m),d[1]=x(t,n,o,m)),s(v)}t.cubicAt=v,t.cubicDerivativeAt=b,t.cubicRootAt=y,t.cubicExtrema=w,t.cubicSubdivide=_,t.cubicProjectPoint=I,t.quadraticAt=x,t.quadraticDerivativeAt=S,t.quadraticRootAt=T,t.quadraticExtremum=C,t.quadraticSubdivide=k,t.quadraticProjectPoint=R},"4a46":function(e,t,i){"use strict";i("c9e1")},"4a9d":function(e,t,i){var n=i("dcb3"),a=i("ff2e"),r=i("0156"),o=i("6679"),s=n.extend({makeElOption:function(e,t,i,n,o){var s=i.axis,u=s.grid,d=n.get("type"),f=l(u,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(t,!0));if(d&&"none"!==d){var p=a.buildElStyle(n),m=c[d](s,h,f);m.style=p,e.graphicKey=m.type,e.pointer=m}var g=r.layout(u.model,i);a.buildCartesianSingleLabelElOption(t,e,g,i,n,o)},getHandleTransform:function(e,t,i){var n=r.layout(t.axis.grid.model,t,{labelInside:!1});return n.labelMargin=i.get("handle.margin"),{position:a.getTransformedPosition(t.axis,e,n),rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(e,t,i,n){var a=i.axis,r=a.grid,o=a.getGlobalExtent(!0),s=l(r,a).getOtherAxis(a).getGlobalExtent(),c="x"===a.dim?0:1,u=e.position;u[c]+=t[c],u[c]=Math.min(o[1],u[c]),u[c]=Math.max(o[0],u[c]);var d=(s[1]+s[0])/2,f=[d,d];f[c]=u[c];var h=[{verticalAlign:"middle"},{align:"center"}];return{position:u,rotation:e.rotation,cursorPoint:f,tooltipOption:h[c]}}});function l(e,t){var i={};return i[t.dim+"AxisIndex"]=t.index,e.getCartesian(i)}var c={line:function(e,t,i){var n=a.makeLineShape([t,i[0]],[t,i[1]],u(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,i){var n=Math.max(1,e.getBandWidth()),r=i[1]-i[0];return{type:"Rect",shape:a.makeRectShape([t-n/2,i[0]],[n,r],u(e))}}};function u(e){return"x"===e.dim?0:1}o.registerAxisPointerClass("CartesianAxisPointer",s);var d=s;e.exports=d},"4aa1":function(e,t,i){"use strict";i("1453")},"4aa2":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"resumes-container"},[i("div",{staticClass:"resume-content"},[i("p",[e._v("Resume")]),e._v(" "),i("div",{staticClass:"upload-content"},[i("div",{staticClass:"uploadFile-container"},[i("el-upload",{staticClass:"upload-demo",attrs:{data:{language:2},action:"","show-file-list":!1,"http-request":e.handleUploadFile,"file-list":e.resumeList,accept:".doc,.docx"}},[i("el-button",{attrs:{size:"small",type:"primary",disabled:e.isDisabled||"1"===e.$route.query.ReviewStatus}},[e._v("Upload")])],1)],1)]),e._v(" "),i("p",[e._v("(must be in doc,docx format)")])]),e._v(" "),i("div",{staticClass:"resumeTbl"},[i("el-table",{attrs:{data:e.resumeListEN,size:"small"}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"FileName",label:"Resume",width:"180","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:"Upload Time",width:"150","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsOfficial",label:"Official",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(!0===t.row.IsOfficial?"Yes":"No")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Language",label:"Language",width:"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(1===t.row.Language?"中文":"English")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"Action",width:"400"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return e.handlePreview(t.row)}}},[e._v("Download")]),e._v(" "),i("el-button",{attrs:{type:"text",size:"small",disabled:"1"===e.$route.query.ReviewStatus},on:{click:function(i){return e.handleRemoveFile(t.row)}}},[e._v("Delete")]),e._v(" "),i("el-button",{attrs:{type:"text",size:"small",disabled:t.row.IsOfficial||"1"===e.$route.query.ReviewStatus},on:{click:function(i){return e.handleSetOfiical(t.row)}}},[e._v("Set as Official")])]}}])})],1)],1),e._v(" "),i("div",{staticClass:"resume-content",staticStyle:{"margin-top":"10px"}},[i("p",[e._v("中文简历")]),e._v(" "),i("div",{staticClass:"upload-content"},[i("div",{staticClass:"uploadFile-container"},[i("el-upload",{staticClass:"upload-demo",attrs:{data:{language:1},action:"","show-file-list":!1,"http-request":e.handleUploadFile,"file-list":e.resumeList,accept:".doc, .docx"}},[i("el-button",{attrs:{size:"small",type:"primary",disabled:e.isDisabled||"1"===e.$route.query.ReviewStatus}},[e._v("上传")])],1)],1)]),e._v(" "),i("p",[e._v("(必须是 doc,docx 格式)")])]),e._v(" "),i("div",{staticClass:"resumeTbl"},[i("el-table",{attrs:{data:e.resumeListCN,size:"small"}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"FileName",label:"Resume",width:"180","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:"Upload Time",width:"150","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsOfficial",label:"Official",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(!0===t.row.IsOfficial?"Yes":"No")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Language",label:"Language",width:"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(1===t.row.Language?"中文":"English")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"Action",width:"400"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return e.handlePreview(t.row)}}},[e._v("Download")]),e._v(" "),i("el-button",{attrs:{type:"text",size:"small",disabled:"1"===e.$route.query.ReviewStatus},on:{click:function(i){return e.handleRemoveFile(t.row)}}},[e._v("Delete")]),e._v(" "),i("el-button",{attrs:{type:"text",size:"small",disabled:t.row.IsOfficial},on:{click:function(i){return e.handleSetOfiical(t.row)}}},[e._v("Set as Official")])]}}])})],1)],1),e._v(" "),i("el-dialog",{attrs:{title:e.$t("trials:seletctedReviews:title:language"),visible:e.dialogVisible,width:"30%",size:"small"},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("span",[e._v("Language: ")]),e._v(" "),i("el-radio-group",{attrs:{disabled:"1"===e.$route.query.ReviewStatus},model:{value:e.language,callback:function(t){e.language=t},expression:"language"}},[i("el-radio",{attrs:{label:2}},[e._v("English")]),e._v(" "),i("el-radio",{attrs:{label:1}},[e._v("中文")])],1),e._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{size:"small",disabled:"1"===e.$route.query.ReviewStatus},on:{click:function(t){e.dialogVisible=!1}}},[e._v("Cancel")]),e._v(" "),i("el-button",{attrs:{type:"primary",disabled:"1"===e.$route.query.ReviewStatus,size:"small"},on:{click:e.setResumeLanguage}},[e._v("Ok")])],1)],1)],1)},a=[],r=(i("20d6"),i("14b9"),i("7f7f"),i("a796")),o={props:{id:{type:String,default:function(){return""}}},data:function(){return{doctorId:this.$route.query.Id,resumeList:[],resumeListEN:[],resumeListCN:[],language:0,dialogVisible:!1,currentRow:{},repeat:!1,isDisabled:!1,loading:!1}},created:function(){this.getResumeList()},methods:{getResumeList:function(){var e=this;this.loading=!0,Object(r["b"])(this.doctorId,"Resume").then((function(t){t.IsSuccess&&t.Result.length>0&&(e.resumeList=t.Result,e.filterByLanguage()),e.loading=!1})).catch((function(){e.loading=!1}))},handleUploadFile:function(e){var t=this;if(this.repeat=!1,this.checkFileSuffix(e.file.name)>-1){var i=this.resumeList.some((function(t){return t.FileName===e.file.name}));i?this.$confirm("Override the existing resume?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"OK",cancelButtonText:"Cancel"}).then((function(){t.repeat=!0,t.uploadFile(e.file,e.data.language)})).catch((function(e){})):this.uploadFile(e.file,e.data.language)}else this.$message.error("Must be in ".concat(this.accept," format"))},uploadFile:function(e,t){var i=this;this.isDisabled=!0;var n=this.resumeList;Object(r["f"])(e,"Resume",this.doctorId).then((function(a){if(i.repeat){var r=n.findIndex((function(t,i){return t.FileName===e.name}));n[r].Path=a.Result.FilePath,n[r].FullPath=a.Result.FullFilePath,n[r].ReUpload=!0,n[r].Language=t}else{var o={DoctorId:i.doctorId,Type:"Resume",Path:a.Result.FilePath,FullPath:a.Result.FullFilePath,FileName:e.name,Language:t};n.push(o)}i.saveUploadFiles(n)})).catch((function(){i.isDisabled=!1}))},saveUploadFiles:function(e){var t=this;Object(r["c"])(e).then((function(e){t.resumeList=e.Result,t.filterByLanguage(),t.isDisabled=!1,t.$message.success("Uploaded successfully")})).catch((function(){t.isDisabled=!1}))},filterByLanguage:function(){var e=this;this.resumeListEN=[],this.resumeListCN=[],this.resumeList.map((function(t){2===t.Language?e.resumeListEN.push(t):1===t.Language&&e.resumeListCN.push(t)}))},checkFileSuffix:function(e){var t=".doc, .docx",i=e.lastIndexOf("."),n=e.substring(i+1,e.length).toLocaleLowerCase();return t.search(n)},handlePreview:function(e){e.FullPath&&window.open(e.FullPath,"_blank")},handleRemoveFile:function(e){var t=this;this.$confirm("Sure to delete?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){Object(r["a"])(e.Id,e.Path).then((function(i){i.IsSuccess&&(t.resumeList.splice(t.resumeList.findIndex((function(t){return t.Id===e.Id})),1),t.filterByLanguage(),t.$message({message:"Deleted successfully!",type:"success"}))}))})).catch((function(e){}))},handleSetOfiical:function(e){var t=this;Object(r["e"])(this.doctorId,e.Id,e.Language).then((function(e){e.IsSuccess&&(t.getResumeList(),t.$message({message:"Saved successfully!",type:"success"}))}))},handleLanguageClick:function(e){this.dialogVisible=!0,this.language=e.Language,this.currentRow=e},setResumeLanguage:function(){var e=this;Object(r["d"])(this.doctorId,this.currentRow.Id,this.language).then((function(t){t.IsSuccess&&(e.dialogVisible=!1,e.getResumeList(),e.$message({message:"Saved successfully!",type:"success"}))}))}}},s=o,l=(i("bddc"),i("2877")),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},"4aa23":function(e,t,i){var n=i("cbe5"),a=i("897a"),r=n.extend({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},brush:a(n.prototype.brush),buildPath:function(e,t){var i=t.cx,n=t.cy,a=Math.max(t.r0||0,0),r=Math.max(t.r,0),o=t.startAngle,s=t.endAngle,l=t.clockwise,c=Math.cos(o),u=Math.sin(o);e.moveTo(c*a+i,u*a+n),e.lineTo(c*r+i,u*r+n),e.arc(i,n,r,o,s,!l),e.lineTo(Math.cos(s)*a+i,Math.sin(s)*a+n),0!==a&&e.arc(i,n,a,s,o,l),e.closePath()}});e.exports=r},"4aad":function(e,t,i){"use strict";i("f77f")},"4ab1":function(e,t,i){var n=i("8727"),a=n.createElement,r=i("6d8b"),o=i("cbe5"),s=i("0da8"),l=i("76a5"),c=i("3f8e"),u=c.path,d=c.image,f=c.text,h="0",p="1";function m(e,t,i,n,a){this._zrId=e,this._svgRoot=t,this._tagNames="string"===typeof i?[i]:i,this._markLabel=n,this._domName=a||"_dom",this.nextId=0}m.prototype.createElement=a,m.prototype.getDefs=function(e){var t=this._svgRoot,i=this._svgRoot.getElementsByTagName("defs");return 0===i.length?e?(i=t.insertBefore(this.createElement("defs"),t.firstChild),i.contains||(i.contains=function(e){var t=i.children;if(!t)return!1;for(var n=t.length-1;n>=0;--n)if(t[n]===e)return!0;return!1}),i):null:i[0]},m.prototype.update=function(e,t){if(e){var i=this.getDefs(!1);if(e[this._domName]&&i.contains(e[this._domName]))"function"===typeof t&&t(e);else{var n=this.add(e);n&&(e[this._domName]=n)}}},m.prototype.addDom=function(e){var t=this.getDefs(!0);t.appendChild(e)},m.prototype.removeDom=function(e){var t=this.getDefs(!1);t&&e[this._domName]&&(t.removeChild(e[this._domName]),e[this._domName]=null)},m.prototype.getDoms=function(){var e=this.getDefs(!1);if(!e)return[];var t=[];return r.each(this._tagNames,(function(i){var n=e.getElementsByTagName(i);t=t.concat([].slice.call(n))})),t},m.prototype.markAllUnused=function(){var e=this.getDoms(),t=this;r.each(e,(function(e){e[t._markLabel]=h}))},m.prototype.markUsed=function(e){e&&(e[this._markLabel]=p)},m.prototype.removeUnused=function(){var e=this.getDefs(!1);if(e){var t=this.getDoms(),i=this;r.each(t,(function(t){t[i._markLabel]!==p&&e.removeChild(t)}))}},m.prototype.getSvgProxy=function(e){return e instanceof o?u:e instanceof s?d:e instanceof l?f:u},m.prototype.getTextSvgElement=function(e){return e.__textSvgEl},m.prototype.getSvgElement=function(e){return e.__svgEl};var g=m;e.exports=g},"4ae4":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"oncologyReview_wrapper"},[i("el-card",{staticStyle:{"margin-bottom":"10px"},attrs:{shadow:"never","body-style":{padding:"10px"}}},[e.isReadingShowSubjectInfo?i("h4",[e._v("\n 受试者:\n "),i("span",{staticStyle:{"font-weight":"normal"}},[e._v(e._s(e.subjectCode)+" ")]),e._v(" "),i("span",{staticStyle:{"font-weight":"normal"}},[e._v("("+e._s(e.taskBlindName)+")")])]):e._e()]),e._v(" "),i("el-card",{attrs:{"body-style":{padding:"10px"}}},[i("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[i("span",{staticStyle:{"font-weight":"bold"}},[e._v("肿瘤学阅片")])]),e._v(" "),i("div",{staticStyle:{"text-align":"right",margin:"5px 0"}},[i("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.previewCD}},[e._v("\n 临床数据\n ")]),e._v(" "),e.oncologyInfo.ReadingTaskState<2?i("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.handleSave(!0)}}},[e._v("\n 保存\n ")]):e._e(),e._v(" "),e.oncologyInfo.ReadingTaskState<2?i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleConfirm}},[e._v("\n 确认\n ")]):e._e()],1),e._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.oncologyInfo.OncologyVisits}},[i("el-table-column",{attrs:{prop:"VisitName",label:"访视名称","show-overflow-tooltip":"",width:"150"}}),e._v(" "),i("el-table-column",{attrs:{label:"影像学阅片结果",align:"center",prop:""}},[[e._l(e.questionCols,(function(t,n){return i("el-table-column",{key:t,attrs:{prop:"",label:t,"show-overflow-tooltip":"",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.QuestionList.length>n?t.row.QuestionList[n].Answer:"")+"\n ")]}}],null,!0)})})),e._v(" "),e.oncologyInfo.IsShowDetail?i("el-table-column",{attrs:{prop:"IsHaveChange",label:"全局是否有更新","show-overflow-tooltip":"",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e.$fd("YesOrNo",t.row.IsHaveChange)))]),e._v(" "),t.row.IsHaveChange&&e.oncologyInfo.GlobalTaskId?i("el-button",{staticStyle:{"margin-left":"5px"},attrs:{type:"text"},on:{click:function(t){return e.handleViewDetail(e.oncologyInfo.GlobalTaskId)}}},[e._v("\n 查看详情\n ")]):e._e()]}}],null,!1,1077507909)}):e._e(),e._v(" "),e.oncologyInfo.IsShowDetail?i("el-table-column",{attrs:{prop:"VisitRemark",label:"访视点注释","show-overflow-tooltip":"",width:"150"}}):e._e()]],2),e._v(" "),i("el-table-column",{attrs:{label:"肿瘤学阅片结果",align:"center",prop:""}},[[i("el-table-column",{attrs:{prop:"EvaluationResult",label:"结论","show-overflow-tooltip":"",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.oncologyInfo.ReadingTaskState<2?i("el-select",{attrs:{placeholder:"请选择"},model:{value:t.row.EvaluationResult,callback:function(i){e.$set(t.row,"EvaluationResult",i)},expression:"scope.row.EvaluationResult"}},e._l(e.trialEvaluations,(function(e){return i("el-option",{key:e,attrs:{label:e,value:e}})})),1):i("span",[e._v(e._s(t.row.EvaluationResult))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"EvaluationReason","show-overflow-tooltip":"",width:"250"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.oncologyInfo.ReadingTaskState<2?i("el-input",{model:{value:t.row.EvaluationReason,callback:function(i){e.$set(t.row,"EvaluationReason",i)},expression:"scope.row.EvaluationReason"}}):i("span",[e._v(e._s(t.row.EvaluationReason))])]}}])},[i("template",{slot:"header"},[i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n "+e._s(e.oncologyInfo.TrialEvaluationReason)+"\n ")]),e._v(" "),i("div",[i("span",[e._v("原因")]),e._v(" "),i("span",{staticStyle:{color:"red"}},[e._v("*")])])])],1)],2)]],2),e._v(" "),e.oncologyInfo.IsShowDetail?i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{circle:"",title:"查看详情",icon:"el-icon-view"},on:{click:function(i){return e.handleViewDetail(t.row.VisitTaskId)}}})]}}],null,!1,735144548)}):e._e()],1)],1),e._v(" "),e.isReadingShowPreviousResults?i("el-card",{staticClass:"box-mr",attrs:{"body-style":{padding:"10px"}}},[i("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[i("span",{staticStyle:{"font-weight":"bold"}},[e._v("既往肿瘤学阅片结果")])]),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.priorLoading,expression:"priorLoading"}],staticStyle:{width:"100%"},attrs:{data:e.priorList}},[i("el-table-column",{attrs:{prop:"TaskBlindName",label:"肿瘤学阅片","show-overflow-tooltip":"",width:"200"}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{circle:"",title:"查看详情",icon:"el-icon-view"},on:{click:function(i){return e.handleViewDetail(t.row.VisitTaskId)}}})]}}],null,!1,735144548)})],1)],1):e._e(),e._v(" "),e.signVisible?i("el-dialog",{attrs:{visible:e.signVisible,"close-on-click-modal":!1,width:"600px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.signVisible=t}}},[i("div",{attrs:{slot:"title"},slot:"title"},[i("span",{staticStyle:{"font-size":"18px"}},[e._v(e._s(e.$t("common:dialogTitle:sign")))]),e._v(" "),i("span",{staticStyle:{"font-size":"12px","margin-left":"5px"}},[e._v(e._s("("+e.$t("common:label:sign")+e.currentUser+")"))])]),e._v(" "),i("SignForm",{ref:"signForm",attrs:{"sign-code-enum":e.signCode},on:{closeDialog:e.closeSignDialog}})],1):e._e()],1)},a=[],r=(i("20d6"),i("28a5"),i("c5f6"),i("3e42")),o=i("7a9e"),s=i("5f87"),l=i("179b"),c={name:"OncologyReview",components:{SignForm:l["default"]},props:{trialId:{type:String,required:!0},subjectId:{type:String,required:!0},visitTaskId:{type:String,required:!0},readingCategory:{type:Number,required:!0},subjectCode:{type:String,required:!0},taskBlindName:{type:String,required:!0},isReadingShowSubjectInfo:{type:Boolean,required:!0},isReadingShowPreviousResults:{type:Boolean,required:!0}},data:function(){return{currentUser:zzSessionStorage.getItem("userName"),signVisible:!1,signCode:null,loading:!1,priorLoading:!1,priorList:[],questionCols:[],oncologyInfo:{},trialEvaluations:[]}},mounted:function(){this.getList(),this.isReadingShowPreviousResults&&this.getPriorList()},methods:{getList:function(){var e=this;this.loading=!0,Object(r["yc"])({visitTaskId:this.visitTaskId}).then((function(t){var i=[];if(t.Result.OncologyVisits.length>0){var n=t.Result.OncologyVisits[0];n.QuestionList.map((function(e){i.push(e.QuestionName)}))}e.questionCols=i,e.trialEvaluations=t.Result.TrialEvaluationResult?t.Result.TrialEvaluationResult.split("|"):[],e.oncologyInfo=t.Result,e.loading=!1})).catch((function(){e.loading=!1}))},handleSave:function(e){var t=this;this.loading=!0;var i=this.oncologyInfo.OncologyVisits.findIndex((function(e){return!e.EvaluationResult}));if(!(i>-1)){this.loading=!0;var n=[];this.oncologyInfo.OncologyVisits.map((function(e){e.EvaluationResult&&n.push({visitTaskId:e.VisitTaskId,evaluationResult:e.EvaluationResult,evaluationReason:e.EvaluationReason})}));var a={oncologyTaskId:this.visitTaskId,oncologyQuestionList:n};return new Promise((function(i,n){Object(r["Ne"])(a).then((function(n){t.loading=!1,t.getList(),e&&t.$message.success(t.$t("common:message:savedSuccessfully")),i(!0)})).catch((function(e){t.loading=!1,n(!1)}))}))}this.loading=!1,this.$confirm("肿瘤学阅片结论不能为空!",{type:"warning",distinguishCancelAndClose:!0}).then((function(){return Promise.reject(!1)})).catch((function(e){return Promise.reject(!1)}))},handleSubmit:function(){var e=this;this.$refs["adForm"].validate((function(t){if(t){var i=o["default"].processSignature.ImageAssessmentReportConfirmation;e.signCode=i,e.signVisible=!0}}))},closeSignDialog:function(e,t){e?this.signConfirm(t):this.signVisible=!1},handleConfirm:function(){var e=this;this.handleSave(!1).then((function(t){if(t){var i=o["default"].processSignature.ImageAssessmentReportConfirmation;e.signCode=i,e.signVisible=!0}}))},signConfirm:function(e){var t=this;this.loading=!0;var i={data:{oncologyTaskId:this.visitTaskId},signInfo:e};Object(r["cf"])(i).then((function(e){e.IsSuccess&&(t.$message.success(t.$t("common:message:savedSuccessfully")),t.isEdit=!1,t.$refs["signForm"].btnLoading=!1,t.signVisible=!1,window.location.reload(),window.opener.postMessage("refreshTaskList",window.location)),t.loading=!1})).catch((function(e){t.loading=!1,t.$refs["signForm"].btnLoading=!1}))},getPriorList:function(){var e=this;this.priorLoading=!0,Object(r["Tc"])({visitTaskId:this.visitTaskId}).then((function(t){e.priorList=t.Result,e.priorLoading=!1})).catch((function(){e.priorLoading=!1}))},handleViewDetail:function(e){var t=Object(s["a"])(),i=this.$router.resolve({path:"/readingPage?trialId=".concat(this.trialId,"&visitTaskId=").concat(e,"&TokenKey=").concat(t,"&isReadingShowPreviousResults=false")});window.open(i.href,"_blank")},previewCD:function(){var e=Object(s["a"])(),t=this.$router.resolve({path:"/clinicalData?subjectId=".concat(this.oncologyInfo.SubjectId,"&trialId=").concat(this.trialId,"&visitTaskId=").concat(this.oncologyInfo.OncologyTaskId,"&TokenKey=").concat(e)});window.open(t.href,"_blank")}}},u=c,d=(i("3fde"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,"85903ddc",null);t["default"]=f.exports},"4b08":function(e,t,i){var n=i("7dcf"),a=n.extend({type:"dataZoom.select"});e.exports=a},"4b17":function(e,t,i){var n=i("6428");function a(e){var t=n(e),i=t%1;return t===t?i?t-i:t:0}e.exports=a},"4b1d":function(e,t,i){"use strict";i("d394")},"4b35":function(e,t,i){"use strict";i("26c0")},"4b8a":function(e,t,i){"use strict";i("73d8")},"4b92":function(e,t,i){"use strict";i("74b3")},"4bba":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list,stripe:"",height:"500"}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateUser",label:e.$t("trials:adjustRecord:table:connfirmor"),"show-overflow-tooltip":"","min-width":"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:e.$t("trials:adjustRecord:table:connfirmTime"),"show-overflow-tooltip":"","min-width":"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"InconsistentCount",label:e.$t("trials:adjustRecord:table:record"),"show-overflow-tooltip":"","min-width":"60"}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action"),"min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{disabled:0===t.row.InconsistentCount,type:"text",size:"small"},on:{click:function(i){return e.handleDownLoad(t.row)}}},[e._v("\n "+e._s(e.$t("trials:adjustRecord:action:download"))+"\n ")])]}}])})],1)},a=[],r=i("3e42"),o={name:"VisitPlanAdjust",data:function(){return{loading:!1,list:[]}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0;var t=this.$route.query.trialId;Object(r["lc"])(t).then((function(t){e.loading=!1,e.list=t.Result})).catch((function(){e.loading=!1}))},handleDownLoad:function(e){var t=this;this.loading=!0,Object(r["Fb"])(e.Id).then((function(e){t.loading=!1})).catch((function(){t.loading=!1}))}}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},"4bf6":function(e,t,i){var n=i("66fc"),a=i("697e"),r=i("f934"),o=r.getLayoutRect,s=i("6d8b"),l=s.each;function c(e,t,i){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(e,t,i),this.model=e}c.prototype={type:"singleAxis",axisPointerEnabled:!0,constructor:c,_init:function(e,t,i){var r=this.dimension,o=new n(r,a.createScaleByModel(e),[0,0],e.get("type"),e.get("position")),s="category"===o.type;o.onBand=s&&e.get("boundaryGap"),o.inverse=e.get("inverse"),o.orient=e.get("orient"),e.axis=o,o.model=e,o.coordinateSystem=this,this._axis=o},update:function(e,t){e.eachSeries((function(e){if(e.coordinateSystem===this){var t=e.getData();l(t.mapDimension(this.dimension,!0),(function(e){this._axis.scale.unionExtentFromData(t,e)}),this),a.niceScaleExtent(this._axis.scale,this._axis.model)}}),this)},resize:function(e,t){this._rect=o({left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")},{width:t.getWidth(),height:t.getHeight()}),this._adjustAxis()},getRect:function(){return this._rect},_adjustAxis:function(){var e=this._rect,t=this._axis,i=t.isHorizontal(),n=i?[0,e.width]:[0,e.height],a=t.reverse?1:0;t.setExtent(n[a],n[1-a]),this._updateAxisTransform(t,i?e.x:e.y)},_updateAxisTransform:function(e,t){var i=e.getExtent(),n=i[0]+i[1],a=e.isHorizontal();e.toGlobalCoord=a?function(e){return e+t}:function(e){return n-e+t},e.toLocalCoord=a?function(e){return e-t}:function(e){return n-e+t}},getAxis:function(){return this._axis},getBaseAxis:function(){return this._axis},getAxes:function(){return[this._axis]},getTooltipAxes:function(){return{baseAxes:[this.getAxis()]}},containPoint:function(e){var t=this.getRect(),i=this.getAxis(),n=i.orient;return"horizontal"===n?i.contain(i.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:i.contain(i.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},pointToData:function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e["horizontal"===t.orient?0:1]))]},dataToPoint:function(e){var t=this.getAxis(),i=this.getRect(),n=[],a="horizontal"===t.orient?0:1;return e instanceof Array&&(e=e[0]),n[a]=t.toGlobalCoord(t.dataToCoord(+e)),n[1-a]=0===a?i.y+i.height/2:i.x+i.width/2,n}};var u=c;e.exports=u},"4bf81":function(e,t){},"4c4f":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"shortcut-key-input",class:{cursor:e.focus},style:e.$props.style,attrs:{tabindex:"0"},on:{focus:e.handleFocus,blur:function(t){e.focus=!1},keydown:e.handleKeydown}},[e.key.text?[i("span",[e._v(e._s(e.key.text)+" "),i("i",{staticClass:"el-icon-circle-close",on:{click:e.handleDeleteKey}})])]:i("div",{staticClass:"placeholder"},[e._v(e._s(e.placeholder))])],2)},a=[],r=(i("2fdb"),i("6762"),i("ac6a"),i("5df3"),i("1c4c"),Array.from({length:10},(function(e,t){return"Digit".concat(t)}))),o=Array.from({length:10},(function(e,t){return"Numpad".concat(t)})),s=Array.from({length:26},(function(e,t){return"Key".concat(String.fromCharCode(t+65).toUpperCase())})),l=["Shift","ShiftLeft","ShiftRight","Control","ControlLeft","ControlRight","Alt","AltLeft","AltRight"],c=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown","PageUp","PageDown","Equal","Minus","Space"],u={name:"HotKeyInput",props:{hotkey:{type:Object,required:!0},verify:{type:Function,default:function(){return!0}},hotkeyId:{type:String,required:!0},placeholder:{type:String,default:""},range:{type:Array,default:function(){return["NUMBER","NUMPAD","ABC","OTHER"]}}},data:function(){return{focus:!1,key:{controlKey:"",text:""},keyRange:[]}},watch:{key:{handler:function(e){e.controlKey&&(this.focus=!1),this.$emit("update:hotkey",this.key)},immediate:!0},hotkey:{handler:function(e){e.text&&(this.key.text=e.text,this.key.controlKey=e.controlKey)},immediate:!0},range:{handler:function(e){var t=this,i={NUMBER:r,NUMPAD:o,ABC:s,OTHER:c};e.forEach((function(e){t.keyRange=t.keyRange.concat(i[e.toUpperCase()])}))},immediate:!0}},methods:{handleFocus:function(){this.key.text||(this.focus=!0)},handleDeleteKey:function(){this.key.text="",this.key.controlKey="",this.$emit("update:hotkey",this.key)},handleKeydown:function(e){console.log(e);var t=e.altKey,i=e.ctrlKey,n=e.shiftKey,a=e.key,r=e.code;if(!l.includes(a)){if(!this.keyRange.includes(r))return;var o="";[{key:t,text:"Alt"},{key:i,text:"Ctrl"},{key:n,text:"Shift"}].forEach((function(e){e.key&&(o&&(o+="+"),o+=e.text)})),a&&(o&&(o+="+"),"ArrowUp"===a?o+="↑":"ArrowDown"===a?o+="↓":"ArrowLeft"===a?o+="←":"ArrowRight"===a?o+="→":"PageUp"===a?o+="Page Up":"PageDown"===a?o+="Page Down":"+"===a&&n?o="+":"="!==a||n?"-"!==a||n?" "===a&&"Space"===r?o="Space":o+=a.toUpperCase():o="-":o="="),this.addHotkey({text:o,controlKey:{altKey:t,ctrlKey:i,shiftKey:n,key:a,code:r}})}e.preventDefault()},addHotkey:function(e){e.id=this.hotkeyId,this.verify(e)&&(this.key.text=e.text,this.key.controlKey=e.controlKey)}}},d=u,f=(i("1cf3"),i("2877")),h=Object(f["a"])(d,n,a,!1,null,"3b901506",null);t["default"]=h.exports},"4c58":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"history-chat"},[i("el-tabs",{attrs:{"tab-position":"left",type:"card"},on:{"tab-click":e.clickTab}},e._l(e.list,(function(t,n){return i("el-tab-pane",{key:t.Id},[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(t.ChallengeCode)+"\n "),i("i",{directives:[{name:"show",rawName:"v-show",value:!t.IsClosed,expression:"!item.IsClosed"}],staticClass:"el-icon-message-solid",staticStyle:{color:"red"}})]),e._v(" "),i("div",{staticClass:"chat-wrapper"},[i("div",{staticClass:"chat-content"},e._l(t.DialogList,(function(t){return i("div",{key:t.Id},[t.IsCurrentUser?i("div",{staticClass:"word-my"},[i("div",{staticClass:"info"},[i("p",{staticClass:"user-info"},[i("span",{staticStyle:{"font-weight":"700"}},[e._v(e._s(t.CreateUserName)+" ")]),e._v(" "),i("span",[e._v("("+e._s(t.CreateTime)+") ")])]),e._v(" "),i("div",{staticClass:"info-content",domProps:{innerHTML:e._s(t.TalkContent)}})]),e._v(" "),1*t.UserTypeEnum===8?i("img",{attrs:{src:e.adminAvatar,alt:"Admin"}}):1*t.UserTypeEnum===1?i("img",{attrs:{src:e.pmAvatar,alt:"PM"}}):1*t.UserTypeEnum===2?i("img",{attrs:{src:e.crcAvatar,alt:"CRC"}}):1*t.UserTypeEnum===3?i("img",{attrs:{src:e.qcAvatar,alt:"QC"}}):e._e()]):i("div",{staticClass:"word"},[1*t.UserTypeEnum===8?i("img",{attrs:{src:e.adminAvatar,alt:"Admin"}}):1*t.UserTypeEnum===1?i("img",{attrs:{src:e.pmAvatar,alt:"PM"}}):1*t.UserTypeEnum===2?i("img",{attrs:{src:e.crcAvatar,alt:"CRC"}}):1*t.UserTypeEnum===3?i("img",{attrs:{src:e.qcAvatar,alt:"QC"}}):e._e(),e._v(" "),i("div",{staticClass:"info"},[i("p",{staticClass:"user-info"},[i("span",{staticStyle:{"font-weight":"700"}},[e._v(e._s(t.CreateUserName)+" ")]),e._v(" "),i("span",[e._v("("+e._s(t.CreateTime)+") ")])]),e._v(" "),i("div",{staticClass:"info-content",domProps:{innerHTML:e._s(t.TalkContent)}})])])])})),0),e._v(" "),t.IsClosed?e._e():i("div",{staticClass:"chat-message"},[i("div",{staticClass:"message"},[i("el-input",{attrs:{type:"textarea",rows:2},model:{value:e.newMessage,callback:function(t){e.newMessage=t},expression:"newMessage"}})],1),e._v(" "),i("div",{staticClass:"function"},[i("el-button",{directives:[{name:"show",rawName:"v-show",value:0===t.ReuploadEnum||3===t.ReuploadEnum,expression:"(item.ReuploadEnum === 0 || item.ReuploadEnum === 3) "},{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:crc-upload:apply-reupload"],expression:"['trials:trials-panel:visit:crc-upload:apply-reupload']"}],attrs:{type:"primary",loading:e.applyBtnLoading},on:{click:function(i){return e.handleCRCApplyReupload(t)}}},[e._v("\n "+e._s(e.$t("trials:reuploadDicoms:button:applyReupload"))+"\n ")]),e._v(" "),i("el-button",{directives:[{name:"show",rawName:"v-show",value:2===t.ReuploadEnum,expression:"item.ReuploadEnum === 2"},{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:crc-upload:reupload"],expression:"['trials:trials-panel:visit:crc-upload:reupload']"}],attrs:{type:"primary",loading:e.uploadBtnLoading},on:{click:function(t){return e.openUploadDialog(n)}}},[e._v("\n "+e._s(e.$t("trials:reuploadDicoms:button:reupload"))+"\n ")]),e._v(" "),i("el-button",{directives:[{name:"show",rawName:"v-show",value:2===t.ReuploadEnum,expression:"item.ReuploadEnum === 2"},{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:crc-upload:set-reupload-finished"],expression:"['trials:trials-panel:visit:crc-upload:set-reupload-finished']"}],attrs:{type:"primary",disabled:t.IsReuploaded,loading:e.reuploadedFinishbtnLoading},on:{click:function(t){return e.handleSetUploadFinished(n)}}},[e._v("\n "+e._s(e.$t("trials:reuploadDicoms:button:reuploadFinished"))+"\n ")]),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:crc-upload:send"],expression:"['trials:trials-panel:visit:crc-upload:send']"}],attrs:{disabled:""===e.newMessage,type:"primary",loading:e.btnLoading},on:{click:function(i){return e.handleReply(t.Id,n)}}},[e._v("\n "+e._s(e.$t("trials:reuploadDicoms:button:send"))+"\n ")])],1)])])])})),1),e._v(" "),e.uploadVisible?i("el-dialog",{attrs:{visible:e.uploadVisible,fullscreen:!0,"append-to-body":"","custom-class":"upload-dialog"},on:{"update:visible":function(t){e.uploadVisible=t}}},[i("span",{attrs:{slot:"title"},slot:"title"},[i("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},[i("label",{staticStyle:{float:"left","margin-right":"10px"}},[e._v("Upload: ")]),e._v(" "),i("el-breadcrumb-item",{directives:[{name:"show",rawName:"v-show",value:e.trialCode,expression:"trialCode"}]},[e._v(e._s(e.trialCode))]),e._v(" "),i("el-breadcrumb-item",{directives:[{name:"show",rawName:"v-show",value:e.data.TrialSiteCode,expression:"data.TrialSiteCode"}]},[e._v(e._s(e.data.TrialSiteCode))]),e._v(" "),i("el-breadcrumb-item",{directives:[{name:"show",rawName:"v-show",value:e.data.SubjectCode,expression:"data.SubjectCode"}]},[e._v(e._s(e.data.SubjectCode))]),e._v(" "),i("el-breadcrumb-item",{directives:[{name:"show",rawName:"v-show",value:e.data.VisitName,expression:"data.VisitName"}]},[e._v(e._s(e.data.VisitName+" ("+e.data.VisitNum+")"))])],1)],1),e._v(" "),i("div",{staticClass:"base-modal-body",staticStyle:{display:"flex","flex-direction":"column"}},[i("el-tabs",{staticStyle:{flex:"1"},attrs:{type:"border-card"},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[i("el-tab-pane",{attrs:{label:e.$t("trials:uploadedDicoms:tab:uploadDicoms"),name:"dicom"}},[i("upload-dicom-files",{attrs:{data:e.data,"subject-id":e.data.SubjectId,"subject-visit-id":e.data.Id},on:{close:e.closeUpload,getList:e.reFreshList}})],1),e._v(" "),i("el-tab-pane",{attrs:{label:e.$t("trials:uploadNonDicoms:tab:uploadNonDicoms"),name:"non-dicom"}},["non-dicom"===e.activeName?i("upload-non-dicom-files",{attrs:{data:e.data,"allow-add-or-edit":!0,"body-parts":e.bodyParts,modalities:e.modalities,"subject-visit-id":e.data.Id},on:{getList:e.reFreshList}}):e._e()],1),e._v(" "),e.data.IsBaseLine&&e.clinicalEnum>0?i("el-tab-pane",{attrs:{label:e.$t("trials:uploadClinicalData:tab:uploadClinicalData"),name:"clinical-data"}},["clinical-data"===e.activeName?i("upload-clinical-data",{attrs:{data:e.data,"subject-id":e.data.SubjectId,"subject-visit-id":e.data.Id,"allow-add-or-edit":!0,"enum-type":e.clinicalEnum},on:{getList:e.reFreshList}}):e._e()],1):e._e()],1)],1)]):e._e(),e._v(" "),e.signVisible?i("el-dialog",{attrs:{visible:e.signVisible,"close-on-click-modal":!1,width:"600px","append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.signVisible=t}}},[i("div",{attrs:{slot:"title"},slot:"title"},[i("span",{staticStyle:{"font-size":"18px"}},[e._v(e._s(e.$t("common:dialogTitle:sign")))]),e._v(" "),i("span",{staticStyle:{"font-size":"12px","margin-left":"5px"}},[e._v(e._s("("+e.$t("common:label:sign")+e.currentUser+")"))])]),e._v(" "),i("SignForm",{ref:"signForm",attrs:{"sign-code-enum":e.signCode,"subject-visit-id":e.data.Id},on:{closeDialog:e.closeClinicalDataSignDialog}})],1):e._e()],1)},a=[],r=i("75fc"),o=(i("28a5"),i("ac6a"),i("c5f6"),i("3e42")),s=i("9a3b"),l=i("268e"),c=i.n(l),u=i("19c3"),d=i.n(u),f=i("011b"),h=i.n(f),p=i("303f"),m=i.n(p),g=i("0280"),v=i("4ebb"),b=i("dda6"),y=i("179b"),w=i("5be4"),_=i("7a9e"),I={name:"HistoryChat",components:{UploadDicomFiles:g["default"],UploadNonDicomFiles:v["default"],UploadClinicalData:b["default"],SignForm:y["default"]},props:{data:{type:Object,default:function(){return{}}},bodyParts:{type:String,default:""},modalities:{type:String,default:""},clinicalEnum:{type:Number,default:0}},data:function(){return{list:[],loading:!1,btnLoading:!1,newMessage:"",userId:zzSessionStorage.getItem("userId"),trialCode:this.$route.query.trialCode,adminAvatar:c.a,pmAvatar:d.a,crcAvatar:h.a,qcAvatar:m.a,uploadVisible:!1,activeName:"dicom",currentChallengeIndex:null,signVisible:!1,signCode:"",currentUser:zzSessionStorage.getItem("userName"),trialId:this.$route.query.trialId,uploadBtnLoading:!1,applyBtnLoading:!1,reuploadedFinishbtnLoading:!1}},mounted:function(){this.initChat()},methods:{clickTab:function(e){this.setScrollHeight(1*e.index)},initChat:function(e){var t=this,i=[];this.loading=!0,Object(o["Ob"])(this.data.Id,this.data.QCProcessEnum).then((function(n){n.Result.forEach((function(n){var a=[];n.Content&&-1!==n.Content.indexOf("|")?a=n.Content.split("|"):n.Content&&""!==n.Content&&a.push(n.Content);var o=a.map((function(e){return"<li>".concat(e,"</li>")})),s="\n <div>".concat(t.$t("trials:qcQuality:dialog:qcContent"),"\n <ol>\n ").concat(o.join(""),"\n </ol>\n </div>\n <p>\n ").concat(t.$t("trials:qcQuality:dialogTips:tip"),"\n </p>\n <p style='color:red'>").concat(t.$t("trials:qcQuality:dialog:deadline"),": ").concat(n.DeadlineTime?n.DeadlineTime:t.$t("trials:qcQuality:dialog:none"),"</p>"),l=zzSessionStorage.getItem("userId"),c=[];c.push({IsCurrentUser:n.CreateUserId===l,TalkContent:s,CreateTime:n.CreateTime,CreateUserName:n.CreateUserName,CreateUserId:n.CreateUserId,UserTypeEnum:n.UserTypeEnum}),c.push.apply(c,Object(r["a"])(n.DialogList)),i.push({Id:n.Id,ChallengeCode:n.ChallengeCode,IsClosed:n.IsClosed,ReuploadEnum:1*n.ReuploadEnum,DialogList:c,Content:n.Content,DeadlineTime:n.DeadlineTime,IsOverTime:n.IsOverTime}),t.list=Object.assign({},i),t.loading=!1,t.setScrollHeight(e||0)}))})).catch((function(){t.loading=!1}))},setScrollHeight:function(e){setTimeout((function(){var t=document.querySelectorAll(".chat-content")[e];t.scrollTop=t.scrollHeight}),100)},handleReply:function(e,t){var i=this;if(this.newMessage){this.btnLoading=!0;var n={talkContent:this.newMessage,qcChallengeId:e,subjectVisitId:this.data.Id};Object(o["G"])(this.data.TrialId,n).then((function(e){e.IsSuccess&&(i.initChat(t),i.newMessage=""),i.btnLoading=!1})).catch((function(){i.btnLoading=!1}))}},openUploadDialog:function(e){var t=this,i=this.list[e].Id;i&&(this.uploadBtnLoading=!0,Object(o["Lf"])(this.trialId,i).then((function(e){t.uploadBtnLoading=!1,e.IsSuccess&&(w["a"].studyList=[],t.uploadVisible=!0)})).catch((function(){t.initChat(e),t.$emit("getList"),t.uploadBtnLoading=!1})))},closeUpload:function(){this.uploadVisible=!1},reFreshList:function(){this.$emit("getList")},handleSetUploadFinished:function(e){var t=this;if(this.clinicalEnum>0&&this.data.IsBaseLine){this.currentChallengeIndex=e;var i=_["default"].processSignature.ClinicalDataConfirmation;this.signCode=i,this.signVisible=!0}else this.$confirm(this.$t("trials:crcQuestion:message:reuploadConfirm"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.currentChallengeIndex=e,t.setReuploadFinished()})).catch((function(){}))},setReuploadFinished:function(e){var t=this;this.loading=!0;var i=Object.assign({},this.list[this.currentChallengeIndex]),n={data:{QcChallengeId:i.Id,TrialId:this.trialId,SetOrCancel:!0},signInfo:e};this.loading=!0,this.reuploadedFinishbtnLoading=!0,Object(s["d"])(n).then((function(i){t.loading=!1,t.reuploadedFinishbtnLoading=!1,i.IsSuccess&&(e&&(t.$refs["signForm"].btnLoading=!1,t.signVisible=!1),t.list[t.currentChallengeIndex].ReuploadEnum=3,t.initChat(),t.reFreshList())})).catch((function(){t.loading=!1,t.reuploadedFinishbtnLoading=!1,t.$refs["signForm"].btnLoading=!1}))},closeClinicalDataSignDialog:function(e,t){e?this.setReuploadFinished(t):this.signVisible=!1},handleCRCApplyReupload:function(e){var t=this;this.$confirm(this.$t("trials:crcQuestion:message:applyReupload"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.applyBtnLoading=!0,Object(o["S"])(t.trialId,t.data.Id,e.Id).then((function(i){t.applyBtnLoading=!1,i.IsSuccess&&(e.ReuploadEnum=1,t.initChat(),t.$forceUpdate(),t.reFreshList())})).catch((function(){t.applyBtnLoading=!1}))})).catch((function(){}))}}},x=I,S=(i("502f"),i("2877")),T=Object(S["a"])(x,n,a,!1,null,"8c6137ee",null);t["default"]=T.exports},"4c86":function(e,t,i){var n=i("6d8b"),a=n.each,r=i("bda7"),o=i("e0d3"),s=o.makeInner,l=i("320a"),c=i("1792"),u=i("6bd4"),d=i("a7f2"),f=s(),h={load:function(e,t,i){var n=f(t).parsed;if(n)return n;var o,s=t.specialAreas||{},h=t.geoJSON;try{o=h?r(h,i):[]}catch(m){throw new Error("Invalid geoJson format\n"+m.message)}return l(e,o),a(o,(function(t){var i=t.name;c(e,t),u(e,t),d(e,t);var n=s[i];n&&t.transformTo(n.left,n.top,n.width,n.height)})),f(t).parsed={regions:o,boundingRect:p(o)}}};function p(e){for(var t,i=0;i<e.length;i++){var n=e[i].getBoundingRect();t=t||n.clone(),t.union(n)}return t}e.exports=h},"4c99":function(e,t,i){var n=i("cccd"),a=["itemStyle","borderColor"],r=["itemStyle","borderColor0"],o=["itemStyle","color"],s=["itemStyle","color0"],l={seriesType:"candlestick",plan:n(),performRawSeries:!0,reset:function(e,t){var i=e.getData();if(i.setVisual({legendSymbol:"roundRect",colorP:c(1,e),colorN:c(-1,e),borderColorP:u(1,e),borderColorN:u(-1,e)}),!t.isSeriesFiltered(e)){var n=e.pipelineContext.large;return!n&&{progress:l}}function l(e,t){var i;while(null!=(i=e.next())){var n=t.getItemModel(i),a=t.getItemLayout(i).sign;t.setItemVisual(i,{color:c(a,n),borderColor:u(a,n)})}}function c(e,t){return t.get(e>0?o:s)}function u(e,t){return t.get(e>0?a:r)}}};e.exports=l},"4cef":function(e,t){var i=/\s/;function n(e){var t=e.length;while(t--&&i.test(e.charAt(t)));return t}e.exports=n},"4d11":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",[i("div",{staticClass:"search"},[i("el-form",{staticClass:"base-search-form",attrs:{inline:!0,size:"mini"}},[i("el-form-item",{attrs:{label:"Code:"}},[i("el-input",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.Code,callback:function(t){e.$set(e.searchData,"Code",t)},expression:"searchData.Code"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"KeyName:"}},[i("el-input",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.KeyName,callback:function(t){e.$set(e.searchData,"KeyName",t)},expression:"searchData.KeyName"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:e.handleReset}},[e._v("Reset")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.handleSearch}},[e._v("Search")])],1)],1),e._v(" "),i("span",{staticStyle:{"margin-left":"auto"}},[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.handleAdd}},[e._v("New")])],1)],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:45},expression:"{bottomOffset:45}"}],attrs:{data:e.list,stripe:"",size:"small",height:"100"}},[i("el-table-column",{attrs:{type:"index",width:"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Code",label:"Code","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"KeyName",label:"KeyName","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Description",label:"Description","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Value",label:"Value","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ValueCN",label:"ValueCN","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:"Is Enable",width:"100",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},on:{change:function(i){return e.switchChange(i,t.row)}},model:{value:t.row.IsEnable,callback:function(i){e.$set(t.row,"IsEnable",i)},expression:"scope.row.IsEnable"}})]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"Action",width:"200",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("\n Edit\n ")]),e._v(" "),i("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("\n Delete\n ")])]}}])})],1),e._v(" "),i("DictionaryTypeConfigForm",{ref:"DictionaryTypeConfigForm",on:{getList:e.getList}})],1)},a=[],r=(i("20d6"),i("e56e")),o=i("ab11"),s=i("f36a"),l=function(){return{asc:!0,sortField:"",code:"",keyName:"",IsConfig:!0,PageIndex:1,PageSize:20}},c={name:"DictionaryConfig",components:{BoxContent:s["default"],DictionaryTypeConfigForm:o["default"]},data:function(){return{searchData:l(),list:[],total:0,loading:!1,rowData:{},model_cfg:{visible:!1,showClose:!0,width:"600px",title:""}}},mounted:function(){this.getList()},methods:{switchChange:function(e,t){var i=this;this.loading=!0,Object(r["c"])(t).then((function(e){i.$message.success("Saved successfully!"),i.loading=!1})).catch((function(){i.loading=!1}))},handleEdit:function(e){var t=this;this.$nextTick((function(){t.$refs["DictionaryTypeConfigForm"].openDialog("DictionaryTypeConfig",e)}))},handleAdd:function(){var e=this;this.$nextTick((function(){e.$refs["DictionaryTypeConfigForm"].openDialog("DictionaryTypeConfig",{})}))},handleDelete:function(e){var t=this;this.$confirm("Sure to delete?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){t.loading=!0,Object(r["C"])(e.Id).then((function(i){t.loading=!1,i.IsSuccess&&(t.list.splice(t.list.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success("Deleted successfully!"))})).catch((function(){t.loading=!1}))}))},getList:function(){var e=this;this.loading=!0,Object(r["W"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData})).catch((function(){e.loading=!1}))},handleSearch:function(){this.getList()},handleReset:function(){this.searchData=l(),this.getList()}}},u=c,d=i("2877"),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},"4d24":function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-tree-table",use:"icon-tree-table-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-tree-table"><path d="M44.8 0h79.543C126.78 0 128 1.422 128 4.267v23.466c0 2.845-1.219 4.267-3.657 4.267H44.8c-2.438 0-3.657-1.422-3.657-4.267V4.267C41.143 1.422 42.362 0 44.8 0zm22.857 48h56.686c2.438 0 3.657 1.422 3.657 4.267v23.466c0 2.845-1.219 4.267-3.657 4.267H67.657C65.22 80 64 78.578 64 75.733V52.267C64 49.422 65.219 48 67.657 48zm0 48h56.686c2.438 0 3.657 1.422 3.657 4.267v23.466c0 2.845-1.219 4.267-3.657 4.267H67.657C65.22 128 64 126.578 64 123.733v-23.466C64 97.422 65.219 96 67.657 96zM50.286 68.267c2.02 0 3.657-1.91 3.657-4.267 0-2.356-1.638-4.267-3.657-4.267H17.37V32h6.4c2.02 0 3.658-1.91 3.658-4.267V4.267C27.429 1.91 25.79 0 23.77 0H3.657C1.637 0 0 1.91 0 4.267v23.466C0 30.09 1.637 32 3.657 32h6.4v80c0 2.356 1.638 4.267 3.657 4.267h36.572c2.02 0 3.657-1.91 3.657-4.267 0-2.356-1.638-4.267-3.657-4.267H17.37V68.267h32.915z" /></symbol>'});o.a.add(s);t["default"]=s},"4d62":function(e,t,i){var n=i("2306"),a=i("6d8b"),r=i("e887");function o(e,t){n.Group.call(this);var i=new n.Polygon,a=new n.Polyline,r=new n.Text;this.add(i),this.add(a),this.add(r),this.highDownOnUpdate=function(e,t){"emphasis"===t?(a.ignore=a.hoverIgnore,r.ignore=r.hoverIgnore):(a.ignore=a.normalIgnore,r.ignore=r.normalIgnore)},this.updateData(e,t,!0)}var s=o.prototype,l=["itemStyle","opacity"];s.updateData=function(e,t,i){var r=this.childAt(0),o=e.hostModel,s=e.getItemModel(t),c=e.getItemLayout(t),u=e.getItemModel(t).get(l);u=null==u?1:u,r.useStyle({}),i?(r.setShape({points:c.points}),r.setStyle({opacity:0}),n.initProps(r,{style:{opacity:u}},o,t)):n.updateProps(r,{style:{opacity:u},shape:{points:c.points}},o,t);var d=s.getModel("itemStyle"),f=e.getItemVisual(t,"color");r.setStyle(a.defaults({lineJoin:"round",fill:f},d.getItemStyle(["opacity"]))),r.hoverStyle=d.getModel("emphasis").getItemStyle(),this._updateLabel(e,t),n.setHoverStyle(this)},s._updateLabel=function(e,t){var i=this.childAt(1),a=this.childAt(2),r=e.hostModel,o=e.getItemModel(t),s=e.getItemLayout(t),l=s.label,c=e.getItemVisual(t,"color");n.updateProps(i,{shape:{points:l.linePoints||l.linePoints}},r,t),n.updateProps(a,{style:{x:l.x,y:l.y}},r,t),a.attr({rotation:l.rotation,origin:[l.x,l.y],z2:10});var u=o.getModel("label"),d=o.getModel("emphasis.label"),f=o.getModel("labelLine"),h=o.getModel("emphasis.labelLine");c=e.getItemVisual(t,"color");n.setLabelStyle(a.style,a.hoverStyle={},u,d,{labelFetcher:e.hostModel,labelDataIndex:t,defaultText:e.getName(t),autoColor:c,useInsideStyle:!!l.inside},{textAlign:l.textAlign,textVerticalAlign:l.verticalAlign}),a.ignore=a.normalIgnore=!u.get("show"),a.hoverIgnore=!d.get("show"),i.ignore=i.normalIgnore=!f.get("show"),i.hoverIgnore=!h.get("show"),i.setStyle({stroke:c}),i.setStyle(f.getModel("lineStyle").getLineStyle()),i.hoverStyle=h.getModel("lineStyle").getLineStyle()},a.inherits(o,n.Group);var c=r.extend({type:"funnel",render:function(e,t,i){var n=e.getData(),a=this._data,r=this.group;n.diff(a).add((function(e){var t=new o(n,e);n.setItemGraphicEl(e,t),r.add(t)})).update((function(e,t){var i=a.getItemGraphicEl(t);i.updateData(n,e),r.add(i),n.setItemGraphicEl(e,i)})).remove((function(e){var t=a.getItemGraphicEl(e);r.remove(t)})).execute(),this._data=n},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}}),u=c;e.exports=u},"4d85":function(e,t,i){var n=i("e46b"),a=i("4f85"),r=a.extend({type:"series.gauge",getInitialData:function(e,t){return n(this,["value"])},defaultOption:{zlevel:0,z:2,center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,lineStyle:{color:[[.2,"#91c7ae"],[.8,"#63869e"],[1,"#c23531"]],width:30}},splitLine:{show:!0,length:30,lineStyle:{color:"#eee",width:2,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:8,lineStyle:{color:"#eee",width:1,type:"solid"}},axisLabel:{show:!0,distance:5,color:"auto"},pointer:{show:!0,length:"80%",width:8},itemStyle:{color:"auto"},title:{show:!0,offsetCenter:[0,"-40%"],color:"#333",fontSize:15},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"auto",fontSize:30}}}),o=r;e.exports=o},"4d89":function(e,t,i){"use strict";i("815e")},"4dc3":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[i("el-tab-pane",{attrs:{label:e.$t("trials:readingUnit:baseDataCfg:title:organ"),name:"organs"}},[i("OrgansTbl",{attrs:{"trial-reading-criterion-id":e.trialReadingCriterionId,"is-from-system":e.isFromSystem,"is-confirm":e.isConfirm}})],1),e._v(" "),i("el-tab-pane",{attrs:{label:e.$t("trials:readingUnit:baseDataCfg:title:dict"),name:"criterionDictionary"}},[i("CriterionDictionary",{attrs:{"criterion-id":e.trialReadingCriterionId,"is-complete-config":e.isConfirm}})],1)],1)},a=[],r=(i("7f7f"),i("6762"),i("2fdb"),i("ba8d")),o=i("2e99"),s={name:"CriterionsBaseData",components:{OrgansTbl:r["default"],CriterionDictionary:o["default"]},props:{trialReadingCriterionId:{type:String,required:!0},isFromSystem:{type:Boolean,required:!0},isConfirm:{type:Boolean,required:!0}},data:function(){return{activeName:"organs",tabs:["organs"]}},methods:{handleClick:function(e,t){this.tabs.includes(e.name)||this.tabs.push(e.name)}}},l=s,c=i("2877"),u=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},"4df0":function(e,t,i){},"4e08":function(e,t,i){(function(e){var i;"undefined"!==typeof window?i=window.__DEV__:"undefined"!==typeof e&&(i=e.__DEV__),"undefined"===typeof i&&(i=!0);var n=i;t.__DEV__=n}).call(this,i("c8ba"))},"4e10":function(e,t,i){var n=i("6d8b"),a=i("e46b"),r=i("4f85"),o=i("eda2"),s=o.encodeHTML,l=o.addCommas,c=i("7023"),u=i("2b17"),d=u.retrieveRawAttr,f=i("5b87"),h=i("0f99"),p=h.makeSeriesEncodeForNameBased,m=r.extend({type:"series.map",dependencies:["geo"],layoutMode:"box",needsDrawMap:!1,seriesGroup:[],getInitialData:function(e){for(var t=a(this,{coordDimensions:["value"],encodeDefaulter:n.curry(p,this)}),i=t.mapDimension("value"),r=n.createHashMap(),o=[],s=[],l=0,c=t.count();l<c;l++){var u=t.getName(l);r.set(u,!0),o.push({name:u,value:t.get(i,l),selected:d(t,l,"selected")})}var h=f.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return n.each(h.regions,(function(e){var t=e.name;r.get(t)||(o.push({name:t}),s.push(t))})),this.updateSelectedMap(o),t.appendValues([],s),t},getHostGeoModel:function(){var e=this.option.geoIndex;return null!=e?this.dependentModels.geo[e]:null},getMapType:function(){return(this.getHostGeoModel()||this).option.map},getRawValue:function(e){var t=this.getData();return t.get(t.mapDimension("value"),e)},getRegionModel:function(e){var t=this.getData();return t.getItemModel(t.indexOfName(e))},formatTooltip:function(e,t,i,n){for(var a=this.getData(),r=l(this.getRawValue(e)),o=a.getName(e),c=this.seriesGroup,u=[],d=0;d<c.length;d++){var f=c[d].originalData.indexOfName(o),h=a.mapDimension("value");isNaN(c[d].originalData.get(h,f))||u.push(s(c[d].name))}var p="html"===n?"<br/>":"\n";return u.join(", ")+p+s(o+" : "+r)},getTooltipPosition:function(e){if(null!=e){var t=this.getData().getName(e),i=this.coordinateSystem,n=i.getRegion(t);return n&&i.dataToPoint(n.center)}},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e},defaultOption:{zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:.75,showLegendSymbol:!0,dataRangeHoverLink:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},nameProperty:"name"}});n.mixin(m,c);var g=m;e.exports=g},"4e13":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"research-info"},[i("el-form",{staticClass:"demo-form-inline",attrs:{model:e.researchInfo,size:"small"}},[i("el-form-item",{attrs:{label:"Field of Research:"}},[e.isEnglish?i("el-input",{attrs:{type:"textarea",autosize:"",readonly:""},model:{value:e.researchInfo.Research,callback:function(t){e.$set(e.researchInfo,"Research",t)},expression:"researchInfo.Research"}}):i("el-input",{attrs:{type:"textarea",autosize:"",readonly:""},model:{value:e.researchInfo.ResearchCN,callback:function(t){e.$set(e.researchInfo,"ResearchCN",t)},expression:"researchInfo.ResearchCN"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Grants:"}},[e.isEnglish?i("el-input",{attrs:{type:"textarea",autosize:"",readonly:""},model:{value:e.researchInfo.Grants,callback:function(t){e.$set(e.researchInfo,"Grants",t)},expression:"researchInfo.Grants"}}):i("el-input",{attrs:{type:"textarea",autosize:"",readonly:""},model:{value:e.researchInfo.GrantsCN,callback:function(t){e.$set(e.researchInfo,"GrantsCN",t)},expression:"researchInfo.GrantsCN"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Publications:"}},[i("el-input",{attrs:{type:"textarea",autosize:"",readonly:""},model:{value:e.researchInfo.Publications,callback:function(t){e.$set(e.researchInfo,"Publications",t)},expression:"researchInfo.Publications"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Awards & Honors:"}},[e.isEnglish?i("el-input",{attrs:{type:"textarea",autosize:"",readonly:""},model:{value:e.researchInfo.AwardsHonors,callback:function(t){e.$set(e.researchInfo,"AwardsHonors",t)},expression:"researchInfo.AwardsHonors"}}):i("el-input",{attrs:{type:"textarea",autosize:"",readonly:""},model:{value:e.researchInfo.AwardsHonorsCN,callback:function(t){e.$set(e.researchInfo,"AwardsHonorsCN",t)},expression:"researchInfo.AwardsHonorsCN"}})],1)],1)],1)},a=[],r={props:{researchInfo:{type:Object,default:function(){return{}}},isEnglish:{type:Boolean}}},o=r,s=(i("643c"),i("2877")),l=Object(s["a"])(o,n,a,!1,null,null,null);t["default"]=l.exports},"4e36":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{ref:"container",staticClass:"dicom-container",staticStyle:{width:"100%",height:"100%"}},[(e.isReadingTaskViewInOrder||!e.isReadingTaskViewInOrder&&e.isShow)&&e.readingCategory&&1===e.readingCategory&&0!==e.CriterionType?i("div",{staticClass:"reading-wrapper"},[i("el-tabs",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{"before-leave":e.beforeLeave},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[i("el-tab-pane",{attrs:{label:e.$t("trials:reading:tabTitle:review"),name:"read"}},[e.tabs.includes("read")?i("ReadPage",{attrs:{"trial-id":e.trialId,"visit-task-id":e.visitTaskId,"subject-id":e.subjectId,"subject-code":e.subjectCode,"is-show":e.isShow,"question-form-change-state":e.questionFormChangeState,"question-form-change-num":e.questionFormChangeNum,"is-reading-show-subject-info":e.isReadingShowSubjectInfo,"is-reading-task-view-in-order":e.isReadingTaskViewInOrder,"is-exists-clinical-data":e.isExistsClinicalData,"is-exists-no-dicom-file":e.isExistsNoDicomFile}}):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:e.$t("trials:reading:tabTitle:report"),name:"report"}},[e.tabs.includes("report")&&e.isShow?i("ReportPage",{ref:"reportPage",attrs:{"question-form-change-state":e.questionFormChangeState,"visit-task-id":e.visitTaskId}}):e._e()],1)],1)],1):e._e(),e._v(" "),(e.isReadingTaskViewInOrder||!e.isReadingTaskViewInOrder&&e.isShow)&&e.readingCategory&&1===e.readingCategory&&0===e.CriterionType?i("div",{staticClass:"reading-wrapper"},[i("el-tabs",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{"before-leave":e.beforeLeaveCustomize},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[i("el-tab-pane",{attrs:{label:e.$t("trials:reading:tabTitle:review"),name:"read"}},[e.tabs.includes("read")?i("CustomizeReadPage",{attrs:{"trial-id":e.trialId,"visit-task-id":e.visitTaskId,"subject-id":e.subjectId,"subject-code":e.subjectCode,"is-reading-show-subject-info":e.isReadingShowSubjectInfo,"ise-c-r-f-show-in-dicom-reading":e.IseCRFShowInDicomReading,"is-exists-clinical-data":e.isExistsClinicalData,"is-exists-no-dicom-file":e.isExistsNoDicomFile}}):e._e()],1),e._v(" "),e.IseCRFShowInDicomReading?e._e():i("el-tab-pane",{attrs:{label:e.$t("trials:reading:tabTitle:report"),name:"report"}},[e.isShow?i("CustomizeReportPage",{ref:"reportPage",attrs:{"visit-task-id":e.visitTaskId}}):e._e()],1)],1)],1):e.isShow&&e.readingCategory&&2===e.readingCategory?i("GlobalReview",{attrs:{"trial-id":e.trialId,"subject-id":e.subjectId,"visit-task-id":e.visitTaskId,"reading-category":e.readingCategory,"subject-code":e.subjectCode,"task-blind-name":e.taskBlindName,"is-reading-show-subject-info":e.isReadingShowSubjectInfo,"is-reading-show-previous-results":e.isReadingShowPreviousResults,"is-exists-clinical-data":e.isExistsClinicalData}}):e.isShow&&e.readingCategory&&4===e.readingCategory?i("AdReview",{attrs:{"trial-id":e.trialId,"subject-id":e.subjectId,"visit-task-id":e.visitTaskId,"reading-category":e.readingCategory,"subject-code":e.subjectCode,"task-blind-name":e.taskBlindName,"is-reading-show-subject-info":e.isReadingShowSubjectInfo,"is-reading-show-previous-results":e.isReadingShowPreviousResults,"is-exists-clinical-data":e.isExistsClinicalData}}):e.isShow&&e.readingCategory&&5===e.readingCategory?i("OncologyReview",{attrs:{"trial-id":e.trialId,"subject-id":e.subjectId,"visit-task-id":e.visitTaskId,"reading-category":e.readingCategory,"subject-code":e.subjectCode,"task-blind-name":e.taskBlindName,"is-reading-show-subject-info":e.isReadingShowSubjectInfo,"is-reading-show-previous-results":e.isReadingShowPreviousResults,"is-exists-clinical-data":e.isExistsClinicalData}}):e._e(),e._v(" "),i("el-dialog",{staticStyle:{margin:"0px"},attrs:{width:"75%",visible:e.dialogVisible,"custom-class":"dialog-container","show-close":!1,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("span",{staticClass:"dialog-footer",attrs:{slot:"title"},slot:"title"},[e._v("\n "+e._s(e.$t("trials:reading:dagTitle:msg1"))+"\n ")]),e._v(" "),i("div",{style:{height:e.dialogH,margin:0}},[i("ClinicalData",{attrs:{"trial-id":e.trialId,"subject-id":e.subjectId,"visit-task-id":e.visitTaskId}})],1),e._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{type:"primary"},on:{click:e.handleConfirmCD}},[e._v(e._s(e.$t("trials:reading:button:confirm")))])],1)])],1)},a=[],r=(i("6762"),i("2fdb"),i("96cf"),i("3b8d")),o=(i("a481"),i("3e42")),s=i("689e"),l=i("d34b"),c=i("96a9"),u=i("196d"),d=i("6501"),f=i("7962"),h=i("b706"),p=i("421a"),m=i("9b92"),g=i("4360"),v=i("5f87"),b=i("a599"),y={name:"Reading",components:{ReadPage:s["default"],ReportPage:c["default"],GlobalReview:d["default"],AdReview:f["default"],OncologyReview:h["default"],ClinicalData:p["default"],CustomizeReadPage:l["default"],CustomizeReportPage:u["default"]},data:function(){return{activeName:"",tabs:[],trialId:"",subjectCode:"",subjectId:"",visitTaskId:"",loading:!1,readingCategory:null,isReadingShowSubjectInfo:!1,isReadingShowPreviousResults:!1,isExistsClinicalData:!1,isExistsNoDicomFile:!1,isNeedReadClinicalData:!1,isReadClinicalData:!1,digitPlaces:2,isReadingTaskViewInOrder:!1,firstTaskReadingCategory:null,criterionType:null,readingTool:null,dialogVisible:!1,dialogH:0,TrialReadingCriterionId:null,isNewSubject:null,isShow:!1,IseCRFShowInDicomReading:!1,isQualityIssueSaved:!1,questionFormChangeState:!1,questionFormChangeNum:0}},mounted:function(){var e=this;if(m["a"].$on("questionFormChange",(function(t){0!==e.questionFormChangeNum&&(e.questionFormChangeState=t),e.questionFormChangeNum++})),m["a"].$on("getNextTask",(function(){e.isQualityIssueSaved=!1,e.firstTaskReadingCategory=e.readingCategory,e.isReadingTaskViewInOrder||g["a"].dispatch("reading/resetVisitTasks"),e.getTaskInfo(1)})),this.activeName=this.$router.currentRoute.query.tabName?this.$router.currentRoute.query.tabName:"read",this.tabs.push(this.activeName),this.trialId=this.$router.currentRoute.query.trialId,this.subjectCode=this.$router.currentRoute.query.subjectCode,this.subjectId=this.$router.currentRoute.query.subjectId,this.visitTaskId=this.$router.currentRoute.query.visitTaskId,this.isReadingTaskViewInOrder=JSON.parse(this.$router.currentRoute.query.isReadingTaskViewInOrder),this.criterionType=this.$router.currentRoute.query.criterionType,this.readingTool=this.$router.currentRoute.query.readingTool,this.TrialReadingCriterionId=this.$router.currentRoute.query.TrialReadingCriterionId,this.isNewSubject=this.$router.currentRoute.query.isNewSubject,this.isNewSubject&&this.isReadingTaskViewInOrder){var t=this.$t("trials:reading:warnning:msg1");t=t.replace("xxx",this.subjectCode),this.$message.success(t),Object(b["a"])("isNewSubject","")}this.$router.currentRoute.query.TokenKey&&(g["a"].dispatch("user/setToken",this.$router.currentRoute.query.TokenKey),Object(b["a"])("TokenKey","")),g["a"].dispatch("reading/resetVisitTasks"),this.getTaskInfo(),this.dialogH=this.$refs["container"].clientHeight-250+"px",window.addEventListener("resize",(function(){e.dialogH=e.$refs["container"].clientHeight-250+"px"}))},beforeDestroy:function(){m["a"].$off("getNextTask")},methods:{getTaskInfo:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.loading=!0;var i={subjectId:this.subjectId,trialId:this.trialId,subjectCode:this.subjectCode,visitTaskId:this.$router.currentRoute.query.visitTaskId,trialReadingCriterionId:this.$router.currentRoute.query.TrialReadingCriterionId};Object(o["vc"])(i).then(function(){var i=Object(r["a"])(regeneratorRuntime.mark((function i(n){var a;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:e.isShow=!1,e.visitTaskId=n.Result.VisitTaskId,e.subjectId!==n.Result.SubjectId?(g["a"].dispatch("reading/resetVisitTasks"),a=Object(v["a"])(),window.location.href="/readingDicoms?TrialReadingCriterionId=".concat(e.TrialReadingCriterionId,"&trialId=").concat(e.trialId,"&subjectCode=").concat(n.Result.SubjectCode,"&subjectId=").concat(n.Result.SubjectId,"&isReadingTaskViewInOrder=").concat(e.isReadingTaskViewInOrder,"&criterionType=").concat(e.criterionType,"&readingTool=").concat(e.readingTool,"&TokenKey=").concat(a,"&isNewSubject=1")):e.isReadingTaskViewInOrder&&1===n.Result.ReadingCategory||g["a"].dispatch("reading/resetVisitTasks"),e.subjectId=n.Result.SubjectId,e.subjectCode=n.Result.SubjectCode,e.taskBlindName=n.Result.TaskBlindName,e.isReadingShowSubjectInfo=n.Result.IsReadingShowSubjectInfo,e.isReadingShowPreviousResults=n.Result.IsReadingShowPreviousResults,e.isExistsNoDicomFile=n.Result.IsExistsNoDicomFile,e.isExistsClinicalData=n.Result.IsExistsClinicalData,e.isReadClinicalData=n.Result.IsReadClinicalData,e.isNeedReadClinicalData=n.Result.IsNeedReadClinicalData,e.CriterionType=n.Result.CriterionType,e.digitPlaces=n.Result.DigitPlaces,e.IseCRFShowInDicomReading=n.Result.IseCRFShowInDicomReading,localStorage.setItem("CriterionType",n.Result.CriterionType),localStorage.setItem("digitPlaces",n.Result.DigitPlaces),e.readingCategory=n.Result.ReadingCategory,e.questionFormChangeState=!1,e.questionFormChangeNum=0,e.isExistsClinicalData&&e.isNeedReadClinicalData&&!e.isReadClinicalData&&(e.dialogVisible=!0),1===n.Result.ReadingCategory&&(e.activeName="read",e.tabs=[e.activeName]),1===e.firstTaskReadingCategory&&1===n.Result.ReadingCategory&&e.isReadingTaskViewInOrder&&t&&(e.activeName="read",e.tabs=[e.activeName],e.$nextTick((function(){m["a"].$emit("getNextVisitInfo"),m["a"].$emit("getReportInfo")}))),e.isShow=!0,e.loading=!1;case 25:case"end":return i.stop()}}),i)})));return function(e){return i.apply(this,arguments)}}()).catch((function(){e.loading=!1}))},beforeLeaveCustomize:function(e,t){return this.isShow="read"===t,Promise.resolve(!0)},myConfirm:function(e){var t=this;return new Promise((function(i){t.$confirm(e,{type:"warning",showCancelButton:!0}).then((function(){i(!0)})).catch((function(){i(!1)}))}))},beforeLeave:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t,i){var n=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("read"!==i){e.next=6;break}return this.tabs.push(t),this.$nextTick((function(){n.$refs.reportPage.setScrollTop(1)})),e.abrupt("return",Promise.resolve(!0));case 6:return console.log(t),this.tabs.includes(t)||this.tabs.push(t),e.abrupt("return",Promise.resolve(!0));case 9:case"end":return e.stop()}}),e,this)})));function t(t,i){return e.apply(this,arguments)}return t}(),verifyVisitTaskQuestions:function(){var e=this;return new Promise((function(t,i){e.loading=!0,Object(o["Hf"])({visitTaskId:e.visitTaskId}).then((function(i){e.loading=!1,e.isQualityIssueSaved=!0,t()})).catch((function(){e.loading=!1,e.isQualityIssueSaved=!1,i()}))}))},handleConfirmCD:function(){var e=this;this.loading=!0;var t=this.visitTaskId;Object(o["te"])({visitTaskId:t}).then((function(t){e.loading=!1,e.dialogVisible=!1,e.isReadClinicalData=!0})).catch((function(){e.loading=!1}))}}},w=y,_=(i("f40c"),i("2877")),I=Object(_["a"])(w,n,a,!1,null,"bd43a304",null);t["default"]=I.exports},"4e3f":function(e,t,i){},"4e47":function(e,t,i){var n=i("6d8b"),a=i("2306"),r={NONE:"none",DESCENDANT:"descendant",ANCESTOR:"ancestor",SELF:"self"},o=2,s=4;function l(e,t,i){a.Group.call(this);var n=new a.Sector({z2:o});n.seriesIndex=t.seriesIndex;var r=new a.Text({z2:s,silent:e.getModel("label").get("silent")});function l(){r.ignore=r.hoverIgnore}function c(){r.ignore=r.normalIgnore}this.add(n),this.add(r),this.updateData(!0,e,"normal",t,i),this.on("emphasis",l).on("normal",c).on("mouseover",l).on("mouseout",c)}var c=l.prototype;c.updateData=function(e,t,i,r,o){this.node=t,t.piece=this,r=r||this._seriesModel,o=o||this._ecModel;var s=this.childAt(0);s.dataIndex=t.dataIndex;var l=t.getModel(),c=t.getLayout(),u=n.extend({},c);u.label=null;var f=d(t,r,o);p(t,r,f);var h,m=l.getModel("itemStyle").getItemStyle();if("normal"===i)h=m;else{var g=l.getModel(i+".itemStyle").getItemStyle();h=n.merge(g,m)}h=n.defaults({lineJoin:"bevel",fill:h.fill||f},h),e?(s.setShape(u),s.shape.r=c.r0,a.updateProps(s,{shape:{r:c.r}},r,t.dataIndex),s.useStyle(h)):"object"===typeof h.fill&&h.fill.type||"object"===typeof s.style.fill&&s.style.fill.type?(a.updateProps(s,{shape:u},r),s.useStyle(h)):a.updateProps(s,{shape:u,style:h},r),this._updateLabel(r,f,i);var v=l.getShallow("cursor");if(v&&s.attr("cursor",v),e){var b=r.getShallow("highlightPolicy");this._initEvents(s,t,r,b)}this._seriesModel=r||this._seriesModel,this._ecModel=o||this._ecModel,a.setHoverStyle(this)},c.onEmphasis=function(e){var t=this;this.node.hostTree.root.eachNode((function(i){i.piece&&(t.node===i?i.piece.updateData(!1,i,"emphasis"):h(i,t.node,e)?i.piece.childAt(0).trigger("highlight"):e!==r.NONE&&i.piece.childAt(0).trigger("downplay"))}))},c.onNormal=function(){this.node.hostTree.root.eachNode((function(e){e.piece&&e.piece.updateData(!1,e,"normal")}))},c.onHighlight=function(){this.updateData(!1,this.node,"highlight")},c.onDownplay=function(){this.updateData(!1,this.node,"downplay")},c._updateLabel=function(e,t,i){var r=this.node.getModel(),o=r.getModel("label"),s="normal"===i||"emphasis"===i?o:r.getModel(i+".label"),l=r.getModel("emphasis.label"),c=s.get("formatter"),u=c?i:"normal",d=n.retrieve(e.getFormattedLabel(this.node.dataIndex,u,null,null,"label"),this.node.name);!1===k("show")&&(d="");var f=this.node.getLayout(),h=s.get("minAngle");null==h&&(h=o.get("minAngle")),h=h/180*Math.PI;var p=f.endAngle-f.startAngle;null!=h&&Math.abs(p)<h&&(d="");var m=this.childAt(1);a.setLabelStyle(m.style,m.hoverStyle||{},o,l,{defaultText:s.getShallow("show")?d:null,autoColor:t,useInsideStyle:!0});var g,v=(f.startAngle+f.endAngle)/2,b=Math.cos(v),y=Math.sin(v),w=k("position"),_=k("distance")||0,I=k("align");"outside"===w?(g=f.r+_,I=v>Math.PI/2?"right":"left"):I&&"center"!==I?"left"===I?(g=f.r0+_,v>Math.PI/2&&(I="right")):"right"===I&&(g=f.r-_,v>Math.PI/2&&(I="left")):(g=(f.r+f.r0)/2,I="center"),m.attr("style",{text:d,textAlign:I,textVerticalAlign:k("verticalAlign")||"middle",opacity:k("opacity")});var x=g*b+f.cx,S=g*y+f.cy;m.attr("position",[x,S]);var T=k("rotate"),C=0;function k(e){var t=s.get(e);return null==t?o.get(e):t}"radial"===T?(C=-v,C<-Math.PI/2&&(C+=Math.PI)):"tangential"===T?(C=Math.PI/2-v,C>Math.PI/2?C-=Math.PI:C<-Math.PI/2&&(C+=Math.PI)):"number"===typeof T&&(C=T*Math.PI/180),m.attr("rotation",C)},c._initEvents=function(e,t,i,n){e.off("mouseover").off("mouseout").off("emphasis").off("normal");var a=this,r=function(){a.onEmphasis(n)},o=function(){a.onNormal()},s=function(){a.onDownplay()},l=function(){a.onHighlight()};i.isAnimationEnabled()&&e.on("mouseover",r).on("mouseout",o).on("emphasis",r).on("normal",o).on("downplay",s).on("highlight",l)},n.inherits(l,a.Group);var u=l;function d(e,t,i){var n=e.getVisual("color"),a=e.getVisual("visualMeta");a&&0!==a.length||(n=null);var r=e.getModel("itemStyle").get("color");if(r)return r;if(n)return n;if(0===e.depth)return i.option.color[0];var o=i.option.color.length;return r=i.option.color[f(e)%o],r}function f(e){var t=e;while(t.depth>1)t=t.parentNode;var i=e.getAncestors()[0];return n.indexOf(i.children,t)}function h(e,t,i){return i!==r.NONE&&(i===r.SELF?e===t:i===r.ANCESTOR?e===t||e.isAncestorOf(t):e===t||e.isDescendantOf(t))}function p(e,t,i){var n=t.getData();n.setItemVisual(e.dataIndex,"color",i)}e.exports=u},"4e5a":function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-star",use:"icon-star-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-star"><path d="M70.66 4.328l14.01 29.693c1.088 2.29 3.177 3.882 5.603 4.25l31.347 4.76c6.087.926 8.528 8.756 4.117 13.247L103.05 79.395c-1.75 1.78-2.544 4.352-2.132 6.867l5.352 32.641c1.043 6.337-5.33 11.182-10.778 8.19l-28.039-15.409a7.13 7.13 0 0 0-6.91 0l-28.039 15.41c-5.448 2.99-11.821-1.854-10.777-8.19l5.352-32.642c.415-2.515-.387-5.088-2.136-6.867L2.264 56.278C-2.146 51.787.286 43.957 6.38 43.031l31.343-4.76c2.419-.368 4.51-1.96 5.595-4.25L57.334 4.328c2.728-5.77 10.605-5.77 13.325 0z" /></symbol>'});o.a.add(s);t["default"]=s},"4e83":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("base-model",{attrs:{config:e.model_cfg}},[i("template",{slot:"dialog-body"},[i("el-form",{ref:"DictionaryTypeConfigForm",attrs:{model:e.form,rules:e.rules,"label-width":"120px",size:"small"}},[i("el-form-item",{attrs:{label:"Code: ",prop:"Code"}},[i("el-input",{model:{value:e.form.Code,callback:function(t){e.$set(e.form,"Code",t)},expression:"form.Code"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"KeyName: ",prop:"Code"}},[i("el-input",{model:{value:e.form.KeyName,callback:function(t){e.$set(e.form,"KeyName",t)},expression:"form.KeyName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Description: ",prop:"Code"}},[i("el-input",{model:{value:e.form.Description,callback:function(t){e.$set(e.form,"Description",t)},expression:"form.Description"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Value: ",prop:"Code"}},[i("el-input",{model:{value:e.form.Value,callback:function(t){e.$set(e.form,"Value",t)},expression:"form.Value"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"ValueCN: ",prop:"Code"}},[i("el-input",{model:{value:e.form.ValueCN,callback:function(t){e.$set(e.form,"ValueCN",t)},expression:"form.ValueCN"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Is Enable: "}},[i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},model:{value:e.form.IsEnable,callback:function(t){e.$set(e.form,"IsEnable",t)},expression:"form.IsEnable"}})],1)],1)],1),e._v(" "),i("template",{slot:"dialog-footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.handleCancle}},[e._v("Cancel")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleSave}},[e._v("Save")])],1)],2)},a=[],r=i("db72"),o=(i("ac6a"),i("456d"),i("e56e")),s=i("7eeb"),l=function(){return{Id:"",Code:"",KeyName:"",Description:"",Value:"",ValueCN:"",IsEnable:!1,IsConfig:!0}},c={name:"AnonymizationFrom",components:{BaseModel:s["default"]},data:function(){return{btnLoading:!1,form:l(),rules:{Code:[{required:!0,message:"Please specify",trigger:"blur"}]},model_cfg:{visible:!1,showClose:!0,width:"600px",title:""}}},mounted:function(){},methods:{openDialog:function(e,t){this.model_cfg.visible=!0,this.model_cfg.title=e,Object.keys(t).length?this.form=Object(r["a"])({},t):this.form=l()},handleSave:function(){var e=this;this.$refs.DictionaryTypeConfigForm.validate((function(t){t&&(e.btnLoading=!0,Object(o["c"])(e.form).then((function(t){e.btnLoading=!1,e.$message.success("Saved successfully!"),e.model_cfg.visible=!1,e.$emit("getList")})).catch((function(){e.btnLoading=!1})))}))},handleCancle:function(){this.model_cfg.visible=!1}}},u=c,d=i("2877"),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},"4e9f":function(e,t,i){var n=i("22d1"),a=i("29a8"),r=i("2145"),o=a.toolbox.saveAsImage;function s(e){this.model=e}s.defaultOption={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:o.title,type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:o.lang.slice()},s.prototype.unusable=!n.canvasSupported;var l=s.prototype;l.onclick=function(e,t){var i=this.model,a=i.get("name")||e.get("title.0.text")||"echarts",r="svg"===t.getZr().painter.getType(),o=r?"svg":i.get("type",!0)||"png",s=t.getConnectedDataURL({type:o,backgroundColor:i.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")});if("function"!==typeof MouseEvent||n.browser.ie||n.browser.edge)if(window.navigator.msSaveOrOpenBlob){var l=atob(s.split(",")[1]),c=l.length,u=new Uint8Array(c);while(c--)u[c]=l.charCodeAt(c);var d=new Blob([u]);window.navigator.msSaveOrOpenBlob(d,a+"."+o)}else{var f=i.get("lang"),h='<body style="margin:0;"><img src="'+s+'" style="max-width:100%;" title="'+(f&&f[0]||"")+'" /></body>',p=window.open();p.document.write(h)}else{var m=document.createElement("a");m.download=a+"."+o,m.target="_blank",m.href=s;var g=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});m.dispatchEvent(g)}},r.register("saveAsImage",s);var c=s;e.exports=c},"4ebb":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"non-dicom-wrapper"},[i("div",{staticStyle:{"text-align":"right"}},[e.allowAddOrEdit?i("el-button",{attrs:{icon:"el-icon-plus",type:"primary",size:"small"},nativeOn:{click:function(t){return t.preventDefault(),e.handleAdd(t)}}},[e._v("\n "+e._s(e.$t("common:button:new"))+"\n ")]):e._e()],1),e._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.nonDicomStudyList}},[i("el-table-column",{attrs:{prop:"CodeView",label:e.$t("trials:uploadNonDicoms:table:studyId")}}),e._v(" "),i("el-table-column",{attrs:{prop:"Modality",label:e.$t("trials:uploadNonDicoms:table:modality")}}),e._v(" "),i("el-table-column",{attrs:{prop:"BodyPart",label:e.$t("trials:uploadNonDicoms:table:bodyPart")}}),e._v(" "),i("el-table-column",{attrs:{prop:"FileCount",label:e.$t("trials:uploadNonDicoms:table:files")},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.FileCount?i("el-popover",{attrs:{trigger:"click",placement:"bottom"}},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.filesLoading,expression:"filesLoading"}],attrs:{data:e.nonDicomfilesList,height:"300",size:"small"}},[i("el-table-column",{attrs:{prop:"FileName",label:e.$t("trials:uploadNonDicoms:table:fileName"),width:"200"}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"120"},scopedSlots:e._u([{key:"default",fn:function(n){return[i("el-button",{attrs:{icon:"el-icon-view",circle:"",title:e.$t("trials:uploadNonDicoms:action:preview"),size:"small"},nativeOn:{click:function(i){i.preventDefault(),"MP4"===n.row.type?e.handleLookVideo(t.row):e.handlePreviewImg(n.row)}}}),e._v(" "),1*e.data.SubmitState<2||2===e.data.SubmitState&&e.data.IsQCConfirmedReupload?i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:crc-upload:upload"],expression:"['trials:trials-panel:visit:crc-upload:upload']"}],attrs:{icon:"el-icon-delete",circle:"",title:e.$t("trials:uploadNonDicoms:action:delete"),size:"small"},nativeOn:{click:function(i){i.preventDefault(),"MP4"===n.row.type?e.hadnleDeleteVideo(t.row):e.handleDeleteFile(n.row.Id)}}}):e._e()]}}],null,!0)})],1),e._v(" "),i("div",{staticClass:"name-wrapper",attrs:{slot:"reference"},slot:"reference"},[i("el-button",{attrs:{type:"text"},nativeOn:{click:function(i){return i.preventDefault(),e.handleGetFilesList(t.row)}}},[e._v("\n "+e._s(t.row.FileCount)+"\n ")])],1)],1):i("span",[e._v(e._s(t.row.FileCount))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ImageDate",label:e.$t("trials:uploadNonDicoms:table:studyDate")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.moment(t.row.ImageDate).format("YYYY-MM-DD"))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"UpdateTime",label:e.$t("trials:uploadNonDicoms:table:updateTime")}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action"),"min-width":"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.allowAddOrEdit?i("el-button",{attrs:{icon:"el-icon-upload2",circle:"",title:e.$t("trials:uploadNonDicoms:action:upload")},nativeOn:{click:function(i){return i.preventDefault(),e.handleUpload(t.row)}}}):e._e(),e._v(" "),e.allowAddOrEdit?i("el-button",{attrs:{icon:"el-icon-edit-outline",circle:"",title:e.$t("trials:uploadNonDicoms:action:edit")},nativeOn:{click:function(i){return i.preventDefault(),e.handleEdit(t.row)}}}):e._e(),e._v(" "),1*e.data.SubmitState<2||2===e.data.SubmitState&&e.data.IsQCConfirmedReupload?i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:crc-upload:upload"],expression:"['trials:trials-panel:visit:crc-upload:upload']"}],attrs:{icon:"el-icon-delete",circle:"",title:e.$t("trials:uploadNonDicoms:action:delete")},nativeOn:{click:function(i){return i.preventDefault(),e.handleDelete(t.row)}}}):e._e()]}}])})],1),e._v(" "),e.dialogVisible?i("el-dialog",{attrs:{visible:e.dialogVisible,"close-on-click-modal":!1,title:e.title,width:"600px","append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("el-form",{ref:"editForm",attrs:{model:e.form,"label-width":"100px"}},[i("div",{staticClass:"base-dialog-body"},[e.form.CodeView?i("el-form-item",{attrs:{label:e.$t("trials:uploadNonDicoms:table:studyId")}},[i("el-input",{attrs:{disabled:""},model:{value:e.form.CodeView,callback:function(t){e.$set(e.form,"CodeView",t)},expression:"form.CodeView"}})],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:uploadNonDicoms:table:modality"),prop:"Modality",rules:[{required:!0,message:e.$t("common:ruleMessage:specify"),trigger:"blur"}]}},[i("el-radio-group",{model:{value:e.form.Modality,callback:function(t){e.$set(e.form,"Modality",t)},expression:"form.Modality"}},e._l(e.trialModalitys,(function(t){return""!==t?i("el-radio",{key:t,staticStyle:{"margin-bottom":"15px"},attrs:{label:t}}):e._e()})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:uploadNonDicoms:table:bodyPart"),prop:"BodyParts",rules:[{required:!0,message:e.$t("common:ruleMessage:specify"),trigger:"blur"}]}},[i("el-checkbox-group",{model:{value:e.form.BodyParts,callback:function(t){e.$set(e.form,"BodyParts",t)},expression:"form.BodyParts"}},e._l(e.trialBodyPartTypes,(function(e){return i("el-checkbox",{key:e,attrs:{label:e}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:uploadNonDicoms:table:studyDate"),prop:"ImageDate",rules:[{required:!0,message:e.$t("common:ruleMessage:specify"),trigger:"blur"}]}},[i("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date","picker-options":e.pickerOption,"value-format":"yyyy-MM-dd",format:"yyyy-MM-dd"},model:{value:e.form.ImageDate,callback:function(t){e.$set(e.form,"ImageDate",t)},expression:"form.ImageDate"}})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{size:"small",type:"primary",disabled:e.btnLoading},on:{click:function(t){e.dialogVisible=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])],1):e._e(),e._v(" "),e.uploadVisible?i("el-dialog",{attrs:{visible:e.uploadVisible,"close-on-click-modal":!1,title:e.$t("trials:uploadNonDicoms:dialogTitle:upload"),width:"600px","append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.uploadVisible=t}}},[i("form",{ref:"uploadForm",attrs:{id:"inputForm"}},[i("el-divider",{attrs:{"content-position":"left"}},[e._v(e._s(e.$t("trials:uploadNonDicoms:label:fileType")))]),e._v(" "),i("div",{staticClass:"form-group"},[i("div",{staticClass:"upload"},[i("input",{staticClass:"select-file",attrs:{multiple:"multiple",webkitdirectory:"",directory:"",accept:"*/*",type:"file",name:"uploadFolder",title:""},on:{change:function(t){return e.beginScanFiles(t)}}}),e._v(" "),i("div",{staticClass:"btn-select"},[e._v("\n "+e._s(e.$t("trials:uploadNonDicoms:button:selectFolder"))+"\n ")])]),e._v(" "),i("div",{staticClass:"upload"},[i("input",{staticClass:"select-file",attrs:{multiple:"",accept:e.faccept.join(","),type:"file",name:"uploadFile",title:""},on:{change:function(t){return e.beginScanFiles(t)}}}),e._v(" "),i("div",{staticClass:"btn-select"},[e._v("\n "+e._s(e.$t("trials:uploadNonDicoms:button:select"))+"\n ")])])])],1),e._v(" "),i("el-table",{ref:"filesTable",staticClass:"dicomFiles-table",attrs:{data:e.fileList,height:"300"},on:{"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"name",label:e.$t("trials:uploadNonDicoms:table:fileName"),"min-width":"180"}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action")},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{size:"mini",icon:"el-icon-delete",circle:"",title:e.$t("trials:crcUpload:action:delete")},on:{click:function(i){return e.handleRemoveFile(t.row)}}})]}}],null,!1,2505973250)})],1),e._v(" "),i("div",{staticStyle:{"text-align":"right",padding:"10px 0px"}},[i("el-button",{attrs:{size:"small",type:"primary",disabled:0==e.selectArr.length,loading:e.btnLoading},on:{click:e.beginUpload}},[e._v("\n "+e._s(e.$t("trials:uploadNonDicoms:action:upload"))+"\n ")])],1)],1):e._e(),e._v(" "),e.uploadVideoVisible?i("el-dialog",{attrs:{visible:e.uploadVideoVisible,"upload-video-visible":"","close-on-click-modal":!1,title:e.$t("trials:uploadNonDicoms:title:xfuploadvideo"),width:"480px","append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.uploadVideoVisible=t}}},[i("upload-videos",{on:{uploadOver:e.uploadOver}})],1):e._e(),e._v(" "),e.lookVideoVisible?i("el-dialog",{attrs:{visible:e.lookVideoVisible,"upload-video-visible":"","close-on-click-modal":!1,title:e.$t("trials:uploadNonDicoms:title:xflookvideo"),width:"480px","append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.lookVideoVisible=t}}},[i("div",{staticStyle:{display:"flex","justify-content":"center"}},[e.lookVideoVisible?i("video",{attrs:{id:"video",controls:"",crossorigin:"anonymous",width:"400",height:"270"}},[i("source",{attrs:{src:e.currentRow.VideoUrl,type:"video/mp4"}})]):e._e()]),e._v(" "),i("div",{staticStyle:{"text-align":"right",padding:"10px 0px"}},[i("el-button",{attrs:{size:"small"},on:{click:function(t){e.lookVideoVisible=!1}}},[e._v("\n 关闭\n ")])],1)]):e._e(),e._v(" "),e.previewImgVisible?i("el-dialog",{attrs:{visible:e.previewImgVisible,title:e.$t("trials:uploadNonDicoms:dialogTitle:preview"),"append-to-body":"",width:"565px"},on:{"update:visible":function(t){e.previewImgVisible=t}}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.imageLoading,expression:"imageLoading"}],staticClass:"base-modal-body",staticStyle:{border:"2px solid #ccc",padding:"10px"}},[i("el-image",{staticStyle:{height:"500px",width:"500px"},attrs:{src:"/api"+e.imgUrl,fit:"fit"},on:{error:function(t){e.imageLoading=!1},load:function(t){e.imageLoading=!1}}})],1)]):e._e()],1)},a=[],r=(i("a481"),i("ac6a"),i("7f7f"),i("20d6"),i("db72")),o=(i("28a5"),i("3e42")),s=i("5f87"),l=i("3726"),c=i("c1df"),u=i.n(c),d={name:"UploadNonDicomFiles",components:{uploadVideos:l["default"]},props:{bodyParts:{type:String,default:""},modalities:{type:String,default:""},data:{type:Object,default:function(){return{}}},subjectVisitId:{type:String,required:!0},allowAddOrEdit:{type:Boolean,default:!1}},data:function(){return{lookVideoVisible:!1,nonDicomStudyList:[],dialogVisible:!1,loading:!1,trialBodyPartTypes:[],trialModalitys:[],btnLoading:!1,title:"",form:{CodeView:"",Id:"",BodyPart:"",BodyParts:[],Modality:"",ImageDate:""},pickerOption:{disabledDate:function(e){return e.getTime()>Date.now()}},uploadVisible:!1,fileList:[],selectArr:[],faccept:[".jpg",".jpeg",".png",".bmp"],fCount:0,currentRow:{},filesLoading:!1,nonDicomfilesList:[],previewImgVisible:!1,imageLoading:!1,fileUrl:"",type:"",uploadVideoVisible:!1,trialId:this.$route.query.trialId,moment:u.a}},mounted:function(){this.getNoneDicomList(),this.trialBodyPartTypes=this.bodyParts?this.bodyParts.split("|"):[],this.trialModalitys=this.modalities?this.modalities.split("|"):[]},methods:{getNoneDicomList:function(){var e=this;this.loading=!0,Object(o["xc"])(this.subjectVisitId).then((function(t){e.nonDicomStudyList=t.Result.map((function(e){return e.VideoObjectName&&(e.FileCount+=1),e})),e.loading=!1})).catch((function(){e.loading=!1}))},handleAdd:function(){this.title=this.$t("trials:uploadNonDicoms:dialogTitle:add"),this.form.Id="",this.form.CodeView="",this.form.BodyPart="",this.form.Modality="",this.form.ImageDate="",this.form.BodyParts=[],this.dialogVisible=!0},handleEdit:function(e){this.title=this.$t("trials:uploadNonDicoms:dialogTitle:edit");var t=Object(r["a"])({},e),i=t.CodeView,n=t.Id,a=t.BodyPart,o=t.Modality,s=t.ImageDate;this.form.CodeView=i,this.form.Id=n,this.form.BodyPart=a,this.form.Modality=o,this.form.ImageDate=s,this.form.BodyParts=this.form.BodyPart.split(", "),this.dialogVisible=!0},handleSave:function(){var e=this;this.$refs.editForm.validate((function(t){t&&(e.btnLoading=!0,e.form.BodyPart=e.form.BodyParts.join(", "),e.form.TrialId=e.trialId,e.form.SiteId=e.data.SiteId,e.form.SubjectId=e.data.SubjectId,e.form.SubjectVisitId=e.subjectVisitId,Object(o["k"])(e.form).then((function(t){e.btnLoading=!1,e.$refs.editForm.resetFields(),e.getNoneDicomList(),e.$emit("getList"),e.$message.success(e.$t("common:message:savedSuccessfully")),e.dialogVisible=!1})).catch((function(){e.btnLoading=!1})))}))},handleDelete:function(e){var t=this,i="";i=e.FileCount>0?this.$t("trials:uploadNonDicoms:message:deleteStudyAndFiles"):this.$t("trials:uploadNonDicoms:message:delete"),this.$confirm(i,{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.loading=!0,Object(o["gb"])(t.trialId,t.subjectVisitId,e.Id).then((function(i){t.loading=!1,i.IsSuccess&&(t.$emit("getList"),t.nonDicomStudyList.splice(t.nonDicomStudyList.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success(t.$t("trials:uploadNonDicoms:message:deletedSuccessfully")))})).catch((function(){t.loading=!1}))})).catch((function(){}))},handleUpload:function(e){this.fileList=[],this.uploadVisible=!0,this.fCount=0,this.currentRow=Object(r["a"])({},e)},handleLookVideo:function(e){this.currentRow=Object(r["a"])({},e),this.lookVideoVisible=!0},handleUploadVideo:function(e){this.uploadVideoVisible=!0,this.currentRow=Object(r["a"])({},e)},hadnleDeleteVideo:function(e){var t=this;this.$confirm(this.$t("trials:uploadNonDicoms:message:delete"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.filesLoading=!0,t.loading=!0;var i=Object.assign({},e);i.VideoName="",i.VideoObjectName="",i.VideoUrl="",i.UploadVideoTime="",Object(o["k"])(i).then((function(e){t.filesLoading=!1,t.loading=!1,t.nonDicomfilesList.pop(),t.$emit("getList"),t.$message.success(t.$t("trials:uploadNonDicoms:message:deletedSuccessfully")),t.getNoneDicomList()})).catch((function(){t.filesLoading=!1,t.loading=!1}))}))},uploadOver:function(e,t,i){var n=this;if(e){var a=Object.assign({},this.currentRow);a.VideoName=i,a.VideoObjectName=t.name,a.VideoUrl=t.url,a.UploadVideoTime=this.parseTime(new Date),Object(o["k"])(a).then((function(e){n.getNoneDicomList(),n.uploadVideoVisible=!1,n.$emit("getList"),n.$message.success(n.$t("components:uploadvideo:message:xf1"))})).catch((function(){n.uploadVideoVisible=!1}))}},beginScanFiles:function(e){var t=this,i=e.target.files,n=[];i.forEach((function(e){var i=e.name.substring(e.name.lastIndexOf(".")).toLocaleLowerCase();-1!==t.faccept.indexOf(i)&&t.fileList.findIndex((function(t){return t.name===e.name}))>-1&&n.push(e.name)}));var a=this;if(n.length>0){var r=this.$createElement,o=this.$t("trials:uploadNonDicoms:message:exsitSameFile").replace("xxx",n.join(", "));this.$msgbox({message:r("div",{style:"maxHeight:300px;overflow: auto;"},[r("p",null,o),r("p",null,this.$t("trials:uploadNonDicoms:message:isContinueUpload"))]),type:"warning",showCancelButton:!0}).then((function(){a.pendingUploadQuene(i)})).catch((function(){a.resetUploadForm()}))}else a.pendingUploadQuene(i)},pendingUploadQuene:function(e){for(var t=0;t<e.length;++t){var i=e[t].name,n=i.substring(i.lastIndexOf(".")).toLocaleLowerCase();-1!==this.faccept.indexOf(n)&&(e[t].id="".concat(e[t].lastModified).concat(e[t].name),this.fileList.push(e[t]))}this.resetUploadForm()},resetUploadForm:function(){var e=this;this.$nextTick((function(){e.$refs.uploadForm.reset()}))},handlePreviewImg:function(e){this.imgUrl=e.FullFilePath,this.previewImgVisible=!0,this.imageLoading=!0},beginScanFolder:function(e){var t=e.target.files;this.fCount+=t.Count;for(var i=0;i<t.length;++i){var n=t[i].name,a=n.substring(n.lastIndexOf(".")).toLocaleLowerCase();-1!==this.faccept.indexOf(a)&&(t[i].id="".concat(t[i].lastModified).concat(t[i].name),this.fileList.push(t[i]))}},handleRemoveFile:function(e){var t=this;this.$confirm(this.$t("trials:uploadNonDicoms:message:delete"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.fileList.splice(t.fileList.findIndex((function(t){return t.id===e.id})),1)})).catch((function(){}))},handleSelectionChange:function(e){this.selectArr=e},beginUpload:function(){var e=this;console.log(this.selectArr);var t=1073741824,i=0;if(this.selectArr.forEach((function(e){i+=e.size})),i/t>1)this.$message.error(this.$t("trials:uploadNonDicoms:message:uploadSize"));else{for(var n=new FormData,a=0;a<this.selectArr.length;++a)n.append("file",this.selectArr[a]);Object(o["se"])({subjectVisitId:this.subjectVisitId,isDicom:!1}).then((function(t){e.btnLoading=!0,Object(o["zf"])(e.trialId,e.subjectVisitId,e.currentRow.Id,n,t.Result).then((function(t){e.btnLoading=!1,e.uploadVisible=!1,e.getNoneDicomList(),e.$emit("getList"),e.$message.success(e.$t("trials:uploadNonDicoms:message:uploadedSuccessfully"))})).catch((function(){e.btnLoading=!1}))}))}},handleGetFilesList:function(e){var t=this;this.filesLoading=!0,Object(o["wc"])(e.Id).then((function(i){t.nonDicomfilesList=i.Result,e.VideoName&&t.nonDicomfilesList.push({FileName:e.VideoName,type:"MP4"}),t.filesLoading=!1})).catch((function(){t.filesLoading=!1}))},handleDeleteFile:function(e){var t=this;this.$confirm(this.$t("trials:uploadNonDicoms:message:delete"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.filesLoading=!0,t.loading=!0,Object(o["hb"])(t.trialId,t.subjectVisitId,e).then((function(i){t.filesLoading=!1,t.loading=!1,i.IsSuccess&&(t.$emit("getList"),t.nonDicomfilesList.splice(t.nonDicomfilesList.findIndex((function(t){return t.Id===e})),1),t.$message.success(t.$t("trials:uploadNonDicoms:message:deletedSuccessfully")),t.getNoneDicomList())})).catch((function(){t.filesLoading=!1,t.loading=!1}))})).catch((function(){}))},handlePreview:function(e){window.open(e.FullFilePath,"_blank")},handlePreviewAllVisitFiles:function(){var e=Object(s["a"])(),t=this.$router.resolve({path:"/showNoneDicoms?subjectVisitId=".concat(this.subjectVisitId,"&TokenKey=").concat(e)});window.open(t.href,"_blank")},handlePreviewAllFiles:function(e){this.currentRow=Object(r["a"])({},e);var t=Object(s["a"])(),i=this.$router.resolve({path:"/showNoneDicoms?subjectVisitId=".concat(this.subjectVisitId,"&studyId=").concat(e.Id,"&TokenKey=").concat(t)});window.open(i.href,"_blank")}}},f=d,h=(i("2c7e"),i("2877")),p=Object(h["a"])(f,n,a,!1,null,"9317c9ce",null);t["default"]=p.exports},"4ed2":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"canvas",staticClass:"cornerstone-element",staticStyle:{position:"relative"},attrs:{id:"canvas","element-loading-text":"Loading...","element-loading-background":"rgba(0, 0, 0, 0.8)"},on:{contextmenu:function(t){return t.preventDefault(),e.onContextmenu(t)},mousemove:e.sliderMousemove,mouseup:e.sliderMouseup}},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.dicomInfo.series,expression:"dicomInfo.series"}],staticClass:"info-series"},[i("h2",{staticStyle:{color:"#f44336",padding:"5px 0px",margin:"0"}},[e._v(e._s(e.subjectCode)+" "+e._s(e.stack.taskBlindName))]),e._v(" "),i("div",[e._v("Series: #"+e._s(e.dicomInfo.series))]),e._v(" "),i("div",[e._v("Image: #"+e._s(e.dicomInfo.frame))]),e._v(" "),i("div",[e._v(e._s(e.dicomInfo.modality))])]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:e.dicomInfo.series,expression:"dicomInfo.series"}],staticClass:"info-image"},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.mousePosition.mo,expression:"mousePosition.mo"}]},[e._v("\n Pos: "+e._s(parseInt(e.mousePosition.x))+", "+e._s(parseInt(e.mousePosition.y))+"\n ")]),e._v(" "),"CT"!==e.dicomInfo.modality&&"DR"!==e.dicomInfo.modality&&"CR"!==e.dicomInfo.modality||!e.mousePosition.mo?"PT"===e.dicomInfo.modality&&e.mousePosition.suv?i("div",[e._v("\n Density: "+e._s(e.mousePosition.suv.toFixed(e.digitPlaces))+" SUV\n ")]):e.mousePosition.mo?i("div",[e._v("\n Density: "+e._s(e.mousePosition.mo)+"\n ")]):e._e():i("div",[e._v("\n Density: "+e._s(e.mousePosition.mo)+" HU\n ")]),e._v(" "),i("div",[e._v("\n W*H: "+e._s(e.dicomInfo.size)+"\n ")]),e._v(" "),i("div",[e._v("Zoom: "+e._s(e.dicomInfo.zoom))])]),e._v(" "),i("div",{staticClass:"info-subject"},[i("div",[e._v(e._s(e.stack.description))])]),e._v(" "),i("div",{ref:"sliderBox",staticClass:"my_slider_box",staticStyle:{position:"absolute",right:"1px",height:"calc(100% - 100px)",transform:"translateY(-50%)",top:"calc(50% - 30px)",width:"10px",background:"#333",cursor:"pointer"}},[i("div",{staticStyle:{"z-index":"10",background:"#9e9e9e",height:"20px",width:"100%",position:"absolute",top:"0",cursor:"move"},style:{top:e.height+"%"},on:{mousedown:function(t){return e.sliderMousedown(t)}}})]),e._v(" "),i("div",{staticStyle:{position:"absolute",left:"50%",top:"15px",color:"#f44336"}},[e._v("\n "+e._s(e.markers.top)+"\n ")]),e._v(" "),i("div",{staticStyle:{position:"absolute",top:"50%",right:"15px",color:"#f44336"}},[e._v("\n "+e._s(e.markers.right)+"\n ")]),e._v(" "),i("div",{staticStyle:{position:"absolute",left:"50%",bottom:"15px",color:"#f44336"}},[e._v("\n "+e._s(e.markers.bottom)+"\n ")]),e._v(" "),i("div",{staticStyle:{position:"absolute",top:"50%",left:"15px",color:"#f44336"}},[e._v("\n "+e._s(e.markers.left)+"\n ")]),e._v(" "),i("div",{staticClass:"info-instance"},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.dicomInfo.location,expression:"dicomInfo.location"}]},[e._v("Location: "+e._s(e.dicomInfo.location))]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:e.dicomInfo.thick,expression:"dicomInfo.thick"}]},[e._v("Slice Thickness: "+e._s(e.dicomInfo.thick)+"mm")]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:e.dicomInfo.wwwc,expression:"dicomInfo.wwwc"}]},[e._v("WW/WL: "+e._s(e.dicomInfo.wwwc))])])])},a=[],r=i("75fc"),o=(i("7f7f"),i("5df3"),i("1c4c"),i("6762"),i("2fdb"),i("ac6a"),i("28a5"),i("20d6"),i("84b4"),i("db72")),s=(i("c5f6"),i("f5c4")),l=i("9b92"),c=i("2b0e"),u=i("2f62"),d=i("e5d9"),f=i("81d9"),h=i("6e43"),p=i("e6ad"),m=i("c8b5"),g=i.n(m),v=i("365d"),b=i("ac6b"),y=i("1529"),w=i("0780"),_=i("4a2a"),I=i("d22b"),x=i("c41f");c["default"].use(d["a"]);var S=p["import"]("util/scrollToIndex");p["external"].cornerstone=f,p["external"].Hammer=g.a,p["external"].cornerstoneMath=h,p["toolStyle"].setToolWidth(1),p["toolColors"].setToolColor("rgb(255, 0, 0)"),p["toolColors"].setActiveColor("rgb(0, 255, 0)"),p["init"]();var T={name:"CustomizeDicomCanvas",props:{isScrollSync:{type:Boolean,required:!0},canvasIndex:{type:Number,required:!0}},data:function(){return{loading:!1,canvas:{},index:0,height:0,cornerstoneStyle:{},stack:{studyId:"",seriesId:"",instanceId:"",seriesNumber:"",imageIds:[],currentImageIdIndex:0,firstImageLoading:!1,visitTaskId:"",taskBlindName:""},dicomInfo:{hospital:"",pid:"",name:"",sex:"",age:"",acc:"",modality:"",time:"",series:"",frame:"",size:"",pixel:0,thick:0,wwwc:"",zoom:0,fps:5},toolState:{initialized:!1,activeTool:"none",dicomInfoVisible:!1,clipPlaying:!1,viewportInvert:!1},loadImagePromise:null,AnnotationSync:null,allROIToolData:{},type:"",series:"",ToolStateManager:null,renderedMeasured:[],measuredTools:["Length","Bidirectional","ArrowAnnotate"],measureData:[],selectedLesion:null,activeTool:0,activeToolName:"",isCurrentTask:!1,isBaseline:!1,readingTaskState:2,image:null,CriterionType:0,digitPlaces:2,sliderInfo:{oldB:null,oldM:null,isMove:!1},oldPosition:{},subjectCode:"",isMsg:!1,mousePosition:{x:"",y:"",mo:""},orientationMarkers:[],originalMarkers:[],imageId:"",markers:{top:"",right:"",bottom:"",left:""}}},computed:Object(o["a"])({},Object(u["b"])(["visitTaskList"])),mounted:function(){var e=this;this.subjectCode=this.$router.currentRoute.query.subjectCode,document.addEventListener("mouseup",(function(){e.sliderMouseup()}));var t=localStorage.getItem("digitPlaces");this.digitPlaces=t?Number(t):this.digitPlaces,this.type=this.$router.currentRoute.query.type?this.$router.currentRoute.query.type:"",this.CriterionType=parseInt(localStorage.getItem("CriterionType")),this.canvas=this.$refs.canvas,this.canvas.addEventListener("cornerstonenewimage",this.onNewImage),this.canvas.addEventListener("cornerstoneimagerendered",this.onImageRendered),this.canvas.addEventListener("cornerstoneimageloaded",this.onImageLoaded),this.canvas.addEventListener("cornerstonetoolsclipstopped",this.onClipStopped),this.canvas.addEventListener("cornerstonetoolsmeasurementcompleted",this.onMeasurementcompleted),this.canvas.addEventListener("cornerstonetoolsmeasurementmodified",this.onMeasurementmodified),this.canvas.addEventListener("cornerstonetoolsmouseup",this.mouseUp),this.canvas.addEventListener("cornerstonetoolsmousedown",this.mouseDown),this.canvas.addEventListener("cornerstonetoolsmouseclick",this.mouseClick),this.canvas.addEventListener("cornerstonetoolsstackscroll",this.stackScrollCallback),this.canvas.addEventListener("cornerstonetoolsmousemove",this.mouseMove),this.canvas.addEventListener("mouseleave",(function(){e.mousePosition.mo=""})),l["a"].$on("setReadingState",(function(t){2===t&&(e.activeTool=0),e.readingTaskState=t,f["updateImage"](e.canvas,!0)}))},beforeDestroy:function(){l["a"].$off("setReadingState")},methods:{reloadCanvas:function(){console.log("重新渲染"),f["resize"](this.canvas)},mouseMove:function(e){var t=e.detail,i=t.element,n=t.image,a=t.currentPoints,r=Math.round(a.image.x),o=Math.round(a.image.y),s={};r>=0&&o>=0&&r<n.columns&&o<n.rows&&(s.x=r,s.y=o,n.color?s.storedPixels=this.getRGBPixels(i,r,o,1,1):(s.storedPixels=f["getStoredPixels"](i,r,o,1,1),s.sp=s.storedPixels[0],s.mo=s.sp*n.slope+n.intercept)),this.mousePosition.x=a.canvas.x,this.mousePosition.y=a.canvas.y,this.mousePosition.mo=s.mo},getRGBPixels:function(e,t,i,n,a){if(e){t=Math.round(t),i=Math.round(i);var r,o,s,l=f["getEnabledElement"](e),c=[],u=0,d=l.image.getPixelData();if(l.image.color)for(o=0;o<a;o++)for(s=0;s<n;s++){r=4*((o+i)*l.image.columns+(s+t));var h=d[r],p=d[r+1],m=d[r+2],g=d[r+3];c[u++]=h,c[u++]=p,c[u++]=m,c[u++]=g}return c}},sliderMousedown:function(e){var t=this.$refs["sliderBox"].clientHeight;this.sliderInfo.oldB=parseInt(e.srcElement.style.top)*t/100,this.sliderInfo.oldM=e.clientY,this.sliderInfo.isMove=!0},sliderMousemove:function(e){if(this.sliderInfo.isMove){var t=this.sliderInfo.oldB-(this.sliderInfo.oldM-e.clientY),i=this.$refs["sliderBox"].clientHeight;if(!(t<0)&&!(t>i)){var n=100*t/i,a=Math.trunc(this.stack.imageIds.length*this.height/100);this.height=n,this.stack.currentImageIdIndex!==a&&S(this.canvas,a)}}},sliderMouseup:function(e){this.sliderInfo.isMove=!1},getMeasureData:function(){var e=this,t=this.visitTaskList.findIndex((function(t){return t.VisitTaskId===e.stack.visitTaskId}));this.measureData=this.visitTaskList[t].MeasureData;var i=p["globalImageIdSpecificToolStateManager"],n=this.stack.imageIds[this.stack.currentImageIdIndex];i.clearImageIdToolState(n),f["updateImage"](this.canvas,!0)},onContextmenu:function(e){var t=this;if(this.isBaseline||this.readingTaskState>=2||10===this.CriterionType)return!1;var i=e.offsetX,n=e.offsetY,a=p["globalImageIdSpecificToolStateManager"],r=f["getEnabledElement"](this.canvas),o=r.image.imageId;this.measuredTools.map((function(r){var s=a.getImageIdToolState(o,r);if(s){var l=new(p["".concat(r,"Tool")]),c=s.data.findIndex((function(e){return l.pointNearTool(t.canvas,e,{x:i,y:n},"mouse")}));if(-1===c)return!1;var u=t.measureData.findIndex((function(e){return e.MeasureData&&e.MeasureData.data&&e.MeasureData.data.uuid===s.data[c].uuid})),d=null;return u>-1&&(d=t.measureData[u].RowId),!!d&&(t.selectedLesion=s.data[c],t.$contextmenu({items:[{label:"Split",divided:!0,onClick:function(){t.handleSplit()}}],event:e,x:e.clientX,y:e.clientY,customClass:"class-a",zIndex:3,minWidth:100}),!1)}}))},handleSplit:function(){var e=this,t=this.measureData.findIndex((function(t){return t.MeasureData&&t.MeasureData.data&&t.MeasureData.data.uuid===e.selectedLesion.uuid}));t>-1&&l["a"].$emit("split",this.measureData[t])},mouseUp:function(e){console.log("mouseUp"),this.image=e.detail.image,this.getToolStateInfo(e)},mouseDown:function(e){console.log("mouseDown"),this.image=e.detail.image},getToolStateInfo:function(e){var t=this,i=e.detail,n=i.element,a=i.currentPoints,r=i.image,o=r.imageId,s=o.split("/")[o.split("/").length-1];s=s.split(".")[0];var l=p["globalImageIdSpecificToolStateManager"];this.measuredTools.map((function(i){var r=l.getImageIdToolState(e.detail.image.imageId,i);if(r){var o=new(p["".concat(i,"Tool")]),c=r.data.findIndex((function(e){return o.pointNearTool(n,e,a.canvas,"mouse")}));if(c>-1){var u={};u.studyId=t.stack.studyId,u.seriesId=t.stack.seriesId,u.instanceId=s,u.data=r.data[c],u.type=i,u.thick=t.dicomInfo.thick;var d=r.data[c].uuid,f=t.measureData.findIndex((function(e){return e.MeasureData&&e.MeasureData.data&&e.MeasureData.data.uuid===d}));if(f>-1){var h=t.measureData[f];t.$emit("modifyMeasureData",{measureData:u,questionInfo:h})}}}}))},stackScrollCallback:function(e){var t=this,i=e.detail;this.isScrollSync&&this.$emit("scrollSync",{canvasIndex:this.canvasIndex,direction:i.direction}),this.stack.currentImageIdIndex=e.detail.newImageIdIndex;var n=new Date((new Date).setHours(23,59,59,999)).getTime();s["a"].loadAndCacheImagePlus(this.stack.imageIds[this.stack.currentImageIdIndex],this.stack.seriesId,n).then((function(e){t.height=100*t.stack.currentImageIdIndex/(t.stack.imageIds.length-1)})).catch((function(e){console.log(e)}))},getSeriesLoadStatus:function(){var e=this,t=-1,i=this.visitTaskList.findIndex((function(t){return t.VisitTaskId===e.stack.visitTaskId}));if(-1===i)return t;var n=this.visitTaskList[i].StudyList,a=n.findIndex((function(t){return t.StudyId===e.stack.studyId}));if(-1===a)return t;var r=n[a].SeriesList,o=r.findIndex((function(t){return t.seriesId===e.stack.seriesId}));return-1===o?t:r[o].loadStatus?1:0},renderMeasuredData:function(e){var t=this,i=this.visitTaskList.findIndex((function(e){return e.VisitTaskId===t.stack.visitTaskId}));this.measureData=this.visitTaskList[i].MeasureData;var n=e.detail.element,a=p["globalImageIdSpecificToolStateManager"];this.measureData.forEach((function(i){if(2===t.activeTool&&t.readingTaskState<2?t.activeToolName===i.MeasureData.type?p["setToolActiveForElement"](n,i.MeasureData.type,{mouseButtonMask:1}):p["setToolPassiveForElement"](n,i.MeasureData.type,{mouseButtonMask:1}):1===t.activeTool&&t.readingTaskState<2?p["setToolPassiveForElement"](n,i.MeasureData.type,{mouseButtonMask:1}):p["setToolEnabledForElement"](n,i.MeasureData.type,{mouseButtonMask:1}),t.stack.instanceId.includes(i.InstanceId)&&i.MeasureData){var r=a.getImageIdToolState(e.detail.image.imageId,i.MeasureData.type);if(r&&r.data.length>0){var o=r.data.findIndex((function(e){return e.uuid===i.MeasureData.data.uuid}));-1===o&&a.addImageIdToolState(e.detail.image.imageId,i.MeasureData.type,i.MeasureData.data)}else a.addImageIdToolState(e.detail.image.imageId,i.MeasureData.type,i.MeasureData.data)}}))},mouseClick:function(e){var t=this,i=e.detail,n=i.element,a=i.currentPoints,r=p["globalImageIdSpecificToolStateManager"];this.measuredTools.map((function(i){var o=r.getImageIdToolState(e.detail.image.imageId,i);if(o){var s=new(p["".concat(i,"Tool")]),c=o.data.findIndex((function(e){return s.pointNearTool(n,e,a.canvas,"mouse")}));if(c>-1){var u=t.measureData.findIndex((function(e){return e.MeasureData&&e.MeasureData.data&&e.MeasureData.data.uuid===o.data[c].uuid}));u>-1&&l["a"].$emit("setCollapseActive",t.measureData[u])}}}))},loadImageStack:function(e){var t=this;return new Promise((function(i){t.isCurrentTask=e.isCurrentTask,t.isBaseline=e.isBaseline,t.readingTaskState=e.readingTaskState,t.isCurrentTask&&t.readingTaskState<2?t.activeTool=1:t.activeTool=0,t.series=e,t.stack.seriesId=e.seriesId,t.stack.studyId=e.studyId,t.stack.seriesNumber=e.seriesNumber,t.stack.imageIds=e.imageIds,t.stack.currentImageIdIndex=e.imageIdIndex?e.imageIdIndex:0,t.stack.firstImageLoading=!0,t.stack.visitTaskId=e.visitTaskId,t.stack.taskBlindName=e.taskBlindName,t.stack.description=e.description;var n=t.visitTaskList.findIndex((function(t){return t.VisitTaskId===e.visitTaskId}));t.measureData=t.visitTaskList[n].MeasureData;var a=t.stack.imageIds[t.stack.currentImageIdIndex],r=a.split("/")[a.split("/").length-1];r=r.split(".")[0],t.stack.instanceId=r;var o=p["globalImageIdSpecificToolStateManager"];o.clearImageIdToolState(e.imageIds),t.toolState.clipPlaying&&t.toggleClipPlay(),t.toolState.viewportInvert=!1,t.toolState.dicomInfoVisible=!1;var s=t.$refs.canvas;f["enable"](s),s.tabIndex=0,s.focus();var l=t;f["loadAndCacheImage"](t.stack.imageIds[t.stack.currentImageIdIndex]).then((function(e){l.onFirstImageLoaded(e),i()})).catch((function(e){e.error&&e.error.message&&t.$message.error(e.error.message),i()}))}))},onFirstImageLoaded:function(e){var t=this;console.log("onFirstImageLoaded");var i=this.$refs.canvas,n=f["getDefaultViewportForImage"](this.canvas,e);if(f["displayImage"](this.canvas,e,n),!this.toolState.initialized){this.toolState.initialized=!0;var a=document.querySelectorAll("[data-tool]");Array.from(a).forEach((function(e){var n=e.getAttribute("data-tool"),a=p["".concat(n,"Tool")];if(a){var r=p["getToolForElement"](i,a);r||("Length"===n?p["addToolForElement"](i,v["a"],{configuration:{handleRadius:!1,drawHandlesOnHover:!0,hideHandlesIfMoving:!0,digits:t.digitPlaces}}):"Bidirectional"===n?p["addToolForElement"](i,b["a"],{digits:t.digitPlaces}):"ArrowAnnotate"===n?p["addToolForElement"](i,y["a"],{configuration:{allowEmptyLabel:!0,handleRadius:!1,drawHandlesOnHover:!0,hideHandlesIfMoving:!0}}):p["addToolForElement"](i,a))}})),p["getToolForElement"](i,p["StackScrollMouseWheelTool"])||p["addToolForElement"](i,p["StackScrollMouseWheelTool"]),p["setToolActiveForElement"](i,"StackScrollMouseWheel",{}),p["getToolForElement"](i,w["a"])||p["addToolForElement"](i,w["a"]),p["setToolActiveForElement"](i,"ScaleOverlay",{})}p["addStackStateManager"](this.canvas,["stack","playClip"]),p["addToolState"](this.canvas,"stack",this.stack),f["updateImage"](i,!0),this.stack.firstImageLoading=!1,this.toolState.dicomInfoVisible=!0;var r=e.imageId.split("/")[e.imageId.split("/").length-1];r=r.split(".")[0],this.stack.instanceId=r,this.resetWwwc()},onNewImage:function(e){console.log("cornerstonenewimage"),e.detail.enabledElement.options={};var t=e.detail.image.data;this.dicomInfo.hospital=t.string("x00080080"),this.dicomInfo.pid=t.string("x00120040"),this.dicomInfo.name=t.string("x00100010"),this.dicomInfo.age=t.string("x00101010"),this.dicomInfo.sex=t.string("x00100040"),this.dicomInfo.acc=t.string("x00080050"),this.dicomInfo.modality=t.string("x00080060"),this.dicomInfo.time=this.formatDicomDateTime(t.string("x00080020"),t.string("x00080030")),this.dicomInfo.series=t.string("x00200011"),this.dicomInfo.frame="".concat(this.stack.currentImageIdIndex+1,"/").concat(this.stack.imageIds.length),this.dicomInfo.size="".concat(t.uint16("x00280010"),"*").concat(t.uint16("x00280011")),this.dicomInfo.pixel&&(this.dicomInfo.pixel=this.dicomInfo.pixel.toFixed(2)),this.dicomInfo.thick=t.floatString("x00180050"),this.dicomInfo.thick&&(this.dicomInfo.thick=this.dicomInfo.thick.toFixed(2))},formatDicomDateTime:function(e,t){return e&&(e="".concat(e.substr(0,4),"-").concat(e.substr(4,2),"-").concat(e.substr(6,2))),t&&(t="".concat(t.substr(0,2),":").concat(t.substr(2,2),":").concat(t.substr(4,2))),t?"".concat(e," ").concat(t):"".concat(e," 00:00:00")},onImageLoaded:function(e){console.log("onImageLoaded")},onImageRendered:function(e){console.log("onImageRendered");var t=e.detail.image.imageId,i=t.split("/")[t.split("/").length-1];i=i.split(".")[0],this.imageId!==i&&(this.getOrientationMarker(e.detail.element),this.imageId=i),this.stack.instanceId=i;var n=e.detail.viewport;this.dicomInfo.wwwc="".concat(Math.round(n.voi.windowWidth),"/").concat(Math.round(n.voi.windowCenter)),this.dicomInfo.zoom=n.scale.toFixed(2);var a=e.detail.image.data,r=a.string("x00200032");this.dicomInfo.location=r?Number(r.split("\\")[r.split("\\").length-1]).toFixed(2):"",this.renderMeasuredData(e)},getOrientationMarker:function(e){var t=f["getEnabledElement"](e),i=f["metaData"].get("imagePlaneModule",t.image.imageId);if(i&&i.rowCosines&&i.columnCosines){var n=Object(_["a"])(i.rowCosines),a=Object(_["a"])(i.columnCosines),r=Object(I["a"])(n),o=Object(I["a"])(a),s={top:o,bottom:a,left:r,right:n};s&&(this.orientationMarkers=[o,n,a,r],this.originalMarkers=[o,n,a,r],this.setMarkers())}},onMeasurementcompleted:function(e){console.log("completed"),this.activeTool=1,this.activeToolName="";var t=f["getEnabledElement"](this.canvas),i=t.image.imageId,n=i.split("/")[i.split("/").length-1];if(n=n.split(".")[0],"Length"===e.detail.toolName||"ArrowAnnotate"===e.detail.toolName){var a={};a.studyId=this.stack.studyId,a.seriesId=this.stack.seriesId,a.instanceId=n,a.data=e.detail.measurementData,a.type=e.detail.toolName,a.thick=this.dicomInfo.thick,console.log(e.detail.measurementData),this.$emit("setMeasureData",a),p["setToolPassiveForElement"](this.canvas,e.detail.toolName)}else if("Bidirectional"===e.detail.toolName){var r=Object(x["a"])(e.detail.measurementData,t.image,this.digitPlaces),o=r.longestDiameter,s=r.shortestDiameter,l={};l.studyId=this.stack.studyId,l.seriesId=this.stack.seriesId,l.instanceId=n,l.data=e.detail.measurementData,l.type=e.detail.toolName,l.thick=this.dicomInfo.thick,l.data.longestDiameter=o,l.data.shortestDiameter=s,this.$emit("setMeasureData",l),p["setToolPassiveForElement"](this.canvas,e.detail.toolName)}},onMeasurementremoved:function(e){},onMeasurementmodified:function(e){console.log("modified")},measurementMouseUpHandler:function(e){console.log("measurementMouseUp")},updateImage:function(e){var t=this,i=this.visitTaskList.findIndex((function(e){return e.VisitTaskId===t.stack.visitTaskId}));this.measureData=this.visitTaskList[i].MeasureData;var n=p["globalImageIdSpecificToolStateManager"],a=f["getEnabledElement"](this.canvas),r=a.image.imageId;n.clearImageIdToolState(r),f["updateImage"](a,!0)},removeToolState:function(e){var t=this,i=this.visitTaskList.findIndex((function(e){return e.VisitTaskId===t.stack.visitTaskId}));this.measureData=this.visitTaskList[i].MeasureData;var n=this.measureData.findIndex((function(t){return t.MeasureData&&t.MeasureData.data.uuid===e.data.uuid}));if(n>-1){this.measureData.splice(n,1);var a=f["getEnabledElement"](this.canvas),r=p["globalImageIdSpecificToolStateManager"],o=a.image.imageId;r.clearImageIdToolState(o),f["updateImage"](a,!0)}},getToolForElement:function(e){for(var t=!1,i=0;i<p["store"].state.tools.length;i++)if(p["store"].state.tools[i].name===e){t=!0;break}return t},onClipStopped:function(){this.toolState.clipPlaying=!1},onKeyPress:function(e){var t=e.detail.keyCode,i={PageUp:33,PageDown:34,End:35,Home:36};t<i.PageUp||t>i.Home||(t===i.Home?this.scrollPage(-9999):t===i.PageUp?this.scrollPage(-1):t===i.PageDown?this.scrollPage(1):t===i.End&&this.scrollPage(9999))},resizeCanvas:function(){f["resize"](this.canvas,!0)},activateCanvas:function(){this.canvas.tabIndex=0,this.canvas.focus()},resetViewport:function(){this.toolState.viewportInvert=!1;var e=f["getImage"](this.canvas);f["setViewport"](this.canvas,f["getDefaultViewportForImage"](this.canvas,e))},toggleDicomInfo:function(){this.toolState.dicomInfoVisible=!this.toolState.dicomInfoVisible,this.toolState.dicomInfoVisible?p["orientationMarkers"].enable(this.canvas):p["orientationMarkers"].disable(this.canvas),f["updateImage"](this.canvas)},setColormap:function(e){var t=f["getViewport"](this.canvas);t.colormap=e,f["setViewport"](this.canvas,t),f["updateImage"](this.canvas,!0),e||this.resetRenderCanvase(this.canvas)},resetRenderCanvase:function(e){var t=f["getEnabledElement"](e);t.renderingTools.colormapId=void 0,t.renderingTools.colorLut=void 0;var i=t.renderingTools.renderCanvas,n=i.getContext("2d");n.fillStyle="white",n.fillRect(0,0,i.width,i.height);var a=n.getImageData(0,0,i.width,i.height);t.renderingTools.renderCanvasContext=n,t.renderingTools.renderCanvasData=a},scrollPage:function(e){var t=this.stack.currentImageIdIndex+e;this.index=this.stack.currentImageIdIndex+e,t<0?t=0:t>=this.stack.imageIds.length&&(t=this.stack.imageIds.length-1),t!==this.stack.currentImageIdIndex&&S(this.canvas,t)},toggleClipPlay:function(){if(this.toolState.clipPlaying)return p["stopClip"](this.canvas),void(this.toolState.clipPlaying=!1);this.toolState.clipPlaying=!0,p["playClip"](this.canvas,this.dicomInfo.fps),p["getToolState"](this.canvas,"playClip").data[0].loop=!1},setFps:function(e){this.dicomInfo.fps=e},resetWwwc:function(){this.toolState.viewportInvert=!1;var e=f["getViewport"](this.canvas);e.invert=!1;var t=f["getImage"](this.canvas);e.voi.windowWidth=t.windowWidth,e.voi.windowCenter=t.windowCenter,f["setViewport"](this.canvas,e)},setWwwc:function(e,t){var i=f["getViewport"](this.canvas);i.voi.windowWidth=e,i.voi.windowCenter=t,f["setViewport"](this.canvas,i)},toggleInvert:function(){this.toolState.viewportInvert=!this.toolState.viewportInvert;var e=f["getViewport"](this.canvas);e.invert=this.toolState.viewportInvert,f["setViewport"](this.canvas,e)},activateZoom:function(){p["addTool"](p["ZoomTool"],{configuration:{invert:!1,preventZoomOutsideImage:!1,minScale:.1,maxScale:20}}),p["setToolActive"]("Zoom",{mouseButtonMask:1}),this.toolState.activeTool="zoom"},resetRotate:function(){this.orientationMarkers=Object(r["a"])(this.originalMarkers),this.setMarkers();var e=f["getViewport"](this.canvas);e.hflip=!1,e.vflip=!1,e.rotation=0,f["setViewport"](this.canvas,e)},setMarkers:function(){var e=Object(r["a"])(this.orientationMarkers);for(var t in this.markers){var i=e.shift(0);this.markers[t]=i}},setRotate:function(e,t,i,n){var a=Object(r["a"])(this.orientationMarkers);2===n?(this.orientationMarkers[1]=a[3],this.orientationMarkers[3]=a[1]):3===n?(this.orientationMarkers[0]=a[2],this.orientationMarkers[2]=a[0]):4===n?this.orientationMarkers=a.slice(1,4).concat(a[0]):5===n&&(this.orientationMarkers=[a[3]].concat(a.slice(0,3))),this.setMarkers();var o=f["getViewport"](this.canvas);e&&(o.hflip=!o.hflip),t&&(o.vflip=!o.vflip),0!==i&&(o.rotation+=i),f["setViewport"](this.canvas,o)},saveImage:function(){var e=f["getImage"](this.canvas).data.string("x00080018");p["SaveAs"](this.canvas,"".concat(e,".png"))},fitToWindow:function(){this.stack.seriesNumber&&f["fitToWindow"](this.canvas)},fitToImage:function(){if(this.stack.seriesNumber){var e=f["getEnabledElement"](this.canvas);e.viewport.scale=1,f["updateImage"](this.canvas)}},removeLabel:function(e){var t=S(this.canvas,e.data.imageIdIndex),i=this;Promise.all([t]).then((function(t){p["removeToolState"](i.canvas,e.type,e.data),f["updateImage"](i.canvas)}))},setToolPassive:function(e){p["setToolPassiveForElement"](this.canvas,e),this.activeTool=1,this.activeToolName=""},setToolActive:function(e){var t=this;this.activeTool=2,this.activeToolName=e,this.$nextTick((function(){p["setToolActiveForElement"](t.canvas,e,{mouseButtonMask:1})}))},setToolEnabled:function(e){this.activeToolName="",p["setToolEnabledForElement"](this.canvas,e),this.activeTool=0,this.readingTaskState=2},setAllToolsPassive:function(){var e=this;p["store"].state.tools.forEach((function(t){p["setToolPassiveForElement"](e.canvas,t.name)}))},addTargetElement:function(e){e.addTarget(this.$refs.canvas)},removeTarget:function(e){e.removeTarget(this.$refs.canvas)},addSourceElement:function(e){e.addSource(this.$refs.canvas)},removeSource:function(e){e.removeSource(this.$refs.canvas)},activeReferenceLine:function(e){p["getToolForElement"](this.canvas,p["ReferenceLinesTool"])||p["addToolForElement"](this.canvas,p["ReferenceLinesTool"]),p["setToolEnabledForElement"](this.canvas,"ReferenceLines",{synchronizationContext:e})},disabledReferenceLine:function(e){e.enabled=!1,e.remove(this.canvas),p["setToolDisabledForElement"](this.canvas,"ReferenceLines")},activeViewPortToolSync:function(e,t){e.add(this.canvas),e.enabled=!0,p["getToolForElement"](this.canvas,p["".concat(t,"Tool")])||p["addToolForElement"](this.canvas,p["".concat(t,"Tool")]),p["setToolActiveForElement"](this.canvas,t,{mouseButtonMask:1,synchronizationContext:e})},disabledViewPortToolSync:function(e,t){e.enabled=!1,e.remove(this.canvas),p["setToolDisabledForElement"](this.canvas,t)},activeImageSync:function(e){return e.add(this.$refs.canvas),e.enabled=!0,!1},disabledImageSync:function(e){return e.remove(this.$refs.canvas),e.enabled=!1,!1},activeAnnotationSync:function(e){this.AnnotationSync=e,e.add(this.$refs.canvas),e.enabled=!0},disabledAnnotationSync:function(e){this.AnnotationSync=null,e.enabled=!1,e.remove(this.$refs.canvas),this.setAllToolsPassive()},getToolSate:function(){for(var e=["Probe","EllipticalRoi","RectangleRoi","ArrowAnnotate","Length","CobbAngle","Angle","Bidirectional","FreehandRoi"],t=0;t<e.length;t++){var i=e[t],n=JSON.stringify(p["getToolState"](this.canvas,i));void 0!==n&&(this.allROIToolData[e[t]]=JSON.parse(n))}}}},C=T,k=(i("80f0f"),i("8ef2"),i("2877")),R=Object(k["a"])(C,n,a,!1,null,"5b70e8df",null);t["default"]=R.exports},"4ef0":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container trials-data data-list"},[i("div",{staticClass:"filter-container"},[i("el-input",{staticStyle:{width:"170px","margin-right":"5px"},attrs:{size:"small",placeholder:"Trial ID or Indication"},model:{value:e.listQuery.KeyWord,callback:function(t){e.$set(e.listQuery,"KeyWord",t)},expression:"listQuery.KeyWord"}}),e._v(" "),e.croList?i("el-select",{staticClass:"interval",staticStyle:{width:"130px"},attrs:{size:"small",placeholder:"CRO",clearable:""},model:{value:e.listQuery.CroId,callback:function(t){e.$set(e.listQuery,"CroId",t)},expression:"listQuery.CroId"}},e._l(e.croList,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.CROName,value:e.Id}})})),1):e._e(),e._v(" "),i("el-button",{attrs:{size:"small",type:"text"},on:{click:e.handleReset}},[e._v("Reset")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.handleSearch}},[e._v("Search")])],1),e._v(" "),i("div",{staticClass:"list-container"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticClass:"table",attrs:{height:"100%",data:e.list,stripe:"",size:"small"},on:{"sort-change":e.sortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialCode",label:"Trial ID","show-overflow-tooltip":"","min-width":"100",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Indication",label:"Indication","show-overflow-tooltip":"","min-width":"110",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Cro",sortable:"custom",label:"CRO","min-width":"80","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Expedited",label:"Expedited","show-overflow-tooltip":"","min-width":"110",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(0==t.row.Expedited?"No":1==t.row.Expedited?"24-Hour":"48-Hour"))]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialAdditional",label:"Project Adjustment ($)","show-overflow-tooltip":"","min-width":"180",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"AdjustmentMultiple",label:"Adjustment Multiple","show-overflow-tooltip":"","min-width":"150"}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsNewTrial",label:"IsNewTrial","show-overflow-tooltip":"","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},on:{change:function(i){return e.switchChange(i,t.row)}},model:{value:t.row.IsNewTrial,callback:function(i){e.$set(t.row,"IsNewTrial",i)},expression:"scope.row.IsNewTrial"}})]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Reviewers",label:"Reviewers","show-overflow-tooltip":"","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-popover",{attrs:{width:1200,trigger:"manual",placement:"bottom"},model:{value:t.row.isPopover,callback:function(i){e.$set(t.row,"isPopover",i)},expression:"scope.row.isPopover"}},[i("trials-data-reviewers",{ref:"TrialsDataReviewers",attrs:{"doctor-list":e.doctorList},on:{getList:e.getTrialDoctorList}}),e._v(" "),i("div",{staticStyle:{"text-align":"right",margin:"0","margin-top":"10px"}},[i("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(i){return e.$set(t.row,"isPopover",!1)}}},[e._v("close")])],1),e._v(" "),i("div",{staticClass:"name-wrapper",attrs:{slot:"reference"},slot:"reference"},[t.row.DoctorsNames?i("el-tag",{staticStyle:{cursor:"pointer"},attrs:{size:"medium"},on:{click:function(i){return e.getTrialDoctorList(t.row)}}},[e._v(e._s(t.row.DoctorsNames))]):e._e()],1)],1)]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"Statement of Work","min-width":"150","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.SowPath?i("div",[i("el-button",{staticStyle:{"margin-right":"10px"},attrs:{size:"small",type:"text"},on:{click:function(i){return e.handleView(t.row)}}},[e._v("View")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"text"},on:{click:function(i){return e.handleDeleteSOW(t.row)}}},[e._v("Delete")])],1):i("div",[i("el-button",{staticStyle:{"margin-left":"10px"},attrs:{size:"small",type:"text"},on:{click:function(i){return e.handleUpload(t.row)}}},[e._v("Upload")])],1)]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:"Date Created","min-width":"130","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{label:"Action","min-width":"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{size:"small",type:"text"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("Edit")])]}}])})],1)],1),e._v(" "),i("div",{staticClass:"pagination"},[i("pagination",{attrs:{total:e.total,page:e.listQuery.PageIndex,limit:e.listQuery.PageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"PageIndex",t)},"update:limit":function(t){return e.$set(e.listQuery,"PageSize",t)},pagination:e.getList}})],1),e._v(" "),i("el-dialog",{key:e.trialForm.DoctorId,attrs:{title:"Edit",visible:e.dialogVisible,width:"500px","close-on-click-modal":!1,size:"small"},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("el-form",{ref:"trialsData",attrs:{model:e.trialForm,size:"small","label-width":"170px",rules:e.rules}},[i("el-form-item",{attrs:{label:"Project ID"}},[i("el-input",{attrs:{readonly:""},model:{value:e.trialForm.TrialCode,callback:function(t){e.$set(e.trialForm,"TrialCode",t)},expression:"trialForm.TrialCode"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Indication"}},[i("el-input",{attrs:{readonly:""},model:{value:e.trialForm.Indication,callback:function(t){e.$set(e.trialForm,"Indication",t)},expression:"trialForm.Indication"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Expedited"}},[i("el-input",{attrs:{readonly:""},model:{value:e.trialForm.Expedited,callback:function(t){e.$set(e.trialForm,"Expedited",t)},expression:"trialForm.Expedited"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"IsNewTrial"}},[i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},model:{value:e.trialForm.IsNewTrial,callback:function(t){e.$set(e.trialForm,"IsNewTrial",t)},expression:"trialForm.IsNewTrial"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Project Adjustment ($)",prop:"TrialAdditional"}},[i("el-input",{attrs:{placeholder:"Trial Additional",type:"number",oninput:"value= value.replace(/^(\\-)*(\\d+)\\.(\\d\\d).*$/, '$1$2.$3')"},model:{value:e.trialForm.TrialAdditional,callback:function(t){e.$set(e.trialForm,"TrialAdditional",t)},expression:"trialForm.TrialAdditional"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Adjustment Multiple",prop:"AdjustmentMultiple"}},[i("el-input",{attrs:{placeholder:"Multiple",type:"number",oninput:"value= value.replace(/^(\\-)*(\\d+)\\.(\\d\\d).*$/, '$1$2.$3')"},model:{value:e.trialForm.AdjustmentMultiple,callback:function(t){e.$set(e.trialForm,"AdjustmentMultiple",t)},expression:"trialForm.AdjustmentMultiple"}})],1)],1),e._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{size:"small"},on:{click:function(t){e.dialogVisible=!1}}},[e._v("Cancel")]),e._v(" "),i("el-button",{attrs:{type:"primary",disabled:e.btnDisabled,size:"small"},on:{click:e.handleSave}},[e._v("Ok")])],1)],1),e._v(" "),i("el-dialog",{key:e.trialId,attrs:{title:"Signed Statement of Work",visible:e.sowDialogVisible,width:"500px","close-on-click-modal":!1},on:{"update:visible":function(t){e.sowDialogVisible=t}}},[i("upload-sow",{ref:"uploadSow",attrs:{"trial-id":e.trialId},on:{getFileList:e.getFileList}})],1)],1)},a=[],r=(i("ac6a"),i("db72")),o=i("333d"),s=i("f9ec"),l=i("e351"),c=i("6b95"),u=i("7878"),d=i("4360"),f=i("2f62"),h=/^([1-9]\d*(\.\d+)?|0)$/,p=function(){return{KeyWord:"",PageIndex:1,PageSize:20,Asc:!1,SortField:""}},m={name:"TrialsData",components:{Pagination:o["default"],UploadSow:s["default"],TrialsDataReviewers:l["default"]},data:function(){return{listQuery:p(),list:[],doctorList:[],total:0,isPopover:!1,listLoading:!1,trialForm:{},dialogVisible:!1,btnDisabled:!1,trialId:"",sowDialogVisible:!1,currentRow:{},Expedited:0,rules:{TrialAdditional:[{required:!0,trigger:"blur"},{pattern:h,message:"Please specify a number"}],AdjustmentMultiple:[{required:!0,trigger:"blur"},{pattern:h,message:"Please specify a number"}]}}},computed:Object(r["a"])({},Object(f["b"])(["croList"])),mounted:function(){d["a"].dispatch("global/getCROList"),this.getList()},methods:{switchChange:function(e,t){var i=this;this.listLoading=!0,Object(c["f"])(t).then((function(e){i.$message.success("Saved successfully!"),i.listLoading=!1})).catch((function(){i.listLoading=!1}))},getTrialDoctorList:function(e,t){var i=this;t||this.list.forEach((function(e){i.$set(e,"isPopover",!1)})),this.listLoading=!0;var n={Asc:!0,SortField:"string",TrialId:e.TrialId,PageIndex:1,PageSize:500};Object(c["E"])(n).then((function(t){i.doctorList=t.Result.CurrentPageData,i.doctorList.forEach((function(t){i.list.forEach((function(n){n.TrialId===e.TrialId&&(i.$set(t,"Expedited",n.Expedited),i.$set(t,"ReviewMode",n.ReviewMode))}))})),i.$set(e,"isPopover",!0),i.listLoading=!1})).catch((function(){i.listLoading=!1}))},getList:function(){var e=this;this.listLoading=!0,Object(c["F"])(this.listQuery).then((function(t){e.listLoading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.listLoading=!1}))},handleEdit:function(e){this.trialForm=function(e){var t=e.TrialId,i=e.TrialCode,n=e.Indication,a=e.TrialAdditional,r=e.AdjustmentMultiple,o=e.IsNewTrial;return{TrialId:t,TrialCode:i,Indication:n,TrialAdditional:a,AdjustmentMultiple:r,IsNewTrial:o}}(e),this.trialForm.Expedited=0===e.Expedited?"No":1===e.Expedited?"24-Hour":"48-Hour",this.dialogVisible=!0},handleSave:function(){var e=this;this.$refs.trialsData.validate((function(t){t&&(e.btnDisabled=!0,Object(c["f"])(e.trialForm).then((function(t){e.btnDisabled=!1,e.dialogVisible=!1,e.getList(),e.$message.success("Updated successfully")})).catch((function(){e.btnDisabled=!1})))}))},handleSearch:function(){this.listQuery.PageIndex=1,this.getList()},handleReset:function(){Object.assign(this.listQuery,p()),this.getList()},handleUpload:function(e){this.currentRow=e,this.trialId=e.TrialId,this.sowDialogVisible=!0;var t=[];e.SowName&&(t=[{name:e.SowName,FileName:e.SowName,Path:e.SowPath,FullPath:e.SowFullPath,Type:"Statement of Work"}]),this.$nextTick((function(){this.$refs.uploadSow.initFileList(t)}))},handleView:function(e){e.SowFullPath&&window.open(e.SowFullPath,"_blank")},handleDeleteSOW:function(e){var t=this;this.$confirm("Sure to delete?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"OK",cancelButtonText:"Cancel"}).then((function(){var i={SowPath:e.SowPath,TrialId:e.TrialId};Object(c["m"])(i).then((function(i){e.SowPath="",e.SowName="",e.SowFullPath="",t.$message.success("Deleted successfully !")}))})).catch((function(e){}))},getFileList:function(e){this.currentRow.SowPath=e.length>0?e[0].Path:"",this.currentRow.SowName=e.length>0?e[0].FileName:"",this.currentRow.SowFullPath=e.length>0?e[0].FullPath:""},sortByColumn:function(e){"ascending"===e.order?this.listQuery.Asc=!0:this.listQuery.Asc=!1,this.listQuery.SortField=e.prop,this.listQuery.PageIndex=1,this.getList()},timeFormatter:function(e){if(e.CreateTime)return Object(u["formatUTCTime"])(e.CreateTime)}}},g=m,v=(i("38b6"),i("2877")),b=Object(v["a"])(g,n,a,!1,null,"58c97edd",null);t["default"]=b.exports},"4f10":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"search-container"},[i("el-form",{attrs:{inline:!0,size:"mini"}},[i("el-form-item",{attrs:{label:"器官类型"}},[i("el-select",{staticStyle:{width:"130px"},attrs:{clearable:""},model:{value:e.searchData.OrganType,callback:function(t){e.$set(e.searchData,"OrganType",t)},expression:"searchData.OrganType"}},e._l(e.$d.OrganType,(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"部位"}},[i("el-input",{staticStyle:{width:"130px"},attrs:{clearable:""},model:{value:e.searchData.Part,callback:function(t){e.$set(e.searchData,"Part",t)},expression:"searchData.Part"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"器官"}},[i("el-input",{staticStyle:{width:"130px"},attrs:{clearable:""},model:{value:e.searchData.TULOC,callback:function(t){e.$set(e.searchData,"TULOC",t)},expression:"searchData.TULOC"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"是否淋巴结"}},[i("el-select",{staticStyle:{width:"130px"},attrs:{clearable:""},model:{value:e.searchData.IsLymphNodes,callback:function(t){e.$set(e.searchData,"IsLymphNodes",t)},expression:"searchData.IsLymphNodes"}},e._l(e.$d.YesOrNo,(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left",size:"mini"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")])],1)],1),e._v(" "),i("span",{staticStyle:{"margin-left":"auto"}},[e.isCompleteConfig?e._e():i("el-button",{attrs:{type:"primary",icon:"el-icon-plus",size:"mini"},on:{click:e.handleSet}},[e._v("\n "+e._s(e.$t("trials:readingUnit:baseDataCfg:button:set"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){e.lesionType.visible=!0}}},[e._v("\n 病灶关联配置\n ")]),e._v(" "),e.isCompleteConfig?e._e():i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.handleAdd}},[e._v("\n "+e._s(e.$t("common:button:new"))+"\n ")])],1)],1),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"}],ref:"organList",attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"90"}}),e._v(" "),i("el-table-column",{attrs:{prop:"OrganType",label:"器官类型","min-width":"120","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("OrganType",t.row.OrganType))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Classification",label:"分类","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"ClassificationEN",label:"分类(英文)","min-width":"140","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Part",label:"部位","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"PartEN",label:"部位(英文)","min-width":"140","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TULOC",label:"器官","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TULOCEN",label:"器官(英文)","min-width":"140","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TULAT",label:"位置","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TULATEN",label:"位置(英文)","min-width":"140","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsLymphNodes",label:"是否淋巴结","min-width":"160","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsLymphNodes?i("el-tag",{attrs:{type:"danger"}},[e._v("\n "+e._s(e.$fd("ReadingYesOrNo",t.row.IsLymphNodes))+"\n ")]):i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ReadingYesOrNo",t.row.IsLymphNodes)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsCanEditPosition",label:"是否可以编辑","min-width":"160","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsCanEditPosition?i("el-tag",{attrs:{type:"danger"}},[e._v("\n "+e._s(e.$fd("YesOrNo",t.row.IsCanEditPosition))+"\n ")]):i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsCanEditPosition)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ShowOrder",label:"序号","show-overflow-tooltip":"","min-width":"80"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Remark",label:"备注","show-overflow-tooltip":""}}),e._v(" "),e.isCompleteConfig?e._e():i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"120",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{circle:"",title:"编辑",icon:"el-icon-edit-outline"},on:{click:function(i){return e.handleEdit(t.row)}}}),e._v(" "),i("el-button",{attrs:{circle:"",title:"删除",icon:"el-icon-delete"},on:{click:function(i){return e.handleDelete(t.row)}}})]}}],null,!1,2864343614)})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1),e._v(" "),e.editDialog.visible?i("el-dialog",{attrs:{visible:e.editDialog.visible,"close-on-click-modal":!1,title:e.editDialog.title,width:"500px","custom-class":"base-dialog-wrapper","append-to-body":""},on:{"update:visible":function(t){return e.$set(e.editDialog,"visible",t)}}},[i("OrganForm",{attrs:{data:e.rowData,"criterion-id":e.criterionId},on:{close:function(t){e.editDialog.visible=!1},getList:e.getList}})],1):e._e(),e._v(" "),e.lesionType.visible?i("el-dialog",{attrs:{visible:e.lesionType.visible,"close-on-click-modal":!1,title:e.lesionType.title,width:"800px","custom-class":"base-dialog-wrapper","append-to-body":""},on:{"update:visible":function(t){return e.$set(e.lesionType,"visible",t)}}},[i("LesionTypeTbl",{attrs:{"criterion-id":e.criterionId,"is-complete-config":e.isCompleteConfig},on:{close:function(t){e.lesionType.visible=!1}}})],1):e._e(),e._v(" "),e.criterion.visible?i("el-dialog",{attrs:{visible:e.criterion.visible,"close-on-click-modal":!1,title:e.criterion.title,width:"500px","custom-class":"base-dialog-wrapper","append-to-body":""},on:{"update:visible":function(t){return e.$set(e.criterion,"visible",t)}}},[i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.formLoading,expression:"formLoading"}],ref:"criterionForm",attrs:{model:e.form,size:"small"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:"标准",prop:"CriterionId",rules:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur"]}]}},[i("el-select",{model:{value:e.form.CriterionId,callback:function(t){e.$set(e.form,"CriterionId",t)},expression:"form.CriterionId"}},e._l(e.criterions,(function(t){return i("el-option",{key:t.CriterionId,attrs:{label:t.CriterionName,value:t.CriterionId,disabled:e.criterionId===t.CriterionId}})})),1)],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{type:"primary"},on:{click:function(t){e.criterion.visible=!1}}},[e._v(" "+e._s(e.$t("common:button:cancel")))]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])],1):e._e()],2)},a=[],r=i("db72"),o=i("e56e"),s=i("3e42"),l=i("6071"),c=i("333d"),u=i("abb1"),d=i("af70"),f=function(){return{SystemCriterionId:"",OrganType:null,PageIndex:1,PageSize:20,TULOC:null,TULAT:null,IsLymphNodes:null}},h={name:"OrgansList",components:{BaseContainer:l["default"],Pagination:c["default"],OrganForm:u["default"],LesionTypeTbl:d["default"]},props:{criterionId:{type:String,required:!0},isCompleteConfig:{type:Boolean,required:!0}},data:function(){return{searchData:f(),loading:!1,list:[],total:0,rowData:{},editDialog:{title:"",visible:!1},lesionType:{title:"病灶器官关联关系",visible:!1},criterion:{title:"默认数据配置",visible:!1},formLoading:!1,form:{CriterionId:""},criterions:[]}},watch:{list:function(){var e=this;this.$nextTick((function(){e.$refs.organList.doLayout()}))}},mounted:function(){this.getCriterions(),this.getList()},methods:{synchronizeSystemOrganToTrial:function(){var e=this;this.loading=!0,Object(s["if"])({TrialReadingCriterionId:this.criterionId}).then((function(t){e.loading=!1,e.$message.success("同步成功")})).catch((function(){e.loading=!1}))},getList:function(){var e=this;this.loading=!0,this.searchData.SystemCriterionId=this.criterionId,Object(o["kb"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},getLesionTypes:function(){var e=this;return new Promise((function(t,i){Object(o["db"])({criterionId:e.criterionId}).then((function(i){e.lesionTypes=i.Result,t()})).catch((function(){i()}))}))},handleAdd:function(){this.rowData={SystemCriterionId:this.criterionId},this.editDialog.title="新增",this.editDialog.visible=!0},handleEdit:function(e){this.rowData=Object(r["a"])({},e),this.editDialog.title="编辑",this.editDialog.visible=!0},handleDelete:function(e){var t=this;this.$confirm("是否确认删除",{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.loading=!0,Object(o["F"])(e.Id).then((function(e){t.loading=!1,e.IsSuccess&&(t.getList(),t.$message.success("删除成功!"))})).catch((function(){t.loading=!1}))}))},getCriterions:function(){var e=this;Object(s["ud"])().then((function(t){e.criterions=t.Result}))},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=f(),this.getList()},handleSortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()},handleSet:function(){this.criterion.visible=!0,this.form.CriterionId=""},handleSave:function(){var e=this;this.$refs["criterionForm"].validate((function(t){if(t){e.formLoading=!0;var i={FromCriterionId:e.form.CriterionId,ToCriterionId:e.criterionId};Object(o["Ob"])(i).then((function(t){e.getList(),e.criterion.visible=!1,e.formLoading=!1})).catch((function(){e.formLoading=!1}))}}))}}},p=h,m=i("2877"),g=Object(m["a"])(p,n,a,!1,null,null,null);t["default"]=g.exports},"4f63":function(e,t,i){"use strict";i("76f3")},"4f6d":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"rates-container"},[i("div",{staticClass:"title"},[i("p",[e._v("Volume Reward")]),e._v(" "),i("span",{staticClass:"tipInfo"},[e._v(e._s(e.tipInfo))]),e._v(" "),i("el-button",{staticClass:"saveBtn",attrs:{type:"danger",size:"small",disabled:e.btnSaveDisabled},on:{click:e.handleSave}},[e._v("Save")]),e._v(" "),i("el-button",{staticClass:"addBtn",attrs:{type:"primary",size:"small"},on:{click:e.handleAdd}},[e._v("New")])],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticClass:"table",attrs:{data:e.list,size:"small",stripe:"","cell-style":e.cellStyle}},[i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Min",label:"Min","min-width":"50",formatter:e.minFormatter,"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Max",label:"Max","min-width":"50","show-overflow-tooltip":"",formatter:e.maxFormatter}}),e._v(" "),i("el-table-column",{attrs:{prop:"Price",label:"Additional Pay ($)","show-overflow-tooltip":"","min-width":"70"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.Price)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{fixed:"right",label:"Action","min-width":"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{size:"small",type:"text"},on:{click:function(i){return e.handleEdit(t.$index,t.row)}}},[e._v("Edit")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"text"},on:{click:function(i){return e.handleDelete(t.$index,t.row)}}},[e._v("Delete")])]}}])})],1),e._v(" "),i("pagination",{staticStyle:{"text-align":"right","margin-top":"5px"},attrs:{total:e.total,page:e.listQuery.PageIndex,limit:e.listQuery.PageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"PageIndex",t)},"update:limit":function(t){return e.$set(e.listQuery,"PageSize",t)},pagination:e.getList}}),e._v(" "),i("el-dialog",{key:e.timer,attrs:{title:e.title,visible:e.dialogVisible,width:"500px","close-on-click-modal":!1,size:"small"},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("el-form",{ref:"rewardForm",attrs:{"label-width":"150px",rules:e.rules,model:e.rewardForm,size:"small"}},[i("el-form-item",{attrs:{label:"Min: ",prop:"Min"}},[i("el-input",{attrs:{type:"number"},model:{value:e.rewardForm.Min,callback:function(t){e.$set(e.rewardForm,"Min",t)},expression:"rewardForm.Min"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Max: ",prop:"Max"}},[i("el-input",{attrs:{type:"number"},model:{value:e.rewardForm.Max,callback:function(t){e.$set(e.rewardForm,"Max",t)},expression:"rewardForm.Max"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Additional Pay ($): ",prop:"Price"}},[i("el-input",{attrs:{type:"number"},model:{value:e.rewardForm.Price,callback:function(t){e.$set(e.rewardForm,"Price",t)},expression:"rewardForm.Price"}})],1)],1),e._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{size:"small"},on:{click:function(t){e.dialogVisible=!1}}},[e._v("Cancel")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){return e.handleSaveForm()}}},[e._v("Ok")])],1)],1)],1)},a=[],r=(i("55dd"),i("ac6a"),i("c5f6"),i("333d")),o=i("6b95"),s=function(){return{PageIndex:1,PageSize:20,Asc:!1,SortField:""}},l={name:"VolumeReward",components:{Pagination:r["default"]},filters:{rounding:function(e){return e?Number(e).toFixed(2):e}},data:function(){return{listQuery:s(),list:[],listLoading:!1,total:0,tipInfo:"",btnSaveDisabled:!0,dialogVisible:!1,title:"",timer:"",minError:[],maxError:[],rewardForm:{},rules:{Price:[{required:!0,message:"Please specify",trigger:"blur"}],Min:[{required:!0,message:"Please specify",trigger:"blur"}],Max:[{required:!0,message:"Please specify",trigger:"blur"}]}}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.listLoading=!0,Object(o["H"])(this.listQuery).then((function(t){e.listLoading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.listLoading=!1}))},handleAdd:function(){this.rewardForm={},this.title="Add",this.timer=(new Date).getTime(),this.dialogVisible=!0},handleEdit:function(e,t){this.title="Edit",this.rewardForm=JSON.parse(JSON.stringify(t)),this.rewardForm.index=e,this.timer=(new Date).getTime(),this.dialogVisible=!0},handleSaveForm:function(){var e=this;this.$refs.rewardForm.validate((function(t){t&&(e.rewardForm.Id?e.list.forEach((function(t){t.Id===e.rewardForm.Id&&(t.Min=e.rewardForm.Min,t.Max=e.rewardForm.Max,t.Price=e.rewardForm.Price)})):e.list.push({Id:(new Date).getTime(),Price:e.rewardForm.Price,Min:e.rewardForm.Min,Max:e.rewardForm.Max}),e.btnSaveDisabled=!1,e.list.sort(e.compare("Min")),e.dialogVisible=!1,e.tipInfo="Please Save",e.handelCheckError())}))},compare:function(e){return function(t,i){var n=t[e],a=i[e];return n-a}},handleDelete:function(e,t){var i=this;this.$confirm("Confirm to delete?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Yes",cancelButtonText:"No"}).then((function(){i.list.splice(e,1),i.tipInfo="Please Save",i.btnSaveDisabled=!1,i.list.sort(i.compare("Min")),i.handelCheckError()}))},handleSave:function(){var e=this;this.handelCheckError(),this.minError.length>0||this.maxError.length>0?this.tipInfo="Validate Error":0!==this.list.length?Object(o["h"])(this.list).then((function(t){t.IsSuccess&&(e.getList(),e.$message.success("Updated successfully!"),e.tipInfo="",e.btnSaveDisabled=!0)})).catch((function(t){e.$message({message:t,type:"error"})})):this.tipInfo="Error: At least one record"},handelCheckError:function(){this.minError=[],this.maxError=[];for(var e=0;e<this.list.length;e++)0===e?0!==this.list[0].Min&&this.minError.push({index:0,value:"(must be 0)",column:1}):(Number(this.list[e-1].Max)+1!==Number(this.list[e].Min)&&(this.maxError.push({index:e-1,value:"( "+(this.list[e].Min-1)+" ?)",column:2}),this.minError.push({index:e,value:"( "+(Number(this.list[e-1].Max)+1)+" ?)",column:1})),Number(this.list[e].Min)>Number(this.list[e].Max)&&this.maxError.push({index:e,value:"( must bigger than"+this.list[e].Min+" )",column:2}))},cellStyle:function(e){e.row,e.column;var t=e.rowIndex,i=e.columnIndex,n=this.minError.filter((function(e){return e.index===t}))[0],a=this.maxError.filter((function(e){return e.index===t}))[0];return n&&n.column===i||a&&a.column===i?"color:red":void 0},minFormatter:function(e,t,i,n){var a=this.minError.filter((function(e){return e.index===n}))[0];return a?i+a.value:i},maxFormatter:function(e,t,i,n){var a=this.maxError.filter((function(e){return e.index===n}))[0];return a?i+a.value:i}}},c=l,u=(i("fbef"),i("2877")),d=Object(u["a"])(c,n,a,!1,null,"67e34046",null);t["default"]=d.exports},"4f7f":function(e,t,i){"use strict";var n=i("c26b"),a=i("b39a"),r="Set";e.exports=i("e0b8")(r,(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(e){return n.def(a(this,r),e=0===e?0:e,e)}},n)},"4f85":function(e,t,i){var n=i("4e08"),a=(n.__DEV__,i("6d8b")),r=i("22d1"),o=i("eda2"),s=o.formatTime,l=o.encodeHTML,c=o.addCommas,u=o.getTooltipMarker,d=i("e0d3"),f=i("6cb7"),h=i("e47b"),p=i("38a2"),m=i("f934"),g=m.getLayoutParams,v=m.mergeLayoutParam,b=i("f47d"),y=b.createTask,w=i("0f99"),_=w.prepareSource,I=w.getSource,x=i("2b17"),S=x.retrieveRawValue,T=d.makeInner(),C=f.extend({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendVisualProvider:null,visualColorAccessPath:"itemStyle.color",visualBorderColorAccessPath:"itemStyle.borderColor",layoutMode:null,init:function(e,t,i,n){this.seriesIndex=this.componentIndex,this.dataTask=y({count:D,reset:L}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,i),_(this);var a=this.getInitialData(e,i);$(a,this),this.dataTask.context.data=a,T(this).dataBeforeProcessed=a,k(this)},mergeDefaultAndTheme:function(e,t){var i=this.layoutMode,n=i?g(e):{},r=this.subType;f.hasClass(r)&&(r+="Series"),a.merge(e,t.getTheme().get(this.subType)),a.merge(e,this.getDefaultOption()),d.defaultEmphasis(e,"label",["show"]),this.fillDataTextStyle(e.data),i&&v(e,n,i)},mergeOption:function(e,t){e=a.merge(this.option,e,!0),this.fillDataTextStyle(e.data);var i=this.layoutMode;i&&v(this.option,e,i),_(this);var n=this.getInitialData(e,t);$(n,this),this.dataTask.dirty(),this.dataTask.context.data=n,T(this).dataBeforeProcessed=n,k(this)},fillDataTextStyle:function(e){if(e&&!a.isTypedArray(e))for(var t=["show"],i=0;i<e.length;i++)e[i]&&e[i].label&&d.defaultEmphasis(e[i],"label",t)},getInitialData:function(){},appendData:function(e){var t=this.getRawData();t.appendData(e.data)},getData:function(e){var t=A(this);if(t){var i=t.context.data;return null==e?i:i.getLinkedData(e)}return T(this).data},setData:function(e){var t=A(this);if(t){var i=t.context;i.data!==e&&t.modifyOutputEnd&&t.setOutputEnd(e.count()),i.outputData=e,t!==this.dataTask&&(i.data=e)}T(this).data=e},getSource:function(){return I(this)},getRawData:function(){return T(this).dataBeforeProcessed},getBaseAxis:function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},formatTooltip:function(e,t,i,n){var r=this;n=n||"html";var o="html"===n?"<br/>":"\n",f="richText"===n,h={},p=0;function m(i){var o=a.reduce(i,(function(e,t,i){var n=v.getDimensionInfo(i);return e|(n&&!1!==n.tooltip&&null!=n.displayName)}),0),d=[];function m(e,i){var a=v.getDimensionInfo(i);if(a&&!1!==a.otherDims.tooltip){var m=a.type,g="sub"+r.seriesIndex+"at"+p,b=u({color:I,type:"subItem",renderMode:n,markerId:g}),y="string"===typeof b?b:b.content,w=(o?y+l(a.displayName||"-")+": ":"")+l("ordinal"===m?e+"":"time"===m?t?"":s("yyyy/MM/dd hh:mm:ss",e):c(e));w&&d.push(w),f&&(h[g]=I,++p)}}b.length?a.each(b,(function(t){m(S(v,e,t),t)})):a.each(i,m);var g=o?f?"\n":"<br/>":"",y=g+d.join(g||", ");return{renderMode:n,content:y,style:h}}function g(e){return{renderMode:n,content:l(c(e)),style:h}}var v=this.getData(),b=v.mapDimension("defaultedTooltip",!0),y=b.length,w=this.getRawValue(e),_=a.isArray(w),I=v.getItemVisual(e,"color");a.isObject(I)&&I.colorStops&&(I=(I.colorStops[0]||{}).color),I=I||"transparent";var x=y>1||_&&!y?m(w):g(y?S(v,e,b[0]):_?w[0]:w),T=x.content,C=r.seriesIndex+"at"+p,k=u({color:I,type:"item",renderMode:n,markerId:C});h[C]=I,++p;var R=v.getName(e),D=this.name;d.isNameSpecified(this)||(D=""),D=D?l(D)+(t?": ":o):"";var L="string"===typeof k?k:k.content,O=t?L+D+T:D+L+(R?l(R)+": "+T:T);return{html:O,markers:h}},isAnimationEnabled:function(){if(r.node)return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),e},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(e,t,i){var n=this.ecModel,a=h.getColorFromPalette.call(this,e,t,i);return a||(a=n.getColorFromPalette(e,t,i)),a},coordDimToDataDim:function(e){return this.getRawData().mapDimension(e,!0)},getProgressive:function(){return this.get("progressive")},getProgressiveThreshold:function(){return this.get("progressiveThreshold")},getAxisTooltipData:null,getTooltipPosition:null,pipeTask:null,preventIncremental:null,pipelineContext:null});function k(e){var t=e.name;d.isNameSpecified(e)||(e.name=R(e)||t)}function R(e){var t=e.getRawData(),i=t.mapDimension("seriesName",!0),n=[];return a.each(i,(function(e){var i=t.getDimensionInfo(e);i.displayName&&n.push(i.displayName)})),n.join(" ")}function D(e){return e.model.getRawData().count()}function L(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),O}function O(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function $(e,t){a.each(e.CHANGABLE_METHODS,(function(i){e.wrapMethod(i,a.curry(N,t))}))}function N(e){var t=A(e);t&&t.setOutputEnd(this.count())}function A(e){var t=(e.ecModel||{}).scheduler,i=t&&t.getPipeline(e.uid);if(i){var n=i.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(e.uid))}return n}}a.mixin(C,p),a.mixin(C,h);var P=C;e.exports=P},"4fa9":function(e,t,i){},"4fac":function(e,t,i){var n=i("620b"),a=i("9c2c");function r(e,t,i){var r=t.points,o=t.smooth;if(r&&r.length>=2){if(o&&"spline"!==o){var s=a(r,o,i,t.smoothConstraint);e.moveTo(r[0][0],r[0][1]);for(var l=r.length,c=0;c<(i?l:l-1);c++){var u=s[2*c],d=s[2*c+1],f=r[(c+1)%l];e.bezierCurveTo(u[0],u[1],d[0],d[1],f[0],f[1])}}else{"spline"===o&&(r=n(r,i)),e.moveTo(r[0][0],r[0][1]);c=1;for(var h=r.length;c<h;c++)e.lineTo(r[c][0],r[c][1])}i&&e.closePath()}}t.buildPath=r},"4fbf":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"viewerContainer"},[i("div",{staticClass:"viewerContentWrapper"},[i("div",{staticClass:"viewerLeftSidePanel"},[i("div",{staticClass:"sidePanelBody",attrs:{id:"listWrapper"}},[i("div",{staticClass:"sidePanelThumbs"},[i("el-tabs",{attrs:{type:"border-card"},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[i("el-tab-pane",{attrs:{label:"当前检查",name:"first"}},[i("div",{staticClass:"studyDesc"},[e._v("\n "+e._s(e.studyCode)+"\n ")]),e._v(" "),i("div",{staticClass:"studyDesc"},[e._v("\n "+e._s(e.description)+"\n ")]),e._v(" "),e.seriesCount?i("div",{staticClass:"studyDesc"},[e._v("\n "+e._s(e.modality)+" : "+e._s(e.seriesCount)+" Series\n ")]):e._e(),e._v(" "),i("div",{staticClass:"viewerSidethumbs ps",staticStyle:{position:"relative"}},[i("div",{staticClass:"viewerSidethumbinner"},e._l(e.seriesList,(function(t,n){return i("div",{key:n,staticClass:"viewernavigatorwrapper",class:{viewerSideActive:0==n},staticStyle:{position:"relative"},attrs:{"series-type":"current"},on:{click:function(t){return e.showSeriesImage(t,n)}}},[i("el-image",{staticClass:"image-preview",staticStyle:{height:"72px",width:"72px"},attrs:{src:t.previewImageUrl,fit:"fill"},on:{load:e.previewImageLoad,error:e.previewImageLoadError}}),e._v(" "),i("div",{staticClass:"viewernavitextwrapper"},[t.keySeries?i("div",{staticStyle:{padding:"1px",color:"red"}},[e._v("\n Key Images\n ")]):i("div",{staticStyle:{padding:"1px"}},[e._v("\n #"+e._s(t.seriesNumber)+"\n ")]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.instanceCount,expression:"item.instanceCount"}],staticStyle:{padding:"1px"}},[e._v("\n "+e._s(t.modality)+": "+e._s(t.instanceCount)+" image\n ")]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:!t.keySeries&&t.sliceThickness,expression:"!item.keySeries && item.sliceThickness"}],staticStyle:{padding:"1px"}},[e._v("\n T: "+e._s(t.sliceThickness)+"\n ")]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:!t.keySeries&&t.description,expression:"!item.keySeries &&item.description"}],staticStyle:{padding:"1x"}},[e._v("\n "+e._s(t.description)+"\n ")]),e._v(" "),t.keySeries?e._e():i("div",{staticStyle:{padding:"1px"}},[e._v("\n "+e._s(t.prefetchInstanceCount)+"/"+e._s(t.instanceCount)+"\n ")])]),e._v(" "),-1!==e.arr.indexOf(t.seriesId)||t.hasLabel?i("div",{staticClass:"viewerlabelwrapper"},[t.keySeries?e._e():i("i",{staticClass:"el-icon-star-on",staticStyle:{color:"#FF5722","font-size":"16px"}})]):e._e(),e._v(" "),t.keySeries?e._e():i("div",{staticStyle:{position:"absolute",bottom:"-10px",left:"0",width:"100%"}},[t.prefetchInstanceCount>0&&t.prefetchInstanceCount<t.instanceCount?i("el-progress",{attrs:{percentage:100*Number(t.prefetchInstanceCount/t.instanceCount)}}):e._e()],1)],1)})),0)])])],1)],1)])]),e._v(" "),i("div",{staticClass:"viewerContent"},[i("dicom-viewer",{ref:"dicomViewer",staticStyle:{height:"100%"},attrs:{id:"dicomViewer"}})],1)])])},a=[],r=(i("20d6"),i("55dd"),i("db72")),o=(i("5df3"),i("1c4c"),i("ac6a"),i("acd4")),s=i("81d9"),l=i("344d"),c=i("cc73"),u=i("0a05"),d=i("f5c4"),f=i("4360");l["external"].dicomParser=o,l["external"].cornerstone=s;var h={components:{"dicom-viewer":c["default"]},data:function(){return{studyId:"",studyCode:"",modality:"",description:"",seriesCount:0,seriesList:[],currentSeriesIndex:-1,arr:[],activeName:"first",cachedImages:[],isLoadedAll:!1,previewImageCount:0}},created:function(){this.studyId=this.$router.currentRoute.query.studyId,f["a"].dispatch("user/setToken",this.$router.currentRoute.query.token),s["events"].addEventListener("cornerstoneimageloaded",this.cornerstoneImageLoaded),this.loadStudy()},methods:{loadStudy:function(){var e=this;Object(u["k"])(e.studyId).then((function(t){if(t.IsSuccess){e.studyCode=t.Result.StudyCode,e.modality=t.Result.Modalities,e.seriesCount=t.Result.SeriesCount,e.description=t.Result.Description;var i="/series/list/".concat(e.studyId);e.getSeriesList(i)}}))},getSeriesList:function(e){var t=this,i=this;Object(u["j"])(e).then((function(e){if(e.Result.length>0){var n=[],a=e.Result;a.forEach((function(e){var t=[];e.InstancePathList.forEach((function(e){t.push("wadouri:".concat("USA"!==localStorage.getItem("location")?"https://zyypacs-mdc.oss-cn-shanghai.aliyuncs.com":"https://zyypacs-usa.oss-us-west-1.aliyuncs.com").concat(e))})),n.push({imageIds:t,seriesId:e.Id,seriesUid:e.SeriesInstanceUid,seriesNumber:e.SeriesNumber,sliceThickness:e.SliceThickness,modality:e.Modality,description:e.Description,previewImageUrl:"/api/series/preview/".concat(e.Id),instanceCount:e.InstanceCount,prefetchInstanceCount:0,hasLabel:e.HasLabel,keySeries:e.KeySeries,tpCode:i.tpCode,loadStatus:!1,imageloadedArr:[]})})),i.seriesList=n,i.seriesList.length>0&&t.$nextTick((function(){i.$refs.dicomViewer.loadImageStack(i.seriesList[0])}))}}))},previewImageLoad:function(){this.previewImageCount++,this.previewImageCount===this.seriesCount&&this.loadAllImages()},previewImageLoadError:function(){this.previewImageCount++,this.previewImageCount===this.seriesCount&&this.loadAllImages()},showSeriesImage:function(e,t){var i=e.currentTarget,n=document.querySelectorAll("[series-type]");Array.from(n).forEach((function(e){e.classList.remove("viewerSideActive")})),i.classList.add("viewerSideActive"),this.currentSeriesIndex=t,this.$refs.dicomViewer.loadImageStack(this.seriesList[t])},loadAllImages:function(){d["a"].startTaskTimer();var e=this;this.seriesList.forEach((function(t){t.imageIds.forEach((function(t){e.load(t)}))}))},load:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:999;return new Promise((function(n,a){var r=t.buildImageRequestTask(e,{priority:i});d["a"].addTaskIntoPool(r).then((function(e){n(e)})).catch((function(e){a(e),console.log(e)}))}))},buildImageRequestTask:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(r["a"])(Object(r["a"])({key:e},t),{},{execute:function(){return s["loadAndCacheImage"](e)}})},datasetsCacheChanged:function(e){var t=e.detail.cacheInfo;t.cacheSizeInBytes},unload:function(){this.cachedImages.sort(this.compare),l["wadouri"].dataSetCacheManager.unload(this.cachedImages[0].uri),this.cachedImages.splice(0,1)},compare:function(e,t){return e.timeStamp>t.timeStamp?-1:e.timeStamp<t.timeStamp?1:0},cornerstoneImageLoaded:function(e){var t=e.detail.image.sharedCacheKey,i=this.cachedImages.findIndex((function(e){return e.uri===t}));-1===i?this.cachedImages.push({uri:t,timestamp:(new Date).getTime()}):this.cachedImages[i].timestamp=(new Date).getTime();for(var n=e.detail.image.imageId,a=e.detail.image.data.string("x0020000e"),r=-1,o=0;o<this.seriesList.length;++o)if(this.seriesList[o].seriesUid===a){r=o;break}if(!(r<0)){var s=this.seriesList[r].imageIds.indexOf(n);s<0||this.seriesList[r].imageloadedArr.indexOf(n)<0&&(++this.seriesList[r].prefetchInstanceCount,this.seriesList[r].imageloadedArr.push(n),this.seriesList[r].prefetchInstanceCount>=this.seriesList[r].instanceCount&&(this.seriesList[r].prefetchInstanceCount=this.seriesList[r].instanceCount,this.seriesList[r].loadStatus=!0))}}}},p=h,m=(i("cdaa5"),i("2877")),g=Object(m["a"])(p,n,a,!1,null,null,null);t["default"]=g.exports},"502f":function(e,t,i){"use strict";i("5289")},5049:function(e,t,i){"use strict";i("d943")},5055:function(e,t,i){"use strict";i("4fa9")},"506e":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"status-info"},[i("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0,model:e.basicInfo,size:"small"}},[i("el-row",[i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"Pending:"}},[e.statusList.Submitted?i("span",{staticStyle:{color:"#00d1b2"}},[i("router-link",{attrs:{to:{path:"/trialStats?name="+e.basicInfo.FirstName+" "+e.basicInfo.LastName+"&doctorId="+e.basicInfo.Id+"&status=5&TokenKey="+e.tokenKey},target:"_blank",title:"Pending client approval"}},[e._v(e._s(e.statusList.Submitted))])],1):i("span",[e._v(e._s(e.statusList.Submitted))])])],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"Approved:"}},[e.statusList.Approved?i("span",{staticStyle:{color:"#00d1b2"}},[i("router-link",{attrs:{to:{path:"/trialStats?name="+e.basicInfo.FirstName+" "+e.basicInfo.LastName+"&doctorId="+e.basicInfo.Id+"&status=8&TokenKey="+e.tokenKey},target:"_blank",title:"Approved, waiting for training"}},[e._v(e._s(e.statusList.Approved))])],1):i("span",[e._v(e._s(e.statusList.Approved))])])],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"Reading:"}},[e.statusList.Reading?i("span",{staticStyle:{color:"#00d1b2"}},[i("router-link",{attrs:{to:{path:"/trialStats?name="+e.basicInfo.FirstName+" "+e.basicInfo.LastName+"&doctorId="+e.basicInfo.Id+"&status=10&TokenKey="+e.tokenKey},target:"_blank"}},[e._v(e._s(e.statusList.Reading))])],1):i("span",[e._v(e._s(e.statusList.Reading))])])],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"On Vacation:"}},[i("span",{staticStyle:{"font-size":"12px","margin-right":"20px"}},[e._v(e._s(e.holiday))]),e._v(" "),i("el-button",{attrs:{type:"text",size:"small"},on:{click:e.initHolidayList}},[e._v("Planned Vacation")])],1)],1)],1)],1),e._v(" "),i("el-dialog",{attrs:{title:"Vacation",visible:e.dialogVisible,width:"35%","close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list,size:"small"}},[i("el-table-column",{attrs:{type:"index"}}),e._v(" "),i("el-table-column",{attrs:{property:"StartDate",label:"Beginning Date","min-width":"120",formatter:e.beginTimeFormatter}}),e._v(" "),i("el-table-column",{attrs:{property:"EndDate",label:"End Date","min-width":"120",formatter:e.endTimeFormatter}})],1),e._v(" "),i("div",{staticClass:"pagination"},[i("el-pagination",{attrs:{background:"",layout:"total,sizes,prev, pager, next",total:e.total,"page-sizes":[5,10,20,50],"page-size":e.pageSize,"current-page":e.pageIndex},on:{"update:currentPage":function(t){e.pageIndex=t},"update:current-page":function(t){e.pageIndex=t},"current-change":e.handleCurrentChange,"size-change":e.handleSizeChange}})],1)],1)],1)},a=[],r=i("33ba"),o=i("7878"),s=i("5f87"),l={props:{basicInfo:{type:Object,default:function(){return{}}},statusList:{type:Object,default:function(){return{}}},doctorId:{type:String,default:""},holiday:{type:String,default:""}},data:function(){return{list:[],total:0,dialogVisible:!1,loading:!1,pageIndex:1,pageSize:10,tokenKey:Object(s["a"])()}},methods:{initHolidayList:function(){var e=this;this.dialogVisible=!0,this.loading=!0,Object(r["z"])(this.doctorId,this.pageIndex,this.pageSize).then((function(t){t.IsSuccess&&(e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount),e.loading=!1})).catch((function(){e.loading=!1}))},beginTimeFormatter:function(e){if(e.StartDate)return Object(o["fmtDate"])(e.StartDate)},endTimeFormatter:function(e){if(e.EndDate)return Object(o["fmtDate"])(e.EndDate)},handleCurrentChange:function(e){this.pageIndex=e,this.initHolidayList()},handleSizeChange:function(e){this.pageSize=e,this.initHolidayList()}}},c=l,u=(i("a990"),i("2877")),d=Object(u["a"])(c,n,a,!1,null,null,null);t["default"]=d.exports},"50e5":function(e,t,i){var n=i("6d8b"),a=i("eda2"),r=["x","y","z","radius","angle","single"],o=["cartesian2d","polar","singleAxis"];function s(e){return n.indexOf(o,e)>=0}function l(e,t){e=e.slice();var i=n.map(e,a.capitalFirst);t=(t||[]).slice();var r=n.map(t,a.capitalFirst);return function(a,o){n.each(e,(function(e,n){for(var s={name:e,capital:i[n]},l=0;l<t.length;l++)s[t[l]]=e+r[l];a.call(o,s)}))}}var c=l(r,["axisIndex","axis","index","id"]);function u(e,t,i){return function(i){var n,s={nodes:[],records:{}};if(t((function(e){s.records[e.name]={}})),!i)return s;o(i,s);do{n=!1,e(l)}while(n);function l(e){!a(e,s)&&r(e,s)&&(o(e,s),n=!0)}return s};function a(e,t){return n.indexOf(t.nodes,e)>=0}function r(e,a){var r=!1;return t((function(t){n.each(i(e,t)||[],(function(e){a.records[t.name][e]&&(r=!0)}))})),r}function o(e,a){a.nodes.push(e),t((function(t){n.each(i(e,t)||[],(function(e){a.records[t.name][e]=!0}))}))}}t.isCoordSupported=s,t.createNameEach=l,t.eachAxisDim=c,t.createLinkedNodesFinder=u},"50fc":function(e,t,i){"use strict";i.d(t,"m",(function(){return a})),i.d(t,"n",(function(){return r})),i.d(t,"g",(function(){return o})),i.d(t,"c",(function(){return s})),i.d(t,"v",(function(){return l})),i.d(t,"l",(function(){return c})),i.d(t,"e",(function(){return u})),i.d(t,"s",(function(){return d})),i.d(t,"r",(function(){return f})),i.d(t,"k",(function(){return h})),i.d(t,"j",(function(){return p})),i.d(t,"u",(function(){return m})),i.d(t,"t",(function(){return g})),i.d(t,"i",(function(){return v})),i.d(t,"a",(function(){return b})),i.d(t,"d",(function(){return y})),i.d(t,"h",(function(){return w})),i.d(t,"p",(function(){return _})),i.d(t,"b",(function(){return I})),i.d(t,"f",(function(){return x})),i.d(t,"o",(function(){return S})),i.d(t,"q",(function(){return T}));var n=i("b775");function a(e){return Object(n["a"])({url:"/user/getUserList",method:"post",data:e})}function r(){return Object(n["a"])({url:"/UserTypeRole/getUserTypeList/0",method:"get"})}function o(e){return Object(n["a"])({url:"/institution/getInstitutionList/".concat(e),method:"get"})}function s(e){return Object(n["a"])({url:"/user/addUser",method:"post",data:e})}function l(e){return Object(n["a"])({url:"/user/updateUser",method:"put",data:e})}function c(e){return Object(n["a"])({url:"/user/getUser/".concat(e),method:"get"})}function u(e){return Object(n["a"])({url:"/user/deleteUser/".concat(e),method:"delete"})}function d(e){return Object(n["a"])({url:"/user/resetPassword/".concat(e),method:"get"})}function f(e){return Object(n["a"])({url:"/user/modifyPassword",method:"post",data:e})}function h(e){return Object(n["a"])({url:"/menu/getRoleMenuFunction/".concat(e),method:"get"})}function p(e,t){return Object(n["a"])({url:"/menu/getRoleFunction/".concat(e,"/").concat(t),method:"get"})}function m(e){return Object(n["a"])({url:"/menu/updateRoleMenu",method:"post",data:e})}function g(e){return Object(n["a"])({url:"/menu/updateRoleFunction",method:"post",data:e})}function v(){return Object(n["a"])({url:"/menu/getMenuFunction",method:"get"})}function b(e){return Object(n["a"])({url:"/menu/addOrUpdateMenu",method:"post",data:e})}function y(e){return Object(n["a"])({url:"/menu/deleteMenuFunction/".concat(e),method:"delete"})}function w(e){return Object(n["a"])({url:"/log/getLogList",method:"post",data:e})}function _(e){return Object(n["a"])({url:"/UserTypeRole/getUserTypeRoleList",method:"post",data:e})}function I(e){return Object(n["a"])({url:"/UserTypeRole/addOrUpdateUserTypeRole",method:"post",data:e})}function x(e){return Object(n["a"])({url:"/UserTypeRole/deleteUserTypeRole/".concat(e),method:"delete"})}function S(e){return Object(n["a"])({url:"/UserTypeRole/getUserTypeList/".concat(e),method:"get"})}function T(e){return Object(n["a"])({url:"/User/initSetUserNameAndPwd?NewUserName=".concat(e.NewUserName,"&UserId=").concat(e.UserId,"&NewPwd=").concat(e.NewPwd,"&access_token=").concat(e.access_token),method:"get"})}},"51cc":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"preview-wrapper"},[i("div",{staticClass:"left-wrapper"},[i("div",{staticClass:"basic-info"},[e.otherInfo.SubjectCode?i("span",[e._v(e._s(""+e.otherInfo.SubjectCode))]):e._e(),e._v(" "),e.otherInfo.ReadingNameOrTaskBlindName?i("span",[e._v("("+e._s(""+e.otherInfo.ReadingNameOrTaskBlindName)+")")]):e._e()]),e._v(" "),e.cdList.length>0?i("div",{staticClass:"basic-content"},e._l(e.cdList,(function(t){return i("div",{key:t.Id,staticClass:"cd-wrapper"},[i("div",{staticClass:"cd-name-wrapper"},[e._v(e._s(t.ClinicalDataSetName))]),e._v(" "),1===t.ClinicalUploadType?e._l(t.FileList,(function(t){return i("div",{key:t.Id,staticClass:"cd-item",class:{activeBtn:t.Id===e.selected.id},on:{click:function(i){return i.preventDefault(),e.preview(t,1)}}},[e._v("\n "+e._s(t.FileName)+"\n ")])})):i("div",{staticClass:"cd-item",class:{activeBtn:t.Id===e.selected.id},on:{click:function(i){return i.preventDefault(),e.preview(t,0)}}},[e._v("\n "+e._s(e.$t("trials:uploadClinicalData:title:table"))+"\n ")])],2)})),0):i("div",{staticClass:"basic-content-empty"},[i("span",[e._v(e._s(e.$t("trials:clinicaldara:title:nodata")))])])]),e._v(" "),i("div",{staticClass:"right-wrapper"},[1===e.selected.type?i("div",{staticClass:"right-content"},[i("iframe",{attrs:{src:"/static/pdfjs/web/viewer.html?file="+e.selected.filePath,width:"100%",height:"100%",frameborder:"0"}})]):0===e.selected.type?i("div",{staticClass:"right-content",staticStyle:{padding:"10px","overflow-y":"auto"}},[i("h4",[e._v(e._s(e.$t("trials:uploadClinicalData:title:pastTreatment")))]),e._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.selected.clinicalTableData.PreviousHistoryList}},[i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Position",label:e.$t("trials:uploadClinicalData:table:bodyPart"),width:"180"}}),e._v(" "),i("el-table-column",{attrs:{prop:"StartTime",label:e.$t("trials:uploadClinicalData:table:beginDate"),width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.StartTime?e.moment(t.row.StartTime).format("YYYY-MM-DD"):"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"EndTime",label:e.$t("trials:uploadClinicalData:table:endDate"),width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.EndTime?e.moment(t.row.EndTime).format("YYYY-MM-DD"):"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsPD",label:e.$t("trials:uploadClinicalData:table:isPD"),width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("IsPdEnum",t.row.IsPD))+"\n ")]}}])})],1),e._v(" "),i("h4",[e._v(e._s(e.$t("trials:uploadClinicalData:title:pastSurgery")))]),e._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.selected.clinicalTableData.PreviousSurgeryList}},[i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"OperationName",label:e.$t("trials:uploadClinicalData:table:surgeryName"),width:"180"}}),e._v(" "),i("el-table-column",{attrs:{prop:"OperationTime",label:e.$t("trials:uploadClinicalData:table:surgeryDate"),width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.OperationTime?e.moment(t.row.OperationTime).format("YYYY-MM-DD"):"")+"\n ")]}}])})],1),e._v(" "),i("h4",[e._v(e._s(e.$t("trials:uploadClinicalData:title:others")))]),e._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.selected.clinicalTableData.PreviousOtherList}},[i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TreatmentType",label:e.$t("trials:uploadClinicalData:table:treatmentType"),width:"180"}}),e._v(" "),i("el-table-column",{attrs:{prop:"StartTime",label:e.$t("trials:uploadClinicalData:table:treatmentbeginDate"),width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.StartTime?e.moment(t.row.StartTime).format("YYYY-MM-DD"):"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"EndTime",label:e.$t("trials:uploadClinicalData:table:treatmentendDate"),width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.EndTime?e.moment(t.row.EndTime).format("YYYY-MM-DD"):"")+"\n ")]}}])})],1)],1):e._e()])])},a=[],r=i("3e42"),o=i("4360"),s=i("a599"),l=i("c1df"),c=i.n(l),u={name:"MultipleNoneDicom",data:function(){return{selected:{id:"",type:null,fileName:"",filePath:"",clinicalTableData:[]},cdList:[],otherInfo:{},moment:c.a,loading:!1}},mounted:function(){this.$router.currentRoute.query.TokenKey&&(o["a"].dispatch("user/setToken",this.$router.currentRoute.query.TokenKey),Object(s["a"])("TokenKey","")),this.getList()},methods:{getList:function(){var e=this;this.loading=!0;var t={subjectId:this.$router.currentRoute.query.subjectId,trialId:this.$router.currentRoute.query.trialId,readingId:this.$router.currentRoute.query.readingId?this.$router.currentRoute.query.readingId:"",visitTaskId:this.$router.currentRoute.query.visitTaskId?this.$router.currentRoute.query.visitTaskId:"",readingClinicalDataId:this.$router.currentRoute.query.readingClinicalDataId?this.$router.currentRoute.query.readingClinicalDataId:""};Object(r["Rc"])(t).then((function(t){if(e.cdList=t.Result,e.otherInfo=t.OtherInfo,e.loading=!1,e.cdList.length>0){var i=1===e.cdList[0].ClinicalUploadType?1:0,n=1===i?e.cdList[0].FileList[0]:e.cdList[0];e.preview(n,i)}})).catch((function(){e.loading=!1}))},preview:function(e,t){this.$set(this.selected,"id",e.Id),this.$set(this.selected,"type",t),1===t?(this.$set(this.selected,"fileName",e.FileName),this.$set(this.selected,"filePath",e.Path)):this.$set(this.selected,"clinicalTableData",e.ClinicalTableData)}}},d=u,f=(i("5c13"),i("2877")),h=Object(f["a"])(d,n,a,!1,null,null,null);t["default"]=h.exports},"51df":function(e,t,i){"use strict";i("1ddd")},5248:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{"text-align":"right"}},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list,border:"",stripe:""}},[i("el-table-column",{attrs:{label:"","min-width":50},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.$index+1)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("trials:reviewTrack:title:fileName"),"min-width":50},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.FileName)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"",label:e.$t("common:action:action"),"min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{icon:"el-icon-download",circle:"",title:e.$t("trials:reviewTrack:title:download"),size:"mini"},on:{click:function(i){return e.handleExport(t.row.ExportCatogory)}}})]}}])})],1)],1)},a=[],r=i("db72"),o=i("3f2a"),s=i("958c"),l={name:"exportList",data:function(){return{loading:!0,trialCriterionList:[],TrialReadingCriterionId:null,trialId:null,list:[]}},props:{data:{type:Object,default:function(){return{}}}},watch:{TrialReadingCriterionId:function(e){var t=this;"0"!==e&&(this.loading=!0,Object(o["q"])({TrialReadingCriterionId:e}).then((function(e){t.list=e.Result,t.loading=!1})).catch((function(){t.loading=!0})))}},mounted:function(){this.trialId=this.$route.query.trialId,this.getTrialCriterionList()},methods:{handleExport:function(e){var t=this,i=Object(r["a"])({},this.data);switch(i.TrialReadingCriterionId=this.TrialReadingCriterionId,e){case 0:Object(o["l"])(i).then((function(e){})).catch((function(){t.loading=!1}));break;case 1:Object(o["h"])(i).then((function(e){})).catch((function(){t.loading=!1}));break;case 2:Object(o["e"])(i).then((function(e){})).catch((function(){t.loading=!1}));break;case 3:Object(o["c"])(i).then((function(e){})).catch((function(){t.loading=!1}));break}},getTrialCriterionList:function(){var e=this;Object(s["U"])(this.trialId).then((function(t){e.trialCriterionList=t.Result,e.TrialReadingCriterionId=e.trialCriterionList[0].TrialReadingCriterionId})).catch((function(){}))}}},c=l,u=i("2877"),d=Object(u["a"])(c,n,a,!1,null,"24969426",null);t["default"]=d.exports},"526f":function(e,t,i){"use strict";i.d(t,"b",(function(){return r})),i.d(t,"a",(function(){return o}));var n=i("2b0e");const a=n["default"].prototype.$isServer,r=(a||Number(document.documentMode),function(){return!a&&document.addEventListener?function(e,t,i){e&&t&&i&&e.addEventListener(t,i,!1)}:function(e,t,i){e&&t&&i&&e.attachEvent("on"+t,i)}}()),o=function(){return!a&&document.removeEventListener?function(e,t,i){e&&t&&e.removeEventListener(t,i,!1)}:function(e,t,i){e&&t&&e.detachEvent("on"+t,i)}}()},"527a":function(e,t,i){var n=i("6d8b"),a=i("3842");function r(e,t){e.eachSeriesByType("themeRiver",(function(e){var t=e.getData(),i=e.coordinateSystem,n={},r=i.getRect();n.rect=r;var s=e.get("boundaryGap"),l=i.getAxis();if(n.boundaryGap=s,"horizontal"===l.orient){s[0]=a.parsePercent(s[0],r.height),s[1]=a.parsePercent(s[1],r.height);var c=r.height-s[0]-s[1];o(t,e,c)}else{s[0]=a.parsePercent(s[0],r.width),s[1]=a.parsePercent(s[1],r.width);var u=r.width-s[0]-s[1];o(t,e,u)}t.setLayout("layoutInfo",n)}))}function o(e,t,i){if(e.count())for(var a,r=t.coordinateSystem,o=t.getLayerSeries(),l=e.mapDimension("single"),c=e.mapDimension("value"),u=n.map(o,(function(t){return n.map(t.indices,(function(t){var i=r.dataToPoint(e.get(l,t));return i[1]=e.get(c,t),i}))})),d=s(u),f=d.y0,h=i/d.max,p=o.length,m=o[0].indices.length,g=0;g<m;++g){a=f[g]*h,e.setItemLayout(o[0].indices[g],{layerIndex:0,x:u[0][g][0],y0:a,y:u[0][g][1]*h});for(var v=1;v<p;++v)a+=u[v-1][g][1]*h,e.setItemLayout(o[v].indices[g],{layerIndex:v,x:u[v][g][0],y0:a,y:u[v][g][1]*h})}}function s(e){for(var t=e.length,i=e[0].length,n=[],a=[],r=0,o={},s=0;s<i;++s){for(var l=0,c=0;l<t;++l)c+=e[l][s][1];c>r&&(r=c),n.push(c)}for(var u=0;u<i;++u)a[u]=(r-n[u])/2;r=0;for(var d=0;d<i;++d){var f=n[d]+a[d];f>r&&(r=f)}return o.y0=a,o.max=r,o}e.exports=r},5289:function(e,t,i){},"52dd":function(e,t,i){},"536f":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{ref:"participantForm",attrs:{model:e.form,rules:e.rules,"label-width":"100px",inline:!0}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:e.$t("trials:staffResearch:form:lastName"),prop:"LastName"}},[i("el-input",{staticStyle:{width:"200px"},attrs:{disabled:!(0===e.state&&0===e.userTypeEnumInt)},model:{value:e.form.LastName,callback:function(t){e.$set(e.form,"LastName",t)},expression:"form.LastName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:staffResearch:form:firstName"),prop:"FirstName"}},[i("el-input",{staticStyle:{width:"200px"},attrs:{disabled:!(0===e.state&&0===e.userTypeEnumInt)},model:{value:e.form.FirstName,callback:function(t){e.$set(e.form,"FirstName",t)},expression:"form.FirstName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:staffResearch:form:role"),prop:"TrialRoleNameId"}},[i("el-select",{staticStyle:{width:"200px"},attrs:{disabled:!(0===e.state&&0===e.userTypeEnumInt)},model:{value:e.form.TrialRoleNameId,callback:function(t){e.$set(e.form,"TrialRoleNameId",t)},expression:"form.TrialRoleNameId"}},e._l(e.dictionaryList.SiteSurvey_UserRoles,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.Value,value:e.Id}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:staffResearch:form:phone"),prop:"Phone"}},[i("el-input",{staticStyle:{width:"200px"},attrs:{disabled:!(0===e.state&&0===e.userTypeEnumInt)},model:{value:e.form.Phone,callback:function(t){e.$set(e.form,"Phone",t)},expression:"form.Phone"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:staffResearch:form:email"),prop:"Email"}},[i("el-input",{staticStyle:{width:"200px"},attrs:{disabled:!(0===e.state&&0===e.userTypeEnumInt)},model:{value:e.form.Email,callback:function(t){e.$set(e.form,"Email",t)},expression:"form.Email"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:staffResearch:form:organization"),prop:"OrganizationName"}},[i("el-input",{staticStyle:{width:"200px"},attrs:{disabled:!(0===e.state&&0===e.userTypeEnumInt)},model:{value:e.form.OrganizationName,callback:function(t){e.$set(e.form,"OrganizationName",t)},expression:"form.OrganizationName"}})],1),e._v(" "),i("el-row",[e.hasPermi(["role:pm","role:apm"])?i("el-form-item",{attrs:{label:e.$t("trials:staffResearch:form:isGenerate")}},[i("el-radio-group",{staticStyle:{width:"200px"},on:{change:e.handleIsGenerateAccountChange},model:{value:e.form.IsGenerateAccount,callback:function(t){e.$set(e.form,"IsGenerateAccount",t)},expression:"form.IsGenerateAccount"}},[i("el-radio",{attrs:{label:!0}},[e._v("是")]),e._v(" "),i("el-radio",{attrs:{label:!1}},[e._v("否")])],1)],1):e._e(),e._v(" "),e.hasPermi(["role:pm","role:apm"])&&e.form.IsGenerateAccount?i("el-form-item",{attrs:{label:e.$t("trials:staffResearch:form:userType"),prop:"UserTypeId"}},[i("el-select",{staticStyle:{width:"200px"},attrs:{disabled:!e.form.IsGenerateAccount},model:{value:e.form.UserTypeId,callback:function(t){e.$set(e.form,"UserTypeId",t)},expression:"form.UserTypeId"}},e._l(e.userTypeOptions,(function(t){return i("el-option",{key:t.Id,attrs:{label:t.UserTypeShortName,value:t.Id}},[i("span",[e._v(e._s(t.UserType))])])})),1)],1):e._e()],1),e._v(" "),e.errorMsg?i("el-form-item",{attrs:{label:""}},[e.errorMsg?i("span",{staticStyle:{"font-size":"12px",color:"#f66"}},[e._v(e._s(e.errorMsg))]):e._e()]):e._e()],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{size:"small",type:"primary",disabled:e.btnLoading},on:{click:e.handleCancel}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])},a=[],r=i("db72"),o=(i("456d"),i("ac6a"),i("96cf"),i("3b8d")),s=(i("c5f6"),i("896b")),l=i("86a6"),c=i("a599"),u={name:"ResearchParticipantForm",props:{data:{type:Object,default:function(){return{}}},state:{type:Number,required:!0}},data:function(){var e=this,t=function(t,i,n){if(""===i)n(new Error(e.$t("trials:researchForm:formRule:specify")));else{var a=/^[A-Za-z0-9]+([_\.][A-Za-z0-9]+)*@([A-Za-z0-9\-]+\.)+[A-Za-z]{2,6}$/;e.form.Email&&a.test(e.form.Email)?(e.sendDisabled=!1,n()):(n(new Error(e.$t("trials:researchForm:formRule:email"))),e.sendDisabled=!0)}};return{form:{Id:"",LastName:null,FirstName:null,TrialRoleNameId:"",UserTypeId:null,Phone:null,Email:null,OrganizationName:"",IsGenerateAccount:!1,IsDisable:!1},rules:{LastName:[{required:!0,message:this.$t("trials:researchForm:formRule:specify"),trigger:"blur"},{min:0,max:50,message:this.$t("trials:researchForm:formRule:maxLength"),trigger:"blur"}],FirstName:[{required:!0,message:this.$t("trials:researchForm:formRule:specify"),trigger:"blur"},{min:0,max:50,message:this.$t("trials:researchForm:formRule:maxLength"),trigger:"blur"}],TrialRoleNameId:[{required:!0,message:this.$t("trials:researchForm:formRule:select"),trigger:["blur","change"]}],UserTypeId:[{required:!0,message:this.$t("trials:researchForm:formRule:select"),trigger:["blur"]}],Phone:[{min:11,max:11,message:"请输入11位手机号码",trigger:"blur"},{pattern:/^(13[0-9]|14[579]|15[0-3,5-9]|16[6]|17[0135678]|18[0-9]|19[89])\d{8}$/,message:"请输入正确的手机号码",trigger:"blur"}],Email:[{required:!0,validator:t,trigger:["blur"]}]},btnLoading:!1,userRoles:[],userTypeOptions:[],userTypeEnumInt:0,errorMsg:"",dictionaryList:{}}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getDicData();case 2:Object.keys(this.data).forEach((function(e){t.form[e]=t.data[e]})),zzSessionStorage.getItem("userTypeEnumInt")&&(this.userTypeEnumInt=1*zzSessionStorage.getItem("userTypeEnumInt"),this.getUserType());case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),handleSave:function(){var e=this;this.$refs["participantForm"].validate((function(t){if(t){e.btnLoading=!0,e.form.TrialSiteSurveyId||(e.form.TrialSiteSurveyId=Object(c["b"])("trialSiteSurveyId"));var i=Object(c["b"])("trialId");Object(s["c"])(i,e.form).then((function(t){e.btnLoading=!1,t.IsSuccess&&(e.$message.success(e.$t("common:message:savedSuccessfully")),e.$emit("getList"),e.$emit("close"))})).catch((function(t){t.Result&&(e.$set(e.form,"LastName",t.Result.LastName),e.$set(e.form,"FirstName",t.Result.FirstName),e.$set(e.form,"Phone",t.Result.Phone),e.errorMsg=t.ErrorMessage),e.btnLoading=!1}))}}))},handleCancel:function(){this.$emit("close")},getUserType:function(){var e=this;Object(s["j"])(3).then((function(t){e.userTypeOptions=t.Result}))},getDicData:function(){var e=this;Object(l["c"])(["SiteSurvey_UserRoles"]).then((function(t){e.dictionaryList=Object(r["a"])({},t.Result)})).catch((function(){}))},handleIsCorrectChange:function(e){e||(this.form.IsGenerateAccount=!1)},handleIsGenerateAccountChange:function(e){e||(this.form.UserTypeId="")}}},d=u,f=i("2877"),h=Object(f["a"])(d,n,a,!1,null,null,null);t["default"]=h.exports},"53f3":function(e,t){function i(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var i=e.option.nodeScaleRatio,n=t.scale,a=n&&n[0]||1,r=t.getZoom(),o=(r-1)*i+1;return o/a}function n(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}t.getNodeGlobalScale=i,t.getSymbolSize=n},"542c":function(e,t,i){},5450:function(e,t,i){i("7419"),i("29a9")},"54b7":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container"},[i("div",{staticClass:"ImageReviewTask-list app-container"},[i("el-collapse",{model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},[i("el-form",{ref:"qualifiedForm",attrs:{model:e.reportResult}},[i("el-form-item",{attrs:{prop:"Qualified",label:"Qualified for Review:","label-width":"200px",rules:[{required:!0,message:"",trigger:"blur"}]}},[i("el-radio-group",{attrs:{disabled:e.isReportSaved},model:{value:e.reportResult.Qualified,callback:function(t){e.$set(e.reportResult,"Qualified",t)},expression:"reportResult.Qualified"}},[i("el-radio",{attrs:{label:!0}},[e._v("Qualified")]),e._v(" "),i("el-radio",{attrs:{label:!1}},[e._v("Non-Qualified")])],1)],1)],1),e._v(" "),i("el-collapse-item",{attrs:{name:"Non-lymphNodeTarget",title:"Non-nodular Target Lesions (Non-lymph Node Target Lesions)",disabled:""}},[i("div",{staticClass:"toolbar"},[i("span",{staticStyle:{"margin-right":"20px"}},[e._v("Lesions Operate:")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"small",disabled:e.nonlymphNodeTargetMergeDisable||e.isReportSaved},on:{click:e.nonlymphNodeTargetMerge}},[e._v("Merge")]),e._v(" "),i("span",{staticStyle:{"margin-right":"20px"}},[e._v("SplitCount:")]),e._v(" "),i("el-input",{staticClass:"mr",staticStyle:{width:"80px"},attrs:{placeholder:"Split Count",disabled:e.nonlymphNodeTargetSplitDisable||e.isReportSaved,size:"small",type:"number",min:"2"},model:{value:e.nonlymphNodeTargetSplitCount,callback:function(t){e.nonlymphNodeTargetSplitCount=t},expression:"nonlymphNodeTargetSplitCount"}}),e._v(" "),i("el-button",{attrs:{type:"primary",size:"small",disabled:e.nonlymphNodeTargetSplitDisable||e.isReportSaved},on:{click:e.nonlymphNodeTargetSplit}},[e._v("Split")])],1),e._v(" "),i("el-table",{ref:"nonlymphNodeTargetBLTable",attrs:{data:e.BLNonlymphNodeTargetList,stripe:"",size:"small"},on:{"selection-change":e.handleNonlymphNodeTargetListSelectionChange}},[i("el-table-column",{attrs:{label:"BaseLine"}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{type:"selection",align:"left",width:"50",selectable:e.canNonlymphNodeTargetOpt}}),e._v(" "),i("el-table-column",{attrs:{prop:"TULNKID",label:"Lesion No","show-overflow-tooltip":"","min-width":"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Anatomy",label:"Anatomy","show-overflow-tooltip":"","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s((t.row.TULOC||"")+" "+(t.row.TULAT||"")+" "+(t.row.TUDIR||""))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"LocDescription",label:"Anatomy Description","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-input",{attrs:{type:"text",placeholder:"",size:"small",clearable:"",disabled:t.row.VISITNUM!=e.pageTPInfo.VisitNum||e.isReportSaved},model:{value:t.row.LocDescription,callback:function(i){e.$set(t.row,"LocDescription",i)},expression:"scope.row.LocDescription"}})]}}])})],1),e._v(" "),i("el-table-column",{attrs:{label:"Current Timepoint:"}},[i("el-table-column",{attrs:{label:"Current scan has covered","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-select",{staticStyle:{width:"100%"},attrs:{size:"small",clearable:"",disabled:1==t.row.VISITNUM?e.NonlymphNodeTargetSplitOrMergeArray.some((function(e){return-1!=e.TULNKID.indexOf(t.row.TULNKID)})):e.isReportSaved},on:{change:function(i){return e.nonlymphNodeTargetCoveredLesionChange(t.row.CurrentLesion)}},model:{value:t.row.CurrentLesion.CoveredLesion,callback:function(i){e.$set(t.row.CurrentLesion,"CoveredLesion",i)},expression:"scope.row.CurrentLesion.CoveredLesion"}},[i("el-option",{attrs:{value:!0,label:"YES"}}),e._v(" "),i("el-option",{attrs:{value:!1,label:"NO"}})],1)]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"Long Axis Measurement(mm)","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",size:"small",disabled:1==t.row.VISITNUM&&e.NonlymphNodeTargetSplitOrMergeArray.some((function(e){return-1!=e.TULNKID.indexOf(t.row.TULNKID)}))||e.isReportSaved||0==t.row.CurrentLesion.CoveredLesion},on:{change:function(i){return e.nonlymphNodeTargetMeasurementChange(t.row)}},model:{value:t.row.CurrentLesion.TRORRES,callback:function(i){e.$set(t.row.CurrentLesion,"TRORRES",i)},expression:"scope.row.CurrentLesion.TRORRES"}},e._l(e.VisitNonlymphNodeTargetList,(function(e){return i("el-option",{key:e.value,attrs:{label:e.TRORRES+" "+e.TULOC+" "+e.TULAT+" "+e.TUDIR,value:e.TRORRES,disabled:e.HasSelected}})})),1)]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Note",label:"Comments","show-overflow-tooltip":"","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-input",{attrs:{type:"text",placeholder:"",size:"small",clearable:"",disabled:1==t.row.VISITNUM&&e.NonlymphNodeTargetSplitOrMergeArray.some((function(e){return-1!=e.TULNKID.indexOf(t.row.TULNKID)}))||e.isReportSaved||0==t.row.CurrentLesion.CoveredLesion},model:{value:t.row.CurrentLesion.Note,callback:function(i){e.$set(t.row.CurrentLesion,"Note",i)},expression:"scope.row.CurrentLesion.Note"}})]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"Action","min-width":"40",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.VISITNUM==e.pageTPInfo.VisitNum?i("el-button",{attrs:{type:"text",size:"small",disabled:e.isReportSaved},on:{click:function(i){return e.handlenonlymphNodeTargetDelete(t.row)}}},[e._v("Delete")]):e._e()]}}])})],1)],1)],1),e._v(" "),i("el-collapse-item",{attrs:{title:"Nodular Target Lesions (Lymph Node Target Lesions)",name:"LymphNodeTarget",disabled:""}},[i("div",{staticClass:"toolbar"},[i("span",{staticStyle:{"margin-right":"20px"}},[e._v("Lesions Operate:")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"small",disabled:e.lymphNodeTargetMergeDisable||e.isReportSaved},on:{click:e.lymphNodeTargetMerge}},[e._v("Merge")]),e._v(" "),i("span",{staticStyle:{"margin-right":"20px"}},[e._v("SplitCount:")]),e._v(" "),i("el-input",{staticClass:"mr",staticStyle:{width:"80px"},attrs:{placeholder:"Split Count",disabled:e.lymphNodeTargetSplitDisable||e.isReportSaved,size:"small",type:"number",min:"2"},model:{value:e.lymphNodeTargetSplitCount,callback:function(t){e.lymphNodeTargetSplitCount=t},expression:"lymphNodeTargetSplitCount"}}),e._v(" "),i("el-button",{attrs:{type:"primary",size:"small",disabled:e.lymphNodeTargetSplitDisable||e.isReportSaved},on:{click:e.lymphNodeTargetSplit}},[e._v("Split")])],1),e._v(" "),i("el-table",{ref:"lymphNodeTargetBLTable",attrs:{data:e.BLLymphNodeTargetList,stripe:"",size:"small"},on:{"selection-change":e.handleLymphNodeTargetListSelectionChange}},[i("el-table-column",{attrs:{label:"BaseLine"}},[i("el-table-column",{attrs:{type:"index",width:"60"}}),e._v(" "),i("el-table-column",{attrs:{type:"selection",align:"left",width:"50",selectable:e.canLymphNodeTargetOpt}}),e._v(" "),i("el-table-column",{attrs:{prop:"TULNKID",label:"Lesion No","show-overflow-tooltip":"","min-width":"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Anatomy",label:"Anatomy","show-overflow-tooltip":"","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s((t.row.TULOC||"")+" "+(t.row.TULAT||"")+" "+(t.row.TUDIR||""))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"LocDescription",label:"Anatomy Description","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-input",{attrs:{type:"text",placeholder:"",size:"small",clearable:"",disabled:t.row.VISITNUM!=e.pageTPInfo.VisitNum||e.isReportSaved},model:{value:t.row.LocDescription,callback:function(i){e.$set(t.row,"LocDescription",i)},expression:"scope.row.LocDescription"}})]}}])})],1),e._v(" "),i("el-table-column",{attrs:{label:"Current Timepoint"}},[i("el-table-column",{attrs:{label:"Current scan has covered","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-select",{staticStyle:{width:"100%"},attrs:{size:"small",disabled:1==t.row.VISITNUM?e.LymphNodeTargetSplitOrMergeArray.some((function(e){return-1!=e.TULNKID.indexOf(t.row.TULNKID)})):e.isReportSaved},on:{change:function(i){return e.lymphNodeTargetCoveredLesionChange(t.row.CurrentLesion)}},model:{value:t.row.CurrentLesion.CoveredLesion,callback:function(i){e.$set(t.row.CurrentLesion,"CoveredLesion",i)},expression:"scope.row.CurrentLesion.CoveredLesion"}},[i("el-option",{attrs:{value:!0,label:"YES"}}),e._v(" "),i("el-option",{attrs:{value:!1,label:"NO"}})],1)]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"Short Axis Measurement(mm)","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",size:"small",disabled:1==t.row.VISITNUM&&e.LymphNodeTargetSplitOrMergeArray.some((function(e){return-1!=e.TULNKID.indexOf(t.row.TULNKID)}))||e.isReportSaved||0==t.row.CurrentLesion.CoveredLesion},on:{change:function(i){return e.lymphNodeTargetMeasurementChange(t.row)}},model:{value:t.row.CurrentLesion.TRORRES,callback:function(i){e.$set(t.row.CurrentLesion,"TRORRES",i)},expression:"scope.row.CurrentLesion.TRORRES"}},e._l(e.VisitLymphNodeTargetList,(function(e){return i("el-option",{key:e.value,attrs:{label:e.TRORRES+" "+e.TULOC+" "+e.TULAT+" "+e.TUDIR,value:e.TRORRES,disabled:e.HasSelected}})})),1)]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Note",label:"Comments","show-overflow-tooltip":"","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-input",{attrs:{type:"text",placeholder:"",size:"small",disabled:1==t.row.VISITNUM&&e.LymphNodeTargetSplitOrMergeArray.some((function(e){return-1!=e.TULNKID.indexOf(t.row.TULNKID)}))||e.isReportSaved||0==t.row.CurrentLesion.CoveredLesion},model:{value:t.row.CurrentLesion.Note,callback:function(i){e.$set(t.row.CurrentLesion,"Note",i)},expression:"scope.row.CurrentLesion.Note"}})]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"Action","min-width":"40",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.VISITNUM==e.pageTPInfo.VisitNum?i("el-button",{attrs:{type:"text",size:"small",disabled:e.isReportSaved},on:{click:function(i){return e.handlelymphNodeTargetDelete(t.row)}}},[e._v("Delete")]):e._e()]}}])})],1)],1)],1),e._v(" "),i("el-collapse-item",{attrs:{title:"Non-target Lesion",name:"Non-targetLesion",disabled:""}},[i("el-table",{ref:"nontargetLesionTable",attrs:{data:e.BLNontargetLesionList,stripe:"",size:"small"}},[i("el-table-column",{attrs:{label:"BaseLine"}},[i("el-table-column",{attrs:{type:"index",width:"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TULNKID",label:"Lesion No","show-overflow-tooltip":"","min-width":"100"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Anatomy",label:"Anatomy","show-overflow-tooltip":"","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.TULOC+" "+t.row.TULAT+" "+t.row.TUDIR)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"LocDescription",label:"Anatomy Description","show-overflow-tooltip":"","min-width":"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Note",label:"Comments","show-overflow-tooltip":"","min-width":"100"}})],1),e._v(" "),i("el-table-column",{attrs:{label:"Current Timepoint"}},[i("el-table-column",{attrs:{label:"Lesion Assessment","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-input",{attrs:{type:"text",placeholder:"",size:"small",disabled:e.isReportSaved},model:{value:t.row.CurrentLesion.TRORRES,callback:function(i){e.$set(t.row.CurrentLesion,"TRORRES",i)},expression:"scope.row.CurrentLesion.TRORRES"}})]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TRORRESU",label:"Lesion status","show-overflow-tooltip":"","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-select",{staticClass:"mr",staticStyle:{width:"100%"},attrs:{size:"small",clearable:""},on:{change:function(t){return e.nonTargetLesionStatusChange()}},model:{value:t.row.CurrentLesion.TRORRESU,callback:function(i){e.$set(t.row.CurrentLesion,"TRORRESU",i)},expression:"scope.row.CurrentLesion.TRORRESU"}},[i("el-option",{attrs:{value:"Exist",label:"Exist"}}),e._v(" "),i("el-option",{attrs:{value:"Disappear",label:"Disappear"}}),e._v(" "),i("el-option",{attrs:{value:"Identify progress",label:"Identify progress"}})],1)]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Note",label:"Comments","show-overflow-tooltip":"","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-input",{attrs:{type:"text",placeholder:"",size:"small",disabled:e.isReportSaved},model:{value:t.row.CurrentLesion.Note,callback:function(i){e.$set(t.row.CurrentLesion,"Note",i)},expression:"scope.row.CurrentLesion.Note"}})]}}])})],1)],1)],1),e._v(" "),i("el-collapse-item",{attrs:{title:"Previous New Lesion",name:"PreviousNewLesion",disabled:""}},[i("el-table",{ref:"previousNewLesionTable",attrs:{data:e.PreviousNewLesionList,stripe:"",size:"small"}},[i("el-table-column",{attrs:{label:"First"}},[i("el-table-column",{attrs:{type:"index",width:"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TULNKID",label:"Lesion No","show-overflow-tooltip":"","min-width":"100"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Anatomy",label:"Anatomy","show-overflow-tooltip":"","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.TULOC+" "+t.row.TULAT+" "+t.row.TUDIR)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"LocDescription",label:"Anatomy Description","show-overflow-tooltip":"","min-width":"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Note",label:"Comments","show-overflow-tooltip":"","min-width":"100"}})],1),e._v(" "),i("el-table-column",{attrs:{label:"Current Timepoint"}},[i("el-table-column",{attrs:{label:"Lesion Assessment","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-input",{attrs:{type:"text",placeholder:"",size:"small",disabled:e.isReportSaved},model:{value:t.row.CurrentLesion.TRORRES,callback:function(i){e.$set(t.row.CurrentLesion,"TRORRES",i)},expression:"scope.row.CurrentLesion.TRORRES"}})]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitTRORRESU",label:"Lesion status","show-overflow-tooltip":"","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-select",{staticClass:"mr",staticStyle:{width:"100%"},attrs:{size:"small",clearable:""},model:{value:t.row.CurrentLesion.TRORRESU,callback:function(i){e.$set(t.row.CurrentLesion,"TRORRESU",i)},expression:"scope.row.CurrentLesion.TRORRESU"}},[i("el-option",{attrs:{value:"Exist",label:"Exist"}}),e._v(" "),i("el-option",{attrs:{value:"Disappear",label:"Disappear"}}),e._v(" "),i("el-option",{attrs:{value:"Identify progress",label:"Identify progress"}})],1)]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitNote",label:"Comments","show-overflow-tooltip":"","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-input",{attrs:{type:"text",placeholder:"",size:"small",disabled:e.isReportSaved},model:{value:t.row.CurrentLesion.Note,callback:function(i){e.$set(t.row.CurrentLesion,"Note",i)},expression:"scope.row.CurrentLesion.Note"}})]}}])})],1)],1)],1),e._v(" "),i("el-collapse-item",{attrs:{title:"Equivocal New Lesion",name:"EquivocalNewLesion",disabled:""}},[i("el-table",{ref:"equivocalNewLesionTable",attrs:{data:e.EquivocalNewLesionList,stripe:"",size:"small"}},[i("el-table-column",{attrs:{type:"index",width:"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TULNKID",label:"Lesion No","show-overflow-tooltip":"","min-width":"100"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Anatomy",label:"Anatomy","show-overflow-tooltip":"","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.TULOC+" "+t.row.TULAT+" "+t.row.TUDIR)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"LocDescription",label:"Anatomy Description","show-overflow-tooltip":"","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-input",{attrs:{disabled:e.isReportSaved,type:"text",placeholder:"",size:"small",clearable:""},model:{value:t.row.LocDescription,callback:function(i){e.$set(t.row,"LocDescription",i)},expression:"scope.row.LocDescription"}})]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Note",label:"Comments","show-overflow-tooltip":"","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-input",{attrs:{disabled:e.isReportSaved,type:"text",placeholder:"",size:"small",clearable:""},model:{value:t.row.Note,callback:function(i){e.$set(t.row,"Note",i)},expression:"scope.row.Note"}})]}}])})],1)],1),e._v(" "),i("el-collapse-item",{attrs:{title:"Unequivocal New Lesion",name:"UnequivocalNewLesion",disabled:""}},[i("el-table",{ref:"unequivocalNewLesionTable",attrs:{data:e.UnequivocalNewLesionList,stripe:"",size:"small"}},[i("el-table-column",{attrs:{type:"index",width:"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TULNKID",label:"Lesion No","show-overflow-tooltip":"","min-width":"100"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Anatomy",label:"Anatomy","show-overflow-tooltip":"","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.TULOC+" "+t.row.TULAT+" "+t.row.TUDIR)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"LocDescription",label:"Anatomy Description","show-overflow-tooltip":"","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-input",{attrs:{disabled:e.isReportSaved,type:"text",placeholder:"",size:"small",clearable:""},model:{value:t.row.LocDescription,callback:function(i){e.$set(t.row,"LocDescription",i)},expression:"scope.row.LocDescription"}})]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Note",label:"Comments","show-overflow-tooltip":"","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-input",{attrs:{disabled:e.isReportSaved,type:"text",placeholder:"",size:"small",clearable:""},model:{value:t.row.Note,callback:function(i){e.$set(t.row,"Note",i)},expression:"scope.row.Note"}})]}}])})],1)],1),e._v(" "),i("el-collapse-item",{attrs:{title:"Measurements Calculation",name:"MeasurementsCalculation",disabled:""}},[i("el-row",[i("el-col",{attrs:{span:6}},[i("div",{staticClass:"grid-content bg-purple"},[e._v("Sum of Diameter(SOD)(mm) :"+e._s(e.SumOfDiameter))])]),e._v(" "),i("el-col",{attrs:{span:6}},[i("div",{staticClass:"grid-content bg-purple-light"},[e._v("Non-nodular Lesions SOD(mm) :"+e._s(e.NonnodularLesionsSOD))])]),e._v(" "),i("el-col",{attrs:{span:6}},[i("div",{staticClass:"grid-content bg-purple"},[e._v("Baseline SOD :"+e._s(e.BaselineSOD))])]),e._v(" "),i("el-col",{attrs:{span:6}},[i("div",{staticClass:"grid-content bg-purple"},[e._v("Baseline SOD % change :"+e._s(e.BaselineSODChange))])])],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:6}},[i("div",{staticClass:"grid-content bg-purple-light"},[e._v("\n Timepoint of Nadir SOD :"+e._s(e.TimepointOfNadirSOD+"("+e.MinVisitInfo.MinSum+")")+"\n ")])]),e._v(" "),i("el-col",{attrs:{span:6}},[i("div",{staticClass:"grid-content bg-purple-light"},[e._v("Nadir SOD increase(mm) :"+e._s(e.NadirSODIncrease))])]),e._v(" "),i("el-col",{attrs:{span:6}},[i("div",{staticClass:"grid-content bg-purple-light"},[e._v("Nadir SOD % increase :"+e._s(e.NadirSODIncreasePercent))])])],1)],1),e._v(" "),i("el-collapse-item",{attrs:{title:"Efficacy Assessment",name:"EfficacyAssessment",disabled:""}},[i("el-form",{ref:"efficacyAssessmentForm",attrs:{model:e.efficacyAssessment,"label-width":"100px"}},[i("el-row",[i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{prop:"TargetLesion",label:"Target Lesion","label-width":"150px",rules:[{required:!1,message:"",trigger:"blur"}]}},[i("el-select",{attrs:{disabled:e.isReportSaved,clearable:"",size:"small"},on:{change:e.targetLesionAssessmentChange},model:{value:e.efficacyAssessment.TargetLesion,callback:function(t){e.$set(e.efficacyAssessment,"TargetLesion",t)},expression:"efficacyAssessment.TargetLesion"}},[i("el-option",{attrs:{value:"CR",label:"完全缓解(CR)"}}),e._v(" "),i("el-option",{attrs:{value:"PR",label:" 部分缓解(PR)"}}),e._v(" "),i("el-option",{attrs:{value:"PD",label:" 疾病进展(PD)"}}),e._v(" "),i("el-option",{attrs:{value:"SD",label:"疾病稳定(SD)"}}),e._v(" "),i("el-option",{attrs:{value:"NE",label:"不可评估(NE)"}})],1)],1)],1),e._v(" "),i("el-col",{attrs:{span:18}},[e.efficacyAssessment.RequireTargetLesionNote?i("el-form-item",{attrs:{prop:"TargetLesionNote",label:"Note: ",rules:[{required:!0,message:"",trigger:"blur"}]}},[i("el-input",{attrs:{size:"small",minlength:"2"},model:{value:e.efficacyAssessment.TargetLesionNote,callback:function(t){e.$set(e.efficacyAssessment,"TargetLesionNote",t)},expression:"efficacyAssessment.TargetLesionNote"}})],1):e._e()],1)],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{prop:"Non_targetLesion",label:"Non-target Lesion","label-width":"150px",rules:[{required:!0,message:"",trigger:"blur"}]}},[i("el-select",{attrs:{disabled:e.isReportSaved,clearable:"",size:"small"},on:{change:function(t){return e.non_targetLesionAssessmentChange(e.efficacyAssessment.Non_targetLesion)}},model:{value:e.efficacyAssessment.Non_targetLesion,callback:function(t){e.$set(e.efficacyAssessment,"Non_targetLesion",t)},expression:"efficacyAssessment.Non_targetLesion"}},[i("el-option",{attrs:{value:"CR",label:"完全缓解(CR)"}}),e._v(" "),i("el-option",{attrs:{value:"Non-CR/Non-PD",label:"非完全缓解/非疾病进展(Non-CR/Non-PD)"}}),e._v(" "),i("el-option",{attrs:{value:"PD",label:" 疾病进展(PD)"}}),e._v(" "),i("el-option",{attrs:{value:"NE",label:"不可评估(NE)"}})],1)],1)],1),e._v(" "),e.efficacyAssessment.RequireNon_targetLesionNote?i("el-col",{attrs:{span:18}},[i("el-form-item",{attrs:{prop:"Non_targetLesionNote",label:"Note: ",rules:[{required:!0,message:"",trigger:"blur"}]}},[i("el-input",{attrs:{size:"small",minlength:"2"},model:{value:e.efficacyAssessment.Non_targetLesionNote,callback:function(t){e.$set(e.efficacyAssessment,"Non_targetLesionNote",t)},expression:"efficacyAssessment.Non_targetLesionNote"}})],1)],1):e._e()],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{prop:"OverallAssessment",label:"Overall Assessment","label-width":"150px",rules:[{required:!0,message:"",trigger:"blur"}]}},[i("el-select",{attrs:{disabled:e.isReportSaved,clearable:"",size:"small"},on:{change:function(t){return e.overallAssessmentChange(e.efficacyAssessment.OverallAssessment)}},model:{value:e.efficacyAssessment.OverallAssessment,callback:function(t){e.$set(e.efficacyAssessment,"OverallAssessment",t)},expression:"efficacyAssessment.OverallAssessment"}},[i("el-option",{attrs:{value:"CR",label:"完全缓解(CR)"}}),e._v(" "),i("el-option",{attrs:{value:"PR",label:" 部分缓解(PR)"}}),e._v(" "),i("el-option",{attrs:{value:"PD",label:" 疾病进展(PD)"}}),e._v(" "),i("el-option",{attrs:{value:"SD",label:"疾病稳定(SD)"}}),e._v(" "),i("el-option",{attrs:{value:"NE",label:"不可评估(NE)"}})],1)],1)],1),e._v(" "),e.efficacyAssessment.RequireOverallAssessmentNote?i("el-col",{attrs:{span:18}},[i("el-form-item",{attrs:{label:"Note: ",prop:"OverallAssessmentNote",rules:[{required:!0,message:"",trigger:"blur"}]}},[i("el-input",{attrs:{size:"small",minlength:"2"},model:{value:e.efficacyAssessment.OverallAssessmentNote,callback:function(t){e.$set(e.efficacyAssessment,"OverallAssessmentNote",t)},expression:"efficacyAssessment.OverallAssessmentNote"}})],1)],1):e._e()],1)],1)],1),e._v(" "),i("el-collapse-item",{attrs:{title:"Comments",name:"Comments",disabled:""}},[i("el-form",{ref:"commentsForm",attrs:{model:e.reportResult,"label-width":"100px",inline:!0}},[i("el-form-item",{attrs:{prop:"DiseaseProgression",label:"Disease Progression","label-width":"150px",rules:[{required:!0,message:"",trigger:"blur"}]}},[i("el-input",{attrs:{disabled:e.isReportSaved,type:"textarea",size:"small"},model:{value:e.reportResult.DiseaseProgression,callback:function(t){e.$set(e.reportResult,"DiseaseProgression",t)},expression:"reportResult.DiseaseProgression"}})],1),e._v(" "),i("el-form-item",{attrs:{prop:"DiseaseProgression",label:"NotEvaluable","label-width":"100px"}},[i("el-input",{attrs:{disabled:e.isReportSaved,type:"textarea",size:"small"},model:{value:e.reportResult.NotEvaluable,callback:function(t){e.$set(e.reportResult,"NotEvaluable",t)},expression:"reportResult.NotEvaluable"}})],1),e._v(" "),i("el-form-item",{attrs:{prop:"Timepoint",label:"Timepoint","label-width":"100px"}},[i("el-input",{attrs:{disabled:e.isReportSaved,type:"textarea",size:"small"},model:{value:e.reportResult.Timepoint,callback:function(t){e.$set(e.reportResult,"Timepoint",t)},expression:"reportResult.Timepoint"}})],1)],1)],1)],1),e._v(" "),i("div",{attrs:{id:"footer"}},[i("el-button",{staticStyle:{float:"left","margin-left":"500px"},attrs:{type:"primary",disabled:e.isReportSaved},on:{click:e.addVistLine}},[e._v("Save")]),e._v(" "),i("el-button",{staticStyle:{float:"right","margin-right":"600px"},attrs:{type:"primary",disabled:e.isReportSaved},on:{click:e.submiteReport}},[e._v("Submit Report")])],1)],1)])},a=[],r=(i("28a5"),i("c5f6"),i("ac6a"),i("0a05")),o={name:"WorkloadTask",props:["globalRowVisitNum","visitTpCode"],data:function(){return{isReportSaved:!1,pageTPInfo:"",efficacyAssessment:{TargetLesion:"",RequireTargetLesionNote:!1,Non_targetLesion:"",RequireNon_targetLesionNote:!1,OverallAssessment:"",RequireOverallAssessmentNote:!1,efficacyAssessmentNote:""},previousOverallAssessment:{visitName:"",overallAssessment:""},measurementsCalculation:{SumOfDiameter:"",NonnodularLesionsSOD:"",BaselineSODChange:"",BaselineSOD:"",NadirSODIncrease:"",NadirSODIncreasePercent:"",TimepointOfNadirSOD:""},activeNames:["ImageQualityAssessment","Non-lymphNodeTarget","LymphNodeTarget","Non-targetLesion","EfficacyAssessment","Comments","PreviousNewLesion","EquivocalNewLesion","UnequivocalNewLesion","MeasurementsCalculation"],VisitNontargetLesionList:[],VisitNonlymphNodeTargetList:[],VisitLymphNodeTargetList:[],nonlymphNodeTargetSplitCount:0,nonlymphNodeTargetDisableIds:[],nonlymphNodeTargetSelectArray:[],BLNonlymphNodeTargetList:[],nonlymphNodeTargetMergeDisable:!0,nonlymphNodeTargetSplitDisable:!0,lymphNodeTargetSplitCount:0,lymphNodeTargetDisableIds:[],lymphNodeTargetSelectArray:[],BLLymphNodeTargetList:[],lymphNodeTargetMergeDisable:!0,lymphNodeTargetSplitDisable:!0,BLNontargetLesionList:[],PreviousNewLesionList:[],EquivocalNewLesionList:[],UnequivocalNewLesionList:[],imageLabelList:[],imageDataHasUpdate:!1,reportResult:{Qualified:"",DiseaseProgression:"",NotEvaluable:"",Timepoint:"",TrialCode:"",SubjectCode:"",VisitNum:"",VisitName:"",DiseaseSituation:"",Comment:"",TPId:"",DicomStudyId:""},MinVisitInfo:{MinSum:0,MinVistName:""}}},computed:{NonlymphNodeTargetSplitOrMergeArray:function(){var e=this;return this.BLNonlymphNodeTargetList.filter((function(t){return t.VISITNUM===e.pageTPInfo.VisitNum||-1!==t.TULNKID.indexOf("/")||-1!==t.TULNKID.indexOf(".")}))},LymphNodeTargetSplitOrMergeArray:function(){var e=this;return this.BLLymphNodeTargetList.filter((function(t){return t.VISITNUM===e.pageTPInfo.VisitNum||-1!==t.TULNKID.indexOf("/")||-1!==t.TULNKID.indexOf(".")}))},SumOfDiameter:function(){var e=0;return this.BLNonlymphNodeTargetList.forEach((function(t){return e+=Number(t.CurrentLesion.TRORRES)})),this.BLLymphNodeTargetList.forEach((function(t){return e+=Number(t.CurrentLesion.TRORRES)})),e.toFixed(1)},NonnodularLesionsSOD:function(){var e=0;return this.BLNonlymphNodeTargetList.forEach((function(t){return e+=Number(t.CurrentLesion.TRORRES)})),e.toFixed(1)},BaselineSODChange:function(){var e=0,t=0;return this.BLNonlymphNodeTargetList.forEach((function(i){e+=Number(i.CurrentLesion.TRORRES),t+=Number(i.TRORRES)})),this.BLLymphNodeTargetList.forEach((function(i){e+=Number(i.CurrentLesion.TRORRES),t+=Number(i.TRORRES)})),(100*(e-t)/t).toFixed(1)+"%"},BaselineSOD:function(){var e=0;return this.BLNonlymphNodeTargetList.forEach((function(t){e+=Number(t.TRORRES)})),this.BLLymphNodeTargetList.forEach((function(t){e+=Number(t.TRORRES)})),e},NadirSODIncrease:function(){var e=0;this.BLNonlymphNodeTargetList.forEach((function(t){e+=Number(t.CurrentLesion.TRORRES)})),this.BLLymphNodeTargetList.forEach((function(t){e+=Number(t.CurrentLesion.TRORRES)}));var t=this.MinVisitInfo.MinSum;return(e-t).toFixed(1)},NadirSODIncreasePercent:function(){var e=0;return this.BLNonlymphNodeTargetList.forEach((function(t){e+=Number(t.CurrentLesion.TRORRES)})),this.BLLymphNodeTargetList.forEach((function(t){e+=Number(t.CurrentLesion.TRORRES)})),(100*e/this.NadirSODIncrease).toFixed(1)+"%"},TimepointOfNadirSOD:function(){return this.MinVisitInfo.MinVistName}},created:function(){var e=this;this.pageTPInfo=this.$route.query,this.globalRowVisitNum&&(this.pageTPInfo.VisitNum=this.globalRowVisitNum,this.pageTPInfo.WorkloadCode=this.visitTpCode),this.isReportSaved=80===this.pageTPInfo.Status,this.reportResult.TpCode=this.pageTPInfo.WorkloadCode,this.reportResult.TrialCode=this.pageTPInfo.TrialCode,this.reportResult.SubjectCode=this.pageTPInfo.SubjectCode,this.reportResult.VisitNum=this.pageTPInfo.VisitNum,this.reportResult.VisitName=this.pageTPInfo.VisitName,this.reportResult.TPId=this.pageTPInfo.WorkloadId,this.reportResult.DicomStudyId=this.pageTPInfo.StudyId,Object(r["m"])(this.pageTPInfo.TrialCode,this.pageTPInfo.SubjectCode,this.pageTPInfo.VisitNum,this.pageTPInfo.WorkloadCode).then((function(t){e.BLNonlymphNodeTargetList=t.Result.BLLesionList.filter((function(e){return 1===e.LesionType})),e.BLLymphNodeTargetList=t.Result.BLLesionList.filter((function(e){return 2===e.LesionType})),e.BLNontargetLesionList=t.Result.BLLesionList.filter((function(e){return 3===e.LesionType})),e.MinVisitInfo=t.Result.MinVisitInfo,e.reportResult.TpCode=e.pageTPInfo.WorkloadCode,e.reportResult=t.Result.ReportResult?t.Result.ReportResult:e.reportResult,e.efficacyAssessment=t.Result.Efficacy,e.efficacyAssessment.RequireOverallAssessmentNote=e.efficacyAssessment.OverallAssessmentNote.length>0,e.efficacyAssessment.RequireTargetLesionNote=e.efficacyAssessment.TargetLesionNote.length>0,e.efficacyAssessment.RequireNon_targetLesionNote=e.efficacyAssessment.Non_targetLesionNote.length>0,e.PreviousNewLesionList=t.Result.PreviousNewLesionList,e.EquivocalNewLesionList=0!==t.Result.EquivocalNewLesionList.length?t.Result.EquivocalNewLesionList:e.EquivocalNewLesionList,e.UnequivocalNewLesionList=0!==t.Result.UnequivocalNewLesionList.length?t.Result.UnequivocalNewLesionList:e.UnequivocalNewLesionList,Object(r["i"])(e.pageTPInfo.WorkloadCode).then((function(t){t.Result.length>0&&(t.Result.forEach((function(t){e.imageLabelList.push(JSON.parse(t.LabelValue))})),e.handelImageLabelDataLogic(e.imageLabelList))}))}))},mounted:function(){var e=this;window.addEventListener("storage",(function(t){if(-1!==t.url.indexOf("baseLine")&&"measureData"===t.key){var i=JSON.parse(t.newValue),n=i[e.pageTPInfo.WorkloadCode];i&&(e.imageDataHasUpdate=!0,e.imageLabelList=[],n.forEach((function(t){return e.imageLabelList.push(t)})),e.handelImageLabelDataLogic(n),delete i[e.pageTPInfo.WorkloadCode],localStorage.setItem("measureData",JSON.stringify(i)))}}))},methods:{nonTargetLesionStatusChange:function(){this.efficacyAssessment.Non_targetLesion="",this.efficacyAssessment.OverallAssessment=""},targetLesionAssessmentChange:function(e){var t=this;if(e){var i=0,n=0,a=0,r=0,o=0,s=0;this.BLNonlymphNodeTargetList.forEach((function(e){e.CurrentLesion.TRORRES&&(a++,i+=Number(e.CurrentLesion.TRORRES)),e.TRORRES&&(n+=Number(e.TRORRES))}));var l=!0;if(this.BLLymphNodeTargetList.forEach((function(e){e.CurrentLesion.TRORRES&&(s++,r+=Number(e.CurrentLesion.TRORRES),e.CurrentLesion.TRORRES>=10&&(l=!1)),e.TRORRES&&(o+=Number(e.TRORRES))})),0===s&&0===a&&this.BLNonlymphNodeTargetList.length+this.BLLymphNodeTargetList.length>0&&this.$alert("基线有测量数据,当前未给基线的病灶选择访视数据,请确认","提示",{confirmButtonText:"确定"}),"CR"===e){if(i>0||!1===l)return void this.$confirm("完全缓解一般指的是非结节靶病灶的长径总和为0mm、所有靶淋巴结病灶的短径必须减少至10 mm,坚持自己的选择?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.efficacyAssessment.RequireTargetLesionNote=!0,t.$forceUpdate()})).catch((function(){t.efficacyAssessment.TargetLesion="",t.efficacyAssessment.TargetLesionNote="",t.efficacyAssessment.RequireTargetLesionNote=!1}))}else if("PR"===e){var c=(n+o-r-i)/(n+o);c<.3&&this.$confirm("部分缓解一般指的是靶病灶总径与基线相比减低至少30%. 当前为:"+(100*c).toFixed(2)+"%. 坚持自己的选择?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.efficacyAssessment.RequireTargetLesionNote=!0,t.$forceUpdate()})).catch((function(){t.efficacyAssessment.TargetLesion="",t.efficacyAssessment.TargetLesionNote="",t.efficacyAssessment.RequireTargetLesionNote=!1}))}else if("PD"===e){var u=(n+o-this.MinVisitInfo.MinSum)/this.MinVisitInfo.MinSum,d=n+o-this.MinVisitInfo.MinSum;u>=.2&&d>5||this.$confirm("疾病进展PD一般指的是以靶病灶直径之和的最小值为参照直径和增加≥20%且必须满足直径和的绝对值增加至少5 mm. 当前直径和增加:"+100*u+"%.坚持自己的选择?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.efficacyAssessment.RequireTargetLesionNote=!0,t.$forceUpdate()})).catch((function(){t.efficacyAssessment.TargetLesion="",t.efficacyAssessment.TargetLesionNote="",t.efficacyAssessment.RequireTargetLesionNote=!1}))}else if("SD"===e){var f=(n+o-r-i)/(n+o),h=(n+o-this.MinVisitInfo.MinSum)/this.MinVisitInfo.MinSum,p=n+o-this.MinVisitInfo.MinSum;f<.3||h<.2||p<5||this.$confirm("疾病稳定SD介于PR及PD之间.坚持自己的选择?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.efficacyAssessment.RequireTargetLesionNote=!0,t.$forceUpdate()})).catch((function(){t.efficacyAssessment.TargetLesion="",t.efficacyAssessment.TargetLesionNote="",t.efficacyAssessment.RequireTargetLesionNote=!1}))}}else this.efficacyAssessment.RequireTargetLesionNote=!1},non_targetLesionAssessmentChange:function(e){var t=this;if(e){var i=0;if(this.BLNontargetLesionList.forEach((function(e){e.CurrentLesion.TRORRESU&&i++})),i===this.BLNontargetLesionList.length){if(this.BLNontargetLesionList.length>0){var n=this.BLNontargetLesionList.filter((function(e){return"Disappear"===e.CurrentLesion.TRORRESU})).map((function(e,t){return e.CurrentLesion.TRORRESU}));if("CR"===e)n.length!==this.BLNontargetLesionList.length&&this.$confirm("完全缓解一般指的是:所有非靶病灶消失.坚持自己的选择?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.efficacyAssessment.RequireNon_targetLesionNote=!0,t.$forceUpdate()})).catch((function(){t.efficacyAssessment.Non_targetLesion="",t.efficacyAssessment.Non_targetLesionNote="",t.efficacyAssessment.RequireNon_targetLesionNote=!1}));else if("Non-CR/Non-PD"===e){var a=this.BLNontargetLesionList.filter((function(e){return"Exist"===e.CurrentLesion.TRORRESU})).map((function(e,t){return e.CurrentLesion.TRORRESU}));a.length<1&&this.$confirm("部分缓解一般指的是:存在一个或多个非靶病灶持续存在.坚持自己的选择?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.efficacyAssessment.RequireNon_targetLesionNote=!0,t.$forceUpdate()})).catch((function(){t.efficacyAssessment.Non_targetLesion="",t.efficacyAssessment.Non_targetLesionNote="",t.efficacyAssessment.RequireNon_targetLesionNote=!1}))}else if("PD"===e){var r=this.BLNontargetLesionList.filter((function(e){return"Identify progress"===e.CurrentLesion.TRORRESU})).map((function(e,t){return e.CurrentLesion.TRORRESU}));0===r.length&&this.$confirm("疾病进展一般指的是:已存在的非靶病灶出现明确进展.坚持自己的选择?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.efficacyAssessment.RequireNon_targetLesionNote=!0,t.$forceUpdate()})).catch((function(){t.efficacyAssessment.Non_targetLesion="",t.efficacyAssessment.Non_targetLesionNote="",t.efficacyAssessment.RequireNon_targetLesionNote=!1}))}}}else this.$alert("当前未填写完基线的非靶病灶选择访视数据,请确认","提示",{confirmButtonText:"确定"})}else this.efficacyAssessment.RequireNon_targetLesionNote=!1},overallAssessmentChange:function(e){var t=this;if(e){var i=0===this.UnequivocalNewLesionList.length;if(this.BLNonlymphNodeTargetList.length+this.BLNontargetLesionList.length>0){if(!this.efficacyAssessment.Non_targetLesion||!this.efficacyAssessment.TargetLesion)return this.$alert("请先选择靶病灶和非靶病灶评估结果后,再选择总体疗效","提示",{confirmButtonText:"确定"}),void(this.efficacyAssessment.OverallAssessment="");"CR"!==this.efficacyAssessment.TargetLesion||0!==this.BLNontargetLesionList.length&&"CR"!==this.efficacyAssessment.Non_targetLesion||!1!==i||"CR"===this.efficacyAssessment.OverallAssessment||this.$confirm("按照规则,总体疗效应为CR.坚持自己的选择?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.efficacyAssessment.RequireOverallAssessmentNote=!0,t.$forceUpdate()})).catch((function(){t.efficacyAssessment.OverallAssessment="",t.efficacyAssessment.OverallAssessmentNote="",t.efficacyAssessment.RequireOverallAssessmentNote=!1})),"CR"!==this.efficacyAssessment.TargetLesion||"Non-CR/Non-PD"!==this.efficacyAssessment.Non_targetLesion&&"NE"!==this.efficacyAssessment.Non_targetLesion||!1!==i||"PR"===this.efficacyAssessment.OverallAssessment||this.$confirm("按照规则,总体疗效应为PR.坚持自己的选择?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.efficacyAssessment.RequireOverallAssessmentNote=!0,t.$forceUpdate()})).catch((function(){t.efficacyAssessment.OverallAssessment="",t.efficacyAssessment.OverallAssessmentNote="",t.efficacyAssessment.RequireOverallAssessmentNote=!1})),"PR"!==this.efficacyAssessment.TargetLesion||"PD"===this.efficacyAssessment.Non_targetLesion&&"NE"!==this.efficacyAssessment.Non_targetLesion||!1!==i||"PR"===this.efficacyAssessment.OverallAssessment||this.$confirm("按照规则,总体疗效应为PR.坚持自己的选择?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.efficacyAssessment.RequireOverallAssessmentNote=!0,t.$forceUpdate()})).catch((function(){t.efficacyAssessment.OverallAssessment="",t.efficacyAssessment.OverallAssessmentNote="",t.efficacyAssessment.RequireOverallAssessmentNote=!1})),"SD"!==this.efficacyAssessment.TargetLesion||"PD"===this.efficacyAssessment.Non_targetLesion&&"NE"!==this.efficacyAssessment.Non_targetLesion||!1!==i||"SD"===this.efficacyAssessment.OverallAssessment||this.$confirm("按照规则,总体疗效应为SD.坚持自己的选择?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.efficacyAssessment.RequireOverallAssessmentNote=!0,t.$forceUpdate()})).catch((function(){t.efficacyAssessment.OverallAssessment="",t.efficacyAssessment.OverallAssessmentNote="",t.efficacyAssessment.RequireOverallAssessmentNote=!1})),"NE"===this.efficacyAssessment.TargetLesion&&"PD"!==this.efficacyAssessment.Non_targetLesion&&!1===i&&"NE"!==this.efficacyAssessment.OverallAssessment&&this.$confirm("按照规则,总体疗效应为NE.坚持自己的选择?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.efficacyAssessment.RequireOverallAssessmentNote=!0,t.$forceUpdate()})).catch((function(){t.efficacyAssessment.OverallAssessment="",t.efficacyAssessment.OverallAssessmentNote="",t.efficacyAssessment.RequireOverallAssessmentNote=!1})),"PD"!==this.efficacyAssessment.TargetLesion&&"PD"!==this.efficacyAssessment.Non_targetLesion&&!i||"PD"===this.efficacyAssessment.OverallAssessment||this.$confirm("按照规则,总体疗效应为PD.坚持自己的选择?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.efficacyAssessment.RequireOverallAssessmentNote=!0,t.$forceUpdate()})).catch((function(){t.efficacyAssessment.OverallAssessment="",t.efficacyAssessment.OverallAssessmentNote="",t.efficacyAssessment.RequireOverallAssessmentNote=!1}))}else{if(!this.efficacyAssessment.Non_targetLesion)return this.$alert("请先选择非靶病灶评估结果后,再选择总体疗效","提示",{confirmButtonText:"确定"}),void(this.efficacyAssessment.OverallAssessment="");"CR"===this.efficacyAssessment.Non_targetLesion&&!1===i&&"CR"!==this.efficacyAssessment.OverallAssessment&&this.$confirm("按照规则,总体疗效应为CR.坚持自己的选择?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.efficacyAssessment.RequireOverallAssessmentNote=!0,t.$forceUpdate()})).catch((function(){t.efficacyAssessment.OverallAssessment="",t.efficacyAssessment.OverallAssessmentNote="",t.efficacyAssessment.RequireOverallAssessmentNote=!1})),"Non-CR/Non-PD"===this.efficacyAssessment.Non_targetLesion&&!1===i&&"Non-CR/Non-PD"!==this.efficacyAssessment.OverallAssessment&&this.$confirm("按照规则,总体疗效应为Non-CR/Non-PD.坚持自己的选择?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.efficacyAssessment.RequireOverallAssessmentNote=!0,t.$forceUpdate()})).catch((function(){t.efficacyAssessment.OverallAssessment="",t.efficacyAssessment.OverallAssessmentNote="",t.efficacyAssessment.RequireOverallAssessmentNote=!1})),"NE"===this.efficacyAssessment.Non_targetLesion&&!1===i&&"NE"!==this.efficacyAssessment.OverallAssessment&&this.$confirm("按照规则,总体疗效应为NE.坚持自己的选择?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.efficacyAssessment.RequireOverallAssessmentNote=!0,t.$forceUpdate()})).catch((function(){t.efficacyAssessment.OverallAssessment="",t.efficacyAssessment.OverallAssessmentNote="",t.efficacyAssessment.RequireOverallAssessmentNote=!1})),!i&&"PD"!==this.efficacyAssessment.Non_targetLesion||"PD"===this.efficacyAssessment.OverallAssessment||this.$confirm("按照规则,总体疗效应为PD.坚持自己的选择?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.efficacyAssessment.RequireOverallAssessmentNote=!0,t.$forceUpdate()})).catch((function(){t.efficacyAssessment.OverallAssessment="",t.efficacyAssessment.OverallAssessmentNote="",t.efficacyAssessment.RequireOverallAssessmentNote=!1}))}}else this.efficacyAssessment.RequireOverallAssessmentNote=!1},handelImageLabelDataLogic:function(e){var t=this,i=e,n=i.filter((function(e){return 1===e.lesionType})),a=i.filter((function(e){return 2===e.lesionType})),r=i.filter((function(e){return 3===e.lesionType})),o=i.filter((function(e){return 4===e.lesionType})),s=i.filter((function(e){return 5===e.lesionType}));n.length>0&&(n.forEach((function(e){var t=e.lesionLocation.split("-");e.TRORRES=e.lesionValue.substring(0,e.lesionValue.length-2),e.TULOC=t[0]||"",e.TULAT=t[1]||"",e.TUDIR=t[2]||"",e.HasSelected=!1})),t.VisitNonlymphNodeTargetList=n,t.VisitNonlymphNodeTargetList.forEach((function(e){t.BLNonlymphNodeTargetList.forEach((function(t){t.CurrentLesion.TRORRES&&t.CurrentLesion.TRORRES===e.TRORRES&&(e.HasSelected=!0)}))}))),a.length>0&&(a.forEach((function(e){var t=e.lesionLocation.split("-");e.TRORRES=e.lesionValue.substring(0,e.lesionValue.length-2),e.TULOC=t[0]||"",e.TULAT=t[1]||"",e.TUDIR=t[2]||"",e.HasSelected=!1})),t.VisitLymphNodeTargetList=a,t.VisitLymphNodeTargetList.forEach((function(e){t.BLLymphNodeTargetList.forEach((function(t){t.CurrentLesion.TRORRES&&t.CurrentLesion.TRORRES===e.TRORRES&&(e.HasSelected=!0)}))}))),r.length>0&&r.forEach((function(e){var t=e.lesionLocation.split("-");e.TULOC=t[0]||"",e.TULAT=t[1]||"",e.TUDIR=t[2]||""})),o.length>0&&(o.forEach((function(e){var t=e.lesionLocation.split("-");e.TULOC=t[0]||"",e.TULAT=t[1]||"",e.TUDIR=t[2]||""})),t.EquivocalNewLesionList=o),s.length>0&&(s.forEach((function(e){var t=e.lesionLocation.split("-");e.TULOC=t[0]||"",e.TULAT=t[1]||"",e.TUDIR=t[2]||""})),t.UnequivocalNewLesionList=s)},handlenonlymphNodeTargetDelete:function(e){this.BLNonlymphNodeTargetList=this.BLNonlymphNodeTargetList.filter((function(t){return t.TULNKID!==e.TULNKID}))},nonlymphNodeTargetCoveredLesionChange:function(e){this.VisitNonlymphNodeTargetList.forEach((function(t){t.TRORRES===e.TRORRES&&(t.HasSelected=!1)})),e.TRORRES="",e.Note=""},lymphNodeTargetCoveredLesionChange:function(e){this.VisitLymphNodeTargetList.forEach((function(t){t.TRORRES===e.TRORRES&&(t.HasSelected=!1)})),e.TRORRES="",e.Note=""},nonlymphNodeTargetMeasurementChange:function(e){var t=this;if(this.efficacyAssessment.TargetLesion="",this.efficacyAssessment.OverallAssessment="",e.CurrentLesion.TRORRES){e.CurrentLesion.TRORRESCopy=e.CurrentLesion.TRORRES;var i=this.VisitNonlymphNodeTargetList.filter((function(t){return t.TRORRES===e.CurrentLesion.TRORRES}))[0];e.VISITNUM===this.pageTPInfo.VisitNum?(e.TULOC=i.TULOC,e.TULAT=i.TULAT,e.TUDIR=i.TUDIR):e.TULOC!==i.TULOC||e.TULAT!==i.TULAT||e.TUDIR!==i.TUDIR?this.$confirm("BaseLine: ".concat(e.TULOC+" "+e.TULAT+" "+e.TUDIR," Current: ").concat(i.TULOC+" "+i.TULAT+" "+i.TUDIR,",confirm ?"),"tips",{confirmButtonText:"Confirm",cancelButtonText:"Cancel",type:"warning"}).then((function(){t.VisitNonlymphNodeTargetList.forEach((function(t){t.TRORRES===e.CurrentLesion.TRORRES&&(t.HasSelected=!0)}))})).catch((function(){e.CurrentLesion.TRORRES="",t.VisitNonlymphNodeTargetList.forEach((function(t){t.TRORRES===e.CurrentLesion.TRORRESCopy&&(t.HasSelected=!1)}))})):this.VisitNonlymphNodeTargetList.forEach((function(t){t.TRORRES===e.CurrentLesion.TRORRES&&(t.HasSelected=!0)}))}else this.VisitNonlymphNodeTargetList.forEach((function(t){t.TRORRES===e.CurrentLesion.TRORRESCopy&&(t.HasSelected=!1)}));this.VisitNonlymphNodeTargetList.forEach((function(e){e.HasSelected=!1,t.BLNonlymphNodeTargetList.forEach((function(t){t.CurrentLesion.TRORRES&&t.CurrentLesion.TRORRES===e.TRORRES&&(e.HasSelected=!0)}))}))},nonlymphNodeTargetSplit:function(){var e=this,t=parseInt(this.nonlymphNodeTargetSplitCount);if(0!==t&&1!==t){var i=this.BLNonlymphNodeTargetList.filter((function(t){return t.TUSEQ===e.nonlymphNodeTargetSelectArray[0]}))[0];i.CurrentLesion.CoveredLesion="",i.CurrentLesion.Note="",i.CurrentLesion.TRORRES="";for(var n=1;n<=t;n++)this.BLNonlymphNodeTargetList.push({TULNKID:i.TULNKID+"."+n,TUGRPID:i.TULNKID,VISITNUM:this.pageTPInfo.VisitNum,CurrentLesion:{Note:this.nonlymphNodeTargetSelectArray[0]+"split"+n}});this.nonlymphNodeTargetSplitCount=0,this.$refs.nonlymphNodeTargetBLTable.clearSelection()}},nonlymphNodeTargetMerge:function(){var e=this,t=[];this.nonlymphNodeTargetSelectArray.forEach((function(i){var n=e.BLNonlymphNodeTargetList.filter((function(e){return e.TUSEQ===i}))[0];n.CurrentLesion.CoveredLesion="",n.CurrentLesion.Note="",n.CurrentLesion.TRORRES="",t.push(n.TULNKID)})),this.BLNonlymphNodeTargetList.push({VISITNUM:this.pageTPInfo.VisitNum,TULNKID:t.join("/"),CurrentLesion:{Note:this.nonlymphNodeTargetSelectArray.join("/")+"Merge"}}),this.$refs.nonlymphNodeTargetBLTable.clearSelection()},handleNonlymphNodeTargetListSelectionChange:function(e){for(var t=[],i=0;i<e.length;i++)t.push(e[i].TUSEQ);this.nonlymphNodeTargetSelectArray=t,this.nonlymphNodeTargetSelectArray.length>=2?(this.nonlymphNodeTargetSplitDisable=!0,this.nonlymphNodeTargetMergeDisable=!1):1===this.nonlymphNodeTargetSelectArray.length?(this.nonlymphNodeTargetSplitDisable=!1,this.nonlymphNodeTargetMergeDisable=!0):(this.nonlymphNodeTargetSplitDisable=!0,this.nonlymphNodeTargetMergeDisable=!0)},canNonlymphNodeTargetOpt:function(e){var t=!0;return e.VISITNUM===this.pageTPInfo.VisitNum&&(t=!1),this.NonlymphNodeTargetSplitOrMergeArray.forEach((function(i){-1!==i.TULNKID.indexOf(e.TULNKID)&&(t=!1)})),t},handlelymphNodeTargetDelete:function(e){this.BLLymphNodeTargetList=this.BLLymphNodeTargetList.filter((function(t){return t.TULNKID!==e.TULNKID}))},lymphNodeTargetMeasurementChange:function(e){var t=this;if(this.efficacyAssessment.TargetLesion="",this.efficacyAssessment.OverallAssessment="",e.CurrentLesion.TRORRES){e.CurrentLesion.TRORRESCopy=e.CurrentLesion.TRORRES;var i=this.VisitLymphNodeTargetList.filter((function(t){return t.TRORRES===e.CurrentLesion.TRORRES}))[0];e.VISITNUM===this.pageTPInfo.VisitNum?(e.TULOC=i.TULOC,e.TULAT=i.TULAT,e.TUDIR=i.TUDIR):e.TULOC!==i.TULOC||e.TULAT!==i.TULAT||e.TUDIR!==i.TUDIR?this.$confirm("BaseLine: ".concat(e.TULOC+" "+e.TULAT+" "+e.TUDIR," Current: ").concat(i.TULOC+" "+i.TULAT+" "+i.TUDIR,",confirm ?"),"tips",{confirmButtonText:"Confirm",cancelButtonText:"Cancel",type:"warning"}).then((function(){t.VisitLymphNodeTargetList.forEach((function(t){t.TRORRES===e.CurrentLesion.TRORRES&&(t.HasSelected=!0)}))})).catch((function(){e.CurrentLesion.TRORRES="",t.VisitLymphNodeTargetList.forEach((function(t){t.TRORRES===e.CurrentLesion.TRORRESCopy&&(t.HasSelected=!1)}))})):this.VisitLymphNodeTargetList.forEach((function(t){t.TRORRES===e.CurrentLesion.TRORRES&&(t.HasSelected=!0)}))}else this.VisitLymphNodeTargetList.forEach((function(t){t.TRORRES===e.CurrentLesion.TRORRESCopy&&(t.HasSelected=!1)}));this.VisitLymphNodeTargetList.forEach((function(e){e.HasSelected=!1,t.BLLymphNodeTargetList.forEach((function(t){t.CurrentLesion.TRORRES&&t.CurrentLesion.TRORRES===e.TRORRES&&(e.HasSelected=!0)}))}))},lymphNodeTargetSplit:function(){var e=this,t=parseInt(this.lymphNodeTargetSplitCount);if(0!==t&&1!==t){var i=this.BLLymphNodeTargetList.filter((function(t){return t.TUSEQ===e.lymphNodeTargetSelectArray[0]}))[0];i.CurrentLesion.CoveredLesion="",i.CurrentLesion.Note="",i.CurrentLesion.TRORRES="";for(var n=1;n<=t;n++)this.BLLymphNodeTargetList.push({VISITNUM:this.pageTPInfo.VisitNum,TULNKID:i.TULNKID+"."+n,TUGRPID:i.TULNKID,CurrentLesion:{Note:this.lymphNodeTargetSelectArray[0]+"split"+n}});this.lymphNodeTargetSplitCount=0,this.$refs.lymphNodeTargetBLTable.clearSelection()}},lymphNodeTargetMerge:function(){var e=this,t=[];this.lymphNodeTargetSelectArray.forEach((function(i){var n=e.BLLymphNodeTargetList.filter((function(e){return e.TUSEQ===i}))[0];n.CurrentLesion.CoveredLesion="",n.CurrentLesion.Note="",n.CurrentLesion.TRORRES="",t.push(n.TULNKID)})),this.BLLymphNodeTargetList.push({VISITNUM:this.pageTPInfo.VisitNum,TULNKID:t.join("/"),CurrentLesion:{Note:this.lymphNodeTargetSelectArray.join("/")+"Merge"}}),this.$refs.lymphNodeTargetBLTable.clearSelection()},handleLymphNodeTargetListSelectionChange:function(e){for(var t=[],i=0;i<e.length;i++)t.push(e[i].TUSEQ);this.lymphNodeTargetSelectArray=t,this.lymphNodeTargetSelectArray.length>=2?(this.lymphNodeTargetSplitDisable=!0,this.lymphNodeTargetMergeDisable=!1):1===this.lymphNodeTargetSelectArray.length?(this.lymphNodeTargetSplitDisable=!1,this.lymphNodeTargetMergeDisable=!0):(this.lymphNodeTargetSplitDisable=!0,this.lymphNodeTargetMergeDisable=!0)},canLymphNodeTargetOpt:function(e){var t=!0;return e.VISITNUM===this.pageTPInfo.VisitNum&&(t=!1),this.LymphNodeTargetSplitOrMergeArray.forEach((function(i){-1!==i.TULNKID.indexOf(e.TULNKID)&&(t=!1)})),t},submiteReport:function(){var e=this;Object(r["q"])(this.pageTPInfo.WorkloadId).then((function(t){e.$message.success("Report saved successfully"),e.isReportSaved=!0}))},saveImageLabel:function(){var e=this,t={};t.TpCode=this.pageTPInfo.WorkloadCode,t.ImageLabelList=[],this.imageLabelList.forEach((function(i){t.ImageLabelList.push({StudyId:e.pageTPInfo.StudyId,LabelValue:JSON.stringify(i),SeriesId:i.seriesId,InstanceId:i.instanceId})})),Object(r["o"])(t).then((function(t){e.imageDataHasUpdate=!1,e.$message.success("saved imgeLable successfully")}))},addVistLine:function(){var e=this,t=this,i=!0,n=!0,a=!0;if(this.$refs.qualifiedForm.validate((function(e){e||(i=!1)})),this.$refs.commentsForm.validate((function(e){e||(n=!1)})),this.$refs.efficacyAssessmentForm.validate((function(e){e||(a=!1)})),i&&n&&a){var o=[],s=[];this.BLNonlymphNodeTargetList.forEach((function(t){t.VISITNUM===e.pageTPInfo.VisitNum?s.push({LesionType:1,STUDYID:e.pageTPInfo.TrialCode,USUBJID:e.pageTPInfo.SubjectCode,TUSPID:e.pageTPInfo.Sponsor,TUGRPID:t.TUGRPID,TULNKID:t.TULNKID,TUTESTCD:"TUMIDENT",TUTEST:"Tumor Identification",TUORRES:"TARGET",TUSTRESC:"TARGET",TUNAM:"zhizhun",LocDescription:t.LocDescription,TULOC:t.TULOC,TULAT:t.TULAT,TUDIR:t.TUDIR,TUPORTOT:"",TUMETHOD:"",TUEVAL:"",TUEVALID:"",TUACPTFL:"",VISITNUM:e.pageTPInfo.VisitNum,VISIT:e.pageTPInfo.VisitName,VISITDY:0,EPOCH:"",TUDTC:"",TUDY:0,TRTESTCD:"",TRTEST:"",TRORRES:t.CurrentLesion.TRORRES,TRORRESU:"",TRSTRESC:"",TRSTRESN:0,TRSTRESU:"",TRSTAT:"",TRREASND:"",Note:t.CurrentLesion.Note,TRGRPID:"",TRDTC:"",TRDY:0,CoveredLesion:t.CurrentLesion.CoveredLesion}):t.VISITNUM!==e.pageTPInfo.VisitNum&&t.CurrentLesion.CoveredLesion&&o.push({STUDYID:e.pageTPInfo.TrialCode,TRSPID:e.pageTPInfo.Sponsor,DOMAIN:"",USUBJID:e.pageTPInfo.SubjectCode,TRGRPID:"",TRREFID:"",TRLNKID:t.TULNKID,TRLNKGRP:"",TRTESTCD:"",TRTEST:"",TRORRES:t.CurrentLesion.TRORRES,TRORRESU:t.CurrentLesion.TRORRESU,TRSTRESC:"",TRSTRESN:0,TRSTRESU:"",TRSTAT:"",TRREASND:"",TRNAM:"",TRMETHOD:"",TREVAL:"",TREVALID:"",TRACPTFL:"",VISITNUM:e.pageTPInfo.VisitNum,VISIT:e.pageTPInfo.VisitName,VISITDY:0,EPOCH:"",TRDTC:"",TRDY:0,Note:t.CurrentLesion.Note,CoveredLesion:t.CurrentLesion.CoveredLesion})})),this.BLLymphNodeTargetList.forEach((function(t){t.VISITNUM===e.pageTPInfo.VisitNum?s.push({LesionType:2,STUDYID:e.pageTPInfo.TrialCode,USUBJID:e.pageTPInfo.SubjectCode,TUSPID:e.pageTPInfo.Sponsor,TUGRPID:t.TUGRPID,TULNKID:t.TULNKID,TUTESTCD:"TUMIDENT",TUTEST:"Tumor Identification",TUORRES:"TARGET",TUSTRESC:"TARGET",TUNAM:"zhizhun",LocDescription:t.LocDescription,TULOC:t.TULOC,TULAT:t.TULAT,TUDIR:t.TUDIR,TUPORTOT:"",TUMETHOD:"",TUEVAL:"",TUEVALID:"",TUACPTFL:"",VISITNUM:e.pageTPInfo.VisitNum,VISIT:e.pageTPInfo.VisitName,VISITDY:0,EPOCH:"",TUDTC:"",TUDY:0,TRTESTCD:"",TRTEST:"",TRORRES:t.CurrentLesion.TRORRES,TRORRESU:"",TRSTRESC:"",TRSTRESN:0,TRSTRESU:"",TRSTAT:"",TRREASND:"",Note:t.CurrentLesion.Note,TRGRPID:"",TRDTC:"",TRDY:0,CoveredLesion:t.CurrentLesion.CoveredLesion}):t.VISITNUM!==e.pageTPInfo.VisitNum&&t.CurrentLesion.CoveredLesion&&o.push({STUDYID:e.pageTPInfo.TrialCode,TRSPID:e.pageTPInfo.Sponsor,DOMAIN:"",USUBJID:e.pageTPInfo.SubjectCode,TRGRPID:"",TRREFID:"",TRLNKID:t.TULNKID,TRLNKGRP:"",TRTESTCD:"",TRTEST:"",TRORRES:t.CurrentLesion.TRORRES,TRORRESU:t.CurrentLesion.TRORRESU,TRSTRESC:"",TRSTRESN:0,TRSTRESU:"",TRSTAT:"",TRREASND:"",TRNAM:"",TRMETHOD:"",TREVAL:"",TREVALID:"",TRACPTFL:"",VISITNUM:e.pageTPInfo.VisitNum,VISIT:e.pageTPInfo.VisitName,VISITDY:0,EPOCH:"",TRDTC:"",TRDY:0,Note:t.CurrentLesion.Note,CoveredLesion:t.CurrentLesion.CoveredLesion})})),this.BLNontargetLesionList.forEach((function(t){o.push({STUDYID:e.pageTPInfo.TrialCode,TRSPID:e.pageTPInfo.Sponsor,DOMAIN:"",USUBJID:e.pageTPInfo.SubjectCode,TRGRPID:"",TRREFID:"",TRLNKID:t.TULNKID,TRLNKGRP:"",TRTESTCD:"",TRTEST:"",TRORRES:t.CurrentLesion.TRORRES,TRORRESU:t.CurrentLesion.TRORRESU,TRSTRESC:"",TRSTRESN:0,TRSTRESU:"",TRSTAT:"",TRREASND:"",TRNAM:"",TRMETHOD:"",TREVAL:"",TREVALID:"",TRACPTFL:"",VISITNUM:e.pageTPInfo.VisitNum,VISIT:e.pageTPInfo.VisitName,VISITDY:0,EPOCH:"",TRDTC:"",TRDY:0,Note:t.CurrentLesion.Note})})),this.PreviousNewLesionList.forEach((function(t){o.push({STUDYID:e.pageTPInfo.TrialCode,TRSPID:e.pageTPInfo.Sponsor,DOMAIN:"",USUBJID:e.pageTPInfo.SubjectCode,TRGRPID:"",TRREFID:"",TRLNKID:t.TULNKID,TRLNKGRP:"",TRTESTCD:"",TRTEST:"",TRORRES:t.CurrentLesion.TRORRES,TRORRESU:t.CurrentLesion.TRORRESU,TRSTRESC:"",TRSTRESN:0,TRSTRESU:"",TRSTAT:"",TRREASND:"",TRNAM:"",TRMETHOD:"",TREVAL:"",TREVALID:"",TRACPTFL:"",VISITNUM:e.pageTPInfo.VisitNum,VISIT:e.pageTPInfo.VisitName,VISITDY:0,EPOCH:"",TRDTC:"",TRDY:0,Note:t.CurrentLesion.Note})})),this.EquivocalNewLesionList.forEach((function(t){s.push({LesionType:4,STUDYID:e.pageTPInfo.TrialCode,USUBJID:e.pageTPInfo.SubjectCode,TUSPID:e.pageTPInfo.Sponsor,TUGRPID:t.TUGRPID,TULNKID:t.TULNKID,TUTESTCD:"TUMIDENT",TUTEST:"Tumor Identification",TUORRES:"",TUSTRESC:"",TUNAM:"",LocDescription:t.LocDescription,TULOC:t.TULOC,TULAT:t.TULAT,TUDIR:t.TUDIR,TUPORTOT:"",TUMETHOD:"",TUEVAL:"",TUEVALID:"",TUACPTFL:"",VISITNUM:e.pageTPInfo.VisitNum,VISIT:e.pageTPInfo.VisitName,VISITDY:0,EPOCH:"",TUDTC:"",TUDY:0,TRTESTCD:"",TRTEST:"",TRORRES:t.TRORRES,TRORRESU:"",TRSTRESC:"",TRSTRESN:0,TRSTRESU:"",TRSTAT:"",TRREASND:"",Note:t.Note,TRGRPID:"",TRDTC:"",TRDY:0})})),this.UnequivocalNewLesionList.forEach((function(t){s.push({LesionType:5,STUDYID:e.pageTPInfo.TrialCode,USUBJID:e.pageTPInfo.SubjectCode,TUSPID:e.pageTPInfo.Sponsor,TUGRPID:t.TUGRPID,TULNKID:t.TULNKID,TUTESTCD:"TUMIDENT",TUTEST:"Tumor Identification",TUORRES:"",TUSTRESC:"",TUNAM:"",LocDescription:t.LocDescription,TULOC:t.TULOC,TULAT:t.TULAT,TUDIR:t.TUDIR,TUPORTOT:"",TUMETHOD:"",TUEVAL:"",TUEVALID:"",TUACPTFL:"",VISITNUM:e.pageTPInfo.VisitNum,VISIT:e.pageTPInfo.VisitName,VISITDY:0,EPOCH:"",TUDTC:"",TUDY:0,TRTESTCD:"",TRTEST:"",TRORRES:t.TRORRES,TRORRESU:"",TRSTRESC:"",TRSTRESN:0,TRSTRESU:"",TRSTAT:"",TRREASND:"",Note:t.Note,TRGRPID:"",TRDTC:"",TRDY:0})}));var l=[],c={StudyGuid:this.pageTPInfo.StudyId,TrialGuid:this.pageTPInfo.TrialId,SubjectGuid:this.pageTPInfo.SubjectId,STUDYID:this.pageTPInfo.TrialCode,DOMAIN:"",USUBJID:this.pageTPInfo.SubjectCode,RSGRPID:"",RSREFID:"",RSSPID:this.pageTPInfo.Sponsor,RSLNKID:"",RSLNKGRP:"",RSTESTCD:"TRGRESP",RSTEST:"Target Response",RSCAT:"",RSORRES:this.efficacyAssessment.TargetLesion,RSSTRESC:this.efficacyAssessment.TargetLesion,RSSTAT:"",RSREASND:"",RSNAM:"",RSEVAL:"",RSEVALID:"",RSACPTFL:"",VISITNUM:this.pageTPInfo.VisitNum,VISIT:this.pageTPInfo.VisitName,VISITDY:0,EPOCH:"",RSDTC:"",RSDY:0},u=JSON.parse(JSON.stringify(c));c.Note=this.efficacyAssessment.TargetLesionNote,u.RSTESTCD="NTRGRESP",u.RSTEST="Non-target Response",u.RSORRES=this.efficacyAssessment.Non_targetLesion,u.RSSTRESC=this.efficacyAssessment.Non_targetLesion,u.Note=this.efficacyAssessment.Non_targetLesionNote;var d=JSON.parse(JSON.stringify(c));d.RSTESTCD="OVRLRESP",d.RSTEST="Overall Response",d.RSORRES=this.efficacyAssessment.OverallAssessment,d.RSSTRESC=this.efficacyAssessment.OverallAssessment,d.Note=this.efficacyAssessment.OverallAssessmentNote,l.push(c),l.push(u),l.push(d);var f={STUDYID:this.pageTPInfo.TrialCode,TRSPID:this.pageTPInfo.Sponsor,DOMAIN:"",USUBJID:this.pageTPInfo.SubjectCode,TRGRPID:"",TRREFID:"",TRLNKID:"",TRLNKGRP:"",TRTESTCD:"",TRTEST:"",TRORRES:"",TRORRESU:"",TRSTRESC:"",TRSTRESN:0,TRSTRESU:"",TRSTAT:"",TRREASND:"",TRNAM:"",TRMETHOD:"",TREVAL:"",TREVALID:"",TRACPTFL:"",VISITNUM:this.pageTPInfo.VisitNum,VISIT:this.pageTPInfo.VisitName,VISITDY:0,EPOCH:"",TRDTC:"",TRDY:0,Note:""},h=JSON.parse(JSON.stringify(f));h.TRTEST="Sum of Diameter",h.TRTESTCD="SUMDIAM",h.TRORRES=this.SumOfDiameter;var p=JSON.parse(JSON.stringify(f));p.TRTEST="Sum Diameters of Non Lymph NodeTumors",p.TRTESTCD="SUMNLNLD",p.TRORRES=this.NonnodularLesionsSOD,o.push(h),o.push(p),this.$confirm("Sure fill in all the information?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){Object(r["p"])({LesionInformation:s,TrList:o,ReportResult:e.reportResult,RSList:l,PreviousOverallAssessment:e.previousOverallAssessment}).then((function(t){e.$message.success("added successfully")}))})),t.imageDataHasUpdate&&t.saveImageLabel()}}}},s=o,l=(i("38a6"),i("2877")),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},"54fb":function(e,t){function i(e){e.eachSeriesByType("map",(function(e){var t=e.get("color"),i=e.getModel("itemStyle"),n=i.get("areaColor"),a=i.get("color")||t[e.seriesIndex%t.length];e.getData().setVisual({areaColor:n,color:a})}))}e.exports=i},"551d":function(e,t,i){"use strict";i("f380")},"551f":function(e,t,i){var n=i("282b"),a=n([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]),r={getItemStyle:function(e,t){var i=a(this,e,t),n=this.getBorderLineDash();return n&&(i.lineDash=n),i},getBorderLineDash:function(){var e=this.get("borderType");return"solid"===e||null==e?null:"dashed"===e?[5,5]:[1,1]}};e.exports=r},5522:function(e,t,i){i("23e0"),i("1748"),i("6c12")},5524:function(e,t,i){},5572:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"visitForm",attrs:{model:e.form,rules:e.rules,"label-width":"150px",size:"small"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:e.$t("trials:crcUpload:form:subjectId"),prop:"SubjectId"}},[""===e.form.Id?i("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",filterable:""},on:{change:e.handleSubjectChange},model:{value:e.form.SubjectId,callback:function(t){e.$set(e.form,"SubjectId",t)},expression:"form.SubjectId"}},e._l(e.subjectOptions,(function(e){return i("el-option",{key:e.SubjectId,attrs:{label:e.Code,value:e.SubjectId,disabled:3===e.Status}})})),1):i("el-input",{attrs:{disabled:""},model:{value:e.form.SubjectCode,callback:function(t){e.$set(e.form,"SubjectCode",t)},expression:"form.SubjectCode"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:crcUpload:form:visitName"),prop:"VisitName"}},[i("el-input",{staticStyle:{width:"100%"},attrs:{disabled:1*e.data.SubmitState===2||e.form.InPlan||e.form.IsFinalVisit},model:{value:e.form.VisitName,callback:function(t){e.$set(e.form,"VisitName",t)},expression:"form.VisitName"}}),e._v(" "),!e.form.InPlan&&e.form.IsFinalVisit?i("span",{staticStyle:{color:"red"}},[e._v("\n *"+e._s(e.$t("trials:crcUpload:form:setFinalAssessment1").replaceAll("xxx",e.otherInfo.OutEnrollmentVisitName))+"\n ")]):e._e()],1),e._v(" "),e.form.InPlan?e._e():i("el-form-item",{attrs:{label:e.$t("trials:crcUpload:form:preVisitName"),prop:"OutPlanPreviousVisitId"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",filterable:"",disabled:1*e.data.SubmitState===2},on:{change:e.handleSubjectVisitChange},model:{value:e.form.OutPlanPreviousVisitId,callback:function(t){e.$set(e.form,"OutPlanPreviousVisitId",t)},expression:"form.OutPlanPreviousVisitId"}},e._l(e.subjectVisitOptions,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.VisitName,value:e.Id}})})),1)],1),e._v(" "),e.form.IsBaseLine&&e.otherInfo.IsHaveFirstGiveMedicineDate&&""!==e.form.Id?i("el-form-item",{attrs:{label:e.$t("trials:crcUpload:form:baseDateOfVisit")}},[i("el-date-picker",{attrs:{type:"date","picker-options":e.pickerOption,"value-format":"yyyy-MM-dd",format:"yyyy-MM-dd"},model:{value:e.form.SubjectFirstGiveMedicineTime,callback:function(t){e.$set(e.form,"SubjectFirstGiveMedicineTime",t)},expression:"form.SubjectFirstGiveMedicineTime"}})],1):e._e()],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.cancel}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading,disabled:e.isDisabled},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)])},a=[],r=i("db72"),o=(i("ac6a"),i("456d"),i("96cf"),i("3b8d")),s=i("3e42"),l={name:"VisitForm",props:{data:{type:Object,default:function(){return{}}},otherInfo:{type:Object,default:function(){return{}}}},data:function(){return{siteOptions:[],subjectOptions:[],subjectVisitOptions:[],btnLoading:!1,form:{Id:"",SiteId:"",SubjectId:"",VisitName:"",VisitNum:"",OutPlanPreviousVisitId:null,LastVisit:"",VisitExecuted:0,InPlan:!1,SubjectFirstGiveMedicineTime:"",IsEnrollmentConfirm:!1,PDState:0,IsLostVisit:!1,IsFinalVisit:!1},rules:{SiteId:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur"]}],SubjectId:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur"]}],VisitName:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:["blur","change"]}],LastVisit:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur"]}],OutPlanPreviousVisitId:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur"]}]},loading:!1,isDisabled:!1,pickerOption:{disabledDate:function(e){return e.getTime()>Date.now()}},trialId:this.$route.query.trialId,showFinalVisitWarning:!1}},computed:{isUploadedData:function(){var e=this.data.NoneDicomStudyCount+this.data.DicomStudyCount;return e>0}},mounted:function(){console.log(this.$d.YesOrNo),this.initForm()},methods:{initForm:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,i,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.loading=!0,this.isDisabled=!0,e.next=4,Object(s["Zd"])(this.trialId);case 4:if(t=e.sent,this.siteOptions=t.Result,this.form.SiteId=this.siteOptions[0].SiteId,this.handleSiteChange(this.form.SiteId),!Object.keys(this.data).length||!this.data.Id){e.next=15;break}return e.next=11,Object(s["rd"])(this.data.SubjectId);case 11:i=e.sent,n=i.Result,this.subjectVisitOptions=n,this.form=Object(r["a"])({},this.data);case 15:this.form.TrialId=this.trialId,this.loading=!1,this.isDisabled=!1;case 18:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),handleSave:function(){var e=this;this.$refs.visitForm.validate((function(t){t&&(e.btnLoading=!0,e.form.TrialId=e.trialId,Object(s["z"])(e.form).then((function(t){e.btnLoading=!1,e.$emit("getList"),e.$emit("closeDialog"),e.$message.success(e.$t("common:message:savedSuccessfully"))})).catch((function(){e.btnLoading=!1})))}))},cancel:function(){this.$emit("closeDialog")},getSubjectList:function(){var e=this;Object(s["pd"])(this.form.SiteId,this.trialId).then((function(t){e.subjectOptions=t.Result}))},handleSiteChange:function(e){this.form.SubjectId="",this.subjectVisitOptions=[],e?this.getSubjectList():this.subjectOptions=[]},getVisitList:function(){var e=this;Object(s["rd"])(this.form.SubjectId).then((function(t){e.subjectVisitOptions=t.Result}))},handleSubjectChange:function(e){this.form.LastVisit="",this.form.VisitNum="",e?this.getVisitList():this.subjectVisitOptions=[]},handleSubjectVisitChange:function(e){if(e){var t=this.subjectVisitOptions.filter((function(t){return t.Id===e}));this.form.VisitNum=t[0].VisitNum+.1}},handleIsFinalVisitChange:function(e){!this.form.InPlan&&e?this.form.VisitName=this.otherInfo.OutEnrollmentVisitName:this.form.InPlan||(this.form.VisitName=this.data.VisitName),e?(this.showFinalVisitWarning=!0,this.form.IsLostVisit=!1):this.showFinalVisitWarning=!1},handlePdStateChange:function(e){e&&(this.form.IsLostVisit=!1)}}},c=l,u=i("2877"),d=Object(u["a"])(c,n,a,!1,null,null,null);t["default"]=d.exports},5576:function(e,t,i){var n=i("6d8b"),a=i("4a01"),r=i("88b3"),o="\0_ec_dataZoom_roams";function s(e,t){var i=u(e),a=t.dataZoomId,o=t.coordId;n.each(i,(function(e,i){var r=e.dataZoomInfos;r[a]&&n.indexOf(t.allCoordIds,o)<0&&(delete r[a],e.count--)})),f(i);var s=i[o];s||(s=i[o]={coordId:o,dataZoomInfos:{},count:0},s.controller=d(e,s),s.dispatchAction=n.curry(h,e)),!s.dataZoomInfos[a]&&s.count++,s.dataZoomInfos[a]=t;var l=p(s.dataZoomInfos);s.controller.enable(l.controlType,l.opt),s.controller.setPointerChecker(t.containsPoint),r.createOrUpdate(s,"dispatchAction",t.dataZoomModel.get("throttle",!0),"fixRate")}function l(e,t){var i=u(e);n.each(i,(function(e){e.controller.dispose();var i=e.dataZoomInfos;i[t]&&(delete i[t],e.count--)})),f(i)}function c(e){return e.type+"\0_"+e.id}function u(e){var t=e.getZr();return t[o]||(t[o]={})}function d(e,t){var i=new a(e.getZr());return n.each(["pan","zoom","scrollMove"],(function(e){i.on(e,(function(i){var a=[];n.each(t.dataZoomInfos,(function(n){if(i.isAvailableBehavior(n.dataZoomModel.option)){var r=(n.getRange||{})[e],o=r&&r(t.controller,i);!n.dataZoomModel.get("disabled",!0)&&o&&a.push({dataZoomId:n.dataZoomId,start:o[0],end:o[1]})}})),a.length&&t.dispatchAction(a)}))})),i}function f(e){n.each(e,(function(t,i){t.count||(t.controller.dispose(),delete e[i])}))}function h(e,t){e.dispatchAction({type:"dataZoom",batch:t})}function p(e){var t,i="type_",a={type_true:2,type_move:1,type_false:0,type_undefined:-1},r=!0;return n.each(e,(function(e){var n=e.dataZoomModel,o=!n.get("disabled",!0)&&(!n.get("zoomLock",!0)||"move");a[i+o]>a[i+t]&&(t=o),r&=n.get("preventDefaultMouseMove",!0)})),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!r}}}t.register=s,t.unregister=l,t.generateCoordId=c},5582:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"questionForm",attrs:{model:e.form,"label-width":"120px",size:"small",rules:e.rules}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:e.$t("trials:qcCfg:table:questionName"),prop:"QuestionName"}},[i("el-input",{model:{value:e.form.QuestionName,callback:function(t){e.$set(e.form,"QuestionName",t)},expression:"form.QuestionName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:qcCfg:table:type")}},[i("el-select",{on:{change:function(t){e.typeChange(t,e.form)}},model:{value:e.form.Type,callback:function(t){e.$set(e.form,"Type",t)},expression:"form.Type"}},e._l(e.$d.QcType,(function(e){return i("el-option",{key:e.value,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),"select"===e.form.Type||"radio"===e.form.Type?i("el-form-item",{attrs:{label:e.$t("trials:qcCfg:table:typeValue"),prop:"TypeValue"}},[i("el-input",{attrs:{placeholder:e.$t("trials:qcCfg:message:typeValue"),type:"textarea",autosize:{minRows:2,maxRows:4}},model:{value:e.form.TypeValue,callback:function(t){e.$set(e.form,"TypeValue",t)},expression:"form.TypeValue"}})],1):e._e(),e._v(" "),"select"===e.form.Type||"radio"===e.form.Type?i("el-form-item",{attrs:{label:e.$t("trials:medicalFeedbackCfg:title:taskType"),prop:"ReadingCategory"}},[i("el-select",{on:{change:function(t){e.readingCategoryChange(t,e.form)}},model:{value:e.form.ReadingCategory,callback:function(t){e.$set(e.form,"ReadingCategory",t)},expression:"form.ReadingCategory"}},e._l(e.$d.ReadingCategory,(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})})),1)],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:qcCfg:table:parentQs")}},[i("el-select",{attrs:{clearable:""},on:{change:function(t){e.parentQuestionChange(t,e.form)}},model:{value:e.form.ParentId,callback:function(t){e.$set(e.form,"ParentId",t)},expression:"form.ParentId"}},e._l(e.parentOptions,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.QuestionName,value:e.Id}})})),1)],1),e._v(" "),e.form.ParentId?i("el-form-item",{attrs:{label:e.$t("trials:qcCfg:table:parentTriggerValue"),prop:"ParentTriggerValue"}},[i("el-select",{model:{value:e.form.ParentTriggerValue,callback:function(t){e.$set(e.form,"ParentTriggerValue",t)},expression:"form.ParentTriggerValue"}},e._l(e.parentTriggerValOptions,(function(e){return i("el-option",{key:e,attrs:{label:e,value:e}})})),1)],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:qcCfg:table:order"),prop:"ShowOrder"}},[i("el-input-number",{attrs:{"controls-position":"right",min:0},model:{value:e.form.ShowOrder,callback:function(t){e.$set(e.form,"ShowOrder",t)},expression:"form.ShowOrder"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:qcCfg:table:isRequired")}},[i("el-radio-group",{model:{value:e.form.IsRequired,callback:function(t){e.$set(e.form,"IsRequired",t)},expression:"form.IsRequired"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"IsRequired"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:qcCfg:table:isEnable")}},[i("el-radio-group",{model:{value:e.form.IsEnable,callback:function(t){e.$set(e.form,"IsEnable",t)},expression:"form.IsEnable"}},e._l(e.$d.IsEnable,(function(t){return i("el-radio",{key:t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleClose}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])},a=[],r=(i("456d"),i("20d6"),i("96cf"),i("3b8d")),o=(i("ac6a"),i("5df3"),i("4f7f"),i("28a5"),i("3e42")),s={name:"MedicalAuditQSFrom",props:{data:{type:Object,default:function(){return{}}},trialReadingCriterionId:{type:String,default:function(){return""}}},data:function(){var e=this,t=function(t,i,n){if(""===i)n(new Error(e.$t("common:ruleMessage:specify")));else{var a=i.split("|");new Set(a).size!==a.length?n(new Error(e.$t("trials:medicalFeedbackCfg:message:msg2"))):n()}};return{form:{Id:"",QuestionName:"",IsRequired:!0,IsEnable:!0,Type:"select",TypeValue:"",ShowOrder:0,ParentId:"",ParentTriggerValue:"",ReadingCategory:""},rules:{QuestionName:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"},{max:50,message:"".concat(this.$t("common:ruleMessage:maxLength")," 50")}],TypeValue:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"},{validator:t,trigger:"blur"},{max:200,message:"".concat(this.$t("common:ruleMessage:maxLength")," 200")}],ParentTriggerValue:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}],ReadingCategory:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}]},trialId:"",loading:!1,parentOptions:[],parentTriggerValOptions:[]}},mounted:function(){this.trialId=this.$route.query.trialId,this.initForm()},methods:{initForm:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,i,n,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.loading=!0,t={trialId:this.trialId,id:this.data.Id?this.data.Id:"",readingCategory:this.data.ReadingCategory?this.data.ReadingCategory:"",TrialReadingCriterionId:this.trialReadingCriterionId},e.next=4,this.getParentQsOpntions(t);case 4:if(this.data.ParentId&&(i=this.parentOptions.findIndex((function(e){return e.Id===a.data.ParentId})),-1!==i&&(this.parentTriggerValOptions=this.parentOptions[i].TypeValue.split("|"))),Object.keys(this.data).length>0)for(n in this.form)this.data.hasOwnProperty(n)&&(this.form[n]=this.data[n]);this.loading=!1;case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),handleSave:function(){var e=this;this.$refs.questionForm.validate((function(t){t&&(e.loading=!0,e.form.TrialId=e.trialId,e.form.TrialReadingCriterionId=e.trialReadingCriterionId,Object(o["s"])(e.form).then((function(t){e.loading=!1,t.IsSuccess&&(e.$emit("close"),e.$emit("getList"),e.$message.success(e.$t("common:message:savedSuccessfully")))})).catch((function(){e.loading=!1})))}))},getParentQsOpntions:function(e){var t=this;return new Promise((function(i,n){Object(o["Pc"])(e).then((function(e){t.parentOptions=e.Result,i()})).catch((function(){n()}))}))},readingCategoryChange:function(e,t){if(e){var i={trialId:this.trialId,id:this.form.Id,readingCategory:e,TrialReadingCriterionId:this.trialReadingCriterionId};this.parentOptions=[],this.parentTriggerValOptions=[],this.getParentQsOpntions(i),this.form.ParentId="",this.form.ParentTriggerValue=""}},parentQuestionChange:function(e,t){if(e){var i=this.parentOptions.findIndex((function(t){return t.Id===e}));-1!==i&&(this.parentTriggerValOptions=this.parentOptions[i].TypeValue.split("|"),this.form.ReadingCategory=this.parentOptions[i].ReadingCategory)}this.form.ParentTriggerValue=""},typeChange:function(e,t){"select"!==e&&"radio"!==e&&(t.TypeValue="")},handleClose:function(){this.$emit("close")}}},l=s,c=i("2877"),u=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},"558b":function(e,t,i){"use strict";i("ab08")},5591:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"tableQsForm",attrs:{model:e.form,size:"small",disabled:"look"===e.type,rules:e.rules,"label-width":"120px"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:"类型",prop:"Type"}},[i("el-select",{on:{change:function(t){e.qsTypeChange(t,e.form)}},model:{value:e.form.Type,callback:function(t){e.$set(e.form,"Type",t)},expression:"form.Type"}},e._l(e.$d.Criterion_Question_Type,(function(e){return i("el-option",{key:e.value,attrs:{value:e.value,label:e.label,disabled:"group"===e.label||"table"===e.label||"summary"===e.label||"upload"===e.label}})})),1)],1),e._v(" "),"group"!==e.form.Type?i("el-form-item",{attrs:{label:"问题名称",prop:"QuestionName"}},[i("el-input",{model:{value:e.form.QuestionName,callback:function(t){e.$set(e.form,"QuestionName",t)},expression:"form.QuestionName"}})],1):e._e(),e._v(" "),"group"!==e.form.Type?i("el-form-item",{attrs:{label:"问题名称EN",prop:"QuestionEnName"}},[i("el-input",{model:{value:e.form.QuestionEnName,callback:function(t){e.$set(e.form,"QuestionEnName",t)},expression:"form.QuestionEnName"}})],1):e._e(),e._v(" "),"select"===e.form.Type||"radio"===e.form.Type||"input"===e.form.Type?i("el-form-item",{attrs:{label:"选项类型",prop:"TableQuestionType",rules:[{required:"input"!==e.form.Type,message:"请选择"}]}},[i("el-radio-group",{on:{change:function(t){e.tableQuestionTypeChange(t,e.form)}},model:{value:e.form.TableQuestionType,callback:function(t){e.$set(e.form,"TableQuestionType",t)},expression:"form.TableQuestionType"}},e._l(e.$d.TableQuestionType,(function(t){return i("el-radio",{key:t.id,attrs:{label:t.value,disabled:"radio"===e.form.Type&&(1===t.value||2===t.value)}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1):e._e(),e._v(" "),0===e.form.TableQuestionType?i("el-form-item",{attrs:{label:"选项",prop:"TypeValue"}},[i("el-input",{attrs:{placeholder:"选项请用‘|’分割多个选项"},model:{value:e.form.TypeValue,callback:function(t){e.$set(e.form,"TypeValue",t)},expression:"form.TypeValue"}})],1):e._e(),e._v(" "),"number"===e.form.Type||"calculation"===e.form.Type?i("el-form-item",{attrs:{label:"数值类型",prop:"ValueType",rules:[{required:!0,message:"请选择"}]}},[i("el-radio-group",{model:{value:e.form.ValueType,callback:function(t){e.$set(e.form,"ValueType",t)},expression:"form.ValueType"}},e._l(e.$d.ValueType,(function(t){return i("el-radio",{key:t.id,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1):e._e(),e._v(" "),"number"===e.form.Type||"calculation"===e.form.Type?i("el-form-item",{attrs:{label:"单位"}},[i("el-radio-group",{model:{value:e.form.Unit,callback:function(t){e.$set(e.form,"Unit",t)},expression:"form.Unit"}},e._l(e.$d.ValueUnit,(function(t){return i("el-radio",{key:t.id,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1):e._e(),e._v(" "),2===e.form.TableQuestionType?i("el-form-item",{attrs:{label:"关联问题",prop:"DependParentId"}},[i("el-select",{model:{value:e.form.DependParentId,callback:function(t){e.$set(e.form,"DependParentId",t)},expression:"form.DependParentId"}},e._l(e.parentOptions,(function(e){return i("el-option",{key:"DependParentId"+e.QuestionId,attrs:{label:e.QuestionName,value:e.QuestionId}})})),1)],1):e._e(),e._v(" "),1===e.form.TableQuestionType||e.form.DependParentId?i("el-form-item",{attrs:{label:"关联字段",prop:"DataTableColumn"}},[i("el-select",{model:{value:e.form.DataTableColumn,callback:function(t){e.$set(e.form,"DataTableColumn",t)},expression:"form.DataTableColumn"}},e._l(e.$d.OrganColumn,(function(e){return i("el-option",{key:e.id,attrs:{label:e.label,value:e.value}})})),1)],1):e._e(),e._v(" "),3===e.form.TableQuestionType||2===e.form.TableQuestionType?i("el-form-item",{attrs:{label:"关联字典",prop:"DictionaryCode",rules:[{required:3===e.form.TableQuestionType,message:"请选择",trigger:"blur"}]}},[i("el-select",{model:{value:e.form.DictionaryCode,callback:function(t){e.$set(e.form,"DictionaryCode",t)},expression:"form.DictionaryCode"}},e._l(e.dicList,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.Code,value:e.Code}})})),1)],1):e._e(),e._v(" "),"group"!==e.form.Type?i("el-form-item",{attrs:{label:"是否显示",prop:"ShowQuestion"}},[i("el-radio-group",{on:{change:function(t){e.isShowQuestionChange(t,e.form)}},model:{value:e.form.ShowQuestion,callback:function(t){e.$set(e.form,"ShowQuestion",t)},expression:"form.ShowQuestion"}},e._l(e.$d.ShowQuestion,(function(t){return i("el-radio",{key:"ShowQuestion"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1):e._e(),e._v(" "),"group"!==e.form.Type&&1===e.form.ShowQuestion?i("el-form-item",{attrs:{label:"显示依赖父问题",prop:"ParentId"}},[i("el-select",{attrs:{clearable:""},on:{change:function(t){e.parentQuestionChange(t,e.form)}},model:{value:e.form.ParentId,callback:function(t){e.$set(e.form,"ParentId",t)},expression:"form.ParentId"}},e._l(e.parentOptions,(function(e){return i("el-option",{key:"ParentId"+e.QuestionId,attrs:{label:e.QuestionName,value:e.QuestionId}})})),1)],1):e._e(),e._v(" "),e.form.ParentId&&1===e.form.ShowQuestion?i("el-form-item",{attrs:{label:"显示触发值",prop:"ParentTriggerValue"}},[i("el-select",{model:{value:e.form.ParentTriggerValue,callback:function(t){e.$set(e.form,"ParentTriggerValue",t)},expression:"form.ParentTriggerValue"}},e._l(e.parentTriggerValOptions,(function(e){return i("el-option",{key:e.id,attrs:{label:e.label,value:e.value}})})),1)],1):e._e(),e._v(" "),"group"!==e.form.Type&&"table"!==e.form.Type?i("el-form-item",{attrs:{label:"是否必填",prop:"IsRequired"}},[i("el-radio-group",{attrs:{disabled:!0===e.form.IsJudgeQuestion||2===e.form.ShowQuestion},on:{change:function(t){e.isRequiredChange(t,e.form)}},model:{value:e.form.IsRequired,callback:function(t){e.$set(e.form,"IsRequired",t)},expression:"form.IsRequired"}},e._l(e.$d.QuestionRequired,(function(t){return i("el-radio",{key:"QuestionRequired"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1):e._e(),e._v(" "),"group"!==e.form.Type&&1===e.form.IsRequired?i("el-form-item",{attrs:{label:"必填依赖父问题",prop:"RelevanceId"}},[i("el-select",{attrs:{clearable:""},on:{change:function(t){e.relevanceQuestionChange(t,e.form)}},model:{value:e.form.RelevanceId,callback:function(t){e.$set(e.form,"RelevanceId",t)},expression:"form.RelevanceId"}},e._l(e.parentOptions,(function(e){return i("el-option",{key:"RelevanceId"+e.QuestionId,attrs:{label:e.QuestionName,value:e.QuestionId}})})),1)],1):e._e(),e._v(" "),e.form.RelevanceId&&1===e.form.IsRequired?i("el-form-item",{attrs:{label:"必填触发值",prop:"RelevanceValue"}},[i("el-select",{model:{value:e.form.RelevanceValue,callback:function(t){e.$set(e.form,"RelevanceValue",t)},expression:"form.RelevanceValue"}},e._l(e.reParentTriggerValOptions,(function(e){return i("el-option",{key:e.id,attrs:{label:e.label,value:e.value}})})),1)],1):e._e(),e._v(" "),"group"!==e.form.Type?i("el-form-item",{attrs:{label:"问题标识",prop:"QuestionMark"}},[i("el-select",{model:{value:e.form.QuestionMark,callback:function(t){e.$set(e.form,"QuestionMark",t)},expression:"form.QuestionMark"}},e._l(e.$d.QuestionMark,(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})})),1)],1):e._e(),e._v(" "),"upload"===e.form.Type?i("el-form-item",{attrs:{label:"最大上传个数"}},[i("el-input-number",{attrs:{"controls-position":"right",min:1,max:10},model:{value:e.form.ImageCount,callback:function(t){e.$set(e.form,"ImageCount",t)},expression:"form.ImageCount"}})],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:"序号",prop:"ShowOrder"}},[i("el-input-number",{attrs:{"controls-position":"right",min:0},model:{value:e.form.ShowOrder,callback:function(t){e.$set(e.form,"ShowOrder",t)},expression:"form.ShowOrder"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"重复出现最大次数"}},[i("el-input-number",{attrs:{"controls-position":"right",min:0,max:10},model:{value:e.form.MaxRowCount,callback:function(t){e.$set(e.form,"MaxRowCount",t)},expression:"form.MaxRowCount"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"限制编辑"}},[i("el-radio-group",{model:{value:e.form.LimitEdit,callback:function(t){e.$set(e.form,"LimitEdit",t)},expression:"form.LimitEdit"}},e._l(e.$d.LimitEdit,(function(t){return i("el-radio",{attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"全局阅片是否显示"}},[i("el-radio-group",{model:{value:e.form.GlobalReadingShowType,callback:function(t){e.$set(e.form,"GlobalReadingShowType",t)},expression:"form.GlobalReadingShowType"}},e._l(e.$d.GlobalReadingShowType,(function(t){return i("el-radio",{key:t.id,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.close}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",disabled:"look"===e.type},on:{click:e.save}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])},a=[],r=(i("20d6"),i("456d"),i("96cf"),i("3b8d")),o=(i("ac6a"),i("5df3"),i("4f7f"),i("28a5"),i("3e42")),s=i("e56e"),l={name:"AddOrUpdateTableQs",props:{data:{type:Object,default:function(){return{}}},readingQuestionId:{type:String,required:!0},criterionId:{type:String,required:!0},type:{type:String,required:!0}},data:function(){var e=this,t=function(t,i,n){if(""===i)n(new Error(e.$t("common:ruleMessage:specify")));else{var a=i.split("|");new Set(a).size!==a.length?n(new Error("选项不允许存在相同值")):n()}};return{form:{Id:"",ReadingQuestionId:"",QuestionName:"",QuestionEnName:"",Type:"select",TypeValue:"",ValueType:"",Unit:"",ParentId:"",ParentTriggerValue:"",ShowOrder:0,ShowQuestion:null,IsRequired:!0,Remark:"",RelevanceId:"",RelevanceValue:"",DataTableName:"",DataTableColumn:"",DictionaryCode:"",TableQuestionType:null,MaxRowCount:null,DependParentId:"",QuestionMark:null,LimitEdit:null,GlobalReadingShowType:null},rules:{Type:[{required:!0,message:"请选择",trigger:"blur"}],QuestionName:[{required:!0,message:"请注明",trigger:"blur"},{max:50,message:"最大长度为 50"}],TypeValue:[{required:!0,message:"请注明",trigger:"blur"},{validator:t,trigger:"blur"},{max:200,message:"最大长度为 200"}],ShowQuestion:[{required:!0,message:"请选择",trigger:"blur"}],IsRequired:[{required:!0,message:"请选择",trigger:"blur"}],ParentId:[{required:!0,message:"请选择",trigger:"blur"}],ParentTriggerValue:[{required:!0,message:"请选择",trigger:"blur"}],RelevanceId:[{required:!0,message:"请选择",trigger:"blur"}],RelevanceValue:[{required:!0,message:"请选择",trigger:"blur"}],DataTableName:[{required:!0,message:"请选择",trigger:"blur"}],DataTableColumn:[{required:!0,message:"请选择",trigger:"blur"}],DependParentId:[{required:!0,message:"请选择",trigger:"blur"}]},loading:!1,parentOptions:[],parentTriggerValOptions:[],reParentTriggerValOptions:[],tblOptions:[],colOptions:[],dicList:[]}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,i,n,a,r,o=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getBasicConfigSelect();case 2:return e.next=4,this.getParentQuestions();case 4:if(Object.keys(this.data).length>0){for(t in this.form)this.data.hasOwnProperty(t)&&(this.form[t]=this.data[t]);this.form.ParentId&&(i=this.parentOptions.findIndex((function(e){return e.QuestionId===o.form.ParentId})),-1!==i&&(3===this.parentOptions[i].QuestionGenre?this.parentTriggerValOptions=this.$d[this.parentOptions[i].DictionaryCode]:(n=[],this.parentOptions[i].TypeValue.split("|").forEach((function(e,t){n.push({id:t,label:e,value:e})})),this.parentTriggerValOptions=n))),this.form.RelevanceId&&(a=this.parentOptions.findIndex((function(e){return e.QuestionId===o.form.RelevanceId})),-1!==a&&(3===this.parentOptions[i].QuestionGenre?this.reParentTriggerValOptions=this.$d[this.parentOptions[i].DictionaryCode]:(r=[],this.parentOptions[i].TypeValue.split("|").forEach((function(e,t){r.push({id:t,label:e,value:e})})),this.reParentTriggerValOptions=r)))}case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),save:function(){var e=this;this.$refs.tableQsForm.validate((function(t){t&&(e.loading=!0,e.form.SystemCriterionId=e.criterionId,e.form.ReadingQuestionId=e.readingQuestionId,Object(o["w"])(e.form).then((function(t){e.$emit("getList"),e.loading=!1,e.$emit("close"),e.$emit("reloadArbitrationRules"),e.$message.success(e.$t("common:message:savedSuccessfully"))})).catch((function(){e.loading=!1})))}))},getParentQuestions:function(){var e=this;return new Promise((function(t,i){e.loading=!0;var n={readingQuestionId:e.readingQuestionId,id:e.data.Id};Object(o["Zc"])(n).then((function(i){e.parentOptions=i.Result,e.loading=!1,t()})).catch((function(){e.loading=!1,i()}))}))},getBasicConfigSelect:function(){var e=this;Object(s["U"])("Reading_eCRF_Criterion").then((function(t){e.dicList=t.Result}))},isShowQuestionChange:function(e,t){2===e?(t.IsRequired=2,t.ParentId="",t.ParentTriggerValue=""):(t.ParentId="",t.ParentTriggerValue="")},isRequiredChange:function(e,t){1!==e&&(t.RelevanceId="",t.RelevanceValue="")},parentQuestionChange:function(e,t){if(e){var i=this.parentOptions.findIndex((function(t){return t.QuestionId===e}));if(-1!==i)if(3===this.parentOptions[i].QuestionGenre)this.parentTriggerValOptions=this.$d[this.parentOptions[i].DictionaryCode];else{var n=[];this.parentOptions[i].TypeValue.split("|").forEach((function(e,t){n.push({id:t,label:e,value:e})})),this.parentTriggerValOptions=n}}t.ParentTriggerValue=""},relevanceQuestionChange:function(e,t){if(e){var i=this.parentOptions.findIndex((function(t){return t.QuestionId===e}));if(-1!==i)if(3===this.parentOptions[i].QuestionGenre)this.reParentTriggerValOptions=this.$d[this.parentOptions[i].DictionaryCode];else{var n=[];this.parentOptions[i].TypeValue.split("|").forEach((function(e,t){n.push({id:t,label:e,value:e})})),this.reParentTriggerValOptions=n}}t.RelevanceValue=""},tableQuestionTypeChange:function(e,t){t.DictionaryCode="",t.DataTableColumn="",t.DataTableName="",t.DependParentId="",t.TypeValue=""},dataTableNameChange:function(e,t){if(e){var i=this.tblOptions.findIndex((function(t){return t.Id===e}));-1!==i&&(this.colOptions=this.tblOptions[i].Columns)}t.DataTableColumn=""},qsTypeChange:function(e,t){t.TypeValue="",t.ValueType="",t.Unit="",t.TableQuestionType=null,t.DependParentId="",t.DataTableColumn="",t.DataTableName="",t.DictionaryCode=""},close:function(){this.$emit("close")}}},c=l,u=i("2877"),d=Object(u["a"])(c,n,a,!1,null,"eb2aabc8",null);t["default"]=d.exports},5599:function(e,t,i){"use strict";i("a4dc")},"559d":function(e,t,i){"use strict";i("26de")},"55ac":function(e,t,i){var n=i("6d8b");function a(e,t,i){if(e&&n.indexOf(t,e.type)>=0){var a=i.getData().tree.root,r=e.targetNode;if("string"===typeof r&&(r=a.getNodeById(r)),r&&a.contains(r))return{node:r};var o=e.targetNodeId;if(null!=o&&(r=a.getNodeById(o)))return{node:r}}}function r(e){var t=[];while(e)e=e.parentNode,e&&t.push(e);return t.reverse()}function o(e,t){var i=r(e);return n.indexOf(i,t)>=0}function s(e,t){var i=[];while(e){var n=e.dataIndex;i.push({name:e.name,dataIndex:n,value:t.getRawValue(n)}),e=e.parentNode}return i.reverse(),i}t.retrieveTargetInfo=a,t.getPathToRoot=r,t.aboveViewRoot=o,t.wrapTreePathInfo=s},"55c6":function(e,t,i){},"55d9":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"img-container"},[i("el-card",{staticClass:"box-card left"},[i("div",{staticClass:"title"},[e._v("\n 文件列表\n ")]),e._v(" "),i("div",{staticClass:"left-content"},e._l(e.studyList,(function(t,n){return i("div",{key:t.CodeView},[i("div",{staticClass:"study-desc"},[i("span",[e._v(e._s(t.CodeView))]),e._v(" "),i("span",{staticStyle:{margin:"0 5px"}},[e._v(e._s(t.Modality))]),e._v(" "),i("span",[e._v(e._s(t.BodyPart))])]),e._v(" "),0===t.NoneDicomStudyFileList.length?i("div",{staticClass:"empty-text"},[e._t("empty",[e._v("暂无数据")])],2):i("div",{staticStyle:{height:"100%"},attrs:{id:"imgList"}},e._l(t.NoneDicomStudyFileList,(function(t,a){return i("div",{key:t.Id,staticClass:"img-box",class:{"is-boxActive":t.Id===e.currentFileId},attrs:{id:"img"+t.Id},on:{click:function(i){return e.selected(t,n,a,!0)}}},[e._v("\n "+e._s(a+1+". "+t.FileName)+"\n ")])})),0)])})),0)]),e._v(" "),i("el-card",{staticClass:"box-card right"},[i("div",{staticStyle:{width:"100%",height:"100%"}},[e.previewImage.imgList.length>0?i("Preview",{ref:"previewImage",staticStyle:{width:"100%"},attrs:{"preview-image":e.previewImage,value:e.currentStudyFileIndex},on:{selectedImg:e.selectedImg}}):e._e()],1)])],1)},a=[],r=(i("20d6"),i("3e42")),o=i("4360"),s=i("a599"),l=i("bcd4"),c={name:"Notice",components:{Preview:l["default"]},data:function(){return{activeName:"first",currentFileId:"",currentStudyIndex:0,currentStudyFileIndex:0,pageSize:0,previewImage:{imgList:[],index:0,infinite:!0,popup:!0,studyCode:"",modality:"",bodyPart:""},previewVisible:!1,studyList:[],subjectVisitId:"",sudyId:"",loading:!1}},mounted:function(){this.$router.currentRoute.query.TokenKey&&(o["a"].dispatch("user/setToken",this.$router.currentRoute.query.TokenKey),Object(s["a"])("TokenKey","")),this.subjectVisitId=this.$router.currentRoute.query.subjectVisitId,this.studyId=this.$router.currentRoute.query.studyId,this.getNoneDicomList()},methods:{getNoneDicomList:function(){var e=this;this.loading=!0,Object(r["xc"])(this.subjectVisitId,this.studyId).then((function(t){e.studyList=t.Result,e.loading=!1;var i=e.studyList.findIndex((function(e){return e.NoneDicomStudyFileList.length>0}));if(i>-1){var n=e.studyList[i]["NoneDicomStudyFileList"];e.selected(n[0],i,0,!0)}})).catch((function(){e.loading=!1}))},selected:function(e,t,i){var n=this,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];this.currentFileId=e.Id,this.currentStudyIndex=t,this.previewImage.imgList=this.studyList[t].NoneDicomStudyFileList,this.currentStudyFileIndex=i,this.previewImage.index=i,this.previewImage.studyCode=this.studyList[t].CodeView,this.previewImage.bodyPart=this.studyList[t].BodyPart,this.previewImage.modality=this.studyList[t].Modality,this.$nextTick((function(){a&&n.$refs["previewImage"].selected(i)}))},selectedImg:function(e){var t=this;this.studyList.length>0&&(this.currentStudyFileIndex=e,this.currentFileId=this.studyList[this.currentStudyIndex].NoneDicomStudyFileList[e].Id,this.previewImage.index=e,this.previewImage.studyCode=this.studyList[this.currentStudyIndex].CodeView,this.previewImage.bodyPart=this.studyList[this.currentStudyIndex].BodyPart,this.previewImage.modality=this.studyList[this.currentStudyIndex].Modality,this.$nextTick((function(){var e=document.getElementById("img".concat(t.currentFileId)),i=document.getElementsByClassName("left-content")[0];i.scrollTop=e.offsetTop-i.offsetTop})))},preview:function(){this.previewVisible=!0}}},u=c,d=(i("ace0"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,"660b14ad",null);t["default"]=f.exports},5608:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",[i("div",{staticClass:"base-dialog-body"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{"min-height":"400px"},attrs:{data:e.list,stripe:"",height:"100"},on:{"selection-change":e.handleSelectChange}},[i("el-table-column",{attrs:{selectable:e.selectable,type:"selection",align:"left",width:"45"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialSiteCode",label:e.$t("trials:grouptConsistencyAnalysis:table:siteCode"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode",label:e.$t("trials:grouptConsistencyAnalysis:table:subjectCode"),"min-width":"120",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ValidVisitCount",label:e.$t("trials:grouptConsistencyAnalysis:table:validVisitCount"),"min-width":"160",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsReReadingOrBackInfluenceAnalysis",label:e.$t("trials:grouptConsistencyAnalysis:table:backImpact"),"min-width":"160",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsReReadingOrBackInfluenceAnalysis?e._e():i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsReReadingOrBackInfluenceAnalysis)))]),e._v(" "),t.row.IsReReadingOrBackInfluenceAnalysis?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsReReadingOrBackInfluenceAnalysis)))]):e._e()]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.close}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.save}},[e._v("\n "+e._s(e.$t("trials:grouptConsistencyAnalysis:button:create"))+"\n ")])],1)],1)])},a=[],r=i("958c"),o=i("6071"),s=i("333d"),l=function(){return{PageIndex:1,PageSize:20,Asc:!0,SortField:"",TrialId:null,TaskConsistentRuleId:null}},c={name:"TrialsNotice",components:{BaseContainer:o["default"],Pagination:s["default"]},props:{data:{type:Object,default:function(){return{}}}},data:function(){return{searchData:l(),list:[],total:0,loading:!1,trialId:this.$route.query.trialId,SelectList:[],btnLoading:!1}},mounted:function(){this.searchData.TaskConsistentRuleId=this.data.Id,this.searchData.DoctorUserId=this.data.AnalysisDoctorUser.UserId,this.getList()},methods:{selectable:function(e){return!e.IsHaveGeneratedTask},handleSelectChange:function(e){this.SelectList=e},save:function(){var e=this;if(0!==this.SelectList.length){this.btnLoading=!0,this.loading=!0;var t={TaskConsistentRuleId:this.searchData.TaskConsistentRuleId,SubejctIdList:this.SelectList.map((function(e){return e.SubjectId})),DoctorUserId:this.searchData.DoctorUserId};Object(r["p"])(t).then((function(t){e.loading=!1,e.btnLoading=!1,e.$message.success(e.$t("common:message:savedSuccessfully")),e.$emit("getList"),e.close()})).catch((function(){e.loading=!1,e.btnLoading=!1}))}else this.$message.error(this.$t("trials:grouptConsistencyAnalysis:message:msg1"))},getList:function(){var e=this;this.searchData.TrialId=this.$route.query.trialId,this.loading=!0,Object(r["y"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},close:function(){this.$emit("close")},handleSortChange:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()}}},u=c,d=i("2877"),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},5616:function(e,t,i){},"562e":function(e,t,i){var n=i("6d8b");function a(e){null!=e&&n.extend(this,e),this.otherDims={}}var r=a;e.exports=r},5644:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"criterion-form-item"},[e.question.GroupName&&"group"===e.question.Type?i("div",{staticStyle:{"font-weight":"bold","font-size":"16px",margin:"5px 0px"}},[e._v("\n "+e._s(e.question.GroupName)+"\n ")]):"table"===e.question.Type?i("div",{staticStyle:{"font-weight":"bold","font-size":"14px",margin:"5px 0px"}},[e._v("\n "+e._s(e.question.QuestionName)+"\n ")]):[1===e.question.ShowQuestion&&String(e.questionForm[e.question.ParentId])===String(e.question.ParentTriggerValue)||0===e.question.ShowQuestion?i("el-form-item",{class:["group"===e.question.Type?"mb":"upload"===e.question.Type?"uploadWrapper":""],attrs:{label:""+e.question.QuestionName,prop:e.question.Id,rules:[{required:(0===e.question.IsRequired||1===e.question.IsRequired&&e.question.RelevanceId&&e.questionForm[e.question.RelevanceId]===e.question.RelevanceValue)&&"group"!==e.question.Type&&"summary"!==e.question.Type,message:"请注明",trigger:["blur","change"]}]}},["input"===e.question.Type?i("el-input",{attrs:{disabled:2===e.question.TableQuestionType},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"textarea"===e.question.Type?i("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4}},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"select"===e.question.Type?i("el-select",{attrs:{clearable:"",disabled:(2===e.question.TableQuestionType||2===e.question.QuestionGenre)&&!!e.question.DictionaryCode},on:{change:function(t){e.formItemChange(t,e.question)}},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},[1===e.question.TableQuestionType?e._l(e.organList,(function(t){return i("el-option",{key:t.Id,attrs:{label:t[e.question.DataTableColumn],value:t[e.question.DataTableColumn]}})})):e.question.DictionaryCode?e._l(e.$d[e.question.DictionaryCode],(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})})):e.question.TypeValue?e._l(e.question.TypeValue.split("|"),(function(e){return i("el-option",{key:e,attrs:{label:e,value:e}})})):e._e()],2):e._e(),e._v(" "),"radio"===e.question.Type?i("el-radio-group",{on:{change:function(t){e.formItemChange(t,e.question)}},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},[e.question.DictionaryCode?e._l(e.$d[e.question.DictionaryCode],(function(t){return i("el-radio",{key:t.id,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})):e.question.TypeValue?e._l(e.question.TypeValue.split("|"),(function(t){return i("el-radio",{key:t,attrs:{label:t}},[e._v("\n "+e._s(t)+"\n ")])})):e._e()],2):e._e(),e._v(" "),"checkbox"===e.question.Type?i("el-checkbox-group",{model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},e._l(e.question.TypeValue.split("|"),(function(t){return i("el-checkbox",{key:t,attrs:{label:t}},[e._v("\n "+e._s(t)+"\n ")])})),1):e._e(),e._v(" "),"calculation"===e.question.Type?i("el-input",{attrs:{disabled:""},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"increment"===e.question.Type?i("el-input",{attrs:{disabled:""},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"number"===e.question.Type?i("el-input-number",{model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"upload"===e.question.Type?i("el-upload",{class:{disabled:e.fileList.length>=e.question.ImageCount},attrs:{action:e.accept,limit:e.question.ImageCount,"on-preview":e.handlePictureCardPreview,"before-upload":e.handleBeforeUpload,"http-request":e.uploadScreenshot,"list-type":"picture-card","on-remove":e.handleRemove,"file-list":e.fileList},scopedSlots:e._u([{key:"file",fn:function(t){var n=t.file;return i("div",{},[i("img",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:n.url,alt:""}}),e._v(" "),i("span",{staticClass:"el-upload-list__item-actions"},[i("span",{staticClass:"el-upload-list__item-preview",on:{click:function(t){return e.handlePictureCardPreview(n)}}},[i("i",{staticClass:"el-icon-zoom-in"})]),e._v(" "),e.readingTaskState<2?i("span",{staticClass:"el-upload-list__item-delete",on:{click:function(t){return e.handleRemove(n)}}},[i("i",{staticClass:"el-icon-delete"})]):e._e()])])}}],null,!1,3246650725)},[i("i",{staticClass:"el-icon-plus",attrs:{slot:"default"},slot:"default"})]):e._e(),e._v(" "),"upload"===e.question.Type?i("el-dialog",{attrs:{"append-to-body":"",visible:e.imgVisible,width:"600px"},on:{"update:visible":function(t){e.imgVisible=t}}},[i("el-image",{attrs:{src:e.imageUrl,width:"100%"}},[i("div",{staticClass:"image-slot",attrs:{slot:"placeholder"},slot:"placeholder"},[e._v("\n 加载中"),i("span",{staticClass:"dot"},[e._v("...")])])])],1):e._e()],1):e._e()],e._v(" "),e.question.Childrens&&e.question.Childrens.length>0?e._l(e.question.Childrens,(function(t){return i("CriterionFormItem",{key:t.Id,attrs:{question:t,"reading-task-state":e.readingTaskState,"question-form":e.questionForm,"visit-task-id":e.visitTaskId,"criterion-id":e.criterionId},on:{setFormItemData:e.setFormItemData,resetFormItemData:e.resetFormItemData}})})):e._e()],2)},a=[],r=(i("386d"),i("7f7f"),i("ac6a"),i("20d6"),i("28a5"),i("c5f6"),i("3e42")),o=i("e56e"),s={name:"CriterionFormItem",props:{questionForm:{type:Object,default:function(){return{}}},question:{type:Object,default:function(){return[]}},criterionId:{type:String,required:!0},readingTaskState:{type:Number,required:!0},visitTaskId:{type:String,default:""}},data:function(){return{fileList:[],accept:".png,.jpg,.jpeg",imgVisible:!1,imageUrl:"",urls:[],organList:[]}},watch:{questionForm:{deep:!0,immediate:!0,handler:function(e){}}},mounted:function(){var e=this;"upload"===this.question.Type&&this.questionForm[this.question.Id]&&(this.urls=this.questionForm[this.question.Id].split("|"),this.fileList=[],this.urls.map((function(t){e.fileList.push({name:"",url:"".concat(t)})}))),1===this.question.TableQuestionType&&null!==this.question.LesionType&&this.getOrganInfoList()},methods:{getOrganInfoList:function(){var e=this,t={lesionType:this.question.LesionType,systemCriterionId:this.criterionId};Object(o["jb"])(t).then((function(t){e.organList=t.Result}))},formItemChange:function(e,t){var i=this;if(t.Childrens.length>0&&this.resetChild(t.Childrens),1===t.TableQuestionType&&t.RelationQuestions.length>0){var n=this.organList.findIndex((function(i){return i[t.DataTableColumn]===e}));if(n<0)return;var a=this.organList[n];this.question.RelationQuestions.map((function(e){var t=a[e.DataTableColumn];i.$emit("setFormItemData",{key:e.Id,val:t})}))}},resetChild:function(e){var t=this;e.forEach((function(e){t.$emit("resetFormItemData",e.Id),e.Childrens&&e.Childrens.length>0&&t.resetChild(e.Childrens)}))},resetFormItemData:function(e){this.$emit("resetFormItemData",e)},setFormItemData:function(e){this.$emit("setFormItemData",e)},uploadScreenshot:function(e){var t=this;if(this.visitTaskId){var i=this.$loading({target:document.querySelector(".ecrf-wrapper"),fullscreen:!1,lock:!0,text:"Loading",spinner:"el-icon-loading"}),n=new FormData;n.append("file",e.file),Object(r["Af"])(this.$route.query.trialId,this.visitTaskId,n).then((function(e){e.IsSuccess&&(t.fileList.push({url:"".concat(e.Result.Path)}),t.urls.push(e.Result.Path),t.$emit("setFormItemData",{key:t.question.Id,val:t.urls.length>0?t.urls.join("|"):""})),i.close()})).catch((function(){i.close()}))}},handleBeforeUpload:function(e){return!!this.checkFileSuffix(e.name)||(this.$message.error("必须是 ".concat(this.accept," 格式")),!1)},checkFileSuffix:function(e){var t=e.lastIndexOf("."),i=e.substring(t+1,e.length);return-1!==this.accept.toLocaleLowerCase().search(i.toLocaleLowerCase())},handlePictureCardPreview:function(e){this.imageUrl=e.url,this.imgVisible=!0},handleRemove:function(e,t){this.imageUrl="",this.fileList.splice(this.fileList.findIndex((function(t){return t.url===e.url})),1),this.urls.splice(this.fileList.findIndex((function(t){return t===e.url})),1),this.$emit("setFormItemData",{key:this.question.Id,val:this.urls.length>0?this.urls.join("|"):""})}}},l=s,c=(i("8026"),i("2877")),u=Object(c["a"])(l,n,a,!1,null,"085ce07e",null);t["default"]=u.exports},5651:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"search-container"},[i("el-form",{attrs:{inline:!0,size:"small"}},[i("el-form-item",{attrs:{label:"业务场景"}},[i("el-select",{staticStyle:{width:"150px"},attrs:{disabled:""},model:{value:e.searchData.BusinessScenarioEnum,callback:function(t){e.$set(e.searchData,"BusinessScenarioEnum",t)},expression:"searchData.BusinessScenarioEnum"}},e._l(e.$d.Common_File_BusinessScenario,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"文件名称"}},[i("el-input",{staticStyle:{width:"130px"},attrs:{clearable:""},model:{value:e.searchData.Name,callback:function(t){e.$set(e.searchData,"Name",t)},expression:"searchData.Name"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")])],1)],1),e._v(" "),i("el-button",{staticStyle:{"margin-left":"auto"},attrs:{type:"primary",icon:"el-icon-plus",size:"small"},on:{click:e.handleAdd}},[e._v("\n "+e._s(e.$t("common:button:new"))+"\n ")])],1),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list,stripe:"",height:"600"},on:{"sort-change":e.handleSortChange}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Code",label:"Code","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"BusinessScenarioEnum",label:"业务场景","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("Common_File_BusinessScenario",t.row.BusinessScenarioEnum))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Name",label:"文件名称","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"CriterionTypeEnum",label:"阅片标准","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("CriterionType",t.row.CriterionTypeEnum))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Description",label:"描述","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsDeleted",label:"是否废除","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsDeleted?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsDeleted)))]):i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsDeleted)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"UpdateTime",label:"更新时间","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{label:"Action"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleDownload(t.row)}}},[e._v("\n 下载\n ")]),e._v(" "),i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("\n 编辑\n ")])]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}}),e._v(" "),e.editDialog.visible?i("el-dialog",{attrs:{visible:e.editDialog.visible,"close-on-click-modal":!1,title:e.editDialog.title,width:"600px","custom-class":"base-dialog-wrapper","append-to-body":""},on:{"update:visible":function(t){return e.$set(e.editDialog,"visible",t)}}},[i("AttachmentForm",{attrs:{data:e.currentRow,"is-distinguish-criteria":e.isDistinguishCriteria},on:{closeDialog:e.closeDialog,getList:e.getList}})],1):e._e()],1)],2)},a=[],r=i("db72"),o=(i("c5f6"),i("e56e")),s=i("6071"),l=i("333d"),c=i("ace7"),u=3,d=function(){return{FileTypeEnum:u,BusinessScenarioEnum:null,Name:"",PageIndex:1,PageSize:20}},f={name:"ExportTemplate",components:{BaseContainer:s["default"],Pagination:l["default"],AttachmentForm:c["default"]},props:{businessScenarioEnum:{type:Number,required:!0},isDistinguishCriteria:{type:Boolean,required:!0}},data:function(){return{searchData:d(),list:[],total:0,currentRow:{},editDialog:{title:"",visible:!1},loading:!1}},mounted:function(){this.searchData.BusinessScenarioEnum=this.businessScenarioEnum,this.getList()},methods:{getList:function(){var e=this;this.loading=!0,this.searchData.BusinessScenarioEnum=this.businessScenarioEnum,Object(o["ab"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},handleAdd:function(){this.editDialog.title="Add",this.currentRow={FileTypeEnum:u,BusinessScenarioEnum:this.businessScenarioEnum},this.editDialog.visible=!0},handleDownload:function(e){var t=this;this.loading=!0,Object(o["a"])(e.Code).then((function(e){t.loading=!1})).catch((function(){t.loading=!1}))},handleEdit:function(e){this.editDialog.title="Edit",this.currentRow=Object(r["a"])({},e),this.editDialog.visible=!0},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=d(),this.searchData.BusinessScenarioEnum=this.businessScenarioEnum,this.getList()},closeDialog:function(){this.editDialog.visible=!1},handleSortChange:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()}}},h=f,p=i("2877"),m=Object(p["a"])(h,n,a,!1,null,null,null);t["default"]=m.exports},5678:function(e,t,i){"use strict";i("ac21")},5693:function(e,t){function i(e,t){var i,n,a,r,o,s=t.x,l=t.y,c=t.width,u=t.height,d=t.r;c<0&&(s+=c,c=-c),u<0&&(l+=u,u=-u),"number"===typeof d?i=n=a=r=d:d instanceof Array?1===d.length?i=n=a=r=d[0]:2===d.length?(i=a=d[0],n=r=d[1]):3===d.length?(i=d[0],n=r=d[1],a=d[2]):(i=d[0],n=d[1],a=d[2],r=d[3]):i=n=a=r=0,i+n>c&&(o=i+n,i*=c/o,n*=c/o),a+r>c&&(o=a+r,a*=c/o,r*=c/o),n+a>u&&(o=n+a,n*=u/o,a*=u/o),i+r>u&&(o=i+r,i*=u/o,r*=u/o),e.moveTo(s+i,l),e.lineTo(s+c-n,l),0!==n&&e.arc(s+c-n,l+n,n,-Math.PI/2,0),e.lineTo(s+c,l+u-a),0!==a&&e.arc(s+c-a,l+u-a,a,0,Math.PI/2),e.lineTo(s+r,l+u),0!==r&&e.arc(s+r,l+u-r,r,Math.PI/2,Math.PI),e.lineTo(s,l+i),0!==i&&e.arc(s+i,l+i,i,Math.PI,1.5*Math.PI)}t.buildPath=i},"56c1":function(e,t,i){"use strict";i("aff8")},"575e":function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-online",use:"icon-online-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-online"><defs><style type="text/css"></style></defs><path d="M356.246145 681.56286c-68.156286-41.949414-107.246583-103.84102-107.246583-169.805384 0-65.966411 39.090297-127.860063 107.246583-169.809477 12.046361-7.414877 15.800871-23.190165 8.385994-35.236526-7.413853-12.046361-23.191188-15.801894-35.236526-8.387018-39.640836 24.399713-72.539106 56.044434-95.137801 91.515297-23.86657 37.461193-36.481889 79.620385-36.481889 121.917724 0 42.297338 12.615319 84.454484 36.481889 121.914654 22.598694 35.469839 55.496965 67.11456 95.137801 91.51325 4.185322 2.576685 8.821923 3.804652 13.400195 3.804652 8.598842 0 16.998139-4.329609 21.836331-12.190647C372.047016 704.752002 368.291482 688.976714 356.246145 681.56286zM263.943926 754.580874c-92.603071-61.111846-145.713686-149.623739-145.713686-242.840794 0-93.195565 53.094242-181.682899 145.667637-242.774279 11.805884-7.79043 15.061021-23.677259 7.269567-35.483142-7.79043-11.805884-23.677259-15.062044-35.483142-7.269567C128.487861 296.954249 67.006602 401.024489 67.006602 511.74008c0 110.73708 61.496609 214.830857 168.721703 285.593504 4.343935 2.867304 9.240455 4.238534 14.08274 4.238534 8.317433 0 16.476253-4.046153 21.400403-11.507078C279.003923 778.258133 275.748786 762.372328 263.943926 754.580874zM788.660552 226.213092c-11.80486-7.791453-27.692712-4.536316-35.483142 7.269567-7.79043 11.805884-4.536316 27.692712 7.269567 35.483142 92.575442 61.092403 145.670707 149.579737 145.670707 242.774279 0 93.216032-53.111638 181.727924-145.715733 242.840794-11.805884 7.79043-15.059997 23.678282-7.269567 35.484166 4.925173 7.461949 13.081946 11.507078 21.400403 11.507078 4.841262 0 9.739828-1.37123 14.083763-4.238534 107.22714-70.761624 168.724773-174.857447 168.724773-285.593504C957.341323 401.025513 895.860063 296.955272 788.660552 226.213092zM790.090111 633.67213c23.865547-37.459147 36.480866-79.617315 36.480866-121.914654 0-42.298362-12.615319-84.45653-36.480866-121.917724-22.598694-35.470863-55.496965-67.115584-95.139847-91.515297-12.047384-7.413853-27.821649-3.659343-35.236526 8.387018-7.414877 12.045337-3.659343 27.821649 8.385994 35.236526 68.156286 41.949414 107.247606 103.842043 107.247606 169.809477 0 65.964364-39.090297 127.85597-107.247606 169.804361-12.045337 7.414877-15.800871 23.190165-8.385994 35.237549 4.838192 7.861038 13.236466 12.190647 21.835308 12.190647 4.579295 0 9.215896-1.227967 13.400195-3.804652C734.591099 700.786691 767.490394 669.142993 790.090111 633.67213zM567.129086 518.274914c24.12342-17.150612 39.887452-45.305859 39.887452-77.07133 0-52.128241-42.452881-94.538143-94.634334-94.538143-52.18043 0-94.633311 42.408879-94.633311 94.538143 0 31.695886 15.696494 59.797921 39.730886 76.958766-49.875944 21.128203-84.917018 70.234621-84.917018 127.301338 0 2.366907 0.061398 4.762467 0.182149 7.119141l1.249457 24.296359 276.373515 0 1.238201-24.308639c0.119727-2.358721 0.181125-4.750187 0.181125-7.106862C651.786185 588.497255 616.865861 539.465538 567.129086 518.274914zM512.381182 397.889079c23.937179 0 43.411719 19.430538 43.411719 43.314505 0 23.882943-19.47454 43.313481-43.411719 43.313481-23.936155 0-43.409672-19.430538-43.409672-43.313481C468.971509 417.320641 488.445026 397.889079 512.381182 397.889079zM426.08884 625.656573c9.119705-38.542828 44.254923-67.337641 86.085634-67.337641s76.966952 28.794813 86.085634 67.337641L426.08884 625.656573z" p-id="536" /></symbol>'});o.a.add(s);t["default"]=s},5777:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"edit-container"},[i("el-tabs",{on:{"tab-click":e.clickTab},model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},[i("el-tab-pane",{attrs:{label:e.$t("admin:user"),name:"user"}},[i("user-info",{attrs:{"user-id":e.userId}})],1),e._v(" "),i("el-tab-pane",{attrs:{label:e.$t("admin:password"),name:"account"}},[e.load.account?i("Account",{attrs:{"user-id":e.userId}}):e._e()],1)],1)],1)},a=[],r=(i("7f7f"),i("dcb4")),o=i("91e9"),s={name:"EditUser",components:{UserInfo:r["default"],Account:o["default"]},data:function(){return{activeTab:"user",userId:"",load:{role:!1,account:!1}}},created:function(){this.userId=this.$router.currentRoute.query.Id},methods:{clickTab:function(e,t){!1===this.load[e.name]&&(this.load[e.name]=!0)}}},l=s,c=i("2877"),u=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},"57a4":function(e,t,i){"use strict";i("2345")},"57fa":function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-eye",use:"icon-eye-usage",viewBox:"0 0 128 64",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 64" id="icon-eye"><path d="M127.072 7.994c1.37-2.208.914-5.152-.914-6.87-2.056-1.717-4.797-1.226-6.396.982-.229.245-25.586 32.382-55.74 32.382-29.24 0-55.74-32.382-55.968-32.627-1.6-1.963-4.57-2.208-6.397-.49C-.17 3.086-.399 6.275 1.2 8.238c.457.736 5.94 7.36 14.62 14.72L4.17 35.96c-1.828 1.963-1.6 5.152.228 6.87.457.98 1.6 1.471 2.742 1.471s2.284-.49 3.198-1.472l12.564-13.983c5.94 4.416 13.021 8.587 20.788 11.53l-4.797 17.418c-.685 2.699.686 5.397 3.198 6.133h1.37c2.057 0 3.884-1.472 4.341-3.68L52.6 42.83c3.655.736 7.538 1.227 11.422 1.227 3.883 0 7.767-.49 11.422-1.227l4.797 17.173c.457 2.208 2.513 3.68 4.34 3.68.457 0 .914 0 1.143-.246 2.513-.736 3.883-3.434 3.198-6.133l-4.797-17.172c7.767-2.944 14.848-7.114 20.788-11.53l12.336 13.738c.913.981 2.056 1.472 3.198 1.472s2.284-.49 3.198-1.472c1.828-1.963 1.828-4.906.228-6.87l-11.65-13.001c9.366-7.36 14.849-14.474 14.849-14.474z" /></symbol>'});o.a.add(s);t["default"]=s},"580a":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-card",{staticClass:"box-card",staticStyle:{width:"800px"},attrs:{size:"small"}},[i("div",[i("el-button",{attrs:{type:"danger"},on:{click:e.handleReset}},[e._v("Reset Password")])],1)])},a=[],r=i("50fc"),o={name:"Account",props:{userId:{type:String,default:""}},methods:{handleReset:function(){var e=this;this.$confirm("Sure to reset password?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){Object(r["s"])(e.userId).then((function(t){t.IsSuccess&&e.$message({message:"Reset password successfully",type:"success"})}))}))}}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},5837:function(e,t,i){},"585a":function(e,t,i){(function(t){var i="object"==typeof t&&t&&t.Object===Object&&t;e.exports=i}).call(this,i("c8ba"))},5866:function(e,t,i){var n=i("ef2b"),a=n.forceLayout,r=i("1c5f"),o=r.simpleLayout,s=i("94e4"),l=s.circularLayout,c=i("3842"),u=c.linearMap,d=i("401b"),f=i("6d8b"),h=i("0c37"),p=h.getCurvenessForEdge;function m(e){e.eachSeriesByType("graph",(function(e){var t=e.coordinateSystem;if(!t||"view"===t.type)if("force"===e.get("layout")){var i=e.preservedPoints||{},n=e.getGraph(),r=n.data,s=n.edgeData,c=e.getModel("force"),h=c.get("initLayout");e.preservedPoints?r.each((function(e){var t=r.getId(e);r.setItemLayout(e,i[t]||[NaN,NaN])})):h&&"none"!==h?"circular"===h&&l(e,"value"):o(e);var m=r.getDataExtent("value"),g=s.getDataExtent("value"),v=c.get("repulsion"),b=c.get("edgeLength");f.isArray(v)||(v=[v,v]),f.isArray(b)||(b=[b,b]),b=[b[1],b[0]];var y=r.mapArray("value",(function(e,t){var i=r.getItemLayout(t),n=u(e,m,v);return isNaN(n)&&(n=(v[0]+v[1])/2),{w:n,rep:n,fixed:r.getItemModel(t).get("fixed"),p:!i||isNaN(i[0])||isNaN(i[1])?null:i}})),w=s.mapArray("value",(function(t,i){var a=n.getEdgeByIndex(i),r=u(t,g,b);isNaN(r)&&(r=(b[0]+b[1])/2);var o=a.getModel(),s=f.retrieve3(o.get("lineStyle.curveness"),-p(a,e,i,!0),0);return{n1:y[a.node1.dataIndex],n2:y[a.node2.dataIndex],d:r,curveness:s,ignoreForceLayout:o.get("ignoreForceLayout")}})),_=(t=e.coordinateSystem,t.getBoundingRect()),I=a(y,w,{rect:_,gravity:c.get("gravity"),friction:c.get("friction")}),x=I.step;I.step=function(e){for(var t=0,a=y.length;t<a;t++)y[t].fixed&&d.copy(y[t].p,n.getNodeByIndex(t).getLayout());x((function(t,a,o){for(var s=0,l=t.length;s<l;s++)t[s].fixed||n.getNodeByIndex(s).setLayout(t[s].p),i[r.getId(s)]=t[s].p;for(s=0,l=a.length;s<l;s++){var c=a[s],u=n.getEdgeByIndex(s),f=c.n1.p,h=c.n2.p,p=u.getLayout();p=p?p.slice():[],p[0]=p[0]||[],p[1]=p[1]||[],d.copy(p[0],f),d.copy(p[1],h),+c.curveness&&(p[2]=[(f[0]+h[0])/2-(f[1]-h[1])*c.curveness,(f[1]+h[1])/2-(h[0]-f[0])*c.curveness]),u.setLayout(p)}e&&e(o)}))},e.forceLayout=I,e.preservedPoints=i,I.step()}else e.forceLayout=null}))}e.exports=m},"587a":function(e,t,i){"use strict";i("217c")},"58c1":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"sysTemplateFrom",staticClass:"upload-temporary-file",attrs:{model:e.form,"label-width":"90px",size:"small",rules:e.rules}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:"Code",prop:"Code"}},[i("el-input",{model:{value:e.form.Code,callback:function(t){e.$set(e.form,"Code",t)},expression:"form.Code"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"业务场景: ",prop:"BusinessScenarioEnum"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{size:"small",filterable:""},model:{value:e.form.BusinessScenarioEnum,callback:function(t){e.$set(e.form,"BusinessScenarioEnum",t)},expression:"form.BusinessScenarioEnum"}},e._l(e.$d.Common_File_BusinessScenario,(function(e){return i("el-option",{key:e.id,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"文件: "}},[i("div",{staticClass:"upload-container"},[i("el-upload",{staticClass:"upload-demo",attrs:{action:"",accept:".xls,.xlsx,.doc,.docx","before-upload":e.beforeUpload,"http-request":e.handleUploadFile,"on-preview":e.handlePreview,"on-remove":e.handleRemoveFile,"show-file-list":!0,"file-list":e.fileList,limit:1,"on-exceed":e.handleExceed,disabled:!e.form.FileTypeEnum||!e.form.BusinessScenarioEnum}},[i("el-button",{attrs:{size:"small",type:"primary",disabled:!e.form.FileTypeEnum||!e.form.BusinessScenarioEnum,loading:e.btnLoading}},[e._v("Select")]),e._v(" "),i("span",{staticClass:"el-upload__tip",staticStyle:{"margin-left":"10px"},attrs:{slot:"tip"},slot:"tip"},[e._v("\n (must be in xlsx/xls/doc/docx format)\n ")])],1)],1)]),e._v(" "),""!==e.form.Id?i("el-form-item",{attrs:{label:"是否废除: "}},[i("el-radio-group",{model:{value:e.form.IsDeleted,callback:function(t){e.$set(e.form,"IsDeleted",t)},expression:"form.IsDeleted"}},[i("el-radio",{attrs:{label:!0}},[e._v("是")]),e._v(" "),i("el-radio",{attrs:{label:!1}},[e._v("否")])],1)],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:"描述"}},[i("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"请输入内容"},model:{value:e.form.Description,callback:function(t){e.$set(e.form,"Description",t)},expression:"form.Description"}})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{size:"small",type:"primary",disabled:!e.form.FileTypeEnum||!e.form.BusinessScenarioEnum,loading:e.saveBtnLoading},on:{click:e.handleSave}},[e._v("Save")])],1)],1)])},a=[],r=(i("7f7f"),i("db72")),o=(i("ac6a"),i("456d"),i("96cf"),i("3b8d")),s=i("e56e"),l=i("86a6"),c={name:"TemplateForm",props:{data:{type:Object,default:function(){return{}}}},data:function(){return{form:{Id:"",Code:"",FileTypeEnum:null,BusinessScenarioEnum:null,Name:"",Path:"",Description:"",IsDeleted:!1},rules:{Code:[{required:!0,message:"Please specify",trigger:["blur"]}],BusinessScenarioEnum:[{required:!0,message:"Please select",trigger:["blur"]}]},fileList:[],btnLoading:!1,saveBtnLoading:!1,loading:!1,dictionaryList:{}}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getDicData();case 2:if(Object.keys(this.data).length>0)for(t in this.data.Path&&(this.fileList=[{name:this.data.Name,path:this.data.Path,type:this.data.Type}]),this.form)this.data.hasOwnProperty(t)&&(this.form[t]=this.data[t]);case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getDicData:function(){var e=this;this.loading=!0,Object(l["c"])(["Common_File_ModuleType","Common_File_Type"]).then((function(t){e.dictionaryList=Object(r["a"])({},t.Result),e.loading=!1})).catch((function(){e.loading=!1}))},beforeUpload:function(e){return this.checkFileSuffix(e.name)?(this.fileList=[],!0):(this.$message.error("必须是word/excel格式"),!1)},handleUploadFile:function(e){var t=this;this.btnLoading=!0,Object(s["Pb"])(e.file).then((function(i){if(t.btnLoading=!1,i.IsSuccess){t.form.Path=i.Result.FilePath,t.form.Name=e.file.name;var n={name:t.form.Name,path:t.form.Path};t.fileList.push(n)}})).catch((function(){t.btnLoading=!1}))},handleSave:function(){var e=this;this.$refs.sysTemplateFrom.validate((function(t){t&&(e.form.Name?(e.saveBtnLoading=!0,Object(s["e"])(e.form).then((function(t){e.saveBtnLoading=!1,e.$emit("closeDialog"),e.$emit("getList"),e.$message.success("Uploaded successfully")})).catch((function(){e.saveBtnLoading=!1}))):e.$message.error("Please select file."))}))},handleRemoveFile:function(){this.fileList=[],this.form.Path="",this.form.Name=""},handlePreview:function(e){e.fullPath&&window.open(e.fullPath,"_blank")},handleExceed:function(e,t){this.$message.warning("Upload is currently limited to 1 file")},checkFileSuffix:function(e){var t=["xls","xlsx","doc","docx"],i=e.substring(e.lastIndexOf(".")+1).toLocaleLowerCase();return-1!==t.indexOf(i)}}},u=c,d=(i("aa81"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},"58df":function(e,t,i){var n=i("6d8b"),a=i("2306");function r(e,t,i,r){var o=i.axis;if(!o.scale.isBlank()){var s=i.getModel("splitArea"),l=s.getModel("areaStyle"),c=l.get("color"),u=r.coordinateSystem.getRect(),d=o.getTicksCoords({tickModel:s,clamp:!0});if(d.length){var f=c.length,h=e.__splitAreaColors,p=n.createHashMap(),m=0;if(h)for(var g=0;g<d.length;g++){var v=h.get(d[g].tickValue);if(null!=v){m=(v+(f-1)*g)%f;break}}var b=o.toGlobalCoord(d[0].coord),y=l.getAreaStyle();c=n.isArray(c)?c:[c];for(g=1;g<d.length;g++){var w,_,I,x,S=o.toGlobalCoord(d[g].coord);o.isHorizontal()?(w=b,_=u.y,I=S-w,x=u.height,b=w+I):(w=u.x,_=b,I=u.width,x=S-_,b=_+x);var T=d[g-1].tickValue;null!=T&&p.set(T,m),t.add(new a.Rect({anid:null!=T?"area_"+T:null,shape:{x:w,y:_,width:I,height:x},style:n.defaults({fill:c[m]},y),silent:!0})),m=(m+1)%f}e.__splitAreaColors=p}}}function o(e){e.__splitAreaColors=null}t.rectCoordAxisBuildSplitArea=r,t.rectCoordAxisHandleRemove=o},5923:function(e,t,i){},"592b":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"clinicalDataForm",attrs:{model:e.form,size:"small",rules:e.rules,"label-width":"110px"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:"临床数据名称",prop:"ClinicalDataSetEnum"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择"},model:{value:e.form.ClinicalDataSetEnum,callback:function(t){e.$set(e.form,"ClinicalDataSetEnum",t)},expression:"form.ClinicalDataSetEnum"}},e._l(e.$d.ClinicalDataType,(function(e,t){return i("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"上传人",prop:"UploadRole"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择"},on:{change:e.handleUploadRoleChange},model:{value:e.form.UploadRole,callback:function(t){e.$set(e.form,"UploadRole",t)},expression:"form.UploadRole"}},e._l(e.$d.ClinicalDataUploadRole,(function(e,t){return i("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"数据级别",prop:"ClinicalDataLevel"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择"},model:{value:e.form.ClinicalDataLevel,callback:function(t){e.$set(e.form,"ClinicalDataLevel",t)},expression:"form.ClinicalDataLevel"}},e._l(e.$d.ClinicalLevel,(function(t,n){return i("el-option",{key:n,attrs:{label:t.label,value:t.value,disabled:0===e.form.UploadRole&&2===t.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"传输方式",prop:"ClinicalUploadType"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择"},model:{value:e.form.ClinicalUploadType,callback:function(t){e.$set(e.form,"ClinicalUploadType",t)},expression:"form.ClinicalUploadType"}},e._l(e.$d.ClinicalUploadType,(function(t,n){return i("el-option",{key:n,attrs:{label:t.label,value:t.value,disabled:1===e.form.UploadRole&&0===t.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"阅片标准",prop:"CriterionEnumList"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择",multiple:""},model:{value:e.form.CriterionEnumList,callback:function(t){e.$set(e.form,"CriterionEnumList",t)},expression:"form.CriterionEnumList"}},e._l(e.$d.CriterionType,(function(e,t){return i("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),1===e.form.ClinicalUploadType?i("el-form-item",{attrs:{label:"模板: "}},[i("div",{staticClass:"upload-container"},[i("el-upload",{staticClass:"upload-demo",attrs:{action:"",accept:".doc,.docx","before-upload":e.beforeUpload,"http-request":e.handleUploadFile,"on-preview":e.handlePreview,"on-remove":e.handleRemoveFile,"show-file-list":!0,"file-list":e.fileList,limit:1,"on-exceed":e.handleExceed,disabled:""===e.form.Type}},[i("el-button",{attrs:{size:"small",type:"primary"}},[e._v("选择")]),e._v(" "),i("span",{staticClass:"el-upload__tip",staticStyle:{"margin-left":"10px"},attrs:{slot:"tip"},slot:"tip"},[e._v("\n (必须是doc/docx格式)\n ")])],1)],1)]):e._e(),e._v(" "),""!==e.form.Id?i("el-form-item",{attrs:{label:"是否启用"}},[i("el-switch",{model:{value:e.form.IsEnable,callback:function(t){e.$set(e.form,"IsEnable",t)},expression:"form.IsEnable"}})],1):e._e()],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.close}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.save}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])},a=[],r=(i("7f7f"),i("ac6a"),i("456d"),i("e56e")),o=i("3e42"),s={name:"AddOrUpdateClinicalData",props:{data:{type:Object,default:function(){return{}}}},data:function(){return{form:{Id:"",ClinicalDataSetEnum:null,ClinicalDataSetName:"",ClinicalDataLevel:null,ClinicalUploadType:null,UploadRole:null,FileName:"",Path:"",IsEnable:!0,CriterionEnumList:[]},rules:{ClinicalDataSetEnum:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:["blur","change"]}],ClinicalDataLevel:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}],ClinicalUploadType:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}],UploadRole:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}],CriterionEnumList:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}]},loading:!1,btnLoading:!1,fileList:[],systemCriterionSelectList:[]}},mounted:function(){this.initForm()},methods:{initForm:function(){if(Object.keys(this.data).length>0){for(var e in this.form)this.data.hasOwnProperty(e)&&(this.form[e]=this.data[e]);this.data.Path&&(this.fileList=[{name:this.data.FileName,path:this.data.Path}])}},save:function(){var e=this;this.$refs.clinicalDataForm.validate((function(t){t&&(e.btnLoading=!0,e.form.ClinicalDataSetName=e.$fd("ClinicalDataType",e.form.ClinicalDataSetEnum),Object(r["d"])(e.form).then((function(t){e.btnLoading=!1,e.$emit("getList"),e.$emit("close"),e.$message.success(e.$t("common:message:savedSuccessfully"))})).catch((function(){e.btnLoading=!1})))}))},handleUploadFile:function(e){var t=this;this.loading=!0,Object(o["xf"])(e.file).then((function(e){if(t.loading=!1,e.IsSuccess){t.form.Path=e.Result[0].Path,t.form.FileName=e.Result[0].FileName;var i={name:t.form.FileName,path:t.form.Path};t.fileList.push(i)}})).catch((function(){t.loading=!1}))},beforeUpload:function(e){return this.checkFileSuffix(e.name)?(this.fileList=[],!0):(this.$message.error("(必须是doc/docx格式)"),!1)},handleRemoveFile:function(){this.fileList=[],this.form.Path="",this.form.FileName=""},handlePreview:function(e){e.fullPath&&window.open(e.fullPath,"_blank")},handleExceed:function(e,t){this.$message.warning("只允许上传一个文件")},checkFileSuffix:function(e){var t=["doc","docx"],i=e.substring(e.lastIndexOf(".")+1).toLocaleLowerCase();return-1!==t.indexOf(i)},handleUploadRoleChange:function(e){0===e&&2===this.form.ClinicalDataLevel&&(this.form.ClinicalDataLevel=null),1===e&&0===this.form.ClinicalUploadType&&(this.form.ClinicalUploadType=null)},close:function(){this.$emit("close")}}},l=s,c=(i("8858"),i("2877")),u=Object(c["a"])(l,n,a,!1,null,"ad83576c",null);t["default"]=u.exports},5951:function(e,t,i){},5973:function(e,t,i){"use strict";i("17b0")},5986:function(e,t,i){},"59fb":function(e,t,i){"use strict";i("965a")},"5a43":function(e,t){function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},"5a54":function(e,t,i){},"5a7d":function(e,t,i){"use strict";i("6b17")},"5a8d":function(e,t,i){"use strict";i("5986")},"5aa7":function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-clipboard",use:"icon-clipboard-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-clipboard"><path d="M54.857 118.857h64V73.143H89.143c-1.902 0-3.52-.668-4.855-2.002-1.335-1.335-2.002-2.954-2.002-4.855V36.57H54.857v82.286zM73.143 16v-4.571a2.2 2.2 0 0 0-.677-1.61 2.198 2.198 0 0 0-1.609-.676H20.571c-.621 0-1.158.225-1.609.676a2.198 2.198 0 0 0-.676 1.61V16a2.2 2.2 0 0 0 .676 1.61c.451.45.988.676 1.61.676h50.285c.622 0 1.158-.226 1.61-.677.45-.45.676-.987.676-1.609zm18.286 48h21.357L91.43 42.642V64zM128 73.143v48c0 1.902-.667 3.52-2.002 4.855-1.335 1.335-2.953 2.002-4.855 2.002H52.57c-1.901 0-3.52-.667-4.854-2.002-1.335-1.335-2.003-2.953-2.003-4.855v-11.429H6.857c-1.902 0-3.52-.667-4.855-2.002C.667 106.377 0 104.759 0 102.857v-96c0-1.902.667-3.52 2.002-4.855C3.337.667 4.955 0 6.857 0h77.714c1.902 0 3.52.667 4.855 2.002 1.335 1.335 2.003 2.953 2.003 4.855V30.29c1 .622 1.856 1.29 2.569 2.003l29.147 29.147c1.335 1.335 2.478 3.145 3.429 5.43.95 2.287 1.426 4.383 1.426 6.291v-.018z" /></symbol>'});o.a.add(s);t["default"]=s},"5aa9":function(e,t,i){var n=i("4e08"),a=(n.__DEV__,i("6d8b")),r=a.isObject,o=a.each,s=a.map,l=a.indexOf,c=(a.retrieve,i("f934")),u=c.getLayoutRect,d=i("697e"),f=d.createScaleByModel,h=d.ifAxisCrossZero,p=d.niceScaleExtent,m=d.estimateLabelUnionRect,g=i("cbe9"),v=i("ec02"),b=i("2039"),y=i("ee1a"),w=y.getStackedDimension;function _(e,t,i){return e.getCoordSysModel()===t}function I(e,t,i){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(e,t,i),this.model=e}i("8ed2");var x=I.prototype;function S(e,t,i,n){i.getAxesOnZeroOf=function(){return a?[a]:[]};var a,r=e[t],o=i.model,s=o.get("axisLine.onZero"),l=o.get("axisLine.onZeroAxisIndex");if(s){if(null!=l)T(r[l])&&(a=r[l]);else for(var c in r)if(r.hasOwnProperty(c)&&T(r[c])&&!n[u(r[c])]){a=r[c];break}a&&(n[u(a)]=!0)}function u(e){return e.dim+"_"+e.index}}function T(e){return e&&"category"!==e.type&&"time"!==e.type&&h(e)}function C(e,t){var i=e.getExtent(),n=i[0]+i[1];e.toGlobalCoord="x"===e.dim?function(e){return e+t}:function(e){return n-e+t},e.toLocalCoord="x"===e.dim?function(e){return e-t}:function(e){return n-e+t}}x.type="grid",x.axisPointerEnabled=!0,x.getRect=function(){return this._rect},x.update=function(e,t){var i=this._axesMap;this._updateScale(e,this.model),o(i.x,(function(e){p(e.scale,e.model)})),o(i.y,(function(e){p(e.scale,e.model)}));var n={};o(i.x,(function(e){S(i,"y",e,n)})),o(i.y,(function(e){S(i,"x",e,n)})),this.resize(this.model,t)},x.resize=function(e,t,i){var n=u(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()});this._rect=n;var a=this._axesList;function r(){o(a,(function(e){var t=e.isHorizontal(),i=t?[0,n.width]:[0,n.height],a=e.inverse?1:0;e.setExtent(i[a],i[1-a]),C(e,t?n.x:n.y)}))}r(),!i&&e.get("containLabel")&&(o(a,(function(e){if(!e.model.get("axisLabel.inside")){var t=m(e);if(t){var i=e.isHorizontal()?"height":"width",a=e.model.get("axisLabel.margin");n[i]-=t[i]+a,"top"===e.position?n.y+=t.height+a:"left"===e.position&&(n.x+=t.width+a)}}})),r())},x.getAxis=function(e,t){var i=this._axesMap[e];if(null!=i){if(null==t)for(var n in i)if(i.hasOwnProperty(n))return i[n];return i[t]}},x.getAxes=function(){return this._axesList.slice()},x.getCartesian=function(e,t){if(null!=e&&null!=t){var i="x"+e+"y"+t;return this._coordsMap[i]}r(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var n=0,a=this._coordsList;n<a.length;n++)if(a[n].getAxis("x").index===e||a[n].getAxis("y").index===t)return a[n]},x.getCartesians=function(){return this._coordsList.slice()},x.convertToPixel=function(e,t,i){var n=this._findConvertTarget(e,t);return n.cartesian?n.cartesian.dataToPoint(i):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(i)):null},x.convertFromPixel=function(e,t,i){var n=this._findConvertTarget(e,t);return n.cartesian?n.cartesian.pointToData(i):n.axis?n.axis.coordToData(n.axis.toLocalCoord(i)):null},x._findConvertTarget=function(e,t){var i,n,a=t.seriesModel,r=t.xAxisModel||a&&a.getReferringComponents("xAxis")[0],o=t.yAxisModel||a&&a.getReferringComponents("yAxis")[0],s=t.gridModel,c=this._coordsList;if(a)i=a.coordinateSystem,l(c,i)<0&&(i=null);else if(r&&o)i=this.getCartesian(r.componentIndex,o.componentIndex);else if(r)n=this.getAxis("x",r.componentIndex);else if(o)n=this.getAxis("y",o.componentIndex);else if(s){var u=s.coordinateSystem;u===this&&(i=this._coordsList[0])}return{cartesian:i,axis:n}},x.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},x._initCartesian=function(e,t,i){var n={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},r={x:0,y:0};if(t.eachComponent("xAxis",s("x"),this),t.eachComponent("yAxis",s("y"),this),!r.x||!r.y)return this._axesMap={},void(this._axesList=[]);function s(i){return function(o,s){if(_(o,e,t)){var l=o.get("position");"x"===i?"top"!==l&&"bottom"!==l&&(l=n.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=n.left?"right":"left"),n[l]=!0;var c=new v(i,f(o),[0,0],o.get("type"),l),u="category"===c.type;c.onBand=u&&o.get("boundaryGap"),c.inverse=o.get("inverse"),o.axis=c,c.model=o,c.grid=this,c.index=s,this._axesList.push(c),a[i][s]=c,r[i]++}}}this._axesMap=a,o(a.x,(function(t,i){o(a.y,(function(n,a){var r="x"+i+"y"+a,o=new g(r);o.grid=this,o.model=e,this._coordsMap[r]=o,this._coordsList.push(o),o.addAxis(t),o.addAxis(n)}),this)}),this)},x._updateScale=function(e,t){function i(e,t,i){o(e.mapDimension(t.dim,!0),(function(i){t.scale.unionExtentFromData(e,w(e,i))}))}o(this._axesList,(function(e){e.scale.setExtent(1/0,-1/0)})),e.eachSeries((function(n){if(D(n)){var a=R(n,e),r=a[0],o=a[1];if(!_(r,t,e)||!_(o,t,e))return;var s=this.getCartesian(r.componentIndex,o.componentIndex),l=n.getData(),c=s.getAxis("x"),u=s.getAxis("y");"list"===l.type&&(i(l,c,n),i(l,u,n))}}),this)},x.getTooltipAxes=function(e){var t=[],i=[];return o(this.getCartesians(),(function(n){var a=null!=e&&"auto"!==e?n.getAxis(e):n.getBaseAxis(),r=n.getOtherAxis(a);l(t,a)<0&&t.push(a),l(i,r)<0&&i.push(r)})),{baseAxes:t,otherAxes:i}};var k=["xAxis","yAxis"];function R(e,t){return s(k,(function(t){var i=e.getReferringComponents(t)[0];return i}))}function D(e){return"cartesian2d"===e.get("coordinateSystem")}I.create=function(e,t){var i=[];return e.eachComponent("grid",(function(n,a){var r=new I(n,e,t);r.name="grid_"+a,r.resize(n,t,!0),n.coordinateSystem=r,i.push(r)})),e.eachSeries((function(t){if(D(t)){var i=R(t,e),n=i[0],a=i[1],r=n.getCoordSysModel(),o=r.coordinateSystem;t.coordinateSystem=o.getCartesian(n.componentIndex,a.componentIndex)}})),i},I.dimensions=I.prototype.dimensions=g.prototype.dimensions,b.register("cartesian2d",I);var L=I;e.exports=L},"5ab7":function(e,t,i){const n=i("3e15"),a=e=>new Promise((t,i)=>{const n=new FileReader;n.onload=()=>{t(n.result)},n.onerror=({target:{error:{code:e}}})=>{i(Error("File could not be read! Code="+e))},n.readAsArrayBuffer(e)});e.exports=async e=>{let t=e;if("undefined"===typeof e)return new Uint8Array;if("string"===typeof e)if(/data:_data\/([a-zA-Z]*);base64,([^"]*)/.test(e))t=atob(e.split(",")[1]).split("").map(e=>e.charCodeAt(0));else{const i=await fetch(n(e));t=await i.arrayBuffer()}else(e instanceof File||e instanceof Blob)&&(t=await a(e));return new Uint8Array(t)}},"5adc":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",[i("div",{staticClass:"search"},[i("el-form",{staticClass:"base-search-form",attrs:{inline:!0,size:"mini"}},[i("el-form-item",{attrs:{label:"阅片标准"}},[i("el-input",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.CriterionName,callback:function(t){e.$set(e.searchData,"CriterionName",t)},expression:"searchData.CriterionName"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:e.handleReset}},[e._v("重置")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.handleSearch}},[e._v("查询")])],1)],1),e._v(" "),i("span",{staticStyle:{"margin-left":"auto"}},[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.handleAdd}},[e._v("添加")])],1)],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:45},expression:"{bottomOffset:45}"}],attrs:{data:e.list,stripe:"",size:"small",height:"100"}},[i("el-table-column",{attrs:{type:"index",width:"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"CriterionName",label:"标准名称","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"CriterionType",label:"标准类型","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("CriterionType",t.row.CriterionType))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsCompleteConfig",label:"是否配置完成"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.IsCompleteConfig?"是":"否")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Description",label:"描述","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ShowOrder",label:"显示序号","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsEnable",label:"是否启用"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.IsEnable?"是":"否")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"Action","min-width":"200px"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("\n 编辑\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(i){return e.handleConfig(t.row)}}},[e._v("\n eCRF\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(i){return e.handleBaseDataConfig(t.row)}}},[e._v("\n 基础数据\n ")]),e._v(" "),i("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("\n 删除\n ")])]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}}),e._v(" "),e.addDialog.visible?i("el-dialog",{attrs:{title:e.addDialog.title,visible:e.addDialog.visible,"close-on-click-modal":!1,"append-to-body":"","custom-class":"base-dialog-wrapper",width:"500px"},on:{"update:visible":function(t){return e.$set(e.addDialog,"visible",t)}}},[i("AddCriterion",{attrs:{data:e.rowData},on:{close:function(t){e.addDialog.visible=!1},getList:e.getList}})],1):e._e(),e._v(" "),e.configVisible?i("el-dialog",{attrs:{title:"eCRF",visible:e.configVisible,"close-on-click-modal":!1,fullscreen:!0,"append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.configVisible=t}}},[i("criterions-config",{attrs:{"criterion-id":e.rowData.Id,data:e.rowData}})],1):e._e(),e._v(" "),e.configBaseDataVisible?i("el-dialog",{attrs:{title:"基础数据配置",visible:e.configBaseDataVisible,"close-on-click-modal":!1,fullscreen:!0,"append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.configBaseDataVisible=t}}},[i("CriterionsBaseData",{attrs:{"criterion-id":e.rowData.Id,"is-complete-config":e.rowData.IsCompleteConfig}})],1):e._e()],1)},a=[],r=i("db72"),o=i("e56e"),s=i("f36a"),l=i("333d"),c=i("491a"),u=i("3609"),d=i("337a"),f=function(){return{CriterionName:"",PageIndex:1,PageSize:20}},h={name:"QcQuestions",components:{BoxContent:s["default"],Pagination:l["default"],CriterionsConfig:c["default"],CriterionsBaseData:u["default"],AddCriterion:d["default"]},data:function(){return{searchData:f(),list:[],total:0,loading:!1,rowData:{},configVisible:!1,configBaseDataVisible:!1,addDialog:{title:"",visible:!1}}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0,Object(o["tb"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},handleAdd:function(){this.addDialog.title="添加",this.addDialog.visible=!0,this.rowData={}},handleEdit:function(e){this.addDialog.title="编辑",this.addDialog.visible=!0,this.rowData=Object(r["a"])({},e)},handleDelete:function(e){var t=this;this.$confirm("是否确认删除",{distinguishCancelAndClose:!0,type:"warning"}).then((function(){t.loading=!0,Object(o["K"])(e.Id).then((function(e){t.loading=!1,e.IsSuccess&&(t.$message.success("保存成功!"),t.getList())})).catch((function(){t.loading=!1}))})).catch((function(){}))},changeStatus:function(e,t){var i=this,n="";e?(n="是否确认更改?",t.IsCompleteConfig=!1):(n="是否确认更改?",t.IsCompleteConfig=!0),this.$confirm(n,{distinguishCancelAndClose:!0,type:"warning"}).then((function(){i.loading=!0;var e={id:t.Id,isCompleteConfig:!t.IsCompleteConfig};Object(o["Nb"])(e).then((function(e){i.loading=!1,e.IsSuccess&&(i.$message.success("保存成功!"),i.getList())})).catch((function(){i.loading=!1}))})).catch((function(){}))},handleConfig:function(e){this.rowData=Object(r["a"])({},e),this.configVisible=!0},handleBaseDataConfig:function(e){this.rowData=Object(r["a"])({},e),this.configBaseDataVisible=!0},handleSearch:function(){this.getList()},handleReset:function(){this.searchData=f(),this.getList()}}},p=h,m=i("2877"),g=Object(m["a"])(p,n,a,!1,null,null,null);t["default"]=g.exports},"5ade":function(e,t,i){},"5aee":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"icon-body"},[i("el-input",{staticStyle:{position:"relative"},attrs:{clearable:"",placeholder:"请输入图标名称"},on:{clear:e.filterIcons},nativeOn:{input:function(t){return e.filterIcons(t)}},model:{value:e.name,callback:function(t){e.name=t},expression:"name"}},[i("i",{staticClass:"el-icon-search el-input__icon",attrs:{slot:"suffix"},slot:"suffix"})]),e._v(" "),i("div",{staticClass:"icon-list"},e._l(e.iconList,(function(t,n){return i("div",{key:n,on:{click:function(i){return e.selectedIcon(t)}}},[i("svg-icon",{staticStyle:{height:"30px",width:"16px"},attrs:{"icon-class":t}}),e._v(" "),i("span",[e._v(e._s(t))])],1)})),0)],1)},a=[],r=(i("6762"),i("2fdb"),i("7f7f"),i("4917"),i("ac6a"),i("23f1")),o=function(e){return e.keys()},s=/\.\/(.*)\.svg/,l=o(r).map((function(e){return e.match(s)[1]})),c=l,u={name:"IconSelect",data:function(){return{name:"",iconList:c}},methods:{filterIcons:function(){var e=this;this.iconList=c,this.name&&(this.iconList=this.iconList.filter((function(t){return t.includes(e.name)})))},selectedIcon:function(e){this.$emit("selected",e),document.body.click()},reset:function(){this.name="",this.iconList=c}}},d=u,f=(i("bce5"),i("2877")),h=Object(f["a"])(d,n,a,!1,null,"0273f142",null);t["default"]=h.exports},"5af2":function(e,t,i){},"5b69":function(e,t,i){var n=i("2306"),a=i("3eba"),r=i("6d8b"),o=["itemStyle","opacity"],s=["emphasis","itemStyle","opacity"],l=["lineStyle","opacity"],c=["emphasis","lineStyle","opacity"];function u(e,t){return e.getVisual("opacity")||e.getModel().get(t)}function d(e,t,i){var n=e.getGraphicEl(),a=u(e,t);null!=i&&(null==a&&(a=1),a*=i),n.downplay&&n.downplay(),n.traverse((function(e){"group"!==e.type&&e.setStyle("opacity",a)}))}function f(e,t){var i=u(e,t),n=e.getGraphicEl();n.traverse((function(e){"group"!==e.type&&e.setStyle("opacity",i)})),n.highlight&&n.highlight()}var h=n.extendShape({shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,cpx2:0,cpy2:0,extent:0,orient:""},buildPath:function(e,t){var i=t.extent;e.moveTo(t.x1,t.y1),e.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),"vertical"===t.orient?(e.lineTo(t.x2+i,t.y2),e.bezierCurveTo(t.cpx2+i,t.cpy2,t.cpx1+i,t.cpy1,t.x1+i,t.y1)):(e.lineTo(t.x2,t.y2+i),e.bezierCurveTo(t.cpx2,t.cpy2+i,t.cpx1,t.cpy1+i,t.x1,t.y1+i)),e.closePath()},highlight:function(){this.trigger("emphasis")},downplay:function(){this.trigger("normal")}}),p=a.extendChartView({type:"sankey",_model:null,_focusAdjacencyDisabled:!1,render:function(e,t,i){var a=this,r=e.getGraph(),o=this.group,s=e.layoutInfo,l=s.width,c=s.height,u=e.getData(),d=e.getData("edge"),f=e.get("orient");this._model=e,o.removeAll(),o.attr("position",[s.x,s.y]),r.eachEdge((function(t){var i=new h;i.dataIndex=t.dataIndex,i.seriesIndex=e.seriesIndex,i.dataType="edge";var a,r,s,u,p,m,g,v,b=t.getModel("lineStyle"),y=b.get("curveness"),w=t.node1.getLayout(),_=t.node1.getModel(),I=_.get("localX"),x=_.get("localY"),S=t.node2.getLayout(),T=t.node2.getModel(),C=T.get("localX"),k=T.get("localY"),R=t.getLayout();switch(i.shape.extent=Math.max(1,R.dy),i.shape.orient=f,"vertical"===f?(a=(null!=I?I*l:w.x)+R.sy,r=(null!=x?x*c:w.y)+w.dy,s=(null!=C?C*l:S.x)+R.ty,u=null!=k?k*c:S.y,p=a,m=r*(1-y)+u*y,g=s,v=r*y+u*(1-y)):(a=(null!=I?I*l:w.x)+w.dx,r=(null!=x?x*c:w.y)+R.sy,s=null!=C?C*l:S.x,u=(null!=k?k*c:S.y)+R.ty,p=a*(1-y)+s*y,m=r,g=a*y+s*(1-y),v=u),i.setShape({x1:a,y1:r,x2:s,y2:u,cpx1:p,cpy1:m,cpx2:g,cpy2:v}),i.setStyle(b.getItemStyle()),i.style.fill){case"source":i.style.fill=t.node1.getVisual("color");break;case"target":i.style.fill=t.node2.getVisual("color");break}n.setHoverStyle(i,t.getModel("emphasis.lineStyle").getItemStyle()),o.add(i),d.setItemGraphicEl(t.dataIndex,i)})),r.eachNode((function(t){var i=t.getLayout(),a=t.getModel(),r=a.get("localX"),s=a.get("localY"),d=a.getModel("label"),f=a.getModel("emphasis.label"),h=new n.Rect({shape:{x:null!=r?r*l:i.x,y:null!=s?s*c:i.y,width:i.dx,height:i.dy},style:a.getModel("itemStyle").getItemStyle()}),p=t.getModel("emphasis.itemStyle").getItemStyle();n.setLabelStyle(h.style,p,d,f,{labelFetcher:e,labelDataIndex:t.dataIndex,defaultText:t.id,isRectText:!0}),h.setStyle("fill",t.getVisual("color")),n.setHoverStyle(h,p),o.add(h),u.setItemGraphicEl(t.dataIndex,h),h.dataType="node"})),u.eachItemGraphicEl((function(t,n){var r=u.getItemModel(n);r.get("draggable")&&(t.drift=function(t,r){a._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=r,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:u.getRawIndex(n),localX:this.shape.x/l,localY:this.shape.y/c})},t.ondragend=function(){a._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor="move"),t.highlight=function(){this.trigger("emphasis")},t.downplay=function(){this.trigger("normal")},t.focusNodeAdjHandler&&t.off("mouseover",t.focusNodeAdjHandler),t.unfocusNodeAdjHandler&&t.off("mouseout",t.unfocusNodeAdjHandler),r.get("focusNodeAdjacency")&&(t.on("mouseover",t.focusNodeAdjHandler=function(){a._focusAdjacencyDisabled||(a._clearTimer(),i.dispatchAction({type:"focusNodeAdjacency",seriesId:e.id,dataIndex:t.dataIndex}))}),t.on("mouseout",t.unfocusNodeAdjHandler=function(){a._focusAdjacencyDisabled||a._dispatchUnfocus(i)}))})),d.eachItemGraphicEl((function(t,n){var r=d.getItemModel(n);t.focusNodeAdjHandler&&t.off("mouseover",t.focusNodeAdjHandler),t.unfocusNodeAdjHandler&&t.off("mouseout",t.unfocusNodeAdjHandler),r.get("focusNodeAdjacency")&&(t.on("mouseover",t.focusNodeAdjHandler=function(){a._focusAdjacencyDisabled||(a._clearTimer(),i.dispatchAction({type:"focusNodeAdjacency",seriesId:e.id,edgeDataIndex:t.dataIndex}))}),t.on("mouseout",t.unfocusNodeAdjHandler=function(){a._focusAdjacencyDisabled||a._dispatchUnfocus(i)}))})),!this._data&&e.get("animation")&&o.setClipPath(m(o.getBoundingRect(),e,(function(){o.removeClipPath()}))),this._data=e.getData()},dispose:function(){this._clearTimer()},_dispatchUnfocus:function(e){var t=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout((function(){t._unfocusDelayTimer=null,e.dispatchAction({type:"unfocusNodeAdjacency",seriesId:t._model.id})}),500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(e,t,i,n){var a=e.getData(),u=a.graph,h=n.dataIndex,p=a.getItemModel(h),m=n.edgeDataIndex;if(null!=h||null!=m){var g=u.getNodeByIndex(h),v=u.getEdgeByIndex(m);if(u.eachNode((function(e){d(e,o,.1)})),u.eachEdge((function(e){d(e,l,.1)})),g){f(g,s);var b=p.get("focusNodeAdjacency");"outEdges"===b?r.each(g.outEdges,(function(e){e.dataIndex<0||(f(e,c),f(e.node2,s))})):"inEdges"===b?r.each(g.inEdges,(function(e){e.dataIndex<0||(f(e,c),f(e.node1,s))})):"allEdges"===b&&r.each(g.edges,(function(e){e.dataIndex<0||(f(e,c),e.node1!==g&&f(e.node1,s),e.node2!==g&&f(e.node2,s))}))}v&&(f(v,c),f(v.node1,s),f(v.node2,s))}},unfocusNodeAdjacency:function(e,t,i,n){var a=e.getGraph();a.eachNode((function(e){d(e,o)})),a.eachEdge((function(e){d(e,l)}))}});function m(e,t,i){var a=new n.Rect({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return n.initProps(a,{shape:{width:e.width+20}},t,i),a}e.exports=p},"5b87":function(e,t,i){var n=i("4e08"),a=(n.__DEV__,i("6d8b")),r=a.each,o=a.createHashMap,s=i("ec34"),l=i("4c86"),c=i("c92f"),u=i("9850"),d={geoJSON:l,svg:c},f={load:function(e,t,i){var n,a=[],s=o(),l=o(),c=p(e);return r(c,(function(o){var c=d[o.type].load(e,o,i);r(c.regions,(function(e){var i=e.name;t&&t.hasOwnProperty(i)&&(e=e.cloneShallow(i=t[i])),a.push(e),s.set(i,e),l.set(i,e.center)}));var u=c.boundingRect;u&&(n?n.union(u):n=u.clone())})),{regions:a,regionsMap:s,nameCoordMap:l,boundingRect:n||new u(0,0,0,0)}},makeGraphic:h("makeGraphic"),removeGraphic:h("removeGraphic")};function h(e){return function(t,i){var n=p(t),a=[];return r(n,(function(n){var r=d[n.type][e];r&&a.push(r(t,n,i))})),a}}function p(e){var t=s.retrieveMap(e)||[];return t}e.exports=f},"5be4":function(e,t,i){"use strict";t["a"]={studyList:[]}},"5bec":function(e,t,i){},"5bef":function(e,t,i){"use strict";i("c6bd")},"5c13":function(e,t,i){"use strict";i("72f0")},"5c2b":function(e,t,i){"use strict";i("b8aa")},"5c34":function(e,t,i){},"5c80":function(e,t,i){"use strict";i("aa5c")},"5c90":function(e,t,i){"use strict";i("d873")},"5ca9":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"previous-files-wrapper"},[i("form",{ref:"uploadForm",attrs:{id:"inputForm"}},[i("el-divider",{attrs:{"content-position":"left"}},[e._v(e._s(e.$t("trials:attachment:message:pdf")))]),e._v(" "),i("div",{staticClass:"form-group"},[i("div",{staticClass:"btn btn-link",staticStyle:{position:"relative",overflow:"hidden",display:"inline-block"},attrs:{id:"directoryInputWrapper"}},[i("el-button",{attrs:{size:"small"}},[e._v(e._s(e.$t("trials:uploadClinicalData:button:selectFile")))]),e._v(" "),i("input",{staticStyle:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",opacity:"0",cursor:"pointer"},attrs:{type:"file",name:"file",multiple:"",accept:e.faccept.join(",")},on:{change:function(t){return e.beginScanFiles(t)}}})],1)])],1),e._v(" "),i("el-table",{ref:"filesTable",staticClass:"dicomFiles-table",attrs:{data:e.fileList,height:"300"},on:{"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),i("el-table-column",{attrs:{prop:"name",label:e.$t("trials:uploadClinicalData:table:fileName"),"min-width":"180"}})],1),e._v(" "),i("div",{staticStyle:{"text-align":"right",padding:"10px 0px"}},[i("el-button",{attrs:{size:"small",type:"primary",disabled:0==e.selectArr.length,loading:e.btnLoading},on:{click:e.handleUploadFile}},[e._v("\n "+e._s(e.$t("trials:uploadClinicalData:button:uploadFile"))+"\n ")])],1)],1)},a=[],r=(i("7f7f"),i("3e42")),o={props:{data:{type:Object,default:function(){return{}}},subjectVisitId:{type:String,required:!0}},data:function(){return{fileList:[],btnLoading:!1,faccept:[".pdf"],trialId:this.$route.query.trialId,selectArr:[],addFileList:[]}},methods:{beginScanFiles:function(e){for(var t=e.target.files,i=0;i<t.length;++i){var n=t[i].name,a=n.substring(n.lastIndexOf(".")).toLocaleLowerCase();-1!==this.faccept.indexOf(a)&&this.fileList.push(t[i])}},handleSelectionChange:function(e){this.selectArr=e},handleUploadFile:function(){var e=this;this.btnLoading=!0;for(var t=new FormData,i=0;i<this.selectArr.length;++i)t.append("file",this.selectArr[i]);Object(r["wf"])(this.trialId,this.data.SubjectId,this.subjectVisitId,t).then((function(t){e.btnLoading=!1,e.addFileList=t.Result,e.saveClinicalData()})).catch((function(){e.btnLoading=!1}))},saveClinicalData:function(){var e=this;this.btnLoading=!0;var t={id:this.data.Id,trialId:this.trialId,subjectId:this.data.SubjectId,readingId:this.subjectVisitId,clinicalDataTrialSetId:this.data.ClinicalDataTrialSetId,isVisit:!0,deleteFileIds:[],addFileList:this.addFileList};Object(r["q"])(t).then((function(t){e.btnLoading=!1,e.$emit("closeUpDialog"),e.$emit("refresh"),e.$message.success(e.$t("trials:uploadClinicalData:message:uploadSuccessfully"))})).catch((function(){e.btnLoading=!1}))}}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},"5ce2":function(e,t,i){i("3970"),i("480e")},"5ce9":function(e,t,i){},"5d20":function(e,t,i){},"5d6b":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",{staticClass:"qc-check-wrapper"},[i("template",{slot:"search-container"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:qcCheck:table:isUrgent")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.IsUrgent,callback:function(t){e.$set(e.searchData,"IsUrgent",t)},expression:"searchData.IsUrgent"}},e._l(e.$d.YesOrNo,(function(e){return i("el-option",{key:"IsUrgent"+e.value,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:qcCheck:table:siteId")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:"",filterable:""},model:{value:e.searchData.SiteId,callback:function(t){e.$set(e.searchData,"SiteId",t)},expression:"searchData.SiteId"}},e._l(e.siteOptions,(function(e,t){return i("el-option",{key:t,attrs:{label:e.TrialSiteCode,value:e.SiteId}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:qcCheck:table:subjectId")}},[i("el-input",{staticStyle:{width:"100px"},model:{value:e.searchData.SubjectInfo,callback:function(t){e.$set(e.searchData,"SubjectInfo",t)},expression:"searchData.SubjectInfo"}})],1),e._v(" "),i("el-form-item",{staticClass:"my_multiple",attrs:{label:e.$t("trials:qcCheck:table:visitName")}},[i("el-select",{staticStyle:{width:"140px"},attrs:{clearable:"",multiple:""},model:{value:e.searchData.VisitPlanArray,callback:function(t){e.$set(e.searchData,"VisitPlanArray",t)},expression:"searchData.VisitPlanArray"}},[e._l(e.visitPlanOptions,(function(t,n){return i("el-option",{key:n,attrs:{label:t.VisitName,value:t.VisitNum}},[i("span",{staticStyle:{float:"left"}},[e._v(e._s(t.VisitName))])])})),e._v(" "),i("el-option",{key:"Other",attrs:{label:"OutPlan",value:"1.11"}})],2)],1),e._v(" "),0!==e.OtherInfo.QCProcessEnum?i("el-form-item",{staticClass:"my_multiple",attrs:{label:e.$t("trials:qcCheck:table:auditState")}},[2===e.OtherInfo.QCProcessEnum?i("el-select",{staticStyle:{width:"140px"},attrs:{clearable:"",multiple:""},model:{value:e.searchData.AuditStateArray,callback:function(t){e.$set(e.searchData,"AuditStateArray",t)},expression:"searchData.AuditStateArray"}},e._l(e.$d.AuditStateRC,(function(e){return i("el-option",{directives:[{name:"show",rawName:"v-show",value:e.value<=8,expression:"item.value <= 8"}],key:e.value,attrs:{value:e.value,label:e.label}})})),1):e._e(),e._v(" "),1===e.OtherInfo.QCProcessEnum?i("el-select",{staticStyle:{width:"140px"},attrs:{clearable:"",multiple:""},model:{value:e.searchData.AuditStateArray,callback:function(t){e.$set(e.searchData,"AuditStateArray",t)},expression:"searchData.AuditStateArray"}},e._l(e.$d.AuditStatePE,(function(e){return i("el-option",{directives:[{name:"show",rawName:"v-show",value:e.value<=8,expression:"item.value <= 8"}],key:e.value,attrs:{value:e.value,label:e.label}})})),1):e._e()],1):e._e(),e._v(" "),0!==e.OtherInfo.QCProcessEnum?i("el-form-item",{attrs:{label:e.$t("trials:qcCheck:table:participant")}},[i("el-select",{staticStyle:{width:"140px"},attrs:{clearable:"",filterable:""},model:{value:e.searchData.HandleUserId,callback:function(t){e.$set(e.searchData,"HandleUserId",t)},expression:"searchData.HandleUserId"}},e._l(e.participantOptions,(function(t,n){return i("el-option",{key:n,attrs:{label:t.HandleUser,value:t.HandleUserId}},[i("span",{staticStyle:{float:"left"}},[e._v(e._s(t.HandleUser))]),e._v(" "),i("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px","margin-left":"5px"}},[e._v("\n "+e._s(t.HandleUserRealName)+"\n ")])])})),1)],1):e._e(),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")])],1)],1)],1),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"}],ref:"qcCheckList",attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{prop:"ChallengeState",label:e.$t("trials:qcCheck:table:challengeState"),"show-overflow-tooltip":"","min-width":"100",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[1*t.row.ChallengeState===0?i("span",[e._v("--")]):1*t.row.ChallengeState===1?i("el-button",{staticStyle:{"font-size":"15px"},attrs:{size:"mini",icon:"el-icon-question",circle:"",type:"primary",title:e.$t("trials:crcQuestion:label:isClosed")},on:{click:function(i){return e.handleChallengeState(t.row.SubjectCode,1)}}}):1*t.row.ChallengeState===2?i("el-button",{staticStyle:{"font-size":"15px"},attrs:{size:"mini",icon:"el-icon-question",circle:"",type:"danger",title:e.$t("trials:crcQuestion:label:isNotClose")},on:{click:function(i){return e.handleChallengeState(t.row.SubjectCode,2)}}}):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsUrgent",label:e.$t("trials:qcCheck:table:isUrgent"),"show-overflow-tooltip":"","min-width":"100",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsUrgent&&e.hasPermi(["trials:trials-panel:visit:qc-check:set-urgent"])?i("el-button",{attrs:{type:"danger",size:"mini",disabled:!(1===e.userTypeEnumInt||3===e.userTypeEnumInt)},on:{click:function(i){return e.handleUrgentStatus(t.row)}}},[e._v("\n "+e._s(e.$fd("YesOrNo",t.row.IsUrgent))+"\n ")]):!t.row.IsUrgent&&e.hasPermi(["trials:trials-panel:visit:qc-check:set-urgent"])?i("el-button",{attrs:{size:"mini",type:"primary",disabled:!(1===e.userTypeEnumInt||3===e.userTypeEnumInt)},on:{click:function(i){return e.handleUrgentStatus(t.row)}}},[e._v("\n "+e._s(e.$fd("YesOrNo",t.row.IsUrgent))+"\n ")]):i("span",[t.row.IsUrgent?i("el-tag",{attrs:{type:"danger"}},[e._v(" "+e._s(e.$fd("YesOrNo",t.row.IsUrgent))+" ")]):i("el-tag",{attrs:{type:"primary"}},[e._v(" "+e._s(e.$fd("YesOrNo",t.row.IsUrgent))+" ")])],1)]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialSiteCode",label:e.$t("trials:qcCheck:table:siteId"),"show-overflow-tooltip":"","min-width":"100",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode",label:e.$t("trials:qcCheck:table:subjectId"),"show-overflow-tooltip":"","min-width":"120",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitName",label:e.$t("trials:qcCheck:table:visitName"),"show-overflow-tooltip":"","min-width":"100",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.VisitExecuted?i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleViewStudyInfo(t.row)}}},[e._v("\n "+e._s(t.row.VisitName)+"\n ")]):i("span",[e._v("\n "+e._s(t.row.VisitName)+"\n ")]),e._v(" "),t.row.PDState?i("span",{staticClass:"status-primary-circle"},[e._v("\n "+e._s(e.$t("trials:crcUpload:label:pd"))+"\n ")]):e._e(),e._v(" "),t.row.IsLostVisit?i("span",{staticClass:"status-primary-circle"},[e._v("\n "+e._s(e.$t("trials:crcUpload:label:lostVisit"))+"\n ")]):e._e(),e._v(" "),t.row.IsFinalVisit?i("span",{staticClass:"status-primary-circle"},[e._v("\n "+e._s(e.$t("trials:crcUpload:label:finalVisit"))+"\n ")]):e._e(),e._v(" "),t.row.IsEnrollmentConfirm?i("span",{staticClass:"status-primary-circle"},[e._v("\n "+e._s(e.$t("trials:crcUpload:label:enrollmentConfirm"))+"\n ")]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"DicomStudyCount",label:e.$t("trials:qcCheck:table:dataCollected"),"show-overflow-tooltip":"","min-width":"110"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-tooltip",{attrs:{placement:"bottom"}},[i("div",{attrs:{slot:"content"},slot:"content"},[i("span",[e._v(e._s(e.$t("trials:crcUpload:label:dicom"))+": "+e._s(t.row.DicomStudyCount)+",")]),e._v(" "),t.row.IsBaseLine&&e.OtherInfo.ClinicalInformationTransmissionEnum>0?i("span",[i("span",[e._v(e._s(e.$t("trials:crcUpload:label:noneDicom"))+": "+e._s(t.row.NoneDicomStudyCount)+",")]),e._v(" "),i("span",[e._v(e._s(e.$t("trials:crcUpload:label:clinicalData"))+": "+e._s(t.row.IsHaveClinicalData?"w/":"w/o"))])]):i("span",[e._v(e._s(e.$t("trials:crcUpload:label:noneDicom"))+": "+e._s(t.row.NoneDicomStudyCount))])]),e._v(" "),i("span",[e._v("\n "+e._s(t.row.IsBaseLine&&e.OtherInfo.ClinicalInformationTransmissionEnum>0?[t.row.DicomStudyCount,t.row.NoneDicomStudyCount,t.row.IsHaveClinicalData?"w/":"w/o"].join(", "):[t.row.DicomStudyCount,t.row.NoneDicomStudyCount].join(", "))+"\n ")])])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"EarliestScanDate",label:e.$t("trials:qcCheck:table:eScanDate"),"show-overflow-tooltip":"","min-width":"110",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.EarliestScanDate?e.moment(t.row.EarliestScanDate).format("YYYY-MM-DD"):"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"LatestScanDate",label:e.$t("trials:qcCheck:table:lScanDate"),"show-overflow-tooltip":"","min-width":"110",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.LatestScanDate?e.moment(t.row.LatestScanDate).format("YYYY-MM-DD"):"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"SubmitTime",label:e.$t("trials:qcCheck:table:submitTime"),"show-overflow-tooltip":"","min-width":"130",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"AuditState",label:e.$t("trials:qcCheck:table:auditState"),"show-overflow-tooltip":"","min-width":"100",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[1*t.row.AuditState===0?i("span",[e._v("--")]):1*t.row.AuditState===3?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("AuditStatePE",1*t.row.AuditState)))]):1*t.row.AuditState===4&&1===t.row.QCProcessEnum?i("el-tag",{attrs:{type:"warning"}},[e._v("\n "+e._s(e.$fd("AuditStatePE",1*t.row.AuditState))+"\n ")]):1*t.row.AuditState===4&&2===t.row.QCProcessEnum||1*t.row.AuditState===5&&2===t.row.QCProcessEnum||1*t.row.AuditState===6&&2===t.row.QCProcessEnum?i("el-tag",{attrs:{type:"warning"}},[e._v("\n "+e._s(e.$fd("AuditStateRC",1*t.row.AuditState))+"\n ")]):1*t.row.AuditState===7?i("el-tag",{attrs:{type:"danger"}},[e._v(" "+e._s(e.$fd("AuditStateRC",1*t.row.AuditState)))]):1*t.row.AuditState===8?i("el-tag",{attrs:{type:"primary"}},[e._v(" "+e._s(e.$fd("AuditStateRC",1*t.row.AuditState)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{directives:[{name:"show",rawName:"v-show",value:0!==e.OtherInfo.QCProcessEnum,expression:"OtherInfo.QCProcessEnum !== 0"}],attrs:{prop:"PreliminaryAuditUserName",label:e.$t("trials:qcCheck:table:reviewer"),"show-overflow-tooltip":"","min-width":"170"},scopedSlots:e._u([{key:"default",fn:function(t){return[!t.row.PreliminaryAuditUserName||e.hasPermi(["role:iqc"])&&t.row.AuditState<7&&e.userId!==t.row.PreliminaryAuditUserId&&e.hasPermi(["role:iqc"])&&!(t.row.AuditState>=7)?i("span",[e._v(e._s(t.row.PreliminaryAuditUserName))]):i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleViewPrimaryQC(t.row)}}},[e._v("\n "+e._s(t.row.PreliminaryAuditUserName)+"\n ")]),e._v(" "),t.row.PreliminaryAuditUserName&&2===e.OtherInfo.QCProcessEnum?i("span",{staticClass:"status-primary-circle"},[e._v("\n "+e._s(e.$t("trials:qcCheck:label:preliminary"))+"\n ")]):e._e(),e._v(" "),t.row.ReviewAuditUserName?i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleViewReviewQC(t.row)}}},[e._v("\n "+e._s(t.row.ReviewAuditUserName)+"\n ")]):e._e(),e._v(" "),t.row.ReviewAuditUserName&&2===e.OtherInfo.QCProcessEnum?i("span",{staticClass:"status-primary-circle"},[e._v("\n "+e._s(e.$t("trials:qcCheck:label:review"))+"\n ")]):e._e()]}}])}),e._v(" "),i("el-table-column",{directives:[{name:"show",rawName:"v-show",value:0!==e.OtherInfo.QCProcessEnum,expression:"OtherInfo.QCProcessEnum !== 0"}],attrs:{prop:"CurrentActionUserName",label:e.$t("trials:qcCheck:table:crrentUser"),"show-overflow-tooltip":"","min-width":"100",sortable:"custom"}}),e._v(" "),0!==e.OtherInfo.QCProcessEnum&&e.hasPermi(["trials:trials-panel:visit:qc-check:receive","trials:trials-panel:visit:qc-check:release","trials:trials-panel:visit:qc-check:audit"])?i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"200",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[1*t.row.AuditState>=3?i("div",[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:qc-check:receive"],expression:"['trials:trials-panel:visit:qc-check:receive']"}],attrs:{title:e.$t("trials:qcCheck:button:receive"),circle:"",icon:"el-icon-lock",disabled:t.row.PreliminaryAuditUserId===e.userId||t.row.IsTake||t.row.AuditState>6},on:{click:function(i){return e.handleReciveTask(t.row,!0)}}}),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:qc-check:release"],expression:"['trials:trials-panel:visit:qc-check:release']"}],attrs:{title:e.$t("trials:qcCheck:button:release"),circle:"",icon:"el-icon-unlock",disabled:!(t.row.CurrentActionUserId===e.userId)||!t.row.IsTake||1*t.row.AuditState>6},on:{click:function(i){return e.handleReciveTask(t.row,!1)}}}),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:qc-check:release"],expression:"['trials:trials-panel:visit:qc-check:release']"}],attrs:{title:e.$t("trials:crcQuestion:button:replaceTask"),circle:"",icon:"el-icon-refresh",disabled:t.row.CurrentActionUserId===e.userId||t.row.PreliminaryAuditUserId===e.userId||!t.row.IsTake||1*t.row.AuditState>6},on:{click:function(i){return e.handleReplaceTask(t.row)}}}),e._v(" "),1===t.row.QCProcessEnum?i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:qc-check:audit"],expression:"['trials:trials-panel:visit:qc-check:audit']"}],attrs:{title:e.$t("trials:qcCheck:button:audit"),circle:"",icon:"el-icon-edit-outline",disabled:!!t.row.CurrentActionUserId&&t.row.CurrentActionUserId!==e.userId||!t.row.IsTake||1*t.row.AuditState>6},on:{click:function(i){return e.handlePrimaryQC(t.row)}}}):e._e(),e._v(" "),2===t.row.QCProcessEnum&&1*t.row.AuditState<6?i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:qc-check:audit"],expression:"['trials:trials-panel:visit:qc-check:audit']"}],attrs:{title:e.$t("trials:qcCheck:button:preliminaryAudit"),circle:"",icon:"el-icon-edit-outline",disabled:!!t.row.CurrentActionUserId&&t.row.CurrentActionUserId!==e.userId||!t.row.IsTake||1*t.row.AuditState>6},on:{click:function(i){return e.handlePrimaryQC(t.row)}}}):e._e(),e._v(" "),2===t.row.QCProcessEnum&&1*t.row.AuditState>=6?i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:qc-check:audit"],expression:"['trials:trials-panel:visit:qc-check:audit']"}],attrs:{title:e.$t("trials:qcCheck:button:review"),circle:"",icon:"el-icon-edit-outline",disabled:t.row.PreliminaryAuditUserId===e.userId||!t.row.IsTake||1*t.row.AuditState>6||t.row.CurrentActionUserId!==e.userId},on:{click:function(i){return e.handleSecondaryQC(t.row)}}}):e._e()],1):e._e()]}}],null,!1,4247995633)}):e._e()],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1),e._v(" "),i("div",{staticClass:"remark"},[i("span",{staticClass:"status-primary-circle"},[e._v("\n "+e._s(e.$t("trials:crcUpload:label:finalVisit"))+"\n ")]),e._v(" "),i("span",[e._v(": "+e._s(e.$t("trials:crcUpload:label:finalVisitDetail")))]),e._v(" "),i("span",{staticClass:"status-primary-circle",staticStyle:{"margin-left":"10px"}},[e._v("\n "+e._s(e.$t("trials:crcUpload:label:lostVisit"))+"\n ")]),e._v(" "),i("span",[e._v(": "+e._s(e.$t("trials:crcUpload:label:lostVisitDetail")))]),e._v(" "),i("span",{staticClass:"status-primary-circle",staticStyle:{"margin-left":"10px"}},[e._v("\n "+e._s(e.$t("trials:crcUpload:label:pd"))+"\n ")]),e._v(" "),i("span",[e._v(": "+e._s(e.$t("trials:crcUpload:label:pdDetail")))]),e._v(" "),i("span",{staticClass:"status-primary-circle",staticStyle:{"margin-left":"10px"}},[e._v("\n "+e._s(e.$t("trials:crcUpload:label:enrollmentConfirm"))+"\n ")]),e._v(" "),i("span",[e._v(": "+e._s(e.$t("trials:crcUpload:label:enrollmentConfirmDetail")))]),e._v(" "),2===e.OtherInfo.QCProcessEnum?i("span",{staticClass:"status-primary-circle",staticStyle:{"margin-left":"10px"}},[e._v("\n "+e._s(e.$t("trials:qcCheck:label:preliminary"))+"\n ")]):e._e(),e._v(" "),2===e.OtherInfo.QCProcessEnum?i("span",[e._v(": "+e._s(e.$t("trials:qcCheck:label:preliminaryAudit")))]):e._e(),e._v(" "),2===e.OtherInfo.QCProcessEnum?i("span",{staticClass:"status-primary-circle",staticStyle:{"margin-left":"10px"}},[e._v("\n "+e._s(e.$t("trials:qcCheck:label:review"))+"\n ")]):e._e(),e._v(" "),2===e.OtherInfo.QCProcessEnum?i("span",[e._v(": "+e._s(e.$t("trials:qcCheck:label:reviewAudit")))]):e._e()]),e._v(" "),e.qcVisible?i("el-dialog",{attrs:{visible:e.qcVisible,fullscreen:!0,"close-on-click-modal":!1,"custom-class":"qc-dialog"},on:{"update:visible":function(t){e.qcVisible=t}}},[i("span",{attrs:{slot:"title"},slot:"title"},[i("el-breadcrumb",{attrs:{separator:"/"}},[e.trialCode?i("el-breadcrumb-item",[e._v(e._s(e.trialCode))]):e._e(),e._v(" "),e.rowData.TrialSiteCode?i("el-breadcrumb-item",[e._v(e._s(e.rowData.TrialSiteCode))]):e._e(),e._v(" "),e.rowData.SubjectCode?i("el-breadcrumb-item",[e._v(e._s(e.rowData.SubjectCode))]):e._e(),e._v(" "),e.rowData.VisitName?i("el-breadcrumb-item",[e._v("\n "+e._s(e.rowData.VisitName+" ("+e.rowData.VisitNum+")")+"\n ")]):e._e()],1)],1),e._v(" "),i("div",{staticClass:"qc-dialog-body"},[e.qcVisible?i("quality-assurance",{attrs:{data:e.rowData,disabled:!!e.rowData.disabled&&e.rowData.disabled,"q-type":e.rowData.qcType?e.rowData.qcType:1},on:{getList:e.getList,nextTask:e.nextTask}}):e._e()],1)]):e._e(),e._v(" "),e.studyVisible?i("el-dialog",{attrs:{visible:e.studyVisible,"close-on-click-modal":!1,fullscreen:!0,"custom-class":"upload-dialog"},on:{"update:visible":function(t){e.studyVisible=t}}},[i("span",{attrs:{slot:"title"},slot:"title"},[i("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},[i("el-breadcrumb-item",{directives:[{name:"show",rawName:"v-show",value:e.searchData.TrialCode,expression:"searchData.TrialCode"}]},[e._v(e._s(e.searchData.TrialCode))]),e._v(" "),i("el-breadcrumb-item",{directives:[{name:"show",rawName:"v-show",value:e.rowData.SiteCode,expression:"rowData.SiteCode"}]},[e._v(e._s(e.rowData.TrialSiteCode))]),e._v(" "),i("el-breadcrumb-item",{directives:[{name:"show",rawName:"v-show",value:e.rowData.SubjectCode,expression:"rowData.SubjectCode"}]},[e._v(e._s(e.rowData.SubjectCode))]),e._v(" "),i("el-breadcrumb-item",{directives:[{name:"show",rawName:"v-show",value:e.rowData.VisitName,expression:"rowData.VisitName"}]},[e._v(e._s(e.rowData.VisitName+" ("+e.rowData.VisitNum+")"))])],1)],1),e._v(" "),i("div",{staticClass:"base-modal-body"},[i("el-form",{staticClass:"base-search-form",staticStyle:{padding:"10px"},attrs:{inline:!0}},[i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.rowData.IsBaseLine&&e.OtherInfo.IsHaveFirstGiveMedicineDate,expression:"rowData.IsBaseLine && OtherInfo.IsHaveFirstGiveMedicineDate"}],attrs:{label:e.$t("trials:crcUpload:form:baseDateOfVisit")}},[i("el-date-picker",{attrs:{type:"date","value-format":"yyyy-MM-dd",format:"yyyy-MM-dd",disabled:""},model:{value:e.rowData.SubjectFirstGiveMedicineTime,callback:function(t){e.$set(e.rowData,"SubjectFirstGiveMedicineTime",t)},expression:"rowData.SubjectFirstGiveMedicineTime"}})],1),e._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.rowData.IsBaseLine&&e.OtherInfo.IsEnrollementQualificationConfirm,expression:"rowData.IsBaseLine && OtherInfo.IsEnrollementQualificationConfirm"}],attrs:{label:e.$t("trials:crcUpload:form:enrollmentConfirmation")}},[i("el-radio-group",{attrs:{disabled:""},model:{value:e.rowData.IsEnrollmentConfirm,callback:function(t){e.$set(e.rowData,"IsEnrollmentConfirm",t)},expression:"rowData.IsEnrollmentConfirm"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"IsEnrollmentConfirm"+t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1),e._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:!e.rowData.IsBaseLine&&e.OtherInfo.IsPDProgressView,expression:"!rowData.IsBaseLine && OtherInfo.IsPDProgressView"}],attrs:{label:e.$t("trials:crcUpload:form:pd")}},[i("el-radio-group",{attrs:{disabled:""},model:{value:e.rowData.PDState,callback:function(t){e.$set(e.rowData,"PDState",t)},expression:"rowData.PDState"}},e._l(e.$d.YesOrNoForInt,(function(t){return i("el-radio",{key:"PDState"+t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1)],1),e._v(" "),i("div",[i("h4",{staticClass:"box-title"},[e._v(e._s(e.$t("trials:audit:tab:dicoms")))]),e._v(" "),i("el-card",{staticClass:"box-card"},[e.rowData.Id?i("DicomFiles",{attrs:{data:e.rowData}}):e._e()],1)],1),e._v(" "),i("div",[i("h4",{staticClass:"box-title",staticStyle:{"margin-top":"10px"}},[e._v(e._s(e.$t("trials:audit:tab:nonDicoms")))]),e._v(" "),i("el-card",{staticClass:"box-card"},[e.rowData.Id?i("UploadNonDicomFiles",{attrs:{"body-parts":e.OtherInfo.BodyPartTypes,modalities:e.OtherInfo.Modalitys,data:e.rowData,"allow-add-or-edit":!1,"subject-visit-id":e.rowData.Id}}):e._e()],1)],1),e._v(" "),e.OtherInfo.ClinicalInformationTransmissionEnum>0?i("div",[i("h4",{staticClass:"box-title",staticStyle:{"margin-top":"10px"}},[e._v(e._s(e.$t("trials:audit:tab:clinicalData")))]),e._v(" "),e.OtherInfo.ClinicalInformationTransmissionEnum>0?i("el-card",{staticClass:"box-card"},[e.rowData.Id?i("UploadClinicalData",{attrs:{"enum-type":e.OtherInfo.ClinicalInformationTransmissionEnum,data:e.rowData,"subject-visit-id":e.rowData.Id,"allow-add-or-edit":!1}}):e._e()],1):e._e()],1):e._e()],1)]):e._e(),e._v(" "),e.urgentVisible?i("el-dialog",{staticStyle:{height:"500px"},attrs:{visible:e.urgentVisible,"close-on-click-modal":!1,title:e.$t("trials:qcCheck:dialogTitle:setUrgent"),width:"400px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.urgentVisible=t}}},[i("el-form",{attrs:{model:e.urgentForm,size:"mini"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:e.$t("trials:qcCheck:table:isUrgent")}},[i("el-radio-group",{model:{value:e.urgentForm.IsUrgent,callback:function(t){e.$set(e.urgentForm,"IsUrgent",t)},expression:"urgentForm.IsUrgent"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"formIsUrgent"+t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{disabled:e.loading,size:"small",type:"primary"},on:{click:function(t){e.urgentVisible=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.loading},on:{click:e.setUrgentStatus}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])],1):e._e()],2)},a=[],r=(i("a481"),i("db72")),o=i("3e42"),s=i("6071"),l=i("97bd"),c=i("283c"),u=i("4ebb"),d=i("dda6"),f=i("333d"),h=i("c1df"),p=i.n(h),m=i("a599"),g=i("5f87"),v=function(){return{TrialId:"",SiteId:"",SubjectInfo:"",VisitPlanArray:[],IsUrgent:null,AuditStateArray:[],HandleUserId:"",PageIndex:1,PageSize:20}},b={name:"QcCheck",components:{BaseContainer:s["default"],Pagination:f["default"],QualityAssurance:l["default"],DicomFiles:c["default"],UploadNonDicomFiles:u["default"],UploadClinicalData:d["default"]},data:function(){return{searchData:v(),total:0,list:[],loading:!1,qcVisible:!1,rowData:{TrialSiteCode:"",SubjectCode:"",VisitName:"",VisitNum:""},userTypeEnumInt:1*zzSessionStorage.getItem("userTypeEnumInt"),userId:zzSessionStorage.getItem("userId"),moment:p.a,siteOptions:[],visitPlanOptions:[],OtherInfo:{},participantOptions:[],studyVisible:!1,urgentVisible:!1,urgentForm:{id:"",isUrgent:null},trialId:this.$route.query.trialId,trialCode:this.$route.query.trialCode,query:null}},watch:{list:function(e){this.doLayout()}},mounted:function(){this.query=this.$route.query,this.$route.query.subjectCode&&(this.searchData.SubjectInfo=this.$route.query.subjectCode),Object(m["a"])("subjectCode",""),this.getList(),this.getSite(),this.getParticipantList(),this.getVisitPlanOptions()},methods:{getList:function(){var e=this;this.loading=!0,this.searchData.TrialId=this.trialId,Object(o["Ic"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount,e.OtherInfo=t.OtherInfo})).catch((function(){e.loading=!1}))},doLayout:function(){var e=this;this.$nextTick((function(){e.$refs.qcCheckList.doLayout()}))},handleReciveTask:function(e,t){var i=this,n="";n=t?this.$t("trials:qcCheck:message:receive"):this.$t("trials:qcCheck:message:release"),this.$confirm(n,{type:"warning",distinguishCancelAndClose:!0}).then((function(){i.loading=!0,Object(o["jf"])(e.TrialId,e.Id,t).then((function(e){i.loading=!1,e.IsSuccess&&(i.getList(),t?i.$message.success(i.$t("trials:qcCheck:message:receivedSuccessfully")):i.$message.success(i.$t("trials:qcCheck:message:releasedSuccessfully")))})).catch((function(e){i.loading=!1,5===e.Code&&e.ErrorMessage&&(i.$confirm(e.ErrorMessage,{type:"warning",showCancelButton:!1,callback:function(e){}}),i.getList())}))})).catch((function(){}))},handlePrimaryQC:function(e){var t=this;this.loading=!0,Object(o["pe"])(e.Id).then((function(i){t.loading=!1,i.IsSuccess&&(t.rowData=Object(r["a"])({},e),t.qcVisible=!0)})).catch((function(e){t.loading=!1,2===e.Code&&t.getList()}))},handleSecondaryQC:function(e){var t=this;this.loading=!0,Object(o["pe"])(e.Id).then((function(i){t.loading=!1,i.IsSuccess&&(t.rowData=Object(r["a"])({},e),t.qcVisible=!0)})).catch((function(e){t.loading=!1,2===e.Code&&t.getList()}))},handleViewPrimaryQC:function(e){this.rowData=Object(r["a"])({},e),this.rowData.disabled=!0,this.rowData.qcType=1,this.qcVisible=!0},handleViewReviewQC:function(e){this.rowData=Object(r["a"])({},e),this.rowData.disabled=!0,this.rowData.qcType=2,this.qcVisible=!0},handleViewImages:function(){var e=Object(g["a"])(),t=this.$router.resolve({path:"/showvisitdicoms?trialId=".concat(this.rowData.TrialId,"&visitInfo=").concat(this.rowData.VisitName,"(").concat(this.rowData.VisitNum,")&subjectVisitId=").concat(this.rowData.Id,"&TokenKey=").concat(e)});window.open(t.href,"_blank")},handleViewStudyInfo:function(e){this.studyVisible=!0,this.rowData=Object(r["a"])({},e)},handleReset:function(){var e=this;this.searchData=v(),this.getList(),this.$nextTick((function(){e.$refs.qcCheckList.clearSort()}))},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleSortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()},getSite:function(){var e=this;Object(o["Zd"])(this.trialId).then((function(t){e.siteOptions=t.Result}))},getVisitPlanOptions:function(){var e=this;Object(o["ee"])(this.trialId).then((function(t){e.visitPlanOptions=t.Result}))},getParticipantList:function(){var e=this;Object(o["Fc"])(this.trialId).then((function(t){e.participantOptions=t.Result}))},handleUrgentStatus:function(e){this.urgentForm=Object.assign({},Object(r["a"])({},e)),this.urgentVisible=!0},setUrgentStatus:function(){var e=this,t=this.urgentForm.IsUrgent?this.$t("trials:qcCheck:message:isUrgent"):this.$t("trials:qcCheck:message:isNotUrgent");this.$confirm(t,{type:"warning",distinguishCancelAndClose:!0}).then((function(){e.loading=!0,Object(o["Se"])(e.urgentForm.TrialId,e.urgentForm.Id,e.urgentForm.IsUrgent).then((function(t){e.loading=!1,t.IsSuccess&&(e.urgentVisible=!1,e.getList(),e.$message.success(e.$t("common:message:savedSuccessfully")))})).catch((function(){e.loading=!1}))}))},handleChallengeState:function(e,t){this.$router.push({path:"/trials/trials-panel/visit/qc-question?trialId=".concat(this.trialId,"&trialCode=").concat(this.query.trialCode,"&researchProgramNo=").concat(this.query.researchProgramNo,"&subjectCode=").concat(e,"&challengeState=").concat(t)})},handleReplaceTask:function(e){var t=this,i=this.$t("trials:crcQuestion:message:replaceTask");i=i.replace("xxx",e.CurrentActionUserName),this.$confirm(i,{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.loading=!0,Object(o["ve"])(e.TrialId,e.Id).then((function(e){t.loading=!1,e.IsSuccess&&(t.$message.success(t.$t("trials:crcQuestion:message:replaceTaskSuccessfully")),t.getList())})).catch((function(e){t.loading=!1,t.getList(),e.ErrorMessage&&t.$confirm(e.ErrorMessage,{type:"warning",showCancelButton:!1,callback:function(e){}})}))})).catch((function(){}))},nextTask:function(){var e=this;this.loading=!0,Object(o["uc"])({trialId:this.trialId}).then((function(t){e.loading=!1,e.qcVisible=!1,t.Result?e.$nextTick((function(){e.rowData=Object(r["a"])({},t.Result),e.qcVisible=!0})):(e.$message.success(e.$t("trials:qcQuality:title:title3")),e.qcVisible=!1)})).catch((function(){e.loading=!1,e.qcVisible=!1}))}}},y=b,w=(i("5055"),i("2877")),_=Object(w["a"])(y,n,a,!1,null,null,null);t["default"]=_.exports},"5da4":function(e,t,i){"use strict";i("13aa")},"5db3":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{ref:"mapbox",staticClass:"map-wrapper"})},a=[],r=(i("ac6a"),i("7f7f"),i("313e")),o=i.n(r),s=(i("c54d"),i("6331")),l={props:{area:{type:String,default:""},width:{type:String,default:""},heigt:{type:String,default:""}},watch:{area:function(){var e=this;this.$nextTick((function(){e.myChart.resize()}))}},mounted:function(){this.initMap()},methods:{data:function(){return{myChart:""}},initMap:function(){var e={Shanghai:[121.4648,31.2891],Boston:[-71.050423,42.382983]},t=[[{name:"Shanghai",selected:!0,color:"#fce630"},{name:"Boston"}],[{name:"Boston",selected:!0,color:"#fce630"},{name:"Shanghai"}]],i=function(t){for(var i=[],n=0;n<t.length;n++){var a=t[n],r=e[a[0].name],o=e[a[1].name];r&&o&&i.push([{coord:r,value:a[0].value},{coord:o}])}return i},n=[];[["Shanghai",t]].forEach((function(t,a){n.push({type:"lines",zlevel:1,effect:{show:!0,color:"#fff",period:6,trailLength:.7,symbolSize:Object(s["a"])(.05)},lineStyle:{normal:{width:Object(s["a"])(.03),color:"#9ae5fc",opacity:.02,curveness:-.2}},data:i(t[1])},{type:"effectScatter",coordinateSystem:"geo",zlevel:3,rippleEffect:{period:5,brushType:"fill",scale:5},label:{normal:{show:!0,color:"#fce630",position:"right",offset:[10,0],fontSize:Object(s["a"])(.16),formatter:"{b}"},emphasis:{show:!0}},symbol:"circle",symbolSize:function(e){return Object(s["a"])(.08)},data:t[1].map((function(t){return{name:t[0].name,value:e[t[0].name]}}))})}));var a={title:{textStyle:{color:"#fff",fontSize:Object(s["a"])(.16)}},visualMap:{min:0,max:1e4,show:!1,color:["#fff"],fontSize:Object(s["a"])(.16)},tooltip:{trigger:"item",fontSize:Object(s["a"])(.16),formatter:function(e){return"undefined"===typeof e.value?"":e.name}},geo:{map:"world",label:{emphasis:{show:!1}},roam:!0,layoutCenter:["50%","50%"],layoutSize:"180%",regions:[{name:["China"],selected:!0,itemStyle:{emphasis:{areaColor:"#e8b05c"}},label:{emphasis:{show:!1}}},{name:["United States"],selected:!0,itemStyle:{emphasis:{areaColor:"#e8b05c"}},label:{emphasis:{show:!1}}}],itemStyle:{normal:{areaColor:"#11d2d6",borderColor:"#002097"},emphasis:{areaColor:"#339966"}}},series:n};this.myChart=o.a.init(this.$refs.mapbox),this.myChart.setOption(a)}}},c=l,u=(i("e6d0"),i("2877")),d=Object(u["a"])(c,n,a,!1,null,"6e3002ce",null);t["default"]=d.exports},"5e36":function(e,t,i){"use strict";i("b202")},"5e68":function(e,t,i){var n=i("6d8b"),a=i("2cf4"),r=a.devicePixelRatio,o=i("2b61"),s=i("dc2f");function l(){return!1}function c(e,t,i){var a=n.createCanvas(),r=t.getWidth(),o=t.getHeight(),s=a.style;return s&&(s.position="absolute",s.left=0,s.top=0,s.width=r+"px",s.height=o+"px",a.setAttribute("data-zr-dom-id",e)),a.width=r*i,a.height=o*i,a}var u=function(e,t,i){var a;i=i||r,"string"===typeof e?a=c(e,t,i):n.isObject(e)&&(a=e,e=a.id),this.id=e,this.dom=a;var o=a.style;o&&(a.onselectstart=l,o["-webkit-user-select"]="none",o["user-select"]="none",o["-webkit-touch-callout"]="none",o["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",o["padding"]=0,o["margin"]=0,o["border-width"]=0),this.domBack=null,this.ctxBack=null,this.painter=t,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=i};u.prototype={constructor:u,__dirty:!0,__used:!1,__drawIndex:0,__startIndex:0,__endIndex:0,incremental:!1,getElementCount:function(){return this.__endIndex-this.__startIndex},initContext:function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},createBackBuffer:function(){var e=this.dpr;this.domBack=c("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),1!==e&&this.ctxBack.scale(e,e)},resize:function(e,t){var i=this.dpr,n=this.dom,a=n.style,r=this.domBack;a&&(a.width=e+"px",a.height=t+"px"),n.width=e*i,n.height=t*i,r&&(r.width=e*i,r.height=t*i,1!==i&&this.ctxBack.scale(i,i))},clear:function(e,t){var i,n=this.dom,a=this.ctx,r=n.width,l=n.height,c=(t=t||this.clearColor,this.motionBlur&&!e),u=this.lastFrameAlpha,d=this.dpr;(c&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(n,0,0,r/d,l/d)),a.clearRect(0,0,r,l),t&&"transparent"!==t)&&(t.colorStops?(i=t.__canvasGradient||o.getGradient(a,t,{x:0,y:0,width:r,height:l}),t.__canvasGradient=i):t.image&&(i=s.prototype.getCanvasPattern.call(t,a)),a.save(),a.fillStyle=i||t,a.fillRect(0,0,r,l),a.restore());if(c){var f=this.domBack;a.save(),a.globalAlpha=u,a.drawImage(f,0,0,r,l),a.restore()}}};var d=u;e.exports=d},"5e76":function(e,t,i){var n=i("d51b"),a=new n(50);function r(e){if("string"===typeof e){var t=a.get(e);return t&&t.image}return e}function o(e,t,i,n,r){if(e){if("string"===typeof e){if(t&&t.__zrImageSrc===e||!i)return t;var o=a.get(e),c={hostEl:i,cb:n,cbPayload:r};return o?(t=o.image,!l(t)&&o.pending.push(c)):(t=new Image,t.onload=t.onerror=s,a.put(e,t.__cachedImgObj={image:t,pending:[c]}),t.src=t.__zrImageSrc=e),t}return e}return t}function s(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var i=e.pending[t],n=i.cb;n&&n(this,i.cbPayload),i.hostEl.dirty()}e.pending.length=0}function l(e){return e&&e.width&&e.height}t.findExistImage=r,t.createOrUpdateImage=o,t.isImageReady=l},"5e97":function(e,t,i){var n=i("4e08"),a=(n.__DEV__,i("3eba")),r=i("6d8b"),o=i("a15a"),s=o.createSymbol,l=i("2306"),c=i("79190"),u=c.makeBackground,d=i("f934"),f=r.curry,h=r.each,p=l.Group,m=a.extendComponentView({type:"legend.plain",newlineDisabled:!1,init:function(){this.group.add(this._contentGroup=new p),this._backgroundEl,this.group.add(this._selectorGroup=new p),this._isFirstRender=!0},getContentGroup:function(){return this._contentGroup},getSelectorGroup:function(){return this._selectorGroup},render:function(e,t,i){var n=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get("show",!0)){var a=e.get("align"),o=e.get("orient");a&&"auto"!==a||(a="right"===e.get("left")&&"vertical"===o?"right":"left");var s=e.get("selector",!0),l=e.get("selectorPosition",!0);!s||l&&"auto"!==l||(l="horizontal"===o?"end":"start"),this.renderInner(a,e,t,i,s,o,l);var c=e.getBoxLayoutParams(),f={width:i.getWidth(),height:i.getHeight()},h=e.get("padding"),p=d.getLayoutRect(c,f,h),m=this.layoutInner(e,a,p,n,s,l),g=d.getLayoutRect(r.defaults({width:m.width,height:m.height},c),f,h);this.group.attr("position",[g.x-m.x,g.y-m.y]),this.group.add(this._backgroundEl=u(m,e))}},resetInner:function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},renderInner:function(e,t,i,n,a,o,s){var l=this.getContentGroup(),c=r.createHashMap(),u=t.get("selectedMode"),d=[];i.eachRawSeries((function(e){!e.get("legendHoverLink")&&d.push(e.id)})),h(t.getData(),(function(a,r){var o=a.get("name");if(this.newlineDisabled||""!==o&&"\n"!==o){var s=i.getSeriesByName(o)[0];if(!c.get(o))if(s){var h=s.getData(),m=h.getVisual("color"),g=h.getVisual("borderColor");"function"===typeof m&&(m=m(s.getDataParams(0))),"function"===typeof g&&(g=g(s.getDataParams(0)));var w=h.getVisual("legendSymbol")||"roundRect",_=h.getVisual("symbol"),I=this._createItem(o,r,a,t,w,_,e,m,g,u);I.on("click",f(v,o,null,n,d)).on("mouseover",f(b,s.name,null,n,d)).on("mouseout",f(y,s.name,null,n,d)),c.set(o,!0)}else i.eachRawSeries((function(i){if(!c.get(o)&&i.legendVisualProvider){var s=i.legendVisualProvider;if(!s.containName(o))return;var l=s.indexOfName(o),h=s.getItemVisual(l,"color"),p=s.getItemVisual(l,"borderColor"),m="roundRect",g=this._createItem(o,r,a,t,m,null,e,h,p,u);g.on("click",f(v,null,o,n,d)).on("mouseover",f(b,null,o,n,d)).on("mouseout",f(y,null,o,n,d)),c.set(o,!0)}}),this)}else l.add(new p({newline:!0}))}),this),a&&this._createSelector(a,t,n,o,s)},_createSelector:function(e,t,i,n,a){var r=this.getSelectorGroup();function o(e){var n=e.type,a=new l.Text({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:"all"===n?"legendAllSelect":"legendInverseSelect"})}});r.add(a);var o=t.getModel("selectorLabel"),s=t.getModel("emphasis.selectorLabel");l.setLabelStyle(a.style,a.hoverStyle={},o,s,{defaultText:e.title,isRectText:!1}),l.setHoverStyle(a)}h(e,(function(e){o(e)}))},_createItem:function(e,t,i,n,a,o,c,u,d,f){var h=n.get("itemWidth"),m=n.get("itemHeight"),v=n.get("inactiveColor"),b=n.get("inactiveBorderColor"),y=n.get("symbolKeepAspect"),w=n.getModel("itemStyle"),_=n.isSelected(e),I=new p,x=i.getModel("textStyle"),S=i.get("icon"),T=i.getModel("tooltip"),C=T.parentModel;a=S||a;var k=s(a,0,0,h,m,_?u:v,null==y||y);if(I.add(g(k,a,w,d,b,_)),!S&&o&&(o!==a||"none"===o)){var R=.8*m;"none"===o&&(o="circle");var D=s(o,(h-R)/2,(m-R)/2,R,R,_?u:v,null==y||y);I.add(g(D,o,w,d,b,_))}var L="left"===c?h+5:-5,O=c,$=n.get("formatter"),N=e;"string"===typeof $&&$?N=$.replace("{name}",null!=e?e:""):"function"===typeof $&&(N=$(e)),I.add(new l.Text({style:l.setTextStyle({},x,{text:N,x:L,y:m/2,textFill:_?x.getTextColor():v,textAlign:O,textVerticalAlign:"middle"})}));var A=new l.Rect({shape:I.getBoundingRect(),invisible:!0,tooltip:T.get("show")?r.extend({content:e,formatter:C.get("formatter",!0)||function(){return e},formatterParams:{componentType:"legend",legendIndex:n.componentIndex,name:e,$vars:["name"]}},T.option):null});return I.add(A),I.eachChild((function(e){e.silent=!0})),A.silent=!f,this.getContentGroup().add(I),l.setHoverStyle(I),I.__legendDataIndex=t,I},layoutInner:function(e,t,i,n,a,r){var o=this.getContentGroup(),s=this.getSelectorGroup();d.box(e.get("orient"),o,e.get("itemGap"),i.width,i.height);var l=o.getBoundingRect(),c=[-l.x,-l.y];if(a){d.box("horizontal",s,e.get("selectorItemGap",!0));var u=s.getBoundingRect(),f=[-u.x,-u.y],h=e.get("selectorButtonGap",!0),p=e.getOrient().index,m=0===p?"width":"height",g=0===p?"height":"width",v=0===p?"y":"x";"end"===r?f[p]+=l[m]+h:c[p]+=u[m]+h,f[1-p]+=l[g]/2-u[g]/2,s.attr("position",f),o.attr("position",c);var b={x:0,y:0};return b[m]=l[m]+h+u[m],b[g]=Math.max(l[g],u[g]),b[v]=Math.min(0,u[v]+f[1-p]),b}return o.attr("position",c),this.group.getBoundingRect()},remove:function(){this.getContentGroup().removeAll(),this._isFirstRender=!0}});function g(e,t,i,n,a,r){var o;return"line"!==t&&t.indexOf("empty")<0?(o=i.getItemStyle(),e.style.stroke=n,r||(o.stroke=a)):o=i.getItemStyle(["borderWidth","borderColor"]),e.setStyle(o)}function v(e,t,i,n){y(e,t,i,n),i.dispatchAction({type:"legendToggleSelect",name:null!=e?e:t}),b(e,t,i,n)}function b(e,t,i,n){var a=i.getZr().storage.getDisplayList()[0];a&&a.useHoverLayer||i.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:n})}function y(e,t,i,n){var a=i.getZr().storage.getDisplayList()[0];a&&a.useHoverLayer||i.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:n})}e.exports=m},"5e9b":function(e,t,i){},"5e9c":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"preview-wrapper"},[i("div",{staticClass:"image-viewer-wrapper"},[e.previewVisible?i("NoneDicomsCanvas",{attrs:{"on-switch":function(t){e.selected(t)},"initial-index":e.previewImage.index,"url-list":e.previewImage.imgList,"study-code":e.previewImage.studyCode,"body-part":e.previewImage.bodyPart,modality:e.previewImage.modality,"study-id":e.previewImage.studyId,"reading-task-state":e.readingTaskState}}):e._e()],1),e._v(" "),i("div",{staticClass:"thumbnail-wrapper",staticStyle:{"z-index":"999","background-color":"#fff"}},[i("div",{},[i("div",{staticClass:"img-wrapper"},[i("el-button",{staticClass:"left to",attrs:{icon:"el-icon-d-arrow-left",plain:"",disabled:e.disabledPrev},on:{click:e.toRight}}),e._v(" "),i("div",{ref:"imagesWrapper",staticClass:"images"},[e.noData?i("div",{staticClass:"empty-text"},[e._t("empty",[e._v("暂无数据")])],2):e._e(),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:!e.noData,expression:"!noData"}],staticClass:"items",style:e.itemsStyle},e._l(e.previewImage.imgList,(function(t,n){return i("div",{key:n,staticClass:"item-img",class:{"is-active":n===e.currentIndex},style:e.imgSize,on:{click:function(t){return e.selected(n)}}},[i("img",{attrs:{title:t.FileName,src:"/api/"+t.PreviewPath}}),e._v(" "),t.FileName?i("p",{staticClass:"item-date"},[e._v("\n "+e._s(""+(n+1))+"\n ")]):e._e()])})),0)]),e._v(" "),i("el-button",{staticClass:"right to",attrs:{icon:"el-icon-d-arrow-right",disabled:e.disabledNext,plain:""},on:{click:e.Left}})],1)])])])},a=[],r=(i("a481"),i("c5f6"),i("db6f")),o={name:"CustomizeNoneDicomsViewer",components:{NoneDicomsCanvas:r["default"]},props:{readingTaskState:{type:Number,default:2},imgSize:{type:Object,default:function(){return{width:"120px",height:"120px"}}},value:{type:Number,default:null},previewImage:{type:Object,default:function(){return{imgList:[],index:0,infinite:!0,studyCode:"",modality:"",bodyPart:"",studyId:""}}}},data:function(){return{currentIndex:0,previewVisible:!0,translateX:0,pageSize:0,urlList:[]}},computed:{itemsStyle:function(){return{transform:"translateX(".concat(-this.translateX,"px)")}},itemWidth:function(){return parseInt(this.imgSize.width.replace("px",""))+8},disabledPrev:function(){return this.translateX<=0},disabledNext:function(){return this.translateX>=(this.previewImage.imgList.length-this.pageSize)*this.itemWidth},noData:function(){return 0===this.previewImage.imgList.length},dataLength:function(){return this.previewImage.imgList.length}},watch:{value:{immediate:!0,handler:function(e){this.currentIndex=e}},"previewImage.index":{immediate:!0,handler:function(e){this.urlList.index=e}}},mounted:function(){this.pageSize=this.wrapperWidth()/this.itemWidth,this.urlList=this.previewImage;var e=this;window.onresize=function(){e.pageSize=e.wrapperWidth()/e.itemWidth,e.selected(e.currentIndex)}},methods:{toRight:function(){this.translateX<this.pageSize*this.itemWidth?this.translateX=0:this.translateX=this.translateX-this.pageSize*this.itemWidth},Left:function(){this.translateX=this.translateX+this.pageSize*this.itemWidth;var e=this.itemWidth*(this.dataLength-this.pageSize);this.translateX>e&&(this.translateX=e)},selected:function(e){var t=this.pageSize>>1,i=this.dataLength-t;if(e>t&&e<i){var n=e-t;this.translateX=this.itemWidth*n}else{var a=this.itemWidth*(this.dataLength-this.pageSize);this.translateX=e<=t?0:a}this.currentIndex!==e&&(this.currentIndex=e),this.$emit("selectedImg",e)},wrapperWidth:function(){return this.$refs.imagesWrapper?this.$refs.imagesWrapper.offsetWidth:0}}},s=o,l=(i("b502"),i("2877")),c=Object(l["a"])(s,n,a,!1,null,"75c862f6",null);t["default"]=c.exports},"5ea7":function(e,t,i){},"5f14":function(e,t,i){var n=i("6d8b"),a=i("41ef"),r=i("3842"),o=r.linearMap,s=n.each,l=n.isObject,c=-1,u=function(e){var t=e.mappingMethod,i=e.type,a=this.option=n.clone(e);this.type=i,this.mappingMethod=t,this._normalizeData=x[t];var r=d[i];this.applyVisual=r.applyVisual,this.getColorMapper=r.getColorMapper,this._doMap=r._doMap[t],"piecewise"===t?(p(a),f(a)):"category"===t?a.categories?h(a):p(a,!0):(n.assert("linear"!==t||a.dataExtent),p(a))};u.prototype={constructor:u,mapValueToVisual:function(e){var t=this._normalizeData(e);return this._doMap(t,e)},getNormalizer:function(){return n.bind(this._normalizeData,this)}};var d=u.visualHandlers={color:{applyVisual:v("color"),getColorMapper:function(){var e=this.option;return n.bind("category"===e.mappingMethod?function(e,t){return!t&&(e=this._normalizeData(e)),b.call(this,e)}:function(t,i,n){var r=!!n;return!i&&(t=this._normalizeData(t)),n=a.fastLerp(t,e.parsedVisual,n),r?n:a.stringify(n,"rgba")},this)},_doMap:{linear:function(e){return a.stringify(a.fastLerp(e,this.option.parsedVisual),"rgba")},category:b,piecewise:function(e,t){var i=_.call(this,t);return null==i&&(i=a.stringify(a.fastLerp(e,this.option.parsedVisual),"rgba")),i},fixed:y}},colorHue:m((function(e,t){return a.modifyHSL(e,t)})),colorSaturation:m((function(e,t){return a.modifyHSL(e,null,t)})),colorLightness:m((function(e,t){return a.modifyHSL(e,null,null,t)})),colorAlpha:m((function(e,t){return a.modifyAlpha(e,t)})),opacity:{applyVisual:v("opacity"),_doMap:w([0,1])},liftZ:{applyVisual:v("liftZ"),_doMap:{linear:y,category:y,piecewise:y,fixed:y}},symbol:{applyVisual:function(e,t,i){var a=this.mapValueToVisual(e);if(n.isString(a))i("symbol",a);else if(l(a))for(var r in a)a.hasOwnProperty(r)&&i(r,a[r])},_doMap:{linear:g,category:b,piecewise:function(e,t){var i=_.call(this,t);return null==i&&(i=g.call(this,e)),i},fixed:y}},symbolSize:{applyVisual:v("symbolSize"),_doMap:w([0,1])}};function f(e){var t=e.pieceList;e.hasSpecialVisual=!1,n.each(t,(function(t,i){t.originIndex=i,null!=t.visual&&(e.hasSpecialVisual=!0)}))}function h(e){var t=e.categories,i=e.visual,a=e.categoryMap={};if(s(t,(function(e,t){a[e]=t})),!n.isArray(i)){var r=[];n.isObject(i)?s(i,(function(e,t){var i=a[t];r[null!=i?i:c]=e})):r[c]=i,i=I(e,r)}for(var o=t.length-1;o>=0;o--)null==i[o]&&(delete a[t[o]],t.pop())}function p(e,t){var i=e.visual,a=[];n.isObject(i)?s(i,(function(e){a.push(e)})):null!=i&&a.push(i);var r={color:1,symbol:1};t||1!==a.length||r.hasOwnProperty(e.type)||(a[1]=a[0]),I(e,a)}function m(e){return{applyVisual:function(t,i,n){t=this.mapValueToVisual(t),n("color",e(i("color"),t))},_doMap:w([0,1])}}function g(e){var t=this.option.visual;return t[Math.round(o(e,[0,1],[0,t.length-1],!0))]||{}}function v(e){return function(t,i,n){n(e,this.mapValueToVisual(t))}}function b(e){var t=this.option.visual;return t[this.option.loop&&e!==c?e%t.length:e]}function y(){return this.option.visual[0]}function w(e){return{linear:function(t){return o(t,e,this.option.visual,!0)},category:b,piecewise:function(t,i){var n=_.call(this,i);return null==n&&(n=o(t,e,this.option.visual,!0)),n},fixed:y}}function _(e){var t=this.option,i=t.pieceList;if(t.hasSpecialVisual){var n=u.findPieceIndex(e,i),a=i[n];if(a&&a.visual)return a.visual[this.type]}}function I(e,t){return e.visual=t,"color"===e.type&&(e.parsedVisual=n.map(t,(function(e){return a.parse(e)}))),t}var x={linear:function(e){return o(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,i=u.findPieceIndex(e,t,!0);if(null!=i)return o(i,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return null==t?c:t},fixed:n.noop};function S(e,t,i){return e?t<=i:t<i}u.listVisualTypes=function(){var e=[];return n.each(d,(function(t,i){e.push(i)})),e},u.addVisualHandler=function(e,t){d[e]=t},u.isValidType=function(e){return d.hasOwnProperty(e)},u.eachVisual=function(e,t,i){n.isObject(e)?n.each(e,t,i):t.call(i,e)},u.mapVisual=function(e,t,i){var a,r=n.isArray(e)?[]:n.isObject(e)?{}:(a=!0,null);return u.eachVisual(e,(function(e,n){var o=t.call(i,e,n);a?r=o:r[n]=o})),r},u.retrieveVisuals=function(e){var t,i={};return e&&s(d,(function(n,a){e.hasOwnProperty(a)&&(i[a]=e[a],t=!0)})),t?i:null},u.prepareVisualTypes=function(e){if(l(e)){var t=[];s(e,(function(e,i){t.push(i)})),e=t}else{if(!n.isArray(e))return[];e=e.slice()}return e.sort((function(e,t){return"color"===t&&"color"!==e&&0===e.indexOf("color")?1:-1})),e},u.dependsOn=function(e,t){return"color"===t?!(!e||0!==e.indexOf(t)):e===t},u.findPieceIndex=function(e,t,i){for(var n,a=1/0,r=0,o=t.length;r<o;r++){var s=t[r].value;if(null!=s){if(s===e||"string"===typeof s&&s===e+"")return r;i&&d(s,r)}}for(r=0,o=t.length;r<o;r++){var l=t[r],c=l.interval,u=l.close;if(c){if(c[0]===-1/0){if(S(u[1],e,c[1]))return r}else if(c[1]===1/0){if(S(u[0],c[0],e))return r}else if(S(u[0],c[0],e)&&S(u[1],e,c[1]))return r;i&&d(c[0],r),i&&d(c[1],r)}}if(i)return e===1/0?t.length-1:e===-1/0?0:n;function d(t,i){var r=Math.abs(t-e);r<a&&(a=r,n=i)}};var T=u;e.exports=T},"5f5b":function(e,t,i){},"5f7a":function(e,t,i){},"5f91":function(e,t,i){"use strict";i("e0a5")},"5fd4":function(e,t,i){"use strict";i.d(t,"d",(function(){return a})),i.d(t,"c",(function(){return r})),i.d(t,"e",(function(){return o})),i.d(t,"f",(function(){return s})),i.d(t,"a",(function(){return l})),i.d(t,"g",(function(){return c})),i.d(t,"b",(function(){return u}));var n=i("b775");function a(){return Object(n["a"])({url:"/statistics/getReadingDataByType",method:"get"})}function r(e){var t="/statistics/getReadingDataByMonth/".concat(e);return Object(n["a"])({url:t,method:"get"})}function o(e){var t="/statistics/GetReadingDataRank/".concat(e);return Object(n["a"])({url:t,method:"get"})}function s(){var e="/statistics/getReviewersByRank";return Object(n["a"])({url:e,method:"get"})}function l(e,t){var i="/statistics/GetEnrollDataByQuarter/".concat(e,"/").concat(t);return Object(n["a"])({url:i,method:"get"})}function c(e){var t="/statistics/getTrialCountRank/".concat(e);return Object(n["a"])({url:t,method:"get"})}function u(e){var t="/statistics/getLatestWorkLoadList/".concat(e);return Object(n["a"])({url:t,method:"get"})}},"5fda":function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-link",use:"icon-link-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-link"><path d="M115.625 127.937H.063V12.375h57.781v12.374H12.438v90.813h90.813V70.156h12.374z" /><path d="M116.426 2.821l8.753 8.753-56.734 56.734-8.753-8.745z" /><path d="M127.893 37.982h-12.375V12.375H88.706V0h39.187z" /></symbol>'});o.a.add(s);t["default"]=s},"5fda7":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}]},[i("template",{slot:"search-container"},[i("span",{staticStyle:{"margin-left":"auto"}},[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:setting:visit-plan:add"],expression:"['trials:trials-panel:setting:visit-plan:add']"}],attrs:{type:"primary",icon:"el-icon-plus",size:"small"},on:{click:e.handleAdd}},[e._v("\n "+e._s(e.$t("common:button:add"))+"\n ")]),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:setting:visit-plan:add"],expression:"['trials:trials-panel:setting:visit-plan:add']"}],attrs:{type:"primary",icon:"el-icon-setting",size:"small"},on:{click:e.handleConfig}},[e._v("\n "+e._s(e.$t("trials:visitPlan:button:blindFlag"))+"\n ")]),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:setting:visit-plan:confirm"],expression:"['trials:trials-panel:setting:visit-plan:confirm']"}],attrs:{type:"primary",icon:"el-icon-check",disabled:!e.isConfirm,loading:e.confirmLoading,size:"small"},on:{click:function(t){return e.handleConfirm(!0)}}},[e._v("\n "+e._s(e.$t("trials:visitPlan:button:confirm"))+"\n ")]),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:setting:visit-plan:adjust-record"],expression:"['trials:trials-panel:setting:visit-plan:adjust-record']"}],attrs:{type:"primary",size:"small"},on:{click:function(t){e.adjustVisible=!0}}},[e._v("\n "+e._s(e.$t("trials:visitPlan:button:adjustRecord"))+"\n ")])],1)]),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"}],attrs:{data:e.list,height:"100",stripe:""}},[i("el-table-column",{attrs:{prop:"VisitName",label:e.$t("trials:visitPlan:table:visitName"),"show-overflow-tooltip":"","min-width":"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsBaseLine",label:e.$t("trials:visitPlan:table:isBaseLine"),"show-overflow-tooltip":"","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("YesOrNo",t.row.IsBaseLine))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitNum",label:e.$t("trials:visitPlan:table:viistNum"),"show-overflow-tooltip":"","min-width":"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitDay",label:e.$t("trials:visitPlan:table:viistDay"),"show-overflow-tooltip":"","min-width":"60"}}),e._v(" "),e.isHaveFirstGiveMedicineDate?i("el-table-column",{attrs:{prop:"VisitWindowLeft",label:e.$t("trials:visitPlan:table:window"),"show-overflow-tooltip":"","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{directives:[{name:"show",rawName:"v-show",value:0!==t.row.VisitWindowLeft||0!==t.row.VisitWindowRight,expression:"scope.row.VisitWindowLeft!==0 || scope.row.VisitWindowRight!==0"}]},[e._v("\n "+e._s(""+t.row.VisitWindowLeft+e.$t("trials:visitPlan:table:day")+" ~ "+t.row.VisitWindowRight+e.$t("trials:visitPlan:table:day"))+"\n ")])]}}],null,!1,2454222716)}):e._e(),e._v(" "),i("el-table-column",{attrs:{prop:"IsConfirmed",label:e.$t("trials:visitPlan:table:isConfirm"),"show-overflow-tooltip":"","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsConfirmed?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsConfirmed)))]):i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsConfirmed)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsDeleted",label:e.$t("trials:visitPlan:table:isDeleted"),"show-overflow-tooltip":"","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsDeleted?i("el-tag",[e._v(e._s(e.$fd("YesOrNo",t.row.IsDeleted)))]):i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsDeleted)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Description",label:e.$t("trials:visitPlan:table:description"),"show-overflow-tooltip":"","min-width":"80"}}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:e.$t("trials:visitPlan:table:createTime"),"show-overflow-tooltip":"","min-width":"80"}}),e._v(" "),e.hasPermi(["trials:trials-panel:setting:visit-plan:edit"])?i("el-table-column",{attrs:{label:e.$t("common:action:action"),"min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:setting:visit-plan:edit"],expression:"['trials:trials-panel:setting:visit-plan:edit']"}],attrs:{icon:"el-icon-edit-outline",circle:"",title:e.$t("common:button:edit")},on:{click:function(i){return e.handleEdit(t.row)}}})]}}],null,!1,63729573)}):e._e()],1)],1),e._v(" "),e.visit_model.visible?i("base-model",{attrs:{config:e.visit_model}},[i("template",{slot:"dialog-body"},[i("VisitPlanForm",{attrs:{row:e.row,"is-have-first-give-medicine-date":e.isHaveFirstGiveMedicineDate},on:{closeDialog:e.closeDialog,getList:e.getList}})],1)],2):e._e(),e._v(" "),e.adjustVisible?i("el-dialog",{attrs:{visible:e.adjustVisible,"close-on-click-modal":!1,width:"800px",title:e.$t("trials:visitPlan:dialogTitle:record")},on:{"update:visible":function(t){e.adjustVisible=t}}},[i("VisitPlanAdjust")],1):e._e(),e._v(" "),e.config_model.visible?i("el-dialog",{attrs:{visible:e.config_model.visible,"close-on-click-modal":!1,width:"500px",title:e.config_model.title,"custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){return e.$set(e.config_model,"visible",t)}}},[i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.formLoading,expression:"formLoading"}],ref:"blindNameForm",attrs:{model:e.form,rules:e.rules,size:"small","label-width":"140px"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:e.$t("trials:visitPlan:button:bsBlindFlag"),prop:"BlindBaseLineName"}},[i("el-input",{attrs:{disabled:e.isHaveGeneratedTask},model:{value:e.form.BlindBaseLineName,callback:function(t){e.$set(e.form,"BlindBaseLineName",t)},expression:"form.BlindBaseLineName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:visitPlan:button:visitBlindFlag"),prop:"BlindFollowUpPrefix"}},[i("el-input",{attrs:{disabled:e.isHaveGeneratedTask},model:{value:e.form.BlindFollowUpPrefix,callback:function(t){e.$set(e.form,"BlindFollowUpPrefix",t)},expression:"form.BlindFollowUpPrefix"}})],1)],1),e._v(" "),e.isHaveGeneratedTask?e._e():i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:setting:visit-plan:add"],expression:"['trials:trials-panel:setting:visit-plan:add']"}],attrs:{type:"primary"},on:{click:e.handleSaveBlindName}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])],1):e._e()],2)},a=[],r=(i("28a5"),i("3e42")),o=i("6071"),s=i("7eeb"),l=i("781d"),c=i("4bba"),u={name:"VisitPlan",components:{BaseContainer:o["default"],BaseModel:s["default"],VisitPlanForm:l["default"],VisitPlanAdjust:c["default"]},data:function(){return{list:[],trialId:"",listLoading:!1,row:{},visitPlanConfirmed:!0,subjectHasAdded:!0,isHaveFirstGiveMedicineDate:!1,adjustVisible:!1,confirmLoading:!1,visit_model:{visible:!1,title:"",width:"600px"},userTypeEnumInt:1*zzSessionStorage.getItem("userTypeEnumInt"),isConfirm:!1,form:{TrialId:"",BlindBaseLineName:"",BlindFollowUpPrefix:""},rules:{BlindBaseLineName:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}],BlindFollowUpPrefix:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}]},config_model:{visible:!1,title:this.$t("trials:visitPlan:button:blindFlag")},formLoading:!1,isHaveGeneratedTask:!1}},mounted:function(){this.trialId=this.$route.query.trialId,this.getList()},methods:{getList:function(){var e=this;this.listLoading=!0,Object(r["je"])(this.trialId).then((function(t){e.listLoading=!1,e.list=t.Result.VisitPlanList,e.visitPlanConfirmed=t.Result.VisitPlanConfirmed,e.isHaveFirstGiveMedicineDate=t.Result.IsHaveFirstGiveMedicineDate,e.isHaveGeneratedTask=t.Result.IsHaveGeneratedTask,e.form.BlindBaseLineName=t.Result.BlindBaseLineName,e.form.BlindFollowUpPrefix=t.Result.BlindFollowUpPrefix,e.isConfirm=t.Result.VisitPlanList.some((function(e){return!1===e.IsConfirmed}))})).catch((function(){e.listLoading=!1}))},handleAdd:function(){this.row={TrialId:this.trialId,Id:"",IsBaseLine:!1,BlindName:"",VisitWindowLeft:0,VisitWindowRight:0,Description:""},this.timer=(new Date).getTime(),0===this.list.length?(this.row.VisitName="Baseline",this.row.VisitNum=0,this.row.VisitDay=1):1===this.list.length?(this.row.VisitName="Visit "+(this.list[0].VisitNum+1),this.row.VisitNum=this.list[0].VisitNum+1):(console.log(1),this.row.VisitName=this.list[this.list.length-1].VisitName.split(" ")[0]+" "+(this.list[this.list.length-1].VisitNum+1),this.row.VisitNum=this.list[this.list.length-1].VisitNum+1,this.row.VisitDay=this.list[this.list.length-1].VisitDay-this.list[this.list.length-2].VisitDay+this.list[this.list.length-1].VisitDay),this.visit_model.title=this.$t("common:button:add"),this.visit_model.visible=!0},handleEdit:function(e){this.row=e,this.visit_model.title=this.$t("common:button:edit"),this.visit_model.visible=!0},handleConfirm:function(){var e=this,t=this.$t("trials:adjustRecord:message:confirm");this.$confirm(t,{type:"warning",distinguishCancelAndClose:!0}).then((function(){e.confirmLoading=!0,Object(r["eb"])(e.trialId).then((function(t){e.confirmLoading=!1,t.IsSuccess&&e.getList()})).catch((function(){e.confirmLoading=!1}))})).catch((function(){}))},closeDialog:function(){this.visit_model.visible=!1},handleSaveBlindName:function(){var e=this;this.$refs.blindNameForm.validate((function(t){t&&(e.formLoading=!0,e.form.TrialId=e.trialId,Object(r["vf"])(e.form).then((function(t){e.formLoading=!1,e.config_model.visible=!1,e.$message.success(e.$t("common:message:savedSuccessfully"))})).catch((function(){e.formLoading=!1})))}))},handleConfig:function(){this.config_model.visible=!0}}},d=u,f=i("2877"),h=Object(f["a"])(d,n,a,!1,null,null,null);t["default"]=h.exports},6024:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"education-info"},[i("div",{staticClass:"btn-wrapper"},[i("el-button",{staticStyle:{"margin-left":"auto"},attrs:{size:"small",disabled:0==e.checkID.length},on:{click:e.downloadAttachement}},[e._v("Download")])],1),e._v(" "),i("el-table",{attrs:{data:e.tblList,"span-method":e.objectSpanMethod,size:"small"},on:{"selection-change":e.selectMore}},[i("el-table-column",{attrs:{type:"selection",align:"left",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{type:"index",label:"No.",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Type",label:"Type","min-width":"50","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"FileName",label:"File Name","min-width":"80","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:"Upload Time","min-width":"50","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:"Action","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return e.preview(t.$index,t.row)}}},[e._v("View")])]}}])})],1)],1)},a=[],r=(i("ac6a"),i("33ba")),o={props:{attachmentList:{type:Array,default:function(){return[]}},doctorId:{type:String,default:""}},data:function(){return{tblList:[],checkID:[],spanArr:[],pos:0}},created:function(){this.tblList=this.filterListByType(this.attachmentList),this.getSpanArr(this.tblList)},methods:{filterListByType:function(e){var t=[];return e.length>0&&(e.forEach((function(e){"Diploma of the highest medical degree"===e.Type&&t.push(e)})),e.forEach((function(e){"Medical Qualification Certificate"===e.Type&&t.push(e)})),e.forEach((function(e){"Practice License"===e.Type&&t.push(e)})),e.forEach((function(e){"Modality Certificate(CT)"===e.Type&&t.push(e)})),e.forEach((function(e){"Modality Certificate(MRI)"===e.Type&&t.push(e)})),e.forEach((function(e){"Modality Certificate(NM)"===e.Type&&t.push(e)})),e.forEach((function(e){"Modality Certificate(US)"===e.Type&&t.push(e)}))),t},downloadAttachement:function(){Object(r["m"])(this.doctorId,this.checkID).then((function(e){if(e.IsSuccess){var t=e.Result.FullFilePath;window.open(t)}}))},preview:function(e,t){var i=t.FullPath;i&&window.open(i,"_blank")},selectMore:function(e){for(var t=[],i=0;i<e.length;i++)t.push(e[i].Id);this.checkID=t},getSpanArr:function(e){for(var t=0;t<e.length;t++)0===t?(this.spanArr.push(1),this.pos=0):e[t].Type===e[t-1].Type?(this.spanArr[this.pos]+=1,this.spanArr.push(0)):(this.spanArr.push(1),this.pos=t)},objectSpanMethod:function(e){e.row,e.column;var t=e.rowIndex,i=e.columnIndex;if(2===i){var n=this.spanArr[t],a=n>0?1:0;return{rowspan:n,colspan:a}}if(3===i){var r=this.spanArr[t],o=r>0?1:0;return{rowspan:r,colspan:o}}if(4===i){var s=this.spanArr[t],l=s>0?1:0;return{rowspan:s,colspan:l}}},timeFormatter:function(e){return new Date(e.UpdateTime).format("yyyy-MM-dd hh:mm:ss")}}},s=o,l=(i("9538"),i("2877")),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},"604c":function(e,t,i){"use strict";i("3fa9")},6071:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"container-fluid",class:[e.contentClass]},[i("el-row",[i("el-col",{attrs:{span:24}},[i("div",{staticClass:"box"},[i("div",{staticClass:"box-body"},[i("div",{staticClass:"search",staticStyle:{"margin-bottom":"5px"}},[e._t("search-container")],2),e._v(" "),e._t("main-container"),e._v(" "),e._t("default")],2)])])],1)],1)},a=[],r={name:"BoxContent",props:{noTitle:{type:Boolean,default:!1}},computed:{contentClass:function(){return this.noTitle?"content-notitle":"content"}}},o=r,s=(i("f843"),i("2877")),l=Object(s["a"])(o,n,a,!1,null,null,null);t["default"]=l.exports},"607a":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list,stripe:"",height:"455"}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialSiteCode",label:e.$t("trials:linkedRP:table:siteCode")}}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode",label:e.$t("trials:linkedRP:table:subjectCode")}}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectVisitName",label:e.$t("trials:linkedRP:table:expirationVisit")}}),e._v(" "),i("el-table-column",{attrs:{prop:"LatestScanDate",label:e.$t("trials:linkedRP:table:latestScanDate")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.LatestScanDate?e.moment(t.row.LatestScanDate).format("YYYY-MM-DD"):"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ExpirationDate",label:e.$t("trials:linkedRP:table:expirationDate")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.ExpirationDate?e.moment(t.row.ExpirationDate).format("YYYY-MM-DD"):"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ReadingPeriodName",label:e.$t("trials:linkedRP:table:readingName")}}),e._v(" "),i("el-table-column",{attrs:{prop:"EffectOfTime",label:e.$t("trials:linkedRP:table:effectiveTime")}})],1),e._v(" "),i("div",{staticStyle:{"text-align":"right"}},[i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1)],1)},a=[],r=i("3e42"),o=i("333d"),s=i("c1df"),l=i.n(s),c=function(){return{ReadingPeriodSetId:"",PageIndex:1,PageSize:20}},u={name:"RelationPRList",components:{Pagination:o["default"]},props:{trialReadingCriterionId:{type:String,default:""},data:{type:Object,default:function(){return{}}}},data:function(){return{searchData:c(),loading:!1,list:[],total:0,moment:l.a}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.searchData.ReadingPeriodSetId=this.data.Id,this.searchData.TrialReadingCriterionId=this.trialReadingCriterionId,this.loading=!0,Object(r["Bc"])(this.searchData).then((function(t){e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount,e.loading=!1})).catch((function(){e.loading=!1}))}}},d=u,f=i("2877"),h=Object(f["a"])(d,n,a,!1,null,null,null);t["default"]=h.exports},"607d":function(e,t,i){var n=i("1fab");t.Dispatcher=n;var a=i("22d1"),r=i("65ed"),o=r.isCanvasEl,s=r.transformCoordWithViewport,l="undefined"!==typeof window&&!!window.addEventListener,c=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,u=[];function d(e,t,i,n){return i=i||{},n||!a.canvasSupported?f(e,t,i):a.browser.firefox&&null!=t.layerX&&t.layerX!==t.offsetX?(i.zrX=t.layerX,i.zrY=t.layerY):null!=t.offsetX?(i.zrX=t.offsetX,i.zrY=t.offsetY):f(e,t,i),i}function f(e,t,i){if(a.domSupported&&e.getBoundingClientRect){var n=t.clientX,r=t.clientY;if(o(e)){var l=e.getBoundingClientRect();return i.zrX=n-l.left,void(i.zrY=r-l.top)}if(s(u,e,n,r))return i.zrX=u[0],void(i.zrY=u[1])}i.zrX=i.zrY=0}function h(e){return e||window.event}function p(e,t,i){if(t=h(t),null!=t.zrX)return t;var n=t.type,a=n&&n.indexOf("touch")>=0;if(a){var r="touchend"!==n?t.targetTouches[0]:t.changedTouches[0];r&&d(e,r,t,i)}else d(e,t,t,i),t.zrDelta=t.wheelDelta?t.wheelDelta/120:-(t.detail||0)/3;var o=t.button;return null==t.which&&void 0!==o&&c.test(t.type)&&(t.which=1&o?1:2&o?3:4&o?2:0),t}function m(e,t,i,n){l?e.addEventListener(t,i,n):e.attachEvent("on"+t,i)}function g(e,t,i,n){l?e.removeEventListener(t,i,n):e.detachEvent("on"+t,i)}var v=l?function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0}:function(e){e.returnValue=!1,e.cancelBubble=!0};function b(e){return 2===e.which||3===e.which}function y(e){return e.which>1}t.clientToLocal=d,t.getNativeEvent=h,t.normalizeEvent=p,t.addEventListener=m,t.removeEventListener=g,t.stop=v,t.isMiddleOrRightButtonOnMouseUpDown=b,t.notLeftMouse=y},"60d2":function(e,t,i){},"60d25":function(e,t,i){"use strict";i("7ac7")},"60d7":function(e,t,i){var n=i("2306"),a=i("e887"),r=.3,o=a.extend({type:"parallel",init:function(){this._dataGroup=new n.Group,this.group.add(this._dataGroup),this._data,this._initialized},render:function(e,t,i,a){var r=this._dataGroup,o=e.getData(),f=this._data,h=e.coordinateSystem,p=h.dimensions,m=u(e);function g(e){var t=c(o,r,e,p,h);d(t,o,e,m)}function v(t,i){var r=f.getItemGraphicEl(i),s=l(o,t,p,h);o.setItemGraphicEl(t,r);var c=a&&!1===a.animation?null:e;n.updateProps(r,{shape:{points:s}},c,t),d(r,o,t,m)}function b(e){var t=f.getItemGraphicEl(e);r.remove(t)}if(o.diff(f).add(g).update(v).remove(b).execute(),!this._initialized){this._initialized=!0;var y=s(h,e,(function(){setTimeout((function(){r.removeClipPath()}))}));r.setClipPath(y)}this._data=o},incrementalPrepareRender:function(e,t,i){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},incrementalRender:function(e,t,i){for(var n=t.getData(),a=t.coordinateSystem,r=a.dimensions,o=u(t),s=e.start;s<e.end;s++){var l=c(n,this._dataGroup,s,r,a);l.incremental=!0,d(l,n,s,o)}},dispose:function(){},remove:function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null}});function s(e,t,i){var a=e.model,r=e.getRect(),o=new n.Rect({shape:{x:r.x,y:r.y,width:r.width,height:r.height}}),s="horizontal"===a.get("layout")?"width":"height";return o.setShape(s,0),n.initProps(o,{shape:{width:r.width,height:r.height}},t,i),o}function l(e,t,i,n){for(var a=[],r=0;r<i.length;r++){var o=i[r],s=e.get(e.mapDimension(o),t);f(s,n.getAxis(o).type)||a.push(n.dataToPoint(s,o))}return a}function c(e,t,i,a,r){var o=l(e,i,a,r),s=new n.Polyline({shape:{points:o},silent:!0,z2:10});return t.add(s),e.setItemGraphicEl(i,s),s}function u(e){var t=e.get("smooth",!0);return!0===t&&(t=r),{lineStyle:e.getModel("lineStyle").getLineStyle(),smooth:null!=t?t:r}}function d(e,t,i,n){var a=n.lineStyle;if(t.hasItemOption){var r=t.getItemModel(i).getModel("lineStyle");a=r.getLineStyle()}e.useStyle(a);var o=e.style;o.fill=null,o.stroke=t.getItemVisual(i,"color"),o.opacity=t.getItemVisual(i,"opacity"),n.smooth&&(e.shape.smooth=n.smooth)}function f(e,t){return"category"===t?null==e:null==e||isNaN(e)}var h=o;e.exports=h},"60e3":function(e,t,i){var n=i("6d8b"),a={get:function(e,t,i){var a=n.clone((r[e]||{})[t]);return i&&n.isArray(a)?a[a.length-1]:a}},r={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},o=a;e.exports=o},6116:function(e,t,i){},"613f":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{margin:"0 auto",width:"600px","line-height":"28px"}},[i("h1",{staticStyle:{"text-align":"center","margin-top":"80px","margin-bottom":"20px"}},[e._v("关于")]),e._v(" "),i("p",[e._v("\n 产品名称:医学影像疗效智能评估系统软件\n ")]),e._v(" "),i("p",[e._v("\n 型号规格V1.1\n ")]),e._v(" "),i("p",[e._v("\n 发布版本V1.1.0.1\n ")]),e._v(" "),i("p",[e._v("\n 完整版本V1.1.0.1\n ")]),e._v(" "),i("p",[e._v("\n 生产日期2022-11-10\n ")]),e._v(" "),i("p",[e._v("\n 使用期限10年\n ")]),e._v(" "),i("p",[e._v("\n 医疗器械注册证编号ZC00001\n ")]),e._v(" "),i("p",[e._v("\n 医疗器械生产许可证编号XK00001\n ")]),e._v(" "),i("p",[e._v("\n 注册人/生产企业名称:武汉行藏科技有限公司\n ")]),e._v(" "),i("p",[e._v("\n 住所武汉东湖新技术开发区高新大道666号光谷生物城生物创新园B5栋K409号\n ")]),e._v(" "),i("p",[e._v("\n 生产地址武汉东湖新技术开发区高新大道666号光谷生物城生物创新园B6栋C033C室\n ")]),e._v(" "),i("p",[e._v("\n 其他内容详见说明书\n ")]),e._v(" "),i("div",{staticStyle:{"text-align":"center","margin-top":"40px"}},[i("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.$router.go(-1)}}},[e._v("返回")])],1)])},a=[],r={name:"index"},o=r,s=(i("29be"),i("2877")),l=Object(s["a"])(o,n,a,!1,null,"19113c11",null);t["default"]=l.exports},6173:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"workbench-container"},[i("div",{staticClass:"workbench-stats"},[i("PanelCount",{ref:"panelCount",on:{getSignSystemDocCount:e.getSignSystemDocCount}})],1),e._v(" "),i("div",{staticClass:"workbench-content"},[i("div",{staticClass:"content-wrapper"},[i("div",{staticClass:"item"},[i("el-card",{staticStyle:{height:"100%"},attrs:{"body-style":{padding:"10px"}}},[i("NeedSignTrialDoc")],1)],1),e._v(" "),i("div",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-workbench:attachments:site-research"],expression:"['trials:trials-workbench:attachments:site-research']"}],staticClass:"item"},[i("el-card",{staticStyle:{height:"100%"},attrs:{"body-style":{padding:"10px"}}},[i("SiteResearch")],1)],1),e._v(" "),e.isSignSystemDoc?i("div",{staticClass:"item"},[i("el-card",{staticStyle:{height:"100%"},attrs:{"body-style":{padding:"10px"}}},[i("NeedSignSysDoc",{on:{refreshStats:e.refreshStats}})],1)],1):e._e()])])])},a=[],r=i("9ba3"),o=i("76ad"),s=i("3f73"),l=i("dfb2"),c={name:"WorkBench",components:{PanelCount:r["default"],NeedSignTrialDoc:o["default"],SiteResearch:s["default"],NeedSignSysDoc:l["default"]},data:function(){return{isSignSystemDoc:!1}},methods:{getSignSystemDocCount:function(e){this.isSignSystemDoc=e>0},refreshStats:function(){this.$refs["panelCount"].getData()}}},u=c,d=(i("383a4"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},6179:function(e,t,i){var n=i("4e08"),a=(n.__DEV__,i("6d8b")),r=i("4319"),o=i("80f0"),s=i("ec6f"),l=i("2b17"),c=l.defaultDimValueGetters,u=l.DefaultDataProvider,d=i("2f45"),f=d.summarizeDimensions,h=i("562e"),p=a.isObject,m="undefined",g=-1,v="e\0\0",b={float:typeof Float64Array===m?Array:Float64Array,int:typeof Int32Array===m?Array:Int32Array,ordinal:Array,number:Array,time:Array},y=typeof Uint32Array===m?Array:Uint32Array,w=typeof Int32Array===m?Array:Int32Array,_=typeof Uint16Array===m?Array:Uint16Array;function I(e){return e._rawCount>65535?y:_}function x(e){var t=e.constructor;return t===Array?e.slice():new t(e)}var S=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_chunkSize","_chunkCount","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx"],T=["_extent","_approximateExtent","_rawExtent"];function C(e,t){a.each(S.concat(t.__wrappedMethods||[]),(function(i){t.hasOwnProperty(i)&&(e[i]=t[i])})),e.__wrappedMethods=t.__wrappedMethods,a.each(T,(function(i){e[i]=a.clone(t[i])})),e._calculationInfo=a.extend(t._calculationInfo)}var k=function(e,t){e=e||["x","y"];for(var i={},n=[],r={},o=0;o<e.length;o++){var s=e[o];a.isString(s)?s=new h({name:s}):s instanceof h||(s=new h(s));var l=s.name;s.type=s.type||"float",s.coordDim||(s.coordDim=l,s.coordDimIndex=0),s.otherDims=s.otherDims||{},n.push(l),i[l]=s,s.index=o,s.createInvertedIndices&&(r[l]=[])}this.dimensions=n,this._dimensionInfos=i,this.hostModel=t,this.dataType,this._indices=null,this._count=0,this._rawCount=0,this._storage={},this._nameList=[],this._idList=[],this._optionModels=[],this._visual={},this._layout={},this._itemVisuals=[],this.hasItemVisual={},this._itemLayouts=[],this._graphicEls=[],this._chunkSize=1e5,this._chunkCount=0,this._rawData,this._rawExtent={},this._extent={},this._approximateExtent={},this._dimensionsSummary=f(this),this._invertedIndicesMap=r,this._calculationInfo={},this.userOutput=this._dimensionsSummary.userOutput},R=k.prototype;function D(e,t,i,n,a){var r=b[t.type],o=n-1,s=t.name,l=e[s][o];if(l&&l.length<i){for(var c=new r(Math.min(a-o*i,i)),u=0;u<l.length;u++)c[u]=l[u];e[s][o]=c}for(var d=n*i;d<a;d+=i)e[s].push(new r(Math.min(a-d,i)))}function L(e){var t=e._invertedIndicesMap;a.each(t,(function(i,n){var a=e._dimensionInfos[n],r=a.ordinalMeta;if(r){i=t[n]=new w(r.categories.length);for(var o=0;o<i.length;o++)i[o]=g;for(o=0;o<e._count;o++)i[e.get(n,o)]=o}}))}function O(e,t,i){var n;if(null!=t){var a=e._chunkSize,r=Math.floor(i/a),o=i%a,s=e.dimensions[t],l=e._storage[s][r];if(l){n=l[o];var c=e._dimensionInfos[s].ordinalMeta;c&&c.categories.length&&(n=c.categories[n])}}return n}function $(e){return e}function N(e){return e<this._count&&e>=0?this._indices[e]:-1}function A(e,t){var i=e._idList[t];return null==i&&(i=O(e,e._idDimIdx,t)),null==i&&(i=v+t),i}function P(e){return a.isArray(e)||(e=[e]),e}function E(e,t){var i=e.dimensions,n=new k(a.map(i,e.getDimensionInfo,e),e.hostModel);C(n,e);for(var r=n._storage={},o=e._storage,s=0;s<i.length;s++){var l=i[s];o[l]&&(a.indexOf(t,l)>=0?(r[l]=M(o[l]),n._rawExtent[l]=F(),n._extent[l]=null):r[l]=o[l])}return n}function M(e){for(var t=new Array(e.length),i=0;i<e.length;i++)t[i]=x(e[i]);return t}function F(){return[1/0,-1/0]}R.type="list",R.hasItemOption=!0,R.getDimension=function(e){return"number"!==typeof e&&(isNaN(e)||this._dimensionInfos.hasOwnProperty(e))||(e=this.dimensions[e]),e},R.getDimensionInfo=function(e){return this._dimensionInfos[this.getDimension(e)]},R.getDimensionsOnCoord=function(){return this._dimensionsSummary.dataDimsOnCoord.slice()},R.mapDimension=function(e,t){var i=this._dimensionsSummary;if(null==t)return i.encodeFirstDimNotExtra[e];var n=i.encode[e];return!0===t?(n||[]).slice():n&&n[t]},R.initData=function(e,t,i){var n=s.isInstance(e)||a.isArrayLike(e);n&&(e=new u(e,this.dimensions.length)),this._rawData=e,this._storage={},this._indices=null,this._nameList=t||[],this._idList=[],this._nameRepeatCount={},i||(this.hasItemOption=!1),this.defaultDimValueGetter=c[this._rawData.getSource().sourceFormat],this._dimValueGetter=i=i||this.defaultDimValueGetter,this._dimValueGetterArrayRows=c.arrayRows,this._rawExtent={},this._initDataFromProvider(0,e.count()),e.pure&&(this.hasItemOption=!1)},R.getProvider=function(){return this._rawData},R.appendData=function(e){var t=this._rawData,i=this.count();t.appendData(e);var n=t.count();t.persistent||(n+=i),this._initDataFromProvider(i,n)},R.appendValues=function(e,t){for(var i=this._chunkSize,n=this._storage,a=this.dimensions,r=a.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,t?t.length:0),c=this._chunkCount,u=0;u<r;u++){var d=a[u];o[d]||(o[d]=F()),n[d]||(n[d]=[]),D(n,this._dimensionInfos[d],i,c,l),this._chunkCount=n[d].length}for(var f=new Array(r),h=s;h<l;h++){for(var p=h-s,m=Math.floor(h/i),g=h%i,v=0;v<r;v++){d=a[v];var b=this._dimValueGetterArrayRows(e[p]||f,d,p,v);n[d][m][g]=b;var y=o[d];b<y[0]&&(y[0]=b),b>y[1]&&(y[1]=b)}t&&(this._nameList[h]=t[p])}this._rawCount=this._count=l,this._extent={},L(this)},R._initDataFromProvider=function(e,t){if(!(e>=t)){for(var i,n=this._chunkSize,a=this._rawData,r=this._storage,o=this.dimensions,s=o.length,l=this._dimensionInfos,c=this._nameList,u=this._idList,d=this._rawExtent,f=this._nameRepeatCount={},h=this._chunkCount,p=0;p<s;p++){var m=o[p];d[m]||(d[m]=F());var g=l[m];0===g.otherDims.itemName&&(i=this._nameDimIdx=p),0===g.otherDims.itemId&&(this._idDimIdx=p),r[m]||(r[m]=[]),D(r,g,n,h,t),this._chunkCount=r[m].length}for(var v=new Array(s),b=e;b<t;b++){v=a.getItem(b,v);for(var y=Math.floor(b/n),w=b%n,_=0;_<s;_++){m=o[_];var I=r[m][y],x=this._dimValueGetter(v,m,b,_);I[w]=x;var S=d[m];x<S[0]&&(S[0]=x),x>S[1]&&(S[1]=x)}if(!a.pure){var T=c[b];if(v&&null==T)if(null!=v.name)c[b]=T=v.name;else if(null!=i){var C=o[i],k=r[C][y];if(k){T=k[w];var R=l[C].ordinalMeta;R&&R.categories.length&&(T=R.categories[T])}}var O=null==v?null:v.id;null==O&&null!=T&&(f[T]=f[T]||0,O=T,f[T]>0&&(O+="__ec__"+f[T]),f[T]++),null!=O&&(u[b]=O)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=t,this._extent={},L(this)}},R.count=function(){return this._count},R.getIndices=function(){var e=this._indices;if(e){var t=e.constructor,i=this._count;if(t===Array){a=new t(i);for(var n=0;n<i;n++)a[n]=e[n]}else a=new t(e.buffer,0,i)}else{t=I(this);var a=new t(this.count());for(n=0;n<a.length;n++)a[n]=n}return a},R.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var i=this._storage;if(!i[e])return NaN;t=this.getRawIndex(t);var n=Math.floor(t/this._chunkSize),a=t%this._chunkSize,r=i[e][n],o=r[a];return o},R.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var i=this._storage[e];if(!i)return NaN;var n=Math.floor(t/this._chunkSize),a=t%this._chunkSize,r=i[n];return r[a]},R._getFast=function(e,t){var i=Math.floor(t/this._chunkSize),n=t%this._chunkSize,a=this._storage[e][i];return a[n]},R.getValues=function(e,t){var i=[];a.isArray(e)||(t=e,e=this.dimensions);for(var n=0,r=e.length;n<r;n++)i.push(this.get(e[n],t));return i},R.hasValue=function(e){for(var t=this._dimensionsSummary.dataDimsOnCoord,i=0,n=t.length;i<n;i++)if(isNaN(this.get(t[i],e)))return!1;return!0},R.getDataExtent=function(e){e=this.getDimension(e);var t=this._storage[e],i=F();if(!t)return i;var n,a=this.count(),r=!this._indices;if(r)return this._rawExtent[e].slice();if(n=this._extent[e],n)return n.slice();n=i;for(var o=n[0],s=n[1],l=0;l<a;l++){var c=this._getFast(e,this.getRawIndex(l));c<o&&(o=c),c>s&&(s=c)}return n=[o,s],this._extent[e]=n,n},R.getApproximateExtent=function(e){return e=this.getDimension(e),this._approximateExtent[e]||this.getDataExtent(e)},R.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},R.getCalculationInfo=function(e){return this._calculationInfo[e]},R.setCalculationInfo=function(e,t){p(e)?a.extend(this._calculationInfo,e):this._calculationInfo[e]=t},R.getSum=function(e){var t=this._storage[e],i=0;if(t)for(var n=0,a=this.count();n<a;n++){var r=this.get(e,n);isNaN(r)||(i+=r)}return i},R.getMedian=function(e){var t=[];this.each(e,(function(e,i){isNaN(e)||t.push(e)}));var i=[].concat(t).sort((function(e,t){return e-t})),n=this.count();return 0===n?0:n%2===1?i[(n-1)/2]:(i[n/2]+i[n/2-1])/2},R.rawIndexOf=function(e,t){var i=e&&this._invertedIndicesMap[e],n=i[t];return null==n||isNaN(n)?g:n},R.indexOfName=function(e){for(var t=0,i=this.count();t<i;t++)if(this.getName(t)===e)return t;return-1},R.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,i=t[e];if(null!=i&&i<this._count&&i===e)return e;var n=0,a=this._count-1;while(n<=a){var r=(n+a)/2|0;if(t[r]<e)n=r+1;else{if(!(t[r]>e))return r;a=r-1}}return-1},R.indicesOfNearest=function(e,t,i){var n=this._storage,a=n[e],r=[];if(!a)return r;null==i&&(i=1/0);for(var o=1/0,s=-1,l=0,c=0,u=this.count();c<u;c++){var d=t-this.get(e,c),f=Math.abs(d);f<=i&&((f<o||f===o&&d>=0&&s<0)&&(o=f,s=d,l=0),d===s&&(r[l++]=c))}return r.length=l,r},R.getRawIndex=$,R.getRawDataItem=function(e){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(e));for(var t=[],i=0;i<this.dimensions.length;i++){var n=this.dimensions[i];t.push(this.get(n,e))}return t},R.getName=function(e){var t=this.getRawIndex(e);return this._nameList[t]||O(this,this._nameDimIdx,t)||""},R.getId=function(e){return A(this,this.getRawIndex(e))},R.each=function(e,t,i,n){"use strict";if(this._count){"function"===typeof e&&(n=i,i=t,t=e,e=[]),i=i||n||this,e=a.map(P(e),this.getDimension,this);for(var r=e.length,o=0;o<this.count();o++)switch(r){case 0:t.call(i,o);break;case 1:t.call(i,this.get(e[0],o),o);break;case 2:t.call(i,this.get(e[0],o),this.get(e[1],o),o);break;default:for(var s=0,l=[];s<r;s++)l[s]=this.get(e[s],o);l[s]=o,t.apply(i,l)}}},R.filterSelf=function(e,t,i,n){"use strict";if(this._count){"function"===typeof e&&(n=i,i=t,t=e,e=[]),i=i||n||this,e=a.map(P(e),this.getDimension,this);for(var r=this.count(),o=I(this),s=new o(r),l=[],c=e.length,u=0,d=e[0],f=0;f<r;f++){var h,p=this.getRawIndex(f);if(0===c)h=t.call(i,f);else if(1===c){var m=this._getFast(d,p);h=t.call(i,m,f)}else{for(var g=0;g<c;g++)l[g]=this._getFast(d,p);l[g]=f,h=t.apply(i,l)}h&&(s[u++]=p)}return u<r&&(this._indices=s),this._count=u,this._extent={},this.getRawIndex=this._indices?N:$,this}},R.selectRange=function(e){"use strict";if(this._count){var t=[];for(var i in e)e.hasOwnProperty(i)&&t.push(i);var n=t.length;if(n){var a=this.count(),r=I(this),o=new r(a),s=0,l=t[0],c=e[l][0],u=e[l][1],d=!1;if(!this._indices){var f=0;if(1===n){for(var h=this._storage[t[0]],p=0;p<this._chunkCount;p++)for(var m=h[p],g=Math.min(this._count-p*this._chunkSize,this._chunkSize),v=0;v<g;v++){var b=m[v];(b>=c&&b<=u||isNaN(b))&&(o[s++]=f),f++}d=!0}else if(2===n){h=this._storage[l];var y=this._storage[t[1]],w=e[t[1]][0],_=e[t[1]][1];for(p=0;p<this._chunkCount;p++){m=h[p];var x=y[p];for(g=Math.min(this._count-p*this._chunkSize,this._chunkSize),v=0;v<g;v++){b=m[v];var S=x[v];(b>=c&&b<=u||isNaN(b))&&(S>=w&&S<=_||isNaN(S))&&(o[s++]=f),f++}}d=!0}}if(!d)if(1===n)for(v=0;v<a;v++){var T=this.getRawIndex(v);b=this._getFast(l,T);(b>=c&&b<=u||isNaN(b))&&(o[s++]=T)}else for(v=0;v<a;v++){var C=!0;for(T=this.getRawIndex(v),p=0;p<n;p++){var k=t[p];b=this._getFast(i,T);(b<e[k][0]||b>e[k][1])&&(C=!1)}C&&(o[s++]=this.getRawIndex(v))}return s<a&&(this._indices=o),this._count=s,this._extent={},this.getRawIndex=this._indices?N:$,this}}},R.mapArray=function(e,t,i,n){"use strict";"function"===typeof e&&(n=i,i=t,t=e,e=[]),i=i||n||this;var a=[];return this.each(e,(function(){a.push(t&&t.apply(this,arguments))}),i),a},R.map=function(e,t,i,n){"use strict";i=i||n||this,e=a.map(P(e),this.getDimension,this);var r=E(this,e);r._indices=this._indices,r.getRawIndex=r._indices?N:$;for(var o=r._storage,s=[],l=this._chunkSize,c=e.length,u=this.count(),d=[],f=r._rawExtent,h=0;h<u;h++){for(var p=0;p<c;p++)d[p]=this.get(e[p],h);d[c]=h;var m=t&&t.apply(i,d);if(null!=m){"object"!==typeof m&&(s[0]=m,m=s);for(var g=this.getRawIndex(h),v=Math.floor(g/l),b=g%l,y=0;y<m.length;y++){var w=e[y],_=m[y],I=f[w],x=o[w];x&&(x[v][b]=_),_<I[0]&&(I[0]=_),_>I[1]&&(I[1]=_)}}}return r},R.downSample=function(e,t,i,n){for(var a=E(this,[e]),r=a._storage,o=[],s=Math.floor(1/t),l=r[e],c=this.count(),u=this._chunkSize,d=a._rawExtent[e],f=new(I(this))(c),h=0,p=0;p<c;p+=s){s>c-p&&(s=c-p,o.length=s);for(var m=0;m<s;m++){var g=this.getRawIndex(p+m),v=Math.floor(g/u),b=g%u;o[m]=l[v][b]}var y=i(o),w=this.getRawIndex(Math.min(p+n(o,y)||0,c-1)),_=Math.floor(w/u),x=w%u;l[_][x]=y,y<d[0]&&(d[0]=y),y>d[1]&&(d[1]=y),f[h++]=w}return a._count=h,a._indices=f,a.getRawIndex=N,a},R.getItemModel=function(e){var t=this.hostModel;return new r(this.getRawDataItem(e),t,t&&t.ecModel)},R.diff=function(e){var t=this;return new o(e?e.getIndices():[],this.getIndices(),(function(t){return A(e,t)}),(function(e){return A(t,e)}))},R.getVisual=function(e){var t=this._visual;return t&&t[e]},R.setVisual=function(e,t){if(p(e))for(var i in e)e.hasOwnProperty(i)&&this.setVisual(i,e[i]);else this._visual=this._visual||{},this._visual[e]=t},R.setLayout=function(e,t){if(p(e))for(var i in e)e.hasOwnProperty(i)&&this.setLayout(i,e[i]);else this._layout[e]=t},R.getLayout=function(e){return this._layout[e]},R.getItemLayout=function(e){return this._itemLayouts[e]},R.setItemLayout=function(e,t,i){this._itemLayouts[e]=i?a.extend(this._itemLayouts[e]||{},t):t},R.clearItemLayouts=function(){this._itemLayouts.length=0},R.getItemVisual=function(e,t,i){var n=this._itemVisuals[e],a=n&&n[t];return null!=a||i?a:this.getVisual(t)},R.setItemVisual=function(e,t,i){var n=this._itemVisuals[e]||{},a=this.hasItemVisual;if(this._itemVisuals[e]=n,p(t))for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r],a[r]=!0);else n[t]=i,a[t]=!0},R.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var j=function(e){e.seriesIndex=this.seriesIndex,e.dataIndex=this.dataIndex,e.dataType=this.dataType};R.setItemGraphicEl=function(e,t){var i=this.hostModel;t&&(t.dataIndex=e,t.dataType=this.dataType,t.seriesIndex=i&&i.seriesIndex,"group"===t.type&&t.traverse(j,t)),this._graphicEls[e]=t},R.getItemGraphicEl=function(e){return this._graphicEls[e]},R.eachItemGraphicEl=function(e,t){a.each(this._graphicEls,(function(i,n){i&&e&&e.call(t,i,n)}))},R.cloneShallow=function(e){if(!e){var t=a.map(this.dimensions,this.getDimensionInfo,this);e=new k(t,this.hostModel)}if(e._storage=this._storage,C(e,this),this._indices){var i=this._indices.constructor;e._indices=new i(this._indices)}else e._indices=null;return e.getRawIndex=e._indices?N:$,e},R.wrapMethod=function(e,t){var i=this[e];"function"===typeof i&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=i.apply(this,arguments);return t.apply(this,[e].concat(a.slice(arguments)))})},R.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],R.CHANGABLE_METHODS=["filterSelf","selectRange"];var V=k;e.exports=V},"620b":function(e,t,i){var n=i("401b"),a=n.distance;function r(e,t,i,n,a,r,o){var s=.5*(i-e),l=.5*(n-t);return(2*(t-i)+s+l)*o+(-3*(t-i)-2*s-l)*r+s*a+t}function o(e,t){for(var i=e.length,n=[],o=0,s=1;s<i;s++)o+=a(e[s-1],e[s]);var l=o/2;l=l<i?i:l;for(s=0;s<l;s++){var c,u,d,f=s/(l-1)*(t?i:i-1),h=Math.floor(f),p=f-h,m=e[h%i];t?(c=e[(h-1+i)%i],u=e[(h+1)%i],d=e[(h+2)%i]):(c=e[0===h?h:h-1],u=e[h>i-2?i-1:h+1],d=e[h>i-3?i-1:h+2]);var g=p*p,v=p*g;n.push([r(c[0],m[0],u[0],d[0],p,g,v),r(c[1],m[1],u[1],d[1],p,g,v)])}return n}e.exports=o},6210:function(e,t,i){},"625e":function(e,t,i){var n=i("4e08"),a=(n.__DEV__,i("6d8b")),r=".",o="___EC__COMPONENT__CONTAINER___";function s(e){var t={main:"",sub:""};return e&&(e=e.split(r),t.main=e[0]||"",t.sub=e[1]||""),t}function l(e){a.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function c(e,t){e.$constructor=e,e.extend=function(e){var t=this,i=function(){e.$constructor?e.$constructor.apply(this,arguments):t.apply(this,arguments)};return a.extend(i.prototype,e),i.extend=this.extend,i.superCall=f,i.superApply=h,a.inherits(i,this),i.superClass=t,i}}var u=0;function d(e){var t=["__\0is_clz",u++,Math.random().toFixed(3)].join("_");e.prototype[t]=!0,e.isInstance=function(e){return!(!e||!e[t])}}function f(e,t){var i=a.slice(arguments,2);return this.superClass.prototype[t].apply(e,i)}function h(e,t,i){return this.superClass.prototype[t].apply(e,i)}function p(e,t){t=t||{};var i={};function n(e){var t=i[e.main];return t&&t[o]||(t=i[e.main]={},t[o]=!0),t}if(e.registerClass=function(e,t){if(t)if(l(t),t=s(t),t.sub){if(t.sub!==o){var a=n(t);a[t.sub]=e}}else i[t.main]=e;return e},e.getClass=function(e,t,n){var a=i[e];if(a&&a[o]&&(a=t?a[t]:null),n&&!a)throw new Error(t?"Component "+e+"."+(t||"")+" not exists. Load it first.":e+".type should be specified.");return a},e.getClassesByMainType=function(e){e=s(e);var t=[],n=i[e.main];return n&&n[o]?a.each(n,(function(e,i){i!==o&&t.push(e)})):t.push(n),t},e.hasClass=function(e){return e=s(e),!!i[e.main]},e.getAllClassMainTypes=function(){var e=[];return a.each(i,(function(t,i){e.push(i)})),e},e.hasSubTypes=function(e){e=s(e);var t=i[e.main];return t&&t[o]},e.parseClassType=s,t.registerWhenExtend){var r=e.extend;r&&(e.extend=function(t){var i=r.call(this,t);return e.registerClass(i,t.type)})}return e}function m(e,t){}t.parseClassType=s,t.enableClassExtend=c,t.enableClassCheck=d,t.enableClassManagement=p,t.setReadOnly=m},"627c":function(e,t,i){var n=i("6d8b"),a=i("3eba"),r=i("2306"),o=i("f934"),s=o.getLayoutRect,l=i("eda2"),c=l.windowOpen;a.extendComponentModel({type:"title",layoutMode:{type:"box",ignoreSize:!0},defaultOption:{zlevel:0,z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bolder",color:"#333"},subtextStyle:{color:"#aaa"}}}),a.extendComponentView({type:"title",render:function(e,t,i){if(this.group.removeAll(),e.get("show")){var a=this.group,o=e.getModel("textStyle"),l=e.getModel("subtextStyle"),u=e.get("textAlign"),d=n.retrieve2(e.get("textBaseline"),e.get("textVerticalAlign")),f=new r.Text({style:r.setTextStyle({},o,{text:e.get("text"),textFill:o.getTextColor()},{disableBox:!0}),z2:10}),h=f.getBoundingRect(),p=e.get("subtext"),m=new r.Text({style:r.setTextStyle({},l,{text:p,textFill:l.getTextColor(),y:h.height+e.get("itemGap"),textVerticalAlign:"top"},{disableBox:!0}),z2:10}),g=e.get("link"),v=e.get("sublink"),b=e.get("triggerEvent",!0);f.silent=!g&&!b,m.silent=!v&&!b,g&&f.on("click",(function(){c(g,"_"+e.get("target"))})),v&&m.on("click",(function(){c(v,"_"+e.get("subtarget"))})),f.eventData=m.eventData=b?{componentType:"title",componentIndex:e.componentIndex}:null,a.add(f),p&&a.add(m);var y=a.getBoundingRect(),w=e.getBoxLayoutParams();w.width=y.width,w.height=y.height;var _=s(w,{width:i.getWidth(),height:i.getHeight()},e.get("padding"));u||(u=e.get("left")||e.get("right"),"middle"===u&&(u="center"),"right"===u?_.x+=_.width:"center"===u&&(_.x+=_.width/2)),d||(d=e.get("top")||e.get("bottom"),"center"===d&&(d="middle"),"bottom"===d?_.y+=_.height:"middle"===d&&(_.y+=_.height/2),d=d||"top"),a.attr("position",[_.x,_.y]);var I={textAlign:u,textVerticalAlign:d};f.setStyle(I),m.setStyle(I),y=a.getBoundingRect();var x=_.margin,S=e.getItemStyle(["color","opacity"]);S.fill=e.get("backgroundColor");var T=new r.Rect({shape:{x:y.x-x[3],y:y.y-x[0],width:y.width+x[1]+x[3],height:y.height+x[0]+x[2],r:e.get("borderRadius")},style:S,subPixelOptimize:!0,silent:!0});a.add(T)}}})},6283:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{ref:"reading_rank",staticClass:"reading-rank"})},a=[],r=i("313e"),o=i.n(r),s=i("5fd4"),l=i("6331"),c=5,u={props:{area:{type:String,default:""}},data:function(){return{myChart:""}},watch:{area:function(){var e=this;this.$nextTick((function(){e.myChart&&e.myChart.resize()}))}},mounted:function(){this.getData()},methods:{initChart:function(e,t,i,n,a){var r={title:{text:"Workload of Top 5 Reviewers",x:"4%",top:5,textStyle:{color:"#fff",fontSize:Object(l["a"])(.16)}},tooltip:{trigger:"axis",axisPointer:{type:"shadow",textStyle:{color:"#999"}}},grid:{top:"33%",left:80,bottom:25,textStyle:{color:"#999"}},legend:{x:"4%",top:"13%",icon:"circle",itemWidth:Object(l["a"])(.1),textStyle:{color:"#fff",fontSize:Object(l["a"])(.14)},data:["TP","AD","GL","Total"]},calculable:!0,xAxis:[{axisLine:{show:!0,lineStyle:{color:"rgba(255,255,255,.1)",type:"solid"}},axisTick:{show:!1},axisLabel:{interval:0,show:!0,textStyle:{color:"#fff",fontSize:Object(l["a"])(.14)}},data:e}],yAxis:[{type:"value",axisLabel:{show:!0,textStyle:{color:"#fff",fontSize:Object(l["a"])(.14)}},axisTick:{show:!1},axisLine:{show:!0,lineStyle:{color:"rgba(255,255,255,.1\t)",type:"solid"}},splitLine:{lineStyle:{color:"rgba(255,255,255,.1)"}}}],series:[{name:"TP",type:"bar",stack:"Total",barMaxWidth:Object(l["a"])(.4),itemStyle:{normal:{color:"#2fA2FF",label:{show:!0,textStyle:{color:"#fff",fontSize:Object(l["a"])(.14)},position:"inside",formatter:function(e){return e.value>0?e.value:""}}}},data:t},{name:"AD",type:"bar",stack:"Total",itemStyle:{normal:{color:"#27d08a",label:{show:!0,textStyle:{color:"#fff",fontSize:Object(l["a"])(.14)},position:"inside",formatter:function(e){return e.value>0?e.value:""}}}},data:i},{name:"GL",type:"bar",stack:"Total",itemStyle:{normal:{color:"#2f89cf",label:{show:!0,textStyle:{color:"#fff",fontSize:Object(l["a"])(.14)},position:"inside",formatter:function(e){return e.value>0?e.value:""}}}},data:n},{name:"Total",type:"line",smooth:!0,symbolSize:10,symbol:"circle",itemStyle:{normal:{color:"rgba(252,230,48,1)",label:{show:!0,position:"top",textStyle:{color:"#fff",fontSize:Object(l["a"])(.14)},formatter:function(e){return e.value>0?e.value:""}}}},data:a}]};this.$refs.reading_rank&&(this.myChart=o.a.init(this.$refs.reading_rank),this.myChart.setOption(r))},getData:function(){var e=this;Object(s["e"])(c).then((function(t){if(t.IsSuccess){if(t.Result){for(var i=[],n=[],a=[],r=[],o=[],s=0;s<t.Result.length;s++)i.push(t.Result[s].ReviewerCode),n.push(t.Result[s].Timepoint),a.push(t.Result[s].Adjudication),r.push(t.Result[s].Global),o.push(t.Result[s].TotalReadingCount);e.initChart(i,n,a,r,o)}}else e.$message({message:t.ErrorMessage,type:"error"})}))}}},d=u,f=(i("4308"),i("2877")),h=Object(f["a"])(d,n,a,!1,null,"77d7fcaa",null);t["default"]=h.exports},"62a7":function(e,t,i){"use strict";i("2985")},"62bc":function(e,t,i){"use strict";i("e9c5")},6311:function(e,t,i){"use strict";i("0283")},6331:function(e,t,i){"use strict";function n(e){var t=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;if(t){var i=t/1920*100;return e*i}}i.d(t,"a",(function(){return n}))},"63a0":function(e,t,i){"use strict";i("36fb")},"63a2":function(e,t,i){"use strict";i("f3ce")},"63a6":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"credentials-container"},[i("div",{staticClass:"clearfix"},[i("el-card",{staticClass:"e-card"},[i("p",{staticClass:"title"},[e._v("Diploma of the highest medical degree 最高医学学位毕业证书\n ")]),e._v(" "),i("upload-file",{attrs:{"doctor-id":e.doctorId,type:"Diploma of the highest medical degree"}}),e._v(" "),i("el-button",{staticStyle:{position:"absolute",bottom:"10px",right:"10px"},attrs:{size:"mini",type:"primary"},on:{click:function(t){return e.handleDownload("Reviewer_DiplomaOfTheHighestMedicalDegree_Template")}}},[i("i",{staticClass:"el-icon-view el-icon-download"}),e._v("\n Template\n ")])],1),e._v(" "),i("el-card",{staticClass:"e-card"},[i("p",{staticClass:"title"},[e._v("Medical Qualification Certificate 医师资格证\n "),i("el-button",{staticStyle:{position:"absolute",bottom:"10px",right:"10px"},attrs:{size:"mini",type:"primary"},on:{click:function(t){return e.handleDownload("Reviewer_MedicalQualificationCertificate_Template")}}},[i("i",{staticClass:"el-icon-view el-icon-download"}),e._v("\n Template\n ")])],1),e._v(" "),i("upload-file",{attrs:{"doctor-id":e.doctorId,type:"Medical Qualification Certificate"}})],1),e._v(" "),i("el-card",{staticClass:"e-card"},[i("p",{staticClass:"title"},[e._v("Practice License 医师执业证\n "),i("el-button",{staticStyle:{position:"absolute",bottom:"10px",right:"10px"},attrs:{size:"mini",type:"primary"},on:{click:function(t){return e.handleDownload("Reviewer_PracticeLicense_Template")}}},[i("i",{staticClass:"el-icon-view el-icon-download"}),e._v("\n Template\n ")])],1),e._v(" "),i("upload-file",{attrs:{"doctor-id":e.doctorId,type:"Practice License"}})],1)],1),e._v(" "),i("h6",{staticStyle:{"line-height":"30px","font-size":"13px"}},[e._v("Modality Certificate 大型医用设备上岗证")]),e._v(" "),i("div",{staticClass:"clearfix"},[i("el-card",{staticClass:"e-card"},[i("p",{staticClass:"title"},[e._v("CT\n "),i("el-button",{staticStyle:{position:"absolute",bottom:"10px",right:"10px"},attrs:{size:"mini",type:"primary"},on:{click:function(t){return e.handleDownload("Reviewer_CT_Template")}}},[i("i",{staticClass:"el-icon-view el-icon-download"}),e._v("\n Template\n ")])],1),e._v(" "),i("upload-file",{attrs:{"doctor-id":e.doctorId,type:"Modality Certificate(CT)"}})],1),e._v(" "),i("el-card",{staticClass:"e-card"},[i("p",{staticClass:"title"},[e._v("MRI\n "),i("el-button",{staticStyle:{position:"absolute",bottom:"10px",right:"10px"},attrs:{size:"mini",type:"primary"},on:{click:function(t){return e.handleDownload("Reviewer_MRI_Template")}}},[i("i",{staticClass:"el-icon-view el-icon-download"}),e._v("\n Template\n ")])],1),e._v(" "),i("upload-file",{attrs:{"doctor-id":e.doctorId,type:"Modality Certificate(MRI)"}})],1),e._v(" "),i("el-card",{staticClass:"e-card"},[i("p",{staticClass:"title"},[e._v("NM\n "),i("el-button",{staticStyle:{position:"absolute",bottom:"10px",right:"10px"},attrs:{size:"mini",type:"primary"},on:{click:function(t){return e.handleDownload("Reviewer_NM_Template")}}},[i("i",{staticClass:"el-icon-view el-icon-download"}),e._v("\n Template\n ")])],1),e._v(" "),i("upload-file",{attrs:{"doctor-id":e.doctorId,type:"Modality Certificate(NM)"}})],1),e._v(" "),i("el-card",{staticClass:"e-card"},[i("p",{staticClass:"title"},[e._v("US\n "),i("el-button",{staticStyle:{position:"absolute",bottom:"10px",right:"10px"},attrs:{size:"mini",type:"primary"},on:{click:function(t){return e.handleDownload("Reviewer_US_Template")}}},[i("i",{staticClass:"el-icon-view el-icon-download"}),e._v("\n Template\n ")])],1),e._v(" "),i("upload-file",{attrs:{"doctor-id":e.doctorId,type:"Modality Certificate(US)"}})],1)],1)])},a=[],r=i("b418"),o=i("e56e"),s={components:{UploadFile:r["default"]},data:function(){return{doctorId:this.$route.query.Id}},methods:{handleDownload:function(e){var t=this;this.loading=!0,Object(o["a"])(e).then((function(e){t.loading=!1})).catch((function(){t.loading=!1}))}}},l=s,c=(i("d55c"),i("2877")),u=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},"641d":function(e,t,i){},6422:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{ref:"preview-wrapper"},[i("div",{staticClass:"viewerContainer"},[i("div",{staticClass:"viewerContentWrapper",staticStyle:{"padding-top":"25px"}},[i("div",{staticClass:"viewerLeftSidePanel"},[i("div",{staticClass:"sidePanelBody",attrs:{id:"listWrapper"}},[i("div",{staticClass:"sidePanelThumbs"},[i("div",{staticClass:"studyDesc",staticStyle:{"line-height":"10px"}},[e._v("\n "+e._s(e.studyTitle)+"\n ")]),e._v(" "),i("div",{staticClass:"studyDesc",staticStyle:{"line-height":"10px"}},[e._v("\n "+e._s(e.seriesCount)+" Series\n ")]),e._v(" "),i("div",{staticClass:"viewerSidethumbs ps",staticStyle:{position:"relative"}},[i("div",{staticClass:"viewerSidethumbinner"},e._l(e.seriesList,(function(t,n){return i("div",{key:n,staticClass:"viewernavigatorwrapper",class:{viewerSideActive:n==e.currentSeriesIndex},on:{click:function(t){return e.showSeriesImage(n)}}},[i("dicomPreview",{staticClass:"image-preview",staticStyle:{height:"72px",width:"72px",display:"inline-block"},attrs:{"image-id":t.previewImageId}}),e._v(" "),i("div",{staticClass:"viewernavitextwrapper"},[i("div",{staticStyle:{padding:"1px"}},[e._v("#"+e._s(t.seriesTitle))]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.instanceCount,expression:"item.instanceCount"}],staticStyle:{padding:"1px"}},[e._v(e._s(t.instanceCount)+" image")])])],1)})),0)])])])]),e._v(" "),i("div",{staticClass:"viewerContent"},[i("dicom-viewer",{ref:"dicomViewer",staticStyle:{height:"100%"},attrs:{id:"dicomViewer"}})],1)])])])},a=[],r=(i("55dd"),i("ac6a"),i("7514"),i("acd4")),o=i("81d9"),s=i("344d"),l=i("5be4"),c=i("cc73"),u=i("deda");s["external"].dicomParser=r,s["external"].cornerstone=o;var d={components:{dicomViewer:c["default"],dicomPreview:u["default"]},props:{uid:{type:String,default:""}},data:function(){return{studyTitle:"",seriesCount:0,seriesList:[],currentSeriesIndex:-1}},mounted:function(){var e=window.innerHeight||document.body.clientHeight,t=this.$refs["preview-wrapper"];t.style.height=e-70+"px",l["a"].studyList&&this.uid&&this.loadStudy()},methods:{loadStudy:function(){var e=l["a"].studyList,t=this.uid,i=e.find((function(e){return e.dicomInfo.studyUid===t}));if(i){this.studyTitle=i.dicomInfo.patientName||i.dicomInfo.description,this.seriesCount=i.seriesList.length;var n=this;i.seriesList.forEach((function(e){e.instanceList.sort((function(e,t){return e.instanceNumber-t.instanceNumber}));var t=[];e.instanceList.forEach((function(e){var i=s["wadouri"].fileManager.add(e.file);if(e.frameCount>1)for(var n=0;n<e.frameCount;++n)t.push("".concat(i,"?frame=").concat(n));else t.push(i)})),n.seriesList.push({seriesNumber:e.seriesNumber,seriesTitle:e.description||e.modality||"(Anonymous)",instanceCount:e.instanceList.length,imageIds:t,previewImageId:t[0]})})),this.showSeriesImage(0)}},showSeriesImage:function(e){this.currentSeriesIndex=e,this.$refs.dicomViewer.loadImageStack(this.seriesList[e])},closeDialog:function(){this.$emit("closeInnerDialog")}}},f=d,h=(i("4b92"),i("2877")),p=Object(h["a"])(f,n,a,!1,null,"c05edb72",null);t["default"]=p.exports},6428:function(e,t,i){var n=i("b4b0"),a=1/0,r=17976931348623157e292;function o(e){if(!e)return 0===e?e:0;if(e=n(e),e===a||e===-a){var t=e<0?-1:1;return t*r}return e===e?e:0}e.exports=o},"642b":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"gcp-container"},[i("el-radio-group",{staticStyle:{"margin-bottom":"20px"},model:{value:e.GCP,callback:function(t){e.GCP=t},expression:"GCP"}},[i("el-radio",{attrs:{label:1}},[e._v("Yes")]),e._v(" "),i("el-radio",{attrs:{label:0}},[e._v("No")])],1),e._v(" "),e.GCP?i("div",{staticClass:"upload-container"},[i("el-upload",{staticClass:"upload-demo",attrs:{action:"","http-request":e.uploadFile,"before-upload":e.beforeUpload,"file-list":e.fileList,"before-remove":e.beforeRemove,"on-remove":e.handleRemoveFile,"on-preview":e.handlePreview,limit:1,"on-exceed":e.handleExceed,accept:".pdf"}},[i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnDisabled}},[e._v("Upload")]),e._v(" "),i("span",{staticClass:"el-upload__tip",staticStyle:{"margin-left":"10px"},attrs:{slot:"tip"},slot:"tip"},[e._v("(must be in pdf format)")])],1)],1):e._e(),e._v(" "),i("div",[i("el-button",{staticStyle:{"margin-top":"20px"},attrs:{loading:e.saveBtnLoading,disabled:0===e.fileList.length&&1===e.GCP,type:"primary",size:"small"},on:{click:e.handleSaveGCP}},[e._v("\n Save\n ")])],1)],1)},a=[],r=(i("7f7f"),i("ac6a"),i("c5f6"),i("a796")),o=i("33ba"),s={name:"UploadFile",props:{doctorId:{type:String,required:!0},gcp:{type:Number,default:0},gcpId:{type:String,default:""}},data:function(){return{fileList:[],btnDisabled:!1,saveBtnLoading:!1,GCP:0,GCPID:""}},watch:{gcp:function(e){this.GCP=e},gcpId:function(e){this.GCPID=e}},mounted:function(){this.initFileList()},methods:{handleSaveGCP:function(){var e=this;if(this.GCP&&""===this.GCPID)this.$message.info("Please upload the GCP certificate");else{var t={Id:this.doctorId,GCP:this.GCP,GCPId:this.GCPID};this.saveBtnLoading=!0,Object(o["D"])(t).then((function(t){0===e.GCP&&(e.fileList=[]),e.saveBtnLoading=!1,e.$message.success("Saved successfully")})).catch((function(){e.saveBtnLoading=!1}))}},initFileList:function(){var e=this;Object(r["b"])(this.doctorId,"GCP").then((function(t){t.IsSuccess&&(t.Result.length>0?e.fileList=e.formatterFileList(t.Result):e.fileList=[])}))},formatterFileList:function(e){var t=[];return e.forEach((function(e){var i={name:e.FileName,path:e.Path,fullPath:e.FullPath,id:e.Id,type:e.Type};t.push(i)})),t},uploadFile:function(e){var t=this,i=e.file.name;this.btnDisabled=!0,Object(r["f"])(e.file,"GCP",this.doctorId).then((function(e){e.IsSuccess&&(t.fileList.push({name:i,path:e.Result.FilePath,fullPath:e.Result.FullFilePath,type:"GCP"}),t.saveFile())})).catch((function(){t.btnDisabled=!1}))},saveFile:function(){var e=this,t=this.fileList[0],i=t.name,n=t.path,a=t.fullPath,o=t.type,s=[{DoctorId:this.doctorId,Type:o,Path:n,FullPath:a,FileName:i}];Object(r["c"])(s).then((function(t){e.btnDisabled=!1,t.IsSuccess&&(e.fileList[0].id=t.Result[0].Id,e.GCPID=t.Result[0].Id,e.$message.success("Uploaded successfully"))})).catch((function(){e.btnDisabled=!1}))},beforeUpload:function(e,t){var i=this.fileValid(e.name,["pdf"]);if(!i)return this.$message.error("must be in pdf format"),!1;this.fileList=[]},beforeRemove:function(e,t){if(e&&"success"===e.status)return this.$confirm("Sure to remove ".concat(e.name,"?"))},handleRemoveFile:function(e,t){var i=this;e&&"success"===e.status&&(e.id?Object(r["a"])(e.id,e.path).then((function(e){e.IsSuccess&&(i.fileList=[],i.GCPID="",i.$message({message:"Deleted successfully!",type:"success"}))})):this.fileList=[])},handlePreview:function(e){e.fullPath&&window.open(e.fullPath,"_blank")},handleExceed:function(e,t){this.$message.warning("Upload is currently limited to 1 file")},fileValid:function(e,t){var i=e.substring(e.lastIndexOf(".")+1).toLocaleLowerCase();return t.indexOf(i)>-1}}},l=s,c=(i("b381"),i("2877")),u=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},6437:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{ref:"adjustmentForm",staticClass:"demo-ruleForm adjustmentForm",attrs:{size:"small",model:e.adjustmentForm,"label-width":"120px",rules:e.rules}},[i("el-form-item",{attrs:{label:"Reviewer",prop:"ReviewerId"}},[i("el-select",{attrs:{filterable:"",placeholder:"Please select"},model:{value:e.adjustmentForm.ReviewerId,callback:function(t){e.$set(e.adjustmentForm,"ReviewerId",t)},expression:"adjustmentForm.ReviewerId"}},e._l(e.reviewerList,(function(t){return i("el-option",{key:t.Code,attrs:{label:t.info,value:t.Id}},[i("span",{staticStyle:{float:"left"}},[e._v(e._s(t.info))]),e._v(" "),i("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(t.ChineseName))])])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Adjust Month",prop:"YearMonth"}},[i("el-date-picker",{attrs:{type:"month",placeholder:"Please select","value-format":"yyyy-MM",format:"yyyy-MM",disabled:""},model:{value:e.adjustmentForm.YearMonth,callback:function(t){e.$set(e.adjustmentForm,"YearMonth",t)},expression:"adjustmentForm.YearMonth"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Amount($)",prop:"AdjustPaymentUSD"}},[i("el-input-number",{attrs:{"controls-position":"right"},model:{value:e.adjustmentForm.AdjustPaymentUSD,callback:function(t){e.$set(e.adjustmentForm,"AdjustPaymentUSD",t)},expression:"adjustmentForm.AdjustPaymentUSD"}}),e._v(" "),e.adjustmentForm.AdjustPaymentUSD&&e.exchangeRate?i("span",{staticStyle:{"font-size":"12px",color:"#00d1b2","margin-right":"10px"}},[e._v("Tips: Exchange Rate: "+e._s(e.exchangeRate))]):e._e(),e._v(" "),e.adjustmentForm.AdjustPaymentUSD&&e.exchangeRate?i("span",{staticStyle:{"font-size":"12px",color:"#00d1b2"}},[e._v("Amount(¥): "+e._s((e.adjustmentForm.AdjustPaymentUSD*e.exchangeRate).toFixed(2)))]):e.exchangeRate?e._e():i("span",{staticStyle:{"font-size":"12px",color:"#f44336"}},[e._v("Exchange rate is not set.")])],1),e._v(" "),i("el-form-item",{attrs:{label:"Note",prop:"Note"}},[i("el-input",{attrs:{type:"textarea",autosize:{minRows:4}},model:{value:e.adjustmentForm.Note,callback:function(t){e.$set(e.adjustmentForm,"Note",t)},expression:"adjustmentForm.Note"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleCancel}},[e._v("Cancel")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",disabled:e.btnDisabled},on:{click:e.handleSave}},[e._v("Save")])],1)],1)},a=[],r=i("db72"),o=(i("c5f6"),i("4360")),s=i("2f62"),l=i("6b95"),c={name:"AdjustmentForm",props:{row:{type:Object,default:function(){return{}}},date:{type:String,default:""},exchangeRate:{type:Number,default:0}},data:function(){return{adjustmentForm:{Id:"",ReviewerId:"",YearMonth:"",AdjustPaymentUSD:"",Note:""},rules:{ReviewerId:[{required:!0,message:"Please select",trigger:["blur","change"]}],AdjustPaymentUSD:[{required:!0,message:"Please specify",trigger:"blur"}],Note:[{max:500,message:"The maximum length is 500"}]},btnDisabled:!1}},computed:Object(r["a"])({},Object(s["b"])(["reviewerList"])),mounted:function(){o["a"].dispatch("financials/getReviewer"),this.adjustmentForm.YearMonth=this.date,this.row.Id&&(this.adjustmentForm.Id=this.row.Id,this.adjustmentForm.ReviewerId=this.row.ReviewerId,this.adjustmentForm.AdjustPaymentUSD=this.row.AdjustPaymentUSD,this.adjustmentForm.Note=this.row.Note)},methods:{handleSave:function(){var e=this;this.$refs.adjustmentForm.validate((function(t){t&&(0===e.adjustmentForm.AdjustPaymentUSD?e.$message.error("Amount cannot be 0!"):(e.btnDisabled=!0,Object(l["c"])(e.adjustmentForm).then((function(t){t.IsSuccess&&(e.btnDisabled=!1,e.$message.success("Saved successfully"),e.$emit("closeDialog"),e.$emit("getList"))})).catch((function(){e.btnDisabled=!1}))))}))},handleCancel:function(){this.$emit("closeDialog")}}},u=c,d=(i("3c0de"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},"643c":function(e,t,i){"use strict";i("19ec")},6452:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container"},[i("resume-info")],1)},a=[],r=i("e2f5"),o={components:{ResumeInfo:r["default"]}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},6469:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"globalReadingForm",attrs:{model:e.form,size:"small",rules:e.rules,"label-width":"110px"}},[i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:globalReading:title:globalAssessTypes")}},[i("div",{staticStyle:{width:"700px",display:"flex"}},[i("el-table",{ref:"multipleTable",staticStyle:{width:"600px"},attrs:{"min-height":"100",data:e.form.GlobalAssessTypes,stripe:""}},[i("el-table-column",{attrs:{prop:"ValueCN",label:e.$t("trials:readingUnit:globalReading:title:valueCN"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Value",label:e.$t("trials:readingUnit:globalReading:title:valueEN"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsBaseLineUse",label:e.$t("trials:readingUnit:globalReading:title:isBaseLineUse"),"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-switch",{attrs:{disabled:e.form.IsSystemCriterion||e.isSign||!e.hasPermi(["trials:trials-panel:setting:reading-unit:edit"])},model:{value:t.row.IsBaseLineUse,callback:function(i){e.$set(t.row,"IsBaseLineUse",i)},expression:"scope.row.IsBaseLineUse"}}),e._v(" "),i("span",[e._v(e._s(e.$fd("YesOrNo",t.row.IsBaseLineUse)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsFollowVisitUse",label:e.$t("trials:readingUnit:globalReading:title:isFollowVisitUse"),"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-switch",{attrs:{disabled:e.form.IsSystemCriterion||e.isSign||!e.hasPermi(["trials:trials-panel:setting:reading-unit:edit"])},model:{value:t.row.IsFollowVisitUse,callback:function(i){e.$set(t.row,"IsFollowVisitUse",i)},expression:"scope.row.IsFollowVisitUse"}}),e._v(" "),i("span",[e._v(e._s(e.$fd("YesOrNo",t.row.IsFollowVisitUse)))])]}}])})],1),e._v(" "),i("div",{staticStyle:{display:"flex","align-items":"center","padding-left":"10px"}},[i("el-button",{attrs:{disabled:e.form.IsSystemCriterion||e.isSign||!e.hasPermi(["trials:trials-panel:setting:reading-unit:edit"]),icon:"el-icon-plus",circle:""},on:{click:e.handleSetCriterion}})],1)],1)]),e._v(" "),!e.isSign&&e.hasPermi(["trials:trials-panel:setting:reading-unit:edit"])?i("el-form-item",[i("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.handleSave(!0)}}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1):e._e(),e._v(" "),e.config.visible?i("el-dialog",{attrs:{visible:e.config.visible,"close-on-click-modal":!1,title:e.config.title,width:"90%","append-to-body":""},on:{"update:visible":function(t){return e.$set(e.config,"visible",t)}}},[i("div",{staticStyle:{"text-align":"right"}},[i("el-button",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{size:"mini",type:"primary"},on:{click:e.handleTypeSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:80},expression:"{bottomOffset:80}"}],ref:"multipleTable",attrs:{height:"100",data:e.$d.GlobalAssessType,stripe:""},on:{"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),i("el-table-column",{attrs:{prop:"raw.ValueCN",label:e.$t("trials:readingUnit:globalReading:title:valueCN"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"raw.Value",label:e.$t("trials:readingUnit:globalReading:title:valueEN"),"show-overflow-tooltip":""}})],1)],1):e._e()],1)},a=[],r=(i("6b54"),i("456d"),i("7514"),i("ac6a"),i("3e42")),o={name:"GlobalReading",props:{trialReadingCriterionId:{type:String,default:function(){return""}}},data:function(){return{form:{TrialId:"",GlobalAssessTypes:[],IsSystemCriterion:!0},rules:{GlobalAssessTypes:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:["blur"]}]},loading:!1,config:{visible:!1,title:this.$t("trials:readingUnit:GlobalReading")},isSign:!0,selectedList:[]}},mounted:function(){this.initForm()},methods:{handleSelectionChange:function(e){this.selectedList=e},toggleSelection:function(e){var t=this;console.log(this.$refs.multipleTable),e?e.forEach((function(e){t.$refs.multipleTable.toggleRowSelection(e)})):this.$refs.multipleTable.clearSelection()},handleSetCriterion:function(){var e=this;this.config.visible=!0,this.$nextTick((function(){var t=e.$d.GlobalAssessType.filter((function(t){return!!e.form.GlobalAssessTypes.find((function(e){return e.DictionaryId===t.id}))}));e.toggleSelection(t)}))},handleTypeSave:function(){var e=this;this.form.GlobalAssessTypes=this.selectedList.map((function(t){var i=e.form.GlobalAssessTypes.find((function(e){return e.DictionaryId===t.id}));return i||{DictionaryId:t.id,ValueCN:t.raw.ValueCN,Value:t.raw.Value,IsBaseLineUse:!1,IsFollowVisitUse:!1}})),this.config.visible=!1},initForm:function(){var e=this;this.loading=!0,Object(r["zd"])({trialId:this.$route.query.trialId,TrialReadingCriterionId:this.trialReadingCriterionId}).then((function(t){if(Object.keys(t.Result).length>0){for(var i in t.Result)e.form.hasOwnProperty(i)&&(e.form[i]=t.Result[i]);e.isSign=t.Result.IsSign}e.form.GlobalAssessTypeIdsStr=e.form.GlobalAssessTypeIds.map((function(t){return e.$fd("GlobalAssessType",t,"id")})).toString(),e.loading=!1})).catch((function(){e.loading=!1}))},handleSave:function(e){var t=this;return new Promise((function(i,n){t.$refs["globalReadingForm"].validate((function(n){if(n){t.loading=!0,t.form.TrialId=t.$route.query.trialId,t.form.TrialReadingCriterionId=t.trialReadingCriterionId;var a={GlobalAssessList:t.form.GlobalAssessTypes,TrialReadingCriterionId:t.trialReadingCriterionId,TrialId:t.$route.query.trialId};Object(r["Le"])(a).then((function(n){t.loading=!1,n.IsSuccess&&e&&t.$message.success(t.$t("common:message:savedSuccessfully")),i(!0)})).catch((function(e){t.loading=!1,i(!1)}))}else i(!1)}))}))}}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,"35fe9fa7",null);t["default"]=c.exports},6483:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"comment-info"},[i("el-form",{staticClass:"demo-form-inline",attrs:{model:e.statusList,size:"small"}},[i("el-form-item",{attrs:{label:"Comment:"}},[i("el-input",{attrs:{type:"textarea",autosize:"",readonly:""},model:{value:e.statusList.AdminComment,callback:function(t){e.$set(e.statusList,"AdminComment",t)},expression:"statusList.AdminComment"}})],1)],1)],1)},a=[],r={props:{statusList:{type:Object,default:function(){return{}}}}},o=r,s=(i("ac7e"),i("2877")),l=Object(s["a"])(o,n,a,!1,null,null,null);t["default"]=l.exports},"64f9":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"preview-wrapper"},[i("div",{staticClass:"image-viewer-wrapper"},[e.previewVisible?i("NoneDicomsCanvas",{attrs:{"on-switch":function(t){e.selected(t)},"initial-index":e.previewImage.index,"url-list":e.previewImage.imgList,"study-code":e.previewImage.studyCode,"body-part":e.previewImage.bodyPart,modality:e.previewImage.modality,"study-id":e.previewImage.studyId,"reading-task-state":e.readingTaskState}}):e._e()],1),e._v(" "),i("div",{staticClass:"thumbnail-wrapper",staticStyle:{"z-index":"999","background-color":"#fff"}},[i("div",{},[i("div",{staticClass:"img-wrapper"},[i("el-button",{staticClass:"left to",attrs:{icon:"el-icon-d-arrow-left",plain:"",disabled:e.disabledPrev},on:{click:e.toRight}}),e._v(" "),i("div",{ref:"imagesWrapper",staticClass:"images"},[e.noData?i("div",{staticClass:"empty-text"},[e._t("empty",[e._v("暂无数据")])],2):e._e(),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:!e.noData,expression:"!noData"}],staticClass:"items",style:e.itemsStyle},e._l(e.previewImage.imgList,(function(t,n){return i("div",{key:n,staticClass:"item-img",class:{"is-active":n===e.currentIndex},style:e.imgSize,on:{click:function(t){return e.selected(n)}}},[i("img",{attrs:{title:t.FileName,src:"/api/"+t.PreviewPath}}),e._v(" "),t.FileName?i("p",{staticClass:"item-date"},[e._v("\n "+e._s(""+(n+1))+"\n ")]):e._e()])})),0)]),e._v(" "),i("el-button",{staticClass:"right to",attrs:{icon:"el-icon-d-arrow-right",disabled:e.disabledNext,plain:""},on:{click:e.Left}})],1)])])])},a=[],r=(i("a481"),i("c5f6"),i("9843")),o={name:"NoneDicomsViewer",components:{NoneDicomsCanvas:r["default"]},props:{readingTaskState:{type:Number,default:2},imgSize:{type:Object,default:function(){return{width:"120px",height:"120px"}}},value:{type:Number,default:null},previewImage:{type:Object,default:function(){return{imgList:[],index:0,infinite:!0,studyCode:"",modality:"",bodyPart:"",studyId:""}}}},data:function(){return{currentIndex:0,previewVisible:!0,translateX:0,pageSize:0,urlList:[]}},computed:{itemsStyle:function(){return{transform:"translateX(".concat(-this.translateX,"px)")}},itemWidth:function(){return parseInt(this.imgSize.width.replace("px",""))+8},disabledPrev:function(){return this.translateX<=0},disabledNext:function(){return this.translateX>=(this.previewImage.imgList.length-this.pageSize)*this.itemWidth},noData:function(){return 0===this.previewImage.imgList.length},dataLength:function(){return this.previewImage.imgList.length}},watch:{value:{immediate:!0,handler:function(e){this.currentIndex=e}},"previewImage.index":{immediate:!0,handler:function(e){this.urlList.index=e}}},mounted:function(){this.pageSize=this.wrapperWidth()/this.itemWidth,this.urlList=this.previewImage;var e=this;window.onresize=function(){e.pageSize=e.wrapperWidth()/e.itemWidth,e.selected(e.currentIndex)}},methods:{toRight:function(){this.translateX<this.pageSize*this.itemWidth?this.translateX=0:this.translateX=this.translateX-this.pageSize*this.itemWidth},Left:function(){this.translateX=this.translateX+this.pageSize*this.itemWidth;var e=this.itemWidth*(this.dataLength-this.pageSize);this.translateX>e&&(this.translateX=e)},selected:function(e){var t=this.pageSize>>1,i=this.dataLength-t;if(e>t&&e<i){var n=e-t;this.translateX=this.itemWidth*n}else{var a=this.itemWidth*(this.dataLength-this.pageSize);this.translateX=e<=t?0:a}this.currentIndex!==e&&(this.currentIndex=e),this.$emit("selectedImg",e)},wrapperWidth:function(){return this.$refs.imagesWrapper?this.$refs.imagesWrapper.offsetWidth:0}}},s=o,l=(i("e24f"),i("2877")),c=Object(l["a"])(s,n,a,!1,null,"470894a0",null);t["default"]=c.exports},6562:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"preview-wrapper"},[i("el-tabs",{attrs:{"tab-position":"right",type:"card"}},e._l(e.fileList,(function(t){return i("el-tab-pane",{key:t.Id,attrs:{label:t.FileName}},[-1!==t.Type.indexOf("jpg")||-1!==t.Type.indexOf("png")?i("iframe",{attrs:{frameborder:"0",src:t.FullFilePath,width:"100%",height:"100%"}}):-1!==t.Type.indexOf("pdf")?i("iframe",{attrs:{src:"/static/pdfjs/web/viewer.html?file="+t.FullFilePath,width:"100%",height:"100%",frameborder:"0"}}):i("div",[e._v("\n "+e._s(e.$t("common:message:downloadFile"))+"\n "),i("el-link",{attrs:{type:"primary"},on:{click:function(i){return e.downLoadFile(t.FullFilePath)}}},[e._v(e._s(e.$t("common:button:download")))])],1)])})),1)],1)},a=[],r=(i("ac6a"),i("3e42")),o=i("4360"),s=i("a599"),l={name:"SingleNoneDicom",data:function(){return{fileType:"",fileUrl:"",loading:!1,fileList:[],noneDicomId:""}},mounted:function(){this.$router.currentRoute.query.TokenKey&&(o["a"].dispatch("user/setToken",this.$router.currentRoute.query.TokenKey),Object(s["a"])("TokenKey","")),this.noneDicomId=this.$router.currentRoute.query.Id,this.getFileList()},methods:{getFileList:function(){var e=this;this.loading=!0,Object(r["wc"])(this.noneDicomId).then((function(t){e.fileList=t.Result,e.fileList.forEach((function(e){var t=e.FileName;e.Type=t.substring(t.lastIndexOf(".")+1).toLocaleLowerCase()})),e.loading=!1})).catch((function(){e.loading=!1}))},downLoadFile:function(e){e&&window.open(e,"_blank")}}},c=l,u=(i("b306"),i("2877")),d=Object(u["a"])(c,n,a,!1,null,null,null);t["default"]=d.exports},6569:function(e,t,i){var n=i("6d8b"),a=i("e0d3");function r(e){o(e),s(e)}function o(e){if(!e.parallel){var t=!1;n.each(e.series,(function(e){e&&"parallel"===e.type&&(t=!0)})),t&&(e.parallel=[{}])}}function s(e){var t=a.normalizeToArray(e.parallelAxis);n.each(t,(function(t){if(n.isObject(t)){var i=t.parallelIndex||0,r=a.normalizeToArray(e.parallel)[i];r&&r.parallelAxisDefault&&n.merge(t,r.parallelAxisDefault,!1)}}))}e.exports=r},6582:function(e,t,i){var n=i("cccd"),a={seriesType:"lines",plan:n(),reset:function(e){var t=e.coordinateSystem,i=e.get("polyline"),n=e.pipelineContext.large;function a(a,r){var o=[];if(n){var s,l=a.end-a.start;if(i){for(var c=0,u=a.start;u<a.end;u++)c+=e.getLineCoordsCount(u);s=new Float32Array(l+2*c)}else s=new Float32Array(4*l);var d=0,f=[];for(u=a.start;u<a.end;u++){var h=e.getLineCoords(u,o);i&&(s[d++]=h);for(var p=0;p<h;p++)f=t.dataToPoint(o[p],!1,f),s[d++]=f[0],s[d++]=f[1]}r.setLayout("linesPoints",s)}else for(u=a.start;u<a.end;u++){var m=r.getItemModel(u),g=(h=e.getLineCoords(u,o),[]);if(i)for(var v=0;v<h;v++)g.push(t.dataToPoint(o[v]));else{g[0]=t.dataToPoint(o[0]),g[1]=t.dataToPoint(o[1]);var b=m.get("lineStyle.curveness");+b&&(g[2]=[(g[0][0]+g[1][0])/2-(g[0][1]-g[1][1])*b,(g[0][1]+g[1][1])/2-(g[1][0]-g[0][0])*b])}r.setItemLayout(u,g)}}return{progress:a}}};e.exports=a},6592:function(e,t,i){},"65d1":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"process-config-form"},[i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"processConfigForm",staticStyle:{width:"800px"},attrs:{model:e.form,"label-width":"220px",rules:e.rules,size:"small"}},[i("el-form-item",{attrs:{label:e.$t("trials:processCfg:form:readingMode"),prop:"ReadingMode"}},[i("el-radio-group",{attrs:{disabled:e.form.IsTrialProcessConfirmed&&!e.isEdit},model:{value:e.form.ReadingMode,callback:function(t){e.$set(e.form,"ReadingMode",t)},expression:"form.ReadingMode"}},e._l(e.$d.ReadingMode,(function(t){return i("el-radio",{key:t.id,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:processCfg:form:criterion"),prop:"TrialCriterionNamesStr"}},[i("el-input",{staticStyle:{width:"80%"},attrs:{type:"textarea",autosize:{minRows:1,maxRows:3},disabled:""},model:{value:e.form.TrialCriterionNamesStr,callback:function(t){e.$set(e.form,"TrialCriterionNamesStr",t)},expression:"form.TrialCriterionNamesStr"}}),e._v(" "),"Initializing"===e.TrialStatusStr?i("el-button",{attrs:{disabled:!e.isEdit,icon:"el-icon-plus",circle:""},on:{click:e.handleSetCriterion}}):e._e()],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:logincCfg:form:clinicalInforTransfer"),prop:"ClinicalInformationTransmissionEnum"}},[i("el-radio-group",{attrs:{disabled:e.form.IsTrialProcessConfirmed&&!e.isEdit},model:{value:e.form.ClinicalInformationTransmissionEnum,callback:function(t){e.$set(e.form,"ClinicalInformationTransmissionEnum",t)},expression:"form.ClinicalInformationTransmissionEnum"}},e._l(e.$d.ClinicalInformationTransmissionEnum,(function(t){return i("el-radio",{key:t.id,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1),e._v(" "),1===e.form.ClinicalInformationTransmissionEnum?i("el-form-item",{attrs:{label:e.$t("trials:logincCfg:form:clinicalConfig"),prop:"ClinicalDataSetNamesStr"}},[i("el-input",{staticStyle:{width:"80%"},attrs:{type:"textarea",autosize:{minRows:1,maxRows:3},disabled:""},model:{value:e.form.ClinicalDataSetNamesStr,callback:function(t){e.$set(e.form,"ClinicalDataSetNamesStr",t)},expression:"form.ClinicalDataSetNamesStr"}}),e._v(" "),e.form.TrialCriterionNamesStr?i("el-button",{attrs:{icon:"el-icon-plus",circle:""},on:{click:e.handleSetCD}}):e._e()],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:processCfg:form:qcProcess"),prop:"QCProcessEnum"}},[i("el-radio-group",{attrs:{disabled:e.form.IsTrialProcessConfirmed&&!e.isEdit},model:{value:e.form.QCProcessEnum,callback:function(t){e.$set(e.form,"QCProcessEnum",t)},expression:"form.QCProcessEnum"}},e._l(e.$d.QCProcessEnum,(function(t){return i("el-radio",{key:t.id,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:processCfg:form:conProcess"),prop:"IsImageConsistencyVerification"}},[i("el-radio-group",{attrs:{disabled:e.form.IsTrialProcessConfirmed&&!e.isEdit},model:{value:e.form.IsImageConsistencyVerification,callback:function(t){e.$set(e.form,"IsImageConsistencyVerification",t)},expression:"form.IsImageConsistencyVerification"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"IsImageConsistencyVerification"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1),e._v(" "),i("el-form-item",[!1===e.form.IsTrialProcessConfirmed&&e.hasPermi(["trials:trials-panel:setting:trial-config:save"])?i("el-button",{attrs:{type:"primary"},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")]):e._e(),e._v(" "),!1===e.form.IsTrialProcessConfirmed&&e.hasPermi(["trials:trials-panel:setting:trial-config:save"])?i("el-button",{attrs:{type:"primary"},on:{click:e.handleConfirm}},[e._v("\n "+e._s(e.$t("trials:trialCfg:button:confirm"))+"\n ")]):e._e(),e._v(" "),!0===e.form.IsTrialProcessConfirmed&&!e.isEdit&&"Initializing"===e.TrialStatusStr&&e.hasPermi(["trials:trials-panel:setting:trial-config:save"])?i("el-button",{attrs:{type:"primary"},on:{click:function(t){e.isEdit=!0}}},[e._v("\n "+e._s(e.$t("trials:trialCfg:button:update"))+"\n ")]):e._e(),e._v(" "),!0===e.form.IsTrialProcessConfirmed&&e.isEdit&&e.hasPermi(["trials:trials-panel:setting:trial-config:save"])?i("el-button",{attrs:{type:"primary"},on:{click:e.handleUpdate}},[e._v("\n "+e._s(e.$t("trials:trialCfg:button:updateAndConfirm"))+"\n ")]):e._e(),e._v(" "),!0===e.form.IsTrialProcessConfirmed&&e.isEdit&&e.hasPermi(["trials:trials-panel:setting:trial-config:save"])?i("el-button",{attrs:{type:"primary"},on:{click:function(t){e.isEdit=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]):e._e()],1)],1),e._v(" "),e.confirmVisible?i("el-dialog",{attrs:{visible:e.confirmVisible,"close-on-click-modal":!1,width:"600px",title:e.$t("trials:trialCfg:dialogTitle:cfgConfirm"),"custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.confirmVisible=t}}},[i("div",{staticClass:"base-dialog-body"},[i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.confirmData,border:"",size:"small"}},[i("el-table-column",{attrs:{prop:"Name",label:e.$t("trials:trialCfg:table:cfgItem"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"NewVal",label:e.$t("trials:trialCfg:table:cfgVal"),"show-overflow-tooltip":""}})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleConfirmConfigData}},[e._v("\n "+e._s(e.$t("trials:trialCfg:button:confirmCfg"))+"\n ")])],1)]):e._e(),e._v(" "),e.updateVisible?i("el-dialog",{attrs:{visible:e.updateVisible,"close-on-click-modal":!1,width:"600px",title:e.$t("trials:trialCfg:dialogTitle:cfgConfirm"),"custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.updateVisible=t}}},[i("div",{staticClass:"base-dialog-body"},[i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.confirmData,border:"",size:"small"}},[i("el-table-column",{attrs:{prop:"Name",label:e.$t("trials:trialCfg:table:cfgItem"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"OldVal",label:e.$t("trials:trialCfg:table:cfgVal")+" "+e.$t("trials:trialCfg:table:beforeChange")+"","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"NewVal",label:e.$t("trials:trialCfg:table:cfgVal")+" "+e.$t("trials:trialCfg:table:updated")+"","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{class:{fontColor:t.row.NewVal!==t.row.OldVal}},[e._v(e._s(t.row.NewVal))])]}}],null,!1,1329206807)})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleUpdateConfigData}},[e._v("\n "+e._s(e.$t("trials:trialCfg:button:confirmCfg"))+"\n ")])],1)]):e._e(),e._v(" "),e.signVisible?i("el-dialog",{attrs:{visible:e.signVisible,"close-on-click-modal":!1,width:"600px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.signVisible=t}}},[i("div",{attrs:{slot:"title"},slot:"title"},[i("span",{staticStyle:{"font-size":"18px"}},[e._v(e._s(e.$t("common:dialogTitle:sign")))]),e._v(" "),i("span",{staticStyle:{"font-size":"12px","margin-left":"5px"}},[e._v(e._s("("+e.$t("common:label:sign")+e.currentUser+")"))])]),e._v(" "),i("SignForm",{ref:"signForm",attrs:{"sign-code-enum":e.signCode},on:{closeDialog:e.closeSignDialog}})],1):e._e(),e._v(" "),e.criterionListVisible?i("el-dialog",{attrs:{visible:e.criterionListVisible,"close-on-click-modal":!1,title:e.$t("trials:processCfg:title:criterion"),"custom-class":"base-dialog-wrapper",width:"1000px"},on:{"update:visible":function(t){e.criterionListVisible=t}}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticClass:"base-dialog-body"},[i("div",{staticClass:"search-form",staticStyle:{display:"flex","justify-content":"space-between"}},[i("el-form",{staticClass:"base-search-form",attrs:{inline:!0,size:"mini"}},[i("el-form-item",{attrs:{label:e.$t("trials:processCfg:title:criterion")}},[i("el-input",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.criterionSearchForm.CriterionName,callback:function(t){e.$set(e.criterionSearchForm,"CriterionName",t)},expression:"criterionSearchForm.CriterionName"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:e.handleSearchCriterion}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.handleResetCriterion}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")])],1)],1),e._v(" "),i("div",[i("el-button",{attrs:{size:"mini",type:"primary",icon:"el-icon-plus"},on:{click:e.handleAddCriterion}},[e._v("\n "+e._s(e.$t("common:button:new"))+"\n ")])],1)],1),e._v(" "),i("el-table",{ref:"criterionList",staticClass:"criterion-table",attrs:{data:e.criterionList,stripe:"",height:"450","row-key":"Id"},on:{select:e.selectCriterion}},[i("el-table-column",{attrs:{type:"selection",align:"left",width:"45","reserve-selection":!0}}),e._v(" "),i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"CriterionName",label:e.$t("trials:processCfg:title:criterion")}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action")},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"primary",size:"mini",disabled:t.row.IsSystemData},on:{click:function(i){return e.handleEditCriterion(t.row)}}},[e._v("\n "+e._s(e.$t("common:button:edit"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"danger",size:"mini",disabled:t.row.IsSystemData},on:{click:function(i){return e.handleDeleteCriterion(t.row)}}},[e._v("\n "+e._s(e.$t("common:button:delete"))+"\n ")])]}}],null,!1,1694373735)})],1),e._v(" "),i("pagination",{staticClass:"page",staticStyle:{"text-align":"right","margin-top":"10px"},attrs:{total:e.criterionListTotal,page:e.criterionSearchForm.PageIndex,limit:e.criterionSearchForm.PageSize},on:{"update:page":function(t){return e.$set(e.criterionSearchForm,"PageIndex",t)},"update:limit":function(t){return e.$set(e.criterionSearchForm,"PageSize",t)},pagination:e.getCriterionList}})],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-button",{attrs:{size:"small",type:"primary",disabled:e.listLoading},on:{click:function(t){e.criterionListVisible=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",disabled:e.listLoading},on:{click:e.handleConfirmCriterion}},[e._v("\n "+e._s(e.$t("common:button:confirm"))+"\n ")])],1)]):e._e(),e._v(" "),e.criterionFormDg.visible?i("el-dialog",{attrs:{visible:e.criterionFormDg.visible,"close-on-click-modal":!1,title:e.criterionFormDg.title,"custom-class":"base-dialog-wrapper","append-to-body":"",width:"500px"},on:{"update:visible":function(t){return e.$set(e.criterionFormDg,"visible",t)}}},[i("div",{staticClass:"base-dialog-body"},[i("el-form",{ref:"criterionForm",attrs:{onsubmit:"return false;",model:e.criterionForm,"label-width":"120px"}},[i("el-form-item",{attrs:{label:this.$t("trials:processCfg:title:criterionName"),prop:"CriterionName",rules:[{required:!0,message:e.$t("common:ruleMessage:specify")},{max:50,message:e.$t("common:ruleMessage:maxLength")+" 50"}]}},[i("el-input",{model:{value:e.criterionForm.CriterionName,callback:function(t){e.$set(e.criterionForm,"CriterionName",t)},expression:"criterionForm.CriterionName"}})],1)],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-button",{attrs:{size:"small",type:"primary",disabled:e.listLoading},on:{click:e.handleCancelSave}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",disabled:e.listLoading},on:{click:e.handleSaveCriterion}},[e._v("\n "+e._s(e.$t("common:button:confirm"))+"\n ")])],1)]):e._e(),e._v(" "),e.criterionQSVisible?i("el-dialog",{attrs:{visible:e.criterionQSVisible,"close-on-click-modal":!1,title:"eCRF模板","custom-class":"base-dialog-wrapper","append-to-body":"",width:"1300px"},on:{"update:visible":function(t){e.criterionQSVisible=t}}},[i("div",{staticClass:"base-dialog-body"},[i("CriterionConfig",{attrs:{data:e.currentCriterionRow},on:{getList:e.getCriterionList}})],1)]):e._e(),e._v(" "),e.clinicalDataVisible?i("el-dialog",{attrs:{visible:e.clinicalDataVisible,"close-on-click-modal":!1,title:e.$t("trials:processCfg:title:clinicalDataCfg"),width:"1200px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.clinicalDataVisible=t}}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticClass:"base-dialog-body"},[i("div",{staticStyle:{"text-align":"right"}},[e.isEdit?i("el-button",{attrs:{size:"mini",type:"primary",icon:"el-icon-plus"},on:{click:e.handleAddClinicalData}},[e._v("\n "+e._s(e.$t("common:button:new"))+"\n ")]):e._e()],1),e._v(" "),i("el-table",{ref:"clinicalData",staticClass:"criterion-table",attrs:{data:e.clinicalDataList,stripe:"",height:"400","row-key":"Id"},on:{"selection-change":e.handleCDSelectChange}},[i("el-table-column",{attrs:{type:"selection",align:"left",width:"45","reserve-selection":!0,selectable:e.handleSelectable}}),e._v(" "),i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"ClinicalDataSetName",label:e.$t("trials:processCfg:title:clinicalDataName"),width:"180"}}),e._v(" "),i("el-table-column",{attrs:{prop:"UploadRole",label:e.$t("trials:processCfg:title:uploader"),"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("ClinicalDataUploadRole",t.row.UploadRole))+"\n ")]}}],null,!1,1127071785)}),e._v(" "),i("el-table-column",{attrs:{prop:"ClinicalDataLevel",label:e.$t("trials:processCfg:title:dataLevel"),width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("ClinicalLevel",t.row.ClinicalDataLevel))+"\n ")]}}],null,!1,3396559462)}),e._v(" "),i("el-table-column",{attrs:{prop:"ClinicalUploadType",label:e.$t("trials:processCfg:title:transferType")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("ClinicalUploadType",t.row.ClinicalUploadType))+"\n ")]}}],null,!1,2625700950)}),e._v(" "),i("el-table-column",{attrs:{prop:"CriterionEnumList",label:e.$t("trials:processCfg:title:criterion"),"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.TrialCriterionNameList.toString())+"\n ")]}}],null,!1,332120840)}),e._v(" "),i("el-table-column",{attrs:{prop:"FileName",label:e.$t("trials:processCfg:title:modulesName"),"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.FileName?i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleDownloadTpl(t.row)}}},[e._v("\n "+e._s(e.$t("common:button:download"))+"\n ")]):e._e()]}}],null,!1,1823065258)}),e._v(" "),e.isEdit?i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"150",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"primary",size:"mini",disabled:"Initializing"!==e.TrialStatusStr},on:{click:function(i){return e.handleEditClinicalData(t.row)}}},[e._v("\n "+e._s(e.$t("common:button:edit"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"danger",size:"mini",disabled:"Initializing"!==e.TrialStatusStr||e.form.ClinicalDataSetNames.indexOf(t.row.ClinicalDataSetName)>-1},on:{click:function(i){return e.handleDeleteClinicalData(t.row)}}},[e._v("\n "+e._s(e.$t("common:button:delete"))+"\n ")])]}}],null,!1,147237814)}):e._e()],1)],1),e._v(" "),e.isEdit?i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-button",{attrs:{size:"small",type:"primary",disabled:e.listLoading},on:{click:function(t){e.clinicalDataVisible=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",disabled:e.listLoading},on:{click:e.handleConfirmClinicalData}},[e._v("\n "+e._s(e.$t("common:button:confirm"))+"\n ")])],1):e._e()]):e._e(),e._v(" "),e.addOrEditCD.visible?i("el-dialog",{attrs:{visible:e.addOrEditCD.visible,"close-on-click-modal":!1,title:e.addOrEditCD.title,width:"500px","append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){return e.$set(e.addOrEditCD,"visible",t)}}},[i("ClinicalDataForm",{ref:"addOrEditCD",attrs:{"trial-id":e.form.TrialId,data:e.currentRow},on:{close:function(t){e.addOrEditCD.visible=!1},getList:e.getClinicalDataList}})],1):e._e()],1)},a=[],r=(i("55dd"),i("20d6"),i("96cf"),i("3b8d")),o=i("db72"),s=i("3e42"),l=i("0662"),c=i("179b"),u=i("333d"),d=i("f0e0"),f=i("3fa8"),h=i("7a9e"),p=function(){return{PageIndex:1,PageSize:20,CriterionName:""}},m={name:"ProcessConfig",components:{SignForm:c["default"],Pagination:u["default"],CriterionConfig:f["default"],ClinicalDataForm:d["default"]},data:function(){return{form:{TrialId:"",ClinicalInformationTransmissionEnum:1,ClinicalDataSetNames:[],ClinicalDataTrialSetIds:[],ClinicalDataSetNamesStr:"",QCProcessEnum:null,IsImageConsistencyVerification:null,ReadingMode:null,ReadingType:null,IsReadingTaskViewInOrder:null,IsGlobalReading:null,IsArbitrationReading:null,IsClinicalReading:null,IsTrialProcessConfirmed:!1,TrialCriterionNamesStr:"",TrialCriterionIds:[],TrialCriterionNames:[]},rules:{ClinicalDataSetNamesStr:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}],ClinicalInformationTransmissionEnum:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}],QCProcessEnum:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}],IsImageConsistencyVerification:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}],ReadingMode:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}],TrialCriterionNamesStr:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}]},confirmVisible:!1,updateVisible:!1,signVisible:!1,btnLoading:!1,confirmData:[],loading:!1,signText:"",signCode:"",currentUser:zzSessionStorage.getItem("userName"),initialForm:{},isEdit:!1,TrialStatusStr:"",criterionListVisible:!1,criterionList:[],criterionListTotal:0,criterionSearchForm:p(),listLoading:!1,selectedCriterions:[],selectCriterionIds:[],criterionFormDg:{visible:!1,title:""},criterionForm:{Id:"",CriterionName:""},criterionQSVisible:!1,currentCriterionRow:{},clinicalDataList:[],clinicalDataVisible:!1,addOrEditCD:{visible:!1,title:""},currentRow:{},selectClinicalDataArr:[],selectedCD:[]}},methods:{handleSave:function(){var e=this;this.$refs["processConfigForm"].validate((function(t){t&&(e.loading=!0,Object(s["ab"])(e.form).then((function(t){e.loading=!1,t.IsSuccess&&(e.initialForm=Object(o["a"])({},e.form),e.$message.success(e.$t("common:message:savedSuccessfully")))})).catch((function(t){e.loading=!1})))}))},handleConfirm:function(){var e=this;this.$refs["processConfigForm"].validate((function(t){t&&(e.getConfigArr(),e.confirmVisible=!0)}))},handleUpdate:function(){var e=this;this.$refs["processConfigForm"].validate((function(t){t&&(e.getConfigArr(),e.updateVisible=!0)}))},handleConfirmConfigData:function(){var e=h["default"].processSignature.ProcessConfigConfirmation;this.signCode=e,this.initialForm=Object(o["a"])({},this.form),this.signVisible=!0},handleUpdateConfigData:function(){var e=h["default"].processSignature.ProcessConfigUpdates;this.signCode=e,this.initialForm=Object(o["a"])({},this.form),this.signVisible=!0},confirmConfigData:function(){var e=this;this.btnLoading=!0,Object(s["ab"])(this.form).then((function(t){e.btnLoading=!1,t.IsSuccess&&(e.initialForm=Object(o["a"])({},e.form),e.signVisible=!0)})).catch((function(t){e.btnLoading=!1}))},closeSignDialog:function(e,t){e?this.signConfirm(t):this.signVisible=!1},signConfirm:function(e){var t=this;this.loading=!0;var i={data:this.form,signInfo:e};Object(l["b"])(i).then((function(e){t.loading=!1,e.IsSuccess&&(t.$message.success(t.$t("common:message:savedSuccessfully")),t.form.IsTrialProcessConfirmed=!0,t.isEdit=!1,t.$refs["signForm"].btnLoading=!1,t.signVisible=!1,t.confirmVisible=!1,t.updateVisible=!1,t.$emit("refresh"))})).catch((function(e){t.loading=!1,t.$refs["signForm"].btnLoading=!1}))},getConfigArr:function(){this.confirmData=[{Name:this.$t("trials:processCfg:form:readingMode"),NewVal:this.$fd("ReadingMode",this.form.ReadingMode),OldVal:this.$fd("ReadingMode",this.initialForm.ReadingMode)},{Name:this.$t("trials:processCfg:form:criterion"),NewVal:this.form.TrialCriterionNames.join(", "),OldVal:this.initialForm.TrialCriterionNames.join(", ")},{Name:"临床数据采集",NewVal:this.$fd("ClinicalInformationTransmissionEnum",this.form.ClinicalInformationTransmissionEnum),OldVal:this.$fd("ClinicalInformationTransmissionEnum",this.initialForm.ClinicalInformationTransmissionEnum)},{Name:"临床数据配置",NewVal:this.form.ClinicalDataSetNames.join(", "),OldVal:this.initialForm.ClinicalDataSetNames.join(", ")},{Name:this.$t("trials:processCfg:form:qcProcess"),NewVal:this.$fd("QCProcessEnum",this.form.QCProcessEnum),OldVal:this.$fd("QCProcessEnum",this.initialForm.QCProcessEnum)},{Name:this.$t("trials:processCfg:form:conProcess"),NewVal:this.$fd("YesOrNo",this.form.IsImageConsistencyVerification),OldVal:this.$fd("YesOrNo",this.initialForm.IsImageConsistencyVerification)}]},handleReadingTypeChange:function(e){1===e?(this.form.IsArbitrationReading=!1,this.form.ArbitrationRule=3):this.form.IsArbitrationReading=2===e},initForm:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:for(i in this.loading=!0,this.form)t.hasOwnProperty(i)&&(this.form[i]=t[i]);this.form.TrialCriterionNamesStr=this.form.TrialCriterionNames.join(", "),this.form.ClinicalDataSetNamesStr=this.form.ClinicalDataSetNames.join(", "),this.initialForm=Object(o["a"])({},this.form),this.TrialStatusStr=t.TrialStatusStr,this.getCriterionList(),this.form.IsTrialProcessConfirmed||(this.isEdit=!0),this.loading=!1;case 9:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),getClinicalDataList:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return new Promise((function(i,n){e.listLoading=!0,Object(s["yd"])({trialId:e.form.TrialId}).then((function(n){e.clinicalDataList=n.Result,e.listLoading=!1,t&&e.$nextTick((function(){for(var t=function(t){n=e.clinicalDataList.findIndex((function(i){return i.Id===e.form.ClinicalDataTrialSetIds[t]})),n>-1&&e.$refs["clinicalData"].toggleRowSelection(e.clinicalDataList[n],!0)},i=0;i<e.form.ClinicalDataTrialSetIds.length;i++){var n;t(i)}})),i()})).catch((function(){e.listLoading=!1,n()}))}))},handleCDSelectChange:function(e){var t=[];this.selectedCD=[];for(var i=0;i<e.length;i++)t.push(e[i].Id),this.selectedCD.push(e[i].ClinicalDataSetName);this.selectClinicalDataArr=t},handleConfirmClinicalData:function(){this.form.ClinicalDataSetNames=this.selectedCD,this.form.ClinicalDataTrialSetIds=this.selectClinicalDataArr,this.form.ClinicalDataSetNamesStr=this.form.ClinicalDataSetNames.join(", "),this.clinicalDataVisible=!1},handleSetCD:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.clinicalDataVisible=!0,e.next=3,this.getClinicalDataList();case 3:this.$nextTick((function(){for(var e=function(e){n=t.clinicalDataList.findIndex((function(i){return i.Id===t.form.ClinicalDataTrialSetIds[e]})),n>-1&&t.$refs["clinicalData"].toggleRowSelection(t.clinicalDataList[n],!0)},i=0;i<t.form.ClinicalDataTrialSetIds.length;i++){var n;e(i)}}));case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),handleAddClinicalData:function(){this.currentRow={},this.addOrEditCD.title=this.$t("common:button:new"),this.addOrEditCD.visible=!0},handleEditClinicalData:function(e){this.currentRow=Object(o["a"])({},e),this.addOrEditCD.title=this.$t("common:button:edit"),this.addOrEditCD.visible=!0},handleDeleteClinicalData:function(e){var t=this;this.$confirm("是否确认删除?",{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.loading=!0,Object(s["fb"])(e.Id).then((function(i){if(t.loading=!1,i.IsSuccess){var n=t.selectedCD.indexOf(e.ClinicalDataSetName);n>-1&&t.selectedCD.splice(n,1);var a=t.selectClinicalDataArr.indexOf(e.Id);a>-1&&t.selectClinicalDataArr.splice(a,1);var r=t.form.ClinicalDataTrialSetIds.indexOf(e.Id);r>-1&&t.form.ClinicalDataTrialSetIds.splice(r,1);var o=t.form.ClinicalDataSetNames.indexOf(e.ClinicalDataSetName);o>-1&&(t.form.ClinicalDataSetNames.splice(o,1),t.form.ClinicalDataSetNamesStr=t.form.ClinicalDataSetNames.join(", ")),t.getClinicalDataList(!0),t.$message.success(t.$t("common:message:deletedSuccessfully"))}})).catch((function(){t.loading=!1}))}))},handleDownloadTpl:function(e){var t=this;this.listLoading=!0,Object(s["a"])(e.Id).then((function(e){t.listLoading=!1})).catch((function(){t.listLoading=!1}))},handleSelectable:function(e){return!!this.isEdit},getCriterionList:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.listLoading=!0,this.criterionSearchForm.TrialId=this.form.TrialId,Object(s["Wc"])(this.criterionSearchForm).then((function(i){e.criterionList=i.Result.CurrentPageData,e.criterionListTotal=i.Result.TotalCount,e.listLoading=!1,t&&e.$nextTick((function(){for(var t=function(t){n=e.criterionList.findIndex((function(i){return i.Id===e.form.TrialCriterionIds[t]})),n>-1&&e.$refs["criterionList"].toggleRowSelection(e.criterionList[n],!0)},i=0;i<e.form.TrialCriterionIds.length;i++){var n;t(i)}}))})).catch((function(){e.listLoading=!1}))},handleResetCriterion:function(){this.criterionSearchForm=p(),this.getCriterionList()},handleSearchCriterion:function(){this.getCriterionList()},handleSetCriterion:function(){var e=this;this.criterionListVisible=!0,this.$nextTick((function(){for(var t=function(t){n=e.criterionList.findIndex((function(i){return i.Id===e.form.TrialCriterionIds[t]})),n>-1&&e.$refs["criterionList"].toggleRowSelection(e.criterionList[n],!0)},i=0;i<e.form.TrialCriterionIds.length;i++){var n;t(i)}}))},selectCriterion:function(e,t){console.log(e);var i=Object.assign([],e.sort((function(e,t){return e.ShowOrder-t.ShowOrder})));this.selectedCriterions=i.map((function(e){return e.CriterionName})),this.selectCriterionIds=i.map((function(e){return e.Id}))},handleAddCriterion:function(){this.criterionForm.Id="",this.criterionForm.CriterionName="",this.criterionFormDg.title=this.$t("common:button:new"),this.criterionFormDg.visible=!0},handleEditCriterion:function(e){for(var t in this.criterionForm)e.hasOwnProperty(t)&&(this.criterionForm[t]=e[t]);this.criterionFormDg.title=this.$t("common:button:edit"),this.criterionFormDg.visible=!0},handleConfigCriterion:function(e){this.currentCriterionRow=Object(o["a"])({},e),this.criterionQSVisible=!0},handleDeleteCriterion:function(e){var t=this;this.$confirm(this.$t("trials:processCfg:message:delete"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.listLoading=!0,Object(s["rb"])(e.Id).then((function(i){if(t.listLoading=!1,i.IsSuccess){var n=t.selectedCriterions.indexOf(e.CriterionName);n>-1&&t.selectedCriterions.splice(n,1);var a=t.selectCriterionIds.indexOf(e.Id);a>-1&&t.selectCriterionIds.splice(a,1);var r=t.form.TrialCriterionIds.indexOf(e.Id);r>-1&&t.form.TrialCriterionIds.splice(r,1);var o=t.form.TrialCriterionNames.indexOf(e.CriterionName);o>-1&&(t.form.TrialCriterionNames.splice(o,1),t.form.TrialCriterionNamesStr=t.form.TrialCriterionNames.join(", ")),t.getCriterionList(!0),t.$message.success(t.$t("common:message:deletedSuccessfully"))}})).catch((function(){t.listLoading=!1}))}))},handleCancelSave:function(){this.$refs["criterionForm"].resetFields(),this.criterionFormDg.visible=!1},handleSaveCriterion:function(){var e=this;this.$refs["criterionForm"].validate((function(t){t&&(e.listLoading=!0,e.criterionForm.TrialId=e.form.TrialId,Object(s["u"])(e.criterionForm).then((function(t){e.listLoading=!1,e.$message.success(e.$t("common:message:savedSuccessfully")),e.criterionFormDg.visible=!1,e.getCriterionList()})).catch((function(){e.listLoading=!1})))}))},handleConfirmCriterion:function(){this.form.TrialCriterionNames=this.selectedCriterions,this.form.TrialCriterionIds=this.selectCriterionIds,this.form.TrialCriterionNamesStr=this.form.TrialCriterionNames.join(", "),this.criterionListVisible=!1,console.log(this.form)},changeCriterionStatus:function(e,t){var i=this,n="";e?(n=this.$t("trials:processCfg:message:update"),t.IsCompleteConfig=!1):(n=this.$t("trials:processCfg:message:update"),t.IsCompleteConfig=!0),this.$confirm(n,{distinguishCancelAndClose:!0,type:"warning"}).then((function(){i.listLoading=!0;var e={id:t.Id,isCompleteConfig:!t.IsCompleteConfig};Object(s["Xe"])(e).then((function(e){i.listLoading=!1,e.IsSuccess&&(i.$message.success(i.$t("common:message:savedSuccessfully")),i.getCriterionList())})).catch((function(){i.listLoading=!1}))})).catch((function(){}))},handleIsReadingTaskViewInOrderChange:function(e){!1===e&&(this.form.IsGlobalReading=!1,this.form.IsClinicalReading=!1)}}},g=m,v=(i("fc88"),i("2877")),b=Object(v["a"])(g,n,a,!1,null,null,null);t["default"]=b.exports},"65ed":function(e,t,i){var n=i("22d1"),a=i("84ec"),r=a.buildTransformer,o="___zrEVENTSAVED",s=[];function l(e,t,i,n,a){return c(s,t,n,a,!0)&&c(e,i,s[0],s[1])}function c(e,t,i,a,r){if(t.getBoundingClientRect&&n.domSupported&&!f(t)){var s=t[o]||(t[o]={}),l=u(t,s),c=d(l,s,r);if(c)return c(e,i,a),!0}return!1}function u(e,t){var i=t.markers;if(i)return i;i=t.markers=[];for(var n=["left","right"],a=["top","bottom"],r=0;r<4;r++){var o=document.createElement("div"),s=o.style,l=r%2,c=(r>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",a[c]+":0",n[1-l]+":auto",a[1-c]+":auto",""].join("!important;"),e.appendChild(o),i.push(o)}return i}function d(e,t,i){for(var n=i?"invTrans":"trans",a=t[n],o=t.srcCoords,s=!0,l=[],c=[],u=0;u<4;u++){var d=e[u].getBoundingClientRect(),f=2*u,h=d.left,p=d.top;l.push(h,p),s=s&&o&&h===o[f]&&p===o[f+1],c.push(e[u].offsetLeft,e[u].offsetTop)}return s&&a?a:(t.srcCoords=l,t[n]=i?r(c,l):r(l,c))}function f(e){return"CANVAS"===e.nodeName.toUpperCase()}t.transformLocalCoord=l,t.transformCoordWithViewport=c,t.isCanvasEl=f},6610:function(e,t,i){},6613:function(e,t,i){var n=i("5a43");function a(e,t){if(e){if("string"===typeof e)return n(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?n(e,t):void 0}}e.exports=a,e.exports.__esModule=!0,e.exports["default"]=e.exports},6619:function(e,t,i){},6634:function(e,t,i){"use strict";i("9214")},6679:function(e,t,i){var n=i("4e08"),a=(n.__DEV__,i("3eba")),r=i("cd33"),o=a.extendComponentView({type:"axis",_axisPointer:null,axisPointerClass:null,render:function(e,t,i,n){this.axisPointerClass&&r.fixValue(e),o.superApply(this,"render",arguments),s(this,e,t,i,n,!0)},updateAxisPointer:function(e,t,i,n,a){s(this,e,t,i,n,!1)},remove:function(e,t){var i=this._axisPointer;i&&i.remove(t),o.superApply(this,"remove",arguments)},dispose:function(e,t){l(this,t),o.superApply(this,"dispose",arguments)}});function s(e,t,i,n,a,s){var c=o.getAxisPointerClass(e.axisPointerClass);if(c){var u=r.getAxisPointerModel(t);u?(e._axisPointer||(e._axisPointer=new c)).render(t,u,n,s):l(e,n)}}function l(e,t,i){var n=e._axisPointer;n&&n.dispose(t,i),e._axisPointer=null}var c=[];o.registerAxisPointerClass=function(e,t){c[e]=t},o.getAxisPointerClass=function(e){return e&&c[e]};var u=o;e.exports=u},"667d":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"sysTemplateFrom",staticClass:"upload-temporary-file",attrs:{model:e.form,"label-width":"90px",size:"small",rules:e.rules}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:"Code",prop:"Code"}},[i("el-input",{model:{value:e.form.Code,callback:function(t){e.$set(e.form,"Code",t)},expression:"form.Code"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"业务场景: ",prop:"BusinessScenarioEnum"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{size:"small",filterable:""},model:{value:e.form.BusinessScenarioEnum,callback:function(t){e.$set(e.form,"BusinessScenarioEnum",t)},expression:"form.BusinessScenarioEnum"}},e._l(e.$d.Common_File_BusinessScenario,(function(e){return i("el-option",{key:e.id,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"文件: "}},[i("div",{staticClass:"upload-container"},[i("el-upload",{staticClass:"upload-demo",attrs:{action:"",accept:".xls,.xlsx,.doc,.docx","before-upload":e.beforeUpload,"http-request":e.handleUploadFile,"on-preview":e.handlePreview,"on-remove":e.handleRemoveFile,"show-file-list":!0,"file-list":e.fileList,limit:1,"on-exceed":e.handleExceed,disabled:!e.form.FileTypeEnum||!e.form.BusinessScenarioEnum}},[i("el-button",{attrs:{size:"small",type:"primary",disabled:!e.form.FileTypeEnum||!e.form.BusinessScenarioEnum,loading:e.btnLoading}},[e._v("Select")]),e._v(" "),i("span",{staticClass:"el-upload__tip",staticStyle:{"margin-left":"10px"},attrs:{slot:"tip"},slot:"tip"},[e._v("\n (must be in xlsx/xls/doc/docx format)\n ")])],1)],1)]),e._v(" "),i("el-form-item",{attrs:{label:"阅片标准: ",prop:"CriterionTypeEnum"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{size:"small",filterable:""},model:{value:e.form.CriterionTypeEnum,callback:function(t){e.$set(e.form,"CriterionTypeEnum",t)},expression:"form.CriterionTypeEnum"}},e._l(e.$d.CriterionType,(function(e){return i("el-option",{key:e.id,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),""!==e.form.Id?i("el-form-item",{attrs:{label:"是否废除: "}},[i("el-radio-group",{model:{value:e.form.IsDeleted,callback:function(t){e.$set(e.form,"IsDeleted",t)},expression:"form.IsDeleted"}},[i("el-radio",{attrs:{label:!0}},[e._v("是")]),e._v(" "),i("el-radio",{attrs:{label:!1}},[e._v("否")])],1)],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:"描述"}},[i("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"请输入内容"},model:{value:e.form.Description,callback:function(t){e.$set(e.form,"Description",t)},expression:"form.Description"}})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{size:"small",type:"primary",disabled:!e.form.FileTypeEnum||!e.form.BusinessScenarioEnum,loading:e.saveBtnLoading},on:{click:e.handleSave}},[e._v("Save")])],1)],1)])},a=[],r=(i("7f7f"),i("db72")),o=(i("ac6a"),i("456d"),i("96cf"),i("3b8d")),s=i("e56e"),l=i("86a6"),c={name:"TemplateForm",props:{data:{type:Object,default:function(){return{}}}},data:function(){return{form:{Id:"",Code:"",FileTypeEnum:null,BusinessScenarioEnum:null,CriterionTypeEnum:null,Name:"",Path:"",Description:"",IsDeleted:!1},rules:{Code:[{required:!0,message:"Please specify",trigger:["blur"]}],CriterionTypeEnum:[{required:!0,message:"Please select",trigger:["blur"]}],BusinessScenarioEnum:[{required:!0,message:"Please select",trigger:["blur"]}]},fileList:[],btnLoading:!1,saveBtnLoading:!1,loading:!1,dictionaryList:{}}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getDicData();case 2:if(Object.keys(this.data).length>0)for(t in this.data.Path&&(this.fileList=[{name:this.data.Name,path:this.data.Path,type:this.data.Type}]),this.form)this.data.hasOwnProperty(t)&&(this.form[t]=this.data[t]);case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getDicData:function(){var e=this;this.loading=!0,Object(l["c"])(["Common_File_ModuleType","Common_File_Type"]).then((function(t){e.dictionaryList=Object(r["a"])({},t.Result),e.loading=!1})).catch((function(){e.loading=!1}))},beforeUpload:function(e){return this.checkFileSuffix(e.name)?(this.fileList=[],!0):(this.$message.error("必须是word/excel格式"),!1)},handleUploadFile:function(e){var t=this;this.btnLoading=!0,Object(s["Pb"])(e.file).then((function(i){if(t.btnLoading=!1,i.IsSuccess){t.form.Path=i.Result.FilePath,t.form.Name=e.file.name;var n={name:t.form.Name,path:t.form.Path};t.fileList.push(n)}})).catch((function(){t.btnLoading=!1}))},handleSave:function(){var e=this;this.$refs.sysTemplateFrom.validate((function(t){t&&(e.form.Name?(e.saveBtnLoading=!0,Object(s["e"])(e.form).then((function(t){e.saveBtnLoading=!1,e.$emit("closeDialog"),e.$emit("getList"),e.$message.success("Uploaded successfully")})).catch((function(){e.saveBtnLoading=!1}))):e.$message.error("Please select file."))}))},handleRemoveFile:function(){this.fileList=[],this.form.Path="",this.form.Name=""},handlePreview:function(e){e.fullPath&&window.open(e.fullPath,"_blank")},handleExceed:function(e,t){this.$message.warning("Upload is currently limited to 1 file")},checkFileSuffix:function(e){var t=["xls","xlsx","doc","docx"],i=e.substring(e.lastIndexOf(".")+1).toLocaleLowerCase();return-1!==t.indexOf(i)}}},u=c,d=(i("d01d"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},6680:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{staticClass:"search-form",staticStyle:{display:"flex","justify-content":"space-between"}},[i("div"),e._v(" "),i("div",[i("el-button",{staticStyle:{"margin-right":"10px"},attrs:{size:"mini",type:"primary"},on:{click:e.handleAdd}},[e._v("\n 配置\n ")])],1)]),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:0},expression:"{bottomOffset:0}"}],staticStyle:{width:"100%"},attrs:{height:"100",data:e.list,stripe:""}},[i("el-table-column",{attrs:{prop:"",label:"序号",width:"50"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.$index+1)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ValueCN",label:"中文值","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Value",label:"英文值","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Description",label:"描述","show-overflow-tooltip":""}})],1),e._v(" "),e.config.visible?i("el-dialog",{attrs:{visible:e.config.visible,"close-on-click-modal":!1,title:e.config.title,width:"90%","append-to-body":""},on:{"update:visible":function(t){return e.$set(e.config,"visible",t)}}},[i("div",[i("div",{staticStyle:{"text-align":"right"}},[i("el-button",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{size:"mini",type:"primary"},on:{click:e.handleSave}},[e._v("\n 保存\n ")])],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:100},expression:"{bottomOffset:100}"}],ref:"multipleTable",attrs:{height:"100",data:e.$d[e.parentCode],stripe:""},on:{"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),i("el-table-column",{attrs:{prop:"raw.ValueCN",label:"中文值","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"raw.Value",label:"英文值","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"raw.Description",label:"描述","show-overflow-tooltip":""}})],1)],1)]):e._e()],1)},a=[],r=(i("7514"),i("ac6a"),i("e56e")),o={props:{criterionId:{type:String,required:!0},parentCode:{type:String,required:!0}},data:function(){return{list:[],total:0,loading:!1,rowData:{},activeName:"0",addOrEdit:{visible:!1,title:""},preview:{visible:!1,title:"eCRF预览"},config:{visible:!1,title:"标准字典值"},selectedList:[]}},mounted:function(){this.getList(),console.log(this.$d[this.parentCode])},methods:{toggleSelection:function(e){var t=this;console.log(this.$refs.multipleTable),e?e.forEach((function(e){t.$refs.multipleTable.toggleRowSelection(e)})):this.$refs.multipleTable.clearSelection()},handleSelectionChange:function(e){this.selectedList=e},getList:function(){var e=this;this.loading=!0,Object(r["T"])({CriterionId:this.criterionId,ParentCode:this.parentCode}).then((function(t){e.loading=!1,e.list=t.Result}))},handleAdd:function(){var e=this;this.config.visible=!0,this.$nextTick((function(){var t=e.$d[e.parentCode].filter((function(t){return!!e.list.find((function(e){return e.DictionaryId===t.id}))}));e.toggleSelection(t)}))},handleSave:function(){var e=this;this.loading=!0;var t={CriterionId:this.criterionId,ParentCode:this.parentCode,DictionaryIds:this.selectedList.map((function(e){return e.id})),isSystemCriterion:!0};Object(r["Ib"])(t).then((function(t){e.loading=!1,e.$message.success("保存成功"),e.config.visible=!1,e.selectedList=[],e.getList(),e.$emit("getList")})).catch((function(){}))},handleDelete:function(){}}},s=o,l=(i("fcf0"),i("2877")),c=Object(l["a"])(s,n,a,!1,null,"13df9284",null);t["default"]=c.exports},6697:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"taskAllocationRuleDataForm",attrs:{model:e.form,size:"small"}},[i("div",[1===e.readingType?i("div",{staticStyle:{"line-height":"32px","margin-bottom":"10px"}},[e._v("\n 阅片人\n "),1===e.SubjectAssignSelectList.length?i("el-select",{attrs:{clearable:"",size:"mini"},on:{change:function(t){return e.$forceUpdate()}},model:{value:e.form.R0,callback:function(t){e.$set(e.form,"R0",t)},expression:"form.R0"}},e._l(e.DoctorSelectList.R1,(function(t){return e.form.O1!==t.DoctorUserId&&e.form.AD!==t.DoctorUserId&&e.form.R2!==t.DoctorUserId?i("el-option",{key:"R1"+t.DoctorUserId,attrs:{label:t.UserName+"("+t.FullName+")",value:t.DoctorUserId}}):e._e()})),1):i("el-select",{attrs:{clearable:"",disabled:!!e.q.find((function(e){return 0===e.ArmEnum})),size:"mini"},on:{change:function(t){return e.$forceUpdate()}},model:{value:e.form.R0,callback:function(t){e.$set(e.form,"R0",t)},expression:"form.R0"}},e._l(e.DoctorSelectList.R1,(function(t){return e.form.O1!==t.DoctorUserId&&e.form.AD!==t.DoctorUserId&&e.form.R2!==t.DoctorUserId&&!e.q.find((function(e){return e.DoctorUser.UserId===t.DoctorUserId}))||e.q.find((function(e){return 0===e.ArmEnum}))?i("el-option",{key:"R1"+t.DoctorUserId,attrs:{label:t.UserName+"("+t.FullName+")",value:t.DoctorUserId}}):e._e()})),1)],1):e._e(),e._v(" "),2===e.readingType?i("div",{staticStyle:{"line-height":"32px","margin-bottom":"10px"}},[e._v("\n 阅片人\n "),i("el-select",{attrs:{clearable:"",disabled:!!e.q.find((function(e){return 1===e.ArmEnum})),size:"mini"},on:{change:function(t){return e.$forceUpdate()}},model:{value:e.form.R1,callback:function(t){e.$set(e.form,"R1",t)},expression:"form.R1"}},e._l(e.DoctorSelectList.R1,(function(t){return e.form.O1!==t.DoctorUserId&&e.form.AD!==t.DoctorUserId&&e.form.R2!==t.DoctorUserId&&!e.q.find((function(e){return e.DoctorUser.UserId===t.DoctorUserId}))||e.q.find((function(e){return 1===e.ArmEnum}))?i("el-option",{key:"R1"+t.DoctorUserId,attrs:{label:t.UserName+"("+t.FullName+")",value:t.DoctorUserId}}):e._e()})),1)],1):e._e(),e._v(" "),2===e.readingType?i("div",{staticStyle:{"line-height":"32px","margin-bottom":"10px"}},[e._v("\n "+e._s(e.$t("trials:reviewAssign:assignReader:title:r2"))+"\n "),i("el-select",{attrs:{clearable:"",disabled:!!e.q.find((function(e){return 2===e.ArmEnum})),size:"mini"},on:{change:function(t){return e.$forceUpdate()}},model:{value:e.form.R2,callback:function(t){e.$set(e.form,"R2",t)},expression:"form.R2"}},e._l(e.DoctorSelectList.R2,(function(t){return e.form.O1!==t.DoctorUserId&&e.form.R1!==t.DoctorUserId&&e.form.AD!==t.DoctorUserId&&!e.q.find((function(e){return e.DoctorUser.UserId===t.DoctorUserId}))||e.q.find((function(e){return 2===e.ArmEnum}))?i("el-option",{key:"R2"+t.DoctorUserId,attrs:{label:t.UserName+"("+t.FullName+")",value:t.DoctorUserId}}):e._e()})),1)],1):e._e(),e._v(" "),e.OtherInfo&&e.OtherInfo.IsArbitrationReading&&2===e.readingType?i("div",{staticStyle:{"line-height":"32px","margin-bottom":"10px"}},[e._v("\n "+e._s(e.$t("trials:reviewAssign:assignReader:title:ad"))+"\n "),i("el-select",{attrs:{clearable:"",disabled:!!e.q.find((function(e){return 3===e.ArmEnum})),size:"mini"},on:{change:function(t){return e.$forceUpdate()}},model:{value:e.form.AD,callback:function(t){e.$set(e.form,"AD",t)},expression:"form.AD"}},e._l(e.DoctorSelectList.AD,(function(t){return e.form.O1!==t.DoctorUserId&&e.form.R1!==t.DoctorUserId&&e.form.R2!==t.DoctorUserId&&!e.q.find((function(e){return e.DoctorUser.UserId===t.DoctorUserId}))||e.q.find((function(e){return 3===e.ArmEnum}))?i("el-option",{key:"AD"+t.DoctorUserId,attrs:{label:t.UserName+"("+t.FullName+")",value:t.DoctorUserId}}):e._e()})),1)],1):e._e(),e._v(" "),e.OtherInfo&&e.OtherInfo.IsOncologyReading?i("div",{staticStyle:{"line-height":"32px","margin-bottom":"10px"}},[e._v("\n "+e._s(e.$t("trials:reviewAssign:assignReader:title:o1"))+"\n "),i("el-select",{attrs:{clearable:"",disabled:!!e.q.find((function(e){return 4===e.ArmEnum})),size:"mini"},on:{change:function(t){return e.$forceUpdate()}},model:{value:e.form.O1,callback:function(t){e.$set(e.form,"O1",t)},expression:"form.O1"}},e._l(e.DoctorSelectList.O1,(function(t){return e.form.AD!==t.DoctorUserId&&e.form.R1!==t.DoctorUserId&&e.form.R2!==t.DoctorUserId&&!e.q.find((function(e){return e.DoctorUser.UserId===t.DoctorUserId}))||e.q.find((function(e){return 4===e.ArmEnum}))?i("el-option",{key:"O1"+t.DoctorUserId,attrs:{label:t.UserName+"("+t.FullName+")",value:t.DoctorUserId}}):e._e()})),1)],1):e._e()]),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{disabled:e.loading,size:"small",type:"primary"},on:{click:e.close}},[e._v("\n "+e._s(e.$t("common:button:close"))+"\n ")]),e._v(" "),i("el-button",{staticStyle:{"margin-top":"10px"},attrs:{size:"small",type:"primary",loading:e.loading},on:{click:e.save}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])},a=[],r=(i("7514"),i("5df3"),i("ac6a"),i("456d"),i("958c")),o={name:"ManualAllocationTable",props:{TrialReadingCriterionId:{type:String,default:function(){return[]}},data:{type:Object,default:function(){return{}}},SubjectAssignSelectList:{type:Array,default:function(){return[]}}},data:function(){return{TrialId:this.$route.query.trialId,form:{R0:null,R1:null,R2:null,AD:null,O1:null},DoctorSelectList:{R1:[],R2:[],AD:[],O1:[]},list:[],loading:!1,btnLoading:!1,q:[],OtherInfo:null,readingType:null,isShowInfo:{}}},mounted:function(){var e=this;this.TrialId=this.$route.query.trialId,this.getDoctorSubjectStat();var t=[];t.push(this.getDoctorSelectList(1)),t.push(this.getDoctorSelectList(2)),t.push(this.getDoctorSelectList(4)),t.push(this.getDoctorSelectList(5));var i=[];Object.keys(this.data).length&&this.data.SubjectId||this.SubjectAssignSelectList.forEach((function(t){t.NowDoctorUserList.forEach((function(e){i.push(e)})),e.q=i})),console.log(i),Promise.all(t).then((function(){if(Object.keys(e.data).length&&e.data.SubjectId)e.form.R0=e.findDoctorUser(e.data.NowDoctorUserList,0).DoctorUser?e.findDoctorUser(e.data.NowDoctorUserList,0).DoctorUser.UserId:null,e.form.R1=e.findDoctorUser(e.data.NowDoctorUserList,1).DoctorUser?e.findDoctorUser(e.data.NowDoctorUserList,1).DoctorUser.UserId:null,e.form.R2=e.findDoctorUser(e.data.NowDoctorUserList,2).DoctorUser?e.findDoctorUser(e.data.NowDoctorUserList,2).DoctorUser.UserId:null,e.form.AD=e.findDoctorUser(e.data.NowDoctorUserList,3).DoctorUser?e.findDoctorUser(e.data.NowDoctorUserList,3).DoctorUser.UserId:null,e.form.O1=e.findDoctorUser(e.data.NowDoctorUserList,4).DoctorUser?e.findDoctorUser(e.data.NowDoctorUserList,4).DoctorUser.UserId:null,e.data.NowDoctorUserList.forEach((function(e){i.push(e)})),e.q=i;else{var t={R0:[],R1:[],R2:[],AD:[],O1:[]};e.SubjectAssignSelectList.forEach((function(e){e.NowDoctorUserList.forEach((function(e){0===e.ArmEnum&&t.R0.push(e),1===e.ArmEnum&&t.R1.push(e),2===e.ArmEnum&&t.R2.push(e),3===e.ArmEnum&&t.AD.push(e),4===e.ArmEnum&&t.O1.push(e)}))}));var n={};for(var a in t){var r=t[a];n[a]=e.checkArrayObjectValueRepeat(r,"DoctorUserId")}e.isShowInfo=n,n.R0||(e.form.R0=e.findDoctorUser(e.SubjectAssignSelectList[0].NowDoctorUserList,0).DoctorUser?e.findDoctorUser(e.SubjectAssignSelectList[0].NowDoctorUserList,0).DoctorUser.UserId:null),n.R1||(e.form.R1=e.findDoctorUser(e.SubjectAssignSelectList[0].NowDoctorUserList,1).DoctorUser?e.findDoctorUser(e.SubjectAssignSelectList[0].NowDoctorUserList,1).DoctorUser.UserId:null),n.R2||(e.form.R2=e.findDoctorUser(e.SubjectAssignSelectList[0].NowDoctorUserList,2).DoctorUser?e.findDoctorUser(e.SubjectAssignSelectList[0].NowDoctorUserList,2).DoctorUser.UserId:null),n.AD||(e.form.AD=e.findDoctorUser(e.SubjectAssignSelectList[0].NowDoctorUserList,3).DoctorUser?e.findDoctorUser(e.SubjectAssignSelectList[0].NowDoctorUserList,3).DoctorUser.UserId:null),n.O1||(e.form.O1=e.findDoctorUser(e.SubjectAssignSelectList[0].NowDoctorUserList,4).DoctorUser?e.findDoctorUser(e.SubjectAssignSelectList[0].NowDoctorUserList,4).DoctorUser.UserId:null)}}))},methods:{checkArrayObjectValueRepeat:function(e,t){console.log(e);var i=null,n=!1;return console.log(this.SubjectAssignSelectList.length),1!==this.SubjectAssignSelectList.length&&(e.forEach((function(a,r){0===r&&(i=a[t]),a[t]!==i&&(n=!0),1===e.length&&(n=!0)})),n)},findDoctorUser:function(e,t){var i;return e.length>0&&(i=e.find((function(e){return e.ArmEnum===t}))?e.find((function(e){return e.ArmEnum===t})):{DoctorUser:null}),i},getDoctorSelectList:function(e){var t=this;return new Promise((function(i){Object(r["x"])({TrialId:t.$route.query.trialId,ReadingCategory:e,TrialReadingCriterionId:t.TrialReadingCriterionId}).then((function(n){switch(e){case 1:t.$set(t.DoctorSelectList,"R1",n.Result);break;case 2:t.$set(t.DoctorSelectList,"R2",n.Result);break;case 4:t.$set(t.DoctorSelectList,"AD",n.Result);break;case 5:t.$set(t.DoctorSelectList,"O1",n.Result);break}i()}))}))},getDoctorSubjectStat:function(){var e=this;this.loading=!0,Object(r["z"])(this.TrialId,this.TrialReadingCriterionId).then((function(t){e.readingType=t.OtherInfo.ReadingType,e.list=t.Result,e.OtherInfo=t.OtherInfo,e.loading=!1})).catch((function(){e.loading=!1}))},save:function(){var e=this,t=[];console.log(this.form),this.form.R0&&t.push({ArmEnum:0,DoctorUserId:this.form.R0}),this.form.R1&&t.push({ArmEnum:1,DoctorUserId:this.form.R1}),this.form.R2&&t.push({ArmEnum:2,DoctorUserId:this.form.R2}),this.form.AD&&t.push({ArmEnum:3,DoctorUserId:this.form.AD}),this.form.O1&&t.push({ArmEnum:4,DoctorUserId:this.form.O1});var i={TrialId:this.TrialId,TrialReadingCriterionId:this.TrialReadingCriterionId,SubjectIdList:this.SubjectAssignSelectList.map((function(e){return e.SubjectId})),DoctorArmList:t};this.loading=!0,Object(r["j"])(i).then((function(t){e.$message.success(e.$t("common:message:savedSuccessfully")),e.loading=!1,e.$emit("getList"),e.close()})).catch((function(){e.loading=!1}))},close:function(){this.$emit("close")}}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,"60d8802a",null);t["default"]=c.exports},6699:function(e,t,i){"use strict";i("2e08c")},"66a4":function(e,t,i){var n=i("6d8b");function a(e){var t=e&&e.timeline;n.isArray(t)||(t=t?[t]:[]),n.each(t,(function(e){e&&r(e)}))}function r(e){var t=e.type,i={number:"value",time:"time"};if(i[t]&&(e.axisType=i[t],delete e.type),o(e),s(e,"controlPosition")){var a=e.controlStyle||(e.controlStyle={});s(a,"position")||(a.position=e.controlPosition),"none"!==a.position||s(a,"show")||(a.show=!1,delete a.position),delete e.controlPosition}n.each(e.data||[],(function(e){n.isObject(e)&&!n.isArray(e)&&(!s(e,"value")&&s(e,"name")&&(e.value=e.name),o(e))}))}function o(e){var t=e.itemStyle||(e.itemStyle={}),i=t.emphasis||(t.emphasis={}),a=e.label||e.label||{},r=a.normal||(a.normal={}),o={normal:1,emphasis:1};n.each(a,(function(e,t){o[t]||s(r,t)||(r[t]=e)})),i.label&&!s(a,"emphasis")&&(a.emphasis=i.label,delete i.label)}function s(e,t){return e.hasOwnProperty(t)}e.exports=a},"66ad":function(e,t,i){},"66fc":function(e,t,i){var n=i("6d8b"),a=i("84ce"),r=function(e,t,i,n,r){a.call(this,e,t,i),this.type=n||"value",this.position=r||"bottom",this.orient=null};r.prototype={constructor:r,model:null,isHorizontal:function(){var e=this.position;return"top"===e||"bottom"===e},pointToData:function(e,t){return this.coordinateSystem.pointToData(e,t)[0]},toGlobalCoord:null,toLocalCoord:null},n.inherits(r,a);var o=r;e.exports=o},"670a":function(e,t,i){},"670b":function(e,t,i){},"673a":function(e,t,i){"use strict";i("247f")},"675a":function(e,t){function i(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.eachSeriesByType("graph",(function(e){var i=e.getCategoriesData(),n=e.getGraph(),a=n.data,r=i.mapArray(i.getName);a.filterSelf((function(e){var i=a.getItemModel(e),n=i.getShallow("category");if(null!=n){"number"===typeof n&&(n=r[n]);for(var o=0;o<t.length;o++)if(!t[o].isSelected(n))return!1}return!0}))}),this)}e.exports=i},"675c":function(e,t,i){var n=i("3eba");i("4e10"),i("a666"),i("49e8"),i("eeea");var a=i("cee1"),r=i("54fb"),o=i("f6ed"),s=i("9442"),l=i("7782");n.registerLayout(a),n.registerVisual(r),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,o),n.registerPreprocessor(s),l("map",[{type:"mapToggleSelect",event:"mapselectchanged",method:"toggleSelected"},{type:"mapSelect",event:"mapselected",method:"select"},{type:"mapUnSelect",event:"mapunselected",method:"unSelect"}])},"676b":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.questions.length>0?i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"globalReviewForm",attrs:{model:e.form,size:"small","label-width":"150"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:"是否同意访视点计数"}},[i("el-radio-group",{on:{change:function(t){return e.handleAgreeOrNotChange(e.agreeOrNot.GlobalAnswerType)}},model:{value:e.form[e.agreeOrNot.GlobalAnswerType],callback:function(t){e.$set(e.form,e.agreeOrNot.GlobalAnswerType,t)},expression:"form[agreeOrNot.GlobalAnswerType]"}},[i("el-radio",{attrs:{label:"1"}},[e._v(e._s(e.$fd("ReadingYesOrNo",1)))]),e._v(" "),i("el-radio",{attrs:{label:"0"}},[e._v(e._s(e.$fd("ReadingYesOrNo",0)))])],1)],1),e._v(" "),e._l(e.questions,(function(t){return i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.isBaseline&&1===t.GlobalReadingShowType||!e.isBaseline&&2===t.GlobalReadingShowType||0===t.GlobalReadingShowType,expression:"((isBaseline && qs.GlobalReadingShowType === 1) || (!isBaseline && qs.GlobalReadingShowType === 2 ) || qs.GlobalReadingShowType === 0)"}],key:""+t.QuestionId+t.QuestionName,attrs:{label:1===t.GlobalAnswerType?"访视阅片备注":t.QuestionName,prop:t.QuestionId?t.QuestionId:String(t.GlobalAnswerType),rules:[{required:(1!==parseInt(e.form[e.agreeOrNot.GlobalAnswerType])||1!==t.GlobalAnswerType)&&(e.isBaseline&&1===t.GlobalReadingShowType||!e.isBaseline&&2===t.GlobalReadingShowType||0===t.GlobalReadingShowType),message:"请注明",trigger:["change"]}]}},[0===t.GlobalAnswerType?["select"===t.Type?i("el-select",{staticStyle:{width:"100%"},model:{value:e.form[t.QuestionId?t.QuestionId:t.GlobalAnswerType],callback:function(i){e.$set(e.form,t.QuestionId?t.QuestionId:t.GlobalAnswerType,i)},expression:"form[!qs.QuestionId?qs.GlobalAnswerType:qs.QuestionId]"}},[t.TypeValue?e._l(t.TypeValue.split("|"),(function(n){return i("el-option",{key:n,attrs:{label:n,value:n,disabled:e.getBeforeAnswer(t.QuestionName)===n}})})):e._e(),e._v(" "),t.DictionaryCode?e._l(e.$d[t.DictionaryCode],(function(n){return i("el-option",{key:n.id,attrs:{value:n.value,label:n.label,disabled:e.getBeforeAnswer(t.QuestionName)===n.value}})})):e._e()],2):e._e(),e._v(" "),"radio"===t.Type?i("el-radio-group",{attrs:{disabled:1===parseInt(e.form[e.agreeOrNot.GlobalAnswerType])},model:{value:e.form[t.QuestionId?t.QuestionId:t.GlobalAnswerType],callback:function(i){e.$set(e.form,t.QuestionId?t.QuestionId:t.GlobalAnswerType,i)},expression:"form[!qs.QuestionId?qs.GlobalAnswerType:qs.QuestionId]"}},e._l(t.TypeValue.split("|"),(function(n){return i("el-radio",{key:n,attrs:{label:n,disabled:e.getBeforeAnswer(t.QuestionName)===n}})})),1):e._e(),e._v(" "),"calculation"===t.Type?[21===t.QuestionType?i("el-select",{staticStyle:{width:"100%"},attrs:{disabled:"1"===e.form[e.agreeOrNot.GlobalAnswerType]},model:{value:e.form[t.QuestionId?t.QuestionId:t.GlobalAnswerType],callback:function(i){e.$set(e.form,t.QuestionId?t.QuestionId:t.GlobalAnswerType,i)},expression:"form[!qs.QuestionId?qs.GlobalAnswerType:qs.QuestionId]"}},e._l(e.$d[t.DictionaryCode],(function(n){return i("el-option",{directives:[{name:"show",rawName:"v-show",value:5!==n.value,expression:"item.value !== 5"}],key:n.id,attrs:{disabled:e.getBeforeAnswer(t.QuestionName)===n.value,value:n.value,label:n.label}},[e._v(e._s(n.label))])})),1):""===t.DictionaryCode&&null===t.ValueType?i("el-input",{staticStyle:{width:"100%"},model:{value:e.form[t.QuestionId?t.QuestionId:t.GlobalAnswerType],callback:function(i){e.$set(e.form,t.QuestionId?t.QuestionId:t.GlobalAnswerType,i)},expression:"form[!qs.QuestionId?qs.GlobalAnswerType:qs.QuestionId]"}}):t.DictionaryCode?i("el-select",{staticStyle:{width:"100%"},model:{value:e.form[t.QuestionId?t.QuestionId:t.GlobalAnswerType],callback:function(i){e.$set(e.form,t.QuestionId?t.QuestionId:t.GlobalAnswerType,i)},expression:"form[!qs.QuestionId?qs.GlobalAnswerType:qs.QuestionId]"}},e._l(e.$d[t.DictionaryCode],(function(n){return i("el-option",{key:n.id,attrs:{disabled:e.getBeforeAnswer(t.QuestionName)===n.value,value:n.value,label:n.label}},[e._v(e._s(n.label))])})),1):null!==t.ValueType?i("el-input-number",{staticStyle:{width:"100%"},model:{value:e.form[t.QuestionId?t.QuestionId:t.GlobalAnswerType],callback:function(i){e.$set(e.form,t.QuestionId?t.QuestionId:t.GlobalAnswerType,i)},expression:"form[!qs.QuestionId?qs.GlobalAnswerType:qs.QuestionId]"}}):e._e()]:e._e()]:e._e(),e._v(" "),3===t.QuestionType?[i("el-select",{staticStyle:{width:"100%"},attrs:{disabled:e.form[e.agreeOrNot.GlobalAnswerType]},model:{value:e.form[t.QuestionId?t.QuestionId:t.GlobalAnswerType],callback:function(i){e.$set(e.form,t.QuestionId?t.QuestionId:t.GlobalAnswerType,i)},expression:"form[!qs.QuestionId?qs.GlobalAnswerType:qs.QuestionId]"}},e._l(e.assessTypeList,(function(n){return i("el-option",{key:n.Code,attrs:{label:n.ValueCN,value:n.Code,disabled:e.getBeforeAnswer(t.QuestionName)===n.Code}})})),1)]:e._e(),e._v(" "),1===t.GlobalAnswerType?i("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4}},model:{value:e.form[t.QuestionId?t.QuestionId:t.GlobalAnswerType],callback:function(i){e.$set(e.form,t.QuestionId?t.QuestionId:t.GlobalAnswerType,i)},expression:"form[!qs.QuestionId?qs.GlobalAnswerType:qs.QuestionId]"}}):e._e()],2)}))],2),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleClose}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)]):e._e()},a=[],r=(i("20d6"),i("3b2b"),i("ac6a"),i("3e42")),o={name:"EditGlobalForm",props:{globalTaskId:{type:String,required:!0},visitTaskId:{type:String,required:!0},questionList:{type:Array,default:function(){return[]}},assessTypeList:{type:Array,default:function(){return[]}},subjectId:{type:String,required:!0},trialId:{type:String,required:!0},beforeQuestionList:{type:Array,default:function(){return[]}},globalUpdateType:{type:Array,default:function(){return[]}},agreeOrNot:{type:Object,default:function(){return{}}},isBaseline:{type:Boolean,required:!0}},data:function(){return{questions:[],form:{},loading:!1,agreeOrNotOld:null}},mounted:function(){var e=this;this.questionList.map((function(t){var i="";i=t.DictionaryCode?t.Answer?parseInt(t.Answer):null:t.Answer,t.QuestionId?e.$set(e.form,t.QuestionId,i):e.$set(e.form,t.GlobalAnswerType,i)})),this.questions=this.questionList,this.questions.forEach((function(t){21===t.QuestionType&&(e.agreeOrNotOld=parseInt(t.Answer))})),this.$set(this.form,this.agreeOrNot.GlobalAnswerType,this.agreeOrNot.Answer)},methods:{handleSave:function(){var e=this;this.$refs.globalReviewForm.validate((function(t){if(t){e.loading=!0;var i=[],n=new RegExp(/^[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}$/);for(var a in e.form)n.test(a)?i.push({questionId:a,visitTaskId:e.visitTaskId,answer:e.form[a]}):i.push({questionId:"",visitTaskId:e.visitTaskId,globalAnswerType:parseInt(a),answer:e.form[a]});var o={globalTaskId:e.globalTaskId,subjectId:e.subjectId,trialId:e.trialId,questionList:i};Object(r["xe"])(o).then((function(t){e.loading=!1,e.$message.success(e.$t("common:message:savedSuccessfully")),e.$emit("getList"),e.$emit("close")})).catch((function(){e.loading=!1}))}}))},handleClose:function(){this.$emit("close")},handleAgreeOrNotChange:function(e){var t=this,i=parseInt(this.form[e]);1===i&&this.questions.forEach((function(e){console.log(t.agreeOrNotOld),21===e.QuestionType&&t.$set(t.form,e.QuestionId?e.QuestionId:e.GlobalAnswerType,t.agreeOrNotOld)}))},getBeforeAnswer:function(e){var t=this.beforeQuestionList.findIndex((function(t){return t.QuestionName===e}));if(t>-1&&this.beforeQuestionList[t].Answer){var i=null;return i=this.beforeQuestionList[t].DictionaryCode?parseInt(this.beforeQuestionList[t].Answer):this.beforeQuestionList[t].Answer,i}return""}}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},"679a":function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-search",use:"icon-search-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-search"><path d="M124.884 109.812L94.256 79.166c-.357-.357-.757-.629-1.129-.914a50.366 50.366 0 0 0 8.186-27.59C101.327 22.689 78.656 0 50.67 0 22.685 0 0 22.688 0 50.663c0 27.989 22.685 50.663 50.656 50.663 10.186 0 19.643-3.03 27.6-8.201.286.385.557.771.9 1.114l30.628 30.632a10.633 10.633 0 0 0 7.543 3.129c2.728 0 5.457-1.043 7.543-3.115 4.171-4.157 4.171-10.915.014-15.073M50.671 85.338C31.557 85.338 16 69.78 16 50.663c0-19.102 15.557-34.661 34.67-34.661 19.115 0 34.657 15.559 34.657 34.675 0 19.102-15.557 34.661-34.656 34.661" /></symbol>'});o.a.add(s);t["default"]=s},"67a8":function(e,t,i){var n=i("3301"),a=i("4f85"),r=a.extend({type:"series.effectScatter",dependencies:["grid","polar"],getInitialData:function(e,t){return n(this.getSource(),this,{useEncodeDefaulter:!0})},brushSelector:"point",defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",rippleEffect:{period:4,scale:2.5,brushType:"fill"},symbolSize:10}});e.exports=r},"67ab":function(e,t,i){var n=i("ca5a")("meta"),a=i("d3f4"),r=i("69a8"),o=i("86cc").f,s=0,l=Object.isExtensible||function(){return!0},c=!i("79e5")((function(){return l(Object.preventExtensions({}))})),u=function(e){o(e,n,{value:{i:"O"+ ++s,w:{}}})},d=function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!r(e,n)){if(!l(e))return"F";if(!t)return"E";u(e)}return e[n].i},f=function(e,t){if(!r(e,n)){if(!l(e))return!0;if(!t)return!1;u(e)}return e[n].w},h=function(e){return c&&p.NEED&&l(e)&&!r(e,n)&&u(e),e},p=e.exports={KEY:n,NEED:!1,fastKey:d,getWeak:f,onFreeze:h}},"67bd":function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-validCode",use:"icon-validCode-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-validCode"><defs><style type="text/css"></style></defs><path d="M513.3 958.5c-142.2 0-397.9-222.1-401.6-440.5V268c1.7-39.6 31.7-72.3 71.1-77.3 49-4.6 97.1-16.5 142.7-35.3 47.8-14 91.9-38.3 129.4-71.1 30.3-24.4 72.9-26.3 105.3-4.6 39.9 30.7 83.8 55.9 130.5 74.6 48.6 14.7 98.2 25.9 148.4 33.7 38.5 7.6 67.1 40.3 69.5 79.5 3.3 84.9 2.5 169.9-2.6 254.7-33.7 281.6-253.7 436.4-392.7 436.3z m-0.1-813.7c-7.2-0.2-14.3 2-20 6.4-39.7 35.2-86.8 61.1-137.7 75.7-46.8 19.2-96.2 31-146.6 35.2-11 3.2-18.8 13-19.5 24.4v230.1c3.5 180.3 223.3 361 323.9 361s287.3-120.2 317.6-360.5c7.3-142.7 0-228.6 0-229.6-1.3-13.3-11-24.3-24-27.3-49.6-7.7-98.6-19-146.5-33.7-46.3-19.5-89.7-45.3-129-76.7-5.8-3.8-12.7-5.5-19.5-4.9l1.3-0.1z" fill="#C6CCDA" p-id="1940" /><path d="M750.1 428L490.7 673.2c-11.7 11.1-29.5 12.9-43.1 4.2l-6.8-5.8-141.2-149.4c-9.3-9.3-12.7-22.9-9-35.5 3.8-12.6 14.1-22.1 27-24.8 12.9-2.7 26.1 1.9 34.6 11.9L469 597.5l233.7-221c14.6-12.8 36.8-11.6 49.9 2.7 13.2 14.2 11.5 35.3-2.5 48.8" fill="#C6CCDA" p-id="1941" /></symbol>'});o.a.add(s);t["default"]=s},"67c5":function(e){e.exports={_args:[["@ffmpeg/ffmpeg@0.10.1","/Users/xiongfei/Desktop/IRaCIS/branches/20230314"]],_from:"@ffmpeg/ffmpeg@0.10.1",_id:"@ffmpeg/ffmpeg@0.10.1",_inBundle:!1,_integrity:"sha512-ChQkH7Rh57hmVo1LhfQFibWX/xqneolJKSwItwZdKPcLZuKigtYAYDIvB55pDfP17VtR1R77SxgkB2/UApB+Og==",_location:"/@ffmpeg/ffmpeg",_phantomChildren:{},_requested:{type:"version",registry:!0,raw:"@ffmpeg/ffmpeg@0.10.1",name:"@ffmpeg/ffmpeg",escapedName:"@ffmpeg%2fffmpeg",scope:"@ffmpeg",rawSpec:"0.10.1",saveSpec:null,fetchSpec:"0.10.1"},_requiredBy:["/"],_resolved:"https://registry.npmmirror.com/@ffmpeg/ffmpeg/-/ffmpeg-0.10.1.tgz",_spec:"0.10.1",_where:"/Users/xiongfei/Desktop/IRaCIS/branches/20230314",author:{name:"Jerome Wu",email:"jeromewus@gmail.com"},browser:{"./src/node/index.js":"./src/browser/index.js"},bugs:{url:"https://github.com/ffmpegwasm/ffmpeg.wasm/issues"},dependencies:{"is-url":"^1.2.4","node-fetch":"^2.6.1","regenerator-runtime":"^0.13.7","resolve-url":"^0.2.1"},description:"FFmpeg WebAssembly version",devDependencies:{"@babel/core":"^7.12.3","@babel/preset-env":"^7.12.1","@ffmpeg/core":"^0.10.0","@types/emscripten":"^1.39.4","babel-loader":"^8.1.0",chai:"^4.2.0",cors:"^2.8.5",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.1.0","eslint-plugin-import":"^2.22.1",express:"^4.17.1",mocha:"^8.2.1","mocha-headless-chrome":"^2.0.3","npm-run-all":"^4.1.5","wait-on":"^5.3.0",webpack:"^5.3.2","webpack-cli":"^4.1.0","webpack-dev-middleware":"^4.0.0"},directories:{example:"examples"},engines:{node:">=12.16.1"},homepage:"https://github.com/ffmpegwasm/ffmpeg.wasm#readme",keywords:["ffmpeg","WebAssembly","video"],license:"MIT",main:"src/index.js",name:"@ffmpeg/ffmpeg",repository:{type:"git",url:"git+https://github.com/ffmpegwasm/ffmpeg.wasm.git"},scripts:{build:"rimraf dist && webpack --config scripts/webpack.config.prod.js",lint:"eslint src",prepublishOnly:"npm run build",start:"node scripts/server.js",test:"npm-run-all -p -r start test:all","test:all":"npm-run-all wait test:browser:ffmpeg test:node:all","test:browser":"mocha-headless-chrome -a allow-file-access-from-files -a incognito -a no-sandbox -a disable-setuid-sandbox -a disable-logging -t 300000","test:browser:ffmpeg":"npm run test:browser -- -f ./tests/ffmpeg.test.html","test:node":"node --experimental-wasm-threads --experimental-wasm-bulk-memory node_modules/.bin/_mocha --exit --bail --require ./scripts/test-helper.js","test:node:all":"npm run test:node -- ./tests/*.test.js",wait:"rimraf dist && wait-on http://localhost:3000/dist/ffmpeg.dev.js"},types:"src/index.d.ts",version:"0.10.1"}},"67cc":function(e,t,i){var n=i("4e08"),a=(n.__DEV__,i("3eba")),r=i("6d8b"),o=i("2306"),s=i("e7aa"),l=s.setLabel,c=i("4319"),u=i("b5c7"),d=i("cbe5"),f=i("e1fc"),h=i("88b3"),p=h.throttle,m=i("b0af"),g=m.createClipPath,v=i("c2be"),b=["itemStyle","barBorderWidth"],y=[0,0];function w(e,t){var i=e.getArea&&e.getArea();if("cartesian2d"===e.type){var n=e.getBaseAxis();if("category"!==n.type||!n.onBand){var a=t.getLayout("bandWidth");n.isHorizontal()?(i.x-=a,i.width+=2*a):(i.y-=a,i.height+=2*a)}}return i}r.extend(c.prototype,u);var _=a.extendChartView({type:"bar",render:function(e,t,i){this._updateDrawMode(e);var n=e.get("coordinateSystem");return"cartesian2d"!==n&&"polar"!==n||(this._isLargeDraw?this._renderLarge(e,t,i):this._renderNormal(e,t,i)),this.group},incrementalPrepareRender:function(e,t,i){this._clear(),this._updateDrawMode(e)},incrementalRender:function(e,t,i,n){this._incrementalRenderLarge(e,t)},_updateDrawMode:function(e){var t=e.pipelineContext.large;(null==this._isLargeDraw||t^this._isLargeDraw)&&(this._isLargeDraw=t,this._clear())},_renderNormal:function(e,t,i){var n,a=this.group,r=e.getData(),s=this._data,l=e.coordinateSystem,c=l.getBaseAxis();"cartesian2d"===l.type?n=c.isHorizontal():"polar"===l.type&&(n="angle"===c.dim);var u=e.isAnimationEnabled()?e:null,d=e.get("clip",!0),h=w(l,r);a.removeClipPath();var p=e.get("roundCap",!0),m=e.get("showBackground",!0),g=e.getModel("backgroundStyle"),v=g.get("barBorderRadius")||0,b=[],y=this._backgroundEls||[],_=function(e){var t=R[l.type](r,e),i=j(l,n,t);return i.useStyle(g.getBarItemStyle()),"cartesian2d"===l.type&&i.setShape("r",v),b[e]=i,i};r.diff(s).add((function(t){var i=r.getItemModel(t),o=R[l.type](r,t,i);if(m&&_(t),r.hasValue(t)){if(d){var s=S[l.type](h,o);if(s)return void a.remove(c)}var c=T[l.type](t,o,n,u,!1,p);r.setItemGraphicEl(t,c),a.add(c),L(c,r,t,i,o,e,n,"polar"===l.type)}})).update((function(t,i){var c=r.getItemModel(t),f=R[l.type](r,t,c);if(m){var w;0===y.length?w=_(i):(w=y[i],w.useStyle(g.getBarItemStyle()),"cartesian2d"===l.type&&w.setShape("r",v),b[t]=w);var I=R[l.type](r,t),x=F(n,I,l);o.updateProps(w,{shape:x},u,t)}var C=s.getItemGraphicEl(i);if(r.hasValue(t)){if(d){var k=S[l.type](h,f);if(k)return void a.remove(C)}C?o.updateProps(C,{shape:f},u,t):C=T[l.type](t,f,n,u,!0,p),r.setItemGraphicEl(t,C),a.add(C),L(C,r,t,c,f,e,n,"polar"===l.type)}else a.remove(C)})).remove((function(e){var t=s.getItemGraphicEl(e);"cartesian2d"===l.type?t&&C(e,u,t):t&&k(e,u,t)})).execute();var I=this._backgroundGroup||(this._backgroundGroup=new f);I.removeAll();for(var x=0;x<b.length;++x)I.add(b[x]);a.add(I),this._backgroundEls=b,this._data=r},_renderLarge:function(e,t,i){this._clear(),N(e,this.group);var n=e.get("clip",!0)?g(e.coordinateSystem,!1,e):null;n?this.group.setClipPath(n):this.group.removeClipPath()},_incrementalRenderLarge:function(e,t){this._removeBackground(),N(t,this.group,!0)},dispose:r.noop,remove:function(e){this._clear(e)},_clear:function(e){var t=this.group,i=this._data;e&&e.get("animation")&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl((function(t){"sector"===t.type?k(t.dataIndex,e,t):C(t.dataIndex,e,t)}))):t.removeAll(),this._data=null},_removeBackground:function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null}}),I=Math.max,x=Math.min,S={cartesian2d:function(e,t){var i=t.width<0?-1:1,n=t.height<0?-1:1;i<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var a=I(t.x,e.x),r=x(t.x+t.width,e.x+e.width),o=I(t.y,e.y),s=x(t.y+t.height,e.y+e.height);t.x=a,t.y=o,t.width=r-a,t.height=s-o;var l=t.width<0||t.height<0;return i<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),l},polar:function(e,t){var i=t.r0<=t.r?1:-1;if(i<0){var n=t.r;t.r=t.r0,t.r0=n}n=x(t.r,e.r);var a=I(t.r0,e.r0);t.r=n,t.r0=a;var r=n-a<0;if(i<0){n=t.r;t.r=t.r0,t.r0=n}return r}},T={cartesian2d:function(e,t,i,n,a){var s=new o.Rect({shape:r.extend({},t),z2:1});if(s.name="item",n){var l=s.shape,c=i?"height":"width",u={};l[c]=0,u[c]=t[c],o[a?"updateProps":"initProps"](s,{shape:u},n,e)}return s},polar:function(e,t,i,n,a,s){var l=t.startAngle<t.endAngle,c=!i&&s?v:o.Sector,u=new c({shape:r.defaults({clockwise:l},t),z2:1});if(u.name="item",n){var d=u.shape,f=i?"r":"endAngle",h={};d[f]=i?0:t.startAngle,h[f]=t[f],o[a?"updateProps":"initProps"](u,{shape:h},n,e)}return u}};function C(e,t,i){i.style.text=null,o.updateProps(i,{shape:{width:0}},t,e,(function(){i.parent&&i.parent.remove(i)}))}function k(e,t,i){i.style.text=null,o.updateProps(i,{shape:{r:i.shape.r0}},t,e,(function(){i.parent&&i.parent.remove(i)}))}var R={cartesian2d:function(e,t,i){var n=e.getItemLayout(t),a=i?O(i,n):0,r=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+r*a/2,y:n.y+o*a/2,width:n.width-r*a,height:n.height-o*a}},polar:function(e,t,i){var n=e.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle}}};function D(e){return null!=e.startAngle&&null!=e.endAngle&&e.startAngle===e.endAngle}function L(e,t,i,n,a,s,c,u){var d=t.getItemVisual(i,"color"),f=t.getItemVisual(i,"opacity"),h=t.getVisual("borderColor"),p=n.getModel("itemStyle"),m=n.getModel("emphasis.itemStyle").getBarItemStyle();u||e.setShape("r",p.get("barBorderRadius")||0),e.useStyle(r.defaults({stroke:D(a)?"none":h,fill:D(a)?"none":d,opacity:f},p.getBarItemStyle()));var g=n.getShallow("cursor");g&&e.attr("cursor",g);var v=c?a.height>0?"bottom":"top":a.width>0?"left":"right";u||l(e.style,m,n,d,s,i,v),D(a)&&(m.fill=m.stroke="none"),o.setHoverStyle(e,m)}function O(e,t){var i=e.get(b)||0,n=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(i,n,a)}var $=d.extend({type:"largeBar",shape:{points:[]},buildPath:function(e,t){for(var i=t.points,n=this.__startPoint,a=this.__baseDimIdx,r=0;r<i.length;r+=2)n[a]=i[r+a],e.moveTo(n[0],n[1]),e.lineTo(i[r],i[r+1])}});function N(e,t,i){var n=e.getData(),a=[],r=n.getLayout("valueAxisHorizontal")?1:0;a[1-r]=n.getLayout("valueAxisStart");var o=n.getLayout("largeDataIndices"),s=n.getLayout("barWidth"),l=e.getModel("backgroundStyle"),c=e.get("showBackground",!0);if(c){var u=n.getLayout("largeBackgroundPoints"),d=[];d[1-r]=n.getLayout("backgroundStart");var f=new $({shape:{points:u},incremental:!!i,__startPoint:d,__baseDimIdx:r,__largeDataIndices:o,__barWidth:s,silent:!0,z2:0});M(f,l,n),t.add(f)}var h=new $({shape:{points:n.getLayout("largePoints")},incremental:!!i,__startPoint:a,__baseDimIdx:r,__largeDataIndices:o,__barWidth:s});t.add(h),E(h,e,n),h.seriesIndex=e.seriesIndex,e.get("silent")||(h.on("mousedown",A),h.on("mousemove",A))}var A=p((function(e){var t=this,i=P(t,e.offsetX,e.offsetY);t.dataIndex=i>=0?i:null}),30,!1);function P(e,t,i){var n=e.__baseDimIdx,a=1-n,r=e.shape.points,o=e.__largeDataIndices,s=Math.abs(e.__barWidth/2),l=e.__startPoint[a];y[0]=t,y[1]=i;for(var c=y[n],u=y[1-n],d=c-s,f=c+s,h=0,p=r.length/2;h<p;h++){var m=2*h,g=r[m+n],v=r[m+a];if(g>=d&&g<=f&&(l<=v?u>=l&&u<=v:u>=v&&u<=l))return o[h]}return-1}function E(e,t,i){var n=i.getVisual("borderColor")||i.getVisual("color"),a=t.getModel("itemStyle").getItemStyle(["color","borderColor"]);e.useStyle(a),e.style.fill=null,e.style.stroke=n,e.style.lineWidth=i.getLayout("barWidth")}function M(e,t,i){var n=t.get("borderColor")||t.get("color"),a=t.getItemStyle(["color","borderColor"]);e.useStyle(a),e.style.fill=null,e.style.stroke=n,e.style.lineWidth=i.getLayout("barWidth")}function F(e,t,i){var n,a="polar"===i.type;return n=a?i.getArea():i.grid.getRect(),a?{cx:n.cx,cy:n.cy,r0:e?n.r0:t.r0,r:e?n.r:t.r,startAngle:e?t.startAngle:0,endAngle:e?t.endAngle:2*Math.PI}:{x:e?t.x:n.x,y:e?n.y:t.y,width:e?t.width:n.width,height:e?n.height:t.height}}function j(e,t,i){var n="polar"===e.type?o.Sector:o.Rect;return new n({shape:F(t,i,e),silent:!0,z2:0})}e.exports=_},"689e":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"dicom-container"},[i("div",{staticClass:"dicom-list"},[i("div",{staticClass:"container"},[i("div",{staticClass:"related-study-wrapper"},[i("div",{staticClass:"left"},[i("div",{staticClass:"visit-name-wrapper"},[e.visitTaskList.length>0?i("div",{staticStyle:{display:"flex","flex-direction":"row"}},e._l(e.visitTaskList,(function(t){return i("div",{key:t.VisitTaskId,staticClass:"visit-item",class:{"visit-item-active":e.activeTaskVisitId==t.VisitTaskId},on:{click:function(i){return i.preventDefault(),e.handleClick(t)}}},[e._v(e._s(t.TaskBlindName))])})),0):e._e()])]),e._v(" "),i("div",{staticClass:"right"},e._l(e.visitTaskList,(function(t){return i("div",{directives:[{name:"show",rawName:"v-show",value:e.activeTaskVisitId===t.VisitTaskId,expression:"activeTaskVisitId === s.VisitTaskId"}],key:t.VisitTaskId,staticClass:"study-wrapper"},[e.selectArr.includes(t.VisitTaskId)?i("StudyList",{ref:t.VisitTaskId,refInFor:!0,attrs:{"visit-task-id":t.VisitTaskId,"trial-id":e.trialId,"subject-visit-id":t.VisitId,"task-blind-name":t.TaskBlindName,"is-reading-show-subject-info":e.isReadingShowSubjectInfo},on:{loadImageStack:e.loadImageStack,previewNoneDicoms:e.previewNoneDicoms}}):e._e()],1)})),0)])])]),e._v(" "),i("div",{staticClass:"dicom-viewer"},[i("div",{staticClass:"container"},[e.activeTaskVisitId?i("DicomViewer",{ref:"dicomViewer",attrs:{"is-show":e.isShow,"question-form-change-state":e.questionFormChangeState,"question-form-change-num":e.questionFormChangeNum,"is-exists-clinical-data":e.isExistsClinicalData,"is-exists-no-dicom-file":e.isExistsNoDicomFile,"is-reading-show-subject-info":e.isReadingShowSubjectInfo,"is-reading-task-view-in-order":e.isReadingTaskViewInOrder},on:{previewCD:e.previewCD}}):e._e()],1)])])},a=[],r=i("75fc"),o=(i("ac6a"),i("55dd"),i("96cf"),i("3b8d")),s=(i("6762"),i("2fdb"),i("20d6"),i("db72")),l=(i("c5f6"),i("b686")),c=i("f818"),u=i("9b92"),d=i("4360"),f=i("5f87"),h=i("2f62"),p={name:"ReadPage",components:{DicomViewer:c["default"],StudyList:l["default"]},props:{trialId:{type:String,required:!0},subjectId:{type:String,required:!0},subjectCode:{type:String,required:!0},visitTaskId:{type:String,required:!0},isShow:{type:Boolean,required:!0},isExistsClinicalData:{type:Boolean,required:!0},isExistsNoDicomFile:{type:Boolean,required:!0},isReadingShowSubjectInfo:{type:Boolean,required:!0},isReadingTaskViewInOrder:{type:Boolean,required:!0},questionFormChangeState:{type:Boolean,default:function(){return!1}},questionFormChangeNum:{type:Number,default:function(){return 0}}},data:function(){return{activeName:"relation-study",tabs:["relation-study"],taskList:[],loading:!1,selectArr:[],activeTaskIndex:-1,activeTaskVisitId:"",measureData:[],activeTaskIsCurrentTask:!1,activeTaskIsBaseline:!1,activeTaskReadingTaskState:2,readingTaskState:2,open:null}},computed:Object(s["a"])({},Object(h["b"])(["visitTaskList","activeSeries"])),watch:{activeSeries:{immediate:!0,handler:function(e){var t=this;if(0!==this.visitTaskList.length){var i=this.visitTaskList.findIndex((function(t){return t.VisitTaskId===e.visitTaskId}));-1!==i&&(this.activeTaskVisitId=e.visitTaskId,this.activeTaskIndex=i,this.activeTaskIsCurrentTask=this.visitTaskList[i].IsCurrentTask,this.activeTaskIsBaseline=this.visitTaskList[i].IsBaseLineTask,this.activeTaskReadingTaskState=this.visitTaskList[i].ReadingTaskState,this.selectArr.includes(this.visitTaskList[i].VisitTaskId)||this.selectArr.push(this.visitTaskList[i].VisitTaskId),this.$refs[this.activeTaskVisitId],this.$nextTick((function(){t.$refs[t.activeTaskVisitId][0].setSeriesActive(e)})))}}}},mounted:function(){var e=this;this.getVisitInfo(),u["a"].$on("getNextVisitInfo",(function(){e.getNextVisitInfo()})),u["a"].$on("toggleSeries",function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(i){var n,a,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(console.log(i),n=e.visitTaskList.findIndex((function(e){return e.VisitTaskId===i.series.visitTaskId})),-1!==n){t.next=4;break}return t.abrupt("return");case 4:a="",r=-1,r=i.type>0?n+1:n-1,console.log(r),r>-1&&r<e.visitTaskList.length&&(a=e.visitTaskList[r].VisitTaskId,e.getAlignedSeries(i.series,a,i.measureData,r,i.canvasIndex));case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),u["a"].$on("isCanActiveNoneDicomTool",(function(t){e.open.postMessage({type:"isCanActiveNoneDicomTool",data:t},window.location)})),u["a"].$on("removeNoneDicomMeasureData",(function(t){e.open.postMessage({type:"removeNoneDicomMeasureData",data:t},window.location)})),u["a"].$on("addNoneDicomMeasureData",(function(t){e.open.postMessage({type:"addNoneDicomMeasureData",data:t},window.location)})),u["a"].$on("selectSeries",(function(t){e.$nextTick((function(){e.$refs[e.activeTaskVisitId][0].selectSeries(t)}))}))},beforeDestroy:function(){u["a"].$off("getNextVisitInfo"),u["a"].$off("toggleSeries"),u["a"].$off("isCanActiveNoneDicomTool"),u["a"].$off("removeNoneDicomMeasureData"),u["a"].$off("addNoneDicomMeasureData"),u["a"].$off("selectSeries")},methods:{getVisitInfo:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,i,n=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this.$loading({fullscreen:!0}),e.next=3,d["a"].dispatch("reading/getOrganInfo",this.visitTaskId);case 3:return e.next=5,d["a"].dispatch("reading/getVisitTasks",this.visitTaskId);case 5:if(i=this.visitTaskList.findIndex((function(e){return e.IsCurrentTask})),!(i>-1)){e.next=24;break}return e.next=9,d["a"].dispatch("reading/getMeasuredData",this.visitTaskList[i].VisitTaskId);case 9:return e.next=11,d["a"].dispatch("reading/getStudyInfo",{trialId:this.trialId,subjectVisitId:this.visitTaskList[i].VisitId,visitTaskId:this.visitTaskList[i].VisitTaskId,taskBlindName:this.visitTaskList[i].TaskBlindName});case 11:return e.next=13,d["a"].dispatch("reading/getReadingQuestionAndAnswer",{trialId:this.trialId,visitTaskId:this.visitTaskList[i].VisitTaskId});case 13:return e.next=15,d["a"].dispatch("reading/getDicomReadingQuestionAnswer",{trialId:this.trialId,visitTaskId:this.visitTaskList[i].VisitTaskId});case 15:return e.next=17,d["a"].dispatch("reading/setStatus",{visitTaskId:this.visitTaskList[i].VisitTaskId});case 17:this.activeTaskVisitId=this.visitTaskList[i].VisitTaskId,this.activeTaskIndex=i,this.activeTaskIsCurrentTask=this.visitTaskList[i].IsCurrentTask,this.activeTaskIsBaseline=this.visitTaskList[i].IsBaseLineTask,this.activeTaskReadingTaskState=this.visitTaskList[i].ReadingTaskState,this.selectArr.push(this.visitTaskList[i].VisitTaskId),this.$nextTick((function(){n.$refs[n.activeTaskVisitId][0].initStudyInfo()}));case 24:t.close();case 25:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getNextVisitInfo:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,i,n,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this.$loading({fullscreen:!0}),i=this.visitTaskList.length-1,e.next=4,d["a"].dispatch("reading/getMasterSeries",{trialId:this.trialId,visitTaskId:this.visitTaskList[i].VisitTaskId,visitId:this.visitTaskList[i].VisitId});case 4:return e.next=6,d["a"].dispatch("reading/refreshMeasuredData",this.visitTaskList[i].VisitTaskId);case 6:return e.next=8,d["a"].dispatch("reading/getNextVisitTask",{visitTaskId:this.visitTaskId});case 8:if(n=this.visitTaskList.findIndex((function(e){return e.IsCurrentTask})),!(n>-1)){e.next=27;break}return e.next=12,d["a"].dispatch("reading/getMeasuredData",this.visitTaskList[n].VisitTaskId);case 12:return e.next=14,d["a"].dispatch("reading/getStudyInfo",{trialId:this.trialId,subjectVisitId:this.visitTaskList[n].VisitId,visitTaskId:this.visitTaskList[n].VisitTaskId,taskBlindName:this.visitTaskList[n].TaskBlindName});case 14:return e.next=16,d["a"].dispatch("reading/getReadingQuestionAndAnswer",{trialId:this.trialId,visitTaskId:this.visitTaskList[n].VisitTaskId});case 16:return e.next=18,d["a"].dispatch("reading/getDicomReadingQuestionAnswer",{trialId:this.trialId,visitTaskId:this.visitTaskList[n].VisitTaskId});case 18:return e.next=20,d["a"].dispatch("reading/setStatus",{visitTaskId:this.visitTaskList[n].VisitTaskId});case 20:this.activeTaskVisitId=this.visitTaskList[n].VisitTaskId,this.activeTaskIndex=n,this.activeTaskIsCurrentTask=this.visitTaskList[n].IsCurrentTask,this.activeTaskIsBaseline=this.visitTaskList[n].IsBaseLineTask,this.activeTaskReadingTaskState=this.visitTaskList[n].ReadingTaskState,this.selectArr.push(this.visitTaskList[n].VisitTaskId),this.$nextTick((function(){a.$refs[a.activeTaskVisitId][0].initStudyInfo()}));case 27:t.close();case 28:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),handleClick:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){var i,n,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.activeTaskVisitId!==t.VisitTaskId){e.next=2;break}return e.abrupt("return");case 2:if(i=this.visitTaskList.findIndex((function(e){return e.VisitTaskId===t.VisitTaskId})),this.visitTaskList[i].IsInit){e.next=16;break}return n=this.$loading({fullscreen:!0}),e.next=7,d["a"].dispatch("reading/getMeasuredData",this.visitTaskList[i].VisitTaskId);case 7:return e.next=9,d["a"].dispatch("reading/getStudyInfo",{trialId:this.trialId,subjectVisitId:this.visitTaskList[i].VisitId,visitTaskId:this.visitTaskList[i].VisitTaskId,taskBlindName:this.visitTaskList[i].TaskBlindName});case 9:return e.next=11,d["a"].dispatch("reading/getReadingQuestionAndAnswer",{trialId:this.trialId,visitTaskId:this.visitTaskList[i].VisitTaskId});case 11:return e.next=13,d["a"].dispatch("reading/getDicomReadingQuestionAnswer",{trialId:this.trialId,visitTaskId:this.visitTaskList[i].VisitTaskId});case 13:return e.next=15,d["a"].dispatch("reading/setStatus",{visitTaskId:this.visitTaskList[i].VisitTaskId});case 15:n.close();case 16:this.activeTaskVisitId=this.visitTaskList[i].VisitTaskId,this.activeTaskIndex=i,this.activeTaskIsCurrentTask=this.visitTaskList[i].IsCurrentTask,this.activeTaskIsBaseline=this.visitTaskList[i].IsBaseLineTask,this.activeTaskReadingTaskState=this.visitTaskList[i].ReadingTaskState,this.selectArr.includes(this.visitTaskList[i].VisitTaskId)||this.selectArr.push(this.visitTaskList[i].VisitTaskId),this.$nextTick((function(){a.$refs[a.activeTaskVisitId][0].getStudyList()}));case 23:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),loadImageStack:function(e){var t=this;this.$nextTick((function(){t.$refs.dicomViewer.loadImageStack(e)}))},previewCD:function(){var e=Object(f["a"])(),t=this.$router.resolve({path:"/clinicalData?subjectId=".concat(this.subjectId,"&trialId=").concat(this.trialId,"&visitTaskId=").concat(this.visitTaskId,"&TokenKey=").concat(e)});window.open(t.href,"_blank")},previewNoneDicoms:function(e){var t=this.visitTaskList.findIndex((function(t){return t.VisitTaskId===e.visitTaskId})),i=this.visitTaskList[t].TaskBlindName,n=Object(f["a"])(),a=this.$router.resolve({path:"/nonedicoms?subjectId=".concat(this.subjectId,"&trialId=").concat(this.trialId,"&visitTaskId=").concat(e.visitTaskId,"&taskBlindName=").concat(i,"&readingTaskState=").concat(this.visitTaskList[t].ReadingTaskState,"&TokenKey=").concat(n)});this.open=window.open(a.href,"_blank")},getAlignedSeries:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t,i,n,a,r){var o,s,l,c=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(o="",s=a,this.visitTaskList[s].IsInit){e.next=18;break}if(o=this.$loading({fullscreen:!0}),this.visitTaskList[s].measureDataInit){e.next=7;break}return e.next=7,d["a"].dispatch("reading/getMeasuredData",this.visitTaskList[s].VisitTaskId);case 7:if(this.visitTaskList[s].studyListInit){e.next=10;break}return e.next=10,d["a"].dispatch("reading/getStudyInfo",{trialId:this.trialId,subjectVisitId:this.visitTaskList[s].VisitId,visitTaskId:this.visitTaskList[s].VisitTaskId,taskBlindName:this.visitTaskList[s].TaskBlindName});case 10:if(this.visitTaskList[s].readingQuestionsInit){e.next=13;break}return e.next=13,d["a"].dispatch("reading/getReadingQuestionAndAnswer",{trialId:this.trialId,visitTaskId:this.visitTaskList[s].VisitTaskId});case 13:if(this.visitTaskList[s].questionsInit){e.next=16;break}return e.next=16,d["a"].dispatch("reading/getDicomReadingQuestionAnswer",{trialId:this.trialId,visitTaskId:this.visitTaskList[s].VisitTaskId});case 16:return e.next=18,d["a"].dispatch("reading/setStatus",{visitTaskId:this.visitTaskList[s].VisitTaskId});case 18:this.activeTaskVisitId=i,this.activeTaskIndex=s,this.activeTaskIsCurrentTask=this.visitTaskList[s].IsCurrentTask,this.activeTaskIsBaseline=this.visitTaskList[s].IsBaseLineTask,this.activeTaskReadingTaskState=this.visitTaskList[s].ReadingTaskState,this.selectArr.includes(this.visitTaskList[s].VisitTaskId)||this.selectArr.push(this.visitTaskList[s].VisitTaskId),l=this.getSeriesInfoByMark(t,i,n,a),l&&this.$nextTick((function(){l.canvasIndex=r,u["a"].$emit("loadLinkedImageStack",l),c.$refs[c.activeTaskVisitId][0].handleActiveSeries(l)})),o&&o.close();case 27:case"end":return e.stop()}}),e,this)})));function t(t,i,n,a,r){return e.apply(this,arguments)}return t}(),getLinkedSeries:function(e,t,i){var n=this,a=i;if(-1!==a){var r=Object.assign({},this.visitTaskList[a]),o=null,s=r.StudyList,l=s.map((function(e){return e.SeriesList})).flat(),c=l.map((function(t,i){return{similar:n.strSimilarity2Percent(t.description,e.description),index:i}}));c=c.sort((function(e,t){return t.similar-e.similar}));var u=c[0]&&c[0].similar>.85?c[0].index:-1;if(u>-1&&(o=l[u]),!o){var d=l.findIndex((function(t){return t.sliceThickness===e.sliceThickness}));d>-1&&(o=l[d])}if(!o){var f=l.findIndex((function(t){return t.instanceCount===e.instanceCount}));f>-1&&(o=l[f])}if(!o){var h=l.findIndex((function(e){return e.isDicom&&e.instanceCount>0}));h>-1&&(o=l[h])}return o&&(o.imageIdIndex=Math.floor(o.imageIds.length*(e.imageIdIndex/e.instanceCount))),o}},strSimilarity2Number:function(e,t){var i,n,a,r,o,s=e.length,l=t.length,c=[];if(0===s)return l;if(0===l)return s;for(i=0;i<=s;i++)c[i]=[],c[i][0]=i;for(n=0;n<=l;n++)c[0][n]=n;for(i=1;i<=s;i++)for(a=e.charAt(i-1),n=1;n<=l;n++)r=t.charAt(n-1),o=a===r?0:1,c[i][n]=this.Minimum(c[i-1][n]+1,c[i][n-1]+1,c[i-1][n-1]+o);return c[s][l]},strSimilarity2Percent:function(e,t){var i=e.length>t.length?e.length:t.length,n=this.strSimilarity2Number(e,t);return Number((1-n/i).toFixed(4))},Minimum:function(e,t,i){return e<t?e<i?e:i:t<i?t:i},getLinkedSeries1:function(e,t,i){var n=i;if(-1!==n){var a=this.visitTaskList[n],o={},s=a.StudyList,l=[];if(s.forEach((function(t,i){var n=t.SeriesList.filter((function(t){return t.description===e.description}));n.length>0&&l.push.apply(l,Object(r["a"])(n))})),l.length>0){var c=l.filter((function(t){return t.sliceThickness===e.sliceThickness}));if(c.length>0){var u=c.filter((function(t){return t.instanceCount===e.instanceCount}));if(u.length>0){var d=u[0].studyIndex,f=u[0],h=Math.floor(f.imageIds.length*(e.imageIdIndex/e.instanceCount));o=s[d].SeriesList[f.seriesIndex],o.imageIdIndex=h,o.studyIndex=d,o.seriesIndex=f.seriesIndex,o.visitTaskId=t,o.studyId=f.studyId}else{var p=c[0].studyIndex,m=c[0],g=Math.floor(m.imageIds.length*(e.imageIdIndex/e.instanceCount));o=s[p].SeriesList[m.seriesIndex],o.imageIdIndex=g,o.studyIndex=p,o.seriesIndex=m.seriesIndex,o.visitTaskId=t,o.studyId=m.studyId}}else{var v=l[0].studyIndex,b=l[0],y=Math.floor(b.imageIds.length*(e.imageIdIndex/e.instanceCount));o=s[v].SeriesList[b.seriesIndex],o.imageIdIndex=y,o.studyIndex=v,o.seriesIndex=b.seriesIndex,o.visitTaskId=t,o.studyId=b.studyId}}else{for(var w=null,_=0;_<s.length;_++){var I=s[_].SeriesList.findIndex((function(e){return e.sliceThickness&&5===parseInt(e.sliceThickness)}));if(I>-1){w={studyIndex:_,seriesIdx:I,series:s[_].SeriesList[I]};break}}if(w)o=s[w.studyIndex].SeriesList[w.seriesIdx],o.imageIdIndex=Math.floor(w.series.imageIds.length/2),o.studyIndex=w.studyIndex,o.seriesIndex=w.seriesIdx,o.visitTaskId=t,o.studyId=w.series.studyId;else{var x=s.findIndex((function(e){return e.IsDicom})),S=s[x].SeriesList[0];o=s[x].SeriesList[0],o.imageIdIndex=h,o.studyIndex=x,o.seriesIndex=S.seriesIndex,o.visitTaskId=t,o.studyId=S.studyId}}return o}},getSeriesInfoByMark:function(e,t,i,n){var a=null;if(i){var r=n;if(r>-1){var o=-1;if(o=10===this.CriterionType?this.visitTaskList[r].MeasureData.findIndex((function(e){return e.OrderMarkName===i.OrderMarkName})):this.visitTaskList[r].MeasureData.findIndex((function(e){return e.QuestionId===i.QuestionId&&e.RowIndex===i.RowIndex})),o>-1&&this.visitTaskList[r].MeasureData[o].MeasureData){var s=this.visitTaskList[r].StudyList,l=this.visitTaskList[r].MeasureData[o].StudyId,c=this.visitTaskList[r].MeasureData[o].SeriesId,u=this.visitTaskList[r].MeasureData[o].InstanceId,d=s.findIndex((function(e){return e.StudyId===l}));if(d>-1){var f=s[d].SeriesList.findIndex((function(e){return e.seriesId===c}));if(f>-1){var h=s[d].SeriesList[f],p=h.instanceList.findIndex((function(e){return!!~e.indexOf(u)}));p>-1&&(h.imageIdIndex=p,a=h)}}else a=this.getLinkedSeries(e,t,n)}else a=this.getLinkedSeries(e,t,n)}}else a=this.getLinkedSeries(e,t,n);return a}}},m=p,g=(i("5973"),i("2877")),v=Object(g["a"])(m,n,a,!1,null,"14f91ff0",null);t["default"]=v.exports},"68ab":function(e,t,i){var n=i("4a3f"),a=n.quadraticProjectPoint;function r(e,t,i,n,r,o,s,l,c){if(0===s)return!1;var u=s;if(c>t+u&&c>n+u&&c>o+u||c<t-u&&c<n-u&&c<o-u||l>e+u&&l>i+u&&l>r+u||l<e-u&&l<i-u&&l<r-u)return!1;var d=a(e,t,i,n,r,o,l,c,null);return d<=u/2}t.containStroke=r},"68f7":function(e,t,i){},"692e":function(e,t,i){var n={"./App.vue":"3dfd","./components/Affix/index.vue":"224d","./components/BaseContainer/index.vue":"6071","./components/BaseForm/search-form.vue":"d13d","./components/BaseModel/index.vue":"7eeb","./components/BaseTable/index.vue":"c0ee","./components/BoxContent/index.vue":"f36a","./components/Breadcrumb/index.vue":"6350","./components/ChatForm/index.vue":"ba41","./components/Dicom/CustomWwwcForm.vue":"137a","./components/Dicom/DicomCanvas.vue":"06cf","./components/Dicom/DicomPreview.vue":"deda","./components/Dicom/DicomViewer.vue":"cc73","./components/DictTag/index.vue":"bf84","./components/Global/index.vue":"411c","./components/Hamburger/index.vue":"4f1e","./components/IconSelect/index.vue":"5aee","./components/Pagination/index.vue":"333d","./components/PreviewFile/index.vue":"c686","./components/Screenfull/index.vue":"e886","./components/SignForm/index.vue":"d6da","./components/Sticky/index.vue":"b804","./components/SvgIcon/index.vue":"c00a","./components/TrialsSelect/index.vue":"6783","./components/TrialsTab/index.vue":"f44e","./components/Upload/index.vue":"c7f0","./components/UploadFile/index.vue":"b418","./components/UploadFiles/index.vue":"c006","./components/videoPlayer/index.vue":"c7b8","./components/videos/index.vue":"3726","./const/sign-code.vue":"7a9e","./layout/components/AppMain.vue":"1a4e","./layout/components/Navbar.vue":"850b","./layout/components/Sidebar/Item.vue":"837c","./layout/components/Sidebar/Link.vue":"a6e1","./layout/components/Sidebar/Logo.vue":"c463","./layout/components/Sidebar/SidebarItem.vue":"119c","./layout/components/Sidebar/index.vue":"a04e","./layout/components/TagsView/ScrollPane.vue":"b3d7","./layout/components/TagsView/index.vue":"baad","./layout/index.vue":"c1f7","./views/404.vue":"8cdb","./views/about/index.vue":"613f","./views/admin/log/index.vue":"3916","./views/admin/menu/components/MenuForm.vue":"bdb0","./views/admin/menu/index.vue":"97a1","./views/admin/role/components/RoleForm.vue":"254d","./views/admin/role/components/RoleFunction.vue":"9090","./views/admin/role/components/RoleMenu.vue":"ee0c","./views/admin/role/index.vue":"a5f6","./views/admin/user/add/index.vue":"07445","./views/admin/user/components/Account.vue":"580a","./views/admin/user/components/UserInfo.vue":"a483","./views/admin/user/edit/index.vue":"77ab","./views/admin/user/index.vue":"e378","./views/admin/user/list/index.vue":"f23a","./views/blindResumeInfo/components/Agreements.vue":"9edc","./views/blindResumeInfo/components/BasicInfo.vue":"f5c3","./views/blindResumeInfo/components/Comment.vue":"6483","./views/blindResumeInfo/components/Credentials.vue":"6024","./views/blindResumeInfo/components/EducationTraining.vue":"b061","./views/blindResumeInfo/components/Employment.vue":"0dd0","./views/blindResumeInfo/components/ResearchPublication.vue":"bf5d","./views/blindResumeInfo/components/Resume.vue":"6d3c","./views/blindResumeInfo/components/Specialty.vue":"dffe","./views/blindResumeInfo/components/StatusInfo.vue":"506e","./views/blindResumeInfo/components/TrialExperience.vue":"6ecd","./views/blindResumeInfo/index.vue":"e196","./views/blindResumeInfo/info.vue":"6f0b","./views/dashboard/bigdata.vue":"9775","./views/dashboard/components/distribution-map.vue":"5db3","./views/dashboard/components/enrollments-of-reviewers.vue":"f9b9","./views/dashboard/components/enrollments-per-quarter.vue":"a5a9","./views/dashboard/components/latest-reads.vue":"abf4","./views/dashboard/components/reviewers-stats.vue":"31d6","./views/dashboard/components/workload-of-months.vue":"f2f9","./views/dashboard/components/workload-of-reviewers.vue":"6283","./views/dashboard/components/workload-stats.vue":"d42f","./views/dashboard/index.vue":"9406","./views/dicom-show/dicom-preview.vue":"6422","./views/dicom-show/dicom-series.vue":"ed90","./views/dicom-show/dicom-study.vue":"cf22","./views/dicom-show/dicom-visit.vue":"6fc8","./views/dicom-show/server-dicom-temporary.vue":"4fbf","./views/dictionary/attachment/components/CommonTemplate/TemplateForm.vue":"6f18","./views/dictionary/attachment/components/CommonTemplate/index.vue":"8e37","./views/dictionary/attachment/components/EmailTemplate/TemplateForm.vue":"667d","./views/dictionary/attachment/components/EmailTemplate/index.vue":"3407","./views/dictionary/attachment/components/ExportTemplate/TemplateForm.vue":"58c1","./views/dictionary/attachment/components/ExportTemplate/index.vue":"c8a7","./views/dictionary/attachment/components/SignatureTemplate/TemplateForm.vue":"46c8","./views/dictionary/attachment/components/SignatureTemplate/index.vue":"737a","./views/dictionary/attachment/components/UploadTemplate/TemplateForm.vue":"2460","./views/dictionary/attachment/components/UploadTemplate/index.vue":"437a","./views/dictionary/attachment/index.vue":"d84e","./views/dictionary/checkConfig/index.vue":"17e0","./views/dictionary/checkConfig/oldIndex.vue":"cc5f","./views/dictionary/dictionary/components/DictionaryForm.vue":"01de9","./views/dictionary/dictionary/index.vue":"73fe","./views/dictionary/email/components/EmailForm.vue":"47b4","./views/dictionary/email/index.vue":"aed0","./views/dictionary/institutions/components/CROs.vue":"a5fc","./views/dictionary/institutions/components/CroForm.vue":"1ee6","./views/dictionary/institutions/components/HospitalForm.vue":"e12a","./views/dictionary/institutions/components/Hospitals.vue":"c22c","./views/dictionary/institutions/components/SiteForm.vue":"7c6f","./views/dictionary/institutions/components/Sites.vue":"293b","./views/dictionary/institutions/components/SponsorForm.vue":"3f77","./views/dictionary/institutions/components/Sponsors.vue":"723e","./views/dictionary/institutions/index.vue":"6f0f","./views/dictionary/institutions/rindex.vue":"955d","./views/dictionary/newdictionary/bool/index.vue":"b034","./views/dictionary/newdictionary/components/DictionaryChild.vue":"cf221","./views/dictionary/newdictionary/components/DictionaryChildAddOrUpdateForm.vue":"ff85","./views/dictionary/newdictionary/components/DictionaryTypeConfigForm.vue":"fc57","./views/dictionary/newdictionary/config/index.vue":"2054","./views/dictionary/newdictionary/enum/index.vue":"6c83","./views/dictionary/newdictionary/index.vue":"2c2e","./views/dictionary/newdictionary/list/components/DictionaryChild.vue":"28b8","./views/dictionary/newdictionary/list/components/DictionaryChildAddOrUpdateForm.vue":"e1e6","./views/dictionary/newdictionary/list/components/DictionaryTypeConfigForm.vue":"eeec","./views/dictionary/newdictionary/list/index.vue":"1852","./views/dictionary/newdictionary/select/index.vue":"e327","./views/dictionary/newdictionary/setting/DictionaryTypeConfigForm.vue":"fc05","./views/dictionary/newdictionary/setting/index.vue":"be50","./views/dictionary/sign/components/SceneConfigForm.vue":"3e8b","./views/dictionary/sign/components/SceneList.vue":"7ee3","./views/dictionary/sign/components/SignTemplateForm.vue":"1f3d","./views/dictionary/sign/index.vue":"7abd","./views/dictionary/template/components/AddCriterion.vue":"337a","./views/dictionary/template/components/AddDICOMConfig.vue":"b8ae","./views/dictionary/template/components/Anonymization.vue":"02c9","./views/dictionary/template/components/ClinicalDataConfig.vue":"909f","./views/dictionary/template/components/ClinicalDataForm.vue":"592b","./views/dictionary/template/components/CriterionDictionary.vue":"f142","./views/dictionary/template/components/CriterionDictionaryConfig.vue":"6680","./views/dictionary/template/components/CriterionFormItem.vue":"5644","./views/dictionary/template/components/CriterionQuestionForm.vue":"923b","./views/dictionary/template/components/CriterionsBaseData.vue":"3609","./views/dictionary/template/components/CriterionsConfig.vue":"491a","./views/dictionary/template/components/CriterionsTmp.vue":"5adc","./views/dictionary/template/components/DictionaryTypeConfig.vue":"d82f","./views/dictionary/template/components/DictionaryTypeConfigForm.vue":"4e83","./views/dictionary/template/components/ECRF.vue":"df51","./views/dictionary/template/components/EfficacyAssessment.vue":"e09f","./views/dictionary/template/components/EfficacyAssessmentForm.vue":"0a58","./views/dictionary/template/components/EvaluationOfGlobalConfig.vue":"78f5","./views/dictionary/template/components/EvaluationOfOncologyConfig.vue":"aaa2","./views/dictionary/template/components/IncreaseFields.vue":"87d6","./views/dictionary/template/components/LesionTypeForm.vue":"4572","./views/dictionary/template/components/LesionTypeTbl.vue":"af70","./views/dictionary/template/components/MedicalAudit.vue":"2ae9","./views/dictionary/template/components/MedicalAuditForm.vue":"8839","./views/dictionary/template/components/OrganForm.vue":"abb1","./views/dictionary/template/components/OrgansTbl.vue":"4f10","./views/dictionary/template/components/QSFormItem.vue":"85de","./views/dictionary/template/components/QcQuestionForm.vue":"457a","./views/dictionary/template/components/QcQuestionPreview.vue":"d28b","./views/dictionary/template/components/QcQuestions.vue":"0a32","./views/dictionary/template/components/SettingForm.vue":"ff1e","./views/dictionary/template/components/TableQsForm.vue":"5591","./views/dictionary/template/components/TableQsList.vue":"06d8","./views/dictionary/template/components/TemplateForm.vue":"7f7d","./views/dictionary/template/email/components/AttachmentForm.vue":"ace7","./views/dictionary/template/email/components/AttachmentList.vue":"5651","./views/dictionary/template/email/components/EmailForm.vue":"3fdc","./views/dictionary/template/email/index.vue":"cc2e","./views/dictionary/template/index.vue":"b582","./views/dictionary/template/list.vue":"2db3","./views/dictionary/template/rindex.vue":"dc32","./views/dictionary/template/setting.vue":"b6cb","./views/dictionary/template/sign/components/SceneConfigForm.vue":"f76e","./views/dictionary/template/sign/components/SceneList.vue":"0848","./views/dictionary/template/sign/components/SignTemplateForm.vue":"953c","./views/dictionary/template/sign/index.vue":"8455","./views/email-recompose/index.vue":"9244","./views/enrollmentTrials/Reading/ad/AD.vue":"3ce7","./views/enrollmentTrials/Reading/ad/adTask.vue":"c662","./views/enrollmentTrials/Reading/global/Global.vue":"d758","./views/enrollmentTrials/Reading/global/globalTask.vue":"88c6","./views/enrollmentTrials/Reading/index.vue":"a82a","./views/enrollmentTrials/Reading/routerView.vue":"db38","./views/enrollmentTrials/Reading/tp/TP.vue":"3da5","./views/enrollmentTrials/Reading/tp/baselineTask.vue":"414c","./views/enrollmentTrials/Reading/tp/visitTask.vue":"54b7","./views/enrollmentTrials/index.vue":"2cc1","./views/error.vue":"0636","./views/financials/analysis/components/ReviewerAnalysis.vue":"e04d","./views/financials/analysis/components/TrialAnanlysis.vue":"e6fa","./views/financials/analysis/index.vue":"2610","./views/financials/index.vue":"3983","./views/financials/monthlyPayment/adjustment.vue":"1653","./views/financials/monthlyPayment/components/AdjustmentForm.vue":"6437","./views/financials/monthlyPayment/components/ExchangeRate.vue":"9a4e","./views/financials/monthlyPayment/components/RankBasedRates.vue":"f9dc","./views/financials/monthlyPayment/components/RevenusForm.vue":"e80e","./views/financials/monthlyPayment/components/ReviewersData.vue":"eef3","./views/financials/monthlyPayment/components/TrialsData.vue":"4ef0","./views/financials/monthlyPayment/components/TrialsDataReviewers.vue":"e351","./views/financials/monthlyPayment/components/TrialsDataReviewersForm.vue":"32fb","./views/financials/monthlyPayment/components/UploadSow.vue":"f9ec","./views/financials/monthlyPayment/components/VolumeReward.vue":"4f6d","./views/financials/monthlyPayment/detail.vue":"9ba0","./views/financials/monthlyPayment/index.vue":"397a","./views/financials/monthlyPayment/setting.vue":"e694","./views/financials/paymentHistory/components/AdjustmentList.vue":"aa48","./views/financials/paymentHistory/components/PaymentList.vue":"0228","./views/financials/paymentHistory/detail.vue":"ebd0","./views/financials/paymentHistory/index.vue":"e297","./views/financials/revenues/components/RevenusForm.vue":"7487","./views/financials/revenues/index.vue":"4463","./views/financials/revenues/setting.vue":"a5d0","./views/forgetpassword/index.vue":"c877","./views/joinVerify/index.vue":"15cb","./views/login/index.vue":"9ed6","./views/login/topLang.vue":"8105","./views/none-dicom-show/components/form.vue":"0067","./views/none-dicom-show/components/image-viewer.vue":"bf34","./views/none-dicom-show/components/preview.vue":"bcd4","./views/none-dicom-show/index.vue":"55d9","./views/none-dicom-show/multiple.vue":"1b3f","./views/none-dicom-show/single.vue":"6562","./views/recompose/index.vue":"6d45","./views/redirect.vue":"9b8f","./views/redirect/index.vue":"ef3c","./views/research/components/BaseInfo.vue":"cd95","./views/research/components/EquipmentForm.vue":"0a53","./views/research/components/EquipmentList.vue":"b853","./views/research/components/ParticipantForm.vue":"536f","./views/research/components/ParticipantList.vue":"6bdc","./views/research/form.vue":"027d","./views/research/login.vue":"1e9f","./views/resumeInfo/components/Agreements.vue":"14e2","./views/resumeInfo/components/BasicInfo.vue":"3a1d","./views/resumeInfo/components/Comment.vue":"0b29","./views/resumeInfo/components/Credentials.vue":"aacc","./views/resumeInfo/components/EducationTraining.vue":"451c","./views/resumeInfo/components/Employment.vue":"b78b","./views/resumeInfo/components/ResearchPublication.vue":"4e13","./views/resumeInfo/components/Resume.vue":"89ff","./views/resumeInfo/components/Specialty.vue":"7f1c","./views/resumeInfo/components/StatusInfo.vue":"2c29","./views/resumeInfo/components/TrialExperience.vue":"b300","./views/resumeInfo/index.vue":"e2f5","./views/reviewers/ReviewersResearch.vue":"0e0d","./views/reviewers/ReviewersResearchForm.vue":"9e95","./views/reviewers/components/Agreements.vue":"6cce","./views/reviewers/components/BasicInfo.vue":"383e","./views/reviewers/components/Credentials.vue":"63a6","./views/reviewers/components/EducationTraining.vue":"2021","./views/reviewers/components/Employment.vue":"cf4f","./views/reviewers/components/GcpCertificate.vue":"642b","./views/reviewers/components/ResearchPublication.vue":"77f5","./views/reviewers/components/Resumes.vue":"4aa2","./views/reviewers/components/ReviewerList.vue":"8838","./views/reviewers/components/Setting.vue":"ca86","./views/reviewers/components/Specialty.vue":"ff7e","./views/reviewers/components/TrialExperience.vue":"3290","./views/reviewers/detail.vue":"6452","./views/reviewers/edit.vue":"6fdc","./views/reviewers/index.vue":"f266","./views/reviewers/new.vue":"27bd","./views/reviewers/trialStats.vue":"0638","./views/share/images.vue":"3902","./views/statistics/components/ByReviewer.vue":"9b06","./views/statistics/components/ByTrial.vue":"f5e2","./views/statistics/components/EnrollmentsStats.vue":"f930","./views/statistics/components/EnrollmentsStatsByReviewer.vue":"a723","./views/statistics/components/ParticipatesStats.vue":"94b3","./views/statistics/components/TrialEnrollmentsStats.vue":"09a2","./views/statistics/components/WorkloadStats.vue":"1e25","./views/statistics/index.vue":"ac67","./views/system/menu/index.vue":"f794","./views/system/notice/components/from.vue":"3577","./views/system/notice/index.vue":"202d","./views/system/role/components/RoleForm.vue":"de9d","./views/system/role/components/RoleFunction.vue":"9859","./views/system/role/components/RoleMenu.vue":"7fa2","./views/system/role/index.vue":"70eb","./views/system/user/add/index.vue":"1e9c","./views/system/user/components/Account.vue":"91e9","./views/system/user/components/UserInfo.vue":"dcb4","./views/system/user/edit/index.vue":"5777","./views/system/user/index.vue":"1f34","./views/system/user/list/index.vue":"e135","./views/test/videos/index.vue":"8aef","./views/trials/components/SignForm.vue":"2dd1","./views/trials/components/newSignForm.vue":"179b","./views/trials/hot-keys/components/HotKeyInput.vue":"e229","./views/trials/hot-keys/components/HotKeysList.vue":"a6a8","./views/trials/hot-keys/index.vue":"7840","./views/trials/trials-layout/components/noticeMarquee.vue":"381b","./views/trials/trials-layout/components/topLang.vue":"5673","./views/trials/trials-layout/components/trialsMain.vue":"dee8","./views/trials/trials-layout/components/trialsNavbar.vue":"0b74","./views/trials/trials-layout/index.vue":"e193","./views/trials/trials-list/components/SignForm.vue":"25f2","./views/trials/trials-list/components/TrialForm.vue":"ce7a","./views/trials/trials-list/components/TrialStatusForm.vue":"038b","./views/trials/trials-list/index.vue":"9bd1","./views/trials/trials-myinfo/index.vue":"acd7","./views/trials/trials-notice/index.vue":"a342","./views/trials/trials-panel/attachments/SPMEnrollment/components/Approval.vue":"7d1c","./views/trials/trials-panel/attachments/SPMEnrollment/index.vue":"c458","./views/trials/trials-panel/attachments/attachment-management/index.vue":"c6ce","./views/trials/trials-panel/attachments/enrollment/components/Approval.vue":"199c","./views/trials/trials-panel/attachments/enrollment/components/Confirmation.vue":"0f07","./views/trials/trials-panel/attachments/enrollment/components/Selection.vue":"3644","./views/trials/trials-panel/attachments/enrollment/components/Submission.vue":"be8f","./views/trials/trials-panel/attachments/enrollment/index.vue":"909c","./views/trials/trials-panel/attachments/index.vue":"b235","./views/trials/trials-panel/attachments/reReading-tracking/index.vue":"fffb","./views/trials/trials-panel/attachments/self-attachment/components/SignForm.vue":"1d64","./views/trials/trials-panel/attachments/self-attachment/index.vue":"9ab6","./views/trials/trials-panel/attachments/site-research/components/users.vue":"b768","./views/trials/trials-panel/attachments/site-research/index.vue":"c109d","./views/trials/trials-panel/clinical-data/index.vue":"51cc","./views/trials/trials-panel/components/SignForm.vue":"6cc7","./views/trials/trials-panel/enrolled-reviewers/components/UploadAcksow.vue":"b6b7","./views/trials/trials-panel/enrolled-reviewers/enroll/index.vue":"15b0","./views/trials/trials-panel/enrolled-reviewers/index.vue":"324a","./views/trials/trials-panel/enrolled-reviewers/list/components/UploadAcksow.vue":"985e","./views/trials/trials-panel/enrolled-reviewers/list/index.vue":"0a45","./views/trials/trials-panel/enrolled-reviewers/resume/index.vue":"744a","./views/trials/trials-panel/enrolled-reviewers/stats/components/AddWorkload.vue":"1f53","./views/trials/trials-panel/enrolled-reviewers/stats/index.vue":"2acd","./views/trials/trials-panel/index.vue":"c6fb","./views/trials/trials-panel/reading/ad-review/index.vue":"7962","./views/trials/trials-panel/reading/clinical-data/index.vue":"421a","./views/trials/trials-panel/reading/consistency-analysis/components/DoctorConsistentRuleSubjectTable.vue":"5608","./views/trials/trials-panel/reading/consistency-analysis/components/GroupConsistentRuleSubjectTable.vue":"3114","./views/trials/trials-panel/reading/consistency-analysis/components/ReaderRulesForm.vue":"cbb3","./views/trials/trials-panel/reading/consistency-analysis/index.vue":"aa1c","./views/trials/trials-panel/reading/dicoms/components/AdditionalAssessment.vue":"c7fc","./views/trials/trials-panel/reading/dicoms/components/AssessmentFormItem.vue":"4a1d","./views/trials/trials-panel/reading/dicoms/components/CustomWwwcForm.vue":"4303","./views/trials/trials-panel/reading/dicoms/components/DicomCanvas.vue":"4663","./views/trials/trials-panel/reading/dicoms/components/DicomPreview.vue":"bd1b","./views/trials/trials-panel/reading/dicoms/components/DicomViewer.vue":"f818","./views/trials/trials-panel/reading/dicoms/components/HotKeyInput.vue":"4c4f","./views/trials/trials-panel/reading/dicoms/components/Hotkeys.vue":"abff","./views/trials/trials-panel/reading/dicoms/components/NoneDicomsCanvas.vue":"9843","./views/trials/trials-panel/reading/dicoms/components/NoneDicomsViewer.vue":"64f9","./views/trials/trials-panel/reading/dicoms/components/PCWG/QuestionForm.vue":"a588","./views/trials/trials-panel/reading/dicoms/components/PCWG/QuestionList.vue":"bfd8","./views/trials/trials-panel/reading/dicoms/components/QuestionItem.vue":"6caf","./views/trials/trials-panel/reading/dicoms/components/Questions.vue":"d862","./views/trials/trials-panel/reading/dicoms/components/ReadPage.vue":"689e","./views/trials/trials-panel/reading/dicoms/components/Recist/QuestionForm.vue":"1b24","./views/trials/trials-panel/reading/dicoms/components/Recist/QuestionList.vue":"8bd9","./views/trials/trials-panel/reading/dicoms/components/ReportPage.vue":"96a9","./views/trials/trials-panel/reading/dicoms/components/StudyList.vue":"b686","./views/trials/trials-panel/reading/dicoms/components/questions/PCWG3Questions.vue":"148a","./views/trials/trials-panel/reading/dicoms/components/questions/PCWG3QuestionsForm.vue":"7850","./views/trials/trials-panel/reading/dicoms/customize/CustomizeDicomCanvas.vue":"4ed2","./views/trials/trials-panel/reading/dicoms/customize/CustomizeDicomPreview.vue":"2a37","./views/trials/trials-panel/reading/dicoms/customize/CustomizeDicomViewer.vue":"e4ac","./views/trials/trials-panel/reading/dicoms/customize/CustomizeMeasurementList.vue":"9bb8","./views/trials/trials-panel/reading/dicoms/customize/CustomizeNoneDicomsCanvas.vue":"db6f","./views/trials/trials-panel/reading/dicoms/customize/CustomizeNoneDicomsViewer.vue":"5e9c","./views/trials/trials-panel/reading/dicoms/customize/CustomizeQuestionFormItem.vue":"b572","./views/trials/trials-panel/reading/dicoms/customize/CustomizeQuestionItem.vue":"0bb1","./views/trials/trials-panel/reading/dicoms/customize/CustomizeQuestionTableFormItem.vue":"8ae4","./views/trials/trials-panel/reading/dicoms/customize/CustomizeQuestionsPreview.vue":"f33a","./views/trials/trials-panel/reading/dicoms/customize/CustomizeReadPage.vue":"d34b","./views/trials/trials-panel/reading/dicoms/customize/CustomizeReportPage.vue":"196d","./views/trials/trials-panel/reading/dicoms/customize/CustomizeReportPageUpload.vue":"4176","./views/trials/trials-panel/reading/dicoms/customize/CustomizeStudyList.vue":"2048","./views/trials/trials-panel/reading/dicoms/index.vue":"4e36","./views/trials/trials-panel/reading/dicoms/none-dicoms.vue":"83f6","./views/trials/trials-panel/reading/global-review/components/EditGlobalForm.vue":"79ed","./views/trials/trials-panel/reading/global-review/components/PCWG3Table.vue":"9750","./views/trials/trials-panel/reading/global-review/components/PGWC3EditGlobalForm.vue":"676b","./views/trials/trials-panel/reading/global-review/components/RecistTable.vue":"b3ae","./views/trials/trials-panel/reading/global-review/index.vue":"6501","./views/trials/trials-panel/reading/index.vue":"fc4b","./views/trials/trials-panel/reading/medical-feedback/components/111.vue":"3f1c","./views/trials/trials-panel/reading/medical-feedback/components/ChatForm.vue":"ea33","./views/trials/trials-panel/reading/medical-feedback/components/FeedbackForm.vue":"a7ea","./views/trials/trials-panel/reading/medical-feedback/index.vue":"9762","./views/trials/trials-panel/reading/mim-medical-audit/components/AdReview.vue":"02c3","./views/trials/trials-panel/reading/mim-medical-audit/components/ChatForm.vue":"3866","./views/trials/trials-panel/reading/mim-medical-audit/components/CloseQC.vue":"0e69","./views/trials/trials-panel/reading/mim-medical-audit/components/Conclusions.vue":"fec6","./views/trials/trials-panel/reading/mim-medical-audit/components/GlobalReview.vue":"cdce","./views/trials/trials-panel/reading/mim-medical-audit/components/HistoricAssessment.vue":"d0f9","./views/trials/trials-panel/reading/mim-medical-audit/components/Issues.vue":"3d8c","./views/trials/trials-panel/reading/mim-medical-audit/components/MedicalAudit.vue":"a93a","./views/trials/trials-panel/reading/mim-medical-audit/components/OncologyReview.vue":"919e","./views/trials/trials-panel/reading/mim-medical-audit/components/VisitReview.vue":"46f5","./views/trials/trials-panel/reading/mim-medical-audit/index.vue":"9d72","./views/trials/trials-panel/reading/none-dicoms/components/AdEcrf.vue":"ffa5","./views/trials/trials-panel/reading/none-dicoms/components/AdReview.vue":"7459","./views/trials/trials-panel/reading/none-dicoms/components/Criterions.vue":"1b13","./views/trials/trials-panel/reading/none-dicoms/components/ECRF.vue":"26d1","./views/trials/trials-panel/reading/none-dicoms/components/EditGlobalForm.vue":"fd1a","./views/trials/trials-panel/reading/none-dicoms/components/FormItem.vue":"0108","./views/trials/trials-panel/reading/none-dicoms/components/GlobalReview.vue":"1493","./views/trials/trials-panel/reading/none-dicoms/components/OncologyReview.vue":"4ae4","./views/trials/trials-panel/reading/none-dicoms/components/VisitReview.vue":"2dff","./views/trials/trials-panel/reading/none-dicoms/index.vue":"cfe0","./views/trials/trials-panel/reading/oncology-review/index.vue":"b706","./views/trials/trials-panel/reading/pm-medical-feedback/components/AddOrEditFilter.vue":"d4982","./views/trials/trials-panel/reading/pm-medical-feedback/components/AssignMedicalReviewTask.vue":"48cc","./views/trials/trials-panel/reading/pm-medical-feedback/components/GenerateMedicalReviewTaskList.vue":"8691","./views/trials/trials-panel/reading/pm-medical-feedback/components/ReAssignMedicalReviewTask.vue":"b889","./views/trials/trials-panel/reading/pm-medical-feedback/index.vue":"cab9","./views/trials/trials-panel/reading/reReading-tracking/index.vue":"e87a","./views/trials/trials-panel/reading/read-task-allocation/components/AddOrEditTaskAllocationRule.vue":"c07b","./views/trials/trials-panel/reading/read-task-allocation/components/ClearAudienceList.vue":"e3c3","./views/trials/trials-panel/reading/read-task-allocation/components/ManualAllocationTable.vue":"6697","./views/trials/trials-panel/reading/read-task-allocation/index.vue":"6e6e","./views/trials/trials-panel/reading/read-task/index.vue":"6f5f","./views/trials/trials-panel/reading/reading-page/index.vue":"faa2","./views/trials/trials-panel/reading/reading-task/components/FormItem.vue":"bd41","./views/trials/trials-panel/reading/reading-task/components/QuestionForm.vue":"35dd","./views/trials/trials-panel/reading/reading-task/index.vue":"75e8","./views/trials/trials-panel/reading/reading-tracking/components/RefereeRules.vue":"de86","./views/trials/trials-panel/reading/reading-tracking/components/exportList.vue":"5248","./views/trials/trials-panel/reading/reading-tracking/index.vue":"6ae8","./views/trials/trials-panel/reading/referee-allocation/components/AddOrEditTaskAllocationRule.vue":"eca8","./views/trials/trials-panel/reading/referee-allocation/index.vue":"99e4","./views/trials/trials-panel/reading/reread-task/index.vue":"1918","./views/trials/trials-panel/reading/task-allocation/components/AddOrEditTaskAllocationRule.vue":"853a","./views/trials/trials-panel/reading/task-allocation/index.vue":"3ca6","./views/trials/trials-panel/setting/attachment/components/attachmentForm.vue":"2bb4","./views/trials/trials-panel/setting/attachment/components/previewFile.vue":"fa84","./views/trials/trials-panel/setting/attachment/index.vue":"8cfb","./views/trials/trials-panel/setting/email-manage/components/EmailForm.vue":"2a0d","./views/trials/trials-panel/setting/email-manage/components/EmailList.vue":"fb6c","./views/trials/trials-panel/setting/email-manage/index.vue":"3e5f","./views/trials/trials-panel/setting/index.vue":"1d19","./views/trials/trials-panel/setting/medical-audit/components/DefaultQS.vue":"a7ad","./views/trials/trials-panel/setting/medical-audit/components/FormItem.vue":"9c7e","./views/trials/trials-panel/setting/medical-audit/components/QSForm.vue":"5582","./views/trials/trials-panel/setting/medical-audit/components/QuestionTpl.vue":"7612","./views/trials/trials-panel/setting/medical-audit/components/QuestionsPreview.vue":"c94a","./views/trials/trials-panel/setting/medical-audit/index.vue":"2ea9","./views/trials/trials-panel/setting/personnel-manage/components/crcForm.vue":"435b","./views/trials/trials-panel/setting/personnel-manage/components/customSiteForm.vue":"4165","./views/trials/trials-panel/setting/personnel-manage/components/site.vue":"a082","./views/trials/trials-panel/setting/personnel-manage/components/siteForm.vue":"dcaf","./views/trials/trials-panel/setting/personnel-manage/components/staff.vue":"b02f","./views/trials/trials-panel/setting/personnel-manage/components/staffExternalAdd.vue":"de99","./views/trials/trials-panel/setting/personnel-manage/components/staffExternalForm.vue":"2c9b","./views/trials/trials-panel/setting/personnel-manage/components/staffForm.vue":"1a33","./views/trials/trials-panel/setting/personnel-manage/index.vue":"c637","./views/trials/trials-panel/setting/qc-question/components/DefaultQS.vue":"14e4","./views/trials/trials-panel/setting/qc-question/components/QsForm.vue":"2b4d","./views/trials/trials-panel/setting/qc-question/index.vue":"7465","./views/trials/trials-panel/setting/reading-unit/components/ArbitrationRules.vue":"317d","./views/trials/trials-panel/setting/reading-unit/components/BaseDataConfig.vue":"4dc3","./views/trials/trials-panel/setting/reading-unit/components/CriterionDictionary.vue":"2e99","./views/trials/trials-panel/setting/reading-unit/components/CriterionDictionaryConfig.vue":"80c8","./views/trials/trials-panel/setting/reading-unit/components/DefaultOrgans.vue":"b639","./views/trials/trials-panel/setting/reading-unit/components/DictionaryTypeConfig.vue":"4d11","./views/trials/trials-panel/setting/reading-unit/components/DictionaryTypeConfigForm.vue":"ab11","./views/trials/trials-panel/setting/reading-unit/components/GlobalReading.vue":"6469","./views/trials/trials-panel/setting/reading-unit/components/OncologyForm.vue":"18e9","./views/trials/trials-panel/setting/reading-unit/components/OrgansTbl.vue":"ba8d","./views/trials/trials-panel/setting/reading-unit/components/PageBreakForm.vue":"3ba1","./views/trials/trials-panel/setting/reading-unit/components/PageBreakList.vue":"f4bc","./views/trials/trials-panel/setting/reading-unit/components/QuestionFormItem.vue":"a92b","./views/trials/trials-panel/setting/reading-unit/components/QuestionTableFormItem.vue":"98508","./views/trials/trials-panel/setting/reading-unit/components/QuestionsForm.vue":"72a8","./views/trials/trials-panel/setting/reading-unit/components/QuestionsList.vue":"b147","./views/trials/trials-panel/setting/reading-unit/components/QuestionsPreview.vue":"0b82","./views/trials/trials-panel/setting/reading-unit/components/ReadingCriterions.vue":"411cc","./views/trials/trials-panel/setting/reading-unit/components/ReadingRules.vue":"3557","./views/trials/trials-panel/setting/reading-unit/components/TableQsForm.vue":"a73c1","./views/trials/trials-panel/setting/reading-unit/components/TableQsList.vue":"7faa","./views/trials/trials-panel/setting/reading-unit/index.vue":"35fc","./views/trials/trials-panel/setting/trial-config/components/clinicalDataForm.vue":"f0e0","./views/trials/trials-panel/setting/trial-config/components/criterionConfig.vue":"3fa8","./views/trials/trials-panel/setting/trial-config/components/criterionQuestionForm.vue":"a031","./views/trials/trials-panel/setting/trial-config/components/logicalConfig.vue":"c993","./views/trials/trials-panel/setting/trial-config/components/processConfig.vue":"65d1","./views/trials/trials-panel/setting/trial-config/components/questions.vue":"15c0","./views/trials/trials-panel/setting/trial-config/components/urgentConfig.vue":"b029","./views/trials/trials-panel/setting/trial-config/index.vue":"fb5b","./views/trials/trials-panel/setting/visit-plan/components/visitPlanAdjust.vue":"4bba","./views/trials/trials-panel/setting/visit-plan/components/visitPlanForm.vue":"781d","./views/trials/trials-panel/setting/visit-plan/index.vue":"5fda7","./views/trials/trials-panel/site/index.vue":"2ddb","./views/trials/trials-panel/study/components/nonDicomPreview.vue":"a29f","./views/trials/trials-panel/study/index.vue":"752f","./views/trials/trials-panel/subject/index.vue":"98b0","./views/trials/trials-panel/subject/reading-period/components/AddOrEditCD.vue":"2eec","./views/trials/trials-panel/subject/reading-period/components/AddOrEditPR.vue":"8288","./views/trials/trials-panel/subject/reading-period/components/AddSubjectRP.vue":"36b5","./views/trials/trials-panel/subject/reading-period/components/ClinicalData.vue":"ba63","./views/trials/trials-panel/subject/reading-period/components/EditPRStatus.vue":"e5a3","./views/trials/trials-panel/subject/reading-period/components/PreviewCD.vue":"aaf6","./views/trials/trials-panel/subject/reading-period/components/RPList.vue":"f939","./views/trials/trials-panel/subject/reading-period/components/RelationPRList.vue":"607a","./views/trials/trials-panel/subject/reading-period/components/Verification.vue":"e540","./views/trials/trials-panel/subject/reading-period/index.vue":"8403","./views/trials/trials-panel/subject/subject-list/components/MessageTable.vue":"c611","./views/trials/trials-panel/subject/subject-list/components/SubjectStatusForm.vue":"e054","./views/trials/trials-panel/subject/subject-list/components/SubjectsForm.vue":"ebaf","./views/trials/trials-panel/subject/subject-list/index.vue":"9cc9","./views/trials/trials-panel/trial-summary/audit-record/index.vue":"b8d4","./views/trials/trials-panel/trial-summary/index.vue":"b191","./views/trials/trials-panel/trial-summary/trial-information/index.vue":"eb0a","./views/trials/trials-panel/trial-summary/upload-monitor/index.vue":"da52","./views/trials/trials-panel/visit/consistency-check/components/consistencyCheckForm.vue":"cb7b","./views/trials/trials-panel/visit/consistency-check/components/crcSendMessage.vue":"1dfe","./views/trials/trials-panel/visit/consistency-check/components/crcSendMessageNew.vue":"d38e","./views/trials/trials-panel/visit/consistency-check/components/uploadExcel.vue":"7234","./views/trials/trials-panel/visit/consistency-check/index.vue":"a015","./views/trials/trials-panel/visit/crc-question/components/chatForm.vue":"c1c6","./views/trials/trials-panel/visit/crc-question/index.vue":"da2b","./views/trials/trials-panel/visit/crc-upload/components/SubjectsForm.vue":"0744","./views/trials/trials-panel/visit/crc-upload/components/historyChat.vue":"4c58","./views/trials/trials-panel/visit/crc-upload/components/previewFiles.vue":"e4b9","./views/trials/trials-panel/visit/crc-upload/components/previewVisitNoneDicomFiles.vue":"1acd","./views/trials/trials-panel/visit/crc-upload/components/previousFiles.vue":"5ca9","./views/trials/trials-panel/visit/crc-upload/components/previousOther.vue":"b244","./views/trials/trials-panel/visit/crc-upload/components/previousRadiotherapy.vue":"0b11","./views/trials/trials-panel/visit/crc-upload/components/previousSurgery.vue":"d205","./views/trials/trials-panel/visit/crc-upload/components/studyInfo.vue":"fa44","./views/trials/trials-panel/visit/crc-upload/components/uploadClinicalData.vue":"dda6","./views/trials/trials-panel/visit/crc-upload/components/uploadDicomFiles.vue":"0280","./views/trials/trials-panel/visit/crc-upload/components/uploadNonDicomFiles.vue":"4ebb","./views/trials/trials-panel/visit/crc-upload/components/visitForm.vue":"5572","./views/trials/trials-panel/visit/crc-upload/index.vue":"d592","./views/trials/trials-panel/visit/forward-list/index.vue":"a22aa","./views/trials/trials-panel/visit/index.vue":"8a61","./views/trials/trials-panel/visit/qc-check/components/chatForm.vue":"901f","./views/trials/trials-panel/visit/qc-check/components/clinicalData.vue":"2fd0","./views/trials/trials-panel/visit/qc-check/components/dicomFiles.vue":"283c","./views/trials/trials-panel/visit/qc-check/components/qsFormItem.vue":"7703","./views/trials/trials-panel/visit/qc-check/components/qualityAssurance.vue":"97bd","./views/trials/trials-panel/visit/qc-check/components/questionForm.vue":"c1b0","./views/trials/trials-panel/visit/qc-check/components/questions.vue":"6d22","./views/trials/trials-panel/visit/qc-check/index.vue":"5d6b","./views/trials/trials-panel/visit/qc-question/index.vue":"f5f3","./views/trials/trials-workbench/components/needSignSysDoc.vue":"dfb2","./views/trials/trials-workbench/components/needSignTrialDoc.vue":"76ad","./views/trials/trials-workbench/components/panelCount.vue":"9ba3","./views/trials/trials-workbench/components/siteResearch.vue":"3f73","./views/trials/trials-workbench/index.vue":"6173","./views/user/account.vue":"3ce3","./views/user/editInfo.vue":"a808","./views/user/myInfo.vue":"d3de"};function a(e){var t=r(e);return i(t)}function r(e){var t=n[e];if(!(t+1)){var i=new Error("Cannot find module '"+e+"'");throw i.code="MODULE_NOT_FOUND",i}return t}a.keys=function(){return Object.keys(n)},a.resolve=r,e.exports=a,a.id="692e"},6932:function(e,t,i){var n=i("6cb7");n.registerSubTypeDefaulter("dataZoom",(function(){return"slider"}))},69323:function(e,t,i){"use strict";i("acc3")},"696c":function(e,t,i){},"697e":function(e,t,i){var n=i("4e08"),a=(n.__DEV__,i("6d8b")),r=i("18c0"),o=i("89e3"),s=i("e0d8"),l=i("3842"),c=i("9d57"),u=c.prepareLayoutBarSeries,d=c.makeColumnLayout,f=c.retrieveColumnLayout,h=i("9850");function p(e,t){var i,n,r,o=e.type,s=t.getMin(),c=t.getMax(),f=e.getExtent();"ordinal"===o?i=t.getCategories().length:(n=t.get("boundaryGap"),a.isArray(n)||(n=[n||0,n||0]),"boolean"===typeof n[0]&&(n=[0,0]),n[0]=l.parsePercent(n[0],1),n[1]=l.parsePercent(n[1],1),r=f[1]-f[0]||Math.abs(f[0])),"dataMin"===s?s=f[0]:"function"===typeof s&&(s=s({min:f[0],max:f[1]})),"dataMax"===c?c=f[1]:"function"===typeof c&&(c=c({min:f[0],max:f[1]}));var h=null!=s,p=null!=c;null==s&&(s="ordinal"===o?i?0:NaN:f[0]-n[0]*r),null==c&&(c="ordinal"===o?i?i-1:NaN:f[1]+n[1]*r),(null==s||!isFinite(s))&&(s=NaN),(null==c||!isFinite(c))&&(c=NaN),e.setBlank(a.eqNaN(s)||a.eqNaN(c)||"ordinal"===o&&!e.getOrdinalMeta().categories.length),t.getNeedCrossZero()&&(s>0&&c>0&&!h&&(s=0),s<0&&c<0&&!p&&(c=0));var g=t.ecModel;if(g&&"time"===o){var v,b=u("bar",g);if(a.each(b,(function(e){v|=e.getBaseAxis()===t.axis})),v){var y=d(b),w=m(s,c,t,y);s=w.min,c=w.max}}return{extent:[s,c],fixMin:h,fixMax:p}}function m(e,t,i,n){var r=i.axis.getExtent(),o=r[1]-r[0],s=f(n,i.axis);if(void 0===s)return{min:e,max:t};var l=1/0;a.each(s,(function(e){l=Math.min(e.offset,l)}));var c=-1/0;a.each(s,(function(e){c=Math.max(e.offset+e.width,c)})),l=Math.abs(l),c=Math.abs(c);var u=l+c,d=t-e,h=1-(l+c)/o,p=d/h-d;return t+=p*(c/u),e-=p*(l/u),{min:e,max:t}}function g(e,t){var i=p(e,t),n=i.extent,a=t.get("splitNumber");"log"===e.type&&(e.base=t.get("logBase"));var r=e.type;e.setExtent(n[0],n[1]),e.niceExtent({splitNumber:a,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:"interval"===r||"time"===r?t.get("minInterval"):null,maxInterval:"interval"===r||"time"===r?t.get("maxInterval"):null});var o=t.get("interval");null!=o&&e.setInterval&&e.setInterval(o)}function v(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new r(e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),[1/0,-1/0]);case"value":return new o;default:return(s.getClass(t)||o).create(e)}}function b(e){var t=e.scale.getExtent(),i=t[0],n=t[1];return!(i>0&&n>0||i<0&&n<0)}function y(e){var t=e.getLabelModel().get("formatter"),i="category"===e.type?e.scale.getExtent()[0]:null;return"string"===typeof t?(t=function(t){return function(i){return i=e.scale.getLabel(i),t.replace("{value}",null!=i?i:"")}}(t),t):"function"===typeof t?function(n,a){return null!=i&&(a=n-i),t(w(e,n),a)}:function(t){return e.scale.getLabel(t)}}function w(e,t){return"category"===e.type?e.scale.getLabel(t):t}function _(e){var t=e.model,i=e.scale;if(t.get("axisLabel.show")&&!i.isBlank()){var n,a,r="category"===e.type,o=i.getExtent();r?a=i.count():(n=i.getTicks(),a=n.length);var s,l=e.getLabelModel(),c=y(e),u=1;a>40&&(u=Math.ceil(a/40));for(var d=0;d<a;d+=u){var f=n?n[d]:o[0]+d,h=c(f),p=l.getTextRect(h),m=I(p,l.get("rotate")||0);s?s.union(m):s=m}return s}}function I(e,t){var i=t*Math.PI/180,n=e.plain(),a=n.width,r=n.height,o=a*Math.abs(Math.cos(i))+Math.abs(r*Math.sin(i)),s=a*Math.abs(Math.sin(i))+Math.abs(r*Math.cos(i)),l=new h(n.x,n.y,o,s);return l}function x(e){var t=e.get("interval");return null==t?"auto":t}function S(e){return"category"===e.type&&0===x(e.getLabelModel())}i("216a"),i("8c2a"),t.getScaleExtent=p,t.niceScaleExtent=g,t.createScaleByModel=v,t.ifAxisCrossZero=b,t.makeLabelFormatter=y,t.getAxisRawValue=w,t.estimateLabelUnionRect=_,t.getOptionCategoryInterval=x,t.shouldShowAllLabels=S},"697e7":function(e,t,i){var n=i("de00"),a=i("22d1"),r=i("6d8b"),o=i("d2cf"),s=i("afa0"),l=i("ed21"),c=i("30a3"),u=i("cdaa"),d=!a.canvasSupported,f={canvas:l},h={},p="4.3.2";function m(e,t){var i=new w(n(),e,t);return h[i.id]=i,i}function g(e){if(e)e.dispose();else{for(var t in h)h.hasOwnProperty(t)&&h[t].dispose();h={}}return this}function v(e){return h[e]}function b(e,t){f[e]=t}function y(e){delete h[e]}var w=function(e,t,i){i=i||{},this.dom=t,this.id=e;var n=this,l=new s,h=i.renderer;if(d){if(!f.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");h="vml"}else h&&f[h]||(h="canvas");var p=new f[h](t,l,i,e);this.storage=l,this.painter=p;var m=a.node||a.worker?null:new u(p.getViewportRoot(),p.root);this.handler=new o(l,p,m,p.root),this.animation=new c({stage:{update:r.bind(this.flush,this)}}),this.animation.start(),this._needsRefresh;var g=l.delFromStorage,v=l.addToStorage;l.delFromStorage=function(e){g.call(l,e),e&&e.removeSelfFromZr(n)},l.addToStorage=function(e){v.call(l,e),e.addSelfToZr(n)}};w.prototype={constructor:w,getId:function(){return this.id},add:function(e){this.storage.addRoot(e),this._needsRefresh=!0},remove:function(e){this.storage.delRoot(e),this._needsRefresh=!0},configLayer:function(e,t){this.painter.configLayer&&this.painter.configLayer(e,t),this._needsRefresh=!0},setBackgroundColor:function(e){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh(),this._needsRefresh=this._needsRefreshHover=!1},refresh:function(){this._needsRefresh=!0},flush:function(){var e;this._needsRefresh&&(e=!0,this.refreshImmediately()),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately()),e&&this.trigger("rendered")},addHover:function(e,t){if(this.painter.addHover){var i=this.painter.addHover(e,t);return this.refreshHover(),i}},removeHover:function(e){this.painter.removeHover&&(this.painter.removeHover(e),this.refreshHover())},clearHover:function(){this.painter.clearHover&&(this.painter.clearHover(),this.refreshHover())},refreshHover:function(){this._needsRefreshHover=!0},refreshHoverImmediately:function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.refreshHover()},resize:function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter.getWidth()},getHeight:function(){return this.painter.getHeight()},pathToImage:function(e,t){return this.painter.pathToImage(e,t)},setCursorStyle:function(e){this.handler.setCursorStyle(e)},findHover:function(e,t){return this.handler.findHover(e,t)},on:function(e,t,i){this.handler.on(e,t,i)},off:function(e,t){this.handler.off(e,t)},trigger:function(e,t){this.handler.trigger(e,t)},clear:function(){this.storage.delRoot(),this.painter.clear()},dispose:function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,y(this.id)}},t.version=p,t.init=m,t.dispose=g,t.getInstance=v,t.registerPainter=b},"69ff":function(e,t,i){var n=i("6d8b"),a=n.each,r=n.map,o=n.isFunction,s=n.createHashMap,l=n.noop,c=i("f47d"),u=c.createTask,d=i("8918"),f=d.getUID,h=i("7e63"),p=i("843e"),m=i("e0d3"),g=m.normalizeToArray;function v(e,t,i,n){this.ecInstance=e,this.api=t,this.unfinished;i=this._dataProcessorHandlers=i.slice(),n=this._visualHandlers=n.slice();this._allHandlers=i.concat(n),this._stageTaskMap=s()}var b=v.prototype;function y(e,t,i,n,r){var o;function s(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}r=r||{},a(t,(function(t,a){if(!r.visualType||r.visualType===t.visualType){var l=e._stageTaskMap.get(t.uid),c=l.seriesTaskMap,u=l.overallTask;if(u){var d,f=u.agentStubMap;f.each((function(e){s(r,e)&&(e.dirty(),d=!0)})),d&&u.dirty(),w(u,n);var h=e.getPerformArgs(u,r.block);f.each((function(e){e.perform(h)})),o|=u.perform(h)}else c&&c.each((function(a,l){s(r,a)&&a.dirty();var c=e.getPerformArgs(a,r.block);c.skip=!t.performRawSeries&&i.isSeriesFiltered(a.context.model),w(a,n),o|=a.perform(c)}))}})),e.unfinished|=o}b.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each((function(e){var t=e.overallTask;t&&t.dirty()}))},b.getPerformArgs=function(e,t){if(e.__pipeline){var i=this._pipelineMap.get(e.__pipeline.id),n=i.context,a=!t&&i.progressiveEnabled&&(!n||n.progressiveRender)&&e.__idxInPipeline>i.blockIndex,r=a?i.step:null,o=n&&n.modDataCount,s=null!=o?Math.ceil(o/r):null;return{step:r,modBy:s,modDataCount:o}}},b.getPipeline=function(e){return this._pipelineMap.get(e)},b.updateStreamModes=function(e,t){var i=this._pipelineMap.get(e.uid),n=e.getData(),a=n.count(),r=i.progressiveEnabled&&t.incrementalPrepareRender&&a>=i.threshold,o=e.get("large")&&a>=e.get("largeThreshold"),s="mod"===e.get("progressiveChunkMode")?a:null;e.pipelineContext=i.context={progressiveRender:r,modDataCount:s,large:o}},b.restorePipelines=function(e){var t=this,i=t._pipelineMap=s();e.eachSeries((function(e){var n=e.getProgressive(),a=e.uid;i.set(a,{id:a,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:n&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(n||700),count:0}),$(t,e,e.dataTask)}))},b.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.ecInstance.getModel(),i=this.api;a(this._allHandlers,(function(n){var a=e.get(n.uid)||e.set(n.uid,[]);n.reset&&_(this,n,a,t,i),n.overallReset&&I(this,n,a,t,i)}),this)},b.prepareView=function(e,t,i,n){var a=e.renderTask,r=a.context;r.model=t,r.ecModel=i,r.api=n,a.__block=!e.incrementalPrepareRender,$(this,t,a)},b.performDataProcessorTasks=function(e,t){y(this,this._dataProcessorHandlers,e,t,{block:!0})},b.performVisualTasks=function(e,t,i){y(this,this._visualHandlers,e,t,i)},b.performSeriesTasks=function(e){var t;e.eachSeries((function(e){t|=e.dataTask.perform()})),this.unfinished|=t},b.plan=function(){this._pipelineMap.each((function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)}))};var w=b.updatePayload=function(e,t){"remain"!==t&&(e.context.payload=t)};function _(e,t,i,n,a){var r=i.seriesTaskMap||(i.seriesTaskMap=s()),o=t.seriesType,l=t.getTargetSeries;function c(i){var o=i.uid,s=r.get(o)||r.set(o,u({plan:k,reset:R,count:O}));s.context={model:i,ecModel:n,api:a,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:e},$(e,i,s)}t.createOnAllSeries?n.eachRawSeries(c):o?n.eachRawSeriesByType(o,c):l&&l(n,a).each(c);var d=e._pipelineMap;r.each((function(e,t){d.get(t)||(e.dispose(),r.removeKey(t))}))}function I(e,t,i,n,r){var o=i.overallTask=i.overallTask||u({reset:x});o.context={ecModel:n,api:r,overallReset:t.overallReset,scheduler:e};var l=o.agentStubMap=o.agentStubMap||s(),c=t.seriesType,d=t.getTargetSeries,f=!0,h=t.modifyOutputEnd;function p(t){var i=t.uid,n=l.get(i);n||(n=l.set(i,u({reset:S,onDirty:C})),o.dirty()),n.context={model:t,overallProgress:f,modifyOutputEnd:h},n.agent=o,n.__block=f,$(e,t,n)}c?n.eachRawSeriesByType(c,p):d?d(n,r).each(p):(f=!1,a(n.getSeries(),p));var m=e._pipelineMap;l.each((function(e,t){m.get(t)||(e.dispose(),o.dirty(),l.removeKey(t))}))}function x(e){e.overallReset(e.ecModel,e.api,e.payload)}function S(e,t){return e.overallProgress&&T}function T(){this.agent.dirty(),this.getDownstream().dirty()}function C(){this.agent&&this.agent.dirty()}function k(e){return e.plan&&e.plan(e.model,e.ecModel,e.api,e.payload)}function R(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=g(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?r(t,(function(e,t){return L(t)})):D}var D=L(0);function L(e){return function(t,i){var n=i.data,a=i.resetDefines[e];if(a&&a.dataEach)for(var r=t.start;r<t.end;r++)a.dataEach(n,r);else a&&a.progress&&a.progress(t,n)}}function O(e){return e.data.count()}function $(e,t,i){var n=t.uid,a=e._pipelineMap.get(n);!a.head&&(a.head=i),a.tail&&a.tail.pipe(i),a.tail=i,i.__idxInPipeline=a.count++,i.__pipeline=a}function N(e){A=null;try{e(P,E)}catch(t){}return A}v.wrapStageHandler=function(e,t){return o(e)&&(e={overallReset:e,seriesType:N(e)}),e.uid=f("stageHandler"),t&&(e.visualType=t),e};var A,P={},E={};function M(e,t){for(var i in t.prototype)e[i]=l}M(P,h),M(E,p),P.eachSeriesByType=P.eachRawSeriesByType=function(e){A=e},P.eachComponent=function(e){"series"===e.mainType&&e.subType&&(A=e.subType)};var F=v;e.exports=F},"6a4c":function(e,t,i){var n=i("4527"),a=i("6d8b"),r=i("0fd3"),o=i("401b");function s(e,t,i){r.call(this,e,t,i),this._lastFrame=0,this._lastFramePercent=0}var l=s.prototype;l.createLine=function(e,t,i){return new n(e,t,i)},l.updateAnimationPoints=function(e,t){this._points=t;for(var i=[0],n=0,a=1;a<t.length;a++){var r=t[a-1],s=t[a];n+=o.dist(r,s),i.push(n)}if(0!==n){for(a=0;a<i.length;a++)i[a]/=n;this._offsets=i,this._length=n}},l.getLineLength=function(e){return this._length},l.updateSymbolPosition=function(e){var t=e.__t,i=this._points,n=this._offsets,a=i.length;if(n){var r=this._lastFrame;if(t<this._lastFramePercent){var s=Math.min(r+1,a-1);for(l=s;l>=0;l--)if(n[l]<=t)break;l=Math.min(l,a-2)}else{for(var l=r;l<a;l++)if(n[l]>t)break;l=Math.min(l-1,a-2)}o.lerp(e.position,i[l],i[l+1],(t-n[l])/(n[l+1]-n[l]));var c=i[l+1][0]-i[l][0],u=i[l+1][1]-i[l][1];e.rotation=-Math.atan2(u,c)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=t,e.ignore=!1}},a.inherits(s,r);var c=s;e.exports=c},"6a98":function(e,t,i){"use strict";i("45e6")},"6acf":function(e,t,i){var n=i("eda2"),a=i("dcb3"),r=i("2306"),o=i("ff2e"),s=i("1687"),l=i("fab22"),c=i("6679"),u=a.extend({makeElOption:function(e,t,i,a,r){var s=i.axis;"angle"===s.dim&&(this.animationThreshold=Math.PI/18);var l,c=s.polar,u=c.getOtherAxis(s),h=u.getExtent();l=s["dataTo"+n.capitalFirst(s.dim)](t);var p=a.get("type");if(p&&"none"!==p){var m=o.buildElStyle(a),g=f[p](s,c,l,h,m);g.style=m,e.graphicKey=g.type,e.pointer=g}var v=a.get("label.margin"),b=d(t,i,a,c,v);o.buildLabelElOption(e,i,a,r,b)}});function d(e,t,i,n,a){var o=t.axis,c=o.dataToCoord(e),u=n.getAngleAxis().getExtent()[0];u=u/180*Math.PI;var d,f,h,p=n.getRadiusAxis().getExtent();if("radius"===o.dim){var m=s.create();s.rotate(m,m,u),s.translate(m,m,[n.cx,n.cy]),d=r.applyTransform([c,-a],m);var g=t.getModel("axisLabel").get("rotate")||0,v=l.innerTextLayout(u,g*Math.PI/180,-1);f=v.textAlign,h=v.textVerticalAlign}else{var b=p[1];d=n.coordToPoint([b+a,c]);var y=n.cx,w=n.cy;f=Math.abs(d[0]-y)/b<.3?"center":d[0]>y?"left":"right",h=Math.abs(d[1]-w)/b<.3?"middle":d[1]>w?"top":"bottom"}return{position:d,align:f,verticalAlign:h}}var f={line:function(e,t,i,n,a){return"angle"===e.dim?{type:"Line",shape:o.makeLineShape(t.coordToPoint([n[0],i]),t.coordToPoint([n[1],i]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:i}}},shadow:function(e,t,i,n,a){var r=Math.max(1,e.getBandWidth()),s=Math.PI/180;return"angle"===e.dim?{type:"Sector",shape:o.makeSectorShape(t.cx,t.cy,n[0],n[1],(-i-r/2)*s,(r/2-i)*s)}:{type:"Sector",shape:o.makeSectorShape(t.cx,t.cy,i-r/2,i+r/2,0,2*Math.PI)}}};c.registerAxisPointerClass("PolarAxisPointer",u);var h=u;e.exports=h},"6ae8":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"search-container"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:reviewTrack:table:taskCode")}},[i("el-input",{staticStyle:{width:"100px"},model:{value:e.searchData.TaskCode,callback:function(t){e.$set(e.searchData,"TaskCode",t)},expression:"searchData.TaskCode"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:reviewTrack:table:subjectCode")}},[i("el-input",{staticStyle:{width:"100px"},model:{value:e.searchData.SubjectCode,callback:function(t){e.$set(e.searchData,"SubjectCode",t)},expression:"searchData.SubjectCode"}})],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:reviewTrack:table:taskName")}},[i("el-input",{staticStyle:{width:"100px"},attrs:{clearable:""},model:{value:e.searchData.TaskName,callback:function(t){e.$set(e.searchData,"TaskName",t)},expression:"searchData.TaskName"}})],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:reviewTrack:table:reader")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.DoctorUserId,callback:function(t){e.$set(e.searchData,"DoctorUserId",t)},expression:"searchData.DoctorUserId"}},e._l(e.DoctorUserList,(function(e){return i("el-option",{key:"DoctorUserId"+e.DoctorUserId,attrs:{value:e.DoctorUserId,label:e.UserName+"("+e.FullName+")"}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:reviewTrack:table:readingStatus")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.ReadingTaskState,callback:function(t){e.$set(e.searchData,"ReadingTaskState",t)},expression:"searchData.ReadingTaskState"}},e._l(e.$d.ReadingTaskState,(function(e){return i("el-option",{key:"ReadingTaskState"+e.label,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:reviewTrack:table:assignTime")}},[i("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd HH:mm:ss",type:"datetimerange"},on:{change:e.changeTimeList},model:{value:e.timeList,callback:function(t){e.timeList=t},expression:"timeList"}})],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:reviewTrack:table:signTime")}},[i("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd HH:mm:ss",type:"datetimerange"},on:{change:e.changeTimeList2},model:{value:e.timeList2,callback:function(t){e.timeList2=t},expression:"timeList2"}})],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"}},[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-download"},on:{click:e.handleExport}},[e._v("\n "+e._s(e.$t("common:button:export"))+"\n ")])],1)],1)],1),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"},{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortChange}},[i("el-table-column",{attrs:{prop:"TaskCode",label:e.$t("trials:reviewTrack:table:taskCode"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode",label:e.$t("trials:reviewTrack:table:subjectCode"),"min-width":"120",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitTaskNum",label:e.$t("trials:reviewTrack:table:taskName"),"min-width":"120",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.TaskName)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:e.$t("trials:reviewTrack:table:createTime"),"min-width":"140",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:e.$t("trials:reviewTrack:table:reader"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return t.row.UserName?[e._v("\n "+e._s(t.row.UserName)+"("+e._s(t.row.FullName)+")\n ")]:void 0}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"AllocateTime",label:e.$t("trials:reviewTrack:table:assignTime"),"min-width":"120",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"SuggesteFinishedTime",label:e.$t("trials:reviewTrack:table:suggesteFinishedTime"),"min-width":"140",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ReadingTaskState",label:e.$t("trials:reviewTrack:table:readingStatus"),"min-width":"120",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[2===t.row.ReadingTaskState?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ReadingTaskState",t.row.ReadingTaskState)))]):i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ReadingTaskState",t.row.ReadingTaskState)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"SignTime",label:e.$t("trials:reviewTrack:table:signTime"),"min-width":"180",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{fixed:"right",label:e.$t("common:action:action"),width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{disabled:2!==t.row.ReadingTaskState,icon:"el-icon-view",circle:"",title:e.$t("trials:reviewTrack:action:viewResults")},on:{click:function(i){return e.lookReadingResults(t.row)}}}),e._v(" "),e.hasPermi(["trials:trials-panel:readingTracking:edit"])?i("el-button",{attrs:{disabled:1!==t.row.ReadingCategory||0!==t.row.TaskState||2!==t.row.ReadingTaskState||2===t.row.ReReadingApplyState||4===t.row.ReReadingApplyState||5===t.row.ReReadingApplyState,icon:"el-icon-collection",circle:"",title:e.$t("trials:reviewTrack:action:applyReread")},on:{click:function(i){return e.openApplyReReading(t.row)}}}):e._e(),e._v(" "),e.hasPermi(["trials:trials-panel:readingTracking:edit"])?i("el-button",{attrs:{disabled:!t.row.ReReadingApplyState,icon:"el-icon-toilet-paper",circle:"",title:e.$t("trials:reviewTrack:action:backToRereadHistory")},on:{click:function(i){return e.reReadingHistory(t.row,1)}}}):e._e(),e._v(" "),e.hasPermi(["trials:trials-panel:readingTracking:edit"])?i("el-button",{attrs:{disabled:2===t.row.ReadingTaskState||1!==t.row.ReadingCategory||0!==t.row.TaskState,icon:"el-icon-back",circle:"",title:e.$t("trials:reviewTrack:action:back")},on:{click:function(i){return e.openReReadingOrBackList(t.row)}}}):e._e(),e._v(" "),e.hasPermi(["trials:trials-panel:readingTracking:edit"])?i("el-button",{attrs:{disabled:!t.row.IsPMSetBack,icon:"el-icon-document-copy",circle:"",title:e.$t("trials:reviewTrack:action:backToTaskList")},on:{click:function(i){return e.getInfluencedTaskList(t.row)}}}):e._e()]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}}),e._v(" "),i("el-dialog",{attrs:{title:"阅片任务规则",visible:e.ReadingRulesVisible,width:"500px","close-on-click-modal":!1,"custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.ReadingRulesVisible=t}}},[i("div",{staticClass:"base-dialog-body",staticStyle:{position:"relative"}},[i("el-form",{ref:"signForm",attrs:{size:"small","label-width":"160px"}},[i("el-form-item",{attrs:{label:"呈现对象"}},[i("el-radio-group",{model:{value:e.ReadingRulesInfo.ReadingTaskViewEnum,callback:function(t){e.$set(e.ReadingRulesInfo,"ReadingTaskViewEnum",t)},expression:"ReadingRulesInfo.ReadingTaskViewEnum"}},e._l(e.$d.TaskAllocateObj,(function(t){return i("el-radio",{key:"TaskAllocateObjEnum"+t.value,attrs:{label:t.value,disabled:1===t.value}},[e._v(e._s(t.label))])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"呈现顺序"}},[i("el-radio-group",{model:{value:e.ReadingRulesInfo.IsReadingTaskViewInOrder,callback:function(t){e.$set(e.ReadingRulesInfo,"IsReadingTaskViewInOrder",t)},expression:"ReadingRulesInfo.IsReadingTaskViewInOrder"}},e._l(e.$d.IsReadingTaskViewInOrder,(function(t){return i("el-radio",{key:"TaskAllocateObjEnum"+t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1),e._v(" "),0===e.ReadingRulesInfo.ReadingTaskViewEnum&&e.ReadingRulesInfo.IsReadingTaskViewInOrder?i("el-form-item",{attrs:{label:"是否展示受试者信息"}},[i("el-radio-group",{model:{value:e.ReadingRulesInfo.IsReadingShowSubjectInfo,callback:function(t){e.$set(e.ReadingRulesInfo,"IsReadingShowSubjectInfo",t)},expression:"ReadingRulesInfo.IsReadingShowSubjectInfo"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"IsReadingShowSubjectInfo"+t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1):e._e(),e._v(" "),0===e.ReadingRulesInfo.ReadingTaskViewEnum&&e.ReadingRulesInfo.IsReadingTaskViewInOrder?i("el-form-item",{attrs:{label:"是否可以查看既往结果"}},[i("el-radio-group",{model:{value:e.ReadingRulesInfo.IsReadingShowPreviousResults,callback:function(t){e.$set(e.ReadingRulesInfo,"IsReadingShowPreviousResults",t)},expression:"ReadingRulesInfo.IsReadingShowPreviousResults"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"IsReadingShowPreviousResults"+t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1):e._e()],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.handleCancel}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)]),e._v(" "),e.RefereeAllocationVisible?i("el-dialog",{attrs:{title:"裁判触发规则",visible:e.RefereeAllocationVisible,width:"1200px","append-to-body":"","close-on-click-modal":!1,"custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.RefereeAllocationVisible=t}}},[i("RefereeRules"),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){e.RefereeAllocationVisible=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")])],1)],1):e._e(),e._v(" "),e.ApplyforReasonVisible?i("el-dialog",{attrs:{title:e.$t("trials:reviewTrack:dialog:applyReread"),visible:e.ApplyforReasonVisible,width:"1460px","append-to-body":"","close-on-click-modal":!1,"custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.ApplyforReasonVisible=t}}},[i("el-form",{ref:"reasonForm",staticClass:"demo-ruleForm",attrs:{rules:e.rules,model:e.ApplyforReasonForm,size:"small","label-width":"120px"}},[i("el-divider",{attrs:{"content-position":"left"}},[e._v("\n "+e._s(e.$t("trials:reviewTrack:applyReread:title:applyReason"))+"\n ")]),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:reviewTrack:applyReread:title:applyReason"),prop:"Type",rules:[{required:!0,message:e.$t("common:ruleMessage:select")}]}},[i("el-radio-group",{model:{value:e.ApplyforReasonForm.Type,callback:function(t){e.$set(e.ApplyforReasonForm,"Type",t)},expression:"ApplyforReasonForm.Type"}},[i("el-radio",{attrs:{label:1}},[e._v(e._s(e.$t("trials:reviewTrack:applyReread:title:ImageRetransfer")))]),e._v(" "),i("el-radio",{attrs:{label:2}},[e._v(e._s(e.$t("trials:reviewTrack:applyReread:title:other")))])],1)],1),e._v(" "),2===e.ApplyforReasonForm.Type?i("el-form-item",{attrs:{label:e.$t("trials:reviewTrack:applyReread:title:remark"),prop:"RequestReReadingReason"}},[i("el-input",{staticStyle:{width:"400px"},attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:e.$t("common:ruleMessage:specify"),maxlength:"500","show-word-limit":""},model:{value:e.ApplyforReasonForm.RequestReReadingReason,callback:function(t){e.$set(e.ApplyforReasonForm,"RequestReReadingReason",t)},expression:"ApplyforReasonForm.RequestReReadingReason"}})],1):e._e()],1),e._v(" "),i("el-divider",{attrs:{"content-position":"left"}},[e._v(e._s(e.$t("trials:reviewTrack:applyReread:title:influencesList")))]),e._v(" "),i("div",{staticStyle:{padding:"10px",border:"1px solid #e0e0e0","max-height":"650px","overflow-y":"auto"}},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{"min-height":"400px"},attrs:{data:e.InfluenceTaskList,stripe:"",height:"100"}},[i("el-table-column",{attrs:{prop:"TaskCode",label:e.$t("trials:reviewTrack:table:taskCode"),"min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialSiteCode",label:e.$t("trials:reviewTrack:table:siteCode"),"min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode",label:e.$t("trials:reviewTrack:table:subjectCode"),"min-width":"120","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitTaskNum",label:e.$t("trials:reviewTrack:table:taskName"),"min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.TaskName)+"\n ")]}}],null,!1,833704631)}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskBlindName",label:e.$t("trials:reviewTrack:table:blindName"),"min-width":"120","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialReadingCriterionName",label:e.$t("trials:reviewTrack:table:criterionName"),"min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskState",label:e.$t("trials:reviewTrack:table:taskStatus"),"min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.TaskState?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e(),e._v(" "),1===t.row.TaskState?i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e(),e._v(" "),3===t.row.TaskState?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e(),e._v(" "),4===t.row.TaskState?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e()]}}],null,!1,3420009093)}),e._v(" "),i("el-table-column",{attrs:{prop:"ReadingCategory","min-width":"100",label:e.$t("trials:reviewTrack:table:taskType"),"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.ReadingCategory?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e(),e._v(" "),2===t.row.ReadingCategory?i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e(),e._v(" "),4===t.row.ReadingCategory?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e(),e._v(" "),5===t.row.ReadingCategory?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e()]}}],null,!1,3295727457)}),e._v(" "),i("el-table-column",{attrs:{prop:"ReadingTaskState",label:e.$t("trials:reviewTrack:table:readingStatus"),"min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[2===t.row.ReadingTaskState?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ReadingTaskState",t.row.ReadingTaskState)))]):i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ReadingTaskState",t.row.ReadingTaskState)))])]}}],null,!1,2667573932)}),e._v(" "),i("el-table-column",{attrs:{prop:"OptType",label:e.$t("trials:reviewTrack:applyReread:title:postEffectiveImpacts"),"min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.OptType?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ReReadingOrBackOptType",t.row.OptType)))]):e._e(),e._v(" "),1===t.row.OptType?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ReReadingOrBackOptType",t.row.OptType)))]):e._e(),e._v(" "),2===t.row.OptType?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("ReReadingOrBackOptType",t.row.OptType)))]):e._e()]}}],null,!1,2995316527)}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:e.$t("trials:reviewTrack:table:reader"),"min-width":"160","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return t.row.DoctorUser?[e._v("\n "+e._s(t.row.DoctorUser.UserName)+"("+e._s(t.row.DoctorUser.FullName)+")\n ")]:void 0}}],null,!0)})],1),e._v(" "),e.ReReadingOtherInfo.IsIRAppyTaskInfluenced?i("div",{staticStyle:{"font-size":"12px",color:"#f66","margin-top":"10px"}},[e._v("\n "+e._s(e.$t("trials:reviewTrack:applyReread:title:msg1"))+"\n ")]):e._e()],1),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){e.ApplyforReasonVisible=!1,e.ApplyforReasonForm={Type:null,RequestReReadingReason:null}}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{loading:e.btnLoading,size:"small",type:"primary"},on:{click:e.applyReReading}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1):e._e(),e._v(" "),e.ReReadingOrBackVisible?i("el-dialog",{attrs:{title:"read"===e.opentype?e.$t("trials:reviewTrack:dialog:backImpactList"):e.$t("trials:reviewTrack:dialog:impactList"),visible:e.ReReadingOrBackVisible,width:"1460px","append-to-body":"","close-on-click-modal":!1,"custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.ReReadingOrBackVisible=t}}},[i("div",{staticClass:"base-dialog-body"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{"min-height":"400px"},attrs:{data:e.InfluenceTaskList,stripe:"",height:"100"}},[i("el-table-column",{attrs:{prop:"TaskCode",label:e.$t("trials:reviewTrack:table:taskCode"),"min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialSiteCode",label:e.$t("trials:reviewTrack:table:siteCode"),"min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode",label:e.$t("trials:reviewTrack:table:subjectCode"),"min-width":"120","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitTaskNum",label:e.$t("trials:reviewTrack:table:taskName"),"min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.TaskName)+"\n ")]}}],null,!1,833704631)}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskBlindName",label:e.$t("trials:reviewTrack:table:blindName"),"min-width":"120","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialReadingCriterionName",label:e.$t("trials:reviewTrack:table:criterionName"),"min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskState",label:e.$t("trials:reviewTrack:table:taskStatus"),"min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.TaskState?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e(),e._v(" "),1===t.row.TaskState?i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e(),e._v(" "),3===t.row.TaskState?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e(),e._v(" "),4===t.row.TaskState?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e()]}}],null,!1,3420009093)}),e._v(" "),i("el-table-column",{attrs:{prop:"ReadingCategory","min-width":"100",label:e.$t("trials:reviewTrack:table:taskType"),"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.ReadingCategory?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e(),e._v(" "),2===t.row.ReadingCategory?i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e(),e._v(" "),4===t.row.ReadingCategory?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e(),e._v(" "),5===t.row.ReadingCategory?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e()]}}],null,!1,3295727457)}),e._v(" "),i("el-table-column",{attrs:{prop:"ReadingTaskState",label:e.$t("trials:reviewTrack:table:readingStatus"),"min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[2===t.row.ReadingTaskState?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ReadingTaskState",t.row.ReadingTaskState)))]):i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ReadingTaskState",t.row.ReadingTaskState)))])]}}],null,!1,2667573932)}),e._v(" "),i("el-table-column",{attrs:{prop:"OptType",label:e.$t("trials:reviewTrack:applyReread:title:postEffectiveImpacts"),"min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.OptType?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ReReadingOrBackOptType",t.row.OptType)))]):e._e(),e._v(" "),1===t.row.OptType?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ReReadingOrBackOptType",t.row.OptType)))]):e._e(),e._v(" "),2===t.row.OptType?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("ReReadingOrBackOptType",t.row.OptType)))]):e._e()]}}],null,!1,2995316527)}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:e.$t("trials:reviewTrack:table:reader"),"min-width":"160","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return t.row.DoctorUser?[e._v("\n "+e._s(t.row.DoctorUser.UserName)+"("+e._s(t.row.DoctorUser.FullName)+")\n ")]:void 0}}],null,!0)})],1),e._v(" "),e.ReReadingOtherInfo.IsIRAppyTaskInfluenced?i("div",{staticStyle:{"font-size":"12px",color:"#f66","margin-top":"10px"}},[e._v("\n "+e._s(e.$t("trials:reviewTrack:applyReread:title:msg1"))+"\n ")]):e._e()],1),e._v(" "),"read"===e.opentype?i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){e.ReReadingOrBackVisible=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{loading:e.btnLoading,size:"small",type:"primary"},on:{click:e.PMSetTaskBack}},[e._v("\n "+e._s(e.$t("trials:reviewTrack:impactList:save"))+"\n ")])],1):e._e()]):e._e(),e._v(" "),e.clinicalDataVisible?i("el-dialog",{attrs:{title:e.$t("trials:readingPeriod:dialogTitle:clinicalData")+"("+e.rowData.SubjectCode+"|"+e.rowData.TaskName+"|"+e.rowData.TrialReadingCriterionName+")",visible:e.clinicalDataVisible,"close-on-click-modal":!1,"append-to-body":""},on:{"update:visible":function(t){e.clinicalDataVisible=t}}},[i("ClinicalData",{attrs:{"trial-reading-criterion-id":e.TrialReadingCriterionId,data:e.currentData}})],1):e._e(),e._v(" "),e.exportVisible?i("el-dialog",{attrs:{title:e.$t("trials:reviewTrack:button:export"),visible:e.exportVisible,"close-on-click-modal":!1,"append-to-body":""},on:{"update:visible":function(t){e.exportVisible=t}}},[i("exportList",{attrs:{"trial-reading-criterion-id":e.TrialReadingCriterionId,data:e.searchData}})],1):e._e(),e._v(" "),e.urgentVisible?i("el-dialog",{attrs:{visible:e.urgentVisible,"close-on-click-modal":!1,title:e.$t("trials:qcCheck:dialogTitle:setUrgent"),width:"600px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.urgentVisible=t}}},[i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.dialogLoading,expression:"dialogLoading"}],ref:"urgentForm",attrs:{model:e.urgentForm,size:"mini","label-width":"100px"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:e.$t("trials:qcCheck:table:isUrgent"),prop:"IsUrgent",rules:[{required:!0,message:e.$t("common:ruleMessage:select"),trigger:"blur"}]}},[i("el-radio-group",{on:{change:e.handleIsUrgentChange},model:{value:e.urgentForm.IsUrgent,callback:function(t){e.$set(e.urgentForm,"IsUrgent",t)},expression:"urgentForm.IsUrgent"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"IsUrgent"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1),e._v(" "),e.urgentForm.IsUrgent?i("el-form-item",{attrs:{label:e.$t("trials:reviewTrack:message:urgentReason"),prop:"TaskUrgentType",rules:[{required:!0,message:e.$t("common:ruleMessage:select"),trigger:"blur"}]}},[i("el-radio-group",{on:{change:e.handleTaskUrgentTypeChange},model:{value:e.urgentForm.TaskUrgentType,callback:function(t){e.$set(e.urgentForm,"TaskUrgentType",t)},expression:"urgentForm.TaskUrgentType"}},e._l(e.$d.TaskUrgentType,(function(t){return!e.OtherInfo.IsPDProgressView&&2===t.value||!e.OtherInfo.IsEnrollementQualificationConfirm&&1===t.value?e._e():i("el-radio",{key:"TaskUrgentType"+t.value,attrs:{label:t.value,disabled:0===e.rowData.VisitTaskNum&&2===t.value||0!==e.rowData.VisitTaskNum&&1===t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1):e._e(),e._v(" "),4===e.urgentForm.TaskUrgentType?i("el-form-item",{attrs:{label:e.$t("trials:reviewTrack:message:urgentReasonNote"),prop:"TaskUrgentRemake",rules:[{required:!0,message:e.$t("common:ruleMessage:specify"),trigger:"blur"}]}},[i("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4}},model:{value:e.urgentForm.TaskUrgentRemake,callback:function(t){e.$set(e.urgentForm,"TaskUrgentRemake",t)},expression:"urgentForm.TaskUrgentRemake"}})],1):e._e()],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){e.urgentVisible=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleSaveUrgentStatus}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])],1):e._e()],1)],2)},a=[],r=i("db72"),o=i("3e42"),s=i("958c"),l=i("5f87"),c=i("6071"),u=i("333d"),d=i("de86"),f=i("5248"),h=i("ba63"),p=function(){return{PageIndex:1,PageSize:20,Asc:!0,SortField:"",TrialId:null,SiteId:null,SubjectId:null,SubjectCode:null,IsUrgent:null,TaskName:null,TaskCode:"",TaskState:null,DoctorUserId:null,ReadingCategory:null,TaskAllocationState:null,BeginAllocateDate:null,EndAllocateDate:null,BeginSignTime:null,EndSignTime:null,ReadingTaskState:null,CompleteClinicalDataEnum:null}},m={name:"TrialsNotice",components:{BaseContainer:c["default"],Pagination:u["default"],RefereeRules:d["default"],ClinicalData:h["default"],exportList:f["default"]},props:{AllocationReadingCategory:{type:String},AllocationSubjectCode:{type:String}},data:function(){return{searchData:p(),exportVisible:!1,maxLength:0,list:[],siteOptions:[],total:0,SubjectAssignListTotal:0,loading:!1,ReadingRulesVisible:!1,ApplyforReasonVisible:!1,ReReadingOrBackVisible:!1,clinicalDataVisible:!1,InfluenceTaskList:[],ApplyforReasonForm:{Type:null,RequestReReadingReason:null},rules:{Type:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}],RequestReReadingReason:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}]},RefereeAllocationVisible:!1,trialId:this.$route.query.trialId,currentData:{},param:{},DoctorUserList:[],TaskAllocationRuleList:[],btnLoading:!1,value:!0,value1:!0,ReadingType:null,ReadingRulesInfo:{TrialId:this.$route.query.trialId,ReadingTaskViewEnum:0,IsReadingTaskViewInOrder:!1,IsReadingShowSubjectInfo:null,IsReadingShowPreviousResults:null},title:"",rowData:{},timeList:[],timeList2:[],SubjectAssignList:[],SubjectAssignSelectList:[],TaskAllocationRuleSelectList:[],readVisible:!1,TaskOptType:null,OtherInfo:null,trialCriterionList:[],ReReadingOtherInfo:{IsIRAppyTaskInfluenced:!1},TrialReadingCriterionId:null,urgentVisible:!1,urgentForm:{VisitTaskId:"",IsUrgent:null,TaskUrgentType:null,TaskUrgentRemake:null},dialogLoading:!1}},mounted:function(){this.searchData.ReadingCategory=this.AllocationReadingCategory,this.searchData.SubjectCode=this.AllocationSubjectCode,console.log(this.searchData.SubjectCode,this.searchData.ReadingCategory),this.getList(),this.getSite(),this.getDoctorUserSelectList(),this.getTrialCriterionList()},methods:{handleExport:function(){this.exportVisible=!0},handleView:function(e){this.TrialReadingCriterionId=e.TrialReadingCriterionId,this.rowData=Object(r["a"])({},e),this.currentData={Id:e.SourceSubjectVisitId||e.SouceReadModuleId,SubjectId:e.SubjectId,IsVisit:!!e.SourceSubjectVisitId,TrialId:e.TrialId,IsBaseLine:0===e.VisitTaskNum,TrialReadingCriterionId:e.TrialReadingCriterionId},this.clinicalDataVisible=!0},getTrialCriterionList:function(){var e=this;Object(s["U"])(this.trialId).then((function(t){e.trialCriterionList=t.Result})).catch((function(){}))},getInfluencedTaskList:function(e){var t=this;this.loading=!0,this.opentype="look",this.rowData=Object(r["a"])({},e),Object(s["D"])(e.Id).then((function(e){t.InfluenceTaskList=e.Result,t.ReReadingOrBackVisible=!0,t.loading=!1}))},PMSetTaskBack:function(){var e=this;this.loading=!0,Object(s["a"])(this.trialId,this.rowData.Id).then((function(t){e.loading=!1,e.ReReadingOrBackVisible=!1,e.getList(),e.$message.success(e.$t("trials:reviewTrack:message:returnedSuccessfully"))})).catch((function(){e.loading=!1}))},openReReadingOrBackList:function(e){var t=this;this.loading=!0,this.rowData=Object(r["a"])({},e),this.opentype="read",Object(s["H"])(e.Id,!1).then((function(e){t.InfluenceTaskList=e.Result,t.ReReadingOtherInfo=e.OtherInfo,t.ReReadingOrBackVisible=!0,t.loading=!1})).catch((function(){t.loading=!1}))},lookReadingResults:function(e){var t,i=Object(l["a"])();t=0===e.ReadingTool?"/readingDicoms?TrialReadingCriterionId=".concat(e.TrialReadingCriterionId,"&trialId=").concat(this.trialId,"&subjectCode=").concat(e.SubjectCode,"&subjectId=").concat(e.SubjectId,"&visitTaskId=").concat(e.Id,"&isReadingTaskViewInOrder=").concat(e.IsReadingTaskViewInOrder,"&criterionType=").concat(e.CriterionType,"&readingTool=").concat(e.ReadingTool,"&TokenKey=").concat(i):"/noneDicomReading?TrialReadingCriterionId=".concat(e.TrialReadingCriterionId,"&trialId=").concat(this.trialId,"&subjectCode=").concat(e.SubjectCode,"&subjectId=").concat(e.SubjectId,"&visitTaskId=").concat(e.Id,"&isReadingTaskViewInOrder=").concat(e.IsReadingTaskViewInOrder,"&criterionType=").concat(e.CriterionType,"&readingTool=").concat(e.ReadingTool,"&TokenKey=").concat(i),window.open(t,"_blank")},openApplyReReading:function(e){var t=this;this.rowData=Object(r["a"])({},e),this.loading=!0,Object(s["H"])(e.Id,!0).then((function(e){t.InfluenceTaskList=e.Result,t.ReReadingOtherInfo=e.OtherInfo,t.ApplyforReasonVisible=!0,t.ApplyforReasonForm={Type:null,Remake:null},t.loading=!1})).catch((function(){t.loading=!1}))},applyReReading:function(){var e=this;this.$refs.reasonForm.validate((function(t){if(t){e.loading=!0,e.btnLoading=!0;var i={TaskIdList:[e.rowData.Id],TrialId:e.$route.query.trialId,RequestReReadingType:2,RequestReReadingReason:2===e.ApplyforReasonForm.Type?e.ApplyforReasonForm.RequestReReadingReason:e.$t("trials:reviewTrack:message:ImageRetransfer")};Object(s["e"])(i).then((function(t){e.loading=!1,e.btnLoading=!1,e.$message.success(e.$t("trials:reviewTrack:message:applyedSuccessfully")),e.getList(),e.ApplyforReasonVisible=!1})).catch((function(){e.loading=!1,e.btnLoading=!1}))}}))},reReadingHistory:function(e){this.$router.push({path:"/trials/trials-panel/reading/reReadingTracking?trialId=".concat(this.$route.query.trialId,"&trialCode=").concat(this.$route.query.trialCode,"&researchProgramNo=").concat(this.$route.query.researchProgramNo,"&SiteId=").concat(e.SiteId,"&SubjectCode=").concat(e.SubjectCode,"&TaskName=").concat(e.TaskName,"&DoctorUserId=").concat(e.DoctorUserId)})},openRefereeAllocation:function(){this.RefereeAllocationVisible=!0},openReadingRules:function(){this.ReadingRulesVisible=!0},handleCancel:function(){this.ReadingRulesVisible=!1},handleSave:function(){var e=this;this.btnLoading=!0,this.loading=!0;var t=Object.assign({},this.ReadingRulesInfo);t.TrialId=this.$route.query.trialId,Object(s["m"])(t).then((function(t){e.btnLoading=!1,e.loading=!1,e.ReadingRulesVisible=!1,e.getList(),e.$message.success(e.$t("common:message:savedSuccessfully"))})).catch((function(){e.btnLoading=!1,e.loading=!1}))},getDoctorUserSelectList:function(){var e=this;Object(s["A"])(this.$route.query.trialId).then((function(t){e.DoctorUserList=t.Result,e.DoctorUserList.length>0&&(e.ReadingType=e.DoctorUserList[0].ReadingType)}))},getList:function(){var e=this;this.searchData.TrialId=this.$route.query.trialId,this.loading=!0,Object(s["J"])(this.searchData).then((function(t){e.loading=!1,e.OtherInfo=t.OtherInfo,e.ReadingRulesInfo=Object.assign({},e.OtherInfo),e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=p(),this.getList()},getSite:function(){var e=this;Object(o["Zd"])(this.trialId).then((function(t){e.siteOptions=t.Result}))},changeTimeList:function(){this.timeList?(this.searchData.BeginAllocateDate=this.timeList[0],this.searchData.EndAllocateDate=this.timeList[1]):(this.searchData.BeginAllocateDate=null,this.searchData.EndAllocateDate=null)},changeTimeList2:function(e){this.timeList2?(this.searchData.BeginSignTime=this.timeList2[0],this.searchData.EndSignTime=this.timeList2[1]):(this.searchData.BeginSignTime=null,this.searchData.EndSignTime=null)},changeUrgentStatus:function(e){this.rowData=Object(r["a"])({},e),this.urgentForm.VisitTaskId=e.Id,this.urgentForm.IsUrgent=e.IsUrgent,this.urgentForm.TaskUrgentType=e.TaskUrgentType,this.urgentForm.TaskUrgentRemake=e.TaskUrgentRemake,this.urgentVisible=!0},handleTaskUrgentTypeChange:function(e){4!==e&&(this.urgentForm.TaskUrgentRemake=null)},handleIsUrgentChange:function(e){e||(this.urgentForm.TaskUrgentType=null,this.urgentForm.TaskUrgentRemake=null)},handleSaveUrgentStatus:function(){var e=this;this.$refs.urgentForm.validate((function(t){t&&(e.dialogLoading=!0,Object(o["Ue"])(e.urgentForm).then((function(t){e.dialogLoading=!1,e.urgentVisible=!1,e.getList()})).catch((function(){e.dialogLoading=!1})))}))},handleSortChange:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()}}},g=m,v=(i("9a6f"),i("2877")),b=Object(v["a"])(g,n,a,!1,null,"3af573b8",null);t["default"]=b.exports},"6b17":function(e,t,i){},"6b40":function(e,t,i){},"6b4d":function(e,t,i){"use strict";i("6116")},"6bd4":function(e,t){var i={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};function n(e,t){if("world"===e){var n=i[t.name];if(n){var a=t.center;a[0]=n[0],a[1]=n[1]}}}e.exports=n},"6bd7":function(e,t,i){"use strict";var n=i("2b0e");let a=e=>{var t={};return e&&"[object Function]"===t.toString.call(e)};"object"===typeof Int8Array||!n["default"].prototype.$isServer&&"function"===typeof document.childNodes||(a=function(e){return"function"===typeof e||!1});i.d(t,"a",(function(){return r})),i.d(t,"b",(function(){return o}));Object.prototype.hasOwnProperty;const r=function(){return!n["default"].prototype.$isServer&&!!window.navigator.userAgent.match(/firefox/i)};function o(e){let t=!1;return function(...i){t||(t=!0,window.requestAnimationFrame(n=>{e.apply(this,i),t=!1}))}}},"6bdc":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"particiapant-wrapper"},[i("div",{staticClass:"header-wrapper"},[0===e.state&&0===e.userTypeEnumInt?i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleAdd}},[e._v("\n "+e._s(e.$t("common:button:add"))+"\n ")]):e._e()],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.list,border:""}},[i("el-table-column",{attrs:{prop:"date",label:e.$t("trials:staffResearch:form:name")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.LastName+" / "+t.row.FirstName)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialRoleName",label:e.$t("trials:staffResearch:form:role")}}),e._v(" "),i("el-table-column",{attrs:{prop:"Phone",label:e.$t("trials:staffResearch:form:phone")}}),e._v(" "),i("el-table-column",{attrs:{prop:"Email",label:e.$t("trials:staffResearch:form:email")}}),e._v(" "),i("el-table-column",{attrs:{prop:"OrganizationName",label:e.$t("trials:staffResearch:form:organization")}}),e._v(" "),e.hasPermi(["role:pm","role:apm"])?i("el-table-column",{attrs:{prop:"IsGenerateAccount",label:e.$t("trials:staffResearch:form:isGenerate")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("YesOrNo",t.row.IsGenerateAccount))+"\n ")]}}],null,!1,1153754485)}):e._e(),e._v(" "),e.hasPermi(["role:pm","role:apm"])?i("el-table-column",{attrs:{prop:"UserType",label:e.$t("trials:staffResearch:form:userType")}}):e._e(),e._v(" "),e.hasPermi(["role:pm","role:apm"])?i("el-table-column",{attrs:{prop:"State",label:e.$t("trials:staffResearch:form:status")},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsJoin?i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("IsJoin",t.row.IsJoin)))]):i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("IsJoin",t.row.IsJoin)))])]}}],null,!1,3072423441)}):e._e(),e._v(" "),3===e.state||0!==e.userTypeEnumInt&&!e.hasPermi(["role:pm","role:apm"])?e._e():i("el-table-column",{attrs:{fixed:"right",label:e.$t("common:action:action"),width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text",size:"small",disabled:t.row.IsGenerateSuccess||0!==e.state&&0===e.userTypeEnumInt||2!==e.state&&e.hasPermi(["role:pm"])},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("\n "+e._s(e.$t("common:button:edit"))+"\n ")]),e._v(" "),0===e.userTypeEnumInt?i("el-button",{attrs:{type:"text",size:"small",disabled:0!==e.state||t.row.IsGenerateSuccess},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("\n "+e._s(e.$t("common:button:delete"))+"\n ")]):e._e()]}}],null,!1,2760520166)})],1),e._v(" "),e.editVisible?i("el-dialog",{attrs:{visible:e.editVisible,"close-on-click-modal":!1,title:e.title,width:"700px","custom-class":"base-dialog-wrapper","append-to-body":0!==e.userTypeEnumInt},on:{"update:visible":function(t){e.editVisible=t}}},[i("ParticipantForm",{attrs:{state:e.state,data:e.rowData},on:{getList:e.getList,close:e.closeDialog}})],1):e._e()],1)},a=[],r=(i("20d6"),i("db72")),o=i("896b"),s=i("536f"),l=i("a599"),c={name:"ResearchParticipantList",components:{ParticipantForm:s["default"]},data:function(){return{list:[],editVisible:!1,title:"",loading:!1,rowData:{},userTypeEnumInt:0,btnLoading:!1,state:null,trialSiteSurveyId:"",trialId:""}},mounted:function(){zzSessionStorage.getItem("userTypeEnumInt")&&(this.userTypeEnumInt=1*zzSessionStorage.getItem("userTypeEnumInt")),this.trialSiteSurveyId=Object(l["b"])("trialSiteSurveyId"),this.trialId=Object(l["b"])("trialId")},methods:{getList:function(){var e=this;this.loading=!0,Object(o["h"])(this.trialSiteSurveyId).then((function(t){e.loading=!1,e.list=t.Result})).catch((function(){e.loading=!1}))},handleAdd:function(){this.rowData={},this.title=this.$t("trials:staffResearch:dialogTitle:add"),this.editVisible=!0},handleEdit:function(e){this.rowData=Object(r["a"])({},e),this.title=this.$t("trials:staffResearch:dialogTitle:edit"),this.editVisible=!0},handleDelete:function(e){var t=this;this.$confirm(this.$t("trials:staffResearch:message:confirmDel"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.loading=!0,Object(o["e"])(e.Id,t.trialId).then((function(i){t.loading=!1,i.IsSuccess&&(t.list.splice(t.list.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success(t.$t("trials:staffResearch:message:delSuccessfully")))})).catch((function(){t.loading=!1}))})).catch((function(){}))},isExistIncorrect:function(){return this.list.some((function(e){return!1===e.IsCorrect}))},initList:function(e,t){this.list=e,this.state=t.State,this.$forceUpdate()},closeDialog:function(){this.editVisible=!1}}},u=c,d=(i("b308"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,"04f86b6e",null);t["default"]=f.exports},"6c12":function(e,t,i){var n=i("4e08"),a=(n.__DEV__,i("3eba")),r=i("6d8b"),o=i("fab22"),s=i("2306"),l=["axisLine","axisTickLabel","axisName"],c=a.extendComponentView({type:"radar",render:function(e,t,i){var n=this.group;n.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},_buildAxes:function(e){var t=e.coordinateSystem,i=t.getIndicatorAxes(),n=r.map(i,(function(e){var i=new o(e.model,{position:[t.cx,t.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return i}));r.each(n,(function(e){r.each(l,e.add,e),this.group.add(e.getGroup())}),this)},_buildSplitLineAndArea:function(e){var t=e.coordinateSystem,i=t.getIndicatorAxes();if(i.length){var n=e.get("shape"),a=e.getModel("splitLine"),o=e.getModel("splitArea"),l=a.getModel("lineStyle"),c=o.getModel("areaStyle"),u=a.get("show"),d=o.get("show"),f=l.get("color"),h=c.get("color");f=r.isArray(f)?f:[f],h=r.isArray(h)?h:[h];var p=[],m=[];if("circle"===n)for(var g=i[0].getTicksCoords(),v=t.cx,b=t.cy,y=0;y<g.length;y++){if(u){var w=R(p,f,y);p[w].push(new s.Circle({shape:{cx:v,cy:b,r:g[y].coord}}))}if(d&&y<g.length-1){w=R(m,h,y);m[w].push(new s.Ring({shape:{cx:v,cy:b,r0:g[y].coord,r:g[y+1].coord}}))}}else{var _,I=r.map(i,(function(e,i){var n=e.getTicksCoords();return _=null==_?n.length-1:Math.min(n.length-1,_),r.map(n,(function(e){return t.coordToPoint(e.coord,i)}))})),x=[];for(y=0;y<=_;y++){for(var S=[],T=0;T<i.length;T++)S.push(I[T][y]);if(S[0]&&S.push(S[0].slice()),u){w=R(p,f,y);p[w].push(new s.Polyline({shape:{points:S}}))}if(d&&x){w=R(m,h,y-1);m[w].push(new s.Polygon({shape:{points:S.concat(x)}}))}x=S.slice().reverse()}}var C=l.getLineStyle(),k=c.getAreaStyle();r.each(m,(function(e,t){this.group.add(s.mergePath(e,{style:r.defaults({stroke:"none",fill:h[t%h.length]},k),silent:!0}))}),this),r.each(p,(function(e,t){this.group.add(s.mergePath(e,{style:r.defaults({fill:"none",stroke:f[t%f.length]},C),silent:!0}))}),this)}function R(e,t,i){var n=i%t.length;return e[n]=e[n]||[],n}}});e.exports=c},"6c12f":function(e,t,i){var n=i("3eba");i("2cfc"),i("adf4"),i("255c");var a=i("527a"),r=i("71b2"),o=i("d3f47");n.registerLayout(a),n.registerVisual(r),n.registerProcessor(o("themeRiver"))},"6c30":function(e,t,i){},"6c83":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",[i("div",{staticClass:"search"},[i("el-form",{staticClass:"base-search-form",attrs:{inline:!0,size:"mini"}},[i("el-form-item",{attrs:{label:"字典表名称:"}},[i("el-input",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.Code,callback:function(t){e.$set(e.searchData,"Code",t)},expression:"searchData.Code"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"字典分组:"}},[i("el-select",{attrs:{placeholder:"字典分组",clearable:"",size:"small"},model:{value:e.searchData.ConfigTypeId,callback:function(t){e.$set(e.searchData,"ConfigTypeId",t)},expression:"searchData.ConfigTypeId"}},e._l(e.basicDicList,(function(e){return i("el-option",{key:e.Id,attrs:{value:e.Id,label:e.Code}})})),1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:e.handleReset}},[e._v("Reset")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.handleSearch}},[e._v("Search")])],1)],1),e._v(" "),i("span",{staticStyle:{"margin-left":"auto"}},[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.handleAdd}},[e._v("新建")])],1)],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:45},expression:"{bottomOffset:45}"}],attrs:{data:e.list,stripe:"",size:"small",height:"100"},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Code",label:"字典表名称",sortable:"custom","min-width":"180","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ConfigType",label:"字典分组",sortable:"custom","min-width":"180","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Description",label:"描述",sortable:"custom","min-width":"180","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ShowOrder",label:"显示顺序",sortable:"custom","min-width":"180","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:"是否可用",width:"100",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},on:{change:function(i){return e.switchChange(i,t.row)}},model:{value:t.row.IsEnable,callback:function(i){e.$set(t.row,"IsEnable",i)},expression:"scope.row.IsEnable"}})]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"操作",width:"300",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("\n 编辑\n ")]),e._v(" "),i("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(i){return e.handleChild(t.row)}}},[e._v("\n 子项\n ")]),e._v(" "),i("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("\n 删除\n ")])]}}])})],1),e._v(" "),i("div",{staticClass:"pagination",staticStyle:{"text-align":"right","margin-top":"5px"}},[i("pagination",{attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1),e._v(" "),i("DictionaryTypeConfigForm",{ref:"DictionaryTypeConfigForm",attrs:{"basic-dic-list":e.basicDicList},on:{getList:e.getList}}),e._v(" "),i("el-drawer",{attrs:{title:e.drawer_cfg.title,visible:e.drawer_cfg.drawerChild,direction:"rtl",size:"80%"},on:{"update:visible":function(t){return e.$set(e.drawer_cfg,"drawerChild",t)}}},[e.drawer_cfg.drawerChild?i("DictionaryChild",{ref:"DictionaryChild",attrs:{parent:e.drawer_cfg.parent}}):e._e()],1)],1)},a=[],r=(i("20d6"),i("e56e")),o=i("fc57"),s=i("cf221"),l=i("333d"),c=i("f36a"),u=function(){return{Asc:!0,SortField:"",Code:"",KeyName:"",DataTypeEnum:2,PageIndex:1,PageSize:20,ConfigTypeId:null}},d={components:{BoxContent:c["default"],Pagination:l["default"],DictionaryTypeConfigForm:o["default"],DictionaryChild:s["default"]},data:function(){return{searchData:u(),basicDicList:[],list:[],total:0,loading:!1,drawer_cfg:{drawerChild:!1,parentId:"",title:""},rowData:{},model_cfg:{visible:!1,showClose:!0,width:"600px",title:"",appendToBody:!0}}},mounted:function(){this.getList(),this.getDictionaryTypeConfig()},methods:{handleSortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()},handleChild:function(e){this.drawer_cfg={drawerChild:!0,parentId:e.Id,title:e.Code,parent:e}},handleSetting:function(){this.$router.push({path:"/dictionary/newDictionary/setting"})},switchChange:function(e,t){var i=this;this.loading=!0,Object(r["c"])(t).then((function(e){i.$message.success("Saved successfully!"),i.loading=!1})).catch((function(){i.loading=!1}))},handleEdit:function(e){var t=this;this.$nextTick((function(){t.$refs["DictionaryTypeConfigForm"].openDialog("DictionaryTypeConfig",e)}))},handleAdd:function(){var e=this;this.$nextTick((function(){e.$refs["DictionaryTypeConfigForm"].openDialog("DictionaryTypeConfig",{DataTypeEnum:2})}))},handleDelete:function(e){var t=this;this.$confirm("Sure to delete?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){t.loading=!0,Object(r["C"])(e.Id).then((function(i){t.loading=!1,i.IsSuccess&&(t.list.splice(t.list.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success("Deleted successfully!"))})).catch((function(){t.loading=!1}))}))},getList:function(){var e=this;this.loading=!0,Object(r["W"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},getDictionaryTypeConfig:function(){var e=this;Object(r["W"])({DataTypeEnum:0,SortField:"Code",PageIndex:1,PageSize:500}).then((function(t){e.basicDicList=t.Result.CurrentPageData,console.log(e.basicDicList)})).catch((function(){}))},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=u(),this.getList()}}},f=d,h=i("2877"),p=Object(h["a"])(f,n,a,!1,null,null,null);t["default"]=p.exports},"6c89":function(e,t,i){},"6caf":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[e.question.GroupName&&"group"===e.question.Type?i("div",[i("h4",{staticStyle:{color:"#ddd",padding:"5px 0px",margin:"0"}},[e._v("\n "+e._s("en"===e.language?e.question.GroupEnName:e.question.GroupName)+"\n ")])]):[1===e.question.ShowQuestion&&String(e.questionForm[e.question.ParentId])===String(e.question.ParentTriggerValue)||0===e.question.ShowQuestion?i("el-form-item",{class:["group"===e.question.Type?"mb":"upload"===e.question.Type?"uploadWrapper":""],attrs:{label:""+e.question.QuestionName,prop:e.question.Id,rules:[{required:(0===e.question.IsRequired||1===e.question.IsRequired&&e.question.RelevanceId&&e.questionForm[e.question.RelevanceId]===e.question.RelevanceValue)&&"group"!==e.question.Type&&"summary"!==e.question.Type,message:["radio","select","checkbox"].includes(e.question.Type)?e.$t("common:ruleMessage:select"):e.$t("common:ruleMessage:specify"),trigger:["blur","change"]}]}},["input"===e.question.Type?i("el-input",{attrs:{disabled:e.readingTaskState>=2||e.isFirstChangeTask},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"textarea"===e.question.Type?i("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},disabled:e.readingTaskState>=2||e.isFirstChangeTask},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"select"===e.question.Type?i("el-select",{attrs:{disabled:e.readingTaskState>=2||(2===e.question.TableQuestionType||2===e.question.QuestionGenre)&&!!e.question.DictionaryCode||e.isFirstChangeTask,clearable:""},on:{change:function(t){e.formItemChange(t,e.question)}},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},[1===e.question.TableQuestionType?e._l(e.organList,(function(t){return i("el-option",{key:t.Id,attrs:{label:t[e.question.DataTableColumn],value:t[e.question.DataTableColumn]}})})):3===e.question.TableQuestionType||3===e.question.QuestionGenre?e._l(e.$d[e.question.DictionaryCode],(function(e){return i("el-option",{key:e.id,attrs:{value:String(e.value),label:e.label}})})):2!==e.question.TableQuestionType&&2!==e.question.QuestionGenre||!e.question.DictionaryCode?e._l(e.question.TypeValue.split("|"),(function(e){return i("el-option",{key:e,attrs:{label:e,value:e}})})):e._l(e.$d[e.question.DictionaryCode],(function(e){return i("el-option",{key:e.id,attrs:{value:String(e.value),label:e.label}})}))],2):e._e(),e._v(" "),"radio"===e.question.Type?i("el-radio-group",{attrs:{disabled:e.readingTaskState>=2||e.isFirstChangeTask},on:{change:function(t){e.formItemChange(t,e.question)}},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},[e.question.DictionaryCode?e._l(e.$d[e.question.DictionaryCode],(function(t){return i("el-radio",{key:t.id,attrs:{label:String(t.value)}},[e._v("\n "+e._s(t.label)+"\n ")])})):e.question.TypeValue?e._l(e.question.TypeValue.split("|"),(function(t){return i("el-radio",{key:t,attrs:{label:t}},[e._v("\n "+e._s(t)+"\n ")])})):e._e()],2):e._e(),e._v(" "),"checkbox"===e.question.Type?i("el-checkbox-group",{attrs:{disabled:e.readingTaskState>=2||e.isFirstChangeTask},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},e._l(e.question.TypeValue.split("|"),(function(t){return i("el-checkbox",{key:t,attrs:{label:t}},[e._v("\n "+e._s(t)+"\n ")])})),1):e._e(),e._v(" "),"number"===e.question.Type?i("el-input-number",{attrs:{disabled:e.readingTaskState>=2||e.isFirstChangeTask},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"upload"===e.question.Type?i("el-upload",{class:{disabled:e.fileList.length>=e.question.ImageCount},attrs:{action:e.accept,limit:e.question.ImageCount,"on-preview":e.handlePictureCardPreview,"before-upload":e.handleBeforeUpload,"http-request":e.uploadScreenshot,"list-type":"picture-card","on-remove":e.handleRemove,"file-list":e.fileList,disabled:e.readingTaskState>=2||e.isFirstChangeTask},scopedSlots:e._u([{key:"file",fn:function(t){var n=t.file;return i("div",{},[i("img",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:n.url,alt:""}}),e._v(" "),i("span",{staticClass:"el-upload-list__item-actions"},[i("span",{staticClass:"el-upload-list__item-preview",on:{click:function(t){return e.handlePictureCardPreview(n)}}},[i("i",{staticClass:"el-icon-zoom-in"})]),e._v(" "),e.readingTaskState<2?i("span",{staticClass:"el-upload-list__item-delete",on:{click:function(t){return e.handleRemove(n)}}},[i("i",{staticClass:"el-icon-delete"})]):e._e()])])}}],null,!1,3246650725)},[i("i",{staticClass:"el-icon-plus",attrs:{slot:"default"},slot:"default"})]):e._e(),e._v(" "),"upload"===e.question.Type?i("el-dialog",{attrs:{"append-to-body":"",visible:e.imgVisible,width:"600px"},on:{"update:visible":function(t){e.imgVisible=t}}},[i("el-image",{attrs:{src:e.imageUrl,width:"100%"}},[i("div",{staticClass:"image-slot",attrs:{slot:"placeholder"},slot:"placeholder"},[e._v("\n 加载中"),i("span",{staticClass:"dot"},[e._v("...")])])])],1):e._e()],1):e._e()],e._v(" "),e._l(e.question.Childrens,(function(t){return i("QuestionItem",{key:t.Id,attrs:{question:t,"reading-task-state":e.readingTaskState,"is-first-change-task":e.isFirstChangeTask,"question-form":e.questionForm,"visit-task-id":e.visitTaskId},on:{setFormItemData:e.setFormItemData,resetFormItemData:e.resetFormItemData}})}))],2)},a=[],r=(i("20d6"),i("386d"),i("7f7f"),i("ac6a"),i("28a5"),i("db72")),o=(i("c5f6"),i("3e42")),s=i("2f62"),l={name:"QuestionItem",props:{questionForm:{type:Object,default:function(){return{}}},question:{type:Object,default:function(){return[]}},readingTaskState:{type:Number,required:!0},visitTaskId:{type:String,default:""},isFirstChangeTask:{type:Boolean,default:!1}},data:function(){return{fileList:[],accept:".png,.jpg,.jpeg",imgVisible:!1,imageUrl:"",urls:[]}},computed:Object(r["a"])({},Object(s["b"])(["language"])),watch:{questionForm:{deep:!0,immediate:!0,handler:function(e){}}},mounted:function(){var e=this;"upload"===this.question.Type&&this.questionForm[this.question.Id]&&(this.urls=this.questionForm[this.question.Id].split("|"),this.fileList=[],this.urls.map((function(t){e.fileList.push({name:"",url:"/api/".concat(t)})})))},methods:{formItemChange:function(e,t){t.Childrens.length>0&&this.resetChild(t.Childrens)},resetChild:function(e){var t=this;e.forEach((function(e){t.$emit("resetFormItemData",e.Id),e.Childrens&&e.Childrens.length>0&&t.resetChild(e.Childrens)}))},resetFormItemData:function(e){this.$emit("resetFormItemData",e)},setFormItemData:function(e){this.$emit("setFormItemData",e)},uploadScreenshot:function(e){var t=this;if(this.visitTaskId){var i=this.$loading({target:document.querySelector(".ecrf-wrapper"),fullscreen:!1,lock:!0,text:"Loading",spinner:"el-icon-loading"}),n=new FormData;n.append("file",e.file),Object(o["Af"])(this.$route.query.trialId,this.visitTaskId,n).then((function(e){e.IsSuccess&&(t.fileList.push({url:"".concat(e.Result.Path)}),t.urls.push(e.Result.Path),t.$emit("setFormItemData",{key:t.question.Id,val:t.urls.length>0?t.urls.join("|"):""})),i.close()})).catch((function(){i.close()}))}},handleBeforeUpload:function(e){return!!this.checkFileSuffix(e.name)||(this.$message.error("必须是 ".concat(this.accept," 格式")),!1)},checkFileSuffix:function(e){var t=e.lastIndexOf("."),i=e.substring(t+1,e.length);return-1!==this.accept.toLocaleLowerCase().search(i.toLocaleLowerCase())},handlePictureCardPreview:function(e){this.imageUrl=e.url,this.imgVisible=!0},handleRemove:function(e,t){this.imageUrl="",this.fileList.splice(this.fileList.findIndex((function(t){return t.url===e.url})),1),this.urls.splice(this.fileList.findIndex((function(t){return t===e.url})),1),this.$emit("setFormItemData",{key:this.question.Id,val:this.urls.length>0?this.urls.join("|"):""})}}},c=l,u=(i("79bb"),i("2877")),d=Object(u["a"])(c,n,a,!1,null,"325f4763",null);t["default"]=d.exports},"6cb7":function(e,t,i){var n=i("6d8b"),a=i("4319"),r=i("8918"),o=i("625e"),s=o.enableClassManagement,l=o.parseClassType,c=i("e0d3"),u=c.makeInner,d=i("f934"),f=i("de1c"),h=u(),p=a.extend({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(e,t,i,n){a.call(this,e,t,i,n),this.uid=r.getUID("ec_cpt_model")},init:function(e,t,i,n){this.mergeDefaultAndTheme(e,i)},mergeDefaultAndTheme:function(e,t){var i=this.layoutMode,a=i?d.getLayoutParams(e):{},r=t.getTheme();n.merge(e,r.get(this.mainType)),n.merge(e,this.getDefaultOption()),i&&d.mergeLayoutParam(e,a,i)},mergeOption:function(e,t){n.merge(this.option,e,!0);var i=this.layoutMode;i&&d.mergeLayoutParam(this.option,e,i)},optionUpdated:function(e,t){},getDefaultOption:function(){var e=h(this);if(!e.defaultOption){var t=[],i=this.constructor;while(i){var a=i.prototype.defaultOption;a&&t.push(a),i=i.superClass}for(var r={},o=t.length-1;o>=0;o--)r=n.merge(r,t[o],!0);e.defaultOption=r}return e.defaultOption},getReferringComponents:function(e){return this.ecModel.queryComponents({mainType:e,index:this.get(e+"Index",!0),id:this.get(e+"Id",!0)})}});function m(e){var t=[];return n.each(p.getClassesByMainType(e),(function(e){t=t.concat(e.prototype.dependencies||[])})),t=n.map(t,(function(e){return l(e).main})),"dataset"!==e&&n.indexOf(t,"dataset")<=0&&t.unshift("dataset"),t}s(p,{registerWhenExtend:!0}),r.enableSubTypeDefaulter(p),r.enableTopologicalTravel(p,m),n.mixin(p,f);var g=p;e.exports=g},"6cc5":function(e,t,i){var n=i("6d8b"),a=i("401b"),r=i("1687"),o=i("9850"),s=i("0cde"),l=a.applyTransform;function c(){s.call(this)}function u(e){this.name=e,this.zoomLimit,s.call(this),this._roamTransformable=new c,this._rawTransformable=new c,this._center,this._zoom}function d(e,t,i,n){var a=i.seriesModel,r=a?a.coordinateSystem:null;return r===this?r[e](n):null}n.mixin(c,s),u.prototype={constructor:u,type:"view",dimensions:["x","y"],setBoundingRect:function(e,t,i,n){return this._rect=new o(e,t,i,n),this._rect},getBoundingRect:function(){return this._rect},setViewRect:function(e,t,i,n){this.transformTo(e,t,i,n),this._viewRect=new o(e,t,i,n)},transformTo:function(e,t,i,n){var a=this.getBoundingRect(),r=this._rawTransformable;r.transform=a.calculateTransform(new o(e,t,i,n)),r.decomposeTransform(),this._updateTransform()},setCenter:function(e){e&&(this._center=e,this._updateCenterAndZoom())},setZoom:function(e){e=e||1;var t=this.zoomLimit;t&&(null!=t.max&&(e=Math.min(t.max,e)),null!=t.min&&(e=Math.max(t.min,e))),this._zoom=e,this._updateCenterAndZoom()},getDefaultCenter:function(){var e=this.getBoundingRect(),t=e.x+e.width/2,i=e.y+e.height/2;return[t,i]},getCenter:function(){return this._center||this.getDefaultCenter()},getZoom:function(){return this._zoom||1},getRoamTransform:function(){return this._roamTransformable.getLocalTransform()},_updateCenterAndZoom:function(){var e=this._rawTransformable.getLocalTransform(),t=this._roamTransformable,i=this.getDefaultCenter(),n=this.getCenter(),r=this.getZoom();n=a.applyTransform([],n,e),i=a.applyTransform([],i,e),t.origin=n,t.position=[i[0]-n[0],i[1]-n[1]],t.scale=[r,r],this._updateTransform()},_updateTransform:function(){var e=this._roamTransformable,t=this._rawTransformable;t.parent=e,e.updateTransform(),t.updateTransform(),r.copy(this.transform||(this.transform=[]),t.transform||r.create()),this._rawTransform=t.getLocalTransform(),this.invTransform=this.invTransform||[],r.invert(this.invTransform,this.transform),this.decomposeTransform()},getTransformInfo:function(){var e=this._roamTransformable.transform,t=this._rawTransformable;return{roamTransform:e?n.slice(e):r.create(),rawScale:n.slice(t.scale),rawPosition:n.slice(t.position)}},getViewRect:function(){return this._viewRect},getViewRectAfterRoam:function(){var e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},dataToPoint:function(e,t,i){var n=t?this._rawTransform:this.transform;return i=i||[],n?l(i,e,n):a.copy(i,e)},pointToData:function(e){var t=this.invTransform;return t?l([],e,t):[e[0],e[1]]},convertToPixel:n.curry(d,"dataToPoint"),convertFromPixel:n.curry(d,"pointToData"),containPoint:function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])}},n.mixin(u,s);var f=u;e.exports=f},"6cc7":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"sign-form-wrapper"},[i("div",{staticClass:"sign-form-body"},[e.signText?i("h4",{staticStyle:{color:"red"}},[e._v("*"+e._s(e.signText))]):e._e(),e._v(" "),i("el-form",{ref:"signForm",attrs:{model:e.signForm,size:"small","label-width":"100px"}},[i("el-form-item",{attrs:{label:"User ID: ",prop:"userName",rules:[{required:!0,message:e.$t("common:ruleMessage:specify"),trigger:"blur"}]}},[i("el-input",{model:{value:e.signForm.userName,callback:function(t){e.$set(e.signForm,"userName",t)},expression:"signForm.userName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Password: ",prop:"password",rules:[{required:!0,message:e.$t("common:ruleMessage:specify"),trigger:"blur"}]}},[i("el-input",{attrs:{"show-password":"","auto-complete":"new-password"},model:{value:e.signForm.password,callback:function(t){e.$set(e.signForm,"password",t)},expression:"signForm.password"}})],1)],1)],1),e._v(" "),i("div",{staticClass:"dialog-footer sign-form-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.handleclose}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{loading:e.btnLoading,size:"small",type:"primary"},on:{click:e.handleVerifySignature}},[e._v("\n "+e._s(e.$t("common:button:sign"))+"\n ")])],1)])},a=[],r=(i("c5f6"),i("3e42")),o=i("8237"),s=i.n(o),l={name:"SignForm",props:{signCodeEnum:{type:Number,required:!0},subjectVisitId:{type:String,default:""}},data:function(){return{signForm:{userName:"",password:""},signText:"",signCodeId:"",signCode:"",btnLoading:!1,loading:!1}},mounted:function(){var e=this;this.loading=!0,this.$store.dispatch("trials/getSignInfo",{signCode:this.signCodeEnum}).then((function(t){e.loading=!1,e.signText=t.SignText,e.signCode=t.SignCode,e.signCodeId=t.SignCodeId})).catch((function(){e.loading=!1}))},methods:{handleVerifySignature:function(){var e=this,t=zzSessionStorage.getItem("userName").toLocaleLowerCase();this.$refs.signForm.validate((function(i){if(i)if(e.signForm.userName.trim().toLocaleLowerCase()===t){e.btnLoading=!0;var n={userName:e.signForm.userName,passWord:s()(e.signForm.password),trialId:e.$route.query.trialId,signCode:e.signCode,signText:e.signText,signCodeId:e.signCodeId,subjectVisitId:e.subjectVisitId};Object(r["Mf"])(n).then((function(t){var i=t.Result;e.$emit("closeDialog",!0,i,e.signCode)})).catch((function(){e.btnLoading=!1}))}else e.$message.error(e.$t("common:message:signWarning"))}))},handleclose:function(){this.$emit("closeDialog",!1)}}},c=l,u=(i("96e7"),i("2877")),d=Object(u["a"])(c,n,a,!1,null,"0deb7142",null);t["default"]=d.exports},"6cce":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"resumes-container"},[e.$route.query.ReviewStatus?e._e():i("div",{staticClass:"resume-content"},[i("p",[e._v("Consultant Agreement")]),e._v(" "),i("div",{staticClass:"upload-content"},[i("upload-files",{ref:"uploadAgreement",attrs:{disabled:"1"===e.$route.query.ReviewStatus,"doctor-id":e.doctorId,type:"Consultant Agreement",accept:".pdf"},on:{getFileList:e.getFileList}})],1),e._v(" "),i("p",[e._v("(must be in pdf format)")])]),e._v(" "),e.$route.query.ReviewStatus?e._e():i("div",[i("el-table",{attrs:{data:e.agreementList,size:"small"}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"FileName",label:"Consultant Agreement",width:"300"}}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:"Upload Time",width:"150"}}),e._v(" "),i("el-table-column",{attrs:{label:"Action",width:"400"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return e.handlePreview(t.row)}}},[e._v("View")]),e._v(" "),i("el-button",{attrs:{type:"text",size:"small",disabled:"1"===e.$route.query.ReviewStatus},on:{click:function(i){return e.handleRemoveFile(t.row)}}},[e._v("Delete")])]}}],null,!1,3024921981)})],1)],1),e._v(" "),i("div",{staticStyle:{"margin-top":"20px"}},[i("span",{staticStyle:{"margin-right":"20px"}},[e._v("\n "+e._s(e.$t("trials:enrolledReviews:button:sow"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",disabled:"1"===e.$route.query.ReviewStatus},on:{click:function(t){e.addCol(0,e.$t("trials:enrolledReviews:button:sow"))}}},[e._v("Upload")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.handleDownload("Reviewer_SOW_Template")}}},[i("i",{staticClass:"el-icon-view el-icon-download"}),e._v("\n Template\n ")])],1),e._v(" "),i("el-table",{attrs:{data:e.sowList,size:"small"}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{label:"Criterion Type",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.CriterionName)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"FileName",label:"Statement of Work",width:"400"}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsEnable",label:"Is Enable",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1,disabled:""},model:{value:t.row.IsEnable,callback:function(i){e.$set(t.row,"IsEnable",i)},expression:"scope.row.IsEnable"}})]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Remark",label:"Remark",width:"200"}}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:"Upload Time",width:"150"}}),e._v(" "),i("el-table-column",{attrs:{label:"Action",width:"400"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text",size:"small",disabled:"1"===e.$route.query.ReviewStatus},on:{click:function(i){return e.handlePreview3(t.row)}}},[e._v("View")]),e._v(" "),i("el-button",{attrs:{type:"text",size:"small",disabled:"1"===e.$route.query.ReviewStatus},on:{click:function(i){e.handleEditCol(t.row,0,e.$t("trials:enrolledReviews:button:sow"))}}},[e._v("Edit")]),e._v(" "),i("el-button",{attrs:{type:"text",size:"small",disabled:"1"===e.$route.query.ReviewStatus},on:{click:function(i){return e.handleRemoveFile3(t.row)}}},[e._v("Delete")])]}}])})],1),e._v(" "),e.$route.query.ReviewStatus?e._e():i("div",{staticStyle:{"margin-top":"20px"}},[i("span",{staticStyle:{"margin-right":"20px"}},[e._v("\n "+e._s(e.$t("trials:enrolledReviews:button:asow"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",disabled:"1"===e.$route.query.ReviewStatus},on:{click:function(t){e.addCol(1,e.$t("trials:enrolledReviews:button:asow"))}}},[e._v("Upload")])],1),e._v(" "),e.$route.query.ReviewStatus?e._e():i("el-table",{attrs:{data:e.ackSowList,size:"small"}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{label:"Criterion Type",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.CriterionName)+"\n ")]}}],null,!1,3649527081)}),e._v(" "),i("el-table-column",{attrs:{prop:"FileName",label:"Acknowledgement of SOW",width:"400"}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsEnable",label:"Is Enable",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1,disabled:""},model:{value:t.row.IsEnable,callback:function(i){e.$set(t.row,"IsEnable",i)},expression:"scope.row.IsEnable"}})]}}],null,!1,3524721952)}),e._v(" "),i("el-table-column",{attrs:{prop:"Remark",label:"Remark",width:"200"}}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:"Upload Time",width:"150"}}),e._v(" "),i("el-table-column",{attrs:{label:"Action",width:"400"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text",size:"small",disabled:"1"===e.$route.query.ReviewStatus},on:{click:function(i){return e.handlePreview3(t.row)}}},[e._v("View")]),e._v(" "),i("el-button",{attrs:{type:"text",size:"small",disabled:"1"===e.$route.query.ReviewStatus},on:{click:function(i){e.handleEditCol(t.row,1,e.$t("trials:enrolledReviews:button:asow"))}}},[e._v("Edit")]),e._v(" "),i("el-button",{attrs:{type:"text",size:"small",disabled:"1"===e.$route.query.ReviewStatus},on:{click:function(i){return e.handleRemoveFile3(t.row)}}},[e._v("Delete")])]}}],null,!1,3895284633)})],1),e._v(" "),i("BaseModel",{attrs:{config:e.model_cfg}},[i("template",{slot:"dialog-body"},[i("el-form",{ref:"DictionaryTypeConfigForm",attrs:{model:e.form,rules:e.rules,"label-width":"120px",size:"small"}},[i("el-form-item",{attrs:{label:"Criterion Type ",prop:"CriterionType"}},[i("el-select",{model:{value:e.form.CriterionType,callback:function(t){e.$set(e.form,"CriterionType",t)},expression:"form.CriterionType"}},e._l(e.$d.CriterionType,(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"File",prop:"FilePath"}},[i("el-upload",{staticClass:"upload-demo",attrs:{action:"","before-upload":e.beforeUpload,"http-request":e.handleUploadFile,"on-preview":e.handlePreview2,"on-remove":e.handleRemoveFile2,"show-file-list":!0,limit:1,"file-list":e.fileList}},[i("el-button",{attrs:{size:"small",type:"primary",disabled:e.fileList.length>0}},[e._v("点击上传")])],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Remark"}},[i("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4}},model:{value:e.form.Remark,callback:function(t){e.$set(e.form,"Remark",t)},expression:"form.Remark"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Is Enable"}},[i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},model:{value:e.form.IsEnable,callback:function(t){e.$set(e.form,"IsEnable",t)},expression:"form.IsEnable"}})],1)],1)],1),e._v(" "),i("template",{slot:"dialog-footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.handleCancle}},[e._v("Cancel")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleSave}},[e._v("Save")])],1)],2)],1)},a=[],r=(i("7f7f"),i("a796")),o=i("c006"),s=i("33ba"),l=i("7eeb"),c=i("e56e"),u={name:"Agreements",components:{UploadFiles:o["default"],BaseModel:l["default"]},data:function(){return{doctorId:this.$route.query.Id,agreementList:[],sowList:[],ackSowList:[],loading:!1,isOpen:!1,btnLoading:!1,model_cfg:{visible:!1,showClose:!0,width:"600px",title:"",appendToBody:!0},form:{Remark:null,FileType:null,FileName:null,FilePath:null,DoctorId:null,CriterionType:null,IsEnable:!1},rules:{CriterionType:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:["blur"]}],FilePath:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:["blur"]}]},fileList:[]}},mounted:function(){this.initSowList()},methods:{handleDownload:function(e){var t=this;this.loading=!0,Object(c["a"])(e).then((function(e){t.loading=!1})).catch((function(){t.loading=!1}))},handleEditCol:function(e,t,i){this.model_cfg.visible=!0,this.form=Object.assign({},e),this.fileList[0]={name:e.FileName,path:e.FilePath},this.form.FileType=t,this.model_cfg.title=i},handleRemoveFile3:function(e){var t=this;this.$confirm("确定删除?").then((function(){Object(s["h"])({Id:e.Id}).then((function(){t.initSowList(),t.$message.success("删除成功")}))}))},handleRemoveFile2:function(){this.form.FileName=null,this.form.FilePath=null,this.fileList=[]},beforeUpload:function(){this.fileList.length>0&&this.$message.error("最多只能传一个附件")},handlePreview3:function(e){e.FilePath&&window.open(e.FilePath,"_blank")},handlePreview2:function(e,t){e.fullPath&&window.open(e.fullPath,"_blank")},handleUploadFile:function(e){var t=this;this.btnLoading=!0;var i=new FormData;i.append("file",e.file),this.form.FileName=e.file.name,Object(r["f"])(e.file,0===this.form.FileType?"既往阅片情况声明":"入项资格确认书",this.doctorId).then((function(i){t.form.FilePath=i.Result.FilePath,t.btnLoading=!1,t.fileList[0]={name:e.file.name,path:i.Result.FilePath,fullPath:i.Result.FullFilePath}}))},handleCancle:function(){this.model_cfg.visible=!1},handleSave:function(){var e=this;this.$refs["DictionaryTypeConfigForm"].validate((function(t){t&&(e.form.DoctorId=e.doctorId,e.form.CriterionName=e.$fd("CriterionType",e.form.CriterionType),Object(s["a"])(e.form).then((function(t){e.$message.success("添加成功"),e.initSowList(),e.handleCancle()})))}))},addCol:function(e,t){this.model_cfg.visible=!0,this.form={Remark:null,FileType:null,FileName:null,FilePath:null,DoctorId:null,CriterionType:null},this.handleRemoveFile2(),this.form.FileType=e,this.model_cfg.title=t},initSowList:function(){var e=this;Object(s["r"])({fileType:0,DoctorId:this.doctorId}).then((function(t){e.sowList=t.Result})),Object(s["r"])({fileType:1,DoctorId:this.doctorId}).then((function(t){e.ackSowList=t.Result}))},handlePreview:function(e){e.FullPath&&window.open(e.FullPath,"_blank")},handleRemoveFile:function(e){this.$refs.uploadAgreement.handleDeleteFile(e)},getFileList:function(e){this.agreementList=e}}},d=u,f=(i("df2d"),i("2877")),h=Object(f["a"])(d,n,a,!1,null,"3d0bb65a",null);t["default"]=h.exports},"6cd8":function(e,t,i){var n=i("6d8b"),a=i("2306"),r=i("1418"),o=i("22da"),s=o.radialCoordinate,l=i("3eba"),c=i("e263"),u=i("6cc5"),d=i("01ef"),f=i("4a01"),h=i("c526"),p=h.onIrrelevantElement,m=i("4e08"),g=(m.__DEV__,i("3842")),v=g.parsePercent,b=a.extendShape({shape:{parentPoint:[],childPoints:[],orient:"",forkPosition:""},style:{stroke:"#000",fill:null},buildPath:function(e,t){var i=t.childPoints,n=i.length,a=t.parentPoint,r=i[0],o=i[n-1];if(1===n)return e.moveTo(a[0],a[1]),void e.lineTo(r[0],r[1]);var s=t.orient,l="TB"===s||"BT"===s?0:1,c=1-l,u=v(t.forkPosition,1),d=[];d[l]=a[l],d[c]=a[c]+(o[c]-a[c])*u,e.moveTo(a[0],a[1]),e.lineTo(d[0],d[1]),e.moveTo(r[0],r[1]),d[l]=r[l],e.lineTo(d[0],d[1]),d[l]=o[l],e.lineTo(d[0],d[1]),e.lineTo(o[0],o[1]);for(var f=1;f<n-1;f++){var h=i[f];e.moveTo(h[0],h[1]),d[l]=h[l],e.lineTo(d[0],d[1])}}}),y=l.extendChartView({type:"tree",init:function(e,t){this._oldTree,this._mainGroup=new a.Group,this._controller=new f(t.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},render:function(e,t,i,n){var a=e.getData(),r=e.layoutInfo,o=this._mainGroup,s=e.get("layout");"radial"===s?o.attr("position",[r.x+r.width/2,r.y+r.height/2]):o.attr("position",[r.x,r.y]),this._updateViewCoordSys(e,r,s),this._updateController(e,t,i);var l=this._data,c={expandAndCollapse:e.get("expandAndCollapse"),layout:s,edgeShape:e.get("edgeShape"),edgeForkPosition:e.get("edgeForkPosition"),orient:e.getOrient(),curvature:e.get("lineStyle.curveness"),symbolRotate:e.get("symbolRotate"),symbolOffset:e.get("symbolOffset"),hoverAnimation:e.get("hoverAnimation"),useNameLabel:!0,fadeIn:!0};a.diff(l).add((function(t){w(a,t)&&I(a,t,null,o,e,c)})).update((function(t,i){var n=l.getItemGraphicEl(i);w(a,t)?I(a,t,n,o,e,c):n&&S(l,i,n,o,e,c)})).remove((function(t){var i=l.getItemGraphicEl(t);i&&S(l,t,i,o,e,c)})).execute(),this._nodeScaleRatio=e.get("nodeScaleRatio"),this._updateNodeAndLinkScale(e),!0===c.expandAndCollapse&&a.eachItemGraphicEl((function(t,n){t.off("click").on("click",(function(){i.dispatchAction({type:"treeExpandAndCollapse",seriesId:e.id,dataIndex:n})}))})),this._data=a},_updateViewCoordSys:function(e){var t=e.getData(),i=[];t.each((function(e){var n=t.getItemLayout(e);!n||isNaN(n.x)||isNaN(n.y)||i.push([+n.x,+n.y])}));var n=[],a=[];c.fromPoints(i,n,a);var r=this._min,o=this._max;a[0]-n[0]===0&&(n[0]=r?r[0]:n[0]-1,a[0]=o?o[0]:a[0]+1),a[1]-n[1]===0&&(n[1]=r?r[1]:n[1]-1,a[1]=o?o[1]:a[1]+1);var s=e.coordinateSystem=new u;s.zoomLimit=e.get("scaleLimit"),s.setBoundingRect(n[0],n[1],a[0]-n[0],a[1]-n[1]),s.setCenter(e.get("center")),s.setZoom(e.get("zoom")),this.group.attr({position:s.position,scale:s.scale}),this._viewCoordSys=s,this._min=n,this._max=a},_updateController:function(e,t,i){var n=this._controller,a=this._controllerHost,r=this.group;n.setPointerChecker((function(t,n,a){var o=r.getBoundingRect();return o.applyTransform(r.transform),o.contain(n,a)&&!p(t,i,e)})),n.enable(e.get("roam")),a.zoomLimit=e.get("scaleLimit"),a.zoom=e.coordinateSystem.getZoom(),n.off("pan").off("zoom").on("pan",(function(t){d.updateViewOnPan(a,t.dx,t.dy),i.dispatchAction({seriesId:e.id,type:"treeRoam",dx:t.dx,dy:t.dy})}),this).on("zoom",(function(t){d.updateViewOnZoom(a,t.scale,t.originX,t.originY),i.dispatchAction({seriesId:e.id,type:"treeRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),this._updateNodeAndLinkScale(e)}),this)},_updateNodeAndLinkScale:function(e){var t=e.getData(),i=this._getNodeGlobalScale(e),n=[i,i];t.eachItemGraphicEl((function(e,t){e.attr("scale",n)}))},_getNodeGlobalScale:function(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var i=this._nodeScaleRatio,n=t.scale,a=n&&n[0]||1,r=t.getZoom(),o=(r-1)*i+1;return o/a},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={}},remove:function(){this._mainGroup.removeAll(),this._data=null}});function w(e,t){var i=e.getItemLayout(t);return i&&!isNaN(i.x)&&!isNaN(i.y)&&"none"!==e.getItemVisual(t,"symbol")}function _(e,t,i){return i.itemModel=t,i.itemStyle=t.getModel("itemStyle").getItemStyle(),i.hoverItemStyle=t.getModel("emphasis.itemStyle").getItemStyle(),i.lineStyle=t.getModel("lineStyle").getLineStyle(),i.labelModel=t.getModel("label"),i.hoverLabelModel=t.getModel("emphasis.label"),!1===e.isExpand&&0!==e.children.length?i.symbolInnerColor=i.itemStyle.fill:i.symbolInnerColor="#fff",i}function I(e,t,i,n,o,s){var l=!i,c=e.tree.getNodeByDataIndex(t),u=c.getModel(),d=(s=_(c,u,s),e.tree.root),f=c.parentNode===d?c:c.parentNode||c,h=e.getItemGraphicEl(f.dataIndex),p=f.getLayout(),m=h?{x:h.position[0],y:h.position[1],rawX:h.__radialOldRawX,rawY:h.__radialOldRawY}:p,g=c.getLayout();l?(i=new r(e,t,s),i.attr("position",[m.x,m.y])):i.updateData(e,t,s),i.__radialOldRawX=i.__radialRawX,i.__radialOldRawY=i.__radialRawY,i.__radialRawX=g.rawX,i.__radialRawY=g.rawY,n.add(i),e.setItemGraphicEl(t,i),a.updateProps(i,{position:[g.x,g.y]},o);var v=i.getSymbolPath();if("radial"===s.layout){var b,y,w=d.children[0],I=w.getLayout(),S=w.children.length;if(g.x===I.x&&!0===c.isExpand){var T={};T.x=(w.children[0].getLayout().x+w.children[S-1].getLayout().x)/2,T.y=(w.children[0].getLayout().y+w.children[S-1].getLayout().y)/2,b=Math.atan2(T.y-I.y,T.x-I.x),b<0&&(b=2*Math.PI+b),y=T.x<I.x,y&&(b-=Math.PI)}else b=Math.atan2(g.y-I.y,g.x-I.x),b<0&&(b=2*Math.PI+b),0===c.children.length||0!==c.children.length&&!1===c.isExpand?(y=g.x<I.x,y&&(b-=Math.PI)):(y=g.x>I.x,y||(b-=Math.PI));var C=y?"left":"right",k=s.labelModel.get("rotate"),R=k*(Math.PI/180);v.setStyle({textPosition:s.labelModel.get("position")||C,textRotation:null==k?-b:R,textOrigin:"center",verticalAlign:"middle"})}x(o,c,d,i,m,p,g,n,s)}function x(e,t,i,r,o,s,l,c,u){var d=u.edgeShape,f=r.__edge;if("curve"===d)t.parentNode&&t.parentNode!==i&&(f||(f=r.__edge=new a.BezierCurve({shape:T(u,o,o),style:n.defaults({opacity:0,strokeNoScale:!0},u.lineStyle)})),a.updateProps(f,{shape:T(u,s,l),style:n.defaults({opacity:1},u.lineStyle)},e));else if("polyline"===d&&"orthogonal"===u.layout&&t!==i&&t.children&&0!==t.children.length&&!0===t.isExpand){for(var h=t.children,p=[],m=0;m<h.length;m++){var g=h[m].getLayout();p.push([g.x,g.y])}f||(f=r.__edge=new b({shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]],orient:u.orient,forkPosition:u.edgeForkPosition},style:n.defaults({opacity:0,strokeNoScale:!0},u.lineStyle)})),a.updateProps(f,{shape:{parentPoint:[l.x,l.y],childPoints:p},style:n.defaults({opacity:1},u.lineStyle)},e)}c.add(f)}function S(e,t,i,n,r,o){var s,l=e.tree.getNodeByDataIndex(t),c=e.tree.root,u=l.getModel(),d=(o=_(l,u,o),l.parentNode===c?l:l.parentNode||l),f=o.edgeShape;while(s=d.getLayout(),null==s)d=d.parentNode===c?d:d.parentNode||d;a.updateProps(i,{position:[s.x+1,s.y+1]},r,(function(){n.remove(i),e.setItemGraphicEl(t,null)})),i.fadeOut(null,{keepLabel:!0});var h=e.getItemGraphicEl(d.dataIndex),p=h.__edge,m=i.__edge||(!1===d.isExpand||1===d.children.length?p:void 0);f=o.edgeShape;m&&("curve"===f?a.updateProps(m,{shape:T(o,s,s),style:{opacity:0}},r,(function(){n.remove(m)})):"polyline"===f&&"orthogonal"===o.layout&&a.updateProps(m,{shape:{parentPoint:[s.x,s.y],childPoints:[[s.x,s.y]]},style:{opacity:0}},r,(function(){n.remove(m)})))}function T(e,t,i){var n,a,r,o,l,c,u,d,f=e.orient;if("radial"===e.layout){l=t.rawX,u=t.rawY,c=i.rawX,d=i.rawY;var h=s(l,u),p=s(l,u+(d-u)*e.curvature),m=s(c,d+(u-d)*e.curvature),g=s(c,d);return{x1:h.x,y1:h.y,x2:g.x,y2:g.y,cpx1:p.x,cpy1:p.y,cpx2:m.x,cpy2:m.y}}return l=t.x,u=t.y,c=i.x,d=i.y,"LR"!==f&&"RL"!==f||(n=l+(c-l)*e.curvature,a=u,r=c+(l-c)*e.curvature,o=d),"TB"!==f&&"BT"!==f||(n=l,a=u+(d-u)*e.curvature,r=c,o=d+(u-d)*e.curvature),{x1:l,y1:u,x2:c,y2:d,cpx1:n,cpy1:a,cpx2:r,cpy2:o}}e.exports=y},"6cfe":function(e,t,i){i("3e15");const{devDependencies:n}=i("67c5");e.exports={corePath:`https://unpkg.com/@ffmpeg/core@${n["@ffmpeg/core"].substring(1)}/dist/ffmpeg-core.js`}},"6d1f":function(e,t,i){"use strict";i("5f7a")},"6d22":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[e.isRender?i("el-form",{ref:"questionForm",staticStyle:{width:"600px"},attrs:{size:"small",model:e.questionForm}},e._l(e.questions,(function(t){return i("qSFormItem",{key:t.Id,attrs:{question:t,"question-form":e.questionForm,"is-audit":e.isAudit},on:{resetFormItemData:e.resetFormItemData}})})),1):e._e()],1)},a=[],r=(i("ac6a"),i("c5f6"),i("3e42")),o=i("7703"),s={name:"QcQuestions",components:{qSFormItem:o["default"]},props:{trialId:{type:String,required:!0},subjectVisitId:{type:String,required:!0},qcProcessEnum:{type:Number,required:!0},currentQCEnum:{type:Number,required:!0},isAudit:{type:Boolean,default:!1}},data:function(){return{loading:!1,questions:[],questionForm:{},isRender:!1}},mounted:function(){this.getQuestions()},methods:{getQuestions:function(){var e=this;this.loading=!0;var t={trialId:this.trialId,subjectVisitId:this.subjectVisitId,qcProcessEnum:this.qcProcessEnum,currentQCEnum:this.currentQCEnum};Object(r["Gc"])(t).then((function(t){t.Result.map((function(t){e.$set(e.questionForm,t.Id,t.Answer),t.Childrens.length>0&&e.setChild(t.Childrens)})),e.questions=t.Result,e.isRender=!0,e.loading=!1})).catch((function(){e.loading=!1}))},setChild:function(e){var t=this;e.forEach((function(e){t.$set(t.questionForm,e.Id,e.Answer),e.Childrens&&e.Childrens.length>0&&t.setChild(e.Childrens)}))},resetFormItemData:function(e){this.questionForm[e]=""},submit:function(){var e=this;return new Promise((function(t,i){e.$refs["questionForm"].validate((function(n){if(n){var a=[];for(var r in e.questionForm)a.push({Id:r,answer:e.questionForm[r]});t(a)}else e.$confirm(e.$t("trials:audit:message:specifyQuestions"),{type:"warning",showCancelButton:!1,callback:function(e){}}),i()}))}))}}},l=s,c=i("2877"),u=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},"6d3c":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"resume-info"},[i("el-table",{staticStyle:{"margin-top":"10px"},attrs:{data:e.list,size:"small"}},[i("el-table-column",{attrs:{type:"index",label:"No.",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"FileName",label:"File Name","min-width":"60","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Isoffical",label:"Offical","min-width":"50",formatter:e.officalFormatter,"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Language",label:"Language","min-width":"50","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(1===t.row.Language?"CH":2===t.row.Language?"EN":"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:"Upload Time","min-width":"60","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:"Action","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return e.preview(t.$index,t.row)}}},[e._v("Download")])]}}])})],1)],1)},a=[],r=(i("ac6a"),{props:{resumeList:{type:Array,default:function(){return[]}}},data:function(){return{list:[]}},created:function(){this.list=this.filterResume(this.resumeList)},methods:{filterResume:function(e){var t=[];return e.length>0&&e.forEach((function(e){"Resume"===e.Type&&t.push(e)})),t},preview:function(e,t){var i=t.FullPath;i&&window.open(i,"_blank")},timeFormatter:function(e){return new Date(e.CreateTime).format("yyyy-MM-dd hh:mm:ss")},officalFormatter:function(e,t){return e.IsOfficial?"Yes":"No"}}}),o=r,s=(i("3fc1"),i("2877")),l=Object(s["a"])(o,n,a,!1,null,null,null);t["default"]=l.exports},"6d45":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{display:"flex","justify-content":"center"}},[i("div",{staticStyle:{width:"600px","text-align":"center",border:"1px solid #e6e6e6","margin-top":"40px",padding:"10px"}},[i("div",{staticClass:"trial-myinfo-head",staticStyle:{"font-size":"30px","line-height":"120px"}},[e._v("\n "+e._s(e.$t("recompose:title:init"))+"\n ")]),e._v(" "),i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"passwordForm",attrs:{"label-position":"right",model:e.password,rules:e.passwordFormRules,"label-width":"120px"}},[i("el-form-item",{attrs:{label:e.$t("recompose:form:userName"),prop:"NewUserName"}},[i("el-input",{model:{value:e.password.NewUserName,callback:function(t){e.$set(e.password,"NewUserName",t)},expression:"password.NewUserName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("recompose:form:oldPassword"),prop:"OldPassWord"}},[i("el-input",{attrs:{type:"password","show-password":"","auto-complete":"new-password"},model:{value:e.password.OldPassWord,callback:function(t){e.$set(e.password,"OldPassWord",t)},expression:"password.OldPassWord"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("recompose:form:newPassword"),prop:"NewPassWord"}},[i("el-input",{attrs:{type:"password","show-password":"","auto-complete":"new-password"},model:{value:e.password.NewPassWord,callback:function(t){e.$set(e.password,"NewPassWord",t)},expression:"password.NewPassWord"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("recompose:form:confirmPassword"),prop:"ConfirmPassWord"}},[i("el-input",{attrs:{type:"password","show-password":"","auto-complete":"new-password"},model:{value:e.password.ConfirmPassWord,callback:function(t){e.$set(e.password,"ConfirmPassWord",t)},expression:"password.ConfirmPassWord"}})],1),e._v(" "),i("el-form-item",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{size:"small"},on:{click:e.cancel}},[e._v("\n "+e._s(e.$t("recompose:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.save}},[e._v("\n "+e._s(e.$t("recompose:button:save"))+"\n ")])],1)],1)],1)])},a=[],r=(i("96cf"),i("3b8d")),o=i("50fc"),s=i("8237"),l=i.n(s),c={data:function(){return{password:{NewUserName:null},passwordFormRules:{NewUserName:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}],OldPassWord:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}],NewPassWord:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"},{required:!0,trigger:"blur",validator:this.$validatePassword}],ConfirmPassWord:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}]},userId:null,loading:!1}},mounted:function(){this.$set(this.password,"NewUserName",this.$route.query.userName),this.password.NewUserName||this.$message.error(this.$t("recompose:message:warning"))},methods:{logout:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=zzSessionStorage.getItem("loginType"),e.next=3,this.$store.dispatch("user/logout");case 3:t?this.$router.push("/login?loginType=".concat(t)):this.$router.push("/login");case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),save:function(){var e=this;this.$refs.passwordForm.validate((function(t){if(t){if(e.password.NewPassWord!==e.password.ConfirmPassWord)return void e.$message.error(e.$t("recompose:message:passwordDiffer"));var i={NewUserName:e.password.NewUserName,NewPassWord:l()(e.password.NewPassWord),OldPassWord:l()(e.password.OldPassWord)};e.loading=!0,Object(o["r"])(i).then((function(t){e.loading=!1,t.IsSuccess&&(e.$message.success(e.$t("recompose:message:updatedSuccessfully")),setTimeout((function(){e.logout()}),500))})).catch((function(){e.loading=!1}))}}))},cancel:function(){this.$refs["passwordForm"].resetFields()}}},u=c,d=(i("7a7c"),i("875c"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,"1743d8ab",null);t["default"]=f.exports},"6d8b":function(e,t){var i={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},n={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},a=Object.prototype.toString,r=Array.prototype,o=r.forEach,s=r.filter,l=r.slice,c=r.map,u=r.reduce,d={};function f(e,t){"createCanvas"===e&&(b=null),d[e]=t}function h(e){if(null==e||"object"!==typeof e)return e;var t=e,r=a.call(e);if("[object Array]"===r){if(!Y(e)){t=[];for(var o=0,s=e.length;o<s;o++)t[o]=h(e[o])}}else if(n[r]){if(!Y(e)){var l=e.constructor;if(e.constructor.from)t=l.from(e);else{t=new l(e.length);for(o=0,s=e.length;o<s;o++)t[o]=h(e[o])}}}else if(!i[r]&&!Y(e)&&!F(e))for(var c in t={},e)e.hasOwnProperty(c)&&(t[c]=h(e[c]));return t}function p(e,t,i){if(!P(t)||!P(e))return i?h(t):e;for(var n in t)if(t.hasOwnProperty(n)){var a=e[n],r=t[n];!P(r)||!P(a)||$(r)||$(a)||F(r)||F(a)||E(r)||E(a)||Y(r)||Y(a)?!i&&n in e||(e[n]=h(t[n],!0)):p(a,r,i)}return e}function m(e,t){for(var i=e[0],n=1,a=e.length;n<a;n++)i=p(i,e[n],t);return i}function g(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);return e}function v(e,t,i){for(var n in t)t.hasOwnProperty(n)&&(i?null!=t[n]:null==e[n])&&(e[n]=t[n]);return e}var b,y=function(){return d.createCanvas()};function w(){return b||(b=y().getContext("2d")),b}function _(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var i=0,n=e.length;i<n;i++)if(e[i]===t)return i}return-1}function I(e,t){var i=e.prototype;function n(){}for(var a in n.prototype=t.prototype,e.prototype=new n,i)i.hasOwnProperty(a)&&(e.prototype[a]=i[a]);e.prototype.constructor=e,e.superClass=t}function x(e,t,i){e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,v(e,t,i)}function S(e){if(e)return"string"!==typeof e&&"number"===typeof e.length}function T(e,t,i){if(e&&t)if(e.forEach&&e.forEach===o)e.forEach(t,i);else if(e.length===+e.length)for(var n=0,a=e.length;n<a;n++)t.call(i,e[n],n,e);else for(var r in e)e.hasOwnProperty(r)&&t.call(i,e[r],r,e)}function C(e,t,i){if(e&&t){if(e.map&&e.map===c)return e.map(t,i);for(var n=[],a=0,r=e.length;a<r;a++)n.push(t.call(i,e[a],a,e));return n}}function k(e,t,i,n){if(e&&t){if(e.reduce&&e.reduce===u)return e.reduce(t,i,n);for(var a=0,r=e.length;a<r;a++)i=t.call(n,i,e[a],a,e);return i}}function R(e,t,i){if(e&&t){if(e.filter&&e.filter===s)return e.filter(t,i);for(var n=[],a=0,r=e.length;a<r;a++)t.call(i,e[a],a,e)&&n.push(e[a]);return n}}function D(e,t,i){if(e&&t)for(var n=0,a=e.length;n<a;n++)if(t.call(i,e[n],n,e))return e[n]}function L(e,t){var i=l.call(arguments,2);return function(){return e.apply(t,i.concat(l.call(arguments)))}}function O(e){var t=l.call(arguments,1);return function(){return e.apply(this,t.concat(l.call(arguments)))}}function $(e){return"[object Array]"===a.call(e)}function N(e){return"function"===typeof e}function A(e){return"[object String]"===a.call(e)}function P(e){var t=typeof e;return"function"===t||!!e&&"object"===t}function E(e){return!!i[a.call(e)]}function M(e){return!!n[a.call(e)]}function F(e){return"object"===typeof e&&"number"===typeof e.nodeType&&"object"===typeof e.ownerDocument}function j(e){return e!==e}function V(e){for(var t=0,i=arguments.length;t<i;t++)if(null!=arguments[t])return arguments[t]}function q(e,t){return null!=e?e:t}function z(e,t,i){return null!=e?e:null!=t?t:i}function B(){return Function.call.apply(l,arguments)}function U(e){if("number"===typeof e)return[e,e,e,e];var t=e.length;return 2===t?[e[0],e[1],e[0],e[1]]:3===t?[e[0],e[1],e[2],e[1]]:e}function Q(e,t){if(!e)throw new Error(t)}function H(e){return null==e?null:"function"===typeof e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}d.createCanvas=function(){return document.createElement("canvas")};var G="__ec_primitive__";function W(e){e[G]=!0}function Y(e){return e[G]}function K(e){var t=$(e);this.data={};var i=this;function n(e,n){t?i.set(e,n):i.set(n,e)}e instanceof K?e.each(n):e&&T(e,n)}function Z(e){return new K(e)}function X(e,t){for(var i=new e.constructor(e.length+t.length),n=0;n<e.length;n++)i[n]=e[n];var a=e.length;for(n=0;n<t.length;n++)i[n+a]=t[n];return i}function J(){}K.prototype={constructor:K,get:function(e){return this.data.hasOwnProperty(e)?this.data[e]:null},set:function(e,t){return this.data[e]=t},each:function(e,t){for(var i in void 0!==t&&(e=L(e,t)),this.data)this.data.hasOwnProperty(i)&&e(this.data[i],i)},removeKey:function(e){delete this.data[e]}},t.$override=f,t.clone=h,t.merge=p,t.mergeAll=m,t.extend=g,t.defaults=v,t.createCanvas=y,t.getContext=w,t.indexOf=_,t.inherits=I,t.mixin=x,t.isArrayLike=S,t.each=T,t.map=C,t.reduce=k,t.filter=R,t.find=D,t.bind=L,t.curry=O,t.isArray=$,t.isFunction=N,t.isString=A,t.isObject=P,t.isBuiltInObject=E,t.isTypedArray=M,t.isDom=F,t.eqNaN=j,t.retrieve=V,t.retrieve2=q,t.retrieve3=z,t.slice=B,t.normalizeCssArray=U,t.assert=Q,t.trim=H,t.setAsPrimitive=W,t.isPrimitive=Y,t.createHashMap=Z,t.concatArray=X,t.noop=J},"6d9a":function(e,t){function i(e,t,i){var n,a=[e],r=[];while(n=a.pop())if(r.push(n),n.isExpand){var o=n.children;if(o.length)for(var s=0;s<o.length;s++)a.push(o[s])}while(n=r.pop())t(n,i)}function n(e,t){var i,n=[e];while(i=n.pop())if(t(i),i.isExpand){var a=i.children;if(a.length)for(var r=a.length-1;r>=0;r--)n.push(a[r])}}t.eachAfter=i,t.eachBefore=n},"6dd1":function(e,t,i){},"6e2e":function(e,t,i){},"6e6e":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("div",{attrs:{slot:"search-container"},slot:"search-container"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:reviewAssign:table:subjectCode")}},[i("el-input",{staticStyle:{width:"100px"},model:{value:e.searchData.SubjectCode,callback:function(t){e.$set(e.searchData,"SubjectCode",t)},expression:"searchData.SubjectCode"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:reviewAssign:searchForm:reader")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.DoctorUserId,callback:function(t){e.$set(e.searchData,"DoctorUserId",t)},expression:"searchData.DoctorUserId"}},e._l(e.DoctorUserList,(function(e){return i("el-option",{key:"taskSearchData"+e.DoctorUserId,attrs:{value:e.DoctorUserId,label:e.UserName+"("+e.FullName+")"}})})),1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.getList}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")]),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:reading:readTaskAllocation:edit"],expression:"['trials:trials-panel:reading:readTaskAllocation:edit']"}],attrs:{type:"primary",loading:e.btnLoading},on:{click:function(t){return e.manualAllocation()}}},[e._v("\n "+e._s(e.$t("trials:reviewAssign:button:manualAllocation"))+"\n ")])],1)],1)],1),e._v(" "),i("div",{attrs:{slot:"main-container"},slot:"main-container"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:85},expression:"{bottomOffset:85}"}],attrs:{border:"",data:e.list,stripe:"",height:"100"},on:{"selection-change":e.handleSubjectAssignListSelectChange}},[i("el-table-column",{attrs:{type:"selection",align:"left",width:"45"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialSiteCode",label:e.$t("trials:qcCfg:table:order"),width:"50","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.$index+1)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode",label:e.$t("trials:reviewAssign:table:subjectCode"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitTaskTypeCount",label:e.$t("trials:trials-list:form:visitCount"),"show-overflow-tooltip":""}}),e._v(" "),e.OtherInfo&&e.OtherInfo.IsGlobalReading?i("el-table-column",{attrs:{prop:"GlobalTaskTypeCount",label:e.$t("trials:reviewAssign:table:global"),"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{staticStyle:{color:"#00D1B2",cursor:"pointer"},on:{click:function(i){return e.openAllocation("task",2,t.row.SubjectCode)}}},[e._v(e._s(t.row.GlobalTaskTypeCount))])]}}],null,!1,2101672749)}):e._e(),e._v(" "),e.OtherInfo&&e.OtherInfo.IsArbitrationReading&&2===e.ReadingType?i("el-table-column",{attrs:{prop:"JudgeTaskTypeCount",label:e.$t("trials:reviewAssign:table:ad"),"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{staticStyle:{color:"#00D1B2",cursor:"pointer"},on:{click:function(i){return e.openAllocation("referee",4,t.row.SubjectCode)}}},[e._v(e._s(t.row.JudgeTaskTypeCount))])]}}],null,!1,168920946)}):e._e(),e._v(" "),e.OtherInfo&&e.OtherInfo.IsOncologyReading?i("el-table-column",{attrs:{prop:"OncologyTaskTypeCount",label:e.$t("trials:reviewAssign:table:oncology"),"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{staticStyle:{color:"#00D1B2",cursor:"pointer"},on:{click:function(i){return e.openAllocation("task",5,t.row.SubjectCode)}}},[e._v(e._s(t.row.OncologyTaskTypeCount))])]}}],null,!1,1958599697)}):e._e(),e._v(" "),1===e.ReadingType?i("el-table-column",{attrs:{prop:"SubjectCode",label:e.$t("trials:trials-panel:readTaskAllocation:search:ReadPeople"),"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NowDoctorUserList.length?i("div",{staticStyle:{display:"flex","justify-content":"left","align-items":"center"}},[e.findDoctorUser(t.row.NowDoctorUserList,0).DoctorUser?i("el-tag",[e._v("\n "+e._s(e.findDoctorUser(t.row.NowDoctorUserList,0).DoctorUser.UserName+"("+e.findDoctorUser(t.row.NowDoctorUserList,0).DoctorUser.FullName+")")+"\n ")]):e._e()],1):e._e()]}}],null,!1,2543667032)}):e._e(),e._v(" "),2===e.ReadingType?i("el-table-column",{attrs:{prop:"SubjectCode",label:e.$t("trials:trials-panel:readTaskAllocation:search:ReadPeople"),"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NowDoctorUserList.length?i("div",{staticStyle:{display:"flex","justify-content":"left","align-items":"center"}},[e.findDoctorUser(t.row.NowDoctorUserList,1).DoctorUser?i("el-tag",[e._v("\n "+e._s(e.findDoctorUser(t.row.NowDoctorUserList,1).DoctorUser.UserName+"("+e.findDoctorUser(t.row.NowDoctorUserList,1).DoctorUser.FullName+")")+"\n ")]):e._e()],1):e._e()]}}],null,!1,697847417)}):e._e(),e._v(" "),2===e.ReadingType?i("el-table-column",{attrs:{prop:"SubjectCode",label:e.$t("trials:reviewAssign:table:r2"),"min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NowDoctorUserList.length?i("div",{staticStyle:{display:"flex","justify-content":"left","align-items":"center"}},[e.findDoctorUser(t.row.NowDoctorUserList,2).DoctorUser?i("el-tag",[e._v("\n "+e._s(""+e.findDoctorUser(t.row.NowDoctorUserList,2).DoctorUser.UserName)+"\n ")]):e._e()],1):e._e()]}}],null,!1,2262754035)}):e._e(),e._v(" "),e.OtherInfo&&e.OtherInfo.IsArbitrationReading&&2===e.ReadingType?i("el-table-column",{attrs:{prop:"SubjectCode",label:e.$t("trials:reviewAssign:table:ad"),"min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NowDoctorUserList.length?i("div",{staticStyle:{display:"flex","justify-content":"left","align-items":"center"}},[e.findDoctorUser(t.row.NowDoctorUserList,3).DoctorUser?i("el-tag",[e._v("\n "+e._s(""+e.findDoctorUser(t.row.NowDoctorUserList,3).DoctorUser.UserName)+"\n ")]):e._e()],1):e._e()]}}],null,!1,585215795)}):e._e(),e._v(" "),e.OtherInfo&&e.OtherInfo.IsOncologyReading?i("el-table-column",{attrs:{prop:"SubjectCode",label:e.$t("trials:reviewAssign:table:o1"),"min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.NowDoctorUserList.length?i("div",{staticStyle:{display:"flex","justify-content":"left","align-items":"center"}},[e.findDoctorUser(t.row.NowDoctorUserList,4).DoctorUser?i("el-tag",[e._v("\n "+e._s(""+e.findDoctorUser(t.row.NowDoctorUserList,4).DoctorUser.UserName)+"\n ")]):e._e()],1):e._e()]}}],null,!1,2520079859)}):e._e(),e._v(" "),e.hasPermi(["trials:trials-panel:reading:readTaskAllocation:edit"])?i("el-table-column",{attrs:{prop:"",label:e.$t("common:action:action"),width:"180","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{circle:"",disabled:4===t.row.NowDoctorUserList.length,icon:"el-icon-thumb",title:e.$t("trials:reviewAssign:tableAction:manualAssignment")},on:{click:function(i){return e.manualAllocation(t.row)}}}),e._v(" "),i("el-button",{attrs:{circle:"",disabled:0===t.row.NowDoctorUserList.length,icon:"el-icon-close",title:e.$t("trials:reviewAssign:tableAction:clearReaders")},on:{click:function(i){return e.openClearAudience(t.row)}}})]}}],null,!1,2216531921)}):e._e()],1),e._v(" "),i("pagination",{staticClass:"page",staticStyle:{"text-align":"right","margin-top":"10px"},attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}}),e._v(" "),i("el-dialog",{attrs:{title:e.$t("trials:reviewAssign:dialog:allocationRules"),visible:e.AllocationConfigVisible,width:"800px","close-on-click-modal":!1,"custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.AllocationConfigVisible=t}}},[i("div",{staticClass:"base-dialog-body",staticStyle:{position:"relative"}},[i("el-divider",{staticStyle:{"margin-bottom":"40px"},attrs:{"content-position":"left"}},[e._v("\n "+e._s(e.$t("trials:reviewAssign:allocationRules:title:readersList"))+"\n ")]),e._v(" "),i("el-form",{ref:"signForm",staticStyle:{"margin-top":"40px"},attrs:{size:"small","label-width":"0px"}},[i("el-form-item",[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{border:"",data:e.TaskAllocationRuleList,stripe:""}},[i("el-table-column",{attrs:{prop:"DoctorUser.UserName",label:e.$t("trials:reviewAssign:allocationRules:table:reader"),"min-width":"180","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.DoctorUser.UserName+"("+t.row.DoctorUser.FullName+")")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"PlanSubjectCount",label:e.$t("trials:reviewAssign:allocationRules:table:plannedCount"),"min-width":"130","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsEnable",label:e.$t("trials:reviewAssign:allocationRules:table:status"),"min-width":"80","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsEnable?i("el-tag",[e._v(e._s(e.$fd("IsEnable",t.row.IsEnable)))]):i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("IsEnable",t.row.IsEnable)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Note",label:e.$t("trials:reviewAssign:allocationRules:table:remark"),"min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{circle:"",icon:"el-icon-edit-outline",title:e.$t("common:button:edit")},on:{click:function(i){return e.addOrEdit(t.row)}}})]}}])})],1)],1),e._v(" "),i("el-divider",{attrs:{"content-position":"left"}},[e._v("\n "+e._s(e.$t("trials:reviewAssign:allocationRules:title:subsequentAllocationRules"))+"\n ")]),e._v(" "),i("el-descriptions",{staticClass:"margin-top",attrs:{column:1}},[i("el-descriptions-item",[i("template",{slot:"label"},[i("el-checkbox",{attrs:{disabled:""},model:{value:e.TrialTaskInfo.IsFollowVisitAutoAssign,callback:function(t){e.$set(e.TrialTaskInfo,"IsFollowVisitAutoAssign",t)},expression:"TrialTaskInfo.IsFollowVisitAutoAssign"}},[e._v("\n "+e._s(e.$t("trials:reviewAssign:allocationRules:message1"))+" "+e._s(e.$fd("AutoAssignDefaultState",e.TrialTaskInfo.FollowVisitAutoAssignDefaultState))+" ")])],1),e._v(" "),i("div",{staticStyle:{"margin-left":"10px"}})],2)],1)],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.handleCancel}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)]),e._v(" "),e.taskAllocationRuleVisible?i("el-dialog",{attrs:{title:e.title,visible:e.taskAllocationRuleVisible,width:"600px","close-on-click-modal":!1},on:{"update:visible":function(t){e.taskAllocationRuleVisible=t}}},[i("AddOrEditTaskAllocationRule",{attrs:{data:e.rowData,TaskAllocationRuleList:e.TaskAllocationRuleList,"doctor-user-list":e.DoctorUserList},on:{close:function(){e.taskAllocationRuleVisible=!1},getList:e.openAllocationConfigVisible}})],1):e._e(),e._v(" "),e.manualAllocationVisible?i("el-dialog",{attrs:{title:e.$t("trials:reviewAssign:dialog:assignReader"),visible:e.manualAllocationVisible,width:"500px","close-on-click-modal":!1},on:{"update:visible":function(t){e.manualAllocationVisible=t}}},[i("ManualAllocationTable",{attrs:{TrialReadingCriterionId:e.TrialReadingCriterionId,data:e.rowData,"reading-type":e.ReadingType,SubjectAssignSelectList:e.SubjectAssignSelectList},on:{close:function(){e.manualAllocationVisible=!1},getList:e.getList}})],1):e._e(),e._v(" "),e.ClearAudienceVisible?i("el-dialog",{attrs:{title:e.$t("trials:reviewAssign:dialog:clearReader"),visible:e.ClearAudienceVisible,width:"500px","close-on-click-modal":!1},on:{"update:visible":function(t){e.ClearAudienceVisible=t}}},[i("ClearAudienceList",{attrs:{TrialReadingCriterionId:e.TrialReadingCriterionId,data:e.rowData},on:{close:function(){e.ClearAudienceVisible=!1},getList:e.getList}})],1):e._e(),e._v(" "),e.AllocationVisible?i("el-dialog",{attrs:{title:"task"===e.AllocationType?e.$t("trials:reviewAssign:button:visitReadingTasks"):e.$t("trials:reviewAssign:button:adReadingTasks"),visible:e.AllocationVisible,fullscreen:!0,"close-on-click-modal":!1},on:{"update:visible":function(t){e.AllocationVisible=t}}},["task"===e.AllocationType?i("taskAllacation",{attrs:{trialReadingCriterionId:e.TrialReadingCriterionId,allocationReadingCategory:e.AllocationReadingCategory,allocationSubjectCode:e.AllocationSubjectCode}}):i("refereeAllacation",{attrs:{trialReadingCriterionId:e.TrialReadingCriterionId,allocationReadingCategory:e.AllocationReadingCategory,allocationSubjectCode:e.AllocationSubjectCode}})],1):e._e(),e._v(" "),e.SubjectCancelDoctorHistoryVisible?i("el-dialog",{attrs:{title:e.$t("trials:reviewAssign:dialog:cancelHistory"),visible:e.SubjectCancelDoctorHistoryVisible,width:"800px","close-on-click-modal":!1},on:{"update:visible":function(t){e.SubjectCancelDoctorHistoryVisible=t}}},[i("el-table",{attrs:{border:"",data:e.SubjectCancelDoctorHistoryList,stripe:""}},[i("el-table-column",{attrs:{prop:"CreateTime",label:e.$t("trials:reviewAssign:cancelHistory:table:cancelTime"),width:"180","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Note",label:e.$t("trials:reviewAssign:cancelHistory:table:cancelReason"),"show-overflow-tooltip":""}})],1)],1):e._e()],1)])},a=[],r=(i("96cf"),i("3b8d")),o=(i("7514"),i("db72")),s=i("3e42"),l=i("958c"),c=i("c07b"),u=i("6697"),d=i("e3c3"),f=i("6071"),h=i("333d"),p=i("3ca6"),m=i("99e4"),g=function(){return{PageIndex:1,PageSize:20,Asc:!0,SortField:"",TrialId:null,SiteId:null,SubjectId:null,SubjectCode:null,DoctorUserId:null,IsHaveAssigned:null,IsAssignConfirmed:null,TrialReadingCriterionId:null}},v=function(){return{PageIndex:1,PageSize:20,Asc:!0,SortField:"",TrialId:null,SiteId:null,SubjectId:null,SubjectCode:null,IsUrgent:null,TaskName:null,TaskState:null,DoctorUserId:null,ReadingCategory:null,TaskAllocationState:null,BeginAllocateDate:null,EndAllocateDate:null}},b={name:"TrialsNotice",components:{BaseContainer:f["default"],Pagination:h["default"],AddOrEditTaskAllocationRule:c["default"],ManualAllocationTable:u["default"],ClearAudienceList:d["default"],taskAllacation:p["default"],refereeAllacation:m["default"]},data:function(){return{TrialReadingCriterionId:"0",searchData:g(),taskSearchData:v(),maxLength:0,list:[],siteOptions:[],total:0,SubjectAssignListTotal:0,loading:!1,AllocationVisible:!1,AllocationConfigVisible:!1,taskAllocationRuleVisible:!1,AutoAlloctionVisible:!1,ClearAudienceVisible:!1,WaitApplyVisible:!1,applyVisible:!1,manualAllocationVisible:!1,SubjectCancelDoctorHistoryVisible:!1,trialId:this.$route.query.trialId,AllocationType:null,currentData:{},param:{},DoctorUserList:[],TaskAllocationRuleList:[],btnLoading:!1,value:!0,value1:!0,TrialTaskInfo:{TrialId:null,TaskAllocateObjEnum:0,FollowVisitAutoAssignDefaultState:0,FollowGlobalVisitAutoAssignDefaultState:0,TaskAllocateDefaultState:1,IsFollowVisitAutoAssign:!0,IsFollowGlobalVisitAutoAssign:!0},ReadingType:null,rules:{DoctorUserId:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}]},title:"",rowData:{},ApplyTaskInfo:{},timeList:[],WaitApplyList:[],SubjectAssignList:[],SubjectAssignSelectList:[],TaskAllocationRuleSelectList:[],readVisible:!1,TaskOptType:null,OtherInfo:null,SubjectCancelDoctorHistoryList:[],trialCriterionList:[],TrialReadingCriterionList:[],AllocationReadingCategory:null,AllocationSubjectCode:null}},watch:{TrialReadingCriterionId:function(e){e&&this.getList()}},mounted:function(){this.getDoctorUserSelectList(),this.getSite(),this.getTrialCriterionList()},methods:{getTrialCriterionList:function(){var e=this;Object(l["U"])(this.trialId).then((function(t){e.trialCriterionList=t.Result,e.TrialReadingCriterionId=e.trialCriterionList[0].TrialReadingCriterionId})).catch((function(){}))},openSubjectCancelDoctorHistoryList:function(e){var t=this;Object(l["Q"])(e.SubjectId).then((function(e){t.SubjectCancelDoctorHistoryVisible=!0,t.SubjectCancelDoctorHistoryList=e.Result}))},openAllocation:function(e,t,i){this.AllocationVisible=!0,this.AllocationType=e,this.AllocationReadingCategory=t,this.AllocationSubjectCode=i},openClearAudience:function(e){this.rowData=Object(o["a"])({},e),this.ClearAudienceVisible=!0},findDoctorUser:function(e,t){var i;return e.length>0&&(i=e.find((function(e){return e.ArmEnum===t}))?e.find((function(e){return e.ArmEnum===t})):{DoctorUser:null}),i},assignSubjectTaskToDoctor:function(e,t){var i=this;this.rowData=Object(o["a"])({},e),this.rowData.TaskOptType=t,1===t||2===t?this.readVisible=!0:3===t?this.$confirm(this.$t("trials:reviewAssign:message:message01")).then((function(){i.btnLoading=!0,i.loading=!0;var e=Object.assign({},i.rowData);Object(l["h"])(e).then((function(e){i.$message.success(i.$t("common:message:savedSuccessfully")),i.btnLoading=!1,i.loading=!1,i.readVisible=!1,i.getList()})).catch((function(){i.btnLoading=!1,i.loading=!1}))})):4===t&&this.$confirm(this.$t("trials:reviewAssign:message:message02")).then((function(){i.btnLoading=!0,i.loading=!0;var e=Object.assign({},i.rowData);Object(l["h"])(e).then((function(e){i.$message.success(i.$t("common:message:savedSuccessfully")),i.btnLoading=!1,i.loading=!1,i.readVisible=!1,i.getList()})).catch((function(){i.btnLoading=!1,i.loading=!1}))}))},assignSubjectTaskToDoctorSave:function(){var e=this;this.$refs.readDataForm.validate((function(t){if(t){e.btnLoading=!0,e.loading=!0;var i=Object.assign({},e.rowData);Object(l["h"])(i).then((function(t){e.$message.success(e.$t("common:message:savedSuccessfully")),e.btnLoading=!1,e.loading=!1,e.readVisible=!1,e.getList()})).catch((function(){e.btnLoading=!1,e.loading=!1}))}}))},manualAssignDoctorApplyTaskSave:function(){var e=this;this.loading=!0,this.btnLoading=!0,Object(l["W"])(this.ApplyTaskInfo).then((function(t){e.loading=!1,e.btnLoading=!1,e.$message.success(e.$t("trials:reviewAssign:message:message03")),e.WaitApplyVisible=!1,e.getList(),e.openAutoAlloction()})).catch((function(){e.loading=!1,e.btnLoading=!1}))},manualAssignDoctorApplyTask:function(e){var t=this,i={TrialId:this.trialId,SubjectIdList:Object.assign([],this.SubjectAssignSelectList.map((function(e){return e.SubjectId})))};if(this.ApplyTaskInfo={TrialId:this.trialId,SubjectDoctorUserList:Object.assign([],this.SubjectAssignSelectList.map((function(e){return e.DoctorUserIdArmList=e.DoctorUserList,e})))},e){i.SubjectIdList=[e.SubjectId];var n=Object.assign({},e);n.DoctorUserIdArmList=n.DoctorUserList,this.ApplyTaskInfo=Object.assign({},e),delete this.ApplyTaskInfo.DoctorUserList,delete this.ApplyTaskInfo.DoctorUserIdList,this.ApplyTaskInfo.SubjectDoctorUserList=[n]}this.loading=!0,this.btnLoading=!0,Object(l["M"])(i).then((function(e){0!==e.Result.length?(t.WaitApplyList=e.Result,t.WaitApplyVisible=!0,t.loading=!1,t.btnLoading=!1):t.$message.error(t.$t("trials:reviewAssign:message:message04"))})).catch((function(){t.loading=!1,t.btnLoading=!1}))},autoSubjectAssignDoctor:function(){var e=this;this.$confirm(this.$t("trials:reviewAssign:message:message05")).then((function(){e.loading=!0,e.btnLoading=!0,Object(l["i"])({TrialId:e.trialId}).then((function(t){e.loading=!1,e.btnLoading=!1,e.$message.success(e.$t("trials:reviewAssign:message:message06")),e.getList(),e.openAutoAlloction()})).catch((function(){e.loading=!1,e.btnLoading=!1}))}))},handleSaveTaskAllocationRuleSelectList:function(){var e=this;if(0!==this.TaskAllocationRuleSelectList.length){var t;if(t=2===this.ReadingType?2:1,this.TaskAllocationRuleSelectList.length!==t){var i=this.$t("trials:reviewAssign:message:message08");return i=i.replaceAll("xxx",this.$fd("ReadingMethod",this.ReadingType)),void this.$message.error(i)}this.loading=!0,this.btnLoading=!0;var n={DoctorUserIdArmList:this.TaskAllocationRuleSelectList.map((function(t,i){return{DoctorUserId:t.DoctorUserId,ArmEnum:1===e.ReadingType?1:i+1}})),SubjectIdList:this.SubjectAssignSelectList.map((function(e){return e.SubjectId})),TrialId:this.trialId,IsReAssign:!0};Object(l["g"])(n).then((function(t){e.loading=!1,e.btnLoading=!1,e.openAutoAlloction(),e.TaskAllocationRuleSelectList=[],e.SubjectAssignSelectList=[],e.getDoctorUserSelectList(),e.$message.success(e.$t("trials:reviewAssign:message:message09")),e.manualAllocationVisible=!1})).catch((function(){e.loading=!1,e.btnLoading=!1}))}else this.$message.error(this.$t("trials:reviewAssign:message:message07"))},selectable:function(e){var t;return t=2===this.ReadingType?2:1,!(this.TaskAllocationRuleSelectList.length===t&&!this.TaskAllocationRuleSelectList.find((function(t){return t.UserName===e.UserName})))},manualAllocation:function(e){this.rowData={},e&&(this.rowData=Object(o["a"])({},e),this.SubjectAssignSelectList=[e]),0!==this.SubjectAssignSelectList.length?this.manualAllocationVisible=!0:this.$message.error(this.$t("trials:reviewAssign:message:message10"))},handleTaskAllocationRuleListSelectChange:function(e){this.TaskAllocationRuleSelectList=e},handleSubjectAssignListSelectChange:function(e){this.SubjectAssignSelectList=e},changeTimeList:function(){this.timeList?(this.searchData.BeginAllocateDate=this.timeList[0],this.searchData.EndAllocateDate=this.timeList[1]):(this.searchData.BeginAllocateDate=null,this.searchData.EndAllocateDate=null)},handleCancel:function(){this.AllocationConfigVisible=!1},handleSave:function(){var e=this;this.btnLoading=!0,this.loading=!0;var t=Object.assign({},this.TrialTaskInfo);t.TrialId=this.$route.query.trialId,t.TrialReadingCriterionId=this.TrialReadingCriterionId,Object(l["n"])(t).then((function(t){e.btnLoading=!1,e.loading=!1,e.getList(),e.AllocationConfigVisible=!1,e.$message.success(e.$t("common:message:savedSuccessfully"))})).catch((function(){e.btnLoading=!1,e.loading=!1}))},handleDelete:function(e){var t=this,i=this.$t("trials:reviewAssign:message:message11");i=i.replaceAll("xxx","".concat(e.DoctorUser.UserName,"(").concat(e.DoctorUser.FullName,")")),this.$confirm(i,{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.loading=!0,Object(l["r"])(e.Id,!1).then((function(e){t.loading=!1,t.$message.success(t.$t("common:message:deletedSuccessfully")),t.openAllocationConfigVisible()})).catch((function(){t.loading=!1}))}))},addOrEdit:function(e){e?(this.rowData=Object(o["a"])({},e),this.title=this.$t("trials:reviewAssign:allocationRules:edit")):(this.rowData={},this.title=this.$t("trials:reviewAssign:allocationRules:add")),this.taskAllocationRuleVisible=!0},openAllocationConfigVisible:function(){var e=this;this.loading=!0,Object(l["w"])({TrialId:this.$route.query.trialId}).then((function(t){e.loading=!1,e.TaskAllocationRuleList=t.Result,e.list.length>0&&(e.TrialReadingCriterionList=e.TaskAllocationRuleList[0].TrialReadingCriterionList),e.TrialTaskInfo=Object.assign({},t.OtherInfo),e.AllocationConfigVisible=!0,e.taskAllocationRuleVisible=!1})).catch((function(){e.loading=!1}))},openAutoAlloction:function(){var e=this;this.loading=!0,Object(l["R"])({TrialId:this.$route.query.trialId}).then(function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(i){var n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.taskSearchData.TrialId=e.$route.query.trialId,n=Object.assign({},e.taskSearchData),t.next=4,Object(l["O"])(n);case 4:a=t.sent,e.SubjectAssignList=a.Result.CurrentPageData,e.SubjectAssignListTotal=a.Result.TotalCount,e.loading=!1,e.TaskAllocationRuleList=i.Result,e.TrialTaskInfo=Object.assign({},i.OtherInfo),e.AutoAlloctionVisible=!0;case 11:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(){e.loading=!1}))},getDoctorUserSelectList:function(){var e=this;Object(l["A"])(this.$route.query.trialId).then((function(t){e.DoctorUserList=t.Result}))},getList:function(){var e=this;this.searchData.TrialId=this.$route.query.trialId,this.loading=!0,this.searchData.TrialReadingCriterionId=this.TrialReadingCriterionId,Object(l["N"])(this.searchData).then((function(t){e.loading=!1,e.OtherInfo=t.OtherInfo,e.ReadingType=e.OtherInfo.ReadingType,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount,e.ClearAudienceVisible=!1,e.SubjectAssignSelectList=[]})).catch((function(){e.loading=!1}))},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=g(),this.getList()},handleReset2:function(){this.taskSearchData=v(),this.openAutoAlloction()},getSite:function(){var e=this;Object(s["Zd"])(this.trialId).then((function(t){e.siteOptions=t.Result}))},handleSortChange:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()}}},y=b,w=(i("11ae"),i("2877")),_=Object(w["a"])(y,n,a,!1,null,"22df1d54",null);t["default"]=_.exports},"6ecd":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"trialExperience-info"},[i("div",{staticClass:"title"},[e._v("Clinical Trial Experience")]),e._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.GCPList,border:"",size:"small"}},[i("el-table-column",{attrs:{type:"index",label:"No.",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Phase",label:"Phase","min-width":"20","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"EvaluationCriteriaList",label:"Review Criteria","min-width":"40","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.EvaluationCriteriaList.length>0?t.row.EvaluationCriteriaList.join(", "):"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitReadingCount",label:"Visit Reading Count","min-width":"150","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"EvaluationContent",label:"Indication","min-width":"150","show-overflow-tooltip":""}})],1),e._v(" "),i("el-form",{staticClass:"demo-form-inline",attrs:{model:e.form,size:"small"}},[i("el-form-item",{attrs:{label:"GCP Certificate:"}},[i("span",[e._v(e._s(e.GCP))])]),e._v(" "),i("el-form-item",{attrs:{label:"Other Relevant Experience:"}},[e.isEnglish?i("el-input",{attrs:{type:"textarea",autosize:"",readonly:""},model:{value:e.form.OtherClinicalExperience,callback:function(t){e.$set(e.form,"OtherClinicalExperience",t)},expression:"form.OtherClinicalExperience"}}):i("el-input",{attrs:{type:"textarea",autosize:"",readonly:""},model:{value:e.form.OtherClinicalExperienceCN,callback:function(t){e.$set(e.form,"OtherClinicalExperienceCN",t)},expression:"form.OtherClinicalExperienceCN"}})],1)],1)],1)},a=[],r={props:{trialExperience:{type:Object,default:function(){return{}}},isEnglish:{type:Boolean}},data:function(){return{GCPList:[],form:{},GCP:"",GCPPath:""}},mounted:function(){this.GCPList=this.trialExperience.ClinicalTrialExperienceList,this.form=this.trialExperience,this.GCP=this.trialExperience.GCP?"Yes":"No",this.trialExperience.GCP&&(this.GCPPath=this.trialExperience.GCPFullPath)},methods:{previewGCP:function(){this.GCPPath&&window.open(this.GCPPath,"_blank")}}},o=r,s=(i("0f23a"),i("2877")),l=Object(s["a"])(o,n,a,!1,null,null,null);t["default"]=l.exports},"6ee8":function(e,t,i){"use strict";i("711c")},"6f0b":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.pageLoading,expression:"pageLoading"}],staticStyle:{height:"100%",display:"flex","flex-direction":"column"}},[i("div",{staticStyle:{height:"50px"}},[i("div",{staticStyle:{"text-align":"right"}},[i("el-switch",{staticStyle:{"margin-right":"20px"},attrs:{"active-text":"EN","inactive-text":"中文"},model:{value:e.isEnglish,callback:function(t){e.isEnglish=t},expression:"isEnglish"}})],1),e._v(" "),i("div",{staticStyle:{"text-align":"center"}},[i("h3",[e._v(e._s(e.title))])])]),e._v(" "),i("div",{staticStyle:{flex:"1","margin-top":"50px","overflow-y":"auto"}},[i("el-collapse",{model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},[i("el-collapse-item",{attrs:{title:"Basic Info",name:"1"}},[i("basic-info",{attrs:{"basic-info":e.doctorInfo.BasicInfoView,"is-english":e.isEnglish}})],1),e._v(" "),i("el-collapse-item",{attrs:{title:"Employment",name:"2"}},[i("Employment",{attrs:{employment:e.workInfo,"is-english":e.isEnglish}})],1),e._v(" "),i("el-collapse-item",{attrs:{title:"Specialty",name:"3"}},[i("Specialty",{attrs:{specialty:e.specialtyList,"is-english":e.isEnglish}})],1),e._v(" "),i("el-collapse-item",{attrs:{title:"Education & Training",name:"4"}},[i("education-training",{attrs:{"education-list":e.doctorInfo.EducationList,"postgraduate-list":e.doctorInfo.PostgraduateList,"is-english":e.isEnglish}})],1),e._v(" "),i("el-collapse-item",{attrs:{title:"Research & Publication",name:"5"}},[i("research-publication",{attrs:{"research-info":e.doctorInfo.ResearchPublicationView,"audit-view":e.doctorInfo.AuditView,"is-english":e.isEnglish}})],1),e._v(" "),i("el-collapse-item",{attrs:{title:"Trial Experience",name:"6"}},[e.doctorInfo.TrialExperienceView?i("trial-experience",{attrs:{"trial-experience":e.doctorInfo.TrialExperienceView,"is-english":e.isEnglish}}):e._e()],1)],1)],1)])},a=[],r=i("33ba"),o=i("506e"),s=i("f5c3"),l=i("0dd0"),c=i("dffe"),u=i("b061"),d=i("bf5d"),f=i("6ecd"),h=i("6024"),p=i("6d3c"),m=i("9edc"),g=i("6483"),v={components:{StatusInfo:o["default"],BasicInfo:s["default"],Employment:l["default"],Specialty:c["default"],EducationTraining:u["default"],ResearchPublication:d["default"],TrialExperience:f["default"],Credentials:h["default"],Resume:p["default"],Agreements:m["default"],Comment:g["default"]},data:function(){return{isEnglish:!0,htmlTitle:"",title:"",holiday:"",loading:!1,activeNames:["1","2","3","4","5","6","7","8","9","10"],statusList:{},basicInfo:{},workInfo:{},researchInfo:{},certificateTbl:[],resumeList:[],specialtyList:{Speciality:"",ReadingType:"",Subspeciality:""},doctorInfo:{},agreementList:[],pageLoading:!1,doctorId:""}},mounted:function(){this.isEnglish=!(!0!==this.$route.query.isEnglish&&"true"!==this.$route.query.isEnglish),this.doctorId=this.$route.query.doctorId,this.initForm()},methods:{initStatus:function(){if(this.doctorInfo.AuditView){var e=this.doctorInfo.AuditView;this.statusList.ResumeStatus=0===e.ResumeStatus?"":1===e.ResumeStatus?"Yes":"No",this.statusList.CooperateStatus=0===e.CooperateStatus?"":1===e.CooperateStatus?"Yes":"No",this.statusList.ReviewStatus=0===e.ReviewStatus?"":1===e.ReviewStatus?"Yes":"No",this.statusList.AcceptingNewTrial=e.AcceptingNewTrial?"Yes":"No",this.statusList.ActivelyReading=e.ActivelyReading?"Yes":"No",this.statusList.AdminComment=e.AdminComment,this.statusList.Submitted=this.doctorInfo.IntoGroupInfo?this.doctorInfo.IntoGroupInfo.Submitted:0,this.statusList.Approved=this.doctorInfo.IntoGroupInfo?this.doctorInfo.IntoGroupInfo.Approved:0,this.statusList.Reading=this.doctorInfo.IntoGroupInfo?this.doctorInfo.IntoGroupInfo.Reading:0}},initEmploymentInfo:function(){this.doctorInfo.EmploymentView&&(this.workInfo=this.doctorInfo.EmploymentView,this.workInfo.Department="ef84e9cb-f1a6-49d7-b6da-34be2c12abd5"===this.workInfo.DepartmentId?this.workInfo.DepartmentOther?this.workInfo.DepartmentOther:"Other":this.workInfo.Department,this.workInfo.DepartmentCN="ef84e9cb-f1a6-49d7-b6da-34be2c12abd5"===this.workInfo.DepartmentId?this.workInfo.DepartmentOtherCN:this.workInfo.DepartmentCN,this.workInfo.RankOther=this.workInfo.RankOther?"Other - "+this.workInfo.RankOther:"Other",this.workInfo.Rank="ef84e9cb-f1a6-49d7-b6da-34be2c12abd5"===this.workInfo.RankId?this.workInfo.RankOther:this.workInfo.Rank,this.workInfo.RankCN="ef84e9cb-f1a6-49d7-b6da-34be2c12abd5"===this.workInfo.RankId?this.workInfo.RankOtherCN:this.workInfo.RankCN,"ef84e9cb-f1a6-49d7-b6da-34be2c12abd5"===this.workInfo.PositionId?(this.workInfo.Position=this.workInfo.PositionOther,this.workInfo.PositionCN=this.workInfo.PositionOtherCN):"f30a074b-2b47-4a92-97ec-e15086d37883"===this.workInfo.PositionId?this.workInfo.Position="None":(this.workInfo.Position=this.workInfo.Position,this.workInfo.PositionCN=this.workInfo.PositionCN),this.workInfo.PositionOther=this.workInfo.PositionOther?"Other - "+this.workInfo.PositionOther:"Other")},initSpecialtyInfo:function(){if(this.doctorInfo.SpecialtyView){var e=this.doctorInfo.SpecialtyView;this.specialtyList.Department=e.DepartmentName?e.DepartmentName:"Other-"+e.DepartmentOther,e.ReadingTypeOther&&e.ReadingTypeList.push("Other-"+e.ReadingTypeOther),this.specialtyList.ReadingType=e.ReadingTypeList.length>0?e.ReadingTypeList.join(", "):"",e.ReadingTypeOtherCN&&e.ReadingTypeCNList.push(e.ReadingTypeOtherCN),this.specialtyList.ReadingTypeCNList=e.ReadingTypeCNList.length>0?e.ReadingTypeCNList.join(", "):"",e.SubspecialityOther&&e.SubspecialityList.push("Other-"+e.SubspecialityOther),e.SubspecialityOtherCN&&e.SubspecialityCNList.push(e.SubspecialityOtherCN),this.specialtyList.Subspeciality=e.SubspecialityList.length>0?e.SubspecialityList.join(", "):"",this.specialtyList.SubspecialityCNList=e.SubspecialityCNList.length>0?e.SubspecialityCNList.join(", "):"",this.specialtyList.Speciality="ef84e9cb-f1a6-49d7-b6da-34be2c12abd5"===e.SpecialityId?"Other-"+e.SpecialityOther:e.Speciality,this.specialtyList.SpecialityCN="ef84e9cb-f1a6-49d7-b6da-34be2c12abd5"===e.SpecialityId?e.SpecialityOtherCN:e.SpecialityCN}},initForm:function(){var e=this;this.doctorId&&(this.pageLoading=!0,Object(r["q"])(this.doctorId).then((function(t){e.pageLoading=!1,t.IsSuccess&&t.Result&&(e.holiday=t.Result.InHoliday?"Yes":"No",e.doctorInfo=t.Result,e.title="".concat(e.doctorInfo.BasicInfoView.BlindName," 's Details"),e.htmlTitle=e.title,e.initStatus(),e.initEmploymentInfo(),e.initSpecialtyInfo())})))}}},b=v,y=(i("c746"),i("2877")),w=Object(y["a"])(b,n,a,!1,null,"b364bc2a",null);t["default"]=w.exports},"6f0f":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"institution-wrapper"},[i("el-tabs",{on:{"tab-click":e.clickTab},model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},[i("el-tab-pane",{attrs:{label:"Hospitals",name:"Hospitals"}},["Hospitals"===e.activeTab?i("Hospitals"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Sites",name:"Sites"}},["Sites"===e.activeTab?i("Sites"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"CROs",name:"CROs"}},["CROs"===e.activeTab?i("CROs"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Sponsors",name:"Sponsors"}},["Sponsors"===e.activeTab?i("Sponsors"):e._e()],1)],1)],1)},a=[],r=(i("7f7f"),i("c22c")),o=i("293b"),s=i("a5fc"),l=i("723e"),c={name:"Financials",components:{Hospitals:r["default"],Sites:o["default"],CROs:s["default"],Sponsors:l["default"]},data:function(){return{activeTab:""}},mounted:function(){this.$route.query.tabActive?this.activeTab=this.$route.query.tabActive:this.activeTab="Hospitals"},methods:{clickTab:function(e,t){this.$router.push({path:"/dictionary/institutions?tabActive=".concat(e.name)})}}},u=c,d=(i("23f7"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},"6f18":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"sysTemplateFrom",staticClass:"upload-temporary-file",attrs:{model:e.form,"label-width":"90px",size:"small",rules:e.rules}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:"Code",prop:"Code"}},[i("el-input",{model:{value:e.form.Code,callback:function(t){e.$set(e.form,"Code",t)},expression:"form.Code"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"业务场景: ",prop:"BusinessScenarioEnum"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{size:"small",filterable:""},model:{value:e.form.BusinessScenarioEnum,callback:function(t){e.$set(e.form,"BusinessScenarioEnum",t)},expression:"form.BusinessScenarioEnum"}},e._l(e.$d.Common_File_BusinessScenario,(function(e){return i("el-option",{key:e.id,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"文件: "}},[i("div",{staticClass:"upload-container"},[i("el-upload",{staticClass:"upload-demo",attrs:{action:"",accept:".xls,.xlsx,.doc,.docx","before-upload":e.beforeUpload,"http-request":e.handleUploadFile,"on-preview":e.handlePreview,"on-remove":e.handleRemoveFile,"show-file-list":!0,"file-list":e.fileList,limit:1,"on-exceed":e.handleExceed,disabled:!e.form.FileTypeEnum||!e.form.BusinessScenarioEnum}},[i("el-button",{attrs:{size:"small",type:"primary",disabled:!e.form.FileTypeEnum||!e.form.BusinessScenarioEnum,loading:e.btnLoading}},[e._v("Select")]),e._v(" "),i("span",{staticClass:"el-upload__tip",staticStyle:{"margin-left":"10px"},attrs:{slot:"tip"},slot:"tip"},[e._v("\n (must be in xlsx/xls/doc/docx format)\n ")])],1)],1)]),e._v(" "),""!==e.form.Id?i("el-form-item",{attrs:{label:"是否废除: "}},[i("el-radio-group",{model:{value:e.form.IsDeleted,callback:function(t){e.$set(e.form,"IsDeleted",t)},expression:"form.IsDeleted"}},[i("el-radio",{attrs:{label:!0}},[e._v("是")]),e._v(" "),i("el-radio",{attrs:{label:!1}},[e._v("否")])],1)],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:"描述"}},[i("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"请输入内容"},model:{value:e.form.Description,callback:function(t){e.$set(e.form,"Description",t)},expression:"form.Description"}})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{size:"small",type:"primary",disabled:!e.form.FileTypeEnum||!e.form.BusinessScenarioEnum,loading:e.saveBtnLoading},on:{click:e.handleSave}},[e._v("Save")])],1)],1)])},a=[],r=(i("7f7f"),i("db72")),o=(i("ac6a"),i("456d"),i("96cf"),i("3b8d")),s=i("e56e"),l=i("86a6"),c={name:"TemplateForm",props:{data:{type:Object,default:function(){return{}}}},data:function(){return{form:{Id:"",Code:"",FileTypeEnum:null,BusinessScenarioEnum:null,Name:"",Path:"",Description:"",IsDeleted:!1},rules:{Code:[{required:!0,message:"Please specify",trigger:["blur"]}],BusinessScenarioEnum:[{required:!0,message:"Please select",trigger:["blur"]}]},fileList:[],btnLoading:!1,saveBtnLoading:!1,loading:!1,dictionaryList:{}}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getDicData();case 2:if(Object.keys(this.data).length>0)for(t in this.data.Path&&(this.fileList=[{name:this.data.Name,path:this.data.Path,type:this.data.Type}]),this.form)this.data.hasOwnProperty(t)&&(this.form[t]=this.data[t]);case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getDicData:function(){var e=this;this.loading=!0,Object(l["c"])(["Common_File_ModuleType","Common_File_Type"]).then((function(t){e.dictionaryList=Object(r["a"])({},t.Result),e.loading=!1})).catch((function(){e.loading=!1}))},beforeUpload:function(e){return this.checkFileSuffix(e.name)?(this.fileList=[],!0):(this.$message.error("必须是word/excel格式"),!1)},handleUploadFile:function(e){var t=this;this.btnLoading=!0,Object(s["Pb"])(e.file).then((function(i){if(t.btnLoading=!1,i.IsSuccess){t.form.Path=i.Result.FilePath,t.form.Name=e.file.name;var n={name:t.form.Name,path:t.form.Path};t.fileList.push(n)}})).catch((function(){t.btnLoading=!1}))},handleSave:function(){var e=this;this.$refs.sysTemplateFrom.validate((function(t){t&&(e.form.Name?(e.saveBtnLoading=!0,Object(s["e"])(e.form).then((function(t){e.saveBtnLoading=!1,e.$emit("closeDialog"),e.$emit("getList"),e.$message.success("Uploaded successfully")})).catch((function(){e.saveBtnLoading=!1}))):e.$message.error("Please select file."))}))},handleRemoveFile:function(){this.fileList=[],this.form.Path="",this.form.Name=""},handlePreview:function(e){e.fullPath&&window.open(e.fullPath,"_blank")},handleExceed:function(e,t){this.$message.warning("Upload is currently limited to 1 file")},checkFileSuffix:function(e){var t=["xls","xlsx","doc","docx"],i=e.substring(e.lastIndexOf(".")+1).toLocaleLowerCase();return-1!==t.indexOf(i)}}},u=c,d=(i("f35c"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},"6f59":function(e,t,i){},"6f5f":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{height:"100%","background-color":"#fff"}},[i("div",{staticStyle:{position:"relative"},attrs:{slot:"search-container"},slot:"search-container"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:readTask:table:subjectCode")}},[i("el-input",{staticStyle:{width:"130px"},attrs:{clearable:""},model:{value:e.searchData.SubjectCode,callback:function(t){e.$set(e.searchData,"SubjectCode",t)},expression:"searchData.SubjectCode"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")])],1)],1),e._v(" "),i("span",{staticStyle:{position:"absolute",right:"0",top:"0"}},[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:readTask:reread"],expression:"['trials:readTask:reread']"}],attrs:{disabled:0===e.list.length,type:"primary",icon:"el-icon-refresh-right"},on:{click:e.handleReread}},[e._v("\n "+e._s(e.$t("trials:readTask:button:reread"))+"\n ")])],1)],1),e._v(" "),i("div",{attrs:{slot:"main-container"},slot:"main-container"},[i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:75},expression:"{bottomOffset:75}"}],attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortChange}},[i("el-table-column",{attrs:{type:"index",width:"40",align:"left"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskCode","min-width":"100",label:e.$t("trials:readTask:table:taskCode"),sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode","min-width":"100",label:e.$t("trials:readTask:table:subjectCode"),sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskBlindName","min-width":"100",label:e.$t("trials:trials-list:form:visitCount"),sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"SignTime","min-width":"120",label:e.$t("trials:readTask:table:signTime"),sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"250",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{circle:"",title:e.$t("trials:readTask:button:view"),icon:"el-icon-view"},on:{click:function(i){return e.handleReadImage(t.row)}}}),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:readTask:apply"],expression:"['trials:readTask:apply']"}],attrs:{disabled:0!==t.row.TaskState||2!==t.row.ReadingTaskState||2===t.row.ReReadingApplyState||4===t.row.ReReadingApplyState||5===t.row.ReReadingApplyState,icon:"el-icon-collection",circle:"",title:e.$t("trials:readTask:button:apply")},on:{click:function(i){return e.openApplyReReading(t.row)}}}),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:readTask:backwardHistory"],expression:"['trials:readTask:backwardHistory']"}],attrs:{disabled:!t.row.ReReadingApplyState,icon:"el-icon-toilet-paper",circle:"",title:e.$t("trials:readTask:button:backward")},on:{click:function(i){return e.reReadingHistory(t.row,1)}}})]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1),e._v(" "),e.ApplyforReasonVisible?i("el-dialog",{attrs:{title:e.$t("trials:readTask:dagTitle:apply"),visible:e.ApplyforReasonVisible,width:"1460px","append-to-body":"","close-on-click-modal":!1,"custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.ApplyforReasonVisible=t}}},[i("el-form",{ref:"reasonForm",staticClass:"demo-ruleForm",attrs:{rules:e.rules,model:e.ApplyforReasonForm,size:"small","label-width":"150px"}},[i("el-divider",{attrs:{"content-position":"left"}},[e._v(e._s(e.$t("trials:readTask:title:applyReason")))]),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:readTask:title:applyReason"),prop:"Type",rules:[{required:!0,message:e.$t("common:ruleMessage:select")}]}},[i("el-radio-group",{model:{value:e.ApplyforReasonForm.Type,callback:function(t){e.$set(e.ApplyforReasonForm,"Type",t)},expression:"ApplyforReasonForm.Type"}},[i("el-radio",{attrs:{label:1}},[e._v(e._s(e.$t("trials:readTask:option:errorRecords")))]),e._v(" "),i("el-radio",{attrs:{label:2}},[e._v(e._s(e.$t("trials:readTask:option:other")))])],1)],1),e._v(" "),2===e.ApplyforReasonForm.Type?i("el-form-item",{attrs:{label:e.$t("trials:readTask:title:remark"),prop:"RequestReReadingReason"}},[i("el-input",{staticStyle:{width:"400px"},attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:e.$t("common:ruleMessage:specify"),maxlength:"500","show-word-limit":""},model:{value:e.ApplyforReasonForm.RequestReReadingReason,callback:function(t){e.$set(e.ApplyforReasonForm,"RequestReReadingReason",t)},expression:"ApplyforReasonForm.RequestReReadingReason"}})],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:readTask:title:copyForm"),prop:"IsCopyOrigenalForms",rules:[{required:!0,message:e.$t("common:ruleMessage:select")}]}},[i("el-radio-group",{model:{value:e.ApplyforReasonForm.IsCopyOrigenalForms,callback:function(t){e.$set(e.ApplyforReasonForm,"IsCopyOrigenalForms",t)},expression:"ApplyforReasonForm.IsCopyOrigenalForms"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"IsCopyOrigenalForms"+t.raw.Id,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1)],1),e._v(" "),i("el-divider",{attrs:{"content-position":"left"}},[e._v(e._s(e.$t("trials:readTask:title:influenceList")))]),e._v(" "),i("div",{staticStyle:{padding:"10px",border:"1px solid #e0e0e0","max-height":"650px","overflow-y":"auto"}},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{"min-height":"400px"},attrs:{data:e.InfluenceTaskList,stripe:"",height:"100"}},[i("el-table-column",{attrs:{prop:"TaskCode",label:e.$t("trials:readTask:table:taskCode"),"min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialSiteCode",label:e.$t("trials:readTask:table:siteCode"),"min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode",label:e.$t("trials:readTask:table:subjectCode"),"min-width":"120","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskBlindName",label:e.$t("trials:readTask:table:blindName"),"min-width":"120","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialReadingCriterionName",label:e.$t("trials:readTask:table:criterionName"),"min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskState",label:e.$t("trials:readTask:table:taskState"),"min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.TaskState?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e(),e._v(" "),1===t.row.TaskState?i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e(),e._v(" "),3===t.row.TaskState?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e(),e._v(" "),4===t.row.TaskState?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e()]}}],null,!1,3420009093)}),e._v(" "),i("el-table-column",{attrs:{prop:"ReadingCategory","min-width":"100",label:e.$t("trials:readTask:table:readingCategory"),"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.ReadingCategory?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e(),e._v(" "),2===t.row.ReadingCategory?i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e(),e._v(" "),4===t.row.ReadingCategory?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e(),e._v(" "),5===t.row.ReadingCategory?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e()]}}],null,!1,3295727457)}),e._v(" "),i("el-table-column",{attrs:{prop:"ReadingTaskState",label:e.$t("trials:readTask:table:readingTaskState"),"min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[2===t.row.ReadingTaskState?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ReadingTaskState",t.row.ReadingTaskState)))]):i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ReadingTaskState",t.row.ReadingTaskState)))])]}}],null,!1,2667573932)}),e._v(" "),i("el-table-column",{attrs:{prop:"OptType",label:e.$t("trials:readTask:table:optType"),"min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.OptType?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ReReadingOrBackOptType",t.row.OptType)))]):e._e(),e._v(" "),1===t.row.OptType?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ReReadingOrBackOptType",t.row.OptType)))]):e._e(),e._v(" "),2===t.row.OptType?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("ReReadingOrBackOptType",t.row.OptType)))]):e._e()]}}],null,!1,2995316527)}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:e.$t("trials:readTask:table:reader"),"min-width":"160","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return t.row.DoctorUser?[e._v("\n "+e._s(t.row.DoctorUser.UserName)+"("+e._s(t.row.DoctorUser.FullName)+")\n ")]:void 0}}],null,!0)})],1)],1),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){e.ApplyforReasonVisible=!1,e.ApplyforReasonForm={Type:null,RequestReReadingReason:null}}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{loading:e.btnLoading,size:"small",type:"primary"},on:{click:e.applyReReading}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1):e._e()],1)},a=[],r=i("db72"),o=i("3e42"),s=i("958c"),l=i("6071"),c=i("333d"),u=i("5f87"),d=function(){return{SubjectCode:"",SortField:"",PageIndex:1,PageSize:20,TaskState:null,ReadingCategory:null}},f={name:"ReadTask",components:{BaseContainer:l["default"],Pagination:c["default"]},data:function(){return{searchData:d(),list:[],total:0,loading:!1,btnLoading:!1,trialId:"",ApplyforReasonVisible:!1,ApplyforReasonForm:{Type:null,RequestReReadingReason:null,IsCopyOrigenalForms:null,IsCopyFollowForms:null},InfluenceTaskList:[],rules:{Type:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}],IsCopyOrigenalForms:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}],RequestReReadingReason:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}]},trialCriterionList:[],TrialReadingCriterionId:"0"}},watch:{TrialReadingCriterionId:function(e){e&&this.getList()}},mounted:function(){this.trialId=this.$route.query.trialId,this.getTrialCriterionList()},methods:{getTrialCriterionList:function(){var e=this;Object(s["U"])(this.trialId).then((function(t){e.trialCriterionList=t.Result,e.TrialReadingCriterionId=e.trialCriterionList[0].TrialReadingCriterionId})).catch((function(){}))},reReadingHistory:function(e){this.$router.push({path:"/trials/trials-panel/reading/rereadTask?trialId=".concat(this.$route.query.trialId,"&trialCode=").concat(this.$route.query.trialCode,"&researchProgramNo=").concat(this.$route.query.researchProgramNo,"&SiteId=").concat(e.SiteId,"&SubjectCode=").concat(e.SubjectCode,"&TaskName=").concat(e.TaskName)})},getList:function(){var e=this;this.loading=!0,this.searchData.TrialId=this.trialId,this.searchData.TrialReadingCriterionId=this.TrialReadingCriterionId,Object(o["hc"])(this.searchData).then((function(t){e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount,e.loading=!1})).catch((function(){e.loading=!1}))},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=d(),this.getList()},handleReadImage:function(e){window.localStorage.setItem("TrialReadingCriterionId",this.TrialReadingCriterionId);var t=Object(u["a"])(),i="";i=0===e.ReadingTool?"/readingDicoms?TrialReadingCriterionId=".concat(e.TrialReadingCriterionId,"&trialId=").concat(this.trialId,"&subjectCode=").concat(e.SubjectCode,"&subjectId=").concat(e.SubjectId,"&visitTaskId=").concat(e.Id,"&isReadingTaskViewInOrder=").concat(e.IsReadingTaskViewInOrder,"&criterionType=").concat(e.CriterionType,"&readingTool=").concat(e.ReadingTool,"&TokenKey=").concat(t):"/noneDicomReading?TrialReadingCriterionId=".concat(e.TrialReadingCriterionId,"&trialId=").concat(this.trialId,"&subjectCode=").concat(e.SubjectCode,"&subjectId=").concat(e.SubjectId,"&visitTaskId=").concat(e.Id,"&isReadingTaskViewInOrder=").concat(e.IsReadingTaskViewInOrder,"&criterionType=").concat(e.CriterionType,"&readingTool=").concat(e.ReadingTool,"&TokenKey=").concat(t);var n=this.$router.resolve({path:i});window.open(n.href,"_blank")},openApplyReReading:function(e){var t=this;this.rowData=Object(r["a"])({},e),this.loading=!0,Object(s["H"])(e.Id,!0).then((function(e){t.InfluenceTaskList=e.Result,t.ApplyforReasonVisible=!0,t.ApplyforReasonForm={Type:null,Remake:null},t.loading=!1})).catch((function(){t.loading=!1}))},applyReReading:function(){var e=this;this.$refs.reasonForm.validate((function(t){if(t){e.loading=!0,e.btnLoading=!0;var i={TaskIdList:[e.rowData.Id],TrialId:e.$route.query.trialId,IsCopyOrigenalForms:e.ApplyforReasonForm.IsCopyOrigenalForms,IsCopyFollowForms:e.ApplyforReasonForm.IsCopyFollowForms,RequestReReadingType:1,RequestReReadingReason:2===e.ApplyforReasonForm.Type?e.ApplyforReasonForm.RequestReReadingReason:e.$t("trials:readTask:option:errorRecords")};Object(s["e"])(i).then((function(t){e.loading=!1,e.btnLoading=!1,e.$message.success(e.$t("trials:readTask:message:msg1")),e.getList(),e.ApplyforReasonVisible=!1})).catch((function(){e.loading=!1,e.btnLoading=!1}))}}))},handleReread:function(){var e=this;this.$confirm(this.$t("trials:readTask:message:msg2"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){e.loading=!0;var t={trialId:e.trialId,trialReadingCriterionId:e.TrialReadingCriterionId};Object(o["f"])(t).then((function(t){e.$message({message:e.$t("trials:readTask:message:msg3"),type:"success"}),e.getList()})).catch((function(){e.loading=!1})),console.log(t)})).catch((function(){e.loading=!1}))},handleSortChange:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()}}},h=f,p=i("2877"),m=Object(p["a"])(h,n,a,!1,null,null,null);t["default"]=m.exports},"6f97":function(e,t,i){},"6fc8":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"viewerContainer"},[i("div",{staticClass:"viewerContentWrapper"},[i("div",{staticClass:"viewerLeftSidePanel"},[i("div",{staticClass:"sidePanelBody",attrs:{id:"listWrapper"}},[i("div",{staticClass:"sidePanelThumbs"},[i("el-tabs",{attrs:{type:"border-card"},on:{"tab-click":e.handleTabClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[i("el-tab-pane",{attrs:{label:"当前检查",name:"current-study"}},[i("div",{staticClass:"text-desc"},[e._v("\n "+e._s(e.visitInfo)+"\n ")]),e._v(" "),i("div",{staticClass:"viewerSidethumbs ps",staticStyle:{position:"relative"}},[i("div",{staticClass:"viewerSidethumbinner"},e._l(e.studyList,(function(t,n){return i("div",{key:n},[i("div",{staticClass:"text-desc"},[e._v("\n "+e._s(t.StudyCode)+"\n ")]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.Description,expression:"study.Description"}],staticClass:"text-desc"},[e._v("\n "+e._s(t.Description)+"\n ")]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.SeriesCount,expression:"study.SeriesCount"}],staticClass:"text-desc"},[e._v("\n "+e._s(t.Modalities)+" : "+e._s(t.SeriesCount)+" Series\n ")]),e._v(" "),e._l(t.SeriesList,(function(t,a){return i("div",{key:a,class:{viewerSideActive:0==a&&0===n},staticStyle:{position:"relative","margin-bottom":"5px","border-radius":"2px",border:"1px solid #404040"},attrs:{"series-type":"current"},on:{click:function(i){return e.showSeriesImage(i,n,a,t)}}},[i("div",{staticClass:"viewernavigatorwrapper"},[i("el-image",{staticClass:"image-preview",staticStyle:{height:"72px",width:"72px"},attrs:{src:t.previewImageUrl,fit:"fill"}}),e._v(" "),i("div",{staticClass:"viewernavitextwrapper"},[i("div",{staticStyle:{padding:"1px"}},[e._v("\n #"+e._s(t.seriesNumber)+"\n ")]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.InstanceCount,expression:"series.InstanceCount"}],staticStyle:{padding:"1px"}},[e._v("\n "+e._s(t.modality)+": "+e._s(t.instanceCount)+" image\n ")]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.sliceThickness,expression:" series.sliceThickness"}],staticStyle:{padding:"1px"}},[e._v("\n T: "+e._s(t.sliceThickness)+"\n ")]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.description,expression:"series.description"}],staticStyle:{width:"120px","white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis",padding:"1x"}},[e._v("\n "+e._s(t.description)+"\n ")]),e._v(" "),i("div",{staticStyle:{padding:"1px"}},[e._v("\n "+e._s(t.prefetchInstanceCount)+"/"+e._s(t.instanceCount)+"\n ")])])],1),e._v(" "),e.showDelete?i("div",{on:{click:function(e){e.stopPropagation()}}},[i("span",{staticStyle:{"font-size":"12px"}},[e._v("是否阅片")]),e._v(" "),i("el-switch",{attrs:{size:"mini"},on:{change:function(i){return e.changeReadingStatus(i,t)}},model:{value:t.isReading,callback:function(i){e.$set(t,"isReading",i)},expression:"series.isReading"}}),e._v(" "),i("span",{staticStyle:{"font-size":"12px"}},[e._v("是否删除")]),e._v(" "),i("el-switch",{attrs:{size:"mini"},on:{change:function(i){return e.changeDeleteStatus(i,t)}},model:{value:t.isDeleted,callback:function(i){e.$set(t,"isDeleted",i)},expression:"series.isDeleted"}})],1):e._e(),e._v(" "),t.prefetchInstanceCount>0&&t.prefetchInstanceCount<t.instanceCount?i("div",[i("el-progress",{attrs:{percentage:parseInt((t.prefetchInstanceCount/t.instanceCount*100).toFixed(2))}})],1):e._e()])}))],2)})),0)])]),e._v(" "),i("el-tab-pane",{staticClass:"pane-relation-wrapper",attrs:{label:"关联检查",name:"relation-study"}},[i("div",e._l(e.relationStudyList,(function(t,n){return i("div",{key:n,staticStyle:{"margin-bottom":"5px"}},[i("div",{class:["text-desc","relationVisit","relation-study-wrapper-"+n],on:{click:function(i){return e.getRelationSeriesByStudy(t.StudyId,n)}}},[i("span",{directives:[{name:"show",rawName:"v-show",value:t.VisitName,expression:"study.VisitName"}]},[e._v(e._s(t.VisitName)+" ")]),e._v(" "),i("span",{directives:[{name:"show",rawName:"v-show",value:t.StudyCode,expression:"study.StudyCode"}]},[e._v(" : "+e._s(t.StudyCode))]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.Modalities,expression:"study.Modalities"}]},[e._v("\n "+e._s(t.Modalities)+" : "+e._s(t.SeriesCount)+" Series\n ")]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.Description,expression:"study.Description"}]},[e._v("\n "+e._s(t.Description)+"\n ")])]),e._v(" "),t.seriesList&&t.showSeries?i("div",{staticClass:"viewerSidethumbs ps",staticStyle:{position:"relative"}},[i("div",{staticClass:"viewerSidethumbinner"},e._l(t.seriesList,(function(t,n){return i("div",{key:n,staticClass:"viewernavigatorwrapper",staticStyle:{position:"relative"},attrs:{"series-type":"relation"},on:{click:function(i){return e.showRelationSeriesImage(i,t,n)}}},[i("el-image",{staticClass:"image-preview",staticStyle:{height:"72px",width:"72px"},attrs:{src:t.previewImageUrl,fit:"fill"}}),e._v(" "),i("div",{staticClass:"viewernavitextwrapper"},[t.keySeries?i("div",{staticStyle:{padding:"1px",color:"red"}},[e._v("\n Key Images\n ")]):i("div",{staticStyle:{padding:"1px"}},[e._v("\n #"+e._s(t.seriesNumber)+"\n ")]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.instanceCount,expression:" seriesItem.instanceCount"}],staticStyle:{padding:"1px"}},[e._v("\n "+e._s(t.modality)+": "+e._s(t.instanceCount)+" image\n ")]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.sliceThickness,expression:"seriesItem.sliceThickness"}],staticStyle:{padding:"1px"}},[e._v("\n T: "+e._s(t.sliceThickness)+"\n ")]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.description,expression:"seriesItem.description"}],staticStyle:{padding:"1x"}},[e._v("\n "+e._s(t.description)+"\n ")])])],1)})),0)]):e._e()])})),0)])],1)],1)])]),e._v(" "),i("div",{staticClass:"viewerContent"},[i("dicom-viewer",{ref:"dicomViewer",staticStyle:{height:"100%"},attrs:{id:"dicomViewer"}})],1)])])},a=[],r=(i("20d6"),i("6762"),i("2fdb"),i("db72")),o=(i("7f7f"),i("a481"),i("5df3"),i("1c4c"),i("28a5"),i("ac6a"),i("acd4")),s=i("81d9"),l=i("344d"),c=i("cc73"),u=i("0a05"),d=i("3e42"),f=i("f5c4"),h=i("4360"),p=i("a599");l["external"].dicomParser=o,l["external"].cornerstone=s;var m={name:"DicomsOfVisit",components:{"dicom-viewer":c["default"]},data:function(){return{studyList:[],visitInfo:"",activeName:"current-study",relationStudyList:[],cachedImages:[],isReading:null,isStartLoad:!1,firstInstanceId:"",firstSeriesId:"",showDelete:0}},mounted:function(){this.$router.currentRoute.query.TokenKey&&(h["a"].dispatch("user/setToken",this.$router.currentRoute.query.TokenKey),Object(p["a"])("TokenKey","")),this.trialId=this.$router.currentRoute.query.trialId,this.subjectVisitId=this.$router.currentRoute.query.subjectVisitId,this.visitInfo=this.$router.currentRoute.query.visitInfo,this.isReading=this.$router.currentRoute.query.isReading?1*this.$router.currentRoute.query.isReading:0,this.showDelete=this.$router.currentRoute.query.showDelete,s["events"].addEventListener("cornerstoneimageloaded",this.cornerstoneImageLoaded),this.getStudiesInfo()},beforeDestroy:function(){f["a"].stopTaskTimer()},methods:{getStudiesInfo:function(){var e=this;this.studyList=[],Object(u["n"])(this.trialId,this.subjectVisitId,this.isReading).then((function(t){if(t.Result.forEach((function(t){var i={};i.StudyId=t.StudyId,i.StudyCode=t.StudyCode,i.Modalities=t.Modalities,i.SeriesCount=t.SeriesCount,i.InstanceCount=t.InstanceCount,i.InstanceCount=t.InstanceCount,i.PreviewImageCount=0;var n=[];t.SeriesList.forEach((function(i){var a=[];i.InstancePathList.forEach((function(e){a.push("wadouri:".concat("USA"!==localStorage.getItem("location")?"https://zyypacs-mdc.oss-cn-shanghai.aliyuncs.com":"https://zyypacs-usa.oss-us-west-1.aliyuncs.com").concat(e))})),n.push({trialId:e.trialId,subjectVisitId:e.subjectVisitId,studyId:t.StudyId,imageIds:a,seriesId:i.Id,seriesUid:i.SeriesInstanceUid,seriesNumber:i.SeriesNumber,sliceThickness:i.SliceThickness,modality:i.Modality,description:i.Description,isReading:i.IsReading,isDeleted:i.IsDeleted,previewImageUrl:"/api/series/preview/".concat(i.Id),instanceCount:i.InstanceCount,prefetchInstanceCount:0,loadStatus:!1,imageloadedArr:[]})})),i.SeriesList=n,e.studyList.push(i)})),e.studyList.length>0){e.$refs.dicomViewer.loadImageStack(e.studyList[0].SeriesList[0]);var i=e.studyList[0].SeriesList[0].imageIds[0],n=i.split("/")[i.split("/").length-1];n=n.split(".")[0],e.firstInstanceId=n}}))},showSeriesImage:function(e,t,i,n){var a=this,r=e.currentTarget,o=document.querySelectorAll("[series-type]");if(Array.from(o).forEach((function(e){e.classList.remove("viewerSideActive")})),r.classList.add("viewerSideActive"),this.currentSeriesIndex=i,this.$refs.dicomViewer.loadImageStack(this.studyList[t].SeriesList[i]),!n.loadStatus){n.isLoading=!0;var s=parseInt((new Date).getTime());n.imageIds.map((function(e,t){var i="";i=0===t?10*parseInt((new Date).getTime()):s-1,a.load(e,n.seriesId,i)}))}},changeReadingStatus:function(e,t){var i=this,n="";e?(n=this.$t("trials:audit:label:setSeriesReading"),t.isReading=!1):(n=this.$t("trials:audit:label:setSeriesNotReading"),t.isReading=!0);var a=this.$t("trials:audit:message:changeSeriesStatus").replace("xxx",n);this.$confirm(a,{distinguishCancelAndClose:!0,type:"warning"}).then((function(){var e=t.isReading?1:2;i.loading=!0,Object(d["Re"])(t.trialId,t.subjectVisitId,t.studyId,t.seriesId,e).then((function(e){i.loading=!1,e.IsSuccess&&(t.isReading=!t.isReading,i.$message.success(i.$t("common:message:savedSuccessfully")),window.opener.postMessage({type:"refreshSeriesList",data:""},window.location))})).catch((function(){i.loading=!1}))})).catch((function(){}))},changeDeleteStatus:function(e,t){var i=this,n="";e?(n=this.$t("trials:audit:label:setSeriesDeleted"),t.isDeleted=!1):(n=this.$t("trials:audit:label:setSeriesNotDelete"),t.isDeleted=!0);var a=this.$t("trials:audit:message:changeSeriesStatus").replace("xxx",n);this.$confirm(a,{distinguishCancelAndClose:!0,type:"warning"}).then((function(){var e=t.isDeleted?5:4;i.loading=!0,Object(d["Re"])(t.trialId,t.subjectVisitId,t.studyId,t.seriesId,e).then((function(e){i.loading=!1,e.IsSuccess&&(t.isDeleted=!t.isDeleted,i.$message.success(i.$t("common:message:savedSuccessfully")),window.opener.postMessage({type:"refreshSeriesList",data:""},window.location))})).catch((function(){i.loading=!1}))})).catch((function(){}))},handleTabClick:function(e,t){var i=this;if("relation-study"===e.name&&this.relationStudyList.length<=0){var n=this.$loading({target:document.querySelector(".pane-relation-wrapper"),fullscreen:!1,lock:!0,text:"Loading",background:"rgb(49 49 49 / 50%)",spinner:"el-icon-loading"});Object(u["e"])(this.subjectVisitId).then((function(e){n.close(),i.relationStudyList=e.Result})).catch((function(){n.close()}))}},getRelationSeriesByStudy:function(e,t){if(this.relationStudyList[t].seriesCount)this.relationStudyList[t].showSeries=!this.relationStudyList[t].showSeries,this.$forceUpdate();else{var i=this,n=this.$loading({target:document.querySelector(".relation-study-wrapper-".concat(t)),fullscreen:!1,lock:!0,text:"Loading",background:"rgb(49 49 49 / 50%)",spinner:"el-icon-loading"});Object(u["k"])(e).then((function(a){i.relationStudyList[t].studyCode=a.Result.StudyCode,i.relationStudyList[t].modality=a.Result.Modalities,i.relationStudyList[t].seriesCount=a.Result.SeriesCount,Object(u["j"])("/series/list/".concat(e)).then((function(e){if(n.close(),null!=e.Result&&e.Result.length>0){var a=[],r=e.Result;r.forEach((function(e){var t=[];e.InstancePathList.forEach((function(e){t.push("wadouri:".concat("USA"!==localStorage.getItem("location")?"https://zyypacs-mdc.oss-cn-shanghai.aliyuncs.com":"https://zyypacs-usa.oss-us-west-1.aliyuncs.com").concat(e))})),a.push({imageIds:t,seriesId:e.Id,seriesUid:e.SeriesInstanceUid,seriesNumber:e.SeriesNumber,sliceThickness:e.SliceThickness,modality:e.Modality,description:e.Description,previewImageUrl:"/api/series/preview/".concat(e.Id),instanceCount:e.InstanceCount,prefetchInstanceCount:0,hasLabel:e.HasLabel,keySeries:e.KeySeries,loadStatus:!1,imageloadedArr:[]})})),i.relationStudyList[t].seriesCount=a.length,i.relationStudyList[t].seriesList=a,i.relationStudyList[t].showSeries=!0,i.$forceUpdate()}})).catch((function(){n.close()}))})).catch((function(){n.close()}))}},showRelationSeriesImage:function(e,t,i){this.currentRelationIndex=i;var n=e.currentTarget,a=document.querySelectorAll("[series-type]");Array.from(a).forEach((function(e){e.classList.remove("viewerSideActive")})),n.classList.add("viewerSideActive"),this.$refs.dicomViewer.loadImageStack(t)},loadAllImages:function(){var e=this,t=parseInt((new Date).getTime()),i=[];this.studyList.map((function(n){n.SeriesList.map((function(n){if(!n.loadStatus&&n.seriesId!==e.firstSeriesId){var a=isNaN(parseInt(n.sliceThickness))?null:parseInt(n.sliceThickness);(5===a||n.instanceCount<=100)&&n.imageIds.map((function(e){i.push({imageId:e,seriesId:n.seriesId,priority:t})}))}}))})),f["a"].setPendingList(i)},load:function(e,t){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:999;return new Promise((function(a,r){f["a"].loadAndCacheImagePlus(e,t,n).then((function(t){t&&(i.imageLoaded(e,t.data.string("x0020000e")),a(t))})).catch((function(e){r(e)}))}))},buildImageRequestTask:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(r["a"])(Object(r["a"])({key:e},t),{},{execute:function(){return s["loadAndCacheImage"](e)}})},datasetsCacheChanged:function(e){var t=e.detail.cacheInfo;t.cacheSizeInBytes},imageLoaded:function(e,t){for(var i=-1,n=-1,a=0;a<this.studyList.length;++a){for(var r=0;r<this.studyList[a].SeriesList.length;++r)if(this.studyList[a].SeriesList[r].seriesUid===t){i=a,n=r;break}if(i>0)break}if(!(n<0)){var o=this.studyList[i].SeriesList[n].imageIds.indexOf(e);o<0||this.studyList[i].SeriesList[n].imageloadedArr.indexOf(e)<0&&(++this.studyList[i].SeriesList[n].prefetchInstanceCount,this.studyList[i].SeriesList[n].imageloadedArr.push(e),this.studyList[i].SeriesList[n].prefetchInstanceCount>=this.studyList[i].SeriesList[n].instanceCount&&(this.studyList[i].SeriesList[n].prefetchInstanceCount=this.studyList[i].SeriesList[n].instanceCount,this.studyList[i].SeriesList[n].loadStatus=!0))}},cornerstoneImageLoaded:function(e){e.detail.image.imageId.includes(this.firstInstanceId)&&!this.isStartLoad&&(this.loadAllImages(),this.isStartLoad=!0,f["a"].executeTask());var t=e.detail.image.sharedCacheKey,i=this.cachedImages.findIndex((function(e){return e.uri===t}));-1===i?this.cachedImages.push({uri:t,timestamp:(new Date).getTime()}):this.cachedImages[i].timestamp=(new Date).getTime();for(var n=e.detail.image.imageId,a=e.detail.image.data.string("x0020000e"),r=-1,o=-1,s=0;s<this.studyList.length;++s){for(var l=0;l<this.studyList[s].SeriesList.length;++l)if(this.studyList[s].SeriesList[l].seriesUid===a){r=s,o=l;break}if(r>0)break}if(!(o<0)){var c=this.studyList[r].SeriesList[o].imageIds.indexOf(n);c<0||this.studyList[r].SeriesList[o].imageloadedArr.indexOf(n)<0&&(++this.studyList[r].SeriesList[o].prefetchInstanceCount,this.studyList[r].SeriesList[o].imageloadedArr.push(n),this.studyList[r].SeriesList[o].prefetchInstanceCount>=this.studyList[r].SeriesList[o].instanceCount&&(this.studyList[r].SeriesList[o].prefetchInstanceCount=this.studyList[r].SeriesList[o].instanceCount,this.studyList[r].SeriesList[o].loadStatus=!0))}}}},g=m,v=(i("5bef"),i("2877")),b=Object(v["a"])(g,n,a,!1,null,null,null);t["default"]=b.exports},"6fda":function(e,t,i){var n=i("6d8b"),a=n.each,r="\0_ec_hist_store";function o(e,t){var i=u(e);a(t,(function(t,n){for(var a=i.length-1;a>=0;a--){var r=i[a];if(r[n])break}if(a<0){var o=e.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(o){var s=o.getPercentRange();i[0][n]={dataZoomId:n,start:s[0],end:s[1]}}}})),i.push(t)}function s(e){var t=u(e),i=t[t.length-1];t.length>1&&t.pop();var n={};return a(i,(function(e,i){for(var a=t.length-1;a>=0;a--){e=t[a][i];if(e){n[i]=e;break}}})),n}function l(e){e[r]=null}function c(e){return u(e).length}function u(e){var t=e[r];return t||(t=e[r]=[{}]),t}t.push=o,t.pop=s,t.clear=l,t.count=c},"6fdc":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container"},[i("el-tabs",{on:{"tab-click":e.clickTab},model:{value:e.active,callback:function(t){e.active=t},expression:"active"}},[i("el-tab-pane",{attrs:{label:"Basic Info",name:"BasicInfo"}},[e.load.BasicInfo?i("basic-info"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Employment",name:"Employment"}},[e.load.Employment?i("Employment"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Specialty",name:"Specialty"}},[e.load.Specialty?i("specialty"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Education & Training",name:"EducationTraining"}},[e.load.EducationTraining?i("education-training"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Research & Publication",name:"ResearchPublication"}},[e.load.ResearchPublication?i("research-publication"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Trial Experience",name:"TrialExperience"}},[e.load.TrialExperience?i("trial-experience"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Credentials",name:"Credentials"}},[e.load.Credentials?i("Credentials"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Resumes",name:"Resumes"}},[e.load.Resumes?i("Resumes"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Agreements",name:"Agreements"}},[e.load.Agreements?i("Agreements"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Setting",name:"Setting"}},[e.load.Setting?i("Setting"):e._e()],1)],1)],1)},a=[],r=(i("7f7f"),i("383e")),o=i("cf4f"),s=i("ff7e"),l=i("2021"),c=i("77f5"),u=i("3290"),d=i("63a6"),f=i("4aa2"),h=i("6cce"),p=i("ca86"),m=i("a599"),g={components:{BasicInfo:r["default"],Employment:o["default"],Specialty:s["default"],EducationTraining:l["default"],ResearchPublication:c["default"],TrialExperience:u["default"],Credentials:d["default"],Resumes:f["default"],Agreements:h["default"],Setting:p["default"]},data:function(){return{id:this.$route.query.Id,active:"",load:{BasicInfo:!0,Employment:!1,Specialty:!1,EducationTraining:!1,ResearchPublication:!1,TrialExperience:!1,Credentials:!1,Resumes:!1,Agreements:!1,Setting:!1}}},created:function(){""===this.$route.query.Id&&this.$router.push({path:"/reviewers/reviewers-list"}),this.active=this.$route.query.tabActive,this.load[this.active]=!0},methods:{clickTab:function(e,t){!1===this.load[e.name]&&(this.load[e.name]=!0),Object(m["a"])("tabActive",e.name);var i=Object(m["b"])("Id"),n=Object(m["b"])("isEnglish");this.$router.push({path:"/reviewers/reviewers-edit?Id=".concat(i,"&isEnglish=").concat(n,"&tabActive=").concat(e.name)})}}},v=g,b=(i("3c13"),i("2877")),y=Object(b["a"])(v,n,a,!1,null,"7a9b7290",null);t["default"]=y.exports},"6ff0":function(e,t,i){"use strict";i("b7c3")},7023:function(e,t,i){var n=i("6d8b"),a={updateSelectedMap:function(e){this._targetList=n.isArray(e)?e.slice():[],this._selectTargetMap=n.reduce(e||[],(function(e,t){return e.set(t.name,t),e}),n.createHashMap())},select:function(e,t){var i=null!=t?this._targetList[t]:this._selectTargetMap.get(e),n=this.get("selectedMode");"single"===n&&this._selectTargetMap.each((function(e){e.selected=!1})),i&&(i.selected=!0)},unSelect:function(e,t){var i=null!=t?this._targetList[t]:this._selectTargetMap.get(e);i&&(i.selected=!1)},toggleSelected:function(e,t){var i=null!=t?this._targetList[t]:this._selectTargetMap.get(e);if(null!=i)return this[i.selected?"unSelect":"select"](e,t),i.selected},isSelected:function(e,t){var i=null!=t?this._targetList[t]:this._selectTargetMap.get(e);return i&&i.selected}};e.exports=a},7037:function(e,t){function i(t){return e.exports=i="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,i(t)}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},7069:function(e,t,i){"use strict";i("68f7")},"707c":function(e,t,i){"use strict";i("7aa8")},7086:function(e,t,i){},"70eb":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"role"},[i("div",{ref:"leftContainer",staticClass:"left"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("admin:KeyWord")}},[i("el-input",{attrs:{clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.getList(t)}},model:{value:e.queryParams.SearchFilter,callback:function(t){e.$set(e.queryParams,"SearchFilter",t)},expression:"queryParams.SearchFilter"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:e.getList}},[e._v(e._s(e.$t("common:button:search")))]),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:role:add"],expression:"['system:role:add']"}],attrs:{type:"primary",icon:"el-icon-plus",size:"mini"},on:{click:e.handleAddRole}},[e._v("\n "+e._s(e.$t("common:button:new")))])],1)],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:30},expression:"{bottomOffset:30}"}],staticClass:"table",attrs:{size:"small",height:"100",data:e.list}},[i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("admin:UserType"),prop:"UserTypeName","min-width":"220","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("admin:Shortname"),prop:"UserTypeShortName","min-width":"120","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("admin:Group"),prop:"Note","min-width":"80","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.UserTypeGroupList.map((function(e){return e.GroupName})).toString())+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("admin:PermissionStr"),prop:"PermissionStr","min-width":"220","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("admin:Description"),prop:"Description","min-width":"220","show-overflow-tooltip":""}}),e._v(" "),e.hasPermi(["system:role:edit"])?i("el-table-column",{attrs:{label:"Action",width:"280"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:role:edit"],expression:"['system:role:edit']"}],attrs:{size:"mini",type:"text",icon:"el-icon-edit"},on:{click:function(i){return e.handleEditRole(t.row)}}},[e._v("Edit")]),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:role:delete"],expression:"['system:role:delete']"}],attrs:{size:"mini",type:"text",icon:"el-icon-delete"},on:{click:function(i){return e.handleDeleteRole(t.row)}}},[e._v("Delete")])]}}],null,!1,3778757461)}):e._e()],1)],1),e._v(" "),e.model_cfg.visible?i("role-form",{attrs:{data:e.editRow},on:{close:e.closeModal}}):e._e()],1)},a=[],r=(i("20d6"),i("30b0")),o=i("50fc"),s=i("de9d"),l=i("fab6"),c={name:"Role",components:{RoleForm:s["default"]},dicts:["UserTypeGroup"],mixins:[l["a"]],data:function(){return{role_columns:r["b"],model_cfg:r["a"],list:[],total:0,loading:!1,treeData:[],defaultProps:{label:"MenuName",children:"Children"},queryParams:{GroupId:void 0,SearchFilter:void 0},dialogVisible:!1,editRow:{},expandedKeys:[],treeLoading:!1,funcListLoading:!1,funcList:[]}},mounted:function(){this.getList()},methods:{getDictionary:function(){},getList:function(){var e=this;this.loading=!0,Object(o["p"])(this.queryParams).then((function(t){e.loading=!1,e.list=t.Result})).catch((function(){e.loading=!1}))},handleAddRole:function(){this.editRow={},this.model_cfg.visible=!0,this.model_cfg.title="Add"},handleEditRole:function(e){this.editRow=e,this.model_cfg.visible=!0,this.model_cfg.title="Edit"},handlePermission:function(e){},handleDeleteRole:function(e){var t=this;this.$confirm("Sure to delete?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){Object(o["f"])(e.Id).then((function(i){i.IsSuccess&&(t.list.splice(t.list.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success("Deleted successfully!"))}))}))},closeModal:function(){this.model_cfg.visible=!1,this.getList()}}},u=c,d=(i("6d1f"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},"711c":function(e,t,i){},7148:function(e,t,i){},7154:function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-dashboard",use:"icon-dashboard-usage",viewBox:"0 0 128 100",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 100" id="icon-dashboard"><path d="M27.429 63.638c0-2.508-.893-4.65-2.679-6.424-1.786-1.775-3.94-2.662-6.464-2.662-2.524 0-4.679.887-6.465 2.662-1.785 1.774-2.678 3.916-2.678 6.424 0 2.508.893 4.65 2.678 6.424 1.786 1.775 3.94 2.662 6.465 2.662 2.524 0 4.678-.887 6.464-2.662 1.786-1.775 2.679-3.916 2.679-6.424zm13.714-31.801c0-2.508-.893-4.65-2.679-6.424-1.785-1.775-3.94-2.662-6.464-2.662-2.524 0-4.679.887-6.464 2.662-1.786 1.774-2.679 3.916-2.679 6.424 0 2.508.893 4.65 2.679 6.424 1.785 1.774 3.94 2.662 6.464 2.662 2.524 0 4.679-.888 6.464-2.662 1.786-1.775 2.679-3.916 2.679-6.424zM71.714 65.98l7.215-27.116c.285-1.23.107-2.378-.536-3.443-.643-1.064-1.56-1.762-2.75-2.094-1.19-.33-2.333-.177-3.429.462-1.095.639-1.81 1.573-2.143 2.804l-7.214 27.116c-2.857.237-5.405 1.266-7.643 3.088-2.238 1.822-3.738 4.152-4.5 6.992-.952 3.644-.476 7.098 1.429 10.364 1.905 3.265 4.69 5.37 8.357 6.317 3.667.947 7.143.474 10.429-1.42 3.285-1.892 5.404-4.66 6.357-8.305.762-2.84.619-5.607-.429-8.305-1.047-2.697-2.762-4.85-5.143-6.46zm47.143-2.342c0-2.508-.893-4.65-2.678-6.424-1.786-1.775-3.94-2.662-6.465-2.662-2.524 0-4.678.887-6.464 2.662-1.786 1.774-2.679 3.916-2.679 6.424 0 2.508.893 4.65 2.679 6.424 1.786 1.775 3.94 2.662 6.464 2.662 2.524 0 4.679-.887 6.465-2.662 1.785-1.775 2.678-3.916 2.678-6.424zm-45.714-45.43c0-2.509-.893-4.65-2.679-6.425C68.68 10.01 66.524 9.122 64 9.122c-2.524 0-4.679.887-6.464 2.661-1.786 1.775-2.679 3.916-2.679 6.425 0 2.508.893 4.65 2.679 6.424 1.785 1.774 3.94 2.662 6.464 2.662 2.524 0 4.679-.888 6.464-2.662 1.786-1.775 2.679-3.916 2.679-6.424zm32 13.629c0-2.508-.893-4.65-2.679-6.424-1.785-1.775-3.94-2.662-6.464-2.662-2.524 0-4.679.887-6.464 2.662-1.786 1.774-2.679 3.916-2.679 6.424 0 2.508.893 4.65 2.679 6.424 1.785 1.774 3.94 2.662 6.464 2.662 2.524 0 4.679-.888 6.464-2.662 1.786-1.775 2.679-3.916 2.679-6.424zM128 63.638c0 12.351-3.357 23.78-10.071 34.286-.905 1.372-2.19 2.058-3.858 2.058H13.93c-1.667 0-2.953-.686-3.858-2.058C3.357 87.465 0 76.037 0 63.638c0-8.613 1.69-16.847 5.071-24.703C8.452 31.08 13 24.312 18.714 18.634c5.715-5.68 12.524-10.199 20.429-13.559C47.048 1.715 55.333.035 64 .035c8.667 0 16.952 1.68 24.857 5.04 7.905 3.36 14.714 7.88 20.429 13.559 5.714 5.678 10.262 12.446 13.643 20.301 3.38 7.856 5.071 16.09 5.071 24.703z" /></symbol>'});o.a.add(s);t["default"]=s},"71ad":function(e,t,i){var n=i("6d8b"),a={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#333",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},r={};r.categoryAxis=n.merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},a),r.valueAxis=n.merge({boundaryGap:[0,0],splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#eee",width:1}}},a),r.timeAxis=n.defaults({scale:!0,min:"dataMin",max:"dataMax"},r.valueAxis),r.logAxis=n.defaults({scale:!0,logBase:10},r.valueAxis);var o=r;e.exports=o},"71b2":function(e,t,i){var n=i("6d8b"),a=n.createHashMap;function r(e){e.eachSeriesByType("themeRiver",(function(e){var t=e.getData(),i=e.getRawData(),n=e.get("color"),r=a();t.each((function(e){r.set(t.getRawIndex(e),e)})),i.each((function(a){var o=i.getName(a),s=n[(e.nameMap.get(o)-1)%n.length];i.setItemVisual(a,"color",s);var l=r.get(a);null!=l&&t.setItemVisual(l,"color",s)}))}))}e.exports=r},"71ed":function(e,t,i){},7234:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{ref:"uploadExcel",staticClass:"upload-excel-file"},[i("el-form-item",{attrs:{label:e.$t("trials:consistencyCheck:label:file")}},[i("div",{staticClass:"upload-container"},[i("el-upload",{staticClass:"upload-demo",attrs:{action:"",accept:".xlsx,.xls,.csv","before-upload":e.beforeUpload,"http-request":e.handleUploadFile,"on-preview":e.handlePreview,"show-file-list":!0,limit:1,"on-exceed":e.handleExceed}},[i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading}},[e._v("\n "+e._s(e.$t("trials:consistencyCheck:dialogButton:upload"))+"\n ")]),e._v(" "),i("span",{staticClass:"el-upload__tip",staticStyle:{"margin-left":"10px"},attrs:{slot:"tip"},slot:"tip"},[e._v("\n ("+e._s(e.$t("trials:consistencyCheck:message:excelFileOnly"))+")\n ")])],1)],1)])],1)},a=[],r=(i("7f7f"),i("3e42")),o={data:function(){return{btnLoading:!1,trialId:this.$route.query.trialId}},methods:{beforeUpload:function(e){return!!this.checkFileSuffix(e.name)||(this.$message.error(this.$t("trials:consistencyCheck:message:xlsx")),!1)},handleUploadFile:function(e){var t=this;this.btnLoading=!0,Object(r["Df"])(this.trialId,e.file).then((function(e){t.btnLoading=!1,t.$emit("refreshTable")})).catch((function(){t.btnLoading=!1}))},handlePreview:function(e){e.fullPath&&window.open(e.fullPath,"_blank")},handleExceed:function(e,t){this.$message.warning(this.$t("trials:consistencyCheck:message:onlyOneFile"))},checkFileSuffix:function(e){var t=["xls","xlsx","csv"],i=e.substring(e.lastIndexOf(".")+1).toLocaleLowerCase();return-1!==t.indexOf(i)}}},s=o,l=(i("49e3"),i("2877")),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},"723e":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",[i("div",{staticClass:"search"},[i("el-form",{staticClass:"base-search-form",attrs:{inline:!0,size:"small"}},[i("el-form-item",{attrs:{label:"Sponsor Name:"}},[i("el-input",{staticStyle:{width:"100px"},model:{value:e.searchData.SponsorName,callback:function(t){e.$set(e.searchData,"SponsorName",t)},expression:"searchData.SponsorName"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("Search")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("Reset")])],1)],1),e._v(" "),i("span",{staticStyle:{"margin-left":"auto"}},[i("el-button",{staticStyle:{"margin-left":"auto"},attrs:{size:"small",type:"primary",icon:"el-icon-plus"},on:{click:e.handleAddSponsor}},[e._v("New")])],1)],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"}],attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"SponsorCode",label:"Sponsor Code","min-width":"100","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"SponsorName",label:"Sponsor Name","min-width":"100","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"SponsorNameCN",label:"Sponsor NameCN","min-width":"100","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{label:"Action","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{circle:"",icon:"el-icon-edit-outline",title:"编辑"},on:{click:function(i){return e.handleEdit(t.row)}}}),e._v(" "),i("el-button",{attrs:{circle:"",icon:"el-icon-delete",title:"删除"},on:{click:function(i){return e.handleDelete(t.row)}}})]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}}),e._v(" "),e.editVisible?i("el-dialog",{attrs:{visible:e.editVisible,"close-on-click-modal":!1,title:e.title,width:"600px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.editVisible=t}}},[e.editVisible?i("sponsor-form",{attrs:{data:e.rowData},on:{close:e.close,getList:e.getList}}):e._e()],1):e._e()],1)},a=[],r=(i("20d6"),i("e56e")),o=i("f36a"),s=i("333d"),l=i("3f77"),c=function(){return{SponsorName:"",PageIndex:1,PageSize:20,Asc:!0,SortField:""}},u={name:"Sponsors",components:{BoxContent:o["default"],Pagination:s["default"],SponsorForm:l["default"]},data:function(){return{searchData:c(),list:[],total:0,loading:!1,rowData:{},editVisible:!1,title:""}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0,Object(r["wb"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},handleAddSponsor:function(){this.rowData={},this.title="Add",this.editVisible=!0},handleEdit:function(e){this.rowData=e,this.title="Edit",this.editVisible=!0},handleDelete:function(e){var t=this;this.$confirm("Sure to delete?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){t.loading=!0,Object(r["N"])(e.Id).then((function(i){t.loading=!1,i.IsSuccess&&(t.list.splice(t.list.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success("Deleted successfully!"))})).catch((function(){t.loading=!1}))}))},handleReset:function(){this.searchData=c(),this.getList()},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleSortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()},close:function(){this.editVisible=!1}}},d=u,f=(i("d870"),i("2877")),h=Object(f["a"])(d,n,a,!1,null,"af4282ac",null);t["default"]=h.exports},7271:function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-theme",use:"icon-theme-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-theme"><path d="M125.5 36.984L95.336 2.83C93.735 1.018 91.565 0 89.3 0c-2.263 0-4.433 1.018-6.033 2.83l-3.786 4.286c-1.6 1.812-3.77 2.83-6.032 2.831H54.553c-2.263 0-4.434-1.018-6.033-2.83L44.734 2.83C43.134 1.018 40.964 0 38.701 0c-2.263 0-4.434 1.018-6.034 2.83L2.5 36.984C.9 38.796 0 41.254 0 43.815c0 2.562.899 5.02 2.5 6.831L14.565 64.31c2.178 2.468 5.367 3.403 8.33 2.444 1.35-.435 2.709.592 2.709 2.18v49.407c0 5.313 3.84 9.66 8.532 9.66h59.726c4.693 0 8.532-4.347 8.532-9.66V68.934c0-1.59 1.36-2.616 2.71-2.181 2.962.96 6.15.024 8.329-2.444L125.5 50.646c1.6-1.811 2.499-4.269 2.499-6.83 0-2.563-.899-5.02-2.5-6.832z" /></symbol>'});o.a.add(s);t["default"]=s},7293:function(e,t,i){var n=i("4e08"),a=(n.__DEV__,i("4f85")),r=i("6179"),o=i("6d8b"),s=o.concatArray,l=o.mergeAll,c=o.map,u=i("eda2"),d=u.encodeHTML,f=(i("2039"),"undefined"===typeof Uint32Array?Array:Uint32Array),h="undefined"===typeof Float64Array?Array:Float64Array;function p(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=c(t,(function(e){var t=[e[0].coord,e[1].coord],i={coords:t};return e[0].name&&(i.fromName=e[0].name),e[1].name&&(i.toName=e[1].name),l([i,e[0],e[1]])})))}var m=a.extend({type:"series.lines",dependencies:["grid","polar"],visualColorAccessPath:"lineStyle.color",init:function(e){e.data=e.data||[],p(e);var t=this._processFlatCoordsArray(e.data);this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset,t.flatCoords&&(e.data=new Float32Array(t.count)),m.superApply(this,"init",arguments)},mergeOption:function(e){if(p(e),e.data){var t=this._processFlatCoordsArray(e.data);this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset,t.flatCoords&&(e.data=new Float32Array(t.count))}m.superApply(this,"mergeOption",arguments)},appendData:function(e){var t=this._processFlatCoordsArray(e.data);t.flatCoords&&(this._flatCoords?(this._flatCoords=s(this._flatCoords,t.flatCoords),this._flatCoordsOffset=s(this._flatCoordsOffset,t.flatCoordsOffset)):(this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset),e.data=new Float32Array(t.count)),this.getRawData().appendData(e.data)},_getCoordsFromItemModel:function(e){var t=this.getData().getItemModel(e),i=t.option instanceof Array?t.option:t.getShallow("coords");return i},getLineCoordsCount:function(e){return this._flatCoordsOffset?this._flatCoordsOffset[2*e+1]:this._getCoordsFromItemModel(e).length},getLineCoords:function(e,t){if(this._flatCoordsOffset){for(var i=this._flatCoordsOffset[2*e],n=this._flatCoordsOffset[2*e+1],a=0;a<n;a++)t[a]=t[a]||[],t[a][0]=this._flatCoords[i+2*a],t[a][1]=this._flatCoords[i+2*a+1];return n}var r=this._getCoordsFromItemModel(e);for(a=0;a<r.length;a++)t[a]=t[a]||[],t[a][0]=r[a][0],t[a][1]=r[a][1];return r.length},_processFlatCoordsArray:function(e){var t=0;if(this._flatCoords&&(t=this._flatCoords.length),"number"===typeof e[0]){for(var i=e.length,n=new f(i),a=new h(i),r=0,o=0,s=0,l=0;l<i;){s++;var c=e[l++];n[o++]=r+t,n[o++]=c;for(var u=0;u<c;u++){var d=e[l++],p=e[l++];a[r++]=d,a[r++]=p}}return{flatCoordsOffset:new Uint32Array(n.buffer,0,o),flatCoords:a,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},getInitialData:function(e,t){var i=new r(["value"],this);return i.hasItemOption=!1,i.initData(e.data,[],(function(e,t,n,a){if(e instanceof Array)return NaN;i.hasItemOption=!0;var r=e.value;return null!=r?r instanceof Array?r[a]:r:void 0})),i},formatTooltip:function(e){var t=this.getData(),i=t.getItemModel(e),n=i.get("name");if(n)return n;var a=i.get("fromName"),r=i.get("toName"),o=[];return null!=a&&o.push(a),null!=r&&o.push(r),d(o.join(" > "))},preventIncremental:function(){return!!this.get("effect.show")},getProgressive:function(){var e=this.option.progressive;return null==e?this.option.large?1e4:this.get("progressive"):e},getProgressiveThreshold:function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?2e4:this.get("progressiveThreshold"):e},defaultOption:{coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}}}),g=m;e.exports=g},"72a8":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"qsForm",attrs:{model:e.form,size:"small",rules:e.rules,"label-width":"140px",disabled:e.isLook}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:qsList:title:type"),prop:"Type"}},[i("el-select",{attrs:{clearable:""},on:{change:function(t){e.qsTypeChange(t,e.form)}},model:{value:e.form.Type,callback:function(t){e.$set(e.form,"Type",t)},expression:"form.Type"}},e._l(e.$d.Criterion_Question_Type,(function(t){return"calculation"!==t.value&&"increment"!==t.value?i("el-option",{key:t.value,attrs:{value:t.value,label:t.label}}):e._e()})),1)],1),e._v(" "),"group"===e.form.Type?i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:qsList:title:groupName"),prop:"GroupName"}},[i("el-input",{model:{value:e.form.GroupName,callback:function(t){e.$set(e.form,"GroupName",t)},expression:"form.GroupName"}})],1):e._e(),e._v(" "),"group"===e.form.Type?i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:qsList:title:groupNameEn"),prop:"GroupEnName"}},[i("el-input",{model:{value:e.form.GroupEnName,callback:function(t){e.$set(e.form,"GroupEnName",t)},expression:"form.GroupEnName"}})],1):e._e(),e._v(" "),"group"!==e.form.Type?i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:qsList:title:qsName"),prop:"QuestionName"}},[i("el-input",{model:{value:e.form.QuestionName,callback:function(t){e.$set(e.form,"QuestionName",t)},expression:"form.QuestionName"}})],1):e._e(),e._v(" "),"group"!==e.form.Type?i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:qsList:title:qsNameEn"),prop:"QuestionEnName"}},[i("el-input",{model:{value:e.form.QuestionEnName,callback:function(t){e.$set(e.form,"QuestionEnName",t)},expression:"form.QuestionEnName"}})],1):e._e(),e._v(" "),"upload"===e.form.Type?i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:qsList:title:imageCount")}},[i("el-input-number",{attrs:{"controls-position":"right",min:1,max:10},model:{value:e.form.ImageCount,callback:function(t){e.$set(e.form,"ImageCount",t)},expression:"form.ImageCount"}})],1):e._e(),e._v(" "),"upload"===e.form.Type?i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:qsList:title:FileType"),prop:"DataSource"}},[i("el-checkbox-group",{model:{value:e.form.FileType,callback:function(t){e.$set(e.form,"FileType",t)},expression:"form.FileType"}},[e._l(e.$d.fileType,(function(t){return i("el-checkbox",{key:"fileType"+t.value,attrs:{value:t.value,label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),e._v("\n "+e._s(e.$d.fileType)+"\n ")],2)],1):e._e(),e._v(" "),"input"===e.form.Type||"textarea"===e.form.Type?i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:qsList:title:MaxAnswerLength")}},[i("el-input",{model:{value:e.form.MaxAnswerLength,callback:function(t){e.$set(e.form,"MaxAnswerLength",t)},expression:"form.MaxAnswerLength"}})],1):e._e(),e._v(" "),"table"===e.form.Type?i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:qsList:title:orderMark")}},[i("el-input",{model:{value:e.form.OrderMark,callback:function(t){e.$set(e.form,"OrderMark",t)},expression:"form.OrderMark"}})],1):e._e(),e._v(" "),"table"===e.form.Type?i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:qsList:title:maxQuestionCount")}},[i("el-input-number",{attrs:{"controls-position":"right"},model:{value:e.form.MaxQuestionCount,callback:function(t){e.$set(e.form,"MaxQuestionCount",t)},expression:"form.MaxQuestionCount"}})],1):e._e(),e._v(" "),"table"===e.form.Type?i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:qsList:title:isCopyLesions")}},[i("el-switch",{model:{value:e.form.IsCopyLesions,callback:function(t){e.$set(e.form,"IsCopyLesions",t)},expression:"form.IsCopyLesions"}})],1):e._e(),e._v(" "),"number"===e.form.Type?i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:qsList:title:dataSource"),prop:"DataSource"}},[i("el-radio-group",{model:{value:e.form.DataSource,callback:function(t){e.$set(e.form,"DataSource",t)},expression:"form.DataSource"}},e._l(e.$d.DataSource,(function(t){return i("el-radio",{key:"DataSource"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1):e._e(),e._v(" "),"number"===e.form.Type?i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:qsList:title:valueType"),prop:"ValueType",rules:[{required:!0,message:this.$t("common:ruleMessage:specify")}]}},[i("el-radio-group",{model:{value:e.form.ValueType,callback:function(t){e.$set(e.form,"ValueType",t)},expression:"form.ValueType"}},e._l(e.$d.ValueType,(function(t){return 3!==t.value?i("el-radio",{key:t.id,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")]):e._e()})),1)],1):e._e(),e._v(" "),"number"===e.form.Type&&1===e.form.ValueType?i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:qsList:title:digitPlaces"),prop:"ValueType",rules:[{required:!0,message:this.$t("common:ruleMessage:select")}]}},[i("el-input",{attrs:{value:e.$fd("DigitPlaces",e.ValueType).toString(),disabled:!0}})],1):e._e(),e._v(" "),"number"===e.form.Type?i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:qsList:title:unit"),prop:"Unit",rules:[{required:!0,message:this.$t("common:ruleMessage:select")}]}},[i("el-radio-group",{model:{value:e.form.Unit,callback:function(t){e.$set(e.form,"Unit",t)},expression:"form.Unit"}},e._l(e.$d.ValueUnit,(function(t){return i("el-radio",{attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1):e._e(),e._v(" "),"number"===e.form.Type&&4===e.form.Unit?i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:qsList:title:customUnit"),prop:"CustomUnit",rules:[{required:!0,message:this.$t("common:ruleMessage:select")}]}},[i("el-input",{model:{value:e.form.CustomUnit,callback:function(t){e.$set(e.form,"CustomUnit",t)},expression:"form.CustomUnit"}})],1):e._e(),e._v(" "),"number"===e.form.Type&&1===e.form.DataSource?i("div",{staticStyle:{background:"#f8f8f8",padding:"10px 0px","border-radius":"10px",position:"relative","margin-bottom":"10px"}},[i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:qsList:title:customCalculateMark"),prop:"CustomCalculateMark"}},[i("el-radio-group",{staticStyle:{"line-height":"40px"},on:{change:function(t){return e.CustomCalculateMarkChange(t)}},model:{value:e.form.CustomCalculateMark,callback:function(t){e.$set(e.form,"CustomCalculateMark",t)},expression:"form.CustomCalculateMark"}},[i("div",e._l(e.$d.CustomCalculateMark,(function(t){return t.value<=4?i("el-radio",{key:"CustomCalculateMark"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")]):e._e()})),1),e._v(" "),i("div",e._l(e.$d.CustomCalculateMark,(function(t){return t.value>4?i("el-radio",{key:"CustomCalculateMark"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")]):e._e()})),1)])],1),e._v(" "),e.isShow?i("el-table",{ref:"CalculateTable",staticStyle:{margin:"10px",width:"calc(100% - 20px)"},attrs:{data:e.form.CalculateQuestions,size:"small"}},[i("el-table-column",{attrs:{label:e.$t("trials:readingUnit:qsList:title:order"),"min-width":"70"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.$index+1)+"\n ")]}}],null,!1,896436857)}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("trials:readingUnit:qsList:title:customCalculateMark"),"show-overflow-tooltip":"","min-width":"70"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(0===t.$index&&[1,2,3,4].includes(e.form.CustomCalculateMark)?null:e.$fd("CustomCalculateMark",e.form.CustomCalculateMark))+"\n ")]}}],null,!1,2919079095)}),e._v(" "),e.form.CustomCalculateMark>4?i("el-table-column",{attrs:{label:e.$t("trials:readingUnit:qsList:title:tableName"),prop:"QuestionId","show-overflow-tooltip":"","min-width":"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-select",{attrs:{clearable:"",disabled:!t.row.IsTable},model:{value:t.row.QuestionId,callback:function(i){e.$set(t.row,"QuestionId",i)},expression:"scope.row.QuestionId"}},e._l(e.tableQuestions,(function(e){return i("el-option",{key:e.QuestionId,attrs:{label:e.QuestionName,value:e.QuestionId}})})),1)]}}],null,!1,2017157543)}):e._e(),e._v(" "),i("el-table-column",{attrs:{label:e.$t("trials:readingUnit:qsList:title:qsName"),prop:"TableQuestionId","show-overflow-tooltip":"","min-width":"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsTable?e._e():i("el-select",{attrs:{clearable:""},model:{value:t.row.TableQuestionId,callback:function(i){e.$set(t.row,"TableQuestionId",i)},expression:"scope.row.TableQuestionId"}},e._l(e.Questions,(function(e){return i("el-option",{key:e.QuestionId,attrs:{label:e.QuestionName,value:e.QuestionId}})})),1),e._v(" "),t.row.IsTable?i("el-select",{attrs:{clearable:""},model:{value:t.row.TableQuestionId,callback:function(i){e.$set(t.row,"TableQuestionId",i)},expression:"scope.row.TableQuestionId"}},e._l(t.row.QuestionId?e.tableQuestions.find((function(e){return e.QuestionId===t.row.QuestionId})).TableQuestions:[],(function(e){return i("el-option",{key:e.QuestionId,attrs:{label:e.QuestionName,value:e.QuestionId}})})),1):e._e()]}}],null,!1,3464464953)}),e._v(" "),e.form.CustomCalculateMark<=4?i("el-table-column",{attrs:{label:e.$t("common:action:action"),prop:"TableQuestionId","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{icon:"el-icon-plus",size:"mini",circle:"",title:e.$t("trials:readingUnit:qsList:title:add")},on:{click:function(i){return e.addCustomCalculateMark(t.$index)}}}),e._v(" "),i("el-button",{attrs:{icon:"el-icon-minus",size:"mini",circle:"",disabled:e.form.CalculateQuestions.length<=2,title:e.$t("trials:readingUnit:qsList:title:delete")},on:{click:function(i){return e.deleteCustomCalculateMark(t.$index)}}})]}}],null,!1,2849570752)}):e._e()],1):e._e(),e._v(" "),i("div",{staticStyle:{"font-size":"12px",color:"#666",padding:"0 15px 0","text-align":"right"}},[i("i",{staticClass:"el-icon-info"}),e._v(e._s([1,2,3,4].includes(e.form.CustomCalculateMark)?e.$t("trials:readingUnit:qsList:message:msg1"):e.$t("trials:readingUnit:qsList:message:msg2"))+"\n ")])],1):e._e(),e._v(" "),"select"!==e.form.Type&&"radio"!==e.form.Type&&"calculation"!==e.form.Type||!e.isFromSystem?e._e():i("el-form-item",{attrs:{label:"选项类型",prop:"QuestionGenre",rules:[{required:"calculation"!==e.form.Type,message:"请选择"}]}},[i("el-radio-group",{on:{change:function(t){e.questionGenreChange(t,e.form)}},model:{value:e.form.QuestionGenre,callback:function(t){e.$set(e.form,"QuestionGenre",t)},expression:"form.QuestionGenre"}},[i("el-radio",{attrs:{label:-1}},[e._v("\n 无\n ")]),e._v(" "),e._l(e.$d.TableQuestionType,(function(t){return i("el-radio",{directives:[{name:"show",rawName:"v-show",value:0===t.value||3===t.value,expression:"item.value===0 || item.value===3"}],key:t.id,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])}))],2)],1),e._v(" "),e.isFromSystem&&(!e.isFromSystem||3===e.form.QuestionGenre)||"select"!==e.form.Type&&"radio"!==e.form.Type&&"calculation"!==e.form.Type?e._e():i("el-form-item",{attrs:{label:"选项",prop:"TypeValue"}},[i("el-input",{attrs:{placeholder:"选项请用‘|’分割多个选项"},model:{value:e.form.TypeValue,callback:function(t){e.$set(e.form,"TypeValue",t)},expression:"form.TypeValue"}})],1),e._v(" "),3===e.form.QuestionGenre&&e.isFromSystem?i("el-form-item",{attrs:{label:"关联字典",prop:"DictionaryCode"}},[i("el-select",{attrs:{clearable:""},on:{change:function(){e.form.DefaultValue=null}},model:{value:e.form.DictionaryCode,callback:function(t){e.$set(e.form,"DictionaryCode",t)},expression:"form.DictionaryCode"}},e._l(e.dicList,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.Code,value:e.Code}})})),1)],1):e._e(),e._v(" "),3===e.form.QuestionGenre?i("el-form-item",{attrs:{label:"默认值"}},[i("el-select",{attrs:{clearable:""},model:{value:e.form.DefaultValue,callback:function(t){e.$set(e.form,"DefaultValue",t)},expression:"form.DefaultValue"}},e._l(e.form.DictionaryCode?e.$d[e.form.DictionaryCode]:[],(function(e){return i("el-option",{key:e.id,attrs:{label:e.label,value:e.value.toString()}})})),1)],1):e._e(),e._v(" "),0===e.form.QuestionGenre||null===e.form.QuestionGenre?i("el-form-item",{attrs:{label:"默认值"}},[i("el-select",{attrs:{clearable:""},model:{value:e.form.DefaultValue,callback:function(t){e.$set(e.form,"DefaultValue",t)},expression:"form.DefaultValue"}},e._l(e.form.TypeValue?e.form.TypeValue.split("|"):[],(function(e){return i("el-option",{key:e,attrs:{label:e,value:e}})})),1)],1):e._e(),e._v(" "),"group"!==e.form.Type?i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:qsList:title:groupName")}},[i("el-select",{attrs:{clearable:"",disabled:e.isParentExistGroup},model:{value:e.form.GroupId,callback:function(t){e.$set(e.form,"GroupId",t)},expression:"form.GroupId"}},e._l(e.groupOptions,(function(e){return i("el-option",{key:e,attrs:{label:e.GroupName,value:e.GroupId}})})),1)],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:qsList:title:isShow"),prop:"ShowQuestion"}},[i("el-radio-group",{on:{change:function(t){e.isShowQuestionChange(t,e.form)}},model:{value:e.form.ShowQuestion,callback:function(t){e.$set(e.form,"ShowQuestion",t)},expression:"form.ShowQuestion"}},e._l(e.$d.ShowQuestion,(function(t){return i("el-radio",{key:"ShowQuestion"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1),e._v(" "),"group"!==e.form.Type&&"table"!==e.form.Type&&"summary"!==e.form.Type?i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:qsList:title:isRequired"),prop:"IsRequired"}},[i("el-radio-group",{attrs:{disabled:!0===e.form.IsJudgeQuestion||2===e.form.ShowQuestion},on:{change:function(t){e.isRequiredChange(t,e.form)}},model:{value:e.form.IsRequired,callback:function(t){e.$set(e.form,"IsRequired",t)},expression:"form.IsRequired"}},e._l(e.$d.QuestionRequired,(function(t){return i("el-radio",{key:"QuestionRequired"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1):e._e(),e._v(" "),1===e.form.ShowQuestion?i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:qsList:title:parentId"),prop:"ParentId"}},[i("el-select",{attrs:{clearable:""},on:{change:function(t){e.parentQuestionChange(t,e.form)}},model:{value:e.form.ParentId,callback:function(t){e.$set(e.form,"ParentId",t)},expression:"form.ParentId"}},e._l(e.parentOptions,(function(e){return i("el-option",{key:"ParentId"+e.QuestionId,attrs:{label:e.QuestionName,value:e.QuestionId}})})),1)],1):e._e(),e._v(" "),e.form.ParentId&&1===e.form.ShowQuestion?i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:qsList:title:parentTriggerValueList"),prop:"ParentTriggerValueList"}},[i("el-select",{attrs:{clearable:"",multiple:""},model:{value:e.form.ParentTriggerValueList,callback:function(t){e.$set(e.form,"ParentTriggerValueList",t)},expression:"form.ParentTriggerValueList"}},e._l(e.parentTriggerValOptions,(function(e){return i("el-option",{key:e.id,attrs:{label:e.label,value:e.value.toString()}})})),1)],1):e._e(),e._v(" "),"group"!==e.form.Type&&1===e.form.IsRequired?i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:qsList:title:relevanceId"),prop:"RelevanceId"}},[i("el-select",{attrs:{clearable:""},on:{change:function(t){e.relevanceQuestionChange(t,e.form)}},model:{value:e.form.RelevanceId,callback:function(t){e.$set(e.form,"RelevanceId",t)},expression:"form.RelevanceId"}},e._l(e.parentOptions,(function(e){return i("el-option",{key:"RelevanceId"+e.QuestionId,attrs:{label:e.QuestionName,value:e.QuestionId}})})),1)],1):e._e(),e._v(" "),e.form.RelevanceId&&1===e.form.IsRequired?i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:qsList:title:relevanceValueList"),prop:"RelevanceValueList"}},[i("el-select",{attrs:{clearable:"",multiple:""},model:{value:e.form.RelevanceValueList,callback:function(t){e.$set(e.form,"RelevanceValueList",t)},expression:"form.RelevanceValueList"}},e._l(e.reParentTriggerValOptions,(function(e){return i("el-option",{key:e.id,attrs:{label:e.label,value:e.value.toString()}})})),1)],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:qsList:title:order"),prop:"ShowOrder"}},[i("el-input-number",{attrs:{"controls-position":"right",min:0},model:{value:e.form.ShowOrder,callback:function(t){e.$set(e.form,"ShowOrder",t)},expression:"form.ShowOrder"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:qsList:title:isShowInDicom")}},[i("el-radio-group",{model:{value:e.form.IsShowInDicom,callback:function(t){e.$set(e.form,"IsShowInDicom",t)},expression:"form.IsShowInDicom"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"IsShowInDicom"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1),e._v(" "),"select"===e.form.Type||"radio"===e.form.Type||"number"===e.form.Type?i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:qsList:title:isJudgeQuestion")}},[i("el-radio-group",{on:{change:function(t){e.isJudgeQuestionChange(t,e.form)}},model:{value:e.form.IsJudgeQuestion,callback:function(t){e.$set(e.form,"IsJudgeQuestion",t)},expression:"form.IsJudgeQuestion"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"IsJudgeQuestion"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:qsList:title:limitEdit")}},[i("el-radio-group",{model:{value:e.form.LimitEdit,callback:function(t){e.$set(e.form,"LimitEdit",t)},expression:"form.LimitEdit"}},e._l(e.$d.LimitEdit,(function(t){return i("el-radio",{attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:qsList:title:globalReadingShowType")}},[i("el-radio-group",{model:{value:e.form.GlobalReadingShowType,callback:function(t){e.$set(e.form,"GlobalReadingShowType",t)},expression:"form.GlobalReadingShowType"}},e._l(e.$d.GlobalReadingShowType,(function(t){return i("el-radio",{attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:qsList:title:Remark"),prop:"Remark"}},[i("el-input",{model:{value:e.form.Remark,callback:function(t){e.$set(e.form,"Remark",t)},expression:"form.Remark"}})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[e.isLook?e._e():i("el-form-item",[i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.close}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.save}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])},a=[],r=(i("6b54"),i("75fc")),o=(i("20d6"),i("456d"),i("96cf"),i("3b8d")),s=(i("ac6a"),i("5df3"),i("4f7f"),i("28a5"),i("c5f6"),i("3e42")),l={name:"AddOrUpdateClinicalData",props:{digitPlaces:{type:Number,default:function(){return 0}},list:{type:Array,default:function(){return[]}},trialCriterionId:{type:String,default:function(){return""}},data:{type:Object,default:function(){return{}}},isFromSystem:{type:Boolean,default:!0},isLook:{type:Boolean,default:!0}},data:function(){var e=this,t=function(t,i,n){if(""===i)n(new Error(e.$t("common:ruleMessage:specify")));else{var a=i.split("|");new Set(a).size!==a.length?n(new Error(e.$t("trials:readingUnit:qsList:message:msg0"))):n()}};return{form:{Id:"",ReadingQuestionCriterionTrialId:"",QuestionName:"",QuestionEnName:"",Type:"select",TypeValue:"",ParentId:"",ParentTriggerValueList:[],ShowOrder:0,ShowQuestion:0,IsRequired:2,IsJudgeQuestion:!1,GroupName:"",GroupEnName:"",Remark:"",ImageCount:1,RelevanceId:"",RelevanceValueList:[],LesionType:"",QuestionType:null,QuestionGenre:null,IsShowInDicom:!1,CalculateQuestions:[],CustomCalculateMark:"",DataSource:0,GlobalReadingShowType:3,CustomUnit:null,ValueType:null,Unit:null,LimitEdit:0,DefaultValue:null,OrderMark:null,MaxQuestionCount:null,IsCopyLesions:!1,MaxAnswerLength:null,FileType:[],DictionaryCode:null,GroupId:null},rules:{Type:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}],QuestionName:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"},{max:50,message:"".concat(this.$t("common:ruleMessage:maxLength")," 50")}],TypeValue:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"},{validator:t,trigger:"blur"},{max:200,message:"".concat(this.$t("common:ruleMessage:maxLength")," 200")}],ShowQuestion:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}],IsRequired:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}],ParentId:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}],ParentTriggerValueList:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}],RelevanceId:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}],RelevanceValueList:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}],GroupName:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"},{max:50,message:"".concat(this.$t("common:ruleMessage:maxLength")," 50")}]},loading:!1,parentOptions:[],parentTriggerValOptions:[],reParentTriggerValOptions:[],groupOptions:[],isParentExistGroup:!1,lesionTypes:[],Questions:[],tableQuestions:[],isShow:!0}},watch:{"form.CustomCalculateMark":function(){}},mounted:function(){this.initForm(),this.getCalculateQuestions("number"),this.getCalculateQuestions("table")},methods:{deleteCustomCalculateMark:function(e){this.form.CalculateQuestions.splice(e,1)},addCustomCalculateMark:function(e){this.form.CalculateQuestions.splice(e+1,0,{IsTable:!1,QuestionId:null,TableQuestionId:null})},CustomCalculateMarkChange:function(){var e=this;this.isShow=!1,this.form.CustomCalculateMark<=4?this.form.CalculateQuestions=[{IsTable:!1,QuestionId:null,TableQuestionId:null},{IsTable:!1,QuestionId:null,TableQuestionId:null}]:this.form.CalculateQuestions=[{IsTable:!0,QuestionId:null,TableQuestionId:null}],this.$nextTick((function(){e.isShow=!0}))},getCalculateQuestions:function(e){var t=this;Object(s["Qb"])({TrialCriterionId:this.trialCriterionId,type:e}).then((function(i){"table"===e?t.tableQuestions=i.Result:t.Questions=i.Result}))},initForm:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,i,n,a,o,s,l=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getGroupOptions();case 2:return e.next=4,this.getParentQuestions();case 4:return e.next=6,this.getLesionType();case 6:if(Object.keys(this.data).length>0){for(t in this.form)"CalculateQuestions"===t&&void 0!==this.data[t]?(console.log(this.data[t]),this.form[t]=JSON.parse(this.data[t]),console.log("CalculateQuestions",this.form[t])):this.data.hasOwnProperty(t)&&(this.form[t]=this.data[t]);this.form.FileType&&this.form.FileType.length>0?this.form.FileType=this.form.FileType.split(","):this.form.FileType=[],""!==this.form.ParentId&&null!==this.form.ParentId&&""!==this.form.GroupName&&(this.isParentExistGroup=!0),this.form.ParentId&&(i=this.parentOptions.findIndex((function(e){return e.QuestionId===l.form.ParentId})),-1!==i&&(3===this.parentOptions[i].QuestionGenre?this.parentTriggerValOptions=this.$d[this.parentOptions[i].DictionaryCode]:(n=[],this.parentOptions[i].TypeValue.split("|").forEach((function(e,t){n.push({id:t,label:e,value:e})})),this.parentTriggerValOptions=n))),this.form.RelevanceId&&(a=this.parentOptions.findIndex((function(e){return e.QuestionId===l.form.RelevanceId})),-1!==a&&(3===this.parentOptions[i].QuestionGenre?this.reParentTriggerValOptions=this.$d[this.parentOptions[i].DictionaryCode]:(o=[],this.parentOptions[i].TypeValue.split("|").forEach((function(e,t){o.push({id:t,label:e,value:e})})),this.reParentTriggerValOptions=o)))}this.data.ShowOrder||0===this.data.ShowOrder||this.list.length>0&&(s=this.list.map((function(e){return e.ShowOrder})),this.form.ShowOrder=Math.max.apply(Math,Object(r["a"])(s))+1);case 8:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),save:function(){var e=this;this.$refs.qsForm.validate((function(t){if(t){e.loading=!0;var i=Object.assign({},e.form);i.TrialId=e.$route.query.trialId,i.ReadingCriterionPageId=e.data.ReadingCriterionPageId,i.CalculateQuestions=JSON.stringify(e.form.CalculateQuestions),"upload"!==e.form.Type&&(e.form.ImageCount=0),i.FileType=e.form.FileType.toString(),Object(s["v"])(i).then((function(t){e.$emit("getList"),e.loading=!1,e.$emit("close"),e.$emit("reloadArbitrationRules"),e.$message.success(e.$t("common:message:savedSuccessfully"))})).catch((function(){e.loading=!1}))}}))},getGroupOptions:function(){var e=this;return new Promise((function(t,i){e.loading=!0;var n={criterionId:e.data.ReadingQuestionCriterionTrialId,readingCriterionPageId:e.data.ReadingCriterionPageId};Object(s["Nd"])(n).then((function(i){e.groupOptions=i.Result,e.loading=!1,t()})).catch((function(){e.loading=!1,i()}))}))},getParentQuestions:function(){var e=this;return new Promise((function(t,i){e.loading=!0;var n={readingQuestionCriterionTrialId:e.data.ReadingQuestionCriterionTrialId,id:e.data.Id,readingCriterionPageId:e.data.ReadingCriterionPageId};Object(s["Dd"])(n).then((function(i){e.parentOptions=i.Result,e.loading=!1,t()})).catch((function(){e.loading=!1,i()}))}))},isShowQuestionChange:function(e,t){"table"!==this.form.Type&&("group"!==this.form.Type?2===e?(t.IsRequired=2,t.ParentId="",t.ParentTriggerValueList=[],this.isParentExistGroup=!1):1===e?(t.ParentId="",t.ParentTriggerValueList=[],t.GroupName="",t.GroupEnName="",this.isParentExistGroup=!0):0===e&&(t.ParentId="",t.ParentTriggerValueList=[],this.isParentExistGroup=!1):t.QuestionName="")},isRequiredChange:function(e,t){1!==e&&(t.RelevanceId="",t.RelevanceValueList=[])},parentQuestionChange:function(e,t){if(console.log(e),this.isParentExistGroup=!1,e){var i=this.parentOptions.findIndex((function(t){return t.QuestionId===e}));-1!==i&&(this.parentTriggerValOptions=this.parentOptions[i].TypeValue.split("|"),this.parentOptions[i].GroupName&&(this.isParentExistGroup=!0,t.GroupName=this.parentOptions[i].GroupName,t.GroupEnName=this.parentOptions[i].GroupEnName))}else t.GroupName="",t.GroupEnName="",this.isParentExistGroup=!1;t.ParentTriggerValueList=[]},relevanceQuestionChange:function(e,t){if(e){var i=this.parentOptions.findIndex((function(t){return t.QuestionId===e}));-1!==i&&(this.reParentTriggerValOptions=this.parentOptions[i].TypeValue.split("|"))}t.RelevanceValueList=[]},isJudgeQuestionChange:function(e,t){e&&(t.ShowQuestion=0,t.IsRequired=0)},qsTypeChange:function(e,t){"group"===e&&(t.QuestionName=""),"select"!==e&&"radio"!==e&&(t.IsJudgeQuestion=!1,t.TypeValue=""),"table"===e?t.IsRequired=2:t.LesionType=null},getLesionType:function(){var e=this;return new Promise((function(t,i){e.loading=!0;var n={criterionId:e.data.ReadingQuestionCriterionTrialId};Object(s["Vb"])(n).then((function(i){e.lesionTypes=i.Result,e.loading=!1,t()})).catch((function(){e.loading=!1,i()}))}))},close:function(){this.$emit("close")}}},c=l,u=i("2877"),d=Object(u["a"])(c,n,a,!1,null,"9e7e677a",null);t["default"]=d.exports},"72b6":function(e,t,i){var n=i("3eba"),a=i("6d8b"),r=i("2306"),o=i("eda2"),s=i("f934"),l=i("5f14"),c=n.extendComponentView({type:"visualMap",autoPositionValues:{left:1,right:1,top:1,bottom:1},init:function(e,t){this.ecModel=e,this.api=t,this.visualMapModel},render:function(e,t,i,n){this.visualMapModel=e,!1!==e.get("show")?this.doRender.apply(this,arguments):this.group.removeAll()},renderBackground:function(e){var t=this.visualMapModel,i=o.normalizeCssArray(t.get("padding")||0),n=e.getBoundingRect();e.add(new r.Rect({z2:-1,silent:!0,shape:{x:n.x-i[3],y:n.y-i[0],width:n.width+i[3]+i[1],height:n.height+i[0]+i[2]},style:{fill:t.get("backgroundColor"),stroke:t.get("borderColor"),lineWidth:t.get("borderWidth")}}))},getControllerVisual:function(e,t,i){i=i||{};var n=i.forceState,r=this.visualMapModel,o={};if("symbol"===t&&(o.symbol=r.get("itemSymbol")),"color"===t){var s=r.get("contentColor");o.color=s}function c(e){return o[e]}function u(e,t){o[e]=t}var d=r.controllerVisuals[n||r.getValueState(e)],f=l.prepareVisualTypes(d);return a.each(f,(function(n){var a=d[n];i.convertOpacityToAlpha&&"opacity"===n&&(n="colorAlpha",a=d.__alphaForOpacity),l.dependsOn(n,t)&&a&&a.applyVisual(e,c,u)})),o[t]},positionGroup:function(e){var t=this.visualMapModel,i=this.api;s.positionElement(e,t.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})},doRender:a.noop});e.exports=c},"72d1":function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-guide",use:"icon-guide-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-guide"><path d="M1.482 70.131l36.204 16.18 69.932-65.485-61.38 70.594 46.435 18.735c1.119.425 2.397-.17 2.797-1.363v-.085L127.998.047 1.322 65.874c-1.12.597-1.519 1.959-1.04 3.151.32.511.72.937 1.2 1.107zm44.676 57.821L64.22 107.26l-18.062-7.834v28.527z" /></symbol>'});o.a.add(s);t["default"]=s},"72e5":function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-fullscreen",use:"icon-fullscreen-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-fullscreen"><path d="M38.47 52L52 38.462l-23.648-23.67L43.209 0H.035L0 43.137l14.757-14.865L38.47 52zm74.773 47.726L89.526 76 76 89.536l23.648 23.672L84.795 128h43.174L128 84.863l-14.757 14.863zM89.538 52l23.668-23.648L128 43.207V.038L84.866 0 99.73 14.76 76 38.472 89.538 52zM38.46 76L14.792 99.651 0 84.794v43.173l43.137.033-14.865-14.757L52 89.53 38.46 76z" /></symbol>'});o.a.add(s);t["default"]=s},"72f0":function(e,t,i){},"72f0a":function(e,t){function i(e){return function(){return e}}e.exports=i},7368:function(e,t,i){var n=i("4e08"),a=(n.__DEV__,i("6d8b")),r=i("625e"),o=r.enableClassCheck;function s(e){return"_EC_"+e}var l=function(e){this._directed=e||!1,this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this.data,this.edgeData},c=l.prototype;function u(e,t){this.id=null==e?"":e,this.inEdges=[],this.outEdges=[],this.edges=[],this.hostGraph,this.dataIndex=null==t?-1:t}function d(e,t,i){this.node1=e,this.node2=t,this.dataIndex=null==i?-1:i}c.type="graph",c.isDirected=function(){return this._directed},c.addNode=function(e,t){e=null==e?""+t:""+e;var i=this._nodesMap;if(!i[s(e)]){var n=new u(e,t);return n.hostGraph=this,this.nodes.push(n),i[s(e)]=n,n}},c.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},c.getNodeById=function(e){return this._nodesMap[s(e)]},c.addEdge=function(e,t,i){var n=this._nodesMap,a=this._edgesMap;if("number"===typeof e&&(e=this.nodes[e]),"number"===typeof t&&(t=this.nodes[t]),u.isInstance(e)||(e=n[s(e)]),u.isInstance(t)||(t=n[s(t)]),e&&t){var r=e.id+"-"+t.id,o=new d(e,t,i);return o.hostGraph=this,this._directed&&(e.outEdges.push(o),t.inEdges.push(o)),e.edges.push(o),e!==t&&t.edges.push(o),this.edges.push(o),a[r]=o,o}},c.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},c.getEdge=function(e,t){u.isInstance(e)&&(e=e.id),u.isInstance(t)&&(t=t.id);var i=this._edgesMap;return this._directed?i[e+"-"+t]:i[e+"-"+t]||i[t+"-"+e]},c.eachNode=function(e,t){for(var i=this.nodes,n=i.length,a=0;a<n;a++)i[a].dataIndex>=0&&e.call(t,i[a],a)},c.eachEdge=function(e,t){for(var i=this.edges,n=i.length,a=0;a<n;a++)i[a].dataIndex>=0&&i[a].node1.dataIndex>=0&&i[a].node2.dataIndex>=0&&e.call(t,i[a],a)},c.breadthFirstTraverse=function(e,t,i,n){if(u.isInstance(t)||(t=this._nodesMap[s(t)]),t){for(var a="out"===i?"outEdges":"in"===i?"inEdges":"edges",r=0;r<this.nodes.length;r++)this.nodes[r].__visited=!1;if(!e.call(n,t,null)){var o=[t];while(o.length){var l=o.shift(),c=l[a];for(r=0;r<c.length;r++){var d=c[r],f=d.node1===l?d.node2:d.node1;if(!f.__visited){if(e.call(n,f,l))return;o.push(f),f.__visited=!0}}}}}},c.update=function(){for(var e=this.data,t=this.edgeData,i=this.nodes,n=this.edges,a=0,r=i.length;a<r;a++)i[a].dataIndex=-1;for(a=0,r=e.count();a<r;a++)i[e.getRawIndex(a)].dataIndex=a;t.filterSelf((function(e){var i=n[t.getRawIndex(e)];return i.node1.dataIndex>=0&&i.node2.dataIndex>=0}));for(a=0,r=n.length;a<r;a++)n[a].dataIndex=-1;for(a=0,r=t.count();a<r;a++)n[t.getRawIndex(a)].dataIndex=a},c.clone=function(){for(var e=new l(this._directed),t=this.nodes,i=this.edges,n=0;n<t.length;n++)e.addNode(t[n].id,t[n].dataIndex);for(n=0;n<i.length;n++){var a=i[n];e.addEdge(a.node1.id,a.node2.id,a.dataIndex)}return e},u.prototype={constructor:u,degree:function(){return this.edges.length},inDegree:function(){return this.inEdges.length},outDegree:function(){return this.outEdges.length},getModel:function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,i=t.data.getItemModel(this.dataIndex);return i.getModel(e)}}},d.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,i=t.edgeData.getItemModel(this.dataIndex);return i.getModel(e)}};var f=function(e,t){return{getValue:function(i){var n=this[e][t];return n.get(n.getDimension(i||"value"),this.dataIndex)},setVisual:function(i,n){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,i,n)},getVisual:function(i,n){return this[e][t].getItemVisual(this.dataIndex,i,n)},setLayout:function(i,n){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,i,n)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}};a.mixin(u,f("hostGraph","data")),a.mixin(d,f("hostGraph","edgeData")),l.Node=u,l.Edge=d,o(u),o(d);var h=l;e.exports=h},"737a":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"search-container"},[i("el-form",{attrs:{inline:!0,size:"small"}},[i("el-form-item",{attrs:{label:"文件类型:"}},[i("el-select",{staticStyle:{width:"150px"},model:{value:e.searchData.FileTypeId,callback:function(t){e.$set(e.searchData,"FileTypeId",t)},expression:"searchData.FileTypeId"}},e._l(e.dict.type.Sys_Document,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"文件名称"}},[i("el-input",{staticStyle:{width:"130px"},attrs:{clearable:""},model:{value:e.searchData.Name,callback:function(t){e.$set(e.searchData,"Name",t)},expression:"searchData.Name"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")])],1)],1),e._v(" "),i("el-button",{staticStyle:{"margin-left":"auto"},attrs:{type:"primary",icon:"el-icon-plus",size:"small"},on:{click:e.handleAdd}},[e._v("\n "+e._s(e.$t("common:button:new"))+"\n ")])],1),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"},{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"FileType",label:"文件类型","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Name",label:"文件名称","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"SignViewMinimumMinutes",label:"查看最短时间(分钟)","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"NeedConfirmedUserTypes",label:"需要签署的用户类型","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.NeedConfirmedUserTypes?t.row.NeedConfirmedUserTypes.join(", "):"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsDeleted",label:"是否废除","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.IsDeleted?"Yes":"No")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"UpdateTime",label:"更新时间","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{label:"Action"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handlePreview(t.row)}}},[e._v("\n 预览\n ")]),e._v(" "),i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("\n 编辑\n ")]),e._v(" "),i("el-button",{attrs:{disabled:t.row.IsDeleted,type:"text"},on:{click:function(i){return e.handleRepeal(t.row)}}},[e._v("\n 废除\n ")]),e._v(" "),i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("\n 删除\n ")])]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}}),e._v(" "),e.editVisible?i("el-dialog",{attrs:{visible:e.editVisible,"close-on-click-modal":!1,title:e.title,width:"600px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.editVisible=t}}},[i("TemplateForm",{attrs:{data:e.currentRow},on:{closeDialog:e.closeDialog,getList:e.getList}})],1):e._e(),e._v(" "),e.previewVisible?i("el-dialog",{attrs:{visible:e.previewVisible,title:"预览",fullscreen:!0,"append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.previewVisible=t}}},[i("div",{staticClass:"base-modal-body",staticStyle:{border:"2px solid #ccc",padding:"10px"}},[e.previewVisible?i("PreviewFile",{attrs:{"file-path":e.currentPath,"file-type":e.currentType}}):e._e()],1)]):e._e()],1)],2)},a=[],r=(i("20d6"),i("db72")),o=(i("ac6a"),i("e56e")),s=i("3e42"),l=i("6071"),c=i("333d"),u=i("46c8"),d=i("c686"),f=function(){return{FileTypeId:"",Name:"",PageIndex:1,PageSize:20}},h={name:"SignatureTemplate",components:{BaseContainer:l["default"],Pagination:c["default"],TemplateForm:u["default"],PreviewFile:d["default"]},dicts:["Sys_Document"],data:function(){return{searchData:f(),list:[],total:0,currentRow:{},currentPath:"",currentType:"",editVisible:!1,previewVisible:!1,title:"",loading:!1}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0,Object(o["Bb"])(this.searchData).then((function(t){e.loading=!1;var i=t.Result,n=i.CurrentPageData,a=i.TotalCount;n.forEach((function(e){e.NeedConfirmedUserTypes=[],e.NeedConfirmedUserTypeIds=[],e.NeedConfirmedUserTypeList.forEach((function(t){e.NeedConfirmedUserTypes.push(t.UserTypeShortName),e.NeedConfirmedUserTypeIds.push(t.NeedConfirmUserTypeId)}))})),e.list=n,e.total=a})).catch((function(){e.loading=!1}))},handleAdd:function(){this.title="Add",this.currentRow={},this.editVisible=!0},handlePreview:function(e){var t=e.Name,i=e.FullFilePath;this.currentPath=i,this.currentType=e.Name?t.substring(t.lastIndexOf(".")+1).toLocaleLowerCase():"",this.previewVisible=!0},handleEdit:function(e){this.title="Edit",this.currentRow=Object(r["a"])({},e),this.editVisible=!0},handleRepeal:function(e){var t=this;this.$confirm("是否确认废除此文件?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){t.loading=!0,Object(s["Ef"])(e.Id,!0).then((function(e){t.loading=!1,e.IsSuccess&&(t.getList(),t.$message.success("保存成功!"))})).catch((function(){t.loading=!1}))})).catch((function(){}))},handleDelete:function(e){var t=this;this.$confirm("是否确认删除?",{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.loading=!0,Object(o["R"])(e.Id).then((function(i){t.loading=!1,i.IsSuccess&&(t.list.splice(t.list.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success("删除成功!"))})).catch((function(){t.loading=!1}))}))},closeDialog:function(){this.editVisible=!1},handleReset:function(){var e=this;this.searchData=f(),this.getList(),this.$nextTick((function(){e.$refs.SysAttachmentList.clearSort()}))},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleSortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()}}},p=h,m=i("2877"),g=Object(m["a"])(p,n,a,!1,null,null,null);t["default"]=g.exports},"73ca":function(e,t,i){var n=i("2306"),a=i("7e5b");function r(e){this._ctor=e||a,this.group=new n.Group}var o=r.prototype;function s(e,t,i,n){var a=t.getItemLayout(i);if(f(a)){var r=new e._ctor(t,i,n);t.setItemGraphicEl(i,r),e.group.add(r)}}function l(e,t,i,n,a,r){var o=t.getItemGraphicEl(n);f(i.getItemLayout(a))?(o?o.updateData(i,a,r):o=new e._ctor(i,a,r),i.setItemGraphicEl(a,o),e.group.add(o)):e.group.remove(o)}function c(e){return e.animators&&e.animators.length>0}function u(e){var t=e.hostModel;return{lineStyle:t.getModel("lineStyle").getLineStyle(),hoverLineStyle:t.getModel("emphasis.lineStyle").getLineStyle(),labelModel:t.getModel("label"),hoverLabelModel:t.getModel("emphasis.label")}}function d(e){return isNaN(e[0])||isNaN(e[1])}function f(e){return!d(e[0])&&!d(e[1])}o.isPersistent=function(){return!0},o.updateData=function(e){var t=this,i=t.group,n=t._lineData;t._lineData=e,n||i.removeAll();var a=u(e);e.diff(n).add((function(i){s(t,e,i,a)})).update((function(i,r){l(t,n,e,r,i,a)})).remove((function(e){i.remove(n.getItemGraphicEl(e))})).execute()},o.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl((function(t,i){t.updateLayout(e,i)}),this)},o.incrementalPrepareUpdate=function(e){this._seriesScope=u(e),this._lineData=null,this.group.removeAll()},o.incrementalUpdate=function(e,t){function i(e){e.isGroup||c(e)||(e.incremental=e.useHoverLayer=!0)}for(var n=e.start;n<e.end;n++){var a=t.getItemLayout(n);if(f(a)){var r=new this._ctor(t,n,this._seriesScope);r.traverse(i),this.group.add(r),t.setItemGraphicEl(n,r)}}},o.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},o._clearIncremental=function(){var e=this._incremental;e&&e.clearDisplaybles()};var h=r;e.exports=h},"73d8":function(e,t,i){},"73fe":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"dictionary "},[i("div",{staticClass:"left"},[i("el-tree",{ref:"dictionaryTree",attrs:{data:e.treeList,"node-key":"Id",props:e.defaultProps,"highlight-current":!0,"current-node-key":e.currentNodekey,"default-expand-all":"","expand-on-click-node":!1},on:{"node-click":e.handleNodeClick}})],1),e._v(" "),i("div",{ref:"rightContainer",staticClass:"right"},[i("box-content",[i("div",{staticClass:"search"},[i("el-button",{staticStyle:{"margin-left":"auto"},attrs:{type:"primary",size:"mini",disabled:e.newBtnDisabled},on:{click:e.handleNew}},[e._v("New")])],1),e._v(" "),i("base-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{columns:e.columns,list:e.list,"search-data":e.searchData,total:e.total},on:{getList:e.getList,edit:e.handleEdit,delete:e.handleDelete,sortByColumn:e.sortByColumn}})],1)],1),e._v(" "),e.dictionary_model.visible?i("dictionary-form",{attrs:{data:e.rowData,type:e.type,"current-key-name":e.currentKeyName},on:{closeDialog:e.closeModel}}):e._e()],1)},a=[],r=(i("20d6"),i("e56e")),o=i("01de9"),s=i("3d18"),l=i("f36a"),c=i("c0ee"),u={name:"Dictionary",components:{BoxContent:l["default"],BaseTable:c["default"],DictionaryForm:o["default"]},data:function(){return{treeList:[],defaultProps:{children:"Children",label:"KeyName"},currentNodekey:"",expandedkeys:[],dictionary_col1:s["a"],dictionary_col2:s["b"],dictionary_model:s["c"],columns:[],list:[],total:0,searchData:{KeyName:"",PageIndex:1,PageSize:20,Asc:!0,SortField:""},loading:!1,rowData:{},currentKeyName:"",type:"",newBtnDisabled:!0}},mounted:function(){this.initTree()},methods:{initTree:function(){var e=this;Object(r["eb"])().then((function(t){e.treeList=t.Result,e.currentNodekey=t.Result[0].Children[0].Id,e.expandedkeys.push(t.Result[0].Children[0].Id)}))},getList:function(){var e=this;this.loading=!0,Object(r["gb"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount}))},handleNodeClick:function(e){this.searchData.KeyName=e.KeyName,this.type=e.Type,this.currentKeyName=e.KeyName,e.Children.length>0?this.newBtnDisabled=!0:this.newBtnDisabled=!1,"Employment"===e.Type||"Specialty"===e.Type?this.columns=this.dictionary_col1:this.columns=this.dictionary_col2,this.getList()},handleNew:function(){this.rowData={},this.dictionary_model.title="Add",this.dictionary_model.visible=!0},handleEdit:function(e){this.rowData=e,this.dictionary_model.title="Edit",this.dictionary_model.visible=!0},handleDelete:function(e){var t=this;this.$confirm("Sure to delete?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){Object(r["C"])(e.Id).then((function(i){i.IsSuccess&&(t.list.splice(t.list.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success("Deleted successfully!"),t.$store.dispatch("global/setDictionary",{}))}))}))},closeModel:function(){this.dictionary_model.visible=!1,this.getList()},sortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()}}},d=u,f=(i("df96"),i("2877")),h=Object(f["a"])(d,n,a,!1,null,"39a19994",null);t["default"]=h.exports},7419:function(e,t,i){var n=i("3eba"),a=i("b336");i("bc5f"),i("ab05"),i("307a"),i("3cd6"),i("d6ef"),n.registerPreprocessor(a)},"744a":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container"},[e.isInit?i("resume-info"):e._e()],1)},a=[],r=i("e2f5"),o=i("a599"),s=i("4360"),l={components:{ResumeInfo:r["default"]},data:function(){return{isInit:!1}},mounted:function(){var e=Object(o["b"])("token");e&&(s["a"].dispatch("user/setToken",e),Object(o["a"])("token","")),this.isInit=!0}},c=l,u=(i("bd4d"),i("2877")),d=Object(u["a"])(c,n,a,!1,null,"c5f8bbf2",null);t["default"]=d.exports},7459:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"adReview_wrapper"},[i("el-card",{staticStyle:{"margin-bottom":"10px"},attrs:{shadow:"never","body-style":{padding:"10px"}}},[e.isReadingShowSubjectInfo?i("h4",[e._v("\n 受试者:\n "),i("span",{staticStyle:{"font-weight":"normal"}},[e._v(e._s(e.subjectCode)+" ")]),e._v(" "),i("span",{staticStyle:{"font-weight":"normal"}},[e._v("("+e._s(e.taskBlindName)+")")])]):e._e()]),e._v(" "),i("el-card",{attrs:{"body-style":{padding:"10px"},shadow:"never"}},[i("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[i("span",{staticStyle:{"font-weight":"bold"}},[e._v("评估结果")])]),e._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.adInfo.VisitInfoList}},[i("el-table-column",{attrs:{prop:"VisitName",label:"访视名称","show-overflow-tooltip":"",width:"150"}}),e._v(" "),e._l(e.judgeQuestion,(function(t){return i("el-table-column",{key:t.armEnum,attrs:{label:e.$fd("ArmEnum",t.armEnum),align:"center",prop:""}},[e._l(t.judgeQuestionList,(function(n,a){return i("el-table-column",{key:a,attrs:{prop:"",label:n,"show-overflow-tooltip":"",width:"150"},scopedSlots:e._u([{key:"default",fn:function(n){return[2===n.row.VisitTaskInfoList[t.index].JudgeQuestionList[a].QuestionType?i("div",[n.row.VisitTaskInfoList[t.index].JudgeQuestionList[a].Answer?i("div",[i("span",[e._v(e._s(e.$fd("YesOrNo",n.row.VisitTaskInfoList[t.index].JudgeQuestionList[a].Answer)))]),e._v(" "),i("el-button",{staticStyle:{"margin-left":"5px"},attrs:{type:"text"},on:{click:function(i){return e.handleViewDetail(n.row.VisitTaskInfoList[t.index].GlobalVisitTaskId)}}},[e._v("\n 查看详情\n ")])],1):i("div",[e._v("\n "+e._s(e.$fd("YesOrNo",n.row.VisitTaskInfoList[t.index].JudgeQuestionList[a].Answer))+"\n ")])]):i("div",[e._v(e._s(n.row.VisitTaskInfoList[t.index].JudgeQuestionList[a].Answer))])]}}],null,!0)})}))],2)})),e._v(" "),i("el-table-column",{attrs:{label:"查看详情",width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text",title:"查看R1详情"},on:{click:function(i){return e.handleView(t.row,1)}}},[e._v("\n R1\n ")]),e._v(" "),i("el-button",{attrs:{type:"text",title:"查看R2详情"},on:{click:function(i){return e.handleView(t.row,2)}}},[e._v("\n R2\n ")])]}}])})],2)],1),e._v(" "),i("el-card",{staticClass:"box-mr",attrs:{"body-style":{padding:"10px"}}},[i("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[i("span",{staticStyle:{"font-weight":"bold"}},[e._v("裁判结果")])]),e._v(" "),i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"adForm",staticStyle:{width:"600px"},attrs:{model:e.adForm,"label-width":"100px"}},[i("el-form-item",{attrs:{label:"选择阅片人",prop:"judgeResultTaskId",rules:[{required:!0,message:"请选择"}]}},[i("el-radio-group",{attrs:{disabled:e.adInfo.ReadingTaskState>=2},model:{value:e.adForm.judgeResultTaskId,callback:function(t){e.$set(e.adForm,"judgeResultTaskId",t)},expression:"adForm.judgeResultTaskId"}},e._l(e.visitTaskArmList,(function(t){return i("el-radio",{key:t.VisitTaskId,attrs:{label:t.VisitTaskId}},[e._v("\n "+e._s(e.$fd("ArmEnum",t.ArmEnum))+"\n ")])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"裁判原因",prop:"judgeResultRemark",rules:[{required:!0,message:"请注明"}]}},[i("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},disabled:e.adInfo.ReadingTaskState>=2},model:{value:e.adForm.judgeResultRemark,callback:function(t){e.$set(e.adForm,"judgeResultRemark",t)},expression:"adForm.judgeResultRemark"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"截图说明"}},[i("el-upload",{class:{disabled:e.uploadDisabled},attrs:{action:e.accept,limit:1,"on-preview":e.handlePictureCardPreview,"before-upload":e.handleBeforeUpload,"http-request":e.uploadScreenshot,"list-type":"picture-card","on-remove":e.handleRemove,"file-list":e.fileList,disabled:e.adInfo.ReadingTaskState>=2},scopedSlots:e._u([{key:"file",fn:function(t){var n=t.file;return i("div",{},[i("img",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:n.url,alt:""}}),e._v(" "),i("span",{staticClass:"el-upload-list__item-actions"},[i("span",{staticClass:"el-upload-list__item-preview",on:{click:function(t){return e.handlePictureCardPreview(n)}}},[i("i",{staticClass:"el-icon-zoom-in"})]),e._v(" "),e.adInfo.ReadingTaskState<2?i("span",{staticClass:"el-upload-list__item-delete",on:{click:function(t){return e.handleRemove(n)}}},[i("i",{staticClass:"el-icon-delete"})]):e._e()])])}}])},[i("i",{staticClass:"el-icon-plus",attrs:{slot:"default"},slot:"default"})]),e._v(" "),i("el-dialog",{attrs:{"append-to-body":"",visible:e.imgVisible,width:"600px"},on:{"update:visible":function(t){e.imgVisible=t}}},[i("el-image",{attrs:{src:e.imageUrl,width:"100%"}},[i("div",{staticClass:"image-slot",attrs:{slot:"placeholder"},slot:"placeholder"},[e._v("\n 加载中"),i("span",{staticClass:"dot"},[e._v("...")])])])],1)],1),e._v(" "),e.adInfo.ReadingTaskState<2?i("el-form-item",[i("div",{staticStyle:{"text-align":"center"}},[i("el-button",{attrs:{type:"primary"},on:{click:e.handleSave}},[e._v("保存")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.handleSubmit}},[e._v("提交")])],1)]):e._e()],1)],1),e._v(" "),e.isReadingShowPreviousResults?i("el-card",{attrs:{"body-style":{padding:"10px"}}},[i("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[i("span",{staticStyle:{"font-weight":"bold"}},[e._v("既往裁判评估")])]),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.priorLoading,expression:"priorLoading"}],staticStyle:{width:"100%"},attrs:{data:e.priorADList}},[i("el-table-column",{attrs:{prop:"TaskBlindName",label:"裁判阅片","show-overflow-tooltip":"",width:"200"}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{circle:"",title:"查看详情",icon:"el-icon-view"},on:{click:function(i){return e.handleViewDetail(t.row.VisitTaskId)}}})]}}],null,!1,735144548)})],1)],1):e._e(),e._v(" "),e.signVisible?i("el-dialog",{attrs:{visible:e.signVisible,"close-on-click-modal":!1,width:"600px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.signVisible=t}}},[i("div",{attrs:{slot:"title"},slot:"title"},[i("span",{staticStyle:{"font-size":"18px"}},[e._v(e._s(e.$t("common:dialogTitle:sign")))]),e._v(" "),i("span",{staticStyle:{"font-size":"12px","margin-left":"5px"}},[e._v(e._s("("+e.$t("common:label:sign")+e.currentUser+")"))])]),e._v(" "),i("SignForm",{ref:"signForm",attrs:{"sign-code-enum":e.signCode},on:{closeDialog:e.closeSignDialog}})],1):e._e()],1)},a=[],r=(i("386d"),i("7f7f"),i("7514"),i("c5f6"),i("3e42")),o=i("7a9e"),s=i("5f87"),l=i("179b"),c={name:"AdReview",components:{SignForm:l["default"]},props:{trialId:{type:String,required:!0},subjectId:{type:String,required:!0},visitTaskId:{type:String,required:!0},readingCategory:{type:Number,required:!0},subjectCode:{type:String,required:!0},taskBlindName:{type:String,required:!0},isReadingShowSubjectInfo:{type:Boolean,required:!0},isReadingShowPreviousResults:{type:Boolean,required:!0}},data:function(){return{adInfo:{},judgeQuestion:[],adForm:{visitTaskId:"",judgeResultTaskId:"",judgeResultRemark:"",judgeResultImagePath:""},currentUser:zzSessionStorage.getItem("userName"),signVisible:!1,signCode:null,accept:".png,.jpg,.jpeg",imgVisible:!1,imageUrl:"",uploadDisabled:!1,fileList:[],loading:!1,visitTaskArmList:[],priorADList:[],priorLoading:!1}},mounted:function(){this.getAdInfo(),this.isReadingShowPreviousResults&&this.getPriorAdList()},methods:{getAdInfo:function(){var e=this;this.loading=!0,Object(r["nc"])({visitTaskId:this.visitTaskId}).then((function(t){var i=[];t.Result.VisitInfoList.length>0&&t.Result.VisitInfoList[0].VisitTaskInfoList.map((function(t,n){var a={armEnum:t.ArmEnum,judgeQuestionList:[],index:n};t.JudgeQuestionList.map((function(t){1===t.QuestionType?a.judgeQuestionList.push(t.QuestionName):a.judgeQuestionList.push(e.$fd("JudgeReadingQuestionType",t.QuestionType))})),i.push(a)})),e.judgeQuestion=i,e.adInfo=t.Result,e.adForm.judgeResultTaskId=t.Result.JudgeResultTaskId,e.adForm.judgeResultRemark=t.Result.JudgeResultRemark,t.Result.JudgeResultImagePath&&(e.adForm.judgeResultImagePath=t.Result.JudgeResultImagePath,e.fileList=[{name:"",url:"/api/".concat(t.Result.JudgeResultImagePath)}],e.imageUrl="/api/".concat(t.Result.JudgeResultImagePath),e.uploadDisabled=!0),e.visitTaskArmList=t.Result.VisitTaskArmList,e.loading=!1})).catch((function(){e.loading=!1}))},getPriorAdList:function(){var e=this;this.priorLoading=!0,Object(r["Tc"])({visitTaskId:this.visitTaskId}).then((function(t){e.priorADList=t.Result,e.priorLoading=!1})).catch((function(){e.priorLoading=!1}))},handleSave:function(){var e=this;this.$refs["adForm"].validate((function(t){t&&(e.loading=!0,e.adForm.visitTaskId=e.visitTaskId,Object(r["ze"])(e.adForm).then((function(t){e.$message.success(e.$t("common:message:savedSuccessfully")),e.loading=!1})).catch((function(){e.loading=!1})))}))},handleSubmit:function(){var e=this;this.$refs["adForm"].validate((function(t){if(t){var i=o["default"].processSignature.ImageAssessmentReportConfirmation;e.signCode=i,e.signVisible=!0}}))},closeSignDialog:function(e,t){e?this.signConfirm(t):this.signVisible=!1},signConfirm:function(e){var t=this;this.loading=!0;var i={data:{visitTaskId:this.visitTaskId,judgeResultTaskId:this.adForm.judgeResultTaskId,judgeResultRemark:this.adForm.judgeResultRemark,judgeResultImagePath:this.adForm.judgeResultImagePath},signInfo:e};Object(r["bf"])(i).then((function(e){e.IsSuccess&&(t.$message.success(t.$t("common:message:savedSuccessfully")),t.isEdit=!1,t.$refs["signForm"].btnLoading=!1,t.signVisible=!1,window.location.reload(),window.opener.postMessage("refreshTaskList",window.location)),t.loading=!1})).catch((function(e){t.loading=!1,t.$refs["signForm"].btnLoading=!1}))},handleViewDetail:function(e){var t=Object(s["a"])(),i=this.$router.resolve({path:"/readingPage?trialId=".concat(this.trialId,"&visitTaskId=").concat(e,"&TokenKey=").concat(t,"&isReadingShowPreviousResults=false")});window.open(i.href,"_blank")},handleView:function(e,t){var i=Object(s["a"])(),n=e.VisitTaskInfoList.find((function(e){return e.ArmEnum===t})),a=this.$router.resolve({path:"/readingPage?trialId=".concat(this.trialId,"&visitTaskId=").concat(n.VisitTaskId,"&TokenKey=").concat(i,"&isReadingShowPreviousResults=false")});window.open(a.href,"_blank")},uploadScreenshot:function(e){var t=this;this.loading=!0,this.uploadDisabled=!1;var i=new FormData;i.append("file",e.file),Object(r["yf"])(this.$route.query.trialId,this.visitTaskId,i).then((function(e){t.loading=!1,e.IsSuccess&&(t.fileList.push({name:e.Result.FileName,url:"".concat(e.Result.Path)}),t.imageUrl="".concat(e.Result.Path),t.adForm.judgeResultImagePath=e.Result.Path),t.uploadDisabled=!0})).catch((function(){t.loading=!1}))},handleBeforeUpload:function(e){return this.checkFileSuffix(e.name)?(this.fileList=[],!0):(this.$message.error("必须是 ".concat(this.accept," 格式")),!1)},checkFileSuffix:function(e){var t=e.lastIndexOf("."),i=e.substring(t+1,e.length);return-1!==this.accept.toLocaleLowerCase().search(i.toLocaleLowerCase())},removeImage:function(){this.imageUrl="",this.fileList=[],this.adForm.judgeResultImagePath=""},handlePictureCardPreview:function(){this.imgVisible=!0,this.uploadDisabled=!0},handleRemove:function(e,t){this.uploadDisabled=!1,this.imageUrl="",this.fileList=[],this.adForm.judgeResultImagePath=""}}},u=c,d=(i("32f6"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,"416b7b6d",null);t["default"]=f.exports},7465:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{height:"100%",background:"#fff"}},[i("div",{staticClass:"search"},[i("el-form",{staticClass:"base-search-form",attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:qcCfg:table:questionName")}},[i("el-input",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.QuestionName,callback:function(t){e.$set(e.searchData,"QuestionName",t)},expression:"searchData.QuestionName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:qcCfg:table:type")}},[i("el-select",{attrs:{clearable:""},model:{value:e.searchData.Type,callback:function(t){e.$set(e.searchData,"Type",t)},expression:"searchData.Type"}},e._l(e.$d.QcType,(function(e){return i("el-option",{key:e.label,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:qcCfg:table:isEnable")}},[i("el-select",{attrs:{clearable:""},model:{value:e.searchData.IsEnable,callback:function(t){e.$set(e.searchData,"IsEnable",t)},expression:"searchData.IsEnable"}},e._l(e.$d.IsEnable,(function(e){return i("el-option",{key:e.label,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:qcCfg:table:isRequired")}},[i("el-select",{attrs:{clearable:""},model:{value:e.searchData.IsRequired,callback:function(t){e.$set(e.searchData,"IsRequired",t)},expression:"searchData.IsRequired"}},e._l(e.$d.YesOrNo,(function(e){return i("el-option",{key:"IsRequired"+e.label,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")])],1)],1),e._v(" "),i("span",{staticStyle:{"margin-left":"auto"}},[e.isHaveQCQuestion?i("el-button",{attrs:{type:"primary",icon:"el-icon-view"},on:{click:function(t){e.preview.visible=!0}}},[e._v("\n "+e._s(e.$t("trials:qcCfg:button:preview"))+"\n ")]):e._e(),e._v(" "),!e.isConfirm&&e.hasPermi(["trials:trials-panel:setting:qc-question:default-question"])?i("el-button",{attrs:{type:"primary",icon:"el-icon-plus"},on:{click:e.handleAdd}},[e._v("\n "+e._s(e.$t("trials:qcCfg:button:default"))+"\n ")]):e._e(),e._v(" "),!e.isConfirm&&e.hasPermi(["trials:trials-panel:setting:qc-question:custom-question"])?i("el-button",{attrs:{type:"primary",icon:"el-icon-plus"},on:{click:e.handleCustomQS}},[e._v("\n "+e._s(e.$t("trials:qcCfg:button:custom"))+"\n ")]):e._e(),e._v(" "),!e.isConfirm&&e.isHaveQCQuestion?i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:setting:qc-question:confirm"],expression:"['trials:trials-panel:setting:qc-question:confirm']"}],attrs:{type:"danger",icon:"el-icon-circle-check"},on:{click:e.handleConfirm}},[e._v("\n "+e._s(e.$t("trials:qcCfg:button:confirm"))+"\n ")]):e._e()],1)],1),e._v(" "),i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:45},expression:"{bottomOffset:45}"}],attrs:{data:e.list,stripe:"",height:"100"}},[i("el-table-column",{attrs:{prop:"ShowOrder",label:e.$t("trials:qcCfg:table:order"),width:"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"QuestionName",label:e.$t("trials:qcCfg:table:questionName"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Type",label:e.$t("trials:qcCfg:table:type"),"show-overflow-tooltip":"",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("QcType",t.row.Type))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TypeValue",label:e.$t("trials:qcCfg:table:typeValue"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsRequired",label:e.$t("trials:qcCfg:table:isRequired"),width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("YesOrNo",t.row.IsRequired))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsEnable",label:e.$t("trials:qcCfg:table:isEnable"),width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("IsEnable",t.row.IsEnable))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ParentShowOrder",label:e.$t("trials:qcCfg:table:parentQs"),"show-overflow-tooltip":"",width:"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"ParentTriggerValue",label:e.$t("trials:qcCfg:table:parentTriggerValue"),"show-overflow-tooltip":""}}),e._v(" "),e.hasPermi(["trials:trials-panel:setting:qc-question:edit","trials:trials-panel:setting:qc-question:delete"])&&!e.isConfirm?i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"300"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:setting:qc-question:edit"],expression:"['trials:trials-panel:setting:qc-question:edit']"}],attrs:{circle:"",title:e.$t("common:button:edit"),icon:"el-icon-edit-outline"},on:{click:function(i){return e.handleEdit(t.row)}}}),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:setting:qc-question:delete"],expression:"['trials:trials-panel:setting:qc-question:delete']"}],attrs:{circle:"",title:e.$t("common:button:delete"),icon:"el-icon-delete"},on:{click:function(i){return e.handleDelete(t.row)}}})]}}],null,!1,805573880)}):e._e()],1),e._v(" "),e.addVisible?i("el-dialog",{attrs:{visible:e.addVisible,width:"1200px","close-on-click-modal":!1,"custom-class":"base-dialog-wrapper",title:e.$t("trials:qcCfg:button:default")},on:{"update:visible":function(t){e.addVisible=t}}},[i("div",{staticClass:"base-modal-body"},[i("DefaultQS",{on:{getList:e.getList,close:function(t){e.addVisible=!1}}})],1)]):e._e(),e._v(" "),e.qsForm.visible?i("el-dialog",{attrs:{visible:e.qsForm.visible,"close-on-click-modal":!1,"custom-class":"base-dialog-wrapper",title:e.qsForm.title,width:"600px"},on:{"update:visible":function(t){return e.$set(e.qsForm,"visible",t)}}},[i("QsForm",{attrs:{data:e.currentRow},on:{getList:e.getList,close:function(t){e.qsForm.visible=!1}}})],1):e._e(),e._v(" "),e.signVisible?i("el-dialog",{attrs:{visible:e.signVisible,"close-on-click-modal":!1,width:"600px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.signVisible=t}}},[i("div",{attrs:{slot:"title"},slot:"title"},[i("span",{staticStyle:{"font-size":"18px"}},[e._v(e._s(e.$t("common:dialogTitle:sign")))]),e._v(" "),i("span",{staticStyle:{"font-size":"12px","margin-left":"5px"}},[e._v(e._s("("+e.$t("common:label:sign")+e.currentUser+")"))])]),e._v(" "),i("SignForm",{ref:"signForm",attrs:{"sign-code-enum":e.signCode},on:{closeDialog:e.closeSignDialog}})],1):e._e(),e._v(" "),e.preview.visible?i("el-dialog",{directives:[{name:"dialogDrag",rawName:"v-dialogDrag"}],attrs:{visible:e.preview.visible,"close-on-click-modal":!1,title:e.preview.title,width:"500px","append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){return e.$set(e.preview,"visible",t)}}},[i("div",{staticClass:"base-dialog-body"},[i("QcQuestionPreview",{attrs:{"trial-id":e.trialId}})],1)]):e._e()],1)},a=[],r=(i("20d6"),i("db72")),o=i("3e42"),s=i("0662"),l=i("f36a"),c=i("14e4"),u=i("2b4d"),d=i("d28b"),f=i("179b"),h=i("7a9e"),p=function(){return{QuestionName:"",Type:"",IsEnable:null}},m={name:"QcQuestions",components:{BoxContent:l["default"],DefaultQS:c["default"],QsForm:u["default"],QcQuestionPreview:d["default"],SignForm:f["default"]},data:function(){return{searchData:p(),list:[],total:0,loading:!1,addVisible:!1,currentRow:{},qsForm:{visible:!1,title:""},signText:"",signCode:null,currentUser:zzSessionStorage.getItem("userName"),signVisible:!1,userTypeEnumInt:1*zzSessionStorage.getItem("userTypeEnumInt"),isConfirm:!0,isHaveQCQuestion:!1,trialId:"",preview:{visible:!1,title:this.$t("common:button:preview")}}},mounted:function(){this.trialId=this.$route.query.trialId,this.getList()},methods:{getList:function(){var e=this;this.loading=!0,this.searchData.TrialId=this.trialId,Object(o["Sd"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result,e.isConfirm=!(null===t.OtherInfo.QCQuestionConfirmedUserId||""===t.OtherInfo.QCQuestionConfirmedUserId),e.isHaveQCQuestion=t.OtherInfo.IsHaveQCQuestion})).catch((function(){e.loading=!1}))},handleAdd:function(){this.addVisible=!0},handleEdit:function(e){this.currentRow=Object(r["a"])({},e),this.qsForm.title=this.$t("trials:qcCfg:dialogTitle:edit"),this.qsForm.visible=!0},handleCustomQS:function(){this.currentRow={},this.qsForm.title=this.$t("trials:qcCfg:dialogTitle:custom"),this.qsForm.visible=!0},handleDelete:function(e){var t=this,i=this.list.findIndex((function(t){return t.ParentId===e.Id}));-1!==i?this.$message.error(this.$t("trials:qcCfg:message:deleteWarning")):this.$confirm(this.$t("trials:qcCfg:message:delete"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.loading=!0,Object(o["Cb"])(t.trialId,e.Id).then((function(e){t.loading=!1,e.IsSuccess&&(t.getList(),t.$message.success(t.$t("common:message:deletedSuccessfully")))})).catch((function(){t.loading=!1}))}))},openCustomDialog:function(){this.customQuestionVisible=!0,this.form.Id="",this.form.QuestionName="",this.form.IsRequired=!0,this.form.IsEnable=!0,this.form.Type="select",this.form.TypeValue="",this.form.ShowOrder=0,this.form.ParentId="",this.form.ParentTriggerValue="",this.getParentOpntions()},handleSearch:function(){this.getList()},handleReset:function(){this.searchData=p(),this.getList()},handleConfirm:function(){var e=this;this.list&&0!==this.list.length?(this.loading=!0,Object(o["Nf"])({trialId:this.trialId}).then((function(t){e.loading=!1;var i=h["default"].processSignature.QCConfirmation;e.signCode=i,e.signVisible=!0})).catch((function(){e.loading=!1}))):this.$message.error(this.$t("trials:qcCfg:message:msg2"))},closeSignDialog:function(e,t){e?this.signConfirm(t):this.signVisible=!1},signConfirm:function(e){var t=this;this.loading=!0;var i={data:{trialId:this.trialId,signCode:e.SignCode},signInfo:e};Object(s["g"])(i).then((function(e){t.loading=!1,e.IsSuccess&&(t.$message.success(t.$t("common:message:savedSuccessfully")),t.$refs["signForm"].btnLoading=!1,t.signVisible=!1,t.getList())})).catch((function(e){t.loading=!1,t.$refs["signForm"].btnLoading=!1}))}}},g=m,v=i("2877"),b=Object(v["a"])(g,n,a,!1,null,null,null);t["default"]=b.exports},7487:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{ref:"revenusForm",attrs:{size:"small","label-width":"170px",rules:e.rules,model:e.form}},[i("el-form-item",{attrs:{label:"Trial ID: ",prop:"TrialCOde"}},[i("el-input",{attrs:{disabled:""},model:{value:e.form.TrialCode,callback:function(t){e.$set(e.form,"TrialCode",t)},expression:"form.TrialCode"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Indication: ",prop:"Indication"}},[i("el-input",{attrs:{disabled:""},model:{value:e.form.Indication,callback:function(t){e.$set(e.form,"Indication",t)},expression:"form.Indication"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Dispaly All: "}},[i("el-switch",{model:{value:e.isDispaly,callback:function(t){e.isDispaly=t},expression:"isDispaly"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Training ($): ",prop:"Training"}},[i("el-input",{attrs:{type:"number",oninput:"this.value=this.value.replace(/[^\\d.]/g,'');"},model:{value:e.form.Training,callback:function(t){e.$set(e.form,"Training",t)},expression:"form.Training"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Refresher Training ($): ",prop:"RefresherTraining"}},[i("el-input",{attrs:{type:"number",oninput:"this.value=this.value.replace(/[^\\d.]/g,'');"},model:{value:e.form.RefresherTraining,callback:function(t){e.$set(e.form,"RefresherTraining",t)},expression:"form.RefresherTraining"}})],1),e._v(" "),!e.isDispaly&&0==e.form.Expedited||e.isDispaly?i("el-form-item",{attrs:{label:"Timepoint ($): ",prop:"Timepoint"}},[i("el-input",{attrs:{type:"number",oninput:"this.value=this.value.replace(/[^\\d.]/g,'');"},model:{value:e.form.Timepoint,callback:function(t){e.$set(e.form,"Timepoint",t)},expression:"form.Timepoint"}})],1):e._e(),e._v(" "),!e.isDispaly&&2==e.form.Expedited||e.isDispaly?i("el-form-item",{attrs:{label:"Timepoint 48H ($): ",prop:"TimepointIn48H"}},[i("el-input",{attrs:{type:"number",oninput:"this.value=this.value.replace(/[^\\d.]/g,'');"},model:{value:e.form.TimepointIn48H,callback:function(t){e.$set(e.form,"TimepointIn48H",t)},expression:"form.TimepointIn48H"}})],1):e._e(),e._v(" "),!e.isDispaly&&1==e.form.Expedited||e.isDispaly?i("el-form-item",{attrs:{label:"Timepoint 24H ($): ",prop:"TimepointIn24H"}},[i("el-input",{attrs:{type:"number",oninput:"this.value=this.value.replace(/[^\\d.]/g,'');"},model:{value:e.form.TimepointIn24H,callback:function(t){e.$set(e.form,"TimepointIn24H",t)},expression:"form.TimepointIn24H"}})],1):e._e(),e._v(" "),!e.isDispaly&&0==e.form.Expedited&&"Double review with adjudication"==e.form.ReviewMode||e.isDispaly&&"Double review with adjudication"==e.form.ReviewMode?i("el-form-item",{attrs:{label:"Adjudication ($): ",prop:"Adjudication"}},[i("el-input",{attrs:{type:"number",oninput:"this.value=this.value.replace(/[^\\d.]/g,'');"},model:{value:e.form.Adjudication,callback:function(t){e.$set(e.form,"Adjudication",t)},expression:"form.Adjudication"}})],1):e._e(),e._v(" "),!e.isDispaly&&2==e.form.Expedited&&"Double review with adjudication"==e.form.ReviewMode||e.isDispaly&&"Double review with adjudication"==e.form.ReviewMode?i("el-form-item",{attrs:{label:"Adjudication 48H ($): ",prop:"AdjudicationIn48H"}},[i("el-input",{attrs:{type:"number",oninput:"this.value=this.value.replace(/[^\\d.]/g,'');"},model:{value:e.form.AdjudicationIn48H,callback:function(t){e.$set(e.form,"AdjudicationIn48H",t)},expression:"form.AdjudicationIn48H"}})],1):e._e(),e._v(" "),!e.isDispaly&&1==e.form.Expedited&&"Double review with adjudication"==e.form.ReviewMode||e.isDispaly&&"Double review with adjudication"==e.form.ReviewMode?i("el-form-item",{attrs:{label:"Adjudication 24H ($): ",prop:"AdjudicationIn24H"}},[i("el-input",{attrs:{type:"number",oninput:"this.value=this.value.replace(/[^\\d.]/g,'');"},model:{value:e.form.AdjudicationIn24H,callback:function(t){e.$set(e.form,"AdjudicationIn24H",t)},expression:"form.AdjudicationIn24H"}})],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:"Global ($): ",prop:"Global"}},[i("el-input",{attrs:{type:"number",oninput:"this.value=this.value.replace(/[^\\d.]/g,'');"},model:{value:e.form.Global,callback:function(t){e.$set(e.form,"Global",t)},expression:"form.Global"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Downtime ($): ",prop:"Downtime"}},[i("el-input",{attrs:{type:"number",oninput:"this.value=this.value.replace(/[^\\d.]/g,'');"},model:{value:e.form.Downtime,callback:function(t){e.$set(e.form,"Downtime",t)},expression:"form.Downtime"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",disabled:e.btnDisabled},on:{click:e.handleSave}},[e._v("Save")])],1)],1)},a=[],r=i("6b95"),o=/^([1-9]\d*(\.\d+)?|0)$/,s={props:{form:{type:Object,default:function(){return{}}}},data:function(){return{rules:{Training:[{required:!0,trigger:"blur"},{pattern:o,message:"Please specify a number greater than 0"}],RefresherTraining:[{required:!0,trigger:"blur"},{pattern:o,message:"Please specify a number greater than 0"}],Timepoint:[{required:!0,trigger:"blur"},{pattern:o,message:"Please specify a number greater than 0"}],TimepointIn24H:[{required:!0,trigger:"blur"},{pattern:o,message:"Please specify a number greater than 0"}],TimepointIn48H:[{required:!0,trigger:"blur"},{pattern:o,message:"Please specify a number greater than 0"}],Adjudication:[{required:!0,trigger:"blur"},{pattern:o,message:"Please specify a number greater than 0"}],AdjudicationIn24H:[{required:!0,trigger:"blur"},{pattern:o,message:"Please specify a number greater than 0"}],AdjudicationIn48H:[{required:!0,trigger:"blur"},{pattern:o,message:"Please specify a number greater than 0"}],Global:[{required:!0,trigger:["blur","change"]},{pattern:o,message:"Please specify a number greater than 0"}]},isDispaly:!1,btnDisabled:!1}},methods:{handleSave:function(){var e=this;this.$refs.revenusForm.validate((function(t){if(t){e.btnDisabled=!0;var i=function(e){var t=e.TrialId,i=e.Timepoint,n=e.TimepointIn24H,a=e.TimepointIn48H,r=e.Adjudication,o=e.AdjudicationIn24H,s=e.AdjudicationIn48H,l=e.Global,c=e.Training,u=e.Downtime,d=e.RefresherTraining;return{TrialId:t,Timepoint:i,TimepointIn24H:n,TimepointIn48H:a,Adjudication:r,AdjudicationIn24H:o,AdjudicationIn48H:s,Global:l,Training:c,Downtime:u,RefresherTraining:d}}(e.form);Object(r["g"])(i).then((function(t){t.IsSuccess&&(e.$emit("getList"),e.$message.success("Updated successfully!"),e.$emit("closeDialog"))}))}}))}}},l=s,c=i("2877"),u=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},"74a2":function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-eye-open",use:"icon-eye-open-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" id="icon-eye-open"><defs><style></style></defs><path d="M512 128q69.675 0 135.51 21.163t115.498 54.997 93.483 74.837 73.685 82.006 51.67 74.837 32.17 54.827L1024 512q-2.347 4.992-6.315 13.483T998.87 560.17t-31.658 51.669-44.331 59.99-56.832 64.34-69.504 60.16-82.347 51.5-94.848 34.687T512 896q-69.675 0-135.51-21.163t-115.498-54.826-93.483-74.326-73.685-81.493-51.67-74.496-32.17-54.997L0 513.707q2.347-4.992 6.315-13.483t18.816-34.816 31.658-51.84 44.331-60.33 56.832-64.683 69.504-60.331 82.347-51.84 94.848-34.816T512 128.085zm0 85.333q-46.677 0-91.648 12.331t-81.152 31.83-70.656 47.146-59.648 54.485-48.853 57.686-37.675 52.821-26.325 43.99q12.33 21.674 26.325 43.52t37.675 52.351 48.853 57.003 59.648 53.845T339.2 767.02t81.152 31.488T512 810.667t91.648-12.331 81.152-31.659 70.656-46.848 59.648-54.186 48.853-57.344 37.675-52.651T927.957 512q-12.33-21.675-26.325-43.648t-37.675-52.65-48.853-57.345-59.648-54.186-70.656-46.848-81.152-31.659T512 213.334zm0 128q70.656 0 120.661 50.006T682.667 512 632.66 632.661 512 682.667 391.339 632.66 341.333 512t50.006-120.661T512 341.333zm0 85.334q-35.328 0-60.33 25.002T426.666 512t25.002 60.33T512 597.334t60.33-25.002T597.334 512t-25.002-60.33T512 426.666z" /></symbol>'});o.a.add(s);t["default"]=s},"74b3":function(e,t,i){},"74cb":function(e,t){var i={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return.5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return 0===e?0:Math.pow(1024,e-1)},exponentialOut:function(e){return 1===e?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(2-Math.pow(2,-10*(e-1)))},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,i=.1,n=.4;return 0===e?0:1===e?1:(!i||i<1?(i=1,t=n/4):t=n*Math.asin(1/i)/(2*Math.PI),-i*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n))},elasticOut:function(e){var t,i=.1,n=.4;return 0===e?0:1===e?1:(!i||i<1?(i=1,t=n/4):t=n*Math.asin(1/i)/(2*Math.PI),i*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},elasticInOut:function(e){var t,i=.1,n=.4;return 0===e?0:1===e?1:(!i||i<1?(i=1,t=n/4):t=n*Math.asin(1/i)/(2*Math.PI),(e*=2)<1?i*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*-.5:i*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-i.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?.5*i.bounceIn(2*e):.5*i.bounceOut(2*e-1)+.5}},n=i;e.exports=n},"750f":function(e,t,i){},7515:function(e,t,i){},"752f":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"search-container"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:studyList:table:siteId")}},[i("el-select",{staticStyle:{width:"150px"},attrs:{clearable:"",filterable:""},model:{value:e.searchData.SiteId,callback:function(t){e.$set(e.searchData,"SiteId",t)},expression:"searchData.SiteId"}},e._l(e.siteOptions,(function(e){return i("el-option",{key:e.SiteId,attrs:{label:e.TrialSiteCode,value:e.SiteId}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:studyList:table:subject")}},[i("el-input",{staticStyle:{width:"140px"},model:{value:e.searchData.SubjectInfo,callback:function(t){e.$set(e.searchData,"SubjectInfo",t)},expression:"searchData.SubjectInfo"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:studyList:table:visit")}},[i("el-select",{attrs:{clearable:"",filterable:"",multiple:"","collapse-tags":""},model:{value:e.searchData.VisitPlanArray,callback:function(t){e.$set(e.searchData,"VisitPlanArray",t)},expression:"searchData.VisitPlanArray"}},[e._l(e.visitPlanOptions,(function(t,n){return i("el-option",{key:n,attrs:{label:t.VisitName,value:t.VisitNum}},[i("span",{staticStyle:{float:"left"}},[e._v(e._s(t.VisitName))])])})),e._v(" "),i("el-option",{key:"Other",attrs:{label:"OutPlan",value:"1.11"}})],2)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")])],1)],1)],1),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"}],attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"StudyCode",label:e.$t("trials:studyList:table:studyId"),"show-overflow-tooltip":"",sortable:"custom","min-width":"100"}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsDicom",label:e.$t("trials:studyList:table:imageType"),sortable:"custom","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsDicom?i("el-tag",{attrs:{type:"primary"}},[e._v("DICOM")]):i("el-tag",{attrs:{type:"danger"}},[e._v("Non-DICOM")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"StudyTime",sortable:"custom","min-width":"200","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",{staticStyle:{display:"flex","align-items":"center"}},[t.row.Modalities?i("div",[e._v(e._s(t.row.Modalities)+"("+e._s(t.row.Count)+"), ")]):i("div",{staticStyle:{color:"#f44336"}},[e._v("N/A, ")]),e._v(" "),t.row.Bodypart?i("div",{staticStyle:{margin:"0 3px"}},[e._v(e._s(t.row.Bodypart)+", ")]):i("div",{staticStyle:{color:"#f44336",margin:"0 3px"}},[e._v("N/A, ")]),e._v(" "),t.row.StudyTime?i("div",[e._v(e._s(e.moment(t.row.StudyTime).format("YYYY-MM-DD"))+" ")]):i("div",{staticStyle:{color:"#f44336"}},[e._v("N/A ")]),e._v(" "),i("div")])]}}])},[i("template",{slot:"header"},[i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n "+e._s(e.$t("trials:studyList:table:modality")+", "+e.$t("trials:studyList:table:bodyPart")+", "+e.$t("trials:studyList:table:studyDate")+", "+e.$t("trials:studyList:table:count"))+"\n ")]),e._v(" "),i("span",[e._v(e._s(e.$t("trials:studyList:table:studyInfo")))])])],1)],2),e._v(" "),i("el-table-column",{attrs:{"min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.VisitName?i("span",[e._v(e._s(t.row.VisitName)+", ")]):i("span",{staticStyle:{color:"#f44336"}},[e._v("N/A, ")]),e._v(" "),i("span",[e._v(e._s(t.row.VisitNum))])]}}])},[i("template",{slot:"header"},[i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n "+e._s(e.$t("trials:studyList:table:visitName")+", "+e.$t("trials:studyList:table:visitNum"))),i("br")]),e._v(" "),i("span",[e._v(e._s(e.$t("trials:studyList:table:visit")))])])],1)],2),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode",label:e.$t("trials:studyList:table:subject"),sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{"min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.TrialSiteCode?i("span",[e._v(e._s(t.row.TrialSiteCode)+", ")]):i("span",{staticStyle:{color:"#f44336"}},[e._v("N/A, ")]),e._v(" "),t.row.TrialSiteAliasName?i("span",[e._v(e._s(t.row.TrialSiteAliasName))]):i("span",{staticStyle:{color:"#f44336"}},[e._v("N/A")])]}}])},[i("template",{slot:"header"},[i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n "+e._s(e.$t("trials:studyList:table:siteId")+", "+e.$t("trials:studyList:table:siteName"))+"\n ")]),e._v(" "),i("span",[e._v(e._s(e.$t("trials:studyList:table:site")))])])],1)],2),e._v(" "),i("el-table-column",{attrs:{prop:"Uploader",label:e.$t("trials:studyList:table:uploader"),"show-overflow-tooltip":"",sortable:"custom","min-width":"100"}}),e._v(" "),i("el-table-column",{attrs:{prop:"UploadTime",label:e.$t("trials:studyList:table:uploadTime"),"show-overflow-tooltip":"",sortable:"custom","min-width":"120"}})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1),e._v(" "),i("base-model",{attrs:{config:e.share_model}},[i("template",{slot:"dialog-body"},[i("div",[i("i",{staticClass:"el-icon-success",staticStyle:{color:"#00d1b2"}}),e._v(" "),i("span",[e._v("成功创建分享链接")])]),e._v(" "),i("div",{staticStyle:{margin:"10px 0"}},[e._v("\n 链接:"),i("el-input",{staticStyle:{width:"420px"},attrs:{readonly:""},model:{value:e.shareLink,callback:function(t){e.shareLink=t},expression:"shareLink"}})],1),e._v(" "),i("div",{staticStyle:{"margin-bottom":"20px"}},[e._v("\n 提取码: "),i("el-input",{staticStyle:{width:"100px"},attrs:{readonly:""},model:{value:e.extractionCode,callback:function(t){e.extractionCode=t},expression:"extractionCode"}})],1),e._v(" "),i("div",[i("el-button",{attrs:{type:"primary",round:""},on:{click:e.copyCode}},[e._v("复制链接及提取码")])],1)])],2),e._v(" "),e.previewNonDicomVisible?i("el-dialog",{attrs:{visible:e.previewNonDicomVisible,title:e.$t("trials:studyList:dialogTitle:view"),fullscreen:!0,"append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.previewNonDicomVisible=t}}},[i("div",{staticClass:"base-modal-body",staticStyle:{border:"2px solid #ccc",padding:"10px"}},[e.previewNonDicomVisible?i("NonDicomPreview",{attrs:{"none-dicom-id":e.rowData.Id}}):e._e()],1)]):e._e()],2)},a=[],r=i("3e42"),o=i("acd9"),s=i("6071"),l=i("333d"),c=i("7eeb"),u=i("a29f"),d=i("c1df"),f=i.n(d),h=i("5f87"),p=function(){return{SubjectInfo:"",VisitPlanArray:[],Status:"",SiteId:"",PageIndex:1,PageSize:20}},m={name:"StudyList",components:{BaseContainer:s["default"],Pagination:l["default"],BaseModel:c["default"],NonDicomPreview:u["default"]},data:function(){return{searchData:p(),list:[],loading:!1,total:0,siteOptions:[],visitPlanOptions:[],seriesList:[],nonDicomfilesList:[],rowData:{},userTypeEnumInt:1*zzSessionStorage.getItem("userTypeEnumInt"),share_model:{visible:!1,title:"影像分享",showClose:!0,width:"500px"},shareLink:"",extractionCode:"",moment:f.a,filesLoading:"",seriesLoading:"",previewNonDicomVisible:!1,trialId:this.$route.query.trialId,tokenKey:Object(h["a"])()}},mounted:function(){this.getSite(),this.getVisitPlanOptions(),this.getList()},methods:{getList:function(){var e=this;this.loading=!0,this.searchData.TrialId=this.trialId,Object(r["Zb"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},handleGetseriesList:function(e){var t=this;this.seriesLoading=!0,this.seriesList=[],Object(r["id"])(e.Id).then((function(e){t.seriesLoading=!1,t.seriesList=e.Result})).catch((function(){t.seriesLoading=!1}))},handleGetFilesList:function(e){var t=this;this.filesLoading=!0,Object(r["wc"])(e).then((function(e){t.nonDicomfilesList=e.Result,t.filesLoading=!1})).catch((function(){t.filesLoading=!1}))},handleViewStudy:function(e){if(e.IsDicom){var t=this.$router.resolve({path:"/showdicom?studyId=".concat(e.Id,"&TokenKey=").concat(this.tokenKey,"&type=Study")});window.open(t.href,"_blank")}else{var i=this.$router.resolve({path:"/showNoneDicoms?subjectVisitId=".concat(e.SubjectVisitId,"&studyId=").concat(e.Id,"&TokenKey=").concat(this.tokenKey)});window.open(i.href,"_blank")}},handlePreviewNonDicom:function(e){var t=this.$router.resolve({path:"/showNoneDicoms?subjectVisitId=".concat(e.SubjectVisitId,"&studyId=").concat(e.Id,"&TokenKey=").concat(this.tokenKey)});window.open(t.href,"_blank")},handlePreview:function(e){window.open(e.FullFilePath,"_blank")},studyStatusFormatter:function(e){return 5===e?"Uploaded":1===e?"Uploading":7===e?"QA Requested":10===e?"In QA":25===e?"QA-Passed":26===e?"QA-Failed":28===e?"Anonymizing":30===e?"Anonymized":32===e?"Anonymizing Failed":34===e?"Forwarding":36===e?"Forwarded":38===e?"Forwarding Failed":""},getSite:function(){var e=this;Object(r["Zd"])(this.trialId).then((function(t){e.siteOptions=t.Result}))},getVisitPlanOptions:function(){var e=this;Object(r["ee"])(this.trialId).then((function(t){e.visitPlanOptions=t.Result}))},handleShareImage:function(e){var t=this;this.shareLink="",this.extractionCode="";var i={TrialId:e.TrialId,SiteId:e.SiteId,SubjectId:e.SubjectId,StudyId:e.Id};this.loading=!0,Object(o["a"])(i).then((function(e){t.loading=!1,e.IsSuccess&&(t.shareLink="".concat(window.location.origin,"/imagesShare?id=").concat(e.Result.ResourceId),t.extractionCode=e.Result.Password,t.share_model.visible=!0)})).catch((function(){t.loading=!1}))},copyCode:function(){var e=this;this.$copyText("链接: ".concat(this.shareLink," 提取码: ").concat(this.extractionCode)).then((function(t){e.$message.success("复制成功")})).catch((function(){e.$message.error("复制失败")}))},onCopyError:function(){this.$message.error("复制失败")},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=p(),this.getList()},handleSortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()}}},g=m,v=i("2877"),b=Object(v["a"])(g,n,a,!1,null,null,null);t["default"]=b.exports},"75ab":function(e,t,i){"use strict";i("9bd5")},"75e8":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{height:"100%","background-color":"#fff"}},[e.isReadingTaskViewInOrder&&e.isRender?i("div",[i("div",{attrs:{slot:"search-container"},slot:"search-container"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:pendingReadingTasks:table:subjectCode")}},[i("el-input",{staticStyle:{width:"130px"},attrs:{clearable:""},model:{value:e.searchData.SubjectCode,callback:function(t){e.$set(e.searchData,"SubjectCode",t)},expression:"searchData.SubjectCode"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")])],1)],1)],1),e._v(" "),i("div",{attrs:{slot:"main-container"},slot:"main-container"},[i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:75},expression:"{bottomOffset:75}"}],attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortChange}},[i("el-table-column",{attrs:{type:"index",width:"40",align:"left"}}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode","min-width":"100",label:e.$t("trials:pendingReadingTasks:table:subjectCode"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"UnReadCanReadTaskCount","min-width":"100",label:e.$t("trials:pendingReadingTasks:table:remainingReadingVolume"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"SuggesteFinishedTime","min-width":"100",label:e.$t("trials:pendingReadingTasks:table:suggestedCompletionTime"),"show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.SuggesteFinishedTime.split(":")[0]+":00:00")+"\n ")]}}],null,!1,2394106849)}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"250",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{disabled:t.row.ExistReadingApply,circle:"",title:t.row.ExistReadingApply?e.$t("trials:pendingReadingTasks:button:ExistReadingApply"):e.$t("trials:pendingReadingTasks:button:review"),icon:"el-icon-edit-outline"},on:{click:function(i){return e.handleReadImage(t.row)}}})]}}],null,!1,4229416559)})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1)]):!e.isReadingTaskViewInOrder&&e.isRender?i("div",[i("el-descriptions",{staticStyle:{width:"800px"},attrs:{column:2,border:""}},[i("el-descriptions-item",{attrs:{label:e.$t("trials:pendingReadingTasks:table:remainingTaskVolume"),"label-style":{width:"200px"}}},[i("el-tag",{attrs:{size:"small",type:"danger"}},[e._v(e._s(e.randomReadInfo.UnReadTaskCount))])],1),e._v(" "),i("el-descriptions-item",{attrs:{label:e.$t("trials:pendingReadingTasks:table:amountOfJudgesRemaining"),"label-style":{width:"200px"}}},[i("el-tag",{attrs:{size:"small",type:"danger"}},[e._v(e._s(e.randomReadInfo.UnReadJudgeTaskCount))])],1),e._v(" "),i("el-descriptions-item",{attrs:{label:e.$t("trials:pendingReadingTasks:table:amountOfCompletedTasks"),"label-style":{width:"200px"}}},[i("el-tag",{attrs:{size:"small"}},[e._v(e._s(e.randomReadInfo.FinishTaskCount))])],1),e._v(" "),i("el-descriptions-item",{attrs:{label:e.$t("trials:pendingReadingTasks:table:numberOfJudgesCompleted"),"label-style":{width:"200px"}}},[i("el-tag",{attrs:{size:"small"}},[e._v(e._s(e.randomReadInfo.FinishJudgeTaskCount))])],1),e._v(" "),i("el-descriptions-item",[i("el-button",{attrs:{type:"primary",size:"small",disabled:e.randomReadInfo.UnReadTaskCount+e.randomReadInfo.UnReadJudgeTaskCount===0},on:{click:e.handleOutOfOrderReading}},[e._v("\n "+e._s(e.$t("trials:pendingReadingTasks:button:beginRandomReview"))+"\n ")])],1)],1)],1):e._e()])},a=[],r=i("3e42"),o=i("958c"),s=i("6071"),l=i("333d"),c=i("5f87"),u=function(){return{SubjectCode:"",PageIndex:1,PageSize:20}},d={name:"ReadingTaskList",components:{BaseContainer:s["default"],Pagination:l["default"]},data:function(){return{searchData:u(),list:[],total:0,loading:!1,trialId:"",isReadingTaskViewInOrder:null,randomReadInfo:{},isRender:!1,trialCriterionList:[],TrialReadingCriterionId:"",isTableShow:!0,readingTool:null,criterionType:null}},watch:{TrialReadingCriterionId:function(e){e&&this.getList()}},mounted:function(){window.addEventListener("message",this.receiveMsg),this.trialId=this.$route.query.trialId,this.getTrialCriterionList()},beforeDestroy:function(){window.removeEventListener("message",this.receiveMsg)},methods:{getTrialCriterionList:function(){var e=this;Object(o["U"])(this.trialId).then((function(t){e.trialCriterionList=t.Result,e.TrialReadingCriterionId=e.trialCriterionList[0].TrialReadingCriterionId,e.getList()})).catch((function(){}))},getList:function(){var e=this;this.loading=!0,this.searchData.TrialId=this.trialId,this.searchData.TrialReadingCriterionId=this.TrialReadingCriterionId,Object(r["kc"])(this.searchData).then((function(t){e.isReadingTaskViewInOrder=t.OtherInfo.IsReadingTaskViewInOrder,e.readingTool=t.OtherInfo.ReadingTool,e.criterionType=t.OtherInfo.CriterionType,t.OtherInfo.IsReadingTaskViewInOrder?(e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount):e.randomReadInfo=t.OtherInfo.RandomReadInfo,e.isRender=!0,e.loading=!1})).catch((function(){e.loading=!1}))},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=u(),this.getList()},handleReadImage:function(e){var t=this;this.loading=!0,Object(r["Kf"])().then((function(i){t.loading=!1,window.localStorage.setItem("TrialReadingCriterionId",t.TrialReadingCriterionId);var n=Object(c["a"])(),a="";a=0===t.readingTool?"/readingDicoms?TrialReadingCriterionId=".concat(t.TrialReadingCriterionId,"&trialId=").concat(t.trialId,"&subjectCode=").concat(e.SubjectCode,"&subjectId=").concat(e.SubjectId,"&isReadingTaskViewInOrder=").concat(t.isReadingTaskViewInOrder,"&criterionType=").concat(t.criterionType,"&readingTool=").concat(t.readingTool,"&TokenKey=").concat(n):"/noneDicomReading?TrialReadingCriterionId=".concat(t.TrialReadingCriterionId,"&trialId=").concat(t.trialId,"&subjectCode=").concat(e.SubjectCode,"&subjectId=").concat(e.SubjectId,"&isReadingTaskViewInOrder=").concat(t.isReadingTaskViewInOrder,"&criterionType=").concat(t.criterionType,"&readingTool=").concat(t.readingTool,"&TokenKey=").concat(n);var r=t.$router.resolve({path:a});window.open(r.href,"_blank")})).catch((function(){t.loading=!1}))},handleOutOfOrderReading:function(){window.localStorage.setItem("TrialReadingCriterionId",this.TrialReadingCriterionId);var e=Object(c["a"])(),t="";t=0===this.readingTool?"/readingDicoms?TrialReadingCriterionId=".concat(this.TrialReadingCriterionId,"&trialId=").concat(this.trialId,"&isReadingTaskViewInOrder=").concat(this.isReadingTaskViewInOrder,"&criterionType=").concat(this.criterionType,"&readingTool=").concat(this.readingTool,"&TokenKey=").concat(e):"/noneDicomReading?TrialReadingCriterionId=".concat(this.TrialReadingCriterionId,"&trialId=").concat(this.trialId,"&isReadingTaskViewInOrder=").concat(this.isReadingTaskViewInOrder,"&criterionType=").concat(this.criterionType,"&readingTool=").concat(this.readingTool,"&TokenKey=").concat(e);var i=this.$router.resolve({path:t});window.open(i.href,"_blank")},receiveMsg:function(e){"refreshTaskList"===e.data&&this.getList()},handleSortChange:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()}}},f=d,h=i("2877"),p=Object(h["a"])(f,n,a,!1,null,null,null);t["default"]=p.exports},"75f8":function(e,t,i){"use strict";i("fb37")},7612:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{"min-height":"400px"}},[e.questions.length>0?[e.isRender?i("el-form",{ref:"questions",attrs:{size:"small",model:e.questionForm}},e._l(e.questions,(function(t){return i("FormItem",{key:t.Id,attrs:{question:t,"question-form":e.questionForm,"audit-state":0},on:{resetFormItemData:e.resetFormItemData}})})),1):e._e()]:[i("div",{staticStyle:{"min-height":"400px"}},[i("p",[e._v(e._s(e.$t("trials:medicalFeedbackCfg:message:msg3")))])])]],2)},a=[],r=(i("ac6a"),i("c5f6"),i("3e42")),o=i("9c7e"),s={name:"QuestionTpl",components:{FormItem:o["default"]},props:{readingCategory:{type:Number,required:!0},trialReadingCriterionId:{type:String,default:""}},data:function(){return{loading:!1,questionForm:{},isRender:!1,trialId:"",readingTaskState:0}},mounted:function(){this.trialId=this.$route.query.trialId,this.getQuestions()},methods:{getQuestions:function(){var e=this;this.loading=!0;var t={trialId:this.trialId,readingCategory:this.readingCategory,TrialReadingCriterionId:this.trialReadingCriterionId};Object(r["sc"])(t).then((function(t){var i=[];t.Result.map((function(t){"group"===t.Type&&0===t.Childrens.length||(i.push(t),"group"!==t.Type&&"summary"!==t.Type&&e.$set(e.questionForm,t.Id,t.Answer?t.Answer:""),t.Childrens.length>0&&e.setChild(t.Childrens))})),e.questions=i,e.isRender=!0,e.loading=!1})).catch((function(){e.loading=!1}))},setChild:function(e){var t=this;e.forEach((function(e){"group"!==e.Type&&"summary"!==e.Type&&t.$set(t.questionForm,e.Id,e.Answer),e.Childrens&&e.Childrens.length>0&&t.setChild(e.Childrens)}))},resetFormItemData:function(e){this.questionForm[e]=null}}},l=s,c=i("2877"),u=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},7661:function(e,t,i){var n=i("0c41"),a=i("3eba"),r=a.extendComponentView({type:"geo",init:function(e,t){var i=new n(t,!0);this._mapDraw=i,this.group.add(i.group)},render:function(e,t,i,n){if(!n||"geoToggleSelect"!==n.type||n.from!==this.uid){var a=this._mapDraw;e.get("show")?a.draw(e,t,i,this,n):this._mapDraw.group.removeAll(),this.group.silent=e.get("silent")}},dispose:function(){this._mapDraw&&this._mapDraw.remove()}});e.exports=r},"767c":function(e,t,i){var n=i("3eba"),a=i("6d8b"),r=i("607d"),o=i("29a8"),s=i("2145"),l=o.toolbox.dataView,c=new Array(60).join("-"),u="\t";function d(e){var t={},i=[],n=[];return e.eachRawSeries((function(e){var a=e.coordinateSystem;if(!a||"cartesian2d"!==a.type&&"polar"!==a.type)i.push(e);else{var r=a.getBaseAxis();if("category"===r.type){var o=r.dim+"_"+r.index;t[o]||(t[o]={categoryAxis:r,valueAxis:a.getOtherAxis(r),series:[]},n.push({axisDim:r.dim,axisIndex:r.index})),t[o].series.push(e)}else i.push(e)}})),{seriesGroupByCategoryAxis:t,other:i,meta:n}}function f(e){var t=[];return a.each(e,(function(e,i){var n=e.categoryAxis,r=e.valueAxis,o=r.dim,s=[" "].concat(a.map(e.series,(function(e){return e.name}))),l=[n.model.getCategories()];a.each(e.series,(function(e){var t=e.getRawData();l.push(e.getRawData().mapArray(t.mapDimension(o),(function(e){return e})))}));for(var c=[s.join(u)],d=0;d<l[0].length;d++){for(var f=[],h=0;h<l.length;h++)f.push(l[h][d]);c.push(f.join(u))}t.push(c.join("\n"))})),t.join("\n\n"+c+"\n\n")}function h(e){return a.map(e,(function(e){var t=e.getRawData(),i=[e.name],n=[];return t.each(t.dimensions,(function(){for(var e=arguments.length,a=arguments[e-1],r=t.getName(a),o=0;o<e-1;o++)n[o]=arguments[o];i.push((r?r+u:"")+n.join(u))})),i.join("\n")})).join("\n\n"+c+"\n\n")}function p(e){var t=d(e);return{value:a.filter([f(t.seriesGroupByCategoryAxis),h(t.other)],(function(e){return e.replace(/[\n\t\s]/g,"")})).join("\n\n"+c+"\n\n"),meta:t.meta}}function m(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function g(e){var t=e.slice(0,e.indexOf("\n"));if(t.indexOf(u)>=0)return!0}var v=new RegExp("["+u+"]+","g");function b(e){for(var t=e.split(/\n+/g),i=m(t.shift()).split(v),n=[],r=a.map(i,(function(e){return{name:e,data:[]}})),o=0;o<t.length;o++){var s=m(t[o]).split(v);n.push(s.shift());for(var l=0;l<s.length;l++)r[l]&&(r[l].data[o]=s[l])}return{series:r,categories:n}}function y(e){for(var t=e.split(/\n+/g),i=m(t.shift()),n=[],a=0;a<t.length;a++){var r=m(t[a]);if(r){var o,s=r.split(v),l="",c=!1;isNaN(s[0])?(c=!0,l=s[0],s=s.slice(1),n[a]={name:l,value:[]},o=n[a].value):o=n[a]=[];for(var u=0;u<s.length;u++)o.push(+s[u]);1===o.length&&(c?n[a].value=o[0]:n[a]=o[0])}}return{name:i,data:n}}function w(e,t){var i=e.split(new RegExp("\n*"+c+"\n*","g")),n={series:[]};return a.each(i,(function(e,i){if(g(e)){var a=b(e),r=t[i],o=r.axisDim+"Axis";r&&(n[o]=n[o]||[],n[o][r.axisIndex]={data:a.categories},n.series=n.series.concat(a.series))}else{a=y(e);n.series.push(a)}})),n}function _(e){this._dom=null,this.model=e}function I(e,t){return a.map(e,(function(e,i){var n=t&&t[i];if(a.isObject(n)&&!a.isArray(n)){var r=a.isObject(e)&&!a.isArray(e);r||(e={value:e});var o=null!=n.name&&null==e.name;return e=a.defaults(e,n),o&&delete e.name,e}return e}))}_.defaultOption={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:a.clone(l.title),lang:a.clone(l.lang),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"},_.prototype.onclick=function(e,t){var i=t.getDom(),n=this.model;this._dom&&i.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;left:5px;top:5px;bottom:5px;right:5px;",o.style.backgroundColor=n.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=n.get("lang")||[];s.innerHTML=l[0]||n.get("title"),s.style.cssText="margin: 10px 20px;",s.style.color=n.get("textColor");var c=document.createElement("div"),u=document.createElement("textarea");c.style.cssText="display:block;width:100%;overflow:auto;";var d=n.get("optionToContent"),f=n.get("contentToOption"),h=p(e);if("function"===typeof d){var m=d(t.getOption());"string"===typeof m?c.innerHTML=m:a.isDom(m)&&c.appendChild(m)}else c.appendChild(u),u.readOnly=n.get("readOnly"),u.style.cssText="width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;",u.style.color=n.get("textColor"),u.style.borderColor=n.get("textareaBorderColor"),u.style.backgroundColor=n.get("textareaColor"),u.value=h.value;var g=h.meta,v=document.createElement("div");v.style.cssText="position:absolute;bottom:0;left:0;right:0;";var b="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",y=document.createElement("div"),_=document.createElement("div");b+=";background-color:"+n.get("buttonColor"),b+=";color:"+n.get("buttonTextColor");var I=this;function x(){i.removeChild(o),I._dom=null}r.addEventListener(y,"click",x),r.addEventListener(_,"click",(function(){var e;try{e="function"===typeof f?f(c,t.getOption()):w(u.value,g)}catch(i){throw x(),new Error("Data view format error "+i)}e&&t.dispatchAction({type:"changeDataView",newOption:e}),x()})),y.innerHTML=l[1],_.innerHTML=l[2],_.style.cssText=b,y.style.cssText=b,!n.get("readOnly")&&v.appendChild(_),v.appendChild(y),o.appendChild(s),o.appendChild(c),o.appendChild(v),c.style.height=i.clientHeight-80+"px",i.appendChild(o),this._dom=o},_.prototype.remove=function(e,t){this._dom&&t.getDom().removeChild(this._dom)},_.prototype.dispose=function(e,t){this.remove(e,t)},s.register("dataView",_),n.registerAction({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},(function(e,t){var i=[];a.each(e.newOption.series,(function(e){var n=t.getSeriesByName(e.name)[0];if(n){var r=n.get("data");i.push({name:e.name,data:I(e.data,r)})}else i.push(a.extend({type:"scatter"},e))})),t.mergeOption(a.defaults({series:i},e.newOption))}));var x=_;e.exports=x},7688:function(e,t,i){},"76a5":function(e,t,i){var n=i("19eb"),a=i("6d8b"),r=i("e86a"),o=i("a73c"),s=i("82eb"),l=s.ContextCachedBy,c=function(e){n.call(this,e)};c.prototype={constructor:c,type:"text",brush:function(e,t){var i=this.style;this.__dirty&&o.normalizeTextStyle(i,!0),i.fill=i.stroke=i.shadowBlur=i.shadowColor=i.shadowOffsetX=i.shadowOffsetY=null;var n=i.text;null!=n&&(n+=""),o.needDrawText(n,i)?(this.setTransform(e),o.renderText(this,e,n,i,null,t),this.restoreTransform(e)):e.__attrCachedBy=l.NONE},getBoundingRect:function(){var e=this.style;if(this.__dirty&&o.normalizeTextStyle(e,!0),!this._rect){var t=e.text;null!=t?t+="":t="";var i=r.getBoundingRect(e.text+"",e.font,e.textAlign,e.textVerticalAlign,e.textPadding,e.textLineHeight,e.rich);if(i.x+=e.x||0,i.y+=e.y||0,o.getStroke(e.textStroke,e.textStrokeWidth)){var n=e.textStrokeWidth;i.x-=n/2,i.y-=n/2,i.width+=n,i.height+=n}this._rect=i}return this._rect}},a.inherits(c,n);var u=c;e.exports=u},"76ad":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"needSignDoc-wrapper"},[i("el-row",[i("el-col",{attrs:{span:12}},[i("h3",[e._v(e._s(e.$t("trials:workbench:title:trialDocBeSigned")))])]),e._v(" "),i("el-col",{staticStyle:{"text-align":"right"},attrs:{span:12}},[i("h3",[i("Pagination",{staticClass:"page",staticStyle:{display:"inline-block"},attrs:{total:e.total,page:e.listQuery.pageIndex,limit:e.listQuery.pageSize,layout:"total, sizes, prev, pager, next",background:!1},on:{"update:page":function(t){return e.$set(e.listQuery,"pageIndex",t)},"update:limit":function(t){return e.$set(e.listQuery,"pageSize",t)},pagination:e.getList}}),e._v(" "),i("el-button",{attrs:{icon:"el-icon-refresh-left",size:"small",circle:"",title:e.$t("common:button:reset")},on:{click:e.handleReset}})],1)])],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],ref:"needSignDocList",attrs:{data:e.list,"show-header":!0,height:"calc(100% - 100px)"},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("trials:workbench:table:trialId"),prop:"TrialCode","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("trials:workbench:table:experimentName"),prop:"ExperimentName","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("trials:workbench:table:researchNo"),prop:"ResearchProgramNo","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("trials:trialDocBeSigned:table:fileCount"),prop:"WaitSignCount","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{icon:"el-icon-edit-outline",circle:"",title:e.$t("trials:workbench:action:sign")},on:{click:function(i){return e.handleSign(t.row)}}})]}}])})],1)],1)},a=[],r=i("3e42"),o=i("333d"),s=function(){return{pageIndex:1,pageSize:20,asc:!0,sortField:""}},l={name:"NeedSignDoc",components:{Pagination:o["default"]},data:function(){return{listLoading:!1,list:[],listQuery:s(),total:0}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.listLoading=!0,Object(r["Gd"])(this.listQuery).then((function(t){e.listLoading=!1,e.total=t.Result.TotalCount,e.list=t.Result.CurrentPageData})).catch((function(){e.listLoading=!1}))},handleSign:function(e){this.$router.push({path:"/trials/trials-panel/attachments/self-attachment?trialId=".concat(e.Id,"&trialCode=").concat(e.TrialCode,"&researchProgramNo=").concat(e.ResearchProgramNo,"&isSign=false")})},handleReset:function(){var e=this;this.listQuery=s(),this.getList(),this.$nextTick((function(){e.$refs.needSignDocList.clearSort()}))},handleSortByColumn:function(e){"ascending"===e.order?this.listQuery.asc=!0:this.listQuery.asc=!1,this.listQuery.sortField=e.prop,this.getList()}}},c=l,u=(i("20aa"),i("2877")),d=Object(u["a"])(c,n,a,!1,null,"47b79058",null);t["default"]=d.exports},"76f3":function(e,t,i){},7703:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[[e.questionForm[e.question.ParentId]===e.question.ParentTriggerValue||""===e.question.ParentId||null===e.question.ParentId?i("el-form-item",{attrs:{label:""+e.question.QuestionName,prop:e.question.Id,rules:[{required:e.question.IsRequired,message:e.$t("common:ruleMessage:specify"),trigger:["blur","change"]}]}},["input"===e.question.Type?i("el-input",{attrs:{disabled:e.isAudit},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"textarea"===e.question.Type?i("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},disabled:e.isAudit},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"select"===e.question.Type?i("el-select",{attrs:{clearable:"",disabled:e.isAudit},on:{change:function(t){e.formItemChange(t,e.question)}},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},e._l(e.question.TypeValue.split("|"),(function(e){return i("el-option",{key:e,attrs:{label:e,value:e}})})),1):e._e(),e._v(" "),"radio"===e.question.Type?i("el-radio-group",{attrs:{disabled:e.isAudit},on:{change:function(t){e.formItemChange(t,e.question)}},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},e._l(e.question.TypeValue.split("|"),(function(t){return i("el-radio",{key:t,attrs:{label:t}},[e._v("\n "+e._s(t)+"\n ")])})),1):e._e(),e._v(" "),"checkbox"===e.question.Type?i("el-checkbox-group",{attrs:{disabled:e.isAudit},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},e._l(e.question.TypeValue.split("|"),(function(t){return i("el-checkbox",{key:t,attrs:{label:t}},[e._v("\n "+e._s(t)+"\n ")])})),1):e._e()],1):e._e()],e._v(" "),e._l(e.question.Childrens,(function(t){return i("qSFormItem",{key:t.Id,attrs:{question:t,"question-form":e.questionForm,"is-audit":e.isAudit},on:{resetFormItemData:e.resetFormItemData}})}))],2)},a=[],r=(i("ac6a"),{name:"QSFormItem",props:{questionForm:{type:Object,default:function(){return{}}},question:{type:Object,default:function(){return[]}},isAudit:{type:Boolean,default:!1}},data:function(){return{}},watch:{questionForm:{deep:!0,immediate:!0,handler:function(e){}}},mounted:function(){},methods:{formItemChange:function(e,t){t.Childrens.length>0&&this.resetChild(t.Childrens)},resetChild:function(e){var t=this;e.forEach((function(e){t.$emit("resetFormItemData",e.Id),e.Childrens&&e.Childrens.length>0&&t.resetChild(e.Childrens)}))},resetFormItemData:function(e){this.$emit("resetFormItemData",e)}}}),o=r,s=(i("9f63"),i("2877")),l=Object(s["a"])(o,n,a,!1,null,"3b4933dd",null);t["default"]=l.exports},7782:function(e,t,i){var n=i("3eba"),a=i("6d8b");function r(e,t){a.each(t,(function(t){t.update="updateView",n.registerAction(t,(function(i,n){var a={};return n.eachComponent({mainType:"series",subType:e,query:i},(function(e){e[t.method]&&e[t.method](i.name,i.dataIndex);var n=e.getData();n.each((function(t){var i=n.getName(t);a[i]=e.isSelected(i)||!1}))})),{name:i.name,selected:a,seriesId:i.seriesId}}))}))}e.exports=r},"77ab":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"edit-container"},[i("el-tabs",{on:{"tab-click":e.clickTab},model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},[i("el-tab-pane",{attrs:{label:"User ",name:"user"}},[i("user-info",{attrs:{"user-id":e.userId}})],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Password ",name:"account"}},[e.load.account?i("Account",{attrs:{"user-id":e.userId}}):e._e()],1)],1)],1)},a=[],r=(i("7f7f"),i("a483")),o=i("580a"),s={name:"EditUser",components:{UserInfo:r["default"],Account:o["default"]},data:function(){return{activeTab:"user",userId:"",load:{role:!1,account:!1}}},created:function(){this.userId=this.$router.currentRoute.query.Id},methods:{clickTab:function(e,t){!1===this.load[e.name]&&(this.load[e.name]=!0)}}},l=s,c=i("2877"),u=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},"77f0":function(e,t,i){},"77f5":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"form-container",staticStyle:{width:"80%"}},[i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"researchForm",attrs:{"label-width":"140px",model:e.researchForm,size:"small"}},[i("el-form-item",{attrs:{label:"Field of Research: "}},[i("el-row",{attrs:{type:"flex",justify:"space-between"}},[i("el-col",{attrs:{span:11}},[i("el-input",{attrs:{disabled:"1"===e.$route.query.ReviewStatus,type:"textarea",rows:"5",placeholder:"Please specify in English",size:"small"},model:{value:e.researchForm.Research,callback:function(t){e.$set(e.researchForm,"Research",t)},expression:"researchForm.Research"}})],1),e._v(" "),i("el-col",{attrs:{span:11}},[i("el-input",{attrs:{disabled:"1"===e.$route.query.ReviewStatus,type:"textarea",rows:"5",placeholder:"请用中文注明",size:"small"},model:{value:e.researchForm.ResearchCN,callback:function(t){e.$set(e.researchForm,"ResearchCN",t)},expression:"researchForm.ResearchCN"}})],1)],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Grants: "}},[i("el-row",{attrs:{type:"flex",justify:"space-between"}},[i("el-col",{attrs:{span:11}},[i("el-input",{attrs:{disabled:"1"===e.$route.query.ReviewStatus,type:"textarea",rows:"5",placeholder:"Please specify in English",size:"small"},model:{value:e.researchForm.Grants,callback:function(t){e.$set(e.researchForm,"Grants",t)},expression:"researchForm.Grants"}})],1),e._v(" "),i("el-col",{attrs:{span:11}},[i("el-input",{attrs:{disabled:"1"===e.$route.query.ReviewStatus,type:"textarea",rows:"5",placeholder:"请用中文注明",size:"small"},model:{value:e.researchForm.GrantsCN,callback:function(t){e.$set(e.researchForm,"GrantsCN",t)},expression:"researchForm.GrantsCN"}})],1)],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Publications: "}},[i("el-row",{attrs:{type:"flex",justify:"space-between"}},[i("el-col",{attrs:{span:11}},[i("el-input",{attrs:{disabled:"1"===e.$route.query.ReviewStatus,type:"textarea",rows:"5",placeholder:"Please specify in English",size:"small"},model:{value:e.researchForm.Publications,callback:function(t){e.$set(e.researchForm,"Publications",t)},expression:"researchForm.Publications"}})],1),e._v(" "),i("el-col",{attrs:{span:11}})],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Awards & Honors: "}},[i("el-row",{attrs:{type:"flex",justify:"space-between"}},[i("el-col",{attrs:{span:11}},[i("el-input",{attrs:{disabled:"1"===e.$route.query.ReviewStatus,type:"textarea",rows:"5",placeholder:"Please specify in English",size:"small"},model:{value:e.researchForm.AwardsHonors,callback:function(t){e.$set(e.researchForm,"AwardsHonors",t)},expression:"researchForm.AwardsHonors"}})],1),e._v(" "),i("el-col",{attrs:{span:11}},[i("el-input",{attrs:{disabled:"1"===e.$route.query.ReviewStatus,type:"textarea",rows:"5",placeholder:"请用中文注明",size:"small"},model:{value:e.researchForm.AwardsHonorsCN,callback:function(t){e.$set(e.researchForm,"AwardsHonorsCN",t)},expression:"researchForm.AwardsHonorsCN"}})],1)],1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{disabled:"1"===e.$route.query.ReviewStatus,type:"primary",loading:e.isDisabled},on:{click:e.handleSave}},[e._v("Save")])],1)],1)],1)},a=[],r=i("33ba"),o={name:"ResearchPublication",props:{id:{type:String,default:function(){return""}}},data:function(){return{researchForm:{Research:"",ResearchCN:"",Grants:"",GrantsCN:"",Publications:"",AwardsHonors:"",AwardsHonorsCN:""},loading:!1,isDisabled:!1}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=this,t=this.$route.query.Id;t&&Object(r["w"])(t).then((function(t){t.Result&&(e.researchForm.Research=t.Result.Research,e.researchForm.ResearchCN=t.Result.ResearchCN,e.researchForm.Grants=t.Result.Grants,e.researchForm.GrantsCN=t.Result.GrantsCN,e.researchForm.Publications=t.Result.Publications,e.researchForm.AwardsHonors=t.Result.AwardsHonors,e.researchForm.AwardsHonorsCN=t.Result.AwardsHonorsCN,e.researchForm.Id=t.Result.Id)}))},handleSave:function(){var e=this;this.loading=!0,this.isDisabled=!0,this.researchForm.DoctorId=this.$route.query.Id,Object(r["e"])(this.researchForm).then((function(t){e.loading=!1,e.isDisabled=!1,e.$message.success("Saved successfully"),e.researchForm.Id||(e.researchForm.Id=t.Result)})).catch((function(){e.loading=!1,e.isDisabled=!1}))}}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},7810:function(e,t,i){},"781d":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{ref:"visitPlanForm",attrs:{model:e.form,rules:e.rules,"label-width":"140px",size:"small"}},[i("el-form-item",{attrs:{label:e.$t("trials:visitPlan:table:visitName"),prop:"VisitName"}},[i("el-input",{model:{value:e.form.VisitName,callback:function(t){e.$set(e.form,"VisitName",t)},expression:"form.VisitName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:visitPlan:table:isBaseLine")}},[i("el-radio-group",{model:{value:e.form.IsBaseLine,callback:function(t){e.$set(e.form,"IsBaseLine",t)},expression:"form.IsBaseLine"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"IsBaseLine"+t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1),e._v(" "),e.form.IsBaseLine?e._e():i("el-form-item",{attrs:{label:e.$t("trials:visitPlan:table:viistNum"),prop:"VisitNum"}},[i("el-input-number",{staticStyle:{width:"100%"},attrs:{disabled:""!==e.form.Id,min:0,precision:0},model:{value:e.form.VisitNum,callback:function(t){e.$set(e.form,"VisitNum",t)},expression:"form.VisitNum"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:visitPlan:table:viistDay"),prop:"VisitDay"}},[i("el-input-number",{staticStyle:{width:"100%"},attrs:{min:0,precision:0},model:{value:e.form.VisitDay,callback:function(t){e.$set(e.form,"VisitDay",t)},expression:"form.VisitDay"}})],1),e._v(" "),e.isHaveFirstGiveMedicineDate?i("el-form-item",{attrs:{label:e.$t("trials:visitPlan:table:window"),rules:[{validator:e.validateWindow,trigger:["blur","change"]}],prop:"VisitWindowRight"}},[i("el-col",{attrs:{span:11}},[i("el-input",{staticClass:"input-with-select",staticStyle:{width:"100%"},attrs:{type:"number"},model:{value:e.form.VisitWindowLeft,callback:function(t){e.$set(e.form,"VisitWindowLeft",e._n(t))},expression:"form.VisitWindowLeft"}},[i("template",{slot:"append"},[e._v(e._s(e.$t("trials:visitPlan:table:day")))])],2)],1),e._v(" "),i("el-col",{staticClass:"line",staticStyle:{"text-align":"center"},attrs:{span:2}},[e._v("~")]),e._v(" "),i("el-col",{attrs:{span:11}},[i("el-input",{staticClass:"input-with-select",staticStyle:{width:"100%"},attrs:{type:"number"},model:{value:e.form.VisitWindowRight,callback:function(t){e.$set(e.form,"VisitWindowRight",e._n(t))},expression:"form.VisitWindowRight"}},[i("template",{slot:"append"},[e._v(e._s(e.$t("trials:visitPlan:table:day")))])],2)],1)],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:visitPlan:table:description"),prop:"Description"}},[i("el-input",{attrs:{type:"textarea",autosize:{minRows:2}},model:{value:e.form.Description,callback:function(t){e.$set(e.form,"Description",t)},expression:"form.Description"}})],1),e._v(" "),""!==e.form.Id?i("el-form-item",{attrs:{label:e.$t("trials:visitPlan:table:isDeleted")}},[i("el-radio-group",{model:{value:e.form.IsDeleted,callback:function(t){e.$set(e.form,"IsDeleted",t)},expression:"form.IsDeleted"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"IsDeleted"+t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1):e._e(),e._v(" "),i("el-form-item",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{type:"primary",disabled:e.isDisabled},on:{click:e.handleCancel}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",loading:e.isDisabled},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)},a=[],r=i("3e42"),o={props:{row:{type:Object,default:function(){return{}}},isHaveFirstGiveMedicineDate:{type:Boolean,default:!1}},data:function(){var e=this;return{form:{TrialId:"",Id:"",VisitName:"",VisitNum:0,VisitDay:0,Description:"",IsBaseLine:!1,VisitWindowLeft:0,VisitWindowRight:0,IsConfirmed:!1,IsDeleted:!1,IsHaveFirstConfirmed:!1},isDisabled:!1,rules:{VisitName:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"},{max:50,message:"".concat(this.$t("common:ruleMessage:maxLength")," 50")}],VisitNum:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}],VisitDay:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}],Description:[{max:50,message:"".concat(this.$t("common:ruleMessage:maxLength")," 50")}]},validateWindow:function(t,i,n){e.form.VisitWindowLeft>e.form.VisitWindowRight?n(new Error(e.$t("trials:adjustRecord:formRule:window"))):n()}}},mounted:function(){for(var e in this.form)this.row.hasOwnProperty(e)&&(this.form[e]=this.row[e])},methods:{handleSave:function(){var e=this;this.$refs.visitPlanForm.validate((function(t){t&&(e.isDisabled=!0,Object(r["F"])(e.form).then((function(t){e.isDisabled=!1,e.$emit("getList"),e.$emit("closeDialog"),e.form.Id?e.$message.success(e.$t("common:message:savedSuccessfully")):e.$message.success(e.$t("common:message:addedSuccessfully"))})).catch((function(){e.isDisabled=!1})))}))},handleCancel:function(){this.$emit("closeDialog")}}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},7838:function(e,t,i){},7840:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"hotkeys-wrapper"},[i("el-tabs",{attrs:{type:"border-card"},model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},e._l(e.$d.ReadingTool,(function(t){return i("el-tab-pane",{key:t.id,attrs:{label:t.label,name:t.id}},[e.activeTab==t.id?i("HotKeysList",{attrs:{"reading-tool":t.value}}):e._e()],1)})),1)],1)},a=[],r=i("a6a8"),o={name:"HotKeys",components:{HotKeysList:r["default"]},data:function(){return{activeTab:this.$d.ReadingTool[0].id}}},s=o,l=(i("842c"),i("2877")),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},7850:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.isRender?i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"measurementForm",staticClass:"measurement-form",attrs:{model:e.questionForm,size:"mini"}},[i("div",{staticClass:"base-dialog-body"},[i("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[e.questionName?i("h3",{staticStyle:{color:"#ddd",padding:"5px 0px",margin:"0"}},[e._v("\n\n "+e._s(e.lesionName)+"\n ")]):e._e(),e._v(" "),i("div",[i("i",{staticClass:"el-icon-circle-close",staticStyle:{"font-size":"25px",cursor:"pointer"},on:{click:e.handleClose}})])]),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:reading:title:lesionType"),prop:"LesionType",rules:[{required:!0,message:e.$t("common:ruleMessage:select"),trigger:["blur"]}]}},[i("el-select",{attrs:{filterable:"",disabled:!0},model:{value:e.questionForm.LesionType,callback:function(t){e.$set(e.questionForm,"LesionType",t)},expression:"questionForm.LesionType"}},e._l(e.$d.LesionType,(function(t){return i("el-option",{directives:[{name:"show",rawName:"v-show",value:!(e.isBaseLineTask&&2===t.value),expression:"!(isBaseLineTask && item.value === 2)"}],key:t.id,attrs:{value:t.value,label:t.label}})})),1)],1),e._v(" "),e._l(e.questions,(function(t){return i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:2!==t.ShowQuestion,expression:"qs.ShowQuestion!==2"}],key:t.Id,attrs:{label:""+t.QuestionName,prop:t.Id,rules:[{required:(0===t.IsRequired||1===t.IsRequired&&t.RelevanceId&&e.questionForm[t.RelevanceId]===t.RelevanceValue||6===t.QuestionMark&&!0===e.questionForm.IsCanEditPosition||e.questionForm.IsCanEditPosition&&10===t.QuestionMark)&&"group"!==t.Type&&"summary"!==t.Type,message:["radio","select","checkbox"].includes(t.Type)?e.$t("common:ruleMessage:select"):e.$t("common:ruleMessage:specify"),trigger:["blur","change"]},{trigger:["blur","change"],validator:e.limitInputValidator}]}},["input"===t.Type||"number"===t.Type?["input"===t.Type||"number"===t.Type?i("el-input",{attrs:{disabled:!e.isCurrentTask||e.readingTaskState>=2||0===t.QuestionMark||1===t.QuestionMark||2===t.QuestionMark||5===t.QuestionMark||6===t.QuestionMark&&("False"===e.isCurrentTaskAdd||"True"===e.isCurrentTaskAdd&&!e.questionForm.IsCanEditPosition||!!e.answers.SplitOrMergeLesionName)||8===t.QuestionMark&&("False"===e.isCurrentTaskAdd||!!e.answers.SplitOrMergeLesionName)&&2!==e.lesionType||9===t.QuestionMark},on:{input:function(i){return e.limitInput(i,t)},focus:function(i){e.focusQs=Object.assign({},t)},change:function(i){e.formItemChange(i,t)}},model:{value:e.questionForm[t.Id],callback:function(i){e.$set(e.questionForm,t.Id,i)},expression:"questionForm[qs.Id]"}},[0!==t.QuestionMark&&1!==t.QuestionMark||!t.Unit?e._e():i("template",{slot:"append"},[e._v("\n "+e._s(e.$fd("ValueUnit",parseInt(t.Unit)))+"\n ")])],2):e._e()]:e._e(),e._v(" "),"textarea"===t.Type?i("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},disabled:!e.isCurrentTask||e.readingTaskState>=2},on:{change:function(i){e.formItemChange(i,t)}},model:{value:e.questionForm[t.Id],callback:function(i){e.$set(e.questionForm,t.Id,i)},expression:"questionForm[qs.Id]"}}):e._e(),e._v(" "),"select"===t.Type?i("el-select",{attrs:{filterable:"",disabled:!e.isBaseLineTask&&11===t.QuestionMark||(e.isBaseLineTask||2===e.lesionType)&&7===t.QuestionMark||!e.isCurrentTask||e.readingTaskState>=2||0===t.QuestionMark||1===t.QuestionMark||2===t.QuestionMark||5===t.QuestionMark||6===t.QuestionMark&&("False"===e.isCurrentTaskAdd||"True"===e.isCurrentTaskAdd&&!e.questionForm.IsCanEditPosition||!!e.answers.SplitOrMergeLesionName)||8===t.QuestionMark&&("False"===e.isCurrentTaskAdd||!!e.answers.SplitOrMergeLesionName)&&2!==e.lesionType},on:{change:function(i){e.formItemChange(i,t)}},model:{value:e.questionForm[t.Id],callback:function(i){e.$set(e.questionForm,t.Id,i)},expression:"questionForm[qs.Id]"}},[1===t.TableQuestionType?e._l(e.organList,(function(e){return i("el-option",{key:e.Id,attrs:{label:e[t.DataTableColumn],value:e[t.DataTableColumn]}})})):t.DictionaryCode&&7===t.QuestionMark&&e.isBaseLineTask||t.DictionaryCode&&7===t.QuestionMark&&!e.isBaseLineTask||t.DictionaryCode&&7!==t.QuestionMark?e._l(e.$d[t.DictionaryCode],(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})})):e._l(t.TypeValue.split("|"),(function(e){return i("el-option",{key:e,attrs:{label:e,value:e}})}))],2):e._e(),e._v(" "),"radio"===t.Type?i("el-radio-group",{attrs:{disabled:!e.isCurrentTask||e.readingTaskState>=2},model:{value:e.questionForm[t.id],callback:function(i){e.$set(e.questionForm,t.id,i)},expression:"questionForm[qs.id]"}},e._l(t.options.split("|"),(function(t){return i("el-radio",{key:t,attrs:{label:t}},[e._v("\n "+e._s(t)+"\n ")])})),1):e._e()],2)}))],2),e._v(" "),e.isCurrentTask&&e.readingTaskState<2?i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[e.questionForm.MeasureData?i("el-button",{attrs:{size:"mini"},on:{click:e.handleDeleteMeasureData}},[e._v("\n "+e._s(e.$t("trials:reading:button:removeMark"))+"\n ")]):e._e(),e._v(" "),"False"!==e.isCurrentTaskAdd?i("el-button",{attrs:{size:"mini"},on:{click:e.handleDelete}},[e._v("\n "+e._s(e.$t("common:button:delete"))+"\n ")]):e._e(),e._v(" "),i("el-button",{attrs:{size:"mini"},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1):e._e()]):e._e()},a=[],r=(i("3b2b"),i("34ef"),i("6b54"),i("7514"),i("96cf"),i("3b8d")),o=(i("f576"),i("db72")),s=(i("20d6"),i("ac6a"),i("28a5"),i("c5f6"),i("3e42")),l=i("0a05"),c=i("9b92"),u=i("4360"),d={name:"MeasurementForm",props:{questions:{type:Array,default:function(){return[]}},answers:{type:Object,default:function(){return{}}},lesionType:{type:Number,required:!0},visitTaskId:{type:String,required:!0},parentQsId:{type:String,required:!0},isCurrentTask:{type:Boolean,required:!0},readingTaskState:{type:Number,required:!0},isBaseLineTask:{type:Boolean,required:!0},orderMark:{type:String,default:""},questionName:{type:String,required:!0},rowIndex:{type:String,required:!0},tableQuestions:{type:Array,default:function(){return[]}}},data:function(){return{questionForm:{},loading:!1,trialId:"",organList:[],lesionNameId:"",lesionOrganId:"",lesionLocId:"",originalQuestionForm:{},isRender:!1,toolType:"",lesionName:"",isCurrentTaskAdd:"False",splitOrMergeLesionName:"",pictureBaseStr:"",digitPlaces:0,focusQs:null}},mounted:function(){this.trialId=this.$route.query.trialId,this.initForm()},methods:{limitInputValidator:function(e,t,i){this.focusQs&&!this.isBaseLineTask&&11===this.focusQs.QuestionMark&&parseInt(t)>parseInt(this.questionForm.BaseLineLesionNumber)?i(new Error(this.$t("trials:reading:pcwg:msg6")+this.questionForm.BaseLineLesionNumber)):i()},limitInput:function(e,t){e.indexOf(".")>-1&&e.split(".")[1].length>=this.digitPlaces&&this.$set(this.questionForm,t.Id,parseFloat(e).toFixed(this.digitPlaces))},initForm:function(){var e=this;console.log(this.lesionType),this.questions.forEach((function(t){var i=e.answers[t.Id];console.log(e.answers[t.Id]),t.DictionaryCode&&(i=e.answers[t.Id]?Number(e.answers[t.Id]):""),e.isBaseLineTask&&7===t.QuestionMark&&0===e.lesionType&&(i=0),e.isBaseLineTask&&7===t.QuestionMark&&1===e.lesionType&&(i=0),e.$set(e.questionForm,t.Id,i)})),this.$set(this.questionForm,"MeasureData",this.answers.MeasureData?JSON.parse(this.answers.MeasureData):""),this.$set(this.questionForm,"RowIndex",this.answers.RowIndex?this.answers.RowIndex:""),this.$set(this.questionForm,"RowId",this.answers.RowId?this.answers.RowId:""),this.$set(this.questionForm,"OrganInfoId",this.answers.OrganInfoId?this.answers.OrganInfoId:"");var t=this.getQuestionVal(7),i=this.getQuestionVal(11),n=this.questions.findIndex((function(e){return 11===e.QuestionMark}));this.questionForm.RowId?n>-1?this.$set(this.questionForm,"saveTypeEnum",isNaN(parseInt(i))?1:2):this.$set(this.questionForm,"saveTypeEnum",isNaN(parseInt(t))?1:2):this.$set(this.questionForm,"saveTypeEnum",0),this.$set(this.questionForm,"IsCanEditPosition","True"===this.answers.IsCanEditPosition),this.$set(this.questionForm,"BaseLineLesionNumber",this.answers.BaseLineLesionNumber),this.toolType=this.questionForm.MeasureData?this.questionForm.MeasureData.type:"",this.questionForm.LesionType||this.$set(this.questionForm,"LesionType",this.lesionType),this.lesionNameId=this.getQuestionId(4),this.lesionOrganId=this.getQuestionId(5),this.lesionLocId=this.getQuestionId(6),console.log(this.lesionNameId),console.log(this.lesionOrganId),console.log(this.lesionLocId),this.originalQuestionForm=Object(o["a"])({},this.questionForm),0===this.lesionType&&this.questionForm.MeasureData,this.questionForm.MeasureData?(console.log("this.questionForm.MeasureData",this.questionForm.MeasureData),"Bidirectional"===this.questionForm.MeasureData.type?(this.organList=[],this.getOrganInfoList(1)):"Length"===this.questionForm.MeasureData.type?(this.organList=[],this.getOrganInfoList(0)):(this.organList=[],this.getOrganInfoList())):(this.organList=[],this.getOrganInfoList()),this.lesionName=this.getLesionInfo(this.orderMark,this.rowIndex),this.isCurrentTaskAdd=this.answers.IsCurrentTaskAdd?this.answers.IsCurrentTaskAdd:"True",this.isRender=!0},getLesionName:function(e,t){var i="",n=t.split("."),a=parseInt(n[0]),r=parseInt(n[1]);return r>0?(r=String.fromCharCode(parseInt(n[1])-1+65+32),i="".concat(e).concat(String(a).padStart(2,"0")).concat(r)):i="".concat(e).concat(String(a).padStart(2,"0")),i},getLesionInfo:function(e,t){var i=[],n="",a=t.split("."),r=parseInt(a[0]),o=parseInt(a[1]);return o>0?(o=String.fromCharCode(parseInt(a[1])-1+65+32),n="".concat(e).concat(String(r).padStart(2,"0")).concat(o),i.push(n)):(n="".concat(e).concat(String(r).padStart(2,"0")),i.push(n)),this.answers.SplitOrMergeLesionName&&0===parseInt(this.answers.SplitOrMergeType)&&i.push("(Split from ".concat(this.answers.SplitOrMergeLesionName,")")),i.join(" ")},getQuestionId:function(e){var t=this.questions.findIndex((function(t){return t.QuestionMark===e}));return t>-1?this.questions[t].Id:""},handleLocation:function(){c["a"].$emit("imageLocation",this.questionForm)},getOrganInfoList:function(e){var t=this;return new Promise(function(){var i=Object(r["a"])(regeneratorRuntime.mark((function i(n){var a,r;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(sessionStorage.getItem("organList")){i.next=3;break}return i.next=3,u["a"].dispatch("reading/getOrganInfo",t.visitTaskId);case 3:a=JSON.parse(sessionStorage.getItem("organList"))||[],r=a.findIndex((function(e){return e.LesionType===t.lesionType})),r>-1&&(a=a[r].OrganList,isNaN(parseInt(e))?t.organList=a:t.organList=a.filter((function(t){return t.IsLymphNodes===parseInt(e)}))),n();case 7:case"end":return i.stop()}}),i)})));return function(e){return i.apply(this,arguments)}}())},deleteLesionInfo:function(){var e=this;return new Promise((function(t,i){var n={visitTaskId:e.visitTaskId,questionId:e.parentQsId,rowIndex:e.questionForm.RowIndex};Object(s["tb"])(n).then(function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(i){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:i.IsSuccess&&c["a"].$emit("getReportInfo",!0),t();case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(){i()}))}))},formItemChange:function(e,t){var i=this;if(11!==t.QuestionMark){if(console.log("question",t),8===t.QuestionMark&&t.RelationQuestions.length>0){var n=this.organList.findIndex((function(i){return i[t.DataTableColumn]===e}));if(console.log("index",n),n>-1){var a=this.organList[n];t.RelationQuestions.map((function(e){console.log("qs",e);var t=a[e.DataTableColumn];i.$set(i.questionForm,e.Id,t)})),this.$set(this.questionForm,"OrganInfoId",a.OrganInfoId),this.$set(this.questionForm,"IsCanEditPosition",a["IsCanEditPosition"])}else t.RelationQuestions.map((function(e){i.$set(i.questionForm,e.Id,"")}))}t.Id!==this.lesionOrganId&&t.Id!==this.lesionLocId||this.$set(this.questionForm,this.lesionNameId,"".concat(this.questionForm[this.lesionOrganId]," ").concat(this.questionForm[this.lesionLocId])),this.questionForm.RowId?this.$set(this.questionForm,"saveTypeEnum",1):this.$set(this.questionForm,"saveTypeEnum",0);var r=this.getQuestionVal(2);r=r?parseInt(r):null;var o=this.getQuestionVal(8),s=this.getQuestionVal(6),l=Number(this.getQuestionVal(0)),c=Number(this.getQuestionVal(1)),u=Number(this.getQuestionVal(7)),d=Number(this.getQuestionVal(11));this.$emit("resetQuestions",{isLymphLesion:r,lesionPart:o,lesionOrgan:s,lesionShort:c,lesionState:u,saveTypeEnum:this.questionForm.saveTypeEnum,lesionLength:l,lesionNum:d,rowIndex:this.rowIndex,questionId:this.parentQsId,anwsers:this.questionForm})}},setMeasureData:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Promise((function(n){if(e){if(e.pictureBaseStr&&(t.pictureBaseStr=e.pictureBaseStr,e.pictureBaseStr=""),"Length"===e.type||"Bidirectional"===e.type){var a=t.questions.find((function(e){return 0===e.QuestionMark})),r="";"Length"===e.type?r=e.data.length?e.data.length.toFixed(2):"":"Bidirectional"===e.type&&(r=e.data.longestDiameter),t.$set(t.questionForm,a.Id,r);var o=t.questions.find((function(e){return 1===e.QuestionMark})),s="";"Bidirectional"===e.type&&(s=e.data.shortestDiameter),t.$set(t.questionForm,o.Id,s)}"Bidirectional"===e.type?(t.organList=[],t.getOrganInfoList(1)):"Length"===e.type?(t.organList=[],t.getOrganInfoList(0)):(t.organList=[],t.getOrganInfoList());var l={};!1===e.isDicomReading?(t.$set(t.questionForm,"IsDicomReading",!1),l={Id:"",IsDicomReading:!1,StudyId:e.studyId,InstanceId:e.instanceId,SeriesId:e.seriesId,MeasureData:e,QuestionId:t.parentQsId,RowIndex:t.questionForm.RowIndex,RowId:t.questionForm.RowId,VisitTaskId:t.visitTaskId}):(t.$set(t.questionForm,"IsDicomReading",!0),e.data.remark=t.getLesionName(t.orderMark,t.questionForm.RowIndex),l={Id:"",IsDicomReading:!0,StudyId:e.studyId,InstanceId:e.instanceId,SeriesId:e.seriesId,MeasureData:e,QuestionId:t.parentQsId,RowIndex:t.questionForm.RowIndex,RowId:t.questionForm.RowId,VisitTaskId:t.visitTaskId,OrderMarkName:e.data.remark,frame:isNaN(parseInt(e.frame))?0:e.frame}),u["a"].dispatch("reading/addMeasuredData",{visitTaskId:t.visitTaskId,data:l}),c["a"].$emit("getMeasureData",(function(e){t.pictureBaseStr=e}))}i||(t.questionForm.RowId?t.$set(t.questionForm,"saveTypeEnum",1):t.$set(t.questionForm,"saveTypeEnum",0)),t.$set(t.questionForm,"MeasureData",e);var d=t.getQuestionVal(2);d=d?parseInt(d):null;var f=t.getQuestionVal(8),h=t.getQuestionVal(6),p=Number(t.getQuestionVal(0)),m=Number(t.getQuestionVal(1)),g=Number(t.getQuestionVal(7)),v=Number(t.getQuestionVal(11));t.$emit("resetQuestions",{isLymphLesion:d,lesionPart:f,lesionOrgan:h,lesionShort:m,lesionLength:p,lesionState:g,lesionNum:v,saveTypeEnum:t.questionForm.saveTypeEnum,rowIndex:t.rowIndex,questionId:t.parentQsId,anwsers:t.questionForm}),t.toolType=e.type,n()}))},returnFloat:function(e){if(!e){var t=Math.round(100*parseFloat(e))/100,i=t.toString().split(".");return 1===i.length?(t=t.toString()+".00",t):i.length>1?(i[1].length<2&&(t=t.toString()+"0"),t):void 0}},getQuestionVal:function(e){var t=this.questions.findIndex((function(t){return t.QuestionMark===e}));if(t>-1){var i=this.questions[t].Id;return this.questionForm[i]}return""},uploadScreenshots:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t,i){var n,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,i=this.convertBase64ToBlob(i),n=new FormData,n.append("file",i),e.next=6,Object(l["s"])(n,this.$route.query.subjectId);case 6:return a=e.sent,a.url=a.Result.Path,e.abrupt("return",{isSuccess:!0,result:a});case 11:return e.prev=11,e.t0=e["catch"](0),console.log(e.t0),e.abrupt("return",{isSuccess:!1,result:e.t0});case 15:case"end":return e.stop()}}),e,this,[[0,11]])})));function t(t,i){return e.apply(this,arguments)}return t}(),convertBase64ToBlob:function(e){var t=e.split(","),i="",n="";t.length>1&&(n=t[1],i=t[0].substring(t[0].indexOf(":")+1,t[0].indexOf(";")));for(var a=atob(n),r=new ArrayBuffer(a.length),o=new Uint8Array(r),s=0;s<a.length;s++)o[s]=a.charCodeAt(s);return new Blob([r],{type:i})},handleSave:function(){var e=this;this.$refs.measurementForm.validate(function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(i){var n,a,l,u,d;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(i){t.next=2;break}return t.abrupt("return");case 2:if(n=e.getQuestionVal(7),a=e.questionForm.MeasureData,a&&""!==a||1!==n&&2!==n&&3!==n){t.next=7;break}return e.$message.error(e.$t("trials:reading:pcwg:msg7")),t.abrupt("return");case 7:l=e.$loading({fullscreen:!0}),u=Number(e.getQuestionVal(0)),d=Number(e.getQuestionVal(1)),c["a"].$emit("getScreenshots",function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(i){var n,f,h,p,m,g,v;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n="",!i){t.next=6;break}return t.next=4,e.uploadScreenshots("".concat((new Date).getTime()),i);case 4:f=t.sent,n=f.isSuccess?f.result.url:"";case 6:for(g in h=[],p=new RegExp(/^[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}$/),m=function(t){p.test(t)&&-1===h.findIndex((function(e){return e.tableQuestionId===t}))&&h.push({tableQuestionId:t,answer:e.questionForm[t]})},e.questionForm)m(g);v={questionId:e.parentQsId,rowIndex:e.answers.RowIndex,TaskNum:e.answers.TaskNum,visitTaskId:e.visitTaskId,trialId:e.trialId,measureData:a?JSON.stringify(a):"",answerList:h,isCanEditPosition:e.questionForm.IsCanEditPosition,studyId:a?e.questionForm.MeasureData.studyId:"",seriesId:a?e.questionForm.MeasureData.seriesId:"",instanceId:a?e.questionForm.MeasureData.instanceId:"",blindName:e.answers.BlindName,rowId:e.questionForm.RowId,numberOfFrames:a&&!isNaN(parseInt(e.questionForm.MeasureData.frame))?parseInt(e.questionForm.MeasureData.frame):0,picturePath:n,organInfoId:e.questionForm.OrganInfoId},Object(s["ef"])(v).then(function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(i){var n,a,r,s,f;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:try{e.$message.success(e.$t("common:message:savedSuccessfully")),e.$set(e.questionForm,"saveTypeEnum",2),e.originalQuestionForm=Object(o["a"])({},e.questionForm),l.close(),n=e.getQuestionVal(2),n=n?parseInt(n):null,a=e.getQuestionVal(6),e.$set(e.questionForm,"RowId",i.Result.RowId),r=e.getQuestionVal(8),s=Number(e.getQuestionVal(7)),f=Number(e.getQuestionVal(11)),e.$emit("resetQuestions",{isLymphLesion:n,lesionPart:r,lesionOrgan:a,lesionShort:d,saveTypeEnum:e.questionForm.saveTypeEnum,lesionLength:u,lesionState:s,lesionNum:f,rowIndex:e.rowIndex,questionId:e.parentQsId,anwsers:e.questionForm}),c["a"].$emit("getMeasureData"),e.$emit("close"),console.log("close"),c["a"].$emit("getReportInfo",!0)}catch(h){console.log(h)}case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(){l.close()}));case 12:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 11:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())},handleDeleteMeasureData:function(){var e=this;this.$confirm(this.$t("trials:reading:warnning:msg47"),{type:"warning",distinguishCancelAndClose:!0}).then(Object(r["a"])(regeneratorRuntime.mark((function t(){var i,n,a,r,o,s,l,d,f,h;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return i=e.getQuestionId(0),e.$set(e.questionForm,i,""),n=e.getQuestionId(1),e.$set(e.questionForm,n,""),e.questionForm.RowId?e.$set(e.questionForm,"saveTypeEnum",1):e.$set(e.questionForm,"saveTypeEnum",0),a=e.getLesionName(e.orderMark,e.questionForm.RowIndex),t.next=8,u["a"].dispatch("reading/removeMeasuredData",{visitTaskId:e.visitTaskId,measureData:e.questionForm.MeasureData,questionId:e.parentQsId,rowIndex:e.questionForm.RowIndex,orderMarkName:a});case 8:c["a"].$emit("getMeasureData"),r=e.getQuestionVal(2),r=r?parseInt(r):null,o=e.getQuestionVal(8),s=e.getQuestionVal(6),l=Number(e.getQuestionVal(0)),d=Number(e.getQuestionVal(1)),f=Number(e.getQuestionVal(7)),h=Number(e.getQuestionVal(11)),e.$set(e.questionForm,"MeasureData",""),e.$emit("resetQuestions",{isLymphLesion:r,lesionPart:o,lesionOrgan:s,lesionShort:d,lesionState:f,lesionNum:h,saveTypeEnum:e.questionForm.saveTypeEnum,lesionLength:l,rowIndex:e.rowIndex,questionId:e.parentQsId,anwsers:e.questionForm}),e.$set(e.questionForm,"MeasureData","");case 20:case"end":return t.stop()}}),t)})))).catch((function(){}))},handleDelete:function(){var e=this;this.$confirm(this.$t("trials:reading:warnning:msg48"),{type:"warning",distinguishCancelAndClose:!0}).then(Object(r["a"])(regeneratorRuntime.mark((function t(){var i,n,a,o;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.questionForm.RowId){t.next=6;break}i=e.$loading({fullscreen:!0}),n={visitTaskId:e.visitTaskId,questionId:e.parentQsId,rowId:e.questionForm.RowId},Object(s["tb"])(n).then(function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(n){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(i.close(),!n.IsSuccess){t.next=11;break}if(!e.questionForm.MeasureData){t.next=6;break}return a=e.getLesionName(e.orderMark,e.questionForm.RowIndex),t.next=6,u["a"].dispatch("reading/removeMeasuredData",{visitTaskId:e.visitTaskId,measureData:e.questionForm.MeasureData,questionId:e.parentQsId,rowIndex:e.questionForm.RowIndex,orderMarkName:a});case 6:c["a"].$emit("getMeasureData"),e.$emit("close",{lesionType:e.lesionType,rowIndex:e.rowIndex,visitTaskId:e.visitTaskId}),c["a"].$emit("getReportInfo",!0),e.$message.success(e.$t("common:message:deletedSuccessfully")),i.close();case 11:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(){i.close()})),t.next=14;break;case 6:if(a=e.$loading({fullscreen:!0}),!e.questionForm.MeasureData){t.next=11;break}return o=e.getLesionName(e.orderMark,e.questionForm.RowIndex),t.next=11,u["a"].dispatch("reading/removeMeasuredData",{visitTaskId:e.visitTaskId,measureData:e.questionForm.MeasureData,questionId:e.parentQsId,rowIndex:e.questionForm.RowIndex,orderMarkName:o});case 11:c["a"].$emit("getMeasureData"),e.$emit("close",{lesionType:e.lesionType,rowIndex:e.rowIndex,visitTaskId:e.visitTaskId}),a.close();case 14:case"end":return t.stop()}}),t)}))))},handleClose:function(){var e=this;this.questionForm.RowId?!1===this.questionForm.isSave?this.$confirm(this.$t("trials:reading:pcwg:msg8"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){e.$emit("close")})).catch((function(){})):this.$emit("close"):this.$confirm(this.$t("trials:reading:warnning:msg49"),{type:"warning",distinguishCancelAndClose:!0}).then(Object(r["a"])(regeneratorRuntime.mark((function t(){var i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.questionForm.MeasureData){t.next=4;break}return i=e.getLesionName(e.orderMark,e.questionForm.RowIndex),t.next=4,u["a"].dispatch("reading/removeMeasuredData",{visitTaskId:e.visitTaskId,measureData:e.questionForm.MeasureData,questionId:e.parentQsId,rowIndex:e.questionForm.RowIndex,orderMarkName:i});case 4:c["a"].$emit("getMeasureData"),e.$emit("close",{lesionType:e.lesionType,rowIndex:e.rowIndex,visitTaskId:e.visitTaskId});case 6:case"end":return t.stop()}}),t)})))).catch((function(){}))}}},f=d,h=(i("4b8a"),i("2877")),p=Object(h["a"])(f,n,a,!1,null,"9c73246c",null);t["default"]=p.exports},7877:function(e,t,i){"use strict";i("2b40")},7878:function(e,t,i){"use strict";i.r(t),i.d(t,"formatUTCTime",(function(){return n})),i.d(t,"fmtDate",(function(){return a})),i.d(t,"parseISOLocal",(function(){return r})),i.d(t,"FormatTime",(function(){return o})),i.d(t,"fn",(function(){return s})),i.d(t,"getLast3Month",(function(){return l})),i.d(t,"num2Money",(function(){return c})),i.d(t,"fomatFloat",(function(){return u}));i("6b54"),i("28a5"),i("3b2b"),i("a481");function n(e){if("0001-01-01T00:00:00Z"!==e){var t=new Date(e);return o(t,"yyyy-MM-dd")}return""}function a(e){var t=new Date(e),i=1900+t.getYear(),n="0"+(t.getMonth()+1),a="0"+t.getDate();return i+"-"+n.substring(n.length-2,n.length)+"-"+a.substring(a.length-2,a.length)}function r(e){var t=e.split(/\D/);return new Date(t[0],t[1]-1,t[2])}function o(e,t){var i={"y+":e.getFullYear(),"M+":e.getMonth()+1,"d+":e.getDate(),"h+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds(),"q+":Math.floor((e.getMonth()+3)/3),"S+":e.getMilliseconds()};for(var n in i)if(new RegExp("("+n+")").test(t))if("y+"===n)t=t.replace(RegExp.$1,(""+i[n]).substr(4-RegExp.$1.length));else if("S+"===n){var a=RegExp.$1.length;a=1===a?3:a,t=t.replace(RegExp.$1,("00"+i[n]).substr((""+i[n]).length-1,a))}else t=t.replace(RegExp.$1,1===RegExp.$1.length?i[n]:("00"+i[n]).substr((""+i[n]).length));return t}function s(e){var t=new Date(e),i=e.toString().length;if(i<13){var n=13-i;n=Math.pow(10,n),t=new Date(e*n)}var a=t.getFullYear()+"-",r=t.getMonth()+1;r=(r<10?"0"+r:r)+"-";var o=t.getDate();o=(o<10?"0"+o:o)+" ";var s=t.getHours();s=(s<10?"0"+s:s)+":";var l=t.getMinutes();l=(l<10?"0"+l:l)+":";var c=t.getSeconds();return c=c<10?"0"+c:c,a+r+o+s+l+c}function l(){var e=new Date,t=e.getFullYear(),i=e.getMonth()+1,n=e.getDate(),a={};return parseInt(i)<10&&(i="0"+i),parseInt(n)<10&&(n="0"+n),a.now=t+"-"+i,1===parseInt(i)?(a.last=parseInt(t)-1+"-10",a):2===parseInt(i)?(a.last=parseInt(t)-1+"-11",a):3===parseInt(i)?(a.last=parseInt(t)-1+"-12",a):(a.last=t+"-0"+(parseInt(i)-3),a)}function c(e,t,i){if(null==e)return"0.0";e=e.toString().replace(/\$|\,/g,""),isNaN(e)&&(e="0");var n=e===(e=Math.abs(e));e=Math.floor(e*Math.pow(10,t)+.50000000001);var a=e%Math.pow(10,t);e=Math.floor(e/Math.pow(10,t)).toString(),a=a.toString();while(a.length<t)a="0"+a;if(i)for(var r=0;r<Math.floor((e.length-(1+r))/3);r++)e=e.substring(0,e.length-(4*r+3))+","+e.substring(e.length-(4*r+3));return t>0?(n?"":"-")+e+"."+a:(n?"":"-")+e}function u(e,t){return Math.round(e*Math.pow(10,t))/Math.pow(10,t)}Date.prototype.format=function(e){var t={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};for(var i in/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length))),t)new RegExp("("+i+")").test(e)&&(e=e.replace(RegExp.$1,1===RegExp.$1.length?t[i]:("00"+t[i]).substr((""+t[i]).length)));return e}},7887:function(e,t,i){var n=i("6d8b"),a=i("84ce");function r(e,t,i){a.call(this,e,t,i),this.type="value",this.angle=0,this.name="",this.model}n.inherits(r,a);var o=r;e.exports=o},7891:function(e,t,i){var n=i("6d8b");function a(e){var t=e.polar;if(t){n.isArray(t)||(t=[t]);var i=[];n.each(t,(function(t,a){t.indicator?(t.type&&!t.shape&&(t.shape=t.type),e.radar=e.radar||[],n.isArray(e.radar)||(e.radar=[e.radar]),e.radar.push(t)):i.push(t)})),e.polar=i}n.each(e.series,(function(e){e&&"radar"===e.type&&e.polarIndex&&(e.radarIndex=e.polarIndex)}))}e.exports=a},"78f0":function(e,t,i){var n=i("3eba");i("d9f1");var a=n.extendComponentModel({type:"polar",dependencies:["polarAxis","angleAxis"],coordinateSystem:null,findAxisModel:function(e){var t,i=this.ecModel;return i.eachComponent(e,(function(e){e.getCoordSysModel()===this&&(t=e)}),this),t},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}});e.exports=a},"78f5":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{position:"relative"}},[i("el-form",{staticStyle:{position:"relative"},attrs:{size:"small",inline:!0,"label-width":"130px"}},[i("el-divider",{attrs:{"content-position":"left"}},[e._v("阅片规则")]),e._v(" "),i("el-form-item",{attrs:{label:"是否必须全局阅片"}},[e._v("\n "+e._s(e.IsMustGlobalReading?"是":"否")+"\n ")]),e._v(" "),Object.keys(e.data).length>0&&!e.data.IsCompleteConfig&&!e.data.IsBeUsed?i("el-button",{staticStyle:{position:"absolute",right:"10px",top:"15px"},attrs:{size:"mini",type:"primary"},on:{click:function(t){return e.handleAdd(1)}}},[e._v("\n 配置\n ")]):e._e()],1),e._v(" "),i("el-form",{staticStyle:{position:"relative"},attrs:{size:"small",inline:!0,"label-width":"110px"}},[i("el-divider",{attrs:{"content-position":"left"}},[e._v("阅片问题")]),e._v(" "),Object.keys(e.data).length>0&&!e.data.IsCompleteConfig&&!e.data.IsBeUsed?i("el-button",{staticStyle:{position:"absolute",right:"10px",top:"15px"},attrs:{size:"mini",type:"primary"},on:{click:function(t){return e.handleAdd(2)}}},[e._v("\n 配置\n ")]):e._e(),e._v(" "),i("el-form-item",{staticStyle:{width:"100%"},attrs:{label:"评估更新类型"}}),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.list,stripe:""}},[i("el-table-column",{attrs:{prop:"",label:"序号",width:"50"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.$index+1)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ValueCN",label:"中文值","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Value",label:"英文值","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsBaseLineUse",label:"是否基线评估","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsBaseLineUse?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsBaseLineUse)))]):i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsBaseLineUse)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsFollowVisitUse",label:"是否随访评估","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsFollowVisitUse?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsFollowVisitUse)))]):i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsFollowVisitUse)))])]}}])})],1)],1),e._v(" "),i("base-model",{attrs:{config:e.config}},[i("template",{slot:"dialog-body"},[i("el-form",{attrs:{size:"small",inline:!0,"label-width":"130px"}},[1===e.config.configType?i("el-form-item",{attrs:{label:"是否必须全局阅片"}},[i("el-radio-group",{model:{value:e.form.IsMustGlobalReading,callback:function(t){e.$set(e.form,"IsMustGlobalReading",t)},expression:"form.IsMustGlobalReading"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"form.IsMustGlobalReading"+t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1):e._e(),e._v(" "),2===e.config.configType?i("el-form-item",{staticStyle:{width:"100%"},attrs:{label:"评估更新类型"}}):e._e(),e._v(" "),2===e.config.configType?i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",attrs:{data:e.$d.GlobalAssessType,stripe:""},on:{"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),i("el-table-column",{attrs:{prop:"raw.ValueCN",label:"中文值","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"raw.Value",label:"英文值","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsBaseLineUse",label:"是否基线评估","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-switch",{on:{change:function(){return e.$forceUpdate()}},model:{value:t.row.IsBaseLineUse,callback:function(i){e.$set(t.row,"IsBaseLineUse",i)},expression:"scope.row.IsBaseLineUse"}}),e._v(" "),i("span",[e._v(e._s(e.$fd("YesOrNo",t.row.IsBaseLineUse)))])]}}],null,!1,3467349157)}),e._v(" "),i("el-table-column",{attrs:{prop:"IsFollowVisitUse",label:"是否随访评估","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-switch",{on:{change:function(){return e.$forceUpdate()}},model:{value:t.row.IsFollowVisitUse,callback:function(i){e.$set(t.row,"IsFollowVisitUse",i)},expression:"scope.row.IsFollowVisitUse"}}),e._v(" "),i("span",[e._v(e._s(e.$fd("YesOrNo",t.row.IsFollowVisitUse)))])]}}],null,!1,1494971781)})],1):e._e()],1)],1),e._v(" "),i("template",{slot:"dialog-footer"},[i("el-button",{attrs:{disabled:e.loading,size:"small",type:"primary"},on:{click:function(t){e.config.visible=!1}}},[e._v("取消")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.loading},on:{click:e.handleSave}},[e._v("保存")])],1)],2)],1)},a=[],r=(i("7514"),i("ac6a"),i("7eeb")),o=i("e56e"),s={props:{data:{type:String,default:function(){return{}}},criterionId:{type:String,required:!0}},components:{BaseModel:r["default"]},data:function(){return{list:[],total:0,loading:!1,rowData:{},activeName:"0",addOrEdit:{visible:!1,title:""},preview:{visible:!1,title:"eCRF预览"},config:{visible:!1,title:"评估更新类型",appendToBody:!0,width:"600px",configType:0},selectedList:[],IsMustGlobalReading:!1,form:{IsMustGlobalReading:!1}}},beforecreate:function(){this.$d.GlobalAssessType.forEach((function(e){e.IsBaseLineUse=!1,e.IsFollowVisitUse=!1}))},mounted:function(){this.getList(),this.getSystemGlobalInfo()},methods:{getSystemGlobalInfo:function(){Object(o["Cb"])({SystemCriterionId:this.criterionId}).then((function(e){}))},FollowVisitUseChange:function(e,t){var i=this;this.loading=!0,Object(o["Kb"])({Id:t.Id,IsFollowVisitUse:e}).then((function(e){i.$message.success("保存成功"),i.loading=!1})).catch((function(){i.loading=!1}))},BaseLineUseChange:function(e,t){var i=this;this.loading=!0,Object(o["Jb"])({Id:t.Id,isBaseLineUse:e}).then((function(e){i.$message.success("保存成功"),i.loading=!1})).catch((function(){i.loading=!1}))},toggleSelection:function(e){var t=this;console.log(this.$refs.multipleTable),e?e.forEach((function(e){t.$refs.multipleTable.toggleRowSelection(e)})):this.$refs.multipleTable.clearSelection()},handleSelectionChange:function(e){this.selectedList=e},getList:function(){var e=this;this.loading=!0,Object(o["Cb"])({SystemCriterionId:this.criterionId}).then((function(t){e.loading=!1,e.list=t.Result.DictionaryList,e.IsMustGlobalReading=t.Result.IsMustGlobalReading,console.log(e.$d.GlobalAssessType)}))},handleAdd:function(e){var t=this;this.config.configType=e,this.form.IsMustGlobalReading=this.IsMustGlobalReading,1===e?(this.config.title="是否必须全局阅片",this.config.visible=!0):(this.config.title="评估更新类型",this.config.visible=!0,this.$nextTick((function(){var e=t.$d.GlobalAssessType.filter((function(e){return!!t.list.find((function(t){return e.id===t.DictionaryId&&(e.IsBaseLineUse=t.IsBaseLineUse,e.IsFollowVisitUse=t.IsFollowVisitUse),t.DictionaryId===e.id}))}));t.toggleSelection(e)})))},handleSave:function(){var e=this;this.loading=!0;this.$d.GlobalAssessType.filter((function(t){return!!e.list.find((function(e){return e.DictionaryId===t.id}))}));var t={SystemCriterionId:this.criterionId,IsMustGlobalReading:this.form.IsMustGlobalReading,DictionaryList:1===this.config.configType?this.list:this.selectedList.map((function(e){return{DictionaryId:e.id,IsBaseLineUse:e.IsBaseLineUse,IsFollowVisitUse:e.IsFollowVisitUse}}))};Object(o["Lb"])(t).then((function(t){e.loading=!1,e.$message.success("保存成功"),e.config.visible=!1,e.selectedList=[],e.getList()})).catch((function(){}))},handleDelete:function(){}}},l=s,c=(i("d21f"),i("2877")),u=Object(c["a"])(l,n,a,!1,null,"2bbd7ff7",null);t["default"]=u.exports},7919:function(e,t,i){"use strict";i("f462")},79190:function(e,t,i){var n=i("f934"),a=n.getLayoutRect,r=n.box,o=n.positionElement,s=i("eda2"),l=i("2306");function c(e,t,i){var n=t.getBoxLayoutParams(),s=t.get("padding"),l={width:i.getWidth(),height:i.getHeight()},c=a(n,l,s);r(t.get("orient"),e,t.get("itemGap"),c.width,c.height),o(e,n,l,s)}function u(e,t){var i=s.normalizeCssArray(t.get("padding")),n=t.getItemStyle(["color","opacity"]);n.fill=t.get("backgroundColor");e=new l.Rect({shape:{x:e.x-i[3],y:e.y-i[0],width:e.width+i[1]+i[3],height:e.height+i[0]+i[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1});return e}t.layout=c,t.makeBackground=u},"792e":function(e,t,i){i("1ccf"),i("14d3")},7951:function(e,t,i){"use strict";i("dbe0")},"79bb":function(e,t,i){"use strict";i("ef4a")},"79ed":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.questions.length>0?i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"globalReviewForm",attrs:{model:e.form,size:"small","label-width":"150"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:e.$t("trials:globalReview:table:isAgreeEvaluationRes")}},[i("el-radio-group",{on:{change:function(t){return e.handleAgreeOrNotChange(e.agreeOrNot.GlobalAnswerType)}},model:{value:e.form[e.agreeOrNot.GlobalAnswerType],callback:function(t){e.$set(e.form,e.agreeOrNot.GlobalAnswerType,t)},expression:"form[agreeOrNot.GlobalAnswerType]"}},[i("el-radio",{attrs:{label:"1"}},[e._v(e._s(e.$fd("ReadingYesOrNo",1)))]),e._v(" "),i("el-radio",{attrs:{label:"0"}},[e._v(e._s(e.$fd("ReadingYesOrNo",0)))])],1)],1),e._v(" "),0===parseInt(e.form[e.agreeOrNot.GlobalAnswerType])?e._l(e.questions,(function(t){return i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.isBaseline&&1===t.GlobalReadingShowType||!e.isBaseline&&2===t.GlobalReadingShowType||0===t.GlobalReadingShowType,expression:"((isBaseline && qs.GlobalReadingShowType === 1) || (!isBaseline && qs.GlobalReadingShowType === 2 ) || qs.GlobalReadingShowType === 0)"}],key:""+t.QuestionId+t.QuestionName,attrs:{label:t.QuestionName,prop:t.QuestionId?t.QuestionId:String(t.GlobalAnswerType),rules:[{required:1!==parseInt(e.form[e.agreeOrNot.GlobalAnswerType])&&(e.isBaseline&&1===t.GlobalReadingShowType||!e.isBaseline&&2===t.GlobalReadingShowType||0===t.GlobalReadingShowType),message:e.$t("common:ruleMessage:specify"),trigger:["change"]}]}},[0===t.GlobalAnswerType?["select"===t.Type?i("el-select",{staticStyle:{width:"100%"},attrs:{disabled:1===parseInt(e.form[e.agreeOrNot.GlobalAnswerType])},model:{value:e.form[t.QuestionId?t.QuestionId:t.GlobalAnswerType],callback:function(i){e.$set(e.form,t.QuestionId?t.QuestionId:t.GlobalAnswerType,i)},expression:"form[!qs.QuestionId?qs.GlobalAnswerType:qs.QuestionId]"}},[t.TypeValue?e._l(t.TypeValue.split("|"),(function(n){return i("el-option",{key:n,attrs:{label:n,value:n,disabled:e.getBeforeAnswer(t.QuestionName)===n}})})):e._e(),e._v(" "),t.DictionaryCode?e._l(e.$d[t.DictionaryCode],(function(n){return 13!==t.QuestionType||-1!==n.value?i("el-option",{key:n.id,attrs:{value:n.value,label:n.label,disabled:e.getBeforeAnswer(t.QuestionName)===n.value}}):e._e()})):e._e()],2):e._e(),e._v(" "),"radio"===t.Type?i("el-radio-group",{attrs:{disabled:1===parseInt(e.form[e.agreeOrNot.GlobalAnswerType])},model:{value:e.form[t.QuestionId?t.QuestionId:t.GlobalAnswerType],callback:function(i){e.$set(e.form,t.QuestionId?t.QuestionId:t.GlobalAnswerType,i)},expression:"form[!qs.QuestionId?qs.GlobalAnswerType:qs.QuestionId]"}},e._l(t.TypeValue.split("|"),(function(n){return i("el-radio",{key:n,attrs:{label:n,disabled:e.getBeforeAnswer(t.QuestionName)===n}},[e._v("\n "+e._s(n)+"\n ")])})),1):e._e(),e._v(" "),"calculation"===t.Type?[""===t.DictionaryCode&&null===t.ValueType?i("el-input",{staticStyle:{width:"100%"},attrs:{disabled:1===parseInt(e.form[e.agreeOrNot.GlobalAnswerType])},model:{value:e.form[t.QuestionId?t.QuestionId:t.GlobalAnswerType],callback:function(i){e.$set(e.form,t.QuestionId?t.QuestionId:t.GlobalAnswerType,i)},expression:"form[!qs.QuestionId?qs.GlobalAnswerType:qs.QuestionId]"}}):t.DictionaryCode?i("el-select",{staticStyle:{width:"100%"},attrs:{disabled:1===parseInt(e.form[e.agreeOrNot.GlobalAnswerType])},model:{value:e.form[t.QuestionId?t.QuestionId:t.GlobalAnswerType],callback:function(i){e.$set(e.form,t.QuestionId?t.QuestionId:t.GlobalAnswerType,i)},expression:"form[!qs.QuestionId?qs.GlobalAnswerType:qs.QuestionId]"}},e._l(e.$d[t.DictionaryCode],(function(n){return i("el-option",{key:n.id,attrs:{disabled:e.getBeforeAnswer(t.QuestionName)===n.value,value:n.value,label:n.label}},[e._v(e._s(n.label))])})),1):null!==t.ValueType?i("el-input-number",{staticStyle:{width:"100%"},attrs:{disabled:1===parseInt(e.form[e.agreeOrNot.GlobalAnswerType])},model:{value:e.form[t.QuestionId?t.QuestionId:t.GlobalAnswerType],callback:function(i){e.$set(e.form,t.QuestionId?t.QuestionId:t.GlobalAnswerType,i)},expression:"form[!qs.QuestionId?qs.GlobalAnswerType:qs.QuestionId]"}}):e._e()]:e._e()]:e._e(),e._v(" "),3===t.GlobalAnswerType?[i("el-select",{staticStyle:{width:"100%"},attrs:{disabled:1===parseInt(e.form[e.agreeOrNot.GlobalAnswerType])},model:{value:e.form[t.QuestionId?t.QuestionId:t.GlobalAnswerType],callback:function(i){e.$set(e.form,t.QuestionId?t.QuestionId:t.GlobalAnswerType,i)},expression:"form[!qs.QuestionId?qs.GlobalAnswerType:qs.QuestionId]"}},e._l(e.assessTypes,(function(n){return i("el-option",{key:n.Code,attrs:{label:n.ValueCN,value:n.Code,disabled:e.getBeforeAnswer(t.QuestionName)===n.Code}})})),1)]:e._e(),e._v(" "),1===t.GlobalAnswerType?i("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},disabled:1===parseInt(e.form[e.agreeOrNot.GlobalAnswerType])},model:{value:e.form[t.QuestionId?t.QuestionId:t.GlobalAnswerType],callback:function(i){e.$set(e.form,t.QuestionId?t.QuestionId:t.GlobalAnswerType,i)},expression:"form[!qs.QuestionId?qs.GlobalAnswerType:qs.QuestionId]"}}):e._e()],2)})):e._e()],2),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleClose}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)]):e._e()},a=[],r=(i("20d6"),i("3b2b"),i("3e42")),o={name:"EditGlobalForm",props:{globalTaskId:{type:String,required:!0},visitTaskId:{type:String,required:!0},questionList:{type:Array,default:function(){return[]}},assessTypeList:{type:Array,default:function(){return[]}},subjectId:{type:String,required:!0},trialId:{type:String,required:!0},beforeQuestionList:{type:Array,default:function(){return[]}},globalUpdateType:{type:Array,default:function(){return[]}},agreeOrNot:{type:Object,default:function(){return{}}},isBaseline:{type:Boolean,required:!0}},data:function(){return{questions:[],form:{},loading:!1,assessTypes:[]}},mounted:function(){var e=this;console.log(2222),this.assessTypes=this.assessTypeList.filter((function(t){return t.IsBaseLineUse===e.isBaseline})),this.questionList.map((function(t){var i="";i=t.DictionaryCode?t.Answer?parseInt(t.Answer):null:t.Answer,t.QuestionId?e.$set(e.form,t.QuestionId,i):e.$set(e.form,t.GlobalAnswerType,i)})),this.questions=this.questionList,this.$set(this.form,this.agreeOrNot.GlobalAnswerType,this.agreeOrNot.Answer)},methods:{handleSave:function(){var e=this;this.$refs.globalReviewForm.validate((function(t){if(t){e.loading=!0;var i=[],n=new RegExp(/^[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}$/);for(var a in e.form)n.test(a)?i.push({questionId:a,visitTaskId:e.visitTaskId,answer:e.form[a]}):i.push({questionId:"",visitTaskId:e.visitTaskId,globalAnswerType:parseInt(a),answer:e.form[a]});var o={globalTaskId:e.globalTaskId,subjectId:e.subjectId,trialId:e.trialId,questionList:i};Object(r["xe"])(o).then((function(t){e.loading=!1,e.$message.success(e.$t("common:message:savedSuccessfully")),e.$emit("getList"),e.$emit("close")})).catch((function(){e.loading=!1}))}}))},handleClose:function(){this.$emit("close")},handleAgreeOrNotChange:function(e){var t=parseInt(this.form[e]);if(1===t)for(var i in this.form)i!==String(e)&&(this.form[i]="")},getBeforeAnswer:function(e){var t=this.beforeQuestionList.findIndex((function(t){return t.QuestionName===e}));if(t>-1&&this.beforeQuestionList[t].Answer){var i=null;return i=this.beforeQuestionList[t].DictionaryCode?parseInt(this.beforeQuestionList[t].Answer):this.beforeQuestionList[t].Answer,i}return""}}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},"7a54":function(e,t,i){},"7a70":function(e,t,i){"use strict";i("910c")},"7a7c":function(e,t,i){"use strict";i("d808")},"7aa8":function(e,t,i){},"7abd":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",[i("div",{staticClass:"search"},[i("el-form",{staticClass:"base-search-form",attrs:{inline:!0,size:"mini"}},[i("el-form-item",{attrs:{label:"编号:"}},[i("el-input",{staticStyle:{width:"100px"},model:{value:e.searchData.Code,callback:function(t){e.$set(e.searchData,"Code",t)},expression:"searchData.Code"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"模板:"}},[i("el-input",{staticStyle:{width:"100px"},model:{value:e.searchData.Name,callback:function(t){e.$set(e.searchData,"Name",t)},expression:"searchData.Name"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:e.handleReset}},[e._v("Reset")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.handleSearch}},[e._v("Search")])],1)],1),e._v(" "),i("span",{staticStyle:{"margin-left":"auto"}},[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.handleAdd}},[e._v("\n New\n ")])],1)],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:45},expression:"{bottomOffset:45}"}],staticStyle:{width:"100%"},attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Code",label:"Code",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Name",label:"模板","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Value",label:"签名内容(EN)","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ValueCN",label:"签名内容(CN)","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"UpdateTime",label:"更新时间","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:"创建时间","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{label:"Action",width:"200",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("\n Edit\n ")]),e._v(" "),i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleConfig(t.row)}}},[e._v("\n 场景配置\n ")]),e._v(" "),i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("Delete")])]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}}),e._v(" "),e.editVisible?i("el-dialog",{attrs:{visible:e.editVisible,"close-on-click-modal":!1,title:e.title,width:"700px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.editVisible=t}}},[i("SignTemplateForm",{attrs:{data:e.rowData},on:{closeDialog:e.closeDialog,getList:e.getList}})],1):e._e(),e._v(" "),e.configVisible?i("el-dialog",{attrs:{visible:e.configVisible,title:"场景配置",fullscreen:!0,"append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.configVisible=t}}},[i("SceneList",{attrs:{"parent-id":e.rowData.Id},on:{closeDialog:e.closeDialog}})],1):e._e()],1)},a=[],r=(i("20d6"),i("db72")),o=i("e56e"),s=i("f36a"),l=i("1f3d"),c=i("7ee3"),u=i("333d"),d=function(){return{Code:"",Name:"",PageIndex:1,PageSize:20}},f={name:"SignTemplate",components:{BoxContent:s["default"],SignTemplateForm:l["default"],Pagination:u["default"],SceneList:c["default"]},data:function(){return{searchData:d(),loading:!1,list:[],total:0,rowData:{},title:"",editVisible:!1,configVisible:!1}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0,Object(o["zb"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},handleAdd:function(){this.rowData={},this.title="Add",this.editVisible=!0},handleEdit:function(e){this.rowData=Object(r["a"])({},e),this.title="Edit",this.editVisible=!0},handleDelete:function(e){var t=this;this.$confirm("Sure to delete?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){Object(o["P"])(e.Id).then((function(i){i.IsSuccess&&(t.list.splice(t.list.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success("Deleted successfully!"))}))}))},handleConfig:function(e){this.rowData=Object(r["a"])({},e),this.configVisible=!0},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=d(),this.getList()},handleSortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()},closeDialog:function(){this.editVisible=!1}}},h=f,p=i("2877"),m=Object(p["a"])(h,n,a,!1,null,null,null);t["default"]=m.exports},"7ac7":function(e,t,i){},"7acf":function(e,t,i){"use strict";i("6c30")},"7b0c":function(e,t,i){var n=i("6cc5"),a=i("f934"),r=a.getLayoutRect,o=i("e263");function s(e,t,i){var n=e.getBoxLayoutParams();return n.aspect=i,r(n,{width:t.getWidth(),height:t.getHeight()})}function l(e,t){var i=[];return e.eachSeriesByType("graph",(function(e){var a=e.get("coordinateSystem");if(!a||"view"===a){var r=e.getData(),l=r.mapArray((function(e){var t=r.getItemModel(e);return[+t.get("x"),+t.get("y")]})),c=[],u=[];o.fromPoints(l,c,u),u[0]-c[0]===0&&(u[0]+=1,c[0]-=1),u[1]-c[1]===0&&(u[1]+=1,c[1]-=1);var d=(u[0]-c[0])/(u[1]-c[1]),f=s(e,t,d);isNaN(d)&&(c=[f.x,f.y],u=[f.x+f.width,f.y+f.height]);var h=u[0]-c[0],p=u[1]-c[1],m=f.width,g=f.height,v=e.coordinateSystem=new n;v.zoomLimit=e.get("scaleLimit"),v.setBoundingRect(c[0],c[1],h,p),v.setViewRect(f.x,f.y,m,g),v.setCenter(e.get("center")),v.setZoom(e.get("zoom")),i.push(v)}})),i}e.exports=l},"7b66":function(e,t,i){},"7b90":function(e,t,i){},"7bbb":function(e,t,i){"use strict";i("f870")},"7bf8":function(e,t,i){},"7c4d":function(e,t,i){var n=i("3eba"),a=i("6d8b"),r=i("fc82"),o=i("bd9e"),s=i("6fda"),l=i("ef6a"),c=i("29a8"),u=i("2145");i("dd39");var d=c.toolbox.dataZoom,f=a.each,h="\0_ec_\0toolbox-dataZoom_";function p(e,t,i){(this._brushController=new r(i.getZr())).on("brush",a.bind(this._onBrush,this)).mount(),this._isZoomActive}p.defaultOption={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:a.clone(d.title),brushStyle:{borderWidth:0,color:"rgba(0,0,0,0.2)"}};var m=p.prototype;m.render=function(e,t,i,n){this.model=e,this.ecModel=t,this.api=i,y(e,t,this,n,i),b(e,t)},m.onclick=function(e,t,i){g[i].call(this)},m.remove=function(e,t){this._brushController.unmount()},m.dispose=function(e,t){this._brushController.dispose()};var g={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(s.pop(this.ecModel))}};function v(e){var t={};return a.each(["xAxisIndex","yAxisIndex"],(function(i){t[i]=e[i],null==t[i]&&(t[i]="all"),(!1===t[i]||"none"===t[i])&&(t[i]=[])})),t}function b(e,t){e.setIconStatus("back",s.count(t)>1?"emphasis":"normal")}function y(e,t,i,n,a){var r=i._isZoomActive;n&&"takeGlobalCursor"===n.type&&(r="dataZoomSelect"===n.key&&n.dataZoomSelectActive),i._isZoomActive=r,e.setIconStatus("zoom",r?"emphasis":"normal");var s=new o(v(e.option),t,{include:["grid"]});i._brushController.setPanels(s.makePanelOpts(a,(function(e){return e.xAxisDeclared&&!e.yAxisDeclared?"lineX":!e.xAxisDeclared&&e.yAxisDeclared?"lineY":"rect"}))).enableBrush(!!r&&{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()})}m._onBrush=function(e,t){if(t.isEnd&&e.length){var i={},n=this.ecModel;this._brushController.updateCovers([]);var a=new o(v(this.model.option),n,{include:["grid"]});a.matchOutputRanges(e,n,(function(e,t,i){if("cartesian2d"===i.type){var n=e.brushType;"rect"===n?(r("x",i,t[0]),r("y",i,t[1])):r({lineX:"x",lineY:"y"}[n],i,t)}})),s.push(n,i),this._dispatchZoomAction(i)}function r(e,t,a){var r=t.getAxis(e),o=r.model,s=c(e,o,n),u=s.findRepresentativeAxisProxy(o).getMinMaxSpan();null==u.minValueSpan&&null==u.maxValueSpan||(a=l(0,a.slice(),r.scale.getExtent(),0,u.minValueSpan,u.maxValueSpan)),s&&(i[s.id]={dataZoomId:s.id,startValue:a[0],endValue:a[1]})}function c(e,t,i){var n;return i.eachComponent({mainType:"dataZoom",subType:"select"},(function(i){var a=i.getAxisModel(e,t.componentIndex);a&&(n=i)})),n}},m._dispatchZoomAction=function(e){var t=[];f(e,(function(e,i){t.push(a.clone(e))})),t.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:t})},u.register("dataZoom",p),n.registerPreprocessor((function(e){if(e){var t=e.dataZoom||(e.dataZoom=[]);a.isArray(t)||(e.dataZoom=t=[t]);var i=e.toolbox;if(i&&(a.isArray(i)&&(i=i[0]),i&&i.feature)){var n=i.feature.dataZoom;r("xAxis",n),r("yAxis",n)}}function r(e,i){if(i){var n=e+"Index",r=i[n];null==r||"all"===r||a.isArray(r)||(r=!1===r||"none"===r?[]:[r]),o(e,(function(o,s){if(null==r||"all"===r||-1!==a.indexOf(r,s)){var l={type:"select",$fromToolbox:!0,filterMode:i.filterMode||"filter",id:h+e+s};l[n]=s,t.push(l)}}))}}function o(t,i){var n=e[t];a.isArray(n)||(n=n?[n]:[]),f(n,i)}}));var w=p;e.exports=w},"7c6f":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"siteForm",staticClass:"demo-ruleForm",attrs:{model:e.form,rules:e.rules,size:"small","label-width":"150px"}},[i("div",{staticClass:"base-dialog-body"},[e.form.Id?i("el-form-item",{attrs:{label:"Site Code: ",prop:"SiteCode"}},[i("el-input",{attrs:{disabled:""},model:{value:e.form.SiteCode,callback:function(t){e.$set(e.form,"SiteCode",t)},expression:"form.SiteCode"}})],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:"Site Name: ",prop:"SiteName"}},[i("el-input",{model:{value:e.form.SiteName,callback:function(t){e.$set(e.form,"SiteName",t)},expression:"form.SiteName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Alias Name: "}},[i("el-input",{model:{value:e.form.AliasName,callback:function(t){e.$set(e.form,"AliasName",t)},expression:"form.AliasName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"组织机构代码: "}},[i("el-input",{model:{value:e.form.UniqueCode,callback:function(t){e.$set(e.form,"UniqueCode",t)},expression:"form.UniqueCode"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Country: ",prop:"Country"}},[i("el-input",{model:{value:e.form.Country,callback:function(t){e.$set(e.form,"Country",t)},expression:"form.Country"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"City: ",prop:"City"}},[i("el-input",{model:{value:e.form.City,callback:function(t){e.$set(e.form,"City",t)},expression:"form.City"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Address: ",prop:"Address"}},[i("el-input",{model:{value:e.form.Address,callback:function(t){e.$set(e.form,"Address",t)},expression:"form.Address"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Affiliated Hospital: "}},[i("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",placeholder:"Please select"},model:{value:e.form.HospitalId,callback:function(t){e.$set(e.form,"HospitalId",t)},expression:"form.HospitalId"}},e._l(e.hospitalList,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.HospitalName,value:e.Id}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Director Name: ",prop:"DirectorName"}},[i("el-input",{model:{value:e.form.DirectorName,callback:function(t){e.$set(e.form,"DirectorName",t)},expression:"form.DirectorName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Director Phone: ",prop:"DirectorPhone"}},[i("el-input",{model:{value:e.form.DirectorPhone,callback:function(t){e.$set(e.form,"DirectorPhone",t)},expression:"form.DirectorPhone"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Contact Name: ",prop:"ContactName"}},[i("el-input",{model:{value:e.form.ContactName,callback:function(t){e.$set(e.form,"ContactName",t)},expression:"form.ContactName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Contact Phone: ",prop:"ContactPhone"}},[i("el-input",{model:{value:e.form.ContactPhone,callback:function(t){e.$set(e.form,"ContactPhone",t)},expression:"form.ContactPhone"}})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.handleCancel}},[e._v("Cancel")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleSave}},[e._v("Save")])],1)],1)])},a=[],r=i("db72"),o=(i("ac6a"),i("456d"),i("96cf"),i("3b8d")),s=i("e56e"),l=i("4360"),c={name:"SiteForm",props:{data:{type:Object,default:function(){return{}}}},data:function(){return{btnLoading:!1,hospitalList:[],form:{Id:"",SiteCode:"",SiteName:"",AliasName:null,Country:"",City:"",HospitalId:"",DirectorName:"",DirectorPhone:"",ContactName:"",ContactPhone:"",UniqueCode:"",Address:""},rules:{SiteName:[{required:!0,message:"Please specify",trigger:"blur"},{max:50,message:"The maximum length is 50"}],SiteCode:[{required:!0,message:"Please specify",trigger:"blur"},{max:50,message:"The maximum length is 50"}],Country:[{required:!0,message:"Please specify",trigger:"blur"},{max:50,message:"The maximum length is 50"}],City:[{required:!0,message:"Please specify",trigger:"blur"},{max:50,message:"The maximum length is 50"}],Address:[{required:!0,message:"Please specify",trigger:"blur"}],DirectorName:[{max:50,message:"The maximum length is 50"}],DirectorPhone:[{max:50,message:"The maximum length is 50"}],ContactName:[{max:50,message:"The maximum length is 50"}],ContactPhone:[{max:50,message:"The maximum length is 50"}]},loading:!1}},mounted:function(){this.initForm()},methods:{handleSave:function(){var e=this;this.$refs.siteForm.validate((function(t){t&&(e.btnLoading=!0,Object(s["r"])(e.form).then((function(t){e.btnLoading=!1,t.IsSuccess&&(e.$message.success("Saved successfully"),e.$refs["siteForm"].resetFields(),e.$emit("getList"),e.$emit("close"))})).catch((function(){e.btnLoading=!1})))}))},handleCancel:function(){this.$emit("close")},initForm:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.loading=!0,e.next=3,l["a"].dispatch("global/getHospital");case 3:this.hospitalList=e.sent,this.loading=!1,Object.keys(this.data).length&&this.data.Id&&(this.form=Object(r["a"])({},this.data));case 6:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}},u=c,d=i("2877"),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},"7cdf":function(e,t,i){var n=i("5ca1");n(n.S,"Number",{isInteger:i("9c12")})},"7cf7":function(e,t,i){"use strict";i("0f23")},"7d1c":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"search-container"},[i("div",{staticStyle:{"margin-left":"auto"}},[i("el-button",{attrs:{icon:"el-icon-check",type:"primary",disabled:0==e.approveIdArr.length},on:{click:function(t){return e.handleApprove()}}},[e._v("\n "+e._s(e.$t("trials:seletctedReviews:button:approve"))+"\n ")])],1)]),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:65},expression:"{bottomOffset:65}"}],staticClass:"table",attrs:{height:"100",data:e.list,"row-class-name":e.handleHighLighRow},on:{"sort-change":e.handleSortChange,"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",selectable:e.handleSelectTable}}),e._v(" "),i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"BlindNameCN",label:e.$t("trials:spmEnroll:table:blindNameCN"),"show-overflow-tooltip":"","min-width":"120",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"BlindName",label:e.$t("trials:spmEnroll:table:blindName"),"show-overflow-tooltip":"","min-width":"120",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"SpecialityId",label:e.$t("trials:spmEnroll:table:specialityId"),"show-overflow-tooltip":"","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.SpecialityId===e.otherId?t.row.SpecialityOther?t.row.SpecialityOther:"Other":t.row.Speciality)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"SubspecialityIds",label:e.$t("trials:spmEnroll:table:subspecialityIds"),"show-overflow-tooltip":"","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.SubspecialityIds.map((function(t){return e.$fd("Subspeciality",t,"id")})).toString())+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"HospitalName",label:e.$t("trials:seletctedReviews:table:institution"),"show-overflow-tooltip":"",width:"150"}}),e._v(" "),i("el-table-column",{attrs:{prop:"SubmmitUserName",label:e.$t("trials:spmEnroll:table:submmitUserName"),"min-width":"100"}}),e._v(" "),i("el-table-column",{attrs:{prop:"SubmmitTime",label:e.$t("trials:spmEnroll:table:submmitTime"),"min-width":"150"}}),e._v(" "),i("el-table-column",{attrs:{prop:"OptUserName",label:e.$t("trials:spmEnroll:table:optUserName"),"min-width":"100"}}),e._v(" "),i("el-table-column",{attrs:{prop:"OptTimeStr",label:e.$t("trials:spmEnroll:table:optTimeStr"),"min-width":"150"}}),e._v(" "),i("el-table-column",{attrs:{fixed:"right",label:e.$t("common:action:action"),width:"210"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{icon:"el-icon-view",circle:"",title:e.$t("trials:spmEnroll:button:view")},on:{click:function(i){return e.lookResumeInfo(t.row)}}}),e._v(" "),i("el-button",{attrs:{disabled:8===t.row.DoctorTrialState,icon:"el-icon-check",circle:"",title:e.$t("trials:spmEnroll:button:agree")},on:{click:function(i){return e.handleApprove(t.row)}}})]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.listQuery.PageIndex,limit:e.listQuery.PageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"PageIndex",t)},"update:limit":function(t){return e.$set(e.listQuery,"PageSize",t)},pagination:e.getList}})],1)],2)},a=[],r=i("6071"),o=i("333d"),s=i("3e42"),l=i("4360"),c=4,u={name:"Approval",components:{BaseContainer:r["default"],Pagination:o["default"]},data:function(){return{list:[],listQuery:{TrialId:"",IntoGroupSearchState:c,PageIndex:1,PageSize:20,Asc:!1,SortField:""},otherId:"ef84e9cb-f1a6-49d7-b6da-34be2c12abd5",total:0,listLoading:!1,approveIdArr:[],token:l["a"].getters.token}},created:function(){this.initPage()},methods:{lookResumeInfo:function(e){console.log(e),window.open("/blindResumeInfo?doctorId=".concat(e.Id,"&token=").concat(this.token))},initPage:function(){this.getList()},getList:function(){var e=this;this.listLoading=!0,this.listQuery.TrialId=this.$route.query.trialId,Object(s["td"])(this.listQuery).then((function(t){e.listLoading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.listLoading=!1}))},handleApprove:function(e){var t,i=this;t=e?[e.Id]:Object.assign([],this.approveIdArr),this.$confirm(this.$t("trials:spmEnroll:title:msg1"),{type:"warning"}).then((function(){i.listLoading=!0;var e=i.$route.query.trialId;Object(s["L"])(e,t,1).then((function(e){e.IsSuccess&&(i.getList(),i.$message.success(i.$t("common:message:savedSuccessfully"))),i.listLoading=!1})).catch((function(){i.listLoading=!1}))}))},handleSelectionChange:function(e){for(var t=[],i=0;i<e.length;i++)t.push(e[i].Id);this.approveIdArr=t},handleSortChange:function(e){"ascending"===e.order?this.listQuery.Asc=!0:this.listQuery.Asc=!1,this.listQuery.SortField=e.prop,this.listQuery.PageIndex=1,this.getList()},handleHighLighRow:function(e){var t=e.row;e.rowIndex;if(8===t.DoctorTrialState)return"selected"},handleSelectTable:function(e){return 8!==e.DoctorTrialState},handleDetail:function(e){var t=this.$router.resolve({path:"/trialsResume?doctorId=".concat(e.Id)}),i=t.href;window.open(i,"_blank")}}},d=u,f=i("2877"),h=Object(f["a"])(d,n,a,!1,null,null,null);t["default"]=h.exports},"7d6d":function(e,t){var i={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1};function n(e,t,n){return i.hasOwnProperty(t)?n*e.dpr:n}e.exports=n},"7d9d":function(e,t,i){},"7dcf":function(e,t,i){var n=i("b12f"),a=n.extend({type:"dataZoom",render:function(e,t,i,n){this.dataZoomModel=e,this.ecModel=t,this.api=i},getTargetCoordInfo:function(){var e=this.dataZoomModel,t=this.ecModel,i={};function n(e,t,i,n){for(var a,r=0;r<i.length;r++)if(i[r].model===e){a=i[r];break}a||i.push(a={model:e,axisModels:[],coordIndex:n}),a.axisModels.push(t)}return e.eachTargetAxis((function(e,a){var r=t.getComponent(e.axis,a);if(r){var o=r.getCoordSysModel();o&&n(o,r,i[o.mainType]||(i[o.mainType]=[]),o.componentIndex)}}),this),i}});e.exports=a},"7dd4":function(e,t,i){"use strict";i("d7ac")},"7e32":function(e,t,i){var n=i("3eba");i("43b8"),i("8e77"),n.registerPreprocessor((function(e){e.markArea=e.markArea||{}}))},"7e5b":function(e,t,i){var n=i("6d8b"),a=i("401b"),r=i("a15a"),o=i("7f91"),s=i("2306"),l=i("3842"),c=l.round,u=["fromSymbol","toSymbol"];function d(e){return"_"+e+"Type"}function f(e,t,i){var a=t.getItemVisual(i,e);if(a&&"none"!==a){var o=t.getItemVisual(i,"color"),s=t.getItemVisual(i,e+"Size"),l=t.getItemVisual(i,e+"Rotate");n.isArray(s)||(s=[s,s]);var c=r.createSymbol(a,-s[0]/2,-s[1]/2,s[0],s[1],o);return c.__specifiedRotation=null==l||isNaN(l)?void 0:+l*Math.PI/180||0,c.name=e,c}}function h(e){var t=new o({name:"line",subPixelOptimize:!0});return p(t.shape,e),t}function p(e,t){e.x1=t[0][0],e.y1=t[0][1],e.x2=t[1][0],e.y2=t[1][1],e.percent=1;var i=t[2];i?(e.cpx1=i[0],e.cpy1=i[1]):(e.cpx1=NaN,e.cpy1=NaN)}function m(){var e=this,t=e.childOfName("fromSymbol"),i=e.childOfName("toSymbol"),n=e.childOfName("label");if(t||i||!n.ignore){var r=1,o=this.parent;while(o)o.scale&&(r/=o.scale[0]),o=o.parent;var s=e.childOfName("line");if(this.__dirty||s.__dirty){var l=s.shape.percent,c=s.pointAt(0),u=s.pointAt(l),d=a.sub([],u,c);if(a.normalize(d,d),t){t.attr("position",c);var f=t.__specifiedRotation;if(null==f){var h=s.tangentAt(0);t.attr("rotation",Math.PI/2-Math.atan2(h[1],h[0]))}else t.attr("rotation",f);t.attr("scale",[r*l,r*l])}if(i){i.attr("position",u);f=i.__specifiedRotation;if(null==f){h=s.tangentAt(1);i.attr("rotation",-Math.PI/2-Math.atan2(h[1],h[0]))}else i.attr("rotation",f);i.attr("scale",[r*l,r*l])}if(!n.ignore){var p,m,g,v;n.attr("position",u);var b=n.__labelDistance,y=b[0]*r,w=b[1]*r,_=l/2,I=(h=s.tangentAt(_),[h[1],-h[0]]),x=s.pointAt(_);I[1]>0&&(I[0]=-I[0],I[1]=-I[1]);var S,T=h[0]<0?-1:1;if("start"!==n.__position&&"end"!==n.__position){var C=-Math.atan2(h[1],h[0]);u[0]<c[0]&&(C=Math.PI+C),n.attr("rotation",C)}switch(n.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":S=-w,g="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":S=w,g="top";break;default:S=0,g="middle"}switch(n.__position){case"end":p=[d[0]*y+u[0],d[1]*w+u[1]],m=d[0]>.8?"left":d[0]<-.8?"right":"center",g=d[1]>.8?"top":d[1]<-.8?"bottom":"middle";break;case"start":p=[-d[0]*y+c[0],-d[1]*w+c[1]],m=d[0]>.8?"right":d[0]<-.8?"left":"center",g=d[1]>.8?"bottom":d[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":p=[y*T+c[0],c[1]+S],m=h[0]<0?"right":"left",v=[-y*T,-S];break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":p=[x[0],x[1]+S],m="center",v=[0,-S];break;case"insideEndTop":case"insideEnd":case"insideEndBottom":p=[-y*T+u[0],u[1]+S],m=h[0]>=0?"right":"left",v=[y*T,-S];break}n.attr({style:{textVerticalAlign:n.__verticalAlign||g,textAlign:n.__textAlign||m},position:p,scale:[r,r],origin:v})}}}}function g(e,t,i){s.Group.call(this),this._createLine(e,t,i)}var v=g.prototype;v.beforeUpdate=m,v._createLine=function(e,t,i){var a=e.hostModel,r=e.getItemLayout(t),o=h(r);o.shape.percent=0,s.initProps(o,{shape:{percent:1}},a,t),this.add(o);var l=new s.Text({name:"label",lineLabelOriginalOpacity:1});this.add(l),n.each(u,(function(i){var n=f(i,e,t);this.add(n),this[d(i)]=e.getItemVisual(t,i)}),this),this._updateCommonStl(e,t,i)},v.updateData=function(e,t,i){var a=e.hostModel,r=this.childOfName("line"),o=e.getItemLayout(t),l={shape:{}};p(l.shape,o),s.updateProps(r,l,a,t),n.each(u,(function(i){var n=e.getItemVisual(t,i),a=d(i);if(this[a]!==n){this.remove(this.childOfName(i));var r=f(i,e,t);this.add(r)}this[a]=n}),this),this._updateCommonStl(e,t,i)},v._updateCommonStl=function(e,t,i){var a=e.hostModel,r=this.childOfName("line"),o=i&&i.lineStyle,l=i&&i.hoverLineStyle,d=i&&i.labelModel,f=i&&i.hoverLabelModel;if(!i||e.hasItemOption){var h=e.getItemModel(t);o=h.getModel("lineStyle").getLineStyle(),l=h.getModel("emphasis.lineStyle").getLineStyle(),d=h.getModel("label"),f=h.getModel("emphasis.label")}var p=e.getItemVisual(t,"color"),m=n.retrieve3(e.getItemVisual(t,"opacity"),o.opacity,1);r.useStyle(n.defaults({strokeNoScale:!0,fill:"none",stroke:p,opacity:m},o)),r.hoverStyle=l,n.each(u,(function(e){var t=this.childOfName(e);t&&(t.setColor(p),t.setStyle({opacity:m}))}),this);var g,v,b=d.getShallow("show"),y=f.getShallow("show"),w=this.childOfName("label");if((b||y)&&(g=p||"#000",v=a.getFormattedLabel(t,"normal",e.dataType),null==v)){var _=a.getRawValue(t);v=null==_?e.getName(t):isFinite(_)?c(_):_}var I=b?v:null,x=y?n.retrieve2(a.getFormattedLabel(t,"emphasis",e.dataType),v):null,S=w.style;if(null!=I||null!=x){s.setTextStyle(w.style,d,{text:I},{autoColor:g}),w.__textAlign=S.textAlign,w.__verticalAlign=S.textVerticalAlign,w.__position=d.get("position")||"middle";var T=d.get("distance");n.isArray(T)||(T=[T,T]),w.__labelDistance=T}w.hoverStyle=null!=x?{text:x,textFill:f.getTextColor(!0),fontStyle:f.getShallow("fontStyle"),fontWeight:f.getShallow("fontWeight"),fontSize:f.getShallow("fontSize"),fontFamily:f.getShallow("fontFamily")}:{text:null},w.ignore=!b&&!y,s.setHoverStyle(this)},v.highlight=function(){this.trigger("emphasis")},v.downplay=function(){this.trigger("normal")},v.updateLayout=function(e,t){this.setLinePoints(e.getItemLayout(t))},v.setLinePoints=function(e){var t=this.childOfName("line");p(t.shape,e),t.dirty()},n.inherits(g,s.Group);var b=g;e.exports=b},"7e5c":function(e,t,i){},"7e63":function(e,t,i){var n=i("4e08"),a=(n.__DEV__,i("6d8b")),r=a.each,o=a.filter,s=a.map,l=a.isArray,c=a.indexOf,u=a.isObject,d=a.isString,f=a.createHashMap,h=a.assert,p=a.clone,m=a.merge,g=a.extend,v=a.mixin,b=i("e0d3"),y=i("4319"),w=i("6cb7"),_=i("8971"),I=i("e47b"),x=i("0f99"),S=x.resetSourceDefaulter,T="\0_ec_inner",C=y.extend({init:function(e,t,i,n){i=i||{},this.option=null,this._theme=new y(i),this._optionManager=n},setOption:function(e,t){h(!(T in e),"please use chart.getOption()"),this._optionManager.setOption(e,t),this.resetOption(null)},resetOption:function(e){var t=!1,i=this._optionManager;if(!e||"recreate"===e){var n=i.mountOption("recreate"===e);this.option&&"recreate"!==e?(this.restoreData(),this.mergeOption(n)):D.call(this,n),t=!0}if("timeline"!==e&&"media"!==e||this.restoreData(),!e||"recreate"===e||"timeline"===e){var a=i.getTimelineOption(this);a&&(this.mergeOption(a),t=!0)}if(!e||"recreate"===e||"media"===e){var o=i.getMediaOption(this,this._api);o.length&&r(o,(function(e){this.mergeOption(e,t=!0)}),this)}return t},mergeOption:function(e){var t=this.option,i=this._componentsMap,n=[];function a(n,a){var o=b.normalizeToArray(e[n]),s=b.mappingToExists(i.get(n),o);b.makeIdAndName(s),r(s,(function(e,t){var i=e.option;u(i)&&(e.keyInfo.mainType=n,e.keyInfo.subType=O(n,i,e.exist))}));var l=L(i,a);t[n]=[],i.set(n,[]),r(s,(function(e,a){var r=e.exist,o=e.option;if(h(u(o)||r,"Empty component definition"),o){var s=w.getClass(n,e.keyInfo.subType,!0);if(r&&r.constructor===s)r.name=e.keyInfo.name,r.mergeOption(o,this),r.optionUpdated(o,!1);else{var c=g({dependentModels:l,componentIndex:a},e.keyInfo);r=new s(o,this,this,c),g(r,c),r.init(o,this,this,c),r.optionUpdated(null,!0)}}else r.mergeOption({},this),r.optionUpdated({},!1);i.get(n)[a]=r,t[n][a]=r.option}),this),"series"===n&&$(this,i.get("series"))}S(this),r(e,(function(e,i){null!=e&&(w.hasClass(i)?i&&n.push(i):t[i]=null==t[i]?p(e):m(t[i],e,!0))})),w.topologicalTravel(n,w.getAllClassMainTypes(),a,this),this._seriesIndicesMap=f(this._seriesIndices=this._seriesIndices||[])},getOption:function(){var e=p(this.option);return r(e,(function(t,i){if(w.hasClass(i)){t=b.normalizeToArray(t);for(var n=t.length-1;n>=0;n--)b.isIdInner(t[n])&&t.splice(n,1);e[i]=t}})),delete e[T],e},getTheme:function(){return this._theme},getComponent:function(e,t){var i=this._componentsMap.get(e);if(i)return i[t||0]},queryComponents:function(e){var t=e.mainType;if(!t)return[];var i,n=e.index,a=e.id,r=e.name,u=this._componentsMap.get(t);if(!u||!u.length)return[];if(null!=n)l(n)||(n=[n]),i=o(s(n,(function(e){return u[e]})),(function(e){return!!e}));else if(null!=a){var d=l(a);i=o(u,(function(e){return d&&c(a,e.id)>=0||!d&&e.id===a}))}else if(null!=r){var f=l(r);i=o(u,(function(e){return f&&c(r,e.name)>=0||!f&&e.name===r}))}else i=u.slice();return N(i,e)},findComponents:function(e){var t=e.query,i=e.mainType,n=r(t),a=n?this.queryComponents(n):this._componentsMap.get(i);return s(N(a,e));function r(e){var t=i+"Index",n=i+"Id",a=i+"Name";return!e||null==e[t]&&null==e[n]&&null==e[a]?null:{mainType:i,index:e[t],id:e[n],name:e[a]}}function s(t){return e.filter?o(t,e.filter):t}},eachComponent:function(e,t,i){var n=this._componentsMap;if("function"===typeof e)i=t,t=e,n.each((function(e,n){r(e,(function(e,a){t.call(i,n,e,a)}))}));else if(d(e))r(n.get(e),t,i);else if(u(e)){var a=this.findComponents(e);r(a,t,i)}},getSeriesByName:function(e){var t=this._componentsMap.get("series");return o(t,(function(t){return t.name===e}))},getSeriesByIndex:function(e){return this._componentsMap.get("series")[e]},getSeriesByType:function(e){var t=this._componentsMap.get("series");return o(t,(function(t){return t.subType===e}))},getSeries:function(){return this._componentsMap.get("series").slice()},getSeriesCount:function(){return this._componentsMap.get("series").length},eachSeries:function(e,t){A(this),r(this._seriesIndices,(function(i){var n=this._componentsMap.get("series")[i];e.call(t,n,i)}),this)},eachRawSeries:function(e,t){r(this._componentsMap.get("series"),e,t)},eachSeriesByType:function(e,t,i){A(this),r(this._seriesIndices,(function(n){var a=this._componentsMap.get("series")[n];a.subType===e&&t.call(i,a,n)}),this)},eachRawSeriesByType:function(e,t,i){return r(this.getSeriesByType(e),t,i)},isSeriesFiltered:function(e){return A(this),null==this._seriesIndicesMap.get(e.componentIndex)},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(e,t){A(this);var i=o(this._componentsMap.get("series"),e,t);$(this,i)},restoreData:function(e){var t=this._componentsMap;$(this,t.get("series"));var i=[];t.each((function(e,t){i.push(t)})),w.topologicalTravel(i,w.getAllClassMainTypes(),(function(i,n){r(t.get(i),(function(t){("series"!==i||!k(t,e))&&t.restoreData()}))}))}});function k(e,t){if(t){var i=t.seiresIndex,n=t.seriesId,a=t.seriesName;return null!=i&&e.componentIndex!==i||null!=n&&e.id!==n||null!=a&&e.name!==a}}function R(e,t){var i=e.color&&!e.colorLayer;r(t,(function(t,n){"colorLayer"===n&&i||w.hasClass(n)||("object"===typeof t?e[n]=e[n]?m(e[n],t,!1):p(t):null==e[n]&&(e[n]=t))}))}function D(e){e=e,this.option={},this.option[T]=1,this._componentsMap=f({series:[]}),this._seriesIndices,this._seriesIndicesMap,R(e,this._theme.option),m(e,_,!1),this.mergeOption(e)}function L(e,t){l(t)||(t=t?[t]:[]);var i={};return r(t,(function(t){i[t]=(e.get(t)||[]).slice()})),i}function O(e,t,i){var n=t.type?t.type:i?i.subType:w.determineSubType(e,t);return n}function $(e,t){e._seriesIndicesMap=f(e._seriesIndices=s(t,(function(e){return e.componentIndex}))||[])}function N(e,t){return t.hasOwnProperty("subType")?o(e,(function(e){return e.subType===t.subType})):e}function A(e){}v(C,I);var P=C;e.exports=P},"7e87":function(e,t,i){},"7ed1":function(e,t,i){"use strict";(function(e,n){i.d(t,"a",(function(){return s})),i.d(t,"c",(function(){return l})),i.d(t,"f",(function(){return c})),i.d(t,"j",(function(){return d})),i.d(t,"k",(function(){return f})),i.d(t,"e",(function(){return h})),i.d(t,"d",(function(){return p})),i.d(t,"b",(function(){return m})),i.d(t,"i",(function(){return g})),i.d(t,"g",(function(){return _})),i.d(t,"h",(function(){return I}));var a=i("33e1"),r=i("bf71");const o="6.0.8";class s{static isRequired(e,t){if(null===e||void 0===e)throw new Error(`The '${t}' argument is required.`)}static isNotEmpty(e,t){if(!e||e.match(/^\s*$/))throw new Error(`The '${t}' argument should not be empty.`)}static isIn(e,t,i){if(!(e in t))throw new Error(`Unknown ${i} value: ${e}.`)}}class l{static get isBrowser(){return"object"===typeof window&&"object"===typeof window.document}static get isWebWorker(){return"object"===typeof self&&"importScripts"in self}static get isReactNative(){return"object"===typeof window&&"undefined"===typeof window.document}static get isNode(){return!this.isBrowser&&!this.isWebWorker&&!this.isReactNative}}function c(e,t){let i="";return d(e)?(i="Binary data of length "+e.byteLength,t&&(i+=`. Content: '${u(e)}'`)):"string"===typeof e&&(i="String data of length "+e.length,t&&(i+=`. Content: '${e}'`)),i}function u(e){const t=new Uint8Array(e);let i="";return t.forEach(e=>{const t=e<16?"0":"";i+=`0x${t}${e.toString(16)} `}),i.substr(0,i.length-1)}function d(e){return e&&"undefined"!==typeof ArrayBuffer&&(e instanceof ArrayBuffer||e.constructor&&"ArrayBuffer"===e.constructor.name)}async function f(e,t,i,n,r,o,s){let l={};if(r){const e=await r();e&&(l={["Authorization"]:"Bearer "+e})}const[u,f]=g();l[u]=f,e.log(a["a"].Trace,`(${t} transport) sending data. ${c(o,s.logMessageContent)}.`);const h=d(o)?"arraybuffer":"text",p=await i.post(n,{content:o,headers:{...l,...s.headers},responseType:h,timeout:s.timeout,withCredentials:s.withCredentials});e.log(a["a"].Trace,`(${t} transport) request complete. Response status: ${p.statusCode}.`)}function h(e){return void 0===e?new m(a["a"].Information):null===e?r["a"].instance:void 0!==e.log?e:new m(e)}class p{constructor(e,t){this._subject=e,this._observer=t}dispose(){const e=this._subject.observers.indexOf(this._observer);e>-1&&this._subject.observers.splice(e,1),0===this._subject.observers.length&&this._subject.cancelCallback&&this._subject.cancelCallback().catch(e=>{})}}class m{constructor(e){this._minLevel=e,this.out=console}log(e,t){if(e>=this._minLevel){const i=`[${(new Date).toISOString()}] ${a["a"][e]}: ${t}`;switch(e){case a["a"].Critical:case a["a"].Error:this.out.error(i);break;case a["a"].Warning:this.out.warn(i);break;case a["a"].Information:this.out.info(i);break;default:this.out.log(i);break}}}}function g(){let e="X-SignalR-User-Agent";return l.isNode&&(e="User-Agent"),[e,v(o,b(),w(),y())]}function v(e,t,i,n){let a="Microsoft SignalR/";const r=e.split(".");return a+=`${r[0]}.${r[1]}`,a+=` (${e}; `,a+=t&&""!==t?t+"; ":"Unknown OS; ",a+=""+i,a+=n?"; "+n:"; Unknown Runtime Version",a+=")",a}function b(){if(!l.isNode)return"";switch(e.platform){case"win32":return"Windows NT";case"darwin":return"macOS";case"linux":return"Linux";default:return e.platform}}function y(){if(l.isNode)return e.versions.node}function w(){return l.isNode?"NodeJS":"Browser"}function _(e){return e.stack?e.stack:e.message?e.message:""+e}function I(){if("undefined"!==typeof globalThis)return globalThis;if("undefined"!==typeof self)return self;if("undefined"!==typeof window)return window;if("undefined"!==typeof n)return n;throw new Error("could not find global")}}).call(this,i("4362"),i("c8ba"))},"7ee3":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",[i("div",{staticClass:"search"},[i("span",{staticStyle:{"margin-left":"auto"}},[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.handleAdd}},[e._v("\n Add\n ")])],1)]),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:45},expression:"{bottomOffset:45}"}],staticStyle:{width:"100%"},attrs:{data:e.list,stripe:"",height:"100"}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Code",label:"编号",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Name",label:"场景类型","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Value",label:"签名内容(EN)","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ValueCN",label:"签名内容(CN)","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"UpdateTime",label:"更新时间","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:"创建时间","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{label:"Action",width:"200",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("\n Edit\n ")]),e._v(" "),i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("Delete")])]}}])})],1),e._v(" "),e.editVisible?i("el-dialog",{attrs:{visible:e.editVisible,"close-on-click-modal":!1,title:e.title,width:"700px","append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.editVisible=t}}},[i("SceneConfigForm",{attrs:{"parent-id":e.parentId,data:e.rowData},on:{closeDialog:e.closeDialog,getList:e.getList}})],1):e._e()],1)},a=[],r=(i("20d6"),i("db72")),o=i("e56e"),s=i("f36a"),l=i("3e8b"),c={name:"SignTemplate",components:{BoxContent:s["default"],SceneConfigForm:l["default"]},props:{parentId:{type:String,required:!0}},data:function(){return{loading:!1,list:[],rowData:{},title:"",editVisible:!1}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0,Object(o["Y"])(this.parentId).then((function(t){e.loading=!1,e.list=t.Result})).catch((function(){e.loading=!1}))},handleAdd:function(){this.rowData={},this.title="Add",this.editVisible=!0},handleEdit:function(e){this.rowData=Object(r["a"])({},e),this.title="Edit",this.editVisible=!0},handleDelete:function(e){var t=this;this.$confirm("Sure to delete?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){Object(o["P"])(e.Id).then((function(i){i.IsSuccess&&(t.list.splice(t.list.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success("Deleted successfully!"))}))}))},closeDialog:function(){this.editVisible=!1}}},u=c,d=i("2877"),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},"7eeb":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"base-model-wrapper"},[e.config.visible?i("el-dialog",{directives:[{name:"dialogDrag",rawName:"v-dialogDrag"}],attrs:{title:e.config.title,"append-to-body":e.config.appendToBody,visible:e.config.visible,"close-on-click-modal":!1,"show-close":e.config.showClose,width:e.config.width,fullscreen:e.config.fullscreen},on:{"update:visible":function(t){return e.$set(e.config,"visible",t)}}},[i("div",{staticClass:"base-modal-body"},[e._t("dialog-body")],2),e._v(" "),i("div",{staticClass:"base-modal-footer",attrs:{slot:"footer"},slot:"footer"},[e._t("dialog-footer")],2)]):e._e()],1)},a=[],r={name:"BaseDialog",props:{config:{type:Object,default:function(){return{visible:!1,title:"",closeOnClickModal:!1,showClose:!0,appendToBody:!1,width:"100px",fullscreen:!1}}}}},o=r,s=(i("ebc9"),i("2877")),l=Object(s["a"])(o,n,a,!1,null,null,null);t["default"]=l.exports},"7f1c":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"specialty-info"},[i("el-form",{staticClass:"demo-form-inline",attrs:{model:e.specialty,size:"small"}},[i("el-form-item",{attrs:{label:"Specialty:"}},[e.isEnglish?i("span",[e._v(e._s(e.specialty.Speciality))]):i("span",[e._v(e._s(e.specialty.SpecialityCN))])]),e._v(" "),i("el-form-item",{attrs:{label:"Subspeciality:"}},[e.isEnglish?i("span",[e._v(e._s(e.specialty.Subspeciality))]):i("span",[e._v(e._s(e.specialty.SubspecialityCNList))])]),e._v(" "),i("el-form-item",{attrs:{label:"Modality:"}},[e.isEnglish?i("span",[e._v(e._s(e.specialty.ReadingType))]):i("span",[e._v(e._s(e.specialty.ReadingTypeCNList))])])],1)],1)},a=[],r={props:{specialty:{type:Object,default:function(){return{}}},isEnglish:{type:Boolean}}},o=r,s=(i("62bc"),i("2877")),l=Object(s["a"])(o,n,a,!1,null,null,null);t["default"]=l.exports},"7f59":function(e,t,i){var n=i("4e08"),a=(n.__DEV__,i("3eba")),r=i("6d8b"),o=i("e0d3"),s=i("2306"),l=i("f934"),c=i("3842"),u=c.parsePercent,d={path:null,compoundPath:null,group:s.Group,image:s.Image,text:s.Text};a.registerPreprocessor((function(e){var t=e.graphic;r.isArray(t)?t[0]&&t[0].elements?e.graphic=[e.graphic[0]]:e.graphic=[{elements:t}]:t&&!t.elements&&(e.graphic=[{elements:[t]}])}));var f=a.extendComponentModel({type:"graphic",defaultOption:{elements:[],parentId:null},_elOptionsToUpdate:null,mergeOption:function(e){var t=this.option.elements;this.option.elements=null,f.superApply(this,"mergeOption",arguments),this.option.elements=t},optionUpdated:function(e,t){var i=this.option,n=(t?i:e).elements,a=i.elements=t?[]:i.elements,s=[];this._flatten(n,s);var l=o.mappingToExists(a,s);o.makeIdAndName(l);var c=this._elOptionsToUpdate=[];r.each(l,(function(e,t){var i=e.option;i&&(c.push(i),v(e,i),b(a,t,i),y(a[t],i))}),this);for(var u=a.length-1;u>=0;u--)null==a[u]?a.splice(u,1):delete a[u].$action},_flatten:function(e,t,i){r.each(e,(function(e){if(e){i&&(e.parentOption=i),t.push(e);var n=e.children;"group"===e.type&&n&&this._flatten(n,t,e),delete e.children}}),this)},useElOptionsToUpdate:function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e}});function h(e,t,i,n){var a=i.type,r=d.hasOwnProperty(a)?d[a]:s.getShapeClass(a),o=new r(i);t.add(o),n.set(e,o),o.__ecGraphicId=e}function p(e,t){var i=e&&e.parent;i&&("group"===e.type&&e.traverse((function(e){p(e,t)})),t.removeKey(e.__ecGraphicId),i.remove(e))}function m(e){return e=r.extend({},e),r.each(["id","parentId","$action","hv","bounding"].concat(l.LOCATION_PARAMS),(function(t){delete e[t]})),e}function g(e,t){var i;return r.each(t,(function(t){null!=e[t]&&"auto"!==e[t]&&(i=!0)})),i}function v(e,t){var i=e.exist;if(t.id=e.keyInfo.id,!t.type&&i&&(t.type=i.type),null==t.parentId){var n=t.parentOption;n?t.parentId=n.id:i&&(t.parentId=i.parentId)}t.parentOption=null}function b(e,t,i){var n=r.extend({},i),a=e[t],o=i.$action||"merge";"merge"===o?a?(r.merge(a,n,!0),l.mergeLayoutParam(a,n,{ignoreSize:!0}),l.copyLayoutParams(i,a)):e[t]=n:"replace"===o?e[t]=n:"remove"===o&&a&&(e[t]=null)}function y(e,t){e&&(e.hv=t.hv=[g(t,["left","right"]),g(t,["top","bottom"])],"group"===e.type&&(null==e.width&&(e.width=t.width=0),null==e.height&&(e.height=t.height=0)))}function w(e,t,i){var n=e.eventData;e.silent||e.ignore||n||(n=e.eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),n&&(n.info=e.info)}a.extendComponentView({type:"graphic",init:function(e,t){this._elMap=r.createHashMap(),this._lastGraphicModel},render:function(e,t,i){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,i)},_updateElements:function(e){var t=e.useElOptionsToUpdate();if(t){var i=this._elMap,n=this.group;r.each(t,(function(t){var a=t.$action,r=t.id,o=i.get(r),s=t.parentId,l=null!=s?i.get(s):n,c=t.style;"text"===t.type&&c&&(t.hv&&t.hv[1]&&(c.textVerticalAlign=c.textBaseline=null),!c.hasOwnProperty("textFill")&&c.fill&&(c.textFill=c.fill),!c.hasOwnProperty("textStroke")&&c.stroke&&(c.textStroke=c.stroke));var u=m(t);a&&"merge"!==a?"replace"===a?(p(o,i),h(r,l,u,i)):"remove"===a&&p(o,i):o?o.attr(u):h(r,l,u,i);var d=i.get(r);d&&(d.__ecGraphicWidthOption=t.width,d.__ecGraphicHeightOption=t.height,w(d,e,t))}))}},_relocate:function(e,t){for(var i=e.option.elements,n=this.group,a=this._elMap,r=t.getWidth(),o=t.getHeight(),s=0;s<i.length;s++){var c=i[s],d=a.get(c.id);if(d&&d.isGroup){var f=d.parent,h=f===n;d.__ecGraphicWidth=u(d.__ecGraphicWidthOption,h?r:f.__ecGraphicWidth)||0,d.__ecGraphicHeight=u(d.__ecGraphicHeightOption,h?o:f.__ecGraphicHeight)||0}}for(s=i.length-1;s>=0;s--){c=i[s],d=a.get(c.id);if(d){f=d.parent;var p=f===n?{width:r,height:o}:{width:f.__ecGraphicWidth,height:f.__ecGraphicHeight};l.positionElement(d,c,p,null,{hv:c.hv,boundingMode:c.bounding})}}},_clear:function(){var e=this._elMap;e.each((function(t){p(t,e)})),this._elMap=r.createHashMap()},dispose:function(){this._clear()}})},"7f72":function(e,t,i){i("6932"),i("3a56"),i("7dcf"),i("a18f"),i("32a1"),i("2c17"),i("9e87")},"7f7d":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("base-model",{attrs:{config:e.template_model}},[i("template",{slot:"dialog-body"},[i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"templateForm",staticClass:"demo-ruleForm",attrs:{rules:e.rules,model:e.form,"label-width":"100px",size:"small"}},[i("el-form-item",{attrs:{label:"Name: ",prop:"Name"}},[i("el-input",{model:{value:e.form.Name,callback:function(t){e.$set(e.form,"Name",t)},expression:"form.Name"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Modality: ",prop:"ModalityId"}},[i("el-select",{staticStyle:{width:"100%"},model:{value:e.form.ModalityId,callback:function(t){e.$set(e.form,"ModalityId",t)},expression:"form.ModalityId"}},e._l(e.readingType,(function(e,t){return i("el-option",{key:e,attrs:{label:e,value:t}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Description: ",prop:"Description"}},[i("el-input",{attrs:{type:"textarea",rows:5},model:{value:e.form.Description,callback:function(t){e.$set(e.form,"Description",t)},expression:"form.Description"}})],1)],1)],1),e._v(" "),i("template",{slot:"dialog-footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){e.template_model.visible=!1}}},[e._v("Cancel")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleSave}},[e._v("Save")])],1)],2)},a=[],r=i("db72"),o=(i("ac6a"),i("456d"),i("96cf"),i("3b8d")),s=i("e56e"),l=i("aaf3"),c=i("7eeb"),u=i("86a6"),d={name:"TemplateForm",components:{BaseModel:c["default"]},props:{data:{type:Object,default:function(){return{}}}},data:function(){return{readingType:{},template_model:l["h"],form:{Name:"",ModalityId:[],Description:""},rules:{Name:[{required:!0,message:"Please specify",trigger:"blur"},{max:50,message:"The maximum length is 50"}],ModalityId:[{required:!0,message:"Please specify",trigger:"blur"}],Description:[{max:500,message:"The maximum length is 500"}]},btnLoading:!1,loading:!1,dictionaryList:{}}},mounted:function(){this.initForm()},methods:{handleSave:function(){var e=this;this.$refs.templateForm.validate((function(t){t&&(e.btnLoading=!0,e.template_model.showClose=!1,Object(s["l"])(e.form).then((function(t){e.$message.success("Saved successfully!"),e.btnLoading=!1,e.$refs["templateForm"].resetFields(),e.$emit("close"),e.template_model.showClose=!0})).catch((function(){e.btnLoading=!1,e.template_model.showClose=!0})))}))},initForm:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getDicData();case 2:Object.keys(this.data).length&&this.data.Id&&(this.form=Object(r["a"])({},this.data));case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getDicData:function(){var e=this;this.loading=!0,Object(u["c"])(["ReadingType"]).then((function(t){var i=Object(r["a"])({},t.Result),n=i.ReadingType;e.readingType=n||{},e.loading=!1})).catch((function(){e.loading=!1}))}}},f=d,h=i("2877"),p=Object(h["a"])(f,n,a,!1,null,null,null);t["default"]=p.exports},"7f91":function(e,t,i){var n=i("2306"),a=i("401b"),r=n.Line.prototype,o=n.BezierCurve.prototype;function s(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var l=n.extendShape({type:"ec-line",style:{stroke:"#000",fill:null},shape:{x1:0,y1:0,x2:0,y2:0,percent:1,cpx1:null,cpy1:null},buildPath:function(e,t){this[s(t)?"_buildPathLine":"_buildPathCurve"](e,t)},_buildPathLine:r.buildPath,_buildPathCurve:o.buildPath,pointAt:function(e){return this[s(this.shape)?"_pointAtLine":"_pointAtCurve"](e)},_pointAtLine:r.pointAt,_pointAtCurve:o.pointAt,tangentAt:function(e){var t=this.shape,i=s(t)?[t.x2-t.x1,t.y2-t.y1]:this._tangentAtCurve(e);return a.normalize(i,i)},_tangentAtCurve:o.tangentAt});e.exports=l},"7f96":function(e,t,i){var n=i("6d8b"),a=n.isFunction;function r(e,t,i){return{seriesType:e,performRawSeries:!0,reset:function(e,n,r){var o=e.getData(),s=e.get("symbol"),l=e.get("symbolSize"),c=e.get("symbolKeepAspect"),u=e.get("symbolRotate"),d=a(s),f=a(l),h=a(u),p=d||f||h,m=!d&&s?s:t,g=f?null:l;if(o.setVisual({legendSymbol:i||m,symbol:m,symbolSize:g,symbolKeepAspect:c,symbolRotate:u}),!n.isSeriesFiltered(e))return{dataEach:o.hasItemOption||p?v:null};function v(t,i){if(p){var n=e.getRawValue(i),a=e.getDataParams(i);d&&t.setItemVisual(i,"symbol",s(n,a)),f&&t.setItemVisual(i,"symbolSize",l(n,a)),h&&t.setItemVisual(i,"symbolRotate",u(n,a))}if(t.hasItemOption){var r=t.getItemModel(i),o=r.getShallow("symbol",!0),c=r.getShallow("symbolSize",!0),m=r.getShallow("symbolRotate",!0),g=r.getShallow("symbolKeepAspect",!0);null!=o&&t.setItemVisual(i,"symbol",o),null!=c&&t.setItemVisual(i,"symbolSize",c),null!=m&&t.setItemVisual(i,"symbolRotate",m),null!=g&&t.setItemVisual(i,"symbolKeepAspect",g)}}}}}e.exports=r},"7fa2":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"role-menu-wrapper"},[i("div",{staticClass:"left"},[i("el-tree",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"menuTree",attrs:{data:e.treeData,"show-checkbox":"","node-key":"Id","highlight-current":"",props:e.defaultProps,"expand-on-click-node":!1,"default-expanded-keys":e.expandedKeys},on:{check:e.handleCheck,"node-click":e.handleNodeClick}})],1),e._v(" "),i("div",{staticClass:"right"},[i("RoleFunction",{ref:"roleFunction"})],1)])},a=[],r=(i("ac6a"),i("50fc")),o=i("9859"),s={name:"RoleMenu",components:{RoleFunction:o["default"]},data:function(){return{defaultProps:{label:"MenuName",children:"Children"},treeData:[],loading:!1,expandedKeys:[]}},methods:{getMenus:function(e){var t=this;this.roleId=e,this.expandedKeys=[],this.treeData=[],this.loading=!0,this.$refs["roleFunction"].resetTable(),Object(r["k"])(e).then((function(e){t.loading=!1,t.treeData=e.Result,t.expandedKeys.push(e.Result[0].Id),t.selectedArr=[],t.$nextTick((function(){var e=this,t=this.setNodeChecked(this.treeData);t.forEach((function(t){e.$refs.menuTree.setChecked(t,!0,!1),e.expandedKeys.push(t)}))}))})).catch((function(){t.loading=!1}))},handleCheck:function(e,t){var i=this,n=[],a=t.checkedNodes,o=t.halfCheckedNodes;o.forEach((function(e){n.push(e.Id)})),a.forEach((function(e){n.push(e.Id)}));var s={roleId:this.roleId,menuFunctionId:n};Object(r["u"])(s).then((function(e){e.IsSuccess&&i.$message.success("Updated successfully")}))},handleNodeClick:function(e){this.$refs["roleFunction"].getFunctions(this.roleId,e.Id)},setNodeChecked:function(e){for(var t in e)e[t].IsSelect&&this.selectedArr.push(e[t].Id),e[t].Children&&e[t].Children.length&&this.setNodeChecked(e[t].Children);return this.selectedArr}}},l=s,c=(i("882f"),i("2877")),u=Object(c["a"])(l,n,a,!1,null,"af966c3c",null);t["default"]=u.exports},"7faa":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[i("div",{staticClass:"search-form",staticStyle:{"text-align":"right"}},[e.isConfirm||e.isFromSystem?e._e():i("el-button",{attrs:{size:"mini",type:"primary"},on:{click:e.handleAdd}},[e._v("\n 新增\n ")])],1),e._v(" "),i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"}],attrs:{data:e.list,size:"small",height:"100"}},[i("el-table-column",{attrs:{prop:"ShowOrder",label:"序号","min-width":"70"}}),e._v(" "),i("el-table-column",{attrs:{prop:"QuestionName",label:e.$t("trials:readingUnit:qsList:title:qsName"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"QuestionEnName",label:e.$t("trials:readingUnit:qsList:title:qsNameEn"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Type",label:e.$t("trials:readingUnit:qsList:title:type"),"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("Criterion_Question_Type",t.row.Type))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsRequired",label:e.$t("trials:readingUnit:qsList:title:isRequired"),"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("QuestionRequired",t.row.IsRequired))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ShowQuestion",label:e.$t("trials:readingUnit:qsList:title:isShow"),"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("ShowQuestion",t.row.ShowQuestion))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsJudgeQuestion",label:e.$t("trials:readingUnit:qsList:title:isJudgeQuestion"),width:"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("YesOrNo",t.row.IsJudgeQuestion))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsShowInDicom",label:e.$t("trials:readingUnit:qsList:title:isShowInDicom"),width:"140","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("YesOrNo",t.row.IsShowInDicom))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"GlobalReadingShowType",label:e.$t("trials:readingUnit:qsList:title:globalReadingShowType"),width:"160","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("GlobalReadingShowType",t.row.GlobalReadingShowType))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"LimitEdit",label:e.$t("trials:readingUnit:qsList:title:limitEdit"),width:"160","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("LimitEdit",t.row.LimitEdit))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Remark",label:e.$t("trials:readingUnit:qsList:title:Remark"),width:"140","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"",label:"操作",width:"150","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e.isConfirm||e.isFromSystem?i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(i){return e.handleLook(t.row)}}},[e._v("\n 查看\n ")]):i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("\n 编辑\n ")]),e._v(" "),e.isConfirm||e.isFromSystem?e._e():i("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("\n 删除\n ")])]}}])})],1),e._v(" "),e.addOrEdit.visible?i("el-dialog",{attrs:{visible:e.addOrEdit.visible,"close-on-click-modal":!1,title:e.addOrEdit.title,width:"600px","append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){return e.$set(e.addOrEdit,"visible",t)}}},[i("TableQsForm",{ref:"addOrEdit",attrs:{data:e.rowData,list:e.list,type:e.type,"is-from-system":e.isFromSystem,"digit-places":e.digitPlaces,"reading-question-id":e.readingQuestionId,"criterion-id":e.criterionId},on:{close:function(t){e.addOrEdit.visible=!1},getList:e.getList}})],1):e._e()],1)},a=[],r=i("db72"),o=(i("c5f6"),i("3e42")),s=i("a73c1"),l=function(){return{QuestionName:""}},c={name:"TableQsList",components:{TableQsForm:s["default"]},props:{digitPlaces:{type:Number,default:function(){return 0}},readingQuestionId:{type:String,required:!0},isConfirm:{type:Boolean,required:!0},isFromSystem:{type:Boolean,required:!0},criterionId:{type:String,required:!0}},data:function(){return{searchData:l(),list:[],total:0,loading:!1,rowData:{},addOrEdit:{visible:!1,title:""},type:null}},mounted:function(){this.getList(),console.log(this.isFromSystem)},methods:{getList:function(){var e=this;this.loading=!0,Object(o["cd"])({readingQuestionId:this.readingQuestionId}).then((function(t){e.loading=!1,e.list=t.Result})).catch((function(){e.loading=!1}))},handleAdd:function(){this.rowData={},this.type="add",this.addOrEdit.title="添加",this.addOrEdit.visible=!0},handleEdit:function(e){this.rowData=Object(r["a"])({},e),this.type="edit",this.addOrEdit.title="编辑",this.addOrEdit.visible=!0},handleLook:function(e){this.rowData=Object(r["a"])({},e),this.type="look",this.addOrEdit.title="编辑",this.addOrEdit.visible=!0},handleDelete:function(e){var t=this;this.$confirm("是否确认删除?",{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.loading=!0,Object(o["vb"])(e.Id).then((function(e){t.loading=!1,e.IsSuccess&&(t.getList(),t.$message.success("删除成功!"))})).catch((function(){t.loading=!1}))}))},handleSearch:function(){this.getList()},handleReset:function(){this.searchData=l(),this.getList()}}},u=c,d=i("2877"),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},8026:function(e,t,i){"use strict";i("289d")},"807f":function(e,t,i){},"80c8":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:0},expression:"{bottomOffset:0}"}],staticStyle:{width:"100%"},attrs:{height:"100",data:e.list,stripe:""}},[i("el-table-column",{attrs:{prop:"",label:"",width:"50"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.$index+1)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ValueCN",label:e.$t("trials:readingUnit:baseDataCfg:title:dictValCN"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Value",label:e.$t("trials:readingUnit:baseDataCfg:title:dictValEN"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Description",label:e.$t("trials:readingUnit:baseDataCfg:title:dictValDesc"),"show-overflow-tooltip":""}})],1),e._v(" "),e.config.visible?i("el-dialog",{attrs:{visible:e.config.visible,"close-on-click-modal":!1,title:e.config.title,width:"90%","append-to-body":""},on:{"update:visible":function(t){return e.$set(e.config,"visible",t)}}},[i("div",[i("div",{staticStyle:{"text-align":"right"}},[i("el-button",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{size:"mini",type:"primary"},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:100},expression:"{bottomOffset:100}"}],ref:"multipleTable",attrs:{height:"100",data:e.$d[e.parentCode],stripe:""},on:{"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),i("el-table-column",{attrs:{prop:"raw.ValueCN",label:e.$t("trials:readingUnit:baseDataCfg:title:dictValCN"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"raw.Value",label:e.$t("trials:readingUnit:baseDataCfg:title:dictValEN"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"raw.Description",label:e.$t("trials:readingUnit:baseDataCfg:title:dictValDesc"),"show-overflow-tooltip":""}})],1)],1)]):e._e()],1)},a=[],r=(i("ac6a"),i("e56e")),o={props:{criterionId:{type:String,required:!0},parentCode:{type:String,required:!0}},data:function(){return{list:[],total:0,loading:!1,rowData:{},activeName:"0",addOrEdit:{visible:!1,title:""},config:{visible:!1,title:this.$t("trials:readingUnit:baseDataCfg:title:dictVal")},selectedList:[]}},mounted:function(){this.getList()},methods:{toggleSelection:function(e){var t=this;e?e.forEach((function(e){t.$refs.multipleTable.toggleRowSelection(e)})):this.$refs.multipleTable.clearSelection()},handleSelectionChange:function(e){this.selectedList=e},getList:function(){var e=this;this.loading=!0,Object(r["T"])({CriterionId:this.criterionId,ParentCode:this.parentCode}).then((function(t){e.loading=!1,e.list=t.Result}))},handleSave:function(){var e=this;this.loading=!0;var t={CriterionId:this.criterionId,ParentCode:this.parentCode,DictionaryIds:this.selectedList.map((function(e){return e.id})),isSystemCriterion:!0};Object(r["Ib"])(t).then((function(t){e.loading=!1,e.$message.success(e.$t("common:message:savedSuccessfully")),e.selectedList=[],e.getList(),e.$emit("getList")})).catch((function(){}))},handleDelete:function(){}}},s=o,l=(i("e6c9"),i("2877")),c=Object(l["a"])(s,n,a,!1,null,"f85ca8a2",null);t["default"]=c.exports},"80cd":function(e,t,i){"use strict";i("2824")},"80f0":function(e,t){function i(e){return e}function n(e,t,n,a,r){this._old=e,this._new=t,this._oldKeyGetter=n||i,this._newKeyGetter=a||i,this.context=r}function a(e,t,i,n,a){for(var r=0;r<e.length;r++){var o="_ec_"+a[n](e[r],r),s=t[o];null==s?(i.push(o),t[o]=r):(s.length||(t[o]=s=[s]),s.push(r))}}n.prototype={constructor:n,add:function(e){return this._add=e,this},update:function(e){return this._update=e,this},remove:function(e){return this._remove=e,this},execute:function(){var e=this._old,t=this._new,i={},n={},r=[],o=[];for(a(e,i,r,"_oldKeyGetter",this),a(t,n,o,"_newKeyGetter",this),u=0;u<e.length;u++){var s=r[u],l=n[s];if(null!=l){var c=l.length;c?(1===c&&(n[s]=null),l=l.shift()):n[s]=null,this._update&&this._update(l,u)}else this._remove&&this._remove(u)}for(var u=0;u<o.length;u++){s=o[u];if(n.hasOwnProperty(s)){l=n[s];if(null==l)continue;if(l.length){var d=0;for(c=l.length;d<c;d++)this._add&&this._add(l[d])}else this._add&&this._add(l)}}}};var r=n;e.exports=r},"80f0f":function(e,t,i){"use strict";i("31bc")},8105:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dropdown",{staticStyle:{height:"50px","line-height":"60px"},on:{command:e.handleSetLanguage}},[i("span",{staticClass:"el-dropdown-link"},[i("svg-icon",{staticStyle:{"font-size":"25px",margin:"0 10px"},attrs:{"icon-class":"language"}})],1),e._v(" "),i("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[i("el-dropdown-item",{attrs:{disabled:"zh"===e.language,command:"zh"}},[e._v("中文\n ")]),e._v(" "),i("el-dropdown-item",{attrs:{disabled:"en"===e.language,command:"en"}},[e._v("English\n ")])],1)],1)},a=[],r=i("db72"),o=i("2f62"),s={name:"TopLang",data:function(){return{}},computed:Object(r["a"])({},Object(o["b"])({language:"language"})),methods:Object(r["a"])(Object(r["a"])({},Object(o["c"])({setLanguage:"lang/setLanguage"})),{},{handleSetLanguage:function(e){this.$i18n.locale=e,this.setLanguage(e),this.$updateDictionary()}})},l=s,c=i("2877"),u=Object(c["a"])(l,n,a,!1,null,"4251e450",null);t["default"]=u.exports},"811f":function(e,t,i){"use strict";i("d3a3")},"815e":function(e,t,i){},"81ac":function(e,t,i){var n=i("f934"),a=i("6d8b"),r=i("e0d3"),o=r.groupData;function s(e,t,i){e.eachSeriesByType("sankey",(function(e){var i=e.get("nodeWidth"),n=e.get("nodeGap"),r=l(e,t);e.layoutInfo=r;var o=r.width,s=r.height,d=e.getGraph(),f=d.nodes,h=d.edges;u(f);var p=a.filter(f,(function(e){return 0===e.getLayout().value})),m=0!==p.length?0:e.get("layoutIterations"),g=e.get("orient"),v=e.get("nodeAlign");c(f,h,i,n,o,s,m,g,v)}))}function l(e,t){return n.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function c(e,t,i,n,a,r,o,s,l){d(e,t,i,a,r,s,l),g(e,t,r,a,n,o,s),D(e,s)}function u(e){a.each(e,(function(e){var t=k(e.outEdges,C),i=k(e.inEdges,C),n=e.getValue()||0,a=Math.max(t,i,n);e.setLayout({value:a},!0)}))}function d(e,t,i,n,a,r,o){for(var s=[],l=[],c=[],u=[],d=0,f=0,p=0;p<t.length;p++)s[p]=1;for(p=0;p<e.length;p++)l[p]=e[p].inEdges.length,0===l[p]&&c.push(e[p]);var g=-1;while(c.length){for(var v=0;v<c.length;v++){var b=c[v],y=b.hostGraph.data.getRawDataItem(b.dataIndex),w=null!=y.depth&&y.depth>=0;w&&y.depth>g&&(g=y.depth),b.setLayout({depth:w?y.depth:d},!0),"vertical"===r?b.setLayout({dy:i},!0):b.setLayout({dx:i},!0);for(var _=0;_<b.outEdges.length;_++){var I=b.outEdges[_],x=t.indexOf(I);s[x]=0;var S=I.node2,T=e.indexOf(S);0===--l[T]&&u.indexOf(S)<0&&u.push(S)}}++d,c=u,u=[]}for(p=0;p<s.length;p++)if(1===s[p])throw new Error("Sankey is a DAG, the original data has cycle!");var C=g>d-1?g:d-1;o&&"left"!==o&&h(e,o,r,C);f="vertical"===r?(a-i)/C:(n-i)/C;m(e,f,r)}function f(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return null!=t.depth&&t.depth>=0}function h(e,t,i,n){if("right"===t){var r=[],o=e,s=0;while(o.length){for(var l=0;l<o.length;l++){var c=o[l];c.setLayout({skNodeHeight:s},!0);for(var u=0;u<c.inEdges.length;u++){var d=c.inEdges[u];r.indexOf(d.node1)<0&&r.push(d.node1)}}o=r,r=[],++s}a.each(e,(function(e){f(e)||e.setLayout({depth:Math.max(0,n-e.getLayout().skNodeHeight)},!0)}))}else"justify"===t&&p(e,n)}function p(e,t){a.each(e,(function(e){f(e)||e.outEdges.length||e.setLayout({depth:t},!0)}))}function m(e,t,i){a.each(e,(function(e){var n=e.getLayout().depth*t;"vertical"===i?e.setLayout({y:n},!0):e.setLayout({x:n},!0)}))}function g(e,t,i,n,a,r,o){var s=v(e,o);b(s,t,i,n,a,o),y(s,a,i,n,o);for(var l=1;r>0;r--)l*=.99,w(s,l,o),y(s,a,i,n,o),R(s,l,o),y(s,a,i,n,o)}function v(e,t){var i=[],n="vertical"===t?"y":"x",r=o(e,(function(e){return e.getLayout()[n]}));return r.keys.sort((function(e,t){return e-t})),a.each(r.keys,(function(e){i.push(r.buckets.get(e))})),i}function b(e,t,i,n,r,o){var s=1/0;a.each(e,(function(e){var t=e.length,l=0;a.each(e,(function(e){l+=e.getLayout().value}));var c="vertical"===o?(n-(t-1)*r)/l:(i-(t-1)*r)/l;c<s&&(s=c)})),a.each(e,(function(e){a.each(e,(function(e,t){var i=e.getLayout().value*s;"vertical"===o?(e.setLayout({x:t},!0),e.setLayout({dx:i},!0)):(e.setLayout({y:t},!0),e.setLayout({dy:i},!0))}))})),a.each(t,(function(e){var t=+e.getValue()*s;e.setLayout({dy:t},!0)}))}function y(e,t,i,n,r){var o="vertical"===r?"x":"y";a.each(e,(function(e){var a,s,l;e.sort((function(e,t){return e.getLayout()[o]-t.getLayout()[o]}));for(var c=0,u=e.length,d="vertical"===r?"dx":"dy",f=0;f<u;f++)s=e[f],l=c-s.getLayout()[o],l>0&&(a=s.getLayout()[o]+l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),c=s.getLayout()[o]+s.getLayout()[d]+t;var h="vertical"===r?n:i;if(l=c-t-h,l>0)for(a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0),c=a,f=u-2;f>=0;--f)s=e[f],l=s.getLayout()[o]+s.getLayout()[d]+t-c,l>0&&(a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),c=s.getLayout()[o]}))}function w(e,t,i){a.each(e.slice().reverse(),(function(e){a.each(e,(function(e){if(e.outEdges.length){var n=k(e.outEdges,_,i)/k(e.outEdges,C,i);if(isNaN(n)){var a=e.outEdges.length;n=a?k(e.outEdges,I,i)/a:0}if("vertical"===i){var r=e.getLayout().x+(n-T(e,i))*t;e.setLayout({x:r},!0)}else{var o=e.getLayout().y+(n-T(e,i))*t;e.setLayout({y:o},!0)}}}))}))}function _(e,t){return T(e.node2,t)*e.getValue()}function I(e,t){return T(e.node2,t)}function x(e,t){return T(e.node1,t)*e.getValue()}function S(e,t){return T(e.node1,t)}function T(e,t){return"vertical"===t?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function C(e){return e.getValue()}function k(e,t,i){var n=0,a=e.length,r=-1;while(++r<a){var o=+t.call(e,e[r],i);isNaN(o)||(n+=o)}return n}function R(e,t,i){a.each(e,(function(e){a.each(e,(function(e){if(e.inEdges.length){var n=k(e.inEdges,x,i)/k(e.inEdges,C,i);if(isNaN(n)){var a=e.inEdges.length;n=a?k(e.inEdges,S,i)/a:0}if("vertical"===i){var r=e.getLayout().x+(n-T(e,i))*t;e.setLayout({x:r},!0)}else{var o=e.getLayout().y+(n-T(e,i))*t;e.setLayout({y:o},!0)}}}))}))}function D(e,t){var i="vertical"===t?"x":"y";a.each(e,(function(e){e.outEdges.sort((function(e,t){return e.node2.getLayout()[i]-t.node2.getLayout()[i]})),e.inEdges.sort((function(e,t){return e.node1.getLayout()[i]-t.node1.getLayout()[i]}))})),a.each(e,(function(e){var t=0,i=0;a.each(e.outEdges,(function(e){e.setLayout({sy:t},!0),t+=e.getLayout().dy})),a.each(e.inEdges,(function(e){e.setLayout({ty:i},!0),i+=e.getLayout().dy}))}))}e.exports=s},8222:function(e,t,i){"use strict";i("0417")},8288:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"add_reading-period-wrapper",staticStyle:{display:"flex",width:"100%",height:"100%"}},[i("div",{staticClass:"reading-period-form",staticStyle:{width:"400px",height:"100%","margin-right":"10px"}},[i("el-card",{staticStyle:{height:"571px"},attrs:{shadow:"never"}},[i("el-form",{ref:"addOrUpdatePR",attrs:{model:e.form,size:"small",rules:e.rules,"label-width":"100px"}},[i("el-form-item",{attrs:{label:e.$t("trials:rpManage:table:readingType")}},[i("el-input",{staticStyle:{width:"100%"},attrs:{disabled:""},model:{value:e.form.ReadingSetTypeName,callback:function(t){e.$set(e.form,"ReadingSetTypeName",t)},expression:"form.ReadingSetTypeName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:rpManage:table:readingName"),prop:"ReadingPeriodName"}},[i("el-input",{staticStyle:{width:"100%"},model:{value:e.form.ReadingPeriodName,callback:function(t){e.$set(e.form,"ReadingPeriodName",t)},expression:"form.ReadingPeriodName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:rpManage:table:subjectRange"),prop:"ReadingScope"}},[i("el-select",{staticStyle:{width:"100%"},model:{value:e.form.ReadingScope,callback:function(t){e.$set(e.form,"ReadingScope",t)},expression:"form.ReadingScope"}},e._l(e.$d.ReadingScopeEnum,(function(e,t){return i("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),1===e.form.ReadingScope?i("el-form-item",{attrs:{label:e.$t("trials:addRP:form:sites"),prop:"SiteIds"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",multiple:""},model:{value:e.form.SiteIds,callback:function(t){e.$set(e.form,"SiteIds",t)},expression:"form.SiteIds"}},e._l(e.siteOptions,(function(e,t){return i("el-option",{key:t,attrs:{label:e.TrialSiteCode,value:e.SiteId}})})),1)],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:addRP:form:condition"),prop:"DeadlineCondition"}},[i("el-radio-group",{staticStyle:{width:"100%"},on:{change:e.handleDeadlineCondition},model:{value:e.form.DeadlineCondition,callback:function(t){e.$set(e.form,"DeadlineCondition",t)},expression:"form.DeadlineCondition"}},[i("el-radio",{attrs:{label:0}},[e._v(e._s(e.$t("trials:rpManage:table:expirationDate")))]),e._v(" "),i("el-radio",{attrs:{label:1}},[e._v(e._s(e.$t("trials:rpManage:table:expirationVisit")))])],1)],1),e._v(" "),0===e.form.DeadlineCondition?i("el-form-item",{attrs:{label:e.$t("trials:rpManage:table:expirationDate"),prop:"ExpirationDate"}},[i("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date","value-format":"yyyy-MM-dd",format:"yyyy-MM-dd"},model:{value:e.form.ExpirationDate,callback:function(t){e.$set(e.form,"ExpirationDate",t)},expression:"form.ExpirationDate"}})],1):e._e(),e._v(" "),1===e.form.DeadlineCondition?i("el-form-item",{attrs:{label:e.$t("trials:rpManage:table:expirationVisit"),prop:"VisitStageId"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{clearable:""},on:{change:e.handleVisitChange},model:{value:e.form.VisitStageId,callback:function(t){e.$set(e.form,"VisitStageId",t)},expression:"form.VisitStageId"}},e._l(e.visitPlanOptions,(function(t){return i("el-option",{key:t.VisitStageId,attrs:{label:t.VisitName,value:t.VisitStageId}},[i("span",{staticStyle:{float:"left"}},[e._v(e._s(t.VisitName))])])})),1)],1):e._e(),e._v(" "),i("div",{staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.getRPList}},[e._v("\n "+e._s(e.$t("trials:addRP:button:createPR"))+"\n ")])],1)],1)],1)],1)],1),e._v(" "),i("div",{staticClass:"result-table",staticStyle:{flex:"1"}},[i("el-card",{attrs:{shadow:"never"}},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],ref:"prList",attrs:{data:e.list,stripe:"",height:"455"},on:{"selection-change":e.handleSelectChange}},[i("el-table-column",{attrs:{type:"selection",align:"left",width:"45"}}),e._v(" "),i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialSiteCode",label:e.$t("trials:linkedRP:table:siteCode")}}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode",label:e.$t("trials:linkedRP:table:subjectCode")}}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectVisitName",label:e.$t("trials:linkedRP:table:expirationVisit")}}),e._v(" "),i("el-table-column",{attrs:{prop:"LatestScanDate",label:e.$t("trials:linkedRP:table:latestScanDate")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.LatestScanDate?e.moment(t.row.LatestScanDate).format("YYYY-MM-DD"):"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ExpirationDate",label:e.$t("trials:linkedRP:table:expirationDate")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.ExpirationDate?e.moment(t.row.ExpirationDate).format("YYYY-MM-DD"):"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ReadingPeriodName",label:e.$t("trials:linkedRP:table:readingName")}}),e._v(" "),i("el-table-column",{attrs:{prop:"EffectOfTime",label:e.$t("trials:linkedRP:table:effectiveTime")}})],1),e._v(" "),i("div",{staticStyle:{"text-align":"right"}},[i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize,disabled:0===e.list.length},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getReadingReriodList}})],1),e._v(" "),i("div",{staticStyle:{"text-align":"right","padding-top":"10px"}},[i("el-button",{attrs:{size:"small",type:"primary",disabled:0===e.selectArr.length},on:{click:e.handleConfirm}},[e._v("\n "+e._s(e.$t("trials:addRP:button:confirmAddPR"))+"\n ")])],1)],1)],1)])},a=[],r=(i("ac6a"),i("456d"),i("96cf"),i("3b8d")),o=i("3e42"),s=i("333d"),l=i("c1df"),c=i.n(l),u=function(){return{PageIndex:1,PageSize:20}},d={name:"AddOrEditRP",components:{Pagination:s["default"]},props:{trialReadingCriterionId:{type:String,default:""},data:{type:Object,default:function(){return{}}}},data:function(){return{loading:!1,btnLoading:!1,visitPlanOptions:[],form:{Id:"",TrialId:"",ReadingSetType:null,ReadingSetTypeName:"",DeadlineCondition:0,ReadingPeriodName:"",ReadingScope:null,SiteIds:[],VisitStageId:"",ExpirationDate:"",ExpirationVisitNum:null,PlanCount:0},rules:{ReadingPeriodName:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"},{max:50,message:"".concat(this.$t("common:ruleMessage:maxLength")," 50")}],ReadingScope:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}],SiteIds:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}],DeadlineCondition:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}],ExpirationDate:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}],VisitStageId:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}]},siteOptions:[],trialId:"",listLoading:!1,list:[],selectArr:[],searchData:u(),total:0,moment:c.a}},mounted:function(){this.trialId=this.$route.query.trialId,this.initForm()},methods:{initForm:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,i,n,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.loading=!0,e.next=3,this.getSite();case 3:return t={trialId:this.trialId,readingPeriodSetId:Object.keys(this.data).length>0?this.data.Id:"",readingSetType:this.data.ReadingSetType,TrialReadingCriterionId:this.trialReadingCriterionId},e.next=6,Object(o["dd"])(t);case 6:if(i=e.sent,n=i.Result,this.visitPlanOptions=n,Object.keys(this.data).length>0){for(a in this.form)this.data.hasOwnProperty(a)&&(this.form[a]=this.data[a]);this.form.ReadingSetTypeName=this.$fd("ReadingSetType",this.data.ReadingSetType),this.form.DeadlineCondition=this.data.SubjectVisitName?1:0,this.form.Id&&this.getReadingPeriodCheckedResult()}this.form.TrialId=this.trialId,this.loading=!1;case 12:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getRPList:function(){var e=this;this.$refs.addOrUpdatePR.validate((function(t){t&&(e.btnLoading=!0,e.getReadingPeriodResult())}))},getReadingReriodList:function(){console.log(this.form),""===this.form.Id?this.getReadingPeriodResult():this.getReadingPeriodCheckedResult()},getReadingPeriodResult:function(){var e=this;this.listLoading=!0;var t={SiteIds:1===this.form.ReadingScope?this.form.SiteIds:[],TrialId:this.form.TrialId,ExpirationDate:this.form.ExpirationDate,ExpirationVisitNum:this.form.ExpirationVisitNum,VisitStageId:this.form.VisitStageId,ReadingPeriodName:this.form.ReadingPeriodName,ReadingSetType:this.form.ReadingSetType,ReadingScope:this.form.ReadingScope,TrialReadingCriterionId:this.trialReadingCriterionId};Object.assign(this.searchData,t),Object(o["Ac"])(this.searchData).then((function(t){e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount,e.listLoading=!1,e.btnLoading=!1})).catch((function(){e.listLoading=!1,e.btnLoading=!1}))},getReadingPeriodCheckedResult:function(){var e=this;this.listLoading=!0,this.searchData.ReadingPeriodSetId=this.form.Id,this.searchData.TrialReadingCriterionId=this.trialReadingCriterionId,Object(o["Bc"])(this.searchData).then((function(t){e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount,e.listLoading=!1,e.$nextTick((function(){for(var t=0;t<e.list.length;t++)e.$refs["prList"].toggleRowSelection(e.list[t],!0)}))})).catch((function(){e.listLoading=!1}))},handleSelectChange:function(e){for(var t=[],i=0;i<e.length;i++)t.push(e[i].SubjectVisitId);this.selectArr=t},handleConfirm:function(){var e=this;this.loading=!0;var t=Object.assign({},this.form);t.subjectVisitIds=this.selectArr,t.TrialReadingCriterionId=this.trialReadingCriterionId,Object(o["t"])(t).then((function(t){e.loading=!1,e.$emit("close"),e.$emit("getList"),e.$message.success(e.$t("common:message:savedSuccessfully"))})).catch((function(){e.loading=!1}))},handleVisitChange:function(e){var t=this.visitPlanOptions.filter((function(t){return t.VisitStageId===e}));t.length>0?this.form.ExpirationVisitNum=t[0].VisitNum:this.form.ExpirationVisitNum=null},handleDeadlineCondition:function(e){e?this.form.ExpirationDate="":(this.form.VisitStageId="",this.form.ExpirationVisitNum=null)},getSite:function(){var e=this;return new Promise((function(t,i){Object(o["Zd"])(e.trialId).then((function(i){e.siteOptions=i.Result,t()})).catch((function(){e.loading=!1,i()}))}))},close:function(){this.$emit("close")}}},f=d,h=i("2877"),p=Object(h["a"])(f,n,a,!1,null,null,null);t["default"]=p.exports},"82d6":function(e,t,i){},"82eb":function(e,t){var i={NONE:0,STYLE_BIND:1,PLAIN_TEXT:2},n=9;t.ContextCachedBy=i,t.WILL_BE_RESTORED=n},"82f9":function(e,t,i){var n=i("6d8b"),a=i("76a5"),r=i("2306");function o(e,t,i,n){e[0]=i,e[1]=n,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}function s(e){var t=this._zr=e.getZr();this._styleCoord=[0,0,0,0],o(this._styleCoord,t,e.getWidth()/2,e.getHeight()/2),this._show=!1,this._hideTimeout}s.prototype={constructor:s,_enterable:!0,update:function(e){var t=e.get("alwaysShowContent");t&&this._moveTooltipIfResized()},_moveTooltipIfResized:function(){var e=this._styleCoord[2],t=this._styleCoord[3],i=e*this._zr.getWidth(),n=t*this._zr.getHeight();this.moveTo(i,n)},show:function(e){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.attr("show",!0),this._show=!0},setContent:function(e,t,i){this.el&&this._zr.remove(this.el);var n={},o=e,s="{marker",l="|}",c=o.indexOf(s);while(c>=0){var u=o.indexOf(l),d=o.substr(c+s.length,u-c-s.length);d.indexOf("sub")>-1?n["marker"+d]={textWidth:4,textHeight:4,textBorderRadius:2,textBackgroundColor:t[d],textOffset:[3,0]}:n["marker"+d]={textWidth:10,textHeight:10,textBorderRadius:5,textBackgroundColor:t[d]},o=o.substr(u+1),c=o.indexOf("{marker")}var f=i.getModel("textStyle"),h=f.get("fontSize"),p=i.get("textLineHeight");null==p&&(p=Math.round(3*h/2)),this.el=new a({style:r.setTextStyle({},f,{rich:n,text:e,textBackgroundColor:i.get("backgroundColor"),textBorderRadius:i.get("borderRadius"),textFill:i.get("textStyle.color"),textPadding:i.get("padding"),textLineHeight:p}),z:i.get("z")}),this._zr.add(this.el);var m=this;this.el.on("mouseover",(function(){m._enterable&&(clearTimeout(m._hideTimeout),m._show=!0),m._inContent=!0})),this.el.on("mouseout",(function(){m._enterable&&m._show&&m.hideLater(m._hideDelay),m._inContent=!1}))},setEnterable:function(e){this._enterable=e},getSize:function(){var e=this.el.getBoundingRect();return[e.width,e.height]},moveTo:function(e,t){if(this.el){var i=this._styleCoord;o(i,this._zr,e,t),this.el.attr("position",[i[0],i[1]])}},hide:function(){this.el&&this.el.hide(),this._show=!1},hideLater:function(e){!this._show||this._inContent&&this._enterable||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(n.bind(this.hide,this),e)):this.hide())},isShow:function(){return this._show},dispose:function(){clearTimeout(this._hideTimeout),this.el&&this._zr.remove(this.el)},getOuterSize:function(){var e=this.getSize();return{width:e[0],height:e[1]}}};var l=s;e.exports=l},8344:function(e,t,i){var n=i("6d8b"),a=i("f706"),r=i("3842"),o=i("6179"),s=i("923d"),l=i("88f0");function c(e,t,i){var n=t.coordinateSystem;e.each((function(a){var o,s=e.getItemModel(a),l=r.parsePercent(s.get("x"),i.getWidth()),c=r.parsePercent(s.get("y"),i.getHeight());if(isNaN(l)||isNaN(c)){if(t.getMarkerPosition)o=t.getMarkerPosition(e.getValues(e.dimensions,a));else if(n){var u=e.get(n.dimensions[0],a),d=e.get(n.dimensions[1],a);o=n.dataToPoint([u,d])}}else o=[l,c];isNaN(l)||(o[0]=l),isNaN(c)||(o[1]=c),e.setItemLayout(a,o)}))}var u=l.extend({type:"markPoint",updateTransform:function(e,t,i){t.eachSeries((function(e){var t=e.markPointModel;t&&(c(t.getData(),e,i),this.markerGroupMap.get(e.id).updateLayout(t))}),this)},renderSeries:function(e,t,i,r){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new a),h=d(o,e,t);t.setData(h),c(t.getData(),e,r),h.each((function(e){var i=h.getItemModel(e),a=i.getShallow("symbol"),r=i.getShallow("symbolSize"),o=i.getShallow("symbolRotate"),s=n.isFunction(a),c=n.isFunction(r),u=n.isFunction(o);if(s||c||u){var d=t.getRawValue(e),f=t.getDataParams(e);s&&(a=a(d,f)),c&&(r=r(d,f)),u&&(o=o(d,f))}h.setItemVisual(e,{symbol:a,symbolSize:r,symbolRotate:o,color:i.get("itemStyle.color")||l.getVisual("color")})})),f.updateData(h),this.group.add(f.group),h.eachItemGraphicEl((function(e){e.traverse((function(e){e.dataModel=t}))})),f.__keep=!0,f.group.silent=t.get("silent")||e.get("silent")}});function d(e,t,i){var a;a=e?n.map(e&&e.dimensions,(function(e){var i=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return n.defaults({name:e},i)})):[{name:"value",type:"float"}];var r=new o(a,i),l=n.map(i.get("data"),n.curry(s.dataTransform,t));return e&&(l=n.filter(l,n.curry(s.dataFilter,e))),r.initData(l,null,e?s.dimValueGetter:function(e){return e.value}),r}e.exports=u},8377:function(e,t,i){"use strict";i("670a")},"83ba":function(e,t,i){var n=i("6d8b"),a=i("6cb7"),r=i("f934"),o=r.getLayoutParams,s=r.sizeCalculable,l=r.mergeLayoutParam,c=a.extend({type:"calendar",coordinateSystem:null,defaultOption:{zlevel:0,z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",nameMap:"en",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},init:function(e,t,i,n){var a=o(e);c.superApply(this,"init",arguments),u(e,a)},mergeOption:function(e,t){c.superApply(this,"mergeOption",arguments),u(this.option,e)}});function u(e,t){var i=e.cellSize;n.isArray(i)?1===i.length&&(i[1]=i[0]):i=e.cellSize=[i,i];var a=n.map([0,1],(function(e){return s(t,e)&&(i[e]="auto"),null!=i[e]&&"auto"!==i[e]}));l(e,t,{type:"box",ignoreSize:a})}var d=c;e.exports=d},"83f6":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"img-container"},[i("el-card",{staticClass:"box-card left"},[e.otherInfo&&e.otherInfo.IsReadingShowSubjectInfo?i("div",{staticClass:"title",staticStyle:{"text-align":"center"}},[i("span",[e._v(e._s(e.otherInfo.SubjectCode)+" ")]),e._v(" "),i("span",[e._v("("+e._s(e.otherInfo.TaskBlindName)+")")])]):e._e(),e._v(" "),i("div",{staticClass:"left-content",staticStyle:{height:"100%"}},e._l(e.studyList,(function(t,n){return i("div",{key:t.CodeView},[i("div",{staticClass:"study-desc"},[i("span",[e._v(e._s(t.CodeView))]),e._v(" "),i("span",{staticStyle:{margin:"0 5px"}},[e._v(e._s(t.Modality))]),e._v(" "),i("span",[e._v(e._s(t.BodyPart))])]),e._v(" "),0===t.NoneDicomStudyFileList.length?i("div",{staticClass:"empty-text"},[e._t("empty",[e._v("暂无数据")])],2):i("div",{staticStyle:{height:"100%"},attrs:{id:"imgList"}},e._l(t.NoneDicomStudyFileList,(function(t,a){return i("div",{key:t.Id,staticClass:"img-box",class:{"is-boxActive":t.Id===e.currentFileId},attrs:{id:"img"+t.Id},on:{click:function(i){return e.selected(t,n,a,!0)}}},[e._v("\n "+e._s(a+1+". "+t.FileName)+"\n ")])})),0)])})),0)]),e._v(" "),i("el-card",{staticClass:"box-card right"},[i("div",{staticStyle:{width:"100%",height:"100%"}},[e.previewImage.imgList.length>0?i("NoneDicomsViewer",{ref:"previewImage",staticStyle:{width:"100%"},attrs:{"preview-image":e.previewImage,value:e.currentStudyFileIndex,"reading-task-state":e.readingTaskState},on:{selectedImg:e.selectedImg}}):e._e()],1)])],1)},a=[],r=(i("20d6"),i("3e42")),o=i("a599"),s=i("4360"),l=i("64f9"),c={name:"VisitReview",components:{NoneDicomsViewer:l["default"]},data:function(){return{activeName:"first",currentFileId:"",currentStudyIndex:0,currentStudyFileIndex:0,pageSize:0,previewImage:{imgList:[],index:0,infinite:!0,popup:!0,studyCode:"",modality:"",bodyPart:"",studyId:""},previewVisible:!1,studyList:[],loading:!1,isRenderAssocicatedTasks:!1,associatedList:[],currentTaskId:"",otherInfo:null,isReadingShowPreviousResults:!1,trialId:"",subjectId:"",subjectCode:"",visistTaskId:"",taskBlindName:"",readingTaskState:2}},mounted:function(){this.$router.currentRoute.query.TokenKey&&(s["a"].dispatch("user/setToken",this.$router.currentRoute.query.TokenKey),Object(o["a"])("TokenKey","")),this.trialId=this.$router.currentRoute.query.trialId,this.subjectCode=this.$router.currentRoute.query.subjectCode,this.subjectId=this.$router.currentRoute.query.subjectId,this.visitTaskId=this.$router.currentRoute.query.visitTaskId,this.taskBlindName=this.$router.currentRoute.query.visitTaskId,this.readingTaskState=this.$router.currentRoute.query.readingTaskState?parseInt(this.$router.currentRoute.query.readingTaskState):2,this.getNoneDicomList()},methods:{getNoneDicomList:function(){var e=this;this.loading=!0;var t={subjectId:this.subjectId,trialId:this.trialId,visistTaskId:this.visitTaskId};Object(r["Oc"])(t).then((function(t){if(e.otherInfo=t.OtherInfo,t.Result.length>0){e.studyList=t.Result;var i=e.studyList.findIndex((function(e){return e.NoneDicomStudyFileList.length>0}));if(i>-1){var n=e.studyList[i]["NoneDicomStudyFileList"];e.selected(n[0],i,0,!0)}}e.loading=!1})).catch((function(){e.loading=!1}))},selected:function(e,t,i){var n=this,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];this.currentFileId=e.Id,this.currentStudyIndex=t,this.previewImage.imgList=this.studyList[t].NoneDicomStudyFileList,this.currentStudyFileIndex=i,this.previewImage.index=i,this.previewImage.studyCode=this.studyList[t].CodeView,this.previewImage.bodyPart=this.studyList[t].BodyPart,this.previewImage.modality=this.studyList[t].Modality,this.previewImage.studyId=this.studyList[t].Id,this.$nextTick((function(){a&&n.$refs["previewImage"].selected(i)}))},selectedImg:function(e){var t=this;this.studyList.length>0&&(this.currentStudyFileIndex=e,this.currentFileId=this.studyList[this.currentStudyIndex].NoneDicomStudyFileList[e].Id,this.previewImage.index=e,this.previewImage.studyCode=this.studyList[this.currentStudyIndex].CodeView,this.previewImage.bodyPart=this.studyList[this.currentStudyIndex].BodyPart,this.previewImage.modality=this.studyList[this.currentStudyIndex].Modality,this.$nextTick((function(){var e=document.getElementById("img".concat(t.currentFileId)),i=document.getElementsByClassName("left-content")[0];i.scrollTop=e.offsetTop-i.offsetTop})))},preview:function(){this.previewVisible=!0}}},u=c,d=(i("9c1f"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,"0f6d39ae",null);t["default"]=f.exports},8403:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("el-tabs",{attrs:{type:"border-card"},model:{value:e.TrialReadingCriterionId,callback:function(t){e.TrialReadingCriterionId=t},expression:"TrialReadingCriterionId"}},e._l(e.trialCriterionList,(function(t){return i("el-tab-pane",{key:t.TrialReadingCriterionId,attrs:{label:t.TrialReadingCriterionName,name:t.TrialReadingCriterionId}},[e.TrialReadingCriterionId===t.TrialReadingCriterionId?i("div",[i("div",{attrs:{slot:"search-container"},slot:"search-container"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:readingPeriod:table:siteCode")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:"",filterable:""},model:{value:e.searchData.TrialSiteCode,callback:function(t){e.$set(e.searchData,"TrialSiteCode",t)},expression:"searchData.TrialSiteCode"}},e._l(e.siteOptions,(function(e,t){return i("el-option",{key:t,attrs:{label:e.TrialSiteCode,value:e.TrialSiteCode}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:readingPeriod:table:subjectCode")}},[i("el-input",{staticStyle:{width:"100px"},attrs:{clearable:""},model:{value:e.searchData.SubjectCode,callback:function(t){e.$set(e.searchData,"SubjectCode",t)},expression:"searchData.SubjectCode"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:readingPeriod:table:readingType")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.ModuleType,callback:function(t){e.$set(e.searchData,"ModuleType",t)},expression:"searchData.ModuleType"}},e._l(e.$d.ModuleTypeEnum,(function(e){return i("el-option",{key:e.value,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:readingPeriod:table:readingSchedule")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.ReadingStatus,callback:function(t){e.$set(e.searchData,"ReadingStatus",t)},expression:"searchData.ReadingStatus"}},e._l(e.$d.ReadModuleEnum,(function(e){return i("el-option",{key:e.value,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:readingPeriod:table:readingName")}},[i("el-input",{staticStyle:{width:"100px"},attrs:{clearable:""},model:{value:e.searchData.Name,callback:function(t){e.$set(e.searchData,"Name",t)},expression:"searchData.Name"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-download"},on:{click:e.handleExportSubject}},[e._v("\n "+e._s(e.$t("trials:readingPeriod:buttton:exportSubjectTbl"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-download"},on:{click:e.handleExportPeriod}},[e._v("\n "+e._s(e.$t("trials:readingPeriod:buttton:exportPeriodTbl"))+"\n ")]),e._v(" "),e.ReadingInfoSignTime&&(e.otherInfo.IsClinicalReading||e.otherInfo.IsReadingPeriod)?i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:subject:readingPeriod:edit"],expression:"['trials:trials-panel:subject:readingPeriod:edit']"}],attrs:{type:"primary",icon:"el-icon-edit-outline"},on:{click:e.handleReadingPeriod}},[e._v("\n "+e._s(e.$t("trials:readingPeriod:button:rpManage"))+"\n ")]):e._e()],1)],1)],1),e._v(" "),i("div",{attrs:{slot:"main-container"},slot:"main-container"},[i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:75},expression:"{bottomOffset:75}"},{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"myTable",refInFor:!0,attrs:{data:e.list,stripe:"",height:"100","header-row-class-name":e.headerRowStyle,"cell-style":e.cellStyle},on:{"sort-change":e.handleSortChange}},[i("el-table-column",{attrs:{type:"index",width:"40",fixed:"left"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialSiteCode",label:e.$t("trials:readingPeriod:table:siteCode"),"min-width":"110",fixed:"left",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode",label:e.$t("trials:readingPeriod:table:subjectCode"),"min-width":"120",fixed:"left",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("trials:readingPeriod:table:readingPlan"),align:"center","min-width":"100"}},e._l(e.maxLength,(function(t){return i("el-table-column",{key:""+t,attrs:{prop:"Plan"+(t-1),label:"",width:"200","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(n){return[t<=n.row.Data.length?i("div",[i("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[i("div",[e._v(e._s(n.row.Data[t-1].Name)+"\n ")]),e._v(" "),i("div",[n.row.Data[t-1].IsEnrollmentConfirm?i("span",[e._v("\n | "+e._s(e.$t("trials:readingPeriod:table:enroll"))+"\n ")]):e._e(),e._v(" "),n.row.Data[t-1].PDState?i("span",[e._v("\n | "+e._s(e.$t("trials:readingPeriod:table:pd"))+"\n ")]):e._e(),e._v(" "),n.row.Data[t-1].IsUrgent?i("span",[e._v("\n | "+e._s(e.$t("trials:readingPeriod:table:urgent"))+"\n ")]):e._e(),e._v(" "),n.row.Data[t-1].IsFinalVisit?i("span",[e._v("\n | "+e._s(e.$t("trials:readingPeriod:table:finalVisit"))+"\n ")]):e._e()])]),e._v(" "),i("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[i("div",[e._v(e._s(e.$fd("ModuleTypeEnum",n.row.Data[t-1].ModuleType)))]),e._v(" "),i("div",[e._v("\n "+e._s(e.$fd("ReadModuleEnum",n.row.Data[t-1].ReadingStatus))+"\n ")])]),e._v(" "),1===n.row.Data[t-1].ModuleType?i("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[i("div",[e._v(e._s(e.$t("trials:readingPeriod:table:lastVisit")))]),e._v(" "),i("div",[e._v(e._s(n.row.Data[t-1].OutPlanPreviousVisitName)+" ")])]):e._e(),e._v(" "),2===n.row.Data[t-1].ModuleType||3===n.row.Data[t-1].ModuleType||5===n.row.Data[t-1].ModuleType?i("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[i("div",[e._v(e._s(e.$t("trials:readingPeriod:table:deadlineVisit")))]),e._v(" "),i("div",[e._v(e._s(n.row.Data[t-1].CutOffVisitName))])]):e._e(),e._v(" "),4===n.row.Data[t-1].ModuleType?i("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[i("div",[e._v(e._s(e.$t("trials:readingPeriod:table:correspondVisit")))]),e._v(" "),i("div",[e._v(e._s(n.row.Data[t-1].ReadModuleName))])]):e._e(),e._v(" "),i("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[i("div",[e._v("\n "+e._s(e.$t("trials:readingPeriod:table:clinicalInfo"))+"\n ")]),e._v(" "),n.row.Data[t-1].IsVisit&&e.otherInfo.IsExistsSubjectClinicalData&&n.row.Data[t-1].IsBaseLine||n.row.Data[t-1].IsVisit&&e.otherInfo.IsExistsVisitClinicalData||!n.row.Data[t-1].IsVisit&&e.otherInfo.IsExistsReadingClinicalData?i("div",[i("el-link",{attrs:{type:"danger"},on:{click:function(i){return e.handleView(n.row,n.row.Data[t-1])}}},[e._v("\n "+e._s(e.$t("trials:readingPeriod:button:view"))+"\n ")])],1):i("div",[i("span",[e._v(e._s(e.$t("trials:readingPeriod:table:noCD")))])])]),e._v(" "),i("div",[i("el-link",{on:{click:function(i){return e.handleDetail(n.row,n.row.Data[t-1])}}},[e._v("\n "+e._s(e.$t("trials:readingPeriod:button:detail"))+"\n ")]),e._v(" "),(3===n.row.Data[t-1].ModuleType||5===n.row.Data[t-1].ModuleType)&&n.row.Data[t-1].ReadingStatus<4?i("el-link",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:subject:readingPeriod:edit"],expression:"['trials:trials-panel:subject:readingPeriod:edit']"}],on:{click:function(i){return e.handleDelete(n.row.Data[t-1])}}},[e._v("\n "+e._s(e.$t("trials:readingPeriod:button:delete"))+"\n ")]):e._e()],1)]):e._e()]}}],null,!0)})})),1),e._v(" "),(e.otherInfo.IsReadingPeriod||e.otherInfo.IsClinicalReading)&&e.ReadingInfoSignTime&&e.hasPermi(["trials:trials-panel:subject:readingPeriod:edit"])?i("el-table-column",{attrs:{fixed:"right",label:e.$t("common:action:action"),width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.otherInfo.IsReadingPeriod?i("el-button",{attrs:{circle:"",title:e.$t("trials:readingPeriod:buttton:addSubjectImageRP"),icon:"el-icon-plus"},on:{click:function(i){return e.handleAdd(t.row,0)}}}):e._e(),e._v(" "),e.isClinicalReading?i("el-button",{attrs:{circle:"",title:e.$t("trials:readingPeriod:buttton:addSubjectOncologyRP"),icon:"el-icon-plus"},on:{click:function(i){return e.handleAdd(t.row,1)}}}):e._e()]}}],null,!0)}):e._e()],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}}),e._v(" "),e.dialogVisible?i("el-dialog",{attrs:{title:e.$t("trials:rpDetail:dialogTitle:detail"),visible:e.dialogVisible,width:"600px","close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("el-descriptions",{attrs:{column:2,border:""}},[i("el-descriptions-item",{attrs:{label:e.$t("trials:readingPeriod:table:readingName")}},[e._v("\n "+e._s(e.currentData.Name)+"\n ")]),e._v(" "),i("el-descriptions-item",{attrs:{label:e.$t("trials:readingPeriod:table:readingType")}},[e._v("\n "+e._s(e.$fd("ModuleTypeEnum",e.currentData.ModuleType))+"\n ")]),e._v(" "),i("el-descriptions-item",{attrs:{label:e.$t("trials:readingPeriod:table:readingSchedule")}},[e._v("\n "+e._s(e.$fd("ReadModuleEnum",e.currentData.ReadingStatus))+"\n ")]),e._v(" "),e.currentData.CutOffVisitName?i("el-descriptions-item",{attrs:{label:e.$t("trials:readingPeriod:table:deadlineVisit")}},[e._v("\n "+e._s(e.currentData.CutOffVisitName)+"\n ")]):e._e(),e._v(" "),e.currentData.OutPlanPreviousVisitName?i("el-descriptions-item",{attrs:{label:e.$t("trials:readingPeriod:table:lastVisit")}},[e._v("\n "+e._s(e.currentData.OutPlanPreviousVisitName)+"\n ")]):e._e(),e._v(" "),e.currentData.ReadModuleName?i("el-descriptions-item",{attrs:{label:e.$t("trials:readingPeriod:table:correspondVisit")}},[e._v("\n "+e._s(e.currentData.ReadModuleName)+"\n ")]):e._e(),e._v(" "),i("el-descriptions-item",{attrs:{label:e.$t("trials:readingPeriod:table:clinicalInfo")}},[e.currentData.IsVisit&&e.otherInfo.IsExistsSubjectClinicalData&&e.currentData.IsBaseLine||e.currentData.IsVisit&&e.otherInfo.IsExistsVisitClinicalData||!e.currentData.IsVisit&&e.otherInfo.IsExistsReadingClinicalData?[i("el-link",{on:{click:e.view}},[e._v(e._s(e.$t("trials:readingPeriod:button:view")))])]:[i("span",[e._v(e._s(e.$t("trials:readingPeriod:table:noCD")))])]],2),e._v(" "),i("el-descriptions-item",{attrs:{label:e.$t("trials:readingPeriod:table:stakeholder"),span:2}},[e._v("\n "+e._s(e.currentData.Stakeholders)+"\n ")])],1)],1):e._e(),e._v(" "),e.readPeriodVisible?i("el-dialog",{attrs:{title:e.$t("trials:rpManage:dialogTitle:setRP"),visible:e.readPeriodVisible,width:"1400px","close-on-click-modal":!1},on:{"update:visible":function(t){e.readPeriodVisible=t}}},[i("ReadingPeriod",{attrs:{"trial-id":e.trialId,"trial-reading-criterion-id":e.TrialReadingCriterionId,"is-clinical-reading":e.isClinicalReading,"is-global-reading":e.otherInfo.IsReadingPeriod},on:{getList:e.getList}})],1):e._e(),e._v(" "),e.clinicalDataVisible?i("el-dialog",{attrs:{title:e.$t("trials:readingPeriod:dialogTitle:clinicalData")+""+e.currentData.SubjectCode+"|"+e.currentData.Name+"|"+e.currentData.CriterionName+"",visible:e.clinicalDataVisible,"close-on-click-modal":!1,"append-to-body":""},on:{"update:visible":function(t){e.clinicalDataVisible=t}}},[i("ClinicalData",{attrs:{"trial-reading-criterion-id":e.TrialReadingCriterionId,"trial-id":e.trialId,data:e.currentData}})],1):e._e(),e._v(" "),e.subjectPeriod.visible?i("el-dialog",{attrs:{title:e.subjectPeriod.title,visible:e.subjectPeriod.visible,width:"500px","custom-class":"base-dialog-wrapper","close-on-click-modal":!1},on:{"update:visible":function(t){return e.$set(e.subjectPeriod,"visible",t)}}},[i("SubjectPR",{attrs:{"trial-reading-criterion-id":e.TrialReadingCriterionId,"trial-id":e.trialId,data:e.param},on:{close:function(t){e.subjectPeriod.visible=!1},getList:e.getList}})],1):e._e()],1)]):e._e()])})),1)],1)},a=[],r=(i("7514"),i("3e42")),o=i("3f2a"),s=i("6071"),l=i("333d"),c=i("f939"),u=i("ba63"),d=i("36b5"),f=function(){return{TrialSiteCode:"",SubjectCode:"",ModuleType:null,ReadingStatus:null,Name:"",PageIndex:1,PageSize:20}},h=10,p={name:"TrialsNotice",components:{BaseContainer:s["default"],Pagination:l["default"],ReadingPeriod:c["default"],ClinicalData:u["default"],SubjectPR:d["default"]},data:function(){return{searchData:f(),list:[],total:0,maxLength:0,loading:!1,dialogVisible:!1,readPeriodVisible:!1,clinicalDataVisible:!1,subjectPeriod:{visible:!1,title:this.$t("trials:readingPeriod:dialogTitle:addSubjectPR")},trialId:this.$route.query.trialId,currentData:{},param:{},siteOptions:[],isClinicalReading:!1,otherInfo:{},trialCriterionList:[],TrialReadingCriterionId:"0",ReadingInfoSignTime:null}},watch:{TrialReadingCriterionId:function(e){var t=this;e&&(this.getList(),this.ReadingInfoSignTime=this.trialCriterionList.find((function(e){return e.TrialReadingCriterionId===t.TrialReadingCriterionId})).ReadingInfoSignTime)}},mounted:function(){this.getSite(),this.getTrialCriterionList()},methods:{getList:function(){var e=this;this.searchData.TrialId=this.$route.query.trialId,this.searchData.TrialReadingCriterionId=this.TrialReadingCriterionId,this.loading=!0,Object(r["Lc"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount,e.maxLength=t.OtherInfo.MaxLength>h?t.OtherInfo.MaxLength:h,e.isClinicalReading=t.OtherInfo.IsClinicalReading,e.otherInfo=t.OtherInfo,e.$nextTick((function(){e.$refs.myTable&&e.$refs.myTable.doLayout&&e.$refs.myTable.doLayout()}))})).catch((function(){e.loading=!1}))},handleAdd:function(e,t){this.param.SubjectId=e.SubjectId,this.param.SiteId=e.SiteId,this.param.SubjectCode=e.SubjectCode,this.param.TrialSiteCode=e.TrialSiteCode,this.param.TrialId=this.trialId,this.param.IsClinicalReading=this.isClinicalReading,this.param.ReadingSetType=t,this.subjectPeriod.visible=!0},handleDelete:function(e){var t=this;this.$confirm(this.$t("trials:readingPeriod:message:sureToDelete"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.loading=!0,Object(r["lb"])(e.Id).then((function(e){t.loading=!1,e.IsSuccess&&(t.getList(),t.$message.success(t.$t("common:message:deletedSuccessfully")))})).catch((function(){t.loading=!1}))}))},handleReadingPeriod:function(){this.readPeriodVisible=!0},view:function(){this.clinicalDataVisible=!0},handleView:function(e,t){this.currentData=Object.assign({},t),this.clinicalDataVisible=!0},handleDetail:function(e,t){var i=this;this.loading=!0;var n={trialId:this.trialId,id:t.Id,TrialReadingCriterionId:this.TrialReadingCriterionId,subjectId:t.SubjectId};Object(r["Kc"])(n).then((function(e){i.currentData=Object.assign({},t),i.currentData.Stakeholders=e.Result.StakeholderNames.join(", "),i.dialogVisible=!0,i.loading=!1})).catch((function(){i.loading=!1}))},getSite:function(){var e=this;Object(r["Zd"])(this.trialId).then((function(t){e.siteOptions=t.Result}))},handleExportSubject:function(){Object(o["p"])(this.searchData).then((function(e){})).catch((function(){}))},handleExportPeriod:function(){Object(o["k"])(this.searchData).then((function(e){})).catch((function(){}))},getTrialCriterionList:function(){var e=this;Object(r["Cd"])(this.trialId,!1).then((function(t){e.trialCriterionList=t.Result,e.TrialReadingCriterionId=e.trialCriterionList[0].TrialReadingCriterionId})).catch((function(){}))},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=f(),this.getList()},handleSortChange:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()},headerRowStyle:function(e){e.row;var t=e.rowIndex;return 1===t?"hidden-row":void 0},cellStyle:function(e){var t=e.row,i=e.column,n=(e.rowIndex,e.columnIndex);if(n>2&&t.Data.length>=n-2&&i.property){var a=1*i.property.substring(4),r=t.Data[a].ModuleType,o=t.Data[a].ReadingStatus;if((0===r||1===r)&&0===o)return{"vertical-align":"top"};if((0===r||1===r)&&1===o)return{"background-color":"rgb(189,215,238)","vertical-align":"top"};if((0===r||1===r)&&2===o)return{"background-color":"rgb(255,217,102)","vertical-align":"top"};if((0===r||1===r)&&3===o)return{"background-color":"rgb(169,208,142)","vertical-align":"top"};if((0===r||1===r)&&4===o)return{"background-color":"rgb(169,208,142)","vertical-align":"top"};if((0===r||1===r)&&5===o)return{"background-color":"rgb(244,176,132)","vertical-align":"top"}}}}},m=p,g=(i("d524"),i("2877")),v=Object(g["a"])(m,n,a,!1,null,"121258e5",null);t["default"]=v.exports},"842c":function(e,t,i){"use strict";i("90fb7")},"842e":function(e,t,i){"use strict";i("cd76")},"843e":function(e,t,i){var n=i("6d8b"),a=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"];function r(e){n.each(a,(function(t){this[t]=n.bind(e[t],e)}),this)}var o=r;e.exports=o},8455:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",[i("div",{staticClass:"search"},[i("el-form",{staticClass:"base-search-form",attrs:{inline:!0,size:"mini"}},[i("el-form-item",{attrs:{label:"编号:"}},[i("el-input",{staticStyle:{width:"100px"},model:{value:e.searchData.Code,callback:function(t){e.$set(e.searchData,"Code",t)},expression:"searchData.Code"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"模板:"}},[i("el-input",{staticStyle:{width:"100px"},model:{value:e.searchData.Name,callback:function(t){e.$set(e.searchData,"Name",t)},expression:"searchData.Name"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:e.handleReset}},[e._v("Reset")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.handleSearch}},[e._v("Search")])],1)],1),e._v(" "),i("span",{staticStyle:{"margin-left":"auto"}},[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.handleAdd}},[e._v("\n New\n ")])],1)],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:45},expression:"{bottomOffset:45}"}],staticStyle:{width:"100%"},attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Code",label:"Code",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Name",label:"模板","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Value",label:"签名内容(EN)","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ValueCN",label:"签名内容(CN)","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"UpdateTime",label:"更新时间","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:"创建时间","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{label:"Action",width:"200",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("\n Edit\n ")]),e._v(" "),i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleConfig(t.row)}}},[e._v("\n 场景配置\n ")]),e._v(" "),i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("Delete")])]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}}),e._v(" "),e.editVisible?i("el-dialog",{attrs:{visible:e.editVisible,"close-on-click-modal":!1,title:e.title,width:"700px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.editVisible=t}}},[i("SignTemplateForm",{attrs:{data:e.rowData},on:{closeDialog:e.closeDialog,getList:e.getList}})],1):e._e(),e._v(" "),e.configVisible?i("el-dialog",{attrs:{visible:e.configVisible,title:"场景配置",fullscreen:!0,"append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.configVisible=t}}},[i("SceneList",{attrs:{"parent-id":e.rowData.Id},on:{closeDialog:e.closeDialog}})],1):e._e()],1)},a=[],r=(i("20d6"),i("db72")),o=i("e56e"),s=i("f36a"),l=i("953c"),c=i("0848"),u=i("333d"),d=function(){return{Code:"",Name:"",PageIndex:1,PageSize:20}},f={name:"SignTemplate",components:{BoxContent:s["default"],SignTemplateForm:l["default"],Pagination:u["default"],SceneList:c["default"]},data:function(){return{searchData:d(),loading:!1,list:[],total:0,rowData:{},title:"",editVisible:!1,configVisible:!1}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0,Object(o["zb"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},handleAdd:function(){this.rowData={},this.title="Add",this.editVisible=!0},handleEdit:function(e){this.rowData=Object(r["a"])({},e),this.title="Edit",this.editVisible=!0},handleDelete:function(e){var t=this;this.$confirm("Sure to delete?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){Object(o["P"])(e.Id).then((function(i){i.IsSuccess&&(t.list.splice(t.list.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success("Deleted successfully!"))}))}))},handleConfig:function(e){this.rowData=Object(r["a"])({},e),this.configVisible=!0},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=d(),this.getList()},handleSortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()},closeDialog:function(){this.editVisible=!1}}},h=f,p=i("2877"),m=Object(p["a"])(h,n,a,!1,null,null,null);t["default"]=m.exports},8459:function(e,t,i){var n=i("3eba"),a={type:"axisAreaSelect",event:"axisAreaSelected"};n.registerAction(a,(function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},(function(t){t.axis.model.setActiveIntervals(e.intervals)}))})),n.registerAction("parallelAxisExpand",(function(e,t){t.eachComponent({mainType:"parallel",query:e},(function(t){t.setAxisExpand(e)}))}))},"849b":function(e,t,i){var n=i("d9d0"),a=i("2039");function r(e,t){var i=[];return e.eachComponent("parallel",(function(a,r){var o=new n(a,e,t);o.name="parallel_"+r,o.resize(a,t),a.coordinateSystem=o,o.model=a,i.push(o)})),e.eachSeries((function(t){if("parallel"===t.get("coordinateSystem")){var i=e.queryComponents({mainType:"parallel",index:t.get("parallelIndex"),id:t.get("parallelId")})[0];t.coordinateSystem=i.coordinateSystem}})),i}a.register("parallel",{create:r})},"84ce":function(e,t,i){var n=i("6d8b"),a=n.each,r=n.map,o=i("3842"),s=o.linearMap,l=o.getPixelPrecision,c=o.round,u=i("e073"),d=u.createAxisTicks,f=u.createAxisLabels,h=u.calculateCategoryInterval,p=[0,1],m=function(e,t,i){this.dim=e,this.scale=t,this._extent=i||[0,0],this.inverse=!1,this.onBand=!1};function g(e,t){var i=e[1]-e[0],n=t,a=i/n/2;e[0]+=a,e[1]-=a}function v(e,t,i,n){var r=t.length;if(e.onBand&&!i&&r){var o,s,l=e.getExtent();if(1===r)t[0].coord=l[0],o=t[1]={coord:l[0]};else{var u=t[r-1].tickValue-t[0].tickValue,d=(t[r-1].coord-t[0].coord)/u;a(t,(function(e){e.coord-=d/2}));var f=e.scale.getExtent();s=1+f[1]-t[r-1].tickValue,o={coord:t[r-1].coord+d*s},t.push(o)}var h=l[0]>l[1];p(t[0].coord,l[0])&&(n?t[0].coord=l[0]:t.shift()),n&&p(l[0],t[0].coord)&&t.unshift({coord:l[0]}),p(l[1],o.coord)&&(n?o.coord=l[1]:t.pop()),n&&p(o.coord,l[1])&&t.push({coord:l[1]})}function p(e,t){return e=c(e),t=c(t),h?e>t:e<t}}m.prototype={constructor:m,contain:function(e){var t=this._extent,i=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]);return e>=i&&e<=n},containData:function(e){return this.scale.contain(e)},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(e){return l(e||this.scale.getExtent(),this._extent)},setExtent:function(e,t){var i=this._extent;i[0]=e,i[1]=t},dataToCoord:function(e,t){var i=this._extent,n=this.scale;return e=n.normalize(e),this.onBand&&"ordinal"===n.type&&(i=i.slice(),g(i,n.count())),s(e,p,i,t)},coordToData:function(e,t){var i=this._extent,n=this.scale;this.onBand&&"ordinal"===n.type&&(i=i.slice(),g(i,n.count()));var a=s(e,i,p,t);return this.scale.scale(a)},pointToData:function(e,t){},getTicksCoords:function(e){e=e||{};var t=e.tickModel||this.getTickModel(),i=d(this,t),n=i.ticks,a=r(n,(function(e){return{coord:this.dataToCoord(e),tickValue:e}}),this),o=t.get("alignWithLabel");return v(this,a,o,e.clamp),a},getMinorTicksCoords:function(){if("ordinal"===this.scale.type)return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var i=this.scale.getMinorTicks(t),n=r(i,(function(e){return r(e,(function(e){return{coord:this.dataToCoord(e),tickValue:e}}),this)}),this);return n},getViewLabels:function(){return f(this).labels},getLabelModel:function(){return this.model.getModel("axisLabel")},getTickModel:function(){return this.model.getModel("axisTick")},getBandWidth:function(){var e=this._extent,t=this.scale.getExtent(),i=t[1]-t[0]+(this.onBand?1:0);0===i&&(i=1);var n=Math.abs(e[1]-e[0]);return Math.abs(n)/i},isHorizontal:null,getRotate:null,calculateCategoryInterval:function(){return h(this)}};var b=m;e.exports=b},"84d5":function(e,t,i){var n=i("3eba"),a=i("6d8b"),r=i("4319"),o=i("e0d3"),s=o.isNameSpecified,l=i("29a8"),c=l.legend.selector,u={all:{type:"all",title:a.clone(c.all)},inverse:{type:"inverse",title:a.clone(c.inverse)}},d=n.extendComponentModel({type:"legend.plain",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(e,t,i){this.mergeDefaultAndTheme(e,i),e.selected=e.selected||{},this._updateSelector(e)},mergeOption:function(e){d.superCall(this,"mergeOption",e),this._updateSelector(e)},_updateSelector:function(e){var t=e.selector;!0===t&&(t=e.selector=["all","inverse"]),a.isArray(t)&&a.each(t,(function(e,i){a.isString(e)&&(e={type:e}),t[i]=a.merge(e,u[e.type])}))},optionUpdated:function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&"single"===this.get("selectedMode")){for(var t=!1,i=0;i<e.length;i++){var n=e[i].get("name");if(this.isSelected(n)){this.select(n),t=!0;break}}!t&&this.select(e[0].get("name"))}},_updateData:function(e){var t=[],i=[];e.eachRawSeries((function(n){var a,r=n.name;if(i.push(r),n.legendVisualProvider){var o=n.legendVisualProvider,l=o.getAllNames();e.isSeriesFiltered(n)||(i=i.concat(l)),l.length?t=t.concat(l):a=!0}else a=!0;a&&s(n)&&t.push(n.name)})),this._availableNames=i;var n=this.get("data")||t,o=a.map(n,(function(e){return"string"!==typeof e&&"number"!==typeof e||(e={name:e}),new r(e,this,this.ecModel)}),this);this._data=o},getData:function(){return this._data},select:function(e){var t=this.option.selected,i=this.get("selectedMode");if("single"===i){var n=this._data;a.each(n,(function(e){t[e.get("name")]=!1}))}t[e]=!0},unSelect:function(e){"single"!==this.get("selectedMode")&&(this.option.selected[e]=!1)},toggleSelected:function(e){var t=this.option.selected;t.hasOwnProperty(e)||(t[e]=!0),this[t[e]?"unSelect":"select"](e)},allSelect:function(){var e=this._data,t=this.option.selected;a.each(e,(function(e){t[e.get("name",!0)]=!0}))},inverseSelect:function(){var e=this._data,t=this.option.selected;a.each(e,(function(e){var i=e.get("name",!0);t.hasOwnProperty(i)||(t[i]=!0),t[i]=!t[i]}))},isSelected:function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&a.indexOf(this._availableNames,e)>=0},getOrient:function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},defaultOption:{zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",itemStyle:{borderWidth:0},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:" sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}}}),f=d;e.exports=f},"84e5":function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-swagger",use:"icon-swagger-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-swagger"><defs><style type="text/css"></style></defs><path d="M64 223.995345h168.001164v47.997673c0 26.428509 18.878836 47.997673 41.984 47.997673h140.036654c23.095855 0 41.984-21.569164 41.984-47.997673v-47.997673h504.003491a32.004655 32.004655 0 0 0 0-64.009309H455.996509V111.988364c0-26.428509-18.878836-47.997673-41.984-47.997673H273.985164c-23.095855 0-41.984 21.569164-41.984 47.997673v47.997672H64a32.004655 32.004655 0 0 0 0 64.009309zM288.004655 128h111.997672V256H288.004655V128zM960 479.995345H791.998836v-47.997672c0-26.372655-18.878836-47.997673-41.984-47.997673H609.978182c-23.095855 0-41.984 21.634327-41.984 47.997673v47.997672H64a32.004655 32.004655 0 0 0 0 64.00931h504.003491v47.997672c0 26.363345 18.878836 47.997673 41.984 47.997673h140.036654c23.095855 0 41.984-21.634327 41.984-47.997673v-47.997672h168.001164a32.004655 32.004655 0 1 0-0.009309-64.00931zM735.995345 576H623.997673v-128h111.997672v128zM960 800.293236v-0.288581H455.996509v-47.997673c0-26.363345-18.878836-47.997673-41.984-47.997673H274.050327c-23.105164 0-41.984 21.634327-41.984 47.997673v47.997673H64v0.288581a32.004655 32.004655 0 0 0 0 64.009309c0.986764 0 1.917673-0.195491 2.885818-0.288581h165.115346v47.997672c0 26.363345 18.878836 47.997673 41.984 47.997673h140.036654c23.095855 0 41.984-21.634327 41.984-47.997673v-47.997672h501.108364c0.968145 0.093091 1.899055 0.288582 2.895127 0.288581a32.004655 32.004655 0 1 0-0.009309-64.009309zM400.002327 896H288.004655V768h111.997672v128z" fill="" p-id="6464" /></symbol>'});o.a.add(s);t["default"]=s},"84ec":function(e,t){var i=Math.log(2);function n(e,t,a,r,o,s){var l=r+"-"+o,c=e.length;if(s.hasOwnProperty(l))return s[l];if(1===t){var u=Math.round(Math.log((1<<c)-1&~o)/i);return e[a][u]}var d=r|1<<a,f=a+1;while(r&1<<f)f++;for(var h=0,p=0,m=0;p<c;p++){var g=1<<p;g&o||(h+=(m%2?-1:1)*e[a][p]*n(e,t-1,f,d,o|g,s),m++)}return s[l]=h,h}function a(e,t){var i=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],a={},r=n(i,8,0,0,0,a);if(0!==r){for(var o=[],s=0;s<8;s++)for(var l=0;l<8;l++)null==o[l]&&(o[l]=0),o[l]+=((s+l)%2?-1:1)*n(i,7,0===s?1:0,1<<s,1<<l,a)/r*t[s];return function(e,t,i){var n=t*o[6]+i*o[7]+1;e[0]=(t*o[0]+i*o[1]+o[2])/n,e[1]=(t*o[3]+i*o[4]+o[5])/n}}}t.buildTransformer=a},8502:function(e,t,i){"use strict";i("bfde")},"850c":function(e,t,i){},"853a":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"taskAllocationRuleDataForm",attrs:{model:e.form,size:"small",rules:e.rules,"label-width":"110px"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:"阅片人",prop:"DoctorUserId"}},[i("el-select",{attrs:{disabled:e.form.Id,clearable:""},model:{value:e.form.DoctorUserId,callback:function(t){e.$set(e.form,"DoctorUserId",t)},expression:"form.DoctorUserId"}},e._l(e.doctorUserList,(function(e){return i("el-option",{attrs:{label:e.UserName+"("+e.FullName+")",value:e.DoctorUserId}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"受试者比例",prop:"PlanReadingRatio"}},[i("div",{staticStyle:{display:"flex","justify-content":"left","align-items":"center"}},[i("el-input-number",{attrs:{min:0,max:100,"controls-position":"right"},model:{value:e.form.PlanReadingRatio,callback:function(t){e.$set(e.form,"PlanReadingRatio",t)},expression:"form.PlanReadingRatio"}}),e._v(" "),i("span",{staticStyle:{"margin-left":"10px"}},[e._v("%")])],1)]),e._v(" "),i("el-form-item",{attrs:{label:"状态"}},[i("el-radio-group",{model:{value:e.form.IsEnable,callback:function(t){e.$set(e.form,"IsEnable",t)},expression:"form.IsEnable"}},e._l(e.$d.IsEnable,(function(t){return i("el-radio",{key:"form.IsEnable"+t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"备注"}},[i("el-input",{attrs:{type:"textarea",maxlength:"100","show-word-limit":""},model:{value:e.form.Note,callback:function(t){e.$set(e.form,"Note",t)},expression:"form.Note"}})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.close}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.save}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])},a=[],r=i("db72"),o=(i("ac6a"),i("456d"),i("958c")),s={name:"AddOrUpdateTaskAllocationRuleData",props:{data:{type:Object,default:function(){return{}}},doctorUserList:{type:Array,default:function(){return[]}}},data:function(){return{form:{Id:null,TrialId:null,PlanReadingRatio:50,DoctorUserId:null,IsEnable:!0,Note:""},rules:{DoctorUserId:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}],PlanReadingRatio:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}]},loading:!1,btnLoading:!1}},mounted:function(){console.log(this.doctorUserList),console.log(this.data),this.form.TrialId=this.$route.query.trialId,Object.keys(this.data).length&&this.data.Id&&(this.form=Object(r["a"])({},this.data))},methods:{save:function(){var e=this;this.$refs.taskAllocationRuleDataForm.validate((function(t){console.log(t),t&&(e.btnLoading=!0,e.loading=!0,Object(o["b"])(e.form).then((function(t){e.loading=!1,e.btnLoading=!1,e.$message.success("保存成功"),e.$emit("getList")})).catch((function(){e.loading=!1,e.btnLoading=!1})))}))},close:function(){this.$emit("close")}}},l=s,c=i("2877"),u=Object(c["a"])(l,n,a,!1,null,"b14853c2",null);t["default"]=u.exports},"856c":function(e,t,i){e.exports=i.p+"static/img/login-bg.e7bb606e.png"},"857d":function(e,t){var i=2*Math.PI;function n(e){return e%=i,e<0&&(e+=i),e}t.normalizeRadian=n},"85a8":function(e,t,i){"use strict";i("0b94")},"85de":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[[e.questionForm[e.question.ParentId]===e.question.ParentTriggerValue||""===e.question.ParentId||null===e.question.ParentId?i("el-form-item",{attrs:{label:""+e.question.QuestionName,prop:e.question.Id,rules:[{required:e.question.IsRequired,message:"请注明",trigger:["blur","change"]}]}},["input"===e.question.Type?i("el-input",{model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"textarea"===e.question.Type?i("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4}},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"select"===e.question.Type?i("el-select",{attrs:{clearable:""},on:{change:function(t){e.formItemChange(t,e.question)}},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},e._l(e.question.TypeValue.split("|"),(function(e){return i("el-option",{key:e,attrs:{label:e,value:e}})})),1):e._e(),e._v(" "),"radio"===e.question.Type?i("el-radio-group",{on:{change:function(t){e.formItemChange(t,e.question)}},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},e._l(e.question.TypeValue.split("|"),(function(t){return i("el-radio",{key:t,attrs:{label:t}},[e._v("\n "+e._s(t)+"\n ")])})),1):e._e(),e._v(" "),"checkbox"===e.question.Type?i("el-checkbox-group",{model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},e._l(e.question.TypeValue.split("|"),(function(t){return i("el-checkbox",{key:t,attrs:{label:t}},[e._v("\n "+e._s(t)+"\n ")])})),1):e._e()],1):e._e()],e._v(" "),e._l(e.question.Childrens,(function(t){return i("QSFormItem",{key:t.Id,attrs:{question:t,"question-form":e.questionForm},on:{resetFormItemData:e.resetFormItemData}})}))],2)},a=[],r=(i("ac6a"),{name:"QSFormItem",props:{questionForm:{type:Object,default:function(){return{}}},question:{type:Object,default:function(){return[]}}},data:function(){return{}},watch:{questionForm:{deep:!0,immediate:!0,handler:function(e){}}},mounted:function(){},methods:{formItemChange:function(e,t){t.Childrens.length>0&&this.resetChild(t.Childrens)},resetChild:function(e){var t=this;e.forEach((function(e){t.$emit("resetFormItemData",e.Id),e.Childrens&&e.Childrens.length>0&&t.resetChild(e.Childrens)}))},resetFormItemData:function(e){this.$emit("resetFormItemData",e)}}}),o=r,s=(i("151b"),i("2877")),l=Object(s["a"])(o,n,a,!1,null,"a126852c",null);t["default"]=l.exports},"862d":function(e,t,i){var n=i("6d8b"),a=n.createHashMap,r=n.each,o=n.isString,s=n.defaults,l=n.extend,c=n.isObject,u=n.clone,d=i("e0d3"),f=d.normalizeToArray,h=i("0f99"),p=h.guessOrdinal,m=h.BE_ORDINAL,g=i("ec6f"),v=i("2f45"),b=v.OTHER_DIMENSIONS,y=i("562e");function w(e,t,i){g.isInstance(t)||(t=g.seriesDataToSource(t)),i=i||{},e=(e||[]).slice();for(var n=(i.dimsDef||[]).slice(),d=a(),h=a(),v=[],w=_(t,e,n,i.dimCount),x=0;x<w;x++){var S=n[x]=l({},c(n[x])?n[x]:{name:n[x]}),T=S.name,C=v[x]=new y;null!=T&&null==d.get(T)&&(C.name=C.displayName=T,d.set(T,x)),null!=S.type&&(C.type=S.type),null!=S.displayName&&(C.displayName=S.displayName)}var k=i.encodeDef;!k&&i.encodeDefaulter&&(k=i.encodeDefaulter(t,w)),k=a(k),k.each((function(e,t){if(e=f(e).slice(),1===e.length&&!o(e[0])&&e[0]<0)k.set(t,!1);else{var i=k.set(t,[]);r(e,(function(e,n){o(e)&&(e=d.get(e)),null!=e&&e<w&&(i[n]=e,D(v[e],t,n))}))}}));var R=0;function D(e,t,i){null!=b.get(t)?e.otherDims[t]=i:(e.coordDim=t,e.coordDimIndex=i,h.set(t,!0))}r(e,(function(e,t){var i,n,a;if(o(e))i=e,e={};else{i=e.name;var l=e.ordinalMeta;e.ordinalMeta=null,e=u(e),e.ordinalMeta=l,n=e.dimsDef,a=e.otherDims,e.name=e.coordDim=e.coordDimIndex=e.dimsDef=e.otherDims=null}var d=k.get(i);if(!1!==d){d=f(d);if(!d.length)for(var h=0;h<(n&&n.length||1);h++){while(R<v.length&&null!=v[R].coordDim)R++;R<v.length&&d.push(R++)}r(d,(function(t,r){var o=v[t];if(D(s(o,e),i,r),null==o.name&&n){var l=n[r];!c(l)&&(l={name:l}),o.name=o.displayName=l.name,o.defaultTooltip=l.defaultTooltip}a&&s(o.otherDims,a)}))}}));var L=i.generateCoord,O=i.generateCoordCount,$=null!=O;O=L?O||1:0;for(var N=L||"value",A=0;A<w;A++){C=v[A]=v[A]||new y;var P=C.coordDim;null==P&&(C.coordDim=I(N,h,$),C.coordDimIndex=0,(!L||O<=0)&&(C.isExtraCoord=!0),O--),null==C.name&&(C.name=I(C.coordDim,d)),null!=C.type||p(t,A,C.name)!==m.Must&&(!C.isExtraCoord||null==C.otherDims.itemName&&null==C.otherDims.seriesName)||(C.type="ordinal")}return v}function _(e,t,i,n){var a=Math.max(e.dimensionsDetectCount||1,t.length,i.length,n||0);return r(t,(function(e){var t=e.dimsDef;t&&(a=Math.max(a,t.length))})),a}function I(e,t,i){if(i||null!=t.get(e)){var n=0;while(null!=t.get(e+n))n++;e+=n}return t.set(e,!0),e}var x=w;e.exports=x},8691:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"search-container"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:pmMedicalReview:select:siteCode")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:"",filterable:""},model:{value:e.searchData.SiteId,callback:function(t){e.$set(e.searchData,"SiteId",t)},expression:"searchData.SiteId"}},e._l(e.siteOptions,(function(e,t){return i("el-option",{key:t,attrs:{label:e.TrialSiteCode,value:e.SiteId}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:pmMedicalReview:select:subjectCode")}},[i("el-input",{staticStyle:{width:"100px"},model:{value:e.searchData.SubjectCode,callback:function(t){e.$set(e.searchData,"SubjectCode",t)},expression:"searchData.SubjectCode"}})],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:pmMedicalReview:select:taskName")}},[i("el-input",{staticStyle:{width:"100px"},attrs:{clearable:""},model:{value:e.searchData.TaskName,callback:function(t){e.$set(e.searchData,"TaskName",t)},expression:"searchData.TaskName"}})],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:pmMedicalReview:select:reader")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.DoctorUserId,callback:function(t){e.$set(e.searchData,"DoctorUserId",t)},expression:"searchData.DoctorUserId"}},e._l(e.DoctorUserList,(function(e){return i("el-option",{key:"DoctorUserId"+e.DoctorUserId,attrs:{value:e.DoctorUserId,label:e.UserName}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:pmMedicalReview:select:criterionName")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.TrialReadingCriterionId,callback:function(t){e.$set(e.searchData,"TrialReadingCriterionId",t)},expression:"searchData.TrialReadingCriterionId"}},e._l(e.trialCriterionList,(function(e){return i("el-option",{key:"TrialReadingCriterionId"+e.TrialReadingCriterionId,attrs:{value:e.TrialReadingCriterionId,label:e.TrialReadingCriterionName}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:pmMedicalReview:select:isUrgent")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.IsUrgent,callback:function(t){e.$set(e.searchData,"IsUrgent",t)},expression:"searchData.IsUrgent"}},e._l(e.$d.YesOrNo,(function(e){return i("el-option",{key:"IsUrgent"+e.label,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:pmMedicalReview:select:taskType")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.ReadingCategory,callback:function(t){e.$set(e.searchData,"ReadingCategory",t)},expression:"searchData.ReadingCategory"}},e._l(e.$d.ReadingCategory,(function(e){return i("el-option",{key:"ReadingCategory"+e.label,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:pmMedicalReview:select:isGeneratedJudge")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.IsGeneratedJudge,callback:function(t){e.$set(e.searchData,"IsGeneratedJudge",t)},expression:"searchData.IsGeneratedJudge"}},e._l(e.$d.YesOrNo,(function(e){return i("el-option",{key:"IsGeneratedJudge"+e.label,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:pmMedicalReview:select:globalReadingChanged")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.IsGeneratedJudge,callback:function(t){e.$set(e.searchData,"IsGeneratedJudge",t)},expression:"searchData.IsGeneratedJudge"}},e._l(e.$d.YesOrNo,(function(e){return i("el-option",{key:"ReadingCategory"+e.label,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"}},[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.openAssignMedicalReviewTask}},[e._v("\n "+e._s(e.$t("trials:pmMedicalReview:select:batchAllocation"))+"\n ")])],1)],1)],1),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"},{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortChange,"selection-change":e.handleSelectChange}},[i("el-table-column",{attrs:{selectable:e.selectable,type:"selection",align:"left",width:"45"}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsUrgent",label:e.$t("trials:pmMedicalReview:select:isUrgent"),"show-overflow-tooltip":"","min-width":"100",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsUrgent?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsUrgent)))]):i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsUrgent)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskCode",label:e.$t("trials:pmMedicalReview:select:taskCode"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialSiteCode",label:e.$t("trials:pmMedicalReview:select:siteCode"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode",label:e.$t("trials:pmMedicalReview:select:subjectCode"),"min-width":"120",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode",label:e.$t("trials:pmMedicalReview:select:subjectSecondCode"),"min-width":"120",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitTaskNum",label:e.$t("trials:pmMedicalReview:select:taskName"),"min-width":"160",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.TaskName)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskBlindName",label:e.$t("trials:pmMedicalReview:select:taskBlindName"),"min-width":"140",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ReadingCategory",label:e.$t("trials:pmMedicalReview:select:taskType"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.ReadingCategory?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e(),e._v(" "),2===t.row.ReadingCategory?i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e(),e._v(" "),4===t.row.ReadingCategory?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e(),e._v(" "),5===t.row.ReadingCategory?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ArmEnum",label:e.$t("trials:pmMedicalReview:select:role"),"min-width":"80","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.ArmEnum?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ArmEnum",t.row.ArmEnum)))]):e._e(),e._v(" "),1===t.row.ArmEnum?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ArmEnum",t.row.ArmEnum)))]):e._e(),e._v(" "),2===t.row.ArmEnum?i("el-tag",{attrs:{type:"success"}},[e._v(e._s(e.$fd("ArmEnum",t.row.ArmEnum)))]):e._e(),e._v(" "),3===t.row.ArmEnum?i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("ArmEnum",t.row.ArmEnum)))]):e._e(),e._v(" "),4===t.row.ArmEnum?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ArmEnum",t.row.ArmEnum)))]):e._e(),e._v(" "),5===t.row.ArmEnum?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("ArmEnum",t.row.ArmEnum)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:e.$t("trials:pmMedicalReview:select:reader"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.DoctorUser.UserName)+"("+e._s(t.row.DoctorUser.FullName)+")\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialReadingCriterionName",label:e.$t("trials:pmMedicalReview:select:criterionName"),"min-width":"180",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"SignTime",label:e.$t("trials:pmMedicalReview:select:signTime"),"min-width":"180",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ReadingDurationTimeSpan",label:e.$t("trials:pmMedicalReview:select:readingDurationTime"),"min-width":"140",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.ReadingDuration)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsGeneratedJudge",label:e.$t("trials:pmMedicalReview:select:isGeneratedJudge"),"min-width":"140",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",[t.row.IsGeneratedJudge?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsGeneratedJudge)))]):i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsGeneratedJudge)))])],1)]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsGlobalHaveUpdate",label:e.$t("trials:pmMedicalReview:select:globalReadingChanged"),"min-width":"180",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",[t.row.IsGlobalHaveUpdate?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsGlobalHaveUpdate)))]):e._e()],1)]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"GeneratedMedicalReviewCount",label:e.$t("trials:pmMedicalReview:select:auditCount"),"min-width":"130",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{fixed:"right",label:e.$t("common:action:action"),width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{icon:"el-icon-thumb",circle:"",title:e.$t("trials:pmMedicalReview:select:allocation")},on:{click:function(i){return e.assignMedicalReviewTask(t.row)}}})]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}}),e._v(" "),e.AssignMedicalReviewTaskVisible?i("el-dialog",{attrs:{title:e.$t("trials:pmMedicalReview:allocation:aliocationMIM"),visible:e.AssignMedicalReviewTaskVisible,width:"500px","append-to-body":"","close-on-click-modal":!1},on:{"update:visible":function(t){e.AssignMedicalReviewTaskVisible=t}}},[i("AssignMedicalReviewTask",{attrs:{data:e.rowData,"select-list":e.SelectList,"doctor-user-list":e.MIMOptions},on:{close:function(){e.AssignMedicalReviewTaskVisible=!1},getList:e.getList}})],1):e._e()],1)],2)},a=[],r=(i("7514"),i("db72")),o=i("3e42"),s=i("958c"),l=i("6071"),c=i("333d"),u=i("48cc"),d=function(){return{PageIndex:1,PageSize:20,Asc:!0,SortField:"",TrialId:null,SiteId:null,SubjectId:null,SubjectCode:null,IsUrgent:null,TaskName:null,TaskState:null,DoctorUserId:null,ReadingCategory:null,TaskAllocationState:null,BeginAllocateDate:null,EndAllocateDate:null,RootReReadingTaskId:null,IsGeneratedJudge:null}},f={name:"TrialsNotice",props:{trialCriterionList:{type:Array,default:function(){return[]}}},components:{BaseContainer:l["default"],Pagination:c["default"],AssignMedicalReviewTask:u["default"]},data:function(){return{MIMOptions:[],searchData:d(),maxLength:0,list:[],siteOptions:[],total:0,SubjectAssignListTotal:0,loading:!1,AssignMedicalReviewTaskVisible:!1,AllocationConfigVisible:!1,ConfirmReReadingForm:{RequestReReadingRejectReason:null},rules:{RequestReReadingRejectReason:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}]},ConfirmReReadingVisible:!1,taskAllocationRuleVisible:!1,AutoAlloctionVisible:!1,manualAllocationVisible:!1,trialId:this.$route.query.trialId,currentData:{},param:{},DoctorUserList:[],TaskAllocationRuleList:[],btnLoading:!1,value:!0,value1:!0,SelectList:[],TrialTaskInfo:{TrialId:null,TaskAllocateObjEnum:0,FollowVisitAutoAssignDefaultState:0,FollowGlobalVisitAutoAssignDefaultState:0,TaskAllocateDefaultState:1},title:"",rowData:{},timeList:[],SubjectAssignList:[],SubjectAssignSelectList:[],TaskAllocationRuleSelectList:[],readVisible:!1,TaskOptType:null,OtherInfo:null,ReadingType:null}},mounted:function(){this.getList(),this.getSite(),this.getDoctorUserSelectList(),this.getMIMUserList()},methods:{getMIMUserList:function(){var e=this;Object(s["F"])(this.trialId).then((function(t){e.MIMOptions=t.Result}))},openAssignMedicalReviewTask:function(){this.rowData={},0!==this.SelectList.length?this.AssignMedicalReviewTaskVisible=!0:this.$message.error(this.$t("trials:pmMedicalReview:allocation:msg1"))},handleSelectChange:function(e){this.SelectList=e},assignMedicalReviewTask:function(e,t){this.rowData=Object(r["a"])({},e),this.AssignMedicalReviewTaskVisible=!0},changeTimeList:function(){this.timeList?(this.searchData.BeginAllocateDate=this.timeList[0],this.searchData.EndAllocateDate=this.timeList[1]):(this.searchData.BeginAllocateDate=null,this.searchData.EndAllocateDate=null)},selectable:function(e){var t;return t=2===this.ReadingType?2:1,!(this.TaskAllocationRuleSelectList.length===t&&!this.TaskAllocationRuleSelectList.find((function(t){return t.UserName===e.UserName})))},getDoctorUserSelectList:function(){var e=this;Object(s["A"])(this.$route.query.trialId).then((function(t){e.DoctorUserList=t.Result,e.DoctorUserList.length>0&&(e.ReadingType=e.DoctorUserList[0].ReadingType)}))},getList:function(){var e=this;this.searchData.TrialId=this.$route.query.trialId,this.loading=!0,Object(s["B"])(this.searchData).then((function(t){e.loading=!1,e.OtherInfo=t.OtherInfo,e.$emit("getList"),e.AssignMedicalReviewTaskVisible=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=d(),this.getList()},getSite:function(){var e=this;Object(o["Zd"])(this.trialId).then((function(t){e.siteOptions=t.Result}))},handleSortChange:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()}}},h=f,p=(i("2294"),i("2877")),m=Object(p["a"])(h,n,a,!1,null,"485f549a",null);t["default"]=m.exports},"86f9":function(e,t,i){"use strict";i("af6e")},"870e":function(e,t,i){var n=i("6d8b");function a(e){e.eachSeriesByType("radar",(function(e){var t=e.getData(),i=[],a=e.coordinateSystem;if(a){var s=a.getIndicatorAxes();n.each(s,(function(e,n){t.each(t.mapDimension(s[n].dim),(function(e,t){i[t]=i[t]||[];var s=a.dataToPoint(e,n);i[t][n]=r(s)?s:o(a)}))})),t.each((function(e){var s=n.find(i[e],(function(e){return r(e)}))||o(a);i[e].push(s.slice()),t.setItemLayout(e,i[e])}))}}))}function r(e){return!isNaN(e[0])&&!isNaN(e[1])}function o(e){return[e.cx,e.cy]}e.exports=a},8727:function(e,t){var i="http://www.w3.org/2000/svg";function n(e){return document.createElementNS(i,e)}t.createElement=n},8728:function(e,t){function i(e,t,i,n,a,r){if(r>t&&r>n||r<t&&r<n)return 0;if(n===t)return 0;var o=n<t?1:-1,s=(r-t)/(n-t);1!==s&&0!==s||(o=n<t?.5:-.5);var l=s*(i-e)+e;return l===a?1/0:l>a?o:0}e.exports=i},"875c":function(e,t,i){"use strict";i("5a54")},"878a":function(e,t,i){},"879b":function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-size",use:"icon-size-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-size"><path d="M0 54.857h54.796v18.286H36.531V128H18.265V73.143H0V54.857zm127.857-36.571H91.935V128H72.456V18.286H36.534V0h91.326l-.003 18.286z" /></symbol>'});o.a.add(s);t["default"]=s},"879e":function(e,t,i){var n=i("3eba"),a=i("6179"),r=i("6d8b"),o=i("e0d3"),s=o.defaultEmphasis,l=i("4319"),c=i("eda2"),u=c.encodeHTML,d=i("237f"),f=i("c4a3"),h=i("0c37"),p=h.initCurvenessList,m=h.createEdgeMapForCurveness,g=n.extendSeriesModel({type:"series.graph",init:function(e){g.superApply(this,"init",arguments);var t=this;function i(){return t._categoriesData}this.legendVisualProvider=new f(i,i),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},mergeOption:function(e){g.superApply(this,"mergeOption",arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},mergeDefaultAndTheme:function(e){g.superApply(this,"mergeDefaultAndTheme",arguments),s(e,["edgeLabel"],["show"])},getInitialData:function(e,t){var i=e.edges||e.links||[],n=e.data||e.nodes||[],a=this;if(n&&i){p(this);var o=d(n,i,this,!0,s);return r.each(o.edges,(function(e){m(e.node1,e.node2,this,e.dataIndex)}),this),o.data}function s(e,i){e.wrapMethod("getItemModel",(function(e){var t=a._categoriesModels,i=e.getShallow("category"),n=t[i];return n&&(n.parentModel=e.parentModel,e.parentModel=n),e}));var n=a.getModel("edgeLabel"),r=new l({label:n.option},n.parentModel,t),o=a.getModel("emphasis.edgeLabel"),s=new l({emphasis:{label:o.option}},o.parentModel,t);function c(e){return e=this.parsePath(e),e&&"label"===e[0]?r:e&&"emphasis"===e[0]&&"label"===e[1]?s:this.parentModel}i.wrapMethod("getItemModel",(function(e){return e.customizeGetParent(c),e}))}},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(e,t,i){if("edge"===i){var n=this.getData(),a=this.getDataParams(e,i),r=n.graph.getEdgeByIndex(e),o=n.getName(r.node1.dataIndex),s=n.getName(r.node2.dataIndex),l=[];return null!=o&&l.push(o),null!=s&&l.push(s),l=u(l.join(" > ")),a.value&&(l+=" : "+u(a.value)),l}return g.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var e=r.map(this.option.categories||[],(function(e){return null!=e.value?e:r.extend({value:0},e)})),t=new a(["value"],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray((function(e){return t.getItemModel(e,!0)}))},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e},isAnimationEnabled:function(){return g.superCall(this,"isAnimationEnabled")&&!("force"===this.get("layout")&&this.get("force.layoutAnimation"))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",legendHoverLink:!0,hoverAnimation:!0,layout:null,focusNodeAdjacency:!1,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{label:{show:!0}}}}),v=g;e.exports=v},"87b1":function(e,t,i){var n=i("cbe5"),a=i("4fac"),r=n.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(e,t){a.buildPath(e,t,!0)}});e.exports=r},"87c3":function(e,t,i){var n=i("6d8b"),a=n.map,r=i("cccd"),o=i("ee1a"),s=o.isDimensionStacked;function l(e){return{seriesType:e,plan:r(),reset:function(e){var t=e.getData(),i=e.coordinateSystem,n=e.pipelineContext,r=n.large;if(i){var o=a(i.dimensions,(function(e){return t.mapDimension(e)})).slice(0,2),l=o.length,c=t.getCalculationInfo("stackResultDimension");return s(t,o[0])&&(o[0]=c),s(t,o[1])&&(o[1]=c),l&&{progress:u}}function u(e,t){for(var n=e.end-e.start,a=r&&new Float32Array(n*l),s=e.start,c=0,u=[],d=[];s<e.end;s++){var f;if(1===l){var h=t.get(o[0],s);f=!isNaN(h)&&i.dataToPoint(h,null,d)}else{h=u[0]=t.get(o[0],s);var p=u[1]=t.get(o[1],s);f=!isNaN(h)&&!isNaN(p)&&i.dataToPoint(u,null,d)}r?(a[c++]=f?f[0]:NaN,a[c++]=f?f[1]:NaN):t.setItemLayout(s,f&&f.slice()||[NaN,NaN])}r&&t.setLayout("symbolPoints",a)}}}}e.exports=l},"87d6":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",[i("div",{staticClass:"search"},[i("el-form",{staticClass:"base-search-form",attrs:{inline:!0,size:"mini"}},[i("el-form-item",{attrs:{label:"Group:"}},[i("el-input",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.Group,callback:function(t){e.$set(e.searchData,"Group",t)},expression:"searchData.Group"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Element:"}},[i("el-input",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.Element,callback:function(t){e.$set(e.searchData,"Element",t)},expression:"searchData.Element"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Tag Description:"}},[i("el-input",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.TagDescription,callback:function(t){e.$set(e.searchData,"TagDescription",t)},expression:"searchData.TagDescription"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Tag DescriptionCN:"}},[i("el-input",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.TagDescriptionCN,callback:function(t){e.$set(e.searchData,"TagDescriptionCN",t)},expression:"searchData.TagDescriptionCN"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:e.handleReset}},[e._v("Reset")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.handleSearch}},[e._v("Search")])],1)],1),e._v(" "),i("span",{staticStyle:{"margin-left":"auto"}},[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.handleAdd}},[e._v("New")])],1)],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:45},expression:"{bottomOffset:45}"}],attrs:{data:e.list,stripe:"",size:"small",height:"100"}},[i("el-table-column",{attrs:{type:"index",width:"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Group",label:"Group","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Element",label:"Element","show-overflow-tooltip":"","min-width":"110"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TagDescription",label:"Tag Description","min-width":"110"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TagDescriptionCN",label:"Tag DescriptionCN","min-width":"110"}}),e._v(" "),i("el-table-column",{attrs:{prop:"ValueRepresentation",label:"Value Representation","min-width":"110"}}),e._v(" "),i("el-table-column",{attrs:{label:"Is Fixed",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},on:{change:function(i){return e.switchChange(i,t.row)}},model:{value:t.row.IsFixed,callback:function(i){e.$set(t.row,"IsFixed",i)},expression:"scope.row.IsFixed"}})]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ReplaceValue",label:"Value Replace","min-width":"110"}}),e._v(" "),i("el-table-column",{attrs:{label:"Is Enable",width:"100",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},on:{change:function(i){return e.switchChange(i,t.row)}},model:{value:t.row.IsEnable,callback:function(i){e.$set(t.row,"IsEnable",i)},expression:"scope.row.IsEnable"}})]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"Action",width:"200",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("\n Edit\n ")]),e._v(" "),i("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("\n Delete\n ")])]}}])})],1),e._v(" "),i("AddDICOMConfig",{ref:"AddDICOMConfig",on:{getList:e.getList}})],1)},a=[],r=(i("20d6"),i("e56e")),o=i("b8ae"),s=i("f36a"),l=function(){return{Group:"",Element:"",TagDescription:"",TagDescriptionCN:"",IsAdd:!0,PageIndex:1,PageSize:500}},c={name:"Anonymization",components:{BoxContent:s["default"],AddDICOMConfig:o["default"]},data:function(){return{searchData:l(),list:[],total:0,loading:!1,rowData:{},model_cfg:{visible:!1,showClose:!0,width:"600px",title:""}}},mounted:function(){this.getList()},methods:{switchChange:function(e,t){var i=this;this.loading=!0,Object(r["t"])(t).then((function(e){i.$message.success("Saved successfully!"),i.loading=!1})).catch((function(){i.loading=!1}))},handleEdit:function(e){var t=this;this.$nextTick((function(){t.$refs["AddDICOMConfig"].openDialog("Edit Anonymization",e)}))},handleAdd:function(){var e=this;this.$nextTick((function(){e.$refs["AddDICOMConfig"].openDialog("New IncreaseFields",{Group:"",Element:"",TagDescription:"",TagDescriptionCN:"",ValueRepresentation:"",ReplaceValue:"",IsEnable:!1,IsAdd:!0})}))},handleDelete:function(e){var t=this;this.$confirm("Sure to delete?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){t.loading=!0,Object(r["O"])(e.Id).then((function(i){t.loading=!1,i.IsSuccess&&(t.list.splice(t.list.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success("Deleted successfully!"))})).catch((function(){t.loading=!1}))}))},getList:function(){var e=this;this.loading=!0,Object(r["xb"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData})).catch((function(){e.loading=!1}))},handleSearch:function(){this.getList()},handleReset:function(){this.searchData=l(),this.getList()}}},u=c,d=i("2877"),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},8826:function(e,t,i){},"882f":function(e,t,i){"use strict";i("891f")},8838:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:45},expression:"{bottomOffset:45}"},{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],attrs:{stripe:"",height:"100",data:e.list},on:{"sort-change":e.sortByColumn,"selection-change":e.handleSelectChange}},[i("el-table-column",{attrs:{type:"selection",align:"left",width:"45",selectable:e.hasResume}}),e._v(" "),i("el-table-column",{attrs:{type:"index",width:"40",align:"left"}}),e._v(" "),i("el-table-column",{attrs:{align:"left",prop:"LastName",label:"Name","show-overflow-tooltip":"",width:"130",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.LastName+" / "+t.row.FirstName)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ChineseName",label:"Name CN","show-overflow-tooltip":"",width:"90",align:"left"}}),e._v(" "),i("el-table-column",{attrs:{prop:"ReviewerCode",label:"ID",width:"80","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{label:"Reading",width:"100","show-overflow-tooltip":"",sortable:"custom",align:"left",prop:"Reading"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.Reading?i("span",{staticStyle:{color:"#00d1b2"}},[i("router-link",{attrs:{tag:"a",to:{name:"trialStats",query:{name:t.row.FirstName+" "+t.row.LastName,doctorId:t.row.Id,status:10}},target:"_blank"}},[e._v(e._s(t.row.Reading))])],1):i("span",[e._v(e._s(t.row.Reading))])]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"Finished",width:"100","show-overflow-tooltip":"",sortable:"custom",align:"left",prop:"Finished"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.Finished?i("span",{staticStyle:{color:"#00d1b2"}},[i("router-link",{attrs:{tag:"a",to:{name:"trialStats",query:{name:t.row.FirstName+" "+t.row.LastName,doctorId:t.row.Id,status:14}},target:"_blank"}},[e._v(e._s(t.row.Finished))])],1):i("span",[e._v(e._s(t.row.Finished))])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"left",prop:"SpecialityId",label:"Specialty",sortable:"custom","show-overflow-tooltip":"",width:"130"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v("\n "+e._s(t.row.SpecialityId===e.otherId?t.row.SpecialityOther:e.isEnglish?t.row.Speciality:t.row.SpecialityCN)+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"left",prop:"Subspeciality",label:"Subspecialty","show-overflow-tooltip":"","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.isEnglish?i("span",[e._v("\n "+e._s(t.row.SubspecialityList.length>0?t.row.SubspecialityList.join(", "):"")+"\n ")]):i("span",[e._v("\n "+e._s(t.row.SubspecialityCNList.length>0?t.row.SubspecialityCNList.join(", "):"")+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"HospitalName",label:"Institution","min-width":"110",align:"left",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v("\n "+e._s(e.isEnglish?t.row.HospitalName:t.row.HospitalNameCN)+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"City",label:"Location",width:"110",align:"left",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v("\n "+e._s(e.isEnglish?t.row.City:t.row.CityCN)+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"Action","min-width":"100",align:"left",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(i){return e.handleDetail(t.row)}}},[e._v("\n Detail\n ")]),e._v(" "),i("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("\n Edit\n ")])]}}])})],1)},a=[],r={name:"ReviewerList",props:{list:{type:Array,default:function(){return[]}},listLoading:{type:Boolean,default:function(){return!1}},isEnglish:{type:Boolean}},data:function(){return{selectArr:[],otherId:"ef84e9cb-f1a6-49d7-b6da-34be2c12abd5"}},methods:{handleDetail:function(e){this.$router.push({path:"/reviewers/reviewers-detail?Id=".concat(e.Id,"&isEnglish=").concat(this.isEnglish)})},handleEdit:function(e){this.$router.push({path:"/reviewers/reviewers-edit?Id=".concat(e.Id)})},handleSelectChange:function(e){for(var t=[],i=0;i<e.length;i++)t.push(e[i].Id);this.selectArr=t,this.$emit("getSelectArr",t)},hasResume:function(e){return!!e.HasResume},sortByColumn:function(e){var t=!1,i="";t="ascending"===e.order,i=e.prop,this.$emit("getListBySort",{asc:t,sortField:i})}}},o=r,s=i("2877"),l=Object(s["a"])(o,n,a,!1,null,null,null);t["default"]=l.exports},8839:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("base-model",{attrs:{config:e.model_cfg}},[i("template",{slot:"dialog-body"},[i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"medicalAuditForm",attrs:{model:e.form,rules:e.rules,"label-width":"120px",size:"small"}},[i("el-form-item",{attrs:{label:"问题名称",prop:"QuestionName"}},[i("el-input",{model:{value:e.form.QuestionName,callback:function(t){e.$set(e.form,"QuestionName",t)},expression:"form.QuestionName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"类型"}},[i("el-select",{on:{change:function(t){e.typeChange(t,e.form)}},model:{value:e.form.Type,callback:function(t){e.$set(e.form,"Type",t)},expression:"form.Type"}},[i("el-option",{attrs:{value:"select",label:"下拉框"}}),e._v(" "),i("el-option",{attrs:{value:"input",label:"单行文本框"}}),e._v(" "),i("el-option",{attrs:{value:"textarea",label:"多行文本框"}}),e._v(" "),i("el-option",{attrs:{value:"radio",label:"单选框"}})],1)],1),e._v(" "),"textarea"!==e.form.Type&&"input"!==e.form.Type?i("el-form-item",{attrs:{label:"选项: ",prop:"TypeValue"}},[i("el-input",{attrs:{placeholder:"选项请用‘|’分割多个选项"},model:{value:e.form.TypeValue,callback:function(t){e.$set(e.form,"TypeValue",t)},expression:"form.TypeValue"}})],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:"是否通用",prop:"IsGeneral"}},[i("el-switch",{model:{value:e.form.IsGeneral,callback:function(t){e.$set(e.form,"IsGeneral",t)},expression:"form.IsGeneral"}}),e._v(" "),i("span",[e._v(e._s(e.$fd("YesOrNo",e.form.IsGeneral)))])],1),e._v(" "),e.form.IsGeneral?e._e():i("el-form-item",{attrs:{label:"阅片标准",prop:"CriterionTypeEnum"}},[i("el-select",{model:{value:e.form.CriterionTypeEnum,callback:function(t){e.$set(e.form,"CriterionTypeEnum",t)},expression:"form.CriterionTypeEnum"}},e._l(e.$d.CriterionType,(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),"select"===e.form.Type||"radio"===e.form.Type?i("el-form-item",{attrs:{label:"任务类型",prop:"ReadingCategory"}},[i("el-select",{on:{change:function(t){e.readingCategoryChange(t,e.form)}},model:{value:e.form.ReadingCategory,callback:function(t){e.$set(e.form,"ReadingCategory",t)},expression:"form.ReadingCategory"}},e._l(e.$d.ReadingCategory,(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})})),1)],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:"父问题"}},[i("el-select",{attrs:{clearable:""},on:{change:function(t){e.parentQuestionChange(t,e.form)}},model:{value:e.form.ParentId,callback:function(t){e.$set(e.form,"ParentId",t)},expression:"form.ParentId"}},e._l(e.parentOptions,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.QuestionName,value:e.Id}})})),1)],1),e._v(" "),e.form.ParentId?i("el-form-item",{attrs:{label:"父问题触发值",prop:"ParentTriggerValue"}},[i("el-select",{model:{value:e.form.ParentTriggerValue,callback:function(t){e.$set(e.form,"ParentTriggerValue",t)},expression:"form.ParentTriggerValue"}},e._l(e.parentTriggerValOptions,(function(e){return i("el-option",{key:e,attrs:{label:e,value:e}})})),1)],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:"是否必填"}},[i("el-radio-group",{model:{value:e.form.IsRequired,callback:function(t){e.$set(e.form,"IsRequired",t)},expression:"form.IsRequired"}},[i("el-radio",{attrs:{label:!0}},[e._v("是")]),e._v(" "),i("el-radio",{attrs:{label:!1}},[e._v("否")])],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"启用状态"}},[i("el-radio-group",{model:{value:e.form.IsEnable,callback:function(t){e.$set(e.form,"IsEnable",t)},expression:"form.IsEnable"}},[i("el-radio",{attrs:{label:!0}},[e._v("启用")]),e._v(" "),i("el-radio",{attrs:{label:!1}},[e._v("停用")])],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"序号",prop:"ShowOrder"}},[i("el-input-number",{attrs:{"controls-position":"right",min:0},model:{value:e.form.ShowOrder,callback:function(t){e.$set(e.form,"ShowOrder",t)},expression:"form.ShowOrder"}})],1)],1)],1),e._v(" "),i("template",{slot:"dialog-footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.handleCancle}},[e._v("取消")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleSave}},[e._v("保存")])],1)],2)},a=[],r=i("db72"),o=(i("456d"),i("20d6"),i("96cf"),i("3b8d")),s=(i("ac6a"),i("5df3"),i("4f7f"),i("28a5"),i("e56e")),l=i("7eeb"),c=function(){return{Id:"",QuestionName:"",IsRequired:!0,IsEnable:!0,Type:"select",TypeValue:"",ShowOrder:0,ParentId:"",ParentTriggerValue:"",ReadingCategory:"",CriterionTypeEnum:null,IsGeneral:!0}},u={name:"MedicalAuditForm",components:{BaseModel:l["default"]},data:function(){var e=this,t=function(t,i,n){if(""===i)n(new Error(e.$t("common:ruleMessage:specify")));else{var a=i.split("|");new Set(a).size!==a.length?n(new Error("选项不允许存在相同值")):n()}};return{btnLoading:!1,form:c(),rules:{QuestionName:[{required:!0,message:"Please specify",trigger:"blur"},{max:50,message:"The maximum length is 50"}],TypeValue:[{required:!0,message:"Please specify",trigger:"blur"},{validator:t,trigger:"blur"},{max:200,message:"The maximum length is 200"}],ParentTriggerValue:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}],ReadingCategory:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}]},model_cfg:{visible:!1,showClose:!0,width:"600px",title:""},parentOptions:[],parentTriggerValOptions:[],loading:!1}},mounted:function(){},methods:{openDialog:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t,i){var n,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i.Id||(this.form=c()),this.model_cfg.visible=!0,this.model_cfg.title=t,n={trialId:this.trialId,id:i.Id?i.Id:"",readingCategory:i.ReadingCategory?i.ReadingCategory:""},e.next=6,this.getParentQsOpntions(n);case 6:i.ParentId&&(a=this.parentOptions.findIndex((function(e){return e.Id===i.ParentId})),-1!==a&&(this.parentTriggerValOptions=this.parentOptions[a].TypeValue.split("|"))),Object.keys(i).length&&i.Id&&(this.form=Object(r["a"])({},i));case 8:case"end":return e.stop()}}),e,this)})));function t(t,i){return e.apply(this,arguments)}return t}(),handleSave:function(){var e=this;this.$refs.medicalAuditForm.validate((function(t){t&&(e.btnLoading=!0,e.form.IsGeneral&&(e.form.CriterionTypeEnum=null),Object(s["o"])(e.form).then((function(t){e.btnLoading=!1,e.$message.success("保存成功!"),e.model_cfg.visible=!1,e.$emit("getList")})).catch((function(){e.btnLoading=!1})))}))},handleCancle:function(){this.model_cfg.visible=!1},getParentQsOpntions:function(e){var t=this;return new Promise((function(i,n){t.loading=!0,Object(s["rb"])(e).then((function(e){t.parentOptions=e.Result,t.loading=!1,i()})).catch((function(){t.loading=!1,n()}))}))},readingCategoryChange:function(e,t){if(e){var i={trialId:this.trialId,id:this.form.Id,readingCategory:e};this.parentOptions=[],this.parentTriggerValOptions=[],this.getParentQsOpntions(i),this.form.ParentId="",this.form.ParentTriggerValue=""}},parentQuestionChange:function(e,t){if(e){var i=this.parentOptions.findIndex((function(t){return t.Id===e}));-1!==i&&(this.parentTriggerValOptions=this.parentOptions[i].TypeValue.split("|"),this.form.ReadingCategory=this.parentOptions[i].ReadingCategory)}this.form.ParentTriggerValue=""},typeChange:function(e,t){"select"!==e&&"radio"!==e&&(t.TypeValue="")}}},d=u,f=i("2877"),h=Object(f["a"])(d,n,a,!1,null,null,null);t["default"]=h.exports},8858:function(e,t,i){"use strict";i("f9d1")},"88b3":function(e,t){var i="\0__throttleOriginMethod",n="\0__throttleRate",a="\0__throttleType";function r(e,t,i){var n,a,r,o,s,l=0,c=0,u=null;function d(){c=(new Date).getTime(),u=null,e.apply(r,o||[])}t=t||0;var f=function(){n=(new Date).getTime(),r=this,o=arguments;var e=s||t,f=s||i;s=null,a=n-(f?l:c)-e,clearTimeout(u),f?u=setTimeout(d,e):a>=0?d():u=setTimeout(d,-a),l=n};return f.clear=function(){u&&(clearTimeout(u),u=null)},f.debounceNextCall=function(e){s=e},f}function o(e,t,o,s){var l=e[t];if(l){var c=l[i]||l,u=l[a],d=l[n];if(d!==o||u!==s){if(null==o||!s)return e[t]=c;l=e[t]=r(c,o,"debounce"===s),l[i]=c,l[a]=s,l[n]=o}return l}}function s(e,t){var n=e[t];n&&n[i]&&(e[t]=n[i])}t.throttle=r,t.createOrUpdate=o,t.clear=s},"88c6":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container"},[i("div",{staticClass:"ImageReviewTask-list app-container"},[i("el-collapse",{model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},[i("el-collapse-item",{attrs:{title:"Timepoint Efficacy Assessment",name:"TimepointEfficacy"}},[i("el-table",{ref:"TimepointEfficacyTable",attrs:{data:e.timepointEfficacyList,stripe:"",size:"small"}},[i("el-table-column",{attrs:{type:"index",width:"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitName",label:"Visit","show-overflow-tooltip":"","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.VisitName+" ")+"\n "),i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return e.goCRF(t.row)}}},[e._v("CRF")]),e._v(" "),i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return e.goVisitImage(t.row)}}},[e._v("Image")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"OverallResponse",label:"Timepoint Efficacy Assessment","show-overflow-tooltip":"","min-width":"100"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Agree",label:"Agree or not","show-overflow-tooltip":"","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-select",{staticStyle:{width:"100%"},attrs:{size:"small"},model:{value:t.row.GlobalRSSelect.Agree,callback:function(i){e.$set(t.row.GlobalRSSelect,"Agree",i)},expression:"scope.row.GlobalRSSelect.Agree"}},[i("el-option",{attrs:{value:!0,label:"Agree"}}),e._v(" "),i("el-option",{attrs:{value:!1,label:"Disagree"}})],1)]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"newRS",label:"Updated Timepoint Efficacy Assessment","show-overflow-tooltip":"","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-select",{staticStyle:{width:"100%"},attrs:{size:"small"},model:{value:t.row.GlobalRSSelect.NewRS,callback:function(i){e.$set(t.row.GlobalRSSelect,"NewRS",i)},expression:"scope.row.GlobalRSSelect.NewRS"}},[i("el-option",{attrs:{value:"test1",label:"test1"}}),e._v(" "),i("el-option",{attrs:{value:"test2",label:"test2"}})],1)]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Note",label:"Comments for This Timepoint","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-input",{attrs:{type:"text",placeholder:"",size:"small",disabled:e.isReportSaved},model:{value:t.row.GlobalRSSelect.Note,callback:function(i){e.$set(t.row.GlobalRSSelect,"Note",i)},expression:"scope.row.GlobalRSSelect.Note"}})]}}])})],1)],1),e._v(" "),i("el-collapse-item",{attrs:{title:"Comments for the Subject",name:"CommentsForSubject"}},[i("el-input",{attrs:{type:"text",placeholder:"",size:"small",disabled:e.isReportSaved},model:{value:e.subjectNote,callback:function(t){e.subjectNote=t},expression:"subjectNote"}})],1),e._v(" "),i("el-collapse-item",{attrs:{title:"Previous Global Reads",name:"PreviousGlobalReads"}},[i("el-table",{ref:"GlobalReadsTable",attrs:{data:e.previousGlobalReadsList,stripe:"",size:"small"}},[i("el-table-column",{attrs:{type:"index",width:"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitName",label:"Visit","show-overflow-tooltip":"","min-width":"100"}}),e._v(" "),i("el-table-column",{attrs:{prop:"OverallResponse",label:"Timepoint Efficacy Assessment","show-overflow-tooltip":"","min-width":"100"}})],1)],1)],1),e._v(" "),i("div",{attrs:{id:"footer"}},[i("el-button",{staticStyle:{float:"left","margin-left":"500px"},attrs:{type:"primary",disabled:e.isReportSaved},on:{click:e.AddGlobalReport}},[e._v("Save")])],1)],1),e._v(" "),e.dialogVisible?i("div",[i("el-dialog",{attrs:{title:e.dialogTitle,visible:e.dialogVisible,width:"90%"},on:{"update:visible":function(t){e.dialogVisible=t}}},[1==e.rowVisitNum?i("baseline-task"):e._e(),e._v(" "),1!=e.rowVisitNum?i("visit-task",{attrs:{"global-row-visit-num":e.rowVisitNum,"visit-tp-code":e.rowTpCode}}):e._e()],1)],1):e._e()])},a=[],r=(i("ac6a"),i("0a05")),o=i("414c"),s=i("54b7"),l={name:"GlobalTask",components:{VisitTask:s["default"],BaselineTask:o["default"]},data:function(){return{isReportSaved:!1,pageTPInfo:"",activeNames:["TimepointEfficacy","CommentsForSubject","PreviousGlobalReads"],subjectNote:"",subjectCode:"",dialogVisible:!1,rowVisitNum:0,rowTpCode:"",dialogTitle:"",globalInfo:{},timepointEfficacyList:[],previousGlobalReadsList:[]}},created:function(){this.globalInfo=this.$route.query},mounted:function(){this.getTimepointEfficacy(),this.getPreviousGlobalReads()},methods:{getTimepointEfficacy:function(){var e=this;Object(r["h"])(this.globalInfo.TrialId,this.globalInfo.SubjectId,this.globalInfo.VisitNum,this.globalInfo.Id,this.globalInfo.WorkloadCode).then((function(t){e.timepointEfficacyList=t.Result}))},getPreviousGlobalReads:function(){var e=this;Object(r["g"])(this.globalInfo.TrialId,this.globalInfo.SubjectId,this.globalInfo.VisitNum,this.globalInfo.Id).then((function(t){e.previousGlobalReadsList=t.Result.PreviousGlobalReadsList,e.subjectNote=t.Result.SubjectNote}))},AddGlobalReport:function(){var e=this,t={};t.GlobalId=this.globalInfo.Id,t.SubjectNote=this.subjectNote,t.SubjectCode=this.globalInfo.SubjectCode,t.SubjectId=this.globalInfo.SubjectId,t.GlobalRSReportList=[],this.timepointEfficacyList.forEach((function(i){t.GlobalRSReportList.push({GlobalId:e.globalInfo.Id,TpCode:i.TpCode,VisitNum:i.VisitNum,Agree:i.GlobalRSSelect.Agree,NewRS:i.GlobalRSSelect.NewRS,Note:i.GlobalRSSelect.Note})})),Object(r["b"])(t).then((function(t){e.$message.success("Report saved successfully"),e.getTimepointEfficacy(),e.getPreviousGlobalReads()}))},goVisitImage:function(e){var t=zzSessionStorage.getItem("TokenKey"),i=this.$router.resolve({path:"/showdicom",query:{tpCode:e.TpCode,visitNum:e.VisitNum,studyId:e.StudyId,type:"Global",token:t}});window.setTimeout((function(){window.open(i.href,"_blank")}),1e3)},goCRF:function(e){this.rowVisitNum=e.VisitNum,this.dialogVisible=!0,this.rowTpCode=e.TpCode,this.dialogTitle=this.globalInfo.TrialCode+"/"+this.globalInfo.SubjectCode+"/"+e.VisitName}}},c=l,u=(i("6699"),i("2877")),d=Object(u["a"])(c,n,a,!1,null,null,null);t["default"]=d.exports},"88f0":function(e,t,i){var n=i("3eba"),a=i("6d8b"),r=n.extendComponentView({type:"marker",init:function(){this.markerGroupMap=a.createHashMap()},render:function(e,t,i){var n=this.markerGroupMap;n.each((function(e){e.__keep=!1}));var a=this.type+"Model";t.eachSeries((function(e){var n=e[a];n&&this.renderSeries(e,n,t,i)}),this),n.each((function(e){!e.__keep&&this.group.remove(e.group)}),this)},renderSeries:function(){}});e.exports=r},8918:function(e,t,i){var n=i("6d8b"),a=i("625e"),r=a.parseClassType,o=0;function s(e){return[e||"",o++,Math.random().toFixed(5)].join("_")}function l(e){var t={};return e.registerSubTypeDefaulter=function(e,i){e=r(e),t[e.main]=i},e.determineSubType=function(i,n){var a=n.type;if(!a){var o=r(i).main;e.hasSubTypes(i)&&t[o]&&(a=t[o](n))}return a},e}function c(e,t){function i(e){var i={},o=[];return n.each(e,(function(s){var l=a(i,s),c=l.originalDeps=t(s),u=r(c,e);l.entryCount=u.length,0===l.entryCount&&o.push(s),n.each(u,(function(e){n.indexOf(l.predecessor,e)<0&&l.predecessor.push(e);var t=a(i,e);n.indexOf(t.successor,e)<0&&t.successor.push(s)}))})),{graph:i,noEntryList:o}}function a(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}function r(e,t){var i=[];return n.each(e,(function(e){n.indexOf(t,e)>=0&&i.push(e)})),i}e.topologicalTravel=function(e,t,a,r){if(e.length){var o=i(t),s=o.graph,l=o.noEntryList,c={};n.each(e,(function(e){c[e]=!0}));while(l.length){var u=l.pop(),d=s[u],f=!!c[u];f&&(a.call(r,u,d.originalDeps.slice()),delete c[u]),n.each(d.successor,f?p:h)}n.each(c,(function(){throw new Error("Circle dependency may exists")}))}function h(e){s[e].entryCount--,0===s[e].entryCount&&l.push(e)}function p(e){c[e]=!0,h(e)}}}t.getUID=s,t.enableSubTypeDefaulter=l,t.enableTopologicalTravel=c},"891f":function(e,t,i){},8968:function(e,t,i){"use strict";i("25c7")},"896b":function(e,t,i){"use strict";i.d(t,"k",(function(){return a})),i.d(t,"n",(function(){return r})),i.d(t,"i",(function(){return o})),i.d(t,"f",(function(){return s})),i.d(t,"b",(function(){return l})),i.d(t,"h",(function(){return c})),i.d(t,"c",(function(){return u})),i.d(t,"e",(function(){return d})),i.d(t,"g",(function(){return f})),i.d(t,"a",(function(){return h})),i.d(t,"d",(function(){return p})),i.d(t,"m",(function(){return m})),i.d(t,"l",(function(){return g})),i.d(t,"j",(function(){return v}));var n=i("b775");function a(e){return Object(n["a"])({url:"/TrialSiteSurvey/sendVerifyCode",method:"post",data:e})}function r(e){return Object(n["a"])({url:"/TrialSiteSurvey/verifySendCode",method:"post",data:e})}function o(e){return Object(n["a"])({url:"/TrialSiteSurvey/getTrialSurveyInitInfo/".concat(e),method:"get"})}function s(e,t){return Object(n["a"])({url:"/TrialSiteSurvey/getSiteSurveyInfo/".concat(e,"/").concat(t),method:"get"})}function l(e){return Object(n["a"])({url:"/TrialSiteSurvey/addOrUpdateTrialSiteSurvey",method:"post",data:e})}function c(e){return Object(n["a"])({url:"/TrialSiteUserSurvey/getTrialSiteUserSurveyList/".concat(e),method:"get"})}function u(e,t){return Object(n["a"])({url:"/TrialSiteUserSurvey/addOrUpdateTrialSiteUserSurvey/".concat(e),method:"post",data:t})}function d(e,t){return Object(n["a"])({url:"/TrialSiteUserSurvey/deleteTrialSiteUserSurvey/".concat(e,"/").concat(t),method:"delete"})}function f(e){return Object(n["a"])({url:"/TrialSiteEquipmentSurvey/getTrialSiteEquipmentSurveyList/".concat(e),method:"get"})}function h(e,t){return Object(n["a"])({url:"/TrialSiteEquipmentSurvey/addOrUpdateTrialSiteEquipmentSurvey/".concat(e),method:"post",data:t})}function p(e,t){return Object(n["a"])({url:"/TrialSiteEquipmentSurvey/deleteTrialSiteEquipmentSurvey/".concat(e,"/").concat(t),method:"delete"})}function m(e){return Object(n["a"])({url:"/TrialSiteSurvey/trialSurveySubmit",method:"post",data:e})}function g(e){return Object(n["a"])({url:"/TrialSiteSurvey/submissionRejection",method:"post",data:e})}function v(e){return Object(n["a"])({url:"/UserTypeRole/getUserTypeList/".concat(e),method:"get"})}},8971:function(e,t){var i="";"undefined"!==typeof navigator&&(i=navigator.platform||"");var n={color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],gradientColor:["#f6efa6","#d88273","#bf444c"],textStyle:{fontFamily:i.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,animation:"auto",animationDuration:1e3,animationDurationUpdate:300,animationEasing:"exponentialOut",animationEasingUpdate:"cubicOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};e.exports=n},"897a":function(e,t,i){var n=i("22d1"),a=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];function r(e){return n.browser.ie&&n.browser.version>=11?function(){var t,i=this.__clipPaths,n=this.style;if(i)for(var r=0;r<i.length;r++){var o=i[r],s=o&&o.shape,l=o&&o.type;if(s&&("sector"===l&&s.startAngle===s.endAngle||"rect"===l&&(!s.width||!s.height))){for(var c=0;c<a.length;c++)a[c][2]=n[a[c][0]],n[a[c][0]]=a[c][1];t=!0;break}}if(e.apply(this,arguments),t)for(c=0;c<a.length;c++)n[a[c][0]]=a[c][2]}:e}e.exports=r},8989:function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-pdf",use:"icon-pdf-usage",viewBox:"0 0 1024 1024",content:'<symbol viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" id="icon-pdf"><path d="M869.073 277.307H657.111V65.344l211.962 211.963zm-238.232 26.27V65.344l-476.498-.054v416.957h714.73v-178.67H630.841zm-335.836 360.57c-5.07-3.064-10.944-5.133-17.61-6.201-6.67-1.064-13.603-1.6-20.81-1.6h-48.821v85.641h48.822c7.206 0 14.14-.532 20.81-1.6 6.665-1.065 12.54-3.133 17.609-6.202 5.064-3.063 9.134-7.406 12.208-13.007 3.065-5.602 4.6-12.937 4.6-22.011 0-9.07-1.535-16.408-4.6-22.01-3.074-5.603-7.144-9.94-12.208-13.01zM35.82 541.805v416.904h952.358V541.805H35.821zm331.421 191.179c-3.6 11.071-9.343 20.879-17.209 29.413-7.874 8.542-18.078 15.408-30.617 20.61-12.544 5.206-27.747 7.807-45.621 7.807h-66.036v102.45h-62.831V607.517h128.867c17.874 0 33.077 2.6 45.62 7.802 12.541 5.207 22.745 12.076 30.618 20.615 7.866 8.538 13.604 18.277 17.21 29.212 3.6 10.943 5.401 22.278 5.401 34.018 0 11.477-1.8 22.752-5.402 33.819zM644.9 806.417c-5.343 17.61-13.408 32.818-24.212 45.627-10.807 12.803-24.283 22.879-40.423 30.213-16.146 7.343-35.155 11.007-57.03 11.007h-123.26V607.518h123.26c18.41 0 35.552 2.941 51.428 8.808 15.873 5.869 29.618 14.671 41.22 26.412 11.608 11.744 20.674 26.411 27.217 44.02 6.535 17.61 9.803 38.288 9.803 62.035 0 20.81-2.67 40.02-8.003 57.624zm245.362-146.07h-138.07v66.03h119.66v48.829h-119.66v118.058h-62.83V607.518h200.9v52.829h-.001zm-318.2 25.611c-6.402-8.266-14.877-14.604-25.412-19.01-10.544-4.402-23.551-6.602-39.019-6.602h-44.825v180.088h56.029c9.07 0 17.872-1.463 26.415-4.401 8.535-2.932 16.14-7.802 22.812-14.609 6.665-6.8 12.007-15.667 16.007-26.61 4.003-10.94 6.003-24.275 6.003-40.021 0-14.408-1.4-27.416-4.202-39.019-2.8-11.607-7.406-21.542-13.808-29.816zm0 0" /></symbol>'});o.a.add(s);t["default"]=s},"89e3":function(e,t,i){var n=i("3842"),a=i("eda2"),r=i("e0d8"),o=i("944e"),s=n.round,l=r.extend({type:"interval",_interval:0,_intervalPrecision:2,setExtent:function(e,t){var i=this._extent;isNaN(e)||(i[0]=parseFloat(e)),isNaN(t)||(i[1]=parseFloat(t))},unionExtent:function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]),l.prototype.setExtent.call(this,t[0],t[1])},getInterval:function(){return this._interval},setInterval:function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=o.getIntervalPrecision(e)},getTicks:function(e){var t=this._interval,i=this._extent,n=this._niceExtent,a=this._intervalPrecision,r=[];if(!t)return r;var o=1e4;i[0]<n[0]&&(e?r.push(s(n[0]-t,a)):r.push(i[0]));var l=n[0];while(l<=n[1]){if(r.push(l),l=s(l+t,a),l===r[r.length-1])break;if(r.length>o)return[]}var c=r.length?r[r.length-1]:n[1];return i[1]>c&&(e?r.push(s(c+t,a)):r.push(i[1])),r},getMinorTicks:function(e){for(var t=this.getTicks(!0),i=[],a=this.getExtent(),r=1;r<t.length;r++){var o=t[r],s=t[r-1],l=0,c=[],u=o-s,d=u/e;while(l<e-1){var f=n.round(s+(l+1)*d);f>a[0]&&f<a[1]&&c.push(f),l++}i.push(c)}return i},getLabel:function(e,t){if(null==e)return"";var i=t&&t.precision;return null==i?i=n.getPrecisionSafe(e)||0:"auto"===i&&(i=this._intervalPrecision),e=s(e,i,!0),a.addCommas(e)},niceTicks:function(e,t,i){e=e||5;var n=this._extent,a=n[1]-n[0];if(isFinite(a)){a<0&&(a=-a,n.reverse());var r=o.intervalScaleNiceTicks(n,e,t,i);this._intervalPrecision=r.intervalPrecision,this._interval=r.interval,this._niceExtent=r.niceTickExtent}},niceExtent:function(e){var t=this._extent;if(t[0]===t[1])if(0!==t[0]){var i=t[0];e.fixMax||(t[1]+=i/2),t[0]-=i/2}else t[1]=1;var n=t[1]-t[0];isFinite(n)||(t[0]=0,t[1]=1),this.niceTicks(e.splitNumber,e.minInterval,e.maxInterval);var a=this._interval;e.fixMin||(t[0]=s(Math.floor(t[0]/a)*a)),e.fixMax||(t[1]=s(Math.ceil(t[1]/a)*a))}});l.create=function(){return new l};var c=l;e.exports=c},"89ff":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"resume-info"},[i("el-table",{staticStyle:{"margin-top":"10px"},attrs:{data:e.list,size:"small"}},[i("el-table-column",{attrs:{type:"index",label:"No.",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"FileName",label:"File Name","min-width":"60","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Isoffical",label:"Offical","min-width":"50",formatter:e.officalFormatter,"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Language",label:"Language","min-width":"50","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(1===t.row.Language?"CH":2===t.row.Language?"EN":"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:"Upload Time","min-width":"60","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:"Action","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return e.preview(t.$index,t.row)}}},[e._v("Download")])]}}])})],1)],1)},a=[],r=(i("ac6a"),{props:{resumeList:{type:Array,default:function(){return[]}}},data:function(){return{list:[]}},created:function(){this.list=this.filterResume(this.resumeList)},methods:{filterResume:function(e){var t=[];return e.length>0&&e.forEach((function(e){"Resume"===e.Type&&t.push(e)})),t},preview:function(e,t){var i=t.FullPath;i&&window.open(i,"_blank")},timeFormatter:function(e){return new Date(e.CreateTime).format("yyyy-MM-dd hh:mm:ss")},officalFormatter:function(e,t){return e.IsOfficial?"Yes":"No"}}}),o=r,s=(i("63a0"),i("2877")),l=Object(s["a"])(o,n,a,!1,null,null,null);t["default"]=l.exports},"8a61":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{height:"100%"}},[i("router-view")],1)},a=[],r=i("2877"),o={},s=Object(r["a"])(o,n,a,!1,null,null,null);t["default"]=s.exports},"8ae4":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"criterion-form-item"},[1===e.question.ShowQuestion&&~e.question.ParentTriggerValueList.indexOf(e.questionForm[e.question.ParentId])||0===e.question.ShowQuestion?i("el-form-item",{class:["group"===e.question.Type?"mb":"upload"===e.question.Type?"uploadWrapper":""],attrs:{label:""+e.question.QuestionName,prop:e.question.Id,rules:[{required:(0===e.question.IsRequired||1===e.question.IsRequired&&e.question.RelevanceId&&!!~e.question.RelevanceValueList.indexOf(e.questionForm[e.question.RelevanceId]))&&"group"!==e.question.Type&&"summary"!==e.question.Type,message:"请注明",trigger:["blur","change"]}]}},["input"===e.question.Type?i("el-input",{attrs:{disabled:2===e.question.TableQuestionType||e.question.IsCopy&&"edit"===e.type&&!e.IsBaseline&&"False"===e.questionForm.IsCurrentTaskAdd},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"textarea"===e.question.Type?i("el-input",{attrs:{type:"textarea",disabled:2===e.question.TableQuestionType||e.question.IsCopy&&"edit"===e.type&&!e.IsBaseline&&"False"===e.questionForm.IsCurrentTaskAdd,autosize:{minRows:2,maxRows:4}},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"select"===e.question.Type?i("el-select",{attrs:{clearable:"",disabled:2===e.question.TableQuestionType||2===e.question.QuestionGenre||e.question.IsCopy&&"edit"===e.type&&!e.IsBaseline&&"False"===e.questionForm.IsCurrentTaskAdd},on:{change:function(t){e.formItemChange(t,e.question)}},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},[1===e.question.TableQuestionType?e._l(e.organList,(function(t){return i("el-option",{key:t.Id,attrs:{label:t[e.question.DataTableColumn],value:t[e.question.DataTableColumn]}})})):3===e.question.TableQuestionType||3===e.question.QuestionGenre?e._l(e.$d[e.question.DictionaryCode],(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})})):2!==e.question.TableQuestionType&&2!==e.question.QuestionGenre||!e.question.DictionaryCode?e._l(e.question.TypeValue.split("|"),(function(e){return i("el-option",{key:e,attrs:{label:e,value:e}})})):e._l(e.$d[e.question.DictionaryCode],(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})}))],2):e._e(),e._v(" "),"radio"===e.question.Type?i("el-radio-group",{attrs:{disabled:2===e.question.TableQuestionType||e.question.IsCopy&&"edit"===e.type&&!e.IsBaseline&&"False"===e.questionForm.IsCurrentTaskAdd},on:{change:function(t){e.formItemChange(t,e.question)}},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},e._l(e.question.TypeValue.split("|"),(function(t){return i("el-radio",{key:t,attrs:{label:t}},[e._v("\n "+e._s(t)+"\n ")])})),1):e._e(),e._v(" "),"checkbox"===e.question.Type?i("el-checkbox-group",{attrs:{disabled:2===e.question.TableQuestionType||e.question.IsCopy&&"edit"===e.type&&!e.IsBaseline&&"False"===e.questionForm.IsCurrentTaskAdd},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},e._l(e.question.TypeValue.split("|"),(function(t){return i("el-checkbox",{key:t,attrs:{label:t}},[e._v("\n "+e._s(t)+"\n ")])})),1):e._e(),e._v(" "),"calculation"===e.question.Type?i("el-input",{attrs:{oninput:"value=value.replace(/^\\D*(\\d*(?:.\\d{0,2})?).*$/g, '$1')",disabled:""},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"increment"===e.question.Type?i("el-input",{attrs:{disabled:""},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"number"===e.question.Type&&1!==e.question.DataSource?i("el-input",{attrs:{type:"number",disabled:2===e.question.TableQuestionType||e.question.IsCopy&&"edit"===e.type&&!e.IsBaseline&&"False"===e.questionForm.IsCurrentTaskAdd,onblur:"value=parseFloat(value).toFixed(parseInt(localStorage.getItem('digitPlaces')))"},on:{change:function(t){e.formItemNumberChange(t,e.question)},input:function(t){return e.limitInput(t,e.question)}},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},[0!==e.question.Unit?i("template",{slot:"append"},[e._v(e._s(4!==e.question.Unit?e.$fd("ValueUnit",e.question.Unit):e.question.CustomUnit))]):e._e()],2):e._e(),e._v(" "),"number"===e.question.Type&&1===e.question.DataSource?i("el-input",{attrs:{type:"number",disabled:1===e.question.DataSource,onblur:"value=parseFloat(value).toFixed(parseInt(localStorage.getItem('digitPlaces')))"},on:{input:function(t){return e.limitInput(t,e.question)}},model:{value:e.calculationValue,callback:function(t){e.calculationValue=t},expression:"calculationValue"}},[0!==e.question.Unit?i("template",{slot:"append"},[e._v(e._s(4!==e.question.Unit?e.$fd("ValueUnit",e.question.Unit):e.question.CustomUnit))]):e._e()],2):e._e(),e._v(" "),"upload"===e.question.Type?i("el-upload",{class:{disabled:e.fileList.length>=e.question.ImageCount},attrs:{action:e.accept,limit:e.question.ImageCount,"on-preview":e.handlePictureCardPreview,"before-upload":e.handleBeforeUpload,"http-request":e.uploadScreenshot,"list-type":"picture-card","on-remove":e.handleRemove,"file-list":e.fileList},scopedSlots:e._u([{key:"file",fn:function(t){var n=t.file;return i("div",{},[i("img",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:n.url,alt:""}}),e._v(" "),i("span",{staticClass:"el-upload-list__item-actions"},[i("span",{staticClass:"el-upload-list__item-preview",on:{click:function(t){return e.handlePictureCardPreview(n)}}},[i("i",{staticClass:"el-icon-zoom-in"})]),e._v(" "),e.readingTaskState<2?i("span",{staticClass:"el-upload-list__item-delete",on:{click:function(t){return e.handleRemove(n)}}},[i("i",{staticClass:"el-icon-delete"})]):e._e()])])}}],null,!1,3246650725)},[i("i",{staticClass:"el-icon-plus",attrs:{slot:"default"},slot:"default"})]):e._e(),e._v(" "),"upload"===e.question.Type?i("el-dialog",{attrs:{"append-to-body":"",visible:e.imgVisible,width:"600px"},on:{"update:visible":function(t){e.imgVisible=t}}},[i("el-image",{attrs:{src:e.imageUrl,width:"100%"}},[i("div",{staticClass:"image-slot",attrs:{slot:"placeholder"},slot:"placeholder"},[e._v("\n 加载中"),i("span",{staticClass:"dot"},[e._v("...")])])])],1):e._e()],1):e._e()],1)},a=[],r=(i("386d"),i("7f7f"),i("ac6a"),i("20d6"),i("28a5"),i("c5f6"),i("3e42")),o={name:"QuestionFormItem",props:{IsBaseline:{type:Boolean,required:!0},questionForm:{type:Object,default:function(){return{}}},question:{type:Object,default:function(){return[]}},criterionId:{type:String,required:!0},readingTaskState:{type:Number,required:!0},visitTaskId:{type:String,default:""},type:{type:String,default:"add"}},computed:{calculationValue:{get:function(){return this.questionForm[this.question.Id]},set:function(){}}},data:function(){return{addOrEdit:{visible:!1,title:""},fileList:[],accept:".png,.jpg,.jpeg",imgVisible:!1,imageUrl:"",urls:[],organList:[],QuestionsList:[],QuestionsForm:{},digitPlaces:0}},watch:{questionForm:{deep:!0,immediate:!0,handler:function(e){}}},mounted:function(){var e=this;this.digitPlaces=localStorage.getItem("digitPlaces")?parseInt(localStorage.getItem("digitPlaces")):0,"upload"===this.question.Type&&this.questionForm[this.question.Id]&&(this.urls=this.questionForm[this.question.Id].split("|"),this.fileList=[],this.urls.map((function(t){e.fileList.push({name:"",url:"/api/".concat(t)})}))),"edit"!==this.type&&("number"===this.question.Type?(console.log(this.questionForm),this.$set(this.questionForm,this.question.Id,null)):this.$set(this.questionForm,this.question.Id,""))},methods:{save:function(){},openAddTableCol:function(e){this.addOrEdit.visible=!0,this.addOrEdit.title=e.QuestionName+"表格问题",this.QuestionsList=e.TableQuestions.Questions,this.AnswersList=e.TableQuestions.Answers,this.QuestionsForm={},console.log(this.QuestionsForm)},getOrganInfoList:function(){var e=this,t={trialId:this.$route.query.trialId,lesionType:this.question.LesionType,isEnable:!0};Object(r["Rd"])(t).then((function(t){e.organList=t.Result}))},formItemChange:function(e,t){var i=this;if(t.Childrens&&t.Childrens.length>0&&this.resetChild(t.Childrens),1===t.TableQuestionType&&t.RelationQuestions.length>0){var n=this.organList.findIndex((function(i){return i[t.DataTableColumn]===e}));if(n<0)return;var a=this.organList[n];this.question.RelationQuestions.map((function(e){var t=a[e.DataTableColumn];i.$emit("setFormItemData",{key:e.Id,val:t})}))}},limitInput:function(e,t){console.log(e),e.indexOf(".")>-1&&e.split(".")[1].length>=this.digitPlaces&&this.$set(this.questionForm,t.Id,parseFloat(e).toFixed(this.digitPlaces))},formItemNumberChange:function(e,t){this.$emit("formItemTableNumberChange",e,t)},resetChild:function(e){var t=this;e.forEach((function(e){t.$emit("resetFormItemData",e.Id),e.Childrens&&e.Childrens.length>0&&t.resetChild(e.Childrens)}))},resetFormItemData:function(e){this.$emit("resetFormItemData",e)},setFormItemData:function(e){this.$emit("setFormItemData",e)},uploadScreenshot:function(e){var t=this;if(this.visitTaskId){var i=this.$loading({target:document.querySelector(".el-dialog"),fullscreen:!1,lock:!0,text:"Loading",spinner:"el-icon-loading"}),n=new FormData;n.append("file",e.file),Object(r["Af"])(this.$route.query.trialId,this.visitTaskId,n).then((function(e){e.IsSuccess&&(t.fileList.push({url:"/api/".concat(e.Result.Path)}),t.urls.push(e.Result.Path),console.log(t.urls),t.$emit("setFormTableItemData",t.question.Id,t.urls.length>0?t.urls.join("|"):"")),i.close()})).catch((function(){i.close()}))}},handleBeforeUpload:function(e){return!!this.checkFileSuffix(e.name)||(this.$message.error("必须是 ".concat(this.accept," 格式")),!1)},checkFileSuffix:function(e){var t=e.lastIndexOf("."),i=e.substring(t+1,e.length);return-1!==this.accept.toLocaleLowerCase().search(i.toLocaleLowerCase())},handlePictureCardPreview:function(e){this.imageUrl=e.url,this.imgVisible=!0},handleRemove:function(e,t){this.imageUrl="",this.fileList.splice(this.fileList.findIndex((function(t){return t.url===e.url})),1),this.urls.splice(this.fileList.findIndex((function(t){return t===e.url})),1),this.$emit("setFormTableItemData",this.question.Id,this.urls.length>0?this.urls.join("|"):"")}}},s=o,l=(i("19ab"),i("2877")),c=Object(l["a"])(s,n,a,!1,null,"14b2c71a",null);t["default"]=c.exports},"8aef":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("el-button",{attrs:{plain:""},on:{click:e.open}},[e._v("上传视频文件")]),e._v(" "),i("el-dialog",{attrs:{title:"上传视频","close-on-click-modal":!1,visible:e.IsOpen,width:"450px","append-to-body":""},on:{"update:visible":function(t){e.IsOpen=t}}},[i("my-videos",{on:{uploadOver:e.uploadOver}})],1)],1)},a=[],r=(i("7f7f"),i("3726")),o={components:{MyVideos:r["default"]},data:function(){return{IsOpen:!1,videoUrl:null,videoName:null}},methods:{open:function(){this.IsOpen=!0},uploadOver:function(e,t){e&&(this.IsOpen=!1,this.videoUrl=t.url,this.videoName=t.name)}}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,"3ff178b2",null);t["default"]=c.exports},"8b29":function(e,t,i){"use strict";i.d(t,"b",(function(){return a})),i.d(t,"a",(function(){return r})),i.d(t,"c",(function(){return o}));var n=i("b775");function a(e){return Object(n["a"])({url:"/SystemNotice/getSystemNoticeList",method:"post",data:e})}function r(e){return Object(n["a"])({url:"/SystemNotice/addOrUpdateSystemNotice",method:"post",data:e})}function o(e){return Object(n["a"])({url:"/SystemNotice/UploadSystemNoticeDoc",method:"post",data:e})}},"8b7f":function(e,t,i){var n=i("4e08"),a=(n.__DEV__,i("6d8b")),r=a.createHashMap,o=(a.retrieve,a.each);function s(e){this.coordSysName=e,this.coordSysDims=[],this.axisMap=r(),this.categoryAxisMap=r(),this.firstCategoryDimIndex=null}function l(e){var t=e.get("coordinateSystem"),i=new s(t),n=c[t];if(n)return n(e,i,i.axisMap,i.categoryAxisMap),i}var c={cartesian2d:function(e,t,i,n){var a=e.getReferringComponents("xAxis")[0],r=e.getReferringComponents("yAxis")[0];t.coordSysDims=["x","y"],i.set("x",a),i.set("y",r),u(a)&&(n.set("x",a),t.firstCategoryDimIndex=0),u(r)&&(n.set("y",r),t.firstCategoryDimIndex,t.firstCategoryDimIndex=1)},singleAxis:function(e,t,i,n){var a=e.getReferringComponents("singleAxis")[0];t.coordSysDims=["single"],i.set("single",a),u(a)&&(n.set("single",a),t.firstCategoryDimIndex=0)},polar:function(e,t,i,n){var a=e.getReferringComponents("polar")[0],r=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],i.set("radius",r),i.set("angle",o),u(r)&&(n.set("radius",r),t.firstCategoryDimIndex=0),u(o)&&(n.set("angle",o),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},geo:function(e,t,i,n){t.coordSysDims=["lng","lat"]},parallel:function(e,t,i,n){var a=e.ecModel,r=a.getComponent("parallel",e.get("parallelIndex")),s=t.coordSysDims=r.dimensions.slice();o(r.parallelAxisIndex,(function(e,r){var o=a.getComponent("parallelAxis",e),l=s[r];i.set(l,o),u(o)&&null==t.firstCategoryDimIndex&&(n.set(l,o),t.firstCategoryDimIndex=r)}))}};function u(e){return"category"===e.get("type")}t.getCoordSysInfoBySeries=l},"8b98":function(e,t,i){"use strict";i("2fea")},"8bd9":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"measurement-wrapper",style:{height:e.height+10+"px"}},[i("div",{staticClass:"container",style:{height:e.height+"px"}},[e.isReadingShowSubjectInfo?i("h3",{staticStyle:{color:"#ddd",padding:"5px 0px",margin:"0"}},[e.subjectCode?i("span",[e._v(e._s(e.subjectCode)+" ")]):e._e(),e._v(" "),i("span",{staticStyle:{"margin-left":"5px"}},[e._v(e._s(e.taskBlindName))])]):e._e(),e._v(" "),i("div",{staticClass:"lesions"},[i("Questions",{ref:"ecrf",attrs:{"question-form-change-state":e.questionFormChangeState,"question-form-change-num":e.questionFormChangeNum}})],1),e._v(" "),e.questions.length>0&&10!==e.CriterionType?e._l(e.questions,(function(t,n){return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],key:n,staticClass:"lesions lesions_wrapper"},["group"===t.Type?i("h4",{staticStyle:{color:"#ddd",padding:"5px 0px",margin:"0"}},[e._v("\n "+e._s("en"===e.language?t.GroupEnName:t.GroupName)+"\n ")]):e._e(),e._v(" "),i("div",{staticClass:"lesion_list"},e._l(t.Childrens,(function(t){return i("div",{directives:[{name:"show",rawName:"v-show",value:!(e.isBaseLineTask&&2===t.LesionType),expression:"!(isBaseLineTask && item.LesionType === 2)"}],key:t.Id},["table"===t.Type?i("div",{staticClass:"flex-row"},[i("div",{staticClass:"title"},[e._v(e._s(t.QuestionName))]),e._v(" "),e.readingTaskState<2&&(e.isBaseLineTask||2===t.LesionType)?i("div",{staticClass:"add-icon",on:{click:function(i){return i.preventDefault(),e.handleAdd(t)}}},[i("i",{staticClass:"el-icon-plus"})]):e._e()]):e._e(),e._v(" "),"table"===t.Type&&t.TableQuestions?i("el-collapse",{attrs:{accordion:""},on:{change:e.handleCollapseChange},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},e._l(t.TableQuestions.Answers,(function(n,a){return i("el-collapse-item",{key:a,attrs:{name:t.Id+"_"+n.RowIndex}},[i("template",{slot:"title"},[i("div",{staticStyle:{width:"300px",position:"relative"},style:{color:e.activeName===t.Id+n.RowIndex?"#ffeb3b":"#fff"}},[e._v("\n\n "+e._s(e.getLesionName(t.OrderMark,n.RowIndex))+"\n "),e._v(" "),e.readingTaskState<2&&0===parseInt(t.TableQuestions.Answers[a].saveTypeEnum)?i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$t("trials:reading:button:unsaved"),placement:"bottom"}},[i("i",{staticClass:"el-icon-warning",staticStyle:{color:"red"}})]):e._e(),e._v(" "),e.readingTaskState<2&&1===parseInt(t.TableQuestions.Answers[a].saveTypeEnum)?i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$t("trials:reading:button:incompleteInfor"),placement:"bottom"}},[i("i",{staticClass:"el-icon-warning",staticStyle:{color:"#ff9800"}})]):e._e(),e._v(" "),i("div",{staticStyle:{position:"absolute",left:"50px",top:"2px"}},[i("div",{staticStyle:{"font-size":"10px",width:"220px"}},[t.TableQuestions.Answers[a].lesionPart?i("div",{staticStyle:{"margin-left":"10px","margin-bottom":"5px",display:"inline-block","white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis","max-width":"90px"}},[t.TableQuestions.Answers[a].lesionPart?i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:t.TableQuestions.Answers[a].lesionPart,placement:"bottom"}},[i("span",[e._v(e._s(t.TableQuestions.Answers[a].lesionPart))])]):e._e()],1):e._e(),e._v(" "),i("div",{staticStyle:{display:"inline-block","margin-left":"5px","margin-bottom":"5px","white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis","max-width":"50px"}},[0===t.LesionType?i("span",[e._v("\n "+e._s(e.$fd("TargetState",parseInt(t.TableQuestions.Answers[a].lesionState)))+"\n ")]):1===t.LesionType?i("span",[e._v("\n "+e._s(e.$fd("NoTargetState",parseInt(t.TableQuestions.Answers[a].lesionState)))+"\n ")]):i("span",[e._v("\n "+e._s(e.$fd("NewLesionState",parseInt(t.TableQuestions.Answers[a].lesionState)))+"\n ")])]),e._v(" "),i("div",{staticStyle:{display:"inline-block","margin-left":"5px","margin-bottom":"5px","white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis","max-width":"60px"}},[t.TableQuestions.Answers[a].isLymphLesion&&!isNaN(parseInt(t.TableQuestions.Answers[a].lesionShort))?[e._v("\n "+e._s(t.TableQuestions.Answers[a].lesionShort)+"mm\n ")]:t.TableQuestions.Answers[a].isLymphLesion||isNaN(parseInt(t.TableQuestions.Answers[a].lesionLength))?e._e():[e._v("\n "+e._s(t.TableQuestions.Answers[a].lesionLength)+"mm\n ")]],2)])]),e._v(" "),i("div",{staticStyle:{position:"absolute",right:"5px",top:"2px",transform:"rotateY(180deg)"}},[i("el-tooltip",{directives:[{name:"show",rawName:"v-show",value:e.readingTaskState<2&&!!t.TableQuestions.Answers[a].RowId&&!e.isBaseLineTask&&!1!==t.TableQuestions.Answers[a].isDicomReading,expression:"readingTaskState<2 && !!item.TableQuestions.Answers[i].RowId && !isBaseLineTask && item.TableQuestions.Answers[i].isDicomReading !== false"}],staticClass:"item",attrs:{content:e.$t("trials:reading:button:split"),placement:"left"}},[i("i",{staticClass:"iconfont icon-24gl-split",staticStyle:{color:"#fff","font-size":"16px"},on:{click:function(i){return i.stopPropagation(),e.handleSplit(t.TableQuestions.Answers[a].RowId,t.Id)}}})])],1)],1)]),e._v(" "),i("QuestionForm",{ref:t.Id+"_"+n.RowIndex,refInFor:!0,attrs:{questions:t.TableQuestions.Questions,answers:t.TableQuestions.Answers[a],"lesion-type":t.LesionType,"order-mark":t.OrderMark,"table-questions":e.tableQuestions,"row-index":String(n.RowIndex),"question-name":t.QuestionName,"parent-qs-id":t.Id,"visit-task-id":e.visitTaskId,"is-current-task":e.isCurrentTask,"reading-task-state":e.readingTaskState,"is-base-line-task":e.isBaseLineTask},on:{getReadingQuestionAndAnswer:e.getReadingQuestionAndAnswer,determineExistsUnsavedLession:e.determineExistsUnsavedLession,resetQuestions:e.resetQuestions,close:e.close}})],2)})),1):e._e()],1)})),0)])})):e._e(),e._v(" "),e.questions.length>0&&10===e.CriterionType?[i("PCWG3Questions",{ref:"pcwg3",attrs:{questions:e.questions,"reading-task-state-parent":e.readingTaskState}})]:e._e()],2)])},a=[],r=(i("7514"),i("f576"),i("a481"),i("28a5"),i("ac6a"),i("20d6"),i("96cf"),i("3b8d")),o=i("db72"),s=(i("c5f6"),i("3e42")),l=i("9b92"),c=i("4360"),u=i("2f62"),d=i("d862"),f=i("1b24"),h={name:"MeasurementList",components:{Questions:d["default"],QuestionForm:f["default"]},props:{isShow:{type:Boolean,required:!0},isReadingShowSubjectInfo:{type:Boolean,required:!0},questionFormChangeState:{type:Boolean,default:function(){return!1}},questionFormChangeNum:{type:Number,default:function(){return 0}}},data:function(){return{height:window.innerHeight-140,questions:[],activeName:"",activeItem:{activeRowIndex:null,activeCollapseId:null},visitTaskId:"",isCurrentTask:!1,loading:!1,unSaveTargets:[],temporaryLesions:[],readingTaskState:2,isBaseLineTask:!1,taskBlindName:"",tableQuestions:[],isFirstRender:!1,CriterionType:null,subjectCode:""}},computed:Object(o["a"])({},Object(u["b"])(["visitTaskList","language","lastCanvasTaskId","currentReadingTaskState"])),watch:{lastCanvasTaskId:{immediate:!0,handler:function(e){e&&this.initList(),console.log("lastCanvasTaskId",e)}},currentReadingTaskState:{immediate:!0,handler:function(e){e&&(this.readingTaskState=e)}}},mounted:function(){var e=this;this.subjectCode=this.$router.currentRoute.query.subjectCode,window.addEventListener("message",this.receiveMsg),this.CriterionType=parseInt(localStorage.getItem("CriterionType")),l["a"].$on("setCollapseActive",(function(t){e.setCollapseActive(t),console.log("setCollapseActive")})),l["a"].$on("changeLesionType",(function(t){e.changeLesionType(t),console.log("changeLesionType")})),l["a"].$on("getAllUnSaveLesions",(function(t){var i=e.getAllUnSaveLesions();t(i),console.log("getAllUnSaveLesions")})),l["a"].$on("split",(function(t){e.handleSplit(t.RowId,t.QuestionId)})),window.addEventListener("resize",this.setHeight)},beforeDestroy:function(){l["a"].$off("setCollapseActive"),l["a"].$off("changeLesionType"),l["a"].$off("getUnSaveTarget")},methods:{initList:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,i,n,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this.visitTaskList.findIndex((function(e){return e.VisitTaskId===a.lastCanvasTaskId})),!(t>-1)){e.next=30;break}if(this.visitTaskId=this.visitTaskList[t].VisitTaskId,this.taskBlindName=this.visitTaskList[t].TaskBlindName,this.readingTaskState=this.visitTaskList[t].ReadingTaskState,this.isBaseLineTask=this.visitTaskList[t].IsBaseLineTask,this.isCurrentTask=this.visitTaskList[t].IsCurrentTask,this.activeName="",this.activeItem.activeRowIndex=null,this.activeItem.activeCollapseId=null,this.visitTaskList[t].IsInit){e.next=28;break}if(i=this.$loading({fullscreen:!0}),n=this.trialId=this.$router.currentRoute.query.trialId,this.visitTaskList[t].measureDataInit){e.next=16;break}return e.next=16,c["a"].dispatch("reading/getMeasuredData",this.visitTaskList[t].VisitTaskId);case 16:if(this.visitTaskList[t].studyListInit){e.next=19;break}return e.next=19,c["a"].dispatch("reading/getStudyInfo",{trialId:n,subjectVisitId:this.visitTaskList[t].VisitId,visitTaskId:this.visitTaskList[t].VisitTaskId,taskBlindName:this.visitTaskList[t].TaskBlindName});case 19:if(this.visitTaskList[t].readingQuestionsInit){e.next=22;break}return e.next=22,c["a"].dispatch("reading/getReadingQuestionAndAnswer",{trialId:n,visitTaskId:this.visitTaskList[t].VisitTaskId});case 22:if(this.visitTaskList[t].questionsInit){e.next=25;break}return e.next=25,c["a"].dispatch("reading/getDicomReadingQuestionAnswer",{trialId:n,visitTaskId:this.visitTaskList[t].VisitTaskId});case 25:return e.next=27,c["a"].dispatch("reading/setStatus",{visitTaskId:this.visitTaskList[t].VisitTaskId});case 27:i.close();case 28:this.questions=this.visitTaskList[t].ReadingQuestions,this.$nextTick((function(){a.$refs["ecrf"].getQuestions(a.visitTaskId),a.getTableQuestions(),a.tableQuestions.forEach((function(e){e.TableQuestions.Answers.forEach((function(t){var i="".concat(e.Id,"_").concat(t.RowIndex);a.$refs[i]&&a.$refs[i][0].initForm()}))}))}));case 30:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),resetQuestions:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.setQuestions(this.questions,t),e.next=3,c["a"].dispatch("reading/setReadingQuestionAndAnswer",{questions:this.questions,visitTaskId:this.visitTaskId});case 3:this.getTableQuestions();case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),setQuestions:function(e,t){var i=this;e.forEach((function(e){if("table"===e.Type&&e.Id===t.questionId){var n=e.TableQuestions.Answers.findIndex((function(e){return e.RowIndex===t.rowIndex}));for(var a in e.TableQuestions.Answers[n].isLymphLesion=t.isLymphLesion,e.TableQuestions.Answers[n].loctation=t.lesionOrgan,e.TableQuestions.Answers[n].lesionPart=t.lesionPart,e.TableQuestions.Answers[n].lesionLength=t.lesionLength,e.TableQuestions.Answers[n].lesionShort=t.lesionShort,e.TableQuestions.Answers[n].lesionState=t.lesionState,e.TableQuestions.Answers[n].saveTypeEnum=t.saveTypeEnum,t.anwsers)"MeasureData"===a&&t.anwsers[a]?(e.TableQuestions.Answers[n].InstanceId=t.anwsers[a].instanceId,e.TableQuestions.Answers[n].SeriesId=t.anwsers[a].seriesId,e.TableQuestions.Answers[n][a]=JSON.stringify(t.anwsers[a]),e.TableQuestions.Answers[n].isDicomReading=!(!1===t.anwsers[a].IsDicomReading||"False"===t.anwsers[a].IsDicomReading)):e.TableQuestions.Answers[n][a]=String(t.anwsers[a])}e.Childrens.length>0&&i.setQuestions(e.Childrens,t)}))},getQuestions:function(e){var t=this;return e.forEach((function(e){"table"===e.Type&&e.TableQuestions&&e.TableQuestions.Answers.length>0&&e.TableQuestions.Answers.forEach((function(i){t.$set(i,"loctation",t.getQuestionAnswer(e.TableQuestions.Questions,6,i)),t.$set(i,"lesionLength",t.getQuestionAnswer(e.TableQuestions.Questions,0,i)),t.$set(i,"lesionShort",t.getQuestionAnswer(e.TableQuestions.Questions,1,i));var n=t.getQuestionAnswer(e.TableQuestions.Questions,2,i);n=n?parseInt(n):null,t.$set(i,"isLymphLesion",n);var a=t.getQuestionAnswer(e.TableQuestions.Questions,7,i);if(a=isNaN(parseInt(a))?"":parseInt(a),t.$set(i,"lesionState",a),i.RowId){var r=e.TableQuestions.Questions.findIndex((function(e){return 11===e.QuestionMark}));if(r>-1){var o=t.getQuestionAnswer(e.TableQuestions.Questions,11,i);o=isNaN(parseInt(o))?"":parseInt(o),t.$set(i,"saveTypeEnum",isNaN(parseInt(o))?1:2)}else t.$set(i,"saveTypeEnum",isNaN(parseInt(a))?1:2)}else t.$set(i,"saveTypeEnum",0)})),e.Childrens.length>0&&t.getQuestions(e.Childrens)})),e},getTableQuestions:function(){var e=this;this.tableQuestions=[],this.questions.map((function(t){"table"===t.Type&&e.tableQuestions.push(t),t.Childrens.length>0&&e.getTableQuestionsChild(t.Childrens)}))},getTableQuestionsChild:function(e){var t=this;e.map((function(e){"table"===e.Type&&t.tableQuestions.push(e),e.Childrens.length>0&&t.getTableQuestionsChild(e.Childrens)}))},refreshReadingQuestionAndAnswer:function(e){0===e&&(this.activeName="",this.activeItem.activeRowIndex=null,this.activeItem.activeCollapseId=null),this.getReadingQuestionAndAnswer(this.visitTaskId)},getReadingQuestionAndAnswer:function(){var e=this;return new Promise(function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(i){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,n=e.$loading({fullscreen:!0}),t.next=4,c["a"].dispatch("reading/refreshReadingQuestionAndAnswer",{trialId:e.$router.currentRoute.query.trialId,visitTaskId:e.visitTaskId}).then((function(){var t=e.visitTaskList.findIndex((function(t){return t.VisitTaskId===e.visitTaskId}));t>-1&&(e.visitTaskList[t].ReadingQuestions.length>0&&(e.questions=e.visitTaskList[t].ReadingQuestions),e.readingTaskState=e.visitTaskList[t].ReadingTaskState,e.isBaseLineTask=e.visitTaskList[t].IsBaseLineTask,e.isCurrentTask=e.visitTaskList[t].IsCurrentTask),e.getTableQuestions(),e.$nextTick((function(){e.tableQuestions.forEach((function(t){t.TableQuestions.Answers.forEach((function(i){var n="".concat(t.Id,"_").concat(i.RowIndex);e.$refs[n]&&e.$refs[n][0].initForm()}))}))}))}));case 4:return t.next=6,c["a"].dispatch("reading/refreshMeasuredData",e.visitTaskId);case 6:l["a"].$emit("getMeasureData"),n.close(),i(),t.next=14;break;case 11:t.prev=11,t.t0=t["catch"](0),console.log(t.t0);case 14:case"end":return t.stop()}}),t,null,[[0,11]])})));return function(e){return t.apply(this,arguments)}}())},setHeight:function(){this.height=window.innerHeight-140},getQuestionAnswer:function(e,t,i){var n=e.findIndex((function(e){return e.QuestionMark===t}));if(n>-1){var a=e[n].Id;return i[a]}return""},handleSplit:function(e,t){var i=this,n=[];this.getUnSaveTarget(),this.unSaveTargets.length>0&&this.unSaveTargets.forEach((function(e){n.push(e.lessionName)}));var a=this.getAllUnSaveLesions();if(a.forEach((function(e){n.push(e.lessionName)})),n.length>0){var r=this.$t("trials:reading:warnning:msg3");r=r.replaceAll("xxx",n.join("、")),this.$confirm(r,{type:"warning",distinguishCancelAndClose:!0}).then((function(){i.split(e,t)})).catch((function(){}))}else this.$confirm(this.$t("trials:reading:warnning:msg4"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){i.split(e,t)})).catch((function(){}))},split:function(e,t){var i=this,n=this.$loading({fullscreen:!0}),a={visitTaskId:this.visitTaskId,questionId:t,rowId:e};Object(s["Ye"])(a).then(function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n.close(),e.next=3,i.getReadingQuestionAndAnswer();case 3:i.$nextTick((function(){i.tableQuestions.forEach((function(e){e.TableQuestions.Answers.forEach((function(t){var n="".concat(e.Id,"_").concat(t.RowIndex);i.$refs[n]&&i.$refs[n][0].initForm()}))}))}));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},isCanActiveTool:function(e){if(10===this.CriterionType)return this.$refs["pcwg3"].isCanActiveTool(e);if(this.getUnSaveTarget(),this.unSaveTargets.length>0){var t=String(this.unSaveTargets[0].rowIndex),i=this.unSaveTargets[0].questionId,n="".concat(this.activeItem.activeCollapseId,"_").concat(this.activeItem.activeRowIndex);if(t!==this.activeItem.activeRowIndex||i!==this.activeItem.activeCollapseId||this.$refs[n][0].questionForm.MeasureData){var a=this.$t("trials:reading:warnning:msg5");return a=a.replace("xxx",this.unSaveTargets[0].lessionName),{isCanActiveTool:!1,reason:a}}return this.checkToolCanActive(e)}return this.activeItem.activeCollapseId?this.checkToolCanActive(e):(!this.isBaseLineTask||"Bidirectional"!==e&&"Length"!==e&&"RectangleRoi"!==e)&&(this.isBaseLineTask||"ArrowAnnotate"!==e&&"Bidirectional"!==e&&"Length"!==e&&"RectangleRoi"!==e)?this.isBaseLineTask&&"ArrowAnnotate"===e?{isCanActiveTool:!1,reason:this.$t("trials:reading:warnning:msg54")}:{isCanActiveTool:!1,reason:""}:{isCanActiveTool:!0,reason:""}},checkToolCanActive:function(e){console.log(e);var t="".concat(this.activeItem.activeCollapseId,"_").concat(this.activeItem.activeRowIndex),i=this.$refs[t][0].getQuestionVal(2);return i=isNaN(parseInt(i))?null:parseInt(i),this.$refs[t][0].questionForm.MeasureData?{isCanActiveTool:!0,reason:""}:this.isBaseLineTask?0===this.$refs[t][0].lesionType&&1===i&&"Bidirectional"!==e?{isCanActiveTool:!1,reason:this.$t("trials:reading:warnning:msg6")}:0===this.$refs[t][0].lesionType&&0===i&&"Length"!==e?{isCanActiveTool:!1,reason:this.$t("trials:reading:warnning:msg7")}:1===this.$refs[t][0].lesionType&&1===i&&"Bidirectional"!==e&&"RectangleRoi"!==e?{isCanActiveTool:!1,reason:this.$t("trials:reading:warnning:msg8")}:1===this.$refs[t][0].lesionType&&0===i&&"Length"!==e&&"RectangleRoi"!==e?{isCanActiveTool:!1,reason:this.$t("trials:reading:warnning:msg9")}:"ArrowAnnotate"===e?{isCanActiveTool:!1,reason:this.$t("trials:reading:warnning:msg54")}:{isCanActiveTool:!0,reason:""}:0===this.$refs[t][0].lesionType&&1===i&&"Bidirectional"!==e&&"ArrowAnnotate"!==e?{isCanActiveTool:!1,reason:this.$t("trials:reading:warnning:msg10")}:0===this.$refs[t][0].lesionType&&0===i&&"Length"!==e&&"ArrowAnnotate"!==e?{isCanActiveTool:!1,reason:this.$t("trials:reading:warnning:msg11")}:1===this.$refs[t][0].lesionType&&1===i&&"Bidirectional"!==e&&"ArrowAnnotate"!==e&&"RectangleRoi"!==e?{isCanActiveTool:!1,reason:this.$t("trials:reading:warnning:msg52")}:1===this.$refs[t][0].lesionType&&0===i&&"Length"!==e&&"ArrowAnnotate"!==e&&"RectangleRoi"!==e?{isCanActiveTool:!1,reason:this.$t("trials:reading:warnning:msg53")}:2===this.$refs[t][0].lesionType&&1===i&&"Bidirectional"!==e&&"ArrowAnnotate"!==e?{isCanActiveTool:!1,reason:this.$t("trials:reading:warnning:msg12")}:2===this.$refs[t][0].lesionType&&0===i&&"Length"!==e&&"ArrowAnnotate"!==e?{isCanActiveTool:!1,reason:this.$t("trials:reading:warnning:msg13")}:2===this.$refs[t][0].lesionType&&"Length"!==e&&"Bidirectional"!==e&&"ArrowAnnotate"!==e?{isCanActiveTool:!1,reason:this.$t("trials:reading:warnning:msg51")}:{isCanActiveTool:!0,reason:""}},handleAdd:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){var i,n,a,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.getUnSaveTarget(),!(this.unSaveTargets.length>0)){e.next=6;break}return i=this.$t("trials:reading:warnning:msg5"),i=i.replace("xxx",this.unSaveTargets[0].lessionName),this.$confirm(i,{type:"warning",showCancelButton:!1,callback:function(e){}}),e.abrupt("return");case 6:if(!(t.MaxQuestionCount&&t.MaxQuestionCount<=t.TableQuestions.Answers.length)){e.next=12;break}n=this.$t("trials:reading:warnning:msg14"),n=n.replace("xxx",t.MaxQuestionCount),this.$confirm(n,{type:"warning",showCancelButton:!1,callback:function(e){}}),e.next=21;break;case 12:return a={saveTypeEnum:0},r=this.getMaxRowIndex(t.TableQuestions.Answers),a.RowIndex="".concat(r+1,".00"),a.IsDicomReading=!0,e.next=18,c["a"].dispatch("reading/addReadingQuestionAndAnswer",{lesionType:t.LesionType,visitTaskId:this.visitTaskId,lesionObj:a});case 18:this.activeItem.activeRowIndex=String(a.RowIndex),this.activeItem.activeCollapseId=t.Id,this.activeName="".concat(this.activeItem.activeCollapseId,"_").concat(this.activeItem.activeRowIndex);case 21:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),getMaxRowIndex:function(e){if(e.length>0){var t=[];e.forEach((function(e){var i=e.RowIndex;t.push(parseInt(i))}));var i=Math.max.apply(null,t);return i}return 0},determineExistsUnsavedLession:function(e){if(this.getUnSaveTarget(),this.unSaveTargets.length>0){var t=String(this.unSaveTargets[0].rowIndex),i=this.unSaveTargets[0].questionId;if(t===String(this.activeItem.activeRowIndex)&&i===this.activeItem.activeCollapseId)return void e(!0);var n=this.$t("trials:reading:warnning:msg17");return n=n.replace("xxx",this.unSaveTargets[0].lessionName),this.$confirm(n,{type:"warning",showCancelButton:!1,callback:function(e){}}),void e(!1)}e(!0)},getUnSaveTarget:function(){var e=this;return this.unSaveTargets=[],this.tableQuestions.map((function(t){t.TableQuestions&&t.TableQuestions.Answers&&t.TableQuestions.Answers.map((function(i){if(!i.RowId){var n=e.getLesionName(t.OrderMark,i.RowIndex);e.unSaveTargets.push({lessionName:n,rowIndex:i.RowIndex,questionId:t.Id})}}))})),this.unSaveTargets},getAllUnSaveLesions:function(){var e=this,t=[];return this.tableQuestions.map((function(i){i.TableQuestions&&i.TableQuestions.Answers&&i.TableQuestions.Answers.map((function(n){var a="".concat(i.Id,"_").concat(n.RowIndex);if(e.$refs[a]&&e.$refs[a][0]&&2!==e.$refs[a][0].questionForm.saveTypeEnum){var r=e.getLesionName(i.OrderMark,n.RowIndex);t.push({lessionName:r,rowIndex:n.RowIndex,questionId:i.Id})}}))})),t},getLesionName:function(e,t){var i="",n=t.split("."),a=parseInt(n[0]),r=parseInt(n[1]);return r>0?(r=String.fromCharCode(parseInt(n[1])-1+65+32),i="".concat(e).concat(String(a).padStart(2,"0")).concat(r)):i="".concat(e).concat(String(a).padStart(2,"0")),i},handleCollapseChange:function(e){var t=this;if(this.activeName){var i=this.activeName.split("_");this.activeItem.activeRowIndex=i[1],this.activeItem.activeCollapseId=i[0],this.$nextTick((function(){var e="".concat(t.activeItem.activeCollapseId,"_").concat(t.activeItem.activeRowIndex);!1!==t.$refs[e][0].questionForm.IsDicomReading&&l["a"].$emit("imageLocation",{questionId:t.activeItem.activeCollapseId,rowIndex:t.activeItem.activeRowIndex,visitTaskId:t.visitTaskId,lesionName:t.$refs[e][0].lesionName,lesionType:t.$refs[e][0].lesionType})}))}else this.activeItem.activeRowIndex=null,this.activeItem.activeCollapseId=null},changeLesionType:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){var i,n,a,r,o,s,l,u=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,c["a"].dispatch("reading/removeReadingQuestionAndAnswer",{lesionType:t.oldLesionType,rowIndex:t.rowIndex,visitTaskId:this.visitTaskId});case 2:if(i={},n=t.questionForm,a=this.tableQuestions.find((function(e){return e.LesionType===t.newLesionType})),r="",o=this.getMaxRowIndex(a.TableQuestions.Answers),i.RowIndex="".concat(o+1,".00"),r="".concat(a.OrderMark).concat(String(o+1).padStart(2,"0")),a.TableQuestions.Questions.forEach((function(e){var t=n.find((function(t){return t.QuestionMark===e.QuestionMark}));t&&(i[e.Id]=t.Answer)})),!t.measureData){e.next=15;break}return e.next=13,c["a"].dispatch("reading/removeMeasuredData",{visitTaskId:this.visitTaskId,measureData:t.measureData,questionId:t.questionId,rowIndex:t.rowIndex});case 13:t.measureData.data.remark=r,i.MeasureData=JSON.stringify(t.measureData);case 15:return s=null,t.rowId&&(s={rowId:t.rowId,questionId:t.questionId},i.RowId=t.rowId),e.next=19,c["a"].dispatch("reading/addReadingQuestionAndAnswer",{lesionType:t.newLesionType,visitTaskId:this.visitTaskId,lesionObj:i});case 19:this.activeItem.activeRowIndex=String(i.RowIndex),this.activeItem.activeCollapseId=a.Id,this.activeName="".concat(this.activeItem.activeCollapseId,"_").concat(this.activeItem.activeRowIndex),l="".concat(this.activeItem.activeCollapseId,"_").concat(this.activeItem.activeRowIndex),this.$nextTick((function(){s&&u.$refs[l][0].setDeleteInfo(s),u.$refs[l][0].setMeasureData(t.measureData,s)}));case 24:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),removeQuestionAnswer:function(e){var t=this.tableQuestions.find((function(t){return t.LesionType===e.oldLesionType}));if(t){var i=t.TableQuestions.Answers.findIndex((function(t){return String(t.RowIndex)===String(e.rowIndex)}));if(-1===i)return;t.TableQuestions.Answers.splice(i,1)}},createNLTarget:function(e){var t=this.tableQuestions.findIndex((function(e){return 2===e.LesionType}));t>-1&&this.addTarget(this.tableQuestions[t],e)},createTTarget:function(e){var t=this.tableQuestions.findIndex((function(e){return 0===e.LesionType}));t>-1&&this.addTarget(this.tableQuestions[t],e)},addTarget:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t,i){var n,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n={},a=this.getMaxRowIndex(t.TableQuestions.Answers),n.RowIndex="".concat(a+1,".00"),n.IsDicomReading=!(!1===i.isDicomReading||"False"===i.isDicomReading),n.measureObj=i,e.next=7,c["a"].dispatch("reading/addReadingQuestionAndAnswer",{lesionType:t.LesionType,visitTaskId:this.visitTaskId,lesionObj:n});case 7:this.activeItem.activeRowIndex=String(n.RowIndex),this.activeItem.activeCollapseId=t.Id,this.activeName="".concat(this.activeItem.activeCollapseId,"_").concat(this.activeItem.activeRowIndex);case 10:case"end":return e.stop()}}),e,this)})));function t(t,i){return e.apply(this,arguments)}return t}(),createNTTarget:function(e){var t=this.tableQuestions.findIndex((function(e){return 1===e.LesionType}));t>-1&&this.addTarget(this.tableQuestions[t],e)},setCollapseActive:function(e){if(e){if(this.activeItem.activeRowIndex===e.RowIndex&&this.activeItem.activeCollapseId===e.QuestionId)return;this.activeItem.activeCollapseId=e.QuestionId,this.activeItem.activeRowIndex=e.RowIndex,this.activeName="".concat(this.activeItem.activeCollapseId,"_").concat(this.activeItem.activeRowIndex)}},modifyMeasuredData:function(e){if(10!==this.CriterionType){if(e.questionInfo){this.activeItem.activeCollapseId=e.questionInfo.QuestionId,this.activeItem.activeRowIndex=String(e.questionInfo.RowIndex),this.activeName="".concat(this.activeItem.activeCollapseId,"_").concat(this.activeItem.activeRowIndex);var t="".concat(this.activeItem.activeCollapseId,"_").concat(this.activeItem.activeRowIndex);this.$refs[t][0].setMeasureData(e.measureData)}}else this.$refs["pcwg3"].modifyMeasuredData(e)},setMeasuredData:function(e){var t=this;if(10!==this.CriterionType)if(this.activeItem.activeCollapseId)this.$nextTick((function(){var i="".concat(t.activeItem.activeCollapseId,"_").concat(t.activeItem.activeRowIndex);if(t.$refs[i][0].questionForm&&t.$refs[i][0].questionForm.MeasureData&&e.data.uuid===t.$refs[i][0].questionForm.MeasureData.data.uuid||!t.$refs[i][0].questionForm.MeasureData)t.$refs[i][0].setMeasureData(e);else if(t.isBaseLineTask){var n=t.tableQuestions.findIndex((function(e){return 0===e.LesionType}));t.tableQuestions[n].TableQuestions.Answers.length<t.tableQuestions[n].MaxQuestionCount&&("Length"===e.type||"Bidirectional"===e.type)?t.createTTarget(e):t.createNTTarget(e)}else t.createNLTarget(e)}));else if(this.isBaseLineTask){var i=this.tableQuestions.findIndex((function(e){return 0===e.LesionType}));this.tableQuestions[i].TableQuestions.Answers.length<this.tableQuestions[i].MaxQuestionCount&&("Length"===e.type||"Bidirectional"===e.type)?this.createTTarget(e):this.createNTTarget(e)}else this.createNLTarget(e);else this.$refs["pcwg3"].setMeasuredData(e)},close:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t&&this.getReadingQuestionAndAnswer(t.visitTaskId),this.activeItem.activeRowIndex=null,this.activeItem.activeCollapseId=null,this.activeName="";case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),getECRFQuestions:function(e){this.$refs["ecrf"].getQuestions(e.visitTaskId)},receiveMsg:function(e){if("isCanActiveNoneDicomTool"===e.data.type){this.getUnSaveTarget();var t={};if(this.unSaveTargets.length>0){var i=String(this.unSaveTargets[0].rowIndex),n=this.unSaveTargets[0].questionId,a="".concat(this.activeItem.activeCollapseId,"_").concat(this.activeItem.activeRowIndex);if(i!==this.activeItem.activeRowIndex||n!==this.activeItem.activeCollapseId||this.$refs[a][0].questionForm.MeasureData){var r=this.$t("trials:reading:warnning:msg5");r=r.replace("xxx",this.unSaveTargets[0].lessionName),t={isCanActiveTool:!1,lesionName:"",reason:r}}else{var o=this.$refs[a][0].questionForm.LesionType;t=0===o?{isCanActiveTool:!1,lesionName:"",reason:this.$t("trials:reading:warnning:msg18")}:{isCanActiveTool:!0,lesionName:this.$refs[a][0].lesionMark,reason:"",toolName:e.data.toolName}}}else if(this.activeItem.activeCollapseId){var s="".concat(this.activeItem.activeCollapseId,"_").concat(this.activeItem.activeRowIndex),c=this.$refs[s][0].questionForm.LesionType;t=0===c?{isCanActiveTool:!1,lesionName:"",reason:this.$t("trials:reading:warnning:msg18")}:{isCanActiveTool:!0,lesionName:this.$refs[s][0].lesionMark,reason:"",toolName:e.data.toolName}}else{var u=null,d="";if(this.isBaseLineTask){var f=this.tableQuestions.findIndex((function(e){return 1===e.LesionType}));f>-1&&(u=this.tableQuestions[f])}else{var h=this.tableQuestions.findIndex((function(e){return 2===e.LesionType}));h>-1&&(u=this.tableQuestions[h])}var p=this.getMaxRowIndex(u.TableQuestions.Answers);d="".concat(u.OrderMark).concat(String(p+1).padStart(2,"0")),t={isCanActiveTool:!0,lesionName:d,reason:"",toolName:e.data.toolName}}l["a"].$emit("isCanActiveNoneDicomTool",t)}else"setMeasurement"===e.data.type&&this.setMeasuredData(e.data.data)}}},p=h,m=(i("a31a"),i("2877")),g=Object(m["a"])(p,n,a,!1,null,"5c4aaeb5",null);t["default"]=g.exports},"8bd95":function(e,t,i){"use strict";i("39b2")},"8c11":function(e,t,i){},"8c29":function(e,t,i){},"8c2a":function(e,t,i){var n=i("6d8b"),a=i("e0d8"),r=i("3842"),o=i("89e3"),s=a.prototype,l=o.prototype,c=r.getPrecisionSafe,u=r.round,d=Math.floor,f=Math.ceil,h=Math.pow,p=Math.log,m=a.extend({type:"log",base:10,$constructor:function(){a.apply(this,arguments),this._originalScale=new o},getTicks:function(e){var t=this._originalScale,i=this._extent,a=t.getExtent();return n.map(l.getTicks.call(this,e),(function(e){var n=r.round(h(this.base,e));return n=e===i[0]&&t.__fixMin?g(n,a[0]):n,n=e===i[1]&&t.__fixMax?g(n,a[1]):n,n}),this)},getMinorTicks:l.getMinorTicks,getLabel:l.getLabel,scale:function(e){return e=s.scale.call(this,e),h(this.base,e)},setExtent:function(e,t){var i=this.base;e=p(e)/p(i),t=p(t)/p(i),l.setExtent.call(this,e,t)},getExtent:function(){var e=this.base,t=s.getExtent.call(this);t[0]=h(e,t[0]),t[1]=h(e,t[1]);var i=this._originalScale,n=i.getExtent();return i.__fixMin&&(t[0]=g(t[0],n[0])),i.__fixMax&&(t[1]=g(t[1],n[1])),t},unionExtent:function(e){this._originalScale.unionExtent(e);var t=this.base;e[0]=p(e[0])/p(t),e[1]=p(e[1])/p(t),s.unionExtent.call(this,e)},unionExtentFromData:function(e,t){this.unionExtent(e.getApproximateExtent(t))},niceTicks:function(e){e=e||10;var t=this._extent,i=t[1]-t[0];if(!(i===1/0||i<=0)){var n=r.quantity(i),a=e/i*n;a<=.5&&(n*=10);while(!isNaN(n)&&Math.abs(n)<1&&Math.abs(n)>0)n*=10;var o=[r.round(f(t[0]/n)*n),r.round(d(t[1]/n)*n)];this._interval=n,this._niceExtent=o}},niceExtent:function(e){l.niceExtent.call(this,e);var t=this._originalScale;t.__fixMin=e.fixMin,t.__fixMax=e.fixMax}});function g(e,t){return u(e,c(t))}n.each(["contain","normalize"],(function(e){m.prototype[e]=function(t){return t=p(t)/p(this.base),s[e].call(this,t)}})),m.create=function(){return new m};var v=m;e.exports=v},"8c49":function(e,t,i){},"8cdb":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"wscn-http404-container"},[i("div",{staticClass:"wscn-http404"},[e._m(0),e._v(" "),i("div",{staticClass:"bullshit"},[i("div",{staticClass:"bullshit__oops"},[e._v("OOPS!")]),e._v(" "),i("div",{staticClass:"bullshit__info"},[e._v("Please check that the URL you entered is correct, or click the button below to return to the homepage.")]),e._v(" "),i("a",{staticClass:"bullshit__return-home",attrs:{href:""},on:{click:function(t){return e.$router.back(-1)}}},[e._v("Back")])])])])},a=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"pic-404"},[n("img",{staticClass:"pic-404__parent",attrs:{src:i("a36b"),alt:"404"}}),e._v(" "),n("img",{staticClass:"pic-404__child left",attrs:{src:i("26fc"),alt:"404"}}),e._v(" "),n("img",{staticClass:"pic-404__child mid",attrs:{src:i("26fc"),alt:"404"}}),e._v(" "),n("img",{staticClass:"pic-404__child right",attrs:{src:i("26fc"),alt:"404"}})])}],r={name:"Page404",computed:{message:function(){return"The webmaster said that you can not enter this page..."}}},o=r,s=(i("f106"),i("2877")),l=Object(s["a"])(o,n,a,!1,null,"52be2619",null);t["default"]=l.exports},"8cf6":function(e,t,i){},"8cfb":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",{staticStyle:{height:"100%",background:"#fff"}},[i("div",{staticClass:"search"},[i("el-form",{staticClass:"base-search-form",attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:attachment:table:fileType")}},[i("el-select",{staticStyle:{width:"150px"},model:{value:e.searchData.FileTypeId,callback:function(t){e.$set(e.searchData,"FileTypeId",t)},expression:"searchData.FileTypeId"}},e._l(e.dict.type["Trial_Document"],(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:attachment:table:fileName")}},[i("el-input",{staticStyle:{width:"100px"},model:{value:e.searchData.Name,callback:function(t){e.$set(e.searchData,"Name",t)},expression:"searchData.Name"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")])],1)],1),e._v(" "),i("span",{staticStyle:{"margin-left":"auto"}},[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:setting:attachment:add"],expression:"['trials:trials-panel:setting:attachment:add']"}],attrs:{type:"primary",icon:"el-icon-plus"},on:{click:e.handleAdd}},[e._v("\n "+e._s(e.$t("common:button:add"))+"\n ")])],1)],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"}],ref:"attachmentList",attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"FileType",label:e.$t("trials:attachment:table:fileType"),"show-overflow-tooltip":"",sortable:"custom","min-width":"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Name",label:e.$t("trials:attachment:table:fileName"),"show-overflow-tooltip":"",sortable:"custom","min-width":"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"SignViewMinimumMinutes",label:e.$t("trials:attachment:table:min"),"show-overflow-tooltip":"",sortable:"custom","min-width":"170"}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsDeleted",label:e.$t("trials:attachment:table:isDeleted"),"show-overflow-tooltip":"",sortable:"custom","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsDeleted?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsDeleted)))]):i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsDeleted)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"NeedConfirmedUserTypes",label:e.$t("trials:attachment:table:userType"),"show-overflow-tooltip":"","min-width":"160"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.NeedConfirmedUserTypes?t.row.NeedConfirmedUserTypes.join(", "):"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Description",label:e.$t("trials:attachment:table:description"),"show-overflow-tooltip":"","min-width":"100"}}),e._v(" "),i("el-table-column",{attrs:{prop:"UpdateTime",label:e.$t("trials:attachment:table:updateTime"),"show-overflow-tooltip":"",sortable:"custom","min-width":"150"}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"400",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{icon:"el-icon-view",circle:"",title:e.$t("trials:attachment:action:preview")},on:{click:function(i){return e.handlePreview(t.row)}}}),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:setting:attachment:edit"],expression:"['trials:trials-panel:setting:attachment:edit']"}],attrs:{circle:"",title:e.$t("trials:attachment:action:edit"),icon:"el-icon-edit-outline",disabled:t.row.IsSomeUserSigned||t.row.IsDeleted},on:{click:function(i){return e.handleEdit(t.row)}}}),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:setting:attachment:abolish"],expression:"['trials:trials-panel:setting:attachment:abolish']"}],attrs:{disabled:t.row.IsDeleted,circle:"",title:e.$t("trials:attachment:action:apolish"),icon:"el-icon-delete"},on:{click:function(i){return e.handleRepeal(t.row)}}})]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}}),e._v(" "),e.editVisible?i("el-dialog",{attrs:{visible:e.editVisible,"close-on-click-modal":!1,title:e.title,width:"800px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.editVisible=t}}},[i("AttachmentForm",{attrs:{data:e.currentRow},on:{closeDialog:e.closeDialog,getList:e.getList}})],1):e._e(),e._v(" "),e.previewVisible?i("el-dialog",{attrs:{visible:e.previewVisible,title:e.$t("trials:attachment:dialogTitle:preview"),fullscreen:!0,"append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.previewVisible=t}}},[i("div",{staticClass:"base-modal-body",staticStyle:{border:"2px solid #ccc",padding:"10px"}},[e.previewVisible?i("PreviewFile",{attrs:{"file-path":e.currentPath,"file-type":e.currentType}}):e._e()],1)]):e._e()],1)},a=[],r=i("db72"),o=(i("ac6a"),i("3e42")),s=i("f36a"),l=i("333d"),c=i("2bb4"),u=i("fa84"),d=function(){return{FileTypeId:"",Name:"",PageIndex:1,PageSize:20,SortField:"",Asc:!1}},f={name:"TrialAttachmentList",components:{BoxContent:s["default"],Pagination:l["default"],AttachmentForm:c["default"],PreviewFile:u["default"]},dicts:["Trial_Document"],data:function(){return{searchData:d(),loading:!1,list:[],total:0,editVisible:!1,previewVisible:!1,title:"",currentRow:{},currentPath:"",currentType:"",trialId:""}},mounted:function(){this.trialId=this.$route.query.trialId,this.getList()},methods:{getList:function(){var e=this;this.loading=!0,this.searchData.TrialId=this.trialId,Object(o["Hd"])(this.searchData).then((function(t){e.loading=!1;var i=t.Result,n=i.CurrentPageData,a=i.TotalCount;n.forEach((function(e){e.NeedConfirmedUserTypes=[],e.NeedConfirmedUserTypeeIds=[],e.NeedConfirmedUserTypeList.forEach((function(t){e.NeedConfirmedUserTypes.push(t.UserTypeShortName),e.NeedConfirmedUserTypeeIds.push(t.NeedConfirmUserTypeId)}))})),e.list=n,e.total=a})).catch((function(){e.loading=!1}))},handleAdd:function(){this.title=this.$t("common:button:add"),this.currentRow={},this.editVisible=!0},handlePreview:function(e){var t=e.Name,i=e.FullFilePath;this.currentPath=i,this.currentType=e.Name?t.substring(t.lastIndexOf(".")+1).toLocaleLowerCase():"",this.previewVisible=!0},handleEdit:function(e){this.title=this.$t("common:button:edit"),this.currentRow=Object(r["a"])({},e),this.editVisible=!0},handleRepeal:function(e){var t=this;this.$confirm(this.$t("trials:attachment:message:abolish"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.loading=!0,Object(o["Ef"])(e.Id,!1).then((function(e){t.loading=!1,e.IsSuccess&&(t.getList(),t.$message.success(t.$t("trials:trials-list:message:abolitionSuccessfully")))})).catch((function(){t.loading=!1}))})).catch((function(){}))},closeDialog:function(){this.editVisible=!1},handleReset:function(){var e=this;this.searchData=d(),this.getList(),this.$nextTick((function(){e.$refs.attachmentList.clearSort()}))},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleSortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()}}},h=f,p=i("2877"),m=Object(p["a"])(h,n,a,!1,null,null,null);t["default"]=m.exports},"8d1b":function(e,t,i){"use strict";i("4151")},"8d32":function(e,t,i){var n=i("cbe5"),a=n.extend({type:"arc",shape:{cx:0,cy:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},style:{stroke:"#000",fill:null},buildPath:function(e,t){var i=t.cx,n=t.cy,a=Math.max(t.r,0),r=t.startAngle,o=t.endAngle,s=t.clockwise,l=Math.cos(r),c=Math.sin(r);e.moveTo(l*a+i,c*a+n),e.arc(i,n,a,r,o,!s)}});e.exports=a},"8d74":function(e,t,i){var n=i("4cef"),a=/^\s+/;function r(e){return e?e.slice(0,n(e)+1).replace(a,""):e}e.exports=r},"8deb":function(e,t,i){var n=i("3eba");i("5522"),i("a016"),i("1466");var a=i("98e7"),r=i("7f96"),o=i("870e"),s=i("d3f47"),l=i("7891");n.registerVisual(a("radar")),n.registerVisual(r("radar","circle")),n.registerLayout(o),n.registerProcessor(s("radar")),n.registerPreprocessor(l)},"8e37":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"search-container"},[i("el-form",{attrs:{inline:!0,size:"small"}},[i("el-form-item",{attrs:{label:"业务场景"}},[i("el-select",{staticStyle:{width:"150px"},model:{value:e.searchData.BusinessScenarioEnum,callback:function(t){e.$set(e.searchData,"BusinessScenarioEnum",t)},expression:"searchData.BusinessScenarioEnum"}},e._l(e.$d.Common_File_BusinessScenario,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"文件名称"}},[i("el-input",{staticStyle:{width:"130px"},attrs:{clearable:""},model:{value:e.searchData.Name,callback:function(t){e.$set(e.searchData,"Name",t)},expression:"searchData.Name"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")])],1)],1),e._v(" "),i("el-button",{staticStyle:{"margin-left":"auto"},attrs:{type:"primary",icon:"el-icon-plus",size:"small"},on:{click:e.handleAdd}},[e._v("\n "+e._s(e.$t("common:button:new"))+"\n ")])],1),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"},{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortChange}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Code",label:"Code","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"BusinessScenarioEnum",label:"业务场景","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("Common_File_BusinessScenario",t.row.BusinessScenarioEnum))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Name",label:"文件名称","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Description",label:"描述","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsDeleted",label:"是否废除","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsDeleted?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsDeleted)))]):i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsDeleted)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"UpdateTime",label:"更新时间","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{label:"Action"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleDownload(t.row)}}},[e._v("\n 下载\n ")]),e._v(" "),i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("\n 编辑\n ")])]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}}),e._v(" "),e.editDialog.visible?i("el-dialog",{attrs:{visible:e.editDialog.visible,"close-on-click-modal":!1,title:e.editDialog.title,width:"600px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){return e.$set(e.editDialog,"visible",t)}}},[i("TemplateForm",{attrs:{data:e.currentRow},on:{closeDialog:e.closeDialog,getList:e.getList}})],1):e._e()],1)],2)},a=[],r=i("db72"),o=i("e56e"),s=i("6071"),l=i("333d"),c=i("6f18"),u=4,d=function(){return{FileTypeEnum:u,BusinessScenarioEnum:null,Name:"",PageIndex:1,PageSize:20}},f={name:"ExportTemplate",components:{BaseContainer:s["default"],Pagination:l["default"],TemplateForm:c["default"]},data:function(){return{searchData:d(),list:[],total:0,currentRow:{},editDialog:{title:"",visible:!1},loading:!1}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0,Object(o["ab"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},handleAdd:function(){this.editDialog.title="Add",this.currentRow={FileTypeEnum:u},this.editDialog.visible=!0},handleDownload:function(e){var t=this;this.loading=!0,Object(o["a"])(e.Code).then((function(e){t.loading=!1})).catch((function(){t.loading=!1}))},handleEdit:function(e){this.editDialog.title="Edit",this.currentRow=Object(r["a"])({},e),this.editDialog.visible=!0},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=d(),this.getList()},closeDialog:function(){this.editDialog.visible=!1},handleSortChange:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()}}},h=f,p=i("2877"),m=Object(p["a"])(h,n,a,!1,null,null,null);t["default"]=m.exports},"8e43":function(e,t,i){var n=i("6d8b"),a=n.createHashMap,r=n.isObject,o=n.map;function s(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this._map}s.createByAxisModel=function(e){var t=e.option,i=t.data,n=i&&o(i,u);return new s({categories:n,needCollect:!n,deduplication:!1!==t.dedplication})};var l=s.prototype;function c(e){return e._map||(e._map=a(e.categories))}function u(e){return r(e)&&null!=e.value?e.value:e+""}l.getOrdinal=function(e){return c(this).get(e)},l.parseAndCollect=function(e){var t,i=this._needCollect;if("string"!==typeof e&&!i)return e;if(i&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var n=c(this);return t=n.get(e),null==t&&(i?(t=this.categories.length,this.categories[t]=e,n.set(e,t)):t=NaN),t};var d=s;e.exports=d},"8e6c":function(e,t,i){"use strict";i("2a6b")},"8e77":function(e,t,i){var n=i("6d8b"),a=i("41ef"),r=i("6179"),o=i("3842"),s=i("2306"),l=i("923d"),c=i("88f0"),u=function(e,t,i,a){var r=l.dataTransform(e,a[0]),o=l.dataTransform(e,a[1]),s=n.retrieve,c=r.coord,u=o.coord;c[0]=s(c[0],-1/0),c[1]=s(c[1],-1/0),u[0]=s(u[0],1/0),u[1]=s(u[1],1/0);var d=n.mergeAll([{},r,o]);return d.coord=[r.coord,o.coord],d.x0=r.x,d.y0=r.y,d.x1=o.x,d.y1=o.y,d};function d(e){return!isNaN(e)&&!isFinite(e)}function f(e,t,i,n){var a=1-e;return d(t[a])&&d(i[a])}function h(e,t){var i=t.coord[0],n=t.coord[1];return!("cartesian2d"!==e.type||!i||!n||!f(1,i,n,e)&&!f(0,i,n,e))||(l.dataFilter(e,{coord:i,x:t.x0,y:t.y0})||l.dataFilter(e,{coord:n,x:t.x1,y:t.y1}))}function p(e,t,i,n,a){var r,s=n.coordinateSystem,l=e.getItemModel(t),c=o.parsePercent(l.get(i[0]),a.getWidth()),u=o.parsePercent(l.get(i[1]),a.getHeight());if(isNaN(c)||isNaN(u)){if(n.getMarkerPosition)r=n.getMarkerPosition(e.getValues(i,t));else{var f=e.get(i[0],t),h=e.get(i[1],t),p=[f,h];s.clampData&&s.clampData(p,p),r=s.dataToPoint(p,!0)}if("cartesian2d"===s.type){var m=s.getAxis("x"),g=s.getAxis("y");f=e.get(i[0],t),h=e.get(i[1],t);d(f)?r[0]=m.toGlobalCoord(m.getExtent()["x0"===i[0]?0:1]):d(h)&&(r[1]=g.toGlobalCoord(g.getExtent()["y0"===i[1]?0:1]))}isNaN(c)||(r[0]=c),isNaN(u)||(r[1]=u)}else r=[c,u];return r}var m=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];function g(e,t,i){var a,o,s=["x0","y0","x1","y1"];e?(a=n.map(e&&e.dimensions,(function(e){var i=t.getData(),a=i.getDimensionInfo(i.mapDimension(e))||{};return n.defaults({name:e},a)})),o=new r(n.map(s,(function(e,t){return{name:e,type:a[t%2].type}})),i)):(a=[{name:"value",type:"float"}],o=new r(a,i));var l=n.map(i.get("data"),n.curry(u,t,e,i));e&&(l=n.filter(l,n.curry(h,e)));var c=e?function(e,t,i,n){return e.coord[Math.floor(n/2)][n%2]}:function(e){return e.value};return o.initData(l,null,c),o.hasItemOption=!0,o}c.extend({type:"markArea",updateTransform:function(e,t,i){t.eachSeries((function(e){var t=e.markAreaModel;if(t){var a=t.getData();a.each((function(t){var r=n.map(m,(function(n){return p(a,t,n,e,i)}));a.setItemLayout(t,r);var o=a.getItemGraphicEl(t);o.setShape("points",r)}))}}),this)},renderSeries:function(e,t,i,r){var o=e.coordinateSystem,l=e.id,c=e.getData(),u=this.markerGroupMap,f=u.get(l)||u.set(l,{group:new s.Group});this.group.add(f.group),f.__keep=!0;var h=g(o,e,t);t.setData(h),h.each((function(t){var i=n.map(m,(function(i){return p(h,t,i,e,r)})),a=!0;n.each(m,(function(e){if(a){var i=h.get(e[0],t),n=h.get(e[1],t);(d(i)||o.getAxis("x").containData(i))&&(d(n)||o.getAxis("y").containData(n))&&(a=!1)}})),h.setItemLayout(t,{points:i,allClipped:a}),h.setItemVisual(t,{color:c.getVisual("color")})})),h.diff(f.__data).add((function(e){var t=h.getItemLayout(e);if(!t.allClipped){var i=new s.Polygon({shape:{points:t.points}});h.setItemGraphicEl(e,i),f.group.add(i)}})).update((function(e,i){var n=f.__data.getItemGraphicEl(i),a=h.getItemLayout(e);a.allClipped?n&&f.group.remove(n):(n?s.updateProps(n,{shape:{points:a.points}},t,e):n=new s.Polygon({shape:{points:a.points}}),h.setItemGraphicEl(e,n),f.group.add(n))})).remove((function(e){var t=f.__data.getItemGraphicEl(e);f.group.remove(t)})).execute(),h.eachItemGraphicEl((function(e,i){var r=h.getItemModel(i),o=r.getModel("label"),l=r.getModel("emphasis.label"),c=h.getItemVisual(i,"color");e.useStyle(n.defaults(r.getModel("itemStyle").getItemStyle(),{fill:a.modifyAlpha(c,.4),stroke:c})),e.hoverStyle=r.getModel("emphasis.itemStyle").getItemStyle(),s.setLabelStyle(e.style,e.hoverStyle,o,l,{labelFetcher:t,labelDataIndex:i,defaultText:h.getName(i)||"",isRectText:!0,autoColor:c}),s.setHoverStyle(e,{}),e.dataModel=t})),f.__data=h,f.group.silent=t.get("silent")||e.get("silent")}})},"8e8a":function(e,t,i){"use strict";i("9595")},"8eb4":function(e,t,i){"use strict";i("c1f8")},"8ec5":function(e,t,i){var n=i("3eba"),a=i("6d8b"),r=i("2145"),o=n.extendComponentModel({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},optionUpdated:function(){o.superApply(this,"optionUpdated",arguments),a.each(this.option.feature,(function(e,t){var i=r.get(t);i&&a.merge(e,i.defaultOption)}))},defaultOption:{show:!0,z:6,zlevel:0,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1}}}),s=o;e.exports=s},"8ed2":function(e,t,i){i("48c7");var n=i("6cb7"),a=n.extend({type:"grid",dependencies:["xAxis","yAxis"],layoutMode:"box",coordinateSystem:null,defaultOption:{show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:60,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"}});e.exports=a},"8ee0":function(e,t,i){i("3f8e");var n=i("697e7"),a=n.registerPainter,r=i("dc20");a("svg",r)},"8ef2":function(e,t,i){"use strict";i("0ea4")},"8fb6":function(e,t,i){"use strict";i("cfdc")},"901f":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"chat-wrapper"},[i("div",{staticClass:"chat-content"},e._l(e.recordContent,(function(t,n){return i("div",{key:n},[t.IsCurrentUser?i("div",{staticClass:"word-my"},[i("div",{staticClass:"info"},[i("p",{staticClass:"user-info"},[i("span",{staticStyle:{"font-weight":"700"}},[e._v(e._s(t.CreateUserName)+" ")]),e._v(" "),i("span",[e._v("("+e._s(t.CreateTime)+") ")])]),e._v(" "),i("div",{staticClass:"info-content",domProps:{innerHTML:e._s(t.TalkContent)}})]),e._v(" "),1*t.UserTypeEnum===8?i("img",{attrs:{src:e.adminAvatar,alt:"Admin"}}):1*t.UserTypeEnum===1?i("img",{attrs:{src:e.pmAvatar,alt:"PM"}}):1*t.UserTypeEnum===2?i("img",{attrs:{src:e.crcAvatar,alt:"CRC"}}):1*t.UserTypeEnum===3?i("img",{attrs:{src:e.qcAvatar,alt:"QC"}}):e._e()]):i("div",{staticClass:"word"},[1*t.UserTypeEnum===8?i("img",{attrs:{src:e.adminAvatar,alt:"Admin"}}):1*t.UserTypeEnum===1?i("img",{attrs:{src:e.pmAvatar,alt:"PM"}}):1*t.UserTypeEnum===2?i("img",{attrs:{src:e.crcAvatar,alt:"CRC"}}):1*t.UserTypeEnum===3?i("img",{attrs:{src:e.qcAvatar,alt:"QC"}}):e._e(),e._v(" "),i("div",{staticClass:"info"},[i("p",{staticClass:"user-info"},[i("span",{staticStyle:{"font-weight":"700"}},[e._v(e._s(t.CreateUserName)+" ")]),e._v(" "),i("span",[e._v("("+e._s(t.CreateTime)+") ")])]),e._v(" "),i("div",{staticClass:"info-content",domProps:{innerHTML:e._s(t.TalkContent)}})])])])})),0),e._v(" "),e.hasPermi(["trials:trials-panel:visit:qc-question:send"])&&e.currentUserId===e.data.CurrentActionUserId?i("div",{directives:[{name:"show",rawName:"v-show",value:e.showNewMessage,expression:"showNewMessage"}],staticClass:"chat-message"},[i("div",{staticClass:"message"},[i("el-input",{attrs:{type:"textarea",rows:2},model:{value:e.newMessage,callback:function(t){e.newMessage=t},expression:"newMessage"}})],1),e._v(" "),i("div",{staticClass:"function"},[i("el-button",{directives:[{name:"show",rawName:"v-show",value:1===e.ReuploadEnum,expression:"ReuploadEnum === 1"},{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:qc-question:agree-reupload"],expression:"['trials:trials-panel:visit:qc-question:agree-reupload']"}],attrs:{type:"primary",loading:e.setUploadLoading},on:{click:e.setReupload}},[e._v("\n "+e._s(e.$t("trials:qcQuality:dialogButton:agreeToReupload"))+"\n ")]),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:qc-question:send"],expression:"['trials:trials-panel:visit:qc-question:send']"}],attrs:{disabled:""===e.newMessage,type:"primary",loading:e.btnLoading},on:{click:e.handleReply}},[e._v("\n "+e._s(e.$t("trials:qcQuality:dialogButton:send"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",loading:e.btnLoading},on:{click:e.close}},[e._v("\n "+e._s(e.$t("trials:qcQuality:dialogButton:close"))+"\n ")])],1)]):e._e()])},a=[],r=(i("ac6a"),i("28a5"),i("c5f6"),i("3e42")),o=i("268e"),s=i.n(o),l=i("19c3"),c=i.n(l),u=i("011b"),d=i.n(u),f=i("303f"),h=i.n(f),p={name:"ChatForm",props:{data:{type:Object,default:function(){return{}}},bodyParts:{type:String,default:""},modalities:{type:String,default:""},signText:{type:String,default:""},clinicalEnum:{type:Number,default:0}},data:function(){return{recordContent:[],newMessage:"",showNewMessage:!1,loading:!1,btnLoading:!1,userId:zzSessionStorage.getItem("userId"),adminAvatar:s.a,pmAvatar:c.a,crcAvatar:d.a,qcAvatar:h.a,userTypeEnumInt:1*zzSessionStorage.getItem("userTypeEnumInt"),trialCode:this.$route.query.trialCode,needReUpload:!1,setUploadLoading:!1,ReuploadEnum:0,trialId:this.$route.query.trialId,currentUserId:zzSessionStorage.getItem("userId")}},watch:{data:{handler:function(e,t){this.getMessageList()},immediate:!0,deep:!0}},mounted:function(){this.data.IsClosed||(this.showNewMessage=!0),this.ReuploadEnum=1*this.data.ReuploadEnum,this.getMessageList()},methods:{close:function(){this.$emit("close")},getMessageList:function(){var e=[],t=[];this.data.Content&&-1!==this.data.Content.indexOf("|")?t=this.data.Content.split("|"):this.data.Content&&""!==this.data.Content&&t.push(this.data.Content);var i=t.map((function(e){return"<li>".concat(e,"</li>")})),n="\n <div>".concat(this.$t("trials:qcQuality:dialog:qcContent"),"\n <ol>\n ").concat(i.join(""),"\n </ol>\n </div>\n <p>\n ").concat(this.$t("trials:qcQuality:dialogTips:tip"),"\n </p>\n <p style='color:red'>").concat(this.$t("trials:qcQuality:dialog:deadline"),": ").concat(this.data.DeadlineTime?this.data.DeadlineTime:this.$t("trials:qcQuality:dialog:none"),"</p>"),a=zzSessionStorage.getItem("userId");e.push({IsCurrentUser:this.data.CreateUserId===a,TalkContent:n,CreateTime:this.data.CreateTime,CreateUserName:this.data.CreateUserName,CreateUserId:this.data.CreateUserId,UserTypeEnum:this.data.UserTypeEnum}),this.data.DialogList.forEach((function(t){e.push(t)})),this.recordContent=e,this.setScrollHeight()},getMessageList1:function(){var e=this;this.loading=!0;var t=[],i=[];this.data.Content&&-1!==this.data.Content.indexOf("|")?i=this.data.Content.split("|"):this.data.Content&&""!==this.data.Content&&i.push(this.data.Content);var n=i.map((function(e){return"<li>".concat(e,"</li>")})),a="\n <div>".concat(this.$t("trials:qcQuality:dialog:qcContent"),"\n <ol>\n ").concat(n.join(""),"\n </ol>\n </div>\n <p>\n ").concat(this.$t("trials:qcQuality:dialogTips:tip"),"\n </p>\n <p style='color:red'>").concat(this.$t("trials:qcQuality:dialog:deadline"),": ").concat(this.data.DeadlineTime?this.data.DeadlineTime:this.$t("trials:qcQuality:dialog:none"),"</p>"),o=zzSessionStorage.getItem("userId");t.push({IsCurrentUser:this.data.CreateUserId===o,TalkContent:a,CreateTime:this.data.CreateTime,CreateUserName:this.data.CreateUserName,CreateUserId:this.data.CreateUserId,UserTypeEnum:this.data.UserTypeEnum}),Object(r["Dc"])(this.data.Id).then((function(i){e.loading=!1,i.Result.forEach((function(e){t.push(e)})),e.recordContent=t,e.setScrollHeight()})).catch((function(){e.loading=!1}))},setScrollHeight:function(){setTimeout((function(){var e=document.querySelectorAll(".chat-content")[0];e.scrollTop=e.scrollHeight}),100)},handleReply:function(){var e=this;if(this.newMessage){var t={talkContent:this.newMessage,qcChallengeId:this.data.Id,subjectVisitId:this.data.SubjectVisitId};this.btnLoading=!0,Object(r["G"])(this.trialId,t).then((function(t){e.btnLoading=!1,t.IsSuccess&&(e.newMessage="",e.reFreshList())})).catch((function(){e.btnLoading=!1}))}},reFreshList:function(){this.$emit("getDialogList")},setReupload:function(){var e=this;this.$confirm(this.$t("trials:qcQuality:message:agreeToReupload"),{type:"warning",distinguishCancelAndClose:!0}).then((function(t){e.setUploadLoading=!0,Object(r["Me"])(e.trialId,e.data.SubjectVisitId,e.data.Id).then((function(t){e.setUploadLoading=!1,t.IsSuccess&&(e.ReuploadEnum=2,e.reFreshList())})).catch((function(){e.setUploadLoading=!1}))}))}}},m=p,g=(i("3fd5"),i("2877")),v=Object(g["a"])(m,n,a,!1,null,null,null);t["default"]=v.exports},"903c":function(e,t){function i(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries((function(e){for(var i=0;i<t.length;i++)if(!t[i].isSelected(e.name))return!1;return!0}))}e.exports=i},"908e":function(e,t){let i=!1,n=()=>{};const a=e=>{i=e},r=e=>{n=e},o=(e,t)=>{n({type:e,message:t}),i&&console.log(`[${e}] ${t}`)};e.exports={logging:i,setLogging:a,setCustomLogger:r,log:o}},9090:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"role-function-table"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"roleFunction",staticClass:"table",attrs:{size:"small",data:e.list},on:{select:e.handleSelect}},[i("el-table-column",{attrs:{type:"selection",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{label:"Function Name",prop:"FunctionName",width:"180"}}),e._v(" "),i("el-table-column",{attrs:{label:"Description",prop:"Note"}})],1)],1)},a=[],r=(i("ac6a"),i("50fc")),o={name:"RoleFunction",data:function(){return{loading:!1,list:[]}},methods:{getFunctions:function(e,t){var i=this;this.roleId=e,this.loading=!0,this.list=[],Object(r["j"])(e,t).then((function(e){i.list=e.Result,i.loading=!1,i.list.forEach((function(e){i.$nextTick((function(){i.$refs["roleFunction"].toggleRowSelection(e,e.IsSelect)}))}))}))},handleSelect:function(e,t){var i=this,n=e.length&&-1!==e.indexOf(t),a={RoleId:this.roleId,FunctionId:t.Id,IsSelect:n};Object(r["t"])(a).then((function(e){e.IsSuccess&&i.$message.success("Updated successfully")}))},resetTable:function(){this.list=[]}}},s=o,l=(i("5f91"),i("2877")),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},"909c":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"enroll-container"},[i("div",{staticClass:"content-wrapper"},[i("div",{staticClass:"title"},[i("p",[e._v(e._s(e.$t("trials:seletctedReviews:title:trialInfor")))])]),e._v(" "),e.trialInfo?i("div",{staticClass:"trial-wrapper"},[i("div",{staticClass:"div-row"},[i("div",{staticClass:"div-col"},[i("label",{staticClass:"el-label"},[e._v(e._s(e.$t("trials:trials-list:form:indication"))+":")]),e._v(" "),i("span",[e._v(e._s(e.trialInfo.Indication))])]),e._v(" "),i("div",{staticClass:"div-col"},[i("label",{staticClass:"el-label"},[e._v(e._s(e.$t("trials:trials-list:form:criterion"))+":")]),e._v(" "),i("span",[e._v(e._s(e.trialInfo.CriterionList&&e.trialInfo.CriterionList.length>0?e.trialInfo.CriterionList.join(", "):""))])]),e._v(" "),i("div",{staticClass:"div-col"},[i("label",{staticClass:"el-label"},[e._v(e._s(e.$t("trials:trials-list:form:modality"))+":")]),e._v(" "),i("el-tooltip",{staticClass:"item",attrs:{content:e.trialInfo.Modalitys,placement:"top"}},[i("span",[e._v(e._s(e.trialInfo.Modalitys))])])],1)]),e._v(" "),i("div",{staticClass:"div-row"},[i("div",{staticClass:"div-col"},[i("label",{staticClass:"el-label"},[e._v(e._s(e.$t("trials:trials-list:form:reviewMode"))+":")]),e._v(" "),i("span",[e._v(e._s(e.$fd("ReadingMethod",e.trialInfo.ReadingType)))])]),e._v(" "),i("div",{staticClass:"div-col"},[i("label",{staticClass:"el-label"},[e._v(e._s(e.$t("trials:trials-list:form:totalReviewers"))+":")]),e._v(" "),i("span",[e._v(e._s(e.trialInfo.TotalReviewers))])]),e._v(" "),i("div",{staticClass:"div-col"},[i("label",{staticClass:"el-label"},[e._v(e._s(e.$t("trials:trials-list:form:typeofReviewers"))+":")]),e._v(" "),i("span",[e._v(e._s(e.$fd("AttendedReviewerType",e.trialInfo.AttendedReviewerType)))])])])]):e._e(),e._v(" "),i("div",{staticClass:"title"},[i("p",[e._v(e._s(e.$t("trials:seletctedReviews:title:enrollment")))])])]),e._v(" "),i("div",{staticClass:"step-wrapper"},[i("el-steps",{staticStyle:{"margin-top":"70px"},attrs:{active:e.activeStatus,"align-center":"",space:300}},[i("el-step",{staticClass:"click_cursor",class:[e.TrialMaxState>=0?"underline":"noneUnderline"],attrs:{title:e.$t("trials:seletctedReviews:timeline:selection")},nativeOn:{click:function(t){return e.handleClick(0)}}}),e._v(" "),i("el-step",{staticClass:"click_cursor",class:[e.TrialMaxState>=1?"underline":"noneUnderline"],attrs:{title:e.$t("trials:seletctedReviews:timeline:submission")},nativeOn:{click:function(t){return e.handleClick(1)}}}),e._v(" "),i("el-step",{staticClass:"click_cursor",class:[e.TrialMaxState>=2?"underline":"noneUnderline"],attrs:{title:e.$t("trials:seletctedReviews:timeline:approval")},nativeOn:{click:function(t){return e.handleClick(2)}}}),e._v(" "),i("el-step",{staticClass:"click_cursor",class:[e.TrialMaxState>=3?"underline":"noneUnderline"],attrs:{title:e.$t("trials:seletctedReviews:timeline:confirmation")},nativeOn:{click:function(t){return e.handleClick(3)}}})],1),e._v(" "),i("div",{staticClass:"step-content"},[0===e.activeStatus?i("Selection",{on:{nextStep:e.nextStep}}):e._e(),e._v(" "),1===e.activeStatus?i("Submission",{ref:"submission",on:{nextStep:e.nextStep}}):e._e(),e._v(" "),2===e.activeStatus?i("Approval",{ref:"approval",on:{nextStep:e.nextStep}}):e._e(),e._v(" "),3===e.activeStatus?i("Confirmation",{ref:"confirmation"}):e._e()],1)],1)])},a=[],r=i("3644"),o=i("be8f"),s=i("199c"),l=i("0f07"),c=i("3e42"),u={name:"Enroll",components:{Selection:r["default"],Submission:o["default"],Approval:s["default"],Confirmation:l["default"]},data:function(){return{trialInfo:null,TrialId:"",activeStatus:null,TrialMaxState:0}},mounted:function(){this.TrialId=this.$route.query.trialId,this.initPage()},methods:{initPage:function(){var e=this;Object(c["Pd"])(this.TrialId).then((function(t){e.trialInfo=t.Result.TrialView;var i=t.Result.TrialMaxState<1?0:t.Result.TrialMaxState<5?1:t.Result.TrialMaxState<8?2:3;e.activeStatus=i,e.TrialMaxState=i}))},handleClick:function(e){this.activeStatus=e},nextStep:function(e){this.activeStatus=3===this.activeStatus?3:this.activeStatus+1,this.TrialMaxState=this.activeStatus,this.$nextTick(function(){this.$refs[e].getList()}.bind(this))}}},d=u,f=(i("be16"),i("2877")),h=Object(f["a"])(d,n,a,!1,null,null,null);t["default"]=h.exports},"909f":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",[i("div",{staticClass:"search"},[i("el-form",{staticClass:"base-search-form",attrs:{inline:!0,size:"mini"}},[i("el-form-item",{attrs:{label:"临床数据名称"}},[i("el-input",{model:{value:e.searchData.ClinicalDataSetName,callback:function(t){e.$set(e.searchData,"ClinicalDataSetName",t)},expression:"searchData.ClinicalDataSetName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"数据级别"}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.ClinicalDataLevel,callback:function(t){e.$set(e.searchData,"ClinicalDataLevel",t)},expression:"searchData.ClinicalDataLevel"}},e._l(e.$d.ClinicalLevel,(function(e,t){return i("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"传输方式"}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.ClinicalUploadType,callback:function(t){e.$set(e.searchData,"ClinicalUploadType",t)},expression:"searchData.ClinicalUploadType"}},e._l(e.$d.ClinicalUploadType,(function(e,t){return i("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:e.handleReset}},[e._v("重置")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.handleSearch}},[e._v("查询")])],1)],1),e._v(" "),i("span",{staticStyle:{"margin-left":"auto"}},[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.handleAdd}},[e._v("新增")])],1)],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:45},expression:"{bottomOffset:45}"}],attrs:{data:e.list,stripe:"",size:"small",height:"100"}},[i("el-table-column",{attrs:{type:"index",width:"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"ClinicalDataSetName",label:"临床数据名称","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"UploadRole",label:"上传人","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("ClinicalDataUploadRole",t.row.UploadRole))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ClinicalDataLevel",label:"数据级别","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("ClinicalLevel",t.row.ClinicalDataLevel))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ClinicalUploadType",label:"传输方式","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("ClinicalUploadType",t.row.ClinicalUploadType))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"CriterionEnumList",label:"阅片标准","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.CriterionEnumList.map((function(t){return e.$fd("CriterionType",t)})).toString())+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"FileName",label:"模板名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.FileName)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsEnable",label:"状态","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsEnable?i("el-tag",[e._v("启用")]):i("el-tag",{attrs:{type:"danger"}},[e._v("禁用")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:"创建时间","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:"操作",width:"250",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"primary",size:"mini",disabled:!t.row.FileName},on:{click:function(i){return e.handleDownloadTpl(t.row)}}},[e._v("\n 下载\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("\n 编辑\n ")]),e._v(" "),i("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("\n 删除\n ")])]}}])})],1),e._v(" "),e.addOrEditCD.visible?i("el-dialog",{attrs:{visible:e.addOrEditCD.visible,"close-on-click-modal":!1,title:e.addOrEditCD.title,width:"500px","append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){return e.$set(e.addOrEditCD,"visible",t)}}},[i("ClinicalDataForm",{ref:"addOrEditCD",attrs:{data:e.currentRow},on:{close:function(t){e.addOrEditCD.visible=!1},getList:e.getList}})],1):e._e()],1)},a=[],r=i("db72"),o=i("e56e"),s=i("f36a"),l=i("592b"),c=function(){return{ClinicalDataSetName:"",ClinicalDataLevel:null,ClinicalUploadType:null}},u={name:"ClinicalDataTemplate",components:{BoxContent:s["default"],ClinicalDataForm:l["default"]},data:function(){return{searchData:c(),list:[],total:0,loading:!1,currentRow:{},addOrEditCD:{visible:!1,title:""}}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0,Object(o["Z"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result})).catch((function(){e.loading=!1}))},handleAdd:function(){this.currentRow={},this.addOrEditCD.title="新增",this.addOrEditCD.visible=!0},handleEdit:function(e){this.currentRow=Object(r["a"])({},e),this.addOrEditCD.title="编辑",this.addOrEditCD.visible=!0},handleDelete:function(e){var t=this;this.$confirm("是否确认删除?",{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.loading=!0,Object(o["A"])(e.Id).then((function(e){t.loading=!1,e.IsSuccess&&(t.getList(),t.$message.success("删除成功!"))})).catch((function(){t.loading=!1}))}))},handleDownloadTpl:function(e){var t=this;this.loading=!0,Object(o["b"])(e.Id).then((function(e){t.loading=!1})).catch((function(){t.loading=!1}))},handleSortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()},handleSearch:function(){this.getList()},handleReset:function(){this.searchData=c(),this.getList()}}},d=u,f=i("2877"),h=Object(f["a"])(d,n,a,!1,null,null,null);t["default"]=h.exports},"90c2":function(e,t,i){var n=i("5f14"),a=i("41ef"),r=i("6d8b"),o=r.isArray,s="itemStyle",l={seriesType:"treemap",reset:function(e,t,i,n){var a=e.getData().tree,r=a.root;r.isRemoved()||c(r,{},e.getViewRoot().getAncestors(),e)}};function c(e,t,i,n){var a=e.getModel(),o=e.getLayout();if(o&&!o.invisible&&o.isInView){var l,h=e.getModel(s),m=u(h,t,n),v=h.get("borderColor"),b=h.get("borderColorSaturation");null!=b&&(l=d(m,e),v=f(b,l)),e.setVisual("borderColor",v);var y=e.viewChildren;if(y&&y.length){var w=p(e,a,o,h,m,y);r.each(y,(function(e,t){if(e.depth>=i.length||e===i[e.depth]){var r=g(a,m,e,t,w,n);c(e,r,i,n)}}))}else l=d(m,e),e.setVisual("color",l)}}function u(e,t,i){var n=r.extend({},t),a=i.designatedVisualItemStyle;return r.each(["color","colorAlpha","colorSaturation"],(function(i){a[i]=t[i];var r=e.get(i);a[i]=null,null!=r&&(n[i]=r)})),n}function d(e){var t=h(e,"color");if(t){var i=h(e,"colorAlpha"),n=h(e,"colorSaturation");return n&&(t=a.modifyHSL(t,null,null,n)),i&&(t=a.modifyAlpha(t,i)),t}}function f(e,t){return null!=t?a.modifyHSL(t,null,null,e):null}function h(e,t){var i=e[t];if(null!=i&&"none"!==i)return i}function p(e,t,i,a,r,o){if(o&&o.length){var s=m(t,"color")||null!=r.color&&"none"!==r.color&&(m(t,"colorAlpha")||m(t,"colorSaturation"));if(s){var l=t.get("visualMin"),c=t.get("visualMax"),u=i.dataExtent.slice();null!=l&&l<u[0]&&(u[0]=l),null!=c&&c>u[1]&&(u[1]=c);var d=t.get("colorMappingBy"),f={type:s.name,dataExtent:u,visual:s.range};"color"!==f.type||"index"!==d&&"id"!==d?f.mappingMethod="linear":(f.mappingMethod="category",f.loop=!0);var h=new n(f);return h.__drColorMappingBy=d,h}}}function m(e,t){var i=e.get(t);return o(i)&&i.length?{name:t,range:i}:null}function g(e,t,i,n,a,o){var s=r.extend({},t);if(a){var l=a.type,c="color"===l&&a.__drColorMappingBy,u="index"===c?n:"id"===c?o.mapIdToIndex(i.getId()):i.getValue(e.get("visualDimension"));s[l]=a.mapValueToVisual(u)}return s}e.exports=l},"90ce":function(e,t,i){"use strict";i("5951")},"90fb7":function(e,t,i){},"910a":function(e,t,i){},"910c":function(e,t,i){},9110:function(e,t,i){i("96cf");const n=i("9423"),{fetchFile:a}=i("b8df");e.exports={createFFmpeg:n,fetchFile:a}},"911c":function(e,t,i){"use strict";i("8826")},9159:function(e,t,i){"use strict";i("5923")},9183:function(e,t,i){},"919a":function(e,t,i){},"919e":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.oncologyInfo.OncologyVisits}},[i("el-table-column",{attrs:{prop:"VisitName",label:e.$t("trials:oncologyReview:title:visitName"),"show-overflow-tooltip":"",width:"150"}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("trials:oncologyReview:title:readingRes"),align:"center",prop:"","show-overflow-tooltip":""}},[[e._l(e.questionCols,(function(t,n){return i("el-table-column",{key:t,attrs:{prop:"",label:t,"show-overflow-tooltip":"",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.QuestionList[n].DictionaryCode?i("span",[e._v("\n "+e._s(e.$fd(t.row.QuestionList[n].DictionaryCode,parseInt(t.row.QuestionList[n].Answer)))+"\n ")]):i("span",[e._v("\n "+e._s(t.row.QuestionList.length>n?t.row.QuestionList[n].Answer:"")+"\n ")])]}}],null,!0)})})),e._v(" "),e.oncologyInfo.IsShowDetail?i("el-table-column",{attrs:{prop:"IsHaveChange",label:e.$t("trials:oncologyReview:title:isGlobalUpdate"),"show-overflow-tooltip":"",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e.$fd("YesOrNo",t.row.IsHaveChange)))]),e._v(" "),t.row.IsHaveChange&&e.oncologyInfo.GlobalTaskId?i("el-button",{staticStyle:{"margin-left":"5px"},attrs:{type:"text"},on:{click:function(t){return e.handleViewDetail(e.oncologyInfo.GlobalTaskId)}}},[e._v("\n "+e._s(e.$t("trials:oncologyReview:title:view"))+"\n ")]):e._e()]}}],null,!1,1913502680)}):e._e(),e._v(" "),e.oncologyInfo.IsShowDetail?i("el-table-column",{attrs:{prop:"VisitRemark",label:e.$t("trials:oncologyReview:title:visitRemark"),"show-overflow-tooltip":"",width:"150"}}):e._e()]],2),e._v(" "),i("el-table-column",{attrs:{label:e.$t("trials:oncologyReview:title:oReviewRes"),align:"center",prop:""}},[[i("el-table-column",{attrs:{prop:"EvaluationResult",label:e.$t("trials:oncologyReview:title:findings"),"show-overflow-tooltip":"",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.oncologyInfo.ReadingTaskState<2?i("el-select",{attrs:{placeholder:e.$t("common:ruleMessage:select")},model:{value:t.row.EvaluationResult,callback:function(i){e.$set(t.row,"EvaluationResult",i)},expression:"scope.row.EvaluationResult"}},e._l(e.assessTypeList,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.Value,value:e.Code}})})),1):i("span",[e._v(e._s(e.getAssessType(t.row.EvaluationResult)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"EvaluationReason","show-overflow-tooltip":"",width:"250"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.oncologyInfo.ReadingTaskState<2?i("el-input",{model:{value:t.row.EvaluationReason,callback:function(i){e.$set(t.row,"EvaluationReason",i)},expression:"scope.row.EvaluationReason"}}):i("span",[e._v(e._s(t.row.EvaluationReason))])]}}])},[i("template",{slot:"header"},[i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n "+e._s(e.oncologyInfo.TrialEvaluationReason)+"\n ")]),e._v(" "),i("div",[i("span",[e._v(e._s(e.$t("trials:oncologyReview:title:reason")))]),e._v(" "),i("span",{staticStyle:{color:"red"}},[e._v("*")])])])],1)],2)]],2),e._v(" "),e.oncologyInfo.IsShowDetail?i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{circle:"",title:e.$t("trials:oncologyReview:title:view"),icon:"el-icon-view"},on:{click:function(i){return e.handleViewDetail(t.row.VisitTaskId)}}})]}}],null,!1,4016480980)}):e._e()],1)},a=[],r=(i("20d6"),i("5f87")),o={name:"OReview",props:{auditInfo:{type:Object,default:function(){return{}}},rowData:{type:Object,default:function(){return{}}}},data:function(){return{oncologyInfo:{},questionCols:[]}},mounted:function(){this.initPage()},methods:{initPage:function(){var e=[];if(this.auditInfo.OncologyInfo.OncologyVisits.length>0){var t=this.auditInfo.OncologyInfo.OncologyVisits[0];t.QuestionList.map((function(t){e.push(t.QuestionName)}))}this.questionCols=e,this.assessTypeList=this.auditInfo.OncologyInfo.AssessTypeList,this.oncologyInfo=this.auditInfo.OncologyInfo},handleViewDetail:function(e){var t=this.$route.query.trialId,i=Object(r["a"])(),n=this.rowData.CriterionType,a=this.rowData.ReadingTool;a=isNaN(parseInt(a))?null:parseInt(a);var o=this.rowData.IsReadingTaskViewInOrder,s=this.rowData.TrialReadingCriterionId,l="";l=0===a?"/readingDicoms?TrialReadingCriterionId=".concat(s,"&trialId=").concat(t,"&subjectCode=").concat(this.rowData.SubjectCode,"&subjectId=").concat(this.rowData.SubjectId,"&visitTaskId=").concat(e,"&isReadingTaskViewInOrder=").concat(o,"&criterionType=").concat(n,"&readingTool=").concat(a,"&TokenKey=").concat(i,"&key=").concat((new Date).getTime()):"/noneDicomReading?TrialReadingCriterionId=".concat(s,"&trialId=").concat(t,"&subjectCode=").concat(this.rowData.SubjectCode,"&subjectId=").concat(this.rowData.SubjectId,"&visitTaskId=").concat(e,"&isReadingTaskViewInOrder=").concat(o,"&criterionType=").concat(n,"&readingTool=").concat(a,"&TokenKey=").concat(i,"&key=").concat((new Date).getTime());var c=this.$router.resolve({path:l});window.open(c.href,"_blank")},getAssessType:function(e){var t=this.assessTypeList.findIndex((function(t){return t.Code===e}));return t>-1?this.assessTypeList[t].Value:""}}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},"91be":function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-nested",use:"icon-nested-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-nested"><path d="M.002 9.2c0 5.044 3.58 9.133 7.998 9.133 4.417 0 7.997-4.089 7.997-9.133 0-5.043-3.58-9.132-7.997-9.132S.002 4.157.002 9.2zM31.997.066h95.981V18.33H31.997V.066zm0 45.669c0 5.044 3.58 9.132 7.998 9.132 4.417 0 7.997-4.088 7.997-9.132 0-3.263-1.524-6.278-3.998-7.91-2.475-1.63-5.524-1.63-7.998 0-2.475 1.632-4 4.647-4 7.91zM63.992 36.6h63.986v18.265H63.992V36.6zm-31.995 82.2c0 5.043 3.58 9.132 7.998 9.132 4.417 0 7.997-4.089 7.997-9.132 0-5.044-3.58-9.133-7.997-9.133s-7.998 4.089-7.998 9.133zm31.995-9.131h63.986v18.265H63.992V109.67zm0-27.404c0 5.044 3.58 9.133 7.998 9.133 4.417 0 7.997-4.089 7.997-9.133 0-3.263-1.524-6.277-3.998-7.909-2.475-1.631-5.524-1.631-7.998 0-2.475 1.632-4 4.646-4 7.91zm31.995-9.13h31.991V91.4H95.987V73.135z" /></symbol>'});o.a.add(s);t["default"]=s},"91e9":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-card",{staticClass:"box-card",staticStyle:{width:"800px"},attrs:{size:"small"}},[i("div",[i("el-button",{attrs:{type:"danger"},on:{click:e.handleReset}},[e._v(e._s(e.$t("admin:reset")))])],1)])},a=[],r=i("50fc"),o={name:"Account",props:{userId:{type:String,default:""}},methods:{handleReset:function(){var e=this;this.$confirm(this.$t("admin:message:password"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){Object(r["s"])(e.userId).then((function(t){t.IsSuccess&&e.$message({message:e.$t("trials:adRules:message:msg7"),type:"success"})}))}))}}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},9214:function(e,t,i){},"922f":function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-system",use:"icon-system-usage",viewBox:"0 0 1084 1024",content:'<symbol class="icon" viewBox="0 0 1084 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-system"><defs><style type="text/css">@font-face { font-family: rbicon; src: url("chrome-extension://dipiagiiohfljcicegpgffpbnjmgjcnf/fonts/rbicon.woff2") format("woff2"); font-weight: normal; font-style: normal; }\r\n</style></defs><path d="M1080.09609 434.500756c-4.216302-23.731757-26.9241-47.945376-50.595623-53.185637l-17.648235-4.095836a175.940257 175.940257 0 0 1-101.612877-80.832531 177.807476 177.807476 0 0 1-18.732427-129.801867l5.541425-16.684509c7.10748-23.129428-2.108151-54.992624-20.599646-70.833873 0 0-16.624276-14.094495-63.244529-41.199293-46.800951-26.984332-66.858502-34.513443-66.858502-34.513443-22.76803-8.372371-54.631227-0.361397-71.255503 17.407304l-12.287509 13.251234a173.470708 173.470708 0 0 1-120.465769 48.065842A174.13327 174.13327 0 0 1 421.329029 33.590675L409.583617 20.761071C393.140039 2.99237 361.096144-4.898138 338.267881 3.353767c0 0-20.358715 7.529111-67.099434 34.513443-46.800951 27.34573-63.244529 41.440225-63.244529 41.440225-18.431263 15.66055-27.646894 47.222582-20.539413 70.592941l5.059562 16.865207a178.048407 178.048407 0 0 1-18.672194 129.621169 174.916297 174.916297 0 0 1-102.275439 81.073463l-17.045906 3.854904c-23.310126 5.42096-46.258856 29.333415-50.595623 53.185637 0 0-3.854905 21.382674-3.854905 75.712737 0 54.330062 3.854905 75.712736 3.854905 75.712736 4.216302 23.972688 26.9241 47.945376 50.595623 53.185637l16.624276 3.854905a174.253736 174.253736 0 0 1 102.395904 81.314394c23.310126 40.837896 28.911785 87.337683 18.732427 129.801867l-4.81863 16.443578c-7.10748 23.129428 2.108151 54.992624 20.599646 70.833872 0 0 16.624276 14.094495 63.244529 41.199293 46.800951 27.104798 66.918735 34.513443 66.918735 34.513443 22.707798 8.372371 54.631227 0.361397 71.255503-17.407303l11.624947-12.588673a175.096996 175.096996 0 0 1 242.256662 0.120465l11.624947 12.648906c16.383345 17.708468 48.427239 25.598976 71.255503 17.347071 0 0 20.358715-7.529111 67.159666-34.513443 46.740719-27.104798 63.124063-41.199293 63.124064-41.199293 18.491496-15.600317 27.707127-47.463513 20.599646-70.833873l-5.059562-17.106139a176.723284 176.723284 0 0 1 18.672194-129.139305 176.060722 176.060722 0 0 1 102.395904-81.314394l16.68451-3.854905c23.310126-5.42096 46.258856-29.333415 50.595623-53.185637 0 0 3.854905-21.382674 3.854904-75.712737-0.240932-54.330062-4.095836-75.833202-4.095836-75.833202z m-537.819428 293.334149c-119.261112 0-216.175824-97.336342-216.175824-217.621412a216.657687 216.657687 0 0 1 216.236057-217.320249c119.200879 0 216.115591 97.276109 216.11559 217.56118-0.240932 120.044139-96.974945 217.320248-216.175823 217.320249z" p-id="10234" fill="#bfbfbf" /></symbol>'});o.a.add(s);t["default"]=s},"923b":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"clinicalDataForm",attrs:{model:e.form,size:"small",rules:e.rules,disabled:"look"===e.type,"label-width":"130px"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:"类型",prop:"Type"}},[i("el-select",{attrs:{clearable:""},on:{change:function(t){e.typeChange(t,e.form)}},model:{value:e.form.Type,callback:function(t){e.$set(e.form,"Type",t)},expression:"form.Type"}},e._l(e.$d.Criterion_Question_Type,(function(e){return i("el-option",{key:e.value,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),"number"===e.form.Type||"calculation"===e.form.Type?i("el-form-item",{attrs:{label:"数值类型",prop:"ValueType",rules:[{required:!0,message:"请选择"}]}},[i("el-radio-group",{model:{value:e.form.ValueType,callback:function(t){e.$set(e.form,"ValueType",t)},expression:"form.ValueType"}},e._l(e.$d.ValueType,(function(t){return i("el-radio",{key:t.id,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1):e._e(),e._v(" "),"number"===e.form.Type||"calculation"===e.form.Type?i("el-form-item",{attrs:{label:"单位"}},[i("el-radio-group",{model:{value:e.form.Unit,callback:function(t){e.$set(e.form,"Unit",t)},expression:"form.Unit"}},e._l(e.$d.ValueUnit,(function(t){return i("el-radio",{key:t.id,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1):e._e(),e._v(" "),"table"===e.form.Type?i("el-form-item",{attrs:{label:"表格类型标识",prop:"LesionType"}},[i("el-select",{attrs:{clearable:""},model:{value:e.form.LesionType,callback:function(t){e.$set(e.form,"LesionType",t)},expression:"form.LesionType"}},e._l(e.lesionTypes,(function(t){return i("el-option",{key:t.Code,attrs:{value:parseInt(t.Code),label:e.$fd("LesionType",parseInt(t.Code))}})})),1)],1):e._e(),e._v(" "),"group"===e.form.Type?i("el-form-item",{attrs:{label:"分组名称",prop:"GroupName"}},[i("el-input",{model:{value:e.form.GroupName,callback:function(t){e.$set(e.form,"GroupName",t)},expression:"form.GroupName"}})],1):e._e(),e._v(" "),"group"===e.form.Type?i("el-form-item",{attrs:{label:"分组名称EN",prop:"GroupEnName"}},[i("el-input",{model:{value:e.form.GroupEnName,callback:function(t){e.$set(e.form,"GroupEnName",t)},expression:"form.GroupEnName"}})],1):e._e(),e._v(" "),"group"!==e.form.Type?i("el-form-item",{attrs:{label:"问题名称",prop:"QuestionName"}},[i("el-input",{model:{value:e.form.QuestionName,callback:function(t){e.$set(e.form,"QuestionName",t)},expression:"form.QuestionName"}})],1):e._e(),e._v(" "),"group"!==e.form.Type?i("el-form-item",{attrs:{label:"问题名称EN",prop:"QuestionEnName"}},[i("el-input",{model:{value:e.form.QuestionEnName,callback:function(t){e.$set(e.form,"QuestionEnName",t)},expression:"form.QuestionEnName"}})],1):e._e(),e._v(" "),"select"===e.form.Type||"radio"===e.form.Type||"calculation"===e.form.Type?i("el-form-item",{attrs:{label:"选项类型",prop:"QuestionGenre",rules:[{required:"calculation"!==e.form.Type,message:"请选择"}]}},[i("el-radio-group",{on:{change:function(t){e.questionGenreChange(t,e.form)}},model:{value:e.form.QuestionGenre,callback:function(t){e.$set(e.form,"QuestionGenre",t)},expression:"form.QuestionGenre"}},[i("el-radio",{attrs:{label:-1}},[e._v("\n 无\n ")]),e._v(" "),e._l(e.$d.TableQuestionType,(function(t){return i("el-radio",{directives:[{name:"show",rawName:"v-show",value:0===t.value||3===t.value,expression:"item.value===0 || item.value===3"}],key:t.id,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])}))],2)],1):e._e(),e._v(" "),0===e.form.QuestionGenre?i("el-form-item",{attrs:{label:"选项",prop:"TypeValue"}},[i("el-input",{attrs:{placeholder:"选项请用‘|’分割多个选项"},model:{value:e.form.TypeValue,callback:function(t){e.$set(e.form,"TypeValue",t)},expression:"form.TypeValue"}})],1):e._e(),e._v(" "),3===e.form.QuestionGenre?i("el-form-item",{attrs:{label:"关联字典",prop:"DictionaryCode"}},[i("el-select",{attrs:{clearable:""},on:{change:function(){e.form.DefaultValue=null}},model:{value:e.form.DictionaryCode,callback:function(t){e.$set(e.form,"DictionaryCode",t)},expression:"form.DictionaryCode"}},e._l(e.dicList,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.Code,value:e.Code}})})),1)],1):e._e(),e._v(" "),3===e.form.QuestionGenre?i("el-form-item",{attrs:{label:"默认值"}},[i("el-select",{attrs:{clearable:""},model:{value:e.form.DefaultValue,callback:function(t){e.$set(e.form,"DefaultValue",t)},expression:"form.DefaultValue"}},e._l(e.form.DictionaryCode?e.$d[e.form.DictionaryCode]:[],(function(e){return i("el-option",{key:e.id,attrs:{label:e.label,value:e.value.toString()}})})),1)],1):e._e(),e._v(" "),0===e.form.QuestionGenre?i("el-form-item",{attrs:{label:"默认值"}},[i("el-select",{attrs:{clearable:""},model:{value:e.form.DefaultValue,callback:function(t){e.$set(e.form,"DefaultValue",t)},expression:"form.DefaultValue"}},e._l(e.form.TypeValue?e.form.TypeValue.split("|"):[],(function(e){return i("el-option",{key:e,attrs:{label:e,value:e}})})),1)],1):e._e(),e._v(" "),"group"!==e.form.Type?i("el-form-item",{attrs:{label:"是否显示",prop:"ShowQuestion"}},[i("el-radio-group",{on:{change:function(t){e.isShowQuestionChange(t,e.form)}},model:{value:e.form.ShowQuestion,callback:function(t){e.$set(e.form,"ShowQuestion",t)},expression:"form.ShowQuestion"}},e._l(e.$d.ShowQuestion,(function(t){return i("el-radio",{key:"ShowQuestion"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1):e._e(),e._v(" "),"group"!==e.form.Type&&1===e.form.ShowQuestion?i("el-form-item",{attrs:{label:"显示依赖父问题",prop:"ParentId"}},[i("el-select",{attrs:{clearable:""},on:{change:function(t){e.parentQuestionChange(t,e.form)}},model:{value:e.form.ParentId,callback:function(t){e.$set(e.form,"ParentId",t)},expression:"form.ParentId"}},e._l(e.parentOptions,(function(e){return i("el-option",{key:"ParentId"+e.QuestionId,attrs:{label:e.QuestionName,value:e.QuestionId}})})),1)],1):e._e(),e._v(" "),e.form.ParentId&&1===e.form.ShowQuestion?i("el-form-item",{attrs:{label:"显示触发值",prop:"ParentTriggerValue"}},[i("el-select",{attrs:{clearable:""},model:{value:e.form.ParentTriggerValue,callback:function(t){e.$set(e.form,"ParentTriggerValue",t)},expression:"form.ParentTriggerValue"}},e._l(e.parentTriggerValOptions,(function(e){return i("el-option",{key:e.id,attrs:{label:e.label,value:e.value.toString()}})})),1)],1):e._e(),e._v(" "),"select"===e.form.Type||"radio"===e.form.Type||"calculation"===e.form.Type?i("el-form-item",{attrs:{label:"是否裁判问题"}},[i("el-radio-group",{on:{change:function(t){e.isJudgeQuestionChange(t,e.form)}},model:{value:e.form.IsJudgeQuestion,callback:function(t){e.$set(e.form,"IsJudgeQuestion",t)},expression:"form.IsJudgeQuestion"}},[i("el-radio",{attrs:{label:!0}},[e._v("是")]),e._v(" "),i("el-radio",{attrs:{label:!1}},[e._v("否")])],1)],1):e._e(),e._v(" "),"group"!==e.form.Type&&"table"!==e.form.Type?i("el-form-item",{attrs:{label:"是否必填",prop:"IsRequired"}},[i("el-radio-group",{attrs:{disabled:!0===e.form.IsJudgeQuestion||2===e.form.ShowQuestion},on:{change:function(t){e.isRequiredChange(t,e.form)}},model:{value:e.form.IsRequired,callback:function(t){e.$set(e.form,"IsRequired",t)},expression:"form.IsRequired"}},e._l(e.$d.QuestionRequired,(function(t){return i("el-radio",{key:"QuestionRequired"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1):e._e(),e._v(" "),"group"!==e.form.Type&&1===e.form.IsRequired?i("el-form-item",{attrs:{label:"必填依赖父问题",prop:"RelevanceId"}},[i("el-select",{attrs:{clearable:""},on:{change:function(t){e.relevanceQuestionChange(t,e.form)}},model:{value:e.form.RelevanceId,callback:function(t){e.$set(e.form,"RelevanceId",t)},expression:"form.RelevanceId"}},e._l(e.parentOptions,(function(e){return i("el-option",{key:"RelevanceId"+e.QuestionId,attrs:{label:e.QuestionName,value:e.QuestionId}})})),1)],1):e._e(),e._v(" "),e.form.RelevanceId&&1===e.form.IsRequired?i("el-form-item",{attrs:{label:"必填触发值",prop:"RelevanceValue"}},[i("el-select",{attrs:{clearable:""},model:{value:e.form.RelevanceValue,callback:function(t){e.$set(e.form,"RelevanceValue",t)},expression:"form.RelevanceValue"}},e._l(e.reParentTriggerValOptions,(function(e){return i("el-option",{key:e.id,attrs:{label:e.label,value:e.value.toString()}})})),1)],1):e._e(),e._v(" "),"group"!==e.form.Type?i("el-form-item",{attrs:{label:"问题分组"}},[i("el-select",{attrs:{clearable:"",disabled:e.isParentExistGroup},model:{value:e.form.GroupId,callback:function(t){e.$set(e.form,"GroupId",t)},expression:"form.GroupId"}},e._l(e.groupOptions,(function(e){return i("el-option",{key:e,attrs:{label:e.GroupName,value:e.GroupId}})})),1)],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:"限制编辑"}},[i("el-radio-group",{model:{value:e.form.LimitEdit,callback:function(t){e.$set(e.form,"LimitEdit",t)},expression:"form.LimitEdit"}},e._l(e.$d.LimitEdit,(function(t){return i("el-radio",{attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"全局阅片是否显示"}},[i("el-radio-group",{model:{value:e.form.GlobalReadingShowType,callback:function(t){e.$set(e.form,"GlobalReadingShowType",t)},expression:"form.GlobalReadingShowType"}},e._l(e.$d.GlobalReadingShowType,(function(t){return i("el-radio",{key:t.id,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"问题标识",prop:"QuestionType"}},[i("el-select",{attrs:{clearable:""},model:{value:e.form.QuestionType,callback:function(t){e.$set(e.form,"QuestionType",t)},expression:"form.QuestionType"}},e._l(e.CriterionDictionaryList.QuestionType,(function(e){return i("el-option",{key:e.Id,attrs:{value:parseInt(e.Code),label:e.ValueCN}})})),1)],1),e._v(" "),"upload"===e.form.Type?i("el-form-item",{attrs:{label:"最大上传个数"}},[i("el-input-number",{attrs:{"controls-position":"right",min:1,max:10},model:{value:e.form.ImageCount,callback:function(t){e.$set(e.form,"ImageCount",t)},expression:"form.ImageCount"}})],1):e._e(),e._v(" "),"group"!==e.form.Type&&"summary"!==e.form.Type?i("el-form-item",{attrs:{label:"注释"}},[i("el-input",{model:{value:e.form.Remark,callback:function(t){e.$set(e.form,"Remark",t)},expression:"form.Remark"}})],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:"序号",prop:"ShowOrder"}},[i("el-input-number",{attrs:{"controls-position":"right",min:0},model:{value:e.form.ShowOrder,callback:function(t){e.$set(e.form,"ShowOrder",t)},expression:"form.ShowOrder"}})],1),e._v(" "),"table"===e.form.Type?i("el-form-item",{attrs:{label:"自增序号前缀"}},[i("el-input",{model:{value:e.form.OrderMark,callback:function(t){e.$set(e.form,"OrderMark",t)},expression:"form.OrderMark"}})],1):e._e(),e._v(" "),"table"===e.form.Type?i("el-form-item",{attrs:{label:"最大行数"}},[i("el-input-number",{attrs:{"controls-position":"right"},model:{value:e.form.MaxQuestionCount,callback:function(t){e.$set(e.form,"MaxQuestionCount",t)},expression:"form.MaxQuestionCount"}})],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:"是否在阅片页面显示"}},[i("el-radio-group",{model:{value:e.form.IsShowInDicom,callback:function(t){e.$set(e.form,"IsShowInDicom",t)},expression:"form.IsShowInDicom"}},[i("el-radio",{attrs:{label:!0}},[e._v("是")]),e._v(" "),i("el-radio",{attrs:{label:!1}},[e._v("否")])],1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:qsList:title:Remark"),prop:"Remark"}},[i("el-input",{model:{value:e.form.Remark,callback:function(t){e.$set(e.form,"Remark",t)},expression:"form.Remark"}})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.close}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.save}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])},a=[],r=(i("20d6"),i("456d"),i("96cf"),i("3b8d")),o=(i("ac6a"),i("5df3"),i("4f7f"),i("28a5"),i("e56e")),s=i("3e42"),l={name:"AddOrUpdateClinicalData",props:{data:{type:Object,default:function(){return{}}},type:{type:String,default:function(){return""}}},data:function(){var e=this,t=function(t,i,n){if(""===i)n(new Error(e.$t("common:ruleMessage:specify")));else{var a=i.split("|");new Set(a).size!==a.length?n(new Error("选项不允许存在相同值")):n()}};return{validateTypeVal:t,form:{Id:"",ReadingQuestionCriterionSystemId:"",QuestionName:"",QuestionEnName:"",Type:"input",ValueType:"",Unit:"",QuestionGenre:"",TypeValue:"",DictionaryCode:"",ParentId:"",ParentTriggerValue:"",ShowOrder:0,ShowQuestion:0,IsRequired:2,IsJudgeQuestion:!1,GroupName:"",GroupEnName:"",Remark:"",ImageCount:1,RelevanceId:"",RelevanceValue:"",LesionType:"",QuestionType:null,IsShowInDicom:!1,OrderMark:"",MaxQuestionCount:0,GlobalReadingShowType:3,DefaultValue:null,LimitEdit:0,GroupId:null},rules:{Type:[{required:!0,message:"请选择",trigger:"blur"}],LesionType:[{required:!0,message:"请选择",trigger:"blur"}],QuestionName:[{required:!0,message:"请注明",trigger:"blur"},{max:50,message:"最大长度为 50"}],QuestionGenre:[{required:!0,message:"请选择",trigger:"blur"}],TypeValue:[{required:!0,message:"请注明",trigger:"blur"},{validator:t,trigger:"blur"},{max:500,message:"最大长度为 500"}],DictionaryCode:[{required:!0,message:"请选择",trigger:"blur"}],ShowQuestion:[{required:!0,message:"请选择",trigger:"blur"}],IsRequired:[{required:!0,message:"请选择",trigger:"blur"}],ParentId:[{required:!0,message:"请选择",trigger:"blur"}],ParentTriggerValue:[{required:!0,message:"请选择",trigger:"blur"}],RelevanceId:[{required:!0,message:"请选择",trigger:"blur"}],RelevanceValue:[{required:!0,message:"请选择",trigger:"blur"}],GroupName:[{required:!0,message:"请注明",trigger:"blur"},{max:50,message:"最大长度为 50"}]},loading:!1,btnLoading:!1,parentOptions:[],parentTriggerValOptions:[],groupOptions:[],isParentExistGroup:!1,lesionTypes:[],dicList:[],CriterionDictionaryList:[]}},mounted:function(){this.initForm()},methods:{getCriterionDictionary:function(){var e=this;Object(o["bb"])({ReadingCriterionId:this.data.ReadingQuestionCriterionSystemId,DictionaryCode:"QuestionType"}).then((function(t){e.CriterionDictionaryList=t.Result}))},initForm:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,i,n,a,r,o=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getGroupOptions();case 2:return e.next=4,this.getParentQuestions();case 4:return e.next=6,this.getLesionType();case 6:return e.next=8,this.getBasicConfigSelect();case 8:if(Object.keys(this.data).length>0){for(t in this.form)this.data.hasOwnProperty(t)&&(this.form[t]=this.data[t]);""!==this.form.ParentId&&null!==this.form.ParentId&&""!==this.form.GroupName&&(this.isParentExistGroup=!0),this.form.ParentId&&(i=this.parentOptions.findIndex((function(e){return e.QuestionId===o.form.ParentId})),-1!==i&&(3===this.parentOptions[i].QuestionGenre?this.parentTriggerValOptions=this.$d[this.parentOptions[i].DictionaryCode]:(n=[],this.parentOptions[i].TypeValue.split("|").forEach((function(e,t){n.push({id:t,label:e,value:e})})),this.parentTriggerValOptions=n))),this.form.RelevanceId&&(a=this.parentOptions.findIndex((function(e){return e.QuestionId===o.form.RelevanceId})),-1!==a&&(3===this.parentOptions[i].QuestionGenre?this.reParentTriggerValOptions=this.$d[this.parentOptions[i].DictionaryCode]:(r=[],this.parentOptions[i].TypeValue.split("|").forEach((function(e,t){r.push({id:t,label:e,value:e})})),this.reParentTriggerValOptions=r)))}this.getCriterionDictionary();case 10:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),save:function(){var e=this;this.$refs.clinicalDataForm.validate((function(t){t&&(e.btnLoading=!0,"upload"!==e.form.Type&&(e.form.ImageCount=0),Object(o["q"])(e.form).then((function(t){e.btnLoading=!1,e.$emit("getList"),e.$emit("close"),e.$message.success(e.$t("common:message:savedSuccessfully"))})).catch((function(){e.btnLoading=!1})))}))},getBasicConfigSelect:function(){var e=this;Object(o["U"])("Reading_eCRF_Criterion").then((function(t){e.dicList=t.Result}))},getGroupOptions:function(){var e=this;return new Promise((function(t,i){e.loading=!0;var n={criterionId:e.data.ReadingQuestionCriterionSystemId};Object(o["Db"])(n).then((function(i){e.groupOptions=i.Result,e.loading=!1,t()})).catch((function(){e.loading=!1,i()}))}))},getParentQuestions:function(){var e=this;return new Promise((function(t,i){e.loading=!0;var n={readingQuestionCriterionSystemId:e.data.ReadingQuestionCriterionSystemId,id:e.data.Id};Object(o["Ab"])(n).then((function(i){e.parentOptions=i.Result,e.loading=!1,t()})).catch((function(){e.loading=!1,i()}))}))},questionGenreChange:function(e,t){t.DictionaryCode="",t.TypeValue=""},typeChange:function(e,t){"select"!==e&&"radio"!==e&&(t.IsJudgeQuestion=!1),"table"===e?t.IsRequired=2:t.LesionType=null,t.DictionaryCode="",t.TypeValue="",t.ValueType="",t.Unit=""},isShowQuestionChange:function(e,t){console.log(e),2===e?(t.IsRequired=2,t.ParentId="",t.ParentTriggerValue=""):(t.ParentId="",t.ParentTriggerValue="")},isRequiredChange:function(e,t){1!==e&&(t.RelevanceId="",t.RelevanceValue="")},parentQuestionChange:function(e,t){if(this.isParentExistGroup=!1,e){var i=this.parentOptions.findIndex((function(t){return t.QuestionId===e}));if(-1!==i){if(3===this.parentOptions[i].QuestionGenre)this.parentTriggerValOptions=this.$d[this.parentOptions[i].DictionaryCode];else{var n=[];this.parentOptions[i].TypeValue.split("|").forEach((function(e,t){n.push({id:t,label:e,value:e})})),this.parentTriggerValOptions=n}this.parentOptions[i].GroupName&&(this.isParentExistGroup=!0,t.GroupName=this.parentOptions[i].GroupName)}}else t.GroupName="",t.GroupEnName="";t.ParentTriggerValue=""},relevanceQuestionChange:function(e,t){if(e){var i=this.parentOptions.findIndex((function(t){return t.QuestionId===e}));if(-1!==i)if(3===this.parentOptions[i].QuestionGenre)this.reParentTriggerValOptions=this.$d[this.parentOptions[i].DictionaryCode];else{var n=[];this.parentOptions[i].TypeValue.split("|").forEach((function(e,t){n.push({id:t,label:e,value:e})})),this.reParentTriggerValOptions=n}}t.RelevanceValue=""},isJudgeQuestionChange:function(e,t){e&&(t.IsRequired=0)},getLesionType:function(){var e=this;return new Promise((function(t,i){e.loading=!0;var n={criterionId:e.data.ReadingQuestionCriterionSystemId};Object(s["Vb"])(n).then((function(i){e.lesionTypes=i.Result,e.loading=!1,t()})).catch((function(){e.loading=!1,i()}))}))},close:function(){this.$emit("close")}}},c=l,u=i("2877"),d=Object(u["a"])(c,n,a,!1,null,"104a81c2",null);t["default"]=d.exports},"923d":function(e,t,i){var n=i("6d8b"),a=i("3842"),r=i("ee1a"),o=r.isDimensionStacked,s=n.indexOf;function l(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function c(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function u(e,t,i,n,r,s){var l=[],c=o(t,n),u=c?t.getCalculationInfo("stackResultDimension"):n,d=b(t,u,e),f=t.indicesOfNearest(u,d)[0];l[r]=t.get(i,f),l[s]=t.get(u,f);var h=t.get(n,f),p=a.getPrecision(t.get(n,f));return p=Math.min(p,20),p>=0&&(l[s]=+l[s].toFixed(p)),[l,h]}var d=n.curry,f={min:d(u,"min"),max:d(u,"max"),average:d(u,"average")};function h(e,t){var i=e.getData(),a=e.coordinateSystem;if(t&&!c(t)&&!n.isArray(t.coord)&&a){var r=a.dimensions,o=p(t,i,a,e);if(t=n.clone(t),t.type&&f[t.type]&&o.baseAxis&&o.valueAxis){var l=s(r,o.baseAxis.dim),u=s(r,o.valueAxis.dim),d=f[t.type](i,o.baseDataDim,o.valueDataDim,l,u);t.coord=d[0],t.value=d[1]}else{for(var h=[null!=t.xAxis?t.xAxis:t.radiusAxis,null!=t.yAxis?t.yAxis:t.angleAxis],m=0;m<2;m++)f[h[m]]&&(h[m]=b(i,i.mapDimension(r[m]),h[m]));t.coord=h}}return t}function p(e,t,i,n){var a={};return null!=e.valueIndex||null!=e.valueDim?(a.valueDataDim=null!=e.valueIndex?t.getDimension(e.valueIndex):e.valueDim,a.valueAxis=i.getAxis(m(n,a.valueDataDim)),a.baseAxis=i.getOtherAxis(a.valueAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim)):(a.baseAxis=n.getBaseAxis(),a.valueAxis=i.getOtherAxis(a.baseAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim),a.valueDataDim=t.mapDimension(a.valueAxis.dim)),a}function m(e,t){var i=e.getData(),n=i.dimensions;t=i.getDimension(t);for(var a=0;a<n.length;a++){var r=i.getDimensionInfo(n[a]);if(r.name===t)return r.coordDim}}function g(e,t){return!(e&&e.containData&&t.coord&&!l(t))||e.containData(t.coord)}function v(e,t,i,n){return n<2?e.coord&&e.coord[n]:e.value}function b(e,t,i){if("average"===i){var n=0,a=0;return e.each(t,(function(e,t){isNaN(e)||(n+=e,a++)})),n/a}return"median"===i?e.getMedian(t):e.getDataExtent(t,!0)["max"===i?1:0]}t.dataTransform=h,t.getAxisInfo=p,t.dataFilter=g,t.dimValueGetter=v,t.numCalculate=b},9244:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{display:"flex","justify-content":"center"}},[i("div",{staticStyle:{width:"600px","text-align":"center",border:"1px solid #e6e6e6","margin-top":"40px",padding:"10px"}},[i("div",{staticClass:"trial-myinfo-head",staticStyle:{"font-size":"30px","line-height":"120px"}},[e._v("\n "+e._s(e.$t("recompose:title:init"))+"\n ")]),e._v(" "),i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"passwordForm",attrs:{"label-position":"right",model:e.password,rules:e.passwordFormRules,"label-width":"120px"}},[i("el-form-item",{attrs:{label:e.$t("recompose:form:email"),prop:"Email"}},[i("el-input",{attrs:{disabled:""},model:{value:e.password.Email,callback:function(t){e.$set(e.password,"Email",t)},expression:"password.Email"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("recompose:form:role"),prop:"UserType"}},[i("el-input",{attrs:{disabled:""},model:{value:e.password.UserType,callback:function(t){e.$set(e.password,"UserType",t)},expression:"password.UserType"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("recompose:form:userName"),prop:"NewUserName"}},[i("el-input",{model:{value:e.password.NewUserName,callback:function(t){e.$set(e.password,"NewUserName",t)},expression:"password.NewUserName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("recompose:form:newPassword"),prop:"NewPassWord"}},[i("el-input",{attrs:{type:"password","show-password":"","auto-complete":"new-password"},model:{value:e.password.NewPassWord,callback:function(t){e.$set(e.password,"NewPassWord",t)},expression:"password.NewPassWord"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("recompose:form:confirmPassword"),prop:"ConfirmPassWord"}},[i("el-input",{attrs:{type:"password","show-password":"","auto-complete":"new-password"},model:{value:e.password.ConfirmPassWord,callback:function(t){e.$set(e.password,"ConfirmPassWord",t)},expression:"password.ConfirmPassWord"}})],1),e._v(" "),i("el-form-item",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{size:"small"},on:{click:e.cancel}},[e._v("\n "+e._s(e.$t("recompose:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.save}},[e._v("\n "+e._s(e.$t("recompose:button:save"))+"\n ")])],1)],1)],1)])},a=[],r=(i("96cf"),i("3b8d")),o=i("50fc"),s=i("8237"),l=i.n(s),c={data:function(){return{password:{NewUserName:null,UserId:null},passwordFormRules:{NewUserName:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}],NewPassWord:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"},{required:!0,trigger:"blur",validator:this.$validatePassword}],ConfirmPassWord:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}]},userId:null,loading:!1}},mounted:function(){this.password.UserId=this.$route.query.UserId,this.password.NewUserName=this.$route.query.UserName,this.password.Email=this.$route.query.Email,this.password.UserType=this.$route.query.UserType,this.password.access_token=this.$route.query.access_token,this.password.NewUserName||this.$message.error(this.$t("recompose:message:warning"))},methods:{logout:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=zzSessionStorage.getItem("loginType"),e.next=3,this.$store.dispatch("user/logout");case 3:t?this.$router.push("/login?loginType=".concat(t)):this.$router.push("/login");case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),save:function(){var e=this;this.$refs.passwordForm.validate((function(t){if(t){if(e.password.NewPassWord!==e.password.ConfirmPassWord)return void e.$message.error(e.$t("recompose:message:passwordDiffer"));var i={NewUserName:e.password.NewUserName,UserId:e.password.UserId,NewPwd:l()(e.password.NewPassWord),access_token:e.password.access_token};e.loading=!0,Object(o["q"])(i).then((function(t){e.loading=!1,t.IsSuccess&&(e.$message.success(e.$t("recompose:message:updatedSuccessfully")),setTimeout((function(){e.logout()}),500))})).catch((function(){e.loading=!1}))}}))},cancel:function(){this.$refs["passwordForm"].resetFields()}}},u=c,d=(i("3d24"),i("bb05"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,"975f6e52",null);t["default"]=f.exports},9273:function(e,t,i){var n=i("6d8b"),a=i("84ce");function r(e,t){a.call(this,"radius",e,t),this.type="category"}r.prototype={constructor:r,pointToData:function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},dataToRadius:a.prototype.dataToCoord,radiusToData:a.prototype.coordToData},n.inherits(r,a);var o=r;e.exports=o},"928d":function(e,t,i){var n=i("6d8b"),a=i("4f85"),r=i("06c7"),o=i("4319"),s=i("eda2"),l=s.encodeHTML,c=s.addCommas,u=i("55ac"),d=u.wrapTreePathInfo,f=a.extend({type:"series.treemap",layoutMode:"box",dependencies:["grid","polar"],preventUsingHoverLayer:!0,_viewRoot:null,defaultOption:{progressive:0,left:"center",top:"middle",right:null,bottom:null,width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",borderColor:"rgba(255,255,255,0.7)",borderWidth:1,shadowColor:"rgba(150,150,150,1)",shadowBlur:3,shadowOffsetX:0,shadowOffsetY:0,textStyle:{color:"#fff"}},emphasis:{textStyle:{}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",ellipsis:!0},upperLabel:{show:!1,position:[0,"50%"],height:20,color:"#fff",ellipsis:!0,verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],color:"#fff",ellipsis:!0,verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},getInitialData:function(e,t){var i={name:e.name,children:e.data};h(i);var a=e.levels||[],s=this.designatedVisualItemStyle={},l=new o({itemStyle:s},this,t);a=e.levels=p(a,t);var c=n.map(a||[],(function(e){return new o(e,l,t)}),this),u=r.createTree(i,this,d);function d(e){e.wrapMethod("getItemModel",(function(e,t){var i=u.getNodeByDataIndex(t),n=c[i.depth];return e.parentModel=n||l,e}))}return u.data},optionUpdated:function(){this.resetViewRoot()},formatTooltip:function(e){var t=this.getData(),i=this.getRawValue(e),a=n.isArray(i)?c(i[0]):c(i),r=t.getName(e);return l(r+": "+a)},getDataParams:function(e){var t=a.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return t.treePathInfo=d(i,this),t},setLayoutInfo:function(e){this.layoutInfo=this.layoutInfo||{},n.extend(this.layoutInfo,e)},mapIdToIndex:function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=n.createHashMap(),this._idIndexMapCount=0);var i=t.get(e);return null==i&&t.set(e,i=this._idIndexMapCount++),i},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)}});function h(e){var t=0;n.each(e.children,(function(e){h(e);var i=e.value;n.isArray(i)&&(i=i[0]),t+=i}));var i=e.value;n.isArray(i)&&(i=i[0]),(null==i||isNaN(i))&&(i=t),i<0&&(i=0),n.isArray(e.value)?e.value[0]=i:e.value=i}function p(e,t){var i=t.get("color");if(i){var a;if(e=e||[],n.each(e,(function(e){var t=new o(e),i=t.get("color");(t.get("itemStyle.color")||i&&"none"!==i)&&(a=!0)})),!a){var r=e[0]||(e[0]={});r.color=i.slice()}return e}}e.exports=f},9298:function(e,t,i){"use strict";i("a685")},"92be":function(e,t,i){"use strict";(function(e){i("28a5"),i("7f7f"),i("96cf");var n=i("3b8d"),a=i("9110"),r=Object(a["createFFmpeg"])({log:!0,corePath:"./ffmpeg-core.js"});t["a"]={props:{},data:function(){return{isDisabled:!1,imgList:[],fileObj:null,videoList:[],videoSrc:null,file:null,dataBuffer:null,percentage:0,isVideoToMp4:!1,isNeedToMp4:!1}},watch:{},mounted:function(){},methods:{uploadVideo:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(t,i){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,this.isDisabled=!0,e.next=4,this.OSSclient.put(t,i);case 4:n=e.sent,this.$emit("uploadOver",!0,n,this.file.name),e.next=13;break;case 8:e.prev=8,e.t0=e["catch"](0),console.log(e.t0),this.isDisabled=!1,this.$emit("uploadOver",!1);case 13:case"end":return e.stop()}}),e,this,[[0,8]])})));function t(t,i){return e.apply(this,arguments)}return t}(),upload:function(){if(0===document.querySelector("#video").readyState&&0===document.querySelector("#video").buffered.length)return this.$message.error(this.$t("components:uploadvideo:message:xf2")),void(this.isNeedToMp4=!0);this.uploadVideo("file/videofile/".concat(this.file.name.split(".")[0]).concat((new Date).getTime(),".mp4"),this.dataBuffer)},videoToMp4:function(){var t=Object(n["a"])(regeneratorRuntime.mark((function t(){var i,n=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(window.isSecureContext){t.next=3;break}return this.$message.error(this.$t("components:uploadvideo:message:xf3")),t.abrupt("return");case 3:if(window.crossOriginIsolated){t.next=6;break}return this.$message.error(this.$t("components:uploadvideo:message:xf4")),t.abrupt("return");case 6:if(this.$message.success(this.$t("components:uploadvideo:message:xf5")),r.isLoaded()){t.next=10;break}return t.next=10,r.load();case 10:return this.percentage=0,this.isVideoToMp4=!0,r.setProgress((function(e){var t=e.ratio;console.log(t),n.percentage=100*t<1?parseInt(0):parseInt(100*t)})),t.t0=r,t.next=16,Object(a["fetchFile"])(this.videoSrc);case 16:return t.t1=t.sent,t.t0.FS.call(t.t0,"writeFile","input.mp4",t.t1),t.next=20,r.run("-i","input.mp4","output.mp4");case 20:this.videoSrc=null,i=r.FS("readFile","output.mp4"),this.dataBuffer=new Blob([i.buffer],{type:"video/mp4"}),this.$message.success(this.$t("components:uploadvideo:message:xf6")),setTimeout((function(){n.videoSrc=URL.createObjectURL(n.dataBuffer),n.isVideoToMp4=!1,n.isNeedToMp4=!1,e.exit(0)}),50);case 25:case"end":return t.stop()}}),t,this)})));function i(){return t.apply(this,arguments)}return i}(),fileChange:function(e){var t=this;this.videoSrc=null;var i=e.target.files||e.dataTransfer.files;this.file=i[0];var a=new FileReader;a.readAsArrayBuffer(this.file),a.onloadend=function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(i){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.dataBuffer=new Blob([i.target.result],{type:"video/mp4"}),t.videoSrc=URL.createObjectURL(t.dataBuffer),t.$message.success(t.$t("components:uploadvideo:message:xf7")),i.target.files=[];case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},deleteimg:function(e){this.imgList.splice(e,1)},jietu:function(){this.screenShot("video")},screenShot:function(e){var t=document.getElementById(e),i=document.createElement("canvas"),n=document.createElement("img");i.width=t.videoWidth,i.height=t.videoHeight,i.getContext("2d").drawImage(t,0,0,i.width,i.height);var a=i.toDataURL("image/png");n.src=a,n.width=t.clientWidth,n.height=t.clientHeight,n.style.objectFit="contain",this.imgList.push(a)},downFile:function(e,t){var i=document.createElementNS("http://www.jumi.com","a");i.href=e,i.download=t;var n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),i.dispatchEvent(n)}}}}).call(this,i("4362"))},"92fe":function(e,t,i){"use strict";i("0824")},"933b":function(e,t,i){var n=i("b12f"),a=n.extend({type:"timeline"});e.exports=a},9351:function(e,t,i){"use strict";i("7515")},"937c":function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-bug",use:"icon-bug-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-bug"><path d="M127.88 73.143c0 1.412-.506 2.635-1.518 3.669-1.011 1.033-2.209 1.55-3.592 1.55h-17.887c0 9.296-1.783 17.178-5.35 23.645l16.609 17.044c1.011 1.034 1.517 2.257 1.517 3.67 0 1.412-.506 2.635-1.517 3.668-.958 1.033-2.155 1.55-3.593 1.55-1.438 0-2.635-.517-3.593-1.55l-15.811-16.063a15.49 15.49 0 0 1-1.196 1.06c-.532.434-1.65 1.208-3.353 2.322a50.104 50.104 0 0 1-5.192 2.974c-1.758.87-3.94 1.658-6.546 2.364-2.607.706-5.189 1.06-7.748 1.06V47.044H58.89v73.062c-2.716 0-5.417-.367-8.106-1.102-2.688-.734-5.003-1.631-6.945-2.692a66.769 66.769 0 0 1-5.268-3.179c-1.571-1.057-2.73-1.94-3.476-2.65L33.9 109.34l-14.611 16.877c-1.066 1.14-2.344 1.711-3.833 1.711-1.277 0-2.422-.434-3.434-1.304-1.012-.978-1.557-2.187-1.635-3.627-.079-1.44.333-2.705 1.236-3.794l16.129-18.51c-3.087-6.197-4.63-13.644-4.63-22.342H5.235c-1.383 0-2.58-.517-3.592-1.55S.125 74.545.125 73.132c0-1.412.506-2.635 1.518-3.668 1.012-1.034 2.21-1.55 3.592-1.55h17.887V43.939L9.308 29.833c-1.012-1.033-1.517-2.256-1.517-3.669 0-1.412.505-2.635 1.517-3.668 1.012-1.034 2.21-1.55 3.593-1.55s2.58.516 3.593 1.55l13.813 14.106h67.396l13.814-14.106c1.012-1.034 2.21-1.55 3.592-1.55 1.384 0 2.581.516 3.593 1.55 1.012 1.033 1.518 2.256 1.518 3.668 0 1.413-.506 2.636-1.518 3.67l-13.814 14.105v23.975h17.887c1.383 0 2.58.516 3.593 1.55 1.011 1.033 1.517 2.256 1.517 3.668l-.005.01zM89.552 26.175H38.448c0-7.23 2.489-13.386 7.466-18.469C50.892 2.623 56.92.082 64 .082c7.08 0 13.108 2.541 18.086 7.624 4.977 5.083 7.466 11.24 7.466 18.469z" /></symbol>'});o.a.add(s);t["default"]=s},9390:function(e,t,i){i("d090"),i("83ba"),i("ee66")},"93d0":function(e,t){var i="original",n="arrayRows",a="objectRows",r="keyedColumns",o="unknown",s="typedArray",l="column",c="row";t.SOURCE_FORMAT_ORIGINAL=i,t.SOURCE_FORMAT_ARRAY_ROWS=n,t.SOURCE_FORMAT_OBJECT_ROWS=a,t.SOURCE_FORMAT_KEYED_COLUMNS=r,t.SOURCE_FORMAT_UNKNOWN=o,t.SOURCE_FORMAT_TYPED_ARRAY=s,t.SERIES_LAYOUT_BY_COLUMN=l,t.SERIES_LAYOUT_BY_ROW=c},"93ec":function(e,t,i){"use strict";i("7e5c")},9406:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"dashboard"},[i("div",{staticClass:"dashboard-header"},[i("h1",[e._v("Extimaging Real-Time IRC Information")]),e._v(" "),i("div",[i("span",[e._v(e._s(e.currentTime))])])]),e._v(" "),i("div",{staticClass:"dashboard-main"},[i("div",{staticClass:"left fl"},[i("div",{staticClass:"item box"},[i("workload-stats",{attrs:{area:e.area}})],1),e._v(" "),i("div",{staticClass:"item-center box"},[i("workload-of-months",{attrs:{area:e.area}})],1),e._v(" "),i("div",{staticClass:"item box"},[i("workload-of-reviewers",{attrs:{area:e.area}})],1)]),e._v(" "),i("div",{ref:"mapContent",staticClass:"center fl"},[i("div",{ref:"map",staticClass:"top box"},[e.mapWidth?i("distribution-map",{attrs:{area:e.area,height:e.mapHeight,width:e.mapWidth}}):e._e()],1),e._v(" "),i("div",{ref:"workloadList",staticClass:"bottom box",staticStyle:{background:"rgba(0, 35, 120, 0.36)"}},[e.bottomHeight?i("latest-reads",{attrs:{height:e.bottomHeight}}):e._e()],1)]),e._v(" "),i("div",{staticClass:"right fl"},[i("div",{staticClass:"item box"},[i("reviewers-stats",{attrs:{area:e.area}})],1),e._v(" "),i("div",{staticClass:"item-center box"},[i("enrollments-per-quarter",{attrs:{area:e.area}})],1),e._v(" "),i("div",{staticClass:"item box"},[i("enrollments-of-reviewers",{attrs:{area:e.area}})],1)])])])},a=[],r=i("d42f"),o=i("f2f9"),s=i("6283"),l=i("5db3"),c=i("abf4"),u=i("31d6"),d=i("a5a9"),f=i("f9b9"),h=i("c1df"),p=i.n(h),m={name:"Dashboard",components:{WorkloadStats:r["default"],WorkloadOfMonths:o["default"],WorkloadOfReviewers:s["default"],DistributionMap:l["default"],LatestReads:c["default"],ReviewersStats:u["default"],EnrollmentsPerQuarter:d["default"],EnrollmentsOfReviewers:f["default"]},data:function(){return{area:"",currentTime:"",timer:"",bottomHeight:"",mapHeight:"",mapWidth:""}},mounted:function(){this.setHeight(),this.timer=setInterval(this.getCurrentTime,1e3);var e=this;window.onresize=function(){e.mapWidth="",e.bottomHeight="",e.setHeight()}},destroyed:function(){window.onresize=null,clearInterval(this.timer)},methods:{setHeight:function(){this.mapHeight=this.$refs["map"].clientHeight+"px",this.mapWidth=this.$refs["map"].clientWidth+"px",this.area=this.$refs["mapContent"].clientHeight*this.$refs["mapContent"].clientWidth+"px",this.bottomHeight=this.$refs["workloadList"].clientHeight+"px"},getCurrentTime:function(){this.currentTime=p()().format("YYYY-MM-DD HH:mm:ss")}}},g=m,v=(i("2de6"),i("2877")),b=Object(v["a"])(g,n,a,!1,null,"5153edd4",null);t["default"]=b.exports},9423:function(e,t,i){const{defaultArgs:n,baseOptions:a}=i("c4b1"),{setLogging:r,setCustomLogger:o,log:s}=i("908e"),l=i("f1c3"),c=i("1bd14"),{defaultOptions:u,getCreateFFmpegCore:d}=i("b8df"),{version:f}=i("67c5"),h=Error("ffmpeg.wasm is not ready, make sure you have completed load().");e.exports=(e={})=>{const{log:t,logger:i,progress:p,...m}={...a,...u,...e};let g=null,v=null,b=null,y=!1,w=p;const _=e=>{"FFMPEG_END"===e&&null!==b&&(b(),b=null,y=!1)},I=({type:e,message:t})=>{s(e,t),l(t,w),_(t)},x=async()=>{if(s("info","load ffmpeg-core"),null!==g)throw Error("ffmpeg.wasm was loaded, you should not load it again, use ffmpeg.isLoaded() to check next time.");{s("info","loading ffmpeg-core");const{createFFmpegCore:e,corePath:t,workerPath:i,wasmPath:n}=await d(m);g=await e({mainScriptUrlOrBlob:t,printErr:e=>I({type:"fferr",message:e}),print:e=>I({type:"ffout",message:e}),locateFile:(e,t)=>{if("undefined"!==typeof window){if("undefined"!==typeof n&&e.endsWith("ffmpeg-core.wasm"))return n;if("undefined"!==typeof i&&e.endsWith("ffmpeg-core.worker.js"))return i}return t+e}}),v=g.cwrap("proxy_main","number",["number","number"]),s("info","ffmpeg-core loaded")}},S=()=>null!==g,T=(...e)=>{if(s("info","run ffmpeg command: "+e.join(" ")),null===g)throw h;if(y)throw Error("ffmpeg.wasm can only run one command at a time");return y=!0,new Promise(t=>{const i=[...n,...e].filter(e=>0!==e.length);b=t,v(...c(g,i))})},C=(e,...t)=>{if(s("info",`run FS.${e} ${t.map(e=>"string"===typeof e?e:`<${e.length} bytes binary file>`).join(" ")}`),null===g)throw h;{let n=null;try{n=g.FS[e](...t)}catch(i){throw"readdir"===e?Error(`ffmpeg.FS('readdir', '${t[0]}') error. Check if the path exists, ex: ffmpeg.FS('readdir', '/')`):"readFile"===e?Error(`ffmpeg.FS('readFile', '${t[0]}') error. Check if the path exists`):Error("Oops, something went wrong in FS operation.")}return n}},k=()=>{if(null===g)throw h;y=!1,g.exit(1),g=null,v=null,b=null},R=e=>{w=e},D=e=>{o(e)};return r(t),o(i),s("info","use ffmpeg.wasm v"+f),{setProgress:R,setLogger:D,setLogging:r,load:x,isLoaded:S,run:T,exit:k,FS:C}}},9442:function(e,t,i){var n=i("6d8b");function a(e){var t=[];n.each(e.series,(function(e){e&&"map"===e.type&&(t.push(e),e.map=e.map||e.mapType,n.defaults(e,e.mapLocation))}))}e.exports=a},"944e":function(e,t,i){var n=i("3842"),a=n.round;function r(e,t,i,r){var s={},c=e[1]-e[0],u=s.interval=n.nice(c/t,!0);null!=i&&u<i&&(u=s.interval=i),null!=r&&u>r&&(u=s.interval=r);var d=s.intervalPrecision=o(u),f=s.niceTickExtent=[a(Math.ceil(e[0]/u)*u,d),a(Math.floor(e[1]/u)*u,d)];return l(f,e),s}function o(e){return n.getPrecisionSafe(e)+2}function s(e,t,i){e[t]=Math.max(Math.min(e[t],i[1]),i[0])}function l(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),s(e,0,t),s(e,1,t),e[0]>e[1]&&(e[0]=e[1])}t.intervalScaleNiceTicks=r,t.getIntervalPrecision=o,t.fixExtent=l},9474:function(e,t,i){"use strict";i("f4001")},"94b1":function(e,t,i){var n=i("3eba"),a=i("6d8b"),r=i("9d57"),o=r.layout,s=r.largeLayout;i("5aa9"),i("17b8"),i("67cc"),i("01ed"),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,a.curry(o,"bar")),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,s),n.registerVisual({seriesType:"bar",reset:function(e){e.getData().setVisual("legendSymbol","roundRect")}})},"94b3":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",{staticClass:"stats-wrapper"},[i("div",{staticClass:"search"},[i("SearchForm",{attrs:{size:"mini",that:this,"search-data":e.searchData,"search-form":e.participate_form,"search-handle":e.participate_handle},on:{search:e.handleSearch,reset:e.handleReset}})],1),e._v(" "),i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:45},expression:"{bottomOffset:45}"},{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],ref:"workloadStats",attrs:{stripe:"",height:"100",data:e.list},on:{"sort-change":e.sortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"OrganizationName",sortable:"custom",label:"Organization","min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Name",sortable:"custom",label:"Name","min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",sortable:"custom",label:"User Name","min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:"Phone","show-overflow-tooltip":"","min-width":"100",prop:"Phone",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Email",sortable:"custom",label:"Email","min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialCount",label:"Trial Count","min-width":"150",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-popover",{attrs:{trigger:"click",placement:"bottom-start"}},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.trialListLoading,expression:"trialListLoading"}],staticClass:"trial-list",attrs:{data:e.trialList,height:"300",size:"small"}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Code",label:"Trial ID","min-width":"90","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Expedited",label:"Expedited","min-width":"90","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(0===t.row.Expedited?"No":1===t.row.Expedited?"24H":"48H")+"\n ")]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"Indication",label:"Indication","min-width":"90","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"CROName",label:"CRO","min-width":"90","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"UserType",label:"Role","min-width":"90","show-overflow-tooltip":""}})],1),e._v(" "),i("div",{staticClass:"name-wrapper",attrs:{slot:"reference"},slot:"reference"},[i("span",{staticStyle:{color:"#00d1b2",cursor:"pointer"},on:{click:function(i){return e.handleGetTrialList(t.row.UserId)}}},[e._v("\n "+e._s(t.row.TrialCount)+"\n ")])])],1)]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1)},a=[],r=i("48fb"),o=i("fe09"),s=i("333d"),l=i("f36a"),c=i("d13d"),u=function(){return{PageSize:20,PageIndex:1,Asc:!0,SortField:"",UserInfo:"",OrganizationName:""}},d={name:"WorkloadStats",components:{Pagination:s["default"],BoxContent:l["default"],SearchForm:c["default"]},data:function(){return{participate_form:o["c"],participate_handle:o["d"],searchData:u(),list:[],trialList:[],listLoading:!1,trialListLoading:!1,total:0}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.listLoading=!0,Object(r["d"])(this.searchData).then((function(t){e.listLoading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.listLoading=!1}))},handleGetTrialList:function(e){var t=this;this.trialList=[],this.trialListLoading=!0,Object(r["c"])(e).then((function(e){t.trialListLoading=!1,t.trialList=e.Result})).catch((function(){t.trialListLoading=!1}))},handleReset:function(){this.searchData=u(),this.getList()},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},sortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()}}},f=d,h=i("2877"),p=Object(h["a"])(f,n,a,!1,null,null,null);t["default"]=p.exports},"94e4":function(e,t,i){var n=i("401b"),a=i("53f3"),r=a.getSymbolSize,o=a.getNodeGlobalScale,s=i("6d8b"),l=i("0c37"),c=l.getCurvenessForEdge,u=Math.PI,d=[];function f(e,t){var i=e.coordinateSystem;if(!i||"view"===i.type){var a=i.getBoundingRect(),r=e.getData(),o=r.graph,l=a.width/2+a.x,u=a.height/2+a.y,d=Math.min(a.width,a.height)/2,f=r.count();r.setLayout({cx:l,cy:u}),f&&(h[t](e,i,o,r,d,l,u,f),o.eachEdge((function(t,i){var a,r=s.retrieve3(t.getModel().get("lineStyle.curveness"),c(t,e,i),0),o=n.clone(t.node1.getLayout()),d=n.clone(t.node2.getLayout()),f=(o[0]+d[0])/2,h=(o[1]+d[1])/2;+r&&(r*=3,a=[l*r+f*(1-r),u*r+h*(1-r)]),t.setLayout([o,d,a])})))}}var h={value:function(e,t,i,n,a,r,o,s){var l=0,c=n.getSum("value"),u=2*Math.PI/(c||s);i.eachNode((function(e){var t=e.getValue("value"),i=u*(c?t:1)/2;l+=i,e.setLayout([a*Math.cos(l)+r,a*Math.sin(l)+o]),l+=i}))},symbolSize:function(e,t,i,n,a,s,l,c){var f=0;d.length=c;var h=o(e);i.eachNode((function(e){var t=r(e);isNaN(t)&&(t=2),t<0&&(t=0),t*=h;var i=Math.asin(t/2/a);isNaN(i)&&(i=u/2),d[e.dataIndex]=i,f+=2*i}));var p=(2*u-f)/c/2,m=0;i.eachNode((function(e){var t=p+d[e.dataIndex];m+=t,e.setLayout([a*Math.cos(m)+s,a*Math.sin(m)+l]),m+=t}))}};t.circularLayout=f},9523:function(e,t){function i(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},9538:function(e,t,i){"use strict";i("1b38")},"953c":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"signTempForm",attrs:{model:e.form,"label-width":"160px",size:"small",rules:e.rules}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:"Code: ",prop:"Code"}},[i("el-input",{model:{value:e.form.Code,callback:function(t){e.$set(e.form,"Code",t)},expression:"form.Code"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"模板: ",prop:"Name"}},[i("el-input",{model:{value:e.form.Name,callback:function(t){e.$set(e.form,"Name",t)},expression:"form.Name"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"签名内容(EN): ",prop:"Value"}},[i("el-input",{attrs:{type:"textarea",rows:"5"},model:{value:e.form.Value,callback:function(t){e.$set(e.form,"Value",t)},expression:"form.Value"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"签名内容(CN): ",prop:"ValueCN"}},[i("el-input",{attrs:{type:"textarea",rows:"5"},model:{value:e.form.ValueCN,callback:function(t){e.$set(e.form,"ValueCN",t)},expression:"form.ValueCN"}})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{size:"small",type:"primary",disabled:""===e.form.Type||""===e.form.Name,loading:e.saveBtnLoading},on:{click:e.handleSave}},[e._v("Save")])],1)],1)])},a=[],r=(i("96cf"),i("3b8d")),o=i("e56e"),s={props:{data:{type:Object,default:function(){return{}}}},data:function(){return{form:{Id:"",Code:"",Name:"",Value:"",ValueCN:""},rules:{Code:[{required:!0,message:"Please specify",trigger:["blur"]}],Name:[{required:!0,message:"Please specify",trigger:["blur"]}],Value:[{required:!0,message:"Please specify",trigger:["blur"]}],ValueCN:[{required:!0,message:"Please specify",trigger:["blur"]}]},scenarioOption:[],saveBtnLoading:!1,loading:!1}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:for(t in this.loading=!0,this.form)this.data.hasOwnProperty(t)&&(this.form[t]=this.data[t]);this.loading=!1;case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),handleSave:function(){var e=this;this.$refs.signTempForm.validate((function(t){t&&(e.saveBtnLoading=!0,Object(o["u"])(e.form).then((function(t){e.saveBtnLoading=!1,e.$emit("closeDialog"),e.$emit("getList"),e.$message.success("Saved successfully")})).catch((function(){e.saveBtnLoading=!1})))}))}}},l=s,c=i("2877"),u=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},"955d":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"institution-wrapper"},[i("el-tabs",{on:{"tab-click":e.clickTab},model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},[i("el-tab-pane",{attrs:{label:"Sites",name:"Sites"}},["Sites"===e.activeTab?i("Sites"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"CROs",name:"CROs"}},["CROs"===e.activeTab?i("CROs"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Sponsors",name:"Sponsors"}},["Sponsors"===e.activeTab?i("Sponsors"):e._e()],1)],1)],1)},a=[],r=(i("7f7f"),i("c22c")),o=i("293b"),s=i("a5fc"),l=i("723e"),c={name:"Financials",components:{Hospitals:r["default"],Sites:o["default"],CROs:s["default"],Sponsors:l["default"]},data:function(){return{activeTab:"Sites"}},mounted:function(){this.$route.query.tabActive?this.activeTab=this.$route.query.tabActive:this.activeTab="Sites"},methods:{clickTab:function(e,t){this.$router.push({path:"/dictionary/r_institutions?tabActive=".concat(e.name)})}}},u=c,d=(i("0641"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},"958c":function(e,t,i){"use strict";i.d(t,"R",(function(){return a})),i.d(t,"b",(function(){return r})),i.d(t,"r",(function(){return o})),i.d(t,"A",(function(){return s})),i.d(t,"n",(function(){return l})),i.d(t,"O",(function(){return c})),i.d(t,"g",(function(){return u})),i.d(t,"k",(function(){return d})),i.d(t,"W",(function(){return f})),i.d(t,"i",(function(){return h})),i.d(t,"h",(function(){return p})),i.d(t,"J",(function(){return m})),i.d(t,"I",(function(){return g})),i.d(t,"M",(function(){return v})),i.d(t,"m",(function(){return b})),i.d(t,"S",(function(){return y})),i.d(t,"T",(function(){return w})),i.d(t,"ab",(function(){return _})),i.d(t,"E",(function(){return I})),i.d(t,"e",(function(){return x})),i.d(t,"G",(function(){return S})),i.d(t,"F",(function(){return T})),i.d(t,"d",(function(){return C})),i.d(t,"s",(function(){return k})),i.d(t,"t",(function(){return R})),i.d(t,"f",(function(){return D})),i.d(t,"u",(function(){return L})),i.d(t,"c",(function(){return O})),i.d(t,"K",(function(){return $})),i.d(t,"B",(function(){return N})),i.d(t,"X",(function(){return A})),i.d(t,"y",(function(){return P})),i.d(t,"p",(function(){return E})),i.d(t,"L",(function(){return M})),i.d(t,"C",(function(){return F})),i.d(t,"v",(function(){return j})),i.d(t,"o",(function(){return V})),i.d(t,"H",(function(){return q})),i.d(t,"a",(function(){return z})),i.d(t,"q",(function(){return B})),i.d(t,"D",(function(){return U})),i.d(t,"w",(function(){return Q})),i.d(t,"N",(function(){return H})),i.d(t,"j",(function(){return G})),i.d(t,"z",(function(){return W})),i.d(t,"x",(function(){return Y})),i.d(t,"V",(function(){return K})),i.d(t,"P",(function(){return Z})),i.d(t,"l",(function(){return X})),i.d(t,"Q",(function(){return J})),i.d(t,"Y",(function(){return ee})),i.d(t,"Z",(function(){return te})),i.d(t,"U",(function(){return ie})),i.d(t,"bb",(function(){return ne}));var n=i("b775");function a(e){return Object(n["a"])({url:"/TaskAllocationRule/getTaskAllocationRuleList",method:"post",data:e})}function r(e){return Object(n["a"])({url:"/TaskAllocationRule/addOrUpdateTaskAllocationRule",method:"post",data:e})}function o(e){return Object(n["a"])({url:"/TaskAllocationRule/deleteTaskAllocationRule/".concat(e),method:"delete"})}function s(e){return Object(n["a"])({url:"/TaskAllocationRule/getDoctorUserSelectList/".concat(e),method:"get"})}function l(e){return Object(n["a"])({url:"/TrialConfig/configTrialTaskInfo",method:"put",data:e})}function c(e){return Object(n["a"])({url:"/VisitTask/getSubjectAssignList",method:"post",data:e})}function u(e){return Object(n["a"])({url:"/VisitTask/assignSubjectDoctor",method:"post",data:e})}function d(e){return Object(n["a"])({url:"/VisitTask/cancelSubjectAssignDoctor",method:"post",data:e})}function f(e){return Object(n["a"])({url:"/VisitTask/manualAssignDoctorApplyTask",method:"post",data:e})}function h(e){return Object(n["a"])({url:"/VisitTask/autoSubjectAssignDoctor",method:"post",data:e})}function p(e){return Object(n["a"])({url:"/VisitTask/assignSubjectTaskToDoctor",method:"post",data:e})}function m(e){return Object(n["a"])({url:"/VisitTask/getReadingTaskList",method:"post",data:e})}function g(e){return Object(n["a"])({url:"/VisitTask/getReReadingTaskList",method:"post",data:e})}function v(e){return Object(n["a"])({url:"/TaskAllocationRule/getSubjectApplyDoctorTaskStatList",method:"post",data:e})}function b(e){return Object(n["a"])({url:"/TrialConfig/configTrialReadingTaskViewRule",method:"put",data:e})}function y(e){return Object(n["a"])({url:"/ReadingImageTask/getTrialConfirmCriterionList",method:"post",data:e})}function w(e){return Object(n["a"])({url:"/ReadingImageTask/getTrialCriterionJudgeQuestionList",method:"post",data:e})}function _(e){return Object(n["a"])({url:"/ReadingImageTask/setTrialCriterionJudgeQuestionAnswerGroup",method:"post",data:e})}function I(e){return Object(n["a"])({url:"/VisitTask/getJudgeVisitTaskList",method:"post",data:e})}function x(e){return Object(n["a"])({url:"/VisitTask/applyReReading",method:"post",data:e})}function S(e){return Object(n["a"])({url:"/TaskMedicalReview/getMedicalReviewTaskList",method:"post",data:e})}function T(e){return Object(n["a"])({url:"/TaskMedicalReview/getMIMUserList/".concat(e),method:"get"})}function C(e){return Object(n["a"])({url:"/TaskMedicalReviewRule/addOrUpdateTaskMedicalReviewRule",method:"post",data:e})}function k(e){return Object(n["a"])({url:"/TaskMedicalReviewRule/deleteTaskMedicalReviewRule/".concat(e),method:"delete"})}function R(e){return Object(n["a"])({url:"/TaskMedicalReview/generateMedicalReviewTask",method:"post",data:e})}function D(e){return Object(n["a"])({url:"/TaskMedicalReview/assignMedicalReviewTask",method:"post",data:e})}function L(e){return Object(n["a"])({url:"/TaskConsistentRule/getAnalysisTaskList",method:"post",data:e})}function O(e){return Object(n["a"])({url:"/TaskConsistentRule/addOrUpdateTaskConsistentRule",method:"post",data:e})}function $(e){return Object(n["a"])({url:"/VisitTask/getSPMReReadingTaskList",method:"post",data:e})}function N(e){return Object(n["a"])({url:"/TaskMedicalReview/getGenerateMedicalReviewTaskList",method:"post",data:e})}function A(e){return Object(n["a"])({url:"/TaskMedicalReview/manuallyGeneratedAndAssignedMedicalReview",method:"post",data:e})}function P(e){return Object(n["a"])({url:"/TaskConsistentRule/getDoctorSelfConsistentRuleSubjectList",method:"post",data:e})}function E(e){return Object(n["a"])({url:"/TaskConsistentRule/confirmGenerateSelfConsistentTask",method:"post",data:e})}function M(e){return Object(n["a"])({url:"/TaskConsistentRule/getSelfConsistentDoctorStatList",method:"post",data:e})}function F(e){return Object(n["a"])({url:"/TaskConsistentRule/getGroupConsistentRuleSubjectList",method:"post",data:e})}function j(e){return Object(n["a"])({url:"/TaskConsistentRule/getConsistentRule",method:"post",data:e})}function V(e){return Object(n["a"])({url:"/TaskConsistentRule/confirmGenerateGroupConsistentTask",method:"post",data:e})}function q(e,t,i){return Object(n["a"])({url:i?"/VisitTask/getReReadingOrBackInfluenceTaskList/".concat(e,"/").concat(t,"?applyId=").concat(i):"/VisitTask/getReReadingOrBackInfluenceTaskList/".concat(e,"/").concat(t),method:"get"})}function z(e,t){return Object(n["a"])({url:"/VisitTask/PMSetTaskBack/".concat(e,"/").concat(t),method:"put"})}function B(e){return Object(n["a"])({url:"/Inspection/VisitTask/ConfirmReReading",method:"post",data:e})}function U(e){return Object(n["a"])({url:"/VisitTask/getInfluencedTaskList?taskId=".concat(e),method:"get"})}function Q(e){return Object(n["a"])({url:"/TaskAllocationRule/getDoctorPlanAllocationRuleList?TrialId=".concat(e.TrialId),method:"get"})}function H(e){return Object(n["a"])({url:"/VisitTask/getSubjectAssignAndTaskStatList",method:"post",data:e})}function G(e){return Object(n["a"])({url:"/VisitTask/batchAssignDoctorToSubject",method:"post",data:e})}function W(e,t){return Object(n["a"])({url:"/VisitTask/getDoctorSubjectStat?TrialId=".concat(e,"&TrialReadingCriterionId=").concat(t),method:"get"})}function Y(e){return Object(n["a"])({url:"/TaskAllocationRule/getDoctorSelectList",method:"post",data:e})}function K(e){return Object(n["a"])({url:"/TrialMaintenance/getTrialSiteCodeSelect?TrialId=".concat(e),method:"get"})}function Z(e,t){return Object(n["a"])({url:"/VisitTask/getSubjectAssignedDoctorList?SubjectId=".concat(e,"&TrialReadingCriterionId=").concat(t),method:"get"})}function X(e){return Object(n["a"])({url:"/VisitTask/cancelSubjectAssignedDoctor",method:"post",data:e})}function J(e){return Object(n["a"])({url:"/TaskAllocationRule/getSubjectCancelDoctorHistoryList?SubjectId=".concat(e),method:"get"})}function ee(e){return Object(n["a"])({url:"/TaskConsistentRule/setAnalysisTaskInvalid",method:"post",data:e})}function te(e){return Object(n["a"])({url:"/TaskMedicalReview/setMedicalReviewInvalid",method:"post",data:e})}function ie(e){return Object(n["a"])({url:"/VisitTask/getTrialCriterionList?TrialId=".concat(e),method:"get"})}function ne(e){return Object(n["a"])({url:"/DoctorWorkload/updateTrialReviewerState",method:"put",data:e})}},9595:function(e,t,i){},"95a8":function(e,t,i){var n=i("3eba");i("1953"),i("307d"),n.registerPreprocessor((function(e){e.markLine=e.markLine||{}}))},"965a":function(e,t,i){},9680:function(e,t){function i(e,t,i,n,a,r,o){if(0===a)return!1;var s=a,l=0,c=e;if(o>t+s&&o>n+s||o<t-s&&o<n-s||r>e+s&&r>i+s||r<e-s&&r<i-s)return!1;if(e===i)return Math.abs(r-e)<=s/2;l=(t-n)/(e-i),c=(e*n-i*t)/(e-i);var u=l*r-o+c,d=u*u/(l*l+1);return d<=s/2*s/2}t.containStroke=i},"96a9":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"report-wrapper"},[i("el-card",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{shadow:"never"}},[i("div",{staticClass:"clearfix report-header",attrs:{slot:"header"},slot:"header"},[i("h3",{staticStyle:{margin:"0",padding:"0"}},[e._v(e._s(e.$t("trials:readingReport:title:eicrf")))]),e._v(" "),i("div",{staticStyle:{"margin-left":"auto"}},[i("el-switch",{staticStyle:{"margin-right":"5px"},attrs:{"active-text":e.$t("trials:readingReport:title:expandDetails"),"inactive-text":e.$t("trials:readingReport:title:collapseDetails")},on:{change:e.handleShowDetail},model:{value:e.isShowDetail,callback:function(t){e.isShowDetail=t},expression:"isShowDetail"}}),e._v(" "),e.readingTaskState<2?i("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){return e.getReportInfo(!1)}}},[e._v("\n "+e._s(e.$t("trials:readingReport:button:refresh"))+"\n ")]):e._e(),e._v(" "),e.readingTaskState<2&&10!==e.CriterionType?i("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){return e.handleSave(!0)}}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")]):e._e(),e._v(" "),e.readingTaskState<2?i("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.beforeLeave}},[e._v("\n "+e._s(e.$t("common:button:submit"))+"\n ")]):e._e()],1)]),e._v(" "),i("div",{ref:"tableWrapper",staticStyle:{height:"100%","overflow-y":"auto"}},[e.height?i("el-table",{ref:"reportList",attrs:{data:e.taskQuestions,"row-key":"Id",border:"","default-expand-all":"",height:e.height,"tree-props":{children:"Childrens",hasChildren:"hasChildren"},size:"mini"}},[i("el-table-column",{attrs:{prop:"",label:"","show-overflow-tooltip":"",width:"350px"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.QuestionName?i("span",{style:{color:(1===t.row.isLymphNodes&&1===t.row.QuestionMark||0===t.row.isLymphNodes&&0===t.row.QuestionMark)&&0===t.row.LesionType?"#f66":"#fff"}},[e._v(e._s((t.row.BlindName,t.row.QuestionName)))]):i("span",{staticStyle:{"font-weight":"bold","font-size":"16px",color:"#f44336"}},[e._v("\n "+e._s("en"===e.language?t.row.GroupEnName:t.row.GroupName)+"\n ")])]}}],null,!1,2688468214)}),e._v(" "),e._l(e.visitTaskList,(function(t){return i("el-table-column",{key:t.VisitTaskId,attrs:{prop:"date","show-overflow-tooltip":"",width:"150px"},scopedSlots:e._u([{key:"default",fn:function(n){return[i("span",{style:{color:(1===n.row.isLymphNodes&&1===n.row.QuestionMark||0===n.row.isLymphNodes&&0===n.row.QuestionMark)&&0===n.row.LesionType?"#f66":"#fff"}},[t.VisitTaskId===e.visitTaskId&&e.readingTaskState<2&&[14].includes(n.row.QuestionType)?[t.VisitTaskId===e.visitTaskId?[t.VisitTaskId===e.visitTaskId?["input"===n.row.Type?i("el-input",{attrs:{size:"mini"},on:{change:function(t){e.handleChange(t,n.row.QuestionType)}},model:{value:e.QuestionTypeList[n.row.QuestionType],callback:function(t){e.$set(e.QuestionTypeList,n.row.QuestionType,t)},expression:"QuestionTypeList[scope.row.QuestionType]"}}):"textarea"===n.row.Type?i("el-input",{attrs:{type:"textarea","show-word-limit":"",autosize:{minRows:2,maxRows:4},size:"mini",maxlength:"100"},on:{change:function(t){e.handleChange(t,n.row.QuestionType)}},model:{value:e.QuestionTypeList[n.row.QuestionType],callback:function(t){e.$set(e.QuestionTypeList,n.row.QuestionType,t)},expression:"QuestionTypeList[scope.row.QuestionType]"}}):e._e()]:[i("span",[e._v(e._s(e.currentTaskReason))])]]:n.row.DictionaryCode?[e._v("\n "+e._s(e.$fd(n.row.DictionaryCode,n.row.Answers[t.VisitTaskId]))+"\n ")]:[e._v("\n "+e._s(n.row.Answers[t.VisitTaskId])+"\n ")]]:t.VisitTaskId===e.visitTaskId&&e.readingTaskState<2&&[10,11,12,13,14,15].includes(n.row.QuestionType)?["select"===n.row.Type&&n.row.DictionaryCode?i("el-select",{attrs:{size:"mini"},on:{change:function(t){e.handleChange(t,n.row.QuestionType)}},model:{value:e.QuestionTypeList[n.row.QuestionType],callback:function(t){e.$set(e.QuestionTypeList,n.row.QuestionType,t)},expression:"QuestionTypeList[scope.row.QuestionType]"}},e._l(e.$d[n.row.DictionaryCode],(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})})),1):e._e()]:22===n.row.QuestionType?[e._v("\n "+e._s("-1"===n.row.Answers[t.VisitTaskId]?e.$t("trials:readingReport:title:unknow"):n.row.Answers[t.VisitTaskId])+"\n ")]:n.row.DictionaryCode?[e._v("\n "+e._s(e.$fd(n.row.DictionaryCode,n.row.Answers[t.VisitTaskId]))+"\n ")]:10===e.CriterionType?[e._v("\n "+e._s(isNaN(parseInt(n.row.Answers[t.VisitTaskId]))?n.row.Answers[t.VisitTaskId]:""+n.row.Answers[t.VisitTaskId])+"\n ")]:0!==n.row.ValueType&&1!==n.row.ValueType||!n.row.Unit?2===n.row.ValueType?[e._v("\n "+e._s(isNaN(parseInt(n.row.Answers[t.VisitTaskId]))?n.row.Answers[t.VisitTaskId]:n.row.Answers[t.VisitTaskId]+"%")+"\n ")]:n.row.Answers&&n.row.Answers.hasOwnProperty(t.VisitTaskId)?[e._v("\n "+e._s(n.row.Answers[t.VisitTaskId])+"\n ")]:e._e():[e._v("\n "+e._s(isNaN(parseInt(n.row.Answers[t.VisitTaskId]))?n.row.Answers[t.VisitTaskId]:n.row.Answers[t.VisitTaskId]+" "+e.$fd("ValueUnit",n.row.Unit))+"\n ")]],2)]}}],null,!0)},[i("template",{slot:"header"},[t.IsCurrentTask?i("div",[i("div",[e._v("\n "+e._s(t.BlindName)+"\n ")])]):i("div",[i("div",[e._v("\n "+e._s(t.BlindName)+"\n "),i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return e.previewDicoms(t)}}},[i("span",{staticClass:"el-icon-view"})])],1)])])],2)}))],2):e._e()],1)]),e._v(" "),e.signVisible?i("el-dialog",{attrs:{visible:e.signVisible,"close-on-click-modal":!1,width:"600px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.signVisible=t}}},[i("div",{attrs:{slot:"title"},slot:"title"},[i("span",{staticStyle:{"font-size":"18px"}},[e._v(e._s(e.$t("common:dialogTitle:sign")))]),e._v(" "),i("span",{staticStyle:{"font-size":"12px","margin-left":"5px"}},[e._v(e._s("("+e.$t("common:label:sign")+e.currentUser+")"))])]),e._v(" "),i("SignForm",{ref:"signForm",attrs:{"sign-code-enum":e.signCode},on:{closeDialog:e.closeSignDialog}})],1):e._e()],1)},a=[],r=(i("7514"),i("6762"),i("2fdb"),i("ac6a"),i("20d6"),i("a481"),i("96cf"),i("3b8d")),o=i("db72"),s=i("3e42"),l=i("9b92"),c=i("7a9e"),u=i("179b"),d=i("5f87"),f=i("4360"),h=i("2f62"),p=i("a599"),m={name:"ReportPage",components:{SignForm:u["default"]},props:{visitTaskId:{type:String,required:!0},questionFormChangeState:{type:Boolean,default:function(){return!1}}},data:function(){return{currentUser:zzSessionStorage.getItem("userName"),QuestionTypeList:[],signVisible:!1,signCode:null,visitTaskList:[],taskQuestions:[],loading:!1,answers:[],readingTaskState:2,tumorEvaluate:null,currentEvaluateResult:null,isExistDisease:null,currentExistDisease:null,currentTaskReason:"",answerArr:[],questions:[],isShowDetail:!1,CriterionType:0,height:0}},computed:Object(o["a"])({},Object(h["b"])(["language"])),watch:{taskQuestions:function(){var e=this;this.$nextTick((function(){e.getTableHeight(),e.$refs.reportList&&e.$refs.reportList.doLayout(),e.setScrollTop()}))}},created:function(){this.getTableHeight()},mounted:function(){var e=this;console.log(this.questionFormChangeState),this.CriterionType=parseInt(localStorage.getItem("CriterionType")),window.addEventListener("resize",(function(){e.handleResize(),e.setScrollTop()})),l["a"].$on("getReportInfo",(function(t){t&&e.getReportInfo()})),this.getReportInfo()},beforeDestroy:function(){l["a"].$off("getReportInfo")},methods:{myConfirm:function(e){var t=this;return new Promise((function(i){t.$confirm(e,{type:"warning",showCancelButton:!0}).then((function(){i(!0)})).catch((function(){i(!1)}))}))},beforeLeave:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,i,n,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(console.log(this.questionFormChangeState),!this.questionFormChangeState){e.next=10;break}return t=this.$t("trials:readingReport:message:msg5"),e.next=5,this.myConfirm(t);case 5:if(i=e.sent,!i){e.next=9;break}e.next=10;break;case 9:return e.abrupt("return",Promise.resolve(!0));case 10:n=null,l["a"].$emit("getAllUnSaveLesions",(function(e){n=e})),n.length>0?(a=[],n.map((function(e){a.push(e.lessionName)})),t=this.$t("trials:reading:warnning:msg200"),t=t.replace("xxx",a.join("en"===this.language?", ":"、")),this.$confirm(t,{type:"warning",showCancelButton:!1}).then((function(){})).catch((function(){}))):this.handleConfirm();case 13:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getAnswerInfo:function(e,t,i){var n=e.findIndex((function(e){return e.VisitTaskId===t}));if(-1===n)return"";var a=e[n][i];return isNaN(parseInt(a))?a:parseInt(a)},getTableHeight:function(){this.height=window.innerHeight-170},getReportInfo:function(e){var t=this;this.loading=!0;var i={visitTaskId:this.visitTaskId,trialId:this.$router.currentRoute.query.trialId,IsCalculate:!1!==e};Object(s["Yc"])(i).then((function(e){t.readingTaskState=e.Result.ReadingTaskState,t.tumorEvaluate=e.Result.CalculateResult.TumorEvaluate?parseInt(e.Result.CalculateResult.TumorEvaluate):null,t.isExistDisease=e.Result.CalculateResult.IsExistDisease?parseInt(e.Result.CalculateResult.IsExistDisease):null,t.answerArr=[],t.questions=e.Result.TaskQuestions.concat(),t.visitTaskList=e.Result.VisitTaskList;var i=t.getQuestions(e.Result.TaskQuestions,!t.isShowDetail,null,null);t.taskQuestions=[],i.forEach((function(e){t.$set(t.taskQuestions,t.taskQuestions.length,e)})),console.log(i),t.setScrollTop(),t.loading=!1})).catch((function(){t.loading=!1}))},setScrollTop:function(e){var t=this;setTimeout((function(){t.$refs.reportList.bodyWrapper.scrollTop=t.$refs.reportList.bodyWrapper.scrollHeight,t.$refs.reportList.bodyWrapper.scrollTop=t.$refs.reportList.bodyWrapper.scrollHeight,t.getTableHeight()}),50)},getQuestions:function(e,t,i,n){var a=this,r=[];return 0!==e.length&&e.forEach((function(e){i=e.LesionType;var o=[7];if(o=1!==e.LesionType&&2!==e.LesionType||!t?[3,4,5,6,2,8,10,7]:[0,1,3,4,5,6,2,8,10,7],0!==i||0!==n||a.isShowDetail||1!==a.CriterionType||o.push(1),0===n&&o.push(1),!o.includes(e.QuestionMark)){var s=e;if(s.Answers={},e.RowIndex>0)try{var l=e.Childrens.findIndex((function(e){return 8===e.QuestionMark})),c=e.Childrens.findIndex((function(e){return 10===e.QuestionMark})),u=e.Childrens.findIndex((function(e){return 7===e.QuestionMark}));if(l>-1&&e.Childrens[l].Answer.length>0){var d=e.Childrens[l].Answer.findIndex((function(e){return""!==e.Answer})),f="";if(f=s.IsCanEditPosition?"".concat(e.Childrens[l].Answer[d].Answer,"--").concat(e.Childrens[c].Answer[d].Answer):"".concat(e.Childrens[l].Answer[d].Answer),e.SplitOrMergeLesionName&&d>-1){s.QuestionName="".concat(s.QuestionName," --").concat(f);var h={};console.log(u),u>=0&&a.visitTaskList.forEach((function(t){var i=e.Childrens[u].Answer.find((function(e){return e.VisitTaskId===t.VisitTaskId}));i&&(h[i.VisitTaskId]=a.$fd(e.Childrens[u].DictionaryCode,parseInt(i.Answer)))})),console.log(h),a.$set(s,"Answers",h)}else if(!e.SplitOrMergeLesionName&&d>-1){s.QuestionName="".concat(s.QuestionName,"--").concat(f);h={};console.log(u),u>=0&&a.visitTaskList.forEach((function(t){var i=e.Childrens[u].Answer.find((function(e){return e.VisitTaskId===t.VisitTaskId}));i&&(h[i.VisitTaskId]=a.$fd(e.Childrens[u].DictionaryCode,parseInt(i.Answer)))})),console.log(h),a.$set(s,"Answers",h)}else s.QuestionName="".concat(s.QuestionName," ");if(1===a.CriterionType){var p=e.Childrens.findIndex((function(e){return 2===e.QuestionMark}));p>-1&&(n=e.Childrens[p].Answer[d].Answer?parseInt(e.Childrens[p].Answer[d].Answer):null,console.log("isLymphNodes",e.Childrens),e.Childrens.forEach((function(e){a.$set(e,"isLymphNodes",n)})))}}}catch(m){console.log(m)}e.Answer.forEach((function(t){e.DictionaryCode?s.Answers[t.VisitTaskId]=t.Answer?parseInt(t.Answer):null:s.Answers[t.VisitTaskId]=t.Answer})),10===e.QuestionType&&(a.QuestionTypeList[10]=s.Answers[a.visitTaskId],a.answerArr.push({id:e.QuestionId,answer:s.Answers[a.visitTaskId],questionType:10})),11===e.QuestionType&&(a.QuestionTypeList[11]=s.Answers[a.visitTaskId],a.answerArr.push({id:e.QuestionId,answer:s.Answers[a.visitTaskId],questionType:11})),12===e.QuestionType&&(a.QuestionTypeList[12]=s.Answers[a.visitTaskId],a.answerArr.push({id:e.QuestionId,answer:s.Answers[a.visitTaskId],questionType:12})),15===e.QuestionType&&(a.QuestionTypeList[15]=s.Answers[a.visitTaskId],a.answerArr.push({id:e.QuestionId,answer:s.Answers[a.visitTaskId],questionType:15})),13===e.QuestionType&&(a.QuestionTypeList[13]=s.Answers[a.visitTaskId],console.log(a.currentEvaluateResult),a.answerArr.push({id:e.QuestionId,answer:s.Answers[a.visitTaskId],questionType:13})),14===e.QuestionType&&(a.QuestionTypeList[14]=s.Answers[a.visitTaskId],a.answerArr.push({id:e.QuestionId,answer:s.Answers[a.visitTaskId],questionType:14})),e.Childrens.length>=1&&(s.Childrens=a.getQuestions(e.Childrens,t,i,n)),r.push(s)}})),r},handleShowDetail:function(e){this.getReportInfo()},handleExistDiseaseChange:function(e){e===this.isExistDisease&&this.tumorEvaluate===this.currentEvaluateResult&&(this.currentTaskReason="",this.evaluateReasonChange("")),this.currentTaskReason="",this.evaluateReasonChange("");var t=this.answerArr.findIndex((function(e){return 15===e.questionType}));console.log(this.answerArr,t,e),t>-1&&(this.answerArr[t].answer=e)},handleChange:function(e,t){var i=this.answerArr.findIndex((function(e){return e.questionType===t}));i>-1&&(this.answerArr[i].answer=e)},handleEvaluateResultChange:function(e){e===this.tumorEvaluate&&this.isExistDisease===this.currentExistDisease&&(this.currentTaskReason="",this.evaluateReasonChange("")),this.currentTaskReason="",this.evaluateReasonChange("");var t=this.answerArr.findIndex((function(e){return 13===e.questionType}));t>-1&&(this.answerArr[t].answer=e)},evaluateReasonChange:function(e){var t=this.answerArr.findIndex((function(e){return 14===e.questionType}));t>-1&&(this.answerArr[t].answer=e)},handleConfirm:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.handleSave(!1);case 2:return e.next=4,this.verifyVisitTaskQuestions();case 4:t=c["default"].processSignature.ImageAssessmentReportConfirmation,this.signCode=t,this.signVisible=!0;case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),verifyVisitTaskQuestions:function(){var e=this;return new Promise((function(t,i){e.loading=!0,Object(s["Of"])({visitTaskId:e.visitTaskId}).then((function(i){e.loading=!1,t()})).catch((function(){e.loading=!1,i()}))}))},handleResize:function(){var e=this;this.$nextTick((function(){e.$refs.reportList&&e.$refs.reportList.doLayout()}))},closeSignDialog:function(e,t){e?this.signConfirm(t):this.signVisible=!1},signConfirm:function(e){var t=this;this.loading=!0;var i={data:{visitTaskId:this.visitTaskId},signInfo:e};Object(s["Ze"])(i).then((function(e){e.IsSuccess&&(t.$message.success(t.$t("common:message:savedSuccessfully")),t.$refs["signForm"]&&(t.$refs["signForm"].btnLoading=!1),t.signVisible=!1,t.readingTaskState=2,f["a"].dispatch("reading/setVisitTaskReadingTaskState",{visitTaskId:t.visitTaskId,readingTaskState:2}),l["a"].$emit("setReadingState",2),window.opener.postMessage("refreshTaskList",window.location),t.$confirm(t.$t("trials:readingReport:message:msg4"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){l["a"].$emit("getNextTask")})).catch((function(e){Object(p["a"])("visitTaskId",t.visitTaskId)}))),t.loading=!1})).catch((function(){t.loading=!1,t.$refs["signForm"]&&t.$refs["signForm"].btnLoading&&(t.$refs["signForm"].btnLoading=!1)}))},previewDicoms:function(e){var t=Object(d["a"])(),i=this.$router.currentRoute.query.subjectCode,n=this.$router.currentRoute.query.subjectId,a=this.$router.currentRoute.query.trialId,r=this.$router.currentRoute.query.isReadingTaskViewInOrder,o=this.$router.currentRoute.query.criterionType,s=this.$router.currentRoute.query.readingTool,l="/readingDicoms?trialId=".concat(a,"&subjectCode=").concat(i,"&subjectId=").concat(n,"&visitTaskId=").concat(e.VisitTaskId,"&isReadingTaskViewInOrder=").concat(r,"&criterionType=").concat(o,"&readingTool=").concat(s,"&TokenKey=").concat(t),c=this.$router.resolve({path:l});window.open(c.href,"_blank")},handleSave:function(e){var t=this;return new Promise((function(i,n){var a="";console.log(t.answerArr),t.answers=[];t.answerArr.map((function(e){13===e.questionType&&(e.answer,!0),14===e.questionType&&(a=e.answer),15===e.questionType&&e.answer,t.answers.push({id:e.id,answer:e.answer})})),console.log(t.currentExistDisease,t.isExistDisease,a),t.loading=!0;var r={visitTaskId:t.visitTaskId,answers:t.answers};Object(s["V"])(r).then((function(n){e&&t.$message.success(t.$t("common:message:savedSuccessfully")),t.loading=!1,i()})).catch((function(){t.loading=!1,n()}))}))}}},g=m,v=(i("7069"),i("2877")),b=Object(v["a"])(g,n,a,!1,null,"704963d3",null);t["default"]=b.exports},"96e7":function(e,t,i){"use strict";i("e4c2")},9704:function(e,t,i){var n=i("3eba"),a=i("6d8b"),r=i("f706"),o=i("73ca"),s=i("4a01"),l=i("01ef"),c=i("c526"),u=c.onIrrelevantElement,d=i("2306"),f=i("480f"),h=i("53f3"),p=h.getNodeGlobalScale,m="__focusNodeAdjacency",g="__unfocusNodeAdjacency",v=["itemStyle","opacity"],b=["lineStyle","opacity"];function y(e,t){var i=e.getVisual("opacity");return null!=i?i:e.getModel().get(t)}function w(e,t,i){var n=e.getGraphicEl(),a=y(e,t);null!=i&&(null==a&&(a=1),a*=i),n.downplay&&n.downplay(),n.traverse((function(e){if(!e.isGroup){var t=e.lineLabelOriginalOpacity;null!=t&&null==i||(t=a),e.setStyle("opacity",t)}}))}function _(e,t){var i=y(e,t),n=e.getGraphicEl();n.traverse((function(e){!e.isGroup&&e.setStyle("opacity",i)})),n.highlight&&n.highlight()}var I=n.extendChartView({type:"graph",init:function(e,t){var i=new r,n=new o,a=this.group;this._controller=new s(t.getZr()),this._controllerHost={target:a},a.add(i.group),a.add(n.group),this._symbolDraw=i,this._lineDraw=n,this._firstRender=!0},render:function(e,t,i){var n=this,a=e.coordinateSystem;this._model=e;var r=this._symbolDraw,o=this._lineDraw,s=this.group;if("view"===a.type){var l={position:a.position,scale:a.scale};this._firstRender?s.attr(l):d.updateProps(s,l,e)}f(e.getGraph(),p(e));var c=e.getData();r.updateData(c);var u=e.getEdgeData();o.updateData(u),this._updateNodeAndLinkScale(),this._updateController(e,t,i),clearTimeout(this._layoutTimeout);var h=e.forceLayout,v=e.get("force.layoutAnimation");h&&this._startForceLayoutIteration(h,v),c.eachItemGraphicEl((function(t,a){var r=c.getItemModel(a);t.off("drag").off("dragend");var o=r.get("draggable");o&&t.on("drag",(function(){h&&(h.warmUp(),!this._layouting&&this._startForceLayoutIteration(h,v),h.setFixed(a),c.setItemLayout(a,t.position))}),this).on("dragend",(function(){h&&h.setUnfixed(a)}),this),t.setDraggable(o&&h),t[m]&&t.off("mouseover",t[m]),t[g]&&t.off("mouseout",t[g]),r.get("focusNodeAdjacency")&&(t.on("mouseover",t[m]=function(){n._clearTimer(),i.dispatchAction({type:"focusNodeAdjacency",seriesId:e.id,dataIndex:t.dataIndex})}),t.on("mouseout",t[g]=function(){n._dispatchUnfocus(i)}))}),this),c.graph.eachEdge((function(t){var a=t.getGraphicEl();a[m]&&a.off("mouseover",a[m]),a[g]&&a.off("mouseout",a[g]),t.getModel().get("focusNodeAdjacency")&&(a.on("mouseover",a[m]=function(){n._clearTimer(),i.dispatchAction({type:"focusNodeAdjacency",seriesId:e.id,edgeDataIndex:t.dataIndex})}),a.on("mouseout",a[g]=function(){n._dispatchUnfocus(i)}))}));var b="circular"===e.get("layout")&&e.get("circular.rotateLabel"),y=c.getLayout("cx"),w=c.getLayout("cy");c.eachItemGraphicEl((function(e,t){var i=c.getItemModel(t),n=i.get("label.rotate")||0,a=e.getSymbolPath();if(b){var r=c.getItemLayout(t),o=Math.atan2(r[1]-w,r[0]-y);o<0&&(o=2*Math.PI+o);var s=r[0]<y;s&&(o-=Math.PI);var l=s?"left":"right";d.modifyLabelStyle(a,{textRotation:-o,textPosition:l,textOrigin:"center"},{textPosition:l})}else d.modifyLabelStyle(a,{textRotation:n*=Math.PI/180})})),this._firstRender=!1},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={},this._clearTimer()},_dispatchUnfocus:function(e,t){var i=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout((function(){i._unfocusDelayTimer=null,e.dispatchAction({type:"unfocusNodeAdjacency",seriesId:i._model.id})}),500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(e,t,i,n){var r=e.getData(),o=r.graph,s=n.dataIndex,l=n.edgeDataIndex,c=o.getNodeByIndex(s),u=o.getEdgeByIndex(l);(c||u)&&(o.eachNode((function(e){w(e,v,.1)})),o.eachEdge((function(e){w(e,b,.1)})),c&&(_(c,v),a.each(c.edges,(function(e){e.dataIndex<0||(_(e,b),_(e.node1,v),_(e.node2,v))}))),u&&(_(u,b),_(u.node1,v),_(u.node2,v)))},unfocusNodeAdjacency:function(e,t,i,n){var a=e.getData().graph;a.eachNode((function(e){w(e,v)})),a.eachEdge((function(e){w(e,b)}))},_startForceLayoutIteration:function(e,t){var i=this;(function n(){e.step((function(e){i.updateLayout(i._model),(i._layouting=!e)&&(t?i._layoutTimeout=setTimeout(n,16):n())}))})()},_updateController:function(e,t,i){var n=this._controller,a=this._controllerHost,r=this.group;n.setPointerChecker((function(t,n,a){var o=r.getBoundingRect();return o.applyTransform(r.transform),o.contain(n,a)&&!u(t,i,e)})),"view"===e.coordinateSystem.type?(n.enable(e.get("roam")),a.zoomLimit=e.get("scaleLimit"),a.zoom=e.coordinateSystem.getZoom(),n.off("pan").off("zoom").on("pan",(function(t){l.updateViewOnPan(a,t.dx,t.dy),i.dispatchAction({seriesId:e.id,type:"graphRoam",dx:t.dx,dy:t.dy})})).on("zoom",(function(t){l.updateViewOnZoom(a,t.scale,t.originX,t.originY),i.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),this._updateNodeAndLinkScale(),f(e.getGraph(),p(e)),this._lineDraw.updateLayout()}),this)):n.disable()},_updateNodeAndLinkScale:function(){var e=this._model,t=e.getData(),i=p(e),n=[i,i];t.eachItemGraphicEl((function(e,t){e.attr("scale",n)}))},updateLayout:function(e){f(e.getGraph(),p(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},remove:function(e,t){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()}});e.exports=I},9744:function(e,t,i){"use strict";var n=i("4588"),a=i("be13");e.exports=function(e){var t=String(a(this)),i="",r=n(e);if(r<0||r==1/0)throw RangeError("Count can't be negative");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(i+=t);return i}},9746:function(e,t,i){"use strict";i("a183")},9755:function(e,t,i){"use strict";i("2f6a")},9762:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("el-tabs",{attrs:{type:"border-card"},model:{value:e.TrialReadingCriterionId,callback:function(t){e.TrialReadingCriterionId=t},expression:"TrialReadingCriterionId"}},e._l(e.trialCriterionList,(function(t){return i("el-tab-pane",{key:t.TrialReadingCriterionId,attrs:{label:t.TrialReadingCriterionName,name:t.TrialReadingCriterionId}},[e.TrialReadingCriterionId===t.TrialReadingCriterionId?i("div",[i("div",{attrs:{slot:"search-container"},slot:"search-container"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:medicalFeedback:table:isUrgent")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.IsUrgent,callback:function(t){e.$set(e.searchData,"IsUrgent",t)},expression:"searchData.IsUrgent"}},e._l(e.$d.YesOrNo,(function(e){return i("el-option",{key:"IsUrgent"+e.label,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:medicalFeedback:table:subjectCode")}},[i("el-input",{staticStyle:{width:"130px"},attrs:{clearable:""},model:{value:e.searchData.SubjectCode,callback:function(t){e.$set(e.searchData,"SubjectCode",t)},expression:"searchData.SubjectCode"}})],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:medicalFeedback:table:taskBlindName")}},[i("el-input",{staticStyle:{width:"100px"},attrs:{clearable:""},model:{value:e.searchData.TaskBlindName,callback:function(t){e.$set(e.searchData,"TaskBlindName",t)},expression:"searchData.TaskBlindName"}})],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:medicalFeedback:table:readingCategory")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.ReadingCategory,callback:function(t){e.$set(e.searchData,"ReadingCategory",t)},expression:"searchData.ReadingCategory"}},e._l(e.$d.ReadingCategory,(function(e){return i("el-option",{key:"ReadingCategory"+e.label,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:medicalFeedback:table:auditState")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.AuditState,callback:function(t){e.$set(e.searchData,"AuditState",t)},expression:"searchData.AuditState"}},e._l(e.$d.MedicalReviewAuditState,(function(e){return i("el-option",{key:"AuditState"+e.label,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:medicalFeedback:table:auditAdvice")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.AuditAdviceEnum,callback:function(t){e.$set(e.searchData,"AuditAdviceEnum",t)},expression:"searchData.AuditAdviceEnum"}},e._l(e.$d.AuditAdvice,(function(e){return i("el-option",{key:"AuditAdvice"+e.label,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:medicalFeedback:table:doctorUserIdea")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.DoctorUserIdeaEnum,callback:function(t){e.$set(e.searchData,"DoctorUserIdeaEnum",t)},expression:"searchData.DoctorUserIdeaEnum"}},e._l(e.$d.MedicalReviewDoctorUserIdea,(function(e){return i("el-option",{key:"MedicalReviewDoctorUserIdea"+e.label,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")])],1)],1)],1),e._v(" "),i("div",{attrs:{slot:"main-container"},slot:"main-container"},[i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:75},expression:"{bottomOffset:75}"},{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortChange}},[i("el-table-column",{attrs:{type:"index",width:"40",align:"left"}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsUrgent","min-width":"100",label:e.$t("trials:medicalFeedback:table:isUrgent"),"show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsUrgent?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsUrgent)))]):i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsUrgent)))])]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode","min-width":"100",label:e.$t("trials:medicalFeedback:table:subjectCode"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskBlindName","min-width":"100",label:e.$t("trials:medicalFeedback:table:taskBlindName"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialReadingCriterionName",label:e.$t("trials:medicalFeedback:table:criterionName"),"min-width":"140","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"ReadingCategory",label:e.$t("trials:medicalFeedback:table:readingCategory"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.ReadingCategory?i("el-tag",{attrs:{type:"primary"}},[e._v("\n "+e._s(e.$fd("ReadingCategory",t.row.ReadingCategory))+"\n ")]):e._e(),e._v(" "),2===t.row.ReadingCategory?i("el-tag",{attrs:{type:"info"}},[e._v("\n "+e._s(e.$fd("ReadingCategory",t.row.ReadingCategory))+"\n ")]):e._e(),e._v(" "),4===t.row.ReadingCategory?i("el-tag",{attrs:{type:"danger"}},[e._v("\n "+e._s(e.$fd("ReadingCategory",t.row.ReadingCategory))+"\n ")]):e._e(),e._v(" "),5===t.row.ReadingCategory?i("el-tag",{attrs:{type:"warning"}},[e._v("\n "+e._s(e.$fd("ReadingCategory",t.row.ReadingCategory))+"\n ")]):e._e()]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskState",label:e.$t("trials:medicalFeedback:table:taskState"),"min-width":"100","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.TaskState?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e(),e._v(" "),1===t.row.TaskState?i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e(),e._v(" "),3===t.row.TaskState?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e(),e._v(" "),4===t.row.TaskState?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e()]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"AuditState",label:e.$t("trials:medicalFeedback:table:auditState"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.AuditState?i("el-tag",{attrs:{type:"warning"}},[e._v("\n "+e._s(e.$fd("MedicalReviewAuditState",t.row.AuditState))+"\n ")]):e._e(),e._v(" "),1===t.row.AuditState?i("el-tag",{attrs:{type:"primary"}},[e._v("\n "+e._s(e.$fd("MedicalReviewAuditState",t.row.AuditState))+"\n ")]):e._e(),e._v(" "),2===t.row.AuditState?i("el-tag",{attrs:{type:"danger"}},[e._v("\n "+e._s(e.$fd("MedicalReviewAuditState",t.row.AuditState))+"\n ")]):e._e()]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"FirstReplyTime","min-width":"100",label:e.$t("trials:medicalFeedback:table:firstReplyTime"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"LastReplyTime","min-width":"100",label:e.$t("trials:medicalFeedback:table:lastReplyTime"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"AuditAdviceEnum",label:e.$t("trials:medicalFeedback:table:auditAdvice"),"min-width":"120",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("AuditAdvice",t.row.AuditAdviceEnum))+"\n ")]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"DoctorUserIdeaEnum","min-width":"120",label:e.$t("trials:medicalFeedback:table:doctorUserIdea"),"show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("MedicalReviewDoctorUserIdea",t.row.DoctorUserIdeaEnum))+"\n ")]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"200",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{disabled:!t.row.IsHaveQuestion||t.row.IsInvalid,circle:"",title:e.$t("trials:medicalFeedback:table:view"),icon:"el-icon-edit-outline"},on:{click:function(i){return e.handleReadMecialAudit(t.row)}}}),e._v(" "),i("el-button",{attrs:{disabled:!t.row.IsHaveQuestion||t.row.IsInvalid,circle:"",title:e.$t("trials:medicalFeedback:table:reply"),icon:"el-icon-chat-dot-round"},on:{click:function(i){return e.handleReply(t.row)}}})]}}],null,!0)})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1)]):e._e()])})),1),e._v(" "),e.chatForm.visible?i("el-dialog",{attrs:{visible:e.chatForm.visible,"close-on-click-modal":!1,"custom-class":"base-dialog-wrapper",title:e.chatForm.title,width:"600px"},on:{"update:visible":function(t){return e.$set(e.chatForm,"visible",t)}}},[i("ChatForm",{attrs:{"task-medical-review-id":e.currentRow.Id,"visit-task-id":e.currentRow.VisitTaskId},on:{getList:e.getList,close:function(t){e.chatForm.visible=!1}}})],1):e._e(),e._v(" "),e.auditVisible?i("el-dialog",{attrs:{visible:e.auditVisible,"close-on-click-modal":!1,fullscreen:!0,title:e.$t("trials:medicalFeedback:title:mfDetail")},on:{"update:visible":function(t){e.auditVisible=t}}},[i("MedicalAudit",{attrs:{"task-medical-review-id":e.currentRow.Id,"visit-task-id":e.currentRow.VisitTaskId,"row-data":e.currentRow},on:{getList:e.getList,close:function(t){e.auditVisible=!1}}})],1):e._e()],1)},a=[],r=i("db72"),o=i("3e42"),s=i("958c"),l=i("6071"),c=i("333d"),u=i("ea33"),d=i("a93a"),f=function(){return{IsUrgent:null,SubjectCode:"",TaskBlindName:"",ReadingCategory:null,AuditState:null,AuditAdviceEnum:null,DoctorUserIdeaEnum:null,PageIndex:1,PageSize:20}},h={name:"ReadTask",components:{BaseContainer:l["default"],Pagination:c["default"],ChatForm:u["default"],MedicalAudit:d["default"]},data:function(){return{searchData:f(),list:[],total:0,loading:!1,trialId:"",currentRow:{},chatForm:{visible:!1,title:""},auditVisible:!1,trialCriterionList:[],TrialReadingCriterionId:"0"}},watch:{TrialReadingCriterionId:function(e){e&&this.getList()}},mounted:function(){this.trialId=this.$route.query.trialId,this.getTrialCriterionList()},methods:{getTrialCriterionList:function(){var e=this;Object(s["U"])(this.trialId).then((function(t){e.trialCriterionList=t.Result,e.TrialReadingCriterionId=e.trialCriterionList[0].TrialReadingCriterionId})).catch((function(){}))},getList:function(){var e=this;this.loading=!0,this.searchData.TrialId=this.trialId,this.searchData.TrialReadingCriterionId=this.TrialReadingCriterionId,Object(o["ic"])(this.searchData).then((function(t){e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount,e.loading=!1})).catch((function(){e.loading=!1}))},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=f(),this.getList()},handleReadMecialAudit:function(e){this.currentRow=Object(r["a"])({},e),this.auditVisible=!0},handleReply:function(e){this.currentRow=Object(r["a"])({},e),this.chatForm.title="".concat(this.$t("trials:medicalFeedback:title:qaRecord")," (").concat(e.SubjectCode," ").concat(e.TaskBlindName,")"),this.chatForm.visible=!0},handleSortChange:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()}}},p=h,m=i("2877"),g=Object(m["a"])(p,n,a,!1,null,null,null);t["default"]=g.exports},9775:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"dashboard"},[i("div",{staticClass:"dashboard-header"},[i("h1",[i("a",{attrs:{href:"#"},on:{click:e.handleTitleClick}},[e._v("GRR Real-Time IRC Information")])]),e._v(" "),i("div",[i("span",[e._v(e._s(e.currentTime))]),e._v(" "),e.isFullscreen?e._e():i("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"text",size:"small"},on:{click:e.loginOut}},[e._v("Sign Out")])],1)]),e._v(" "),i("div",{staticClass:"dashboard-main"},[i("div",{staticClass:"left fl"},[i("div",{staticClass:"item box"},[i("workload-stats",{attrs:{area:e.area}})],1),e._v(" "),i("div",{staticClass:"item-center box"},[i("workload-of-months",{attrs:{area:e.area}})],1),e._v(" "),i("div",{staticClass:"item box"},[i("workload-of-reviewers",{attrs:{area:e.area}})],1)]),e._v(" "),i("div",{ref:"mapContent",staticClass:"center fl"},[i("div",{ref:"map",staticClass:"top box"},[e.mapWidth?i("distribution-map",{attrs:{area:e.area,height:e.mapHeight,width:e.mapWidth}}):e._e()],1),e._v(" "),i("div",{ref:"workloadList",staticClass:"bottom box",staticStyle:{background:"rgba(0, 35, 120, 0.36)"}},[e.bottomHeight?i("latest-reads",{attrs:{height:e.bottomHeight}}):e._e()],1)]),e._v(" "),i("div",{staticClass:"right fl"},[i("div",{staticClass:"item box"},[i("reviewers-stats",{attrs:{area:e.area}})],1),e._v(" "),i("div",{staticClass:"item-center box"},[i("enrollments-per-quarter",{attrs:{area:e.area}})],1),e._v(" "),i("div",{staticClass:"item box"},[i("enrollments-of-reviewers",{attrs:{area:e.area}})],1)])])])},a=[],r=i("93bf"),o=i.n(r),s=i("d42f"),l=i("f2f9"),c=i("6283"),u=i("5db3"),d=i("abf4"),f=i("31d6"),h=i("a5a9"),p=i("f9b9"),m=i("c1df"),g=i.n(m),v={name:"BigData",components:{WorkloadStats:s["default"],WorkloadOfMonths:l["default"],WorkloadOfReviewers:c["default"],DistributionMap:u["default"],LatestReads:d["default"],ReviewersStats:f["default"],EnrollmentsPerQuarter:h["default"],EnrollmentsOfReviewers:p["default"]},data:function(){return{area:"",currentTime:"",timer:"",bottomHeight:"",mapHeight:"",mapWidth:"",isFullscreen:!1}},mounted:function(){this.setHeight(),this.timer=setInterval(this.getCurrentTime,1e3);var e=this;window.onresize=function(){e.mapWidth="",e.bottomHeight="",e.setHeight()}},destroyed:function(){window.onresize=null,clearInterval(this.timer)},methods:{setHeight:function(){this.mapHeight=this.$refs["map"].clientHeight+"px",this.mapWidth=this.$refs["map"].clientWidth+"px",this.area=this.$refs["mapContent"].clientHeight*this.$refs["mapContent"].clientWidth+"px",this.bottomHeight=this.$refs["workloadList"].clientHeight+"px"},getCurrentTime:function(){this.currentTime=g()().format("YYYY-MM-DD HH:mm:ss")},handleTitleClick:function(){if(!o.a.enabled)return this.$message({message:"Your browser can not work",type:"warning"}),!1;o.a.toggle(),this.isFullscreen=!o.a.isFullscreen},loginOut:function(){var e=this;this.$confirm("Sure to sign out",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){e.$store.dispatch("user/logout").then((function(t){e.$router.push("/login")}))}))}}},b=v,y=(i("7951"),i("2877")),w=Object(y["a"])(b,n,a,!1,null,null,null);t["default"]=w.exports},"97a1":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container menu"},[i("el-tree",{staticStyle:{width:"80%"},attrs:{props:e.defaultProps,data:e.treeData,"node-key":"Id","default-expand-all":!0,"expand-on-click-node":!1},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.node,a=t.data;return i("span",{staticClass:"custom-tree-node"},[a.FunctionName?i("span",[e._v(e._s(n.label)+" --------------------(Function)")]):i("span",[e._v(e._s(n.label))]),e._v(" "),i("span",[i("el-button",{attrs:{type:"text",icon:"el-icon-plus",size:"small"},on:{click:function(){return e.append(a)}}},[e._v("Append")]),e._v(" "),i("el-button",{attrs:{type:"text",icon:"el-icon-edit",size:"small"},on:{click:function(){return e.edit(a)}}},[e._v("Edit")]),e._v(" "),i("el-button",{attrs:{type:"text",icon:"el-icon-delete",size:"small"},on:{click:function(){return e.remove(a)}}},[e._v("Delete")])],1)])}}])}),e._v(" "),e.model_cfg.visible?i("menu-form",{attrs:{form:e.currenNode,width:"500px"},on:{close:e.closeModel}}):e._e()],1)},a=[],r=i("a8db"),o=i("50fc"),s=i("bdb0"),l=i("9b6c"),c=["Children","CreateTime","CreateUserId","UpdateTime","UpdateUserId"],u={name:"Menu",components:{MenuForm:s["default"]},data:function(){return{model_cfg:l["a"],treeData:[],defaultProps:{label:"MenuName",children:"Children"},dialogVisible:!1,title:"",currenNode:{},nodeId:"",parentId:""}},mounted:function(){this.getlist()},methods:{getlist:function(){var e=this,t=this.$loading({target:document.querySelector(".menu"),fullscreen:!1,lock:!0,text:"Loading",spinner:"el-icon-loading"});Object(o["i"])().then((function(i){t.close(),e.treeData=i.Result})).catch((function(){t.close()}))},append:function(e){this.currenNode={},this.currenNode.ParentId=e.Id,this.currenNode.Status=1,this.nodeId=e.Id,this.model_cfg.title="Append",this.model_cfg.visible=!0},edit:function(e){var t=JSON.parse(JSON.stringify(e)),i=(t.Children,t.CreateTime,t.CreateUserId,t.UpdateTime,t.UpdateUserId,Object(r["a"])(t,c));i.MetaBreadcrumb=i.MetaBreadcrumb?1:0,i.Hidden=i.Hidden?1:0,this.currenNode=i,this.nodeId=e.Id,this.model_cfg.title="Edit",this.model_cfg.visible=!0},remove:function(e){var t=this;this.$confirm("Sure to delete?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){Object(o["d"])(e.Id).then((function(e){e.IsSuccess&&(t.getlist(),t.$message.success("Deleted successfully!"))}))}))},closeModel:function(){this.model_cfg.visible=!1,this.getlist()}}},d=u,f=(i("8502"),i("2877")),h=Object(f["a"])(d,n,a,!1,null,null,null);t["default"]=h.exports},"97bd":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"qa-wrapper"},[i("div",{staticClass:"qa-content"},[i("el-card",{staticStyle:{"min-height":"600px"},attrs:{shadow:"hover"}},[i("el-tabs",{attrs:{type:"card"},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[e.data.DicomStudyCount>0?i("el-tab-pane",{attrs:{label:e.$t("trials:audit:tab:dicoms"),name:"dicom"}},[i("el-row",[i("el-col",{attrs:{span:12}},[i("h3",[e._v(e._s(e.$t("trials:audit:title:dicoms")))])]),e._v(" "),i("el-col",{attrs:{span:12}},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.isHaveFirstGiveMedicineDate,expression:"isHaveFirstGiveMedicineDate"}],staticStyle:{"text-align":"right"}},[i("h4",[e._v("\n "+e._s(e.$t("trials:audit:tip:visitWindow"))+":\n "),e.baseDate?i("span",{staticStyle:{"font-weight":"normal"}},[e._v("\n "+e._s(e.upperLimit+"~"+e.lowerLimit)+"\n ")]):i("span",[e._v(e._s(e.$t("trials:audit:tip:visitWindowNotSet")))])])])])],1),e._v(" "),i("div",{staticStyle:{"text-align":"right"}},[i("el-button",{staticStyle:{"margin-left":"10px"},attrs:{size:"small",type:"primary"},on:{click:e.handleViewImages}},[e._v("\n "+e._s(e.$t("trials:audit:button:previewAllDiocms"))+"\n ")]),e._v(" "),i("el-button",{staticStyle:{"margin-left":"10px"},attrs:{size:"small",type:"primary"},on:{click:e.handleViewReadingImages}},[e._v("\n "+e._s(e.$t("trials:audit:button:previewReadingDiocms"))+"\n ")])],1),e._v(" "),i("el-table",{attrs:{data:e.studyList,"row-class-name":e.tableRowClassName}},[i("el-table-column",{attrs:{prop:"StudyCode",label:e.$t("trials:audit:table:studyId")}}),e._v(" "),i("el-table-column",{attrs:{prop:"ModalityForEdit",label:e.$t("trials:audit:table:modality")}}),e._v(" "),i("el-table-column",{attrs:{prop:"Modalities",label:"检查设备"}}),e._v(" "),i("el-table-column",{attrs:{prop:"BodyPartForEdit",label:e.$t("trials:audit:table:bodyPart")}}),e._v(" "),i("el-table-column",{attrs:{prop:"SeriesCount",label:e.$t("trials:audit:table:seriesCount")}}),e._v(" "),i("el-table-column",{attrs:{prop:"InstanceCount",label:e.$t("trials:audit:table:instanceCount")}}),e._v(" "),i("el-table-column",{attrs:{prop:"StudyTime",label:e.$t("trials:audit:table:studyDate")},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$t("trials:audit:message:qsOverWindow"),placement:"bottom"}},[e.isHaveFirstGiveMedicineDate&&e.baseDate&&t.row.StudyTime&&(e.moment(t.row.StudyTime).format("YYYY-MM-DD")>e.lowerLimit||e.moment(t.row.StudyTime).format("YYYY-MM-DD")<e.upperLimit)?i("i",{staticClass:"el-icon-warning",staticStyle:{color:"#f44336","font-size":"16px"}}):e._e()]),e._v(" "),i("span",[e._v(e._s(t.row.StudyTime?e.moment(t.row.StudyTime).format("YYYY-MM-DD"):""))])]}}],null,!1,761107859)}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action")},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{icon:"el-icon-view",title:e.$t("trials:audit:action:preview"),circle:"",disabled:t.row.IsDeleted},on:{click:function(i){return e.handlePreviewStudy(t.row)}}}),e._v(" "),i("el-button",{attrs:{icon:"el-icon-edit-outline",title:e.$t("trials:audit:action:edit"),circle:"",disabled:e.isAudit||t.row.IsDeleted},on:{click:function(i){return e.handleEditStudy(t.row)}}})]}}],null,!1,2864797403)})],1),e._v(" "),i("h3",[e._v(e._s(e.$t("trials:audit:title:series")))]),e._v(" "),i("el-table",{attrs:{data:e.seriesList,"row-class-name":e.tableRowClassName}},[i("el-table-column",{attrs:{prop:"SeriesNumber",label:e.$t("trials:audit:table:seriesId")}}),e._v(" "),i("el-table-column",{attrs:{prop:"StudyCode",label:e.$t("trials:audit:table:seriesOfStudyId")}}),e._v(" "),i("el-table-column",{attrs:{prop:"Modality",label:e.$t("trials:audit:table:seriesModality"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"InstanceCount",label:e.$t("trials:audit:table:seriesOfInstanceCount")}}),e._v(" "),i("el-table-column",{attrs:{prop:"SeriesTime",label:e.$t("trials:audit:table:seriesOfStudyDate"),"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.StudyTime?e.moment(t.row.StudyTime).format("YYYY-MM-DD"):"")+"\n ")]}}],null,!1,3642859845)}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:e.$t("trials:audit:table:seriesOfUploadedDate"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsReading",label:e.$t("trials:audit:table:isReading")},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-switch",{attrs:{disabled:t.row.IsDeleted||e.isAudit},on:{change:function(i){return e.changeReadingStatus(i,t.row)}},model:{value:t.row.IsReading,callback:function(i){e.$set(t.row,"IsReading",i)},expression:"scope.row.IsReading"}})]}}],null,!1,3577418478)}),e._v(" "),i("el-table-column",{attrs:{prop:"IsDeleted",label:e.$t("trials:audit:table:isDelete")},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-switch",{attrs:{disabled:e.isAudit},on:{change:function(i){return e.changeDeleteStatus(i,t.row)}},model:{value:t.row.IsDeleted,callback:function(i){e.$set(t.row,"IsDeleted",i)},expression:"scope.row.IsDeleted"}})]}}],null,!1,1014364013)}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action")},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{icon:"el-icon-view",title:e.$t("trials:audit:action:seriesPreview"),circle:"",disabled:t.row.IsDeleted},on:{click:function(i){return e.handlePreviewInstance(t.row)}}})]}}],null,!1,1633747088)})],1)],1):e._e(),e._v(" "),e.data.NoneDicomStudyCount>0?i("el-tab-pane",{attrs:{label:e.$t("trials:audit:tab:nonDicoms"),name:"none-dicom"}},[i("el-row",[i("el-col",{attrs:{span:12}},[i("h3",[e._v(e._s(e.$t("trials:audit:title:nonDicomsTitle")))])]),e._v(" "),i("el-col",{attrs:{span:12}},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.isHaveFirstGiveMedicineDate,expression:"isHaveFirstGiveMedicineDate"}],staticStyle:{"text-align":"right"}},[i("h4",[e._v(e._s(e.$t("trials:audit:tip:nonDicomsVisitWindow"))+":\n "),e.baseDate?i("span",{staticStyle:{"font-weight":"normal"}},[e._v("\n "+e._s(e.upperLimit+"~"+e.lowerLimit)+"\n ")]):i("span",[e._v(e._s(e.$t("trials:audit:tip:visitWindowNotSet")))])])])])],1),e._v(" "),i("div",{staticStyle:{"text-align":"right"}},[i("el-button",{staticStyle:{"margin-left":"10px"},attrs:{size:"small",disabled:0===e.noneDicomStudyList.length,type:"primary"},on:{click:e.handleViewAllNoneDicoms}},[e._v("\n "+e._s(e.$t("trials:audit:tip:nonDicomsPreviewAll"))+"\n ")])],1),e._v(" "),i("el-table",{attrs:{data:e.noneDicomStudyList}},[i("el-table-column",{attrs:{prop:"CodeView",label:e.$t("trials:audit:table:nonDicomsStudyId")}}),e._v(" "),i("el-table-column",{attrs:{prop:"Modality",label:e.$t("trials:audit:table:nonDicomsModality")}}),e._v(" "),i("el-table-column",{attrs:{prop:"BodyPart",label:e.$t("trials:audit:table:nonDicomsBodypart")}}),e._v(" "),i("el-table-column",{attrs:{prop:"FileCount",label:e.$t("trials:audit:table:nonDicomsFileCount")},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.FileCount?i("el-popover",{attrs:{trigger:"click",placement:"bottom"}},[i("el-table",{attrs:{data:t.row.NoneDicomStudyFileList,height:"300",size:"small"}},[i("el-table-column",{attrs:{prop:"FileName",label:e.$t("trials:audit:table:nonDicomsFileName"),width:"200"}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text"},nativeOn:{click:function(i){return i.preventDefault(),e.previewFile(t.row)}}},[e._v("\n "+e._s(e.$t("trials:audit:button:nonDicomsPreview"))+"\n ")])]}}],null,!0)})],1),e._v(" "),i("div",{staticClass:"name-wrapper",attrs:{slot:"reference"},slot:"reference"},[i("el-button",{attrs:{type:"text"}},[e._v("\n "+e._s(t.row.FileCount)+"\n ")])],1)],1):i("span",[e._v(e._s(t.row.FileCount))])]}}],null,!1,2114129080)}),e._v(" "),i("el-table-column",{attrs:{prop:"ImageDate",label:e.$t("trials:audit:table:nonDicomsStudyDate")},scopedSlots:e._u([{key:"default",fn:function(t){return[e.isHaveFirstGiveMedicineDate&&e.baseDate&&t.row.ImageDate&&(e.moment(t.row.ImageDate).format("YYYY-MM-DD")>e.lowerLimit||e.moment(t.row.ImageDate).format("YYYY-MM-DD")<e.upperLimit)?i("i",{staticClass:"el-icon-warning",staticStyle:{color:"#f44336","font-size":"16px"}}):e._e(),e._v(" "),i("span",[e._v(e._s(e.moment(t.row.ImageDate).format("YYYY-MM-DD")))])]}}],null,!1,1037574763)}),e._v(" "),i("el-table-column",{attrs:{prop:"UpdateTime",label:e.$t("trials:audit:table:nonDicomsUpdateTime")}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action")},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text",disabled:0===t.row.FileCount},nativeOn:{click:function(i){return i.preventDefault(),e.handlePreviewNoneDicomFiles(t.row)}}},[e._v("\n "+e._s(e.$t("trials:audit:button:nonDicomsPreview"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"text",disabled:e.isAudit},nativeOn:{click:function(i){return i.preventDefault(),e.handleEditNoneDicomInfo(t.row)}}},[e._v("\n "+e._s(e.$t("trials:audit:button:nonDicomsEdit"))+"\n ")])]}}],null,!1,1814731732)})],1)],1):e._e(),e._v(" "),e.data.IsHaveClinicalData?i("el-tab-pane",{attrs:{label:e.$t("trials:audit:tab:clinicalData"),name:"clinical-data"}},[Object.keys(e.subjectClinicalData).length>0?i("ClinicalData",{staticStyle:{"margin-top":"5px"},attrs:{data:e.data,"subject-clinical-data":e.subjectClinicalData,"enum-type":1*e.relationInfo.TrialClinicalInformationTransmissionEnum,"subject-visit-id":e.data.Id,"is-audit":e.isAudit,"subject-id":e.data.SubjectId}}):e._e()],1):e._e()],1)],1),e._v(" "),i("el-card",{staticStyle:{"margin-top":"10px"},attrs:{shadow:"hover"}},[i("h3",[e._v(e._s(e.$t("trials:audit:title:questions")))]),e._v(" "),e.qCQuestionAnswerList.length>0?i("div",{staticStyle:{"overflow-y":"auto"}},[i("QuestionForm",{ref:"questions",attrs:{"trial-id":e.trialId,"subject-visit-id":e.data.Id,"qc-process-enum":e.data.QCProcessEnum,"current-q-c-enum":e.currentQCType,answers:e.qCQuestionAnswerList,"is-audit":e.isAudit}})],1):i("h3",[e._v(e._s(e.$t("trials:audit:message:noData")))])]),e._v(" "),e.qcVisible?i("el-dialog",{attrs:{title:e.$t("trials:audit:dialogTitle:question"),visible:e.qcVisible,"close-on-click-modal":!1,"append-to-body":"","custom-class":"base-dialog-wrapper",width:"1000px"},on:{"update:visible":function(t){e.qcVisible=t}}},[i("div",{staticStyle:{padding:"10px",border:"1px solid #e0e0e0","max-height":"650px","overflow-y":"auto"}},[e.qcVisible?i("el-form",{ref:"qcForm",attrs:{model:e.qcForm,"label-width":"120px",size:"small"}},[i("el-form-item",{attrs:{label:e.$t("trials:audit:form:questionContent")}},[i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.qcForm.qcContent}},[i("el-table-column",{attrs:{prop:"isSelect",label:"",width:"40"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-checkbox",{model:{value:t.row.isSelect,callback:function(i){e.$set(t.row,"isSelect",i)},expression:"scope.row.isSelect"}})]}}],null,!1,4270841726)}),e._v(" "),i("el-table-column",{attrs:{prop:"keyName",label:"",width:"180"}}),e._v(" "),i("el-table-column",{attrs:{prop:"keyValue",label:e.$t("trials:audit:form:questionSummary")},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-input",{directives:[{name:"show",rawName:"v-show",value:t.row.keyValue||t.row.isSelect,expression:"scope.row.keyValue || scope.row.isSelect"}],attrs:{type:"textarea",rows:4,size:"mini"},model:{value:t.row.keyValue,callback:function(i){e.$set(t.row,"keyValue",i)},expression:"scope.row.keyValue"}})]}}],null,!1,931411807)}),e._v(" "),i("el-table-column",{attrs:{prop:"ActionContent",label:e.$t("trials:audit:form:actionMatters")},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-input",{directives:[{name:"show",rawName:"v-show",value:t.row.actionContent||t.row.isSelect,expression:"scope.row.actionContent || scope.row.isSelect"}],attrs:{type:"textarea",rows:4,size:"mini"},model:{value:t.row.actionContent,callback:function(i){e.$set(t.row,"actionContent",i)},expression:"scope.row.actionContent"}})]}}],null,!1,2624243220)})],1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:audit:form:questionDeadline")}},[i("el-date-picker",{staticStyle:{width:"100%"},attrs:{"value-format":"yyyy-MM-dd HH:mm:ss",type:"datetime",size:"small",clearable:"","default-time":"23:59:59"},model:{value:e.qcForm.deadlineTime,callback:function(t){e.$set(e.qcForm,"deadlineTime",t)},expression:"qcForm.deadlineTime"}})],1)],1):e._e()],1),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){e.qcVisible=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleSaveQC}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)]):e._e(),e._v(" "),e.historyVisible?i("el-dialog",{attrs:{visible:e.historyVisible,"close-on-click-modal":!1,"custom-class":"base-dialog-wrapper","append-to-body":"",width:"80%",title:e.$t("trials:audit:dialogTitle:historicalQuestions")},on:{"update:visible":function(t){e.historyVisible=t}}},[i("div",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{icon:"el-icon-refresh-left",circle:"",title:e.$t("trials:audit:button:refreshHistoryQs")},on:{click:e.getHistoryInfo}})],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.historyLoading,expression:"historyLoading"}],staticStyle:{width:"100%"},attrs:{data:e.historyList,height:"500"}},[i("el-table-column",{attrs:{prop:"ChallengeCode",label:e.$t("trials:qcQuality:table:challengeCode"),"min-width":"80","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{style:{color:t.row.IsClosed?"":"red"},attrs:{type:"text"},on:{click:function(i){return e.handleReply(t.row)}}},[e._v(e._s(t.row.ChallengeCode))])]}}],null,!1,2368458037)}),e._v(" "),i("el-table-column",{attrs:{prop:"IsClosed",label:e.$t("trials:qcQuality:table:isClosed"),"min-width":"80","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.IsClosed?e.$t("trials:qcQuality:title:closed"):e.$t("trials:qcQuality:title:unClose"))+"\n ")]}}],null,!1,1303919631)}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:e.$t("trials:qcQuality:table:createTime"),"min-width":"150","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateUserName",label:e.$t("trials:qcQuality:table:organizer"),"min-width":"80","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"CurrentActionUserName",label:e.$t("trials:qcCheck:table:crrentUser"),"min-width":"80","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"LatestMsgTime",label:e.$t("trials:qcQuality:table:latestMsgTime"),"min-width":"150","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ReuploadEnum",label:e.$t("trials:qcQuality:table:reUploadStatus"),"show-overflow-tooltip":"","min-width":"110",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.ReuploadEnum?i("span",[e._v("--")]):1===t.row.ReuploadEnum?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ReuploadEnum",t.row.ReuploadEnum)))]):2===t.row.ReuploadEnum?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("ReuploadEnum",t.row.ReuploadEnum)))]):3===t.row.ReuploadEnum?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ReuploadEnum",t.row.ReuploadEnum)))]):e._e()]}}],null,!1,176439862)}),e._v(" "),i("el-table-column",{attrs:{prop:"ReUploadedTime",label:e.$t("trials:qcQuality:table:reUploadTime"),"show-overflow-tooltip":"","min-width":"150",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"DeadlineTime",label:e.$t("trials:qcQuality:table:deadline"),"min-width":"120","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsOverTime",label:e.$t("trials:qcQuality:table:isOverTime"),"min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("YesOrNo",t.row.IsOverTime))+"\n ")]}}],null,!1,1306561668)}),e._v(" "),i("el-table-column",{attrs:{prop:"ClosedTime",label:e.$t("trials:qcQuality:table:closingTime"),"min-width":"150","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action"),"min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text",disabled:t.row.IsClosed||e.isAudit},on:{click:function(i){return e.handleReply(t.row)}}},[e._v("\n "+e._s(e.$t("trials:qcQuality:action:reply"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"text",disabled:t.row.IsClosed||e.isAudit},on:{click:function(i){return e.handleCloseQC(t.row)}}},[e._v("\n "+e._s(e.$t("trials:qcQuality:action:close"))+"\n ")])]}}],null,!1,2559836546)})],1)],1):e._e(),e._v(" "),e.chatVisible?i("el-dialog",{attrs:{visible:e.chatVisible,"close-on-click-modal":!1,"custom-class":"base-dialog-wrapper","append-to-body":"",width:"800px",title:e.$t("trials:qcQuality:dialogTitle:reply")+"("+e.currentQCRow.SubjectCode+" "+e.currentQCRow.VisitName+")"},on:{"update:visible":function(t){e.chatVisible=t}}},[i("chat-form",{attrs:{data:e.currentQCRow,"sign-text":e.relationInfo.TrialImageQCSignText,"clinical-enum":e.relationInfo.ClinicalInformationTransmissionEnum},on:{close:function(t){e.chatVisible=!1},getDialogList:e.getDialogList}})],1):e._e(),e._v(" "),e.editStudyInfoVisible?i("el-dialog",{attrs:{title:e.$t("trials:audit:action:edit"),visible:e.editStudyInfoVisible,"close-on-click-modal":!1,"append-to-body":"","custom-class":"base-dialog-wrapper",width:"600px"},on:{"update:visible":function(t){e.editStudyInfoVisible=t}}},[i("div",{staticStyle:{padding:"10px",border:"1px solid #e0e0e0","max-height":"650px","overflow-y":"auto"}},[i("el-form",{ref:"studyForm",attrs:{model:e.studyForm,"label-width":"100px"}},[i("el-form-item",{attrs:{label:e.$t("trials:audit:table:studyId")}},[i("el-input",{attrs:{disabled:""},model:{value:e.studyForm.StudyCode,callback:function(t){e.$set(e.studyForm,"StudyCode",t)},expression:"studyForm.StudyCode"}})],1),e._v(" "),e.studyForm.IsDicomData?i("el-form-item",{attrs:{label:e.$t("trials:audit:table:modality")}},[i("el-input",{attrs:{disabled:""},model:{value:e.studyForm.Modalities,callback:function(t){e.$set(e.studyForm,"Modalities",t)},expression:"studyForm.Modalities"}})],1):i("el-form-item",{attrs:{label:e.$t("trials:audit:table:modality"),prop:"Modalities",rules:[{required:!0,message:e.$t("common:ruleMessage:specify"),trigger:"blur"}]}},[i("el-radio-group",{model:{value:e.studyForm.Modality,callback:function(t){e.$set(e.studyForm,"Modality",t)},expression:"studyForm.Modality"}},e._l(e.trialModalitys,(function(e){return i("el-radio",{directives:[{name:"show",rawName:"v-show",value:""!==e,expression:"m !== ''"}],key:e,staticStyle:{"margin-bottom":"15px"},attrs:{label:e}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:audit:table:bodyPart"),prop:"BodyPartForEdit",rules:[{required:!0,message:e.$t("common:ruleMessage:specify"),trigger:"blur"}]}},[i("el-checkbox-group",{model:{value:e.studyForm.BodyPartForEdit,callback:function(t){e.$set(e.studyForm,"BodyPartForEdit",t)},expression:"studyForm.BodyPartForEdit"}},e._l(e.trialBodyPartTypes,(function(e){return i("el-checkbox",{key:e,attrs:{label:e}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:audit:table:seriesCount")}},[i("el-input",{attrs:{disabled:""},model:{value:e.studyForm.SeriesCount,callback:function(t){e.$set(e.studyForm,"SeriesCount",t)},expression:"studyForm.SeriesCount"}})],1),e._v(" "),e.studyForm.InstanceCount?i("el-form-item",{attrs:{label:e.$t("trials:audit:table:instanceCount")}},[i("el-input",{attrs:{disabled:""},model:{value:e.studyForm.InstanceCount,callback:function(t){e.$set(e.studyForm,"InstanceCount",t)},expression:"studyForm.InstanceCount"}})],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:audit:table:studyDate")}},[i("el-date-picker",{staticStyle:{width:"100%"},attrs:{disabled:"",type:"date","value-format":"yyyy-MM-dd",format:"yyyy-MM-dd"},model:{value:e.studyForm.StudyTime,callback:function(t){e.$set(e.studyForm,"StudyTime",t)},expression:"studyForm.StudyTime"}})],1)],1)],1),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){e.editStudyInfoVisible=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{loading:e.btnLoading,size:"small",type:"primary"},on:{click:e.handleUpdateStudyInfo}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)]):e._e(),e._v(" "),e.signVisible?i("el-dialog",{attrs:{visible:e.signVisible,"close-on-click-modal":!1,width:"600px","append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.signVisible=t}}},[i("div",{attrs:{slot:"title"},slot:"title"},[i("span",{staticStyle:{"font-size":"18px"}},[e._v(e._s(e.$t("common:dialogTitle:sign")))]),e._v(" "),i("span",{staticStyle:{"font-size":"12px","margin-left":"5px"}},[e._v(e._s("("+e.$t("common:label:sign")+e.currentUser+")"))])]),e._v(" "),i("SignForm",{ref:"signForm",attrs:{"sign-code-enum":e.signCode,"subject-visit-id":e.data.Id},on:{closeDialog:e.closeSignDialog}})],1):e._e(),e._v(" "),e.editNoneDicomVisible?i("el-dialog",{attrs:{title:e.$t("trials:audit:button:nonDicomsEdit"),visible:e.editNoneDicomVisible,"close-on-click-modal":!1,"append-to-body":"","custom-class":"base-dialog-wrapper",width:"600px"},on:{"update:visible":function(t){e.editNoneDicomVisible=t}}},[i("div",{staticStyle:{padding:"10px",border:"1px solid #e0e0e0","max-height":"650px","overflow-y":"auto"}},[i("el-form",{ref:"noneDicomForm",attrs:{model:e.noneDicomForm,"label-width":"100px"}},[i("el-form-item",{attrs:{label:e.$t("trials:audit:table:nonDicomsStudyId")}},[i("el-input",{attrs:{disabled:""},model:{value:e.noneDicomForm.CodeView,callback:function(t){e.$set(e.noneDicomForm,"CodeView",t)},expression:"noneDicomForm.CodeView"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:audit:table:nonDicomsModality"),prop:"Modality",rules:[{required:!0,message:e.$t("common:ruleMessage:specify"),trigger:"blur"}]}},[i("el-radio-group",{model:{value:e.noneDicomForm.Modality,callback:function(t){e.$set(e.noneDicomForm,"Modality",t)},expression:"noneDicomForm.Modality"}},e._l(e.trialModalitys,(function(e){return i("el-radio",{directives:[{name:"show",rawName:"v-show",value:""!==e,expression:"m !== ''"}],key:e,staticStyle:{"margin-bottom":"15px"},attrs:{label:e}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:audit:table:nonDicomsBodypart"),prop:"BodyParts",rules:[{required:!0,message:e.$t("common:ruleMessage:specify"),trigger:"blur"}]}},[i("el-checkbox-group",{model:{value:e.noneDicomForm.BodyParts,callback:function(t){e.$set(e.noneDicomForm,"BodyParts",t)},expression:"noneDicomForm.BodyParts"}},e._l(e.trialBodyPartTypes,(function(e){return i("el-checkbox",{key:e,attrs:{label:e}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:audit:table:nonDicomsStudyDate"),prop:"ImageDate"}},[i("el-date-picker",{staticStyle:{width:"100%"},attrs:{disabled:"",type:"date","picker-options":e.pickerOption,"value-format":"yyyy-MM-dd",format:"yyyy-MM-dd"},model:{value:e.noneDicomForm.ImageDate,callback:function(t){e.$set(e.noneDicomForm,"ImageDate",t)},expression:"noneDicomForm.ImageDate"}})],1)],1)],1),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){e.editNoneDicomVisible=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{loading:e.btnLoading,size:"small",type:"primary"},on:{click:e.handleUpdateNoneDicomInfo}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)]):e._e(),e._v(" "),e.closeQuestionVisible?i("el-dialog",{attrs:{visible:e.closeQuestionVisible,"close-on-click-modal":!1,"append-to-body":"","custom-class":"base-dialog-wrapper",width:"600px",title:e.$t("trials:qcQuality:dialogTitle:closeQuestion")},on:{"update:visible":function(t){e.closeQuestionVisible=t}}},[i("div",{staticStyle:{padding:"10px",border:"1px solid #e0e0e0","max-height":"650px","overflow-y":"auto"}},[i("el-form",{ref:"closeQuestionForm",attrs:{model:e.closeQuestionForm,size:"small","label-width":"120px"}},[i("el-form-item",{attrs:{label:e.$t("trials:qcQuality:label:closeReason"),prop:"Type",rules:[{required:!0,message:e.$t("common:ruleMessage:select")}]}},[i("el-radio-group",{model:{value:e.closeQuestionForm.Type,callback:function(t){e.$set(e.closeQuestionForm,"Type",t)},expression:"closeQuestionForm.Type"}},[i("el-radio",{attrs:{label:1}},[e._v(e._s(e.$t("trials:qcQuality:radio:reason1")))]),e._v(" "),i("el-radio",{attrs:{label:2}},[e._v(e._s(e.$t("trials:qcQuality:radio:reason2")))])],1)],1),e._v(" "),2===e.closeQuestionForm.Type?i("el-form-item",{attrs:{label:e.$t("trials:consistencyCheck:label:closereason"),prop:"Remake",rules:[{required:!0,message:e.$t("common:ruleMessage:specify")}]}},[i("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4}},model:{value:e.closeQuestionForm.Remake,callback:function(t){e.$set(e.closeQuestionForm,"Remake",t)},expression:"closeQuestionForm.Remake"}})],1):e._e()],1)],1),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{disabled:e.closeBtnLoading,size:"small",type:"primary"},on:{click:function(t){e.closeQuestionVisible=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{loading:e.closeBtnLoading,size:"small",type:"primary"},on:{click:e.handleCloseQuestion}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)]):e._e(),e._v(" "),e.imgObj.visible?i("el-dialog",{attrs:{visible:e.imgObj.visible,title:e.$t("trials:uploadNonDicoms:dialogTitle:preview"),"append-to-body":"",width:"565px"},on:{"update:visible":function(t){return e.$set(e.imgObj,"visible",t)}}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.imgObj.loading,expression:"imgObj.loading"}],staticClass:"base-modal-body",staticStyle:{border:"2px solid #ccc",padding:"10px"}},[i("el-image",{staticStyle:{height:"500px",width:"500px"},attrs:{src:"/api"+e.imgObj.url,fit:"fit"},on:{error:function(t){e.imgObj.loading=!1},load:function(t){e.imgObj.loading=!1}}})],1)]):e._e()],1),e._v(" "),i("div",{staticClass:"function-wrapper"},[i("el-button",{attrs:{disabled:e.isAudit,size:"small",type:"primary",round:""},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("trials:audit:button:save"))+"\n ")]),e._v(" "),i("el-button",{attrs:{disabled:e.isAudit,size:"small",type:"primary",round:""},on:{click:e.handleQC}},[e._v("\n "+e._s(e.$t("trials:audit:button:question"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",round:""},on:{click:e.handleHistoryQC}},[e._v("\n "+e._s(e.$t("trials:audit:button:historicalQuestions")+"("+(void 0!==e.relationInfo.TotalChallengeCount?e.relationInfo.TotalChallengeCount:0)+", "+(void 0!==e.relationInfo.NotClosedChallengeCount?e.relationInfo.NotClosedChallengeCount:0)+")")+"\n ")]),e._v(" "),i("el-button",{attrs:{disabled:e.isAudit,size:"small",type:"primary",round:""},on:{click:function(t){return e.handleQCState(8)}}},[e._v("\n "+e._s(e.$t("trials:audit:button:auditPassed"))+"\n ")])],1)])},a=[],r=(i("6b54"),i("96cf"),i("3b8d")),o=(i("a481"),i("db72")),s=(i("20d6"),i("ac6a"),i("28a5"),i("c5f6"),i("3e42")),l=i("9a3b"),c=i("86a6"),u=i("901f"),d=i("6d22"),f=i("c1df"),h=i.n(f),p=i("2fd0"),m=i("179b"),g=i("5f87"),v=i("7a9e"),b={name:"QualityAssurance",components:{ChatForm:u["default"],ClinicalData:p["default"],QuestionForm:d["default"],SignForm:m["default"]},props:{data:{type:Object,default:function(){return{}}},disabled:{type:Boolean,default:!1},qType:{type:Number,default:1}},data:function(){return{activeName:this.data.DicomStudyCount>0?"dicom":"none-dicom",questionForm:{},qCQuestionAnswerList:[],studyList:[],seriesList:[],relationInfo:{},noneDicomStudyList:[],qcForm:{subjectVisitId:"",challengeType:"",content:"",actionContent:"",deadlineTime:"",qcContent:""},qcVisible:!1,chatVisible:!1,loading:!1,btnLoading:!1,historyVisible:!1,historyList:[],historyLoading:!1,editStudyInfoVisible:!1,studyForm:{StudyCode:"",IsDicomData:!0,Modalities:"",BodyPartForEdit:[],SeriesCount:null,StudyTime:""},currentQCRow:{},isAudit:!1,qcType:"",trialBodyPartTypes:[],trialModalitys:[],signVisible:!1,signCode:"",auditState:null,currentNoneDicomId:"",editNoneDicomVisible:!1,noneDicomForm:{Id:"",CodeView:"",BodyParts:[],Modality:"",ImageDate:""},subjectClinicalData:{},moment:h.a,currentQCType:null,currentUser:zzSessionStorage.getItem("userName"),pickerOption:{disabledDate:function(e){return e.getTime()>Date.now()}},isHaveFirstGiveMedicineDate:!1,baseDate:"",upperLimit:"",lowerLimit:"",closeQuestionForm:{Id:"",SubjectVisitId:"",Type:null,Reason:"",Remake:""},closeBtnLoading:!1,closeQuestionVisible:!1,trialId:"",dictionaryList:{},currentSeriesIsReading:!1,currentSeriesIsDeleted:!1,imgObj:{url:"",visible:!1,loading:!1},open:null}},mounted:function(){this.disabled?(this.isAudit=!0,this.currentQCType=this.qType):this.currentQCType=this.data.AuditState<6?1:2,window.addEventListener("message",this.receiveMsg),this.trialId=this.$route.query.trialId,this.getQCInfo(),this.getDicData()},methods:{getQCInfo:function(){var e=this;this.loading=!0,Object(s["he"])(this.data.Id,this.data.QCProcessEnum,this.currentQCType).then((function(t){if(e.qCQuestionAnswerList=t.Result.QCQuestionAnswerList,e.studyList=t.Result.StudyList,e.seriesList=t.Result.SeriesList,e.noneDicomStudyList=t.Result.NoneDicomStudyList,e.relationInfo=t.Result.RelationInfo,e.trialBodyPartTypes=e.relationInfo.TrialBodyPartTypes?e.relationInfo.TrialBodyPartTypes.trim().split("|"):[],e.trialModalitys=e.relationInfo.TrialModalitys?e.relationInfo.TrialModalitys.trim().split("|"):[],e.subjectClinicalData=t.Result.SubjectClinicalData,e.baseDate=t.Result.RelationInfo.SubjectFirstGiveMedicineTime,e.baseDate){var i=1*t.Result.RelationInfo.VisitDay+1*t.Result.RelationInfo.VisitWindowLeft;e.upperLimit=h()(e.baseDate,"YYYY-MM-DD").add(i,"days").format("YYYY-MM-DD");var n=1*t.Result.RelationInfo.VisitDay+1*t.Result.RelationInfo.VisitWindowRight;e.lowerLimit=h()(e.baseDate,"YYYY-MM-DD").add(n,"days").format("YYYY-MM-DD")}e.isHaveFirstGiveMedicineDate=t.Result.RelationInfo.IsHaveFirstGiveMedicineDate,e.loading=!1})).catch((function(){e.loading=!1}))},getCheckList:function(){var e=this;this.loading=!0,Object(s["Hc"])(this.trialId,this.data.Id,this.data.QCProcessEnum,this.currentQCType).then((function(t){e.loading=!1,t.Result.forEach((function(t,i){e.$set(e.qCQuestionAnswerList[i],"Id",t.Id)}))})).catch((function(){e.loading=!1}))},handleSave:function(e){var t=this;return new Promise((function(i){t.$refs["questions"].submit().then((function(n){var a=[];n.forEach((function(e){var i=t.qCQuestionAnswerList.findIndex((function(t){return t.TrialQCQuestionConfigureId===e.Id}));i>-1&&a.push({id:t.qCQuestionAnswerList[i].Id,answer:e.answer,trialQCQuestionConfigureId:e.Id})})),t.loading=!0,Object(s["p"])(t.trialId,t.data.Id,t.data.QCProcessEnum,t.currentQCType,a).then((function(n){t.loading=!1,n.IsSuccess&&(!0!==e&&t.$message.success(t.$t("common:message:savedSuccessfully")),t.getCheckList(),i(!0))})).catch((function(){t.loading=!1,i(!1)}))})).catch((function(){t.loading=!1,i(!1)}))}))},handleSaveQC:function(){var e=this;this.$refs["qcForm"].validate((function(t){if(t){e.btnLoading=!0,e.qcForm.subjectVisitId=e.data.Id;var i=[],n=[],a=[];if(e.qcForm.qcContent.forEach((function(t){if(t.isSelect){n.push("".concat(t.keyName));var r="".concat(t.keyName," <br>");t.keyValue&&(r="".concat(r).concat(e.$t("trials:audit:form:questionSummary"),"").concat(t.keyValue,"<br>")),t.actionContent&&(a.push("".concat(t.actionContent)),r="".concat(r).concat(e.$t("trials:audit:form:actionMatters"),"").concat(t.actionContent,"<br>")),i.push(r)}})),0===i.length)return e.$message.error(e.$t("trials:audit:message:qsContentIsNull")),void(e.btnLoading=!1);e.qcForm.content=i.join("|"),e.qcForm.challengeType=n.join("|"),e.qcForm.actionContent=a.join("|");var r={challengeType:e.qcForm.challengeType,subjectVisitId:e.qcForm.subjectVisitId,content:e.qcForm.content,actionContent:e.qcForm.actionContent,reuploadEnum:0,deadlineTime:e.qcForm.deadlineTime};Object(s["o"])(e.trialId,e.data.QCProcessEnum,e.currentQCType,r).then((function(t){e.btnLoading=!1,t.IsSuccess&&(e.$message.success(e.$t("common:message:savedSuccessfully")),e.qcVisible=!1,e.relationInfo.TotalChallengeCount++,e.relationInfo.NotClosedChallengeCount++)})).catch((function(){e.btnLoading=!1}))}}))},handleQC:function(){var e=this;this.loading=!0,Object(s["If"])(this.trialId,this.data.Id,this.currentQCType).then((function(t){e.loading=!1,t.IsSuccess&&e.renderQCForm()})).catch((function(){e.loading=!1}))},handleQCVerify:function(){var e=this;return this.loading=!0,new Promise((function(t){Object(s["If"])(e.trialId,e.data.Id,e.currentQCType).then((function(i){e.loading=!1,i.IsSuccess?t(!0):t(!1)})).catch((function(){e.loading=!1,t(!1)}))}))},renderQCForm:function(){var e=[],t=this.dictionaryList["ChallengeType"];t.forEach((function(t){e.push({keyName:t.Value,keyValue:"",isSelect:!1})}));var i=!1;this.isHaveFirstGiveMedicineDate&&this.baseDate&&(i=this.isHyperwindow()),i&&e.push({keyName:this.$t("trials:audit:message:qsOverWindow"),keyValue:"".concat(this.$t("trials:audit:message:qsOverWindow1"),"").concat(this.upperLimit,"~").concat(this.lowerLimit,"").concat(this.$t("trials:audit:message:qsOverWindow2"),"").concat(h()(this.relationInfo.EarliestScanDate).format("YYYY-MM-DD"),"~").concat(h()(this.relationInfo.LatestScanDate).format("YYYY-MM-DD"),",").concat(this.$t("trials:audit:message:qsOverWindow3")),isSelect:!1,actionContent:this.$t("trials:audit:message:qsOverWindow4")}),this.qcForm.qcContent=e;var n=this.relationInfo.TrialChangeDefalutDays;this.qcForm.deadlineTime=h()().add(1*n,"days").format("YYYY-MM-DD HH:mm:ss"),this.qcVisible=!0},isHyperwindow:function(){var e=!1;return(this.relationInfo.EarliestScanDate<this.upperLimit||this.relationInfo.LatestScanDate>this.lowerLimit)&&(e=!0),e},getDicData:function(){var e=this;Object(c["c"])(["ChallengeType"]).then((function(t){e.dictionaryList=Object(o["a"])({},t.Result)}))},handleHistoryQC:function(){this.historyVisible=!0,this.getHistoryInfo()},getHistoryInfo:function(){var e=this;this.historyLoading=!0,Object(s["gc"])(this.data.Id,this.data.QCProcessEnum,this.currentQCType).then((function(t){e.historyList=t.Result,e.historyLoading=!1})).catch((function(){e.historyLoading=!1}))},handleReply:function(e){var t=this;this.historyLoading=!0,Object(s["Dc"])(e.Id).then((function(i){t.historyLoading=!1,i.IsSuccess&&(i.Result.length>0&&Object.assign(e,i.Result[0]),t.currentQCRow=Object(o["a"])({},e),t.chatVisible=!0)})).catch((function(){t.historyLoading=!1}))},getDialogList:function(){var e=this;this.historyLoading=!0,Object(s["Dc"])(this.currentQCRow.Id).then((function(t){if(e.historyLoading=!1,t.IsSuccess&&t.Result.length>0){var i=e.historyList.findIndex((function(t){return t.Id===e.currentQCRow.Id}));i>-1&&(e.currentQCRow=Object.assign(e.historyList[i],t.Result[0]))}})).catch((function(){e.historyLoading=!1}))},handleCloseQuestion:function(){var e=this;this.$refs["closeQuestionForm"].validate((function(t){if(t){e.closeBtnLoading=!0,1===e.closeQuestionForm.Type?e.closeQuestionForm.Reason=e.$t("trials:qcQuality:message:problemSolved"):2===e.closeQuestionForm.Type&&(e.closeQuestionForm.Reason="".concat(e.$t("trials:qcQuality:message:problemNotSolved"),"<br/><br/>").concat(e.$t("trials:consistencyCheck:label:closereason"),":").concat(e.closeQuestionForm.Remake));var i={TrialId:e.data.TrialId,QcChallengeId:e.closeQuestionForm.Id,SubjectVisitId:e.data.Id,CloseEnum:e.closeQuestionForm.Type,CloseReason:e.closeQuestionForm.Reason};Object(s["X"])(i).then((function(t){e.closeBtnLoading=!1,t.IsSuccess&&(e.getHistoryInfo(),e.$message.success(e.$t("trials:qcQuality:message:closedSuccessfully")),e.closeQuestionVisible=!1,e.relationInfo.NotClosedChallengeCount--)})).catch((function(){e.closeBtnLoading=!1}))}}))},handleCloseQC:function(e){this.closeQuestionForm=Object.assign(this.closeQuestionForm,e),this.closeQuestionForm.CurrentQCType=this.currentQCType,this.closeQuestionForm.AuditState=this.data.AuditState,this.closeQuestionForm.TrialQCProcess=this.data.QCProcessEnum,this.closeQuestionForm.Type=null,this.closeQuestionForm.Reason="",this.closeQuestionForm.Remake="",this.closeQuestionVisible=!0},handleQCInfo:function(e){this.currentQCRow=Object(o["a"])({},e),this.chatVisible=!0},changeReadingStatus:function(e,t){var i=this,n="";e?(n=this.$t("trials:audit:label:setSeriesReading"),t.IsReading=!1):(n=this.$t("trials:audit:label:setSeriesNotReading"),t.IsReading=!0);var a=this.$t("trials:audit:message:changeSeriesStatus").replace("xxx",n);this.$confirm(a,{distinguishCancelAndClose:!0,type:"warning"}).then((function(){var e=t.IsReading?1:2;i.loading=!0,Object(s["Re"])(i.trialId,i.data.Id,t.StudyId,t.Id,e).then((function(e){i.loading=!1,e.IsSuccess&&(i.$message.success(i.$t("common:message:savedSuccessfully")),i.getStudyInfo())})).catch((function(){i.loading=!1}))})).catch((function(){}))},changeDeleteStatus:function(e,t){var i=this,n="";e?(n=this.$t("trials:audit:label:setSeriesDeleted"),t.IsDeleted=!1):(n=this.$t("trials:audit:label:setSeriesNotDelete"),t.IsDeleted=!0);var a=this.$t("trials:audit:message:changeSeriesStatus").replace("xxx",n);this.$confirm(a,{distinguishCancelAndClose:!0,type:"warning"}).then((function(){var e=t.IsDeleted?5:4;i.loading=!0,Object(s["Re"])(i.trialId,i.data.Id,t.StudyId,t.Id,e).then((function(e){i.loading=!1,e.IsSuccess&&(i.$message.success(i.$t("common:message:savedSuccessfully")),i.getStudyInfo())})).catch((function(){i.loading=!1}))})).catch((function(){}))},receiveMsg:function(e){"refreshSeriesList"===e.data.type&&this.getStudyInfo()},getStudyInfo:function(){var e=this;this.loading=!0,Object(s["ie"])(this.data.Id).then((function(t){e.loading=!1,e.studyList=t.Result.StudyList,e.seriesList=t.Result.SeriesList})).catch((function(){e.loading=!1}))},handleQCState:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){var i,n,a,r=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(7!==t){e.next=5;break}return this.signCode=this.getSignCode(t),this.signVisible=!0,this.auditState=t,e.abrupt("return");case 5:if(8!==t){e.next=12;break}if(i=!0,n=[],this.studyList.forEach((function(e){e.BodyPartForEdit||(i=!1,n.push(e.StudyCode))})),i){e.next=12;break}return this.$message.error(this.$t("trials:qcQuality:title:title1").replace("xxx",n.toString())),e.abrupt("return");case 12:return this.loading=!0,e.next=15,this.handleSave(!0);case 15:if(a=e.sent,a){e.next=18;break}return e.abrupt("return");case 18:Object(s["Gf"])(this.trialId,this.data.Id).then((function(e){r.loading=!1,e.IsSuccess&&(r.signCode=r.getSignCode(t),r.signVisible=!0,r.auditState=t)})).catch((function(){r.loading=!1}));case 19:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),getSignCode:function(e){if(1===this.relationInfo.TrialQCProcessEnum&&8===e){var t=v["default"].processSignature.QCSingleReviewPassed;return t}if(1===this.relationInfo.TrialQCProcessEnum&&7===e){var i=v["default"].processSignature.QCSingleReviewFailed;return i}if(2===this.relationInfo.TrialQCProcessEnum&&8===e&&1===this.currentQCType){var n=v["default"].processSignature.PreliminaryReviewOfQCPassed;return n}if(2===this.relationInfo.TrialQCProcessEnum&&7===e&&1===this.currentQCType){var a=v["default"].processSignature.PreliminaryReviewOfQCFailed;return a}if(2===this.relationInfo.TrialQCProcessEnum&&8===e&&2===this.currentQCType){var r=v["default"].processSignature.SecondaryReviewOfQCPassed;return r}if(2===this.relationInfo.TrialQCProcessEnum&&7===e&&2===this.currentQCType){var o=v["default"].processSignature.SecondaryReviewOfQCFailed;return o}},closeSignDialog:function(e,t){e?this.setQCStatus(t):this.signVisible=!1},setQCStatus:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){var i,n=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.loading=!0,i={data:{TrialId:this.trialId,SubjectVisitId:this.data.Id,AuditState:this.auditState},signInfo:t},Object(l["c"])(i).then((function(e){n.loading=!1,e.IsSuccess&&(n.$refs["signForm"].btnLoading=!1,n.signVisible=!1,n.$message.success(n.$t("common:message:savedSuccessfully")),n.isAudit=!0,n.$forceUpdate(),n.$emit("getList"),n.getNextQCInfo())})).catch((function(){n.loading=!1,n.$refs["signForm"].btnLoading=!1}));case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),getNextQCInfo:function(){var e=this,t=this.$t("trials:qcQuality:title:title2");this.$confirm(t,{type:"warning",distinguishCancelAndClose:!0}).then((function(){e.loading=!0,e.$emit("nextTask")})).catch((function(t){e.loading=!1}))},tableRowClassName:function(e){var t=e.row;e.rowIndex;return t.IsDeleted?"delete-row":""},handleEditStudy:function(e){this.editStudyInfoVisible=!0,this.studyForm=Object(o["a"])({},e);var t=[];-1!==this.studyForm.BodyPartForEdit.indexOf("|")?t=this.studyForm.BodyPartForEdit.split("|"):""!==this.studyForm.BodyPartForEdit&&t.push(this.studyForm.BodyPartForEdit),this.$set(this.studyForm,"Modality",e.ModalityForEdit),this.studyForm.BodyPartForEdit=t},handleUpdateStudyInfo:function(){var e=this;this.$refs["studyForm"].validate((function(t){if(t){e.btnLoading=!0,e.studyForm.BodyPart=e.studyForm.BodyPartForEdit.join("|");var i={id:e.studyForm.StudyId,subjectVisitId:e.data.Id,type:1,modality:e.studyForm.Modality,bodyPart:e.studyForm.BodyPart};Object(s["qf"])(e.data.TrialId,i).then((function(t){e.btnLoading=!1,t.IsSuccess&&(e.getStudyInfo(),e.$message.success(e.$t("common:message:savedSuccessfully")),e.editStudyInfoVisible=!1)})).catch((function(){e.btnLoading=!1}))}}))},refreshList:function(){2===this.currentQCType?(this.currentQCType=1,this.getHistoryInfo()):this.getHistoryInfo(),this.$emit("getList")},handleEditNoneDicomInfo:function(e){var t=Object(o["a"])({},e),i=t.CodeView,n=t.Id,a=t.BodyPart,r=t.Modality,s=t.ImageDate;this.noneDicomForm.CodeView=i,this.noneDicomForm.Id=n,this.noneDicomForm.BodyPart=a,this.noneDicomForm.Modality=r,this.noneDicomForm.ImageDate=s,this.noneDicomForm.BodyParts=a.split(", "),this.editNoneDicomVisible=!0},handleUpdateNoneDicomInfo:function(){var e=this;this.$refs.noneDicomForm.validate((function(t){t&&(e.btnLoading=!0,e.noneDicomForm.BodyPart=e.noneDicomForm.BodyParts.join(", "),e.noneDicomForm.TrialId=e.trialId,e.noneDicomForm.SiteId=e.data.SiteId,e.noneDicomForm.SubjectId=e.data.SubjectId,e.noneDicomForm.SubjectVisitId=e.data.Id,Object(s["k"])(e.noneDicomForm).then((function(t){e.btnLoading=!1,t.IsSuccess&&(e.getNoneDicomList(),e.$message.success(e.$t("common:message:savedSuccessfully")),e.editNoneDicomVisible=!1)})).catch((function(){e.btnLoading=!1})))}))},getNoneDicomList:function(){var e=this;this.loading=!0,Object(s["xc"])(this.data.Id).then((function(t){e.noneDicomStudyList=t.Result,e.loading=!1})).catch((function(){e.loading=!1}))},previewFile:function(e){this.imgObj.url=e.FullFilePath,this.imgObj.loading=!0,this.imgObj.visible=!0},handleViewImages:function(){var e=Object(g["a"])(),t=this.$router.resolve({path:"/showvisitdicoms?trialId=".concat(this.data.TrialId,"&visitInfo=").concat(this.data.VisitName,"(").concat(this.data.VisitNum,")&subjectVisitId=").concat(this.data.Id,"&showDelete=").concat(this.isAudit?0:1,"&TokenKey=").concat(e)});window.open(t.href,"_blank")},handleViewReadingImages:function(){var e=Object(g["a"])(),t=this.$router.resolve({path:"/showvisitdicoms?trialId=".concat(this.data.TrialId,"&visitInfo=").concat(this.data.VisitName,"(").concat(this.data.VisitNum,")&subjectVisitId=").concat(this.data.Id,"&isReading=1&TokenKey=").concat(e)});window.open(t.href,"_blank")},handlePreviewStudy:function(e){var t=Object(g["a"])(),i=this.$router.resolve({path:"/showdicom?trialId=".concat(this.trialId,"&subjectVisitId=").concat(this.data.Id,"&studyId=").concat(e.StudyId,"&showDelete=").concat(this.isAudit?0:1,"&TokenKey=").concat(t,"&type=Study")});window.open(i.href,"_blank")},handlePreviewInstance:function(e){var t=Object(g["a"])(),i=this.$router.resolve({path:"/showdicom?trialId=".concat(this.trialId,"&studyId=").concat(e.StudyId,"&studyCode=").concat(e.StudyCode,"&modality=").concat(e.Modality,"&description=").concat(e.Description,"&seriesId=").concat(e.Id,"&seriesNumber=").concat(e.SeriesNumber,"&showDelete=").concat(this.isAudit?0:1,"&subjectVisitId=").concat(this.data.Id,"&TokenKey=").concat(t,"&type=Series")});this.open=window.open(i.href,"_blank")},handleViewAllNoneDicoms:function(){var e=Object(g["a"])(),t=this.$router.resolve({path:"/showNoneDicoms?subjectVisitId=".concat(this.data.Id,"&TokenKey=").concat(e)});window.open(t.href,"_blank")},handlePreviewNoneDicomFiles:function(e){var t=Object(g["a"])(),i=this.$router.resolve({path:"/showNoneDicoms?subjectVisitId=".concat(this.data.Id,"&studyId=").concat(e.Id,"&TokenKey=").concat(t)});window.open(i.href,"_blank")}}},y=b,w=(i("0d82"),i("2877")),_=Object(w["a"])(y,n,a,!1,null,"005ce119",null);t["default"]=_.exports},9843:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%",height:"100%"}},[i("transition",{attrs:{name:"viewer-fade"}},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.urlList.length>0,expression:"urlList.length > 0"}],ref:"image-viewer__wrapper",staticClass:"image-viewer__wrapper",style:{"z-index":5},attrs:{tabindex:"-1"}},[i("span",{staticClass:"image-viewer_desc"},[e._v("\n "+e._s(e.index+1+" / "+e.urlList.length)+"\n ")]),e._v(" "),i("span",{staticClass:"image-viewer__btn image-viewer__close",on:{click:e.hide}},[i("i",{staticClass:"el-icon-close"})]),e._v(" "),e.isSingle?e._e():[i("span",{staticClass:"image-viewer__btn image-viewer__prev",class:{"is-disabled":!e.infinite&&e.isFirst},on:{click:e.prev}},[i("i",{staticClass:"el-icon-arrow-left"})]),e._v(" "),i("span",{staticClass:"el-image-viewer__btn el-image-viewer__next",class:{"is-disabled":!e.infinite&&e.isLast},on:{click:e.next}},[i("i",{staticClass:"el-icon-arrow-right"})])],e._v(" "),i("div",{staticClass:"image-viewer__btn image-viewer__actions"},[i("div",{staticClass:"image-viewer__actions__inner"},[i("i",{staticClass:"el-icon-zoom-out",on:{click:function(t){return e.handleActions("zoomOut")}}}),e._v(" "),i("i",{staticClass:"el-icon-zoom-in",on:{click:function(t){return e.handleActions("zoomIn")}}}),e._v(" "),i("i",{staticClass:"el-image-viewer__actions__divider"}),e._v(" "),i("i",{staticClass:"el-icon-c-scale-to-original",on:{click:e.toggleMode}}),e._v(" "),i("i",{staticClass:"el-image-viewer__actions__divider"}),e._v(" "),i("i",{staticClass:"el-icon-refresh-left",on:{click:function(t){return e.handleActions("anticlocelise")}}}),e._v(" "),i("i",{staticClass:"el-icon-refresh-right",on:{click:function(t){return e.handleActions("clocelise")}}}),e._v(" "),e.readingTaskState<2?i("i",{staticClass:"el-icon-bottom-right",style:{cursor:e.isToolDisabled||e.readingTaskState>=2?"not-allowed":"pointer"},on:{click:e.handleDrawArrow}}):e._e(),e._v(" "),e.readingTaskState<2?i("svg-icon",{staticClass:"svg-icon",style:{cursor:e.isToolDisabled||e.readingTaskState>=2?"not-allowed":"pointer"},attrs:{"icon-class":"rectangle"},on:{click:e.handleDrawRectangle}}):e._e()],1)]),e._v(" "),i("div",{staticClass:"image-viewer__canvas",attrs:{id:"image-viewer__canvas"}},[e.canvasSize.width&&e.canvasPosition.y?i("canvas",{style:e.imgStyle,attrs:{id:"canvas",height:e.canvasSize.height,width:e.canvasSize.width},on:{mousedown:e.handleMouseDown,mousemove:e.handleMouseMove,mouseup:e.handleMouseUp,contextmenu:e.handleContextmenu}}):e._e()])],2)])],1)},a=[],r=i("db72"),o=(i("20d6"),i("ac6a"),i("96cf"),i("3b8d")),s=(i("c5f6"),i("526f")),l=i("6bd7"),c=i("4360"),u=Object(l["a"])()?"DOMMouseScroll":"mousewheel",d="",f={name:"NoneDicomsCanvas",props:{readingTaskState:{type:Number,default:2},urlList:{type:Array,default:function(){return[]}},studyCode:{type:String,default:""},bodyPart:{type:String,default:""},modality:{type:String,default:""},studyId:{type:String,default:""},onSwitch:{type:Function,default:function(){}},onClose:{type:Function,default:function(){}},initialIndex:{type:Number,default:0}},data:function(){return{loading:!1,index:this.initialIndex,isShow:!1,infinite:!0,transform:{scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1},imgUrl:"",ctx:null,canvasPosition:{x:"",y:""},canvasSize:{height:"",width:""},canvasMousePosition:{x:"",y:""},mousePosition:{x:"",y:""},color:"rgb(255, 0, 0)",lineWidth:2,isMouseDown:!1,canvasMouseStart:{x:"",y:""},model:"",currentImg:"",imgId:"",currentDrawData:{},canvasData:[],imgZoom:1,isToolDisabled:!1,lesionName:"",visitTaskId:"",isInit:!1,imgSize:{height:"",width:""}}},computed:{isSingle:function(){return this.urlList.length<=1},isFirst:function(){return 0===this.index},isLast:function(){return this.index===this.urlList.length-1},imgStyle:function(){var e=this.transform,t=e.scale,i=e.deg,n=e.offsetX,a=e.offsetY,r=e.enableTransition,o={transform:"scale(".concat(t,") rotate(").concat(i,"deg)"),transition:r?"transform .3s":"","margin-left":"".concat(n,"px"),"margin-top":"".concat(a,"px")};return o}},watch:{initialIndex:{immediate:!0,handler:function(e){this.index=e}},index:{immediate:!0,handler:function(e){this.reset(),this.onSwitch(e),this.imgUrl=this.urlList[e].Path,this.imgId=this.urlList[e].Id,this.loadImage()}}},mounted:function(){var e=this;window.addEventListener("message",this.receiveMsg),document.getElementById("image-viewer__canvas").onmousewheel=function(t){return t.deltaY>0?e.handleActions("zoomOut",{zoomRate:.015,enableTransition:!1}):e.handleActions("zoomIn",{zoomRate:.015,enableTransition:!1}),!1},this.deviceSupportInstall()},methods:{getCanvasData:function(){var e=this;return new Promise(function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(i){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.visitTaskId=e.$router.currentRoute.query.visitTaskId,e.canvasData=[],t.next=4,c["a"].dispatch("reading/getMeasuredData",e.visitTaskId);case 4:return t.next=6,c["a"].dispatch("reading/getNoneDicomMeasuredData",e.visitTaskId).then((function(t){t.forEach((function(t){t&&t.MeasureData&&e.canvasData.push(t.MeasureData)})),sessionStorage.setItem("measureData",e.canvasData)}));case 6:i();case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())},loadImage:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,i=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.loading=!0,this.isInit){e.next=5;break}return e.next=4,this.getCanvasData();case 4:this.isInit=!0;case 5:return t=new Image,t.src=this.imgUrl,e.abrupt("return",new Promise((function(e){t.onload=function(){i.currentImg=t,i.loading=!1,i.initCanvas(t),e(t)}})));case 8:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),handleDrawArrow:function(){var e={type:"isCanActiveNoneDicomTool",data:"",toolName:"ArrowAnnotate"};window.opener.postMessage(e,window.location)},handleDrawRectangle:function(){var e={type:"isCanActiveNoneDicomTool",data:"",toolName:"RectangleRoi"};window.opener.postMessage(e,window.location)},receiveMsg:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){var i,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(console.log("nonedicoms",t.data.type),"isCanActiveNoneDicomTool"!==t.data.type){e.next=12;break}if(!t.data.data.isCanActiveTool){e.next=7;break}this.model=t.data.data.toolName,this.lesionName=t.data.data.lesionName,e.next=10;break;case 7:if(t.data.data.reason){e.next=9;break}return e.abrupt("return");case 9:this.$confirm(t.data.data.reason,{type:"warning",distinguishCancelAndClose:!0,showCancelButton:!1}).then((function(){}));case 10:e.next=40;break;case 12:if("removeNoneDicomMeasureData"!==t.data.type){e.next=24;break}return i=this.canvasData.findIndex((function(e){return e.data.uuid===t.data.data.data.uuid})),this.canvasData.splice(i,1),d.clearRect(0,0,this.canvasSize.width,this.canvasSize.height),e.next=18,d.drawImage(this.currentImg,0,0,this.canvasSize.width,this.canvasSize.height);case 18:this.drawToArr(),this.isMouseDown=!1,this.model="",this.lesionName="",e.next=40;break;case 24:if("addNoneDicomMeasureData"!==t.data.type){e.next=40;break}n=this.canvasData.length-1;case 26:if(!(n>=0)){e.next=33;break}if(!this.canvasData[n]||!this.canvasData[n].data||this.canvasData[n].data.uuid!==t.data.data.data.uuid){e.next=30;break}return this.canvasData[n]=t.data.data,e.abrupt("break",33);case 30:n--,e.next=26;break;case 33:return d.clearRect(0,0,this.canvasSize.width,this.canvasSize.height),e.next=36,d.drawImage(this.currentImg,0,0,this.canvasSize.width,this.canvasSize.height);case 36:this.drawToArr(),this.isMouseDown=!1,this.model="",this.lesionName="";case 40:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),initCanvas:function(e){var t=this;this.loading=!0,this.canvasSize.height=e.height,this.canvasSize.width=e.width,this.imgSize.height=e.height,this.imgSize.width=e.width;var i=document.getElementsByClassName("image-viewer__canvas")[0];this.canvasPosition={x:i.offsetWidth/2-e.width/2,y:i.offsetHeight/2-e.height/2-25},this.$nextTick(Object(o["a"])(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return d=document.getElementById("canvas").getContext("2d"),i.next=3,d.drawImage(e,0,0,e.width,e.height);case 3:t.drawToArr(),t.loading=!1;case 5:case"end":return i.stop()}}),i)}))))},clearCanvas:function(){this.canvasData=[],this.currentDrawData={},d.clearRect(0,0,this.canvasSize.width,this.canvasSize.height),d.drawImage(this.currentImg,0,0,this.canvasSize.width,this.canvasSize.height)},handleContextmenu:function(e){e.preventDefault()},handleMouseDown:function(e){0===e.button&&(this.isMouseDown=!0,this.canvasMouseStart={x:e.offsetX,y:e.offsetY})},handleMouseMove:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.mousePosition={x:t.pageX,y:t.pageY},this.canvasMousePosition={x:t.offsetX,y:t.offsetY},(t.offsetX<0||t.offsetY<0||0===t.offsetX||0===t.offsetY)&&(this.isMsg=!1,this.isMouseDown=!1),this.isMouseDown){e.next=5;break}return e.abrupt("return");case 5:return d.clearRect(0,0,this.canvasSize.width,this.canvasSize.height),e.next=8,d.drawImage(this.currentImg,0,0,this.canvasSize.width,this.canvasSize.height);case 8:return e.next=10,this.drawToArr();case 10:"ArrowAnnotate"===this.model?this.drawArrowAnnotate(t):"RectangleRoi"===this.model&&this.drawRectangle(t);case 11:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),drawToArr:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.canvasData.forEach((function(e){if(e.instanceId===t.imgId)if("ArrowAnnotate"===e.type){var i,n,a=10,r=45,o=e.data.handles.start.x,s=e.data.handles.start.y,l=e.data.handles.end.x,c=e.data.handles.end.y,u=180*Math.atan2(s-c,o-l)/Math.PI,f=(u+r)*Math.PI/180,h=(u-r)*Math.PI/180,p=a*Math.cos(f),m=a*Math.sin(f),g=a*Math.cos(h),v=a*Math.sin(h);d.lineWidth=t.lineWidth,d.beginPath(),d.moveTo(o*t.imgZoom,s*t.imgZoom),d.lineTo(l*t.imgZoom,c*t.imgZoom),i=l+p,n=c+m,d.moveTo(i,n),d.lineTo(l,c),i=l+g,n=c+v,d.lineTo(i,n),t.drawText(d,{x:o,y:s},{x:l,y:c},e.data.remark,t.color),d.strokeStyle=t.color,d.stroke()}else"RectangleRoi"===e.type&&(d.lineWidth=t.lineWidth,d.beginPath(),d.strokeStyle=t.color,d.strokeRect(e.data.handles.start.x,e.data.handles.start.y,e.data.handles.end.x-e.data.handles.start.x,e.data.handles.end.y-e.data.handles.start.y),t.drawText(d,{x:e.data.handles.start.x,y:e.data.handles.start.y},{x:e.data.handles.end.x,y:e.data.handles.end.y},e.data.remark,t.color))}));case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),handleMouseUp:function(e){if(0===e.button){if("ArrowAnnotate"===this.model||"RectangleRoi"===this.model){for(var t in this.currentDrawData.data.handles)this.currentDrawData.data.handles[t].x=this.currentDrawData.data.handles[t].x/this.imgZoom,this.currentDrawData.data.handles[t].y=this.currentDrawData.data.handles[t].y/this.imgZoom;this.currentDrawData&&this.currentDrawData.data&&this.canvasData.push(this.currentDrawData)}this.isMouseDown=!1,this.model="",this.lesionName="",this.canvasMousePosition={x:e.offsetX,y:e.offsetY};var i={type:"setMeasurement",data:this.currentDrawData};window.opener.postMessage(i,window.location)}},drawArrowAnnotate:function(e){var t,i,n=10,a=45,r=this.canvasMouseStart.x,o=this.canvasMouseStart.y,s=e.offsetX,l=e.offsetY,c=180*Math.atan2(o-l,r-s)/Math.PI,u=(c+a)*Math.PI/180,f=(c-a)*Math.PI/180,h=n*Math.cos(u),p=n*Math.sin(u),m=n*Math.cos(f),g=n*Math.sin(f);d.lineWidth=this.lineWidth,d.beginPath(),d.strokeStyle=this.color,d.moveTo(this.canvasMouseStart.x,this.canvasMouseStart.y),d.lineTo(e.offsetX,e.offsetY),t=s+h,i=l+p,d.moveTo(t,i),d.lineTo(s,l),t=s+m,i=l+g,d.lineTo(t,i),this.drawText(d,{x:r,y:o},{x:s,y:l},this.lesionName,this.color),d.stroke(),this.currentDrawData={isDicomReading:!1,studyId:this.studyId,seriesId:"",instanceId:this.imgId,type:"ArrowAnnotate",data:{handles:{start:{x:this.canvasMouseStart.x,y:this.canvasMouseStart.y},end:{x:e.offsetX,y:e.offsetY}},remark:this.lesionName,uuid:"".concat(this.imgId,"-").concat(this.lesionName),toolName:"ArrowAnnotate",toolType:"ArrowAnnotate"}}},drawRectangle:function(e){d.beginPath(),d.strokeStyle=this.color,d.strokeRect(this.canvasMouseStart.x,this.canvasMouseStart.y,e.offsetX-this.canvasMouseStart.x,e.offsetY-this.canvasMouseStart.y),this.drawText(d,{x:this.canvasMouseStart.x,y:this.canvasMouseStart.y},{x:e.offsetX,y:e.offsetY},this.lesionName,this.color),this.currentDrawData={isDicomReading:!1,studyId:this.studyId,seriesId:"",instanceId:this.imgId,type:"RectangleRoi",data:{handles:{start:{x:this.canvasMouseStart.x,y:this.canvasMouseStart.y},end:{x:e.offsetX,y:e.offsetY}},remark:this.lesionName,uuid:"".concat(this.imgId,"-").concat(this.lesionName),toolName:"RectangleRoi",toolType:"RectangleRoi"}}},drawText:function(e,t,i,n,a){if(n&&""!==n){var r=5,o=this.textBoxWidth(e,n,r),s=12,l=s+10,c=Math.max(o,l)/2+r;i.x<t.x&&(c=-c);var u={x:i.x-o/2-c,y:i.y-l/2},d={width:o,height:r+s+r};d.left=u.x,d.top=u.y,e.textBaseline="top",e.font="".concat(s,"px Arial"),e.fillStyle=a,e.fillText(n,d.left+r,d.top+r+s+r)}},textBoxWidth:function(e,t,i){var n=e.measureText(t).width;return n+2*i},hide:function(){this.deviceSupportUninstall(),this.onClose()},deviceSupportInstall:function(){var e=this;this._keyDownHandler=function(t){t.stopPropagation();var i=t.keyCode;switch(i){case 27:e.hide();break;case 32:e.toggleMode();break;case 37:e.prev();break;case 38:e.handleActions("zoomIn");break;case 39:e.next();break;case 40:e.handleActions("zoomOut");break}},this._mouseWheelHandler=Object(l["b"])((function(t){var i=t.wheelDelta?t.wheelDelta:-t.detail;i>0?e.handleActions("zoomIn",{zoomRate:.015,enableTransition:!1}):e.handleActions("zoomOut",{zoomRate:.015,enableTransition:!1})})),Object(s["b"])(document,"keydown",this._keyDownHandler),Object(s["b"])(document,u,null)},deviceSupportUninstall:function(){Object(s["a"])(document,"keydown",this._keyDownHandler),Object(s["a"])(document,u,this._mouseWheelHandler),this._keyDownHandler=null,this._mouseWheelHandler=null},handleImgLoad:function(e){this.loading=!1},handleImgError:function(e){this.loading=!1,e.target.alt="加载失败"},reset:function(){this.transform={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}},toggleMode:function(){this.loading||this.reset()},prev:function(){if(!this.isFirst||this.infinite){var e=this.urlList.length;this.index=(this.index-1+e)%e}},next:function(){if(!this.isLast||this.infinite){var e=this.urlList.length;this.index=(this.index+1)%e}},handleActions:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.loading){var i=Object(r["a"])({zoomRate:.2,rotateDeg:90,enableTransition:!0},t),n=i.zoomRate,a=i.rotateDeg,o=i.enableTransition,s=this.transform;switch(e){case"zoomOut":s.scale>.2&&(s.scale=parseFloat((s.scale-n).toFixed(3)));break;case"zoomIn":s.scale<5&&(s.scale=parseFloat((s.scale+n).toFixed(3)));break;case"clocelise":s.deg+=a;break;case"anticlocelise":s.deg-=a;break}s.enableTransition=o}}}},h=f,p=(i("cea2"),i("2877")),m=Object(p["a"])(h,n,a,!1,null,"9de1d678",null);t["default"]=m.exports},9850:function(e,t,i){var n=i("401b"),a=i("1687"),r=n.applyTransform,o=Math.min,s=Math.max;function l(e,t,i,n){i<0&&(e+=i,i=-i),n<0&&(t+=n,n=-n),this.x=e,this.y=t,this.width=i,this.height=n}l.prototype={constructor:l,union:function(e){var t=o(e.x,this.x),i=o(e.y,this.y);this.width=s(e.x+e.width,this.x+this.width)-t,this.height=s(e.y+e.height,this.y+this.height)-i,this.x=t,this.y=i},applyTransform:function(){var e=[],t=[],i=[],n=[];return function(a){if(a){e[0]=i[0]=this.x,e[1]=n[1]=this.y,t[0]=n[0]=this.x+this.width,t[1]=i[1]=this.y+this.height,r(e,e,a),r(t,t,a),r(i,i,a),r(n,n,a),this.x=o(e[0],t[0],i[0],n[0]),this.y=o(e[1],t[1],i[1],n[1]);var l=s(e[0],t[0],i[0],n[0]),c=s(e[1],t[1],i[1],n[1]);this.width=l-this.x,this.height=c-this.y}}}(),calculateTransform:function(e){var t=this,i=e.width/t.width,n=e.height/t.height,r=a.create();return a.translate(r,r,[-t.x,-t.y]),a.scale(r,r,[i,n]),a.translate(r,r,[e.x,e.y]),r},intersect:function(e){if(!e)return!1;e instanceof l||(e=l.create(e));var t=this,i=t.x,n=t.x+t.width,a=t.y,r=t.y+t.height,o=e.x,s=e.x+e.width,c=e.y,u=e.y+e.height;return!(n<o||s<i||r<c||u<a)},contain:function(e,t){var i=this;return e>=i.x&&e<=i.x+i.width&&t>=i.y&&t<=i.y+i.height},clone:function(){return new l(this.x,this.y,this.width,this.height)},copy:function(e){this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},l.create=function(e){return new l(e.x,e.y,e.width,e.height)};var c=l;e.exports=c},98508:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"criterion-form-item"},[1===e.question.ShowQuestion&&~e.question.ParentTriggerValueList.indexOf(e.questionForm[e.question.ParentId])||0===e.question.ShowQuestion?i("el-form-item",{class:["group"===e.question.Type?"mb":"upload"===e.question.Type?"uploadWrapper":""],attrs:{label:""+e.question.QuestionName,prop:e.questionForm[e.question.Id],rules:[{required:(0===e.question.IsRequired||1===e.question.IsRequired&&e.question.RelevanceId&&!!~e.question.RelevanceValueList.indexOf(e.questionForm[e.question.RelevanceId]))&&"group"!==e.question.Type&&"summary"!==e.question.Type,message:"请注明",trigger:["blur","change"]}]}},["input"===e.question.Type?i("el-input",{attrs:{disabled:2===e.question.TableQuestionType},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"textarea"===e.question.Type?i("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4}},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"select"===e.question.Type?i("el-select",{attrs:{clearable:"",disabled:(2===e.question.TableQuestionType||2===e.question.QuestionGenre)&&!!e.question.DictionaryCode},on:{change:function(t){e.formItemChange(t,e.question)}},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},[1===e.question.TableQuestionType?e._l(e.organList,(function(t){return i("el-option",{key:t.Id,attrs:{label:t[e.question.DataTableColumn],value:t[e.question.DataTableColumn]}})})):3===e.question.TableQuestionType||3===e.question.QuestionGenre?e._l(e.$d[e.question.DictionaryCode],(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})})):2!==e.question.TableQuestionType&&2!==e.question.QuestionGenre||!e.question.DictionaryCode?e._l(e.question.TypeValue.split("|"),(function(e){return i("el-option",{key:e,attrs:{label:e,value:e}})})):e._l(e.$d[e.question.DictionaryCode],(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})}))],2):e._e(),e._v(" "),"radio"===e.question.Type?i("el-radio-group",{on:{change:function(t){e.formItemChange(t,e.question)}},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},e._l(e.question.TypeValue.split("|"),(function(t){return i("el-radio",{key:t,attrs:{label:t}},[e._v("\n "+e._s(t)+"\n ")])})),1):e._e(),e._v(" "),"checkbox"===e.question.Type?i("el-checkbox-group",{model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},e._l(e.question.TypeValue.split("|"),(function(t){return i("el-checkbox",{key:t,attrs:{label:t}},[e._v("\n "+e._s(t)+"\n ")])})),1):e._e(),e._v(" "),"calculation"===e.question.Type?i("el-input",{attrs:{disabled:""},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"increment"===e.question.Type?i("el-input",{attrs:{disabled:""},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"number"===e.question.Type&&1!==e.question.DataSource?i("el-input",{attrs:{type:"number"},on:{change:function(t){e.formItemNumberChange(t,e.question)}},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},[0!==e.question.Unit?i("template",{slot:"append"},[e._v(e._s(4!==e.question.Unit?e.$fd("ValueUnit",e.question.Unit):e.question.CustomUnit))]):2===e.question.ValueType?i("template",{slot:"append"},[e._v("%")]):e._e()],2):e._e(),e._v(" "),"number"===e.question.Type&&1===e.question.DataSource?i("el-input",{attrs:{type:"number",disabled:1===e.question.DataSource},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},[0!==e.question.Unit?i("template",{slot:"append"},[e._v(e._s(4!==e.question.Unit?e.$fd("ValueUnit",e.question.Unit):e.question.CustomUnit))]):2===e.question.ValueType?i("template",{slot:"append"},[e._v("%")]):e._e()],2):e._e(),e._v(" "),"upload"===e.question.Type?i("el-upload",{class:{disabled:e.fileList.length>=e.question.ImageCount},attrs:{action:e.accept,limit:e.question.ImageCount,"on-preview":e.handlePictureCardPreview,"before-upload":e.handleBeforeUpload,"http-request":e.uploadScreenshot,"list-type":"picture-card","on-remove":e.handleRemove,"file-list":e.fileList},scopedSlots:e._u([{key:"file",fn:function(t){var n=t.file;return i("div",{},[i("img",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:n.url,alt:""}}),e._v(" "),i("span",{staticClass:"el-upload-list__item-actions"},[i("span",{staticClass:"el-upload-list__item-preview",on:{click:function(t){return e.handlePictureCardPreview(n)}}},[i("i",{staticClass:"el-icon-zoom-in"})]),e._v(" "),e.readingTaskState<2?i("span",{staticClass:"el-upload-list__item-delete",on:{click:function(t){return e.handleRemove(n)}}},[i("i",{staticClass:"el-icon-delete"})]):e._e()])])}}],null,!1,3246650725)},[i("i",{staticClass:"el-icon-plus",attrs:{slot:"default"},slot:"default"})]):e._e(),e._v(" "),"upload"===e.question.Type?i("el-dialog",{attrs:{"append-to-body":"",visible:e.imgVisible,width:"600px"},on:{"update:visible":function(t){e.imgVisible=t}}},[i("el-image",{attrs:{src:e.imageUrl,width:"100%"}},[i("div",{staticClass:"image-slot",attrs:{slot:"placeholder"},slot:"placeholder"},[e._v("\n 加载中"),i("span",{staticClass:"dot"},[e._v("...")])])])],1):e._e()],1):e._e()],1)},a=[],r=(i("386d"),i("7f7f"),i("ac6a"),i("20d6"),i("28a5"),i("c5f6"),i("3e42")),o={name:"QuestionFormItem",props:{questionForm:{type:Object,default:function(){return{}}},question:{type:Object,default:function(){return[]}},criterionId:{type:String,required:!0},readingTaskState:{type:Number,required:!0},visitTaskId:{type:String,default:""}},data:function(){return{addOrEdit:{visible:!1,title:""},fileList:[],accept:".png,.jpg,.jpeg",imgVisible:!1,imageUrl:"",urls:[],organList:[],QuestionsList:[],QuestionsForm:{}}},computed:{calculationValue:{get:function(){return this.questionForm[this.question.Id]},set:function(){}}},watch:{questionForm:{deep:!0,immediate:!0,handler:function(e){}}},mounted:function(){var e=this;"upload"===this.question.Type&&this.questionForm[this.question.Id]&&(this.urls=this.questionForm[this.question.Id].split("|"),this.fileList=[],this.urls.map((function(t){e.fileList.push({name:"",url:"/api/".concat(t)})}))),"number"===this.question.Type?this.$set(this.questionForm,this.question.Id,0):this.$set(this.questionForm,this.question.Id,""),1===this.question.TableQuestionType&&null!==this.question.LesionType&&this.getOrganInfoList()},methods:{save:function(){},openAddTableCol:function(e){this.addOrEdit.visible=!0,this.addOrEdit.title=e.QuestionName+"表格问题",this.QuestionsList=e.TableQuestions.Questions,this.AnswersList=e.TableQuestions.Answers,this.QuestionsForm={},console.log(this.QuestionsForm)},getOrganInfoList:function(){var e=this,t={trialId:this.$route.query.trialId,lesionType:this.question.LesionType,isEnable:!0};Object(r["Rd"])(t).then((function(t){e.organList=t.Result}))},formItemChange:function(e,t){var i=this;if(t.Childrens.length>0&&this.resetChild(t.Childrens),1===t.TableQuestionType&&t.RelationQuestions.length>0){var n=this.organList.findIndex((function(i){return i[t.DataTableColumn]===e}));if(n<0)return;var a=this.organList[n];this.question.RelationQuestions.map((function(e){var t=a[e.DataTableColumn];i.$emit("setFormItemData",{key:e.Id,val:t})}))}},formItemNumberChange:function(e,t){this.$emit("formItemTableNumberChange",e,t)},resetChild:function(e){var t=this;e.forEach((function(e){t.$emit("resetFormItemData",e.Id),e.Childrens&&e.Childrens.length>0&&t.resetChild(e.Childrens)}))},resetFormItemData:function(e){this.$emit("resetFormItemData",e)},setFormItemData:function(e){this.$emit("setFormItemData",e)},uploadScreenshot:function(e){var t=this;if(this.visitTaskId){var i=this.$loading({target:document.querySelector(".ecrf-wrapper"),fullscreen:!1,lock:!0,text:"Loading",spinner:"el-icon-loading"}),n=new FormData;n.append("file",e.file),Object(r["Af"])(this.$route.query.trialId,this.visitTaskId,n).then((function(e){e.IsSuccess&&(t.fileList.push({url:"".concat(e.Result.Path)}),t.urls.push(e.Result.Path),t.$emit("setFormItemData",{key:t.question.Id,val:t.urls.length>0?t.urls.join("|"):""})),i.close()})).catch((function(){i.close()}))}},handleBeforeUpload:function(e){return!!this.checkFileSuffix(e.name)||(this.$message.error("必须是 ".concat(this.accept," 格式")),!1)},checkFileSuffix:function(e){var t=e.lastIndexOf("."),i=e.substring(t+1,e.length);return-1!==this.accept.toLocaleLowerCase().search(i.toLocaleLowerCase())},handlePictureCardPreview:function(e){this.imageUrl=e.url,this.imgVisible=!0},handleRemove:function(e,t){this.imageUrl="",this.fileList.splice(this.fileList.findIndex((function(t){return t.url===e.url})),1),this.urls.splice(this.fileList.findIndex((function(t){return t===e.url})),1),this.$emit("setFormItemData",{key:this.question.Id,val:this.urls.length>0?this.urls.join("|"):""})}}},s=o,l=(i("3250"),i("2877")),c=Object(l["a"])(s,n,a,!1,null,"0dceee0a",null);t["default"]=c.exports},9859:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"role-function-table"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"roleFunction",staticClass:"table",attrs:{size:"small",data:e.list},on:{select:e.handleSelect}},[i("el-table-column",{attrs:{type:"selection",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{label:"Function Name",prop:"FunctionName",width:"180"}}),e._v(" "),i("el-table-column",{attrs:{label:"Description",prop:"Note"}})],1)],1)},a=[],r=(i("ac6a"),i("50fc")),o={name:"RoleFunction",data:function(){return{loading:!1,list:[]}},methods:{getFunctions:function(e,t){var i=this;this.roleId=e,this.loading=!0,this.list=[],Object(r["j"])(e,t).then((function(e){i.list=e.Result,i.loading=!1,i.list.forEach((function(e){i.$nextTick((function(){i.$refs["roleFunction"].toggleRowSelection(e,e.IsSelect)}))}))}))},handleSelect:function(e,t){var i=this,n=e.length&&-1!==e.indexOf(t),a={RoleId:this.roleId,FunctionId:t.Id,IsSelect:n};Object(r["t"])(a).then((function(e){e.IsSuccess&&i.$message.success("Updated successfully")}))},resetTable:function(){this.list=[]}}},s=o,l=(i("3059"),i("2877")),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},"985e":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"upload-container"},[i("el-upload",{staticClass:"upload-demo",attrs:{action:"","http-request":e.uploadFile,"before-upload":e.beforeUpload,"file-list":e.fileList,"before-remove":e.beforeRemove,"on-remove":e.handleRemoveFile,"on-preview":e.handlePreview,limit:1,"on-exceed":e.handleExceed,accept:".pdf"}},[i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnDisabled}},[e._v(e._s(e.$t("trials:enrolledReviews:button:upload")))]),e._v(" "),i("span",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[e._v(e._s("("+e.$t("trials:enrolledReviews:label:mustBepdf")+")"))])],1)],1)},a=[],r=(i("7f7f"),i("a796")),o=i("3e42"),s="ACK of SOW",l={name:"UploadFile",props:{doctorId:{type:String,required:!0},trialId:{type:String,required:!0}},data:function(){return{fileList:[],btnDisabled:!1}},methods:{initFileList:function(e){this.fileList=e},uploadFile:function(e){var t=this,i=e.file.name;this.btnDisabled=!0,Object(r["f"])(e.file,s,this.doctorId).then((function(e){e.IsSuccess&&(t.fileList.push({DoctorId:t.doctorId,name:i,FileName:i,Path:e.Result.FilePath,FullPath:e.Result.FullFilePath,Type:s}),t.saveFile())})).catch((function(){t.btnDisabled=!1}))},saveFile:function(){var e=this,t=this.fileList[0],i=t.name,n=t.Path,a=t.FullPath,r=t.Type,s={DoctorId:this.doctorId,Type:r,Path:n,FullPath:a,FileName:i};Object(o["Bf"])(this.trialId,s).then((function(t){e.btnDisabled=!1,t.IsSuccess&&(e.fileList[0].Id=t.Result,e.$message.success(e.$t("common:message:savedSuccessfully")),e.$emit("getFileList",e.fileList))})).catch((function(){e.btnDisabled=!1}))},beforeUpload:function(e,t){var i=this.fileValid(e.name,"pdf");if(!i)return this.$message.error(this.$t("trials:enrolledReviews:label:mustBepdf")),!1;this.fileList=[]},beforeRemove:function(e,t){if(e&&"success"===e.status)return this.$confirm(this.$t("trials:enrolledReviews:message:deleteSOWWarning"))},handleRemoveFile:function(e,t){var i=this;e&&"success"===e.status&&(e.Id?Object(o["wb"])(this.trialId,this.doctorId,e.Id).then((function(e){e.IsSuccess&&(i.fileList=[],i.$message.success(i.$t("common:message:savedSuccessfully")),i.$emit("getFileList",i.fileList))})):(this.fileList=[],this.$emit("getFileList",this.fileList)))},handlePreview:function(e){e.FullPath&&window.open(e.FullPath,"_blank")},handleExceed:function(e,t){this.$message.warning(this.$t("trials:enrolledReviews:message:uploadSowWaring1"))},fileValid:function(e,t){var i=e.substring(e.lastIndexOf(".")+1).toLocaleLowerCase();return t.toLocaleLowerCase().indexOf(i)>-1}}},c=l,u=(i("cd8e"),i("2877")),d=Object(u["a"])(c,n,a,!1,null,null,null);t["default"]=d.exports},"98ab":function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-shopping",use:"icon-shopping-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-shopping"><path d="M42.913 101.36c1.642 0 3.198.332 4.667.996a12.28 12.28 0 0 1 3.89 2.772c1.123 1.184 1.987 2.582 2.592 4.193.605 1.612.908 3.318.908 5.118 0 1.8-.303 3.507-.908 5.118-.605 1.611-1.469 3.01-2.593 4.194a13.3 13.3 0 0 1-3.889 2.843 10.582 10.582 0 0 1-4.667 1.066c-1.729 0-3.306-.355-4.732-1.066a13.604 13.604 0 0 1-3.825-2.843c-1.123-1.185-1.988-2.583-2.593-4.194a14.437 14.437 0 0 1-.907-5.118c0-1.8.302-3.506.907-5.118.605-1.61 1.47-3.009 2.593-4.193a12.515 12.515 0 0 1 3.825-2.772c1.426-.664 3.003-.996 4.732-.996zm53.932.285c1.643 0 3.22.331 4.733.995a11.386 11.386 0 0 1 3.889 2.772c1.08 1.185 1.945 2.583 2.593 4.194.648 1.61.972 3.317.972 5.118 0 1.8-.324 3.506-.972 5.117-.648 1.611-1.513 3.01-2.593 4.194a12.253 12.253 0 0 1-3.89 2.843 11 11 0 0 1-4.732 1.066 10.58 10.58 0 0 1-4.667-1.066 12.478 12.478 0 0 1-3.824-2.843c-1.08-1.185-1.945-2.583-2.593-4.194a13.581 13.581 0 0 1-.973-5.117c0-1.801.325-3.507.973-5.118.648-1.611 1.512-3.01 2.593-4.194a11.559 11.559 0 0 1 3.824-2.772 11.212 11.212 0 0 1 4.667-.995zm21.781-80.747c2.42 0 4.3.355 5.64 1.066 1.34.71 2.29 1.587 2.852 2.63a6.427 6.427 0 0 1 .778 3.34c-.044 1.185-.195 2.204-.454 3.057-.26.853-.8 2.606-1.62 5.26a589.268 589.268 0 0 1-2.788 8.743 1236.373 1236.373 0 0 0-3.047 9.453c-.994 3.128-1.75 5.592-2.269 7.393-1.123 3.79-2.55 6.42-4.278 7.89-1.728 1.469-3.846 2.203-6.352 2.203H39.023l1.945 12.795h65.342c4.148 0 6.223 1.943 6.223 5.828 0 1.896-.41 3.53-1.232 4.905-.821 1.374-2.442 2.061-4.862 2.061H38.505c-1.729 0-3.176-.426-4.343-1.28-1.167-.852-2.14-1.966-2.917-3.34a21.277 21.277 0 0 1-1.88-4.478 44.128 44.128 0 0 1-1.102-4.55c-.087-.568-.324-1.942-.713-4.122-.39-2.18-.865-4.904-1.426-8.174l-1.88-10.947c-.692-4.027-1.383-8.079-2.075-12.154-1.642-9.572-3.5-20.234-5.574-31.986H6.87c-1.296 0-2.377-.356-3.24-1.067a9.024 9.024 0 0 1-2.14-2.558 10.416 10.416 0 0 1-1.167-3.2C.108 8.53 0 7.488 0 6.54c0-1.896.583-3.46 1.75-4.69C2.917.615 4.494 0 6.482 0h13.095c1.728 0 3.111.284 4.148.853 1.037.569 1.858 1.28 2.463 2.132a8.548 8.548 0 0 1 1.297 2.701c.26.948.475 1.754.648 2.417.173.758.346 1.825.519 3.199.173 1.374.345 2.772.518 4.193.26 1.706.519 3.507.778 5.403h88.678z" /></symbol>'});o.a.add(s);t["default"]=s},"98b0":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{height:"100%"}},[i("router-view")],1)},a=[],r=i("2877"),o={},s=Object(r["a"])(o,n,a,!1,null,null,null);t["default"]=s.exports},"98b7":function(e,t){var i="undefined"!==typeof window&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){setTimeout(e,16)};e.exports=i},"98c2":function(e,t,i){"use strict";i("47ad")},"98cf":function(e,t,i){"use strict";i("878a")},"98e7":function(e,t,i){var n=i("6d8b"),a=n.createHashMap;function r(e){return{getTargetSeries:function(t){var i={},n=a();return t.eachSeriesByType(e,(function(e){e.__paletteScope=i,n.set(e.uid,e)})),n},reset:function(e,t){var i=e.getRawData(),n={},a=e.getData();a.each((function(e){var t=a.getRawIndex(e);n[t]=e})),i.each((function(t){var r,o=n[t],s=null!=o&&a.getItemVisual(o,"color",!0),l=null!=o&&a.getItemVisual(o,"borderColor",!0);if(s&&l||(r=i.getItemModel(t)),!s){var c=r.get("itemStyle.color")||e.getColorFromPalette(i.getName(t)||t+"",e.__paletteScope,i.count());null!=o&&a.setItemVisual(o,"color",c)}if(!l){var u=r.get("itemStyle.borderColor");null!=o&&a.setItemVisual(o,"borderColor",u)}}))}}}e.exports=r},"998c":function(e,t,i){var n=i("6d8b"),a=i("2306"),r=i("e86a"),o=Math.PI;function s(e,t){t=t||{},n.defaults(t,{text:"loading",textColor:"#000",fontSize:"12px",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#c23531",spinnerRadius:10,lineWidth:5,zlevel:0});var i=new a.Group,s=new a.Rect({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});i.add(s);var l=t.fontSize+" sans-serif",c=new a.Rect({style:{fill:"none",text:t.text,font:l,textPosition:"right",textDistance:10,textFill:t.textColor},zlevel:t.zlevel,z:10001});if(i.add(c),t.showSpinner){var u=new a.Arc({shape:{startAngle:-o/2,endAngle:-o/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001});u.animateShape(!0).when(1e3,{endAngle:3*o/2}).start("circularInOut"),u.animateShape(!0).when(1e3,{startAngle:3*o/2}).delay(300).start("circularInOut"),i.add(u)}return i.resize=function(){var i=r.getWidth(t.text,l),n=t.showSpinner?t.spinnerRadius:0,a=(e.getWidth()-2*n-(t.showSpinner&&i?10:0)-i)/2-(t.showSpinner?0:i/2),o=e.getHeight()/2;t.showSpinner&&u.setShape({cx:a,cy:o}),c.setShape({x:a-n,y:o-n,width:2*n,height:2*n}),s.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},i.resize(),i}e.exports=s},"99e4":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"search-container"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:reviewAssign:readingTask:table:siteCode")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:"",filterable:""},model:{value:e.searchData.SiteId,callback:function(t){e.$set(e.searchData,"SiteId",t)},expression:"searchData.SiteId"}},e._l(e.siteOptions,(function(e,t){return i("el-option",{key:t,attrs:{label:e.TrialSiteCode,value:e.SiteId}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:reviewAssign:readingTask:table:subjectCode")}},[i("el-input",{staticStyle:{width:"100px"},model:{value:e.searchData.SubjectCode,callback:function(t){e.$set(e.searchData,"SubjectCode",t)},expression:"searchData.SubjectCode"}})],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:reviewAssign:readingTask:table:visitName")}},[i("el-input",{staticStyle:{width:"100px"},attrs:{clearable:""},model:{value:e.searchData.TaskName,callback:function(t){e.$set(e.searchData,"TaskName",t)},expression:"searchData.TaskName"}})],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:reviewAssign:readingTask:table:reader")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.DoctorUserId,callback:function(t){e.$set(e.searchData,"DoctorUserId",t)},expression:"searchData.DoctorUserId"}},e._l(e.DoctorUserList,(function(e){return i("el-option",{key:"DoctorUserId"+e.DoctorUserId,attrs:{value:e.DoctorUserId,label:e.UserName+"("+e.FullName+")"}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:reviewAssign:readingTask:table:criterionName")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.TrialReadingCriterionId,callback:function(t){e.$set(e.searchData,"TrialReadingCriterionId",t)},expression:"searchData.TrialReadingCriterionId"}},e._l(e.trialCriterionList,(function(e){return i("el-option",{key:"TrialReadingCriterionId"+e.TrialReadingCriterionId,attrs:{value:e.TrialReadingCriterionId,label:e.TrialReadingCriterionName}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:reviewAssign:readingTask:table:isUrgent")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.IsUrgent,callback:function(t){e.$set(e.searchData,"IsUrgent",t)},expression:"searchData.IsUrgent"}},e._l(e.$d.YesOrNo,(function(e){return i("el-option",{key:"IsUrgent"+e.value,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:reviewAssign:readingTask:table:assignStatus")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.TaskAllocationState,callback:function(t){e.$set(e.searchData,"TaskAllocationState",t)},expression:"searchData.TaskAllocationState"}},e._l(e.$d.TaskAllocationState,(function(e){return i("el-option",{key:"TaskAllocationState"+e.value,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:reviewAssign:readingTask:table:assignTime")}},[i("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd HH:mm:ss",type:"datetimerange"},on:{change:e.changeTimeList},model:{value:e.timeList,callback:function(t){e.timeList=t},expression:"timeList"}})],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"}},[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")])],1)],1)],1),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"},{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortChange}},[i("el-table-column",{attrs:{prop:"IsUrgent",label:e.$t("trials:reviewAssign:readingTask:table:isUrgent"),"show-overflow-tooltip":"","min-width":"100",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsUrgent?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsUrgent)))]):i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsUrgent)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskCode",label:e.$t("trials:reviewAssign:readingTask:table:taskCode"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialSiteCode",label:e.$t("trials:reviewAssign:readingTask:table:siteCode"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode",label:e.$t("trials:reviewAssign:readingTask:table:subjectCode"),"min-width":"120",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitTaskNum",label:e.$t("trials:reviewAssign:readingTask:table:visitName"),"min-width":"160",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.TaskName)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskBlindName",label:e.$t("trials:reviewAssign:readingTask:table:blindName"),"min-width":"140",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:e.$t("trials:reviewAssign:readingTask:table:createTime"),"min-width":"140",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskState",label:e.$t("trials:reviewAssign:readingTask:table:taskStatus"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.TaskState?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e(),e._v(" "),1===t.row.TaskState?i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e(),e._v(" "),3===t.row.TaskState?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e(),e._v(" "),4===t.row.TaskState?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ReadingCategory",label:e.$t("trials:reviewAssign:readingTask:table:taskType"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.ReadingCategory?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e(),e._v(" "),2===t.row.ReadingCategory?i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e(),e._v(" "),4===t.row.ReadingCategory?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e(),e._v(" "),5===t.row.ReadingCategory?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskAllocationState",label:e.$t("trials:reviewAssign:readingTask:table:assignStatus"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.TaskAllocationState?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("TaskAllocationState",t.row.TaskAllocationState)))]):i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("TaskAllocationState",t.row.TaskAllocationState)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ArmEnum",label:e.$t("trials:reviewAssign:readingTask:table:role"),sortable:"custom","min-width":"80","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.ArmEnum?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ArmEnum",t.row.ArmEnum)))]):e._e(),e._v(" "),1===t.row.ArmEnum?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ArmEnum",t.row.ArmEnum)))]):e._e(),e._v(" "),2===t.row.ArmEnum?i("el-tag",{attrs:{type:"success"}},[e._v(e._s(e.$fd("ArmEnum",t.row.ArmEnum)))]):e._e(),e._v(" "),3===t.row.ArmEnum?i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("ArmEnum",t.row.ArmEnum)))]):e._e(),e._v(" "),4===t.row.ArmEnum?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ArmEnum",t.row.ArmEnum)))]):e._e(),e._v(" "),5===t.row.ArmEnum?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("ArmEnum",t.row.ArmEnum)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:e.$t("trials:reviewAssign:readingTask:table:adReader"),"min-width":"180",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.UserName+"("+t.row.FullName+")")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialReadingCriterionName",label:e.$t("trials:reviewAssign:readingTask:table:criterionName"),"min-width":"180",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:e.$t("trials:reviewAssign:readingTask:table:historyReader"),"min-width":"180",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.HistoryReadingDoctorUserList.map((function(e){return e.UserName+"("+e.FullName+")"})).toString())+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"AllocateTime",label:e.$t("trials:reviewAssign:readingTask:table:assignTime"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""}})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}}),e._v(" "),i("el-dialog",{attrs:{title:"分配规则",visible:e.AllocationConfigVisible,width:"1200px","close-on-click-modal":!1,"custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.AllocationConfigVisible=t}}},[i("div",{staticClass:"base-dialog-body",staticStyle:{position:"relative"}},[i("el-divider",{attrs:{"content-position":"left"}},[e._v("首次分配规则")]),e._v(" "),i("el-button",{staticStyle:{position:"absolute",right:"10px",top:"60px","z-index":"100"},attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:function(t){return e.addOrEdit()}}},[e._v("\n 添加阅片人\n ")]),e._v(" "),i("el-form",{ref:"signForm",attrs:{size:"small","label-width":"100px"}},[i("el-form-item",{attrs:{label:"分配对象"}},[i("el-radio-group",{model:{value:e.TrialTaskInfo.TaskAllocateObjEnum,callback:function(t){e.$set(e.TrialTaskInfo,"TaskAllocateObjEnum",t)},expression:"TrialTaskInfo.TaskAllocateObjEnum"}},e._l(e.$d.TaskAllocateObj,(function(t){return i("el-radio",{key:"TaskAllocateObjEnum"+t.value,attrs:{label:t.value,disabled:1===t.value}},[e._v(e._s(t.label))])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"阅片人列表"}},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{border:"",data:e.TaskAllocationRuleList,stripe:""}},[i("el-table-column",{attrs:{prop:"UserName",label:"阅片人","min-width":"180","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.UserName+"("+t.row.FullName+")")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"PlanReadingRatio",label:"计划受试者比例","min-width":"130","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.PlanReadingRatio?t.row.PlanReadingRatio+"%":"0%")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"当前受试者比例","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.ApplyedTotalSubjectCount>0?(100*t.row.SelfApplyedSubjectCount/t.row.ApplyedTotalSubjectCount).toFixed(2)+"%":"0%")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"已分配任务比例","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.ApplyedTotalTaskCount>0?(100*t.row.SelfApplyedTaskCount/t.row.ApplyedTotalTaskCount).toFixed(2)+"%":"0%")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"已分配总任务量","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.SelfApplyedTaskCount)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"待处理任务量","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.SelfUndoTaskCount)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsEnable",label:"状态","min-width":"80","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsEnable?i("el-tag",[e._v(e._s(e.$fd("IsEnable",t.row.IsEnable)))]):i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("IsEnable",t.row.IsEnable)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Note",label:"备注","min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{fixed:"right",label:"操作",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{circle:"",icon:"el-icon-edit-outline",title:"编辑"},on:{click:function(i){return e.addOrEdit(t.row)}}}),e._v(" "),i("el-button",{attrs:{circle:"",icon:"el-icon-delete",title:"删除"},on:{click:function(i){return e.handleDelete(t.row)}}})]}}])})],1)],1),e._v(" "),i("el-divider",{attrs:{"content-position":"left"}},[e._v("后续分配规则")]),e._v(" "),i("el-descriptions",{staticClass:"margin-top",attrs:{column:1}},[i("el-descriptions-item",[i("template",{slot:"label"},[i("el-checkbox",{attrs:{disabled:""},model:{value:e.value1,callback:function(t){e.value1=t},expression:"value1"}},[e._v("同一病例第二次裁判任务自动分配(在拟分配的阅片人未标记为退出项目状态时)默认状态 已分配 ")])],1),e._v(" "),i("div",{staticStyle:{"margin-left":"10px"}})],2)],1)],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.handleCancel}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)]),e._v(" "),e.taskAllocationRuleVisible?i("el-dialog",{attrs:{title:e.title,visible:e.taskAllocationRuleVisible,width:"600px","close-on-click-modal":!1},on:{"update:visible":function(t){e.taskAllocationRuleVisible=t}}},[i("AddOrEditTaskAllocationRule",{attrs:{data:e.rowData,"doctor-user-list":e.DoctorUserList},on:{close:function(){e.taskAllocationRuleVisible=!1},getList:e.openAllocationConfigVisible}})],1):e._e(),e._v(" "),e.AutoAlloctionVisible?i("el-dialog",{attrs:{title:"分配裁判",visible:e.AutoAlloctionVisible,"close-on-click-modal":!1,fullscreen:!0,"append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.AutoAlloctionVisible=t}}},[i("el-divider",{attrs:{"content-position":"left"}},[e._v("分配规则")]),e._v(" "),i("el-descriptions",{staticClass:"margin-top",attrs:{column:3,border:""}},[i("el-descriptions-item",[i("template",{slot:"label"},[e._v("\n 分配对象\n ")]),e._v("\n "+e._s(e.$fd("TaskAllocateObj",e.TrialTaskInfo.TaskAllocateObjEnum))+"\n ")],2),e._v(" "),i("el-descriptions-item",[i("template",{slot:"label"},[e._v("\n 备选医生\n ")]),e._v(" "),i("el-tag",[e._v(e._s(e.TaskAllocationRuleList.length?e.TaskAllocationRuleList.map((function(e){return e.UserName+"("+e.FullName+")"})).toString().replaceAll(",","/"):"无"))])],2)],1),e._v(" "),i("el-divider",{attrs:{"content-position":"left"}},[e._v("受试者阅片人最新关系表")]),e._v(" "),i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:consistencyCheck:table:siteId")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:"",filterable:""},model:{value:e.taskSearchData.SiteId,callback:function(t){e.$set(e.taskSearchData,"SiteId",t)},expression:"taskSearchData.SiteId"}},e._l(e.siteOptions,(function(e,t){return i("el-option",{key:"taskSearchData"+t,attrs:{label:e.TrialSiteCode,value:e.SiteId}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:consistencyCheck:table:subjectId")}},[i("el-input",{staticStyle:{width:"100px"},model:{value:e.taskSearchData.SubjectCode,callback:function(t){e.$set(e.taskSearchData,"SubjectCode",t)},expression:"taskSearchData.SubjectCode"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"阅片人"}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.taskSearchData.DoctorUserId,callback:function(t){e.$set(e.taskSearchData,"DoctorUserId",t)},expression:"taskSearchData.DoctorUserId"}},e._l(e.DoctorUserList,(function(e){return i("el-option",{key:"taskSearchData"+e.DoctorUserId,attrs:{value:e.DoctorUserId,label:e.UserName+"("+e.FullName+")"}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"是否已分配阅片人"}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.taskSearchData.IsHaveAssigned,callback:function(t){e.$set(e.taskSearchData,"IsHaveAssigned",t)},expression:"taskSearchData.IsHaveAssigned"}},e._l(e.$d.YesOrNo,(function(e){return i("el-option",{key:"taskSearchData.IsHaveAssigned"+e.value,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"是否生效"}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.taskSearchData.IsAssignConfirmed,callback:function(t){e.$set(e.taskSearchData,"IsAssignConfirmed",t)},expression:"taskSearchData.IsAssignConfirmed"}},e._l(e.$d.YesOrNo,(function(e){return i("el-option",{key:"taskSearchData.IsHaveAssigned"+e.value,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.openAutoAlloction}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset2}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",loading:e.btnLoading},on:{click:e.autoSubjectAssignDoctor}},[e._v("\n 自动分配裁判\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",loading:e.btnLoading},on:{click:function(t){return e.manualAllocation()}}},[e._v("\n 手动分配裁判\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",loading:e.btnLoading},on:{click:function(t){return e.cancelSubjectAssignDoctor()}}},[e._v("\n 清空裁判\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",loading:e.btnLoading},on:{click:function(t){return e.manualAssignDoctorApplyTask(null)}}},[e._v("\n 生效\n ")])],1)],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:100},expression:"{bottomOffset:100}"}],attrs:{border:"",data:e.SubjectAssignList,stripe:""},on:{"selection-change":e.handleSubjectAssignListSelectChange}},[i("el-table-column",{attrs:{type:"selection",align:"left",width:"45"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialSiteCode",label:"中心编号",width:"140","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode",label:"受试者编号",width:"140","show-overflow-tooltip":""}}),e._v(" "),1===e.ReadingType?i("el-table-column",{attrs:{prop:"SubjectCode",label:"阅片人","min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.DoctorUserList.length?i("div",{staticStyle:{display:"flex","justify-content":"left","align-items":"center"}},e._l(t.row.DoctorUserList,(function(t){return i("div",{key:"SubjectCode"+t.UserName,staticStyle:{display:"flex","justify-content":"center","align-items":"center","margin-right":"5px"}},[i("el-tag",[e._v("\n "+e._s(t.UserName+"("+t.FullName+")")+"\n ")])],1)})),0):e._e()]}}],null,!1,241325678)}):e._e(),e._v(" "),2===e.ReadingType?i("el-table-column",{attrs:{prop:"SubjectCode",label:"阅片人(组001)","min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.DoctorUserList.length?i("div",{staticStyle:{display:"flex","justify-content":"left","align-items":"center"}},[i("el-tag",[e._v("\n "+e._s(e.findDoctorUser(t.row.DoctorUserList,1).UserName+"("+e.findDoctorUser(t.row.DoctorUserList,1).FullName+")")+"\n ")])],1):e._e()]}}],null,!1,2591996451)}):e._e(),e._v(" "),2===e.ReadingType?i("el-table-column",{attrs:{prop:"SubjectCode",label:"阅片人(组002)","min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.DoctorUserList.length?i("div",{staticStyle:{display:"flex","justify-content":"left","align-items":"center"}},[i("el-tag",[e._v("\n "+e._s(e.findDoctorUser(t.row.DoctorUserList,2).UserName+"("+e.findDoctorUser(t.row.DoctorUserList,2).FullName+")")+"\n ")])],1):e._e()]}}],null,!1,1800428195)}):e._e(),e._v(" "),2===e.ReadingType?i("el-table-column",{attrs:{prop:"SubjectCode",label:"裁判","min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.DoctorUserList.length?i("div",{staticStyle:{display:"flex","justify-content":"left","align-items":"center"}},[i("el-tag",[e._v("\n "+e._s(e.findDoctorUser(t.row.DoctorUserList,3).UserName+"("+e.findDoctorUser(t.row.DoctorUserList,3).FullName+")")+"\n ")])],1):e._e()]}}],null,!1,1316145571)}):e._e(),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode",label:"是否分配阅片人","min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsAssignedDoctorUser?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsAssignedDoctorUser)))]):i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsAssignedDoctorUser)))])]}}],null,!1,76085216)}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode",label:"是否生效","min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsConfirmed?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsConfirmed)))]):i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsConfirmed)))])]}}],null,!1,1672716963)}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode",label:"绑定时间",width:"240","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.DoctorUserList.length?t.row.DoctorUserList[0].AssignTime:"")+"\n ")]}}],null,!1,2127155942)}),e._v(" "),i("el-table-column",{attrs:{prop:"",label:"操作",width:"180","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{circle:"",icon:"el-icon-connection",title:"应用"},on:{click:function(i){return e.manualAssignDoctorApplyTask(t.row)}}}),e._v(" "),i("el-button",{attrs:{circle:"",icon:"el-icon-close",title:"清空阅片人"},on:{click:function(i){return e.cancelSubjectAssignDoctor(t.row)}}}),e._v(" "),i("el-button",{attrs:{circle:"",icon:"el-icon-refresh-right",title:"手动分配"},on:{click:function(i){return e.manualAllocation(t.row)}}})]}}],null,!1,1674162749)})],1),e._v(" "),i("pagination",{staticClass:"page",staticStyle:{"text-align":"right","margin-top":"10px"},attrs:{total:e.SubjectAssignListTotal,page:e.taskSearchData.PageIndex,limit:e.taskSearchData.PageSize},on:{"update:page":function(t){return e.$set(e.taskSearchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.taskSearchData,"PageSize",t)},pagination:e.openAutoAlloction}})],1):e._e(),e._v(" "),e.manualAllocationVisible?i("el-dialog",{attrs:{id:"TaskAllocationRuleList",title:"选择阅片人",visible:e.manualAllocationVisible,width:"1000px","close-on-click-modal":!1},on:{"update:visible":function(t){e.manualAllocationVisible=t}}},[i("div",[i("div",{staticStyle:{"line-height":"32px"}},[e._v("\n 当前项目阅片模式为:"+e._s(e.$fd("ReadingMethod",e.ReadingType))+"\n ")]),e._v(" "),i("div",{staticStyle:{"line-height":"32px","margin-bottom":"10px"}},[e._v("\n 当前选择裁判为:"),e.TaskAllocationRuleSelectList.length?i("el-tag",[e._v(e._s(e.TaskAllocationRuleSelectList.map((function(e){return e.UserName+"("+e.FullName+")"})).toString()))]):e._e()],1)]),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{border:"",data:e.TaskAllocationRuleList,stripe:""},on:{"selection-change":e.handleTaskAllocationRuleListSelectChange}},[i("el-table-column",{attrs:{selectable:e.selectable,type:"selection",align:"left",width:"45"}}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"阅片人","min-width":"180","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.UserName+"("+t.row.FullName+")")+"\n ")]}}],null,!1,3202248926)}),e._v(" "),i("el-table-column",{attrs:{prop:"PlanReadingRatio",label:"计划受试者比例","min-width":"130","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.PlanReadingRatio?t.row.PlanReadingRatio+"%":"0%")+"\n ")]}}],null,!1,4282686787)}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"当前受试者比例","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.ApplyedTotalSubjectCount>0?(100*t.row.SelfApplyedSubjectCount/t.row.ApplyedTotalSubjectCount).toFixed(2)+"%":"0%")+"\n ")]}}],null,!1,747019486)}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"已分配任务比例","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.ApplyedTotalTaskCount>0?(100*t.row.SelfApplyedTaskCount/t.row.ApplyedTotalTaskCount).toFixed(2)+"%":"0%")+"\n ")]}}],null,!1,1568028271)}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"已分配总任务量","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.SelfApplyedTaskCount)+"\n ")]}}],null,!1,2846004346)}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"待处理任务量","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.SelfUndoTaskCount)+"\n ")]}}],null,!1,3188380639)}),e._v(" "),i("el-table-column",{attrs:{prop:"IsEnable",label:"状态","min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsEnable?i("el-tag",[e._v(e._s(e.$fd("IsEnable",t.row.IsEnable)))]):i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("IsEnable",t.row.IsEnable)))])]}}],null,!1,805216297)}),e._v(" "),i("el-table-column",{attrs:{prop:"Note",label:"备注","min-width":"100","show-overflow-tooltip":""}})],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){e.manualAllocationVisible=!1,e.TaskAllocationRuleSelectList=[]}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleSaveTaskAllocationRuleSelectList}},[e._v("\n 分配\n ")])],1)],1):e._e(),e._v(" "),e.readVisible?i("el-dialog",{attrs:{title:"分配",visible:e.readVisible,width:"360px","close-on-click-modal":!1},on:{"update:visible":function(t){e.readVisible=t}}},[i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"readDataForm",attrs:{model:e.rowData,size:"small",rules:e.rules,"label-width":"90px"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:"阅片人",prop:"DoctorUserId"}},[i("el-select",{attrs:{clearable:""},model:{value:e.rowData.DoctorUserId,callback:function(t){e.$set(e.rowData,"DoctorUserId",t)},expression:"rowData.DoctorUserId"}},e._l(e.DoctorUserList,(function(e){return i("el-option",{key:e.DoctorUserId,attrs:{label:e.UserName+"("+e.FullName+")",value:e.DoctorUserId}})})),1)],1)],1)]),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){e.readVisible=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.assignSubjectTaskToDoctorSave}},[e._v("\n 保存\n ")])],1)],1):e._e(),e._v(" "),e.applyVisible?i("el-dialog",{attrs:{title:"分配",visible:e.applyVisible,width:"360px","close-on-click-modal":!1},on:{"update:visible":function(t){e.applyVisible=t}}},[i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"readDataForm",attrs:{model:e.rowData,size:"small",rules:e.rules,"label-width":"90px"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:"阅片人",prop:"DoctorUserId"}},[i("el-select",{attrs:{clearable:""},model:{value:e.rowData.DoctorUserId,callback:function(t){e.$set(e.rowData,"DoctorUserId",t)},expression:"rowData.DoctorUserId"}},e._l(e.DoctorUserList,(function(e){return i("el-option",{key:e.DoctorUserId,attrs:{label:e.UserName+"("+e.FullName+")",value:e.DoctorUserId}})})),1)],1)],1)]),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){e.readVisible=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.assignSubjectTaskToDoctorSave}},[e._v("\n 保存\n ")])],1)],1):e._e(),e._v(" "),e.WaitApplyVisible?i("el-dialog",{attrs:{title:"确定生效吗?",visible:e.WaitApplyVisible,width:"1400px","close-on-click-modal":!1},on:{"update:visible":function(t){e.WaitApplyVisible=t}}},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{border:"",data:e.WaitApplyList,stripe:""}},[i("el-table-column",{attrs:{prop:"UserName",label:"阅片人","min-width":"180","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.UserName+"("+t.row.FullName+")")+"\n ")]}}],null,!1,3202248926)}),e._v(" "),i("el-table-column",{attrs:{prop:"PlanReadingRatio",label:"计划受试者比例","min-width":"130","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.PlanReadingRatio?t.row.PlanReadingRatio+"%":"0%")+"\n ")]}}],null,!1,4282686787)}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"当前受试者比例","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.ApplyedTotalSubjectCount>0?(100*t.row.SelfApplyedSubjectCount/t.row.ApplyedTotalSubjectCount).toFixed(2)+"%":"0%")+"\n ")]}}],null,!1,747019486)}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"生效后受试者比例","min-width":"140","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{staticStyle:{color:"#f66"}},[e._v("\n "+e._s(t.row.ApplyedTotalSubjectCount+t.row.WaitApplyTotalSubjectCount>0?(100*(t.row.SelfApplyedSubjectCount+t.row.WaitApplySelfSubjectCount)/(t.row.ApplyedTotalSubjectCount+t.row.WaitApplyTotalSubjectCount)).toFixed(2)+"%":"0%")+"\n ")])]}}],null,!1,180275977)}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"已分配任务比例","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.ApplyedTotalTaskCount>0?(100*t.row.SelfApplyedTaskCount/t.row.ApplyedTotalTaskCount).toFixed(2)+"%":"0%")+"\n ")]}}],null,!1,1568028271)}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"生效后任务比例","min-width":"140","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{staticStyle:{color:"#f66"}},[e._v("\n "+e._s(t.row.ApplyedTotalTaskCount+t.row.WaitApplyTotalTaskCount>0?(100*(t.row.SelfApplyedTaskCount+t.row.WaitApplySelfTaskCount)/(t.row.ApplyedTotalTaskCount+t.row.WaitApplyTotalTaskCount)).toFixed(2)+"%":"0%")+"\n ")])]}}],null,!1,547530505)}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"已分配总任务量","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.SelfApplyedTaskCount)+"\n ")]}}],null,!1,2846004346)}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"生效后总任务量","min-width":"140","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{staticStyle:{color:"#f66"}},[e._v(e._s(t.row.SelfApplyedTaskCount+t.row.WaitApplySelfTaskCount))])]}}],null,!1,261709692)}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"待处理任务量","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.SelfUndoTaskCount)+"\n ")]}}],null,!1,3188380639)}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:"生效后待处理任务量","min-width":"150","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{staticStyle:{color:"#f66"}},[e._v(" "+e._s(t.row.SelfUndoTaskCount+t.row.WaitApplySelfTaskCount))])]}}],null,!1,518290002)})],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){e.WaitApplyVisible=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.manualAssignDoctorApplyTaskSave}},[e._v("\n 确定\n ")])],1)],1):e._e()],1)],2)},a=[],r=(i("96cf"),i("3b8d")),o=i("db72"),s=(i("7514"),i("c5f6"),i("3e42")),l=i("958c"),c=i("eca8"),u=i("6071"),d=i("333d"),f=function(){return{PageIndex:1,PageSize:20,Asc:!0,SortField:"",TrialId:null,SiteId:null,SubjectId:null,SubjectCode:null,IsUrgent:null,TaskName:null,TaskState:null,DoctorUserId:null,ReadingCategory:null,TaskAllocationState:null,BeginAllocateDate:null,EndAllocateDate:null,IsJudgeDoctor:!0}},h=function(){return{PageIndex:1,PageSize:20,Asc:!0,SortField:"",TrialId:null,SiteId:null,SubjectId:null,SubjectCode:null,DoctorUserId:null,IsHaveAssigned:null,IsAssignConfirmed:null,IsJudgeDoctor:!0,TrialReadingCriterionId:null}},p={name:"TrialsNotice",components:{BaseContainer:u["default"],Pagination:d["default"],AddOrEditTaskAllocationRule:c["default"]},props:{allocationReadingCategory:{type:String},allocationSubjectCode:{type:String},trialReadingCriterionId:{type:Number}},data:function(){return{trialCriterionList:[],searchData:f(),taskSearchData:h(),maxLength:0,list:[],siteOptions:[],total:0,SubjectAssignListTotal:0,loading:!1,AllocationConfigVisible:!1,taskAllocationRuleVisible:!1,AutoAlloctionVisible:!1,WaitApplyVisible:!1,applyVisible:!1,manualAllocationVisible:!1,trialId:this.$route.query.trialId,currentData:{},param:{},DoctorUserList:[],TaskAllocationRuleList:[],btnLoading:!1,value:!0,value1:!0,TrialTaskInfo:{TrialId:null,TaskAllocateObjEnum:0,FollowVisitAutoAssignDefaultState:0,FollowGlobalVisitAutoAssignDefaultState:0,TaskAllocateDefaultState:1,IsFollowVisitAutoAssign:!0,IsFollowGlobalVisitAutoAssign:!0},rules:{DoctorUserId:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}]},title:"",rowData:{},ApplyTaskInfo:{},timeList:[],WaitApplyList:[],SubjectAssignList:[],SubjectAssignSelectList:[],TaskAllocationRuleSelectList:[],readVisible:!1,TaskOptType:null,OtherInfo:null,ReadingType:null}},mounted:function(){this.searchData.ReadingCategory=this.allocationReadingCategory,this.searchData.SubjectCode=this.allocationSubjectCode,this.searchData.TrialReadingCriterionId=this.trialReadingCriterionId,console.log(this.searchData.SubjectCode,this.searchData.ReadingCategory),this.getList(),this.getSite(),this.getDoctorUserSelectList(),this.getTrialCriterionList()},methods:{getTrialCriterionList:function(){var e=this;Object(l["U"])(this.trialId).then((function(t){e.trialCriterionList=t.Result})).catch((function(){}))},getRole:function(e,t,i){var n;return 1===i?(~[1,2,3].indexOf(t)&&(n="R1"),~[4].indexOf(t)&&(n="A1"),~[5].indexOf(t)&&(n="O1")):2===i&&(~[1,2,3].indexOf(t)&&(1===e?n="R1":2===e&&(n="R2")),~[4].indexOf(t)&&(n="A1"),~[5].indexOf(t)&&(n="O1")),console.log(n),n},findDoctorUser:function(e,t){var i;return e.length>0&&(i=e.find((function(e){return e.ArmEnum===t}))?e.find((function(e){return e.ArmEnum===t})):{UserName:null,FullName:null}),i},assignSubjectTaskToDoctor:function(e,t){var i=this;this.rowData=Object(o["a"])({},e),this.rowData.TaskOptType=t,1===t||2===t?this.readVisible=!0:3===t?this.$confirm("是否确定分配").then((function(){i.btnLoading=!0,i.loading=!0;var e=Object.assign({IsJudgeDoctor:!0},i.rowData);Object(l["h"])(e).then((function(e){i.$message.success("保存成功"),i.btnLoading=!1,i.loading=!1,i.readVisible=!1,i.getList()})).catch((function(){i.btnLoading=!1,i.loading=!1}))})):4===t&&this.$confirm("是否确定取消分配").then((function(){i.btnLoading=!0,i.loading=!0;var e=Object.assign({IsJudgeDoctor:!0},i.rowData);Object(l["h"])(e).then((function(e){i.$message.success("保存成功"),i.btnLoading=!1,i.loading=!1,i.readVisible=!1,i.getList()})).catch((function(){i.btnLoading=!1,i.loading=!1}))}))},assignSubjectTaskToDoctorSave:function(){var e=this;this.$refs.readDataForm.validate((function(t){if(t){e.btnLoading=!0,e.loading=!0;var i=Object.assign({IsJudgeDoctor:!0},e.rowData);Object(l["h"])(i).then((function(t){e.$message.success("保存成功"),e.btnLoading=!1,e.loading=!1,e.readVisible=!1,e.getList()})).catch((function(){e.btnLoading=!1,e.loading=!1}))}}))},manualAssignDoctorApplyTaskSave:function(){var e=this;this.loading=!0,this.btnLoading=!0,this.ApplyTaskInfo.IsJudgeDoctor=!0,Object(l["W"])(this.ApplyTaskInfo).then((function(t){e.loading=!1,e.btnLoading=!1,e.$message.success("生效成功"),e.WaitApplyVisible=!1,e.getList(),e.openAutoAlloction()})).catch((function(){e.loading=!1,e.btnLoading=!1}))},manualAssignDoctorApplyTask:function(e){var t=this,i={TrialId:this.trialId,SubjectIdList:Object.assign([],this.SubjectAssignSelectList.map((function(e){return e.SubjectId}))),IsJudgeDoctor:!0};if(this.ApplyTaskInfo={TrialId:this.trialId,SubjectDoctorUserList:Object.assign([],this.SubjectAssignSelectList.map((function(e){return e.DoctorUserIdArmList=e.DoctorUserList,e})))},e){i.SubjectIdList=[e.SubjectId];var n=Object.assign({},e);n.DoctorUserIdArmList=n.DoctorUserList,this.ApplyTaskInfo=Object.assign({},e),delete this.ApplyTaskInfo.DoctorUserList,delete this.ApplyTaskInfo.DoctorUserIdList,this.ApplyTaskInfo.SubjectDoctorUserList=[n]}console.log(this.ApplyTaskInfo),this.loading=!0,this.btnLoading=!0,Object(l["M"])(i).then((function(e){0!==e.Result.length?(t.WaitApplyList=e.Result,t.WaitApplyVisible=!0,t.loading=!1,t.btnLoading=!1):t.$message.error("该项目没有有效阅片人")})).catch((function(){t.loading=!1,t.btnLoading=!1}))},autoSubjectAssignDoctor:function(){var e=this;this.$confirm("确定执行自动分配?").then((function(){e.loading=!0,e.btnLoading=!0,Object(l["i"])({TrialId:e.trialId,IsJudgeDoctor:!0}).then((function(t){e.loading=!1,e.btnLoading=!1,e.$message.success("自动分配成功"),e.getList(),e.openAutoAlloction()})).catch((function(){e.loading=!1,e.btnLoading=!1}))}))},handleSaveTaskAllocationRuleSelectList:function(){var e=this;if(0!==this.TaskAllocationRuleSelectList.length){this.loading=!0,this.btnLoading=!0;var t={DoctorUserIdArmList:this.TaskAllocationRuleSelectList.map((function(e,t){return{DoctorUserId:e.DoctorUserId,ArmEnum:3}})),SubjectIdList:this.SubjectAssignSelectList.map((function(e){return e.SubjectId})),TrialId:this.trialId,IsReAssign:!0,IsJudgeDoctor:!0};Object(l["g"])(t).then((function(t){e.loading=!1,e.btnLoading=!1,e.openAutoAlloction(),e.TaskAllocationRuleSelectList=[],e.SubjectAssignSelectList=[],e.getDoctorUserSelectList(),e.$message.success("分配成功"),e.manualAllocationVisible=!1})).catch((function(){e.loading=!1,e.btnLoading=!1}))}else this.$message.error("请选择裁判")},selectable:function(e){var t=1;return!(this.TaskAllocationRuleSelectList.length===t&&!this.TaskAllocationRuleSelectList.find((function(t){return t.UserName===e.UserName})))},cancelSubjectAssignDoctor:function(e){var t=this;e?this.$confirm("确定要清空该受试者的裁判吗?").then((function(){var i={SubjectIdList:[e.SubjectId],TrialId:t.trialId,IsJudgeDoctor:!0};t.loading=!0,t.btnLoading=!0,Object(l["k"])(i).then((function(e){t.$message.success("清空成功"),t.loading=!1,t.btnLoading=!1,t.openAutoAlloction()})).catch((function(e){t.loading=!1,t.btnLoading=!1}))})):0!==this.SubjectAssignSelectList.length?this.$confirm("确定要清空该受试者的阅片人吗?").then((function(){var e={SubjectIdList:t.SubjectAssignSelectList.map((function(e){return e.SubjectId})),TrialId:t.trialId};t.loading=!0,t.btnLoading=!0,Object(l["k"])(e).then((function(e){t.$message.success("清空成功"),t.loading=!1,t.btnLoading=!1,t.openAutoAlloction()})).catch((function(e){t.loading=!1,t.btnLoading=!1}))})):this.$message.error("请勾选要清空阅片人的受试者")},manualAllocation:function(e){e&&(this.SubjectAssignSelectList=[e]),0!==this.SubjectAssignSelectList.length?this.manualAllocationVisible=!0:this.$message.error("请勾选要分配的受试者")},handleTaskAllocationRuleListSelectChange:function(e){this.TaskAllocationRuleSelectList=e},handleSubjectAssignListSelectChange:function(e){this.SubjectAssignSelectList=e},changeTimeList:function(){this.timeList?(this.searchData.BeginAllocateDate=this.timeList[0],this.searchData.EndAllocateDate=this.timeList[1]):(this.searchData.BeginAllocateDate=null,this.searchData.EndAllocateDate=null)},handleCancel:function(){this.AllocationConfigVisible=!1},handleSave:function(){var e=this;this.btnLoading=!0,this.loading=!0;var t=Object.assign({IsJudgeDoctor:!0},this.TrialTaskInfo);t.TrialId=this.$route.query.trialId,Object(l["n"])(t).then((function(t){e.btnLoading=!1,e.loading=!1,e.AllocationConfigVisible=!1,e.getList(),e.$message.success("保存成功")})).catch((function(){e.btnLoading=!1,e.loading=!1}))},handleDelete:function(e){var t=this;this.$confirm("确定要删除".concat(e.UserName,"(").concat(e.FullName,")的任务分配规则?"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.loading=!0,Object(l["r"])(e.Id,!0).then((function(e){t.loading=!1,t.$message.success("删除成功"),t.openAllocationConfigVisible()})).catch((function(){t.loading=!1}))}))},addOrEdit:function(e){e?(this.rowData=Object(o["a"])({},e),this.title="编辑"):(this.rowData={},this.title="新增"),this.taskAllocationRuleVisible=!0},openAllocationConfigVisible:function(){var e=this;this.loading=!0,Object(l["R"])({TrialId:this.$route.query.trialId,IsJudgeDoctor:!0}).then((function(t){e.loading=!1,e.TaskAllocationRuleList=t.Result,e.TrialTaskInfo=Object.assign({},t.OtherInfo),e.AllocationConfigVisible=!0,e.taskAllocationRuleVisible=!1})).catch((function(){e.loading=!1}))},openAutoAlloction:function(){var e=this;this.loading=!0,Object(l["R"])({TrialId:this.$route.query.trialId,IsJudgeDoctor:!0}).then(function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(i){var n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.taskSearchData.TrialId=e.$route.query.trialId,n=Object.assign({},e.taskSearchData),t.next=4,Object(l["O"])(n);case 4:a=t.sent,e.SubjectAssignList=a.Result.CurrentPageData,e.SubjectAssignListTotal=a.Result.TotalCount,e.loading=!1,e.TaskAllocationRuleList=i.Result,e.TrialTaskInfo=Object.assign({},i.OtherInfo),e.AutoAlloctionVisible=!0;case 11:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(){e.loading=!1}))},getDoctorUserSelectList:function(){var e=this;Object(l["A"])(this.$route.query.trialId).then((function(t){e.DoctorUserList=t.Result,e.DoctorUserList.length>0&&(e.ReadingType=e.DoctorUserList[0].ReadingType)}))},getList:function(){var e=this;this.searchData.TrialId=this.$route.query.trialId,this.loading=!0,Object(l["E"])(this.searchData).then((function(t){e.loading=!1,e.OtherInfo=t.OtherInfo,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=f(),this.getList()},handleReset2:function(){this.taskSearchData=h(),this.openAutoAlloction()},getSite:function(){var e=this;Object(s["Zd"])(this.trialId).then((function(t){e.siteOptions=t.Result}))},handleSortChange:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()}}},m=p,g=(i("22a0"),i("2877")),v=Object(g["a"])(m,n,a,!1,null,"b9b1c9aa",null);t["default"]=v.exports},"99f5":function(e,t,i){},"9a3b":function(e,t,i){"use strict";i.d(t,"a",(function(){return a})),i.d(t,"b",(function(){return r})),i.d(t,"d",(function(){return o})),i.d(t,"c",(function(){return s}));var n=i("b775");function a(e){return Object(n["a"])({url:"/Inspection/QCOperation/CRCRequestToQC",method:"post",data:e})}function r(e){return Object(n["a"])({url:"/Inspection/QCOperation/CheckBack",method:"post",data:e})}function o(e){return Object(n["a"])({url:"/Inspection/QCOperation/SetReuploadFinished",method:"post",data:e})}function s(e){return Object(n["a"])({url:"/Inspection/QCOperation/QCPassedOrFailed",method:"post",data:e})}},"9a4e":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container exchange-rate data-list"},[i("div",{staticClass:"filter-container"},[i("el-date-picker",{staticStyle:{width:"150px","margin-right":"5px"},attrs:{size:"small",placeholder:"Search Month","value-format":"yyyy-MM",format:"yyyy-MM",type:"month","picker-options":e.pickerOption},model:{value:e.listQuery.SearchMonth,callback:function(t){e.$set(e.listQuery,"SearchMonth",t)},expression:"listQuery.SearchMonth"}}),e._v(" "),i("el-button",{attrs:{size:"small",type:"text"},on:{click:e.handleReset}},[e._v("Reset")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.handleSearch}},[e._v("Search")]),e._v(" "),i("el-button",{staticStyle:{"margin-left":"auto"},attrs:{type:"primary",size:"small"},on:{click:e.handleNew}},[e._v("New")])],1),e._v(" "),i("div",{staticClass:"list-container"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticClass:"table",attrs:{data:e.list,stripe:"",height:"100%",size:"small"}},[i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"YearMonth",label:"Month","min-width":"60","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Rate",label:"Rate","min-width":"60","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"UpdateTime",label:"Update Time","min-width":"70","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{fixed:"right",label:"Action","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{size:"small",type:"text"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("Edit")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"text"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("Delete")])]}}])})],1)],1),e._v(" "),i("div",{staticClass:"pagination"},[i("pagination",{attrs:{total:e.total,page:e.listQuery.PageIndex,limit:e.listQuery.PageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"PageIndex",t)},"update:limit":function(t){return e.$set(e.listQuery,"PageSize",t)},pagination:e.getList}})],1),e._v(" "),i("el-dialog",{key:e.timer,attrs:{title:e.title,visible:e.dialogVisible,width:"500px","close-on-click-modal":!1,size:"small"},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("el-form",{ref:"rateForm",attrs:{"label-width":"150px",rules:e.rules,model:e.form,size:"small"}},[i("el-form-item",{attrs:{label:"Month: ",prop:"YearMonth"}},[i("el-date-picker",{attrs:{type:"month","value-format":"yyyy-MM",disabled:""!=e.form.Id&&void 0!=e.form.Id},model:{value:e.form.YearMonth,callback:function(t){e.$set(e.form,"YearMonth",t)},expression:"form.YearMonth"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Exchange Rate: ",prop:"Rate"}},[i("el-input",{attrs:{type:"number"},model:{value:e.form.Rate,callback:function(t){e.$set(e.form,"Rate",t)},expression:"form.Rate"}})],1)],1),e._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{size:"small"},on:{click:function(t){e.dialogVisible=!1}}},[e._v("Cancel")]),e._v(" "),i("el-button",{attrs:{type:"primary",disabled:e.btnDisabled,size:"small"},on:{click:e.handleSave}},[e._v("Ok")])],1)],1)],1)},a=[],r=(i("20d6"),i("6b95")),o=i("333d"),s={name:"ExchangeRate",components:{Pagination:o["default"]},data:function(){return{listQuery:{SearchMonth:"",PageIndex:1,PageSize:20},list:[],listLoading:!1,total:0,dialogVisible:!1,title:"",timer:"",form:{},rules:{Rate:[{required:!0,message:"Please specify",trigger:"blur"}],YearMonth:[{required:!0,message:"Please specify",trigger:"blur"}]},btnDisabled:!1,pickerOption:{disabledDate:function(e){return e.getTime()>Date.now()}}}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.listLoading=!0,Object(r["w"])(this.listQuery).then((function(t){e.listLoading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.listLoading=!1}))},handleNew:function(){this.form={},this.title="Add",this.timer=(new Date).getTime(),this.dialogVisible=!0},handleEdit:function(e){this.title="Edit",this.form=JSON.parse(JSON.stringify(e)),this.timer=(new Date).getTime(),this.dialogVisible=!0},handleSave:function(){var e=this;this.$refs.rateForm.validate((function(t){if(t){e.btnDisabled=!0;var i={Rate:e.form.Rate,YearMonth:e.form.YearMonth};e.form.Id&&(i.Id=e.form.Id),Object(r["b"])(i).then((function(t){t.IsSuccess&&(e.getList(),e.$message.success("Updated successfully!"),e.dialogVisible=!1),e.btnDisabled=!1})).catch((function(){e.btnDisabled=!1}))}}))},handleDelete:function(e){var t=this;this.$confirm("Confirm to delete?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Yes",cancelButtonText:"No"}).then((function(){Object(r["j"])(e.Id).then((function(i){i.IsSuccess&&(t.list.splice(t.list.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success("Deleted successfully!"))}))})).catch((function(e){}))},handleSearch:function(){this.listQuery.PageIndex=1,this.getList()},handleReset:function(){this.listQuery.SearchMonth="",this.listQuery.PageIndex=1,this.getList()}}},l=s,c=(i("eee5"),i("2877")),u=Object(c["a"])(l,n,a,!1,null,"0ef5ef66",null);t["default"]=u.exports},"9a6f":function(e,t,i){"use strict";i("2763")},"9ab6":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"search-container"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:self-attachment:table:fileType")}},[i("el-select",{staticStyle:{width:"150px"},model:{value:e.searchData.FileTypeId,callback:function(t){e.$set(e.searchData,"FileTypeId",t)},expression:"searchData.FileTypeId"}},e._l(e.typeOptions,(function(e){return i("el-option",{key:e.FileTypeId,attrs:{label:e.FileType,value:e.FileTypeId}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:self-attachment:table:fileName")}},[i("el-input",{staticStyle:{width:"120px"},model:{value:e.searchData.Name,callback:function(t){e.$set(e.searchData,"Name",t)},expression:"searchData.Name"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:self-attachment:table:isSign")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.IsSign,callback:function(t){e.$set(e.searchData,"IsSign",t)},expression:"searchData.IsSign"}},e._l(e.$d.YesOrNo,(function(t){return"无"!==t.raw.ValueCN?i("el-option",{attrs:{label:t.label,value:t.value}}):e._e()})),1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{icon:"el-icon-search",type:"primary"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{icon:"el-icon-refresh-left",type:"primary"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")])],1)],1)],1),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"}],ref:"TrialAttachments",attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"selection",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"FileType",label:e.$t("trials:self-attachment:table:fileType"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Name",label:e.$t("trials:self-attachment:table:fileName"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsDeleted",label:e.$t("trials:self-attachment:table:isDeleted"),"show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsDeleted?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsDeleted)))]):i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsDeleted)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:e.$t("trials:self-attachment:table:uploadTime"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"ConfirmTime",label:e.$t("trials:self-attachment:table:isSign"),"show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsConfirmed?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsConfirmed)))]):i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsConfirmed)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ConfirmTime",label:e.$t("trials:self-attachment:table:signTime"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action")},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{icon:"el-icon-view",circle:"",title:e.$t("trials:self-attachment:action:preview")},on:{click:function(i){return e.handlePreview(t.row)}}}),e._v(" "),i("el-button",{attrs:{icon:"el-icon-edit-outline",circle:"",disabled:!!t.row.ConfirmTime,title:e.$t("trials:self-attachment:action:sign")},on:{click:function(i){return e.handleSign(t.row)}}})]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1),e._v(" "),e.previewVisible?i("el-dialog",{attrs:{visible:e.previewVisible,title:e.title,fullscreen:!0,"append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.previewVisible=t}}},[e.currentIsConfirm?e._e():i("span",{staticStyle:{position:"fixed",right:"75px",top:"14px"}},[i("span",{staticStyle:{color:"red","margin-right":"10px"}},[e._v("\n "+e._s(e.$t("common:message:signTip"))+"\n "),i("span",{directives:[{name:"show",rawName:"v-show",value:e.duration<60*e.currentMinMinutes,expression:"duration < currentMinMinutes * 60"}]},[e._v(e._s("("+(60*e.currentMinMinutes-e.duration)+"s)"))])]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",disabled:null!==e.timer||0===e.duration,loading:e.btnLoading},on:{click:e.handleConfirm}},[e._v("\n "+e._s(e.$t("common:button:sign"))+"\n ")])],1),e._v(" "),i("div",{staticClass:"base-modal-body",staticStyle:{border:"2px solid #ccc",padding:"10px"}},[e.previewVisible?i("PreviewFile",{attrs:{"file-path":e.currentPath,"file-type":e.currentType},on:{getList:e.getList}}):e._e()],1)]):e._e(),e._v(" "),e.signVisible?i("el-dialog",{attrs:{visible:e.signVisible,"close-on-click-modal":!1,width:"600px","append-to-body":""},on:{"update:visible":function(t){e.signVisible=t}}},[i("div",{attrs:{slot:"title"},slot:"title"},[i("span",{staticStyle:{"font-size":"18px"}},[e._v(e._s(e.$t("common:dialogTitle:sign")))]),e._v(" "),i("span",{staticStyle:{"font-size":"12px","margin-left":"5px"}},[e._v(e._s("("+e.$t("common:label:sign")+e.currentUser+")"))])]),e._v(" "),i("SignForm",{attrs:{"is-system-doc":e.currentRow.IsSystemDoc,"document-id":e.currentRow.Id,"file-name":e.fileName,"trial-id":e.trialId},on:{closeDialog:e.closeSignDialog}})],1):e._e()],2)},a=[],r=i("db72"),o=(i("96cf"),i("3b8d")),s=i("3e42"),l=i("6071"),c=i("333d"),u=i("c686"),d=i("1d64"),f=i("4360"),h=function(){return{FileTypeId:"",Name:"",SortField:"",IsSign:null,Asc:!1,PageIndex:1,PageSize:20}},p={name:"TrialAttachments",components:{BaseContainer:l["default"],Pagination:c["default"],PreviewFile:u["default"],SignForm:d["default"]},data:function(){return{searchData:h(),loading:!1,list:[],total:0,currentRow:{},currentPath:"",currentType:"",currentIsConfirm:!1,currentMinMinutes:0,title:"",duration:0,timer:null,previewVisible:!1,btnLoading:!1,signVisible:!1,fileName:"",currentUser:zzSessionStorage.getItem("userName"),typeOptions:[],trialId:this.$route.query.trialId}},mounted:function(){this.trialId=this.$route.query.trialId,this.getTypeOptions(),this.$route.query.isSign&&(this.searchData.IsSign=JSON.parse(this.$route.query.isSign)),this.getList()},destroyed:function(){this.timer&&this.stopTimer()},methods:{getList:function(){var e=this;this.loading=!0,this.searchData.TrialId=this.trialId,Object(s["fe"])(this.searchData).then(function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(i){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.loading=!1,e.list=i.Result.CurrentPageData,e.total=i.Result.TotalCount,n=i.OtherInfo.NeedSignCount,t.next=6,f["a"].dispatch("user/setTotalNeedSignTrialDocCount",n);case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(){e.loading=!1}))},getTypeOptions:function(){var e=this;Object(s["Fd"])(this.trialId).then((function(t){e.typeOptions=t.Result}))},handlePreview:function(e){this.currentRow=Object(r["a"])({},e);var t=e.Name,i=e.FullFilePath,n=e.SignViewMinimumMinutes;this.currentPath=i,this.currentType=e.Name?t.substring(t.lastIndexOf(".")+1).toLocaleLowerCase():"",this.currentMinMinutes=n,this.currentIsConfirm=!0,this.title=t,this.previewVisible=!0},handleSign:function(e){var t=this;this.currentRow=Object(r["a"])({},e);var i=e.Name,n=e.FullFilePath,a=e.SignViewMinimumMinutes;this.currentPath=n,this.currentType=e.Name?i.substring(i.lastIndexOf(".")+1).toLocaleLowerCase():"",this.currentMinMinutes=a,this.currentIsConfirm=!1,this.title=i,this.fileName=i.slice(0,i.lastIndexOf("."));var o=this.trialId;this.loading=!0,Object(s["Ke"])(o,e.Id,e.IsSystemDoc).then((function(e){t.loading=!1,t.previewVisible=!0;var i=t;setTimeout((function(){i.initTimer()}),1e3)})).catch((function(){t.loading=!1}))},initTimer:function(){this.currentMinMinutes>0&&!this.currentIsConfirm&&(this.duration=0,this.timer&&this.stopTimer(),this.startTimer())},startTimer:function(){var e=this;this.timer=setInterval((function(){e.duration++,e.duration>=60*e.currentMinMinutes&&e.stopTimer()}),1e3)},stopTimer:function(){clearInterval(this.timer),this.timer=null},handleConfirm:function(){this.signVisible=!0},closeSignDialog:function(e){this.signVisible=!1,e&&(this.currentIsConfirm=!0,this.getList())},handleReset:function(){var e=this;this.searchData=h(),this.getList(),this.$nextTick((function(){e.$refs.TrialAttachments.clearSort()}))},handleSearch:function(){this.getList()},handleSortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.getList()}}},m=p,g=i("2877"),v=Object(g["a"])(m,n,a,!1,null,null,null);t["default"]=v.exports},"9b06":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"stats-reviewer"},[i("div",{ref:"listContainer",staticClass:"list-container"},[e.tableHeight?i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],attrs:{size:"small",stripe:"",height:"97%",data:e.list,"show-summary":"","summary-method":e.getSummaries},on:{"sort-change":e.sortByColumn,"selection-change":e.handleSelectChange}},[i("el-table-column",{attrs:{type:"selection"}}),e._v(" "),i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Hospital",sortable:"custom",label:"Hospital","min-width":"130","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:"Name","show-overflow-tooltip":"","min-width":"100",prop:"FirstName",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.LastName)+" / "+e._s(t.row.FirstName))]}}],null,!1,809595983)}),e._v(" "),i("el-table-column",{attrs:{prop:"ChineseName",sortable:"custom",label:"Name CN","min-width":"105","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ReviewerCode",label:"ID","min-width":"80","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Pending",label:"Pending","min-width":"80","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Approved",label:"Approved","min-width":"90","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Reading",label:"Reading","min-width":"90","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Finished",label:"Finished","min-width":"90","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Total",label:"Total","min-width":"90","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"EntryRate",label:"Entry Rate","min-width":"100","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.EntryRate)+"%")]}}],null,!1,2000662405)})],1):e._e()],1),e._v(" "),i("div",{staticClass:"pagination"},[i("pagination",{attrs:{total:e.total,page:e.listQuery.PageIndex,limit:e.listQuery.PageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"PageIndex",t)},"update:limit":function(t){return e.$set(e.listQuery,"PageSize",t)},pagination:e.getList}})],1)])},a=[],r=(i("c5f6"),i("ac6a"),i("48fb")),o=i("333d"),s=i("0340"),l={components:{Pagination:o["default"]},props:{param:{type:Object,default:function(){return{}}}},data:function(){return{list:[],listQuery:{},total:0,listLoading:!1,tableHeight:0,arrID:[]}},watch:{param:{handler:function(e,t){this.listQuery.HospitalId=e.HospitalId,this.listQuery.Reviewer=e.Reviewer,this.listQuery.BeginDate=e.BeginDate,this.listQuery.EndDate=e.EndDate},deep:!0}},mounted:function(){this.tableHeight=this.$refs.listContainer.clientHeight+"px",this.listQuery.HospitalId=this.param.HospitalId,this.listQuery.Reviewer=this.param.Reviewer,this.listQuery.BeginDate=this.param.BeginDate,this.listQuery.EndDate=this.param.EndDate,this.listQuery.PageIndex=1,this.listQuery.PageSize=20,this.getList()},methods:{getList:function(){var e=this;this.listLoading=!0,Object(r["a"])(this.listQuery).then((function(t){e.listLoading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.listLoading=!1}))},handleSelectChange:function(e){for(var t=[],i=0;i<e.length;i++)t.push(e[i].Id);this.arrID=t,this.arrID.length>0?this.$emit("selectMore",!1):this.$emit("selectMore",!0)},getSummaries:function(e){var t=e.columns,i=e.data,n=[];return t.forEach((function(e,t){if(2!==t){if("EntryRate"!==e.property){var a=i.map((function(t){return Number(t[e.property])}));a.every((function(e){return isNaN(e)}))||(n[t]=a.reduce((function(e,t){var i=Number(t);return isNaN(i)?e:e+t}),0))}}else n[t]="Total (Current Page)"})),n[11]=(100*(n[9]+n[8])/n[10]).toFixed(2)+"%",n},sortByColumn:function(e){"ascending"===e.order?this.listQuery.Asc=!0:this.listQuery.Asc=!1,this.listQuery.SortField=e.prop,this.listQuery.PageIndex=1,this.getList()},resetList:function(){this.getList()},export:function(){var e=this,t="".concat(this.listQuery.BeginDate,"~").concat(this.listQuery.EndDate),i=[{key:"Index",width:5},{key:"Hospital",width:25},{key:"LastName",width:15},{key:"FirstName",width:15},{key:"ChineseName",width:10},{key:"ReviewerCode",width:10},{key:"Pending",width:10},{key:"Approved",width:10},{key:"Reading",width:10},{key:"Finished",width:10},{key:"Total",width:10},{key:"Rate",width:20}],n="Beginning Month:".concat(this.listQuery.BeginDate," End Month:").concat(this.listQuery.EndDate),a=["","Hospital","Surname","Given Name","Name CN","Reviewer ID","Pending","Approved","Reading","Finished","Total","Entry rate(%)"],r=0,o=0,l=0,c=0,u=0,d=1,f=this.list.filter((function(t){return e.arrID.indexOf(t.Id)>-1}));f.forEach((function(e){e.Index=d++,e.Rate=e.EntryRate/100,r+=e.Pending,o+=e.Approved,l+=e.Reading,c+=e.Finished,u+=e.Total}));var h=["","Total","","","","",r,o,l,c,u,(l+c)/u],p=[{colIndex:12,format:"0.00%"}];Object(s["a"])(t,i,"Enrollments Statistics",n,a,f,h,p)}}},c=l,u=(i("cc92"),i("2877")),d=Object(u["a"])(c,n,a,!1,null,"42fc63ef",null);t["default"]=d.exports},"9b2c":function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-logininfor",use:"icon-logininfor-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-logininfor"><defs><style type="text/css"></style></defs><path d="M896 128h-85.333333a42.666667 42.666667 0 0 0 0 85.333333h42.666666v640H170.666667V213.333333h42.666666a42.666667 42.666667 0 0 0 0-85.333333H128a42.666667 42.666667 0 0 0-42.666667 42.666667v725.333333a42.666667 42.666667 0 0 0 42.666667 42.666667h768a42.666667 42.666667 0 0 0 42.666667-42.666667V170.666667a42.666667 42.666667 0 0 0-42.666667-42.666667z" p-id="5262" /><path d="M341.333333 298.666667a42.666667 42.666667 0 0 0 42.666667-42.666667V128a42.666667 42.666667 0 0 0-85.333333 0v128a42.666667 42.666667 0 0 0 42.666666 42.666667zM512 298.666667a42.666667 42.666667 0 0 0 42.666667-42.666667V128a42.666667 42.666667 0 0 0-85.333334 0v128a42.666667 42.666667 0 0 0 42.666667 42.666667zM682.666667 298.666667a42.666667 42.666667 0 0 0 42.666666-42.666667V128a42.666667 42.666667 0 0 0-85.333333 0v128a42.666667 42.666667 0 0 0 42.666667 42.666667zM341.333333 768a42.666667 42.666667 0 0 0 42.666667-42.666667 128 128 0 0 1 256 0 42.666667 42.666667 0 0 0 85.333333 0 213.333333 213.333333 0 0 0-107.52-184.32A128 128 0 0 0 640 469.333333a128 128 0 0 0-256 0 128 128 0 0 0 22.186667 71.68A213.333333 213.333333 0 0 0 298.666667 725.333333a42.666667 42.666667 0 0 0 42.666666 42.666667z m128-298.666667a42.666667 42.666667 0 1 1 42.666667 42.666667 42.666667 42.666667 0 0 1-42.666667-42.666667z" p-id="5263" /></symbol>'});o.a.add(s);t["default"]=s},"9b42":function(e,t){function i(e,t){var i=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var n,a,r=[],o=!0,s=!1;try{for(i=i.call(e);!(o=(n=i.next()).done);o=!0)if(r.push(n.value),t&&r.length===t)break}catch(l){s=!0,a=l}finally{try{o||null==i["return"]||i["return"]()}finally{if(s)throw a}}return r}}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},"9b6c":function(e,t,i){"use strict";i.d(t,"a",(function(){return n}));var n={visible:!1,title:"",width:"600px",showClose:!0}},"9b8f":function(e,t,i){"use strict";i.r(t);i("a481");var n,a,r={created:function(){var e=this.$route,t=e.params,i=e.query,n=t.path;this.$router.replace({path:"/"+n,query:i})},render:function(e){return e()}},o=r,s=i("2877"),l=Object(s["a"])(o,n,a,!1,null,null,null);t["default"]=l.exports},"9b925":function(e,t,i){"use strict";i("0bd1")},"9ba0":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container monthly-paymentDetail"},[i("div",{staticClass:"filter-container"},[i("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0,model:e.basicInfo,size:"small"}},[i("el-form-item",{attrs:{label:"Name"}},[i("el-input",{staticStyle:{width:"160px"},attrs:{readonly:""},model:{value:e.basicInfo.Name,callback:function(t){e.$set(e.basicInfo,"Name",t)},expression:"basicInfo.Name"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"ID"}},[i("el-input",{staticStyle:{width:"100px"},attrs:{readonly:""},model:{value:e.basicInfo.Code,callback:function(t){e.$set(e.basicInfo,"Code",t)},expression:"basicInfo.Code"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Rank"}},[i("el-input",{staticStyle:{width:"180px"},attrs:{readonly:""},model:{value:e.basicInfo.RankName,callback:function(t){e.$set(e.basicInfo,"RankName",t)},expression:"basicInfo.RankName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Month"}},[i("el-input",{staticStyle:{width:"100px"},attrs:{readonly:""},model:{value:e.basicInfo.YearMonth,callback:function(t){e.$set(e.basicInfo,"YearMonth",t)},expression:"basicInfo.YearMonth"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Exchange Rate"}},[i("el-input",{staticStyle:{width:"80px"},attrs:{readonly:""},model:{value:e.basicInfo.ExchangeRate,callback:function(t){e.$set(e.basicInfo,"ExchangeRate",t)},expression:"basicInfo.ExchangeRate"}})],1),e._v(" "),i("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.exportExcel}},[e._v("Export Excel")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.loading},on:{click:function(t){return e.handleWindowPrint("#payDetailPdf2",e.htmlTitle)}}},[e._v("Export PDF")])],1)],1),e._v(" "),i("el-table",{attrs:{id:"payDetailPdf2",height:"90%",data:e.list,"span-method":e.objectSpanMethod,border:"","show-summary":"","summary-method":e.getSummaries,align:"center",size:"small"}},[i("el-table-column",{attrs:{prop:"TrialCode",label:"Project ID","show-overflow-tooltip":"","min-width":"100"}}),e._v(" "),i("el-table-column",{attrs:{prop:"PaymentType",label:"Read Type","show-overflow-tooltip":"","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",[e._v(e._s("Adjustment"!=t.row.TrialCode?t.row.PaymentType:t.row.AdjustmentView.AdjustType))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Count",label:"Volume","show-overflow-tooltip":"","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",[e._v(e._s("Adjustment"!=t.row.TrialCode?t.row.Count:t.row.AdjustmentView.Note))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"BasePrice",label:"Base Rate ($)","show-overflow-tooltip":"","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.BasePrice)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"PersonalAdditional",label:"Personal Adjustment ($)","show-overflow-tooltip":"","min-width":"160"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.PersonalAdditional)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialAdditional",label:"Project Adjustment ($)","show-overflow-tooltip":"","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.TrialAdditional)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TotalUnitPrice",label:"Adjusted Rate ($)","show-overflow-tooltip":"","min-width":"130"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.TotalUnitPrice)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"PaymentUSD",label:"Subtotal ($)","show-overflow-tooltip":"","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.PaymentUSD)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"PaymentCNY",label:e.rmbTitle,"show-overflow-tooltip":"","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[0==e.basicInfo.ExchangeRate?i("span",{staticStyle:{color:"red"}},[e._v(e._s("Setting Needed"))]):i("span",[e._v(e._s(t.row.PaymentCNY))])]}}])})],1)],1)},a=[],r=(i("ac6a"),i("c5f6"),i("6b95")),o=i("e8ae"),s=i.n(o),l=i("3339"),c={name:"PaymentDetail",filters:{rounding:function(e){return e?Number(e).toFixed(2):e}},data:function(){return{basicInfo:{},list:[],spanArr:[],pos:0,htmlTitle:"",rmbTitle:"",loading:!1}},mounted:function(){var e=this.$router.currentRoute.query;this.basicInfo=function(e){var t=e.Id,i=e.DoctorId,n=e.ChineseName,a=e.LastName,r=e.FirstName,o=e.Code,s=e.ExchangeRate,l=e.RankName,c=e.YearMonth;return{Id:t,DoctorId:i,ChineseName:n,LastName:a,FirstName:r,Code:o,ExchangeRate:s,RankName:l,YearMonth:c}}(e),this.basicInfo.Name="".concat(this.basicInfo.FirstName," ").concat(this.basicInfo.LastName," ").concat(this.basicInfo.ChineseName),this.htmlTitle=this.basicInfo.ChineseName+"_"+this.basicInfo.YearMonth,this.getList()},methods:{getList:function(){var e=this;Object(r["o"])(this.basicInfo.Id,this.basicInfo.DoctorId,this.basicInfo.YearMonth).then((function(t){e.list=t.Result.DetailList,e.rmbTitle="Subtotal(¥)",e.getSpanArr(t.Result.DetailList),e.list.forEach((function(e,t,i){e.AdjustmentView&&(e.AdjustmentView.Note="Note: ".concat(e.AdjustmentView.Note))}))}))},getSummaries:function(e){var t=this,i=e.columns,n=e.data,a=[];return i.forEach((function(e,i){if(0!==i){if("PaymentUSD"===e.property){var r=n.map((function(t){return Number(t[e.property])}));r.every((function(e){return isNaN(e)}))||(a[i]=r.reduce((function(e,t){var i=Number(t);return isNaN(i)?e:l["a"].add(e,t)}),0))}if("PaymentCNY"===e.property){var o=n.map((function(e){return Number(e["PaymentCNY"])}));return a[i]=o.reduce((function(e,t){var i=Number(t);return isNaN(i)?e:l["a"].add(e,t)}),0),void(0===a[i]&&0===t.basicInfo.ExchangeRate&&(a[i]="Setting Needed"))}}else a[i]="Total"})),a},getSpanArr:function(e){for(var t=0;t<e.length;t++)0===t?(this.spanArr.push(1),this.pos=0):e[t].TrialCode===e[t-1].TrialCode?(this.spanArr[this.pos]+=1,this.spanArr.push(0)):(this.spanArr.push(1),this.pos=t)},objectSpanMethod:function(e){var t=e.row,i=(e.column,e.rowIndex),n=e.columnIndex;if(0===n){var a=this.spanArr[i],r=a>0?1:0;return{rowspan:a,colspan:r}}if("Adjustment"===t.TrialCode){if(2===n)return[1,5];if(3===n||4===n||5===n||6===n)return[0,0]}},exportExcel:function(){var e=new s.a.Workbook,t=e.addWorksheet(this.basicInfo.ChineseName+" "+this.basicInfo.YearMonth);t.properties.defaultRowHeight=22,t.columns=[{header:"Project ID",key:"TrialCode",width:15},{header:"Type",key:"PaymentType",width:30},{header:"Count",key:"Count",width:15},{header:"Base Price",key:"BasePrice",width:15},{header:"Personal Additional",key:"PersonalAdditional",width:22},{header:"Trial Additional",key:"TrialAdditional",width:22},{header:"Total Price",key:"TotalUnitPrice",width:22},{header:"Total Fee",key:"PaymentUSD",width:22},{header:"Subtotal(¥)",key:"PaymentCNY",width:22}];var i=this,n=0,a=0;this.list.forEach((function(e){n+=parseFloat(e.PaymentUSD),a+=parseFloat(e.PaymentCNY)}));var r=Number(this.list.length+1),o=4;t.mergeCells("A1","I2"),t.getCell("A1").value="Monthly Payment",t.getCell("A1").alignment={vertical:"middle",horizontal:"center"},t.getCell("A1").font={name:"SimSun",family:4,size:13,bold:!0},t.mergeCells("A3","D3"),t.getCell("A3").value="Name"+this.basicInfo.ChineseName+" ID:"+i.basicInfo.Code,t.mergeCells("E3","I3"),t.getCell("E3").value=" Rank"+i.basicInfo.RankName+" Month"+i.basicInfo.YearMonth+" Exchange Rate: "+Number(i.basicInfo.ExchangeRate),t.getCell("A3").alignment={vertical:"middle",horizontal:"left"},t.getCell("E3").alignment={vertical:"middle",horizontal:"right"},t.getCell("A4").value="Project ID",t.getCell("B4").value="Read Type",t.getCell("C4").value="Volume",t.getCell("D4").value="Base Rate($)",t.getCell("E4").value="Personal Adjustment($)",t.getCell("F4").value="Project Adjustment($)",t.getCell("G4").value="Adjusted Rate($)",t.getCell("H4").value="Subtotal($)",t.getCell("I4").value="Subtotal(¥)",t.getRow(4).font={name:"SimSun",family:4,size:11,bold:!0},t.addRows(this.list);for(var l=Math.floor(Number(this.list.length/9)),c=0;c<l;c++){var u="A"+(10*c+o+1),d="A"+(10*(c+1)+o);10*(c+1)<r&&(t.mergeCells(u,d),t.getCell(u).alignment={vertical:"middle",horizontal:"center"})}var f=this.list.filter((function(e){return"Volume Reward"===e.TrialCode})).length,h=this.list.filter((function(e){return"Adjustment"===e.TrialCode})).length;if(f>0){var p="A"+(10*l+o+1),m="A"+(10*l+o+f);t.mergeCells(p,m),t.getCell(p).alignment={vertical:"middle",horizontal:"center"}}if(h>0){var g="A"+(10*l+o+f+1),v="A"+(r+o-1);t.mergeCells(g,v),t.getCell(g).alignment={vertical:"middle",horizontal:"center"};var b=0;for(b=0;b<h;b++){var y="B"+(10*l+o+f+1+b),w="C"+(10*l+o+f+1+b),_="G"+(10*l+o+f+1+b);t.mergeCells(w,_);var I=10*l+f+b;t.getCell(y).value=this.list[I].AdjustmentView.AdjustType,t.getCell(w).value=this.list[I].AdjustmentView.Note}}var x="A"+(r+1+o-1),S="B"+(r+1+o-1),T="G"+(r+1+o-1),C="H"+(r+1+o-1),k="I"+(r+1+o-1);t.mergeCells(S,T),t.getCell(x).value="Total",t.getCell(C).value=n,t.getCell(k).value=a,t.getCell(C).font={name:"SimSun",family:4,size:13,bold:!0},t.getRow(r+o).font={name:"SimSun",family:4,size:13,bold:!0},t.getColumn(7).numFmt="#,##0.00",t.getColumn(8).numFmt="#,##0.00",t.getColumn(9).numFmt="#,##0.00",t.eachRow((function(e,t){t>3&&e.eachCell((function(e,t){e.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}}))})),e.xlsx.writeBuffer({base64:!0}).then((function(e){var t=new Blob([e],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});if("msSaveOrOpenBlob"in navigator)window.navigator.msSaveOrOpenBlob(t,i.basicInfo.ChineseName+" "+i.basicInfo.YearMonth+".xlsx");else{var n=document.createElement("a"),a=URL.createObjectURL(t);n.href=a,n.download=i.basicInfo.ChineseName+" "+i.basicInfo.YearMonth+".xlsx",document.body.appendChild(n),n.click(),setTimeout((function(){document.body.removeChild(n),window.URL.revokeObjectURL(a)}),0)}}))},handleWindowPrint:function(e,t,i){var n=document.createElement("iframe");n.style.display="none";var a=document.createElement("script"),r=document.createElement("style");r.type="text/css",document.body.appendChild(n),document.head.getElementsByTagName("title")[0].innerText="".concat(t),n.contentDocument.head.innerHTML='<meta charset="utf-8">\n <title>'.concat(t,'</title>\n <meta name="format-detection" content="telephone=no">\n <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">\n <meta name="viewport" content="width=device-width,initial-scale=1.0">');var o=' <div style="text-align:center; font-size:20px:"> Monthly Payment </div>',s="<div style='display: flex;justify-content: space-between;margin:25px 0px 20px'>\n <label>Name: ".concat(this.basicInfo.ChineseName,"</label>\n <label>ID: ").concat(this.basicInfo.Code,"</label>\n <label>Rank: ").concat(this.basicInfo.RankName,"</label>\n <label>Month: ").concat(this.basicInfo.YearMonth,"</label>\n <label>Exchange Rate: ").concat(this.basicInfo.ExchangeRate,"</label>\n </div>");n.contentDocument.body.innerHTML=o+s+document.querySelector(e).outerHTML,n.contentDocument.body.style.zoom=.75,n.contentDocument.getElementsByClassName("el-table--scrollable-y").style="",n.contentDocument.getElementsByClassName("el-table__body-wrapper")[0].style={"max-height":"100%"},n.contentDocument.getElementsByClassName("el-table__header-wrapper")[0].remove();var l=document.createElement("tr");l.innerHTML=' \n <td >\n <div class="cell">Trial ID</div>\n </td>\n <td >\n <div class="cell">Read Type</div>\n </td>\n <td >\n <div class="cell">Volume</div>\n </td>\n <td >\n <div class="cell">Base Rate ($)</div>\n </td>\n <td >\n <div class="cell">Personal Adjustment ($)</div>\n </td>\n <td>\n <div class="cell">Trial Adjustment ($)</div>\n </td>\n <td >\n <div class="cell">Adjusted Rate ($)</div>\n </td>\n <td>\n <div class="cell">Subtotal ($)</div>\n </td>\n <td >\n <div class="cell">Subtotal(¥)</div>\n </td>\n <th></th>',n.contentDocument.getElementsByClassName("el-table__body")[0].children[1].appendChild(l);var c=n.contentDocument.getElementsByClassName("el-table__body")[0].children[1].firstChild;c.parentNode.insertBefore(l,c);var u=0,d=0;this.list.forEach((function(e){u+=parseFloat(e.PaymentUSD),d+=parseFloat(e.PaymentCNY)})),n.contentDocument.getElementsByClassName("el-table__footer-wrapper")[0].remove();var f=document.createElement("tr");f.innerHTML='\n <td >\n <div class="cell">Total</div>\n </td>\n <td >\n <div class="cell"></div>\n </td>\n <td >\n <div class="cell"></div>\n </td>\n <td >\n <div class="cell"></div>\n </td>\n <td >\n <div class="cell"></div>\n </td>\n <td>\n <div class="cell"></div>\n </td>\n <td >\n <div class="cell"></div>\n </td>\n <td>\n <div class="cell">'.concat(u,'</div>\n </td>\n <td >\n <div class="cell">').concat(d,"</div>\n </td>\n <th></th>"),n.contentDocument.getElementsByClassName("el-table__body")[0].lastChild.appendChild(f),r.innerHTML=".el-table td{border:1px solid #ccc;}\n th{text-align:center} td{text-align:right}\n @page{size: landscape;}\n ",n.contentDocument.body.appendChild(r),a.innerText='if (window.navigator.userAgent.indexOf("Edge") >= 0)\n{ \nwindow.print();\n\n}\nelse{window.print();}',n.contentDocument.body.appendChild(a)}}},u=c,d=(i("5c80"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},"9ba3":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-row",{staticClass:"panel-group",attrs:{gutter:40}},[i("el-col",{staticClass:"card-panel-col",attrs:{span:6}},[i("div",{staticClass:"card-panel"},[i("div",{staticClass:"card-panel-icon-wrapper icon-people"},[i("svg-icon",{attrs:{"icon-class":"clipboard","class-name":"card-panel-icon"}})],1),e._v(" "),i("div",{staticClass:"card-panel-description"},[i("div",{staticClass:"card-panel-text"},[e._v("\n "+e._s(e.$t("trials:workbench:label:trialsStats"))+"\n ")]),e._v(" "),i("div",{staticClass:"card-panel-num"},[i("countTo",{attrs:{"start-val":0,"end-val":e.trialCount,duration:3e3}})],1)])])]),e._v(" "),i("el-col",{staticClass:"card-panel-col",attrs:{span:6}},[i("div",{staticClass:"card-panel"},[i("div",{staticClass:"card-panel-icon-wrapper icon-documentation"},[i("svg-icon",{attrs:{"icon-class":"documentation","class-name":"card-panel-icon"}})],1),e._v(" "),i("div",{staticClass:"card-panel-description"},[i("div",{staticClass:"card-panel-text"},[e._v("\n "+e._s(e.$t("trials:workbench:label:attachmentsStats"))+"\n ")]),e._v(" "),i("div",{staticClass:"card-panel-num"},[i("countTo",{attrs:{"start-val":0,"end-val":e.signedDocumentsCount,duration:3e3}}),e._v(" "),i("span",[e._v(" / ")]),e._v(" "),i("countTo",{attrs:{"start-val":0,"end-val":e.documentsCount,duration:3e3}})],1)])])]),e._v(" "),i("el-col",{staticClass:"card-panel-col",attrs:{span:6}},[i("div",{staticClass:"card-panel"},[i("div",{staticClass:"card-panel-icon-wrapper icon-monitor"},[i("svg-icon",{attrs:{"icon-class":"monitor","class-name":"card-panel-icon"}})],1),e._v(" "),i("div",{staticClass:"card-panel-description"},[i("div",{staticClass:"card-panel-text"},[e._v("\n "+e._s(e.$t("trials:workbench:label:pendingTasksStats"))+"\n ")]),e._v(" "),i("div",{staticClass:"card-panel-num"},[i("countTo",{attrs:{"start-val":0,"end-val":e.taskCount,duration:3e3}})],1)])])]),e._v(" "),i("el-col",{staticClass:"card-panel-col",attrs:{span:6}},[i("div",{staticClass:"card-panel"},[i("div",{staticClass:"card-panel-icon-wrapper icon-message"},[i("svg-icon",{attrs:{"icon-class":"message","class-name":"card-panel-icon"}})],1),e._v(" "),i("div",{staticClass:"card-panel-description"},[i("div",{staticClass:"card-panel-text"},[e._v("\n "+e._s(e.$t("trials:workbench:label:messagesStats"))+"\n ")]),e._v(" "),i("div",{staticClass:"card-panel-num"},[i("countTo",{attrs:{"start-val":0,"end-val":e.needReadSystemNoticeCount,duration:3e3}}),e._v(" "),i("span",[e._v(" / ")]),e._v(" "),i("countTo",{attrs:{"start-val":0,"end-val":e.messageCount,duration:3e3}})],1)])])])],1)},a=[],r=(i("96cf"),i("3b8d")),o=i("3e42"),s=i("ec1b"),l=i.n(s),c=i("4360"),u={name:"PanelCount",components:{countTo:l.a},data:function(){return{trialCount:0,signedDocumentsCount:0,documentsCount:0,taskCount:0,messageCount:0,needReadSystemNoticeCount:0,TotalNeedSignSystemDocCount:0}},mounted:function(){this.getData()},methods:{getData:function(){var e=this;Object(o["Lb"])().then(function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(i){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.trialCount=i.Result.TrialCount,e.signedDocumentsCount=i.Result.HaveSignedSystemDocCount+i.Result.HaveSignedTrialDocCount,e.documentsCount=i.Result.TotalNeedSignSystemDocCount+i.Result.TotalNeedSignTrialDocCount,e.TotalNeedSignSystemDocCount=i.Result.WaitSignSystemDocCount,t.next=6,c["a"].dispatch("user/setTotalNeedSignSystemDocCount",e.TotalNeedSignSystemDocCount);case 6:e.taskCount=i.Result.TotalApprovalRequiredCount,e.messageCount=i.Result.TotalSystemNoticeCount,e.needReadSystemNoticeCount=i.Result.NeedReadSystemNoticeCount,e.$emit("getSignSystemDocCount",i.Result.WaitSignSystemDocCount);case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())}}},d=u,f=(i("7bbb"),i("2877")),h=Object(f["a"])(d,n,a,!1,null,"67f22414",null);t["default"]=h.exports},"9bb8":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"measurement-wrapper",staticStyle:{position:"relative"},style:{height:e.height+10+"px"}},[i("div",{staticClass:"container",staticStyle:{"padding-bottom":"50px","overflow-y":"auto"},style:{height:e.height+"px"}},[e.isReadingShowSubjectInfo?i("h3",{staticStyle:{color:"#ddd",padding:"5px 0px",margin:"0"}},[e.subjectCode?i("span",[e._v(e._s(e.subjectCode)+" ")]):e._e(),e._v(" "),i("span",{staticStyle:{"margin-left":"5px"}},[e._v(e._s(e.taskBlindName))])]):e._e(),e._v(" "),e.ecrfShow?i("QuestionsPreview",{ref:"QuestionsPreview",attrs:{visitTaskId:e.visitTaskId,criterionId:e.TrialReadingCriterionId}}):e._e()],1),e._v(" "),i("div",{staticStyle:{position:"absolute",bottom:"0",left:"0","z-index":"10",background:"#000",width:"100%",display:"flex","justify-content":"right","align-items":"center",height:"50px"}},[e.readingTaskState<2?i("el-button",{staticStyle:{"margin-right":"10px"},attrs:{size:"mini"},on:{click:function(t){return e.handleSave(!0)}}},[e._v("\n 保存\n ")]):e._e(),e._v(" "),e.readingTaskState<2&&e.IseCRFShowInDicomReading?i("el-button",{staticStyle:{"margin-right":"10px"},attrs:{size:"mini"},on:{click:e.handleConfirm}},[e._v("提交")]):e._e()],1),e._v(" "),e.signVisible?i("el-dialog",{attrs:{visible:e.signVisible,"close-on-click-modal":!1,width:"600px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.signVisible=t}}},[i("div",{attrs:{slot:"title"},slot:"title"},[i("span",{staticStyle:{"font-size":"18px"}},[e._v(e._s(e.$t("common:dialogTitle:sign")))]),e._v(" "),i("span",{staticStyle:{"font-size":"12px","margin-left":"5px"}},[e._v(e._s("("+e.$t("common:label:sign")+e.currentUser+")"))])]),e._v(" "),i("SignForm",{ref:"signForm",attrs:{"sign-code-enum":e.signCode},on:{closeDialog:e.closeSignDialog}})],1):e._e()],1)},a=[],r=(i("96cf"),i("3b8d")),o=i("db72"),s=i("3e42"),l=i("9b92"),c=i("179b"),u=i("f33a"),d=i("7a9e"),f=i("4360"),h=i("2f62"),p={name:"CustomizeMeasurementList",components:{QuestionsPreview:u["default"],SignForm:c["default"]},props:{isReadingShowSubjectInfo:{type:Boolean,required:!0},IseCRFShowInDicomReading:{type:Boolean,required:!0}},data:function(){return{currentUser:zzSessionStorage.getItem("userName"),height:window.innerHeight-140,visitTaskId:"",loading:!1,CriterionType:null,subjectCode:"",taskBlindName:"",TrialReadingCriterionId:null,ecrfShow:!1,signCode:null,signVisible:!1,readingTaskState:null}},computed:Object(o["a"])({},Object(h["b"])(["visitTaskList"])),mounted:function(){var e=this;this.subjectCode=this.$router.currentRoute.query.subjectCode,this.CriterionType=parseInt(localStorage.getItem("CriterionType")),this.TrialReadingCriterionId=this.$router.currentRoute.query.TrialReadingCriterionId,l["a"].$on("loadMeasurementList",function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(i){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:console.log(11111,e.$refs["QuestionsPreview"]),e.visitTaskId!==i.visitTaskId&&(e.visitTaskId=i.visitTaskId,e.taskBlindName=i.taskBlindName,e.$refs["QuestionsPreview"].getCustomTableQuestionAnswer(i.visitTaskId));case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),l["a"].$on("getCustomTableQuestionAnswer",(function(t){e.$refs["QuestionsPreview"].getCustomTableQuestionAnswer(t)})),l["a"].$on("setCollapseActive",(function(e){})),l["a"].$on("changeLesionType",(function(e){})),l["a"].$on("getAllUnSaveLesions",(function(e){})),l["a"].$on("split",(function(e){})),l["a"].$on("setReadingState",(function(t){console.log(t),e.readingTaskState=t})),window.addEventListener("resize",this.setHeight)},beforeDestroy:function(){l["a"].$off("loadMeasurementList"),l["a"].$off("setCollapseActive"),l["a"].$off("changeLesionType"),l["a"].$off("getUnSaveTarget"),l["a"].$off("setReadingState"),l["a"].$off("getCustomTableQuestionAnswer")},methods:{closeSignDialog:function(e,t){e?this.signConfirm(t):this.signVisible=!1},signConfirm:function(e){var t=this;this.loading=!0;var i={data:{visitTaskId:this.visitTaskId},signInfo:e};this.signVisible=!1,Object(s["Ze"])(i).then((function(e){if(e.IsSuccess)try{t.$message.success(t.$t("common:message:savedSuccessfully")),t.$refs["signForm"]&&(t.$refs["signForm"].btnLoading=!1),t.signVisible=!1,t.readingTaskState=2,f["a"].dispatch("reading/setVisitTaskReadingTaskState",{visitTaskId:t.visitTaskId,readingTaskState:2}),l["a"].$emit("setReadingState",2),window.opener.postMessage("refreshTaskList",window.location),t.$confirm("当前阅片任务已完成,是否进入下一个阅片任务?",{type:"warning",distinguishCancelAndClose:!0}).then((function(){try{l["a"].$emit("getNextTask")}catch(e){console.log(e)}})).catch((function(e){}))}catch(i){console.log(i)}t.loading=!1})).catch((function(){t.loading=!1,t.$refs["signForm"]&&t.$refs["signForm"].btnLoading&&(t.$refs["signForm"].btnLoading=!1)}))},handleConfirm:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.$refs["QuestionsPreview"].handleSave(!1);case 2:t=e.sent,t&&(i=d["default"].processSignature.ImageAssessmentReportConfirmation,this.signCode=i,this.signVisible=!0);case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),handleSave:function(e){this.$refs["QuestionsPreview"].handleSave(e)},setHeight:function(){this.height=window.innerHeight-140},initPage:function(e){this.visitTaskId!==e.visitTaskId&&(this.visitTaskId=e.visitTaskId,this.taskBlindName=e.taskBlindName,this.activeName="",this.ecrfShow=!0)}}},m=p,g=(i("00ac"),i("2877")),v=Object(g["a"])(m,n,a,!1,null,"7e724ab5",null);t["default"]=v.exports},"9bd1":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"search-container"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:trials-list:table:trialId")}},[i("el-input",{staticStyle:{width:"100px"},attrs:{clearable:""},model:{value:e.searchData.Code,callback:function(t){e.$set(e.searchData,"Code",t)},expression:"searchData.Code"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:trials-list:table:experimentName")}},[i("el-input",{staticStyle:{width:"100px"},attrs:{clearable:""},model:{value:e.searchData.ExperimentName,callback:function(t){e.$set(e.searchData,"ExperimentName",t)},expression:"searchData.ExperimentName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:trials-list:form:pi")}},[i("el-input",{staticStyle:{width:"100px"},attrs:{clearable:""},model:{value:e.searchData.HeadPI,callback:function(t){e.$set(e.searchData,"HeadPI",t)},expression:"searchData.HeadPI"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:trials-list:form:indication")}},[i("el-input",{staticStyle:{width:"100px"},attrs:{clearable:""},model:{value:e.searchData.Indication,callback:function(t){e.$set(e.searchData,"Indication",t)},expression:"searchData.Indication"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:trials-list:table:status")}},[i("el-select",{attrs:{clearable:""},model:{value:e.searchData.TrialStatusStr,callback:function(t){e.$set(e.searchData,"TrialStatusStr",t)},expression:"searchData.TrialStatusStr"}},e._l(e.$d.TrialStatusEnum,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:trials-list:table:createDate")}},[i("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd HH:mm:ss",type:"datetimerange"},on:{change:e.changeTimeList},model:{value:e.timeList,callback:function(t){e.timeList=t},expression:"timeList"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")])],1)],1),e._v(" "),i("span",{staticStyle:{"margin-left":"auto"}},[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-list:new"],expression:"['trials:trials-list:new']"}],attrs:{icon:"el-icon-plus",type:"primary"},on:{click:e.handleNew}},[e._v("\n "+e._s(e.$t("common:button:new"))+"\n ")])],1)],1),e._v(" "),i("el-drawer",{attrs:{visible:e.isShow,"with-header":!1,size:"390px"},on:{"update:visible":function(t){e.isShow=t}}},[i("div",{staticStyle:{padding:"10px"}},[i("el-form",{attrs:{"label-width":"140px"}},[i("el-form-item",{attrs:{label:"Trial ID"}},[i("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"Trial ID",clearable:""},model:{value:e.searchData.Code,callback:function(t){e.$set(e.searchData,"Code",t)},expression:"searchData.Code"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Indication"}},[i("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"Indication",clearable:""},model:{value:e.searchData.Indication,callback:function(t){e.$set(e.searchData,"Indication",t)},expression:"searchData.Indication"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Assessment Criteria"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"Assessment Criteria",clearable:"",multiple:""},model:{value:e.searchData.CriterionIds,callback:function(t){e.$set(e.searchData,"CriterionIds",t)},expression:"searchData.CriterionIds"}},e._l(e.dict.type.ReadingStandard,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Sponsor"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"Sponsor",clearable:""},model:{value:e.searchData.SponsorId,callback:function(t){e.$set(e.searchData,"SponsorId",t)},expression:"searchData.SponsorId"}},e._l(e.sponsorList,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.SponsorName,value:e.Id}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"CRO"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"CRO",clearable:""},model:{value:e.searchData.CROId,callback:function(t){e.$set(e.searchData,"CROId",t)},expression:"searchData.CROId"}},e._l(e.croList,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.CROName,value:e.Id}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Phase"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"Phase",clearable:""},model:{value:e.searchData.Phase,callback:function(t){e.$set(e.searchData,"Phase",t)},expression:"searchData.Phase"}},e._l(e.phaseOptions,(function(e){return i("el-option",{key:e.value,attrs:{label:e.value,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"ReviewType"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"ReviewType",clearable:"",multiple:""},model:{value:e.searchData.ReviewTypeIds,callback:function(t){e.$set(e.searchData,"ReviewTypeIds",t)},expression:"searchData.ReviewTypeIds"}},e._l(e.dict.type.ReviewType,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Modality"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{multiple:"",placeholder:"Modality",clearable:""},model:{value:e.searchData.ModalityIds,callback:function(t){e.$set(e.searchData,"ModalityIds",t)},expression:"searchData.ModalityIds"}},e._l(e.dict.type.ReadingType,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Expedited: "}},[i("el-select",{staticStyle:{width:"100%"},attrs:{"value-key":"value",clearable:""},model:{value:e.searchData.Expedited,callback:function(t){e.$set(e.searchData,"Expedited",t)},expression:"searchData.Expedited"}},e._l(e.expeditedOption,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"BeginDate: "}},[i("el-date-picker",{staticStyle:{width:"100%"},attrs:{"value-format":"yyyy-MM-dd",format:"yyyy-MM-dd",type:"date","picker-options":e.beginPickerOption,clearable:!1},model:{value:e.searchData.BeginDate,callback:function(t){e.$set(e.searchData,"BeginDate",t)},expression:"searchData.BeginDate"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"EndDate: "}},[i("el-date-picker",{staticStyle:{width:"100%"},attrs:{"value-format":"yyyy-MM-dd",format:"yyyy-MM-dd",type:"date","picker-options":e.endpickerOption,clearable:!1},model:{value:e.searchData.EndDate,callback:function(t){e.$set(e.searchData,"EndDate",t)},expression:"searchData.EndDate"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Attended Reviewer Type:"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"Attended Reviewer Type",clearable:""},model:{value:e.searchData.AttendedReviewerType,callback:function(t){e.$set(e.searchData,"AttendedReviewerType",t)},expression:"searchData.AttendedReviewerType"}},e._l(e.$d.AttendedReviewerType,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:e.handleSelectSearch}},[e._v("Search")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.handleReset}},[e._v("Reset")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:function(t){e.isShow=!1}}},[e._v("Back")])],1)],1)],1)]),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"},{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],attrs:{data:e.list,stripe:"",height:"100"},on:{"selection-change":e.handleSelectChange,"sort-change":e.handleSortChange}},[i("el-table-column",{attrs:{type:"selection",align:"left",width:"45"}}),e._v(" "),i("el-table-column",{attrs:{type:"index",width:"40",align:"left"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialCode",label:e.$t("trials:trials-list:table:trialId"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"ExperimentName",label:e.$t("trials:trials-list:table:experimentName"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"HeadPI",label:e.$t("trials:trials-list:form:pi"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Indication",label:e.$t("trials:trials-list:form:indication"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"ModalityList",label:e.$t("trials:trials-list:form:modality"),"show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.ModalityList.toString())+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialStatusStr",label:e.$t("trials:trials-list:table:status"),"show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return["Initializing"===t.row.TrialStatusStr?i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("TrialStatusEnum",t.row.TrialStatusStr)))]):e._e(),e._v(" "),"Ongoing"===t.row.TrialStatusStr?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("TrialStatusEnum",t.row.TrialStatusStr)))]):e._e(),e._v(" "),"Completed"===t.row.TrialStatusStr?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("TrialStatusEnum",t.row.TrialStatusStr)))]):e._e(),e._v(" "),"Stopped"===t.row.TrialStatusStr?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("TrialStatusEnum",t.row.TrialStatusStr)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:e.$t("trials:trials-list:table:createDate"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{label:"",width:"250",align:"left",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-list:panel"],expression:"['trials:trials-list:panel']"}],attrs:{circle:"",icon:"el-icon-info",disabled:"Initializing"===t.row.TrialStatusStr&&!e.hasPermi(["role:pm"])||t.row.IsDeleted,title:e.$t("trials:trials-list:action:panel")},on:{click:function(i){return e.handleDetail(t.row)}}}),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-list:edit"],expression:"['trials:trials-list:edit']"}],attrs:{circle:"",icon:"el-icon-edit-outline",disabled:t.row.IsDeleted,title:e.$t("trials:trials-list:action:edit")},on:{click:function(i){return e.handleEdit(t.row)}}}),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-list:status"],expression:"['trials:trials-list:status']"}],attrs:{circle:"",icon:"el-icon-edit",disabled:t.row.IsDeleted,title:e.$t("trials:trials-list:action:status")},on:{click:function(i){return e.handleStatus(t.row)}}}),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-list:abolish"],expression:"['trials:trials-list:abolish']"}],attrs:{circle:"",icon:"el-icon-delete",disabled:t.row.IsDeleted||"Initializing"!==t.row.TrialStatusStr,title:e.$t("trials:trials-list:action:abolition")},on:{click:function(i){return e.handleAbandon(t.row)}}})]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1),e._v(" "),e.dialogVisible?i("el-dialog",{attrs:{visible:e.dialogVisible,title:e.title,fullscreen:!0,"append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("TrialForm",{attrs:{"trial-id":e.currentId},on:{getList:e.getList,closeDialog:e.closeDialog}})],1):e._e(),e._v(" "),e.statusVisible?i("el-dialog",{attrs:{visible:e.statusVisible,"close-on-click-modal":!1,title:e.$t("trials:trials-list:dialogTitle:changeStatus"),width:"700px","custom-class":"base-dialog-wrapper","append-to-body":""},on:{"update:visible":function(t){e.statusVisible=t}}},[i("TrialStatusForm",{attrs:{data:e.currentRow},on:{closeDialog:e.closeStatusDialog,getList:e.getList}})],1):e._e()],2)},a=[],r=(i("ac6a"),i("db72")),o=i("3e42"),s=i("4360"),l=i("2f62"),c=i("e8ae"),u=i.n(c),d=i("6071"),f=i("333d"),h=i("ce7a"),p=i("038b"),m=function(){return{Code:"",CriterionIds:[],SponsorId:"",ReviewTypeIds:[],CROId:"",Expedited:"",Indication:"",Phase:"",ModalityIds:[],BeginDate:"",EndDate:"",AttendedReviewerType:"",ResearchProgramNo:"",ExperimentName:"",PageIndex:1,PageSize:20,Asc:!1,SortField:""}},g={name:"Trials",components:{Pagination:f["default"],BaseContainer:d["default"],TrialForm:h["default"],TrialStatusForm:p["default"]},dicts:["ReadingStandard","ReviewType","ReadingType"],data:function(){var e=this;return{timeList:[],userTypeEnumInt:1*zzSessionStorage.getItem("userTypeEnumInt"),selectArr:[],searchData:m(),list:[],listLoading:!1,total:0,isShow:!1,dialogVisible:!1,title:"",currentId:"",statusVisible:!1,currentRow:{},currentUser:zzSessionStorage.getItem("userName"),phaseOptions:[{value:"I"},{value:"II"},{value:"III"},{value:"IV"}],expeditedOption:this.$d.TrialExpeditedState,beginPickerOption:{disabledDate:function(t){return e.searchData.EndDate?t.getTime()>new Date(e.searchData.EndDate).getTime():t.getTime()>Date.now()}},endpickerOption:{disabledDate:function(t){return e.searchData.BeginDate?t.getTime()>Date.now()||t.getTime()<=new Date(e.searchData.BeginDate).getTime():t.getTime()>Date.now()}}}},computed:Object(r["a"])({},Object(l["b"])(["sponsorList","croList"])),created:function(){this.initPage()},methods:{changeTimeList:function(){this.timeList?(this.searchData.BeginDate=this.timeList[0],this.searchData.EndDate=this.timeList[1]):(this.searchData.BeginDate=null,this.searchData.EndDate=null)},initPage:function(){this.getList(),s["a"].dispatch("global/getSponsorList"),s["a"].dispatch("global/getCROList")},getList:function(){var e=this;this.listLoading=!0,Object(o["Qd"])(this.searchData).then((function(t){e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount,e.listLoading=!1})).catch((function(){e.listLoading=!1}))},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleSelectSearch:function(){this.searchData.PageIndex=1,this.getList(),this.isShow=!1},handleReset:function(){this.searchData=m(),this.getList()},handleNew:function(){this.title=this.$t("trials:trials-list:dialogTitle:new"),this.currentId="",this.dialogVisible=!0},handleEdit:function(e){this.title=this.$t("trials:trials-list:dialogTitle:edit"),this.currentId=e.Id,this.dialogVisible=!0},closeDialog:function(){this.dialogVisible=!1},handleStatus:function(e){var t=this;"Initializing"===e.TrialStatusStr?(this.listLoading=!0,Object(o["oe"])(e.Id).then((function(i){t.listLoading=!1,i.Result?(t.currentRow=Object(r["a"])({},e),t.statusVisible=!0):t.$confirm(i.ErrorMessage,{type:"warning",showCancelButton:!1,callback:function(e){}})})).catch((function(){t.listLoading=!1}))):(this.currentRow=Object(r["a"])({},e),this.statusVisible=!0)},closeStatusDialog:function(){this.statusVisible=!1},handleAbandon:function(e){var t=this;this.$confirm(this.$t("trials:trials-list:message:abolition"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.currentRow=Object(r["a"])({},e),t.abandonTrial()})).catch((function(){}))},abandonTrial:function(){var e=this;this.listLoading=!0,Object(o["h"])(this.currentRow.Id,!0).then((function(t){e.listLoading=!1,t.IsSuccess&&(e.getList(),e.$message.success(e.$t("trials:trials-list:message:abolitionSuccessfully")))})).catch((function(){e.listLoading=!1}))},handleDetail:function(e){this.$router.push({path:"/trials/trials-panel?trialId=".concat(e.Id,"&trialCode=").concat(e.TrialCode,"&researchProgramNo=").concat(e.ResearchProgramNo)})},handleSelectChange:function(e){for(var t=[],i=0;i<e.length;i++)t.push(e[i]);this.selectArr=t},handleSortChange:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,"Criterion"===e.prop?this.searchData.SortField="CriterionId":this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()},handleExportTrial:function(){this.selectArr.forEach((function(e,t){e.Deleted=e.IsDeleted?"Yes":"No",e.Index=t+1}));var e=new u.a.Workbook,t=e.addWorksheet("Trials");t.properties.defaultRowHeight=22,t.columns=[{key:"Index",width:5},{key:"TrialCode",width:25},{key:"ExperimentName",width:25},{key:"ResearchProgramNo",width:25},{key:"Sponsor",width:25},{key:"Deleted",width:10},{key:"CreateTime",width:25}],t.mergeCells("A1","G2"),t.getCell("A1").value="Trials",t.getCell("A1").alignment={vertical:"middle",horizontal:"center"},t.getCell("A1").font={name:"SimSun",family:4,size:13,bold:!0},t.mergeCells("A3","G3");var i=new Date;t.getCell("A3").value=i.toLocaleDateString(),t.getCell("A3").alignment={vertical:"middle",horizontal:"right"},t.getRow(4).values=["NO.","Trial ID","试验名称","研究方案号","申办方","是否废除","Date Created"],t.getRow(4).font={name:"SimSun",family:4,size:11,bold:!0},t.getRow(4).alignment={vertical:"middle",horizontal:"left"},t.addRows(this.selectArr),t.eachRow((function(e,t){t>3&&e.eachCell((function(e,t){e.alignment={vertical:"center",horizontal:"left"},e.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}}))})),e.xlsx.writeBuffer({base64:!0}).then((function(e){var t=new Blob([e],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});if("msSaveOrOpenBlob"in navigator)window.navigator.msSaveOrOpenBlob(t,"Trials.xlsx");else{var i=document.createElement("a"),n=URL.createObjectURL(t);i.href=n,i.download="Trials.xlsx",document.body.appendChild(i),i.click(),setTimeout((function(){document.body.removeChild(i),window.URL.revokeObjectURL(n)}),0)}}))}}},v=g,b=i("2877"),y=Object(b["a"])(v,n,a,!1,null,null,null);t["default"]=y.exports},"9bd5":function(e,t,i){},"9bdb":function(e,t,i){var n=i("282b"),a=n([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),r={getAreaStyle:function(e,t){return a(this,e,t)}};e.exports=r},"9c12":function(e,t,i){var n=i("d3f4"),a=Math.floor;e.exports=function(e){return!n(e)&&isFinite(e)&&a(e)===e}},"9c1f":function(e,t,i){"use strict";i("a80d")},"9c2c":function(e,t,i){var n=i("401b"),a=n.min,r=n.max,o=n.scale,s=n.distance,l=n.add,c=n.clone,u=n.sub;function d(e,t,i,n){var d,f,h,p,m=[],g=[],v=[],b=[];if(n){h=[1/0,1/0],p=[-1/0,-1/0];for(var y=0,w=e.length;y<w;y++)a(h,h,e[y]),r(p,p,e[y]);a(h,h,n[0]),r(p,p,n[1])}for(y=0,w=e.length;y<w;y++){var _=e[y];if(i)d=e[y?y-1:w-1],f=e[(y+1)%w];else{if(0===y||y===w-1){m.push(c(e[y]));continue}d=e[y-1],f=e[y+1]}u(g,f,d),o(g,g,t);var I=s(_,d),x=s(_,f),S=I+x;0!==S&&(I/=S,x/=S),o(v,g,-I),o(b,g,x);var T=l([],_,v),C=l([],_,b);n&&(r(T,T,h),a(T,T,p),r(C,C,h),a(C,C,p)),m.push(T),m.push(C)}return i&&m.push(m.shift()),m}e.exports=d},"9c7e":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[e.question.GroupName&&e.questionForm[e.question.ParentId]===e.question.ParentTriggerValue||""===e.question.ParentId||null===e.question.ParentId?i("div",{staticStyle:{"font-weight":"bold","font-size":"16px",margin:"5px 0px"}},[e._v("\n "+e._s(e.question.GroupName)+"\n ")]):e._e(),e._v(" "),e.questionForm[e.question.ParentId]===e.question.ParentTriggerValue||""===e.question.ParentId||null===e.question.ParentId?i("el-form-item",{class:["group"===e.question.Type?"mb":""],attrs:{label:""+e.question.QuestionName,prop:e.question.Id,rules:[{required:e.question.IsRequired&&"group"!==e.question.Type&&"summary"!==e.question.Type,message:this.$t("common:ruleMessage:specify"),trigger:["blur","change"]}]}},["input"===e.question.Type?i("el-input",{staticStyle:{"max-width":"300px"},attrs:{disabled:e.auditState>=2},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"textarea"===e.question.Type?i("el-input",{staticStyle:{"max-width":"300px"},attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},disabled:e.auditState>=2},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"select"===e.question.Type?i("el-select",{attrs:{disabled:e.auditState>=2,clearable:""},on:{change:function(t){e.formItemChange(t,e.question)}},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},e._l(e.question.TypeValue.split("|"),(function(e){return i("el-option",{key:e,attrs:{label:e,value:e}})})),1):e._e(),e._v(" "),"radio"===e.question.Type?i("el-radio-group",{attrs:{disabled:e.auditState>=2},on:{change:function(t){e.formItemChange(t,e.question)}},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},e._l(e.question.TypeValue.split("|"),(function(t){return i("el-radio",{key:t,attrs:{label:t}},[e._v(e._s(t))])})),1):e._e(),e._v(" "),"checkbox"===e.question.Type?i("el-checkbox-group",{attrs:{disabled:e.auditState>=2},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},e._l(e.question.TypeValue.split("|"),(function(t){return i("el-checkbox",{key:t,attrs:{label:t}},[e._v(e._s(t))])})),1):e._e()],1):e._e(),e._v(" "),e._l(e.question.Childrens,(function(t){return i("FormItem",{key:t.Id,attrs:{question:t,"audit-state":e.auditState,"question-form":e.questionForm},on:{resetFormItemData:e.resetFormItemData}})}))],2)},a=[],r=(i("ac6a"),i("c5f6"),{name:"FormItem",props:{questionForm:{type:Object,default:function(){return{}}},question:{type:Object,default:function(){return[]}},auditState:{type:Number,required:!0}},data:function(){return{}},watch:{questionForm:{deep:!0,immediate:!0,handler:function(e){}}},mounted:function(){},methods:{formItemChange:function(e,t){t.Childrens.length>0&&this.resetChild(t.Childrens)},resetChild:function(e){var t=this;e.forEach((function(e){t.$emit("resetFormItemData",e.Id),e.Childrens&&e.Childrens.length>0&&t.resetChild(e.Childrens)}))},resetFormItemData:function(e){this.$emit("resetFormItemData",e)}}}),o=r,s=(i("7acf"),i("2877")),l=Object(s["a"])(o,n,a,!1,null,"1f24eb5c",null);t["default"]=l.exports},"9ca8":function(e,t,i){var n=i("6d8b"),a=i("9850"),r=i("3842"),o=r.parsePercent,s=r.MAX_SAFE_INTEGER,l=i("f934"),c=i("55ac"),u=Math.max,d=Math.min,f=n.retrieve,h=n.each,p=["itemStyle","borderWidth"],m=["itemStyle","gapWidth"],g=["upperLabel","show"],v=["upperLabel","height"],b={seriesType:"treemap",reset:function(e,t,i,r){var s=i.getWidth(),u=i.getHeight(),d=e.option,p=l.getLayoutRect(e.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()}),m=d.size||[],g=o(f(p.width,m[0]),s),v=o(f(p.height,m[1]),u),b=r&&r.type,w=["treemapZoomToNode","treemapRootToNode"],_=c.retrieveTargetInfo(r,w,e),I="treemapRender"===b||"treemapMove"===b?r.rootRect:null,x=e.getViewRoot(),S=c.getPathToRoot(x);if("treemapMove"!==b){var T="treemapZoomToNode"===b?C(e,_,x,g,v):I?[I.width,I.height]:[g,v],D=d.sort;D&&"asc"!==D&&"desc"!==D&&(D="desc");var L={squareRatio:d.squareRatio,sort:D,leafDepth:d.leafDepth};x.hostTree.clearLayouts();var O={x:0,y:0,width:T[0],height:T[1],area:T[0]*T[1]};x.setLayout(O),y(x,L,!1,0);O=x.getLayout();h(S,(function(e,t){var i=(S[t+1]||x).getValue();e.setLayout(n.extend({dataExtent:[i,i],borderWidth:0,upperHeight:0},O))}))}var $=e.getData().tree.root;$.setLayout(k(p,I,_),!0),e.setLayoutInfo(p),R($,new a(-p.x,-p.y,s,u),S,x,0)}};function y(e,t,i,n){var a,r;if(!e.isRemoved()){var o=e.getLayout();a=o.width,r=o.height;var s=e.getModel(),l=s.get(p),c=s.get(m)/2,f=D(s),h=Math.max(l,f),g=l-c,v=h-c;s=e.getModel();e.setLayout({borderWidth:l,upperHeight:h,upperLabelHeight:f},!0),a=u(a-2*g,0),r=u(r-g-v,0);var b=a*r,_=w(e,s,b,t,i,n);if(_.length){var I={x:g,y:v,width:a,height:r},x=d(a,r),C=1/0,k=[];k.area=0;for(var R=0,L=_.length;R<L;){var O=_[R];k.push(O),k.area+=O.getLayout().area;var $=S(k,x,t.squareRatio);$<=C?(R++,C=$):(k.area-=k.pop().getLayout().area,T(k,x,I,c,!1),x=d(I.width,I.height),k.length=k.area=0,C=1/0)}if(k.length&&T(k,x,I,c,!0),!i){var N=s.get("childrenVisibleMin");null!=N&&b<N&&(i=!0)}for(R=0,L=_.length;R<L;R++)y(_[R],t,i,n+1)}}}function w(e,t,i,a,r,o){var s=e.children||[],l=a.sort;"asc"!==l&&"desc"!==l&&(l=null);var c=null!=a.leafDepth&&a.leafDepth<=o;if(r&&!c)return e.viewChildren=[];s=n.filter(s,(function(e){return!e.isRemoved()})),I(s,l);var u=x(t,s,l);if(0===u.sum)return e.viewChildren=[];if(u.sum=_(t,i,u.sum,l,s),0===u.sum)return e.viewChildren=[];for(var d=0,f=s.length;d<f;d++){var h=s[d].getValue()/u.sum*i;s[d].setLayout({area:h})}return c&&(s.length&&e.setLayout({isLeafRoot:!0},!0),s.length=0),e.viewChildren=s,e.setLayout({dataExtent:u.dataExtent},!0),s}function _(e,t,i,n,a){if(!n)return i;for(var r=e.get("visibleMin"),o=a.length,s=o,l=o-1;l>=0;l--){var c=a["asc"===n?o-l-1:l].getValue();c/i*t<r&&(s=l,i-=c)}return"asc"===n?a.splice(0,o-s):a.splice(s,o-s),i}function I(e,t){return t&&e.sort((function(e,i){var n="asc"===t?e.getValue()-i.getValue():i.getValue()-e.getValue();return 0===n?"asc"===t?e.dataIndex-i.dataIndex:i.dataIndex-e.dataIndex:n})),e}function x(e,t,i){for(var n=0,a=0,r=t.length;a<r;a++)n+=t[a].getValue();var o=e.get("visualDimension");if(t&&t.length)if("value"===o&&i)s=[t[t.length-1].getValue(),t[0].getValue()],"asc"===i&&s.reverse();else{var s=[1/0,-1/0];h(t,(function(e){var t=e.getValue(o);t<s[0]&&(s[0]=t),t>s[1]&&(s[1]=t)}))}else s=[NaN,NaN];return{sum:n,dataExtent:s}}function S(e,t,i){for(var n,a=0,r=1/0,o=0,s=e.length;o<s;o++)n=e[o].getLayout().area,n&&(n<r&&(r=n),n>a&&(a=n));var l=e.area*e.area,c=t*t*i;return l?u(c*a/l,l/(c*r)):1/0}function T(e,t,i,n,a){var r=t===i.width?0:1,o=1-r,s=["x","y"],l=["width","height"],c=i[s[r]],f=t?e.area/t:0;(a||f>i[l[o]])&&(f=i[l[o]]);for(var h=0,p=e.length;h<p;h++){var m=e[h],g={},v=f?m.getLayout().area/f:0,b=g[l[o]]=u(f-2*n,0),y=i[s[r]]+i[l[r]]-c,w=h===p-1||y<v?y:v,_=g[l[r]]=u(w-2*n,0);g[s[o]]=i[s[o]]+d(n,b/2),g[s[r]]=c+d(n,_/2),c+=w,m.setLayout(g,!0)}i[s[o]]+=f,i[l[o]]-=f}function C(e,t,i,n,a){var r,o=(t||{}).node,l=[n,a];if(!o||o===i)return l;var c=n*a,u=c*e.option.zoomToNodeRatio;while(r=o.parentNode){for(var d=0,f=r.children,h=0,m=f.length;h<m;h++)d+=f[h].getValue();var g=o.getValue();if(0===g)return l;u*=d/g;var v=r.getModel(),b=v.get(p),y=Math.max(b,D(v,b));u+=4*b*b+(3*b+y)*Math.pow(u,.5),u>s&&(u=s),o=r}u<c&&(u=c);var w=Math.pow(u/c,.5);return[n*w,a*w]}function k(e,t,i){if(t)return{x:t.x,y:t.y};var n={x:0,y:0};if(!i)return n;var a=i.node,r=a.getLayout();if(!r)return n;var o=[r.width/2,r.height/2],s=a;while(s){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:e.width/2-o[0],y:e.height/2-o[1]}}function R(e,t,i,n,r){var o=e.getLayout(),s=i[r],l=s&&s===e;if(!(s&&!l||r===i.length&&e!==n)){e.setLayout({isInView:!0,invisible:!l&&!t.intersect(o),isAboveViewRoot:l},!0);var c=new a(t.x-o.x,t.y-o.y,t.width,t.height);h(e.viewChildren||[],(function(e){R(e,c,i,n,r+1)}))}}function D(e){return e.get(g)?e.get(v):0}e.exports=b},"9cb5":function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-log",use:"icon-log-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-log"><defs><style type="text/css"></style></defs><path d="M208.736 566.336H64.384v59.328h144.352v-59.328z m0-336.096H165.44V74.592c0-7.968 4.896-14.848 10.464-14.848h502.016V0.448H175.936c-38.72 1.248-69.248 34.368-68.192 74.144v155.648H64.384V289.6h144.352V230.24z m0 168.096H64.384v59.328h144.352v-59.328z m714.656 76.576h-57.76v474.496c0 7.936-4.896 14.848-10.464 14.848H175.936c-5.568 0-10.464-6.912-10.464-14.848v-155.68h43.296v-59.296H64.384v59.296h43.328v155.68c-1.024 39.776 29.472 72.896 68.192 74.144h679.232c38.72-1.184 69.248-34.368 68.256-74.144V474.912z m14.944-290.336l-83.072-85.312a71.264 71.264 0 0 0-52.544-21.728 71.52 71.52 0 0 0-51.616 23.872L386.528 507.264a30.496 30.496 0 0 0-6.176 10.72L308.16 740.512a30.016 30.016 0 0 0 6.976 30.24c7.712 7.968 19.2 10.752 29.568 7.2l216.544-74.112a28.736 28.736 0 0 0 12.128-7.936L940.448 287.456a75.552 75.552 0 0 0-2.112-102.88z m-557.12 518.272l39.104-120.64 78.336 80.416-117.44 40.224z m170.048-70.016l-103.552-106.016 200.16-222.4 103.52 106.304-200.128 222.112zM897.952 247.072l-0.256 0.224-107.136 119.168-103.52-106.528 106.432-118.624a14.144 14.144 0 0 1 10.304-4.736 13.44 13.44 0 0 1 10.464 4.288l83.264 85.696c5.472 5.6 5.664 14.72 0.448 20.512z" p-id="4806" /></symbol>'});o.a.add(s);t["default"]=s},"9cc9":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"search-container"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:subject:table:subjectId")}},[i("el-input",{staticStyle:{width:"130px"},model:{value:e.searchData.Code,callback:function(t){e.$set(e.searchData,"Code",t)},expression:"searchData.Code"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:subject:table:gender")}},[i("el-select",{staticStyle:{width:"130px"},attrs:{clearable:""},model:{value:e.searchData.Sex,callback:function(t){e.$set(e.searchData,"Sex",t)},expression:"searchData.Sex"}},e._l(e.$d.Sex,(function(e){return i("el-option",{key:e.value,attrs:{value:e.label,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:subject:table:status")}},[i("el-select",{staticStyle:{width:"130px"},attrs:{clearable:""},model:{value:e.searchData.Status,callback:function(t){e.$set(e.searchData,"Status",t)},expression:"searchData.Status"}},e._l(e.$d.Subject_Visit_Status,(function(e){return i("el-option",{key:e.value,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")])],1)],1),e._v(" "),e.visitPlanConfirmed?i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:subject:new"],expression:"['trials:trials-panel:subject:new']"}],staticStyle:{"margin-left":"auto"},attrs:{type:"primary",icon:"el-icon-plus"},on:{click:e.handleAdd}},[e._v("\n "+e._s(e.$t("common:button:new"))+"\n ")]):e._e()],1),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"}],ref:"subjectList",attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Code",label:e.$t("trials:subject:table:subjectId"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),e.otherInfo.IsSubjectSecondCodeView?i("el-table-column",{attrs:{prop:"MedicalNo",label:e.$t("trials:subject:table:medicalNo"),"show-overflow-tooltip":"",sortable:"custom"}}):e._e(),e._v(" "),i("el-table-column",{attrs:{prop:"Age",label:e.$t("trials:subject:table:age"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Sex",label:e.$t("trials:subject:table:gender"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Status",label:e.$t("trials:subject:table:status"),"show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.Status?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("Subject_Visit_Status",t.row.Status)))]):e._e(),e._v(" "),2===t.row.Status?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("Subject_Visit_Status",t.row.Status)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TotalVisitCount",label:e.$t("trials:subject:table:totalVisitCount"),"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.TotalVisitCount>0&&(e.hasCrcRoute||e.hasQCRoute)?i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleTotalVisitCount(t.row.Code)}}},[e._v("\n "+e._s(t.row.TotalVisitCount)+"\n ")]):i("span",[e._v(" "+e._s(t.row.TotalVisitCount))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"LatestVisitName",label:e.$t("trials:subject:table:latestVisitName"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),e.hasPermi(["trials:trials-panel:subject:edit","trials:trials-panel:subject:status","trials:trials-panel:subject:delete"])?i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"250",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:subject:edit"],expression:"['trials:trials-panel:subject:edit']"}],attrs:{circle:"",title:e.$t("trials:subject:action:edit"),icon:"el-icon-edit-outline"},on:{click:function(i){return e.handleEdit(t.row)}}}),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:subject:status"],expression:"['trials:trials-panel:subject:status']"}],attrs:{circle:"",title:e.$t("trials:subject:action:status"),icon:"el-icon-edit"},on:{click:function(i){return e.handleEditStatus(t.row)}}}),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:subject:delete"],expression:"['trials:trials-panel:subject:delete']"}],attrs:{circle:"",title:e.$t("trials:subject:action:delete"),icon:"el-icon-delete",disabled:t.row.StudyCount>0},on:{click:function(i){return e.handleDelete(t.row)}}})]}}],null,!1,3070414922)}):e._e()],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1),e._v(" "),e.editDialog.visible?i("el-dialog",{attrs:{visible:e.editDialog.visible,"close-on-click-modal":!1,title:e.editDialog.title,width:"700px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){return e.$set(e.editDialog,"visible",t)}}},[i("SubjectsForm",{attrs:{data:e.rowData,"other-info":e.otherInfo},on:{close:e.closeEditDialog,getList:e.getList}})],1):e._e(),e._v(" "),e.statusVisible?i("el-dialog",{attrs:{visible:e.statusVisible,"close-on-click-modal":!1,title:e.$t("trials:subject:dialogTitle:editStatus"),width:"700px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.statusVisible=t}}},[i("SubjectStatusForm",{attrs:{data:e.rowData},on:{closeDialog:e.closeStatusDialog,getList:e.getList}})],1):e._e(),e._v(" "),e.MessageVisible?i("el-dialog",{attrs:{visible:e.MessageVisible,"close-on-click-modal":!1,title:e.$t("trials:subject:title:sendReport").replace("xxx",e.rowData.Code),width:"720px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.MessageVisible=t}}},[i("MessageTable",{attrs:{data:e.rowData},on:{closeDialog:e.closeStatusDialog,getList:e.getList}})],1):e._e()],2)},a=[],r=i("db72"),o=(i("7f7f"),i("7514"),i("3e42")),s=i("3f2a"),l=i("6071"),c=i("333d"),u=i("ebaf"),d=i("e054"),f=i("c611"),h=i("c1df"),p=i.n(h),m=function(){return{Code:"",Status:"",SiteId:"",ShortName:"",Sex:"",PageIndex:1,PageSize:20}},g={name:"SubjectList",components:{BaseContainer:l["default"],Pagination:c["default"],SubjectsForm:u["default"],SubjectStatusForm:d["default"],MessageTable:f["default"]},data:function(){return{moment:p.a,MessageVisible:!1,model_cfg:{visible:!1,showClose:!0,width:"700px",title:""},searchData:m(),loading:!1,list:[],total:0,siteOptions:[],visitPlanConfirmed:!1,rowData:{},userTypeEnumInt:1*zzSessionStorage.getItem("userTypeEnumInt"),otherInfo:{},editDialog:{title:"",visible:!1},statusVisible:!1,trialId:"",hasCrcRoute:!1,hasQCRoute:!1}},watch:{list:function(){var e=this;this.$nextTick((function(){e.$refs.subjectList.doLayout()}))}},mounted:function(){var e=this.$store.getters.routes.find((function(e){return"Trials"===e.name})),t=e.children.find((function(e){return"TrialsPanel"===e.name})).children;this.hasCrcRoute=this.hasRoute("crc-upload",t),this.hasQCRoute=this.hasRoute("qc-check",t),this.trialId=this.$route.query.trialId,this.getSite(),this.getList()},methods:{handleMessage:function(e){this.rowData=Object(r["a"])({},e),this.MessageVisible=!0},handleExport:function(){var e=this;Object(s["o"])(this.searchData).then((function(e){})).catch((function(){e.loading=!1}))},getList:function(){var e=this;this.loading=!0,this.searchData.TrialId=this.$route.query.trialId,Object(o["od"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount,e.otherInfo=t.OtherInfo,e.visitPlanConfirmed=t.OtherInfo.VisitPlanConfirmed})).catch((function(){e.loading=!1}))},handleAdd:function(){this.rowData={},this.editDialog.title=this.$t("common:button:new"),this.editDialog.visible=!0},handleEdit:function(e){this.rowData=e,this.editDialog.title=this.$t("trials:subject:dialogTitle:edit"),this.editDialog.visible=!0},closeEditDialog:function(){this.editDialog.visible=!1},handleDelete:function(e){var t=this;this.$confirm(this.$t("trials:subject:message:delete"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.loading=!0,Object(o["zb"])(t.trialId,e.Id).then((function(e){t.loading=!1,e.IsSuccess&&(t.getList(),t.$message.success(t.$t("common:message:deletedSuccessfully")))})).catch((function(){t.loading=!1}))}))},handleAudit:function(e){var t=this.$router.resolve({path:"/audit",query:{Id:e.TrialId,Code:this.$route.query.trialCode,SubName:e.Name,SubId:e.Id,Type:2}});window.open(t.href,"_blank")},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=m(),this.getList()},handleSortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()},getSite:function(){var e=this;Object(o["Zd"])(this.trialId).then((function(t){e.siteOptions=t.Result}))},handleEditStatus:function(e){this.rowData=Object(r["a"])({},e),this.statusVisible=!0},closeStatusDialog:function(){this.statusVisible=!1},handleTotalVisitCount:function(e){this.hasCrcRoute?this.$router.push({path:"/trials/trials-panel/visit/crc-upload?trialId=".concat(this.$route.query.trialId,"&trialCode=").concat(this.$route.query.trialCode,"&researchProgramNo=").concat(this.$route.query.researchProgramNo,"&subjectCode=").concat(e)}):this.hasQCRoute&&this.$router.push({path:"/trials/trials-panel/visit/qc-check?trialId=".concat(this.$route.query.trialId,"&trialCode=").concat(this.$route.query.trialCode,"&researchProgramNo=").concat(this.$route.query.researchProgramNo,"&subjectCode=").concat(e)})},hasRoute:function(e,t){for(var i=0;i<t.length;i++){if(t[i].name===e)return!0;if(t[i].children){var n=this.hasRoute(e,t[i].children);if(n)return n}}return!1}}},v=g,b=i("2877"),y=Object(b["a"])(v,n,a,!1,null,null,null);t["default"]=y.exports},"9cf9":function(e,t){var i=Math.round;function n(e,t,n){if(t){var a=t.x1,o=t.x2,s=t.y1,l=t.y2;e.x1=a,e.x2=o,e.y1=s,e.y2=l;var c=n&&n.lineWidth;c&&(i(2*a)===i(2*o)&&(e.x1=e.x2=r(a,c,!0)),i(2*s)===i(2*l)&&(e.y1=e.y2=r(s,c,!0)))}}function a(e,t,i){if(t){var n=t.x,a=t.y,o=t.width,s=t.height;e.x=n,e.y=a,e.width=o,e.height=s;var l=i&&i.lineWidth;l&&(e.x=r(n,l,!0),e.y=r(a,l,!0),e.width=Math.max(r(n+o,l,!1)-e.x,0===o?0:1),e.height=Math.max(r(a+s,l,!1)-e.y,0===s?0:1))}}function r(e,t,n){if(!t)return e;var a=i(2*e);return(a+i(t))%2===0?a/2:(a+(n?1:-1))/2}t.subPixelOptimizeLine=n,t.subPixelOptimizeRect=a,t.subPixelOptimize=r},"9d57":function(e,t,i){var n=i("6d8b"),a=i("3842"),r=a.parsePercent,o=i("ee1a"),s=o.isDimensionStacked,l=i("cccd"),c="__ec_stack_",u=.5,d="undefined"!==typeof Float32Array?Float32Array:Array;function f(e){return e.get("stack")||c+e.seriesIndex}function h(e){return e.dim+e.index}function p(e){var t=[],i=e.axis,a="axis0";if("category"===i.type){for(var r=i.getBandWidth(),o=0;o<e.count;o++)t.push(n.defaults({bandWidth:r,axisKey:a,stackId:c+o},e));var s=b(t),l=[];for(o=0;o<e.count;o++){var u=s[a][c+o];u.offsetCenter=u.offset+u.width/2,l.push(u)}return l}}function m(e,t){var i=[];return t.eachSeriesByType(e,(function(e){I(e)&&!x(e)&&i.push(e)})),i}function g(e){var t={};n.each(e,(function(e){var i=e.coordinateSystem,n=i.getBaseAxis();if("time"===n.type||"value"===n.type)for(var a=e.getData(),r=n.dim+"_"+n.index,o=a.mapDimension(n.dim),s=0,l=a.count();s<l;++s){var c=a.get(o,s);t[r]?t[r].push(c):t[r]=[c]}}));var i=[];for(var a in t)if(t.hasOwnProperty(a)){var r=t[a];if(r){r.sort((function(e,t){return e-t}));for(var o=null,s=1;s<r.length;++s){var l=r[s]-r[s-1];l>0&&(o=null===o?l:Math.min(o,l))}i[a]=o}}return i}function v(e){var t=g(e),i=[];return n.each(e,(function(e){var n,a=e.coordinateSystem,o=a.getBaseAxis(),s=o.getExtent();if("category"===o.type)n=o.getBandWidth();else if("value"===o.type||"time"===o.type){var l=o.dim+"_"+o.index,c=t[l],u=Math.abs(s[1]-s[0]),d=o.scale.getExtent(),p=Math.abs(d[1]-d[0]);n=c?u/p*c:u}else{var m=e.getData();n=Math.abs(s[1]-s[0])/m.count()}var g=r(e.get("barWidth"),n),v=r(e.get("barMaxWidth"),n),b=r(e.get("barMinWidth")||1,n),y=e.get("barGap"),w=e.get("barCategoryGap");i.push({bandWidth:n,barWidth:g,barMaxWidth:v,barMinWidth:b,barGap:y,barCategoryGap:w,axisKey:h(o),stackId:f(e)})})),b(i)}function b(e){var t={};n.each(e,(function(e,i){var n=e.axisKey,a=e.bandWidth,r=t[n]||{bandWidth:a,remainedWidth:a,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},o=r.stacks;t[n]=r;var s=e.stackId;o[s]||r.autoWidthCount++,o[s]=o[s]||{width:0,maxWidth:0};var l=e.barWidth;l&&!o[s].width&&(o[s].width=l,l=Math.min(r.remainedWidth,l),r.remainedWidth-=l);var c=e.barMaxWidth;c&&(o[s].maxWidth=c);var u=e.barMinWidth;u&&(o[s].minWidth=u);var d=e.barGap;null!=d&&(r.gap=d);var f=e.barCategoryGap;null!=f&&(r.categoryGap=f)}));var i={};return n.each(t,(function(e,t){i[t]={};var a=e.stacks,o=e.bandWidth,s=r(e.categoryGap,o),l=r(e.gap,1),c=e.remainedWidth,u=e.autoWidthCount,d=(c-s)/(u+(u-1)*l);d=Math.max(d,0),n.each(a,(function(e){var t=e.maxWidth,i=e.minWidth;if(e.width){n=e.width;t&&(n=Math.min(n,t)),i&&(n=Math.max(n,i)),e.width=n,c-=n+l*n,u--}else{var n=d;t&&t<n&&(n=Math.min(t,c)),i&&i>n&&(n=i),n!==d&&(e.width=n,c-=n+l*n,u--)}})),d=(c-s)/(u+(u-1)*l),d=Math.max(d,0);var f,h=0;n.each(a,(function(e,t){e.width||(e.width=d),f=e,h+=e.width*(1+l)})),f&&(h-=f.width*l);var p=-h/2;n.each(a,(function(e,n){i[t][n]=i[t][n]||{bandWidth:o,offset:p,width:e.width},p+=e.width*(1+l)}))})),i}function y(e,t,i){if(e&&t){var n=e[h(t)];return null!=n&&null!=i&&(n=n[f(i)]),n}}function w(e,t){var i=m(e,t),a=v(i),r={},o={};n.each(i,(function(e){var t=e.getData(),i=e.coordinateSystem,n=i.getBaseAxis(),l=f(e),c=a[h(n)][l],u=c.offset,d=c.width,p=i.getOtherAxis(n),m=e.get("barMinHeight")||0;r[l]=r[l]||[],o[l]=o[l]||[],t.setLayout({bandWidth:c.bandWidth,offset:u,size:d});for(var g=t.mapDimension(p.dim),v=t.mapDimension(n.dim),b=s(t,g),y=p.isHorizontal(),w=S(n,p,b),_=0,I=t.count();_<I;_++){var x,T,C,k,R=t.get(g,_),D=t.get(v,_),L=R>=0?"p":"n",O=w;if(b&&(r[l][D]||(r[l][D]={p:w,n:w}),O=r[l][D][L]),y){var $=i.dataToPoint([R,D]);x=O,T=$[1]+u,C=$[0]-w,k=d,Math.abs(C)<m&&(C=(C<0?-1:1)*m),isNaN(C)||b&&(r[l][D][L]+=C)}else{$=i.dataToPoint([D,R]);x=$[0]+u,T=O,C=d,k=$[1]-w,Math.abs(k)<m&&(k=(k<=0?-1:1)*m),isNaN(k)||b&&(r[l][D][L]+=k)}t.setItemLayout(_,{x:x,y:T,width:C,height:k})}}),this)}var _={seriesType:"bar",plan:l(),reset:function(e){if(I(e)&&x(e)){var t=e.getData(),i=e.coordinateSystem,n=i.grid.getRect(),a=i.getBaseAxis(),r=i.getOtherAxis(a),o=t.mapDimension(r.dim),s=t.mapDimension(a.dim),l=r.isHorizontal(),c=l?0:1,f=y(v([e]),a,e).width;return f>u||(f=u),{progress:h}}function h(e,t){var u,h=e.count,p=new d(2*h),m=new d(2*h),g=new d(h),v=[],b=[],y=0,w=0;while(null!=(u=e.next()))b[c]=t.get(o,u),b[1-c]=t.get(s,u),v=i.dataToPoint(b,null,v),m[y]=l?n.x+n.width:v[0],p[y++]=v[0],m[y]=l?v[1]:n.y+n.height,p[y++]=v[1],g[w++]=u;t.setLayout({largePoints:p,largeDataIndices:g,largeBackgroundPoints:m,barWidth:f,valueAxisStart:S(a,r,!1),backgroundStart:l?n.x:n.y,valueAxisHorizontal:l})}}};function I(e){return e.coordinateSystem&&"cartesian2d"===e.coordinateSystem.type}function x(e){return e.pipelineContext&&e.pipelineContext.large}function S(e,t,i){return t.toGlobalCoord(t.dataToCoord("log"===t.type?1:0))}t.getLayoutOnAxis=p,t.prepareLayoutBarSeries=m,t.makeColumnLayout=v,t.retrieveColumnLayout=y,t.layout=w,t.largeLayout=_},"9d72":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("el-tabs",{attrs:{type:"border-card"},model:{value:e.TrialReadingCriterionId,callback:function(t){e.TrialReadingCriterionId=t},expression:"TrialReadingCriterionId"}},e._l(e.trialCriterionList,(function(t){return i("el-tab-pane",{key:t.TrialReadingCriterionName,attrs:{label:t.TrialReadingCriterionName,name:t.TrialReadingCriterionId}},[t.TrialReadingCriterionId===e.TrialReadingCriterionId?i("div",[i("div",{attrs:{slot:"search-container"},slot:"search-container"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:medicalFeedback:table:isUrgent")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.IsUrgent,callback:function(t){e.$set(e.searchData,"IsUrgent",t)},expression:"searchData.IsUrgent"}},e._l(e.$d.YesOrNo,(function(e){return i("el-option",{key:"IsUrgent"+e.label,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:medicalFeedback:table:siteCode")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:"",filterable:""},model:{value:e.searchData.SiteId,callback:function(t){e.$set(e.searchData,"SiteId",t)},expression:"searchData.SiteId"}},e._l(e.siteOptions,(function(e,t){return i("el-option",{key:t,attrs:{label:e.TrialSiteCode,value:e.SiteId}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:medicalFeedback:table:subjectCode")}},[i("el-input",{staticStyle:{width:"100px"},model:{value:e.searchData.SubjectCode,callback:function(t){e.$set(e.searchData,"SubjectCode",t)},expression:"searchData.SubjectCode"}})],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:medicalFeedback:table:taskName")}},[i("el-input",{staticStyle:{width:"100px"},attrs:{clearable:""},model:{value:e.searchData.TaskName,callback:function(t){e.$set(e.searchData,"TaskName",t)},expression:"searchData.TaskName"}})],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:medicalFeedback:table:taskBlindName")}},[i("el-input",{staticStyle:{width:"100px"},attrs:{clearable:""},model:{value:e.searchData.TaskName,callback:function(t){e.$set(e.searchData,"TaskName",t)},expression:"searchData.TaskName"}})],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:medicalFeedback:table:armEnum")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.ArmEnum,callback:function(t){e.$set(e.searchData,"ArmEnum",t)},expression:"searchData.ArmEnum"}},e._l(e.$d.ArmEnum,(function(e){return i("el-option",{key:"ArmEnum"+e.label,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:medicalFeedback:table:reader")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.DoctorUserId,callback:function(t){e.$set(e.searchData,"DoctorUserId",t)},expression:"searchData.DoctorUserId"}},e._l(e.doctorUserList,(function(e){return i("el-option",{key:"DoctorUserId"+e.DoctorUserId,attrs:{value:e.DoctorUserId,label:e.UserName+"("+e.FullName+")"}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:medicalFeedback:table:taskState")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.TaskState,callback:function(t){e.$set(e.searchData,"TaskState",t)},expression:"searchData.TaskState"}},e._l(e.$d.TaskState,(function(e){return i("el-option",{key:"TaskState"+e.label,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:medicalFeedback:table:readingCategory")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.ReadingCategory,callback:function(t){e.$set(e.searchData,"ReadingCategory",t)},expression:"searchData.ReadingCategory"}},e._l(e.$d.ReadingCategory,(function(e){return i("el-option",{key:"ReadingCategory"+e.label,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:medicalFeedback:table:auditState")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.AuditState,callback:function(t){e.$set(e.searchData,"AuditState",t)},expression:"searchData.AuditState"}},e._l(e.$d.MedicalReviewAuditState,(function(e){return i("el-option",{key:"AuditState"+e.label,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"}},[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")])],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")])],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-download"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:export"))+"\n ")])],1)],1)],1),e._v(" "),i("div",{attrs:{slot:"main-container"},slot:"main-container"},[i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:75},expression:"{bottomOffset:75}"},{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"mimMedicalAudit",refInFor:!0,attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortChange}},[i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsUrgent",label:e.$t("trials:medicalFeedback:table:isUrgent"),"show-overflow-tooltip":"","min-width":"100",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsUrgent?i("el-tag",{attrs:{type:"danger"}},[e._v("\n "+e._s(e.$fd("YesOrNo",t.row.IsUrgent))+"\n ")]):i("el-tag",{attrs:{type:"primary"}},[e._v("\n "+e._s(e.$fd("YesOrNo",t.row.IsUrgent))+"\n ")])]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialSiteCode",label:e.$t("trials:medicalFeedback:table:siteCode"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode",label:e.$t("trials:medicalFeedback:table:subjectCode"),"min-width":"120",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskName",label:e.$t("trials:medicalFeedback:table:taskName"),"min-width":"160",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskBlindName",label:e.$t("trials:medicalFeedback:table:taskBlindName"),"min-width":"140",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ReadingCategory",label:e.$t("trials:medicalFeedback:table:readingCategory"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.ReadingCategory?i("el-tag",{attrs:{type:"primary"}},[e._v("\n "+e._s(e.$fd("ReadingCategory",t.row.ReadingCategory))+"\n ")]):e._e(),e._v(" "),2===t.row.ReadingCategory?i("el-tag",{attrs:{type:"info"}},[e._v("\n "+e._s(e.$fd("ReadingCategory",t.row.ReadingCategory))+"\n ")]):e._e(),e._v(" "),4===t.row.ReadingCategory?i("el-tag",{attrs:{type:"danger"}},[e._v("\n "+e._s(e.$fd("ReadingCategory",t.row.ReadingCategory))+"\n ")]):e._e(),e._v(" "),5===t.row.ReadingCategory?i("el-tag",{attrs:{type:"warning"}},[e._v("\n "+e._s(e.$fd("ReadingCategory",t.row.ReadingCategory))+"\n ")]):e._e()]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskState",label:e.$t("trials:medicalFeedback:table:taskState"),"min-width":"140",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.TaskState?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e(),e._v(" "),1===t.row.TaskState?i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e(),e._v(" "),3===t.row.TaskState?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e(),e._v(" "),4===t.row.TaskState?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e()]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"Role",label:e.$t("trials:medicalFeedback:table:armEnum"),"min-width":"80","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.ArmEnum?i("el-tag",{attrs:{type:"primary"}},[e._v("\n "+e._s(e.$fd("ArmEnum",t.row.ArmEnum))+"\n ")]):e._e(),e._v(" "),2===t.row.ArmEnum?i("el-tag",{attrs:{type:"success"}},[e._v("\n "+e._s(e.$fd("ArmEnum",t.row.ArmEnum))+"\n ")]):e._e(),e._v(" "),3===t.row.ArmEnum?i("el-tag",{attrs:{type:"info"}},[e._v("\n "+e._s(e.$fd("ArmEnum",t.row.ArmEnum))+"\n ")]):e._e(),e._v(" "),4===t.row.ArmEnum?i("el-tag",{attrs:{type:"danger"}},[e._v("\n "+e._s(e.$fd("ArmEnum",t.row.ArmEnum))+"\n ")]):e._e(),e._v(" "),5===t.row.ArmEnum?i("el-tag",{attrs:{type:"warning"}},[e._v("\n "+e._s(e.$fd("ArmEnum",t.row.ArmEnum))+"\n ")]):e._e()]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:e.$t("trials:medicalFeedback:table:reader"),"min-width":"120",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return t.row.DoctorUser?[e._v("\n "+e._s(t.row.DoctorUser.UserName)+"("+e._s(t.row.DoctorUser.FullName)+")\n ")]:void 0}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"SignTime",label:e.$t("trials:medicalFeedback:table:signTime"),"min-width":"140",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"AllocateTime",label:e.$t("trials:medicalFeedback:table:allocateTime"),"min-width":"130",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsInvalid","min-width":"100",label:e.$t("trials:medicalFeedback:table:isInvalid"),"show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsInvalid?i("el-tag",{attrs:{type:"danger"}},[e._v("\n "+e._s(e.$fd("IsTakeEffect",t.row.IsInvalid))+"\n ")]):i("el-tag",{attrs:{type:"primary"}},[e._v("\n "+e._s(e.$fd("IsTakeEffect",t.row.IsInvalid))+"\n ")])]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"AuditState",label:e.$t("trials:medicalFeedback:table:auditState"),"min-width":"120",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.AuditState?i("el-tag",{attrs:{type:"warning"}},[e._v("\n "+e._s(e.$fd("MedicalReviewAuditState",t.row.AuditState))+"\n ")]):e._e(),e._v(" "),1===t.row.AuditState?i("el-tag",{attrs:{type:"primary"}},[e._v("\n "+e._s(e.$fd("MedicalReviewAuditState",t.row.AuditState))+"\n ")]):e._e(),e._v(" "),2===t.row.AuditState?i("el-tag",{attrs:{type:"danger"}},[e._v("\n "+e._s(e.$fd("MedicalReviewAuditState",t.row.AuditState))+"\n ")]):e._e()]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"AuditAdviceEnum",label:e.$t("trials:medicalFeedback:table:auditAdvice"),"min-width":"130",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("AuditAdvice",t.row.AuditAdviceEnum))+"\n ")]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"DoctorUserIdeaEnum",label:e.$t("trials:medicalFeedback:table:doctorUserIdea"),"min-width":"150",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("MedicalReviewDoctorUserIdea",t.row.DoctorUserIdeaEnum))+"\n ")]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"AuditSignTime",label:e.$t("trials:medicalFeedback:table:auditSignTime"),"min-width":"130",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{fixed:"right",label:e.$t("common:action:action"),width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.AuditState<2?i("el-button",{attrs:{icon:"el-icon-edit-outline",circle:"",title:e.$t("trials:medicalFeedback:button:audit"),disabled:t.row.IsInvalid},on:{click:function(i){return e.handleAudit(t.row)}}}):e._e(),e._v(" "),2===t.row.AuditState?i("el-button",{attrs:{icon:"el-icon-view",circle:"",title:e.$t("trials:medicalFeedback:table:view")},on:{click:function(i){return e.handleView(t.row)}}}):e._e(),e._v(" "),i("el-button",{attrs:{icon:"el-icon-chat-dot-round",circle:"",title:e.$t("trials:medicalFeedback:title:feedback"),disabled:!t.row.IsHaveQuestion||t.row.IsInvalid},on:{click:function(i){return e.handleReply(t.row)}}})]}}],null,!0)})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1)]):e._e()])})),1),e._v(" "),e.auditVisible?i("el-dialog",{attrs:{visible:e.auditVisible,"close-on-click-modal":!1,fullscreen:!0,title:e.$t("trials:medicalFeedback:title:mfDetail")},on:{"update:visible":function(t){e.auditVisible=t}}},[i("MedicalAudit",{attrs:{"visit-task-id":e.currentRow.VisitTaskId,"task-medical-review-id":e.currentRow.Id,"row-data":e.currentRow},on:{getList:e.getList,close:function(t){e.auditVisible=!1},nextTask:e.nextTask}})],1):e._e(),e._v(" "),e.chatForm.visible?i("el-dialog",{attrs:{visible:e.chatForm.visible,"close-on-click-modal":!1,width:"800px",title:e.chatForm.title,"append-to-body":""},on:{"update:visible":function(t){return e.$set(e.chatForm,"visible",t)}}},[i("ChatForm",{ref:"chatForm",attrs:{"task-medical-review-id":e.currentRow.Id,"visit-task-id":e.currentRow.VisitTaskId},on:{handleCloseReply:e.handleCloseReply}})],1):e._e(),e._v(" "),e.closeQuestionVisible?i("el-dialog",{attrs:{visible:e.closeQuestionVisible,"close-on-click-modal":!1,"append-to-body":"","custom-class":"base-dialog-wrapper",width:"600px",title:e.$t("trials:medicalFeedback:title:closeQc")},on:{"update:visible":function(t){e.closeQuestionVisible=t}}},[i("CloseQC",{attrs:{"task-medical-review-id":e.currentRow.Id},on:{close:function(t){e.closeQuestionVisible=!1},refresh:e.refresh}})],1):e._e()],1)},a=[],r=i("db72"),o=i("3e42"),s=i("958c"),l=i("5f87"),c=i("6071"),u=i("333d"),d=i("a93a"),f=i("3866"),h=i("0e69"),p=function(){return{PageIndex:1,PageSize:20,TrialId:"",SiteId:"",SubjectId:"",SubjectCode:"",TaskName:"",IsUrgent:null,DoctorUserId:"",ReadingCategory:null,ReadingTaskState:null,AuditState:null,TaskState:null}},m={name:"MIMMedicalAudit",components:{BaseContainer:c["default"],Pagination:u["default"],MedicalAudit:d["default"],ChatForm:f["default"],CloseQC:h["default"]},data:function(){return{list:[],total:0,loading:!1,siteOptions:[],doctorUserList:[],trialId:"",searchData:p(),auditVisible:!1,chatForm:{visible:!1,title:""},currentRow:{},otherInfo:{},isConfirmMedicineQuestion:!1,TrialReadingCriterionId:"0",trialCriterionList:[],closeQuestionVisible:!1}},watch:{TrialReadingCriterionId:function(e){this.getList()},list:function(){var e=this;this.$nextTick((function(){e.$refs.mimMedicalAudit[0].doLayout()}))}},mounted:function(){this.trialId=this.$route.query.trialId,this.getTrialCriterionList(),this.getSite(),this.getDoctorUserSelectList()},methods:{refresh:function(){this.isClosedDialog=!0,this.$refs["chatForm"].getMessageList()},handleCloseReply:function(){this.closeQuestionVisible=!0},getList:function(){var e=this;this.loading=!0,this.searchData.TrialId=this.trialId,this.searchData.TrialReadingCriterionId=this.TrialReadingCriterionId,Object(o["oc"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount,e.otherInfo=t.OtherInfo})).catch((function(){e.loading=!1}))},getTrialCriterionList:function(){var e=this;Object(s["U"])(this.trialId).then((function(t){e.trialCriterionList=t.Result,e.TrialReadingCriterionId=e.trialCriterionList[0].TrialReadingCriterionId})).catch((function(){}))},handleView:function(e){this.currentRow=Object(r["a"])({},e),this.auditVisible=!0,1===e.ReadingCategory&&this.handleViewReadingPage(e)},handleReply:function(e){this.currentRow=Object(r["a"])({},e),this.chatForm.title="".concat(this.$t("trials:medicalFeedback:title:qaRecord")," (").concat(e.SubjectCode," ").concat(e.TaskBlindName,")"),this.chatForm.visible=!0},handleAudit:function(e){this.otherInfo.IsConfirmMedicineQuestion?(this.currentRow=Object(r["a"])({},e),this.auditVisible=!0,1===e.ReadingCategory&&this.handleViewReadingPage(e)):this.$alert(this.$t("trials:medicalFeedback:message:confirmTemplate"),{callback:function(e){}})},handleViewReadingPage:function(e){var t=this.$route.query.trialId,i=Object(l["a"])(),n=e.VisitTaskId,a=e.CriterionType,r=e.ReadingTool;r=isNaN(parseInt(r))?null:parseInt(r);var o=e.IsReadingTaskViewInOrder,s=e.TrialReadingCriterionId,c="";c=0===r?"/readingDicoms?TrialReadingCriterionId=".concat(s,"&trialId=").concat(t,"&subjectCode=").concat(e.SubjectCode,"&subjectId=").concat(e.SubjectId,"&visitTaskId=").concat(n,"&isReadingTaskViewInOrder=").concat(o,"&criterionType=").concat(a,"&readingTool=").concat(r,"&TokenKey=").concat(i,"&key=").concat((new Date).getTime()):"/noneDicomReading?TrialReadingCriterionId=".concat(s,"&trialId=").concat(t,"&subjectCode=").concat(e.SubjectCode,"&subjectId=").concat(e.SubjectId,"&visitTaskId=").concat(n,"&isReadingTaskViewInOrder=").concat(o,"&criterionType=").concat(a,"&readingTool=").concat(r,"&TokenKey=").concat(i,"&key=").concat((new Date).getTime());var u=this.$router.resolve({path:c});window.open(u.href,"_blank")},getSite:function(){var e=this;Object(o["Zd"])(this.trialId).then((function(t){e.siteOptions=t.Result}))},getDoctorUserSelectList:function(){var e=this;Object(s["A"])(this.$route.query.trialId).then((function(t){e.doctorUserList=t.Result}))},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=p(),this.getList()},handleSortChange:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()},nextTask:function(e){var t=this;Object(o["tc"])({medicalReviewId:e}).then((function(e){t.auditVisible=!1,t.currentRow=e.Result,t.$nextTick((function(){t.auditVisible=!0}))})).catch((function(){t.auditVisible=!1}))}}},g=m,v=i("2877"),b=Object(v["a"])(g,n,a,!1,null,null,null);t["default"]=b.exports},"9e2e":function(e,t,i){var n=i("a73c"),a=i("9850"),r=i("82eb"),o=r.WILL_BE_RESTORED,s=new a,l=function(){};l.prototype={constructor:l,drawRectText:function(e,t){var i=this.style;t=i.textRect||t,this.__dirty&&n.normalizeTextStyle(i,!0);var a=i.text;if(null!=a&&(a+=""),n.needDrawText(a,i)){e.save();var r=this.transform;i.transformText?this.setTransform(e):r&&(s.copy(t),s.applyTransform(r),t=s),n.renderText(this,e,a,i,t,o),e.restore()}}};var c=l;e.exports=c},"9e47":function(e,t,i){var n=i("6d8b"),a=i("71ad"),r=i("6cb7"),o=i("f934"),s=o.getLayoutParams,l=o.mergeLayoutParam,c=i("8e43"),u=["value","category","time","log"];function d(e,t,i,o){n.each(u,(function(r){t.extend({type:e+"Axis."+r,mergeDefaultAndTheme:function(t,a){var o=this.layoutMode,c=o?s(t):{},u=a.getTheme();n.merge(t,u.get(r+"Axis")),n.merge(t,this.getDefaultOption()),t.type=i(e,t),o&&l(t,c,o)},optionUpdated:function(){var e=this.option;"category"===e.type&&(this.__ordinalMeta=c.createByAxisModel(this))},getCategories:function(e){var t=this.option;if("category"===t.type)return e?t.data:this.__ordinalMeta.categories},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:n.mergeAll([{},a[r+"Axis"],o],!0)})})),r.registerSubTypeDefaulter(e+"Axis",n.curry(i,e))}e.exports=d},"9e69":function(e,t,i){var n=i("2b3e"),a=n.Symbol;e.exports=a},"9e87":function(e,t,i){var n=i("3eba"),a=i("6d8b"),r=i("50e5");n.registerAction("dataZoom",(function(e,t){var i=r.createLinkedNodesFinder(a.bind(t.eachComponent,t,"dataZoom"),r.eachAxisDim,(function(e,t){return e.get(t.axisIndex)})),n=[];t.eachComponent({mainType:"dataZoom",query:e},(function(e,t){n.push.apply(n,i(e).nodes)})),a.each(n,(function(t,i){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})}))}))},"9e95":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container"},[i("el-tabs",{attrs:{"before-leave":e.checkLeave},on:{"tab-click":e.clickTab},model:{value:e.active,callback:function(t){e.active=t},expression:"active"}},[i("el-tab-pane",{attrs:{label:"Basic Info",name:"BasicInfo"}},[e.load.BasicInfo?i("basic-info"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Employment",name:"Employment"}},[e.load.Employment?i("Employment"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Specialty",name:"Specialty"}},[e.load.Specialty?i("specialty"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Education & Training",name:"EducationTraining"}},[e.load.EducationTraining?i("education-training"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Research & Publication",name:"ResearchPublication"}},[e.load.ResearchPublication?i("research-publication"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Trial Experience",name:"TrialExperience"}},[e.load.TrialExperience?i("trial-experience"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Credentials",name:"Credentials"}},[e.load.Credentials?i("Credentials"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Resumes",name:"Resumes"}},[e.load.Resumes?i("Resumes"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Agreements",name:"Agreements"}},[e.load.Agreements?i("Agreements"):e._e()],1)],1)],1)},a=[],r=(i("386d"),i("4917"),i("3b2b"),i("7f7f"),i("383e")),o=i("cf4f"),s=i("ff7e"),l=i("2021"),c=i("77f5"),u=i("3290"),d=i("63a6"),f=i("4aa2"),h=i("6cce"),p=i("ca86"),m=i("a599"),g={components:{BasicInfo:r["default"],Employment:o["default"],Specialty:s["default"],EducationTraining:l["default"],ResearchPublication:c["default"],TrialExperience:u["default"],Credentials:d["default"],Resumes:f["default"],Agreements:h["default"],Setting:p["default"]},data:function(){return{active:"BasicInfo",load:{BasicInfo:!0,Employment:!1,Specialty:!1,EducationTraining:!1,ResearchPublication:!1,TrialExperience:!1,Credentials:!1,Resumes:!1,Agreements:!1,Setting:!1}}},mounted:function(){this.active=this.$route.query.tabActive,""===this.$route.query.Id&&"BasicInfo"!==this.active&&this.$router.push({path:"/ReviewersResearch"}),this.load[this.active]=!0},methods:{clickTab:function(e,t){!1===this.load[e.name]&&(this.load[e.name]=!0),Object(m["a"])("tabActive",e.name);var i=Object(m["b"])("Id");this.$router.push({path:"/ReviewersResearchForm?Id=".concat(i,"&tabActive=").concat(e.name,"&ReviewStatus=").concat(Object(m["b"])("ReviewStatus"))})},checkLeave:function(){var e=Object(m["b"])("Id");return!!e||(this.$message({message:"Please fill in the basic information first",type:"warning"}),!1)},getQueryString:function(e){console.log(window.location.href);var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),i=window.location.search.substr(1).match(t);return null!=i?unescape(i[2]):null}}},v=g,b=(i("5e36"),i("2877")),y=Object(b["a"])(v,n,a,!1,null,"96a3c784",null);t["default"]=y.exports},"9ed6":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"login-container"},[n("div",{staticClass:"login-header"}),e._v(" "),n("div",{staticClass:"login-body"},[n("div",{staticClass:"login-l"},[n("div",{staticClass:"login-logo"},["zh"===e.language?n("img",{attrs:{src:i("95b1"),alt:""}}):n("img",{attrs:{src:i("052c"),alt:""}})]),e._v(" "),e._m(0)]),e._v(" "),n("div",{staticClass:"login-r"},[e._m(1),e._v(" "),n("el-form",{ref:"loginForm",staticClass:"login-form",attrs:{model:e.loginForm,rules:e.loginRules,"auto-complete":"on","label-position":"left"}},[n("el-form-item",{attrs:{prop:"username",rules:[{required:!0,message:this.$t("login:formRule:userName"),trigger:"blur"}]}},[n("span",{staticClass:"svg-container"},[n("svg-icon",{attrs:{"icon-class":"user"}})],1),e._v(" "),n("el-input",{ref:"username",attrs:{size:"small",placeholder:e.$t("login:form:userName"),name:"username",type:"text",tabindex:"1"},model:{value:e.loginForm.username,callback:function(t){e.$set(e.loginForm,"username",t)},expression:"loginForm.username"}})],1),e._v(" "),n("el-form-item",{attrs:{prop:"password",rules:[{required:!0,message:this.$t("login:formRule:password"),trigger:"blur"}]}},[n("span",{staticClass:"svg-container"},[n("svg-icon",{attrs:{"icon-class":"password"}})],1),e._v(" "),n("el-input",{key:e.passwordType,ref:"password",attrs:{size:"small",type:e.passwordType,placeholder:e.$t("login:form:password"),name:"password",tabindex:"2"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleLogin(t)}},model:{value:e.loginForm.password,callback:function(t){e.$set(e.loginForm,"password",t)},expression:"loginForm.password"}}),e._v(" "),n("span",{staticClass:"show-pwd",on:{click:e.showPwd}},[n("svg-icon",{attrs:{"icon-class":"password"===e.passwordType?"eye":"eye-open"}})],1)],1),e._v(" "),n("el-button",{staticStyle:{width:"100%","margin-bottom":"10px"},attrs:{loading:e.loading,type:"primary",size:"medium"},nativeOn:{click:function(t){return t.preventDefault(),e.handleLogin(t)}}},[e._v("\n "+e._s(e.$t("login:button:login"))+"\n ")]),e._v(" "),n("div",{staticStyle:{"text-align":"right"}},[n("el-button",{attrs:{type:"text",size:"medium"},nativeOn:{click:function(t){return t.preventDefault(),e.handleResetPwd(t)}}},[e._v("\n "+e._s(e.$t("login:button:forgetPassword"))+"\n ")])],1)],1)],1)]),e._v(" "),"zh"===e.language?n("div",{staticClass:"login-footer"},[n("span",[e._v("Copyright © 2023 武汉行藏科技有限公司 版权所有")]),e._v(" "),n("span",[e._v(" | ")]),e._v(" "),n("a",{on:{click:e.openAbout}},[n("span",{staticStyle:{color:"#00D1B2"}},[e._v("关于")])])]):e._e(),e._v(" "),e.aboutVisible?n("el-dialog",{staticStyle:{"margin-top":"0"},attrs:{visible:e.aboutVisible,width:"680px","close-on-click-modal":!1,size:"small"},on:{"update:visible":function(t){e.aboutVisible=t}}},[n("div",{staticStyle:{margin:"0 auto",width:"600px","line-height":"28px"}},[n("h1",{staticStyle:{"text-align":"center","margin-bottom":"20px"}},[e._v("关于")]),e._v(" "),n("p",[e._v("\n 产品名称:医学影像疗效智能评估系统软件\n ")]),e._v(" "),n("p",[e._v("\n 型号规格V1.1\n ")]),e._v(" "),n("p",[e._v("\n 发布版本V1.1.0.1\n ")]),e._v(" "),n("p",[e._v("\n 完整版本V1.1.0.1\n ")]),e._v(" "),n("p",[e._v("\n 生产日期2022-11-10\n ")]),e._v(" "),n("p",[e._v("\n 使用期限10年\n ")]),e._v(" "),n("p",[e._v("\n 医疗器械注册证编号ZC00001\n ")]),e._v(" "),n("p",[e._v("\n 医疗器械生产许可证编号XK00001\n ")]),e._v(" "),n("p",[e._v("\n 注册人/生产企业名称:武汉行藏科技有限公司\n ")]),e._v(" "),n("p",[e._v("\n 住所武汉东湖新技术开发区高新大道666号光谷生物城生物创新园B5栋K409号\n ")]),e._v(" "),n("p",[e._v("\n 生产地址武汉东湖新技术开发区高新大道666号光谷生物城生物创新园B6栋C033C室\n ")]),e._v(" "),n("p",[e._v("\n 其他内容详见说明书\n ")])]),e._v(" "),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){e.aboutVisible=!1}}},[e._v("关闭")])],1)]):e._e()],1)},a=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"login-image"},[n("img",{attrs:{src:i("856c")}})])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"title-container"},[i("div",{staticClass:"title"},[e._v("EI Image Viewer")])])}],r=(i("a481"),i("db72")),o=i("2f62"),s=i("8105"),l=(i("381b"),{name:"Login",components:{TopLang:s["default"]},data:function(){return{VUE_APP_OSS_CONFIG_REGION:"oss-cn-shanghai",aboutVisible:!1,loginForm:{username:"",password:""},loginRules:{username:[{required:!0,message:this.$t("login:formRule:userName"),trigger:"blur"},{max:20,message:this.$t("common:ruleMessage:maxLength")}],password:[{required:!0,message:this.$t("login:formRule:password"),trigger:"blur"},{max:20,message:this.$t("common:ruleMessage:maxLength")}]},loading:!1,passwordType:"password",loginType:null,location:null}},computed:Object(r["a"])({},Object(o["b"])(["asyncRoutes","routes","language"])),mounted:function(){this.loginType=this.$route.query.loginType,this.location=this.$route.query.location,zzSessionStorage.setItem("loginType",this.loginType),localStorage.setItem("location",this.location),"USA"===this.location?(this.$i18n.locale="en",this.setLanguage("en"),this.$updateDictionary()):(this.$i18n.locale="zh",this.setLanguage("zh"),this.$updateDictionary())},methods:Object(r["a"])(Object(r["a"])({},Object(o["c"])({setLanguage:"lang/setLanguage"})),{},{openAbout:function(){this.aboutVisible=!0},showPwd:function(){var e=this;"password"===this.passwordType?this.passwordType="":this.passwordType="password",this.$nextTick((function(){e.$refs.password.focus()}))},handleLogin:function(){var e=this;this.loginType=this.$route.query.loginType,this.$refs.loginForm.validate((function(t){if(!t)return!1;e.loading=!0,e.$store.dispatch("user/login",e.loginForm).then((function(t){if(!t)return e.$message.success(e.$t("login:message:login1")),void setTimeout((function(){e.$router.push({path:"/recompose?userName=".concat(e.loginForm.username)})}),500);e.$store.dispatch("permission/generateRoutes").then((function(t){if(e.loading=!1,t&&t.length>0){if(e.$store.dispatch("global/getNoticeList"),e.$router.addRoutes(t),"DevOps"===e.loginType)return void e.$router.replace({path:t[0].path});if(e.hasPermi(["role:radmin"]))return void e.$router.replace({path:t[0].path});e.hasPermi(["role:air","role:rpm","role:rcrc","role:rir"])?e.$router.replace({path:"/trials/trials-list"}):e.$router.replace({path:"/trials"})}else e.$message.warning(e.$t("login:message:login2"))}))})).catch((function(){e.loading=!1}))}))},handleResetPwd:function(){this.$router.push({name:"Resetpassword"})}})}),c=l,u=(i("2017"),i("8fb6"),i("2877")),d=Object(u["a"])(c,n,a,!1,null,"6b0bc58a",null);t["default"]=d.exports},"9edc":function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"agreements-info"},[i("el-table",{staticStyle:{"margin-top":"10px"},attrs:{data:e.agreementList,"span-method":e.objectSpanMethod,border:"",size:"small"}},[i("el-table-column",{attrs:{type:"index",label:"No.",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialCode",label:"Trial ID","min-width":"50","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Type",label:"File Type","min-width":"80","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"FileName",label:"File Name","min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:"Upload Time","min-width":"60","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:"Action","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return["Statement of Work"==t.row.Type||"Acknowledgement of SOW"==t.row.Type||"Consultant Agreement"==t.row.Type?i("el-button",{attrs:{size:"small",type:"text"},on:{click:function(i){return e.preview(t.$index,t.row)}}},[e._v("View")]):e._e()]}}])})],1)],1)},a=[],r=(i("55dd"),i("ac6a"),{props:{doctorInfo:{type:Object,default:function(){return{}}}},data:function(){return{agreementList:[],spanArr:[],pos:0}},created:function(){this.initAgreement()},methods:{initAgreement:function(){var e=this;this.doctorInfo.AttachmentList&&(this.doctorInfo.AttachmentList.forEach((function(t){"Consultant Agreement"===t.Type&&(t.TrialCode="",e.agreementList.push(t))})),this.doctorInfo.SowList.forEach((function(t){t.Type="Statement of Work",e.agreementList.push(t)})),this.doctorInfo.AckSowList.forEach((function(t){t.Type="Acknowledgement of SOW",e.agreementList.push(t)})),this.agreementList=this.agreementList.sort((function(e,t){return e.TrialCode<t.TrialCode?-1:e.TrialCode===t.TrialCode?1:0})),this.getSpanArr(this.agreementList))},objectSpanMethod:function(e){e.row,e.column;var t=e.rowIndex,i=e.columnIndex;if(1===i){var n=this.spanArr[t],a=n>0?1:0;return{rowspan:n,colspan:a}}},getSpanArr:function(e){for(var t=0;t<e.length;t++)0===t?(this.spanArr.push(1),this.pos=0):e[t].TrialCode===e[t-1].TrialCode?(this.spanArr[this.pos]+=1,this.spanArr.push(0)):(this.spanArr.push(1),this.pos=t)},preview:function(e,t){var i=t.FullPath;i&&window.open(i,"_blank")},timeFormatter:function(e){return new Date(e.CreateTime).format("yyyy-MM-dd hh:mm:ss")},officalFormatter:function(e,t){return e.IsOfficial?"Yes":"No"}}}),o=r,s=(i("8968"),i("2877")),l=Object(s["a"])(o,n,a,!1,null,null,null);t["default"]=l.exports},"9f39":function(e,t,i){"use strict";i("a512")},"9f49":function(e,t,i){},"9f4c":function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-icon",use:"icon-icon-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-icon"><path d="M115.147.062a13 13 0 0 1 4.94.945c1.55.63 2.907 1.526 4.069 2.688a13.148 13.148 0 0 1 2.761 4.069c.678 1.55 1.017 3.245 1.017 5.086v102.3c0 3.681-1.187 6.733-3.56 9.155-2.373 2.422-5.352 3.633-8.937 3.633H12.992c-3.875 0-7-1.26-9.373-3.779-2.373-2.518-3.56-5.667-3.56-9.445V12.704c0-3.39 1.163-6.345 3.488-8.863C5.872 1.32 8.972.062 12.847.062h102.3zM81.434 109.047c1.744 0 3.003-.412 3.778-1.235.775-.824 1.163-1.914 1.163-3.27 0-1.26-.388-2.325-1.163-3.197-.775-.872-2.034-1.307-3.778-1.307H72.57c.097-.194.145-.485.145-.872V27.09h9.01c1.743 0 2.954-.436 3.633-1.308.678-.872 1.017-1.938 1.017-3.197 0-1.26-.34-2.325-1.017-3.197-.679-.872-1.89-1.308-3.633-1.308H46.268c-1.743 0-2.954.436-3.632 1.308-.678.872-1.018 1.938-1.018 3.197 0 1.26.34 2.325 1.018 3.197.678.872 1.889 1.308 3.632 1.308h8.138v72.075c0 .193.024.339.073.436.048.096.072.242.072.436H46.56c-1.744 0-3.003.435-3.778 1.307-.775.872-1.163 1.938-1.163 3.197 0 1.356.388 2.446 1.163 3.27.775.823 2.034 1.235 3.778 1.235h34.875z" /></symbol>'});o.a.add(s);t["default"]=s},"9f51":function(e,t,i){var n=i("857d"),a=n.normalizeRadian,r=2*Math.PI;function o(e,t,i,n,o,s,l,c,u){if(0===l)return!1;var d=l;c-=e,u-=t;var f=Math.sqrt(c*c+u*u);if(f-d>i||f+d<i)return!1;if(Math.abs(n-o)%r<1e-4)return!0;if(s){var h=n;n=a(o),o=a(h)}else n=a(n),o=a(o);n>o&&(o+=r);var p=Math.atan2(u,c);return p<0&&(p+=r),p>=n&&p<=o||p+r>=n&&p+r<=o}t.containStroke=o},"9f63":function(e,t,i){"use strict";i("afba")},"9f82":function(e,t,i){var n=i("ee1a"),a=n.isDimensionStacked,r=i("6d8b"),o=r.map;function s(e,t,i){var n,r=e.getBaseAxis(),s=e.getOtherAxis(r),c=l(s,i),u=r.dim,d=s.dim,f=t.mapDimension(d),h=t.mapDimension(u),p="x"===d||"radius"===d?1:0,m=o(e.dimensions,(function(e){return t.mapDimension(e)})),g=t.getCalculationInfo("stackResultDimension");return(n|=a(t,m[0]))&&(m[0]=g),(n|=a(t,m[1]))&&(m[1]=g),{dataDimsForPoint:m,valueStart:c,valueAxisDim:d,baseAxisDim:u,stacked:!!n,valueDim:f,baseDim:h,baseDataOffset:p,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function l(e,t){var i=0,n=e.scale.getExtent();return"start"===t?i=n[0]:"end"===t?i=n[1]:n[0]>0?i=n[0]:n[1]<0&&(i=n[1]),i}function c(e,t,i,n){var a=NaN;e.stacked&&(a=i.get(i.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=e.valueStart);var r=e.baseDataOffset,o=[];return o[r]=i.get(e.baseDim,n),o[1-r]=a,t.dataToPoint(o)}t.prepareDataCoordInfo=s,t.getStackedOnPoint=c},"9fa2":function(e,t,i){},"9fa3":function(e,t,i){var n=i("4ab1"),a=i("6d8b"),r=i("1687");function o(e,t){n.call(this,e,t,"clipPath","__clippath_in_use__")}a.inherits(o,n),o.prototype.update=function(e){var t=this.getSvgElement(e);t&&this.updateDom(t,e.__clipPaths,!1);var i=this.getTextSvgElement(e);i&&this.updateDom(i,e.__clipPaths,!0),this.markUsed(e)},o.prototype.updateDom=function(e,t,i){if(t&&t.length>0){var n,a,o=this.getDefs(!0),s=t[0],l=i?"_textDom":"_dom";s[l]?(a=s[l].getAttribute("id"),n=s[l],o.contains(n)||o.appendChild(n)):(a="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,n=this.createElement("clipPath"),n.setAttribute("id",a),o.appendChild(n),s[l]=n);var c=this.getSvgProxy(s);if(s.transform&&s.parent.invTransform&&!i){var u=Array.prototype.slice.call(s.transform);r.mul(s.transform,s.parent.invTransform,s.transform),c.brush(s),s.transform=u}else c.brush(s);var d=this.getSvgElement(s);n.innerHTML="",n.appendChild(d.cloneNode()),e.setAttribute("clip-path","url(#"+a+")"),t.length>1&&this.updateDom(n,t.slice(1),i)}else e&&e.setAttribute("clip-path","none")},o.prototype.markUsed=function(e){var t=this;e.__clipPaths&&a.each(e.__clipPaths,(function(e){e._dom&&n.prototype.markUsed.call(t,e._dom),e._textDom&&n.prototype.markUsed.call(t,e._textDom)}))};var s=o;e.exports=s},a0121:function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-lock",use:"icon-lock-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-lock"><path d="M119.88 49.674h-7.987V39.52C111.893 17.738 90.45.08 63.996.08 37.543.08 16.1 17.738 16.1 39.52v10.154H8.113c-4.408 0-7.987 2.94-7.987 6.577v65.13c0 3.637 3.57 6.577 7.987 6.577H119.88c4.407 0 7.987-2.94 7.987-6.577v-65.13c-.008-3.636-3.58-6.577-7.987-6.577zm-23.953 0H32.065V39.52c0-14.524 14.301-26.295 31.931-26.295 17.63 0 31.932 11.777 31.932 26.295v10.153z" /></symbol>'});o.a.add(s);t["default"]=s},a015:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",{staticClass:"consistency-list"},[i("template",{slot:"search-container"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:consistencyCheck:table:siteId")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:"",filterable:""},model:{value:e.searchData.SiteId,callback:function(t){e.$set(e.searchData,"SiteId",t)},expression:"searchData.SiteId"}},e._l(e.siteOptions,(function(e,t){return i("el-option",{key:t,attrs:{label:e.TrialSiteCode,value:e.SiteId}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:consistencyCheck:table:subjectId")}},[i("el-input",{staticStyle:{width:"100px"},model:{value:e.searchData.SubjectInfo,callback:function(t){e.$set(e.searchData,"SubjectInfo",t)},expression:"searchData.SubjectInfo"}})],1),e._v(" "),i("el-form-item",{staticClass:"my_multiple",attrs:{label:e.$t("trials:consistencyCheck:table:visitName")}},[i("el-select",{staticStyle:{width:"140px"},attrs:{clearable:"",multiple:""},model:{value:e.searchData.VisitPlanArray,callback:function(t){e.$set(e.searchData,"VisitPlanArray",t)},expression:"searchData.VisitPlanArray"}},[e._l(e.visitPlanOptions,(function(t,n){return i("el-option",{key:n,attrs:{label:t.VisitName,value:t.VisitNum}},[i("span",{staticStyle:{float:"left"}},[e._v(e._s(t.VisitName))])])})),e._v(" "),i("el-option",{key:"Other",attrs:{label:"OutPlan",value:"1.11"}})],2)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:consistencyCheck:table:checkState")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.CheckState,callback:function(t){e.$set(e.searchData,"CheckState",t)},expression:"searchData.CheckState"}},e._l(e.$d.CheckState,(function(e){return i("el-option",{key:e.value,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-download"},on:{click:function(t){return e.handleExport(1)}}},[e._v("\n "+e._s(e.$t("trials:consistencyCheck:button:export1"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-download"},on:{click:function(t){return e.handleExport(2)}}},[e._v("\n "+e._s(e.$t("trials:consistencyCheck:button:export2"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-download"},on:{click:e.handleDownload}},[e._v("\n "+e._s(e.$t("trials:consistencyCheck:button:download"))+"\n ")])],1),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:consistency-check:upload"],expression:"['trials:trials-panel:visit:consistency-check:upload']"}],staticStyle:{"margin-left":"auto"},attrs:{type:"primary",icon:"el-icon-upload2"},on:{click:e.handleOpenUploadDialog}},[e._v("\n "+e._s(e.$t("trials:consistencyCheck:button:upload"))+"\n ")])],1),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"}],ref:"consistencyTable",attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsUrgent",label:e.$t("trials:consistencyCheck:table:isUrgent"),"show-overflow-tooltip":"","min-width":"100",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsUrgent?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsUrgent)))]):i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsUrgent)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"CheckChallengeState",label:e.$t("trials:consistencyCheck:table:checkChallengeState"),"show-overflow-tooltip":"","min-width":"130",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.CheckChallengeState?i("span",[e._v(" -- ")]):1===t.row.CheckChallengeState?i("el-tag",{attrs:{type:"danger"}},[e._v("\n "+e._s(2===e.userTypeEnumInt?e.$fd("CheckChallengeState",1):e.$fd("CheckChallengeState",2))+"\n ")]):2===t.row.CheckChallengeState?i("el-tag",{attrs:{type:"danger"}},[e._v("\n "+e._s(2===e.userTypeEnumInt?e.$fd("CheckChallengeState",2):e.$fd("CheckChallengeState",1))+"\n ")]):3===t.row.CheckChallengeState?i("el-tag",[e._v(e._s(e.$fd("CheckChallengeState",t.row.CheckChallengeState)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialSiteCode",label:e.$t("trials:consistencyCheck:table:siteId"),"show-overflow-tooltip":"","min-width":"100",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode",label:e.$t("trials:consistencyCheck:table:subjectId"),"show-overflow-tooltip":"","min-width":"110",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitName",label:e.$t("trials:consistencyCheck:table:visitName"),"show-overflow-tooltip":"","min-width":"100",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.row.VisitName))]),e._v(" "),t.row.IsCheckBack?i("span",{staticClass:"status-primary-circle"},[e._v("回")]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Modalitys",label:e.$t("trials:consistencyCheck:table:modality"),"show-overflow-tooltip":"","min-width":"100",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.row.Modalitys))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"LatestScanDate",label:e.$t("trials:consistencyCheck:table:scanDate"),"show-overflow-tooltip":"","min-width":"100",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.row.LatestScanDate.split(" ")[0]))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"RequestBackState",label:e.$t("trials:consistencyCheck:table:requestBackState"),"show-overflow-tooltip":"","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[1*t.row.RequestBackState===0?i("span",[e._v(e._s(e.$fd("RequestBackState",1*t.row.RequestBackState)))]):1*t.row.RequestBackState===1?i("el-tag",[e._v(e._s(e.$fd("RequestBackState",1*t.row.RequestBackState)))]):1*t.row.RequestBackState===2?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("RequestBackState",1*t.row.RequestBackState)))]):1*t.row.RequestBackState===3?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("RequestBackState",1*t.row.RequestBackState)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"CheckTime",label:e.$t("trials:consistencyCheck:table:checkTime"),"show-overflow-tooltip":"","min-width":"150",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"CheckPassedTime",label:e.$t("trials:consistencyCheck:table:checkPassedTime"),"show-overflow-tooltip":"","min-width":"150",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"CheckState",label:e.$t("trials:consistencyCheck:table:checkState"),"show-overflow-tooltip":"","min-width":"120",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.CheckState?i("span",[e._v(" -- ")]):9===t.row.CheckState||10===t.row.CheckState?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("CheckState",t.row.CheckState)))]):11===t.row.CheckState?i("el-tag",[e._v(e._s(e.$fd("CheckState",t.row.CheckState)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"CheckResult",label:e.$t("trials:consistencyCheck:table:checkResult"),"show-overflow-tooltip":"","min-width":"120"}}),e._v(" "),e.hasPermi(["trials:trials-panel:visit:consistency-check:reply","trials:trials-panel:visit:consistency-check:apply-fallback","trials:trials-panel:visit:consistency-check:fallback","trials:trials-panel:visit:consistency-check:close","trials:trials-panel:visit:consistency-check:pass"])?i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"200",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{circle:"",title:e.$t("trials:consistencyCheck:action:reply"),disabled:t.row.CheckState<10,icon:"el-icon-chat-dot-square"},on:{click:function(i){return e.handleReply(t.row)}}}),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:consistency-check:close"],expression:"['trials:trials-panel:visit:consistency-check:close']"}],attrs:{circle:"",title:e.$t("trials:consistencyCheck:action:close"),icon:"el-icon-close",disabled:0===t.row.CheckChallengeState||3===t.row.CheckChallengeState||1===t.row.RequestBackState},on:{click:function(i){return e.handleOpenReason(t.row,"close")}}}),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:consistency-check:pass"],expression:"['trials:trials-panel:visit:consistency-check:pass']"}],attrs:{circle:"",title:e.$t("trials:consistencyCheck:action:pass"),icon:"el-icon-circle-check",disabled:11===t.row.CheckState||1===t.row.CheckChallengeState||2===t.row.CheckChallengeState},on:{click:function(i){return e.handleOpenReason(t.row,"pass")}}})]}}],null,!1,958960547)}):e._e()],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1),e._v(" "),e.chatVisible?i("el-dialog",{directives:[{name:"dialogDrag",rawName:"v-dialogDrag"}],attrs:{visible:e.chatVisible,"close-on-click-modal":!1,width:"800px",title:e.$t("trials:consistencyCheck:dialogTitle:qsContent")+"("+e.currentRow.SubjectCode+" "+e.currentRow.VisitName+")"},on:{"update:visible":function(t){e.chatVisible=t}}},[i("ConsistencyCheckForm",{ref:"chatForm",attrs:{data:e.currentRow,"is-reply":e.isReply,"dialog-list":e.currentDialogList},on:{close:function(t){e.chatVisible=!1},getDialogList:e.getDialogList,handleApplyBack:e.handleApplyBack,handleBack:e.handleBack}})],1):e._e(),e._v(" "),e.signVisible?i("el-dialog",{attrs:{visible:e.signVisible,"close-on-click-modal":!1,width:"600px"},on:{"update:visible":function(t){e.signVisible=t}}},[i("div",{attrs:{slot:"title"},slot:"title"},[i("span",{staticStyle:{"font-size":"18px"}},[e._v(e._s(e.$t("common:dialogTitle:sign")))]),e._v(" "),i("span",{staticStyle:{"font-size":"12px","margin-left":"5px"}},[e._v(e._s("("+e.$t("common:label:sign")+e.currentUser+")"))])]),e._v(" "),i("SignForm",{ref:"signForm",attrs:{"sign-code-enum":e.signCode,"subject-visit-id":e.currentRow.Id},on:{closeDialog:e.closeSignDialog}})],1):e._e(),e._v(" "),e.ReasonVisible?i("el-dialog",{attrs:{visible:e.ReasonVisible,"close-on-click-modal":!1,"append-to-body":"","custom-class":"base-dialog-wrapper",width:"pass"===e.currentRow.type?"750px":"600px",title:e.ReasonTitle},on:{"update:visible":function(t){e.ReasonVisible=t}}},[i("div",{staticStyle:{padding:"10px",border:"1px solid #e0e0e0","max-height":"650px","overflow-y":"auto"}},[i("el-form",{ref:"reasonForm",staticClass:"demo-ruleForm",attrs:{rules:e.rules,model:e.QuestionForm,size:"small","label-width":"120px"}},[i("el-form-item",{attrs:{label:e.$t("trials:qcQuality:label:"+e.currentRow.type+"Reason"),prop:"Type",rules:[{required:!0,message:e.$t("common:ruleMessage:select")}]}},[i("el-radio-group",{on:{change:e.typeChange},model:{value:e.QuestionForm.Type,callback:function(t){e.$set(e.QuestionForm,"Type",t)},expression:"QuestionForm.Type"}},[i("el-radio",{attrs:{label:1}},[e._v(e._s(e.$t("trials:check:radio:"+e.currentRow.type+"reason1")))]),e._v(" "),i("el-radio",{attrs:{label:2}},[e._v(e._s(e.$t("trials:check:radio:"+e.currentRow.type+"reason2")))]),e._v(" "),"pass"===e.currentRow.type?i("el-radio",{attrs:{label:3}},[e._v(e._s(e.$t("trials:check:radio:"+e.currentRow.type+"reason3")))]):e._e(),e._v(" "),"pass"===e.currentRow.type?i("el-radio",{attrs:{label:4}},[e._v(e._s(e.$t("trials:check:radio:"+e.currentRow.type+"reason4")))]):e._e()],1)],1),e._v(" "),"pass"===e.currentRow.type&&4===e.QuestionForm.Type||"pass"!==e.currentRow.type&&2===e.QuestionForm.Type?i("el-form-item",{attrs:{label:e.$t("trials:consistencyCheck:label:"+e.currentRow.type+"reason"),prop:"Remake"}},[i("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:e.$t("common:ruleMessage:specify"),maxlength:"500","show-word-limit":""},model:{value:e.QuestionForm.Remake,callback:function(t){e.$set(e.QuestionForm,"Remake",t)},expression:"QuestionForm.Remake"}})],1):e._e()],1)],1),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){e.ReasonVisible=!1,e.QuestionForm={Type:null,Reason:null}}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{loading:e.btnLoading,size:"small",type:"primary"},on:{click:e.passOrCloes}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)]):e._e(),e._v(" "),i("base-model",{attrs:{config:e.upload_cfg}},[i("template",{slot:"dialog-body"},[i("UploadExcel",{on:{refreshTable:e.refreshTable}})],1)],2)],2)},a=[],r=(i("20d6"),i("db72")),o=i("3e42"),s=i("e56e"),l=i("3f2a"),c=i("9a3b"),u=i("6071"),d=i("7eeb"),f=i("cb7b"),h=i("7234"),p=i("179b"),m=i("333d"),g=i("7a9e"),v=function(){return{SiteId:"",SubjectInfo:"",VisitPlanArray:[],CheckState:null,PageIndex:1,PageSize:20}},b={name:"ConsistencyCheck",components:{BaseContainer:u["default"],Pagination:m["default"],ConsistencyCheckForm:f["default"],UploadExcel:h["default"],BaseModel:d["default"],SignForm:p["default"]},data:function(){return{QuestionForm:{Type:null,Reason:null,Remake:null},searchData:v(),ReasonVisible:!1,total:0,list:[],btnLoading:!1,loading:!1,chatVisible:!1,currentRow:{},currentDialogList:[],siteOptions:[],visitPlanOptions:[],userTypeEnumInt:1*zzSessionStorage.getItem("userTypeEnumInt"),upload_cfg:{visible:!1,title:this.$t("trials:consistencyCheck:button:upload"),width:"500px",showClose:!0},rules:{Type:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}],Remake:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}]},signVisible:!1,signType:0,currentUser:zzSessionStorage.getItem("userName"),OtherInfo:{},signCode:"",trialId:this.$route.query.trialId,isReply:!1,ReasonTitle:null}},mounted:function(){this.getList(),this.getSite(),this.getVisitPlanOptions()},methods:{handleExport:function(e){var t=this;1===e?Object(l["d"])(this.searchData).then((function(e){})).catch((function(){t.loading=!1})):Object(l["b"])(this.searchData).then((function(e){})).catch((function(){t.loading=!1}))},typeChange:function(e){e===("pass"===this.currentRow.type?4:2)?(this.QuestionForm.Reason=null,this.QuestionForm.Remake=null):this.QuestionForm.Reason=this.$t("trials:check:radio:".concat(this.currentRow.type,"reason").concat(e))},passOrCloes:function(){"pass"===this.currentRow.type?this.pass():this.handleClose(this.currentRow)},handleOpenReason:function(e,t){this.ReasonTitle="pass"===t?this.$t("trials:consistencyCheck:dialogTitle:xfpassManually"):this.$t("trials:consistencyCheck:dialogTitle:xfclose"),this.currentRow=Object(r["a"])(Object(r["a"])({},e),{},{Reason:null}),this.currentRow.type=t,this.QuestionForm={Type:null,Reason:null,Remake:null},this.ReasonVisible=!0},getList:function(){var e=this;this.loading=!0,this.searchData.TrialId=this.trialId,Object(o["Ub"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount,e.OtherInfo=t.OtherInfo})).catch((function(){e.loading=!1}))},handleReply:function(e){var t=this;this.loading=!0,Object(o["Sb"])(e.Id).then((function(i){t.loading=!1,i.IsSuccess&&(Object.assign(e,i.Result.SubjectVisitCheck),t.currentRow=Object(r["a"])({},e),t.currentDialogList=i.Result.DialogList,t.isReply=!0,t.chatVisible=!0)})).catch((function(){t.loading=!1}))},getDialogList:function(){var e=this;this.loading=!0,this.$refs["chatForm"].loading=!0,Object(o["Sb"])(this.currentRow.Id).then((function(t){if(e.loading=!1,t.IsSuccess){var i=e.list.findIndex((function(t){return t.Id===e.currentRow.Id}));i>-1&&(e.currentRow=Object.assign(e.list[i],t.Result.SubjectVisitCheck),e.currentDialogList=t.Result.DialogList,e.$refs["chatForm"].addMessage(t.Result.DialogList[t.Result.DialogList.length-1]))}})).catch((function(){e.loading=!1,e.$refs["chatForm"].loading=!1}))},handleBack:function(){this.signType=1;var e=g["default"].processSignature.DataFallback;this.signCode=e,this.signVisible=!0},pass:function(){var e=this;this.$refs.reasonForm.validate((function(t){if(t){e.btnLoading=!0,4===e.QuestionForm.Type&&(e.QuestionForm.Reason="".concat(e.QuestionForm.Remake));var i={Id:e.currentRow.Id,ManualPassReason:e.QuestionForm.Reason};Object(o["He"])(e.trialId,i).then((function(t){e.btnLoading=!1,t.IsSuccess&&(e.getList(),e.QuestionForm.Type=null,e.ReasonVisible=!1,e.$message.success(e.$t("common:message:savedSuccessfully")))})).catch((function(){e.btnLoading=!1}))}}))},back:function(e){var t=this;this.loading=!0;var i={data:{id:this.currentRow.Id},signInfo:e};Object(c["b"])(i).then((function(i){t.loading=!1,e&&(t.$refs["signForm"].btnLoading=!1,t.signVisible=!1),i.IsSuccess&&(t.getList(),t.chatVisible=!1,t.$message.success(t.$t("trials:consistencyCheck:message:fallbackSuccessfully")))})).catch((function(){t.loading=!1,e&&(t.$refs["signForm"].btnLoading=!1)}))},handleClose:function(e){var t=this;this.$refs.reasonForm.validate((function(i){if(i){var n=Object.assign({},e);n.CheckChallengeState=3,t.btnLoading=!0,2===t.QuestionForm.Type&&(t.QuestionForm.Reason="".concat(t.$t("trials:qcQuality:message:problemNotSolved"),"<br/><br/>").concat(t.$t("trials:consistencyCheck:title:note")).concat(t.QuestionForm.Remake));var a={SubjectVisitId:e.Id,CloseCheckChallenge:t.QuestionForm.Reason};Object(o["W"])(t.trialId,a).then((function(e){t.btnLoading=!1,e.IsSuccess&&(t.getList(),t.ReasonVisible=!1,t.QuestionForm.Type=null,t.$message.success(t.$t("trials:consistencyCheck:message:closedSuccessfully")))})).catch((function(){t.btnLoading=!1}))}}))},handleDownload:function(){var e=this;this.loading=!0,Object(s["a"])("VisitCheck_Template").then((function(t){e.loading=!1})).catch((function(){e.loading=!1}))},handleOpenUploadDialog:function(){this.upload_cfg.visible=!0},handleView:function(e){this.currentRow=Object(r["a"])({},e),this.isReply=!1,this.chatVisible=!0},handleApplyBack:function(){var e=this;this.$confirm(this.$t("trials:consistencyCheck:message:apply"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){e.apply()})).catch((function(){}))},apply:function(){var e=this;this.loading=!0,Object(o["T"])(this.trialId,this.currentRow.Id).then((function(t){e.loading=!1,t.IsSuccess&&e.getDialogList()})).catch((function(){e.loading=!1}))},closeSignDialog:function(e,t){e?1===this.signType&&this.back(t):this.signVisible=!1},handlePassCheck:function(e){this.signType=2,this.currentRow=Object(r["a"])({},e);var t=g["default"].processSignature.ConsistencyCheckPassed;this.signCode=t,this.signVisible=!0},handleReset:function(){var e=this;this.searchData=v(),this.getList(),this.$nextTick((function(){e.$refs.consistencyTable.clearSort()}))},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleSortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()},refreshTable:function(){this.upload_cfg.visible=!1,this.getList()},getSite:function(){var e=this;Object(o["Zd"])(this.trialId).then((function(t){e.siteOptions=t.Result}))},getVisitPlanOptions:function(){var e=this;Object(o["ee"])(this.trialId).then((function(t){e.visitPlanOptions=t.Result}))}}},y=b,w=(i("98cf"),i("2877")),_=Object(w["a"])(y,n,a,!1,null,null,null);t["default"]=_.exports},a016:function(e,t,i){var n=i("4f85"),a=i("e46b"),r=i("6d8b"),o=i("eda2"),s=o.encodeHTML,l=i("c4a3"),c=n.extend({type:"series.radar",dependencies:["radar"],init:function(e){c.superApply(this,"init",arguments),this.legendVisualProvider=new l(r.bind(this.getData,this),r.bind(this.getRawData,this))},getInitialData:function(e,t){return a(this,{generateCoord:"indicator_",generateCoordCount:1/0})},formatTooltip:function(e,t,i,n){var a=this.getData(),o=this.coordinateSystem,l=o.getIndicatorAxes(),c=this.getData().getName(e),u="html"===n?"<br/>":"\n";return s(""===c?this.name:c)+u+r.map(l,(function(t,i){var n=a.get(a.mapDimension(t.dim),e);return s(t.name+" : "+n)})).join(u)},getTooltipPosition:function(e){if(null!=e)for(var t=this.getData(),i=this.coordinateSystem,n=t.getValues(r.map(i.dimensions,(function(e){return t.mapDimension(e)})),e,!0),a=0,o=n.length;a<o;a++)if(!isNaN(n[a])){var s=i.getIndicatorAxes();return i.coordToPoint(s[a].dataToCoord(n[a]),a)}},defaultOption:{zlevel:0,z:2,coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid"},label:{position:"top"},symbol:"emptyCircle",symbolSize:4}}),u=c;e.exports=u},a031:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"clinicalDataForm",attrs:{model:e.form,size:"small",rules:e.rules,"label-width":"110px"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:"类型",prop:"Type"}},[i("el-select",{model:{value:e.form.Type,callback:function(t){e.$set(e.form,"Type",t)},expression:"form.Type"}},e._l(e.$d.Criterion_Question_Type,(function(e){return i("el-option",{key:e.value,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),"group"===e.form.Type?i("el-form-item",{attrs:{label:"分组名称",prop:"GroupName"}},[i("el-input",{model:{value:e.form.GroupName,callback:function(t){e.$set(e.form,"GroupName",t)},expression:"form.GroupName"}})],1):e._e(),e._v(" "),"group"!==e.form.Type?i("el-form-item",{attrs:{label:"问题名称",prop:"QuestionName"}},[i("el-input",{model:{value:e.form.QuestionName,callback:function(t){e.$set(e.form,"QuestionName",t)},expression:"form.QuestionName"}})],1):e._e(),e._v(" "),"textarea"!==e.form.Type&&"input"!==e.form.Type&&"group"!==e.form.Type&&"summary"!==e.form.Type&&"upload"!==e.form.Type&&"number"!==e.form.Type?i("el-form-item",{attrs:{label:"选项",prop:"TypeValue"}},[i("el-input",{attrs:{placeholder:"选项请用‘|’分割多个选项"},model:{value:e.form.TypeValue,callback:function(t){e.$set(e.form,"TypeValue",t)},expression:"form.TypeValue"}})],1):e._e(),e._v(" "),"group"!==e.form.Type?i("el-form-item",{attrs:{label:"父问题"}},[i("el-select",{attrs:{clearable:""},on:{change:function(t){e.parentQuestionChange(t,e.form)}},model:{value:e.form.ParentId,callback:function(t){e.$set(e.form,"ParentId",t)},expression:"form.ParentId"}},e._l(e.parentOptions,(function(e){return i("el-option",{key:e.QuestionId,attrs:{label:e.QuestionName,value:e.QuestionId}})})),1)],1):e._e(),e._v(" "),e.form.ParentId?i("el-form-item",{attrs:{label:"父问题触发值",prop:"ParentTriggerValue"}},[i("el-select",{model:{value:e.form.ParentTriggerValue,callback:function(t){e.$set(e.form,"ParentTriggerValue",t)},expression:"form.ParentTriggerValue"}},e._l(e.parentTriggerValOptions,(function(e){return i("el-option",{key:e,attrs:{label:e,value:e}})})),1)],1):e._e(),e._v(" "),"group"!==e.form.Type?i("el-form-item",{attrs:{label:"问题分组"}},[i("el-select",{attrs:{clearable:"",disabled:e.isParentExistGroup},model:{value:e.form.GroupName,callback:function(t){e.$set(e.form,"GroupName",t)},expression:"form.GroupName"}},e._l(e.groupOptions,(function(e){return i("el-option",{key:e,attrs:{label:e,value:e}})})),1)],1):e._e(),e._v(" "),"group"!==e.form.Type?i("el-form-item",{attrs:{label:"是否必填"}},[i("el-radio-group",{model:{value:e.form.IsRequired,callback:function(t){e.$set(e.form,"IsRequired",t)},expression:"form.IsRequired"}},[i("el-radio",{attrs:{label:!0}},[e._v("是")]),e._v(" "),i("el-radio",{attrs:{label:!1}},[e._v("否")])],1)],1):e._e(),e._v(" "),"select"===e.form.Type||"radio"===e.form.Type?i("el-form-item",{attrs:{label:"是否裁判问题"}},[i("el-radio-group",{model:{value:e.form.IsJudgeQuestion,callback:function(t){e.$set(e.form,"IsJudgeQuestion",t)},expression:"form.IsJudgeQuestion"}},[i("el-radio",{attrs:{label:!0}},[e._v("是")]),e._v(" "),i("el-radio",{attrs:{label:!1}},[e._v("否")])],1)],1):e._e(),e._v(" "),"group"!==e.form.Type&&"summary"!==e.form.Type?i("el-form-item",{attrs:{label:"注释"}},[i("el-input",{model:{value:e.form.Remark,callback:function(t){e.$set(e.form,"Remark",t)},expression:"form.Remark"}})],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:"序号",prop:"ShowOrder"}},[i("el-input-number",{attrs:{"controls-position":"right",min:0},model:{value:e.form.ShowOrder,callback:function(t){e.$set(e.form,"ShowOrder",t)},expression:"form.ShowOrder"}})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.close}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.save}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])},a=[],r=(i("28a5"),i("20d6"),i("ac6a"),i("456d"),i("96cf"),i("3b8d")),o=i("3e42"),s={name:"AddOrUpdateClinicalData",props:{data:{type:Object,default:function(){return{}}}},data:function(){return{form:{Id:"",ReadingQuestionCriterionTrialId:"",QuestionName:"",Type:"select",TypeValue:"",ParentId:"",ParentTriggerValue:"",ShowOrder:0,IsRequired:!0,IsJudgeQuestion:!1,GroupName:"",Remark:""},rules:{Type:[{required:!0,message:"请选择",trigger:"blur"}],QuestionName:[{required:!0,message:"请注明",trigger:"blur"},{max:50,message:"最大长度为 50"}],TypeValue:[{required:!0,message:"请注明",trigger:"blur"},{max:200,message:"最大长度为 200"}],ParentTriggerValue:[{required:!0,message:"请选择",trigger:"blur"}],GroupName:[{required:!0,message:"请注明",trigger:"blur"},{max:50,message:"最大长度为 50"}]},loading:!1,btnLoading:!1,parentOptions:[],parentTriggerValOptions:[],groupOptions:[],isParentExistGroup:!1}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getGroupOptions();case 2:return e.next=4,this.getParentQuestions();case 4:if(Object.keys(this.data).length>0){for(t in this.form)this.data.hasOwnProperty(t)&&(this.form[t]=this.data[t]);""!==this.form.ParentId&&null!==this.form.ParentId&&""!==this.form.GroupName&&(this.isParentExistGroup=!0)}case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),save:function(){var e=this;this.$refs.clinicalDataForm.validate((function(t){t&&(e.btnLoading=!0,e.form.TrialId=e.$route.query.trialId,Object(o["v"])(e.form).then((function(t){e.btnLoading=!1,e.$emit("getList"),e.$emit("close"),e.$message.success(e.$t("common:message:savedSuccessfully"))})).catch((function(){e.btnLoading=!1})))}))},getGroupOptions:function(){var e=this;return new Promise((function(t,i){e.loading=!0;var n={criterionId:e.data.ReadingQuestionCriterionTrialId};Object(o["Nd"])(n).then((function(i){e.groupOptions=i.Result,e.loading=!1,t()})).catch((function(){e.loading=!1,i()}))}))},getParentQuestions:function(){var e=this;return new Promise((function(t,i){e.loading=!0;var n={ReadingQuestionCriterionTrialId:e.data.ReadingQuestionCriterionTrialId,id:e.data.Id};Object(o["Dd"])(n).then((function(i){e.parentOptions=i.Result,e.loading=!1,t()})).catch((function(){e.loading=!1,i()}))}))},parentQuestionChange:function(e,t){if(this.isParentExistGroup=!1,e){var i=this.parentOptions.findIndex((function(t){return t.QuestionId===e}));-1!==i&&(this.parentTriggerValOptions=this.parentOptions[i].TypeValue.split("|"),this.parentOptions[i].GroupName&&(this.isParentExistGroup=!0,t.GroupName=this.parentOptions[i].GroupName))}else t.ParentTriggerValue="",t.GroupName=""},close:function(){this.$emit("close")}}},l=s,c=i("2877"),u=Object(c["a"])(l,n,a,!1,null,"9bf14570",null);t["default"]=u.exports},a04ed:function(e,t,i){var n=i("6cb7");n.registerSubTypeDefaulter("timeline",(function(){return"slider"}))},a078:function(e,t,i){},a082:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"assign-site"},[i("div",{staticClass:"filter-box"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:sitesList:table:siteId")}},[i("el-input",{staticClass:"mr",attrs:{clearable:""},model:{value:e.listQuery.TrialSiteCode,callback:function(t){e.$set(e.listQuery,"TrialSiteCode",t)},expression:"listQuery.TrialSiteCode"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:sitesList:table:siteAliasName")}},[i("el-input",{staticClass:"mr",attrs:{clearable:""},model:{value:e.listQuery.TrialSiteAliasName,callback:function(t){e.$set(e.listQuery,"TrialSiteAliasName",t)},expression:"listQuery.TrialSiteAliasName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:sitesList:form:keyWord")}},[i("el-input",{staticClass:"mr",staticStyle:{width:"200px"},attrs:{clearable:"",placeholder:e.$t("trials:sitesList:formPlaceholder:keyWord")},model:{value:e.listQuery.UserKeyInfo,callback:function(t){e.$set(e.listQuery,"UserKeyInfo",t)},expression:"listQuery.UserKeyInfo"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:sitesList:table:status")}},[i("el-select",{staticClass:"mr",attrs:{clearable:""},model:{value:e.listQuery.IsDeleted,callback:function(t){e.$set(e.listQuery,"IsDeleted",t)},expression:"listQuery.IsDeleted"}},e._l(e.$d.IsSiteDisable,(function(e){return i("el-option",{key:e.label,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")]),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:setting:personnel-manage:add-site"],expression:"['trials:trials-panel:setting:personnel-manage:add-site']"}],attrs:{type:"primary",icon:"el-icon-plus"},on:{click:e.handleAdd}},[e._v("\n "+e._s(e.$t("common:button:add"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-download",disabled:0===e.list.length},on:{click:e.handleResearchListExport}},[e._v("\n "+e._s(e.$t("common:button:export"))+"\n ")])],1)],1)],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],attrs:{data:e.list,stripe:""},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialSiteCode",label:e.$t("trials:sitesList:table:siteId"),"show-overflow-tooltip":"",sortable:"custom","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.TrialSiteCode?i("span",[e._v(e._s(t.row.TrialSiteCode))]):i("i",{staticClass:"el-icon-warning",staticStyle:{color:"#f44336","font-size":"14px"}})]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Site",label:e.$t("trials:sitesList:table:siteName"),"show-overflow-tooltip":"",sortable:"custom","min-width":"80"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialSiteAliasName",label:e.$t("trials:sitesList:table:siteAliasName"),"show-overflow-tooltip":"",sortable:"custom","min-width":"80"}}),e._v(" "),i("el-table-column",{attrs:{prop:"City",label:e.$t("trials:sitesList:table:city"),sortable:"custom","show-overflow-tooltip":"","min-width":"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Country",label:e.$t("trials:sitesList:table:country"),"show-overflow-tooltip":"",sortable:"custom","min-width":"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"UserNameList",label:e.$t("trials:sitesList:table:staff"),"show-overflow-tooltip":"","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.UserCount>0?i("el-button",{attrs:{size:"small",type:"text"},on:{click:function(i){return e.getCrcList(t.row)}}},[e._v("\n "+e._s(t.row.UserNameList.length>0?t.row.UserNameList.join(", "):"")+"\n ")]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsDeleted",label:e.$t("trials:sitesList:table:status"),"show-overflow-tooltip":"",sortable:"","min-width":"70"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsDeleted?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("IsSiteDisable",t.row.IsDeleted)))]):i("el-tag",[e._v(e._s(e.$fd("IsSiteDisable",t.row.IsDeleted)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"UpdateTime",label:e.$t("trials:sitesList:table:timeAdded"),"show-overflow-tooltip":"",sortable:"","min-width":"70"}}),e._v(" "),i("el-table-column",{attrs:{prop:"DeletedTime",label:e.$t("trials:sitesList:table:timeDeleted"),"show-overflow-tooltip":"",sortable:"","min-width":"120"}}),e._v(" "),e.hasPermi(["trials:trials-panel:setting:personnel-manage:edit-site","trials:trials-panel:setting:personnel-manage:remove-site"])?i("el-table-column",{attrs:{label:e.$t("common:action:action"),"min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{circle:"",title:e.$t("trials:sitesList:action:assign"),icon:"el-icon-user",disabled:t.row.IsDeleted},on:{click:function(i){return e.getCrcList(t.row)}}}),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:setting:personnel-manage:edit-site"],expression:"['trials:trials-panel:setting:personnel-manage:edit-site']"}],attrs:{circle:"",title:e.$t("common:button:edit"),icon:"el-icon-edit-outline"},on:{click:function(i){return e.handleEdit(t.row)}}})]}}],null,!1,591792113)}):e._e()],1),e._v(" "),i("div",{staticClass:"pagination",staticStyle:{"text-align":"right"}},[i("pagination",{attrs:{total:e.total,page:e.listQuery.PageIndex,limit:e.listQuery.PageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"PageIndex",t)},"update:limit":function(t){return e.$set(e.listQuery,"PageSize",t)},pagination:e.getList}})],1),e._v(" "),e.site_model.visible?i("base-model",{attrs:{config:e.site_model}},[i("template",{slot:"dialog-body"},[i("SiteForm",{on:{closeDialog:e.closeSiteDialog}})],1)],2):e._e(),e._v(" "),e.crc_model.visible?i("base-model",{attrs:{config:e.crc_model}},[i("template",{slot:"dialog-body"},[i("CRCForm",{attrs:{"site-id":e.currentSiteId},on:{closeDialog:e.closeDialog}})],1)],2):e._e(),e._v(" "),e.edit_model.visible?i("base-model",{attrs:{config:e.edit_model}},[i("template",{slot:"dialog-body"},[i("el-form",{ref:"editForm",attrs:{model:e.form,"label-width":"100px",rules:e.rules}},[i("el-form-item",{attrs:{label:e.$t("trials:sitesList:table:siteId"),prop:"TrialSiteCode"}},[i("el-input",{model:{value:e.form.TrialSiteCode,callback:function(t){e.$set(e.form,"TrialSiteCode",t)},expression:"form.TrialSiteCode"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:sitesList:table:siteName")}},[i("el-input",{attrs:{disabled:""},model:{value:e.form.Site,callback:function(t){e.$set(e.form,"Site",t)},expression:"form.Site"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:sitesList:table:siteAliasName"),prop:"TrialSiteAliasName"}},[i("el-input",{model:{value:e.form.TrialSiteAliasName,callback:function(t){e.$set(e.form,"TrialSiteAliasName",t)},expression:"form.TrialSiteAliasName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:sitesList:table:city")}},[i("el-input",{attrs:{disabled:""},model:{value:e.form.City,callback:function(t){e.$set(e.form,"City",t)},expression:"form.City"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:sitesList:table:country")}},[i("el-input",{attrs:{disabled:""},model:{value:e.form.Country,callback:function(t){e.$set(e.form,"Country",t)},expression:"form.Country"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:sitesList:table:status")}},[i("el-switch",{attrs:{"active-value":!1,"inactive-value":!0},model:{value:e.form.IsDeleted,callback:function(t){e.$set(e.form,"IsDeleted",t)},expression:"form.IsDeleted"}})],1)],1)],1),e._v(" "),i("template",{slot:"dialog-footer"},[i("el-button",{attrs:{type:"primary",size:"small",disabled:e.saveBtnLoading},on:{click:function(t){e.edit_model.visible=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"small",loading:e.saveBtnLoading},on:{click:e.handleUpdateSiteID}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],2):e._e(),e._v(" "),e.status_model.visible?i("base-model",{attrs:{config:e.status_model}},[i("template",{slot:"dialog-body"},[i("span",[e._v(e._s(e.$t("trials:internalStaff:table:status"))+":")]),e._v(" "),i("el-radio-group",{model:{value:e.staffStatus,callback:function(t){e.staffStatus=t},expression:"staffStatus"}},e._l(e.$d.IsUserExitTrial,(function(t){return i("el-radio",{key:t.label,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1),e._v(" "),i("template",{slot:"dialog-footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){e.status_model.visible=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.saveStatus}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],2):e._e(),e._v(" "),e.siteOfcrc_model.visible?i("base-model",{attrs:{config:e.siteOfcrc_model}},[i("template",{slot:"dialog-body"},[i("div",{staticStyle:{"text-align":"right"}},[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:setting:personnel-manage:assign-staff"],expression:"['trials:trials-panel:setting:personnel-manage:assign-staff']"}],attrs:{type:"primary",icon:"el-icon-plus",size:"small"},on:{click:function(t){e.crc_model.visible=!0}}},[e._v("\n "+e._s(e.$t("common:button:add"))+"\n ")])],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.userListLoading,expression:"userListLoading"}],attrs:{data:e.userList,height:"400",size:"small"}},[i("el-table-column",{attrs:{prop:"UserRealName",label:e.$t("trials:internalStaff:table:name"),"min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:e.$t("trials:internalStaff:table:uid"),"min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"UserType",label:e.$t("trials:internalStaff:table:userType"),"min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Phone",label:e.$t("trials:internalStaff:table:phone"),"show-overflow-tooltip":"","min-width":"100"}}),e._v(" "),i("el-table-column",{attrs:{prop:"EMail",label:e.$t("trials:internalStaff:table:email"),"show-overflow-tooltip":"","min-width":"100"}}),e._v(" "),i("el-table-column",{attrs:{prop:"OrganizationName",label:e.$t("trials:internalStaff:table:organization"),"min-width":"100"}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsDeleted",label:e.$t("trials:internalStaff:table:status"),"show-overflow-tooltip":"",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsDeleted?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("IsUserExitTrial",t.row.IsDeleted)))]):i("el-tag",[e._v(e._s(e.$fd("IsUserExitTrial",t.row.IsDeleted)))])]}}],null,!1,2183258100)}),e._v(" "),i("el-table-column",{attrs:{prop:"UpdateTime",label:e.$t("trials:internalStaff:table:authorizationTime"),"show-overflow-tooltip":"",sortable:"custom","min-width":"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"DeletedTime",label:e.$t("trials:internalStaff:table:disableTime"),"show-overflow-tooltip":"",sortable:"","min-width":"120"}}),e._v(" "),i("el-table-column",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:setting:personnel-manage:assign-staff"],expression:"['trials:trials-panel:setting:personnel-manage:assign-staff']"}],attrs:{label:e.$t("common:action:action"),width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:setting:personnel-manage:assign-staff"],expression:"['trials:trials-panel:setting:personnel-manage:assign-staff']"}],attrs:{circle:"",title:e.$t("trials:internalStaff:action:status"),icon:"el-icon-edit-outline"},on:{click:function(i){return e.handleStatus(t.row)}}})]}}],null,!1,3770016010)})],1)],1)],2):e._e()],1)},a=[],r=i("a8db"),o=(i("20d6"),i("db72")),s=(i("ac6a"),i("456d"),i("a481"),i("3e42")),l=i("333d"),c=i("dcaf"),u=i("435b"),d=i("7eeb"),f=i("c1df"),h=i.n(f),p=["SortField","Asc","PageIndex","PageSize"],m=function(){return{UserKeyInfo:"",TrialSiteCode:"",TrialSiteAliasName:"",IsDeleted:null,SortField:"TrialSiteCode",Asc:!0,PageIndex:1,PageSize:20}},g={name:"Participant",components:{Pagination:l["default"],SiteForm:c["default"],CRCForm:u["default"],BaseModel:d["default"]},data:function(){return{list:[],listQuery:m(),listLoading:!1,total:0,currentSiteId:"",site_model:{visible:!1,title:this.$t("trials:sitesList:dialogTitle:assignSite"),width:"60%"},crc_model:{visible:!1,title:this.$t("trials:sitesList:dialogTitle:assignStaff").replace("xxx",this.$route.query.trialCode),width:"60%"},edit_model:{visible:!1,title:this.$t("trials:sitesList:dialogTitle:editSite"),width:"600px"},status_model:{visible:!1,title:this.$t("trials:sitesList:dialogTitle:editStaffStauts"),width:"500px"},siteOfcrc_model:{visible:!1,title:"",width:"70%"},form:{TrialSiteCode:"",Site:"",City:"",Country:"",IsDeleted:!1},saveBtnLoading:!1,staffStatus:null,currentRow:{},btnLoading:!1,userListLoading:!1,userList:[],moment:h.a,rules:{TrialSiteCode:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"},{max:100,message:"".concat(this.$t("common:ruleMessage:maxLength")," 100"),trigger:"blur"}],TrialSiteAliasName:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}]},trialId:""}},mounted:function(){this.trialId=this.$route.query.trialId,this.getList()},methods:{getList:function(){var e=this;this.listLoading=!0,this.listQuery.TrialId=this.trialId,Object(s["md"])(this.listQuery).then((function(t){e.listLoading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.listLoading=!1}))},handleAdd:function(){this.site_model.visible=!0},handleAssignCRC:function(e){if(e.TrialSiteCode){this.currentSiteId=e.SiteId;var t=this.$t("trials:sitesList:dialogTitle:assignStaff");console.log(t),this.crc_model.title=t.replace("xxx",this.$route.query.trialCode),this.crc_model.visible=!0}else this.$message.error(this.$t("trials:sitesList:message:setSiteId"))},handleEdit:function(e){Object.keys(e).length&&(this.form=Object(o["a"])({},e)),this.edit_model.visible=!0},handleUpdateSiteID:function(){var e=this;this.$refs["editForm"].validate((function(t){if(t){e.saveBtnLoading=!0;var i={trialId:e.trialId,id:e.form.Id,trialSiteCode:e.form.TrialSiteCode,trialSiteAliasName:e.form.TrialSiteAliasName,isDeleted:e.form.IsDeleted};Object(s["Hb"])(i).then((function(t){e.saveBtnLoading=!1,t.IsSuccess&&(e.edit_model.visible=!1,e.$message.success(e.$t("common:message:savedSuccessfully")),e.getList())})).catch((function(){e.saveBtnLoading=!1}))}}))},handleDelete:function(e){var t=this;this.$confirm(this.$t("trials:sitesList:message:removeSite"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){Object(s["Db"])(e.Id,t.trialId).then((function(i){i.IsSuccess&&(t.list.splice(t.list.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success(t.$t("trials:sitesList:message:removedSuccessfully")))}))}))},handleStatus:function(e){var t=Object(o["a"])({},e),i=t.IsDeleted;this.currentRow=Object(o["a"])({},e),this.staffStatus=i,this.status_model.visible=!0},saveStatus:function(){var e=this;this.btnLoading=!0,Object(s["xb"])(this.currentRow.Id,this.trialId,this.staffStatus).then((function(t){e.btnLoading=!1,t.IsSuccess&&(e.status_model.visible=!1,e.getTrialSiteCRCList(),e.getList(),e.$message.success(e.$t("common:message:savedSuccessfully")))})).catch((function(){e.btnLoading=!1}))},getCrcList:function(e){this.currentRow=Object(o["a"])({},e),this.currentSiteId=e.SiteId;var t=this.$t("trials:sitesList:dialogTitle:staff");this.siteOfcrc_model.title=t.replace("xxx",e.TrialSiteCode),this.siteOfcrc_model.visible=!0,this.getTrialSiteCRCList()},getTrialSiteCRCList:function(){var e=this;this.userListLoading=!0,Object(s["Xd"])(this.trialId,this.currentRow.SiteId).then((function(t){e.userListLoading=!1,e.userList=t.Result})).catch((function(){e.userListLoading=!1}))},handleResearchListExport:function(){var e=this;this.listQuery.TrialId=this.trialId,this.listLoading=!0;var t=Object(o["a"])({},this.listQuery),i=(t.SortField,t.Asc,t.PageIndex,t.PageSize,Object(r["a"])(t,p));Object(s["nf"])(Object(o["a"])({},i)).then((function(t){e.listLoading=!1})).catch((function(){e.listLoading=!1}))},handleResearchList:function(){this.$router.push({path:"/trials/trials-panel/attachments/site-research?trialId=".concat(this.$route.query.trialId,"&trialCode=").concat(this.$route.query.trialCode,"&researchProgramNo=").concat(this.$route.query.researchProgramNo)})},handleSortByColumn:function(e){"ascending"===e.order?this.listQuery.Asc=!0:this.listQuery.Asc=!1,this.listQuery.SortField=e.prop,this.listQuery.PageIndex=1,this.getList()},handleSearch:function(){this.listQuery.PageIndex=1,this.getList()},handleReset:function(){this.listQuery=m(),this.getList()},closeDialog:function(e){this.crc_model.visible=!1,e&&(this.listQuery=m(),this.getList(),this.getTrialSiteCRCList())},closeSiteDialog:function(){this.site_model.visible=!1,this.listQuery=m(),this.getList()}}},v=g,b=(i("1d50"),i("2877")),y=Object(b["a"])(v,n,a,!1,null,null,null);t["default"]=y.exports},a088:function(e,t,i){"use strict";i("c553")},a0f4:function(e,t,i){"use strict";i("c6f7")},a15a:function(e,t,i){var n=i("6d8b"),a=i("2306"),r=i("9850"),o=i("e86a"),s=o.calculateTextPosition,l=a.extendShape({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var i=t.cx,n=t.cy,a=t.width/2,r=t.height/2;e.moveTo(i,n-r),e.lineTo(i+a,n+r),e.lineTo(i-a,n+r),e.closePath()}}),c=a.extendShape({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var i=t.cx,n=t.cy,a=t.width/2,r=t.height/2;e.moveTo(i,n-r),e.lineTo(i+a,n),e.lineTo(i,n+r),e.lineTo(i-a,n),e.closePath()}}),u=a.extendShape({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var i=t.x,n=t.y,a=t.width/5*3,r=Math.max(a,t.height),o=a/2,s=o*o/(r-o),l=n-r+o+s,c=Math.asin(s/o),u=Math.cos(c)*o,d=Math.sin(c),f=Math.cos(c),h=.6*o,p=.7*o;e.moveTo(i-u,l+s),e.arc(i,l,o,Math.PI-c,2*Math.PI+c),e.bezierCurveTo(i+u-d*h,l+s+f*h,i,n-p,i,n),e.bezierCurveTo(i,n-p,i-u+d*h,l+s+f*h,i-u,l+s),e.closePath()}}),d=a.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var i=t.height,n=t.width,a=t.x,r=t.y,o=n/3*2;e.moveTo(a,r),e.lineTo(a+o,r+i),e.lineTo(a,r+i/4*3),e.lineTo(a-o,r+i),e.lineTo(a,r),e.closePath()}}),f={line:a.Line,rect:a.Rect,roundRect:a.Rect,square:a.Rect,circle:a.Circle,diamond:c,pin:u,arrow:d,triangle:l},h={line:function(e,t,i,n,a){a.x1=e,a.y1=t+n/2,a.x2=e+i,a.y2=t+n/2},rect:function(e,t,i,n,a){a.x=e,a.y=t,a.width=i,a.height=n},roundRect:function(e,t,i,n,a){a.x=e,a.y=t,a.width=i,a.height=n,a.r=Math.min(i,n)/4},square:function(e,t,i,n,a){var r=Math.min(i,n);a.x=e,a.y=t,a.width=r,a.height=r},circle:function(e,t,i,n,a){a.cx=e+i/2,a.cy=t+n/2,a.r=Math.min(i,n)/2},diamond:function(e,t,i,n,a){a.cx=e+i/2,a.cy=t+n/2,a.width=i,a.height=n},pin:function(e,t,i,n,a){a.x=e+i/2,a.y=t+n/2,a.width=i,a.height=n},arrow:function(e,t,i,n,a){a.x=e+i/2,a.y=t+n/2,a.width=i,a.height=n},triangle:function(e,t,i,n,a){a.cx=e+i/2,a.cy=t+n/2,a.width=i,a.height=n}},p={};n.each(f,(function(e,t){p[t]=new e}));var m=a.extendShape({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,i){var n=s(e,t,i),a=this.shape;return a&&"pin"===a.symbolType&&"inside"===t.textPosition&&(n.y=i.y+.4*i.height),n},buildPath:function(e,t,i){var n=t.symbolType;if("none"!==n){var a=p[n];a||(n="rect",a=p[n]),h[n](t.x,t.y,t.width,t.height,a.shape),a.buildPath(e,a.shape,i)}}});function g(e,t){if("image"!==this.type){var i=this.style,n=this.shape;n&&"line"===n.symbolType?i.stroke=e:this.__isEmptyBrush?(i.stroke=e,i.fill=t||"#fff"):(i.fill&&(i.fill=e),i.stroke&&(i.stroke=e)),this.dirty(!1)}}function v(e,t,i,n,o,s,l){var c,u=0===e.indexOf("empty");return u&&(e=e.substr(5,1).toLowerCase()+e.substr(6)),c=0===e.indexOf("image://")?a.makeImage(e.slice(8),new r(t,i,n,o),l?"center":"cover"):0===e.indexOf("path://")?a.makePath(e.slice(7),{},new r(t,i,n,o),l?"center":"cover"):new m({shape:{symbolType:e,x:t,y:i,width:n,height:o}}),c.__isEmptyBrush=u,c.setColor=g,c.setColor(s),c}t.createSymbol=v},a17a:function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-language",use:"icon-language-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-language"><path d="M84.742 36.8c2.398 7.2 5.595 12.8 11.19 18.4 4.795-4.8 7.992-11.2 10.39-18.4h-21.58zm-52.748 40h20.78l-10.39-28-10.39 28z" /><path d="M111.916 0H16.009C7.218 0 .025 7.2.025 16v96c0 8.8 7.193 16 15.984 16h95.907c8.791 0 15.984-7.2 15.984-16V16c0-8.8-6.394-16-15.984-16zM72.754 103.2c-1.598 1.6-3.197 1.6-4.795 1.6-.8 0-2.398 0-3.197-.8-.8-.8-1.599 0-1.599-.8s-.799-1.6-1.598-3.2c-.8-1.6-.8-2.4-1.599-4l-3.196-8.8H28.797L25.6 96c-1.598 3.2-2.398 5.6-3.197 7.2-.8 1.6-2.398 1.6-4.795 1.6-1.599 0-3.197-.8-4.796-1.6-1.598-1.6-2.397-2.4-2.397-4 0-.8 0-1.6.799-3.2.8-1.6.8-2.4 1.598-4l17.583-44.8c.8-1.6.8-3.2 1.599-4.8.799-1.6 1.598-3.2 2.397-4 .8-.8 1.599-2.4 3.197-3.2 1.599-.8 3.197-.8 4.796-.8 1.598 0 3.196 0 4.795.8 1.598.8 2.398 1.6 3.197 3.2.799.8 1.598 2.4 2.397 4 .8 1.6 1.599 3.2 2.398 5.6l17.583 44c1.598 3.2 2.398 5.6 2.398 7.2-.8.8-1.599 2.4-2.398 4zM116.711 72c-8.791-3.2-15.185-7.2-20.78-12-5.594 5.6-12.787 9.6-21.579 12l-2.397-4c8.791-2.4 15.984-5.6 21.579-11.2C87.939 51.2 83.144 44 81.545 36h-7.992v-3.2h21.58c-1.6-2.4-3.198-5.6-4.796-8l2.397-.8c1.599 2.4 3.997 5.6 5.595 8.8h19.98v4h-7.992c-2.397 8-6.393 15.2-11.189 20 5.595 4.8 11.988 8.8 20.78 11.2l-3.197 4z" /></symbol>'});o.a.add(s);t["default"]=s},a183:function(e,t,i){},a18f:function(e,t,i){var n=i("3a56"),a=n.extend({type:"dataZoom.inside",defaultOption:{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}});e.exports=a},a1d1:function(e,t,i){},a21d:function(e,t,i){},a22aa:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",{staticClass:"qc-check-wrapper"},[i("template",{slot:"search-container"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:dicomForward:table:siteId")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:"",filterable:""},model:{value:e.searchData.SiteId,callback:function(t){e.$set(e.searchData,"SiteId",t)},expression:"searchData.SiteId"}},e._l(e.siteOptions,(function(e,t){return i("el-option",{key:t,attrs:{label:e.TrialSiteCode,value:e.SiteId}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:dicomForward:table:subjectId")}},[i("el-input",{staticStyle:{width:"100px"},model:{value:e.searchData.SubjectInfo,callback:function(t){e.$set(e.searchData,"SubjectInfo",t)},expression:"searchData.SubjectInfo"}})],1),e._v(" "),i("el-form-item",{staticClass:"my_multiple",attrs:{label:e.$t("trials:dicomForward:tableon:visitName")}},[i("el-select",{staticStyle:{width:"140px"},attrs:{clearable:"",multiple:""},model:{value:e.searchData.VisitPlanArray,callback:function(t){e.$set(e.searchData,"VisitPlanArray",t)},expression:"searchData.VisitPlanArray"}},[e._l(e.visitPlanOptions,(function(t,n){return i("el-option",{key:n,attrs:{label:t.VisitName,value:t.VisitNum}},[i("span",{staticStyle:{float:"left"}},[e._v(e._s(t.VisitName))])])})),e._v(" "),i("el-option",{key:"Other",attrs:{label:"OutPlan",value:"1.11"}})],2)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:dicomForward:table:forwardStatus")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.ForwardState,callback:function(t){e.$set(e.searchData,"ForwardState",t)},expression:"searchData.ForwardState"}},e._l(e.$d.ForwardStateEnum,(function(t){return 0!==t.value?i("el-option",{attrs:{value:t.value,label:t.label}}):e._e()})),1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")]),e._v(" "),i("el-button",{attrs:{disabled:e.loading||0===e.selectArr.length,type:"primary",icon:"el-icon-document-copy"},on:{click:e.handleBulkForward}},[e._v("\n "+e._s(e.$t("trials:dicomForward:action:forward"))+"\n ")])],1)],1)],1),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"}],ref:"forwardList",attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortByColumn,"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",align:"left",width:"45",selectable:e.handleSelectTable}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialSiteCode",label:e.$t("trials:dicomForward:table:siteId"),"show-overflow-tooltip":"","min-width":"90",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode",label:e.$t("trials:dicomForward:table:subjectId"),"show-overflow-tooltip":"","min-width":"90",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitName",label:e.$t("trials:dicomForward:tableon:visitName"),"show-overflow-tooltip":"","min-width":"90",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"ForwardState",label:e.$t("trials:dicomForward:table:forwardStatus"),"show-overflow-tooltip":"","min-width":"90",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[1*t.row.ForwardState===0?i("span",[e._v("--")]):1*t.row.ForwardState===14?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("ForwardStateEnum",1*t.row.ForwardState)))]):1*t.row.ForwardState===15?i("el-tag",[e._v(e._s(e.$fd("ForwardStateEnum",1*t.row.ForwardState)))]):1*t.row.ForwardState===16?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ForwardStateEnum",1*t.row.ForwardState)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ForwardUserName",label:e.$t("trials:dicomForward:table:forwardUser"),"show-overflow-tooltip":"","min-width":"100",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"ForwardTime",label:e.$t("trials:dicomForward:table:forwardTime"),"show-overflow-tooltip":"","min-width":"100",sortable:"custom"}}),e._v(" "),e.hasPermi(["trials:trials-panel:visit:forward-list:forward"])?i("el-table-column",{attrs:{label:e.$t("common:action:action"),"min-width":"100",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:forward-list:forward"],expression:"['trials:trials-panel:visit:forward-list:forward']"}],attrs:{circle:"",title:e.$t("trials:dicomForward:action:forward"),icon:"el-icon-document-copy",disabled:15===t.row.ForwardState},on:{click:function(i){return e.handleForward(t.row)}}})]}}],null,!1,1732356025)}):e._e()],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1)],2)},a=[],r=i("3e42"),o=i("6071"),s=i("333d"),l=function(){return{SiteId:"",SubjectInfo:"",VisitPlanArray:[],ForwardState:null,PageIndex:1,PageSize:20}},c={name:"ForwardList",components:{BaseContainer:o["default"],Pagination:s["default"]},data:function(){return{searchData:l(),total:0,list:[],loading:!1,userTypeEnumInt:1*zzSessionStorage.getItem("userTypeEnumInt"),userId:zzSessionStorage.getItem("userId"),siteOptions:[],visitPlanOptions:[],trialId:this.$route.query.trialId,selectArr:[]}},mounted:function(){this.getList(),this.getSite(),this.getVisitPlanOptions()},methods:{getList:function(){var e=this;this.loading=!0,this.searchData.TrialId=this.trialId,Object(r["ec"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},handleForward:function(e){var t=this;this.$confirm(this.$t("trials:dicomForward:message:sureToForward"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.forward([e.Id])})).catch((function(){}))},handleBulkForward:function(){var e=this;this.$confirm(this.$t("trials:dicomForward:message:sureToForward"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){e.forward(e.selectArr)})).catch((function(){}))},forward:function(e){var t=this;this.loading=!0,Object(r["Kb"])(this.trialId,e).then((function(e){t.loading=!1,t.$message.success(t.$t("trials:dicomForward:message:forwardSuccessfully")),t.getList()})).catch((function(){t.loading=!1}))},handleSelectionChange:function(e){for(var t=[],i=0;i<e.length;i++)t.push(e[i].Id);this.selectArr=t},handleReset:function(){var e=this;this.searchData=l(),this.getList(),this.$nextTick((function(){e.$refs.forwardList.clearSort()}))},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleSortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()},handleSelectTable:function(e){return 1*e.ForwardState!==15},getSite:function(){var e=this;Object(r["Zd"])(this.trialId).then((function(t){e.siteOptions=t.Result}))},getVisitPlanOptions:function(){var e=this;Object(r["ee"])(this.trialId).then((function(t){e.visitPlanOptions=t.Result}))}}},u=c,d=i("2877"),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},a24f:function(e,t,i){},a255:function(e,t,i){"use strict";i("1772")},a263:function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-skill",use:"icon-skill-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-skill"><path d="M31.652 93.206h33.401c1.44 2.418 3.077 4.663 4.93 6.692h-38.33v-6.692zm0-10.586h28.914a44.8 44.8 0 0 1-1.264-6.688h-27.65v6.688zm0-17.27H59.39c.288-2.286.714-4.532 1.34-6.687H31.65v6.687h.003zm53.913 44.84v5.85c0 2.798-2.095 5.075-4.667 5.075h-70.07c-2.576 0-4.663-2.277-4.663-5.075V31.26l23.22-20.96v22.25H17.16v6.688h18.39V6.688h45.348c2.576 0 4.667 2.277 4.667 5.066v20.009c1.987-.675 4.053-1.128 6.17-1.445v-18.56C91.738 5.28 86.874 0 80.902 0H31.15L0 28.118v87.917c0 6.48 4.859 11.759 10.832 11.759h70.07c5.974 0 10.837-5.27 10.837-11.759v-4.41c-2.117-.312-4.183-.765-6.17-1.435h-.004zM23.279 58.667h-7.96v6.688h7.96v-6.688zm-7.956 41.23h7.96v-6.691h-7.96v6.692zm7.956-23.96h-7.96v6.687h7.96v-6.688zm89.718-15.042l-4.896-4.07-12.447 17.613-11.19-9.305-3.762 5.311 16.091 13.38 16.204-22.929zM128 70.978c0-18.632-13.97-33.782-31.147-33.782-17.168 0-31.135 15.155-31.135 33.782 0 18.628 13.97 33.783 31.135 33.783 17.172 0 31.143-15.15 31.143-33.783H128zm-6.17 0c0 14.933-11.203 27.1-24.981 27.1-13.77 0-24.987-12.158-24.987-27.1 0-14.941 11.195-27.099 24.987-27.099 13.778 0 24.982 12.158 24.982 27.1z" /></symbol>'});o.a.add(s);t["default"]=s},a29f:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"preview-wrapper"},[i("el-tabs",{attrs:{"tab-position":"right",type:"card"}},e._l(e.fileList,(function(t){return i("el-tab-pane",{key:t.Id,attrs:{label:t.FileName}},[-1!==t.Type.indexOf("jpg")||-1!==t.Type.indexOf("png")?i("iframe",{staticStyle:{width:"100%",height:"100%"},attrs:{frameborder:"0",src:t.FullFilePath,width:"100%"}}):-1!==t.Type.indexOf("pdf")?i("embed",{staticStyle:{width:"100%",height:"100%"},attrs:{src:t.FullFilePath}}):i("div",[e._v("\n 该文件不支持在线预览,可点击"),i("el-link",{attrs:{type:"primary"},on:{click:function(i){return e.downLoadFile(t.FullFilePath)}}},[e._v("下载")]),e._v("原件\n ")],1)])})),1)],1)},a=[],r=(i("ac6a"),i("3e42")),o={name:"PreviewFiles",props:{noneDicomId:{type:String,required:!0}},data:function(){return{fileType:"",fileUrl:"",loading:!1,fileList:[]}},mounted:function(){this.getFileList()},methods:{getFileList:function(){var e=this;this.loading=!0,Object(r["wc"])(this.noneDicomId).then((function(t){e.fileList=t.Result,e.fileList.forEach((function(e){var t=e.FileName;e.Type=t.substring(t.lastIndexOf(".")+1).toLocaleLowerCase()})),e.loading=!1})).catch((function(){e.loading=!1}))},downLoadFile:function(e){e&&window.open(e,"_blank")}}},s=o,l=(i("b708"),i("2877")),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},a2bf:function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-date",use:"icon-date-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-date"><defs><style type="text/css"></style></defs><path d="M947.2 1024 76.8 1024C38.4 1024 0 992 0 953.6L0 172.8c0-38.4 38.4-70.4 76.8-70.4l38.4 0 0 102.4c0 38.4 38.4 70.4 76.8 70.4l76.8 0c44.8 0 76.8-32 76.8-70.4L345.6 102.4l313.6 0 0 102.4c0 38.4 38.4 70.4 76.8 70.4l76.8 0c44.8 0 76.8-32 76.8-70.4L889.6 102.4l38.4 0c44.8 0 76.8 32 76.8 70.4l0 787.2C1024 992 985.6 1024 947.2 1024zM352 339.2 115.2 339.2 115.2 512l236.8 0L352 339.2zM352 544 115.2 544l0 172.8 236.8 0L352 544zM352 748.8 115.2 748.8l0 172.8 236.8 0L352 748.8zM627.2 339.2 396.8 339.2 396.8 512l236.8 0L633.6 339.2zM627.2 544 396.8 544l0 172.8 236.8 0L633.6 544zM627.2 748.8 396.8 748.8l0 172.8 236.8 0L633.6 748.8zM908.8 339.2l-236.8 0L672 512l236.8 0L908.8 339.2zM908.8 544l-236.8 0 0 172.8 236.8 0L908.8 544zM908.8 748.8l-236.8 0 0 172.8 236.8 0L908.8 748.8zM787.2 236.8c-44.8 0-76.8-32-76.8-70.4L710.4 70.4c0-38.4 38.4-70.4 76.8-70.4s76.8 32 76.8 70.4l0 102.4C864 211.2 832 236.8 787.2 236.8zM236.8 236.8C192 236.8 160 211.2 160 172.8L160 70.4C160 32 192 0 236.8 0s76.8 32 76.8 70.4l0 102.4C313.6 211.2 281.6 236.8 236.8 236.8z" p-id="1156" /></symbol>'});o.a.add(s);t["default"]=s},a2f6:function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-drag",use:"icon-drag-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-drag"><path d="M73.137 29.08h-9.209 29.7L63.886.093 34.373 29.08h20.49v27.035H27.238v17.948h27.625v27.133h18.274V74.063h27.41V56.115h-27.41V29.08zm-9.245 98.827l27.518-26.711H36.59l27.302 26.71zM.042 64.982l27.196 27.029V38.167L.042 64.982zm100.505-26.815V92.01l27.41-27.029-27.41-26.815z" /></symbol>'});o.a.add(s);t["default"]=s},a31a:function(e,t,i){"use strict";i("de44")},a342:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"search-container"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:notice:table:notificationType")}},[i("el-select",{attrs:{clearable:"",size:"small"},model:{value:e.searchData.NoticeTypeEnum,callback:function(t){e.$set(e.searchData,"NoticeTypeEnum",t)},expression:"searchData.NoticeTypeEnum"}},e._l(e.dict.type.NoteType,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:1*e.raw.Code}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:notice:table:notificationContent")}},[i("el-input",{staticStyle:{width:"100px"},attrs:{clearable:""},model:{value:e.searchData.NoticeContent,callback:function(t){e.$set(e.searchData,"NoticeContent",t)},expression:"searchData.NoticeContent"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")])],1)],1)],1),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"},{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortChange}},[i("el-table-column",{attrs:{type:"index",width:"40",align:"left"}}),e._v(" "),i("el-table-column",{attrs:{prop:"NoticeTypeEnum","min-width":"100",label:e.$t("trials:notice:table:notificationType"),"show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.dict.type.NoteType.find((function(e){return 1*e.raw.Code===t.row.NoticeTypeEnum}))?e.dict.type.NoteType.find((function(e){return 1*e.raw.Code===t.row.NoticeTypeEnum})).label:"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"NoticeContent","min-width":"100",label:e.$t("trials:notice:table:notificationContent"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"NoticeStateEnum","min-width":"100",label:e.$t("trials:notice:table:notificationStatus"),"show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-tag",{attrs:{type:0===t.row.ActualNoticeStateEnum?"info":1===t.row.ActualNoticeStateEnum?"success":"error"}},[e._v("\n "+e._s(e.dict.type.NoticeState.find((function(e){return 1*e.raw.Code===t.row.ActualNoticeStateEnum}))?e.dict.type.NoticeState.find((function(e){return 1*e.raw.Code===t.row.ActualNoticeStateEnum})).label:"")+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"PublishUserName","min-width":"100",label:e.$t("trials:notice:table:publisher"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"PublishedTime","min-width":"100",label:e.$t("trials:notice:table:releaseTime"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"EndDate","min-width":"100",label:e.$t("trials:notice:table:endTime"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"FileName","min-width":"100",label:e.$t("trials:notice:table:appendix"),"show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("a",{staticStyle:{color:"#00D1B2"},attrs:{href:t.row.FullFilePath,target:"_blank"}},[e._v(e._s(t.row.FileName))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsRead","min-width":"100",label:e.$t("trials:notice:table:isRead"),"show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsRead?i("el-tag",[e._v(e._s(e.$fd("YesOrNo",t.row.IsRead)))]):i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsRead)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action"),"min-width":"100",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{circle:"",title:e.$t("trials:notice:action:detail"),icon:"el-icon-info"},on:{click:function(i){return e.showDetail(t.row)}}})]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1)],2)},a=[],r=(i("96cf"),i("3b8d")),o=(i("7514"),i("b1ef")),s=i("6071"),l=i("333d"),c=function(){return{NoticeContent:"",NoticeTypeEnum:null,NoticeLevelEnum:null,ApplicableProjectEnum:null,NoticeModeEnum:null,NoticeStateEnum:null,Asc:!0,PageIndex:1,PageSize:20}},u={name:"TrialsNotice",components:{BaseContainer:s["default"],Pagination:l["default"]},dicts:["NoteType","NoticeState","NoticeMode"],data:function(){return{searchData:c(),list:[],total:0,loading:!1}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0,Object(o["g"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},showDetail:function(e){var t=this,i=this.dict.type.NoteType.find((function(t){return 1*t.raw.Code===e.NoticeTypeEnum}))?this.dict.type.NoteType.find((function(t){return 1*t.raw.Code===e.NoticeTypeEnum})).label:"";if(e.IsRead||1!==e.ActualNoticeStateEnum)this.$alert(e.NoticeContent,i,{showConfirmButton:!1});else{var n=this.$createElement;this.$msgbox({title:i,message:n("span",null,e.NoticeContent),beforeClose:function(i,n,a){"confirm"===i?(n.confirmButtonLoading=!0,Object(o["h"])(e.Id).then(function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(i){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!i.IsSuccess){e.next=4;break}return e.next=3,t.$store.dispatch("global/getNoticeList");case 3:t.getList();case 4:n.confirmButtonLoading=!1,a();case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(){n.confirmButtonLoading=!1}))):a()}})}},downLoadFile:function(e){e&&window.open(e,"_blank")},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=c(),this.getList()},handleSortChange:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()}}},d=u,f=i("2877"),h=Object(f["a"])(d,n,a,!1,null,"7cac6c64",null);t["default"]=h.exports},a34c:function(e,t,i){},a36b:function(e,t,i){e.exports=i.p+"static/img/404.a57b6f31.png"},a38d:function(e,t,i){var n=i("2306"),a=i("392f"),r=i("9680"),o=i("68ab"),s=n.extendShape({shape:{polyline:!1,curveness:0,segs:[]},buildPath:function(e,t){var i=t.segs,n=t.curveness;if(t.polyline)for(var a=0;a<i.length;){var r=i[a++];if(r>0){e.moveTo(i[a++],i[a++]);for(var o=1;o<r;o++)e.lineTo(i[a++],i[a++])}}else for(a=0;a<i.length;){var s=i[a++],l=i[a++],c=i[a++],u=i[a++];if(e.moveTo(s,l),n>0){var d=(s+c)/2-(l-u)*n,f=(l+u)/2-(c-s)*n;e.quadraticCurveTo(d,f,c,u)}else e.lineTo(c,u)}},findDataIndex:function(e,t){var i=this.shape,n=i.segs,a=i.curveness;if(i.polyline)for(var s=0,l=0;l<n.length;){var c=n[l++];if(c>0)for(var u=n[l++],d=n[l++],f=1;f<c;f++){var h=n[l++],p=n[l++];if(r.containStroke(u,d,h,p))return s}s++}else for(s=0,l=0;l<n.length;){u=n[l++],d=n[l++],h=n[l++],p=n[l++];if(a>0){var m=(u+h)/2-(d-p)*a,g=(d+p)/2-(h-u)*a;if(o.containStroke(u,d,m,g,h,p))return s}else if(r.containStroke(u,d,h,p))return s;s++}return-1}});function l(){this.group=new n.Group}var c=l.prototype;c.isPersistent=function(){return!this._incremental},c.updateData=function(e){this.group.removeAll();var t=new s({rectHover:!0,cursor:"default"});t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e),this.group.add(t),this._incremental=null},c.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clearIncremental(),e.count()>5e5?(this._incremental||(this._incremental=new a({silent:!0})),this.group.add(this._incremental)):this._incremental=null},c.incrementalUpdate=function(e,t){var i=new s;i.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(i,t,!!this._incremental),this._incremental?this._incremental.addDisplayable(i,!0):(i.rectHover=!0,i.cursor="default",i.__startIndex=e.start,this.group.add(i))},c.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},c._setCommon=function(e,t,i){var n=t.hostModel;e.setShape({polyline:n.get("polyline"),curveness:n.get("lineStyle.curveness")}),e.useStyle(n.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var a=t.getVisual("color");a&&e.setStyle("stroke",a),e.setStyle("fill"),i||(e.seriesIndex=n.seriesIndex,e.on("mousemove",(function(t){e.dataIndex=null;var i=e.findDataIndex(t.offsetX,t.offsetY);i>0&&(e.dataIndex=i+e.__startIndex)})))},c._clearIncremental=function(){var e=this._incremental;e&&e.clearDisplaybles()};var u=l;e.exports=u},a44c:function(e,t,i){},a483:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{ref:"userForm",staticStyle:{width:"800px"},attrs:{size:"small",model:e.user,rules:e.userFormRules,"label-width":"150px"}},[i("el-card",{staticClass:"Basic",attrs:{shadow:"never",size:"small"}},[i("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[i("span",[e._v("Basic Information")])]),e._v(" "),e.user.UserCode?i("el-form-item",{attrs:{label:"S/N: ",prop:"UserCode"}},[i("el-input",{attrs:{disabled:""},model:{value:e.user.UserCode,callback:function(t){e.$set(e.user,"UserCode",t)},expression:"user.UserCode"}})],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:"User ID: ",prop:"UserName"}},[i("el-input",{model:{value:e.user.UserName,callback:function(t){e.$set(e.user,"UserName",t)},expression:"user.UserName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Surname: ",prop:"LastName"}},[i("el-input",{model:{value:e.user.LastName,callback:function(t){e.$set(e.user,"LastName",t)},expression:"user.LastName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Given Name: ",prop:"FirstName"}},[i("el-input",{model:{value:e.user.FirstName,callback:function(t){e.$set(e.user,"FirstName",t)},expression:"user.FirstName"}})],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-right":"40px"},attrs:{label:"Gender: ",prop:"Sex"}},[i("el-radio-group",{model:{value:e.user.Sex,callback:function(t){e.$set(e.user,"Sex",t)},expression:"user.Sex"}},[i("el-radio",{attrs:{label:1}},[e._v("Male")]),e._v(" "),i("el-radio",{attrs:{label:0}},[e._v("Female")])],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Email: ",prop:"EMail"}},[i("el-input",{model:{value:e.user.EMail,callback:function(t){e.$set(e.user,"EMail",t)},expression:"user.EMail"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Phone: ",prop:"Phone"}},[i("el-input",{model:{value:e.user.Phone,callback:function(t){e.$set(e.user,"Phone",t)},expression:"user.Phone"}})],1),e._v(" "),1==e.type?i("el-form-item",{attrs:{label:"Disable:"}},[i("el-switch",{attrs:{"active-value":0,"inactive-value":1},model:{value:e.user.Status,callback:function(t){e.$set(e.user,"Status",t)},expression:"user.Status"}})],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:"User Type: ",prop:"UserTypeId"}},[i("el-select",{ref:"userType",staticStyle:{width:"100%"},attrs:{size:"small",placeholder:"Please select",disabled:!1===e.user.CanEditUserType},model:{value:e.user.UserTypeId,callback:function(t){e.$set(e.user,"UserTypeId",t)},expression:"user.UserTypeId"}},e._l(e.userTypeOptions,(function(e,t){return i("el-option",{key:t,attrs:{label:e.UserType,value:e.Id}})})),1)],1)],1),e._v(" "),i("el-card",{staticClass:"Affiliation",staticStyle:{"margin-top":"10px"},attrs:{shadow:"never",size:"small"}},[i("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[i("span",[e._v("Affiliation")])]),e._v(" "),i("el-form-item",{attrs:{prop:"IsZhiZhun"}},[i("el-radio-group",{on:{change:e.OrgnizationTypeChanged},model:{value:e.user.IsZhiZhun,callback:function(t){e.$set(e.user,"IsZhiZhun",t)},expression:"user.IsZhiZhun"}},[i("el-radio",{attrs:{label:!0}},[e._v("Internal")]),e._v(" "),i("el-radio",{attrs:{label:!1}},[e._v("External")])],1)],1),e._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:!1===e.user.IsZhiZhun,expression:"user.IsZhiZhun === false"}],attrs:{label:"Organization Name: "}},[i("el-input",{model:{value:e.user.OrganizationName,callback:function(t){e.$set(e.user,"OrganizationName",t)},expression:"user.OrganizationName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Department: ",prop:"DepartmentName"}},[i("el-input",{model:{value:e.user.DepartmentName,callback:function(t){e.$set(e.user,"DepartmentName",t)},expression:"user.DepartmentName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Position: ",prop:"PositionName"}},[i("el-input",{model:{value:e.user.PositionName,callback:function(t){e.$set(e.user,"PositionName",t)},expression:"user.PositionName"}})],1)],1),e._v(" "),i("el-form-item",[i("el-button",{staticStyle:{margin:"10px 15px"},attrs:{type:"primary",size:"small",disabled:e.isDisabled},on:{click:e.handleSave}},[e._v("Save")])],1)],1)},a=[],r=i("50fc"),o={name:"UserInfo",props:{userId:{type:String,default:""}},data:function(){return{user:{UserName:"",LastName:"",FirstName:"",Sex:"",EMail:"",Phone:"",UserTypeId:"",IsZhiZhun:"",OrganizationName:"",DepartmentName:"",PositionName:""},userFormRules:{UserName:[{required:!0,message:"Please specify",trigger:"blur"},{max:50,message:"The maximum length is 50"}],UserTypeId:[{required:!0,message:"Please Select",trigger:["blur","change"]}],IsZhiZhun:[{required:!0,message:"Please Select",trigger:["blur","change"]}],OrganizationName:[{required:!0,message:"Please specify",trigger:"blur"}],LastName:[{required:!0,message:"Please specify",trigger:"blur"},{max:50,message:"The maximum length is 50"}],FirstName:[{required:!0,message:"Please specify",trigger:"blur"},{max:50,message:"The maximum length is 50"}],Phone:[{max:20,min:7,message:"The length is 7 to 20",trigger:["blur"]}],EMail:[{required:!0,message:"Please input the email address",trigger:"blur"},{type:"email",message:"Please input the correct email address",trigger:["blur"]},{max:50,message:"The maximum length is 50"}],Sex:[{required:!0,message:"Please specify",trigger:"blur"}],Status:[{required:!0,message:"Please specify",trigger:"blur"}],DepartmentName:[{max:50,message:"The maximum length is 50"}],PositionName:[{max:50,message:"The maximum length is 50"}]},userTypeOptions:[],isDisabled:!1,type:0}},created:function(){this.getUserTypeList(),""!==this.userId?(this.getUserInfo(),this.type=1):this.type=0},methods:{handleSave:function(){var e=this;this.$refs.userForm.validate((function(t){if(t){e.isDisabled=!0;var i=e.userTypeOptions.filter((function(t){return t.Id===e.user.UserTypeId}));i.length>0&&(e.user.UserTypeEnum=i[0].UserTypeEnum),e.user.Id?Object(r["v"])(e.user).then((function(t){e.isDisabled=!1,e.$message.success("Updated successfully")})).catch((function(){e.isDisabled=!1})):Object(r["c"])(e.user).then((function(t){e.isDisabled=!1,e.user.Id=t.Result.Id,e.user.UserCode=t.Result.UserCode,e.$emit("getUserId",t.Result.Id),e.$message.success("Added successfully"),e.$router.push({path:"/system/user/list"})})).catch((function(){e.isDisabled=!1}))}}))},getUserTypeList:function(){var e=this;Object(r["o"])(0).then((function(t){t.IsSuccess&&(e.userTypeOptions=t.Result)}))},getUserInfo:function(){var e=this;Object(r["l"])(this.userId).then((function(t){e.user=t.Result}))},OrgnizationTypeChanged:function(e){this.user.OrganizationName=""}}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},a4b1:function(e,t,i){var n=i("3eba");i("00ba"),i("4d62");var a=i("98e7"),r=i("24b9"),o=i("d3f47");n.registerVisual(a("funnel")),n.registerLayout(r),n.registerProcessor(o("funnel"))},a4dc:function(e,t,i){},a4fe:function(e,t,i){var n=i("3eba"),a="\0_ec_interaction_mutex";function r(e,t,i){var n=l(e);n[t]=i}function o(e,t,i){var n=l(e),a=n[t];a===i&&(n[t]=null)}function s(e,t){return!!l(e)[t]}function l(e){return e[a]||(e[a]={})}n.registerAction({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},(function(){})),t.take=r,t.release=o,t.isTaken=s},a512:function(e,t,i){},a543:function(e,t,i){},a582:function(e,t,i){"use strict";i("8c11")},a588:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.isRender?i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"measurementForm",staticClass:"measurement-form",attrs:{model:e.questionForm,size:"mini"}},[i("div",{staticClass:"base-dialog-body"},[i("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[e.questionName?i("h3",{staticStyle:{color:"#ddd",padding:"5px 0px",margin:"0"}},[e._v("\n\n "+e._s(e.lesionName)+"\n ")]):e._e(),e._v(" "),i("div",[i("i",{staticClass:"el-icon-circle-close",staticStyle:{"font-size":"25px",cursor:"pointer"},on:{click:e.handleClose}})])]),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:reading:title:lesionType"),prop:"LesionType",rules:[{required:!0,message:e.$t("common:ruleMessage:select"),trigger:["blur"]}]}},[i("el-select",{attrs:{filterable:"",disabled:!0},model:{value:e.questionForm.LesionType,callback:function(t){e.$set(e.questionForm,"LesionType",t)},expression:"questionForm.LesionType"}},e._l(e.$d.LesionType,(function(t){return i("el-option",{directives:[{name:"show",rawName:"v-show",value:!(e.isBaseLineTask&&2===t.value),expression:"!(isBaseLineTask && item.value === 2)"}],key:t.id,attrs:{value:t.value,label:t.label}})})),1)],1),e._v(" "),e._l(e.questions,(function(t){return i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:2!==t.ShowQuestion,expression:"qs.ShowQuestion!==2"}],key:t.Id,attrs:{label:""+t.QuestionName,prop:t.Id,rules:[{required:(0===t.IsRequired||1===t.IsRequired&&t.RelevanceId&&e.questionForm[t.RelevanceId]===t.RelevanceValue||6===t.QuestionMark&&!0===e.questionForm.IsCanEditPosition||e.questionForm.IsCanEditPosition&&10===t.QuestionMark)&&"group"!==t.Type&&"summary"!==t.Type,message:["radio","select","checkbox"].includes(t.Type)?e.$t("common:ruleMessage:select"):e.$t("common:ruleMessage:specify"),trigger:["blur","change"]},{trigger:["blur","change"],validator:e.limitInputValidator}]}},["input"===t.Type||"number"===t.Type?["input"===t.Type||"number"===t.Type?i("el-input",{attrs:{disabled:!e.isCurrentTask||e.readingTaskState>=2||0===t.QuestionMark||1===t.QuestionMark||2===t.QuestionMark||5===t.QuestionMark||6===t.QuestionMark&&("False"===e.isCurrentTaskAdd||"True"===e.isCurrentTaskAdd&&!e.questionForm.IsCanEditPosition||!!e.answers.SplitOrMergeLesionName)||8===t.QuestionMark&&("False"===e.isCurrentTaskAdd||!!e.answers.SplitOrMergeLesionName)&&2!==e.lesionType||9===t.QuestionMark},on:{input:function(i){return e.limitInput(i,t)},focus:function(i){e.focusQs=Object.assign({},t)},change:function(i){e.formItemChange(i,t)}},model:{value:e.questionForm[t.Id],callback:function(i){e.$set(e.questionForm,t.Id,i)},expression:"questionForm[qs.Id]"}},[0!==t.QuestionMark&&1!==t.QuestionMark||!t.Unit?e._e():i("template",{slot:"append"},[e._v("\n "+e._s(e.$fd("ValueUnit",parseInt(t.Unit)))+"\n ")])],2):e._e()]:e._e(),e._v(" "),"textarea"===t.Type?i("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},disabled:!e.isCurrentTask||e.readingTaskState>=2},on:{change:function(i){e.formItemChange(i,t)}},model:{value:e.questionForm[t.Id],callback:function(i){e.$set(e.questionForm,t.Id,i)},expression:"questionForm[qs.Id]"}}):e._e(),e._v(" "),"select"===t.Type?i("el-select",{attrs:{filterable:"",disabled:!e.isBaseLineTask&&11===t.QuestionMark||(e.isBaseLineTask||2===e.lesionType)&&7===t.QuestionMark||!e.isCurrentTask||e.readingTaskState>=2||0===t.QuestionMark||1===t.QuestionMark||2===t.QuestionMark||5===t.QuestionMark||6===t.QuestionMark&&("False"===e.isCurrentTaskAdd||"True"===e.isCurrentTaskAdd&&!e.questionForm.IsCanEditPosition||!!e.answers.SplitOrMergeLesionName)||8===t.QuestionMark&&("False"===e.isCurrentTaskAdd||!!e.answers.SplitOrMergeLesionName)&&2!==e.lesionType},on:{change:function(i){e.formItemChange(i,t)}},model:{value:e.questionForm[t.Id],callback:function(i){e.$set(e.questionForm,t.Id,i)},expression:"questionForm[qs.Id]"}},[1===t.TableQuestionType?e._l(e.organList,(function(e){return i("el-option",{key:e.Id,attrs:{label:e[t.DataTableColumn],value:e[t.DataTableColumn]}})})):t.DictionaryCode&&7===t.QuestionMark&&e.isBaseLineTask||t.DictionaryCode&&7===t.QuestionMark&&!e.isBaseLineTask||t.DictionaryCode&&7!==t.QuestionMark?e._l(e.$d[t.DictionaryCode],(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})})):e._l(t.TypeValue.split("|"),(function(e){return i("el-option",{key:e,attrs:{label:e,value:e}})}))],2):e._e(),e._v(" "),"radio"===t.Type?i("el-radio-group",{attrs:{disabled:!e.isCurrentTask||e.readingTaskState>=2},model:{value:e.questionForm[t.id],callback:function(i){e.$set(e.questionForm,t.id,i)},expression:"questionForm[qs.id]"}},e._l(t.options.split("|"),(function(t){return i("el-radio",{key:t,attrs:{label:t}},[e._v("\n "+e._s(t)+"\n ")])})),1):e._e()],2)}))],2),e._v(" "),e.isCurrentTask&&e.readingTaskState<2?i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[e.questionForm.MeasureData?i("el-button",{attrs:{size:"mini"},on:{click:e.handleDeleteMeasureData}},[e._v("\n "+e._s(e.$t("trials:reading:button:removeMark"))+"\n ")]):e._e(),e._v(" "),"False"!==e.isCurrentTaskAdd?i("el-button",{attrs:{size:"mini"},on:{click:e.handleDelete}},[e._v("\n "+e._s(e.$t("common:button:delete"))+"\n ")]):e._e(),e._v(" "),i("el-button",{attrs:{size:"mini"},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1):e._e()]):e._e()},a=[],r=(i("3b2b"),i("34ef"),i("6b54"),i("7514"),i("96cf"),i("3b8d")),o=(i("f576"),i("db72")),s=(i("20d6"),i("ac6a"),i("28a5"),i("c5f6"),i("3e42")),l=i("0a05"),c=i("9b92"),u=i("4360"),d={name:"MeasurementForm",props:{questions:{type:Array,default:function(){return[]}},answers:{type:Object,default:function(){return{}}},lesionType:{type:Number,required:!0},visitTaskId:{type:String,required:!0},parentQsId:{type:String,required:!0},isCurrentTask:{type:Boolean,required:!0},readingTaskState:{type:Number,required:!0},isBaseLineTask:{type:Boolean,required:!0},orderMark:{type:String,default:""},questionName:{type:String,required:!0},rowIndex:{type:String,required:!0},tableQuestions:{type:Array,default:function(){return[]}}},data:function(){return{questionForm:{},loading:!1,trialId:"",organList:[],lesionNameId:"",lesionOrganId:"",lesionLocId:"",originalQuestionForm:{},isRender:!1,toolType:"",lesionName:"",isCurrentTaskAdd:"False",splitOrMergeLesionName:"",pictureBaseStr:"",digitPlaces:0,focusQs:null}},mounted:function(){this.trialId=this.$route.query.trialId,this.initForm()},methods:{limitInputValidator:function(e,t,i){this.focusQs&&!this.isBaseLineTask&&11===this.focusQs.QuestionMark&&parseInt(t)>parseInt(this.questionForm.BaseLineLesionNumber)?i(new Error(this.$t("trials:reading:pcwg:msg6")+this.questionForm.BaseLineLesionNumber)):i()},limitInput:function(e,t){e.indexOf(".")>-1&&e.split(".")[1].length>=this.digitPlaces&&this.$set(this.questionForm,t.Id,parseFloat(e).toFixed(this.digitPlaces))},initForm:function(){var e=this;console.log(this.lesionType),this.questions.forEach((function(t){var i=e.answers[t.Id];console.log(e.answers[t.Id]),t.DictionaryCode&&(i=e.answers[t.Id]?Number(e.answers[t.Id]):""),e.isBaseLineTask&&7===t.QuestionMark&&0===e.lesionType&&(i=0),e.isBaseLineTask&&7===t.QuestionMark&&1===e.lesionType&&(i=0),e.$set(e.questionForm,t.Id,i)})),this.$set(this.questionForm,"MeasureData",this.answers.MeasureData?JSON.parse(this.answers.MeasureData):""),this.$set(this.questionForm,"RowIndex",this.answers.RowIndex?this.answers.RowIndex:""),this.$set(this.questionForm,"RowId",this.answers.RowId?this.answers.RowId:""),this.$set(this.questionForm,"OrganInfoId",this.answers.OrganInfoId?this.answers.OrganInfoId:"");var t=this.getQuestionVal(7),i=this.getQuestionVal(11),n=this.questions.findIndex((function(e){return 11===e.QuestionMark}));this.questionForm.RowId?n>-1?this.$set(this.questionForm,"saveTypeEnum",isNaN(parseInt(i))?1:2):this.$set(this.questionForm,"saveTypeEnum",isNaN(parseInt(t))?1:2):this.$set(this.questionForm,"saveTypeEnum",0),this.$set(this.questionForm,"IsCanEditPosition","True"===this.answers.IsCanEditPosition),this.$set(this.questionForm,"BaseLineLesionNumber",this.answers.BaseLineLesionNumber),this.toolType=this.questionForm.MeasureData?this.questionForm.MeasureData.type:"",this.questionForm.LesionType||this.$set(this.questionForm,"LesionType",this.lesionType),this.lesionNameId=this.getQuestionId(4),this.lesionOrganId=this.getQuestionId(5),this.lesionLocId=this.getQuestionId(6),console.log(this.lesionNameId),console.log(this.lesionOrganId),console.log(this.lesionLocId),this.originalQuestionForm=Object(o["a"])({},this.questionForm),0===this.lesionType&&this.questionForm.MeasureData,this.questionForm.MeasureData?(console.log("this.questionForm.MeasureData",this.questionForm.MeasureData),"Bidirectional"===this.questionForm.MeasureData.type?(this.organList=[],this.getOrganInfoList(1)):"Length"===this.questionForm.MeasureData.type?(this.organList=[],this.getOrganInfoList(0)):(this.organList=[],this.getOrganInfoList())):(this.organList=[],this.getOrganInfoList()),this.lesionName=this.getLesionInfo(this.orderMark,this.rowIndex),this.isCurrentTaskAdd=this.answers.IsCurrentTaskAdd?this.answers.IsCurrentTaskAdd:"True",this.isRender=!0},getLesionName:function(e,t){var i="",n=t.split("."),a=parseInt(n[0]),r=parseInt(n[1]);return r>0?(r=String.fromCharCode(parseInt(n[1])-1+65+32),i="".concat(e).concat(String(a).padStart(2,"0")).concat(r)):i="".concat(e).concat(String(a).padStart(2,"0")),i},getLesionInfo:function(e,t){var i=[],n="",a=t.split("."),r=parseInt(a[0]),o=parseInt(a[1]);return o>0?(o=String.fromCharCode(parseInt(a[1])-1+65+32),n="".concat(e).concat(String(r).padStart(2,"0")).concat(o),i.push(n)):(n="".concat(e).concat(String(r).padStart(2,"0")),i.push(n)),this.answers.SplitOrMergeLesionName&&0===parseInt(this.answers.SplitOrMergeType)&&i.push("(Split from ".concat(this.answers.SplitOrMergeLesionName,")")),i.join(" ")},getQuestionId:function(e){var t=this.questions.findIndex((function(t){return t.QuestionMark===e}));return t>-1?this.questions[t].Id:""},handleLocation:function(){c["a"].$emit("imageLocation",this.questionForm)},getOrganInfoList:function(e){var t=this;return new Promise(function(){var i=Object(r["a"])(regeneratorRuntime.mark((function i(n){var a,r;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(sessionStorage.getItem("organList")){i.next=3;break}return i.next=3,u["a"].dispatch("reading/getOrganInfo",t.visitTaskId);case 3:a=JSON.parse(sessionStorage.getItem("organList"))||[],r=a.findIndex((function(e){return e.LesionType===t.lesionType})),r>-1&&(a=a[r].OrganList,isNaN(parseInt(e))?t.organList=a:t.organList=a.filter((function(t){return t.IsLymphNodes===parseInt(e)}))),n();case 7:case"end":return i.stop()}}),i)})));return function(e){return i.apply(this,arguments)}}())},deleteLesionInfo:function(){var e=this;return new Promise((function(t,i){var n={visitTaskId:e.visitTaskId,questionId:e.parentQsId,rowIndex:e.questionForm.RowIndex};Object(s["tb"])(n).then(function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(i){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:i.IsSuccess&&c["a"].$emit("getReportInfo",!0),t();case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(){i()}))}))},formItemChange:function(e,t){var i=this;if(11!==t.QuestionMark){if(console.log("question",t),8===t.QuestionMark&&t.RelationQuestions.length>0){var n=this.organList.findIndex((function(i){return i[t.DataTableColumn]===e}));if(console.log("index",n),n>-1){var a=this.organList[n];t.RelationQuestions.map((function(e){console.log("qs",e);var t=a[e.DataTableColumn];i.$set(i.questionForm,e.Id,t)})),this.$set(this.questionForm,"OrganInfoId",a.OrganInfoId),this.$set(this.questionForm,"IsCanEditPosition",a["IsCanEditPosition"])}else t.RelationQuestions.map((function(e){i.$set(i.questionForm,e.Id,"")}))}t.Id!==this.lesionOrganId&&t.Id!==this.lesionLocId||this.$set(this.questionForm,this.lesionNameId,"".concat(this.questionForm[this.lesionOrganId]," ").concat(this.questionForm[this.lesionLocId])),this.questionForm.RowId?this.$set(this.questionForm,"saveTypeEnum",1):this.$set(this.questionForm,"saveTypeEnum",0);var r=this.getQuestionVal(2);r=r?parseInt(r):null;var o=this.getQuestionVal(8),s=this.getQuestionVal(6),l=Number(this.getQuestionVal(0)),c=Number(this.getQuestionVal(1)),u=Number(this.getQuestionVal(7)),d=Number(this.getQuestionVal(11));this.$emit("resetQuestions",{isLymphLesion:r,lesionPart:o,lesionOrgan:s,lesionShort:c,lesionState:u,saveTypeEnum:this.questionForm.saveTypeEnum,lesionLength:l,lesionNum:d,rowIndex:this.rowIndex,questionId:this.parentQsId,anwsers:this.questionForm})}},setMeasureData:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new Promise((function(n){if(e){if(e.pictureBaseStr&&(t.pictureBaseStr=e.pictureBaseStr,e.pictureBaseStr=""),"Length"===e.type||"Bidirectional"===e.type){var a=t.questions.find((function(e){return 0===e.QuestionMark})),r="";"Length"===e.type?r=e.data.length?e.data.length.toFixed(2):"":"Bidirectional"===e.type&&(r=e.data.longestDiameter),t.$set(t.questionForm,a.Id,r);var o=t.questions.find((function(e){return 1===e.QuestionMark})),s="";"Bidirectional"===e.type&&(s=e.data.shortestDiameter),t.$set(t.questionForm,o.Id,s)}"Bidirectional"===e.type?(t.organList=[],t.getOrganInfoList(1)):"Length"===e.type?(t.organList=[],t.getOrganInfoList(0)):(t.organList=[],t.getOrganInfoList());var l={};!1===e.isDicomReading?(t.$set(t.questionForm,"IsDicomReading",!1),l={Id:"",IsDicomReading:!1,StudyId:e.studyId,InstanceId:e.instanceId,SeriesId:e.seriesId,MeasureData:e,QuestionId:t.parentQsId,RowIndex:t.questionForm.RowIndex,RowId:t.questionForm.RowId,VisitTaskId:t.visitTaskId}):(t.$set(t.questionForm,"IsDicomReading",!0),e.data.remark=t.getLesionName(t.orderMark,t.questionForm.RowIndex),l={Id:"",IsDicomReading:!0,StudyId:e.studyId,InstanceId:e.instanceId,SeriesId:e.seriesId,MeasureData:e,QuestionId:t.parentQsId,RowIndex:t.questionForm.RowIndex,RowId:t.questionForm.RowId,VisitTaskId:t.visitTaskId,OrderMarkName:e.data.remark,frame:isNaN(parseInt(e.frame))?0:e.frame}),u["a"].dispatch("reading/addMeasuredData",{visitTaskId:t.visitTaskId,data:l}),c["a"].$emit("getMeasureData",(function(e){t.pictureBaseStr=e}))}i||(t.questionForm.RowId?t.$set(t.questionForm,"saveTypeEnum",1):t.$set(t.questionForm,"saveTypeEnum",0)),t.$set(t.questionForm,"MeasureData",e);var d=t.getQuestionVal(2);d=d?parseInt(d):null;var f=t.getQuestionVal(8),h=t.getQuestionVal(6),p=Number(t.getQuestionVal(0)),m=Number(t.getQuestionVal(1)),g=Number(t.getQuestionVal(7)),v=Number(t.getQuestionVal(11));t.$emit("resetQuestions",{isLymphLesion:d,lesionPart:f,lesionOrgan:h,lesionShort:m,lesionLength:p,lesionState:g,lesionNum:v,saveTypeEnum:t.questionForm.saveTypeEnum,rowIndex:t.rowIndex,questionId:t.parentQsId,anwsers:t.questionForm}),t.toolType=e.type,n()}))},returnFloat:function(e){if(!e){var t=Math.round(100*parseFloat(e))/100,i=t.toString().split(".");return 1===i.length?(t=t.toString()+".00",t):i.length>1?(i[1].length<2&&(t=t.toString()+"0"),t):void 0}},getQuestionVal:function(e){var t=this.questions.findIndex((function(t){return t.QuestionMark===e}));if(t>-1){var i=this.questions[t].Id;return this.questionForm[i]}return""},uploadScreenshots:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t,i){var n,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,i=this.convertBase64ToBlob(i),n=new FormData,n.append("file",i),e.next=6,Object(l["s"])(n,this.$route.query.subjectId);case 6:return a=e.sent,a.url=a.Result.Path,e.abrupt("return",{isSuccess:!0,result:a});case 11:return e.prev=11,e.t0=e["catch"](0),console.log(e.t0),e.abrupt("return",{isSuccess:!1,result:e.t0});case 15:case"end":return e.stop()}}),e,this,[[0,11]])})));function t(t,i){return e.apply(this,arguments)}return t}(),convertBase64ToBlob:function(e){var t=e.split(","),i="",n="";t.length>1&&(n=t[1],i=t[0].substring(t[0].indexOf(":")+1,t[0].indexOf(";")));for(var a=atob(n),r=new ArrayBuffer(a.length),o=new Uint8Array(r),s=0;s<a.length;s++)o[s]=a.charCodeAt(s);return new Blob([r],{type:i})},handleSave:function(){var e=this;this.$refs.measurementForm.validate(function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(i){var n,a,l,u,d;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(i){t.next=2;break}return t.abrupt("return");case 2:if(n=e.getQuestionVal(7),a=e.questionForm.MeasureData,a&&""!==a||1!==n&&2!==n&&3!==n){t.next=7;break}return e.$message.error(e.$t("trials:reading:pcwg:msg7")),t.abrupt("return");case 7:l=e.$loading({fullscreen:!0}),u=Number(e.getQuestionVal(0)),d=Number(e.getQuestionVal(1)),c["a"].$emit("getScreenshots",function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(i){var n,f,h,p,m,g,v;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n="",!i){t.next=6;break}return t.next=4,e.uploadScreenshots("".concat((new Date).getTime()),i);case 4:f=t.sent,n=f.isSuccess?f.result.url:"";case 6:for(g in h=[],p=new RegExp(/^[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}$/),m=function(t){p.test(t)&&-1===h.findIndex((function(e){return e.tableQuestionId===t}))&&h.push({tableQuestionId:t,answer:e.questionForm[t]})},e.questionForm)m(g);v={questionId:e.parentQsId,rowIndex:e.answers.RowIndex,TaskNum:e.answers.TaskNum,visitTaskId:e.visitTaskId,trialId:e.trialId,measureData:a?JSON.stringify(a):"",answerList:h,isCanEditPosition:e.questionForm.IsCanEditPosition,studyId:a?e.questionForm.MeasureData.studyId:"",seriesId:a?e.questionForm.MeasureData.seriesId:"",instanceId:a?e.questionForm.MeasureData.instanceId:"",blindName:e.answers.BlindName,rowId:e.questionForm.RowId,numberOfFrames:a&&!isNaN(parseInt(e.questionForm.MeasureData.frame))?parseInt(e.questionForm.MeasureData.frame):0,picturePath:n,organInfoId:e.questionForm.OrganInfoId},Object(s["ef"])(v).then(function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(i){var n,a,r,s,f;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:try{e.$message.success(e.$t("common:message:savedSuccessfully")),e.$set(e.questionForm,"saveTypeEnum",2),e.originalQuestionForm=Object(o["a"])({},e.questionForm),l.close(),n=e.getQuestionVal(2),n=n?parseInt(n):null,a=e.getQuestionVal(6),e.$set(e.questionForm,"RowId",i.Result.RowId),r=e.getQuestionVal(8),s=Number(e.getQuestionVal(7)),f=Number(e.getQuestionVal(11)),e.$emit("resetQuestions",{isLymphLesion:n,lesionPart:r,lesionOrgan:a,lesionShort:d,saveTypeEnum:e.questionForm.saveTypeEnum,lesionLength:u,lesionState:s,lesionNum:f,rowIndex:e.rowIndex,questionId:e.parentQsId,anwsers:e.questionForm}),c["a"].$emit("getMeasureData"),e.$emit("close"),console.log("close"),c["a"].$emit("getReportInfo",!0)}catch(h){console.log(h)}case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(){l.close()}));case 12:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 11:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())},handleDeleteMeasureData:function(){var e=this;this.$confirm(this.$t("trials:reading:warnning:msg47"),{type:"warning",distinguishCancelAndClose:!0}).then(Object(r["a"])(regeneratorRuntime.mark((function t(){var i,n,a,r,o,s,l,d,f,h;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return i=e.getQuestionId(0),e.$set(e.questionForm,i,""),n=e.getQuestionId(1),e.$set(e.questionForm,n,""),e.questionForm.RowId?e.$set(e.questionForm,"saveTypeEnum",1):e.$set(e.questionForm,"saveTypeEnum",0),a=e.getLesionName(e.orderMark,e.questionForm.RowIndex),t.next=8,u["a"].dispatch("reading/removeMeasuredData",{visitTaskId:e.visitTaskId,measureData:e.questionForm.MeasureData,questionId:e.parentQsId,rowIndex:e.questionForm.RowIndex,orderMarkName:a});case 8:c["a"].$emit("getMeasureData"),r=e.getQuestionVal(2),r=r?parseInt(r):null,o=e.getQuestionVal(8),s=e.getQuestionVal(6),l=Number(e.getQuestionVal(0)),d=Number(e.getQuestionVal(1)),f=Number(e.getQuestionVal(7)),h=Number(e.getQuestionVal(11)),e.$set(e.questionForm,"MeasureData",""),e.$emit("resetQuestions",{isLymphLesion:r,lesionPart:o,lesionOrgan:s,lesionShort:d,lesionState:f,lesionNum:h,saveTypeEnum:e.questionForm.saveTypeEnum,lesionLength:l,rowIndex:e.rowIndex,questionId:e.parentQsId,anwsers:e.questionForm}),e.$set(e.questionForm,"MeasureData","");case 20:case"end":return t.stop()}}),t)})))).catch((function(){}))},handleDelete:function(){var e=this;this.$confirm(this.$t("trials:reading:warnning:msg48"),{type:"warning",distinguishCancelAndClose:!0}).then(Object(r["a"])(regeneratorRuntime.mark((function t(){var i,n,a,o;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.questionForm.RowId){t.next=6;break}i=e.$loading({fullscreen:!0}),n={visitTaskId:e.visitTaskId,questionId:e.parentQsId,rowId:e.questionForm.RowId},Object(s["tb"])(n).then(function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(n){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(i.close(),!n.IsSuccess){t.next=11;break}if(!e.questionForm.MeasureData){t.next=6;break}return a=e.getLesionName(e.orderMark,e.questionForm.RowIndex),t.next=6,u["a"].dispatch("reading/removeMeasuredData",{visitTaskId:e.visitTaskId,measureData:e.questionForm.MeasureData,questionId:e.parentQsId,rowIndex:e.questionForm.RowIndex,orderMarkName:a});case 6:c["a"].$emit("getMeasureData"),e.$emit("close",{lesionType:e.lesionType,rowIndex:e.rowIndex,visitTaskId:e.visitTaskId}),c["a"].$emit("getReportInfo",!0),e.$message.success(e.$t("common:message:deletedSuccessfully")),i.close();case 11:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(){i.close()})),t.next=14;break;case 6:if(a=e.$loading({fullscreen:!0}),!e.questionForm.MeasureData){t.next=11;break}return o=e.getLesionName(e.orderMark,e.questionForm.RowIndex),t.next=11,u["a"].dispatch("reading/removeMeasuredData",{visitTaskId:e.visitTaskId,measureData:e.questionForm.MeasureData,questionId:e.parentQsId,rowIndex:e.questionForm.RowIndex,orderMarkName:o});case 11:c["a"].$emit("getMeasureData"),e.$emit("close",{lesionType:e.lesionType,rowIndex:e.rowIndex,visitTaskId:e.visitTaskId}),a.close();case 14:case"end":return t.stop()}}),t)}))))},handleClose:function(){var e=this;this.questionForm.RowId?!1===this.questionForm.isSave?this.$confirm(this.$t("trials:reading:pcwg:msg8"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){e.$emit("close")})).catch((function(){})):this.$emit("close"):this.$confirm(this.$t("trials:reading:warnning:msg49"),{type:"warning",distinguishCancelAndClose:!0}).then(Object(r["a"])(regeneratorRuntime.mark((function t(){var i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.questionForm.MeasureData){t.next=4;break}return i=e.getLesionName(e.orderMark,e.questionForm.RowIndex),t.next=4,u["a"].dispatch("reading/removeMeasuredData",{visitTaskId:e.visitTaskId,measureData:e.questionForm.MeasureData,questionId:e.parentQsId,rowIndex:e.questionForm.RowIndex,orderMarkName:i});case 4:c["a"].$emit("getMeasureData"),e.$emit("close",{lesionType:e.lesionType,rowIndex:e.rowIndex,visitTaskId:e.visitTaskId});case 6:case"end":return t.stop()}}),t)})))).catch((function(){}))}}},f=d,h=(i("7877"),i("2877")),p=Object(h["a"])(f,n,a,!1,null,"2046cf1e",null);t["default"]=p.exports},a5a9:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{ref:"enroll_stats",staticStyle:{width:"100%",height:"100%"}})},a=[],r=i("313e"),o=i.n(r),s=i("5fd4"),l=i("6331"),c=6,u={props:{area:{type:String,default:""}},data:function(){return{myChart:""}},watch:{area:function(){var e=this;this.$nextTick((function(){e.myChart&&e.myChart.resize()}))}},mounted:function(){this.getData()},methods:{initChart:function(e,t){var i=[{top:"#C4E759",bottom:"#6DE195"},{top:"#8DE7FF",bottom:"#ABC7FF"},{top:"#41D8DD",bottom:"#5583EE"}],n={title:{text:"Enrollments of Past 6 Months",x:"4%",top:5,textStyle:{color:"#fff",fontSize:Object(l["a"])(.16)}},tooltip:{show:!0,formatter:"{b} : {c}"},xAxis:{type:"value",show:!1},yAxis:{type:"category",axisTick:{show:!1,alignWithLabel:!1},inverse:"true",axisLabel:{show:!0,textStyle:{color:"#fff",fontSize:Object(l["a"])(.14)}},axisLine:{show:!1},data:e},grid:{left:"80",top:"15%",bottom:10},series:[{type:"bar",barMaxWidth:Object(l["a"])(.2),label:{normal:{show:!0,position:"right",textStyle:{fontSize:Object(l["a"])(.14)},formatter:"{c}",color:"#fff"}},data:t,barWidth:"70%",itemStyle:{normal:{show:!0,color:function(e){var t=i.length;return{type:"linear",colorStops:[{offset:0,color:i[e.dataIndex%t].bottom},{offset:1,color:i[e.dataIndex%t].top},{offset:0,color:i[e.dataIndex%t].bottom},{offset:1,color:i[e.dataIndex%t].top},{offset:0,color:i[e.dataIndex%t].bottom},{offset:1,color:i[e.dataIndex%t].top},{offset:0,color:i[e.dataIndex%t].bottom},{offset:1,color:i[e.dataIndex%t].top},{offset:0,color:i[e.dataIndex%t].bottom},{offset:1,color:i[e.dataIndex%t].top}]}},barBorderRadius:10,borderWidth:0,borderColor:"#333"}}}]};this.$refs.enroll_stats&&(this.myChart=o.a.init(this.$refs.enroll_stats),this.myChart.setOption(n))},getData:function(){var e=this;Object(s["a"])(0,c).then((function(t){if(t.IsSuccess){if(t.Result){for(var i=[],n=[],a=t.Result,r=0;r<a.length;r++)i.push(a[r].ViewStr),n.push(a[r].EnrollCount);e.initChart(i,n)}}else e.$message({message:t.ErrorMessage,type:"error"})}))}}},d=u,f=i("2877"),h=Object(f["a"])(d,n,a,!1,null,null,null);t["default"]=h.exports},a5d0:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container revenues"},[i("div",{staticClass:"filter-container"},[i("el-input",{staticClass:"mr",attrs:{size:"small",placeholder:"Trial ID or Indication",clearable:""},model:{value:e.listQuery.KeyWord,callback:function(t){e.$set(e.listQuery,"KeyWord",t)},expression:"listQuery.KeyWord"}}),e._v(" "),i("el-select",{ref:"croSelection",staticClass:"mr",attrs:{size:"small",placeholder:"CRO",clearable:""},model:{value:e.listQuery.CroId,callback:function(t){e.$set(e.listQuery,"CroId",t)},expression:"listQuery.CroId"}},e._l(e.croList,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.CROName,value:e.Id}})})),1),e._v(" "),i("el-button",{attrs:{type:"text",size:"small"},on:{click:e.handleReset}},[e._v("Reset")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.handleSearch}},[e._v("Search")])],1),e._v(" "),i("div",{ref:"listContainer",staticClass:"list-container clearfix"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],ref:"revenusList",attrs:{size:"small",stripe:"",data:e.list,height:"100%"},on:{"sort-change":e.sortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialCode",sortable:"custom",label:"Trial ID","min-width":"90","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Indication",sortable:"custom",label:"Indication","min-width":"110","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ReviewMode",sortable:"custom",label:"Review Mode","min-width":"130","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Cro",sortable:"custom",label:"CRO","min-width":"80","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Expedited",sortable:"custom",label:"Expedited","min-width":"110","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(0===t.row.Expedited?"No":1===t.row.Expedited?"24-Hour":"48-Hour"))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Training",label:"Training","min-width":"80","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.Training)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"RefresherTraining",label:"Refresher Training","min-width":"130","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.RefresherTraining)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"Timepoint",align:"center"}},[i("el-table-column",{attrs:{prop:"Timepoint",label:"Regular","min-width":"80","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.Timepoint)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TimepointIn48H",label:"48-hour","min-width":"90","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.TimepointIn48H)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TimepointIn24H",label:"24-hour","min-width":"90","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.TimepointIn24H)))])]}}])})],1),e._v(" "),i("el-table-column",{attrs:{label:"Adjudication",align:"center"}},[i("el-table-column",{attrs:{prop:"Adjudication",label:"Regular","min-width":"80","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.Adjudication)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"AdjudicationIn48H",label:"48-hour","min-width":"90","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.AdjudicationIn48H)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"AdjudicationIn24H",label:"24-hour","min-width":"90","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.AdjudicationIn24H)))])]}}])})],1),e._v(" "),i("el-table-column",{attrs:{prop:"Global",label:"Global","min-width":"80","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.Global)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Downtime",label:"Downtime","min-width":"80","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.Downtime)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"Action","min-width":"80",fixed:"right",align:"left"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{size:"small",type:"text"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("Edit")])]}}])})],1)],1),e._v(" "),i("div",{staticClass:"pagination"},[i("pagination",{attrs:{total:e.total,page:e.listQuery.PageIndex,limit:e.listQuery.PageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"PageIndex",t)},"update:limit":function(t){return e.$set(e.listQuery,"PageSize",t)},pagination:e.getList}})],1),e._v(" "),i("el-dialog",{key:e.timer,attrs:{size:"small",title:"Edit",visible:e.dialogVisible,width:"600px","close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("RevenuesForm",{attrs:{form:e.row},on:{getList:e.getList,closeDialog:e.closeDialog}})],1)],1)},a=[],r=i("db72"),o=(i("c5f6"),i("333d")),s=i("7487"),l=i("4360"),c=i("2f62"),u=i("6b95"),d=function(){return{KeyWord:"",CroId:"",PageIndex:1,PageSize:20,Asc:!1,SortField:""}},f={components:{Pagination:o["default"],RevenuesForm:s["default"]},filters:{rounding:function(e){return e?Number(e).toFixed(2):e}},data:function(){return{listQuery:d(),list:[],total:0,listLoading:!1,dialogVisible:!1,row:{},timer:""}},computed:Object(r["a"])({},Object(c["b"])(["croList"])),mounted:function(){l["a"].dispatch("global/getCROList"),this.getList()},methods:{getList:function(){var e=this;this.listLoading=!0,Object(u["G"])(this.listQuery).then((function(t){e.listLoading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.listLoading=!1}))},handleSearch:function(){this.listQuery.PageIndex=1,this.getList()},handleReset:function(){this.listQuery=d(),this.getList()},handleEdit:function(e){this.timer=(new Date).getTime(),this.row=JSON.parse(JSON.stringify(e)),this.dialogVisible=!0},closeDialog:function(){this.dialogVisible=!1},sortByColumn:function(e){"ascending"===e.order?this.listQuery.Asc=!0:this.listQuery.Asc=!1,this.listQuery.SortField=e.prop,this.listQuery.PageIndex=1,this.getList()}}},h=f,p=(i("a850"),i("2877")),m=Object(p["a"])(h,n,a,!1,null,"8c3eda4a",null);t["default"]=m.exports},a5f6:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"role"},[i("div",{ref:"leftContainer",staticClass:"left"},[i("div",{staticClass:"filter-container"},[i("el-button",{staticStyle:{"margin-left":"auto"},attrs:{type:"primary",size:"small"},on:{click:e.handleAddRole}},[e._v("New")])],1),e._v(" "),i("base-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{"highlight-current-row":!0,columns:e.role_columns,list:e.list,"hidden-page":!0},on:{getList:e.getList,permission:e.handlePermission,edit:e.handleEditRole,delete:e.handleDeleteRole,sortByColumn:e.sortByColumn},scopedSlots:e._u([{key:"TypeSlot",fn:function(t){var i=t.scope;return[e._v("\n "+e._s(1===i.row.Type?"Trial":2===i.row.Type?"Reviewer":3===i.row.Type?"Other":"")+"\n ")]}}])})],1),e._v(" "),e.model_cfg.visible?i("role-form",{attrs:{data:e.editRow},on:{close:e.closeModal}}):e._e()],1)},a=[],r=(i("20d6"),i("429f")),o=i("c0ee"),s=i("50fc"),l=i("254d"),c=i("fab6"),u={name:"Role",components:{BaseTable:o["default"],RoleForm:l["default"]},mixins:[c["a"]],data:function(){return{role_columns:r["b"],model_cfg:r["a"],list:[],total:0,loading:!1,treeData:[],defaultProps:{label:"MenuName",children:"Children"},dialogVisible:!1,editRow:{},expandedKeys:[],treeLoading:!1,funcListLoading:!1,funcList:[]}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0,Object(s["p"])({}).then((function(t){e.loading=!1,e.list=t.Result})).catch((function(){e.loading=!1}))},handleAddRole:function(){this.editRow={},this.model_cfg.visible=!0,this.model_cfg.title="Add"},handleEditRole:function(e){this.editRow=e,this.model_cfg.visible=!0,this.model_cfg.title="Edit"},handlePermission:function(e){this.roleId=e.Id,this.$nextTick((function(){this.$refs["roleMenu"].getMenus(e.Id)}))},handleDeleteRole:function(e){var t=this;this.$confirm("Sure to delete?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){Object(s["f"])(e.Id).then((function(i){i.IsSuccess&&(t.list.splice(t.list.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success("Deleted successfully!"))}))}))},closeModal:function(){this.model_cfg.visible=!1,this.getList()}}},d=u,f=(i("ff37"),i("2877")),h=Object(f["a"])(d,n,a,!1,null,null,null);t["default"]=h.exports},a5fc:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",[i("div",{staticClass:"search"},[i("el-form",{staticClass:"base-search-form",attrs:{inline:!0,size:"small"}},[i("el-form-item",{attrs:{label:"CRO Name:"}},[i("el-input",{staticStyle:{width:"100px"},model:{value:e.searchData.CROName,callback:function(t){e.$set(e.searchData,"CROName",t)},expression:"searchData.CROName"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("Search")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("Reset")])],1)],1),e._v(" "),i("span",{staticStyle:{"margin-left":"auto"}},[i("el-button",{staticStyle:{"margin-left":"auto"},attrs:{size:"small",type:"primary",icon:"el-icon-plus"},on:{click:e.handleAddCro}},[e._v("New")])],1)],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"}],attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"CROCode",label:"CRO Code","min-width":"150","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"CROName",label:"CRO Name","min-width":"150","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"CRONameCN",label:"CRO NameCN","min-width":"150","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{label:"Action","min-width":"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{circle:"",icon:"el-icon-edit-outline",title:"编辑"},on:{click:function(i){return e.handleEdit(t.row)}}}),e._v(" "),i("el-button",{attrs:{circle:"",icon:"el-icon-delete",title:"删除"},on:{click:function(i){return e.handleDelete(t.row)}}})]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}}),e._v(" "),e.editVisible?i("el-dialog",{attrs:{visible:e.editVisible,"close-on-click-modal":!1,title:e.title,width:"600px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.editVisible=t}}},[e.editVisible?i("CroForm",{attrs:{data:e.rowData},on:{close:e.close,getList:e.getList}}):e._e()],1):e._e()],1)},a=[],r=(i("20d6"),i("e56e")),o=i("f36a"),s=i("333d"),l=i("1ee6"),c=function(){return{CROName:"",PageIndex:1,PageSize:20,Asc:!0,SortField:""}},u={name:"Cros",components:{BoxContent:o["default"],Pagination:s["default"],CroForm:l["default"]},data:function(){return{searchData:c(),list:[],total:0,loading:!1,rowData:{},editVisible:!1,title:""}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0,Object(r["X"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},handleAddCro:function(){this.rowData={},this.title="Add",this.editVisible=!0},handleEdit:function(e){this.rowData=e,this.title="Edit",this.editVisible=!0},handleDelete:function(e){var t=this;this.$confirm("Sure to delete?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){t.loading=!0,Object(r["z"])(e.Id).then((function(i){t.loading=!1,i.IsSuccess&&(t.list.splice(t.list.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success("Deleted successfully!"))})).catch((function(){t.loading=!1}))}))},handleReset:function(){this.searchData=c(),this.getList()},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleSortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()},close:function(){this.editVisible=!1}}},d=u,f=(i("32af"),i("2877")),h=Object(f["a"])(d,n,a,!1,null,"17cd83c2",null);t["default"]=h.exports},a601:function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-international",use:"icon-international-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-international"><path d="M83.287 103.01c-1.57-3.84-6.778-10.414-15.447-19.548-2.327-2.444-2.182-4.306-1.338-9.862v-.64c.553-3.81 1.513-6.05 14.313-8.087 6.516-1.018 8.203 1.57 10.589 5.178l.785 1.193a12.625 12.625 0 0 0 6.43 5.207c1.134.524 2.53 1.164 4.421 2.24 4.596 2.53 4.596 5.41 4.596 11.753v.727a26.91 26.91 0 0 1-5.178 17.454 59.055 59.055 0 0 1-19.025 11.026c3.49-6.546.814-14.313 0-16.553l-.146-.087zM64 5.12a58.502 58.502 0 0 1 25.484 5.818 54.313 54.313 0 0 0-12.859 10.327c-.93 1.28-1.716 2.473-2.472 3.579-2.444 3.694-3.637 5.352-5.818 5.614a25.105 25.105 0 0 1-4.219 0c-4.276-.29-10.094-.64-11.956 4.422-1.193 3.23-1.396 11.956 2.444 16.495.66 1.077.778 2.4.32 3.578a7.01 7.01 0 0 1-2.066 3.229 18.938 18.938 0 0 1-2.909-2.91 18.91 18.91 0 0 0-8.32-6.603c-1.25-.349-2.647-.64-3.985-.93-3.782-.786-8.03-1.688-9.019-3.812a14.895 14.895 0 0 1-.727-5.818 21.935 21.935 0 0 0-1.396-9.25 8.873 8.873 0 0 0-5.557-4.946A58.705 58.705 0 0 1 64 5.12zM0 64c0 35.346 28.654 64 64 64 35.346 0 64-28.654 64-64 0-35.346-28.654-64-64-64C28.654 0 0 28.654 0 64z" /></symbol>'});o.a.add(s);t["default"]=s},a654:function(e,t,i){"use strict";i("479b")},a666:function(e,t,i){var n=i("3eba"),a=i("6d8b"),r=i("2306"),o=i("0c41"),s="__seriesMapHighDown",l="__seriesMapCallKey",c=n.extendChartView({type:"map",render:function(e,t,i,n){if(!n||"mapToggleSelect"!==n.type||n.from!==this.uid){var a=this.group;if(a.removeAll(),!e.getHostGeoModel()){if(n&&"geoRoam"===n.type&&"series"===n.componentType&&n.seriesId===e.id){r=this._mapDraw;r&&a.add(r.group)}else if(e.needsDrawMap){var r=this._mapDraw||new o(i,!0);a.add(r.group),r.draw(e,t,i,this,n),this._mapDraw=r}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&t.getComponent("legend")&&this._renderSymbols(e,t,i)}}},remove:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},dispose:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},_renderSymbols:function(e,t,i){var n=e.originalData,o=this.group;n.each(n.mapDimension("value"),(function(t,i){if(!isNaN(t)){var c=n.getItemLayout(i);if(c&&c.point){var f=c.point,h=c.offset,p=new r.Circle({style:{fill:e.getData().getVisual("color")},shape:{cx:f[0]+9*h,cy:f[1],r:3},silent:!0,z2:8+(h?0:r.Z2_EMPHASIS_LIFT+1)});if(!h){var m=e.mainSeries.getData(),g=n.getName(i),v=m.indexOfName(g),b=n.getItemModel(i),y=b.getModel("label"),w=b.getModel("emphasis.label"),_=m.getItemGraphicEl(v),I=a.retrieve2(e.getFormattedLabel(v,"normal"),g),x=a.retrieve2(e.getFormattedLabel(v,"emphasis"),I),S=_[s],T=Math.random();if(!S){S=_[s]={};var C=a.curry(u,!0),k=a.curry(u,!1);_.on("mouseover",C).on("mouseout",k).on("emphasis",C).on("normal",k)}_[l]=T,a.extend(S,{recordVersion:T,circle:p,labelModel:y,hoverLabelModel:w,emphasisText:x,normalText:I}),d(S,!1)}o.add(p)}}}))}});function u(e){var t=this[s];t&&t.recordVersion===this[l]&&d(t,e)}function d(e,t){var i=e.circle,n=e.labelModel,a=e.hoverLabelModel,o=e.emphasisText,s=e.normalText;t?(i.style.extendFrom(r.setTextStyle({},a,{text:a.get("show")?o:null},{isRectText:!0,useInsideStyle:!1},!0)),i.__mapOriginalZ2=i.z2,i.z2+=r.Z2_EMPHASIS_LIFT):(r.setTextStyle(i.style,n,{text:n.get("show")?s:null,textPosition:n.getShallow("position")||"bottom"},{isRectText:!0,useInsideStyle:!1}),i.dirty(!1),null!=i.__mapOriginalZ2&&(i.z2=i.__mapOriginalZ2,i.__mapOriginalZ2=null))}e.exports=c},a685:function(e,t,i){},a6a8:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"main-container"},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"hot-keys-container"},e._l(e.hotKeyList,(function(t,n){return i("div",{key:t.tag+"_"+n,staticClass:"wrapper"},[[i("div",{staticClass:"hot-keys-label"},[e._v(e._s(e.$fd("ShortcutKey",t.label)))]),e._v(" "),i("HotkeyInput",{staticClass:"hotkey",staticStyle:{width:"170px"},attrs:{hotkey:e.hotKeyList[n].keys,verify:e.handleHotkeyVerify,"hotkey-id":e.hotKeyList[n].id,placeholder:"请输入按键"},on:{"update:hotkey":function(t){return e.$set(e.hotKeyList[n],"keys",t)}}})]],2)})),0),e._v(" "),e.hotKeyList.length>0?i("div",{staticStyle:{"text-align":"right",width:"680px"}},[i("el-button",{attrs:{size:"small"},on:{click:e.handleReset}},[e._v(" "+e._s(e.$t("common:button:reset")))]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleSave}},[e._v(" "+e._s(e.$t("common:button:save")))])],1):e._e()])],2)},a=[],r=i("2d63"),o=(i("ac6a"),i("c5f6"),i("c24f")),s=i("6071"),l=i("e229"),c={name:"HotKeysListApp",components:{BaseContainer:s["default"],HotkeyInput:l["default"]},props:{readingTool:{type:Number,required:!0}},data:function(){return{hotKeyList:[],loading:!1}},watch:{hotKeyList:{handler:function(e){},immediate:!0}},mounted:function(){this.getHotkeys()},methods:{getHotkeys:function(){var e=this;this.loading=!0,this.hotKeyList=[],Object(o["c"])({imageToolType:this.readingTool}).then((function(t){t.Result.map((function(t){e.hotKeyList.push({id:t.Id,keys:{controlKey:{altKey:t.AltKey,ctrlKey:t.CtrlKey,shiftKey:t.ShiftKey,metaKey:t.MetaKey,key:t.Keyboardkey,code:t.Code},text:t.Text},label:t.ShortcutKeyEnum})})),e.loading=!1})).catch((function(){e.loading=!1}))},handleSave:function(){var e=this;this.loading=!0;var t={imageToolType:this.readingTool,shortcutKeyList:[]},i=[];this.hotKeyList.map((function(e){i.push({shortcutKeyEnum:e.label,keyboardkey:e.keys.controlKey.key,code:e.keys.controlKey.code,text:e.keys.text,altKey:e.keys.controlKey.altKey,ctrlKey:e.keys.controlKey.ctrlKey,shiftKey:e.keys.controlKey.shiftKey,metaKey:e.keys.controlKey.metaKey})})),t.shortcutKeyList=i,Object(o["h"])(t).then((function(t){console.log(t),e.loading=!1})).catch((function(){e.loading=!1}))},handleReset:function(){var e=this;this.$confirm("是否确认重置?",{type:"warning",distinguishCancelAndClose:!0}).then((function(){e.loading=!0,Object(o["g"])({imageToolType:e.readingTool}).then((function(t){e.$message.success("重置成功!"),e.getHotkeys()})).catch((function(){e.loading=!1}))})).catch((function(e){}))},handleHotkeyVerify:function(e){var t,i=Object(r["a"])(this.hotKeyList);try{for(i.s();!(t=i.n()).done;){var n=t.value;if(n.keys.text===e.text&&n.id!==e.id)return this.$notify({title:"提示",message:"此快捷键已被“".concat(this.$fd("ShortcutKey",n.label),"”绑定"),type:"warning"}),!1}}catch(a){i.e(a)}finally{i.f()}return!0}}},u=c,d=(i("8eb4"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},a6dc:function(e,t,i){"use strict";i.d(t,"a",(function(){return a})),i.d(t,"c",(function(){return r})),i.d(t,"b",(function(){return o}));var n=i("b775");function a(e){return Object(n["a"])({url:"/Menu/addOrUpdateMenu",method:"post",data:e})}function r(e){return Object(n["a"])({url:"/Menu/getMenuList",method:"post",data:e})}function o(e){return Object(n["a"])({url:"/Menu/deleteMenu/".concat(e),method:"delete"})}},a723:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",{staticClass:"stats-wrapper"},[i("div",{staticClass:"search"},[i("SearchForm",{attrs:{size:"mini",that:this,"search-data":e.searchData,"search-form":e.enrollStats_form,"search-handle":e.enrollStats_handle},on:{search:e.handleSearch,reset:e.handleReset,export:e.handleExportExcel}},[i("template",{slot:"hospitalSlot"},[i("el-select",{staticStyle:{width:"130px"},attrs:{placeholder:"Hospital",clearable:""},model:{value:e.searchData.HospitalId,callback:function(t){e.$set(e.searchData,"HospitalId",t)},expression:"searchData.HospitalId"}},e._l(e.hospitalList,(function(e,t){return i("el-option",{key:t,attrs:{label:e.HospitalName,value:e.Id}})})),1)],1),e._v(" "),i("template",{slot:"beginDateSlot"},[i("el-date-picker",{staticStyle:{width:"120px"},attrs:{placeholder:"Beginning Month",type:"month","value-format":"yyyy-MM",format:"yyyy-MM","picker-options":e.beginPickerOption,clearable:!1},model:{value:e.searchData.BeginDate,callback:function(t){e.$set(e.searchData,"BeginDate",t)},expression:"searchData.BeginDate"}})],1),e._v(" "),i("template",{slot:"endDateSlot"},[i("el-date-picker",{staticStyle:{width:"120px"},attrs:{size:"small",placeholder:"End Month",type:"month","value-format":"yyyy-MM",format:"yyyy-MM","picker-options":e.endpickerOption,clearable:!1},model:{value:e.searchData.EndDate,callback:function(t){e.$set(e.searchData,"EndDate",t)},expression:"searchData.EndDate"}})],1),e._v(" "),i("template",{slot:"exportSlot"},[i("el-button",{attrs:{type:"primary",disabled:0==e.arrID.length},on:{click:e.handleExportExcel}},[e._v("Export Excel")])],1)],2)],1),e._v(" "),i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:45},expression:"{bottomOffset:45}"},{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],ref:"enrollmentStats",attrs:{stripe:"",height:"100",data:e.list,"summary-method":e.getSummaries,"show-summary":""},on:{"sort-change":e.sortByColumn,"selection-change":e.handleSelectChange}},[i("el-table-column",{attrs:{type:"selection"}}),e._v(" "),i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Hospital",sortable:"custom",label:"Hospital","min-width":"120","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:"Name","show-overflow-tooltip":"","min-width":"100",prop:"FirstName",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.LastName)+" / "+e._s(t.row.FirstName))]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ChineseName",sortable:"custom",label:"Name CN","min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ReviewerCode",label:"ID","min-width":"70","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Pending",label:"Pending","min-width":"100","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Approved",label:"Approved","min-width":"100","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Reading",label:"Reading","min-width":"100","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Finished",label:"Finished","min-width":"110","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Total",label:"Total","min-width":"90","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"EntryRate",label:"Entry Rate","min-width":"110","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.EntryRate)+"%")]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1)},a=[],r=(i("c5f6"),i("ac6a"),i("db72")),o=i("48fb"),s=i("0340"),l=i("2f62"),c=i("4360"),u=i("fe09"),d=i("333d"),f=i("f36a"),h=i("d13d"),p=function(){return{HospitalId:"",Reviewer:"",BeginDate:new Date((new Date).setMonth((new Date).getMonth()-5)).format("yyyy-MM"),EndDate:(new Date).format("yyyy-MM"),PageIndex:1,PageSize:20}},m={components:{Pagination:d["default"],BoxContent:f["default"],SearchForm:h["default"]},data:function(){var e=this;return{list:[],searchData:p(),enrollStats_form:u["a"],enrollStats_handle:u["b"],total:0,listLoading:!1,arrID:[],beginPickerOption:{disabledDate:function(t){return e.searchData.EndDate?t.getTime()>new Date(e.searchData.EndDate).getTime():t.getTime()>Date.now()}},endpickerOption:{disabledDate:function(t){return e.searchData.BeginDate?t.getTime()>Date.now()||t.getTime()<=new Date(e.searchData.BeginDate).getTime():t.getTime()>Date.now()}}}},computed:Object(r["a"])({},Object(l["b"])(["hospitalList"])),created:function(){c["a"].dispatch("global/getHospital")},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.listLoading=!0,Object(o["a"])(this.searchData).then((function(t){e.listLoading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.listLoading=!1}))},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=p(),this.getList()},handleSelectChange:function(e){for(var t=[],i=0;i<e.length;i++)t.push(e[i].Id);this.arrID=t},getSummaries:function(e){var t=this;this.$nextTick((function(){t.$refs.enrollmentStats.doLayout()}));var i=e.columns,n=e.data,a=[];return i.forEach((function(e,t){if(2!==t){if("EntryRate"!==e.property){var i=n.map((function(t){return Number(t[e.property])}));i.every((function(e){return isNaN(e)}))||(a[t]=i.reduce((function(e,t){var i=Number(t);return isNaN(i)?e:e+t}),0))}}else a[t]="Total (Current Page)"})),a[11]=(100*(a[9]+a[8])/a[10]).toFixed(2)+"%",a},sortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()},handleExportExcel:function(){var e=this,t="".concat(this.searchData.BeginDate,"~").concat(this.searchData.EndDate),i=[{key:"Index",width:5},{key:"Hospital",width:25},{key:"LastName",width:15},{key:"FirstName",width:15},{key:"ChineseName",width:10},{key:"ReviewerCode",width:10},{key:"Pending",width:10},{key:"Approved",width:10},{key:"Reading",width:10},{key:"Finished",width:10},{key:"Total",width:10},{key:"Rate",width:20}],n="Beginning Month:".concat(this.searchData.BeginDate," End Month:").concat(this.searchData.EndDate),a=["","Hospital","Surname","Given Name","Name CN","Reviewer ID","Pending","Approved","Reading","Finished","Total","Entry rate(%)"],r=0,o=0,l=0,c=0,u=0,d=1,f=this.list.filter((function(t){return e.arrID.indexOf(t.Id)>-1}));f.forEach((function(e){e.Index=d++,e.Rate=e.EntryRate/100,r+=e.Pending,o+=e.Approved,l+=e.Reading,c+=e.Finished,u+=e.Total}));var h=["","Total","","","","",r,o,l,c,u,(l+c)/u],p=[{colIndex:12,format:"0.00%"}];Object(s["a"])(t,i,"Enrollments Statistics",n,a,f,h,p)}}},g=m,v=i("2877"),b=Object(v["a"])(g,n,a,!1,null,null,null);t["default"]=b.exports},a73c:function(e,t,i){var n=i("6d8b"),a=n.retrieve2,r=n.retrieve3,o=n.each,s=n.normalizeCssArray,l=n.isString,c=n.isObject,u=i("e86a"),d=i("5693"),f=i("5e76"),h=i("7d6d"),p=i("82eb"),m=p.ContextCachedBy,g=p.WILL_BE_RESTORED,v=u.DEFAULT_FONT,b={left:1,right:1,center:1},y={top:1,bottom:1,middle:1},w=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]],_={},I={};function x(e){return S(e),o(e.rich,S),e}function S(e){if(e){e.font=u.makeFont(e);var t=e.textAlign;"middle"===t&&(t="center"),e.textAlign=null==t||b[t]?t:"left";var i=e.textVerticalAlign||e.textBaseline;"center"===i&&(i="middle"),e.textVerticalAlign=null==i||y[i]?i:"top";var n=e.textPadding;n&&(e.textPadding=s(e.textPadding))}}function T(e,t,i,n,a,r){n.rich?k(e,t,i,n,a,r):C(e,t,i,n,a,r)}function C(e,t,i,n,a,r){"use strict";var o,s=O(n),l=!1,c=t.__attrCachedBy===m.PLAIN_TEXT;r!==g?(r&&(o=r.style,l=!s&&c&&o),t.__attrCachedBy=s?m.NONE:m.PLAIN_TEXT):c&&(t.__attrCachedBy=m.NONE);var d=n.font||v;l&&d===(o.font||v)||(t.font=d);var f=e.__computedFont;e.__styleFont!==d&&(e.__styleFont=d,f=e.__computedFont=t.font);var p=n.textPadding,b=n.textLineHeight,y=e.__textCotentBlock;y&&!e.__dirtyText||(y=e.__textCotentBlock=u.parsePlainText(i,f,p,b,n.truncate));var _=y.outerHeight,x=y.lines,S=y.lineHeight,T=A(I,e,n,a),C=T.baseX,k=T.baseY,R=T.textAlign||"left",L=T.textVerticalAlign;D(t,n,a,C,k);var N=u.adjustTextY(k,_,L),P=C,F=N;if(s||p){var V=u.getWidth(i,f),q=V;p&&(q+=p[1]+p[3]);var z=u.adjustTextX(C,q,R);s&&$(e,t,n,z,N,q,_),p&&(P=j(C,R,p),F+=p[0])}t.textAlign=R,t.textBaseline="middle",t.globalAlpha=n.opacity||1;for(var B=0;B<w.length;B++){var U=w[B],Q=U[0],H=U[1],G=n[Q];l&&G===o[Q]||(t[H]=h(t,H,G||U[2]))}F+=S/2;var W=n.textStrokeWidth,Y=l?o.textStrokeWidth:null,K=!l||W!==Y,Z=!l||K||n.textStroke!==o.textStroke,X=E(n.textStroke,W),J=M(n.textFill);if(X&&(K&&(t.lineWidth=W),Z&&(t.strokeStyle=X)),J&&(l&&n.textFill===o.textFill||(t.fillStyle=J)),1===x.length)X&&t.strokeText(x[0],P,F),J&&t.fillText(x[0],P,F);else for(B=0;B<x.length;B++)X&&t.strokeText(x[B],P,F),J&&t.fillText(x[B],P,F),F+=S}function k(e,t,i,n,a,r){r!==g&&(t.__attrCachedBy=m.NONE);var o=e.__textCotentBlock;o&&!e.__dirtyText||(o=e.__textCotentBlock=u.parseRichText(i,n)),R(e,t,o,n,a)}function R(e,t,i,n,a){var r=i.width,o=i.outerWidth,s=i.outerHeight,l=n.textPadding,c=A(I,e,n,a),d=c.baseX,f=c.baseY,h=c.textAlign,p=c.textVerticalAlign;D(t,n,a,d,f);var m=u.adjustTextX(d,o,h),g=u.adjustTextY(f,s,p),v=m,b=g;l&&(v+=l[3],b+=l[0]);var y=v+r;O(n)&&$(e,t,n,m,g,o,s);for(var w=0;w<i.lines.length;w++){var _,x=i.lines[w],S=x.tokens,T=S.length,C=x.lineHeight,k=x.width,R=0,N=v,P=y,E=T-1;while(R<T&&(_=S[R],!_.textAlign||"left"===_.textAlign))L(e,t,_,n,C,b,N,"left"),k-=_.width,N+=_.width,R++;while(E>=0&&(_=S[E],"right"===_.textAlign))L(e,t,_,n,C,b,P,"right"),k-=_.width,P-=_.width,E--;N+=(r-(N-v)-(y-P)-k)/2;while(R<=E)_=S[R],L(e,t,_,n,C,b,N+_.width/2,"center"),N+=_.width,R++;b+=C}}function D(e,t,i,n,a){if(i&&t.textRotation){var r=t.textOrigin;"center"===r?(n=i.width/2+i.x,a=i.height/2+i.y):r&&(n=r[0]+i.x,a=r[1]+i.y),e.translate(n,a),e.rotate(-t.textRotation),e.translate(-n,-a)}}function L(e,t,i,n,o,s,l,c){var u=n.rich[i.styleName]||{};u.text=i.text;var d=i.textVerticalAlign,f=s+o/2;"top"===d?f=s+i.height/2:"bottom"===d&&(f=s+o-i.height/2),!i.isLineHolder&&O(u)&&$(e,t,u,"right"===c?l-i.width:"center"===c?l-i.width/2:l,f-i.height/2,i.width,i.height);var h=i.textPadding;h&&(l=j(l,c,h),f-=i.height/2-h[2]-i.textHeight/2),P(t,"shadowBlur",r(u.textShadowBlur,n.textShadowBlur,0)),P(t,"shadowColor",u.textShadowColor||n.textShadowColor||"transparent"),P(t,"shadowOffsetX",r(u.textShadowOffsetX,n.textShadowOffsetX,0)),P(t,"shadowOffsetY",r(u.textShadowOffsetY,n.textShadowOffsetY,0)),P(t,"textAlign",c),P(t,"textBaseline","middle"),P(t,"font",i.font||v);var p=E(u.textStroke||n.textStroke,g),m=M(u.textFill||n.textFill),g=a(u.textStrokeWidth,n.textStrokeWidth);p&&(P(t,"lineWidth",g),P(t,"strokeStyle",p),t.strokeText(i.text,l,f)),m&&(P(t,"fillStyle",m),t.fillText(i.text,l,f))}function O(e){return!!(e.textBackgroundColor||e.textBorderWidth&&e.textBorderColor)}function $(e,t,i,n,a,r,o){var s=i.textBackgroundColor,u=i.textBorderWidth,h=i.textBorderColor,p=l(s);if(P(t,"shadowBlur",i.textBoxShadowBlur||0),P(t,"shadowColor",i.textBoxShadowColor||"transparent"),P(t,"shadowOffsetX",i.textBoxShadowOffsetX||0),P(t,"shadowOffsetY",i.textBoxShadowOffsetY||0),p||u&&h){t.beginPath();var m=i.textBorderRadius;m?d.buildPath(t,{x:n,y:a,width:r,height:o,r:m}):t.rect(n,a,r,o),t.closePath()}if(p)if(P(t,"fillStyle",s),null!=i.fillOpacity){var g=t.globalAlpha;t.globalAlpha=i.fillOpacity*i.opacity,t.fill(),t.globalAlpha=g}else t.fill();else if(c(s)){var v=s.image;v=f.createOrUpdateImage(v,null,e,N,s),v&&f.isImageReady(v)&&t.drawImage(v,n,a,r,o)}if(u&&h)if(P(t,"lineWidth",u),P(t,"strokeStyle",h),null!=i.strokeOpacity){g=t.globalAlpha;t.globalAlpha=i.strokeOpacity*i.opacity,t.stroke(),t.globalAlpha=g}else t.stroke()}function N(e,t){t.image=e}function A(e,t,i,n){var a=i.x||0,r=i.y||0,o=i.textAlign,s=i.textVerticalAlign;if(n){var l=i.textPosition;if(l instanceof Array)a=n.x+F(l[0],n.width),r=n.y+F(l[1],n.height);else{var c=t&&t.calculateTextPosition?t.calculateTextPosition(_,i,n):u.calculateTextPosition(_,i,n);a=c.x,r=c.y,o=o||c.textAlign,s=s||c.textVerticalAlign}var d=i.textOffset;d&&(a+=d[0],r+=d[1])}return e=e||{},e.baseX=a,e.baseY=r,e.textAlign=o,e.textVerticalAlign=s,e}function P(e,t,i){return e[t]=h(e,t,i),e[t]}function E(e,t){return null==e||t<=0||"transparent"===e||"none"===e?null:e.image||e.colorStops?"#000":e}function M(e){return null==e||"none"===e?null:e.image||e.colorStops?"#000":e}function F(e,t){return"string"===typeof e?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function j(e,t,i){return"right"===t?e-i[1]:"center"===t?e+i[3]/2-i[1]/2:e+i[3]}function V(e,t){return null!=e&&(e||t.textBackgroundColor||t.textBorderWidth&&t.textBorderColor||t.textPadding)}t.normalizeTextStyle=x,t.renderText=T,t.getBoxPosition=A,t.getStroke=E,t.getFill=M,t.parsePercent=F,t.needDrawText=V},a73c1:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"tableQsForm",attrs:{model:e.form,size:"small",rules:e.rules,disabled:"look"===e.type,"label-width":"120px"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:"问题类型",prop:"Type"}},[i("el-select",{attrs:{clearable:""},on:{change:function(t){e.qsTypeChange(t,e.form)}},model:{value:e.form.Type,callback:function(t){e.$set(e.form,"Type",t)},expression:"form.Type"}},e._l(e.$d.Criterion_Question_Type,(function(t){return"calculation"!==t.value&&"increment"!==t.value?i("el-option",{key:t.value,attrs:{value:t.value,label:t.label}}):e._e()})),1)],1),e._v(" "),"group"===e.form.Type?i("el-form-item",{attrs:{label:"分组名称",prop:"GroupName"}},[i("el-input",{model:{value:e.form.GroupName,callback:function(t){e.$set(e.form,"GroupName",t)},expression:"form.GroupName"}})],1):e._e(),e._v(" "),"group"!==e.form.Type?i("el-form-item",{attrs:{label:"问题名称",prop:"QuestionName"}},[i("el-input",{model:{value:e.form.QuestionName,callback:function(t){e.$set(e.form,"QuestionName",t)},expression:"form.QuestionName"}})],1):e._e(),e._v(" "),"group"!==e.form.Type?i("el-form-item",{attrs:{label:"问题名称(En)",prop:"QuestionEnName"}},[i("el-input",{model:{value:e.form.QuestionEnName,callback:function(t){e.$set(e.form,"QuestionEnName",t)},expression:"form.QuestionEnName"}})],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:"是否复制前值"}},[i("el-switch",{model:{value:e.form.IsCopy,callback:function(t){e.$set(e.form,"IsCopy",t)},expression:"form.IsCopy"}})],1),e._v(" "),"number"===e.form.Type?i("el-form-item",{attrs:{label:"数值类型",prop:"ValueType",rules:[{required:!0,message:"请选择"}]}},[i("el-radio-group",{model:{value:e.form.ValueType,callback:function(t){e.$set(e.form,"ValueType",t)},expression:"form.ValueType"}},e._l(e.$d.ValueType,(function(t){return 3!==t.value?i("el-radio",{key:t.id,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")]):e._e()})),1)],1):e._e(),e._v(" "),"number"===e.form.Type&&1===e.form.ValueType?i("el-form-item",{attrs:{label:"修约小数位",prop:"ValueType",rules:[{required:!0,message:"请选择"}]}},[i("el-input",{attrs:{value:e.$fd("DigitPlaces",e.digitPlaces).toString(),disabled:!0}})],1):e._e(),e._v(" "),"number"===e.form.Type?i("el-form-item",{attrs:{label:"单位",prop:"Unit",rules:[{required:!0,message:"请选择"}]}},[i("el-radio-group",{model:{value:e.form.Unit,callback:function(t){e.$set(e.form,"Unit",t)},expression:"form.Unit"}},e._l(e.$d.ValueUnit,(function(t){return i("el-radio",{attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1):e._e(),e._v(" "),"number"===e.form.Type&&4===e.form.Unit?i("el-form-item",{attrs:{label:"自定义单位",prop:"CustomUnit",rules:[{required:!0,message:"请选择"}]}},[i("el-input",{model:{value:e.form.CustomUnit,callback:function(t){e.$set(e.form,"CustomUnit",t)},expression:"form.CustomUnit"}})],1):e._e(),e._v(" "),"number"===e.form.Type&&1===e.form.DataSource?i("div",{staticStyle:{background:"#f8f8f8",padding:"10px 0px","border-radius":"10px",position:"relative","margin-bottom":"10px"}},[i("el-form-item",{attrs:{label:"运算类型",prop:"CustomCalculateMark"}},[i("el-radio-group",{staticStyle:{"line-height":"40px"},on:{change:function(t){return e.CustomCalculateMarkChange(t)}},model:{value:e.form.CustomCalculateMark,callback:function(t){e.$set(e.form,"CustomCalculateMark",t)},expression:"form.CustomCalculateMark"}},e._l(e.$d.CustomCalculateMark,(function(t){return t.value<=4?i("el-radio",{key:"CustomCalculateMark"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")]):e._e()})),1)],1),e._v(" "),i("el-table",{staticStyle:{margin:"10px",width:"calc(100% - 20px)"},attrs:{data:e.form.CalculateQuestions,size:"small"}},[i("el-table-column",{attrs:{label:"序号","min-width":"70"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.$index+1)+"\n ")]}}],null,!1,896436857)}),e._v(" "),i("el-table-column",{attrs:{label:"运算符号","show-overflow-tooltip":"","min-width":"70"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(0===t.$index&&[1,2,3,4].includes(e.form.CustomCalculateMark)?null:e.$fd("CustomCalculateMark",e.form.CustomCalculateMark))+"\n ")]}}],null,!1,2919079095)}),e._v(" "),i("el-table-column",{attrs:{label:"问题名称",prop:"TableQuestionId","show-overflow-tooltip":"","min-width":"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsTable?e._e():i("el-select",{attrs:{clearable:""},model:{value:t.row.TableQuestionId,callback:function(i){e.$set(t.row,"TableQuestionId",i)},expression:"scope.row.TableQuestionId"}},e._l(e.Questions,(function(e){return i("el-option",{key:e.QuestionId,attrs:{label:e.QuestionName,value:e.QuestionId}})})),1),e._v(" "),t.row.IsTable?i("el-select",{attrs:{clearable:""},model:{value:t.row.TableQuestionId,callback:function(i){e.$set(t.row,"TableQuestionId",i)},expression:"scope.row.TableQuestionId"}},e._l(t.row.QuestionId?e.tableQuestions.find((function(e){return e.QuestionId===t.row.QuestionId})).TableQuestions:[],(function(e){return i("el-option",{key:e.QuestionId,attrs:{label:e.QuestionName,value:e.QuestionId}})})),1):e._e()]}}],null,!1,3464464953)}),e._v(" "),e.form.CustomCalculateMark<=4?i("el-table-column",{attrs:{label:"操作",prop:"TableQuestionId","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{icon:"el-icon-plus",size:"mini",circle:"",title:"添加"},on:{click:function(i){return e.addCustomCalculateMark(t.$index)}}}),e._v(" "),i("el-button",{attrs:{icon:"el-icon-minus",size:"mini",circle:"",disabled:e.form.CalculateQuestions.length<=2,title:"删除"},on:{click:function(i){return e.deleteCustomCalculateMark(t.$index)}}})]}}],null,!1,27234887)}):e._e()],1),e._v(" "),i("div",{staticStyle:{"font-size":"12px",color:"#666",padding:"0 15px 0","text-align":"right"}},[i("i",{staticClass:"el-icon-info"}),e._v(e._s([1,2,3,4].includes(e.form.CustomCalculateMark)?"请选择同级问题!":"请选择表格问题下的子问题!")+"\n ")])],1):e._e(),e._v(" "),"select"!==e.form.Type&&"radio"!==e.form.Type&&"input"!==e.form.Type||!e.isFromSystem?e._e():i("el-form-item",{attrs:{label:"选项类型",prop:"TableQuestionType",rules:[{required:"input"!==e.form.Type,message:"请选择"}]}},[i("el-radio-group",{on:{change:function(t){e.tableQuestionTypeChange(t,e.form)}},model:{value:e.form.TableQuestionType,callback:function(t){e.$set(e.form,"TableQuestionType",t)},expression:"form.TableQuestionType"}},e._l(e.$d.TableQuestionType,(function(t){return i("el-radio",{key:t.id,attrs:{label:t.value,disabled:"radio"===e.form.Type&&(1===t.value||2===t.value)}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1),e._v(" "),e.isFromSystem&&3!==e.form.TableQuestionType||"select"!==e.form.Type&&"radio"!==e.form.Type&&"calculation"!==e.form.Type?e._e():i("el-form-item",{attrs:{label:"选项",prop:"TypeValue"}},[i("el-input",{attrs:{placeholder:"选项请用‘|’分割多个选项"},model:{value:e.form.TypeValue,callback:function(t){e.$set(e.form,"TypeValue",t)},expression:"form.TypeValue"}})],1),e._v(" "),2===e.form.TableQuestionType&&e.isFromSystem?i("el-form-item",{attrs:{label:"关联问题",prop:"DependParentId"}},[i("el-select",{model:{value:e.form.DependParentId,callback:function(t){e.$set(e.form,"DependParentId",t)},expression:"form.DependParentId"}},e._l(e.parentOptions,(function(e){return i("el-option",{key:"DependParentId"+e.QuestionId,attrs:{label:e.QuestionName,value:e.QuestionId}})})),1)],1):e._e(),e._v(" "),1===e.form.TableQuestionType||e.form.DependParentId&&e.isFromSystem?i("el-form-item",{attrs:{label:"关联字段",prop:"DataTableColumn"}},[i("el-select",{model:{value:e.form.DataTableColumn,callback:function(t){e.$set(e.form,"DataTableColumn",t)},expression:"form.DataTableColumn"}},e._l(e.$d.OrganColumn,(function(e){return i("el-option",{key:e.id,attrs:{label:e.label,value:e.value}})})),1)],1):e._e(),e._v(" "),3===e.form.TableQuestionType||2===e.form.TableQuestionType&&e.isFromSystem?i("el-form-item",{attrs:{label:"关联字典",prop:"DictionaryCode",rules:[{required:3===e.form.TableQuestionType,message:"请选择",trigger:"blur"}]}},[i("el-select",{model:{value:e.form.DictionaryCode,callback:function(t){e.$set(e.form,"DictionaryCode",t)},expression:"form.DictionaryCode"}},e._l(e.dicList,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.Code,value:e.Code}})})),1)],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:"是否显示",prop:"ShowQuestion"}},[i("el-radio-group",{on:{change:function(t){e.isShowQuestionChange(t,e.form)}},model:{value:e.form.ShowQuestion,callback:function(t){e.$set(e.form,"ShowQuestion",t)},expression:"form.ShowQuestion"}},e._l(e.$d.ShowQuestion,(function(t){return i("el-radio",{key:"ShowQuestion"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1),e._v(" "),"group"!==e.form.Type&&"table"!==e.form.Type?i("el-form-item",{attrs:{label:"是否必填",prop:"IsRequired"}},[i("el-radio-group",{attrs:{disabled:!0===e.form.IsJudgeQuestion||2===e.form.ShowQuestion},on:{change:function(t){e.isRequiredChange(t,e.form)}},model:{value:e.form.IsRequired,callback:function(t){e.$set(e.form,"IsRequired",t)},expression:"form.IsRequired"}},e._l(e.$d.QuestionRequired,(function(t){return i("el-radio",{key:"QuestionRequired"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1):e._e(),e._v(" "),1===e.form.ShowQuestion?i("el-form-item",{attrs:{label:"显示依赖父问题",prop:"ParentId"}},[i("el-select",{attrs:{clearable:""},on:{change:function(t){e.parentQuestionChange(t,e.form)}},model:{value:e.form.ParentId,callback:function(t){e.$set(e.form,"ParentId",t)},expression:"form.ParentId"}},e._l(e.parentOptions,(function(e){return i("el-option",{key:"ParentId"+e.QuestionId,attrs:{label:e.QuestionName,value:e.QuestionId}})})),1)],1):e._e(),e._v(" "),e.form.ParentId&&1===e.form.ShowQuestion?i("el-form-item",{attrs:{label:"显示触发值",prop:"ParentTriggerValueList"}},[i("el-select",{attrs:{clearable:"",multiple:""},model:{value:e.form.ParentTriggerValueList,callback:function(t){e.$set(e.form,"ParentTriggerValueList",t)},expression:"form.ParentTriggerValueList"}},e._l(e.parentTriggerValOptions,(function(e){return i("el-option",{key:e,attrs:{label:e,value:e}})})),1)],1):e._e(),e._v(" "),"group"!==e.form.Type&&1===e.form.IsRequired?i("el-form-item",{attrs:{label:"必填依赖父问题",prop:"RelevanceId"}},[i("el-select",{attrs:{clearable:""},on:{change:function(t){e.relevanceQuestionChange(t,e.form)}},model:{value:e.form.RelevanceId,callback:function(t){e.$set(e.form,"RelevanceId",t)},expression:"form.RelevanceId"}},e._l(e.parentOptions,(function(e){return i("el-option",{key:"RelevanceId"+e.QuestionId,attrs:{label:e.QuestionName,value:e.QuestionId}})})),1)],1):e._e(),e._v(" "),e.form.RelevanceId&&1===e.form.IsRequired?i("el-form-item",{attrs:{label:"必填触发值",prop:"RelevanceValueList"}},[i("el-select",{attrs:{clearable:"",multiple:""},model:{value:e.form.RelevanceValueList,callback:function(t){e.$set(e.form,"RelevanceValueList",t)},expression:"form.RelevanceValueList"}},e._l(e.reParentTriggerValOptions,(function(e){return i("el-option",{key:e,attrs:{label:e,value:e}})})),1)],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:"序号",prop:"ShowOrder"}},[i("el-input-number",{attrs:{"controls-position":"right",min:0},model:{value:e.form.ShowOrder,callback:function(t){e.$set(e.form,"ShowOrder",t)},expression:"form.ShowOrder"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"重复出现最大次数"}},[i("el-input-number",{attrs:{"controls-position":"right",min:0,max:10},model:{value:e.form.MaxRowCount,callback:function(t){e.$set(e.form,"MaxRowCount",t)},expression:"form.MaxRowCount"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"限制编辑"}},[i("el-radio-group",{model:{value:e.form.LimitEdit,callback:function(t){e.$set(e.form,"LimitEdit",t)},expression:"form.LimitEdit"}},e._l(e.$d.LimitEdit,(function(t){return i("el-radio",{attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1)],1),e._v(" "),"look"!==e.type?i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.close}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.save}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1):e._e()])},a=[],r=i("75fc"),o=(i("20d6"),i("456d"),i("96cf"),i("3b8d")),s=(i("ac6a"),i("5df3"),i("4f7f"),i("28a5"),i("c5f6"),i("3e42")),l=i("e56e"),c={name:"AddOrUpdateTableQs",props:{isFromSystem:{type:Boolean,required:!0},digitPlaces:{type:Number,default:function(){return 0}},list:{type:Array,default:function(){return[]}},data:{type:Object,default:function(){return{}}},readingQuestionId:{type:String,required:!0},criterionId:{type:String,required:!0},type:{type:String,required:!0}},data:function(){var e=this,t=function(t,i,n){if(""===i)n(new Error(e.$t("common:ruleMessage:specify")));else{var a=i.split("|");new Set(a).size!==a.length?n(new Error("选项不允许存在相同值")):n()}};return{form:{Id:"",ReadingQuestionId:"",QuestionName:"",QuestionEnName:"",Type:"select",TypeValue:"",ParentId:"",ParentTriggerValueList:[],ShowOrder:0,ShowQuestion:0,IsRequired:0,Remark:"",RelevanceId:"",RelevanceValueList:[],DataTableName:"",DataTableColumn:"",DictionaryCode:"",TableQuestionType:null,MaxRowCount:null,DependParentId:"",QuestionMark:null,CalculateQuestions:[],CustomCalculateMark:"",DataSource:0,GlobalReadingShowType:3,CustomUnit:null,ValueType:null,Unit:null,LimitEdit:0,DefaultValue:null,IsCopy:!1},rules:{Type:[{required:!0,message:"请选择",trigger:"blur"}],QuestionName:[{required:!0,message:"请注明",trigger:"blur"},{max:50,message:"最大长度为 50"}],TypeValue:[{required:!0,message:"请注明",trigger:"blur"},{validator:t,trigger:"blur"},{max:200,message:"最大长度为 200"}],ShowQuestion:[{required:!0,message:"请选择",trigger:"blur"}],IsRequired:[{required:!0,message:"请选择",trigger:"blur"}],ParentId:[{required:!0,message:"请选择",trigger:"blur"}],ParentTriggerValueList:[{required:!0,message:"请选择",trigger:"blur"}],RelevanceId:[{required:!0,message:"请选择",trigger:"blur"}],RelevanceValueList:[{required:!0,message:"请选择",trigger:"blur"}],DataTableName:[{required:!0,message:"请选择",trigger:"blur"}],DataTableColumn:[{required:!0,message:"请选择",trigger:"blur"}],DependParentId:[{required:!0,message:"请选择",trigger:"blur"}]},loading:!1,parentOptions:[],parentTriggerValOptions:[],reParentTriggerValOptions:[],tblOptions:[],colOptions:[],dicList:[],Questions:[],tableQuestions:[],LimitEdit:0}},mounted:function(){this.initForm(),this.getCalculateTableQuestions("number"),this.getCalculateTableQuestions("table")},methods:{deleteCustomCalculateMark:function(e){this.form.CalculateQuestions.splice(e,1)},addCustomCalculateMark:function(e){this.form.CalculateQuestions.splice(e+1,0,{IsTable:!1,QuestionId:this.data.ReadingQuestionId,TableQuestionId:null})},CustomCalculateMarkChange:function(){this.form.CustomCalculateMark<=4?this.form.CalculateQuestions=[{IsTable:!1,QuestionId:this.data.ReadingQuestionId,TableQuestionId:null},{IsTable:!1,QuestionId:this.data.ReadingQuestionId,TableQuestionId:null}]:this.form.CalculateQuestions=[{IsTable:!0,QuestionId:this.data.ReadingQuestionId,TableQuestionId:null}]},getCalculateTableQuestions:function(e){var t=this;Object(s["Rb"])({QuestionId:this.readingQuestionId,type:e}).then((function(i){"table"===e?t.tableQuestions=i.Result:t.Questions=i.Result}))},initForm:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,i,n,a,o=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getParentQuestions();case 2:if(Object.keys(this.data).length>0){for(t in this.form)"CalculateQuestions"===t?(this.form[t]=JSON.parse(this.data[t]),console.log("CalculateQuestions",this.form[t])):this.data.hasOwnProperty(t)&&(this.form[t]=this.data[t]);this.form.ParentId&&(i=this.parentOptions.findIndex((function(e){return e.QuestionId===o.form.ParentId})),-1!==i&&(this.parentTriggerValOptions=this.parentOptions[i].TypeValue.split("|"))),this.form.RelevanceId&&(n=this.parentOptions.findIndex((function(e){return e.QuestionId===o.form.RelevanceId})),-1!==n&&(this.reParentTriggerValOptions=this.parentOptions[n].TypeValue.split("|")))}this.data.ShowOrder||this.list.length>0&&(a=this.list.map((function(e){return e.ShowOrder})),this.form.ShowOrder=Math.max.apply(Math,Object(r["a"])(a))+1);case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getBasicConfigSelect:function(){var e=this;Object(l["U"])("Reading_eCRF_Criterion").then((function(t){e.dicList=t.Result}))},save:function(){var e=this;this.$refs.tableQsForm.validate((function(t){if(t){e.loading=!0;var i=Object.assign({},e.form);i.ReadingQuestionId=e.readingQuestionId,i.TrialCriterionId=e.criterionId,i.CalculateQuestions=JSON.stringify(e.form.CalculateQuestions),Object(s["x"])(i).then((function(t){e.$emit("getList"),e.loading=!1,e.$emit("close"),e.$emit("reloadArbitrationRules"),e.$message.success(e.$t("common:message:savedSuccessfully"))})).catch((function(){e.loading=!1}))}}))},getParentQuestions:function(){var e=this;return new Promise((function(t,i){e.loading=!0;var n={readingQuestionId:e.readingQuestionId,id:e.data.Id};Object(s["ad"])(n).then((function(i){e.parentOptions=i.Result,e.loading=!1,t()})).catch((function(){e.loading=!1,i()}))}))},isShowQuestionChange:function(e,t){"table"!==this.form.Type&&(2===e?(t.IsRequired=2,t.ParentId="",t.ParentTriggerValueList=[],this.isParentExistGroup=!1):1===e?(t.ParentId="",t.ParentTriggerValueList=[],t.GroupName="",this.isParentExistGroup=!0):0===e&&(t.ParentId="",t.ParentTriggerValueList=[],this.isParentExistGroup=!1))},isRequiredChange:function(e,t){1!==e&&(t.RelevanceId="",t.RelevanceValueList=[])},parentQuestionChange:function(e,t){if(e){var i=this.parentOptions.findIndex((function(t){return t.QuestionId===e}));-1!==i&&(this.parentTriggerValOptions=this.parentOptions[i].TypeValue.split("|"))}t.ParentTriggerValueList=[]},relevanceQuestionChange:function(e,t){if(e){var i=this.parentOptions.findIndex((function(t){return t.QuestionId===e}));-1!==i&&(this.reParentTriggerValOptions=this.parentOptions[i].TypeValue.split("|"))}t.RelevanceValueList=[]},tableQuestionTypeChange:function(e,t){this.form.DictionaryCode="",this.form.DataTableColumn="",this.form.DataTableName="",this.form.DependParentId="",this.form.TypeValue=""},dataTableNameChange:function(e,t){if(e){var i=this.tblOptions.findIndex((function(t){return t.Id===e}));-1!==i&&(this.colOptions=this.tblOptions[i].Columns)}t.DataTableColumn=""},qsTypeChange:function(e,t){t.TypeValue="",t.TableQuestionType=null,t.DependParentId="",t.DataTableColumn="",t.DataTableName="",t.DictionaryCode=""},close:function(){this.$emit("close")}}},u=c,d=i("2877"),f=Object(d["a"])(u,n,a,!1,null,"8a55943a",null);t["default"]=f.exports},a753:function(e,t,i){var n=i("1f0e"),a=i("2306"),r=i("e887"),o=i("3842"),s=o.parsePercent,l=o.round,c=o.linearMap;function u(e,t){var i=e.get("center"),n=t.getWidth(),a=t.getHeight(),r=Math.min(n,a),o=s(i[0],t.getWidth()),l=s(i[1],t.getHeight()),c=s(e.get("radius"),r/2);return{cx:o,cy:l,r:c}}function d(e,t){return t&&("string"===typeof t?e=t.replace("{value}",null!=e?e:""):"function"===typeof t&&(e=t(e))),e}var f=2*Math.PI,h=r.extend({type:"gauge",render:function(e,t,i){this.group.removeAll();var n=e.get("axisLine.lineStyle.color"),a=u(e,i);this._renderMain(e,t,i,n,a)},dispose:function(){},_renderMain:function(e,t,i,n,r){for(var o=this.group,s=e.getModel("axisLine"),l=s.getModel("lineStyle"),c=e.get("clockwise"),u=-e.get("startAngle")/180*Math.PI,d=-e.get("endAngle")/180*Math.PI,h=(d-u)%f,p=u,m=l.get("width"),g=s.get("show"),v=0;g&&v<n.length;v++){var b=Math.min(Math.max(n[v][0],0),1),y=(d=u+h*b,new a.Sector({shape:{startAngle:p,endAngle:d,cx:r.cx,cy:r.cy,clockwise:c,r0:r.r-m,r:r.r},silent:!0}));y.setStyle({fill:n[v][1]}),y.setStyle(l.getLineStyle(["color","borderWidth","borderColor"])),o.add(y),p=d}var w=function(e){if(e<=0)return n[0][1];for(var t=0;t<n.length;t++)if(n[t][0]>=e&&(0===t?0:n[t-1][0])<e)return n[t][1];return n[t-1][1]};if(!c){var _=u;u=d,d=_}this._renderTicks(e,t,i,w,r,u,d,c),this._renderPointer(e,t,i,w,r,u,d,c),this._renderTitle(e,t,i,w,r),this._renderDetail(e,t,i,w,r)},_renderTicks:function(e,t,i,n,r,o,c,u){for(var f=this.group,h=r.cx,p=r.cy,m=r.r,g=+e.get("min"),v=+e.get("max"),b=e.getModel("splitLine"),y=e.getModel("axisTick"),w=e.getModel("axisLabel"),_=e.get("splitNumber"),I=y.get("splitNumber"),x=s(b.get("length"),m),S=s(y.get("length"),m),T=o,C=(c-o)/_,k=C/I,R=b.getModel("lineStyle").getLineStyle(),D=y.getModel("lineStyle").getLineStyle(),L=0;L<=_;L++){var O=Math.cos(T),$=Math.sin(T);if(b.get("show")){var N=new a.Line({shape:{x1:O*m+h,y1:$*m+p,x2:O*(m-x)+h,y2:$*(m-x)+p},style:R,silent:!0});"auto"===R.stroke&&N.setStyle({stroke:n(L/_)}),f.add(N)}if(w.get("show")){var A=d(l(L/_*(v-g)+g),w.get("formatter")),P=w.get("distance"),E=n(L/_);f.add(new a.Text({style:a.setTextStyle({},w,{text:A,x:O*(m-x-P)+h,y:$*(m-x-P)+p,textVerticalAlign:$<-.4?"top":$>.4?"bottom":"middle",textAlign:O<-.4?"left":O>.4?"right":"center"},{autoColor:E}),silent:!0}))}if(y.get("show")&&L!==_){for(var M=0;M<=I;M++){O=Math.cos(T),$=Math.sin(T);var F=new a.Line({shape:{x1:O*m+h,y1:$*m+p,x2:O*(m-S)+h,y2:$*(m-S)+p},silent:!0,style:D});"auto"===D.stroke&&F.setStyle({stroke:n((L+M/I)/_)}),f.add(F),T+=k}T-=k}else T+=C}},_renderPointer:function(e,t,i,r,o,l,u,d){var f=this.group,h=this._data;if(e.get("pointer.show")){var p=[+e.get("min"),+e.get("max")],m=[l,u],g=e.getData(),v=g.mapDimension("value");g.diff(h).add((function(t){var i=new n({shape:{angle:l}});a.initProps(i,{shape:{angle:c(g.get(v,t),p,m,!0)}},e),f.add(i),g.setItemGraphicEl(t,i)})).update((function(t,i){var n=h.getItemGraphicEl(i);a.updateProps(n,{shape:{angle:c(g.get(v,t),p,m,!0)}},e),f.add(n),g.setItemGraphicEl(t,n)})).remove((function(e){var t=h.getItemGraphicEl(e);f.remove(t)})).execute(),g.eachItemGraphicEl((function(e,t){var i=g.getItemModel(t),n=i.getModel("pointer");e.setShape({x:o.cx,y:o.cy,width:s(n.get("width"),o.r),r:s(n.get("length"),o.r)}),e.useStyle(i.getModel("itemStyle").getItemStyle()),"auto"===e.style.fill&&e.setStyle("fill",r(c(g.get(v,t),p,[0,1],!0))),a.setHoverStyle(e,i.getModel("emphasis.itemStyle").getItemStyle())})),this._data=g}else h&&h.eachItemGraphicEl((function(e){f.remove(e)}))},_renderTitle:function(e,t,i,n,r){var o=e.getData(),l=o.mapDimension("value"),u=e.getModel("title");if(u.get("show")){var d=u.get("offsetCenter"),f=r.cx+s(d[0],r.r),h=r.cy+s(d[1],r.r),p=+e.get("min"),m=+e.get("max"),g=e.getData().get(l,0),v=n(c(g,[p,m],[0,1],!0));this.group.add(new a.Text({silent:!0,style:a.setTextStyle({},u,{x:f,y:h,text:o.getName(0),textAlign:"center",textVerticalAlign:"middle"},{autoColor:v,forceRich:!0})}))}},_renderDetail:function(e,t,i,n,r){var o=e.getModel("detail"),l=+e.get("min"),u=+e.get("max");if(o.get("show")){var f=o.get("offsetCenter"),h=r.cx+s(f[0],r.r),p=r.cy+s(f[1],r.r),m=s(o.get("width"),r.r),g=s(o.get("height"),r.r),v=e.getData(),b=v.get(v.mapDimension("value"),0),y=n(c(b,[l,u],[0,1],!0));this.group.add(new a.Text({silent:!0,style:a.setTextStyle({},o,{x:h,y:p,text:d(b,o.get("formatter")),textWidth:isNaN(m)?null:m,textHeight:isNaN(g)?null:g,textAlign:"center",textVerticalAlign:"middle"},{autoColor:y,forceRich:!0})}))}}}),p=h;e.exports=p},a75d:function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-zip",use:"icon-zip-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-zip"><path d="M78.527 116.793c.178.008.348.024.527.024h40.233c4.711-.005 8.53-3.677 8.534-8.21V18.895c-.004-4.532-3.823-8.204-8.534-8.209H79.054c-.179 0-.353.016-.527.024V0L0 10.082v107.406l78.527 10.342v-11.037zm0-101.362c.174-.024.348-.052.527-.052h40.233c2.018 0 3.659 1.578 3.659 3.52v89.713c-.003 1.942-1.64 3.517-3.659 3.519H79.054c-.179 0-.353-.028-.527-.052V15.431zM30.262 75.757l-18.721-.46V72.37l11.3-16.673v-.148l-10.266.164v-4.51l17.504-.44v3.264L18.696 70.76v.144l11.566.176v4.678zm9.419.231l-5.823-.144V50.671l5.823-.144v25.461zm22.255-11.632c-2.168 1.922-5.353 2.76-9.02 2.736-.702.004-1.402-.04-2.097-.131v9.303l-5.997-.148V50.743c1.852-.352 4.473-.647 8.218-.743 3.838-.096 6.608.539 8.48 1.913 1.807 1.306 3.032 3.5 3.032 6.112s-.926 4.833-2.612 6.331h-.004zM53.36 54.45c-.856-.01-1.71.083-2.541.275v7.682c.523.116 1.167.152 2.06.152 3.301-.004 5.36-1.614 5.36-4.314 0-2.425-1.772-3.843-4.875-3.791l-.004-.004zm39.847-37.066h9.564v3.795h-9.564v-3.795zm-9.568 5.68h9.564v3.8h-9.564v-3.8zm9.568 6.216h9.564v3.799h-9.564V29.28zm0 12h9.564v3.794h-9.564V41.28zm-9.568-6.096h9.564v3.795h-9.564v-3.795zm9.472 47.064c2.512 0 4.921-.96 6.697-2.67 1.776-1.708 2.773-4.026 2.772-6.442l-1.748-15.263c0-5.033-2.492-9.112-7.725-9.112-5.232 0-7.72 4.079-7.72 9.112l-1.752 15.263c-.001 2.417.996 4.735 2.773 6.444 1.777 1.71 4.187 2.669 6.7 2.668h.003zm-3.135-16.75h6.27v12.743h-6.27V65.5z" /></symbol>'});o.a.add(s);t["default"]=s},a796:function(e,t,i){"use strict";i.d(t,"f",(function(){return r})),i.d(t,"a",(function(){return o})),i.d(t,"b",(function(){return s})),i.d(t,"c",(function(){return l})),i.d(t,"e",(function(){return c})),i.d(t,"g",(function(){return u})),i.d(t,"d",(function(){return d}));var n=i("db72"),a=i("b775");function r(e,t,i){var n=new FormData;return n.append("file",e),Object(a["a"])({url:"/file/uploadFile/".concat(t,"/").concat(i),method:"post",data:n})}function o(e,t){return Object(a["a"])({url:"/attachment/deleteAttachment",method:"delete",data:{Id:e,Path:t}})}function s(e,t){return Object(a["a"])({url:"/attachment/getAttachmentByType/".concat(e,"/").concat(t),method:"get"})}function l(e){return Object(a["a"])({url:"/attachment/saveAttachments",method:"post",data:e})}function c(e,t,i){return Object(a["a"])({url:"/attachment/setOfficial/".concat(e,"/").concat(t,"/").concat(i),method:"post"})}function u(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=new FormData;return r.append("file",e),Object(a["a"])(Object(n["a"])({url:"/file/uploadNonDoctorFile/".concat(t),method:"post",data:r},i))}function d(e,t,i){return Object(a["a"])({url:"/attachment/setLanguage/".concat(e,"/").concat(t,"/").concat(i),method:"post"})}},a7ad:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[i("div",{staticClass:"search"},[i("el-form",{staticClass:"base-search-form",attrs:{inline:!0,size:"mini"}},[i("el-form-item",{attrs:{label:e.$t("trials:qcCfg:table:questionName")}},[i("el-input",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.QuestionName,callback:function(t){e.$set(e.searchData,"QuestionName",t)},expression:"searchData.QuestionName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:medicalFeedbackCfg:title:taskType")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.ReadingCategory,callback:function(t){e.$set(e.searchData,"ReadingCategory",t)},expression:"searchData.ReadingCategory"}},e._l(e.$d.ReadingCategory,(function(e){return i("el-option",{key:e.value,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:medicalFeedbackCfg:title:criterion")}},[i("el-select",{attrs:{clearable:""},model:{value:e.searchData.CriterionTypeEnum,callback:function(t){e.$set(e.searchData,"CriterionTypeEnum",t)},expression:"searchData.CriterionTypeEnum"}},e._l(e.$d.CriterionType,(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:medicalFeedbackCfg:title:isGeneral")}},[i("el-select",{attrs:{clearable:""},model:{value:e.searchData.IsGeneral,callback:function(t){e.$set(e.searchData,"IsGeneral",t)},expression:"searchData.IsGeneral"}},e._l(e.$d.YesOrNo,(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:e.handleSearch}},[e._v(e._s(e.$t("common:button:search")))]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.handleReset}},[e._v(e._s(e.$t("common:button:reset")))])],1)],1),e._v(" "),i("span",{staticStyle:{"margin-left":"auto"}},[i("el-button",{attrs:{type:"primary",size:"mini",disabled:e.selectArr.length<=0},on:{click:e.handleSubmit}},[e._v("\n "+e._s(e.$t("common:button:submit"))+"\n ")])],1)],1),e._v(" "),i("el-table",{attrs:{data:e.list,stripe:"",size:"small",height:"400"},on:{"selection-change":e.handleSelectChange}},[i("el-table-column",{attrs:{type:"selection",align:"left",width:"45"}}),e._v(" "),i("el-table-column",{attrs:{type:"index",width:"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"QuestionName",label:e.$t("trials:qcCfg:table:questionName"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Type",label:e.$t("trials:qcCfg:table:type"),"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("QcType",t.row.Type))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TypeValue",label:e.$t("trials:qcCfg:table:typeValue"),"show-overflow-tooltip":"","min-width":"110"}}),e._v(" "),i("el-table-column",{attrs:{prop:"ReadingCategory",label:e.$t("trials:medicalFeedbackCfg:title:taskType"),"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.ReadingCategory?i("el-tag",{attrs:{type:"primary"}},[e._v("\n "+e._s(e.$fd("ReadingCategory",t.row.ReadingCategory))+"\n ")]):e._e(),e._v(" "),2===t.row.ReadingCategory?i("el-tag",{attrs:{type:"info"}},[e._v("\n "+e._s(e.$fd("ReadingCategory",t.row.ReadingCategory))+"\n ")]):e._e(),e._v(" "),4===t.row.ReadingCategory?i("el-tag",{attrs:{type:"danger"}},[e._v("\n "+e._s(e.$fd("ReadingCategory",t.row.ReadingCategory))+"\n ")]):e._e(),e._v(" "),5===t.row.ReadingCategory?i("el-tag",{attrs:{type:"warning"}},[e._v("\n "+e._s(e.$fd("ReadingCategory",t.row.ReadingCategory))+"\n ")]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"CriterionTypeEnum",label:e.$t("trials:medicalFeedbackCfg:title:criterion"),width:"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",[e._v("\n "+e._s(e.$fd("CriterionType",t.row.CriterionTypeEnum))+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsGeneral",label:e.$t("trials:medicalFeedbackCfg:title:isGeneral"),width:"80","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",[e._v("\n "+e._s(e.$fd("YesOrNo",t.row.IsGeneral))+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ParentShowOrder",label:e.$t("trials:qcCfg:table:parentQs"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ParentTriggerValue",label:e.$t("trials:qcCfg:table:parentTriggerValue"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ShowOrder",label:e.$t("trials:qcCfg:table:order"),"min-width":"70"}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsRequired",label:e.$t("trials:qcCfg:table:isRequired"),"min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("YesOrNo",t.row.IsRequired))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsEnable",label:e.$t("trials:qcCfg:table:isEnable"),"min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("IsEnable",t.row.IsEnable))+"\n ")]}}])})],1),e._v(" "),i("Pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1)},a=[],r=(i("c5f6"),i("e56e")),o=i("333d"),s=i("3e42"),l=i("f36a"),c=function(){return{PageIndex:1,PageSize:20,QuestionName:"",Type:"",CriterionTypeEnum:null,IsGeneral:null}},u={name:"AddDefaultQS",components:{BoxContent:l["default"],Pagination:o["default"]},props:{trialReadingCriterionId:{type:String,default:function(){return""}},currentCriterionType:{type:Number,default:function(){return 0}}},data:function(){return{trialId:"",searchData:c(),list:[],loading:!1,selectArr:[],total:0}},mounted:function(){this.trialId=this.$route.query.trialId,this.getList()},methods:{getList:function(){var e=this;this.loading=!0,this.searchData.TrialId=this.trialId,this.searchData.CurrentCriterionType=this.CurrentCriterionType,Object(r["sb"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},handleSelectChange:function(e){console.log(e);for(var t=[],i=0;i<e.length;i++)t.push(e[i].Id);console.log(t),this.selectArr=t},handleSubmit:function(){var e=this;this.loading=!0;var t={trialId:this.trialId,systemQuestionIds:this.selectArr,TrialReadingCriterionId:this.trialReadingCriterionId};Object(s["I"])(t).then((function(t){e.loading=!1,t.IsSuccess&&(e.$message.success(e.$t("common:message:savedSuccessfully")),e.$emit("getList"),e.$emit("close"))})).catch((function(){e.loading=!1}))},handleSearch:function(){this.getList()},handleReset:function(){this.searchData=c(),this.getList()}}},d=u,f=i("2877"),h=Object(f["a"])(d,n,a,!1,null,null,null);t["default"]=h.exports},a7e2:function(e,t,i){var n=i("3eba");i("7293"),i("ae46");var a=i("6582"),r=i("ee98");n.registerLayout(a),n.registerVisual(r)},a7ea:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"feedBackForm",staticClass:"feedback-form",attrs:{model:e.form,"label-width":"150px",size:"small",rules:e.rules}},[i("div",{staticClass:"base-dialog-body",staticStyle:{"min-height":"500px"}},[i("el-form-item",{attrs:{label:e.$t("trials:medicalFeedback:form:isEndorse"),prop:"DoctorUserIdeaEnum"}},[i("el-radio-group",{model:{value:e.form.DoctorUserIdeaEnum,callback:function(t){e.$set(e.form,"DoctorUserIdeaEnum",t)},expression:"form.DoctorUserIdeaEnum"}},e._l(e.$d.MedicalReviewDoctorUserIdea,(function(t){return i("el-radio",{key:t.id,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1),e._v(" "),2===e.form.DoctorUserIdeaEnum?i("el-form-item",{attrs:{label:e.$t("trials:medicalFeedback:title:reason"),prop:"DisagreeReason"}},[i("el-input",{model:{value:e.form.DisagreeReason,callback:function(t){e.$set(e.form,"DisagreeReason",t)},expression:"form.DisagreeReason"}})],1):e._e(),e._v(" "),1===e.form.DoctorUserIdeaEnum?i("el-form-item",{attrs:{label:e.$t("trials:medicalFeedback:form:isRequestReread"),prop:"IsApplyHeavyReading"}},[i("el-radio-group",{on:{change:e.handleIsApplyHeavyReadingChange},model:{value:e.form.IsApplyHeavyReading,callback:function(t){e.$set(e.form,"IsApplyHeavyReading",t)},expression:"form.IsApplyHeavyReading"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"IsApplyHeavyReading"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1):e._e(),e._v(" "),e.form.IsApplyHeavyReading?i("el-form-item",{attrs:{label:e.$t("trials:medicalFeedback:form:applyReason"),prop:"ReReadingReason",rules:[{required:!0,message:e.$t("common:ruleMessage:select")}]}},[i("el-radio-group",{model:{value:e.form.ReReadingReason,callback:function(t){e.$set(e.form,"ReReadingReason",t)},expression:"form.ReReadingReason"}},[i("el-radio",{attrs:{label:e.$t("trials:medicalFeedback:form:errorRecords")}}),e._v(" "),i("el-radio",{attrs:{label:e.$t("trials:medicalFeedback:form:other")}})],1)],1):e._e(),e._v(" "),e.form.ReReadingReason===e.$t("trials:medicalFeedback:form:other")?i("el-form-item",{attrs:{label:e.$t("trials:medicalFeedback:form:remark"),prop:"OtherReason",rules:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"},{max:500,message:this.$t("common:ruleMessage:maxLength")+" 500"}]}},[i("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:e.$t("common:ruleMessage:specify"),maxlength:"500","show-word-limit":""},model:{value:e.form.OtherReason,callback:function(t){e.$set(e.form,"OtherReason",t)},expression:"form.OtherReason"}})],1):e._e(),e._v(" "),e.form.IsApplyHeavyReading?i("el-form-item",{attrs:{label:e.$t("trials:medicalFeedback:form:isCopyForm"),prop:"IsCopyOrigenalForms",rules:[{required:!0,message:e.$t("common:ruleMessage:select")}]}},[i("el-radio-group",{model:{value:e.form.IsCopyOrigenalForms,callback:function(t){e.$set(e.form,"IsCopyOrigenalForms",t)},expression:"form.IsCopyOrigenalForms"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"IsCopyOrigenalForms"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1):e._e(),e._v(" "),e.form.IsApplyHeavyReading?i("el-form-item",{attrs:{label:e.$t("trials:medicalFeedback:form:isCopyForm2"),prop:"IsCopyOrigenalForms",rules:[{required:!0,message:e.$t("common:ruleMessage:select")}]}},[i("el-radio-group",{model:{value:e.form.IsCopyOrigenalForms,callback:function(t){e.$set(e.form,"IsCopyOrigenalForms",t)},expression:"form.IsCopyOrigenalForms"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"IsCopyFollowForms"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:medicalFeedback:form:screenShot")}},[i("el-upload",{attrs:{action:e.accept,"on-preview":e.handlePictureCardPreview,"before-upload":e.handleBeforeUpload,"http-request":e.uploadScreenshot,"list-type":"picture-card","on-remove":e.handleRemove,"file-list":e.fileList},scopedSlots:e._u([{key:"file",fn:function(t){var n=t.file;return i("div",{},[i("img",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:n.url,alt:""}}),e._v(" "),i("span",{staticClass:"el-upload-list__item-actions"},[i("span",{staticClass:"el-upload-list__item-preview",on:{click:function(t){return e.handlePictureCardPreview(n)}}},[i("i",{staticClass:"el-icon-zoom-in"})]),e._v(" "),i("span",{staticClass:"el-upload-list__item-delete",on:{click:function(t){return e.handleRemove(n)}}},[i("i",{staticClass:"el-icon-delete"})])])])}}])},[i("i",{staticClass:"el-icon-plus",attrs:{slot:"default"},slot:"default"})]),e._v(" "),i("el-dialog",{attrs:{"append-to-body":"",visible:e.imgVisible,width:"600px"},on:{"update:visible":function(t){e.imgVisible=t}}},[i("el-image",{attrs:{src:e.imageUrl,width:"100%"}},[i("div",{staticClass:"image-slot",attrs:{slot:"placeholder"},slot:"placeholder"},[e._v("\n "+e._s(e.$t("trials:medicalFeedback:message:loading"))),i("span",{staticClass:"dot"},[e._v("...")])])])],1)],1),e._v(" "),e.form.IsApplyHeavyReading?i("div",{staticStyle:{"margin-bottom":"10px","padding-left":"5px","font-weight":"bold",color:"#666"}},[e._v("\n "+e._s(e.$t("trials:medicalFeedback:form:influenceList"))+"\n ")]):e._e(),e._v(" "),e.form.IsApplyHeavyReading?i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],attrs:{data:e.InfluenceTaskList,stripe:"",border:""}},[i("el-table-column",{attrs:{prop:"TaskCode",label:e.$t("trials:readTask:table:taskCode"),"min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialSiteCode",label:e.$t("trials:readTask:table:siteCode"),"min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode",label:e.$t("trials:readTask:table:subjectCode"),"min-width":"120","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskBlindName",label:e.$t("trials:readTask:table:blindName"),"min-width":"120","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialReadingCriterionName",label:e.$t("trials:readTask:table:criterionName"),"min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskState",label:e.$t("trials:readTask:table:taskState"),"min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.TaskState?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e(),e._v(" "),1===t.row.TaskState?i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e(),e._v(" "),3===t.row.TaskState?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e(),e._v(" "),4===t.row.TaskState?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e()]}}],null,!1,3420009093)}),e._v(" "),i("el-table-column",{attrs:{prop:"ReadingCategory","min-width":"100",label:e.$t("trials:readTask:table:readingCategory"),"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.ReadingCategory?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e(),e._v(" "),2===t.row.ReadingCategory?i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e(),e._v(" "),4===t.row.ReadingCategory?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e(),e._v(" "),5===t.row.ReadingCategory?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e()]}}],null,!1,3295727457)}),e._v(" "),i("el-table-column",{attrs:{prop:"ReadingTaskState",label:e.$t("trials:readTask:table:readingTaskState"),"min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[2===t.row.ReadingTaskState?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ReadingTaskState",t.row.ReadingTaskState)))]):i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ReadingTaskState",t.row.ReadingTaskState)))])]}}],null,!1,2667573932)}),e._v(" "),i("el-table-column",{attrs:{prop:"OptType",label:e.$t("trials:readTask:table:optType"),"min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.OptType?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ReReadingOrBackOptType",t.row.OptType)))]):e._e(),e._v(" "),1===t.row.OptType?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ReReadingOrBackOptType",t.row.OptType)))]):e._e(),e._v(" "),2===t.row.OptType?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("ReReadingOrBackOptType",t.row.OptType)))]):e._e()]}}],null,!1,2995316527)}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:e.$t("trials:readTask:table:reader"),"min-width":"160","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return t.row.DoctorUser?[e._v("\n "+e._s(t.row.DoctorUser.UserName)+"("+e._s(t.row.DoctorUser.FullName)+")\n ")]:void 0}}],null,!0)})],1):e._e()],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleClose}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("trials:medicalFeedback:button:send"))+"\n ")])],1)],1)])},a=[],r=(i("20d6"),i("386d"),i("a481"),i("7f7f"),i("3e42")),o=i("958c"),s={name:"FeedbackFrom",props:{taskMedicalReviewId:{type:String,required:!0},visitTaskId:{type:String,required:!0}},data:function(){return{form:{TaskMedicalReviewId:"",DoctorUserIdeaEnum:null,DisagreeReason:"",IsApplyHeavyReading:null,IsCopyOrigenalForms:null,IsCopyFollowForms:null,RequestReReadingType:0,RequestReReadingReason:"",ReReadingReason:"",OtherReason:"",FileList:[]},InfluenceTaskList:[],rules:{DoctorUserIdeaEnum:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}],DisagreeReason:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"},{max:500,message:"".concat(this.$t("common:ruleMessage:maxLength")," 500")}],IsApplyHeavyReading:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}]},loading:!1,accept:".png,.jpg,.jpeg",imgVisible:!1,imageUrl:"",uploadDisabled:!1,listLoading:!1,fileList:[]}},mounted:function(){},methods:{handleSave:function(){var e=this;this.$refs.feedBackForm.validate((function(t){if(t){e.loading=!0,e.form.TaskMedicalReviewId=e.taskMedicalReviewId,e.form.RequestReReadingReason=e.form.OtherReason?e.form.OtherReason:e.form.ReReadingReason,e.form.TrialId=e.$route.query.trialId;var i=[];e.fileList.map((function(e){i.push({FileName:e.name,ImagePath:e.url})})),e.form.FileList=i,Object(r["ne"])(e.form).then((function(t){e.loading=!1,t.IsSuccess&&(e.$emit("close"),e.$emit("getList"),e.$message.success(e.$t("common:message:savedSuccessfully")))})).catch((function(){e.loading=!1}))}}))},handleClose:function(){this.$emit("close")},handleIsApplyHeavyReadingChange:function(e){var t=this;!0===e&&(this.listLoading=!0,Object(o["H"])(this.visitTaskId,!0).then((function(e){t.InfluenceTaskList=e.Result,t.listLoading=!1})).catch((function(){t.listLoading=!1})))},handleBeforeUpload:function(e){if(this.checkFileSuffix(e.name))return!0;var t=this.$t("trials:medicalFeedback:message:format");return t=t.replace("xxx",this.accept),this.$message.error(t),!1},checkFileSuffix:function(e){var t=e.lastIndexOf("."),i=e.substring(t+1,e.length);return-1!==this.accept.toLocaleLowerCase().search(i.toLocaleLowerCase())},uploadScreenshot:function(e){var t=this;this.loading=!0,this.uploadDisabled=!1;var i=new FormData;i.append("file",e.file),Object(r["d"])(this.$route.query.trialId,this.taskMedicalReviewId,i).then((function(e){t.loading=!1,e.IsSuccess&&t.fileList.push({name:e.Result.FileName,url:e.Result.Path}),t.uploadDisabled=!0})).catch((function(){t.loading=!1}))},handlePictureCardPreview:function(e){this.imageUrl=e.url,this.imgVisible=!0},handleRemove:function(e,t){var i=this.fileList.findIndex((function(t){return t.url===e.url}));-1!==i&&this.fileList.splice(i,1)}}},l=s,c=(i("9298"),i("2877")),u=Object(c["a"])(l,n,a,!1,null,"003cf94f",null);t["default"]=u.exports},a7f2:function(e,t){var i=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function n(e,t){"china"===e&&"台湾"===t.name&&t.geometries.push({type:"polygon",exterior:i[0]})}e.exports=n},a808:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container"},[i("el-form",{ref:"userForm",staticStyle:{width:"800px"},attrs:{size:"small",model:e.user,rules:e.userFormRules,"label-width":"150px"}},[i("el-card",{staticClass:"Basic",attrs:{shadow:"never",size:"small"}},[i("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[i("span",[e._v(e._s(e.$t("trials:trials-myinfo:title:basicInfo")))])]),e._v(" "),e.user.Code?i("el-form-item",{attrs:{label:"ID",prop:"Code"}},[i("el-input",{attrs:{disabled:""},model:{value:e.user.Code,callback:function(t){e.$set(e.user,"Code",t)},expression:"user.Code"}})],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:e.$t("admin:UserName"),prop:"UserName"}},[i("el-input",{attrs:{disabled:""},model:{value:e.user.UserName,callback:function(t){e.$set(e.user,"UserName",t)},expression:"user.UserName"}})],1),e._v(" "),8!==e.user.UserTypeEnum?i("el-form-item",{attrs:{label:e.$t("trials:staffResearch:form:lastName"),prop:"LastName"}},[i("el-input",{model:{value:e.user.LastName,callback:function(t){e.$set(e.user,"LastName",t)},expression:"user.LastName"}})],1):e._e(),e._v(" "),8!==e.user.UserTypeEnum?i("el-form-item",{attrs:{label:e.$t("trials:staffResearch:form:firstName"),prop:"FirstName"}},[i("el-input",{model:{value:e.user.FirstName,callback:function(t){e.$set(e.user,"FirstName",t)},expression:"user.FirstName"}})],1):e._e(),e._v(" "),i("el-form-item",{staticStyle:{"margin-right":"40px"},attrs:{label:e.$t("admin:Sex"),prop:"Sex"}},[i("el-radio-group",{model:{value:e.user.Sex,callback:function(t){e.$set(e.user,"Sex",t)},expression:"user.Sex"}},e._l(e.$d.Sex,(function(t){return i("el-radio",{attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("admin:EMail"),prop:"EMail"}},[i("el-input",{model:{value:e.user.EMail,callback:function(t){e.$set(e.user,"EMail",t)},expression:"user.EMail"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("admin:Phone")}},[i("el-input",{model:{value:e.user.Phone,callback:function(t){e.$set(e.user,"Phone",t)},expression:"user.Phone"}})],1),e._v(" "),8!==e.user.UserTypeEnum?i("el-form-item",{attrs:{label:e.$t("admin:Status")}},[i("el-switch",{attrs:{"active-value":0,"inactive-value":1,disabled:""},model:{value:e.user.Status,callback:function(t){e.$set(e.user,"Status",t)},expression:"user.Status"}})],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:e.$t("admin:UserType"),prop:"UserType"}},[i("el-input",{attrs:{disabled:""},model:{value:e.user.UserType,callback:function(t){e.$set(e.user,"UserType",t)},expression:"user.UserType"}})],1)],1),e._v(" "),8!==e.user.UserTypeEnum?i("el-card",{staticClass:"Affiliation",staticStyle:{"margin-top":"10px"},attrs:{shadow:"never",size:"small"}},[i("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[i("span",[e._v(e._s(e.$t("admin:OrganizationName")))])]),e._v(" "),i("el-form-item",{attrs:{label:e.$t("admin:IsZhiZhun"),prop:"IsZhiZhun"}},[i("el-radio-group",{model:{value:e.user.IsZhiZhun,callback:function(t){e.$set(e.user,"IsZhiZhun",t)},expression:"user.IsZhiZhun"}},e._l(e.$d.IsZhiZhun,(function(t){return i("el-radio",{attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1),e._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:!1===e.user.IsZhiZhun,expression:"user.IsZhiZhun === false"}],attrs:{label:e.$t("admin:OrganizationName"),prop:"OrganizationName"}},[i("el-input",{model:{value:e.user.OrganizationName,callback:function(t){e.$set(e.user,"OrganizationName",t)},expression:"user.OrganizationName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("admin:DepartmentName"),prop:"DepartmentName"}},[i("el-input",{model:{value:e.user.DepartmentName,callback:function(t){e.$set(e.user,"DepartmentName",t)},expression:"user.DepartmentName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("admin:PositionName"),prop:"PositionName"}},[i("el-input",{model:{value:e.user.PositionName,callback:function(t){e.$set(e.user,"PositionName",t)},expression:"user.PositionName"}})],1)],1):e._e(),e._v(" "),i("el-form-item",[i("el-button",{staticStyle:{margin:"10px 15px"},attrs:{type:"primary",size:"small",disabled:e.isDisabled},on:{click:e.handleSave}},[e._v(e._s(e.$t("common:button:save")))])],1)],1)],1)},a=[],r=(i("96cf"),i("3b8d")),o=i("db72"),s=i("50fc"),l=i("4360"),c=i("2f62"),u={data:function(){return{user:{},userFormRules:{UserName:[{required:!0,message:"Please specify",trigger:"blur"}],UserTypeId:[{required:!0,message:"Please Select",trigger:["blur","change"]}],IsZhiZhun:[{required:!0,message:"Please Select",trigger:["blur","change"]}],OrganizationName:[{required:!0,message:"Please specify",trigger:"blur"}],LastName:[{required:!0,message:"Please specify",trigger:"blur"},{max:50,message:"The maximum length is 50"}],FirstName:[{required:!0,message:"Please specify",trigger:"blur"},{max:50,message:"The maximum length is 50"}],EMail:[{required:!0,message:"Please input the email address",trigger:"blur"},{type:"email",message:"Please input the correct email address",trigger:["blur","change"]},{max:50,message:"The maximum length is 50"}],Sex:[{required:!0,message:"Please specify",trigger:"blur"}],Status:[{required:!0,message:"Please specify",trigger:"blur"}]},userTypeOptions:[],isDisabled:!1}},computed:Object(o["a"])({},Object(c["b"])(["userId"])),mounted:function(){this.initPage()},methods:{handleSave:function(){var e=this;this.$refs.userForm.validate((function(t){if(t){e.isDisabled=!0;var i=e.userTypeOptions.filter((function(t){return t.Id===e.user.UserTypeId}));i.length>0&&(e.user.userTypeEnum=i[0].UserTypeEnum),!0===e.user.IsZhiZhun&&(e.user.OrganizationName="ZhiZhun"),e.user.Id?Object(s["v"])(e.user).then((function(t){e.isDisabled=!1,e.$message.success("Updated successfully")})).catch((function(){e.isDisabled=!1})):Object(s["c"])(e.user).then((function(t){e.isDisabled=!1,e.$emit("getUserId",t.Result.Id),e.$message.success("Added successfully")})).catch((function(){e.isDisabled=!1}))}}))},getUserInfo:function(){var e=this;Object(s["l"])(this.userId).then((function(t){e.user=t.Result}))},getUserTypeList:function(){var e=this;Object(s["n"])().then((function(t){t.IsSuccess&&(e.userTypeOptions=t.Result)}))},handelOrgnizationTypeChange:function(e){e&&(this.user.OrganizationId="",this.getOrgnizationList(e))},getOrgnizationList:function(e){var t=this;Object(s["g"])(e).then((function(e){e.IsSuccess&&(t.OrganizationOptions=e.Result)}))},initPage:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(""!==this.userId){e.next=5;break}return e.next=3,l["a"].dispatch("user/getInfo");case 3:e.next=6;break;case 5:case 6:if(""!==this.userId){e.next=9;break}return e.next=9,l["a"].dispatch("user/getInfo");case 9:this.getUserInfo();case 10:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}},d=u,f=i("2877"),h=Object(f["a"])(d,n,a,!1,null,null,null);t["default"]=h.exports},a80d:function(e,t,i){},a82a:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container reviewer-reading"},[i("el-tabs",{on:{"tab-click":e.clickTab},model:{value:e.active,callback:function(t){e.active=t},expression:"active"}},[i("el-tab-pane",{attrs:{label:"Timepoint",name:"TP"}},["TP"==e.active?i("timePoint"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Global",name:"Global"}},["Global"==e.active?i("global"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Adjusetment",name:"AD"}},["AD"==e.active?i("adjustment"):e._e()],1)],1)],1)},a=[],r=(i("7f7f"),i("db72")),o=i("3da5"),s=i("d758"),l=i("3ce7"),c=i("2f62"),u=i("4360"),d={name:"Reading",components:{TimePoint:o["default"],Global:s["default"],Adjustment:l["default"]},data:function(){return{active:"TP",load:{TP:!0,Global:!1,AD:!1}}},computed:Object(r["a"])({},Object(c["b"])(["reviewerWorkLoadActiveName"])),created:function(){this.$route.query.TrialId&&zzSessionStorage.setItem("trialId",this.$route.query.TrialId)},mounted:function(){this.active=this.reviewerWorkLoadActiveName},methods:{clickTab:function(e,t){this.active=e.name,u["a"].dispatch("reading/setActiveName",e.name)}}},f=d,h=(i("cd96"),i("2877")),p=Object(h["a"])(f,n,a,!1,null,null,null);t["default"]=p.exports},a850:function(e,t,i){"use strict";i("046d")},a87d:function(e,t,i){var n=i("22d1"),a=i("401b"),r=a.applyTransform,o=i("9850"),s=i("41ef"),l=i("e86a"),c=i("a73c"),u=i("9e2e"),d=i("19eb"),f=i("0da8"),h=i("76a5"),p=i("cbe5"),m=i("20c8"),g=i("42e5"),v=i("d3a4"),b=m.CMD,y=Math.round,w=Math.sqrt,_=Math.abs,I=Math.cos,x=Math.sin,S=Math.max;if(!n.canvasSupported){var T=",",C="progid:DXImageTransform.Microsoft",k=21600,R=k/2,D=1e5,L=1e3,O=function(e){e.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",e.coordsize=k+","+k,e.coordorigin="0,0"},$=function(e){return String(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;")},N=function(e,t,i){return"rgb("+[e,t,i].join(",")+")"},A=function(e,t){t&&e&&t.parentNode!==e&&e.appendChild(t)},P=function(e,t){t&&e&&t.parentNode===e&&e.removeChild(t)},E=function(e,t,i){return(parseFloat(e)||0)*D+(parseFloat(t)||0)*L+i},M=c.parsePercent,F=function(e,t,i){var n=s.parse(t);i=+i,isNaN(i)&&(i=1),n&&(e.color=N(n[0],n[1],n[2]),e.opacity=i*n[3])},j=function(e){var t=s.parse(e);return[N(t[0],t[1],t[2]),t[3]]},V=function(e,t,i){var n=t.fill;if(null!=n)if(n instanceof g){var a,o=0,s=[0,0],l=0,c=1,u=i.getBoundingRect(),d=u.width,f=u.height;if("linear"===n.type){a="gradient";var h=i.transform,p=[n.x*d,n.y*f],m=[n.x2*d,n.y2*f];h&&(r(p,p,h),r(m,m,h));var v=m[0]-p[0],b=m[1]-p[1];o=180*Math.atan2(v,b)/Math.PI,o<0&&(o+=360),o<1e-6&&(o=0)}else{a="gradientradial";p=[n.x*d,n.y*f],h=i.transform;var y=i.scale,w=d,_=f;s=[(p[0]-u.x)/w,(p[1]-u.y)/_],h&&r(p,p,h),w/=y[0]*k,_/=y[1]*k;var I=S(w,_);l=0/I,c=2*n.r/I-l}var x=n.colorStops.slice();x.sort((function(e,t){return e.offset-t.offset}));for(var T=x.length,C=[],R=[],D=0;D<T;D++){var L=x[D],O=j(L.color);R.push(L.offset*c+l+" "+O[0]),0!==D&&D!==T-1||C.push(O)}if(T>=2){var $=C[0][0],N=C[1][0],A=C[0][1]*t.opacity,P=C[1][1]*t.opacity;e.type=a,e.method="none",e.focus="100%",e.angle=o,e.color=$,e.color2=N,e.colors=R.join(","),e.opacity=P,e.opacity2=A}"radial"===a&&(e.focusposition=s.join(","))}else F(e,n,t.opacity)},q=function(e,t){t.lineDash&&(e.dashstyle=t.lineDash.join(" ")),null==t.stroke||t.stroke instanceof g||F(e,t.stroke,t.opacity)},z=function(e,t,i,n){var a="fill"===t,r=e.getElementsByTagName(t)[0];null!=i[t]&&"none"!==i[t]&&(a||!a&&i.lineWidth)?(e[a?"filled":"stroked"]="true",i[t]instanceof g&&P(e,r),r||(r=v.createNode(t)),a?V(r,i,n):q(r,i),A(e,r)):(e[a?"filled":"stroked"]="false",P(e,r))},B=[[],[],[]],U=function(e,t){var i,n,a,o,s,l,c=b.M,u=b.C,d=b.L,f=b.A,h=b.Q,p=[],m=e.data,g=e.len();for(o=0;o<g;){switch(a=m[o++],n="",i=0,a){case c:n=" m ",i=1,s=m[o++],l=m[o++],B[0][0]=s,B[0][1]=l;break;case d:n=" l ",i=1,s=m[o++],l=m[o++],B[0][0]=s,B[0][1]=l;break;case h:case u:n=" c ",i=3;var v,_,S=m[o++],C=m[o++],D=m[o++],L=m[o++];a===h?(v=D,_=L,D=(D+2*S)/3,L=(L+2*C)/3,S=(s+2*S)/3,C=(l+2*C)/3):(v=m[o++],_=m[o++]),B[0][0]=S,B[0][1]=C,B[1][0]=D,B[1][1]=L,B[2][0]=v,B[2][1]=_,s=v,l=_;break;case f:var O=0,$=0,N=1,A=1,P=0;t&&(O=t[4],$=t[5],N=w(t[0]*t[0]+t[1]*t[1]),A=w(t[2]*t[2]+t[3]*t[3]),P=Math.atan2(-t[1]/A,t[0]/N));var E=m[o++],M=m[o++],F=m[o++],j=m[o++],V=m[o++]+P,q=m[o++]+V+P;o++;var z=m[o++],U=E+I(V)*F,Q=M+x(V)*j,H=(S=E+I(q)*F,C=M+x(q)*j,z?" wa ":" at ");Math.abs(U-S)<1e-4&&(Math.abs(q-V)>.01?z&&(U+=270/k):Math.abs(Q-M)<1e-4?z&&U<E||!z&&U>E?C-=270/k:C+=270/k:z&&Q<M||!z&&Q>M?S+=270/k:S-=270/k),p.push(H,y(((E-F)*N+O)*k-R),T,y(((M-j)*A+$)*k-R),T,y(((E+F)*N+O)*k-R),T,y(((M+j)*A+$)*k-R),T,y((U*N+O)*k-R),T,y((Q*A+$)*k-R),T,y((S*N+O)*k-R),T,y((C*A+$)*k-R)),s=S,l=C;break;case b.R:var G=B[0],W=B[1];G[0]=m[o++],G[1]=m[o++],W[0]=G[0]+m[o++],W[1]=G[1]+m[o++],t&&(r(G,G,t),r(W,W,t)),G[0]=y(G[0]*k-R),W[0]=y(W[0]*k-R),G[1]=y(G[1]*k-R),W[1]=y(W[1]*k-R),p.push(" m ",G[0],T,G[1]," l ",W[0],T,G[1]," l ",W[0],T,W[1]," l ",G[0],T,W[1]);break;case b.Z:p.push(" x ")}if(i>0){p.push(n);for(var Y=0;Y<i;Y++){var K=B[Y];t&&r(K,K,t),p.push(y(K[0]*k-R),T,y(K[1]*k-R),Y<i-1?T:"")}}}return p.join("")};p.prototype.brushVML=function(e){var t=this.style,i=this._vmlEl;i||(i=v.createNode("shape"),O(i),this._vmlEl=i),z(i,"fill",t,this),z(i,"stroke",t,this);var n=this.transform,a=null!=n,r=i.getElementsByTagName("stroke")[0];if(r){var o=t.lineWidth;if(a&&!t.strokeNoScale){var s=n[0]*n[3]-n[1]*n[2];o*=w(_(s))}r.weight=o+"px"}var l=this.path||(this.path=new m);this.__dirtyPath&&(l.beginPath(),l.subPixelOptimize=!1,this.buildPath(l,this.shape),l.toStatic(),this.__dirtyPath=!1),i.path=U(l,this.transform),i.style.zIndex=E(this.zlevel,this.z,this.z2),A(e,i),null!=t.text?this.drawRectText(e,this.getBoundingRect()):this.removeRectText(e)},p.prototype.onRemove=function(e){P(e,this._vmlEl),this.removeRectText(e)},p.prototype.onAdd=function(e){A(e,this._vmlEl),this.appendRectText(e)};var Q=function(e){return"object"===typeof e&&e.tagName&&"IMG"===e.tagName.toUpperCase()};f.prototype.brushVML=function(e){var t,i,n=this.style,a=n.image;if(Q(a)){var o=a.src;if(o===this._imageSrc)t=this._imageWidth,i=this._imageHeight;else{var s=a.runtimeStyle,l=s.width,c=s.height;s.width="auto",s.height="auto",t=a.width,i=a.height,s.width=l,s.height=c,this._imageSrc=o,this._imageWidth=t,this._imageHeight=i}a=o}else a===this._imageSrc&&(t=this._imageWidth,i=this._imageHeight);if(a){var u=n.x||0,d=n.y||0,f=n.width,h=n.height,p=n.sWidth,m=n.sHeight,g=n.sx||0,b=n.sy||0,_=p&&m,I=this._vmlEl;I||(I=v.doc.createElement("div"),O(I),this._vmlEl=I);var x,k=I.style,R=!1,D=1,L=1;if(this.transform&&(x=this.transform,D=w(x[0]*x[0]+x[1]*x[1]),L=w(x[2]*x[2]+x[3]*x[3]),R=x[1]||x[2]),R){var $=[u,d],N=[u+f,d],P=[u,d+h],M=[u+f,d+h];r($,$,x),r(N,N,x),r(P,P,x),r(M,M,x);var F=S($[0],N[0],P[0],M[0]),j=S($[1],N[1],P[1],M[1]),V=[];V.push("M11=",x[0]/D,T,"M12=",x[2]/L,T,"M21=",x[1]/D,T,"M22=",x[3]/L,T,"Dx=",y(u*D+x[4]),T,"Dy=",y(d*L+x[5])),k.padding="0 "+y(F)+"px "+y(j)+"px 0",k.filter=C+".Matrix("+V.join("")+", SizingMethod=clip)"}else x&&(u=u*D+x[4],d=d*L+x[5]),k.filter="",k.left=y(u)+"px",k.top=y(d)+"px";var q=this._imageEl,z=this._cropEl;q||(q=v.doc.createElement("div"),this._imageEl=q);var B=q.style;if(_){if(t&&i)B.width=y(D*t*f/p)+"px",B.height=y(L*i*h/m)+"px";else{var U=new Image,H=this;U.onload=function(){U.onload=null,t=U.width,i=U.height,B.width=y(D*t*f/p)+"px",B.height=y(L*i*h/m)+"px",H._imageWidth=t,H._imageHeight=i,H._imageSrc=a},U.src=a}z||(z=v.doc.createElement("div"),z.style.overflow="hidden",this._cropEl=z);var G=z.style;G.width=y((f+g*f/p)*D),G.height=y((h+b*h/m)*L),G.filter=C+".Matrix(Dx="+-g*f/p*D+",Dy="+-b*h/m*L+")",z.parentNode||I.appendChild(z),q.parentNode!==z&&z.appendChild(q)}else B.width=y(D*f)+"px",B.height=y(L*h)+"px",I.appendChild(q),z&&z.parentNode&&(I.removeChild(z),this._cropEl=null);var W="",Y=n.opacity;Y<1&&(W+=".Alpha(opacity="+y(100*Y)+") "),W+=C+".AlphaImageLoader(src="+a+", SizingMethod=scale)",B.filter=W,I.style.zIndex=E(this.zlevel,this.z,this.z2),A(e,I),null!=n.text&&this.drawRectText(e,this.getBoundingRect())}},f.prototype.onRemove=function(e){P(e,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText(e)},f.prototype.onAdd=function(e){A(e,this._vmlEl),this.appendRectText(e)};var H,G="normal",W={},Y=0,K=100,Z=document.createElement("div"),X=function(e){var t=W[e];if(!t){Y>K&&(Y=0,W={});var i,n=Z.style;try{n.font=e,i=n.fontFamily.split(",")[0]}catch(a){}t={style:n.fontStyle||G,variant:n.fontVariant||G,weight:n.fontWeight||G,size:0|parseFloat(n.fontSize||12),family:i||"Microsoft YaHei"},W[e]=t,Y++}return t};l.$override("measureText",(function(e,t){var i=v.doc;H||(H=i.createElement("div"),H.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",v.doc.body.appendChild(H));try{H.style.font=t}catch(n){}return H.innerHTML="",H.appendChild(i.createTextNode(e)),{width:H.offsetWidth}}));for(var J=new o,ee=function(e,t,i,n){var a=this.style;this.__dirty&&c.normalizeTextStyle(a,!0);var o=a.text;if(null!=o&&(o+=""),o){if(a.rich){var s=l.parseRichText(o,a);o=[];for(var u=0;u<s.lines.length;u++){for(var d=s.lines[u].tokens,f=[],h=0;h<d.length;h++)f.push(d[h].text);o.push(f.join(""))}o=o.join("\n")}var p,m,g=a.textAlign,b=a.textVerticalAlign,w=X(a.font),_=w.style+" "+w.variant+" "+w.weight+" "+w.size+'px "'+w.family+'"';i=i||l.getBoundingRect(o,_,g,b,a.textPadding,a.textLineHeight);var I=this.transform;if(I&&!n&&(J.copy(t),J.applyTransform(I),t=J),n)p=t.x,m=t.y;else{var x=a.textPosition;if(x instanceof Array)p=t.x+M(x[0],t.width),m=t.y+M(x[1],t.height),g=g||"left";else{var S=this.calculateTextPosition?this.calculateTextPosition({},a,t):l.calculateTextPosition({},a,t);p=S.x,m=S.y,g=g||S.textAlign,b=b||S.textVerticalAlign}}p=l.adjustTextX(p,i.width,g),m=l.adjustTextY(m,i.height,b),m+=i.height/2;var C,k,R,D=v.createNode,L=this._textVmlEl;L?(R=L.firstChild,C=R.nextSibling,k=C.nextSibling):(L=D("line"),C=D("path"),k=D("textpath"),R=D("skew"),k.style["v-text-align"]="left",O(L),C.textpathok=!0,k.on=!0,L.from="0 0",L.to="1000 0.05",A(L,R),A(L,C),A(L,k),this._textVmlEl=L);var N=[p,m],P=L.style;I&&n?(r(N,N,I),R.on=!0,R.matrix=I[0].toFixed(3)+T+I[2].toFixed(3)+T+I[1].toFixed(3)+T+I[3].toFixed(3)+",0,0",R.offset=(y(N[0])||0)+","+(y(N[1])||0),R.origin="0 0",P.left="0px",P.top="0px"):(R.on=!1,P.left=y(p)+"px",P.top=y(m)+"px"),k.string=$(o);try{k.style.font=_}catch(F){}z(L,"fill",{fill:a.textFill,opacity:a.opacity},this),z(L,"stroke",{stroke:a.textStroke,opacity:a.opacity,lineDash:a.lineDash||null},this),L.style.zIndex=E(this.zlevel,this.z,this.z2),A(e,L)}},te=function(e){P(e,this._textVmlEl),this._textVmlEl=null},ie=function(e){A(e,this._textVmlEl)},ne=[u,d,f,p,h],ae=0;ae<ne.length;ae++){var re=ne[ae].prototype;re.drawRectText=ee,re.removeRectText=te,re.appendRectText=ie}h.prototype.brushVML=function(e){var t=this.style;null!=t.text?this.drawRectText(e,{x:t.x||0,y:t.y||0,width:0,height:0},this.getBoundingRect(),!0):this.removeRectText(e)},h.prototype.onRemove=function(e){this.removeRectText(e)},h.prototype.onAdd=function(e){this.appendRectText(e)}}},a890:function(e,t,i){var n=i("0655"),a=i("9850"),r=i("2306"),o=r.linePolygonIntersect,s={lineX:l(0),lineY:l(1),rect:{point:function(e,t,i){return e&&i.boundingRect.contain(e[0],e[1])},rect:function(e,t,i){return e&&i.boundingRect.intersect(e)}},polygon:{point:function(e,t,i){return e&&i.boundingRect.contain(e[0],e[1])&&n.contain(i.range,e[0],e[1])},rect:function(e,t,i){var r=i.range;if(!e||r.length<=1)return!1;var s=e.x,l=e.y,c=e.width,u=e.height,d=r[0];return!!(n.contain(r,s,l)||n.contain(r,s+c,l)||n.contain(r,s,l+u)||n.contain(r,s+c,l+u)||a.create(e).contain(d[0],d[1])||o(s,l,s+c,l,r)||o(s,l,s,l+u,r)||o(s+c,l,s+c,l+u,r)||o(s,l+u,s+c,l+u,r))||void 0}}};function l(e){var t=["x","y"],i=["width","height"];return{point:function(t,i,n){if(t){var a=n.range,r=t[e];return c(r,a)}},rect:function(n,a,r){if(n){var o=r.range,s=[n[t[e]],n[t[e]]+n[i[e]]];return s[1]<s[0]&&s.reverse(),c(s[0],o)||c(s[1],o)||c(o[0],s)||c(o[1],s)}}}}function c(e,t){return t[0]<=e&&e<=t[1]}var u=s;e.exports=u},a89d:function(e,t,i){"use strict";i("7148")},a8b5:function(e,t,i){},a8c6:function(e,t,i){var n=i("2449"),a=n.extend({type:"markPoint",defaultOption:{zlevel:0,z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}}});e.exports=a},a8db:function(e,t,i){"use strict";var n=i("e265"),a=i.n(n),r=i("a4bb"),o=i.n(r);function s(e,t){if(null==e)return{};var i,n,a={},r=o()(e);for(n=0;n<r.length;n++)i=r[n],t.indexOf(i)>=0||(a[i]=e[i]);return a}function l(e,t){if(null==e)return{};var i,n,r=s(e,t);if(a.a){var o=a()(e);for(n=0;n<o.length;n++)i=o[n],t.indexOf(i)>=0||Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}i.d(t,"a",(function(){return l}))},a8ed:function(e,t,i){"use strict";i("6619")},a915:function(e,t,i){},a92b:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"criterion-form-item"},[e.question.GroupName&&"group"===e.question.Type?i("div",{staticStyle:{"font-weight":"bold","font-size":"16px",margin:"5px 0px"}},[e._v("\n "+e._s(e.question.GroupName)+"\n ")]):e._e(),e._v(" "),"table"===e.question.Type?i("div",{staticStyle:{"font-weight":"bold","font-size":"14px",margin:"5px 0px"}},[i("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[i("span",[e._v(e._s(e.question.QuestionName))]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.openAddTableCol(e.question)}}},[e._v("\n "+e._s(e.$t("trials:readingUnit:qsList:title:add"))+"\n ")])],1),e._v(" "),i("el-table",{attrs:{data:e.questionForm[e.question.Id]}},e._l(e.question.TableQuestions.Questions,(function(e){return i("el-table-column",{attrs:{prop:e.Id,label:e.QuestionName,"min-width":"100","show-overflow-tooltip":""}})})),1)],1):[1===e.question.ShowQuestion&&~e.question.ParentTriggerValueList.indexOf(e.questionForm[e.question.ParentId])||0===e.question.ShowQuestion?i("el-form-item",{class:["group"===e.question.Type?"mb":"upload"===e.question.Type?"uploadWrapper":""],attrs:{label:""+e.question.QuestionName,prop:e.question.Id,rules:[{required:(0===e.question.IsRequired||1===e.question.IsRequired&&e.question.RelevanceId&&!!~e.question.RelevanceValueList.indexOf(e.questionForm[e.question.RelevanceId]))&&"group"!==e.question.Type&&"summary"!==e.question.Type,message:this.$t("common:ruleMessage:specify"),trigger:["blur","change"]}]}},["input"===e.question.Type?i("el-input",{attrs:{disabled:2===e.question.TableQuestionType},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"textarea"===e.question.Type?i("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4}},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"select"===e.question.Type?i("el-select",{attrs:{clearable:"",disabled:(2===e.question.TableQuestionType||2===e.question.QuestionGenre)&&!!e.question.DictionaryCode},on:{change:function(t){e.formItemChange(t,e.question)}},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},[1===e.question.TableQuestionType?e._l(e.organList,(function(t){return i("el-option",{key:t.Id,attrs:{label:t[e.question.DataTableColumn],value:t[e.question.DataTableColumn]}})})):3===e.question.TableQuestionType||3===e.question.QuestionGenre?e._l(e.$d[e.question.DictionaryCode],(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})})):2!==e.question.TableQuestionType&&2!==e.question.QuestionGenre||!e.question.DictionaryCode?e._l(e.question.TypeValue.split("|"),(function(e){return i("el-option",{key:e,attrs:{label:e,value:e}})})):e._l(e.$d[e.question.DictionaryCode],(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})}))],2):e._e(),e._v(" "),"radio"===e.question.Type?i("el-radio-group",{on:{change:function(t){e.formItemChange(t,e.question)}},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},e._l(e.question.TypeValue.split("|"),(function(t){return i("el-radio",{key:t,attrs:{label:t}},[e._v("\n "+e._s(t)+"\n ")])})),1):e._e(),e._v(" "),"checkbox"===e.question.Type?i("el-checkbox-group",{model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},e._l(e.question.TypeValue.split("|"),(function(t){return i("el-checkbox",{key:t,attrs:{label:t}},[e._v("\n "+e._s(t)+"\n ")])})),1):e._e(),e._v(" "),"calculation"===e.question.Type?i("el-input",{attrs:{disabled:""},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"increment"===e.question.Type?i("el-input",{attrs:{disabled:""},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"number"===e.question.Type&&1!==e.question.DataSource?i("el-input",{attrs:{type:"number"},on:{change:function(t){e.formItemNumberChange(t,e.question)}},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"number"===e.question.Type&&1===e.question.DataSource?i("el-input",{attrs:{type:"number",disabled:1===e.question.DataSource},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"upload"===e.question.Type?i("el-upload",{class:{disabled:e.fileList.length>=e.question.ImageCount},attrs:{action:e.accept,limit:e.question.ImageCount,"on-preview":e.handlePictureCardPreview,"before-upload":e.handleBeforeUpload,"http-request":e.uploadScreenshot,"list-type":"picture-card","on-remove":e.handleRemove,"file-list":e.fileList},scopedSlots:e._u([{key:"file",fn:function(t){var n=t.file;return i("div",{},[i("img",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:n.url,alt:""}}),e._v(" "),i("span",{staticClass:"el-upload-list__item-actions"},[i("span",{staticClass:"el-upload-list__item-preview",on:{click:function(t){return e.handlePictureCardPreview(n)}}},[i("i",{staticClass:"el-icon-zoom-in"})]),e._v(" "),e.readingTaskState<2?i("span",{staticClass:"el-upload-list__item-delete",on:{click:function(t){return e.handleRemove(n)}}},[i("i",{staticClass:"el-icon-delete"})]):e._e()])])}}],null,!1,3246650725)},[i("i",{staticClass:"el-icon-plus",attrs:{slot:"default"},slot:"default"})]):e._e(),e._v(" "),"upload"===e.question.Type?i("el-dialog",{attrs:{"append-to-body":"",visible:e.imgVisible,width:"600px"},on:{"update:visible":function(t){e.imgVisible=t}}},[i("el-image",{attrs:{src:e.imageUrl,width:"100%"}},[i("div",{staticClass:"image-slot",attrs:{slot:"placeholder"},slot:"placeholder"},[e._v("\n "+e._s(e.$t("trials:readingUnit:qsList:message:loading"))),i("span",{staticClass:"dot"},[e._v("...")])])])],1):e._e()],1):e._e()],e._v(" "),e.question.Childrens&&e.question.Childrens.length>0&&"table"!==e.question.Type?e._l(e.question.Childrens,(function(t){return i("QuestionFormItem",{key:t.Id,attrs:{question:t,"reading-task-state":e.readingTaskState,"question-form":e.questionForm,"visit-task-id":e.visitTaskId,"criterion-id":e.criterionId,"calculation-list":e.CalculationList},on:{formItemNumberChange:e.formItemNumberChange,setFormItemData:e.setFormItemData,resetFormItemData:e.resetFormItemData}})})):e._e(),e._v(" "),e.addOrEdit.visible?i("el-dialog",{staticClass:"my_dialog",attrs:{visible:e.addOrEdit.visible,"close-on-click-modal":!1,title:e.addOrEdit.title,width:"400px","append-to-body":""},on:{"update:visible":function(t){return e.$set(e.addOrEdit,"visible",t)}}},[i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"tableQsForm",attrs:{size:"small"}},[e._l(e.QuestionsList,(function(t){return i("QuestionTableFormItem",{key:t.Id,attrs:{question:t,"reading-task-state":e.readingTaskState,"question-form":e.QuestionsForm,"visit-task-id":e.visitTaskId,"criterion-id":e.criterionId},on:{formItemTableNumberChange:e.formItemTableNumberChange,setFormItemData:e.setFormItemData,resetFormItemData:e.resetFormItemData}})})),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){e.addOrEdit.visible=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.save}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)],2)],1):e._e()],2)},a=[],r=(i("386d"),i("a481"),i("7f7f"),i("20d6"),i("6b54"),i("75fc")),o=(i("ac6a"),i("28a5"),i("c5f6"),i("3e42")),s=i("98508"),l={name:"QuestionFormItem",components:{QuestionTableFormItem:s["default"]},props:{questionForm:{type:Object,default:function(){return{}}},question:{type:Object,default:function(){return[]}},criterionId:{type:String,required:!0},readingTaskState:{type:Number,required:!0},visitTaskId:{type:String,default:""},calculationList:{type:Array,default:[]}},data:function(){return{addOrEdit:{visible:!1,title:""},fileList:[],accept:".png,.jpg,.jpeg",imgVisible:!1,imageUrl:"",urls:[],organList:[],QuestionsList:[],QuestionsForm:{},AnswersList:[],loading:!1}},watch:{questionForm:{deep:!0,immediate:!0,handler:function(e,t){try{if(!e[this.question.Id]||!t[this.question.Id])return}catch(i){console.log(i,e)}this.formItemNumberChange(this.question.Id,!1)}}},mounted:function(){var e=this;"upload"===this.question.Type&&this.questionForm[this.question.Id]&&(this.urls=this.questionForm[this.question.Id].split("|"),this.fileList=[],this.urls.map((function(t){e.fileList.push({name:"",url:"".concat(t)})}))),"table"===this.question.Type&&this.questionForm[this.question.Id]&&(this.QuestionsForm={},this.question.TableQuestions.Questions.forEach((function(t){"number"===t.Type?e.$set(e.QuestionsForm,t.Id,0):e.$set(e.QuestionsForm,t.Id,"")})))},methods:{getQuestionCalculateRelation:function(){var e=this;Object(o["Jc"])({TrialReadingCriterionId:this.criterionId,ReadingQuestionId:this.question.Id}).then((function(t){e.CalculationList=t.Result}))},save:function(){this.AnswersList.push(this.QuestionsForm),this.$emit("setFormItemData",{key:this.question.Id,val:this.AnswersList}),this.formItemNumberChange(this.question.Id,!0),this.addOrEdit.visible=!1},logic:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;try{if(0===e.CalculateQuestionList.length)return!1;e.CalculateQuestionList.forEach((function(n,a){if(0===a)if(e.CustomCalculateMark>4)switch(e.CustomCalculateMark){case 5:t.questionForm[n.QuestionId].forEach((function(e,t){0===t?i=parseFloat(e[n.TableQuestionId]):i*=parseFloat(e[n.TableQuestionId])}));break;case 6:console.log(t.questionForm[n.QuestionId]),console.log(t.questionForm),t.questionForm[n.QuestionId].forEach((function(e,t){0===t?i=parseFloat(e[n.TableQuestionId]):i+=parseFloat(e[n.TableQuestionId])}));break;case 7:t.questionForm[n.QuestionId].forEach((function(e,t){0===t?i=parseFloat(e[n.TableQuestionId]):i+=parseFloat(e[n.TableQuestionId])})),i=0===t.questionForm[n.QuestionId].length?0:i/t.questionForm[n.QuestionId].length;break;case 8:var o=[];t.questionForm[n.QuestionId].forEach((function(e){o.push(e[n.TableQuestionId])})),i=0===o.length?0:Math.max.apply(Math,Object(r["a"])(o));break;case 9:o=[];t.questionForm[n.QuestionId].forEach((function(e){o.push(e[n.TableQuestionId])})),i=0===o.length?0:Math.min.apply(Math,Object(r["a"])(o)),console.log("min",t.questionForm[n.QuestionId],o,i);break}else i=parseFloat(t.questionForm[n.TableQuestionId]);else switch(e.CustomCalculateMark){case 1:i+=parseFloat(t.questionForm[n.TableQuestionId]);break;case 2:i-=parseFloat(t.questionForm[n.TableQuestionId]);break;case 3:i*=parseFloat(t.questionForm[n.TableQuestionId]);break;case 4:i/=parseFloat(t.questionForm[n.TableQuestionId]);break}}))}catch(n){console.log(n)}return i},formItemNumberChange:function(e,t){var i=this;t?this.CalculationList.forEach((function(t,n){console.log(t,n);var a=t.CalculateQuestionList.filter((function(t){return t.QuestionId===e}));if(console.log("find",a),a){var r=i.logic(t);!1!==r&&i.$emit("setFormItemData",{key:t.QuestionId,val:r})}})):this.CalculationList.forEach((function(t){var n=t.CalculateQuestionList.filter((function(t){return t.TableQuestionId===e}));if(n){var a=i.logic(t);!1!==a&&i.$emit("setFormItemData",{key:t.QuestionId,val:a})}}))},formItemTableNumberChange:function(){var e=this;this.question.TableQuestions.Questions.forEach((function(t){if("number"===t.Type&&1===t.DataSource){var i,n=JSON.parse(t.CalculateQuestions);n.forEach((function(n,a){if(0===a)i=e.QuestionsForm[n.TableQuestionId];else switch(t.CustomCalculateMark){case 1:i+=e.QuestionsForm[n.TableQuestionId];break;case 2:i-=e.QuestionsForm[n.TableQuestionId];break;case 3:i*=e.QuestionsForm[n.TableQuestionId];break;case 4:i/=e.QuestionsForm[n.TableQuestionId];break}})),e.$set(e.QuestionsForm,t.Id,i.toString())}}))},openAddTableCol:function(e){this.addOrEdit.visible=!0,this.addOrEdit.title=e.QuestionName+this.$t("trials:readingUnit:qsList:title:tableQs"),this.QuestionsList=e.TableQuestions.Questions,this.AnswersList=e.TableQuestions.Answers,this.QuestionsForm={}},getOrganInfoList:function(){var e=this,t={trialId:this.$route.query.trialId,lesionType:this.question.LesionType,isEnable:!0};Object(o["Rd"])(t).then((function(t){e.organList=t.Result}))},formNumberItemChange:function(e){this.$emit("setFormItemData",{key:e.QuestionId,val:num})},formItemChange:function(e,t){var i=this;if(t.Childrens.length>0&&this.resetChild(t.Childrens),1===t.TableQuestionType&&t.RelationQuestions.length>0){var n=this.organList.findIndex((function(i){return i[t.DataTableColumn]===e}));if(n<0)return;var a=this.organList[n];this.question.RelationQuestions.map((function(e){var t=a[e.DataTableColumn];i.$emit("setFormItemData",{key:e.Id,val:t})}))}},resetChild:function(e){var t=this;e.forEach((function(e){t.$emit("resetFormItemData",e.Id),e.Childrens&&e.Childrens.length>0&&t.resetChild(e.Childrens)}))},resetFormItemData:function(e){this.$emit("resetFormItemData",e)},setFormItemData:function(e){this.$emit("setFormItemData",e)},uploadScreenshot:function(e){var t=this;if(this.visitTaskId){var i=this.$loading({target:document.querySelector(".ecrf-wrapper"),fullscreen:!1,lock:!0,text:"Loading",spinner:"el-icon-loading"}),n=new FormData;n.append("file",e.file),Object(o["Af"])(this.$route.query.trialId,this.visitTaskId,n).then((function(e){e.IsSuccess&&(t.fileList.push({url:"".concat(e.Result.Path)}),t.urls.push(e.Result.Path),t.$emit("setFormItemData",{key:t.question.Id,val:t.urls.length>0?t.urls.join("|"):""})),i.close()})).catch((function(){i.close()}))}},handleBeforeUpload:function(e){if(this.checkFileSuffix(e.name))return!0;var t=this.$t("trials:readingUnit:qsList:message:imageFormat").replace("xxx",this.accept);return this.$message.error(t),!1},checkFileSuffix:function(e){var t=e.lastIndexOf("."),i=e.substring(t+1,e.length);return-1!==this.accept.toLocaleLowerCase().search(i.toLocaleLowerCase())},autoCalculation:function(){},handlePictureCardPreview:function(e){this.imageUrl=e.url,this.imgVisible=!0},handleRemove:function(e,t){this.imageUrl="",this.fileList.splice(this.fileList.findIndex((function(t){return t.url===e.url})),1),this.urls.splice(this.fileList.findIndex((function(t){return t===e.url})),1),this.$emit("setFormItemData",{key:this.question.Id,val:this.urls.length>0?this.urls.join("|"):""})}}},c=l,u=(i("e93e"),i("2877")),d=Object(u["a"])(c,n,a,!1,null,"0dafc866",null);t["default"]=d.exports},a939:function(e,t,i){!function(t,i){e.exports=i()}("undefined"!=typeof self&&self,(function(){return function(e){function t(n){if(i[n])return i[n].exports;var a=i[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,t),a.l=!0,a.exports}var i={};return t.m=e,t.c=i,t.d=function(e,i,n){t.o(e,i)||Object.defineProperty(e,i,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=1)}([function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),i(4)();var n=i(5),a=i(6);t.default={name:"vue-seamless-scroll",data:function(){return{xPos:0,yPos:0,delay:0,copyHtml:"",height:0,width:0,realBoxWidth:0}},props:{data:{type:Array,default:function(){return[]}},classOption:{type:Object,default:function(){return{}}}},computed:{leftSwitchState:function(){return this.xPos<0},rightSwitchState:function(){return Math.abs(this.xPos)<this.realBoxWidth-this.width},leftSwitchClass:function(){return this.leftSwitchState?"":this.options.switchDisabledClass},rightSwitchClass:function(){return this.rightSwitchState?"":this.options.switchDisabledClass},leftSwitch:function(){return{position:"absolute",margin:this.height/2+"px 0 0 -"+this.options.switchOffset+"px",transform:"translate(-100%,-50%)"}},rightSwitch:function(){return{position:"absolute",margin:this.height/2+"px 0 0 "+(this.width+this.options.switchOffset)+"px",transform:"translateY(-50%)"}},float:function(){return this.isHorizontal?{float:"left",overflow:"hidden"}:{overflow:"hidden"}},pos:function(){return{transform:"translate("+this.xPos+"px,"+this.yPos+"px)",transition:"all "+this.ease+" "+this.delay+"ms",overflow:"hidden"}},defaultOption:function(){return{step:1,limitMoveNum:5,hoverStop:!0,direction:1,openTouch:!0,singleHeight:0,singleWidth:0,waitTime:1e3,switchOffset:30,autoPlay:!0,navigation:!1,switchSingleStep:134,switchDelay:400,switchDisabledClass:"disabled",isSingleRemUnit:!1}},options:function(){return a({},this.defaultOption,this.classOption)},navigation:function(){return this.options.navigation},autoPlay:function(){return!this.navigation&&this.options.autoPlay},scrollSwitch:function(){return this.data.length>=this.options.limitMoveNum},hoverStopSwitch:function(){return this.options.hoverStop&&this.autoPlay&&this.scrollSwitch},canTouchScroll:function(){return this.options.openTouch},isHorizontal:function(){return this.options.direction>1},baseFontSize:function(){return this.options.isSingleRemUnit?parseInt(window.getComputedStyle(document.documentElement,null).fontSize):1},realSingleStopWidth:function(){return this.options.singleWidth*this.baseFontSize},realSingleStopHeight:function(){return this.options.singleHeight*this.baseFontSize},step:function(){var e=this.options.step;return this.isHorizontal?this.realSingleStopWidth:this.realSingleStopHeight,e}},methods:{reset:function(){this._cancle(),this._initMove()},leftSwitchClick:function(){if(this.leftSwitchState)return Math.abs(this.xPos)<this.options.switchSingleStep?void(this.xPos=0):void(this.xPos+=this.options.switchSingleStep)},rightSwitchClick:function(){if(this.rightSwitchState)return this.realBoxWidth-this.width+this.xPos<this.options.switchSingleStep?void(this.xPos=this.width-this.realBoxWidth):void(this.xPos-=this.options.switchSingleStep)},_cancle:function(){cancelAnimationFrame(this.reqFrame||"")},touchStart:function(e){var t=this;if(this.canTouchScroll){var i=void 0,n=e.targetTouches[0],a=this.options,r=a.waitTime,o=a.singleHeight,s=a.singleWidth;this.startPos={x:n.pageX,y:n.pageY},this.startPosY=this.yPos,this.startPosX=this.xPos,o&&s?(i&&clearTimeout(i),i=setTimeout((function(){t._cancle()}),r+20)):this._cancle()}},touchMove:function(e){if(!(!this.canTouchScroll||e.targetTouches.length>1||e.scale&&1!==e.scale)){var t=e.targetTouches[0],i=this.options.direction;this.endPos={x:t.pageX-this.startPos.x,y:t.pageY-this.startPos.y},event.preventDefault();var n=Math.abs(this.endPos.x)<Math.abs(this.endPos.y)?1:0;1===n&&i<2?this.yPos=this.startPosY+this.endPos.y:0===n&&i>1&&(this.xPos=this.startPosX+this.endPos.x)}},touchEnd:function(){var e=this;if(this.canTouchScroll){var t=void 0,i=this.options.direction;if(this.delay=50,1===i)this.yPos>0&&(this.yPos=0);else if(0===i){var n=this.realBoxHeight/2*-1;this.yPos<n&&(this.yPos=n)}else if(2===i)this.xPos>0&&(this.xPos=0);else if(3===i){var a=-1*this.realBoxWidth;this.xPos<a&&(this.xPos=a)}t&&clearTimeout(t),t=setTimeout((function(){e.delay=0,e._move()}),this.delay)}},enter:function(){this.hoverStopSwitch&&this._stopMove()},leave:function(){this.hoverStopSwitch&&this._startMove()},_move:function(){this.isHover||(this._cancle(),this.reqFrame=requestAnimationFrame(function(){var e=this,t=this.realBoxHeight/2,i=this.realBoxWidth/2,n=this.options,a=n.direction,r=n.waitTime,o=this.step;1===a?(Math.abs(this.yPos)>=t&&(this.$emit("ScrollEnd"),this.yPos=0),this.yPos-=o):0===a?(this.yPos>=0&&(this.$emit("ScrollEnd"),this.yPos=-1*t),this.yPos+=o):2===a?(Math.abs(this.xPos)>=i&&(this.$emit("ScrollEnd"),this.xPos=0),this.xPos-=o):3===a&&(this.xPos>=0&&(this.$emit("ScrollEnd"),this.xPos=-1*i),this.xPos+=o),this.singleWaitTime&&clearTimeout(this.singleWaitTime),this.realSingleStopHeight?Math.abs(this.yPos)%this.realSingleStopHeight<o?this.singleWaitTime=setTimeout((function(){e._move()}),r):this._move():this.realSingleStopWidth&&Math.abs(this.xPos)%this.realSingleStopWidth<o?this.singleWaitTime=setTimeout((function(){e._move()}),r):this._move()}.bind(this)))},_initMove:function(){var e=this;this.$nextTick((function(){var t=e.options.switchDelay,i=e.autoPlay,n=e.isHorizontal;if(e._dataWarm(e.data),e.copyHtml="",n){e.height=e.$refs.wrap.offsetHeight,e.width=e.$refs.wrap.offsetWidth;var a=e.$refs.slotList.offsetWidth;i&&(a=2*a+1),e.$refs.realBox.style.width=a+"px",e.realBoxWidth=a}if(!i)return e.ease="linear",void(e.delay=t);e.ease="ease-in",e.delay=0,e.scrollSwitch?(e.copyHtml=e.$refs.slotList.innerHTML,setTimeout((function(){e.realBoxHeight=e.$refs.realBox.offsetHeight,e._move()}),0)):(e._cancle(),e.yPos=e.xPos=0)}))},_dataWarm:function(e){e.length},_startMove:function(){this.isHover=!1,this._move()},_stopMove:function(){this.isHover=!0,this.singleWaitTime&&clearTimeout(this.singleWaitTime),this._cancle()}},mounted:function(){this._initMove()},watch:{data:function(e,t){this._dataWarm(e),n(e,t)||this.reset()},autoPlay:function(e){e?this.reset():this._stopMove()}},beforeCreate:function(){this.reqFrame=null,this.singleWaitTime=null,this.isHover=!1,this.ease="ease-in"},beforeDestroy:function(){this._cancle(),clearTimeout(this.singleWaitTime)}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(2),a=function(e){return e&&e.__esModule?e:{default:e}}(n);a.default.install=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.component(t.componentName||a.default.name,a.default)},"undefined"!=typeof window&&window.Vue&&Vue.component(a.default.name,a.default),t.default=a.default},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=i.n(n);for(var r in n)"default"!==r&&function(e){i.d(t,e,(function(){return n[e]}))}(r);var o=i(7),s=i(3),l=s(a.a,o.a,!1,null,null,null);t.default=l.exports},function(e,t){e.exports=function(e,t,i,n,a,r){var o,s=e=e||{},l=typeof e.default;"object"!==l&&"function"!==l||(o=e,s=e.default);var c,u="function"==typeof s?s.options:s;if(t&&(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0),i&&(u.functional=!0),a&&(u._scopeId=a),r?(c=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),n&&n.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(r)},u._ssrRegister=c):n&&(c=n),c){var d=u.functional,f=d?u.render:u.beforeCreate;d?(u._injectStyles=c,u.render=function(e,t){return c.call(t),f(e,t)}):u.beforeCreate=f?[].concat(f,c):[c]}return{esModule:o,exports:s,options:u}}},function(e,t){var i=function(){window.cancelAnimationFrame=function(){return window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||window.msCancelAnimationFrame||function(e){return window.clearTimeout(e)}}(),window.requestAnimationFrame=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return window.setTimeout(e,1e3/60)}}()};e.exports=i},function(e,t){var i=function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(var i=0;i<e.length;++i)if(e[i]!==t[i])return!1;return!0};e.exports=i},function(e,t){function i(){Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var e=void 0,t=void 0,a=void 0,r=void 0,o=void 0,s=void 0,l=1,c=arguments[0]||{},u=!1,d=arguments.length;if("boolean"==typeof c&&(u=c,c=arguments[1]||{},l++),"object"!==(void 0===c?"undefined":n(c))&&"function"!=typeof c&&(c={}),l===d)return c;for(;l<d;l++)if(null!=(t=arguments[l]))for(e in t)a=c[e],r=t[e],o=Array.isArray(r),u&&r&&("object"===(void 0===r?"undefined":n(r))||o)?(o?(o=!1,s=a&&Array.isArray(a)?a:[]):s=a&&"object"===(void 0===a?"undefined":n(a))?a:{},c[e]=i(u,s,r)):void 0!==r&&(c[e]=r);return c}var 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.exports=i},function(e,t,i){"use strict";var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{ref:"wrap"},[e.navigation?i("div",{class:e.leftSwitchClass,style:e.leftSwitch,on:{click:e.leftSwitchClick}},[e._t("left-switch")],2):e._e(),e._v(" "),e.navigation?i("div",{class:e.rightSwitchClass,style:e.rightSwitch,on:{click:e.rightSwitchClick}},[e._t("right-switch")],2):e._e(),e._v(" "),i("div",{ref:"realBox",style:e.pos,on:{mouseenter:e.enter,mouseleave:e.leave,touchstart:e.touchStart,touchmove:e.touchMove,touchend:e.touchEnd}},[i("div",{ref:"slotList",style:e.float},[e._t("default")],2),e._v(" "),i("div",{style:e.float,domProps:{innerHTML:e._s(e.copyHtml)}})])])},a=[],r={render:n,staticRenderFns:a};t.a=r}]).default}))},a93a:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"medical-audit-wrapper"},[i("div",{staticClass:"medical-audit-content"},[i("div",[i("h3",[e._v("\n "+e._s(e.$t("trials:medicalFeedback:title:result"))),e.auditInfo.SubjectCode?i("span",[e._v("("+e._s(e.auditInfo.SubjectCode)+" | "+e._s(e.auditInfo.TaskBlindName)+" | "+e._s(e.$fd("ArmEnum",e.auditInfo.ArmEnum))+")")]):e._e()]),e._v(" "),Object.keys(e.auditInfo).length>0?i("HistoricAssessment",{attrs:{"audit-info":e.auditInfo,"row-data":e.rowData}}):e._e()],1),e._v(" "),i("div",[i("h3",[e._v(e._s(e.$t("trials:medicalFeedback:title:auditQuestions")))]),e._v(" "),e.auditInfo.QuestionAnswerList&&e.auditInfo.QuestionAnswerList.length>0?i("Issues",{ref:"auditIssues",attrs:{"question-answer-list":e.auditInfo.QuestionAnswerList,"task-medical-review-id":e.taskMedicalReviewId,"audit-state":e.auditInfo.AuditState}}):e._e()],1),e._v(" "),i("div",[i("h3",[e._v(e._s(e.$t("trials:medicalFeedback:title:conclusions")))]),e._v(" "),e.auditInfo.MedicalReviewInfo&&Object.keys(e.auditInfo.MedicalReviewInfo).length>0?i("Conclusions",{ref:"auditConclusions",attrs:{"medical-review-info":e.auditInfo.MedicalReviewInfo,"audit-state":e.auditInfo.AuditState,"visit-task-id":e.visitTaskId,"subject-code":e.auditInfo.SubjectCode,"task-blind-name":e.auditInfo.TaskBlindName},on:{getMedicalAuditList:e.getMedicalAuditList}}):e._e()],1)]),e._v(" "),i("div",{staticClass:"medical-audit-bottom-btn"},[i("el-divider"),e._v(" "),e.auditInfo.MedicalReviewInfo?i("el-button",{on:{click:e.handleCancel}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]):e._e(),e._v(" "),e.auditInfo.MedicalReviewInfo&&14===e.userTypeEnumInt&&2!==e.auditInfo.AuditState?i("el-button",{attrs:{type:"primary"},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")]):e._e(),e._v(" "),e.auditInfo.MedicalReviewInfo&&e.isSendMessage?i("el-button",{attrs:{type:"primary"},on:{click:e.handleQc}},[e._v("\n "+e._s(e.$t("trials:medicalFeedback:title:qaRecord"))+"\n ")]):e._e(),e._v(" "),e.auditInfo.MedicalReviewInfo&&14===e.userTypeEnumInt&&2!==e.auditInfo.AuditState?i("el-button",{attrs:{type:"primary"},on:{click:e.handleAudit}},[e._v("\n "+e._s(e.$t("trials:medicalFeedback:button:auditCompleted"))+"\n ")]):e._e(),e._v(" "),e.auditInfo.MedicalReviewInfo&&14===e.userTypeEnumInt&&2!==e.auditInfo.AuditState?i("el-button",{attrs:{type:"primary"},on:{click:e.getNextTask}},[e._v("\n "+e._s(e.$t("trials:medicalFeedback:button:nextTask"))+"\n ")]):e._e()],1),e._v(" "),e.signVisible?i("el-dialog",{attrs:{visible:e.signVisible,"close-on-click-modal":!1,width:"600px","custom-class":"base-dialog-wrapper","append-to-body":""},on:{"update:visible":function(t){e.signVisible=t}}},[i("div",{attrs:{slot:"title"},slot:"title"},[i("span",{staticStyle:{"font-size":"18px"}},[e._v("\n "+e._s(e.$t("common:dialogTitle:sign"))+"\n ")]),e._v(" "),i("span",{staticStyle:{"font-size":"12px","margin-left":"5px"}},[e._v("\n "+e._s("("+e.$t("common:label:sign")+e.currentUser+")")+"\n ")])]),e._v(" "),i("SignForm",{ref:"signForm",attrs:{"sign-code-enum":e.signCode},on:{closeDialog:e.closeSignDialog}})],1):e._e()],1)},a=[],r=i("db72"),o=i("3e42"),s=i("d0f9"),l=i("3d8c"),c=i("fec6"),u=i("179b"),d=i("7a9e"),f={name:"MedicalAudit",components:{HistoricAssessment:s["default"],Issues:l["default"],Conclusions:c["default"],SignForm:u["default"]},props:{taskMedicalReviewId:{type:String,required:!0},visitTaskId:{type:String,required:!0},rowData:{type:Object,default:function(){return{}}}},data:function(){return{loading:!1,auditInfo:{},signText:"",signCode:null,currentUser:zzSessionStorage.getItem("userName"),signVisible:!1,userTypeEnumInt:1*zzSessionStorage.getItem("userTypeEnumInt"),isSendMessage:!1}},mounted:function(){this.getInfos()},methods:{getInfos:function(){var e=this;this.loading=!0;var t={trialId:this.$route.query.trialId,taskMedicalReviewId:this.taskMedicalReviewId};Object(o["rc"])(t).then((function(t){e.auditInfo=Object(r["a"])({},t.Result),e.isSendMessage=t.Result.IsSendMessage,e.loading=!1})).catch((function(){e.loading=!1}))},handleAudit:function(){var e=this;this.$refs["auditConclusions"].isClosedDialog||!this.$refs["auditConclusions"].form.IsHaveQuestion?(this.loading=!0,this.$refs["auditIssues"].handleSave(!1).then((function(){e.$refs["auditConclusions"].handleSave(!1).then((function(){e.loading=!1,e.isSendMessage=e.$refs["auditConclusions"].form.IsHaveQuestion;var t=d["default"].processSignature.MedicalAudit;e.signCode=t,e.signVisible=!0})).catch((function(){e.loading=!1}))})).catch((function(){e.loading=!1}))):this.$alert(this.$t("trials:medicalFeedback:message:closeQC"),{callback:function(e){}})},handleSave:function(){var e=this;this.loading=!0,this.$refs["auditIssues"].handleSave(!1).then((function(){e.$refs["auditConclusions"].handleSave(!1).then((function(){e.loading=!1,e.isSendMessage=e.$refs["auditConclusions"].form.IsHaveQuestion})).catch((function(){e.loading=!1}))})).catch((function(){e.loading=!1}))},handleQc:function(){this.$refs["auditConclusions"].handleReply()},getNextTask:function(){var e=this;this.loading=!0,this.$refs["auditIssues"].save().then((function(t){t?e.$refs["auditConclusions"].save().then((function(i){e.disPatchNextTask(!(!t||!i))})).catch((function(t){e.loading=!1})):e.disPatchNextTask(!1)})).catch((function(t){e.loading=!1}))},disPatchNextTask:function(e){var t=this,i=e?this.$t("trials:medicalFeedback:message:goNextTask02"):this.$t("trials:medicalFeedback:message:goNextTask03");this.$confirm(i,{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.loading=!0,t.$emit("nextTask",t.taskMedicalReviewId)})).catch((function(e){t.loading=!1}))},closeSignDialog:function(e,t){e?this.signConfirm(t):this.signVisible=!1},signConfirm:function(e){var t=this;this.loading=!0;var i={data:{taskMedicalReviewId:this.taskMedicalReviewId},signInfo:e};Object(o["b"])(i).then((function(e){e.IsSuccess&&(t.$message.success(t.$t("common:message:savedSuccessfully")),t.$refs["signForm"].btnLoading=!1,t.signVisible=!1),t.loading=!1,t.$emit("getList"),t.auditInfo.AuditState=2,t.$confirm(t.$t("trials:medicalFeedback:message:goNextTask01"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.loading=!0,t.$emit("nextTask",t.taskMedicalReviewId)})).catch((function(e){}))})).catch((function(e){t.loading=!1,t.$refs["signForm"].btnLoading=!1}))},nextTask:function(){this.$emit("nextTask",this.taskMedicalReviewId)},handleCancel:function(){this.$emit("close")},getMedicalAuditList:function(){this.$emit("getList")}}},h=f,p=(i("98c2"),i("2877")),m=Object(p["a"])(h,n,a,!1,null,"95377778",null);t["default"]=m.exports},a96b:function(e,t,i){var n=i("3eba"),a=n.extendComponentModel({type:"tooltip",dependencies:["axisPointer"],defaultOption:{zlevel:0,z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:!1,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(50,50,50,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#fff",fontSize:14}}});e.exports=a},a990:function(e,t,i){"use strict";i("a24f")},a991:function(e,t,i){var n=i("6d8b"),a=i("e86a"),r=i("84ce"),o=i("e0d3"),s=o.makeInner,l=s();function c(e,t){t=t||[0,360],r.call(this,"angle",e,t),this.type="category"}c.prototype={constructor:c,pointToData:function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},dataToAngle:r.prototype.dataToCoord,angleToData:r.prototype.coordToData,calculateCategoryInterval:function(){var e=this,t=e.getLabelModel(),i=e.scale,n=i.getExtent(),r=i.count();if(n[1]-n[0]<1)return 0;var o=n[0],s=e.dataToCoord(o+1)-e.dataToCoord(o),c=Math.abs(s),u=a.getBoundingRect(o,t.getFont(),"center","top"),d=Math.max(u.height,7),f=d/c;isNaN(f)&&(f=1/0);var h=Math.max(0,Math.floor(f)),p=l(e.model),m=p.lastAutoInterval,g=p.lastTickCount;return null!=m&&null!=g&&Math.abs(m-h)<=1&&Math.abs(g-r)<=1&&m>h?h=m:(p.lastTickCount=r,p.lastAutoInterval=h),h}},n.inherits(c,r);var u=c;e.exports=u},a9f8:function(e,t,i){},a9fb:function(e,t,i){"use strict";i("0a2a")},aa01:function(e,t,i){var n=i("6d8b"),a=i("4f85"),r=i("06c7"),o=i("4319"),s=i("55ac"),l=s.wrapTreePathInfo,c=a.extend({type:"series.sunburst",_viewRoot:null,getInitialData:function(e,t){var i={name:e.name,children:e.data};u(i);var a=n.map(e.levels||[],(function(e){return new o(e,this,t)}),this),s=r.createTree(i,this,l);function l(e){e.wrapMethod("getItemModel",(function(e,t){var i=s.getNodeByDataIndex(t),n=a[i.depth];return n&&(e.parentModel=n),e}))}return s.data},optionUpdated:function(){this.resetViewRoot()},getDataParams:function(e){var t=a.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return t.treePathInfo=l(i,this),t},defaultOption:{zlevel:0,z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,percentPrecision:2,stillShowZeroSum:!0,highlightPolicy:"descendant",nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},highlight:{itemStyle:{opacity:1}},downplay:{itemStyle:{opacity:.5},label:{opacity:.6}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicOut",data:[],levels:[],sort:"desc"},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)}});function u(e){var t=0;n.each(e.children,(function(e){u(e);var i=e.value;n.isArray(i)&&(i=i[0]),t+=i}));var i=e.value;n.isArray(i)&&(i=i[0]),(null==i||isNaN(i))&&(i=t),i<0&&(i=0),n.isArray(e.value)?e.value[0]=i:e.value=i}e.exports=c},aa1c:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"search-container"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:consistencyCheck:table:siteId")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:"",filterable:""},model:{value:e.searchData.TrialSiteCode,callback:function(t){e.$set(e.searchData,"TrialSiteCode",t)},expression:"searchData.TrialSiteCode"}},e._l(e.siteOptions,(function(e,t){return i("el-option",{key:t,attrs:{label:e,value:e}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:consistencyCheck:table:subjectId")}},[i("el-input",{staticStyle:{width:"100px"},model:{value:e.searchData.SubjectCode,callback:function(t){e.$set(e.searchData,"SubjectCode",t)},expression:"searchData.SubjectCode"}})],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:consistencyAnalysis:table:taskName")}},[i("el-input",{staticStyle:{width:"100px"},attrs:{clearable:""},model:{value:e.searchData.TaskName,callback:function(t){e.$set(e.searchData,"TaskName",t)},expression:"searchData.TaskName"}})],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:consistencyAnalysis:table:role")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.ArmEnum,callback:function(t){e.$set(e.searchData,"ArmEnum",t)},expression:"searchData.ArmEnum"}},e._l(e.$d.ArmEnum,(function(e){return i("el-option",{key:"ArmEnum"+e.label,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:consistencyAnalysis:table:reader")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.DoctorUserId,callback:function(t){e.$set(e.searchData,"DoctorUserId",t)},expression:"searchData.DoctorUserId"}},e._l(e.DoctorUserList,(function(e){return i("el-option",{key:"DoctorUserId"+e.DoctorUserId,attrs:{value:e.DoctorUserId,label:e.UserName+"("+e.FullName+")"}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:consistencyAnalysis:table:criterionName")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.TrialReadingCriterionId,callback:function(t){e.$set(e.searchData,"TrialReadingCriterionId",t)},expression:"searchData.TrialReadingCriterionId"}},e._l(e.trialCriterionList,(function(e){return i("el-option",{key:"TrialReadingCriterionId"+e.TrialReadingCriterionId,attrs:{value:e.TrialReadingCriterionId,label:e.TrialReadingCriterionName}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:consistencyAnalysis:table:isUrgent")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.IsUrgent,callback:function(t){e.$set(e.searchData,"IsUrgent",t)},expression:"searchData.IsUrgent"}},e._l(e.$d.YesOrNo,(function(e){return i("el-option",{key:"IsUrgent"+e.label,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:consistencyAnalysis:table:taskStatus")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.TaskState,callback:function(t){e.$set(e.searchData,"TaskState",t)},expression:"searchData.TaskState"}},e._l(e.$d.TaskState,(function(e){return i("el-option",{key:"TaskState"+e.label,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:consistencyAnalysis:table:taskType")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.ReadingCategory,callback:function(t){e.$set(e.searchData,"ReadingCategory",t)},expression:"searchData.ReadingCategory"}},e._l(e.$d.ReadingCategory,(function(e){return i("el-option",{key:"ReadingCategory"+e.label,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:consistencyAnalysis:table:category")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.IsSelfAnalysis,callback:function(t){e.$set(e.searchData,"IsSelfAnalysis",t)},expression:"searchData.IsSelfAnalysis"}},e._l(e.$d.IsSelfAnalysis,(function(e){return i("el-option",{key:"IsSelfAnalysis"+e.label,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:consistencyAnalysis:table:auditTime")}},[i("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd HH:mm:ss",type:"datetimerange"},on:{change:e.changeTimeList},model:{value:e.timeList,callback:function(t){e.timeList=t},expression:"timeList"}})],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"}},[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-download"},on:{click:function(t){return e.handleExport(1)}}},[e._v("\n "+e._s(e.$t("common:button:export"))+e._s(e.$t("trials:consistencyAnalysis:button:self"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-download"},on:{click:function(t){return e.handleExport(2)}}},[e._v("\n "+e._s(e.$t("common:button:export"))+e._s(e.$t("trials:consistencyAnalysis:button:group"))+"\n ")]),e._v(" "),e.hasPermi(["trials:trials-panel:reading:consistency-analysis:edit"])?i("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.openTaskConsistentRule(!0)}}},[e._v("\n "+e._s(e.$t("trials:consistencyAnalysis:button:self"))+"\n ")]):e._e(),e._v(" "),e.hasPermi(["trials:trials-panel:reading:consistency-analysis:edit"])?i("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.openTaskConsistentRule(!1)}}},[e._v("\n "+e._s(e.$t("trials:consistencyAnalysis:button:group"))+"\n ")]):e._e()],1)],1)],1),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"},{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortChange}},[i("el-table-column",{attrs:{prop:"IsUrgent",label:e.$t("trials:consistencyAnalysis:table:isUrgent"),"show-overflow-tooltip":"","min-width":"100",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsUrgent?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsUrgent)))]):i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsUrgent)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskCode",label:e.$t("trials:consistencyAnalysis:table:taskCode"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialSiteCode",label:e.$t("trials:consistencyAnalysis:table:siteCode"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode",label:e.$t("trials:consistencyAnalysis:table:subjectCode"),"min-width":"120",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.SubjectCode)+"\n "),t.row.IsReReadingOrBackInfluenceAnalysis?i("span",{staticClass:"status-primary-circle"},[e._v("\n "+e._s(e.$t("trials:consistencyAnalysis:table:impact"))+"\n ")]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitTaskNum",label:e.$t("trials:consistencyAnalysis:table:taskName"),"min-width":"120",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.TaskName)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskBlindName",label:e.$t("trials:consistencyAnalysis:table:taskBlindName"),"min-width":"140",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ReadingCategory",label:e.$t("trials:consistencyAnalysis:table:taskType"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.ReadingCategory?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e(),e._v(" "),2===t.row.ReadingCategory?i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e(),e._v(" "),4===t.row.ReadingCategory?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e(),e._v(" "),5===t.row.ReadingCategory?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsSelfAnalysis",label:e.$t("trials:consistencyAnalysis:table:category"),"min-width":"160",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsSelfAnalysis?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("IsSelfAnalysis",t.row.IsSelfAnalysis)))]):i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("IsSelfAnalysis",t.row.IsSelfAnalysis)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ArmEnum",label:e.$t("trials:consistencyAnalysis:table:role"),"min-width":"80",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.ArmEnum?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ArmEnum",t.row.ArmEnum)))]):e._e(),e._v(" "),2===t.row.ArmEnum?i("el-tag",{attrs:{type:"success"}},[e._v(e._s(e.$fd("ArmEnum",t.row.ArmEnum)))]):e._e(),e._v(" "),3===t.row.ArmEnum?i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("ArmEnum",t.row.ArmEnum)))]):e._e(),e._v(" "),4===t.row.ArmEnum?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ArmEnum",t.row.ArmEnum)))]):e._e(),e._v(" "),5===t.row.ArmEnum?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("ArmEnum",t.row.ArmEnum)))]):e._e(),e._v(" "),8===t.row.ArmEnum?i("el-tag",{staticStyle:{"border-color":"#4c2791",color:"#4c2791"}},[e._v(e._s(e.$fd("ArmEnum",t.row.ArmEnum)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:e.$t("trials:consistencyAnalysis:table:reader"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.UserName)+"("+e._s(t.row.FullName)+")\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialReadingCriterionName",label:e.$t("trials:consistencyAnalysis:table:criterionName"),"min-width":"180",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskState",label:e.$t("trials:consistencyAnalysis:table:taskStatus"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.TaskState?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e(),e._v(" "),1===t.row.TaskState?i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e(),e._v(" "),3===t.row.TaskState?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e(),e._v(" "),4===t.row.TaskState?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"AllocateTime",label:e.$t("trials:consistencyAnalysis:table:auditTime"),"min-width":"140",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"SuggesteFinishedTime",label:e.$t("trials:consistencyAnalysis:table:suggesteFinishedTime"),"min-width":"140",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ReadingTaskState",label:e.$t("trials:consistencyAnalysis:table:reviewStatus"),"min-width":"120",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[2===t.row.ReadingTaskState?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ReadingTaskState",t.row.ReadingTaskState)))]):i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ReadingTaskState",t.row.ReadingTaskState)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"SignTime",label:e.$t("trials:consistencyAnalysis:table:signTime"),"min-width":"140",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ReReadingApplyState",label:e.$t("trials:consistencyAnalysis:table:applyStatus"),"min-width":"140",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[4===t.row.ReReadingApplyState||5===t.row.ReReadingApplyState?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ReReadingApplyState",t.row.ReReadingApplyState)))]):e._e(),e._v(" "),2===t.row.ReReadingApplyState?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ReReadingApplyState",t.row.ReReadingApplyState)))]):e._e(),e._v(" "),3===t.row.ReReadingApplyState?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("ReReadingApplyState",t.row.ReReadingApplyState)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsReReadingOrBackInfluenceAnalysis",label:e.$t("trials:consistencyAnalysis:table:impactInfluence"),"min-width":"160",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsReReadingOrBackInfluenceAnalysis?e._e():i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsReReadingOrBackInfluenceAnalysis)))]),e._v(" "),t.row.IsReReadingOrBackInfluenceAnalysis?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsReReadingOrBackInfluenceAnalysis)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{fixed:"right",label:e.$t("common:action:action"),width:"110"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{disabled:2!==t.row.ReadingTaskState,icon:"el-icon-view",circle:"",title:e.$t("trials:consistencyAnalysis:action:view")},on:{click:function(i){return e.lookReadingResults(t.row)}}}),e._v(" "),e.hasPermi(["trials:trials-panel:reading:consistency-analysis:edit"])?i("el-button",{attrs:{disabled:!t.row.IsReReadingOrBackInfluenceAnalysis||1===t.row.TaskState,icon:"el-icon-close",circle:"",title:e.$t("trials:consistencyAnalysis:action:setInvalid")},on:{click:function(i){return e.setAnalysisTaskInvalid(t.row)}}}):e._e()]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}}),e._v(" "),i("div",{staticClass:"remark"},[i("span",{staticClass:"status-primary-circle"},[e._v("\n "+e._s(e.$t("trials:consistencyAnalysis:table:impact"))+"\n ")]),e._v(" "),i("span",[e._v(" "+e._s(e.$t("trials:consistencyAnalysis:title:impactInfluence")))])]),e._v(" "),e.ReaderRulesVisible?i("el-dialog",{attrs:{title:e.$t("trials:consistencyAnalysis:button:self"),visible:e.ReaderRulesVisible,width:"1200px","append-to-body":"","close-on-click-modal":!1,"custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.ReaderRulesVisible=t}}},[i("el-tabs",{attrs:{type:"border-card"},on:{"tab-click":e.clickTab},model:{value:e.TrialReadingCriterionId,callback:function(t){e.TrialReadingCriterionId=t},expression:"TrialReadingCriterionId"}},e._l(e.trialCriterionList,(function(t){return i("el-tab-pane",{key:t.TrialReadingCriterionId,attrs:{label:t.TrialReadingCriterionName,name:t.TrialReadingCriterionId}},[i("el-button",{staticStyle:{position:"absolute",right:"20px",top:"10px","z-index":"100"},attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:function(t){return e.addReaderRulesForm()}}},[e._v("\n "+e._s(e.$t("trials:selftConsistencyAnalysis:button:config"))+"\n ")]),e._v(" "),e.IsSelfAnalysis?i("div",{staticClass:"base-dialog-body",staticStyle:{"margin-top":"32px"}},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.TaskConsistentRuleList,stripe:""}},[i("el-table-column",{attrs:{prop:"TaskCode",label:e.$t("trials:selftConsistencyAnalysis:table:reader"),"min-width":"140","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return t.row.AnalysisDoctorUser?[e._v("\n "+e._s(t.row.AnalysisDoctorUser.UserName)+"("+e._s(t.row.AnalysisDoctorUser.FullName)+")\n ")]:void 0}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"PlanVisitCount",label:e.$t("trials:selftConsistencyAnalysis:table:visitNum"),"min-width":"90","show-overflow-tooltip":""}}),e._v(" "),e.IsSelfAnalysis?i("el-table-column",{attrs:{prop:"IntervalWeeks",label:e.$t("trials:selftConsistencyAnalysis:table:intervalPeriod"),"min-width":"100","show-overflow-tooltip":""}}):e._e(),e._v(" "),i("el-table-column",{attrs:{prop:"IsHaveReadingPeriod",label:e.$t("trials:selftConsistencyAnalysis:table:isReadingPeriod"),"min-width":"180","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsHaveReadingPeriod?i("el-tag",{attrs:{size:"success"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsHaveReadingPeriod)))]):i("el-tag",{attrs:{size:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsHaveReadingPeriod)))])]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"IsGenerateGlobalTask",label:e.$t("trials:selftConsistencyAnalysis:table:isGenerateGlobalTask"),"min-width":"180","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsGenerateGlobalTask?i("el-tag",{attrs:{size:"success"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsGenerateGlobalTask)))]):i("el-tag",{attrs:{size:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsGenerateGlobalTask)))])]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"PlanSubjectCount",label:e.$t("trials:selftConsistencyAnalysis:table:plannedSubjectNum"),"min-width":"120","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"GeneratedSubjectCount",label:e.$t("trials:selftConsistencyAnalysis:table:createdSubjectNum"),"min-width":"130","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{fixed:"right",label:e.$t("common:action:action"),width:"110"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{circle:"",icon:"el-icon-s-check",title:e.$t("trials:selftConsistencyAnalysis:button:select")},on:{click:function(i){return e.openDoctorConsistentRuleSubjectTable(t.row)}}})]}}],null,!0)})],1)],1):e._e()],1)})),1),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){e.ReaderRulesVisible=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")])],1)],1):e._e(),e._v(" "),e.ReaderRulesVisible2?i("el-dialog",{attrs:{title:e.$t("trials:consistencyAnalysis:button:group"),visible:e.ReaderRulesVisible2,width:"1200px","append-to-body":"","close-on-click-modal":!1,"custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.ReaderRulesVisible2=t}}},[i("el-tabs",{attrs:{type:"border-card"},model:{value:e.TrialReadingCriterionId,callback:function(t){e.TrialReadingCriterionId=t},expression:"TrialReadingCriterionId"}},e._l(e.trialCriterionList,(function(t){return i("el-tab-pane",{key:t.TrialReadingCriterionId,attrs:{label:t.TrialReadingCriterionName,name:t.TrialReadingCriterionId}},[i("el-button",{staticStyle:{position:"absolute",right:"20px",top:"10px","z-index":"100"},attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:function(t){return e.addReaderRulesForm("g")}}},[e._v("\n "+e._s(e.$t("trials:grouptConsistencyAnalysis:button:config"))+"\n ")]),e._v(" "),i("GroupConsistentRuleSubjectTable",{ref:"GroupConsistentRuleSubjectTable"+t.TrialReadingCriterionId,refInFor:!0,staticStyle:{"margin-top":"40px"},attrs:{TrialReadingCriterionId:t.TrialReadingCriterionId,IsSelfAnalysis:e.IsSelfAnalysis,changeNum:e.changeNum},on:{close:function(){e.ReaderRulesVisible2=!1,e.rowData={}},getList:function(t){return e.getList()}}})],1)})),1)],1):e._e(),e._v(" "),e.ReaderRulesFormVisible?i("el-dialog",{attrs:{title:""+e.title,visible:e.ReaderRulesFormVisible,width:"480px","close-on-click-modal":!1},on:{"update:visible":function(t){e.ReaderRulesFormVisible=t}}},[i("ReaderRulesForm",{attrs:{isDisable:e.isDisable,TrialReadingCriterionId:e.TrialReadingCriterionId,data:e.rowData,"select-list":e.SelectList,"doctor-user-list":e.DoctorUserList,"is-self-analysis":e.IsSelfAnalysis},on:{close:function(){e.ReaderRulesFormVisible=!1,e.rowData={}},getList:function(t){return e.openTaskConsistentRule(e.IsSelfAnalysis)}}})],1):e._e(),e._v(" "),e.DoctorConsistentRuleSubjectTableVisible?i("el-dialog",{attrs:{title:e.$t("trials:consistencyAnalysis:dialog:selectSubject"),visible:e.DoctorConsistentRuleSubjectTableVisible,width:"1000px","close-on-click-modal":!1},on:{"update:visible":function(t){e.DoctorConsistentRuleSubjectTableVisible=t}}},[i("DoctorConsistentRuleSubjectTable",{attrs:{data:e.rowData},on:{close:function(){e.DoctorConsistentRuleSubjectTableVisible=!1,e.rowData={}},getList:function(t){return e.openTaskConsistentRule(e.IsSelfAnalysis)}}})],1):e._e(),e._v(" "),e.ApplyforReasonVisible?i("el-dialog",{attrs:{title:e.$t("trials:consistencyAnalysis:dialog:applyReread"),visible:e.ApplyforReasonVisible,width:"600px","append-to-body":"","close-on-click-modal":!1,"custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.ApplyforReasonVisible=t}}},[i("div",{staticStyle:{padding:"10px",border:"1px solid #e0e0e0","max-height":"650px","overflow-y":"auto"}},[i("el-form",{ref:"reasonForm",staticClass:"demo-ruleForm",attrs:{rules:e.rules,model:e.ApplyforReasonForm,size:"small","label-width":"120px"}},[i("el-form-item",{attrs:{label:e.$t("trials:consistencyAnalysis:applyReread:reason"),prop:"Type",rules:[{required:!0,message:e.$t("common:ruleMessage:select")}]}},[i("el-radio-group",{model:{value:e.ApplyforReasonForm.Type,callback:function(t){e.$set(e.ApplyforReasonForm,"Type",t)},expression:"ApplyforReasonForm.Type"}},[i("el-radio",{attrs:{label:1}},[e._v(e._s(e.$t("trials:consistencyAnalysis:applyReread:imageReload")))]),e._v(" "),i("el-radio",{attrs:{label:2}},[e._v(e._s(e.$t("trials:consistencyAnalysis:applyReread:other")))])],1)],1),e._v(" "),2===e.ApplyforReasonForm.Type?i("el-form-item",{attrs:{label:e.$t("trials:consistencyAnalysis:applyReread:remark"),prop:"RequestReReadingReason"}},[i("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:e.$t("common:ruleMessage:specify"),maxlength:"500","show-word-limit":""},model:{value:e.ApplyforReasonForm.RequestReReadingReason,callback:function(t){e.$set(e.ApplyforReasonForm,"RequestReReadingReason",t)},expression:"ApplyforReasonForm.RequestReReadingReason"}})],1):e._e()],1)],1),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){e.ApplyforReasonVisible=!1,e.ApplyforReasonForm={Type:null,RequestReReadingReason:null}}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{loading:e.btnLoading,size:"small",type:"primary"},on:{click:e.applyReReading}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)]):e._e()],1)],2)},a=[],r=(i("7f7f"),i("ac6a"),i("db72")),o=i("958c"),s=i("3f2a"),l=i("cbb3"),c=i("5608"),u=i("3114"),d=i("6071"),f=i("333d"),h=i("5f87"),p=function(){return{PageIndex:1,PageSize:20,Asc:!0,SortField:"",TrialId:null,SiteId:null,SubjectId:null,SubjectCode:null,TrialSiteCode:null,IsUrgent:null,TaskName:null,TaskState:null,DoctorUserId:null,ReadingCategory:null,TaskAllocationState:null,BeginAllocateDate:null,EndAllocateDate:null,TrialReadingCriterionId:null}},m={name:"TrialsNotice",components:{BaseContainer:d["default"],Pagination:f["default"],ReaderRulesForm:l["default"],DoctorConsistentRuleSubjectTable:c["default"],GroupConsistentRuleSubjectTable:u["default"]},data:function(){return{TrialReadingCriterionId:null,trialCriterionList:[],searchData:p(),maxLength:0,list:[],siteOptions:[],total:0,loading:!1,ReaderRulesVisible:!1,DoctorConsistentRuleSubjectTableVisible:!1,trialId:this.$route.query.trialId,ReaderRulesVisible2:!1,currentData:{},param:{},DoctorUserList:[],btnLoading:!1,rowData:{},OtherInfo:null,title:null,SelectList:[],TaskConsistentRuleList:[],isDisable:!1,ReaderRulesFormVisible:!1,IsSelfAnalysis:!0,timeList:[],ApplyforReasonVisible:!1,ApplyforReasonForm:{Type:null,RequestReReadingReason:null},rules:{Type:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}],RequestReReadingReason:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}]},changeNum:0}},mounted:function(){this.getList(),this.getSite(),this.getDoctorUserSelectList(),this.getTrialCriterionList()},methods:{handleExport:function(e){var t=this;this.searchData.TrialReadingCriterionId?1===e?Object(s["m"])(this.searchData).then((function(e){})).catch((function(){t.loading=!1})):Object(s["f"])(this.searchData).then((function(e){})).catch((function(){t.loading=!1})):this.$message.error(this.$t("trials:consistencyAnalysis:message:selectCriterion"))},getTrialCriterionList:function(){var e=this;this.loading=!0,Object(o["U"])(this.trialId).then((function(t){e.trialCriterionList=t.Result,e.TrialReadingCriterionId=e.trialCriterionList[0].TrialReadingCriterionId,e.loading=!1})).catch((function(){e.loading=!1}))},setAnalysisTaskInvalid:function(e){var t=this;this.$confirm(this.$t("trials:consistencyAnalysis:applyReread:msg1")).then((function(){t.loading=!0,Object(o["Y"])([e.Id]).then((function(e){t.$message.success(t.$t("trials:consistencyAnalysis:applyReread:msg2")),t.getList(),t.loading=!1})).catch((function(){t.loading=!1}))}))},changeTimeList:function(){this.timeList?(this.searchData.BeginAllocateDate=this.timeList[0],this.searchData.EndAllocateDate=this.timeList[1]):(this.searchData.BeginAllocateDate=null,this.searchData.EndAllocateDate=null)},reReadingHistory:function(e){this.$router.push({path:"/trials/trials-panel/reading/reReadingTracking?trialId=".concat(this.$route.query.trialId,"&trialCode=").concat(this.$route.query.trialCode,"&researchProgramNo=").concat(this.$route.query.researchProgramNo,"&SiteId=").concat(e.SiteId,"&SubjectCode=").concat(e.SubjectCode,"&TaskName=").concat(e.TaskName,"&DoctorUserId=").concat(e.DoctorUserId)})},applyReReading:function(){var e=this;this.$refs.reasonForm.validate((function(t){if(t){e.loading=!0,e.btnLoading=!0;var i={TaskIdList:[e.rowData.Id],TrialId:e.$route.query.trialId,RequestReReadingType:2,RequestReReadingReason:2===e.ApplyforReasonForm.Type?e.ApplyforReasonForm.RequestReReadingReason:e.$t("trials:consistencyAnalysis:applyReread:imageReload")};Object(o["e"])(i).then((function(t){e.loading=!1,e.btnLoading=!1,e.$message.success(e.$t("trials:consistencyAnalysis:applyReread:msg3")),e.getList(),e.ApplyforReasonVisible=!1})).catch((function(){e.loading=!1,e.btnLoading=!1}))}}))},lookReadingResults:function(e){window.localStorage.setItem("TrialReadingCriterionId",this.TrialReadingCriterionId);var t=Object(h["a"])(),i="";i=0===e.ReadingTool?"/readingDicoms?TrialReadingCriterionId=".concat(e.TrialReadingCriterionId,"&trialId=").concat(e.TrialId,"&subjectCode=").concat(e.SubjectCode,"&subjectId=").concat(e.SubjectId,"&visitTaskId=").concat(e.Id,"&isReadingTaskViewInOrder=").concat(e.IsReadingTaskViewInOrder,"&criterionType=").concat(e.CriterionType,"&readingTool=").concat(e.ReadingTool,"&TokenKey=").concat(t):"/noneDicomReading?TrialReadingCriterionId=".concat(e.TrialReadingCriterionId,"&trialId=").concat(e.TrialId,"&subjectCode=").concat(e.SubjectCode,"&subjectId=").concat(e.SubjectId,"&visitTaskId=").concat(e.Id,"&isReadingTaskViewInOrder=").concat(e.IsReadingTaskViewInOrder,"&criterionType=").concat(e.CriterionType,"&readingTool=").concat(e.ReadingTool,"&TokenKey=").concat(t);var n=this.$router.resolve({path:i});window.open(n.href,"_blank")},openApplyReReading:function(e){this.rowData=Object(r["a"])({},e),this.ApplyforReasonVisible=!0,this.ApplyforReasonForm={Type:null,Remake:null}},editReaderRulesForm:function(e){this.rowData=Object(r["a"])({},e),this.ReaderRulesFormVisible=!0},openDoctorConsistentRuleSubjectTable:function(e){this.rowData=Object(r["a"])({},e),this.DoctorConsistentRuleSubjectTableVisible=!0},addReaderRulesForm:function(e){var t=this;this.isDisable=!1,e?this.$refs["GroupConsistentRuleSubjectTable".concat(this.TrialReadingCriterionId)][0].list&&this.$refs["GroupConsistentRuleSubjectTable".concat(this.TrialReadingCriterionId)][0].list.forEach((function(e){e.IsHaveGeneratedTask&&(t.isDisable=!0)})):this.TaskConsistentRuleList.length>0?(this.rowData=Object(r["a"])({},this.TaskConsistentRuleList[0]),this.TaskConsistentRuleList.forEach((function(e){e.GeneratedSubjectCount&&(t.isDisable=!0)}))):this.rowData={},this.ReaderRulesFormVisible=!0},clickTab:function(e,t){var i=this;this.loading=!0,Object(o["L"])({TrialId:this.trialId,TrialReadingCriterionId:e.name}).then((function(e){i.TaskConsistentRuleList=e.Result,i.loading=!1})).catch((function(){i.loading=!1}))},openTaskConsistentRule:function(e){var t=this;this.loading=!0,e?(this.title=this.$t("trials:selftConsistencyAnalysis:button:config"),Object(o["L"])({TrialId:this.trialId,TrialReadingCriterionId:this.TrialReadingCriterionId}).then((function(i){t.ReaderRulesFormVisible=!1,t.DoctorConsistentRuleSubjectTableVisible=!1,t.TaskConsistentRuleList=i.Result,t.IsSelfAnalysis=e,t.ReaderRulesVisible=!0,t.getList(),t.loading=!1})).catch((function(){t.loading=!1}))):(this.changeNum++,this.ReaderRulesFormVisible=!1,this.title=this.$t("trials:grouptConsistencyAnalysis:button:config"),this.IsSelfAnalysis=e,this.ReaderRulesVisible2=!0,this.loading=!1)},getDoctorUserSelectList:function(){var e=this;Object(o["A"])(this.$route.query.trialId).then((function(t){e.DoctorUserList=t.Result,e.DoctorUserList.length>0&&(e.ReadingType=e.DoctorUserList[0].ReadingType)}))},getList:function(){var e=this;this.searchData.TrialId=this.$route.query.trialId,this.loading=!0,Object(o["u"])(this.searchData).then((function(t){e.loading=!1,e.OtherInfo=t.OtherInfo,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount,e.ReaderRulesVisible2=!1,e.AssignMedicalReviewTaskVisible=!1})).catch((function(){e.loading=!1}))},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=p(),this.getList()},getSite:function(){var e=this;Object(o["V"])(this.trialId).then((function(t){e.siteOptions=t.Result}))},handleSortChange:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()}}},g=m,v=(i("455b"),i("2877")),b=Object(v["a"])(g,n,a,!1,null,"7cfb5fa4",null);t["default"]=b.exports},aa3e:function(e,t,i){var n=i("6d8b");function a(e,t){return t=t||[0,0],n.map(["x","y"],(function(i,n){var a=this.getAxis(i),r=t[n],o=e[n]/2;return"category"===a.type?a.getBandWidth():Math.abs(a.dataToCoord(r-o)-a.dataToCoord(r+o))}),this)}function r(e){var t=e.grid.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:n.bind(a,e)}}}e.exports=r},aa3e1:function(e,t,i){"use strict";i("cf76")},aa48:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"adjustment-list"},[i("div",{staticClass:"list-container clearfix"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],ref:"adjustList",attrs:{size:"small",stripe:"",data:e.list,height:"99%","show-summary":"","summary-method":e.getSummaries},on:{"sort-change":e.sortByColumn,"selection-change":e.selectMore}},[i("el-table-column",{attrs:{type:"selection"}}),e._v(" "),i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"LastName",label:"Name","min-width":"100",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.LastName+" / "+t.row.FirstName))]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ChineseName",label:"Name CN","min-width":"120",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ReviewerCode",label:"Reviewer ID","min-width":"110",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"AdjustPaymentUSD",label:"Amount($)","min-width":"120",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.AdjustPaymentUSD)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"AdjustPaymentCNY",label:"Amount(¥)","min-width":"120",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.row.AdjustPaymentCNY))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Note",label:"Note","min-width":"120","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"YearMonth",label:"Adjust Month","min-width":"120",sortable:"custom","show-overflow-tooltip":""}})],1)],1),e._v(" "),i("div",{staticClass:"pagination"},[i("pagination",{attrs:{total:e.total,page:e.listQuery.PageIndex,limit:e.listQuery.PageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"PageIndex",t)},"update:limit":function(t){return e.$set(e.listQuery,"PageSize",t)},pagination:e.getList}})],1)])},a=[],r=(i("ac6a"),i("c5f6"),i("7878")),o=i("6b95"),s=i("0340"),l=i("333d"),c=i("3339"),u={components:{Pagination:l["default"]},filters:{rounding:function(e){return e?Number(e).toFixed(2):e}},props:{param:{type:Object,default:function(){return{}}}},data:function(){return{listQuery:{PageIndex:1,PageSize:20},list:[],total:0,arrID:[],listLoading:!1}},watch:{param:{handler:function(e,t){this.listQuery.PageIndex=e.PageIndex,this.listQuery.Reviewer=e.Reviewer,this.listQuery.BeginMonth=e.BeginMonth,this.listQuery.EndMonth=e.EndMonth},deep:!0}},mounted:function(){this.listQuery.Reviewer=this.param.Reviewer,this.listQuery.BeginMonth=this.param.BeginMonth,this.listQuery.EndMonth=this.param.EndMonth,this.getList()},methods:{getList:function(){var e=this;this.listLoading=!0,Object(o["r"])(this.listQuery).then((function(t){e.listLoading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.listLoading=!1}))},resetList:function(){this.listQuery.PageIndex=1,this.getList()},selectMore:function(e){for(var t=[],i=0;i<e.length;i++)t.push(e[i].Id);this.arrID=t},sortByColumn:function(e){"ascending"===e.order?this.listQuery.Asc=!0:this.listQuery.Asc=!1,this.listQuery.SortField=e.prop,this.listQuery.PageIndex=1,this.getList()},errorMonthFormatter:function(e){return e.ErrorYearMonth?Object(r["FormatTime"])(new Date(e.ErrorYearMonth),"yyyy-MM"):""},adjustMonthFormatter:function(e){return e.AdjustedYearMonth?Object(r["FormatTime"])(new Date(e.AdjustedYearMonth),"yyyy-MM"):""},getSummaries:function(e){var t=e.columns,i=e.data,n=[];return t.forEach((function(e,t){if(2!==t){if("AdjustPaymentUSD"===e.property){var a=i.map((function(t){return Number(t[e.property])}));a.every((function(e){return isNaN(e)}))||(n[t]=a.reduce((function(e,t){var i=Number(t);return isNaN(i)?e:c["a"].add(e,t)}),0))}if("AdjustPaymentCNY"===e.property){var r=i.map((function(t){return Number(t[e.property])}));r.every((function(e){return isNaN(e)}))||(n[t]=r.reduce((function(e,t){var i=Number(t);return isNaN(i)?e:c["a"].add(e,t)}),0))}}else n[t]="Total (Current Page)"})),n},export:function(){var e=this,t="".concat(this.listQuery.BeginMonth,"--").concat(this.listQuery.EndMonth),i=[{key:"Index",width:5},{key:"LastName",width:15},{key:"FirstName",width:15},{key:"ChineseName",width:15},{key:"ReviewerCode",width:20},{key:"AdjustPaymentUSD",width:15},{key:"AdjustPaymentCNY",width:15},{key:"Note",width:15},{key:"AdjustedYearMonth",width:15}],n="Type:Adjustment Beginning Month:".concat(this.listQuery.BeginMonth," End Month:").concat(this.listQuery.EndMonth),a=["","Surname","Given Name","Name CN","Reviewer ID","Amount($)","Amount(¥)","Note","Adjust Month"],o=[{colIndex:6,format:"#,##0.00"},{colIndex:7,format:"#,##0.00"}],l=0,c=0,u=1,d=this.list.filter((function(t){return e.arrID.indexOf(t.Id)>-1}));d.forEach((function(e){if(l+=e.AdjustPaymentCNY,c+=e.AdjustPaymentUSD,e.AdjustedYearMonth){var t=new Date(e.AdjustedYearMonth);e.AdjustedYearMonth=Object(r["FormatTime"])(t,"yyyy-MM")}e.Index=u++}));var f=["","Total","","","",c,l,"",""];Object(s["a"])(t,i,"Payment History",n,a,d,f,o)}}},d=u,f=(i("1170"),i("2877")),h=Object(f["a"])(d,n,a,!1,null,null,null);t["default"]=h.exports},aa5c:function(e,t,i){},aa81:function(e,t,i){"use strict";i("2e2c")},aaa2:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("el-form",{staticStyle:{position:"relative"},attrs:{size:"small",inline:!0,"label-width":"110px"}},[i("el-divider",{attrs:{"content-position":"left"}},[e._v("阅片规则")]),e._v(" "),i("el-form-item",{staticStyle:{width:"100%"},attrs:{label:"是否肿瘤学阅片"}},[e._v("\n "+e._s(e.IsOncologyReading?"是":"否")+"\n ")]),e._v(" "),Object.keys(e.data).length>0&&!e.data.IsCompleteConfig&&!e.data.IsBeUsed?i("el-button",{staticStyle:{position:"absolute",right:"10px",top:"15px"},attrs:{size:"mini",type:"primary"},on:{click:function(t){return e.handleAdd(1)}}},[e._v("\n 配置\n ")]):e._e()],1),e._v(" "),i("el-form",{staticStyle:{position:"relative"},attrs:{size:"small",inline:!0,"label-width":"110px"}},[i("el-divider",{attrs:{"content-position":"left"}},[e._v("阅片问题")]),e._v(" "),Object.keys(e.data).length>0&&!e.data.IsCompleteConfig&&!e.data.IsBeUsed?i("el-button",{staticStyle:{position:"absolute",right:"10px",top:"15px"},attrs:{size:"mini",type:"primary"},on:{click:function(t){return e.handleAdd(2)}}},[e._v("\n 配置\n ")]):e._e(),e._v(" "),i("el-form-item",{staticStyle:{width:"100%"},attrs:{label:"肿瘤学阅片结果"}})],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.list,stripe:""}},[i("el-table-column",{attrs:{prop:"",label:"序号",width:"50"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.$index+1)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ValueCN",label:"中文值","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Value",label:"英文值","show-overflow-tooltip":""}})],1),e._v(" "),i("base-model",{attrs:{config:e.config}},[i("template",{slot:"dialog-body"},[i("el-form",{attrs:{size:"small",inline:!0,"label-width":"110px"}},[1===e.config.configType?i("el-form-item",{attrs:{label:"是否肿瘤学阅片"}},[i("el-radio-group",{model:{value:e.form.IsOncologyReading,callback:function(t){e.$set(e.form,"IsOncologyReading",t)},expression:"form.IsOncologyReading"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"form.IsOncologyReading"+t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1):e._e(),e._v(" "),2===e.config.configType?i("el-form-item",{staticStyle:{width:"100%"},attrs:{label:"肿瘤学阅片结果"}}):e._e(),e._v(" "),2===e.config.configType?i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.$d.OncologyAssessType,stripe:""},on:{"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),i("el-table-column",{attrs:{prop:"raw.ValueCN",label:"中文值","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"raw.Value",label:"英文值","show-overflow-tooltip":""}})],1):e._e()],1)],1),e._v(" "),i("template",{slot:"dialog-footer"},[i("el-button",{attrs:{disabled:e.loading,size:"small",type:"primary"},on:{click:function(t){e.config.visible=!1}}},[e._v("取消")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.loading},on:{click:e.handleSave}},[e._v("保存")])],1)],2)],1)},a=[],r=(i("7514"),i("ac6a"),i("7eeb")),o=i("e56e"),s={props:{data:{type:String,default:function(){return{}}},criterionId:{type:String,required:!0}},components:{BaseModel:r["default"]},data:function(){return{form:{IsOncologyReading:!0},list:[],total:0,loading:!1,rowData:{},activeName:"0",addOrEdit:{visible:!1,title:""},preview:{visible:!1,title:"eCRF预览"},config:{visible:!1,title:"肿瘤学阅片结果",appendToBody:!0,width:"600px",configType:0},selectedList:[],IsOncologyReading:!0}},mounted:function(){this.getList()},methods:{toggleSelection:function(e){var t=this;console.log(this.$refs.multipleTable),e?e.forEach((function(e){t.$refs.multipleTable.toggleRowSelection(e)})):this.$refs.multipleTable.clearSelection()},handleSelectionChange:function(e){this.selectedList=e},getList:function(){var e=this;this.loading=!0,Object(o["Eb"])({SystemCriterionId:this.criterionId}).then((function(t){e.loading=!1,e.list=t.Result.DictionaryList,e.IsOncologyReading=t.Result.IsOncologyReading,e.form.IsOncologyReading=t.Result.IsOncologyReading,console.log(e.$d.OncologyAssessType)}))},handleAdd:function(e){var t=this;this.config.configType=e,1===e?(this.config.title="是否肿瘤学阅片",this.config.visible=!0):(this.config.title="肿瘤学阅片结果",this.config.visible=!0,this.$nextTick((function(){var e=t.$d.OncologyAssessType.filter((function(e){return!!t.list.find((function(t){return t.DictionaryId===e.id}))}));t.toggleSelection(e)})))},handleSave:function(){var e=this;this.loading=!0;var t=this.$d.OncologyAssessType.filter((function(t){return!!e.list.find((function(e){return e.DictionaryId===t.id}))})),i={SystemCriterionId:this.criterionId,ParentCode:"OncologyAssessType",DictionaryIds:1===this.config.configType?t.map((function(e){return e.id})):this.selectedList.map((function(e){return e.id})),IsSystemCriterion:!0,IsOncologyReading:this.form.IsOncologyReading};Object(o["Mb"])(i).then((function(t){e.loading=!1,e.$message.success("保存成功"),e.config.visible=!1,e.selectedList=[],e.getList()})).catch((function(){}))},handleDelete:function(){}}},l=s,c=(i("9351"),i("2877")),u=Object(c["a"])(l,n,a,!1,null,"049c2eac",null);t["default"]=u.exports},aacc:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"education-info"},[i("div",{staticClass:"btn-wrapper"},[i("el-button",{staticStyle:{"margin-left":"auto"},attrs:{size:"small",disabled:0==e.checkID.length},on:{click:e.downloadAttachement}},[e._v("Download")])],1),e._v(" "),i("el-table",{attrs:{data:e.tblList,"span-method":e.objectSpanMethod,size:"small"},on:{"selection-change":e.selectMore}},[i("el-table-column",{attrs:{type:"selection",align:"left",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{type:"index",label:"No.",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Type",label:"Type","min-width":"50","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"FileName",label:"File Name","min-width":"80","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:"Upload Time","min-width":"50","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:"Action","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return e.preview(t.$index,t.row)}}},[e._v("View")])]}}])})],1)],1)},a=[],r=(i("ac6a"),i("33ba")),o={props:{attachmentList:{type:Array,default:function(){return[]}},doctorId:{type:String,default:""}},data:function(){return{tblList:[],checkID:[],spanArr:[],pos:0}},created:function(){this.tblList=this.filterListByType(this.attachmentList),this.getSpanArr(this.tblList)},methods:{filterListByType:function(e){var t=[];return e.length>0&&(e.forEach((function(e){"Diploma of the highest medical degree"===e.Type&&t.push(e)})),e.forEach((function(e){"Medical Qualification Certificate"===e.Type&&t.push(e)})),e.forEach((function(e){"Practice License"===e.Type&&t.push(e)})),e.forEach((function(e){"Modality Certificate(CT)"===e.Type&&t.push(e)})),e.forEach((function(e){"Modality Certificate(MRI)"===e.Type&&t.push(e)})),e.forEach((function(e){"Modality Certificate(NM)"===e.Type&&t.push(e)})),e.forEach((function(e){"Modality Certificate(US)"===e.Type&&t.push(e)}))),t},downloadAttachement:function(){Object(r["m"])(this.doctorId,this.checkID).then((function(e){if(e.IsSuccess){var t=e.Result.FullFilePath;window.open(t)}}))},preview:function(e,t){var i=t.FullPath;i&&window.open(i,"_blank")},selectMore:function(e){for(var t=[],i=0;i<e.length;i++)t.push(e[i].Id);this.checkID=t},getSpanArr:function(e){for(var t=0;t<e.length;t++)0===t?(this.spanArr.push(1),this.pos=0):e[t].Type===e[t-1].Type?(this.spanArr[this.pos]+=1,this.spanArr.push(0)):(this.spanArr.push(1),this.pos=t)},objectSpanMethod:function(e){e.row,e.column;var t=e.rowIndex,i=e.columnIndex;if(2===i){var n=this.spanArr[t],a=n>0?1:0;return{rowspan:n,colspan:a}}if(3===i){var r=this.spanArr[t],o=r>0?1:0;return{rowspan:r,colspan:o}}if(4===i){var s=this.spanArr[t],l=s>0?1:0;return{rowspan:s,colspan:l}}},timeFormatter:function(e){return new Date(e.UpdateTime).format("yyyy-MM-dd hh:mm:ss")}}},s=o,l=(i("a89d"),i("2877")),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},aadf:function(e,t,i){var n=i("3eba"),a=i("6d8b");i("5aa9"),i("d6d9"),i("3329");var r=i("9d57"),o=r.layout,s=i("7f96");i("01ed"),n.registerLayout(a.curry(o,"pictorialBar")),n.registerVisual(s("pictorialBar","roundRect"))},aaf3:function(e,t,i){"use strict";i.d(t,"e",(function(){return n})),i.d(t,"f",(function(){return a})),i.d(t,"g",(function(){return r})),i.d(t,"h",(function(){return o})),i.d(t,"a",(function(){return s})),i.d(t,"b",(function(){return l})),i.d(t,"c",(function(){return c})),i.d(t,"d",(function(){return u}));var n=[{type:"index"},{prop:"Name",label:"Name",minWidth:110,sortable:"custom",showOverflowTooltip:!0},{prop:"Modality",label:"Modality",minWidth:100,sortable:"custom",showOverflowTooltip:!0},{prop:"Description",label:"Description",minWidth:110,sortable:"custom",showOverflowTooltip:!0},{type:"operate",label:"Action",minWidth:150,operates:[{name:"Items",type:"primary",emitKey:"items"},{name:"Edit",type:"primary",emitKey:"edit"},{name:"Delete",type:"danger",emitKey:"delete"}]}],a=[{type:"Input",label:"Name:",prop:"Name",width:"120px",placeholder:""}],r=[{label:"Reset",type:"primary",emitKey:"reset"},{label:"Search",type:"primary",emitKey:"search"}],o={visible:!1,title:"",width:"600px",showClose:!0},s=[{type:"index"},{prop:"Name",label:"Item",sortable:"custom",showOverflowTooltip:!0},{prop:"ModalityList",label:"Modality",hidden:!0,slot:"modalitySlot",showOverflowTooltip:!0},{prop:"Description",label:"Description",showOverflowTooltip:!0},{type:"operate",label:"Action",minWidth:150,operates:[{name:"Edit",type:"primary",emitKey:"edit"},{name:"Delete",type:"danger",emitKey:"delete"}]}],l=[{type:"Select2",label:"Modality:",prop:"ModalityId",width:"150px",options:{},placeholder:""}],c=[{label:"Reset",type:"primary",emitKey:"reset"},{label:"Search",type:"primary",emitKey:"search"}],u={visible:!1,title:"",width:"600px",showClose:!0}},aaf6:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"preview-clinical-data"},[1===e.data.ClinicalUploadType?i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.data.FileList,stripe:"",height:"500"}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"FileName",label:e.$t("trials:readingPeriod:cd:table:fileName")}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action")},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{circle:"",title:e.$t("trials:readingPeriod:cd:action:viewFile"),icon:"el-icon-view"},on:{click:function(i){return e.handlePreview(t.row)}}}),e._v(" "),e.data.IsSign||e.data.IsCRCUpload?e._e():i("el-button",{attrs:{circle:"",title:e.$t("trials:readingPeriod:cd:action:deleteFile"),icon:"el-icon-delete"},on:{click:function(i){return e.handleDelete(t.$index,t.row)}}})]}}],null,!1,1225421)})],1):i("div",[i("h4",[e._v(e._s(e.$t("trials:uploadClinicalData:title:pastTreatment")))]),e._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.data.ClinicalTableData.PreviousHistoryList}},[i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Position",label:e.$t("trials:uploadClinicalData:table:bodyPart"),width:"180"}}),e._v(" "),i("el-table-column",{attrs:{prop:"StartTime",label:e.$t("trials:uploadClinicalData:table:beginDate"),width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.StartTime?e.moment(t.row.StartTime).format("YYYY-MM-DD"):"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"EndTime",label:e.$t("trials:uploadClinicalData:table:endDate"),width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.EndTime?e.moment(t.row.EndTime).format("YYYY-MM-DD"):"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsPD",label:e.$t("trials:uploadClinicalData:table:isPD"),width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("IsPdEnum",t.row.IsPD))+"\n ")]}}])})],1),e._v(" "),i("h4",[e._v(e._s(e.$t("trials:uploadClinicalData:title:pastSurgery")))]),e._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.data.ClinicalTableData.PreviousSurgeryList}},[i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"OperationName",label:e.$t("trials:uploadClinicalData:table:surgeryName"),width:"180"}}),e._v(" "),i("el-table-column",{attrs:{prop:"OperationTime",label:e.$t("trials:uploadClinicalData:table:surgeryDate"),width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.OperationTime?e.moment(t.row.OperationTime).format("YYYY-MM-DD"):"")+"\n ")]}}])})],1),e._v(" "),i("h4",[e._v(e._s(e.$t("trials:uploadClinicalData:title:others")))]),e._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.data.ClinicalTableData.PreviousOtherList}},[i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TreatmentType",label:e.$t("trials:uploadClinicalData:table:treatmentType"),width:"180"}}),e._v(" "),i("el-table-column",{attrs:{prop:"StartTime",label:e.$t("trials:uploadClinicalData:table:treatmentbeginDate"),width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.StartTime?e.moment(t.row.StartTime).format("YYYY-MM-DD"):"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"EndTime",label:e.$t("trials:uploadClinicalData:table:treatmentendDate"),width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.EndTime?e.moment(t.row.EndTime).format("YYYY-MM-DD"):"")+"\n ")]}}])})],1)],1)],1)},a=[],r=i("3e42"),o=i("c1df"),s=i.n(o),l={name:"PreviewCD",props:{data:{type:Object,default:function(){return{}}}},data:function(){return{loading:!1,moment:s.a}},methods:{handlePreview:function(e){e.Path&&window.open(e.Path,"_blank")},handleDelete:function(e,t){var i=this;this.$confirm(this.$t("trials:readingPeriod:cd:message:delete"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){i.loading=!0,Object(r["nb"])(t.Id).then((function(t){i.fileList.splice(e,1),i.$emit("getList"),i.loading=!1,i.$message.success(i.$t("common:message:deletedSuccessfully"))})).catch((function(){i.loading=!1}))})).catch((function(){}))}}},c=l,u=i("2877"),d=Object(u["a"])(c,n,a,!1,null,null,null);t["default"]=d.exports},ab05:function(e,t,i){var n=i("3eba"),a=i("6d8b"),r=i("2b8c"),o=i("5f14"),s=n.PRIORITY.VISUAL.COMPONENT;function l(e,t,i,n){for(var a=t.targetVisuals[n],r=o.prepareVisualTypes(a),s={color:e.getData().getVisual("color")},l=0,c=r.length;l<c;l++){var u=r[l],d=a["opacity"===u?"__alphaForOpacity":u];d&&d.applyVisual(i,f,h)}return s.color;function f(e){return s[e]}function h(e,t){s[e]=t}}n.registerVisual(s,{createOnAllSeries:!0,reset:function(e,t){var i=[];return t.eachComponent("visualMap",(function(t){var n=e.pipelineContext;!t.isTargetSeries(e)||n&&n.large||i.push(r.incrementalApplyVisual(t.stateList,t.targetVisuals,a.bind(t.getValueState,t),t.getDataDimension(e.getData())))})),i}}),n.registerVisual(s,{createOnAllSeries:!0,reset:function(e,t){var i=e.getData(),n=[];t.eachComponent("visualMap",(function(t){if(t.isTargetSeries(e)){var r=t.getVisualMeta(a.bind(l,null,e,t))||{stops:[],outerColors:[]},o=t.getDataDimension(i),s=i.getDimensionInfo(o);null!=s&&(r.dimension=s.index,n.push(r))}})),e.getData().setVisual("visualMeta",n)}})},ab08:function(e,t,i){},ab11:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("base-model",{attrs:{config:e.model_cfg}},[i("template",{slot:"dialog-body"},[i("el-form",{ref:"DictionaryTypeConfigForm",attrs:{model:e.form,rules:e.rules,"label-width":"120px",size:"small"}},[i("el-form-item",{attrs:{label:"Code: ",prop:"Code"}},[i("el-input",{model:{value:e.form.Code,callback:function(t){e.$set(e.form,"Code",t)},expression:"form.Code"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"KeyName: ",prop:"Code"}},[i("el-input",{model:{value:e.form.KeyName,callback:function(t){e.$set(e.form,"KeyName",t)},expression:"form.KeyName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Description: ",prop:"Code"}},[i("el-input",{model:{value:e.form.Description,callback:function(t){e.$set(e.form,"Description",t)},expression:"form.Description"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Value: ",prop:"Code"}},[i("el-input",{model:{value:e.form.Value,callback:function(t){e.$set(e.form,"Value",t)},expression:"form.Value"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"ValueCN: ",prop:"Code"}},[i("el-input",{model:{value:e.form.ValueCN,callback:function(t){e.$set(e.form,"ValueCN",t)},expression:"form.ValueCN"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Is Enable: "}},[i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},model:{value:e.form.IsEnable,callback:function(t){e.$set(e.form,"IsEnable",t)},expression:"form.IsEnable"}})],1)],1)],1),e._v(" "),i("template",{slot:"dialog-footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.handleCancle}},[e._v("Cancel")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleSave}},[e._v("Save")])],1)],2)},a=[],r=i("db72"),o=(i("ac6a"),i("456d"),i("e56e")),s=i("7eeb"),l=function(){return{Id:"",Code:"",KeyName:"",Description:"",Value:"",ValueCN:"",IsEnable:!1,IsConfig:!0}},c={name:"AnonymizationFrom",components:{BaseModel:s["default"]},data:function(){return{btnLoading:!1,form:l(),rules:{Code:[{required:!0,message:"Please specify",trigger:"blur"}]},model_cfg:{visible:!1,showClose:!0,width:"600px",title:""}}},mounted:function(){},methods:{openDialog:function(e,t){this.model_cfg.visible=!0,this.model_cfg.title=e,Object.keys(t).length?this.form=Object(r["a"])({},t):this.form=l()},handleSave:function(){var e=this;this.$refs.DictionaryTypeConfigForm.validate((function(t){t&&(e.btnLoading=!0,Object(o["c"])(e.form).then((function(t){e.btnLoading=!1,e.$message.success("Saved successfully!"),e.model_cfg.visible=!1,e.$emit("getList")})).catch((function(){e.btnLoading=!1})))}))},handleCancle:function(){this.model_cfg.visible=!1}}},u=c,d=i("2877"),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},ab42:function(e,t,i){"use strict";i("b4d5")},ab64:function(e,t,i){},ab71:function(e,t){var i=["lineStyle","normal","opacity"],n={seriesType:"parallel",reset:function(e,t,n){var a=e.getModel("itemStyle"),r=e.getModel("lineStyle"),o=t.get("color"),s=r.get("color")||a.get("color")||o[e.seriesIndex%o.length],l=e.get("inactiveOpacity"),c=e.get("activeOpacity"),u=e.getModel("lineStyle").getLineStyle(),d=e.coordinateSystem,f=e.getData(),h={normal:u.opacity,active:c,inactive:l};function p(e,t){d.eachActiveState(t,(function(e,n){var a=h[e];if("normal"===e&&t.hasItemOption){var r=t.getItemModel(n).get(i,!0);null!=r&&(a=r)}t.setItemVisual(n,"opacity",a)}),e.start,e.end)}return f.setVisual("color",s),{progress:p}}};e.exports=n},ab99:function(e,t,i){},abb1:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"organForm",attrs:{model:e.form,"label-width":"100px",size:"small",rules:e.rules}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:"病灶类型",prop:"OrganType"}},[i("el-select",{model:{value:e.form.OrganType,callback:function(t){e.$set(e.form,"OrganType",t)},expression:"form.OrganType"}},e._l(e.$d.OrganType,(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"分类",prop:"Classification"}},[i("el-input",{model:{value:e.form.Classification,callback:function(t){e.$set(e.form,"Classification",t)},expression:"form.Classification"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"分类(英文)"}},[i("el-input",{model:{value:e.form.ClassificationEN,callback:function(t){e.$set(e.form,"ClassificationEN",t)},expression:"form.ClassificationEN"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"部位",prop:"Part"}},[i("el-input",{model:{value:e.form.Part,callback:function(t){e.$set(e.form,"Part",t)},expression:"form.Part"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"部位(英文)"}},[i("el-input",{model:{value:e.form.PartEN,callback:function(t){e.$set(e.form,"PartEN",t)},expression:"form.PartEN"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"器官",prop:"TULOC"}},[i("el-input",{model:{value:e.form.TULOC,callback:function(t){e.$set(e.form,"TULOC",t)},expression:"form.TULOC"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"器官(英文)",prop:"TULOCEN"}},[i("el-input",{model:{value:e.form.TULOCEN,callback:function(t){e.$set(e.form,"TULOCEN",t)},expression:"form.TULOCEN"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"位置"}},[i("el-input",{model:{value:e.form.TULAT,callback:function(t){e.$set(e.form,"TULAT",t)},expression:"form.TULAT"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"位置(英文)"}},[i("el-input",{model:{value:e.form.TULATEN,callback:function(t){e.$set(e.form,"TULATEN",t)},expression:"form.TULATEN"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"是否淋巴结",prop:"IsLymphNodes"}},[i("el-radio-group",{model:{value:e.form.IsLymphNodes,callback:function(t){e.$set(e.form,"IsLymphNodes",t)},expression:"form.IsLymphNodes"}},e._l(e.$d.ReadingYesOrNo,(function(t){return i("el-radio",{key:"form.IsLymphNodes"+t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"是否可以编辑",prop:"IsCanEditPosition"}},[i("el-radio-group",{model:{value:e.form.IsCanEditPosition,callback:function(t){e.$set(e.form,"IsCanEditPosition",t)},expression:"form.IsCanEditPosition"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"IsCanEditPosition"+t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"序号"}},[i("el-input",{attrs:{type:"number"},model:{value:e.form.ShowOrder,callback:function(t){e.$set(e.form,"ShowOrder",t)},expression:"form.ShowOrder"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"描述",prop:"Remark"}},[i("el-input",{attrs:{type:"textarea",autosize:{minRows:5,maxRows:6},maxlength:"500","show-word-limit":""},model:{value:e.form.Remark,callback:function(t){e.$set(e.form,"Remark",t)},expression:"form.Remark"}})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{type:"primary"},on:{click:e.handleCancel}},[e._v(" "+e._s(e.$t("common:button:cancel")))]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])},a=[],r=(i("ac6a"),i("456d"),i("96cf"),i("3b8d")),o=i("e56e"),s={name:"OrganForm",props:{data:{type:Object,default:function(){return{}}},criterionId:{type:String,required:!0}},data:function(){return{form:{Id:"",OrganType:"",SystemCriterionId:"",Classification:"",ClassificationEN:"",Part:"",PartEN:"",TULOC:"",TULOCEN:"",TULAT:"",TULATEN:"",Remark:"",IsLymphNodes:null,ShowOrder:null,IsCanEditPosition:!1},rules:{OrganType:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur"]}],Classification:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:["blur"]}],Part:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:["blur"]}],TULOC:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:["blur"]}],Remark:[{max:500,message:"".concat(this.$t("common:ruleMessage:maxLength")," 500"),trigger:["blur","change"]}],IsLymphNodes:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur"]}]},lesionTypes:[],loading:!1}},mounted:function(){this.initForm()},methods:{handleSave:function(){var e=this;this.$refs.organForm.validate((function(t){t&&(e.loading=!0,e.form.SystemCriterionId=e.criterionId,Object(o["k"])(e.form).then((function(t){e.loading=!1,e.$emit("close"),e.$emit("getList"),e.form.Id?e.$message.success(e.$t("common:message:savedSuccessfully")):e.$message.success(e.$t("common:message:addedSuccessfully"))})).catch((function(){e.loading=!1})))}))},handleCancel:function(){this.$emit("close")},initForm:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.loading=!0,Object.keys(this.data).length>0)for(t in this.form)this.data.hasOwnProperty(t)&&(this.form[t]=this.data[t]);this.loading=!1;case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getLesionTypes:function(){var e=this;return new Promise((function(t,i){Object(o["db"])({criterionId:e.criterionId}).then((function(i){e.lesionTypes=i.Result,t()})).catch((function(){i(),e.loading=!1}))}))}}},l=s,c=i("2877"),u=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},abf4:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{ref:"workload_list",staticClass:"workload_list"},[i("div",{staticClass:"list-title",style:{fontSize:e.size}},[e._v("Latest 10 Reads")]),e._v(" "),i("div",{staticClass:"list-header"},[i("ul",{style:{fontSize:e.size}},[i("li",{staticStyle:{width:"5%"}},[e._v("No")]),e._v(" "),i("li",{staticStyle:{width:"20%"}},[e._v("Reviewer Code")]),e._v(" "),i("li",{staticStyle:{width:"20%"}},[e._v("Name")]),e._v(" "),i("li",{staticStyle:{width:"20%"}},[e._v("Trial ID")]),e._v(" "),i("li",{staticStyle:{width:"5%"}},[e._v("TP")]),e._v(" "),i("li",{staticStyle:{width:"5%"}},[e._v("AD")]),e._v(" "),i("li",{staticStyle:{width:"5%"}},[e._v("GL")]),e._v(" "),i("li",{staticStyle:{width:"10%"}},[e._v("Total")])])]),e._v(" "),e.h?i("vue-seamless-scroll",{staticClass:"seamless-warp",style:{height:e.h},attrs:{data:e.dataList,"class-option":e.optionSetting}},[i("ul",e._l(e.dataList,(function(t,n){return i("li",{key:n,style:{fontSize:e.liSize}},[i("span",{staticStyle:{width:"5%"},domProps:{textContent:e._s(t.No)}}),e._v(" "),i("span",{staticStyle:{width:"20%"},domProps:{textContent:e._s(t.ReviewerCode)}}),e._v(" "),i("span",{staticStyle:{width:"20%"},domProps:{textContent:e._s(t.Name)}}),e._v(" "),i("span",{staticStyle:{width:"20%"},domProps:{textContent:e._s(t.TrialCode)}}),e._v(" "),i("span",{staticStyle:{width:"5%"},domProps:{textContent:e._s(t.Timepoint)}}),e._v(" "),i("span",{staticStyle:{width:"5%"},domProps:{textContent:e._s(t.Adjudication)}}),e._v(" "),i("span",{staticStyle:{width:"5%"},domProps:{textContent:e._s(t.Global)}}),e._v(" "),i("span",{staticStyle:{width:"10%"},domProps:{textContent:e._s(t.TotalReadingCount)}})])})),0)]):e._e()],1)},a=[],r=(i("ac6a"),i("a939")),o=i.n(r),s=i("5fd4"),l=i("6331"),c=10,u={components:{vueSeamlessScroll:o.a},props:{height:{type:String,default:""}},data:function(){return{dataList:[],h:"",length:0,size:"",liSize:""}},computed:{optionSetting:function(){return{step:.3,limitMoveNum:2,hoverStop:!0,direction:1}}},watch:{height:function(){this.setHeight()}},created:function(){var e=this;this.$nextTick((function(){e.getData()}))},mounted:function(){var e=this;this.size=Object(l["a"])(.17)+"px",this.liSize=Object(l["a"])(.16)+"px",this.$nextTick((function(){setTimeout((function(){e.getData()}),500)}))},methods:{setHeight:function(){var e=this.height;this.h=e.substring(0,e.indexOf("px"))-document.body.clientWidth/20*.65-30+"px"},getData:function(){var e=this;Object(s["b"])(c).then((function(t){if(t.IsSuccess){var i=t.Result;e.length=t.Result.length,i.forEach((function(t,i){t.No=i+1,t.Name="".concat(t.FirstName," ").concat(t.LastName),e.dataList.push(t),e.setHeight()}))}else e.$message({message:t.ErrorMessage,type:"error"})}))}}},d=u,f=(i("587a"),i("2877")),h=Object(f["a"])(d,n,a,!1,null,"3f9b7ef9",null);t["default"]=h.exports},abff:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[i("div",{staticClass:"base-dialog-body"},[i("div",{staticClass:"hot-keys-container"},e._l(e.hotKeyList,(function(t,n){return i("div",{key:t.tag+"_"+n,staticClass:"wrapper"},[[i("div",{staticClass:"hot-keys-label"},[e._v(e._s(e.$fd("ShortcutKey",t.label)))]),e._v(" "),i("HotkeyInput",{staticClass:"hotkey",staticStyle:{width:"170px"},attrs:{hotkey:e.hotKeyList[n].keys,verify:e.handleHotkeyVerify,"hotkey-id":e.hotKeyList[n].id,placeholder:e.$t("trials:hotkeys:message:input")},on:{"update:hotkey":function(t){return e.$set(e.hotKeyList[n],"keys",t)}}})]],2)})),0)]),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleReset}},[e._v(" "+e._s(e.$t("common:button:reset")))]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleSave}},[e._v(" "+e._s(e.$t("common:button:save")))])],1)])},a=[],r=(i("a481"),i("2d63")),o=(i("ac6a"),i("c5f6"),i("c24f")),s=i("4c4f"),l={name:"HotKeys",components:{HotkeyInput:s["default"]},props:{readingTool:{type:Number,required:!0}},data:function(){return{hotKeyList:[],loading:!1}},watch:{hotKeyList:{handler:function(e){},immediate:!0}},mounted:function(){this.getHotkeys()},methods:{getHotkeys:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.loading=!0,this.hotKeyList=[],Object(o["c"])({imageToolType:this.readingTool}).then((function(i){i.Result.map((function(t){e.hotKeyList.push({id:t.Id,keys:{controlKey:{altKey:t.AltKey,ctrlKey:t.CtrlKey,shiftKey:t.ShiftKey,metaKey:t.MetaKey,key:t.Keyboardkey,code:t.Code},text:t.Text},label:t.ShortcutKeyEnum})})),t&&e.$emit("reset",e.hotKeyList),e.loading=!1})).catch((function(){e.loading=!1}))},handleSave:function(){var e=this;this.loading=!0;var t={imageToolType:this.readingTool,shortcutKeyList:[]},i=[];this.hotKeyList.map((function(e){i.push({shortcutKeyEnum:e.label,keyboardkey:e.keys.controlKey.key,code:e.keys.controlKey.code,text:e.keys.text,altKey:e.keys.controlKey.altKey,ctrlKey:e.keys.controlKey.ctrlKey,shiftKey:e.keys.controlKey.shiftKey,metaKey:e.keys.controlKey.metaKey})})),t.shortcutKeyList=i,Object(o["h"])(t).then((function(t){e.$emit("reset",e.hotKeyList),e.$emit("close"),e.loading=!1})).catch((function(){e.loading=!1}))},handleReset:function(){var e=this;this.$confirm(this.$t("trials:hotkeys:message:confirmReset"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){e.loading=!0,Object(o["g"])({imageToolType:e.readingTool}).then((function(t){e.$message.success(e.$t("trials:hotkeys:message:resetSuccessfully")),e.getHotkeys(!0)})).catch((function(){e.loading=!1}))})).catch((function(e){}))},handleHotkeyVerify:function(e){var t,i=Object(r["a"])(this.hotKeyList);try{for(i.s();!(t=i.n()).done;){var n=t.value;if(n.keys.text===e.text&&n.id!==e.id){var a=this.$t("trials:hotkeys:message:tip1").replace("xxx",this.$fd("ShortcutKey",n.label));return this.$notify({title:this.$t("trials:hotkeys:message:tip"),message:a,type:"warning"}),!1}}}catch(o){i.e(o)}finally{i.f()}return!0}}},c=l,u=(i("6b4d"),i("2877")),d=Object(u["a"])(c,n,a,!1,null,null,null);t["default"]=d.exports},abffa:function(e,t,i){var n=i("3eba"),a=i("f706"),r=i("c965"),o=i("87c3");n.extendChartView({type:"scatter",render:function(e,t,i){var n=e.getData(),a=this._updateSymbolDraw(n,e);a.updateData(n,{clipShape:this._getClipShape(e)}),this._finished=!0},incrementalPrepareRender:function(e,t,i){var n=e.getData(),a=this._updateSymbolDraw(n,e);a.incrementalPrepareUpdate(n),this._finished=!1},incrementalRender:function(e,t,i){this._symbolDraw.incrementalUpdate(e,t.getData(),{clipShape:this._getClipShape(t)}),this._finished=e.end===t.getData().count()},updateTransform:function(e,t,i){var n=e.getData();if(this.group.dirty(),!this._finished||n.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var a=o().reset(e);a.progress&&a.progress({start:0,end:n.count()},n),this._symbolDraw.updateLayout(n)},_getClipShape:function(e){var t=e.coordinateSystem,i=t&&t.getArea&&t.getArea();return e.get("clip",!0)?i:null},_updateSymbolDraw:function(e,t){var i=this._symbolDraw,n=t.pipelineContext,o=n.large;return i&&o===this._isLargeDraw||(i&&i.remove(),i=this._symbolDraw=o?new r:new a,this._isLargeDraw=o,this.group.removeAll()),this.group.add(i.group),i},remove:function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},dispose:function(){}})},ac0f:function(e,t,i){var n=i("cbe5"),a=i("401b"),r=i("4a3f"),o=r.quadraticSubdivide,s=r.cubicSubdivide,l=r.quadraticAt,c=r.cubicAt,u=r.quadraticDerivativeAt,d=r.cubicDerivativeAt,f=[];function h(e,t,i){var n=e.cpx2,a=e.cpy2;return null===n||null===a?[(i?d:c)(e.x1,e.cpx1,e.cpx2,e.x2,t),(i?d:c)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(i?u:l)(e.x1,e.cpx1,e.x2,t),(i?u:l)(e.y1,e.cpy1,e.y2,t)]}var p=n.extend({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(e,t){var i=t.x1,n=t.y1,a=t.x2,r=t.y2,l=t.cpx1,c=t.cpy1,u=t.cpx2,d=t.cpy2,h=t.percent;0!==h&&(e.moveTo(i,n),null==u||null==d?(h<1&&(o(i,l,a,h,f),l=f[1],a=f[2],o(n,c,r,h,f),c=f[1],r=f[2]),e.quadraticCurveTo(l,c,a,r)):(h<1&&(s(i,l,u,a,h,f),l=f[1],u=f[2],a=f[3],s(n,c,d,r,h,f),c=f[1],d=f[2],r=f[3]),e.bezierCurveTo(l,c,u,d,a,r)))},pointAt:function(e){return h(this.shape,e,!1)},tangentAt:function(e){var t=h(this.shape,e,!0);return a.normalize(t,t)}});e.exports=p},ac21:function(e,t,i){},ac67:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"statistics"},[i("el-tabs",{on:{"tab-click":e.clickTab},model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},[i("el-tab-pane",{attrs:{label:"Workload Statistics",name:"workLoadStat"}},["workLoadStat"===e.activeTab?i("workload-stats"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Reviewer Enrollment Statistics",name:"reviewerEnrollmentsStat"}},["reviewerEnrollmentsStat"===e.activeTab?i("enrollments-stats-by-Reviewer"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Trial Enrollment Reviewer",name:"trialEnrollmentsStats"}},["trialEnrollmentsStats"===e.activeTab?i("trial-enrollments-stats"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Participates Statistics",name:"participatesStats"}},["participatesStats"===e.activeTab?i("participates-stats"):e._e()],1)],1)],1)},a=[],r=(i("7f7f"),i("1e25")),o=i("a723"),s=i("09a2"),l=i("94b3"),c={name:"Statistics",components:{WorkloadStats:r["default"],EnrollmentsStatsByReviewer:o["default"],TrialEnrollmentsStats:s["default"],ParticipatesStats:l["default"]},data:function(){return{activeTab:"workLoadStat",load:{workLoadStat:!0,reviewerEnrollmentsStat:!1,trialEnrollmentsStats:!1,participatesStats:!1}}},methods:{clickTab:function(e,t){!1===this.load[e.name]&&(this.load[e.name]=!0)}}},u=c,d=(i("f914"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},ac6b:function(e,t,i){"use strict";i("7f7f");var n=i("d225"),a=i("b0b4"),r=i("013f"),o=i("4e2b"),s=i("c603"),l=i("e6ad"),c=i("75fc");function u(e,t,i,n){var a=(i.x-n.x)*e,r=(i.y-n.y)*t,o=Math.sqrt(a*a+r*r),s=a/o,l=r/o;return{x:s,y:l,length:o}}function d(e,t){if(!t.handles.perpendicularStart.locked)return!1;var i,n,a,r,o=t.handles,s=o.start,l=o.end,c=e.image,d=c.columnPixelSpacing,f=void 0===d?1:d,h=c.rowPixelSpacing,p=void 0===h?1:h;if(s.x===l.x&&s.y===l.y)i=s.x,n=s.y,a=l.x,r=l.y;else{var m={x:(s.x+l.x)/2,y:(s.y+l.y)/2},g=u(f,p,s,l),v=g.length/2,b=v/(2*p),y=v/(2*f);i=m.x+y*g.y,n=m.y-b*g.x,a=m.x-y*g.y,r=m.y+b*g.x}return t.handles.perpendicularStart.x=i,t.handles.perpendicularStart.y=n,t.handles.perpendicularEnd.x=a,t.handles.perpendicularEnd.y=r,!0}var f=l["import"]("util/getPixelSpacing"),h=l["getModule"],p=l["getToolState"],m=l["toolStyle"],g=l["toolColors"],v=l["import"]("drawing/getNewContext"),b=l["import"]("drawing/draw"),y=l["import"]("drawing/setShadow"),w=l["import"]("drawing/drawLine"),_=l["import"]("drawing/drawLinkedTextBox"),I=l["import"]("drawing/drawHandles"),x=function(e){var t=this,i=e.detail,n=i.element,a=i.canvasContext,r=i.image,o=this.configuration,s=o.handleRadius,l=o.drawHandlesOnHover,c=o.hideHandlesIfMoving,u=o.renderDashed,x=h("globalConfiguration").configuration.lineDash,T=p(n,this.name);if(T){var C=f(r),k=C.rowPixelSpacing,R=C.colPixelSpacing;if(k&&R)for(var D,L=v(a.canvas),O=m.getToolWidth(),$=function(e){var a=T.data[e];if(!1===a.visible)return"continue";D=g.getColorIfActive(a),!0===a.invalidated&&(a.longestDiameter&&a.shortestDiameter?t.throttledUpdateCachedStats(r,n,a):t.updateCachedStats(r,n,a)),b(L,(function(e){y(e,t.configuration);var r=a.handles,o=r.start,f=r.end,h=r.perpendicularStart,p=r.perpendicularEnd,m=r.textBox,g={color:D},v={color:D,strokeWidth:b};u&&(g.lineDash=x,v.lineDash=x),w(e,n,o,f,g);var b=O;d(i,a),w(e,n,h,p,v);var T={color:D,handleRadius:s,drawHandlesIfActive:l,hideHandlesIfMoving:c};t.configuration.drawHandles&&I(e,i,a.handles,T);var C=10,L=function(e){return[e.start,e.end,e.perpendicularStart,e.perpendicularEnd]},$=S(a,k,R);a.hasOwnProperty("remark")&&(a.hasOwnProperty("status")&&a.status?$.unshift("".concat(a.remark,"(").concat(a.status,")")):$.unshift(a.remark)),_(e,n,m,$,a.handles,L,D,O,C,!0)}))},N=0;N<T.data.length;N++)$(N)}},S=function(e,t,i){var n=" mm";t&&i||(n=" pixels");var a=" L ".concat(e.longestDiameter).concat(n),r=" W ".concat(e.shortestDiameter).concat(n),o=e.labels;return o&&Array.isArray(o)?[].concat(Object(c["a"])(o),[a,r]):[a,r]},T=i("c41f"),C=function(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return Object.assign({x:e,y:t,index:i,drawnIndependently:!1,allowedOutsideImage:!1,highlight:!0,active:!1},n)},k=function(e){var t=e.currentPoints.image,i=t.x,n=t.y,a={toolName:this.name,toolType:this.name,isCreating:!0,visible:!0,active:!0,invalidated:!0,handles:{start:C(i,n,0),end:C(i,n,1,{active:!0}),perpendicularStart:C(i,n,2,{locked:!0}),perpendicularEnd:C(i,n,3),textBox:C(i-30,n-50,null,{highlight:!1,hasMoved:!0,active:!1,movesIndependently:!1,drawnIndependently:!0,allowedOutsideImage:!0,hasBoundingBox:!0})},longestDiameter:0,shortestDiameter:0};return a};i.d(t,"a",(function(){return R}));var R=function(e){Object(o["a"])(i,e);var t=Object(s["a"])(i);function i(e){var a;Object(n["a"])(this,i);var o={name:"Bidirectional"};return a=t.call(this,e,o),a.digits=e&&e.digits?e.digits:1,a.createNewMeasurement=k.bind(Object(r["a"])(a)),a.renderToolData=x.bind(Object(r["a"])(a)),a}return Object(a["a"])(i,[{key:"updateCachedStats",value:function(e,t,i){if(i.toolName===this.name){var n=Object(T["a"])(i,e,this.digits),a=n.longestDiameter,r=n.shortestDiameter;i.longestDiameter=a,i.shortestDiameter=r,i.invalidated=!1}}}]),i}(l["BidirectionalTool"])},ac7e:function(e,t,i){"use strict";i("2f07")},acc3:function(e,t,i){},acd7:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"trial-myinfo"},[i("div",{staticClass:"trial-myinfo-left"},[i("div",{staticClass:"trial-myinfo-left-top"},[i("div",{staticClass:"trial-myinfo-head"},[e._v("\n "+e._s(e.$t("trials:trials-myinfo:title:avater"))+"\n ")]),e._v(" "),i("div",{staticClass:"trial-myinfo-body"},[i("div",[e._v("\n "+e._s(e.user.LastName)+"\n ")])])]),e._v(" "),i("div",{staticClass:"trial-myinfo-left-bottom"},[i("div",{staticClass:"trial-myinfo-head"},[e._v("\n "+e._s(e.$t("trials:trials-myinfo:title:basicInfo"))+"\n ")]),e._v(" "),i("el-form",{ref:"userForm",attrs:{"label-position":"right",model:e.user,rules:e.userFormRules,"label-width":"120px"}},[e.user.Code?i("el-form-item",{attrs:{label:"ID: ",prop:"Code"}},[i("el-input",{attrs:{disabled:""},model:{value:e.user.Code,callback:function(t){e.$set(e.user,"Code",t)},expression:"user.Code"}})],1):e._e(),e._v(" "),i("el-form-item",{attrs:{disabled:8===e.user.UserTypeEnum,label:e.$t("trials:trials-myinfo:form:surname"),prop:"LastName"}},[i("el-input",{attrs:{placeholder:e.$t("trials:trials-myinfo:form:surname")},model:{value:e.user.LastName,callback:function(t){e.$set(e.user,"LastName",t)},expression:"user.LastName"}})],1),e._v(" "),i("el-form-item",{attrs:{disabled:8===e.user.UserTypeEnum,label:e.$t("trials:trials-myinfo:form:givenname"),prop:"FirstName"}},[i("el-input",{attrs:{placeholder:e.$t("trials:trials-myinfo:form:givenname")},model:{value:e.user.FirstName,callback:function(t){e.$set(e.user,"FirstName",t)},expression:"user.FirstName"}})],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-right":"40px"},attrs:{label:e.$t("trials:trials-myinfo:form:gender"),prop:"Sex"}},[i("el-radio-group",{model:{value:e.user.Sex,callback:function(t){e.$set(e.user,"Sex",t)},expression:"user.Sex"}},[i("el-radio",{attrs:{label:1}},[e._v("Male")]),e._v(" "),i("el-radio",{attrs:{label:0}},[e._v("Female")])],1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:trials-myinfo:form:organization"),prop:"OrganizationName"}},[i("el-input",{attrs:{placeholder:e.$t("trials:trials-myinfo:form:organization")},model:{value:e.user.OrganizationName,callback:function(t){e.$set(e.user,"OrganizationName",t)},expression:"user.OrganizationName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:trials-myinfo:form:department"),prop:"DepartmentName"}},[i("el-input",{attrs:{placeholder:e.$t("trials:trials-myinfo:form:organization")},model:{value:e.user.DepartmentName,callback:function(t){e.$set(e.user,"DepartmentName",t)},expression:"user.DepartmentName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:trials-myinfo:form:position"),prop:"PositionName"}},[i("el-input",{attrs:{placeholder:e.$t("trials:trials-myinfo:form:position")},model:{value:e.user.PositionName,callback:function(t){e.$set(e.user,"PositionName",t)},expression:"user.PositionName"}})],1)],1),e._v(" "),i("el-button",{staticClass:"trial-info-btn",attrs:{type:"primary",size:"small"},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("trials:trials-myinfo:button:save"))+"\n ")])],1)]),e._v(" "),i("div",{staticClass:"trial-myinfo-right"},[i("div",{staticClass:"trial-myinfo-right-box"},[i("div",{staticClass:"trial-myinfo-head"},[e._v("\n "+e._s(e.$t("trials:trials-myinfo:title:accountInfo"))+"\n ")]),e._v(" "),i("el-form",{attrs:{"label-position":"right","label-width":"150px"}},[i("el-form-item",{staticStyle:{"margin-bottom":"5px"},attrs:{label:e.$t("trials:trials-myinfo:form:userName"),prop:"UserName"}},[i("span",[e._v(e._s(e.user.UserName))])]),e._v(" "),i("el-form-item",{staticStyle:{position:"relative"},attrs:{label:"",prop:"UserName"}},[i("el-input",{attrs:{placeholder:e.$t("trials:trials-myinfo:form:userName")},model:{value:e.userForm.UserName,callback:function(t){e.$set(e.userForm,"UserName",t)},expression:"userForm.UserName"}}),e._v(" "),i("el-button",{staticClass:"saveBtn",attrs:{disabled:!e.userForm.UserName,type:"primary",size:"small"},on:{click:e.setNewUserName}},[e._v("\n "+e._s(e.$t("trials:trials-myinfo:button:update"))+"\n ")])],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"5px"},attrs:{label:e.$t("trials:trials-myinfo:form:phone"),prop:"UserName"}},[i("span",[e._v(e._s(e.user.Phone))])]),e._v(" "),i("el-form-item",{staticStyle:{position:"relative"},attrs:{label:"",prop:"UserName"}},[i("el-input",{attrs:{placeholder:e.$t("trials:trials-myinfo:form:phone")},model:{value:e.userForm.Phone,callback:function(t){e.$set(e.userForm,"Phone",t)},expression:"userForm.Phone"}}),e._v(" "),i("el-button",{staticClass:"saveBtn",attrs:{disabled:!e.userForm.Phone,type:"primary",size:"small"},on:{click:e.setNewPhone}},[e._v("\n "+e._s(e.$t("trials:trials-myinfo:button:update"))+"\n ")])],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"5px"},attrs:{label:e.$t("trials:trials-myinfo:form:email"),prop:"UserName"}},[i("span",[e._v(e._s(e.user.EMail))])]),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px",position:"relative"},attrs:{label:"",prop:"EMail"}},[i("el-input",{attrs:{placeholder:e.$t("trials:trials-myinfo:form:email")},on:{input:e.handleEmailChange},model:{value:e.userForm.EMail,callback:function(t){e.$set(e.userForm,"EMail",t)},expression:"userForm.EMail"}}),e._v(" "),i("el-button",{staticClass:"sendCode",attrs:{disabled:e.sendDisabled,type:"primary",size:"mini"},on:{click:e.sendVerificationCode}},[e._v(e._s(e.sendTitle))])],1),e._v(" "),i("el-form-item",{staticStyle:{position:"relative"},attrs:{label:"",prop:"VerificationCode"}},[i("el-input",{attrs:{placeholder:e.$t("trials:researchForm:form:verifyCode")},model:{value:e.userForm.VerificationCode,callback:function(t){e.$set(e.userForm,"VerificationCode",t)},expression:"userForm.VerificationCode"}}),e._v(" "),i("el-button",{staticClass:"saveBtn",attrs:{disabled:!e.userForm.EMail||!e.userForm.VerificationCode||e.sendDisabled,type:"primary",size:"small"},on:{click:e.setNewEmail}},[e._v("\n "+e._s(e.$t("trials:trials-myinfo:button:update"))+"\n ")])],1)],1)],1),e._v(" "),i("div",{staticClass:"trial-myinfo-right-box"},[i("div",{staticClass:"trial-myinfo-head"},[e._v("\n "+e._s(e.$t("trials:trials-myinfo:title:updatePaasord"))+"\n ")]),e._v(" "),i("el-form",{ref:"passwordForm",attrs:{"label-position":"right",model:e.password,rules:e.passwordFormRules,"label-width":"150px"}},[i("el-form-item",{attrs:{label:e.$t("recompose:form:oldPassword"),prop:"OldPassWord"}},[i("el-input",{attrs:{type:"password","show-password":"","auto-complete":"new-password",placeholder:e.$t("recompose:form:oldPassword")},model:{value:e.password.OldPassWord,callback:function(t){e.$set(e.password,"OldPassWord",t)},expression:"password.OldPassWord"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("recompose:form:newPassword"),prop:"NewPassWord"}},[i("el-input",{attrs:{type:"password","show-password":"","auto-complete":"new-password",placeholder:e.$t("recompose:form:newPassword")},model:{value:e.password.NewPassWord,callback:function(t){e.$set(e.password,"NewPassWord",t)},expression:"password.NewPassWord"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("recompose:form:confirmPassword"),prop:"ConfirmPassWord"}},[i("el-input",{attrs:{type:"password","show-password":"","auto-complete":"new-password",placeholder:e.$t("recompose:form:confirmPassword")},model:{value:e.password.ConfirmPassWord,callback:function(t){e.$set(e.password,"ConfirmPassWord",t)},expression:"password.ConfirmPassWord"}})],1)],1),e._v(" "),i("el-button",{staticClass:"trial-info-btn",attrs:{type:"primary",size:"small"},on:{click:e.save}},[e._v("\n "+e._s(e.$t("trials:trials-myinfo:button:save"))+"\n ")])],1)])])},a=[],r=(i("96cf"),i("3b8d")),o=i("db72"),s=i("50fc"),l=i("b775");function c(e){return Object(l["a"])({url:"/User/sendVerificationCode/".concat(e),method:"get"})}function u(e,t){return Object(l["a"])({url:"/User/setNewEmail/".concat(e,"/").concat(t),method:"put"})}function d(e){return Object(l["a"])({url:"/User/setNewPhone/".concat(e),method:"put"})}function f(e){return Object(l["a"])({url:"/User/setNewUserName/".concat(e),method:"put"})}var h=i("8237"),p=i.n(h),m=i("4360"),g=i("2f62"),v="",b=60,y={name:"TrialsMyinfo",data:function(){return{userTypeOptions:[],user:{},password:{},userForm:{},sendDisabled:!0,sendTitle:this.$t("trials:trials-myinfo:button:getVCode"),userFormRules:{UserName:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}],UserTypeId:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}],IsZhiZhun:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}],OrganizationName:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}],LastName:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"},{max:50,message:"".concat(this.$t("common:ruleMessage:maxLength")," 50")}],FirstName:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"},{max:50,message:"".concat(this.$t("common:ruleMessage:maxLength")," 50")}],Sex:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}],Status:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}]},passwordFormRules:{OldPassWord:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}],NewPassWord:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"},{required:!0,trigger:"blur",validator:this.$validatePassword}],ConfirmPassWord:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"},{required:!0,trigger:"blur",validator:this.$validatePassword}]}}},computed:Object(o["a"])({},Object(g["b"])(["userId","name"])),mounted:function(){this.getUserInfo(),this.getUserTypeList()},methods:{handleSave:function(){var e=this;this.$refs.userForm.validate((function(t){if(console.log(t),t){e.isDisabled=!0;var i=e.userTypeOptions.filter((function(t){return t.Id===e.user.UserTypeId}));i.length>0&&(e.user.userTypeEnum=i[0].UserTypeEnum),e.user.Id&&Object(s["v"])(e.user).then((function(t){e.isDisabled=!1,e.$message.success(e.$t("trials:trials-myinfo:message:updateSuccessfully")),e.getUserInfo()})).catch((function(){e.isDisabled=!1}))}}))},handleEmailChange:function(){var e=/^[A-Za-z0-9]+([_\.][A-Za-z0-9]+)*@([A-Za-z0-9\-]+\.)+[A-Za-z]{2,6}$/;this.userForm.EMail&&e.test(this.userForm.EMail)?this.sendDisabled=!1:this.sendDisabled=!0},sendVerificationCode:function(){var e=this;c(this.userForm.EMail).then((function(){e.settime(e),e.$message.success(e.$t("trials:trials-myinfo:message:sendSuccessfully"))}))},save:function(){var e=this;this.$refs.passwordForm.validate((function(t){if(t){if(e.password.NewPassWord!==e.password.ConfirmPassWord)return void e.$message.error(e.$t("passwordReset:formRule:passwordsDiffer"));var i={UserId:e.userId,NewPassWord:p()(e.password.NewPassWord),OldPassWord:p()(e.password.OldPassWord)};Object(s["r"])(i).then((function(t){t.IsSuccess&&(e.$message.success(e.$t("trials:trials-myinfo:message:modifyPWSuccessfully")),setTimeout((function(){e.logout()}),1e3))}))}}))},setNewEmail:function(){var e=this;u(this.userForm.EMail,this.userForm.VerificationCode).then((function(){e.userForm.EMail="",e.userForm.VerificationCode="",e.$message.success(e.$t("trials:trials-myinfo:message:updateSuccessfully")),e.getUserInfo()}))},setNewUserName:function(){var e=this;f(this.userForm.UserName).then((function(){e.userForm.UserName="",e.$message.success(e.$t("trials:trials-myinfo:message:updateSuccessfully")),e.getUserInfo()}))},setNewPhone:function(){var e=this;d(this.userForm.Phone).then((function(){e.userForm.Phone="",e.$message.success(e.$t("trials:trials-myinfo:message:updateSuccessfully")),e.getUserInfo()}))},getUserInfo:function(){var e=this,t=this.$loading({fullscreen:!1,lock:!0,text:"Loading",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.07)"});Object(s["l"])(this.userId).then(function(){var i=Object(r["a"])(regeneratorRuntime.mark((function i(n){return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return e.user=n.Result,zzSessionStorage.setItem("realName",e.user.RealName),i.next=4,m["a"].dispatch("user/updateInfo");case 4:t.close();case 5:case"end":return i.stop()}}),i)})));return function(e){return i.apply(this,arguments)}}()).catch((function(){t.close()}))},settime:function(e){if(0===b)return e.sendDisabled=!1,e.sendTitle=this.$t("trials:trials-myinfo:button:getVCode"),b=60,void clearTimeout(v);e.sendDisabled=!0,e.sendTitle="".concat(this.$t("trials:trials-myinfo:button:wait"),"(").concat(b,"s)"),b--,b=b,v=setTimeout((function(){e.settime(e)}),1e3)},getUserTypeList:function(){var e=this;Object(s["n"])().then((function(t){t.IsSuccess&&(e.userTypeOptions=t.Result)}))},logout:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=zzSessionStorage.getItem("loginType"),e.next=3,this.$store.dispatch("user/logout");case 3:t?this.$router.push("/login?loginType=".concat(t)):this.$router.push("/login");case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}},w=y,_=(i("4a46"),i("2877")),I=Object(_["a"])(w,n,a,!1,null,null,null);t["default"]=I.exports},acd9:function(e,t,i){"use strict";i.d(t,"a",(function(){return a})),i.d(t,"b",(function(){return r}));var n=i("b775");function a(e){return Object(n["a"])({url:"/imageShare/createImageShare",method:"post",data:e})}function r(e,t){return Object(n["a"])({url:"/imageShare/verifyShareImage/".concat(e,"/").concat(t),method:"get"})}},ace0:function(e,t,i){"use strict";i("7bf8")},ace7:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"sysTemplateFrom",staticClass:"upload-temporary-file",attrs:{model:e.form,"label-width":"90px",size:"small",rules:e.rules}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:"Code",prop:"Code"}},[i("el-input",{model:{value:e.form.Code,callback:function(t){e.$set(e.form,"Code",t)},expression:"form.Code"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"业务场景: ",prop:"BusinessScenarioEnum"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{size:"small",filterable:"",disabled:""},model:{value:e.form.BusinessScenarioEnum,callback:function(t){e.$set(e.form,"BusinessScenarioEnum",t)},expression:"form.BusinessScenarioEnum"}},e._l(e.$d.Common_File_BusinessScenario,(function(e){return i("el-option",{key:e.id,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"文件: "}},[i("div",{staticClass:"upload-container"},[i("el-upload",{staticClass:"upload-demo",attrs:{action:"",accept:".xls,.xlsx,.doc,.docx","before-upload":e.beforeUpload,"http-request":e.handleUploadFile,"on-preview":e.handlePreview,"on-remove":e.handleRemoveFile,"show-file-list":!0,"file-list":e.fileList,limit:1,"on-exceed":e.handleExceed,disabled:!e.form.FileTypeEnum||!e.form.BusinessScenarioEnum}},[i("el-button",{attrs:{size:"small",type:"primary",disabled:!e.form.FileTypeEnum||!e.form.BusinessScenarioEnum}},[e._v("Select")]),e._v(" "),i("span",{staticClass:"el-upload__tip",staticStyle:{"margin-left":"10px"},attrs:{slot:"tip"},slot:"tip"},[e._v("\n (must be in xlsx/xls/doc/docx format)\n ")])],1)],1)]),e._v(" "),i("el-form-item",{attrs:{label:"阅片标准: ",prop:"CriterionTypeEnum"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{size:"small",filterable:"",clearable:""},model:{value:e.form.CriterionTypeEnum,callback:function(t){e.$set(e.form,"CriterionTypeEnum",t)},expression:"form.CriterionTypeEnum"}},e._l(e.$d.CriterionType,(function(e){return i("el-option",{key:e.id,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),""!==e.form.Id?i("el-form-item",{attrs:{label:"是否废除: "}},[i("el-radio-group",{model:{value:e.form.IsDeleted,callback:function(t){e.$set(e.form,"IsDeleted",t)},expression:"form.IsDeleted"}},[i("el-radio",{attrs:{label:!0}},[e._v("是")]),e._v(" "),i("el-radio",{attrs:{label:!1}},[e._v("否")])],1)],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:"描述"}},[i("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:"请输入内容"},model:{value:e.form.Description,callback:function(t){e.$set(e.form,"Description",t)},expression:"form.Description"}})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{size:"small",type:"primary",disabled:!e.form.FileTypeEnum||!e.form.BusinessScenarioEnum},on:{click:e.handleSave}},[e._v("Save")])],1)],1)])},a=[],r=(i("7f7f"),i("db72")),o=(i("ac6a"),i("456d"),i("96cf"),i("3b8d")),s=i("e56e"),l=i("86a6"),c={name:"TemplateForm",props:{data:{type:Object,default:function(){return{}}},isDistinguishCriteria:{type:Boolean,required:!0}},data:function(){return{form:{Id:"",Code:"",FileTypeEnum:null,BusinessScenarioEnum:null,CriterionTypeEnum:null,Name:"",Path:"",Description:"",IsDeleted:!1},rules:{Code:[{required:!0,message:"Please specify",trigger:["blur"]}],CriterionTypeEnum:[{required:this.isDistinguishCriteria,message:"Please select",trigger:["blur"]}],BusinessScenarioEnum:[{required:!0,message:"Please select",trigger:["blur"]}]},fileList:[],loading:!1,dictionaryList:{}}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getDicData();case 2:if(Object.keys(this.data).length>0)for(t in this.data.Path&&(this.fileList=[{name:this.data.Name,path:this.data.Path,type:this.data.Type}]),this.form)this.data.hasOwnProperty(t)&&(this.form[t]=this.data[t]);case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getDicData:function(){var e=this;this.loading=!0,Object(l["c"])(["Common_File_ModuleType","Common_File_Type"]).then((function(t){e.dictionaryList=Object(r["a"])({},t.Result),e.loading=!1})).catch((function(){e.loading=!1}))},beforeUpload:function(e){return this.checkFileSuffix(e.name)?(this.fileList=[],!0):(this.$message.error("必须是word/excel格式"),!1)},handleUploadFile:function(e){var t=this;this.loading=!0,Object(s["Pb"])(e.file).then((function(i){if(t.loading=!1,i.IsSuccess){t.form.Path=i.Result.FilePath,t.form.Name=e.file.name;var n={name:t.form.Name,path:t.form.Path};t.fileList.push(n)}})).catch((function(){t.loading=!1}))},handleSave:function(){var e=this;this.$refs.sysTemplateFrom.validate((function(t){t&&(e.form.Name?(e.loading=!0,Object(s["e"])(e.form).then((function(t){e.loading=!1,e.$emit("closeDialog"),e.$emit("getList"),e.$message.success("保存成功!")})).catch((function(){e.loading=!1}))):e.$message.error("Please select file."))}))},handleRemoveFile:function(){this.fileList=[],this.form.Path="",this.form.Name=""},handlePreview:function(e){e.fullPath&&window.open(e.fullPath,"_blank")},handleExceed:function(e,t){this.$message.warning("Upload is currently limited to 1 file")},checkFileSuffix:function(e){var t=["xls","xlsx","doc","docx"],i=e.substring(e.lastIndexOf(".")+1).toLocaleLowerCase();return-1!==t.indexOf(i)}}},u=c,d=(i("3eff"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},adca:function(e,t,i){"use strict";i.d(t,"a",(function(){return a})),i.d(t,"b",(function(){return r}));var n=i("b775");function a(e){return Object(n["a"])({url:"/Inspection/TrialConfig/updateTrialState",method:"post",data:e})}function r(e){return Object(n["a"])({url:"/Inspection/TrialDocument/userConfirm",method:"post",data:e})}},adda:function(e,t,i){var n=i("94e4"),a=n.circularLayout;function r(e){e.eachSeriesByType("graph",(function(e){"circular"===e.get("layout")&&a(e,"symbolSize")}))}e.exports=r},adf4:function(e,t,i){var n=i("4f85"),a=i("b1d4"),r=i("2f45"),o=r.getDimensionTypeByAxis,s=i("6179"),l=i("6d8b"),c=i("e0d3"),u=c.groupData,d=i("eda2"),f=d.encodeHTML,h=i("c4a3"),p=2,m=n.extend({type:"series.themeRiver",dependencies:["singleAxis"],nameMap:null,init:function(e){m.superApply(this,"init",arguments),this.legendVisualProvider=new h(l.bind(this.getData,this),l.bind(this.getRawData,this))},fixData:function(e){var t=e.length,i={},n=u(e,(function(e){return i.hasOwnProperty(e[0])||(i[e[0]]=-1),e[2]})),a=[];n.buckets.each((function(e,t){a.push({name:t,dataList:e})}));for(var r=a.length,o=0;o<r;++o){for(var s=a[o].name,l=0;l<a[o].dataList.length;++l){var c=a[o].dataList[l][0];i[c]=o}for(var c in i)i.hasOwnProperty(c)&&i[c]!==o&&(i[c]=o,e[t]=[],e[t][0]=c,e[t][1]=0,e[t][2]=s,t++)}return e},getInitialData:function(e,t){for(var i=t.queryComponents({mainType:"singleAxis",index:this.get("singleAxisIndex"),id:this.get("singleAxisId")})[0],n=i.get("type"),r=l.filter(e.data,(function(e){return void 0!==e[2]})),c=this.fixData(r||[]),u=[],d=this.nameMap=l.createHashMap(),f=0,h=0;h<c.length;++h)u.push(c[h][p]),d.get(c[h][p])||(d.set(c[h][p],f),f++);var m=a(c,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:o(n)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}),g=new s(m,this);return g.initData(c),g},getLayerSeries:function(){for(var e=this.getData(),t=e.count(),i=[],n=0;n<t;++n)i[n]=n;var a=e.mapDimension("single"),r=u(i,(function(t){return e.get("name",t)})),o=[];return r.buckets.each((function(t,i){t.sort((function(t,i){return e.get(a,t)-e.get(a,i)})),o.push({name:i,indices:t})})),o},getAxisTooltipData:function(e,t,i){l.isArray(e)||(e=e?[e]:[]);for(var n,a=this.getData(),r=this.getLayerSeries(),o=[],s=r.length,c=0;c<s;++c){for(var u=Number.MAX_VALUE,d=-1,f=r[c].indices.length,h=0;h<f;++h){var p=a.get(e[0],r[c].indices[h]),m=Math.abs(p-t);m<=u&&(n=p,u=m,d=r[c].indices[h])}o.push(d)}return{dataIndices:o,nestestValue:n}},formatTooltip:function(e){var t=this.getData(),i=t.getName(e),n=t.get(t.mapDimension("value"),e);return(isNaN(n)||null==n)&&(n="-"),f(i+" : "+n)},defaultOption:{zlevel:0,z:2,coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",color:"#000",fontSize:11},emphasis:{label:{show:!0}}}}),g=m;e.exports=g},ae46:function(e,t,i){var n=i("4e08"),a=(n.__DEV__,i("3eba")),r=i("73ca"),o=i("0fd3"),s=i("7e5b"),l=i("4527"),c=i("6a4c"),u=i("a38d"),d=i("6582"),f=i("b0af"),h=f.createClipPath,p=a.extendChartView({type:"lines",init:function(){},render:function(e,t,i){var n=e.getData(),a=this._updateLineDraw(n,e),r=e.get("zlevel"),o=e.get("effect.trailLength"),s=i.getZr(),l="svg"===s.painter.getType();l||s.painter.getLayer(r).clear(!0),null==this._lastZlevel||l||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(e)&&o&&(l||s.configLayer(r,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(o/10+.9,1),0)})),a.updateData(n);var c=e.get("clip",!0)&&h(e.coordinateSystem,!1,e);c?this.group.setClipPath(c):this.group.removeClipPath(),this._lastZlevel=r,this._finished=!0},incrementalPrepareRender:function(e,t,i){var n=e.getData(),a=this._updateLineDraw(n,e);a.incrementalPrepareUpdate(n),this._clearLayer(i),this._finished=!1},incrementalRender:function(e,t,i){this._lineDraw.incrementalUpdate(e,t.getData()),this._finished=e.end===t.getData().count()},updateTransform:function(e,t,i){var n=e.getData(),a=e.pipelineContext;if(!this._finished||a.large||a.progressiveRender)return{update:!0};var r=d.reset(e);r.progress&&r.progress({start:0,end:n.count()},n),this._lineDraw.updateLayout(),this._clearLayer(i)},_updateLineDraw:function(e,t){var i=this._lineDraw,n=this._showEffect(t),a=!!t.get("polyline"),d=t.pipelineContext,f=d.large;return i&&n===this._hasEffet&&a===this._isPolyline&&f===this._isLargeDraw||(i&&i.remove(),i=this._lineDraw=f?new u:new r(a?n?c:l:n?o:s),this._hasEffet=n,this._isPolyline=a,this._isLargeDraw=f,this.group.removeAll()),this.group.add(i.group),i},_showEffect:function(e){return!!e.get("effect.show")},_clearLayer:function(e){var t=e.getZr(),i="svg"===t.painter.getType();i||null==this._lastZlevel||t.painter.getLayer(this._lastZlevel).clear(!0)},remove:function(e,t){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(t)},dispose:function(){}});e.exports=p},ae69:function(e,t,i){var n=i("cbe5"),a=n.extend({type:"ellipse",shape:{cx:0,cy:0,rx:0,ry:0},buildPath:function(e,t){var i=.5522848,n=t.cx,a=t.cy,r=t.rx,o=t.ry,s=r*i,l=o*i;e.moveTo(n-r,a),e.bezierCurveTo(n-r,a-l,n-s,a-o,n,a-o),e.bezierCurveTo(n+s,a-o,n+r,a-l,n+r,a),e.bezierCurveTo(n+r,a+l,n+s,a+o,n,a+o),e.bezierCurveTo(n-s,a+o,n-r,a+l,n-r,a),e.closePath()}});e.exports=a},ae6e:function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-people",use:"icon-people-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-people"><path d="M104.185 95.254c8.161 7.574 13.145 17.441 13.145 28.28 0 1.508-.098 2.998-.285 4.466h-10.784c.238-1.465.403-2.948.403-4.465 0-8.983-4.36-17.115-11.419-23.216C86 104.66 75.355 107.162 64 107.162c-11.344 0-21.98-2.495-31.22-6.83-7.064 6.099-11.444 14.218-11.444 23.203 0 1.517.165 3 .403 4.465H10.955a35.444 35.444 0 0 1-.285-4.465c0-10.838 4.974-20.713 13.127-28.291C9.294 85.42.003 70.417.003 53.58.003 23.99 28.656.001 64 .001s63.997 23.988 63.997 53.58c0 16.842-9.299 31.85-23.812 41.673zM64 36.867c-29.454 0-53.33-10.077-53.33 15.342 0 25.418 23.876 46.023 53.33 46.023 29.454 0 53.33-20.605 53.33-46.023 0-25.419-23.876-15.342-53.33-15.342zm24.888 25.644c-3.927 0-7.111-2.665-7.111-5.953 0-3.288 3.184-5.954 7.11-5.954 3.928 0 7.111 2.666 7.111 5.954s-3.183 5.953-7.11 5.953zm-3.556 16.372c0 4.11-9.55 7.442-21.332 7.442-11.781 0-21.332-3.332-21.332-7.442 0-1.06.656-2.064 1.8-2.976 3.295 2.626 10.79 4.465 19.532 4.465 8.743 0 16.237-1.84 19.531-4.465 1.145.912 1.801 1.916 1.801 2.976zm-46.22-16.372c-3.927 0-7.11-2.665-7.11-5.953 0-3.288 3.183-5.954 7.11-5.954 3.927 0 7.111 2.666 7.111 5.954s-3.184 5.953-7.11 5.953z" /></symbol>'});o.a.add(s);t["default"]=s},ae75:function(e,t,i){var n=i("6d8b"),a=["rect","polygon","keep","clear"];function r(e,t){var i=e&&e.brush;if(n.isArray(i)||(i=i?[i]:[]),i.length){var r=[];n.each(i,(function(e){var t=e.hasOwnProperty("toolbox")?e.toolbox:[];t instanceof Array&&(r=r.concat(t))}));var s=e&&e.toolbox;n.isArray(s)&&(s=s[0]),s||(s={feature:{}},e.toolbox=[s]);var l=s.feature||(s.feature={}),c=l.brush||(l.brush={}),u=c.type||(c.type=[]);u.push.apply(u,r),o(u),t&&!u.length&&u.push.apply(u,a)}}function o(e){var t={};n.each(e,(function(e){t[e]=1})),e.length=0,n.each(t,(function(t,i){e.push(i)}))}e.exports=r},ae98:function(e,t,i){"use strict";i("910a")},aed0:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",[i("div",{staticClass:"search"},[i("el-form",{staticClass:"base-search-form",attrs:{inline:!0,size:"mini"}},[i("el-form-item",{attrs:{label:"是否需要回执:"}},[i("el-select",{staticStyle:{width:"100px"},attrs:{clearable:""},model:{value:e.searchData.IsReturnRequired,callback:function(t){e.$set(e.searchData,"IsReturnRequired",t)},expression:"searchData.IsReturnRequired"}},[i("el-option",{attrs:{value:!0,label:"是"}}),e._v(" "),i("el-option",{attrs:{value:!1,label:"否"}})],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"是否加急:"}},[i("el-select",{staticStyle:{width:"100px"},attrs:{clearable:""},model:{value:e.searchData.IsUrgent,callback:function(t){e.$set(e.searchData,"IsUrgent",t)},expression:"searchData.IsUrgent"}},[i("el-option",{attrs:{value:!0,label:"是"}}),e._v(" "),i("el-option",{attrs:{value:!1,label:"否"}})],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"是否启用:"}},[i("el-select",{staticStyle:{width:"100px"},attrs:{clearable:""},model:{value:e.searchData.IsEnable,callback:function(t){e.$set(e.searchData,"IsEnable",t)},expression:"searchData.IsEnable"}},[i("el-option",{attrs:{value:!0,label:"是"}}),e._v(" "),i("el-option",{attrs:{value:!1,label:"否"}})],1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:e.handleReset}},[e._v("Reset")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.handleSearch}},[e._v("Search")])],1)],1),e._v(" "),i("span",{staticStyle:{"margin-left":"auto"}},[i("el-button",{attrs:{type:"primary",size:"mini"}},[e._v("\n 场景配置\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.handleAdd}},[e._v("\n New\n ")])],1)],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:45},expression:"{bottomOffset:45}"}],staticStyle:{width:"100%"},attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Code",label:"Code",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ScenarioEnum",label:"业务场景","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsReturnRequired",label:"是否需要回执","show-overflow-tooltip":"",sortable:"custom",width:"130"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.IsReturnRequired?"是":"否")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsUrgent",label:"是否加急","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.IsUrgent?"是":"否")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsAutoSend",label:"是否自动发送","show-overflow-tooltip":"",sortable:"custom",width:"130"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.IsAutoSend?"是":"否")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsEnable",label:"是否启用","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.IsEnable?"是":"否")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"UpdateTime",label:"更新时间","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:"创建时间","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{label:"Action",width:"140",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("\n Edit\n ")]),e._v(" "),i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("Delete")])]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}}),e._v(" "),e.editVisible?i("el-dialog",{attrs:{visible:e.editVisible,"close-on-click-modal":!1,title:e.title,width:"700px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.editVisible=t}}},[i("EmailForm",{attrs:{data:e.rowData},on:{closeDialog:e.closeDialog,getList:e.getList}})],1):e._e()],1)},a=[],r=(i("20d6"),i("db72")),o=i("e56e"),s=i("f36a"),l=i("333d"),c=i("47b4"),u=function(){return{IsReturnRequired:"",IsUrgent:"",IsEnable:"",PageIndex:1,PageSize:20}},d={name:"EmailList",components:{BoxContent:s["default"],Pagination:l["default"],EmailForm:c["default"]},data:function(){return{searchData:u(),loading:!1,list:[],total:0,rowData:{},title:"",editVisible:!1}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0,Object(o["hb"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},handleAdd:function(){this.rowData={},this.title="Add",this.editVisible=!0},handleEdit:function(e){this.rowData=Object(r["a"])({},e),this.title="Edit",this.editVisible=!0},handleDelete:function(e){var t=this;this.$confirm("Sure to delete?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){Object(o["D"])(e.Id).then((function(i){i.IsSuccess&&(t.list.splice(t.list.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success("Deleted successfully!"))}))}))},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=u(),this.getList()},handleSortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()},closeDialog:function(){this.editVisible=!1}}},f=d,h=i("2877"),p=Object(h["a"])(f,n,a,!1,null,null,null);t["default"]=p.exports},af24:function(e,t,i){i("48c7"),i("f273")},af6e:function(e,t,i){},af70:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"search-container"},[i("span",{staticStyle:{"margin-left":"auto"}},[e.isCompleteConfig?e._e():i("el-button",{staticStyle:{"margin-left":"auto"},attrs:{type:"primary",icon:"el-icon-plus",size:"small"},on:{click:e.handleAdd}},[e._v("\n "+e._s(e.$t("common:button:new"))+"\n ")])],1)]),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"}],ref:"LesionTypeList",attrs:{data:e.list,stripe:"",height:"100"}},[i("el-table-column",{attrs:{type:"index",width:"90"}}),e._v(" "),i("el-table-column",{attrs:{prop:"LesionType",label:"病灶类型","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("LesionType",t.row.LesionType))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"OrganType",label:"器官类型","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("OrganType",t.row.OrganType))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:"创建时间","show-overflow-tooltip":""}}),e._v(" "),e.isCompleteConfig?e._e():i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"200",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{circle:"",title:"编辑",icon:"el-icon-edit-outline"},on:{click:function(i){return e.handleEdit(t.row)}}}),e._v(" "),i("el-button",{attrs:{circle:"",title:"删除",icon:"el-icon-delete"},on:{click:function(i){return e.handleDelete(t.row)}}})]}}],null,!1,2864343614)})],1)],1),e._v(" "),e.editDialog.visible?i("el-dialog",{attrs:{visible:e.editDialog.visible,"close-on-click-modal":!1,title:e.editDialog.title,width:"500px","custom-class":"base-dialog-wrapper","append-to-body":""},on:{"update:visible":function(t){return e.$set(e.editDialog,"visible",t)}}},[i("LesionTypeForm",{attrs:{data:e.rowData},on:{close:function(t){e.editDialog.visible=!1},getList:e.getList}})],1):e._e()],2)},a=[],r=i("db72"),o=i("e56e"),s=i("6071"),l=i("4572"),c=function(){return{OrganType:null}},u={name:"LesionTypeTbl",components:{BaseContainer:s["default"],LesionTypeForm:l["default"]},props:{criterionId:{type:String,required:!0},isCompleteConfig:{type:Boolean,required:!0}},data:function(){return{searchData:c(),loading:!1,list:[],total:0,rowData:{},editDialog:{title:"",visible:!1}}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0,Object(o["db"])({criterionId:this.criterionId}).then((function(t){e.loading=!1,e.list=t.Result})).catch((function(){e.loading=!1}))},handleAdd:function(){this.rowData={CriterionId:this.criterionId},this.editDialog.title="新增",this.editDialog.visible=!0},handleEdit:function(e){this.rowData=Object(r["a"])({},e),this.editDialog.title="编辑",this.editDialog.visible=!0},handleDelete:function(e){var t=this;this.$confirm("是否确认删除",{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.loading=!0,Object(o["B"])(e.Id).then((function(e){t.loading=!1,e.IsSuccess&&(t.getList(),t.$message.success("删除成功!"))})).catch((function(){t.loading=!1}))}))},handleSearch:function(){this.getList()},handleReset:function(){this.getList()},handleSortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()}}},d=u,f=i("2877"),h=Object(f["a"])(d,n,a,!1,null,null,null);t["default"]=h.exports},afa0:function(e,t,i){var n=i("6d8b"),a=i("22d1"),r=i("e1fc"),o=i("04f6");function s(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var l=function(){this._roots=[],this._displayList=[],this._displayListLen=0};l.prototype={constructor:l,traverse:function(e,t){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(e,t)},getDisplayList:function(e,t){return t=t||!1,e&&this.updateDisplayList(t),this._displayList},updateDisplayList:function(e){this._displayListLen=0;for(var t=this._roots,i=this._displayList,n=0,r=t.length;n<r;n++)this._updateAndAddDisplayable(t[n],null,e);i.length=this._displayListLen,a.canvasSupported&&o(i,s)},_updateAndAddDisplayable:function(e,t,i){if(!e.ignore||i){e.beforeUpdate(),e.__dirty&&e.update(),e.afterUpdate();var n=e.clipPath;if(n){t=t?t.slice():[];var a=n,r=e;while(a)a.parent=r,a.updateTransform(),t.push(a),r=a,a=a.clipPath}if(e.isGroup){for(var o=e._children,s=0;s<o.length;s++){var l=o[s];e.__dirty&&(l.__dirty=!0),this._updateAndAddDisplayable(l,t,i)}e.__dirty=!1}else e.__clipPaths=t,this._displayList[this._displayListLen++]=e}},addRoot:function(e){e.__storage!==this&&(e instanceof r&&e.addChildrenToStorage(this),this.addToStorage(e),this._roots.push(e))},delRoot:function(e){if(null==e){for(var t=0;t<this._roots.length;t++){var i=this._roots[t];i instanceof r&&i.delChildrenFromStorage(this)}return this._roots=[],this._displayList=[],void(this._displayListLen=0)}if(e instanceof Array){t=0;for(var a=e.length;t<a;t++)this.delRoot(e[t])}else{var o=n.indexOf(this._roots,e);o>=0&&(this.delFromStorage(e),this._roots.splice(o,1),e instanceof r&&e.delChildrenFromStorage(this))}},addToStorage:function(e){return e&&(e.__storage=this,e.dirty(!1)),this},delFromStorage:function(e){return e&&(e.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:s};var c=l;e.exports=c},afba:function(e,t,i){},afe7:function(e,t,i){"use strict";i("ab99")},aff8:function(e,t,i){},b006:function(e,t,i){var n=i("3eba"),a=i("6d8b"),r=i("fab22"),o=i("fc82"),s=i("f4a2"),l=i("2306"),c=["axisLine","axisTickLabel","axisName"],u=n.extendComponentView({type:"parallelAxis",init:function(e,t){u.superApply(this,"init",arguments),(this._brushController=new o(t.getZr())).on("brush",a.bind(this._onBrush,this))},render:function(e,t,i,n){if(!d(e,t,n)){this.axisModel=e,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new l.Group,this.group.add(this._axisGroup),e.get("show")){var s=h(e,t),u=s.coordinateSystem,f=e.getAreaSelectStyle(),p=f.width,m=e.axis.dim,g=u.getAxisLayout(m),v=a.extend({strokeContainThreshold:p},g),b=new r(e,v);a.each(c,b.add,b),this._axisGroup.add(b.getGroup()),this._refreshBrushController(v,f,e,s,p,i);var y=n&&!1===n.animation?null:e;l.groupTransition(o,this._axisGroup,y)}}},_refreshBrushController:function(e,t,i,n,a,r){var o=i.axis.getExtent(),c=o[1]-o[0],u=Math.min(30,.1*Math.abs(c)),d=l.BoundingRect.create({x:o[0],y:-a/2,width:c,height:a});d.x-=u,d.width+=2*u,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,position:e.position}).setPanels([{panelId:"pl",clipPath:s.makeRectPanelClipPath(d),isTargetByCursor:s.makeRectIsTargetByCursor(d,r,n),getLinearBrushOtherExtent:s.makeLinearBrushOtherExtent(d,0)}]).enableBrush({brushType:"lineX",brushStyle:t,removeOnClick:!0}).updateCovers(f(i))},_onBrush:function(e,t){var i=this.axisModel,n=i.axis,r=a.map(e,(function(e){return[n.coordToData(e.range[0],!0),n.coordToData(e.range[1],!0)]}));(!i.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:r})},dispose:function(){this._brushController.dispose()}});function d(e,t,i){return i&&"axisAreaSelect"===i.type&&t.findComponents({mainType:"parallelAxis",query:i})[0]===e}function f(e){var t=e.axis;return a.map(e.activeIntervals,(function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}}))}function h(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}var p=u;e.exports=p},b029:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"urgent-config-form"},[i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"urgentConfigForm",staticStyle:{width:"800px"},attrs:{model:e.form,"label-width":"220px",rules:e.rules,size:"small"}},[i("el-form-item",{attrs:{label:e.$t("trials:urgentCfg:form:enroll"),prop:"IsEnrollementQualificationConfirm"}},[i("el-radio-group",{attrs:{disabled:e.form.IsTrialUrgentConfirmed&&!e.isEdit},model:{value:e.form.IsEnrollementQualificationConfirm,callback:function(t){e.$set(e.form,"IsEnrollementQualificationConfirm",t)},expression:"form.IsEnrollementQualificationConfirm"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:urgentCfg:form:pd"),prop:"IsPDProgressView"}},[i("el-radio-group",{attrs:{disabled:e.form.IsTrialUrgentConfirmed&&!e.isEdit},model:{value:e.form.IsPDProgressView,callback:function(t){e.$set(e.form,"IsPDProgressView",t)},expression:"form.IsPDProgressView"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:urgentCfg:form:trial"),prop:"IsUrgent"}},[i("el-radio-group",{attrs:{disabled:e.form.IsTrialUrgentConfirmed&&!e.isEdit},model:{value:e.form.IsUrgent,callback:function(t){e.$set(e.form,"IsUrgent",t)},expression:"form.IsUrgent"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:urgentCfg:form:subject"),prop:"IsSubjectExpeditedView"}},[i("el-radio-group",{attrs:{disabled:e.form.IsTrialUrgentConfirmed&&!e.isEdit},model:{value:e.form.IsSubjectExpeditedView,callback:function(t){e.$set(e.form,"IsSubjectExpeditedView",t)},expression:"form.IsSubjectExpeditedView"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1),e._v(" "),i("el-form-item",[!1===e.form.IsTrialUrgentConfirmed&&e.hasPermi(["trials:trials-panel:setting:trial-config:save"])?i("el-button",{attrs:{type:"primary"},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")]):e._e(),e._v(" "),!1===e.form.IsTrialUrgentConfirmed&&e.hasPermi(["trials:trials-panel:setting:trial-config:save"])?i("el-button",{attrs:{type:"primary"},on:{click:e.handleConfirm}},[e._v("\n "+e._s(e.$t("trials:trialCfg:button:confirm"))+"\n ")]):e._e(),e._v(" "),!0===e.form.IsTrialUrgentConfirmed&&!e.isEdit&&e.hasPermi(["trials:trials-panel:setting:trial-config:save"])?i("el-button",{attrs:{type:"primary"},on:{click:function(t){e.isEdit=!0}}},[e._v("\n "+e._s(e.$t("trials:trialCfg:button:update"))+"\n ")]):e._e(),e._v(" "),!0===e.form.IsTrialUrgentConfirmed&&e.isEdit&&e.hasPermi(["trials:trials-panel:setting:trial-config:save"])?i("el-button",{attrs:{type:"primary"},on:{click:e.handleUpdate}},[e._v("\n "+e._s(e.$t("trials:trialCfg:button:updateAndConfirm"))+"\n ")]):e._e(),e._v(" "),!0===e.form.IsTrialUrgentConfirmed&&e.isEdit&&e.hasPermi(["trials:trials-panel:setting:trial-config:save"])?i("el-button",{attrs:{type:"primary"},on:{click:function(t){e.isEdit=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]):e._e()],1)],1),e._v(" "),e.confirmVisible?i("el-dialog",{attrs:{visible:e.confirmVisible,"close-on-click-modal":!1,width:"600px",title:e.$t("trials:trialCfg:dialogTitle:cfgConfirm"),"custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.confirmVisible=t}}},[i("div",{staticClass:"base-dialog-body"},[i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.confirmData,border:"",size:"small"}},[i("el-table-column",{attrs:{prop:"Name",label:e.$t("trials:trialCfg:table:cfgItem"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"NewVal",label:e.$t("trials:trialCfg:table:cfgVal"),"show-overflow-tooltip":""}})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleConfirmConfigData}},[e._v("\n "+e._s(e.$t("trials:trialCfg:button:confirmCfg"))+"\n ")])],1)]):e._e(),e._v(" "),e.updateVisible?i("el-dialog",{attrs:{visible:e.updateVisible,"close-on-click-modal":!1,width:"600px",title:e.$t("trials:trialCfg:dialogTitle:cfgConfirm"),"custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.updateVisible=t}}},[i("div",{staticClass:"base-dialog-body"},[i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.confirmData,border:"",size:"small"}},[i("el-table-column",{attrs:{prop:"Name",label:e.$t("trials:trialCfg:table:cfgItem"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"OldVal",label:e.$t("trials:trialCfg:table:cfgVal")+" "+e.$t("trials:trialCfg:table:beforeChange")+"","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"NewVal",label:e.$t("trials:trialCfg:table:cfgVal")+" "+e.$t("trials:trialCfg:table:updated")+"","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{class:{fontColor:t.row.NewVal!==t.row.OldVal}},[e._v(e._s(t.row.NewVal))])]}}],null,!1,1329206807)})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleUpdateConfigData}},[e._v("\n "+e._s(e.$t("trials:trialCfg:button:confirmCfg"))+"\n ")])],1)]):e._e(),e._v(" "),e.signVisible?i("el-dialog",{attrs:{visible:e.signVisible,"close-on-click-modal":!1,width:"600px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.signVisible=t}}},[i("div",{attrs:{slot:"title"},slot:"title"},[i("span",{staticStyle:{"font-size":"18px"}},[e._v(e._s(e.$t("common:dialogTitle:sign")))]),e._v(" "),i("span",{staticStyle:{"font-size":"12px","margin-left":"5px"}},[e._v(e._s("("+e.$t("common:label:sign")+e.currentUser+")"))])]),e._v(" "),i("SignForm",{ref:"signForm",attrs:{"sign-code-enum":e.signCode},on:{closeDialog:e.closeSignDialog}})],1):e._e()],1)},a=[],r=i("db72"),o=i("3e42"),s=i("0662"),l=i("179b"),c=i("7a9e"),u={name:"UrgentConfig",components:{SignForm:l["default"]},data:function(){return{form:{TrialId:"",IsEnrollementQualificationConfirm:null,IsPDProgressView:null,IsUrgent:null,IsSubjectExpeditedView:null,IsTrialUrgentConfirmed:!1},rules:{IsEnrollementQualificationConfirm:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}],IsPDProgressView:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}],IsUrgent:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}],IsSubjectExpeditedView:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}],IsTrialUrgentConfirmed:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}]},confirmVisible:!1,updateVisible:!1,signVisible:!1,btnLoading:!1,confirmData:[],loading:!1,signCode:null,currentUser:zzSessionStorage.getItem("userName"),initialForm:{},isEdit:!1}},methods:{handleSave:function(){var e=this;this.$refs["urgentConfigForm"].validate((function(t){t&&(e.loading=!0,Object(o["bb"])(e.form).then((function(t){e.loading=!1,t.IsSuccess&&(e.initialForm=Object(r["a"])({},e.form),e.$message.success(e.$t("common:message:savedSuccessfully")))})).catch((function(t){e.loading=!1})))}))},handleConfirm:function(){var e=this;this.$refs["urgentConfigForm"].validate((function(t){t&&(e.getConfigArr(),e.confirmVisible=!0)}))},handleUpdate:function(){var e=this;this.$refs["urgentConfigForm"].validate((function(t){t&&(e.getConfigArr(),e.updateVisible=!0)}))},handleConfirmConfigData:function(){var e=c["default"].processSignature.ExpeditedConfigConfirmation;this.signCode=e,this.initialForm=Object(r["a"])({},this.form),this.signVisible=!0},handleUpdateConfigData:function(){var e=c["default"].processSignature.ExpeditedConfigUpdates;this.signCode=e,this.initialForm=Object(r["a"])({},this.form),this.signVisible=!0},confirmConfigData:function(){var e=this;this.$refs["urgentConfigForm"].validate((function(t){t&&(e.btnLoading=!0,Object(o["bb"])(e.form).then((function(t){e.btnLoading=!1,t.IsSuccess&&(e.initialForm=Object(r["a"])({},e.form),e.signVisible=!0)})).catch((function(t){e.btnLoading=!1})))}))},closeSignDialog:function(e,t){e?this.signConfirm(t):this.signVisible=!1},signConfirm:function(e){var t=this;this.loading=!0;var i={data:this.form,signInfo:e};Object(s["c"])(i).then((function(e){t.loading=!1,e.IsSuccess&&(t.$message.success(t.$t("common:message:savedSuccessfully")),t.form.IsTrialUrgentConfirmed=!0,t.isEdit=!1,t.$refs["signForm"].btnLoading=!1,t.signVisible=!1,t.confirmVisible=!1,t.updateVisible=!1,t.$emit("refresh"))})).catch((function(e){t.loading=!1,t.$refs["signForm"].btnLoading=!1}))},getConfigArr:function(){this.confirmData=[{Name:this.$t("trials:urgentCfg:form:enroll"),NewVal:this.$fd("YesOrNo",this.form.IsEnrollementQualificationConfirm),OldVal:this.$fd("YesOrNo",this.initialForm.IsEnrollementQualificationConfirm)},{Name:this.$t("trials:urgentCfg:form:pd"),NewVal:this.$fd("YesOrNo",this.form.IsPDProgressView),OldVal:this.$fd("YesOrNo",this.initialForm.IsPDProgressView)},{Name:this.$t("trials:urgentCfg:form:trial"),NewVal:this.$fd("YesOrNo",this.form.IsUrgent),OldVal:this.$fd("YesOrNo",this.initialForm.IsUrgent)},{Name:this.$t("trials:urgentCfg:form:subject"),NewVal:this.$fd("YesOrNo",this.form.IsSubjectExpeditedView),OldVal:this.$fd("YesOrNo",this.initialForm.IsSubjectExpeditedView)}]},initForm:function(e){for(var t in this.form)e.hasOwnProperty(t)&&(this.form[t]=e[t]);this.initialForm=Object(r["a"])({},this.form)}}},d=u,f=(i("a654"),i("2877")),h=Object(f["a"])(d,n,a,!1,null,"1059ce16",null);t["default"]=h.exports},b02f:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"participant-list"},[i("div",{staticClass:"filter-box"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:staff:table:name")}},[i("el-input",{staticClass:"mr",attrs:{clearable:""},model:{value:e.listQuery.UserRealName,callback:function(t){e.$set(e.listQuery,"UserRealName",t)},expression:"listQuery.UserRealName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:staff:table:uid")}},[i("el-input",{staticClass:"mr",attrs:{clearable:""},model:{value:e.listQuery.UserName,callback:function(t){e.$set(e.listQuery,"UserName",t)},expression:"listQuery.UserName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:staff:table:userType")}},[i("el-select",{staticClass:"mr",attrs:{clearable:""},model:{value:e.listQuery.UserTypeId,callback:function(t){e.$set(e.listQuery,"UserTypeId",t)},expression:"listQuery.UserTypeId"}},e._l(e.userTypeOptions,(function(t){return i("el-option",{key:t.Id,attrs:{label:t.UserTypeShortName,value:t.Id}},[i("span",[e._v(e._s(t.UserType))])])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:staff:table:organization")}},[i("el-input",{staticClass:"mr",attrs:{clearable:""},model:{value:e.listQuery.OrganizationName,callback:function(t){e.$set(e.listQuery,"OrganizationName",t)},expression:"listQuery.OrganizationName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:staff:table:status")}},[i("el-select",{staticClass:"mr",attrs:{clearable:""},model:{value:e.listQuery.IsDeleted,callback:function(t){e.$set(e.listQuery,"IsDeleted",t)},expression:"listQuery.IsDeleted"}},[i("el-option",{attrs:{label:"退出",value:!0}}),e._v(" "),i("el-option",{attrs:{label:"加入",value:!1}})],1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")]),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:setting:personnel-manage:add-internal-staff"],expression:"['trials:trials-panel:setting:personnel-manage:add-internal-staff']"}],staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-plus"},on:{click:function(t){return e.handleAdd("Add")}}},[e._v("\n "+e._s(e.$t("common:button:add"))+"\n ")])],1)],1)],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:75},expression:"{bottomOffset:75}"}],ref:"settingList",attrs:{data:e.list,height:"100",stripe:""},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"UserRealName",label:e.$t("trials:staff:table:name"),"show-overflow-tooltip":"",sortable:"","min-width":"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:e.$t("trials:staff:table:uid"),"show-overflow-tooltip":"",sortable:"","min-width":"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"UserType",label:e.$t("trials:staff:table:userType"),"show-overflow-tooltip":"",sortable:"","min-width":"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Phone",label:e.$t("trials:staff:table:phone"),"show-overflow-tooltip":"",sortable:"","min-width":"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"EMail",label:e.$t("trials:staff:table:email"),"show-overflow-tooltip":"",sortable:"","min-width":"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"OrganizationName",label:e.$t("trials:staff:table:organization"),sortable:"","show-overflow-tooltip":"","min-width":"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsDeleted",label:e.$t("trials:staff:table:status"),"show-overflow-tooltip":"",sortable:"","min-width":"40"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsDeleted?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("IsUserExitTrial",t.row.IsDeleted)))]):i("el-tag",[e._v(e._s(e.$fd("IsUserExitTrial",t.row.IsDeleted)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"JoinTime",label:e.$t("trials:staff:table:joinTime"),"show-overflow-tooltip":"",sortable:"","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.JoinTime?e.moment(t.row.JoinTime).format("YYYY-MM-DD"):"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"RemoveTime",label:e.$t("trials:staff:table:exitTime"),"show-overflow-tooltip":"",sortable:"","min-width":"60"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.RemoveTime?e.moment(t.row.RemoveTime).format("YYYY-MM-DD"):"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:e.$t("trials:staff:table:authorizationTime"),"show-overflow-tooltip":"",sortable:"","min-width":"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"DeletedTime",label:e.$t("trials:staff:table:disableTime"),"show-overflow-tooltip":"",sortable:"","min-width":"60"}}),e._v(" "),e.hasPermi(["trials:trials-panel:setting:personnel-manage:status"])?i("el-table-column",{attrs:{label:e.$t("common:action:action"),"min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:setting:personnel-manage:status"],expression:"['trials:trials-panel:setting:personnel-manage:status']"}],attrs:{circle:"",title:e.$t("trials:staff:action:status"),icon:"el-icon-edit-outline",disabled:e.hasPermi(["role:pm"])&&1*t.row.UserTypeEnum===1},on:{click:function(i){return e.handleStatus(t.row)}}})]}}],null,!1,2261394539)}):e._e()],1),e._v(" "),i("div",{staticClass:"pagination",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("pagination",{attrs:{total:e.total,page:e.listQuery.PageIndex,limit:e.listQuery.PageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"PageIndex",t)},"update:limit":function(t){return e.$set(e.listQuery,"PageSize",t)},pagination:e.getList}})],1),e._v(" "),e.staff_model.visible?i("base-model",{attrs:{config:e.staff_model}},[i("template",{slot:"dialog-body"},["Add"==e.isAdd?i("StaffForm",{on:{closeDialog:e.closeDialog}}):i("StaffExternalForm",{on:{closeDialog:e.closeDialog,getList:e.getList}})],1)],2):e._e(),e._v(" "),e.status_model.visible?i("base-model",{attrs:{config:e.status_model}},[i("template",{slot:"dialog-body"},[i("el-form",{ref:"statusForm",attrs:{model:e.statusForm,"label-width":"110px",size:"small",rules:e.statusRules}},[i("el-form-item",{attrs:{label:e.$t("trials:staff:table:status"),prop:"isDeleted"}},[i("el-radio-group",{on:{change:e.handleIsDeletedChanged},model:{value:e.statusForm.isDeleted,callback:function(t){e.$set(e.statusForm,"isDeleted",t)},expression:"statusForm.isDeleted"}},[i("el-radio",{attrs:{label:!0}},[e._v("退出")]),e._v(" "),i("el-radio",{attrs:{label:!1}},[e._v("加入")])],1)],1),e._v(" "),e.statusForm.isDeleted?i("el-form-item",{attrs:{label:e.$t("trials:staff:table:exitTime"),prop:"removeTime"}},[i("el-date-picker",{attrs:{type:"date","picker-options":e.pickerOption,"value-format":"yyyy-MM-dd",format:"yyyy-MM-dd"},model:{value:e.statusForm.removeTime,callback:function(t){e.$set(e.statusForm,"removeTime",t)},expression:"statusForm.removeTime"}})],1):i("el-form-item",{attrs:{label:e.$t("trials:staff:table:joinTime"),prop:"joinTime"}},[i("el-date-picker",{attrs:{type:"date","picker-options":e.pickerOption,"value-format":"yyyy-MM-dd",format:"yyyy-MM-dd"},model:{value:e.statusForm.joinTime,callback:function(t){e.$set(e.statusForm,"joinTime",t)},expression:"statusForm.joinTime"}})],1)],1)],1),e._v(" "),i("template",{slot:"dialog-footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){e.status_model.visible=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.saveStatus}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],2):e._e()],1)},a=[],r=i("db72"),o=i("3e42"),s=i("333d"),l=i("1a33"),c=i("2c9b"),u=i("7eeb"),d=i("c1df"),f=i.n(d),h=function(){return{UserRealName:"",UserName:"",UserTypeId:"",OrganizationName:"",IsDeleted:null,PageIndex:1,PageSize:20}},p={name:"Staff",components:{Pagination:s["default"],StaffForm:l["default"],BaseModel:u["default"],StaffExternalForm:c["default"]},data:function(){return{list:[],listQuery:h(),listLoading:!1,total:0,staff_model:{visible:!1,title:this.$t("trials:staff:dialogTitle:add"),width:"1200px"},status_model:{visible:!1,title:this.$t("trials:staff:dialogTitle:status"),width:"500px"},userTypeOptions:[],isAdd:"Add",staffStatus:null,btnLoading:!1,currentRow:{},trialId:"",moment:f.a,statusForm:{isDeleted:!1,removeTime:"",joinTime:""},statusRules:{removeTime:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur"]}],joinTime:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur"]}]},pickerOption:{disabledDate:function(e){return e.getTime()>Date.now()}}}},mounted:function(){this.trialId=this.$route.query.trialId,this.getUserType(),this.getList()},methods:{getList:function(){var e=this;this.listLoading=!0,this.listQuery.TrialId=this.trialId,Object(o["pc"])(this.listQuery).then((function(t){e.listLoading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.listLoading=!1}))},handleAdd:function(e){this.staff_model.visible=!0,this.isAdd=e},handleStatus:function(e){var t=Object(r["a"])({},e),i=t.IsDeleted,n=t.RemoveTime,a=t.JoinTime;this.currentRow=Object(r["a"])({},e),this.statusForm.isDeleted=i,this.statusForm.removeTime=n,this.statusForm.joinTime=a,this.status_model.visible=!0},saveStatus:function(){var e=this;this.$refs.statusForm.validate((function(t){if(t){e.btnLoading=!0;var i={id:e.currentRow.Id,trialId:e.trialId,isDeleted:e.statusForm.isDeleted,removeTime:e.statusForm.removeTime,joinTime:e.statusForm.joinTime};Object(o["uf"])(i).then((function(t){e.btnLoading=!1,t.IsSuccess&&(e.status_model.visible=!1,e.getList(),e.$message.success(e.$t("common:message:savedSuccessfully")))})).catch((function(){e.btnLoading=!1}))}}))},handleIsDeletedChanged:function(e){e?this.statusForm.joinTime="":this.statusForm.removeTime=""},handleSearch:function(){this.listQuery.PageIndex=1,this.getList()},handleReset:function(){this.listQuery=h(),this.getList()},handleSortByColumn:function(e){"ascending"===e.order?this.listQuery.Asc=!0:this.listQuery.Asc=!1,this.listQuery.SortField=e.prop,this.listQuery.PageIndex=1,this.getList()},closeDialog:function(){this.staff_model.visible=!1,this.$message.success(this.$t("common:message:savedSuccessfully")),this.getList()},handleExport:function(){var e=this;this.listLoading=!0,this.listQuery.TrialId=this.trialId,Object(o["pf"])(Object(r["a"])({},this.listQuery)).then((function(t){e.listLoading=!1})).catch((function(){e.listLoading=!1}))},getUserType:function(){var e=this;Object(o["de"])().then((function(t){e.userTypeOptions=t.Result}))}}},m=p,g=(i("268d"),i("2877")),v=Object(g["a"])(m,n,a,!1,null,null,null);t["default"]=v.exports},b034:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",[i("div",{staticClass:"search"},[i("el-form",{staticClass:"base-search-form",attrs:{inline:!0,size:"mini"}},[i("el-form-item",{attrs:{label:"字典表名称:"}},[i("el-input",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.Code,callback:function(t){e.$set(e.searchData,"Code",t)},expression:"searchData.Code"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"字典分组:"}},[i("el-select",{attrs:{placeholder:"字典分组",clearable:"",size:"small"},model:{value:e.searchData.ConfigTypeId,callback:function(t){e.$set(e.searchData,"ConfigTypeId",t)},expression:"searchData.ConfigTypeId"}},e._l(e.basicDicList,(function(e){return i("el-option",{key:e.Id,attrs:{value:e.Id,label:e.Code}})})),1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:e.handleReset}},[e._v("Reset")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.handleSearch}},[e._v("Search")])],1)],1),e._v(" "),i("span",{staticStyle:{"margin-left":"auto"}},[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.handleAdd}},[e._v("新建")])],1)],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:45},expression:"{bottomOffset:45}"}],attrs:{data:e.list,stripe:"",size:"small",height:"100"},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Code",label:"字典表名称",sortable:"custom","min-width":"180","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ConfigType",label:"字典分组",sortable:"custom","min-width":"180","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Description",label:"描述",sortable:"custom","min-width":"180","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ShowOrder",label:"显示顺序",sortable:"custom","min-width":"180","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:"是否可用",width:"100",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},on:{change:function(i){return e.switchChange(i,t.row)}},model:{value:t.row.IsEnable,callback:function(i){e.$set(t.row,"IsEnable",i)},expression:"scope.row.IsEnable"}})]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"操作",width:"300",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("\n 编辑\n ")]),e._v(" "),i("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(i){return e.handleChild(t.row)}}},[e._v("\n 子项\n ")]),e._v(" "),i("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("\n 删除\n ")])]}}])})],1),e._v(" "),i("div",{staticClass:"pagination",staticStyle:{"text-align":"right","margin-top":"5px"}},[i("pagination",{attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1),e._v(" "),i("DictionaryTypeConfigForm",{ref:"DictionaryTypeConfigForm",attrs:{"basic-dic-list":e.basicDicList},on:{getList:e.getList}}),e._v(" "),i("el-drawer",{attrs:{title:e.drawer_cfg.title,visible:e.drawer_cfg.drawerChild,direction:"rtl",size:"80%"},on:{"update:visible":function(t){return e.$set(e.drawer_cfg,"drawerChild",t)}}},[e.drawer_cfg.drawerChild?i("DictionaryChild",{ref:"DictionaryChild",attrs:{parent:e.drawer_cfg.parent}}):e._e()],1)],1)},a=[],r=(i("20d6"),i("e56e")),o=i("fc57"),s=i("cf221"),l=i("333d"),c=i("f36a"),u=function(){return{Asc:!0,SortField:"",Code:"",KeyName:"",DataTypeEnum:3,PageIndex:1,PageSize:20,ConfigTypeId:null}},d={components:{BoxContent:c["default"],Pagination:l["default"],DictionaryTypeConfigForm:o["default"],DictionaryChild:s["default"]},data:function(){return{searchData:u(),basicDicList:[],list:[],total:0,loading:!1,drawer_cfg:{drawerChild:!1,parentId:"",title:""},rowData:{},model_cfg:{visible:!1,showClose:!0,width:"600px",title:"",appendToBody:!0}}},mounted:function(){this.getList(),this.getDictionaryTypeConfig()},methods:{handleSortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()},handleChild:function(e){this.drawer_cfg={drawerChild:!0,parentId:e.Id,title:e.Code,parent:e}},handleSetting:function(){this.$router.push({path:"/dictionary/newDictionary/setting"})},switchChange:function(e,t){var i=this;this.loading=!0,Object(r["c"])(t).then((function(e){i.$message.success("Saved successfully!"),i.loading=!1})).catch((function(){i.loading=!1}))},handleEdit:function(e){var t=this;this.$nextTick((function(){t.$refs["DictionaryTypeConfigForm"].openDialog("DictionaryTypeConfig",e)}))},handleAdd:function(){var e=this;this.$nextTick((function(){e.$refs["DictionaryTypeConfigForm"].openDialog("DictionaryTypeConfig",{DataTypeEnum:3})}))},handleDelete:function(e){var t=this;this.$confirm("Sure to delete?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){t.loading=!0,Object(r["C"])(e.Id).then((function(i){t.loading=!1,i.IsSuccess&&(t.list.splice(t.list.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success("Deleted successfully!"))})).catch((function(){t.loading=!1}))}))},getList:function(){var e=this;this.loading=!0,Object(r["W"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},getDictionaryTypeConfig:function(){var e=this;Object(r["W"])({DataTypeEnum:0,SortField:"Code",PageIndex:1,PageSize:500}).then((function(t){e.basicDicList=t.Result.CurrentPageData,console.log(e.basicDicList)})).catch((function(){}))},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=u(),this.getList()}}},f=d,h=i("2877"),p=Object(h["a"])(f,n,a,!1,null,null,null);t["default"]=p.exports},b047:function(e,t,i){var n=i("1a8c"),a=i("408c"),r=i("b4b0"),o="Expected a function",s=Math.max,l=Math.min;function c(e,t,i){var c,u,d,f,h,p,m=0,g=!1,v=!1,b=!0;if("function"!=typeof e)throw new TypeError(o);function y(t){var i=c,n=u;return c=u=void 0,m=t,f=e.apply(n,i),f}function w(e){return m=e,h=setTimeout(x,t),g?y(e):f}function _(e){var i=e-p,n=e-m,a=t-i;return v?l(a,d-n):a}function I(e){var i=e-p,n=e-m;return void 0===p||i>=t||i<0||v&&n>=d}function x(){var e=a();if(I(e))return S(e);h=setTimeout(x,_(e))}function S(e){return h=void 0,b&&c?y(e):(c=u=void 0,f)}function T(){void 0!==h&&clearTimeout(h),m=0,c=p=u=h=void 0}function C(){return void 0===h?f:S(a())}function k(){var e=a(),i=I(e);if(c=arguments,u=this,p=e,i){if(void 0===h)return w(p);if(v)return clearTimeout(h),h=setTimeout(x,t),y(p)}return void 0===h&&(h=setTimeout(x,t)),f}return t=r(t)||0,n(i)&&(g=!!i.leading,v="maxWait"in i,d=v?s(r(i.maxWait)||0,t):d,b="trailing"in i?!!i.trailing:b),k.cancel=T,k.flush=C,k}e.exports=c},b061:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"education-info"},[i("div",{staticClass:"title"},[e._v("Education (in chronological order)")]),e._v(" "),i("el-table",{staticStyle:{width:"100%","margin-top":"10px"},attrs:{data:e.educationList,border:"",size:"small"}},[i("el-table-column",{attrs:{type:"index",label:"No.",width:"45"}}),e._v(" "),i("el-table-column",{attrs:{prop:"BeginDateStr",label:"Start","min-width":"55","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"EndDateStr",label:"End","min-width":"55","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Degree",label:"Degree","min-width":"70","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{directives:[{name:"show",rawName:"v-show",value:t.row.Degree,expression:"scope.row.Degree"}]},[e._v("\n "+e._s(e.isEnglish?t.row.Degree:t.row.DegreeCN)+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Major",label:"Major","min-width":"130","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{directives:[{name:"show",rawName:"v-show",value:t.row.Major,expression:"scope.row.Major"}]},[e._v("\n "+e._s(e.isEnglish?t.row.Major:t.row.MajorCN)+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Organization",label:"Institution","min-width":"150","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{directives:[{name:"show",rawName:"v-show",value:t.row.Organization,expression:"scope.row.Organization"}]},[e._v("\n "+e._s(e.isEnglish?t.row.Organization:t.row.OrganizationCN)+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"City",label:"City","min-width":"70","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{directives:[{name:"show",rawName:"v-show",value:t.row.City,expression:"scope.row.City"}]},[e._v("\n "+e._s(e.isEnglish?t.row.City:t.row.CityCN)+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Province",label:"State/Province","min-width":"80","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{directives:[{name:"show",rawName:"v-show",value:t.row.Province,expression:"scope.row.Province"}]},[e._v("\n "+e._s(e.isEnglish?t.row.Province:t.row.ProvinceCN)+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Country",label:"Country","min-width":"70","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{directives:[{name:"show",rawName:"v-show",value:t.row.Country,expression:"scope.row.Country"}]},[e._v("\n "+e._s(e.isEnglish?t.row.Country:t.row.CountryCN)+"\n ")])]}}])})],1),e._v(" "),i("div",{staticClass:"title"},[e._v("Postgraduate Training (in chronological order)")]),e._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.postgraduateList,border:"",size:"small"}},[i("el-table-column",{attrs:{type:"index",label:"No.",width:"45"}}),e._v(" "),i("el-table-column",{attrs:{prop:"BeginDateStr",label:"Start","min-width":"55","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"EndDateStr",label:"End","min-width":"55","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Training",label:"Training","min-width":"70","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{directives:[{name:"show",rawName:"v-show",value:t.row.Training,expression:"scope.row.Training"}]},[e._v("\n "+e._s(e.isEnglish?t.row.Training:t.row.TrainingCN)+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Major",label:"Specialty / Research Field","min-width":"140","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{directives:[{name:"show",rawName:"v-show",value:t.row.Major,expression:"scope.row.Major"}]},[e._v("\n "+e._s(e.isEnglish?t.row.Major:t.row.MajorCN)+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Hospital",label:"Hospital","min-width":"110","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{directives:[{name:"show",rawName:"v-show",value:t.row.Hospital,expression:"scope.row.Hospital"}]},[e._v("\n "+e._s(e.isEnglish?t.row.Hospital:t.row.HospitalCN)+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"School",label:"University","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{directives:[{name:"show",rawName:"v-show",value:t.row.School,expression:"scope.row.School"}]},[e._v("\n "+e._s(e.isEnglish?t.row.School:t.row.SchoolCN)+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"City",label:"City","min-width":"70","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{directives:[{name:"show",rawName:"v-show",value:t.row.City,expression:"scope.row.City"}]},[e._v("\n "+e._s(e.isEnglish?t.row.City:t.row.CityCN)+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Province",label:"State/Province","min-width":"90","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{directives:[{name:"show",rawName:"v-show",value:t.row.Province,expression:"scope.row.Province"}]},[e._v("\n "+e._s(e.isEnglish?t.row.Province:t.row.ProvinceCN)+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Country",label:"Country","min-width":"70","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{directives:[{name:"show",rawName:"v-show",value:t.row.Country,expression:"scope.row.Country"}]},[e._v("\n "+e._s(e.isEnglish?t.row.Country:t.row.CountryCN)+"\n ")])]}}])})],1)],1)},a=[],r={props:{educationList:{type:Array,default:function(){return[]}},postgraduateList:{type:Array,default:function(){return[]}},isEnglish:{type:Boolean}},methods:{}},o=r,s=(i("18e0"),i("2877")),l=Object(s["a"])(o,n,a,!1,null,null,null);t["default"]=l.exports},b0af:function(e,t,i){var n=i("2306"),a=i("3842"),r=a.round;function o(e,t,i){var a=e.getArea(),r=e.getBaseAxis().isHorizontal(),o=a.x,s=a.y,l=a.width,c=a.height,u=i.get("lineStyle.width")||2;o-=u/2,s-=u/2,l+=u,c+=u,o=Math.floor(o),l=Math.round(l);var d=new n.Rect({shape:{x:o,y:s,width:l,height:c}});return t&&(d.shape[r?"width":"height"]=0,n.initProps(d,{shape:{width:l,height:c}},i)),d}function s(e,t,i){var a=e.getArea(),o=new n.Sector({shape:{cx:r(e.cx,1),cy:r(e.cy,1),r0:r(a.r0,1),r:r(a.r,1),startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}});return t&&(o.shape.endAngle=a.startAngle,n.initProps(o,{shape:{endAngle:a.endAngle}},i)),o}function l(e,t,i){return e?"polar"===e.type?s(e,t,i):"cartesian2d"===e.type?o(e,t,i):null:null}t.createGridClipPath=o,t.createPolarClipPath=s,t.createClipPath=l},b0f2:function(e,t,i){"use strict";i("bb6c")},b11c:function(e,t,i){i("8ec5"),i("db9e"),i("4e9f"),i("d3a0"),i("767c"),i("7c4d"),i("df70")},b12d:function(e,t,i){},b12f:function(e,t,i){var n=i("e1fc"),a=i("8918"),r=i("625e"),o=function(){this.group=new n,this.uid=a.getUID("viewComponent")};o.prototype={constructor:o,init:function(e,t){},render:function(e,t,i,n){},dispose:function(){},filterForExposedEvent:null};var s=o.prototype;s.updateView=s.updateLayout=s.updateVisual=function(e,t,i,n){},r.enableClassExtend(o),r.enableClassManagement(o,{registerWhenExtend:!0});var l=o;e.exports=l},b147:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[i("div",{staticClass:"search-form",staticStyle:{"text-align":"left"}},[e.isConfirm||!e.hasPermi(["trials:trials-panel:setting:reading-unit:edit"])||e.isFromSystem?e._e():i("el-button",{attrs:{size:"mini",type:"primary"},on:{click:e.handleAdd}},[e._v("\n "+e._s(e.$t("common:button:new"))+"\n ")]),e._v(" "),e.isPreview?i("el-button",{attrs:{disabled:0===e.tblList.length,size:"mini",type:"primary"},on:{click:e.handlePreview}},[e._v("\n "+e._s(e.$t("common:button:preview"))+"\n ")]):e._e()],1),e._v(" "),i("el-table",{attrs:{data:e.tblList,size:"small"}},[i("el-table-column",{attrs:{prop:"ShowOrder",label:"",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"GroupName",label:e.$t("trials:readingUnit:qsList:title:groupName"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"GroupEnName",label:e.$t("trials:readingUnit:qsList:title:groupNameEn"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"QuestionName",label:e.$t("trials:readingUnit:qsList:title:qsName"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"QuestionEnName",label:e.$t("trials:readingUnit:qsList:title:qsNameEn"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Type",label:e.$t("trials:readingUnit:qsList:title:type"),"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("Criterion_Question_Type",t.row.Type))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsRequired",label:e.$t("trials:readingUnit:qsList:title:isRequired"),"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("QuestionRequired",t.row.IsRequired))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ShowQuestion",label:e.$t("trials:readingUnit:qsList:title:isShow"),"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("ShowQuestion",t.row.ShowQuestion))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsJudgeQuestion",label:e.$t("trials:readingUnit:qsList:title:isJudgeQuestion"),width:"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("YesOrNo",t.row.IsJudgeQuestion))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsShowInDicom",label:e.$t("trials:readingUnit:qsList:title:isShowInDicom"),width:"140","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("YesOrNo",t.row.IsShowInDicom))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"GlobalReadingShowType",label:e.$t("trials:readingUnit:qsList:title:globalReadingShowType"),width:"160","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("GlobalReadingShowType",t.row.GlobalReadingShowType))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"LimitEdit",label:e.$t("trials:readingUnit:qsList:title:limitEdit"),width:"160","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("LimitEdit",t.row.LimitEdit))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Remark",label:e.$t("trials:readingUnit:qsList:title:Remark"),width:"140","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"",label:e.$t("common:action:action"),width:"280","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e.isConfirm||e.isFromSystem||!e.hasPermi(["trials:trials-panel:setting:reading-unit:edit"])?i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(i){return e.handlelook(t.row)}}},[e._v("\n "+e._s(e.$t("trials:readingUnit:qsList:title:view"))+"\n ")]):i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("\n "+e._s(e.$t("trials:readingUnit:qsList:title:edit"))+"\n ")]),e._v(" "),"table"===t.row.Type?i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(i){return e.handleConfig(t.row)}}},[e._v("\n "+e._s(e.$t("trials:readingUnit:qsList:title:tableQs"))+"\n ")]):e._e(),e._v(" "),e.isConfirm||e.isFromSystem||!e.hasPermi(["trials:trials-panel:setting:reading-unit:edit"])?e._e():i("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("\n "+e._s(e.$t("trials:readingUnit:qsList:title:delete"))+"\n ")])]}}])})],1),e._v(" "),e.addOrEdit.visible?i("el-dialog",{attrs:{visible:e.addOrEdit.visible,"close-on-click-modal":!1,title:e.addOrEdit.title,width:"600px","append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){return e.$set(e.addOrEdit,"visible",t)}}},[i("QuestionsForm",{ref:"addOrEdit",attrs:{data:e.rowData,"trial-criterion-id":e.trialCriterionId,"is-from-system":e.isFromSystem,"digit-places":e.digitPlaces,list:e.tblList,"is-look":e.isLook,IsSystemCriterion:e.IsSystemCriterion},on:{close:function(t){e.addOrEdit.visible=!1},getList:e.getList,reloadArbitrationRules:e.reloadArbitrationRules}})],1):e._e(),e._v(" "),e.preview.visible?i("el-dialog",{attrs:{visible:e.preview.visible,"close-on-click-modal":!1,title:e.preview.title,fullscreen:!0},on:{"update:visible":function(t){return e.$set(e.preview,"visible",t)}}},[i("QuestionsPreview",{attrs:{"criterion-id":e.trialCriterionId,"form-type":1}})],1):e._e(),e._v(" "),e.config.visible?i("el-dialog",{attrs:{visible:e.config.visible,"close-on-click-modal":!1,title:e.config.title,fullscreen:!0},on:{"update:visible":function(t){return e.$set(e.config,"visible",t)}}},[i("TableQsList",{attrs:{"digit-places":e.digitPlaces,"reading-question-id":e.rowData.Id,"is-from-system":e.isFromSystem,"is-confirm":e.isConfirm,"criterion-id":e.trialCriterionId},on:{close:function(t){e.config.visible=!1}}})],1):e._e()],1)},a=[],r=i("db72"),o=(i("c5f6"),i("3e42")),s=i("72a8"),l=i("0b82"),c=i("7faa"),u=function(){return{QuestionName:""}},d={name:"QcQuestions",components:{QuestionsForm:s["default"],QuestionsPreview:l["default"],TableQsList:c["default"]},props:{digitPlaces:{type:Number,default:function(){return 0}},list:{type:Array,default:function(){return[]}},trialCriterionId:{type:String,required:!0},readingCriterionPageId:{type:String,default:""},isConfirm:{type:Boolean,default:!0},isPreview:{type:Boolean,default:!0},isFromSystem:{type:Boolean,default:!0}},data:function(){return{searchData:u(),isLook:null,tblList:[],total:0,loading:!1,rowData:{},addOrEdit:{visible:!1,title:""},preview:{visible:!1,title:this.$t("trials:readingUnit:qsList:title:ecrfPreview")},config:{visible:!1,title:""}}},mounted:function(){this.tblList=this.list},methods:{getList:function(){var e=this;this.loading=!0,this.searchData.ReadingQuestionCriterionTrialId=this.trialCriterionId,this.searchData.ReadingCriterionPageId=this.readingCriterionPageId,Object(o["Xc"])(this.searchData).then((function(t){e.loading=!1,e.tblList=t.Result})).catch((function(){e.loading=!1}))},handleAdd:function(){this.rowData={ReadingQuestionCriterionTrialId:this.trialCriterionId,ReadingCriterionPageId:this.readingCriterionPageId,Id:""},this.isLook=!1,this.addOrEdit.title=this.$t("trials:readingUnit:qsList:title:add"),this.addOrEdit.visible=!0},handlelook:function(e){this.rowData=Object(r["a"])({},e),this.isLook=!0,this.rowData.ReadingQuestionCriterionTrialId=this.trialCriterionId,this.rowData.ReadingCriterionPageId=this.readingCriterionPageId,this.addOrEdit.title=this.$t("trials:readingUnit:qsList:title:view"),this.addOrEdit.visible=!0},handleEdit:function(e){this.rowData=Object(r["a"])({},e),this.isLook=!1,this.rowData.ReadingQuestionCriterionTrialId=this.trialCriterionId,this.rowData.ReadingCriterionPageId=this.readingCriterionPageId,this.addOrEdit.title=this.$t("trials:readingUnit:qsList:title:edit"),this.addOrEdit.visible=!0},handleDelete:function(e){var t=this;this.$confirm(this.$t("trials:readingUnit:qsList:message:deleteConfirm"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.loading=!0,Object(o["sb"])(e.Id).then((function(e){t.loading=!1,e.IsSuccess&&(t.getList(),t.$message.success(t.$t("trials:readingUnit:qsList:message:deleteSuccessfully")))})).catch((function(){t.loading=!1}))}))},handlePreview:function(){this.preview.visible=!0},handleConfig:function(e){this.rowData=Object(r["a"])({},e),this.config.title="".concat(this.$fd("LesionType",e.LesionType),"").concat(this.$t("trials:readingUnit:qsList:title:tableQs")),this.config.visible=!0},handleSearch:function(){this.getList()},handleReset:function(){this.searchData=u(),this.getList()},reloadArbitrationRules:function(){this.$emit("reloadArbitrationRules")}}},f=d,h=i("2877"),p=Object(h["a"])(f,n,a,!1,null,"8a9faf1e",null);t["default"]=p.exports},b169:function(e,t,i){"use strict";i("7086")},b16f:function(e,t,i){var n=i("4ab1"),a=i("6d8b"),r=i("4942"),o=i("41ef");function s(e,t){n.call(this,e,t,["linearGradient","radialGradient"],"__gradient_in_use__")}a.inherits(s,n),s.prototype.addWithoutUpdate=function(e,t){if(t&&t.style){var i=this;a.each(["fill","stroke"],(function(n){if(t.style[n]&&("linear"===t.style[n].type||"radial"===t.style[n].type)){var a,r=t.style[n],o=i.getDefs(!0);r._dom?(a=r._dom,o.contains(r._dom)||i.addDom(a)):a=i.add(r),i.markUsed(t);var s=a.getAttribute("id");e.setAttribute(n,"url(#"+s+")")}}))}},s.prototype.add=function(e){var t;if("linear"===e.type)t=this.createElement("linearGradient");else{if("radial"!==e.type)return r("Illegal gradient type."),null;t=this.createElement("radialGradient")}return e.id=e.id||this.nextId++,t.setAttribute("id","zr"+this._zrId+"-gradient-"+e.id),this.updateDom(e,t),this.addDom(t),t},s.prototype.update=function(e){var t=this;n.prototype.update.call(this,e,(function(){var i=e.type,n=e._dom.tagName;"linear"===i&&"linearGradient"===n||"radial"===i&&"radialGradient"===n?t.updateDom(e,e._dom):(t.removeDom(e),t.add(e))}))},s.prototype.updateDom=function(e,t){if("linear"===e.type)t.setAttribute("x1",e.x),t.setAttribute("y1",e.y),t.setAttribute("x2",e.x2),t.setAttribute("y2",e.y2);else{if("radial"!==e.type)return void r("Illegal gradient type.");t.setAttribute("cx",e.x),t.setAttribute("cy",e.y),t.setAttribute("r",e.r)}e.global?t.setAttribute("gradientUnits","userSpaceOnUse"):t.setAttribute("gradientUnits","objectBoundingBox"),t.innerHTML="";for(var i=e.colorStops,n=0,a=i.length;n<a;++n){var s=this.createElement("stop");s.setAttribute("offset",100*i[n].offset+"%");var l=i[n].color;if(l.indexOf("rgba")>-1){var c=o.parse(l)[3],u=o.toHex(l);s.setAttribute("stop-color","#"+u),s.setAttribute("stop-opacity",c)}else s.setAttribute("stop-color",i[n].color);t.appendChild(s)}e._dom=t},s.prototype.markUsed=function(e){if(e.style){var t=e.style.fill;t&&t._dom&&n.prototype.markUsed.call(this,t._dom),t=e.style.stroke,t&&t._dom&&n.prototype.markUsed.call(this,t._dom)}};var l=s;e.exports=l},b191:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("router-view")},a=[],r={},o=r,s=i("2877"),l=Object(s["a"])(o,n,a,!1,null,"6e7d99e5",null);t["default"]=l.exports},b1d4:function(e,t,i){var n=i("862d");function a(e,t){return t=t||{},n(t.coordDimensions||[],e,{dimsDef:t.dimensionsDefine||e.dimensionsDefine,encodeDef:t.encodeDefine||e.encodeDefine,dimCount:t.dimensionsCount,encodeDefaulter:t.encodeDefaulter,generateCoord:t.generateCoord,generateCoordCount:t.generateCoordCount})}e.exports=a},b202:function(e,t,i){},b235:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{height:"100%"}},[i("router-view")],1)},a=[],r=i("2877"),o={},s=Object(r["a"])(o,n,a,!1,null,null,null);t["default"]=s.exports},b244:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{ref:"previousOther",staticClass:"previousOther-wrapper",attrs:{model:e.form,"label-width":"100px",size:"small",rules:e.rules}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:e.$t("trials:uploadClinicalData:table:treatmentType"),prop:"TreatmentType"}},[i("el-input",{model:{value:e.form.TreatmentType,callback:function(t){e.$set(e.form,"TreatmentType",t)},expression:"form.TreatmentType"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:uploadClinicalData:table:treatmentbeginDate"),prop:"StartTime"}},[i("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date","value-format":"yyyy-MM-dd",format:"yyyy-MM-dd","picker-options":e.beginPickerOption},model:{value:e.form.StartTime,callback:function(t){e.$set(e.form,"StartTime",t)},expression:"form.StartTime"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:uploadClinicalData:table:treatmentendDate"),prop:"EndTime"}},[i("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date","value-format":"yyyy-MM-dd",format:"yyyy-MM-dd","picker-options":e.endpickerOption},model:{value:e.form.EndTime,callback:function(t){e.$set(e.form,"EndTime",t)},expression:"form.EndTime"}})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{size:"small",type:"primary",disabled:e.saveBtnLoading},on:{click:e.cancel}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.saveBtnLoading},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])},a=[],r=(i("ac6a"),i("456d"),i("3e42")),o={name:"PreviousOther",props:{parentData:{type:Object,default:function(){return{}}},data:{type:Object,default:function(){return{}}},subjectVisitId:{type:String,required:!0}},data:function(){var e=this;return{trialId:this.$route.query.trialId,form:{Id:"",TreatmentType:"",StartTime:"",EndTime:"",ClinicalDataTrialSetId:""},rules:{TreatmentType:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:["blur","change"]}]},saveBtnLoading:!1,beginPickerOption:{disabledDate:function(t){return e.form.EndTime?t.getTime()>=new Date(e.form.EndTime).getTime():t.getTime()>Date.now()}},endpickerOption:{disabledDate:function(t){return e.form.StartTime?t.getTime()>Date.now()||t.getTime()<=new Date(e.form.StartTime).getTime()-864e5:t.getTime()>Date.now()}}}},mounted:function(){if(Object.keys(this.data).length)for(var e in this.form)this.data.hasOwnProperty(e)&&(this.form[e]=this.data[e])},methods:{handleSave:function(){var e=this;this.$refs.previousOther.validate((function(t){t&&(e.saveBtnLoading=!0,e.form.SubjectVisitId=e.subjectVisitId,Object(r["m"])(e.trialId,e.form).then((function(t){e.saveBtnLoading=!1,e.$emit("closePODialog"),e.$emit("refresh"),e.$message.success(e.$t("common:message:savedSuccessfully"))})).catch((function(){e.saveBtnLoading=!1})))}))},cancel:function(){this.$emit("closePODialog")}}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},b278:function(e,t,i){},b2e9:function(e,t,i){"use strict";i("36ff")},b300:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"trialExperience-info"},[i("div",{staticClass:"title"},[e._v("Clinical Trial Experience")]),e._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.GCPList,border:"",size:"small"}},[i("el-table-column",{attrs:{type:"index",label:"No.",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Phase",label:"Phase","min-width":"20","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"EvaluationCriteriaList",label:"Review Criteria","min-width":"40","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.EvaluationCriteriaList.length>0?t.row.EvaluationCriteriaList.join(", "):"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitReadingCount",label:"Visit Reading Count","min-width":"150","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"EvaluationContent",label:"Indication","min-width":"150","show-overflow-tooltip":""}})],1),e._v(" "),i("el-form",{staticClass:"demo-form-inline",attrs:{model:e.form,size:"small"}},[i("el-form-item",{attrs:{label:"GCP Certificate:"}},[i("span",[e._v(e._s(e.GCP))]),e._v(" "),e.form.GCP?i("a",{staticClass:"view",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.previewGCP()}}},[e._v("View")]):e._e()]),e._v(" "),i("el-form-item",{attrs:{label:"Other Relevant Experience:"}},[e.isEnglish?i("el-input",{attrs:{type:"textarea",autosize:"",readonly:""},model:{value:e.form.OtherClinicalExperience,callback:function(t){e.$set(e.form,"OtherClinicalExperience",t)},expression:"form.OtherClinicalExperience"}}):i("el-input",{attrs:{type:"textarea",autosize:"",readonly:""},model:{value:e.form.OtherClinicalExperienceCN,callback:function(t){e.$set(e.form,"OtherClinicalExperienceCN",t)},expression:"form.OtherClinicalExperienceCN"}})],1)],1)],1)},a=[],r={props:{trialExperience:{type:Object,default:function(){return{}}},isEnglish:{type:Boolean}},data:function(){return{GCPList:[],form:{},GCP:"",GCPPath:""}},mounted:function(){this.GCPList=this.trialExperience.ClinicalTrialExperienceList,this.form=this.trialExperience,this.GCP=this.trialExperience.GCP?"Yes":"No",this.trialExperience.GCP&&(this.GCPPath=this.trialExperience.GCPFullPath)},methods:{previewGCP:function(){this.GCPPath&&window.open(this.GCPPath,"_blank")}}},o=r,s=(i("8377"),i("2877")),l=Object(s["a"])(o,n,a,!1,null,null,null);t["default"]=l.exports},b306:function(e,t,i){"use strict";i("5ce9")},b308:function(e,t,i){"use strict";i("c765")},b336:function(e,t,i){var n=i("6d8b"),a=n.each;function r(e){var t=e&&e.visualMap;n.isArray(t)||(t=t?[t]:[]),a(t,(function(e){if(e){o(e,"splitList")&&!o(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var t=e.pieces;t&&n.isArray(t)&&a(t,(function(e){n.isObject(e)&&(o(e,"start")&&!o(e,"min")&&(e.min=e.start),o(e,"end")&&!o(e,"max")&&(e.max=e.end))}))}}))}function o(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}e.exports=r},b369:function(e,t,i){var n=i("3eba"),a=i("6d8b"),r=i("2306"),o=i("80f0"),s=i("55ac"),l=i("f610"),c=i("4a01"),u=i("9850"),d=i("1687"),f=i("e6cd"),h=i("282b"),p=i("eda2"),m=p.windowOpen,g=a.bind,v=r.Group,b=r.Rect,y=a.each,w=3,_=["label"],I=["emphasis","label"],x=["upperLabel"],S=["emphasis","upperLabel"],T=10,C=1,k=2,R=h([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),D=function(e){var t=R(e);return t.stroke=t.fill=t.lineWidth=null,t},L=n.extendChartView({type:"treemap",init:function(e,t){this._containerGroup,this._storage=O(),this._oldTree,this._breadcrumb,this._controller,this._state="ready"},render:function(e,t,i,n){var r=t.findComponents({mainType:"series",subType:"treemap",query:n});if(!(a.indexOf(r,e)<0)){this.seriesModel=e,this.api=i,this.ecModel=t;var o=["treemapZoomToNode","treemapRootToNode"],l=s.retrieveTargetInfo(n,o,e),c=n&&n.type,u=e.layoutInfo,d=!this._oldTree,f=this._storage,h="treemapRootToNode"===c&&l&&f?{rootNodeGroup:f.nodeGroup[l.node.getRawIndex()],direction:n.direction}:null,p=this._giveContainerGroup(u),m=this._doRender(p,e,h);d||c&&"treemapZoomToNode"!==c&&"treemapRootToNode"!==c?m.renderFinally():this._doAnimation(p,m,e,h),this._resetController(i),this._renderBreadcrumb(e,i,l)}},_giveContainerGroup:function(e){var t=this._containerGroup;return t||(t=this._containerGroup=new v,this._initEvents(t),this.group.add(t)),t.attr("position",[e.x,e.y]),t},_doRender:function(e,t,i){var n=t.getData().tree,r=this._oldTree,s=O(),l=O(),c=this._storage,u=[],d=a.curry($,t,l,c,i,s,u);h(n.root?[n.root]:[],r&&r.root?[r.root]:[],e,n===r||!r,0);var f=p(c);return this._oldTree=n,this._storage=l,{lastsForAnimation:s,willDeleteEls:f,renderFinally:m};function h(e,t,i,n,r){function s(e){return e.getId()}function l(a,o){var s=null!=a?e[a]:null,l=null!=o?t[o]:null,c=d(s,l,i,r);c&&h(s&&s.viewChildren||[],l&&l.viewChildren||[],c,n,r+1)}n?(t=e,y(e,(function(e,t){!e.isRemoved()&&l(t,t)}))):new o(t,e,s,s).add(l).update(l).remove(a.curry(l,null)).execute()}function p(e){var t=O();return e&&y(e,(function(e,i){var n=t[i];y(e,(function(e){e&&(n.push(e),e.__tmWillDelete=1)}))})),t}function m(){y(f,(function(e){y(e,(function(e){e.parent&&e.parent.remove(e)}))})),y(u,(function(e){e.invisible=!0,e.dirty()}))}},_doAnimation:function(e,t,i,n){if(i.get("animation")){var r=i.get("animationDurationUpdate"),o=i.get("animationEasing"),s=f.createWrap();y(t.willDeleteEls,(function(e,t){y(e,(function(e,i){if(!e.invisible){var a,l=e.parent;if(n&&"drillDown"===n.direction)a=l===n.rootNodeGroup?{shape:{x:0,y:0,width:l.__tmNodeWidth,height:l.__tmNodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var c=0,u=0;l.__tmWillDelete||(c=l.__tmNodeWidth/2,u=l.__tmNodeHeight/2),a="nodeGroup"===t?{position:[c,u],style:{opacity:0}}:{shape:{x:c,y:u,width:0,height:0},style:{opacity:0}}}a&&s.add(e,a,r,o)}}))})),y(this._storage,(function(e,i){y(e,(function(e,n){var l=t.lastsForAnimation[i][n],c={};l&&("nodeGroup"===i?l.old&&(c.position=e.position.slice(),e.attr("position",l.old)):(l.old&&(c.shape=a.extend({},e.shape),e.setShape(l.old)),l.fadein?(e.setStyle("opacity",0),c.style={opacity:1}):1!==e.style.opacity&&(c.style={opacity:1})),s.add(e,c,r,o))}))}),this),this._state="animating",s.done(g((function(){this._state="ready",t.renderFinally()}),this)).start()}},_resetController:function(e){var t=this._controller;t||(t=this._controller=new c(e.getZr()),t.enable(this.seriesModel.get("roam")),t.on("pan",g(this._onPan,this)),t.on("zoom",g(this._onZoom,this)));var i=new u(0,0,e.getWidth(),e.getHeight());t.setPointerChecker((function(e,t,n){return i.contain(t,n)}))},_clearController:function(){var e=this._controller;e&&(e.dispose(),e=null)},_onPan:function(e){if("animating"!==this._state&&(Math.abs(e.dx)>w||Math.abs(e.dy)>w)){var t=this.seriesModel.getData().tree.root;if(!t)return;var i=t.getLayout();if(!i)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+e.dx,y:i.y+e.dy,width:i.width,height:i.height}})}},_onZoom:function(e){var t=e.originX,i=e.originY;if("animating"!==this._state){var n=this.seriesModel.getData().tree.root;if(!n)return;var a=n.getLayout();if(!a)return;var r=new u(a.x,a.y,a.width,a.height),o=this.seriesModel.layoutInfo;t-=o.x,i-=o.y;var s=d.create();d.translate(s,s,[-t,-i]),d.scale(s,s,[e.scale,e.scale]),d.translate(s,s,[t,i]),r.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:r.x,y:r.y,width:r.width,height:r.height}})}},_initEvents:function(e){e.on("click",(function(e){if("ready"===this._state){var t=this.seriesModel.get("nodeClick",!0);if(t){var i=this.findTarget(e.offsetX,e.offsetY);if(i){var n=i.node;if(n.getLayout().isLeafRoot)this._rootToNode(i);else if("zoomToNode"===t)this._zoomToNode(i);else if("link"===t){var a=n.hostTree.data.getItemModel(n.dataIndex),r=a.get("link",!0),o=a.get("target",!0)||"blank";r&&m(r,o)}}}}}),this)},_renderBreadcrumb:function(e,t,i){function n(t){"animating"!==this._state&&(s.aboveViewRoot(e.getViewRoot(),t)?this._rootToNode({node:t}):this._zoomToNode({node:t}))}i||(i=null!=e.get("leafDepth",!0)?{node:e.getViewRoot()}:this.findTarget(t.getWidth()/2,t.getHeight()/2),i||(i={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new l(this.group))).render(e,t,i.node,g(n,this))},remove:function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=O(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},dispose:function(){this._clearController()},_zoomToNode:function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},_rootToNode:function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},findTarget:function(e,t){var i,n=this.seriesModel.getViewRoot();return n.eachNode({attr:"viewChildren",order:"preorder"},(function(n){var a=this._storage.background[n.getRawIndex()];if(a){var r=a.transformCoordToLocal(e,t),o=a.shape;if(!(o.x<=r[0]&&r[0]<=o.x+o.width&&o.y<=r[1]&&r[1]<=o.y+o.height))return!1;i={node:n,offsetX:r[0],offsetY:r[1]}}}),this),i}});function O(){return{nodeGroup:[],background:[],content:[]}}function $(e,t,i,n,o,s,l,c,u,d){if(l){var f=l.getLayout(),h=e.getData();if(h.setItemGraphicEl(l.dataIndex,null),f&&f.isInView){var p=f.width,m=f.height,g=f.borderWidth,y=f.invisible,w=l.getRawIndex(),T=c&&c.getRawIndex(),L=l.viewChildren,O=f.upperHeight,$=L&&L.length,A=l.getModel("itemStyle"),P=l.getModel("emphasis.itemStyle"),E=Q("nodeGroup",v);if(E){if(u.add(E),E.attr("position",[f.x||0,f.y||0]),E.__tmNodeWidth=p,E.__tmNodeHeight=m,f.isAboveViewRoot)return E;var M=l.getModel(),F=Q("background",b,d,C);if(F&&V(E,F,$&&f.upperLabelHeight),$)r.isHighDownDispatcher(E)&&r.setAsHighDownDispatcher(E,!1),F&&(r.setAsHighDownDispatcher(F,!0),h.setItemGraphicEl(l.dataIndex,F));else{var j=Q("content",b,d,k);j&&q(E,j),F&&r.isHighDownDispatcher(F)&&r.setAsHighDownDispatcher(F,!1),r.setAsHighDownDispatcher(E,!0),h.setItemGraphicEl(l.dataIndex,E)}return E}}}function V(t,i,n){if(i.dataIndex=l.dataIndex,i.seriesIndex=e.seriesIndex,i.setShape({x:0,y:0,width:p,height:m}),y)z(i);else{i.invisible=!1;var a=l.getVisual("borderColor",!0),o=P.get("borderColor"),s=D(A);s.fill=a;var c=R(P);if(c.fill=o,n){var u=p-2*g;B(s,c,a,u,O,{x:g,y:0,width:u,height:O})}else s.text=c.text=null;i.setStyle(s),r.setElementHoverStyle(i,c)}t.add(i)}function q(t,i){i.dataIndex=l.dataIndex,i.seriesIndex=e.seriesIndex;var n=Math.max(p-2*g,0),a=Math.max(m-2*g,0);if(i.culling=!0,i.setShape({x:g,y:g,width:n,height:a}),y)z(i);else{i.invisible=!1;var o=l.getVisual("color",!0),s=D(A);s.fill=o;var c=R(P);B(s,c,o,n,a),i.setStyle(s),r.setElementHoverStyle(i,c)}t.add(i)}function z(e){!e.invisible&&s.push(e)}function B(t,i,n,o,s,c){var u=M.get("name"),d=M.getModel(c?x:_),h=M.getModel(c?S:I),p=d.getShallow("show");r.setLabelStyle(t,i,d,h,{defaultText:p?u:null,autoColor:n,isRectText:!0,labelFetcher:e,labelDataIndex:l.dataIndex,labelProp:c?"upperLabel":"label"}),U(t,c,f),U(i,c,f),c&&(t.textRect=a.clone(c)),t.truncate=p&&d.get("ellipsis")?{outerWidth:o,outerHeight:s,minChar:2}:null}function U(t,i,n){var a=t.text;if(!i&&n.isLeafRoot&&null!=a){var r=e.get("drillDownIcon",!0);t.text=r?r+" "+a:a}}function Q(e,n,a,r){var s=null!=T&&i[e][T],l=o[e];return s?(i[e][T]=null,H(l,s,e)):y||(s=new n({z:N(a,r)}),s.__tmDepth=a,s.__tmStorageName=e,G(l,s,e)),t[e][w]=s}function H(e,t,i){var n=e[w]={};n.old="nodeGroup"===i?t.position.slice():a.extend({},t.shape)}function G(e,t,i){var a=e[w]={},r=l.parentNode;if(r&&(!n||"drillDown"===n.direction)){var s=0,c=0,u=o.background[r.getRawIndex()];!n&&u&&u.old&&(s=u.old.width,c=u.old.height),a.old="nodeGroup"===i?[0,c]:{x:s,y:c,width:0,height:0}}a.fadein="nodeGroup"!==i}}function N(e,t){var i=e*T+t;return(i-1)/i}e.exports=L},b381:function(e,t,i){"use strict";i("383a")},b39a:function(e,t,i){var n=i("d3f4");e.exports=function(e,t){if(!n(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},b3a7:function(e,t,i){"use strict";i("0c44")},b3f5:function(e,t,i){},b418:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"upload-container"},[i("el-upload",{staticClass:"upload-demo",attrs:{action:"","http-request":e.uploadFile,"before-upload":e.beforeUpload,"file-list":e.fileList,"before-remove":e.beforeRemove,"on-remove":e.handleRemoveFile,"on-preview":e.handlePreview,limit:1,"on-exceed":e.handleExceed,accept:".pdf"}},[i("el-button",{attrs:{size:"small",type:"primary",disabled:e.btnDisabled||"1"===e.$route.query.ReviewStatus}},[e._v("Upload")]),e._v(" "),i("span",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[e._v("(must be in pdf format)")])],1)],1)},a=[],r=(i("7f7f"),i("ac6a"),i("a796")),o={name:"UploadFile",props:{type:{type:String,required:!0},doctorId:{type:String,required:!0}},data:function(){return{fileList:[],btnDisabled:!1}},mounted:function(){this.initFileList()},methods:{initFileList:function(){var e=this;Object(r["b"])(this.doctorId,this.type).then((function(t){t.IsSuccess&&(t.Result.length>0?e.fileList=e.formatterFileList(t.Result):e.fileList=[])}))},formatterFileList:function(e){var t=[];return e.forEach((function(e){var i={name:e.FileName,path:e.Path,fullPath:e.FullPath,id:e.Id,type:e.Type};t.push(i)})),t},uploadFile:function(e){var t=this;this.$emit("handleUpload",!0);var i=e.file.name;this.btnDisabled=!0,Object(r["f"])(e.file,this.type,this.doctorId).then((function(e){e.IsSuccess&&(t.fileList.push({name:i,path:e.Result.FilePath,fullPath:e.Result.FullFilePath,type:t.type}),t.saveFile())})).catch((function(){t.btnDisabled=!1,t.$emit("handleUpload",!1)}))},saveFile:function(){var e=this,t=this.fileList[0],i=t.name,n=t.path,a=t.fullPath,o=t.type,s=[{DoctorId:this.doctorId,Type:o,Path:n,FullPath:a,FileName:i}];Object(r["c"])(s).then((function(t){e.btnDisabled=!1,t.IsSuccess&&(e.fileList[0].id=t.Result[0].Id,e.$message.success("Uploaded successfully"),e.$emit("getFileList",t.Result[0].Id,t.Result[0].Path))})).catch((function(){e.btnDisabled=!1,e.$emit("handleUpload",!1)}))},beforeUpload:function(e,t){var i=this.fileValid(e.name,["pdf","PDF"]);if(!i)return this.$message.error("must be in pdf format"),!1;this.fileList=[]},beforeRemove:function(e,t){if(e&&"success"===e.status)return this.$confirm("Sure to remove ".concat(e.name,"?"))},handleRemoveFile:function(e,t){var i=this;e&&"success"===e.status&&(e.id?Object(r["a"])(e.id,e.path).then((function(e){e.IsSuccess&&(i.fileList=[],i.$emit("getFileList","",""),i.$message({message:"Deleted successfully!",type:"success"}))})):this.fileList=[])},handlePreview:function(e){e.fullPath&&window.open(e.fullPath,"_blank")},handleExceed:function(e,t){this.$message.warning("Upload is currently limited to 1 file")},fileValid:function(e,t){var i=e.substring(e.lastIndexOf(".")+1).toLocaleLowerCase();return t.indexOf(i)>-1}}},s=o,l=(i("08a6"),i("2877")),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},b419:function(e,t,i){var n=i("6d8b"),a=i("2306"),r=i("4319"),o=i("6679"),s=i("fab22"),l=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function c(e,t,i){t[1]>t[0]&&(t=t.slice().reverse());var n=e.coordToPoint([t[0],i]),a=e.coordToPoint([t[1],i]);return{x1:n[0],y1:n[1],x2:a[0],y2:a[1]}}function u(e){var t=e.getRadiusAxis();return t.inverse?0:1}function d(e){var t=e[0],i=e[e.length-1];t&&i&&Math.abs(Math.abs(t.coord-i.coord)-360)<1e-4&&e.pop()}var f=o.extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(e,t){if(this.group.removeAll(),e.get("show")){var i=e.axis,a=i.polar,r=a.getRadiusAxis().getExtent(),o=i.getTicksCoords(),s=i.getMinorTicksCoords(),c=n.map(i.getViewLabels(),(function(e){e=n.clone(e);return e.coord=i.dataToCoord(e.tickValue),e}));d(c),d(o),n.each(l,(function(t){!e.get(t+".show")||i.scale.isBlank()&&"axisLine"!==t||this["_"+t](e,a,o,s,r,c)}),this)}},_axisLine:function(e,t,i,n,r){var o,s=e.getModel("axisLine.lineStyle"),l=u(t),c=l?0:1;o=0===r[c]?new a.Circle({shape:{cx:t.cx,cy:t.cy,r:r[l]},style:s.getLineStyle(),z2:1,silent:!0}):new a.Ring({shape:{cx:t.cx,cy:t.cy,r:r[l],r0:r[c]},style:s.getLineStyle(),z2:1,silent:!0}),o.style.fill=null,this.group.add(o)},_axisTick:function(e,t,i,r,o){var s=e.getModel("axisTick"),l=(s.get("inside")?-1:1)*s.get("length"),d=o[u(t)],f=n.map(i,(function(e){return new a.Line({shape:c(t,[d,d+l],e.coord)})}));this.group.add(a.mergePath(f,{style:n.defaults(s.getModel("lineStyle").getLineStyle(),{stroke:e.get("axisLine.lineStyle.color")})}))},_minorTick:function(e,t,i,r,o){if(r.length){for(var s=e.getModel("axisTick"),l=e.getModel("minorTick"),d=(s.get("inside")?-1:1)*l.get("length"),f=o[u(t)],h=[],p=0;p<r.length;p++)for(var m=0;m<r[p].length;m++)h.push(new a.Line({shape:c(t,[f,f+d],r[p][m].coord)}));this.group.add(a.mergePath(h,{style:n.defaults(l.getModel("lineStyle").getLineStyle(),n.defaults(s.getLineStyle(),{stroke:e.get("axisLine.lineStyle.color")}))}))}},_axisLabel:function(e,t,i,o,l,c){var d=e.getCategories(!0),f=e.getModel("axisLabel"),h=f.get("margin"),p=e.get("triggerEvent");n.each(c,(function(i,n){var o=f,c=i.tickValue,m=l[u(t)],g=t.coordToPoint([m+h,i.coord]),v=t.cx,b=t.cy,y=Math.abs(g[0]-v)/m<.3?"center":g[0]>v?"left":"right",w=Math.abs(g[1]-b)/m<.3?"middle":g[1]>b?"top":"bottom";d&&d[c]&&d[c].textStyle&&(o=new r(d[c].textStyle,f,f.ecModel));var _=new a.Text({silent:s.isLabelSilent(e)});this.group.add(_),a.setTextStyle(_.style,o,{x:g[0],y:g[1],textFill:o.getTextColor()||e.get("axisLine.lineStyle.color"),text:i.formattedLabel,textAlign:y,textVerticalAlign:w}),p&&(_.eventData=s.makeAxisEventDataBase(e),_.eventData.targetType="axisLabel",_.eventData.value=i.rawLabel)}),this)},_splitLine:function(e,t,i,r,o){var s=e.getModel("splitLine"),l=s.getModel("lineStyle"),u=l.get("color"),d=0;u=u instanceof Array?u:[u];for(var f=[],h=0;h<i.length;h++){var p=d++%u.length;f[p]=f[p]||[],f[p].push(new a.Line({shape:c(t,o,i[h].coord)}))}for(h=0;h<f.length;h++)this.group.add(a.mergePath(f[h],{style:n.defaults({stroke:u[h%u.length]},l.getLineStyle()),silent:!0,z:e.get("z")}))},_minorSplitLine:function(e,t,i,n,r){if(n.length){for(var o=e.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<n.length;u++)for(var d=0;d<n[u].length;d++)l.push(new a.Line({shape:c(t,r,n[u][d].coord)}));this.group.add(a.mergePath(l,{style:s.getLineStyle(),silent:!0,z:e.get("z")}))}},_splitArea:function(e,t,i,r,o){if(i.length){var s=e.getModel("splitArea"),l=s.getModel("areaStyle"),c=l.get("color"),u=0;c=c instanceof Array?c:[c];for(var d=[],f=Math.PI/180,h=-i[0].coord*f,p=Math.min(o[0],o[1]),m=Math.max(o[0],o[1]),g=e.get("clockwise"),v=1;v<i.length;v++){var b=u++%c.length;d[b]=d[b]||[],d[b].push(new a.Sector({shape:{cx:t.cx,cy:t.cy,r0:p,r:m,startAngle:h,endAngle:-i[v].coord*f,clockwise:g},silent:!0})),h=-i[v].coord*f}for(v=0;v<d.length;v++)this.group.add(a.mergePath(d[v],{style:n.defaults({fill:c[v%c.length]},l.getAreaStyle()),silent:!0}))}}});e.exports=f},b470:function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-phone",use:"icon-phone-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-phone"><defs><style type="text/css"></style></defs><path d="M761.503029 2.90619 242.121921 2.90619c-32.405037 0-58.932204 26.060539-58.932204 58.527998l0 902.302287c0 32.156374 26.217105 58.216913 58.932204 58.216913l519.381108 0c32.344662 0 58.591443-26.060539 58.591443-58.216913L820.094472 61.123103C820.094472 28.966729 793.847691 2.90619 761.503029 2.90619M452.878996 61.123103l98.147344 0c6.780427 0 12.31549 5.536087 12.31549 12.253068 0 6.748704-5.535063 12.253068-12.31549 12.253068l-98.147344 0c-6.779404 0-12.345166-5.504364-12.345166-12.253068C440.532807 66.659189 446.099592 61.123103 452.878996 61.123103M501.641583 980.593398c-29.636994 0-53.987588-23.946388-53.987588-53.677527 0-29.356608 24.039509-53.614082 53.987588-53.614082 29.91738 0 53.987588 23.883967 53.987588 53.614082C555.629171 956.647009 531.559986 980.593398 501.641583 980.593398M766.35657 803.142893c0 16.23373-13.186324 29.107945-29.233811 29.107945l-470.618521 0c-16.35755 0-29.325909-13.186324-29.325909-29.107945L237.178329 163.500794c0-16.232706 13.279445-29.138644 29.325909-29.138644l470.246037 0c16.420995 0 29.357632 13.1853 29.357632 29.138644l0 639.642099L766.35657 803.142893zM766.35657 803.142893" p-id="2267" /></symbol>'});o.a.add(s);t["default"]=s},b4b0:function(e,t,i){var n=i("8d74"),a=i("1a8c"),r=i("ffd6"),o=NaN,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;function d(e){if("number"==typeof e)return e;if(r(e))return o;if(a(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=a(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var i=l.test(e);return i||c.test(e)?u(e.slice(2),i?2:8):s.test(e)?o:+e}e.exports=d},b4be:function(e,t,i){"use strict";i("117f")},b4d5:function(e,t,i){},b502:function(e,t,i){"use strict";i("1ea6")},b510:function(e,t,i){"use strict";i("075e")},b572:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"criterion-form-item"},[e.question.GroupName&&"group"===e.question.Type?i("div",{staticStyle:{"font-weight":"bold","font-size":"16px",margin:"5px 0px",color:"#fff"}},[e._v("\n "+e._s(e.question.GroupName)+"\n ")]):e._e(),e._v(" "),"table"===e.question.Type?i("div",{staticStyle:{"font-weight":"bold","font-size":"14px",margin:"5px 0px"}},[i("div",{staticStyle:{display:"flex","justify-content":"space-between","align-items":"center",color:"#fff",margin:"10px 0 5px"}},[i("span",[e._v(e._s(e.question.QuestionName))]),e._v(" "),e.readingTaskState<2?i("el-button",{attrs:{size:"mini"},on:{click:function(t){return e.openAddTableCol(e.question)}}},[e._v("\n 添加\n ")]):e._e()],1),e._v(" "),i("el-table",{attrs:{data:e.questionForm[e.question.Id]}},[e._l(e.question.TableQuestions.Questions,(function(t){return i("el-table-column",{key:t.Id,attrs:{prop:t.Id,label:t.QuestionName,"show-overflow-tooltip":"","render-header":e.renderHeader},scopedSlots:e._u([{key:"default",fn:function(n){return["upload"===t.Type?i("span",[e._v("\n "+e._s(""===n.row[t.Id]?"":n.row[t.Id].split("|").length)+"\n ")]):"number"===t.Type?i("span",[e._v("\n "+e._s(n.row[t.Id]?parseFloat(n.row[t.Id]).toFixed(e.digitPlaces):null)+"\n ")]):i("span",[e._v("\n "+e._s(n.row[t.Id])+"\n ")])]}}],null,!0)})})),e._v(" "),e.readingTaskState<2?i("el-table-column",{attrs:{label:"操作","show-overflow-tooltip":"",width:"100px",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(i){return e.openAddTableCol(e.question,t.$index)}}},[e._v("\n 编辑\n ")]),e._v(" "),"True"===t.row.IsCurrentTaskAdd||!e.question.IsCopyLesions||e.IsBaseline?i("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(i){return e.deleteTableCol(e.question,t.$index)}}},[e._v("\n 删除\n ")]):e._e()]}}],null,!1,4281095178)}):e._e()],2)],1):[1===e.question.ShowQuestion&&~e.question.ParentTriggerValueList.indexOf(e.questionForm[e.question.ParentId])||0===e.question.ShowQuestion?i("el-form-item",{class:["group"===e.question.Type?"mb":"upload"===e.question.Type?"uploadWrapper":""],attrs:{label:""+e.question.QuestionName,prop:e.question.Id,rules:[{required:(0===e.question.IsRequired||1===e.question.IsRequired&&e.question.RelevanceId&&!!~e.question.RelevanceValueList.indexOf(e.questionForm[e.question.RelevanceId]))&&"group"!==e.question.Type&&"summary"!==e.question.Type,message:"请注明",trigger:["blur","change"]}]}},["input"===e.question.Type?i("el-input",{attrs:{disabled:2===e.question.TableQuestionType},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"textarea"===e.question.Type?i("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4}},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"select"===e.question.Type?i("el-select",{attrs:{clearable:"",disabled:(2===e.question.TableQuestionType||2===e.question.QuestionGenre)&&!!e.question.DictionaryCode},on:{change:function(t){e.formItemChange(t,e.question)}},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},[1===e.question.TableQuestionType?e._l(e.organList,(function(t){return i("el-option",{key:t.Id,attrs:{label:t[e.question.DataTableColumn],value:t[e.question.DataTableColumn]}})})):3===e.question.TableQuestionType||3===e.question.QuestionGenre?e._l(e.$d[e.question.DictionaryCode],(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})})):2!==e.question.TableQuestionType&&2!==e.question.QuestionGenre||!e.question.DictionaryCode?e._l(e.question.TypeValue.split("|"),(function(e){return i("el-option",{key:e,attrs:{label:e,value:e}})})):e._l(e.$d[e.question.DictionaryCode],(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})}))],2):e._e(),e._v(" "),"radio"===e.question.Type?i("el-radio-group",{on:{change:function(t){e.formItemChange(t,e.question)}},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},e._l(e.question.TypeValue.split("|"),(function(t){return i("el-radio",{key:t,attrs:{label:t}},[e._v("\n "+e._s(t)+"\n ")])})),1):e._e(),e._v(" "),"checkbox"===e.question.Type?i("el-checkbox-group",{model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},e._l(e.question.TypeValue.split("|"),(function(t){return i("el-checkbox",{key:t,attrs:{label:t}},[e._v("\n "+e._s(t)+"\n ")])})),1):e._e(),e._v(" "),"calculation"===e.question.Type?i("el-input",{attrs:{disabled:""},on:{input:function(t){e.value=e.value.replace(/^\D*(\d*(?:.\d{0,2})?).*$/g,"$1")}},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"increment"===e.question.Type?i("el-input",{attrs:{disabled:""},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}}):e._e(),e._v(" "),"number"===e.question.Type&&1!==e.question.DataSource?i("el-input",{attrs:{type:"number",onblur:"value=parseInt(value).toFixed(parseInt(localStorage.getItem('digitPlaces')))"},on:{change:function(t){e.formItemNumberChange(t,e.question)}},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},[0!==e.question.Unit?i("template",{slot:"append"},[e._v(e._s(4!==e.question.Unit?e.$fd("ValueUnit",e.question.Unit):e.question.CustomUnit))]):2===e.question.ValueType?i("template",{slot:"append"},[e._v("%")]):e._e()],2):e._e(),e._v(" "),"number"===e.question.Type&&1===e.question.DataSource?i("el-input",{attrs:{type:"number",onblur:"value=parseInt(value).toFixed(parseInt(localStorage.getItem('digitPlaces')))",disabled:1===e.question.DataSource},model:{value:e.questionForm[e.question.Id],callback:function(t){e.$set(e.questionForm,e.question.Id,t)},expression:"questionForm[question.Id]"}},[0!==e.question.Unit?i("template",{slot:"append"},[e._v(e._s(4!==e.question.Unit?e.$fd("ValueUnit",e.question.Unit):e.question.CustomUnit))]):2===e.question.ValueType?i("template",{slot:"append"},[e._v("%")]):e._e()],2):e._e(),e._v(" "),"upload"===e.question.Type?i("el-upload",{class:{disabled:e.fileList.length>=e.question.ImageCount},attrs:{action:e.accept,limit:e.question.ImageCount,"on-preview":e.handlePictureCardPreview,"before-upload":e.handleBeforeUpload,"http-request":e.uploadScreenshot,"list-type":"picture-card","on-remove":e.handleRemove,"file-list":e.fileList},scopedSlots:e._u([{key:"file",fn:function(t){var n=t.file;return i("div",{},[i("img",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:n.url,alt:""}}),e._v(" "),i("span",{staticClass:"el-upload-list__item-actions"},[i("span",{staticClass:"el-upload-list__item-preview",on:{click:function(t){return e.handlePictureCardPreview(n)}}},[i("i",{staticClass:"el-icon-zoom-in"})]),e._v(" "),e.readingTaskState<2?i("span",{staticClass:"el-upload-list__item-delete",on:{click:function(t){return e.handleRemove(n)}}},[i("i",{staticClass:"el-icon-delete"})]):e._e()])])}}],null,!1,3246650725)},[i("i",{staticClass:"el-icon-plus",attrs:{slot:"default"},slot:"default"})]):e._e(),e._v(" "),"upload"===e.question.Type?i("el-dialog",{attrs:{"append-to-body":"",visible:e.imgVisible,width:"600px"},on:{"update:visible":function(t){e.imgVisible=t}}},[i("el-image",{attrs:{src:e.imageUrl,width:"100%"}},[i("div",{staticClass:"image-slot",attrs:{slot:"placeholder"},slot:"placeholder"},[e._v("\n 加载中"),i("span",{staticClass:"dot"},[e._v("...")])])])],1):e._e()],1):e._e()],e._v(" "),e.question.Childrens&&e.question.Childrens.length>0&&"table"!==e.question.Type?e._l(e.question.Childrens,(function(t){return i("CustomizeQuestionFormItem",{key:t.Id,attrs:{question:t,IsBaseline:e.IsBaseline,"reading-task-state":e.readingTaskState,"question-form":e.questionForm,"visit-task-id":e.visitTaskId,"criterion-id":e.criterionId,CalculationList:e.CalculationList},on:{formItemNumberChange:e.formItemNumberChange,setFormItemData:e.setFormItemData,resetFormItemData:e.resetFormItemData}})})):e._e(),e._v(" "),i("base-model",{staticClass:"my_dialog",attrs:{config:e.addOrEdit,"close-on-click-modal":!1,width:"400px","append-to-body":""}},[i("template",{slot:"dialog-body"},[i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"tableQsForm",attrs:{model:e.QuestionsForm,size:"small"}},e._l(e.QuestionsList,(function(t){return i("QuestionTableFormItem",{key:t.Id,attrs:{question:t,IsBaseline:e.IsBaseline,"reading-task-state":e.readingTaskState,"question-form":e.QuestionsForm,"visit-task-id":e.visitTaskId,"criterion-id":e.criterionId,type:e.addOrEdit.type,CalculationList:e.CalculationList},on:{formItemTableNumberChange:e.formItemTableNumberChange,setFormItemData:e.setFormItemData,resetFormItemData:e.resetFormItemData,setFormTableItemData:e.setFormTableItemData}})})),1)],1),e._v(" "),i("template",{slot:"dialog-footer"},[i("el-button",{attrs:{size:"small"},on:{click:function(t){e.addOrEdit.visible=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{staticClass:"my_upload_btn",attrs:{size:"small"},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],2)],2)},a=[],r=(i("386d"),i("7f7f"),i("6b54"),i("75fc")),o=(i("20d6"),i("3b2b"),i("96cf"),i("3b8d")),s=(i("ac6a"),i("28a5"),i("c5f6"),i("3e42")),l=i("8ae4"),c=i("7eeb"),u=i("9b92"),d={name:"CustomizeQuestionFormItem",components:{QuestionTableFormItem:l["default"],BaseModel:c["default"]},props:{IsBaseline:{type:Boolean,required:!0},questionForm:{type:Object,default:function(){return{}}},question:{type:Object,default:function(){return[]}},criterionId:{type:String,required:!0},readingTaskState:{type:Number,required:!0},visitTaskId:{type:String,default:""},CalculationList:{type:Array,default:[]}},data:function(){return{addOrEdit:{visible:!1,title:"",width:"400px"},fileList:[],accept:".png,.jpg,.jpeg",imgVisible:!1,imageUrl:"",urls:[],organList:[],QuestionsList:[],QuestionsForm:{},AnswersList:[],loading:!1,RowIndex:0,RowId:null,digitPlaces:0}},watch:{questionForm:{deep:!0,immediate:!0,handler:function(e,t){try{if(!e[this.question.Id]||!t[this.question.Id])return}catch(i){}this.formItemNumberChange(this.question.Id,!1)}}},mounted:function(){var e=this;this.digitPlaces=localStorage.getItem("digitPlaces")?parseInt(localStorage.getItem("digitPlaces")):0,"upload"===this.question.Type&&this.questionForm[this.question.Id]&&(this.urls=this.questionForm[this.question.Id].split("|"),this.fileList=[],this.urls.map((function(t){e.fileList.push({name:"",url:"/api/".concat(t)})}))),"table"===this.question.Type&&this.questionForm[this.question.Id]&&(this.QuestionsForm={},this.question.TableQuestions.Questions.forEach((function(t){"number"===t.Type?e.$set(e.QuestionsForm,t.Id,0):e.$set(e.QuestionsForm,t.Id,"")})))},methods:{deleteTableCol:function(e,t){var i=this;console.log(e),this.$confirm("确定要删除该行表格问题吗?").then((function(){var n=i.$loading({fullscreen:!0}),a={visitTaskId:i.visitTaskId,questionId:e.Id,rowId:i.questionForm[e.Id][t].RowId};Object(s["tb"])(a).then(function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.IsSuccess&&(i.$message.success("删除成功"),u["a"].$emit("reGetQuestionAnswer")),n.close();case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(){n.close()}))}))},setFormTableItemData:function(e,t){this.$set(this.QuestionsForm,e,t)},handleSave:function(){var e=this;console.log(this.QuestionsForm),this.$refs.tableQsForm.validate((function(t){if(t){var i=e.$loading({fullscreen:!0}),n=[],a=new RegExp(/^[0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12}$/),r=function(t){a.test(t)&&-1===n.findIndex((function(e){return e.tableQuestionId===t}))&&(console.log(e.QuestionsForm),n.push({tableQuestionId:t,answer:e.QuestionsForm[t]}))};for(var l in e.QuestionsForm)r(l);if("edit"===e.addOrEdit.type)var c={questionId:e.question.Id,RowIndex:parseInt(e.QuestionsForm.RowIndex),RowId:e.QuestionsForm.RowId,visitTaskId:e.visitTaskId,trialId:e.$route.query.trialId,answerList:n};else{c={questionId:e.question.Id,RowIndex:e.questionForm[e.question.Id].length+1,visitTaskId:e.visitTaskId,trialId:e.$route.query.trialId,answerList:n};e.QuestionsForm.RowIndex=e.questionForm[e.question.Id].length+1}Object(s["ef"])(c).then(function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.$message.success("保存成功!"),e.QuestionsForm.RowId=n.Result.RowId,e.save(),i.close();case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(){i.close()}))}}))},renderHeader:function(e,t){var i=document.createElement("span");return i.style.fontSize="14px",i.innerText=t.column.label,document.body.appendChild(i),t.column.realWidth=i.getBoundingClientRect().width+40,document.body.removeChild(i),e("span",t.column.label)},getQuestionCalculateRelation:function(){var e=this;Object(s["Jc"])({TrialReadingCriterionId:this.criterionId,ReadingQuestionId:this.question.Id}).then((function(t){e.CalculationList=t.Result}))},save:function(){var e=this;console.log(this.$refs.tableQsForm,this.QuestionsForm),this.$refs["tableQsForm"].validate((function(t){if(console.log(t),t){if("add"===e.addOrEdit.type)e.AnswersList.push(e.QuestionsForm);else{var i=e.AnswersList.findIndex((function(t){return t.RowId===e.QuestionsForm.RowId}));e.AnswersList.splice(i,1,e.QuestionsForm)}e.$emit("setFormItemData",{key:e.question.Id,val:e.AnswersList}),e.formItemNumberChange(e.question.Id,!0),e.addOrEdit.visible=!1}}))},logic:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;try{if(0===e.CalculateQuestionList.length)return!1;e.CalculateQuestionList.forEach((function(n,a){if(0===a)if(e.CustomCalculateMark>4)switch(e.CustomCalculateMark){case 5:t.questionForm[n.QuestionId].forEach((function(e,t){0===t?i=parseFloat(e[n.TableQuestionId]):i*=parseFloat(e[n.TableQuestionId])}));break;case 6:t.questionForm[n.QuestionId].forEach((function(e,t){0===t?i=parseFloat(e[n.TableQuestionId]):i+=parseFloat(e[n.TableQuestionId])}));break;case 7:t.questionForm[n.QuestionId].forEach((function(e,t){0===t?i=parseFloat(e[n.TableQuestionId]):i+=parseFloat(e[n.TableQuestionId])})),i=0===t.questionForm[n.QuestionId].length?0:i/t.questionForm[n.QuestionId].length;break;case 8:var o=[];t.questionForm[n.QuestionId].forEach((function(e){o.push(e[n.TableQuestionId])})),i=0===o.length?0:Math.max.apply(Math,Object(r["a"])(o));break;case 9:o=[];t.questionForm[n.QuestionId].forEach((function(e){o.push(e[n.TableQuestionId])})),i=0===o.length?0:Math.min.apply(Math,Object(r["a"])(o));break}else i=parseFloat(t.questionForm[n.TableQuestionId]);else switch(e.CustomCalculateMark){case 1:i+=parseFloat(t.questionForm[n.TableQuestionId]);break;case 2:i-=parseFloat(t.questionForm[n.TableQuestionId]);break;case 3:i*=parseFloat(t.questionForm[n.TableQuestionId]);break;case 4:0===parseFloat(t.questionForm[n.TableQuestionId])?i=0:i/=parseFloat(t.questionForm[n.TableQuestionId]);break}}))}catch(a){console.log(a)}var n=parseInt(localStorage.getItem("digitPlaces"));return 2===e.ValueType&&(i*=100),i.toFixed(n)},formItemNumberChange:function(e,t){var i=this;t?this.CalculationList.forEach((function(t,n){var a=t.CalculateQuestionList.filter((function(t){return t.QuestionId===e}));if(a){var r=i.logic(t);!1!==r&&i.$emit("setFormItemData",{key:t.QuestionId,val:r})}})):this.CalculationList.forEach((function(t){var n=t.CalculateQuestionList.filter((function(t){return t.TableQuestionId===e}));if(n){var a=i.logic(t);!1!==a&&i.$emit("setFormItemData",{key:t.QuestionId,val:a})}}))},formItemTableNumberChange:function(){var e=this;this.question.TableQuestions.Questions.forEach((function(t){if("number"===t.Type&&1===t.DataSource){var i,n=JSON.parse(t.CalculateQuestions);n.forEach((function(n,a){if(0===a)i=e.QuestionsForm[n.TableQuestionId];else switch(t.CustomCalculateMark){case 1:i+=e.QuestionsForm[n.TableQuestionId];break;case 2:i-=e.QuestionsForm[n.TableQuestionId];break;case 3:i*=e.QuestionsForm[n.TableQuestionId];break;case 4:i/=e.QuestionsForm[n.TableQuestionId];break}})),e.$set(e.QuestionsForm,t.Id,i.toString())}}))},openAddTableCol:function(e,t){this.addOrEdit.visible=!0,this.addOrEdit.title=e.QuestionName+"表格问题",this.QuestionsList=e.TableQuestions.Questions,this.AnswersList=e.TableQuestions.Answers,t||0===t?(this.addOrEdit.type="edit",console.log(this.questionForm),this.QuestionsForm=Object.assign({},this.questionForm[e.Id][t])):(this.addOrEdit.type="add",this.QuestionsForm={})},getOrganInfoList:function(){var e=this,t={trialId:this.$route.query.trialId,lesionType:this.question.LesionType,isEnable:!0};Object(s["Rd"])(t).then((function(t){e.organList=t.Result}))},formNumberItemChange:function(e){this.$emit("setFormItemData",{key:e.QuestionId,val:num})},formItemChange:function(e,t){var i=this;if(t.Childrens.length>0&&this.resetChild(t.Childrens),1===t.TableQuestionType&&t.RelationQuestions.length>0){var n=this.organList.findIndex((function(i){return i[t.DataTableColumn]===e}));if(n<0)return;var a=this.organList[n];this.question.RelationQuestions.map((function(e){var t=a[e.DataTableColumn];i.$emit("setFormItemData",{key:e.Id,val:t})}))}},resetChild:function(e){var t=this;e.forEach((function(e){t.$emit("resetFormItemData",e.Id),e.Childrens&&e.Childrens.length>0&&t.resetChild(e.Childrens)}))},resetFormItemData:function(e){this.$emit("resetFormItemData",e)},setFormItemData:function(e){this.$emit("setFormItemData",e)},uploadScreenshot:function(e){var t=this;if(this.visitTaskId){var i=this.$loading({target:document.querySelector(".ecrf-wrapper"),fullscreen:!1,lock:!0,text:"Loading",spinner:"el-icon-loading"}),n=new FormData;n.append("file",e.file),Object(s["Af"])(this.$route.query.trialId,this.visitTaskId,n).then((function(e){e.IsSuccess&&(t.fileList.push({url:"/api/".concat(e.Result.Path)}),t.urls.push(e.Result.Path),t.$emit("setFormItemData",{key:t.question.Id,val:t.urls.length>0?t.urls.join("|"):""})),i.close()})).catch((function(){i.close()}))}},handleBeforeUpload:function(e){return!!this.checkFileSuffix(e.name)||(this.$message.error("必须是 ".concat(this.accept," 格式")),!1)},checkFileSuffix:function(e){var t=e.lastIndexOf("."),i=e.substring(t+1,e.length);return-1!==this.accept.toLocaleLowerCase().search(i.toLocaleLowerCase())},handlePictureCardPreview:function(e){this.imageUrl=e.url,this.imgVisible=!0},handleRemove:function(e,t){this.imageUrl="",this.fileList.splice(this.fileList.findIndex((function(t){return t.url===e.url})),1),this.urls.splice(this.fileList.findIndex((function(t){return t===e.url})),1),this.$emit("setFormItemData",{key:this.question.Id,val:this.urls.length>0?this.urls.join("|"):""})}}},f=d,h=(i("30a1"),i("2877")),p=Object(h["a"])(f,n,a,!1,null,"11fb9fbd",null);t["default"]=p.exports},b582:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"question-wrapper"},[i("el-tabs",{on:{"tab-click":e.clickTab},model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},[i("el-tab-pane",{attrs:{label:"QC问题配置",name:"qc"}},["qc"==e.activeTab?i("qc-questions"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"阅片标准配置",name:"criterions"}},["criterions"==e.activeTab?i("criterions-tmp"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"临床数据配置",name:"clinicalData"}},["clinicalData"==e.activeTab?i("clinical-data"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"医学审核问题配置",name:"medicalAudit"}},["medicalAudit"==e.activeTab?i("medical-audit"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"DICOM字段匿名化配置",name:"anonymization"}},["anonymization"==e.activeTab?i("Anonymization"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"DICOM字段新增配置",name:"increasefields"}},["increasefields"==e.activeTab?i("IncreaseFields"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"邮件管理",name:"email"}},["email"==e.activeTab?i("Email"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"签名管理",name:"sign"}},["sign"==e.activeTab?i("Sign"):e._e()],1)],1)],1)},a=[],r=(i("7f7f"),i("0a32")),o=i("5adc"),s=i("909f"),l=i("2ae9"),c=i("02c9"),u=i("87d6"),d=i("cc2e"),f=i("8455"),h={name:"Questions",components:{QcQuestions:r["default"],CriterionsTmp:o["default"],ClinicalData:s["default"],Anonymization:c["default"],IncreaseFields:u["default"],Email:d["default"],Sign:f["default"],MedicalAudit:l["default"]},data:function(){return{activeTab:"qc"}},mounted:function(){this.$route.query.tabActive?this.activeTab=this.$route.query.tabActive:this.activeTab="qc"},methods:{clickTab:function(e,t){this.$router.push({path:"/dictionary/template?tabActive=".concat(e.name)})}}},p=h,m=(i("b3a7"),i("2877")),g=Object(m["a"])(p,n,a,!1,null,null,null);t["default"]=g.exports},b590:function(e,t,i){},b5c7:function(e,t,i){var n=i("282b"),a=n([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),r={getBarItemStyle:function(e){var t=a(this,e);if(this.getBorderLineDash){var i=this.getBorderLineDash();i&&(t.lineDash=i)}return t}};e.exports=r},b639:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[i("template",{slot:"search-container"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:"类型"}},[i("el-select",{staticStyle:{width:"130px"},attrs:{clearable:""},model:{value:e.searchData.OrganType,callback:function(t){e.$set(e.searchData,"OrganType",t)},expression:"searchData.OrganType"}},e._l(e.$d.OrganInfo,(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left",size:"mini"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")])],1)],1),e._v(" "),i("span",{staticStyle:{"margin-left":"auto"}},[i("el-button",{attrs:{type:"primary",icon:"el-icon-plus",size:"mini",disabled:0===e.selectArr.length},on:{click:e.handleAdd}},[e._v("\n 提交\n ")])],1)],1),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"}],ref:"organList",attrs:{data:e.list,stripe:"",height:"100"},on:{"selection-change":e.handleSelectChange}},[i("el-table-column",{attrs:{type:"selection",align:"left",width:"45",selectable:e.handleSelectable}}),e._v(" "),i("el-table-column",{attrs:{type:"index",width:"90"}}),e._v(" "),i("el-table-column",{attrs:{prop:"OrganType",label:"类型","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("OrganInfo",t.row.OrganType))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Part",label:"部位","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"TULOC",label:"TULOC","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"TULAT",label:"TULAT","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Remark",label:"备注","show-overflow-tooltip":""}})],1)],1)],2)},a=[],r=i("3e42"),o=i("6071"),s=function(){return{OrganType:null}},l={name:"DefaultOrgansList",components:{BaseContainer:o["default"]},data:function(){return{searchData:s(),loading:!1,list:[],total:0,selectArr:[]}},watch:{list:function(){var e=this;this.$nextTick((function(){e.$refs.organList.doLayout()}))}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0,this.searchData.trialId=this.$route.query.trialId,Object(r["wd"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result})).catch((function(){e.loading=!1}))},handleSelectChange:function(e){var t=[];e.map((function(e){t.push(e.Id)})),this.selectArr=t},handleAdd:function(){var e=this;this.loading=!0;var t={trialId:this.$route.query.trialId,organIds:this.selectArr};Object(r["O"])(t).then((function(t){e.loading=!1,e.getList(),e.$emit("getList")})).catch((function(){e.loading=!1}))},handleSearch:function(){this.getList()},handleReset:function(){this.searchData=s(),this.getList()},handleSortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()},handleSelectable:function(e){return!e.IsCheckd}}},c=l,u=i("2877"),d=Object(u["a"])(c,n,a,!1,null,null,null);t["default"]=d.exports},b686:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"study-wrapper"},[e.isReadingShowSubjectInfo?i("h4",{staticStyle:{color:"#ddd",padding:"5px 0px",margin:"0","text-align":"center","background-color":"#4c4c4c"}},[e._v("\n "+e._s(e.subjectCode)+"\n ")]):e._e(),e._v(" "),e.isReadingShowSubjectInfo?i("h4",{staticStyle:{color:"#ddd",padding:"5px 0px",margin:"0","text-align":"center","background-color":"#4c4c4c","margin-bottom":"5px"}},[e._v("\n "+e._s(e.taskBlindName)+"\n ")]):e._e(),e._v(" "),i("div",{staticClass:"ps"},[i("el-collapse",{model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},e._l(e.studyList,(function(t,n){return i("el-collapse-item",{key:""+t.StudyId,attrs:{name:""+t.StudyId}},[i("template",{slot:"title"},[t.IsCriticalSequence?i("div",{staticClass:"dicom-desc"},[e._v("\n "+e._s(e.$t("trials:reading:title:keySeries"))+"\n ")]):i("div",{staticClass:"dicom-desc",staticStyle:{width:"150px","white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis"}},[i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:t.StudyCode+" "+(t.Description?t.Description:"")+" "+t.Modalities+" ("+t.SeriesCount+")",placement:"right"}},[i("div",[i("span",[e._v(e._s(t.StudyCode)+" "+e._s(t.Description))]),e._v(" "),i("span",[e._v(" "+e._s(t.Modalities)+" ("+e._s(t.SeriesCount)+")")])])])],1)]),e._v(" "),i("div",{staticClass:"series"},e._l(t.SeriesList,(function(t,a){return i("div",{key:a,staticStyle:{position:"relative",margin:"10px 0px"},attrs:{"series-type":"current"},on:{click:function(i){return e.showSeriesImage(n,a,t)}}},[i("div",{staticClass:"series-wrapper",class:{"series-active":a==e.seriesIndex&&n===e.studyIndex}},[i("el-image",{staticClass:"image-preview",attrs:{src:t.previewImageUrl,fit:"fill"}}),e._v(" "),i("div",{staticClass:"image-desc"},[i("div",{staticClass:"flex-div"},[i("div",[e._v("#"+e._s(t.seriesNumber)+" ")]),e._v(" "),t.isDicom&&t.prefetchInstanceCount<t.instanceCount?i("div",[t.isLoading?i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$t("trials:reading:button:pause"),placement:"bottom"}},[i("i",{staticClass:"el-icon-video-pause",staticStyle:{"font-size":"18px","margin-right":"5px",color:"#ffeb3b",cursor:"pointer"},on:{click:function(i){return i.stopPropagation(),e.stopLoadSeries(t,n,a)}}})]):i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$t("trials:reading:button:download"),placement:"bottom"}},[i("i",{staticClass:"el-icon-video-play",staticStyle:{"font-size":"18px","margin-right":"5px",color:"#ffeb3b",cursor:"pointer"},on:{click:function(i){return i.stopPropagation(),e.loadSeries(t,n,a)}}})])],1):0===t.prefetchInstanceCount?i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$t("trials:reading:button:download"),placement:"bottom"}},[i("i",{staticClass:"el-icon-video-play",staticStyle:{"font-size":"18px","margin-right":"5px",color:"#ffeb3b",cursor:"pointer"},on:{click:function(i){return i.stopPropagation(),e.loadSeries(t,n,a)}}})]):e._e()],1),e._v(" "),i("p",{directives:[{name:"show",rawName:"v-show",value:t.description,expression:"series.description"}]},[i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:t.description,placement:"right"}},[i("div",{},[e._v(e._s(t.description))])])],1),e._v(" "),i("p",{directives:[{name:"show",rawName:"v-show",value:t.sliceThickness,expression:"series.sliceThickness"}]},[e._v("\n T: "+e._s(t.sliceThickness)+"\n ")]),e._v(" "),i("p",{directives:[{name:"show",rawName:"v-show",value:t.instanceCount,expression:"series.instanceCount"}]},[e._v("\n "+e._s(t.modality)+": "+e._s(t.instanceCount)+" image\n ")]),e._v(" "),i("div",{staticClass:"flex-div"},[e.measureData.findIndex((function(e){return e.SeriesId===t.seriesId}))>-1?i("div",[i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$t("trials:reading:button:marked"),placement:"right"}},[i("i",{staticClass:"el-icon-star-on",staticStyle:{"font-size":"16px",color:"#ff5722"}})])],1):e._e()])])],1),e._v(" "),t.isDicom&&t.prefetchInstanceCount>0&&t.prefetchInstanceCount<t.instanceCount?i("div",{staticStyle:{width:"100%"}},[i("el-progress",{attrs:{percentage:parseInt((t.prefetchInstanceCount/t.instanceCount*100).toFixed(2))}})],1):e._e()])})),0)],2)})),1)],1)])},a=[],r=(i("55dd"),i("6762"),i("2fdb"),i("ac6a"),i("456d"),i("75fc")),o=(i("96cf"),i("3b8d")),s=(i("20d6"),i("db72")),l=(i("c5f6"),i("acd4")),c=i("81d9"),u=i("344d"),d=i("f5c4"),f=i("9b92"),h=i("2f62"),p=i("4360");u["external"].dicomParser=l,u["external"].cornerstone=c;var m={name:"StudyList",props:{trialId:{type:String,required:!0},subjectVisitId:{type:String,required:!0},visitTaskId:{type:String,required:!0},isReading:{type:Number,default:0},taskBlindName:{type:String,default:""},isReadingShowSubjectInfo:{type:Boolean,required:!0}},data:function(){return{studyList:[],cachedImages:[],studyIndex:null,seriesIndex:null,loading:!1,measureData:[],isRender:!1,subjectCode:"",activeNames:[],seriesArr:[],imageList:[],loopLoadStatus:0}},computed:Object(s["a"])({},Object(h["b"])(["visitTaskList","currentTaskId","activeSeries"])),watch:{visitTaskList:{immediate:!0,handler:function(e){var t=this,i=this.visitTaskList.findIndex((function(e){return e.VisitTaskId===t.visitTaskId}));-1!==i&&(this.measureData=this.visitTaskList[i].MeasureData)}}},mounted:function(){this.subjectCode=this.$router.currentRoute.query.subjectCode,c["events"].addEventListener("cornerstoneimageloaded",this.cornerstoneImageLoaded)},beforeDestroy:function(){c["imageCache"].purgeCache()},methods:{initStudyInfo:function(){var e=this,t=this.$loading({fullscreen:!0});this.getInitSeries().then((function(i){d["a"].startTaskTimer(),i.map((function(t){e.loadInitialImage(t)}));var n=i.findIndex((function(e){return e.isCurrentTask}));if(n>-1){var a=parseInt((new Date).getTime()),r=e.visitTaskList.findIndex((function(t){return t.VisitTaskId===e.visitTaskId}));r>-1&&(e.measureData=e.visitTaskList[r].MeasureData,e.studyList=e.visitTaskList[r].StudyList,e.studyList.map((function(t,r){t.SeriesList.map((function(t,o){var s=isNaN(parseInt(t.sliceThickness))?null:parseInt(t.sliceThickness);(5===s||t.instanceCount<=100)&&t.imageIds.map((function(s){var l=0;l=t.seriesId===i[n].seriesId?10*parseInt((new Date).getTime()):--a,e.imageList.push({imageId:s,seriesId:t.seriesId,studyIndex:r,seriesIndex:o,visitTaskId:t.visitTaskId,priority:l})}))}))})),e.loopLoad())}f["a"].$emit("loadImageStacks",i),t.close(),e.isRender=!0})).catch((function(){t.close()}))},loadInitialImage:function(e){var t=this,i=parseInt((new Date).getTime()),n=e.imageIds[e.imageIdIndex];d["a"].loadAndCacheImagePlus(n,e.seriesId,100*i).then((function(i){t.imageLoaded(e,i.data.string("x0020000e"))}))},getStudyList:function(){var e=this;if(!this.isRender){var t=this.visitTaskList.findIndex((function(t){return t.VisitTaskId===e.visitTaskId}));if(t>-1&&this.visitTaskList[t].StudyList&&this.visitTaskList[t].StudyList.length>0){this.measureData=this.visitTaskList[t].MeasureData,this.studyList=this.visitTaskList[t].StudyList;var i=this.studyList.findIndex((function(e){return e.IsDicom}));i>-1&&(this.studyIndex=i,this.seriesIndex=0,this.activeNames=["".concat(this.studyList[i].StudyId)],this.loadImages(this.visitTaskList[t]))}this.isRender=!0}},getInitSeries:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,i,n,a,o,l,c,u,d,f,h,m,g=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=[],i=JSON.parse(this.$router.currentRoute.query.isReadingTaskViewInOrder),n=this.visitTaskList.findIndex((function(e){return e.VisitTaskId===g.visitTaskId})),this.studyList=this.visitTaskList[n].StudyList,!this.visitTaskList[n].IsBaseLineTask&&i){e.next=9;break}a=this.getFirstMarkedSeries(this.visitTaskList[n].MeasureData,Object(r["a"])(this.visitTaskList[n].StudyList)),0!==Object.keys(a).length?(this.studyIndex=a.studyIndex,this.seriesIndex=a.seriesIndex,t.push(a.series),this.activeNames=["".concat(this.studyList[this.studyIndex].StudyId)],this.studyList[a.studyIndex].SeriesList[a.seriesIndex].isFirstRender=!0):this.studyList.length>0&&(this.activeNames=["".concat(this.studyList[0].StudyId)]),e.next=37;break;case 9:if(o=null,l=parseInt(localStorage.getItem("CriterionType")),10===l?(c=this.visitTaskList.findIndex((function(e){return e.IsCurrentTask})),o=c-1):o=this.visitTaskList.findIndex((function(e){return e.IsBaseLineTask})),!(o>-1)){e.next=30;break}return u=this.$router.currentRoute.query.trialId,e.next=16,p["a"].dispatch("reading/getMeasuredData",this.visitTaskList[o].VisitTaskId);case 16:return e.next=18,p["a"].dispatch("reading/getStudyInfo",{trialId:u,subjectVisitId:this.visitTaskList[o].VisitId,visitTaskId:this.visitTaskList[o].VisitTaskId,taskBlindName:this.visitTaskList[o].TaskBlindName});case 18:d=this.getFirstMarkedSeries(this.visitTaskList[o].MeasureData,Object(r["a"])(this.visitTaskList[o].StudyList)),t.push(d.series),f=this.getSecondMarkedSeries(d,Object(s["a"])({},this.visitTaskList[n])),this.studyIndex=f.studyIndex,this.seriesIndex=f.seriesIndex,t.push(f.series),this.studyList[f.studyIndex].SeriesList[f.seriesIndex].isFirstRender=!0,this.studyIndex=f.studyIndex,this.seriesIndex=f.seriesIndex,this.activeNames=["".concat(this.studyList[f.studyIndex].StudyId)],e.next=37;break;case 30:h=this.studyList.findIndex((function(e){return e.IsDicom})),m=this.studyList[h].SeriesList[0],m.imageIdIndex=Math.floor(m.imageIds.length/2),t.push(m),this.studyIndex=h,this.seriesIndex=0,this.activeNames=["".concat(this.studyList[h].StudyId)];case 37:return e.abrupt("return",t);case 38:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getSecondMarkedSeries:function(e,t){var i=this,n={},a=t.StudyList,r=t.MeasureData;if(e.isMarked){var o=r.findIndex((function(t){return Object.keys(t.MeasureData).length>0&&t.OrderMarkName===e.measureData.OrderMarkName}));if(-1!==o){var s=a.findIndex((function(e){return e.StudyId===r[o].StudyId})),l=a[s].SeriesList,c=l.findIndex((function(e){return e.seriesId===r[o].SeriesId})),u=l[c].instanceList,d=u.findIndex((function(e){return e.includes(r[o].InstanceId)})),f=l[c];return f.imageIdIndex=d,n.studyIndex=s,n.seriesIndex=c,n.series=f,n.seriesId=f.seriesId,n}}var h=null,p=a.map((function(e){return e.SeriesList})).flat(),m=p.map((function(t,n){return{similar:i.strSimilarity2Percent(t.description,e.series.description),index:n}}));m=m.sort((function(e,t){return t.similar-e.similar}));var g=m[0]&&m[0].similar>.85?m[0].index:-1;if(g>-1&&(h=p[g]),!h){var v=p.findIndex((function(t){return t.sliceThickness===e.series.sliceThickness}));v>-1&&(h=p[v])}if(!h){var b=p.findIndex((function(t){return t.instanceCount===e.series.instanceCount}));b>-1&&(h=p[b])}if(!h){var y=p.findIndex((function(e){return e.isDicom&&5===parseInt(e.instanceCount)}));h=y>-1?p[y]:p[0]}return h&&(h.imageIdIndex=Math.floor(h.imageIds.length*(e.series.imageIdIndex/e.series.instanceCount)),n.studyIndex=h.studyIndex,n.seriesIndex=h.seriesIndex,n.series=h,n.seriesId=h.seriesId),n},findSerialNumberClosest:function(e,t){for(var i=[],n=0;n<e.length;n++){var a=t-e[n].seriesNumber;i.push({index:n,n:Math.abs(a)})}var r=Math.min.apply(null,i.map((function(e){return e.n}))),o=i.findIndex((function(e){return e.n===r}));return o},getFirstMarkedSeries:function(e,t){var i={},n=e.findIndex((function(e){return Object.keys(e.MeasureData).length>0}));if(-1!==n){var a=t.findIndex((function(t){return t.StudyId===e[n].StudyId&&t.IsDicom}));if(a>-1){var r=t[a].SeriesList,o=r.findIndex((function(t){return t.seriesId===e[n].SeriesId})),s=r[o].instanceList,l=s.findIndex((function(t){return t.includes(e[n].InstanceId)})),c=r[o];c.imageIdIndex=l,i.studyIndex=a,i.seriesIndex=o,i.series=c,i.seriesId=c.seriesId,i.isMarked=!0,i.measureData=e[n]}}else{for(var u=null,d=0;d<t.length;d++){var f=t[d].SeriesList.findIndex((function(e){return e.sliceThickness&&5===parseInt(e.sliceThickness)}));if(f>-1){u={studyIndex:d,seriesIdx:f,series:t[d].SeriesList[f]};break}}if(u)i.studyIndex=u.studyIndex,i.seriesIndex=u.seriesIdx,u.series.imageIdIndex=Math.floor(u.series.imageIds.length/2),i.series=u.series,i.seriesId=u.series.seriesId,i.isMarked=!1;else{var h=t.findIndex((function(e){return e.IsDicom}));if(h>-1){var p=t[h].SeriesList[0],m=Math.floor(p.imageIds.length/2);i.studyIndex=h,i.seriesIndex=0,i.series=p,i.series.imageIdIndex=m,i.seriesId=p.seriesId,i.isMarked=!1}}}return i},strSimilarity2Number:function(e,t){var i,n,a,r,o,s=e.length,l=t.length,c=[];if(0===s)return l;if(0===l)return s;for(i=0;i<=s;i++)c[i]=[],c[i][0]=i;for(n=0;n<=l;n++)c[0][n]=n;for(i=1;i<=s;i++)for(a=e.charAt(i-1),n=1;n<=l;n++)r=t.charAt(n-1),o=a===r?0:1,c[i][n]=this.Minimum(c[i-1][n]+1,c[i][n-1]+1,c[i-1][n-1]+o);return c[s][l]},strSimilarity2Percent:function(e,t){var i=e.length>t.length?e.length:t.length,n=this.strSimilarity2Number(e,t);return Number((1-n/i).toFixed(4))},Minimum:function(e,t,i){return e<t?e<i?e:i:t<i?t:i},showSeriesImage:function(e,t,i){var n=this;if(i.isDicom){this.studyIndex=e,this.seriesIndex=t,this.studyList[e].SeriesList[t].measureData=this.measureData;var a=this.studyList[e].SeriesList[t];if(this.$emit("loadImageStack",a),!i.loadStatus){this.loopLoadStatus=-1,i.isLoading=!0;var r=parseInt((new Date).getTime());i.imageIds.map((function(a,o){var s="";s=0===o?10*parseInt((new Date).getTime()):--r,n.imageList.push({imageId:a,seriesId:i.seriesId,studyIndex:e,seriesIndex:t,visitTaskId:i.visitTaskId,priority:s})})),this.imageList.length>0&&(this.loopLoadStatus=0,this.loopLoad())}f["a"].$emit("loadMeasurementList",{visitTaskId:this.visitTaskId,taskBlindName:this.taskBlindName})}else this.$emit("previewNoneDicoms",{visitTaskId:this.visitTaskId});p["a"].dispatch("reading/setActiveSeries",i)},setSeriesActive:function(e){var t=this,i=this.visitTaskList.findIndex((function(e){return e.VisitTaskId===t.visitTaskId}));if(-1!==i){this.studyList=this.visitTaskList[i].StudyList,this.studyIndex=e.studyIndex,this.seriesIndex=e.seriesIndex;var n="".concat(this.studyList[e.studyIndex].StudyId);this.activeNames.includes(n)||(this.activeNames.push(n),this.loadImages(this.visitTaskList[i]))}},selectSeries:function(e){var t=this.studyList.map((function(e){return e.SeriesList})).flat(),i=t.findIndex((function(t){return t.seriesId===e.seriesId&&t.studyId===e.studyId}));if(-1!==i){var n=i+e.offset;n<0?n=0:n>=t.length&&(n=t.length-1),t[n].seriesIndex===this.seriesIndex&&t[n].studyIndex===this.studyIndex||(this.showSeriesImage(t[n].studyIndex,t[n].seriesIndex,t[n]),this.handleActiveSeries(t[n]))}},handleActiveSeries:function(e){this.studyIndex=e.studyIndex,this.seriesIndex=e.seriesIndex;var t=this.visitTaskList.findIndex((function(t){return t.VisitTaskId===e.visitTaskId}));if(-1!==t){this.studyList=this.visitTaskList[t].StudyList;var i="".concat(this.studyList[e.studyIndex].StudyId);this.activeNames.includes(i)||(this.activeNames.push(i),this.loadImages(this.visitTaskList[t]),p["a"].dispatch("reading/setActiveSeries",e))}},loadImages:function(e){var t=this,i=e.IsCurrentTask?parseInt((new Date).getTime()):999;this.studyList.map((function(e,n){e.SeriesList.map((function(e,a){if(!e.loadStatus){var r=isNaN(parseInt(e.sliceThickness))?null:parseInt(e.sliceThickness);(e.isBeMark||5===r||e.instanceCount<=100)&&e.imageIds.map((function(r){i-=1,t.imageList.push({imageId:r,seriesId:e.seriesId,studyIndex:n,seriesIndex:a,visitTaskId:e.visitTaskId,priority:i})}))}}))})),this.loopLoad()},loadImages2:function(e){var t=this,i=parseInt((new Date).getTime());if(e.IsCurrentTask)this.studyList.map((function(e,n){e.SeriesList.map((function(e,a){var r=isNaN(parseInt(e.sliceThickness))?null:parseInt(e.sliceThickness);(5===r||e.instanceCount<=100)&&e.imageIds.map((function(r){i-=1,t.imageList.push({imageId:r,seriesId:e.seriesId,studyIndex:n,seriesIndex:a,visitTaskId:e.visitTaskId,priority:i})}))}))})),this.loopLoad();else{var n=this.studyList.findIndex((function(e){return e.IsCriticalSequence}));if(-1===n)return;this.studyList[n].SeriesList.forEach((function(e,a){e.loadStatus||e.imageIds.map((function(r){i--,t.imageList.push({imageId:r,seriesId:e.seriesId,studyIndex:n,seriesIndex:a,visitTaskId:e.visitTaskId,priority:i})}))})),this.loopLoad()}},loopLoad:function(){var e=this;this.imageList.length>0&&(d["a"].startTaskTimer(),this.imageList.map((function(t){d["a"].loadAndCacheImagePlus(t.imageId,t.seriesId,t.priority).then((function(i){e.imageLoaded(t,i.data.string("x0020000e"))}))})),this.imageList=[])},loadSeries:function(e,t,i){var n=this;console.log("loadSeries"),this.loopLoadStatus=-1,this.$set(this.studyList[t].SeriesList[i],"isLoading",!0);var a=parseInt((new Date).getTime());e.imageIds.map((function(r){-1===e.imageloadedArr.indexOf(r)&&n.imageList.push({imageId:r,seriesId:e.seriesId,studyIndex:t,seriesIndex:i,visitTaskId:e.visitTaskId,priority:a})})),this.imageList.length>0&&(this.loopLoadStatus=0,this.loopLoad())},stopLoadSeries:function(e,t,i){console.log("stopLoadSeries"),d["a"].removeTask(e.seriesId),this.$set(this.studyList[t].SeriesList[i],"isLoading",!1)},imageLoaded:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t,i){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,p["a"].dispatch("reading/updateStudyList",{visitTaskId:t.visitTaskId,imageId:t.imageId,seriesUid:i});case 2:case"end":return e.stop()}}),e)})));function t(t,i){return e.apply(this,arguments)}return t}(),cornerstoneImageLoaded:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){var i,n,a,r,o,s,l,c,u,d,f=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,p["a"].dispatch("reading/updateStudyList",{visitTaskId:this.visitTaskId,imageId:t.detail.image.imageId,seriesUid:t.detail.image.data.string("x0020000e")});case 2:i=this.visitTaskList.findIndex((function(e){return e.VisitTaskId===f.visitTaskId})),this.studyList=this.visitTaskList[i].StudyList,n=t.detail.image.sharedCacheKey,a=this.cachedImages.findIndex((function(e){return e.uri===n})),-1===a?this.cachedImages.push({uri:n,timestamp:(new Date).getTime()}):this.cachedImages[a].timestamp=(new Date).getTime(),r=t.detail.image.imageId,o=t.detail.image.data.string("x0020000e"),s=-1,l=-1,c=0;case 12:if(!(c<this.studyList.length)){e.next=27;break}u=0;case 14:if(!(u<this.studyList[c].SeriesList.length)){e.next=22;break}if(this.studyList[c].SeriesList[u].seriesUid!==o){e.next=19;break}return s=c,l=u,e.abrupt("break",22);case 19:++u,e.next=14;break;case 22:if(!(s>0)){e.next=24;break}return e.abrupt("break",27);case 24:++c,e.next=12;break;case 27:if(!(l<0)){e.next=29;break}return e.abrupt("return");case 29:if(d=this.studyList[s].SeriesList[l].imageIds.indexOf(r),!(d<0)){e.next=32;break}return e.abrupt("return");case 32:this.studyList[s].SeriesList[l].imageloadedArr.indexOf(r)<0&&this.studyList[s].SeriesList[l].prefetchInstanceCount>=this.studyList[s].SeriesList[l].instanceCount&&(this.studyList[s].SeriesList[l].loadStatus=!0);case 33:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()}},g=m,v=(i("114c"),i("2877")),b=Object(v["a"])(g,n,a,!1,null,"be46460c",null);t["default"]=b.exports},b6b7:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"upload-container"},[i("el-upload",{staticClass:"upload-demo",attrs:{action:"","http-request":e.uploadFile,"before-upload":e.beforeUpload,"file-list":e.fileList,"before-remove":e.beforeRemove,"on-remove":e.handleRemoveFile,"on-preview":e.handlePreview,limit:1,"on-exceed":e.handleExceed,accept:".pdf"}},[i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnDisabled}},[e._v("Upload")]),e._v(" "),i("span",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[e._v("(must be in pdf format)")])],1)],1)},a=[],r=(i("7f7f"),i("a796")),o=i("3e42"),s="ACK of SOW",l={name:"UploadFile",props:{doctorId:{type:String,required:!0},trialId:{type:String,required:!0}},data:function(){return{fileList:[],btnDisabled:!1}},methods:{initFileList:function(e){this.fileList=e},uploadFile:function(e){var t=this,i=e.file.name;this.btnDisabled=!0,Object(r["f"])(e.file,s,this.doctorId).then((function(e){e.IsSuccess&&(t.fileList.push({DoctorId:t.doctorId,name:i,FileName:i,Path:e.Result.FilePath,FullPath:e.Result.FullFilePath,Type:s}),t.saveFile())})).catch((function(){t.btnDisabled=!1}))},saveFile:function(){var e=this,t=this.fileList[0],i=t.name,n=t.Path,a=t.FullPath,r=t.Type,s={DoctorId:this.doctorId,Type:r,Path:n,FullPath:a,FileName:i};Object(o["Bf"])(this.trialId,s).then((function(t){e.btnDisabled=!1,t.IsSuccess&&(e.fileList[0].Id=t.Result,e.$message.success("Uploaded successfully"),e.$emit("getFileList",e.fileList))})).catch((function(){e.btnDisabled=!1}))},beforeUpload:function(e,t){var i=this.fileValid(e.name,"pdf");if(!i)return this.$message.error("must be in pdf format"),!1;this.fileList=[]},beforeRemove:function(e,t){if(e&&"success"===e.status)return this.$confirm("Sure to remove ".concat(e.name,"?"))},handleRemoveFile:function(e,t){var i=this;e&&"success"===e.status&&(e.Id?Object(o["wb"])(this.trialId,this.doctorId,e.Id).then((function(e){e.IsSuccess&&(i.fileList=[],i.$message({message:"Deleted successfully!",type:"success"}),i.$emit("getFileList",i.fileList))})):(this.fileList=[],this.$emit("getFileList",this.fileList)))},handlePreview:function(e){e.FullPath&&window.open(e.FullPath,"_blank")},handleExceed:function(e,t){this.$message.warning("Upload is currently limited to 1 file")},fileValid:function(e,t){var i=e.substring(e.lastIndexOf(".")+1).toLocaleLowerCase();return t.toLocaleLowerCase().indexOf(i)>-1}}},c=l,u=(i("3b50"),i("2877")),d=Object(u["a"])(c,n,a,!1,null,null,null);t["default"]=d.exports},b6c6:function(e,t,i){},b6cb:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",[i("div",{staticClass:"search"},[i("SearchForm",{attrs:{size:"mini",that:this,"search-data":e.searchData,"search-form":e.setting_form,"search-handle":e.setting_handle},on:{search:e.handleSearch,reset:e.handleReset}}),e._v(" "),i("span",{staticStyle:{"margin-left":"auto"}},[i("el-button",{staticStyle:{"margin-left":"auto"},attrs:{type:"primary",size:"small"},on:{click:e.handleAdd}},[e._v("New")])],1)],1),e._v(" "),i("base-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{columns:e.setting_cols,list:e.list,"search-data":e.searchData,total:e.total},on:{getList:e.getList,edit:e.handleEdit,delete:e.handleDelete,sortByColumn:e.sortByColumn},scopedSlots:e._u([{key:"modalitySlot",fn:function(t){var i=t.scope;return[e._v("\n "+e._s(i.row.ModalityList&&i.row.ModalityList.length>0?i.row.ModalityList.join(", "):"")+"\n ")]}}])}),e._v(" "),e.setting_model.visible?i("setting-form",{attrs:{data:e.rowData},on:{close:e.closeModel}}):e._e()],1)},a=[],r=i("db72"),o=(i("96cf"),i("3b8d")),s=(i("20d6"),i("e56e")),l=i("86a6"),c=i("aaf3"),u=i("f36a"),d=i("d13d"),f=i("c0ee"),h=i("ff1e"),p=function(){return{ModalityId:"",PageIndex:1,PageSize:20}},m={name:"TemplateSettings",components:{BoxContent:u["default"],SearchForm:d["default"],BaseTable:f["default"],SettingForm:h["default"]},data:function(){return{setting_cols:c["a"],setting_form:c["b"],setting_handle:c["c"],setting_model:c["d"],list:[],loading:!1,total:0,searchData:p(),rowData:{},readingType:{}}},mounted:function(){this.getList(),this.getInfo()},methods:{getList:function(){var e=this;this.loading=!0,Object(s["lb"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},findItemIndex:function(e){return this.setting_form.findIndex((function(t){return t.prop&&t.prop===e}))},getInfo:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getDicData();case 2:this.readingType.length>0&&(t=this.findItemIndex("ModalityId"),this.$set(this.setting_form[t],"options",this.readingType));case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getDicData:function(){var e=this;Object(l["c"])(["ReadingType"]).then((function(t){var i=Object(r["a"])({},t.Result),n=i.ReadingType;e.readingType=n||{}})).catch((function(){}))},handleAdd:function(){this.rowData={},this.setting_model.title="Add",this.setting_model.visible=!0},handleEdit:function(e){this.rowData=e,this.setting_model.title="Add",this.setting_model.visible=!0},handleDelete:function(e){var t=this;this.$confirm("Sure to delete?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){Object(s["H"])(e.Id).then((function(i){i.IsSuccess&&(t.list.splice(t.list.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success("Deleted successfully!"))}))}))},sortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=p(),this.getList()},closeModel:function(){this.setting_model.visible=!1,this.getList()}}},g=m,v=(i("75ab"),i("2877")),b=Object(v["a"])(g,n,a,!1,null,null,null);t["default"]=b.exports},b6f9:function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-example",use:"icon-example-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-example"><path d="M96.258 57.462h31.421C124.794 27.323 100.426 2.956 70.287.07v31.422a32.856 32.856 0 0 1 25.971 25.97zm-38.796-25.97V.07C27.323 2.956 2.956 27.323.07 57.462h31.422a32.856 32.856 0 0 1 25.97-25.97zm12.825 64.766v31.421c30.46-2.885 54.507-27.253 57.713-57.712H96.579c-2.886 13.466-13.146 23.726-26.292 26.291zM31.492 70.287H.07c2.886 30.46 27.253 54.507 57.713 57.713V96.579c-13.466-2.886-23.726-13.146-26.291-26.292z" /></symbol>'});o.a.add(s);t["default"]=s},b706:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"oncologyReview_wrapper"},[e.isReadingShowSubjectInfo?i("el-card",{staticStyle:{"margin-bottom":"10px"},attrs:{shadow:"never","body-style":{padding:"10px"}}},[i("h4",[e._v("\n "+e._s(e.$t("trials:oncologyReview:title:subject"))+"\n "),i("span",{staticStyle:{"font-weight":"normal"}},[e._v(e._s(e.subjectCode)+" ")]),e._v(" "),i("span",{staticStyle:{"font-weight":"normal"}},[e._v("("+e._s(e.taskBlindName)+")")])])]):e._e(),e._v(" "),i("el-card",{attrs:{"body-style":{padding:"10px"}}},[i("div",{staticStyle:{display:"flex","flex-direction":"row","justify-content":"space-between"},attrs:{slot:"header"},slot:"header"},[i("div",{staticStyle:{"font-weight":"bold"}},[e._v(e._s(e.$t("trials:oncologyReview:title:oncologyReview")))])]),e._v(" "),i("div",{staticStyle:{"text-align":"right",margin:"5px 0"}},[e.isExistsClinicalData?i("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.previewCD}},[e._v("\n "+e._s(e.$t("trials:oncologyReview:button:clinicalData"))+"\n ")]):e._e(),e._v(" "),e.oncologyInfo.ReadingTaskState<2?i("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.handleSave(!0)}}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")]):e._e(),e._v(" "),e.oncologyInfo.ReadingTaskState<2?i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleConfirm}},[e._v("\n "+e._s(e.$t("common:button:submit"))+"\n ")]):e._e()],1),e._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.oncologyInfo.OncologyVisits}},[i("el-table-column",{attrs:{prop:"VisitName",label:e.$t("trials:oncologyReview:title:visitName"),"show-overflow-tooltip":"",width:"150"}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("trials:oncologyReview:title:readingRes"),align:"center",prop:""}},[[e._l(e.questionCols,(function(t,n){return i("el-table-column",{key:t,attrs:{prop:"",label:t,"show-overflow-tooltip":"",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.QuestionList[n].DictionaryCode?i("span",[e._v("\n "+e._s(e.$fd(t.row.QuestionList[n].DictionaryCode,parseInt(t.row.QuestionList[n].Answer)))+"\n ")]):i("span",[e._v("\n "+e._s(t.row.QuestionList.length>n?t.row.QuestionList[n].Answer:"")+"\n ")])]}}],null,!0)})})),e._v(" "),e.oncologyInfo.IsShowDetail?i("el-table-column",{attrs:{prop:"IsHaveChange",label:e.$t("trials:oncologyReview:title:isGlobalUpdate"),"show-overflow-tooltip":"",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e.$fd("YesOrNo",t.row.IsHaveChange)))]),e._v(" "),t.row.IsHaveChange&&e.oncologyInfo.GlobalTaskId?i("el-button",{staticStyle:{"margin-left":"5px"},attrs:{type:"text"},on:{click:function(t){return e.handleViewDetail(e.oncologyInfo.GlobalTaskId)}}},[e._v("\n "+e._s(e.$t("trials:oncologyReview:title:view"))+"\n ")]):e._e()]}}],null,!1,1339867352)}):e._e(),e._v(" "),e.oncologyInfo.IsShowDetail?i("el-table-column",{attrs:{prop:"VisitRemark",label:e.$t("trials:oncologyReview:title:visitRemark"),"show-overflow-tooltip":"",width:"150"}}):e._e()]],2),e._v(" "),i("el-table-column",{attrs:{label:e.$t("trials:oncologyReview:title:oReviewRes"),align:"center",prop:""}},[[i("el-table-column",{attrs:{prop:"EvaluationResult",label:e.$t("trials:oncologyReview:title:findings"),"show-overflow-tooltip":"",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.oncologyInfo.ReadingTaskState<2?i("el-select",{attrs:{placeholder:e.$t("common:ruleMessage:select")},model:{value:t.row.EvaluationResult,callback:function(i){e.$set(t.row,"EvaluationResult",i)},expression:"scope.row.EvaluationResult"}},e._l(e.assessTypeList,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.Value,value:e.Code}})})),1):i("span",[e._v(e._s(e.getAssessType(t.row.EvaluationResult)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"EvaluationReason","show-overflow-tooltip":"",width:"250"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.oncologyInfo.ReadingTaskState<2?i("el-input",{model:{value:t.row.EvaluationReason,callback:function(i){e.$set(t.row,"EvaluationReason",i)},expression:"scope.row.EvaluationReason"}}):i("span",[e._v(e._s(t.row.EvaluationReason))])]}}])},[i("template",{slot:"header"},[i("el-tooltip",{attrs:{placement:"top"}},[i("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n "+e._s(e.oncologyInfo.TrialEvaluationReason)+"\n ")]),e._v(" "),i("div",[i("span",[e._v(e._s(e.$t("trials:oncologyReview:title:reason")))]),e._v(" "),i("span",{staticStyle:{color:"red"}},[e._v("*")])])])],1)],2)]],2),e._v(" "),e.oncologyInfo.IsShowDetail?i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{circle:"",title:e.$t("trials:oncologyReview:title:view"),icon:"el-icon-view"},on:{click:function(i){return e.handleViewDetail(t.row.VisitTaskId)}}})]}}],null,!1,4016480980)}):e._e()],1)],1),e._v(" "),e.isReadingShowPreviousResults?i("el-card",{staticClass:"box-mr",attrs:{"body-style":{padding:"10px"}}},[i("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[i("span",{staticStyle:{"font-weight":"bold"}},[e._v(e._s(e.$t("trials:oncologyReview:title:previousRes")))])]),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.priorLoading,expression:"priorLoading"}],staticStyle:{width:"100%"},attrs:{data:e.priorList}},[i("el-table-column",{attrs:{prop:"TaskBlindName",label:e.$t("trials:oncologyReview:title:oncologyReview"),"show-overflow-tooltip":"",width:"200"}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{circle:"",title:e.$t("trials:oncologyReview:title:view"),icon:"el-icon-view"},on:{click:function(i){return e.handleViewDetail(t.row.VisitTaskId)}}})]}}],null,!1,4016480980)})],1)],1):e._e(),e._v(" "),e.signVisible?i("el-dialog",{attrs:{visible:e.signVisible,"close-on-click-modal":!1,width:"600px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.signVisible=t}}},[i("div",{attrs:{slot:"title"},slot:"title"},[i("span",{staticStyle:{"font-size":"18px"}},[e._v(e._s(e.$t("common:dialogTitle:sign")))]),e._v(" "),i("span",{staticStyle:{"font-size":"12px","margin-left":"5px"}},[e._v(e._s("("+e.$t("common:label:sign")+e.currentUser+")"))])]),e._v(" "),i("SignForm",{ref:"signForm",attrs:{"sign-code-enum":e.signCode},on:{closeDialog:e.closeSignDialog}})],1):e._e()],1)},a=[],r=(i("20d6"),i("c5f6"),i("3e42")),o=i("7a9e"),s=i("5f87"),l=i("9b92"),c=i("179b"),u={name:"OncologyReview",components:{SignForm:c["default"]},props:{trialId:{type:String,required:!0},subjectId:{type:String,required:!0},visitTaskId:{type:String,required:!0},readingCategory:{type:Number,required:!0},subjectCode:{type:String,required:!0},taskBlindName:{type:String,required:!0},isReadingShowSubjectInfo:{type:Boolean,required:!0},isReadingShowPreviousResults:{type:Boolean,required:!0},isExistsClinicalData:{type:Boolean,required:!0}},data:function(){return{currentUser:zzSessionStorage.getItem("userName"),signVisible:!1,signCode:null,loading:!1,priorLoading:!1,priorList:[],questionCols:[],oncologyInfo:{},assessTypeList:[]}},mounted:function(){this.getList(),this.isReadingShowPreviousResults&&this.getPriorList()},methods:{getList:function(){var e=this;this.loading=!0,Object(r["yc"])({visitTaskId:this.visitTaskId}).then((function(t){var i=[];if(t.Result.OncologyVisits.length>0){var n=t.Result.OncologyVisits[0];n.QuestionList.map((function(e){i.push(e.QuestionName)}))}e.questionCols=i,e.assessTypeList=t.Result.AssessTypeList,e.oncologyInfo=t.Result,e.loading=!1})).catch((function(){e.loading=!1}))},getAssessType:function(e){var t=this.assessTypeList.findIndex((function(t){return t.Code===e}));return t>-1?this.assessTypeList[t].Value:""},handleSave:function(e){var t=this;this.loading=!0;var i=this.oncologyInfo.OncologyVisits.findIndex((function(e){return!e.EvaluationResult}));if(!(i>-1)){this.loading=!0;var n=[];this.oncologyInfo.OncologyVisits.map((function(e){e.EvaluationResult&&n.push({visitTaskId:e.VisitTaskId,evaluationResult:e.EvaluationResult,evaluationReason:e.EvaluationReason})}));var a={oncologyTaskId:this.visitTaskId,oncologyQuestionList:n};return new Promise((function(i,n){Object(r["Ne"])(a).then((function(n){t.loading=!1,t.getList(),e&&t.$message.success(t.$t("common:message:savedSuccessfully")),i(!0)})).catch((function(e){t.loading=!1,n(!1)}))}))}this.loading=!1,this.$confirm(this.$t("trials:oncologyReview:message:msg1"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){return Promise.reject(!1)})).catch((function(e){return Promise.reject(!1)}))},handleSubmit:function(){var e=this;this.$refs["adForm"].validate((function(t){if(t){var i=o["default"].processSignature.ImageAssessmentReportConfirmation;e.signCode=i,e.signVisible=!0}}))},closeSignDialog:function(e,t){e?this.signConfirm(t):this.signVisible=!1},handleConfirm:function(){var e=this;this.handleSave(!1).then((function(t){if(t){var i=o["default"].processSignature.ImageAssessmentReportConfirmation;e.signCode=i,e.signVisible=!0}}))},signConfirm:function(e){var t=this;this.loading=!0;var i={data:{oncologyTaskId:this.visitTaskId},signInfo:e};Object(r["cf"])(i).then((function(e){e.IsSuccess&&(t.$message.success(t.$t("common:message:savedSuccessfully")),t.isEdit=!1,t.$refs["signForm"].btnLoading=!1,t.signVisible=!1,t.oncologyInfo.ReadingTaskState=2,window.opener.postMessage("refreshTaskList",window.location),t.$confirm(t.$t("trials:oncologyReview:title:msg2"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){l["a"].$emit("getNextTask")})).catch((function(e){}))),t.loading=!1})).catch((function(e){t.loading=!1,t.$refs["signForm"].btnLoading=!1}))},getPriorList:function(){var e=this;this.priorLoading=!0,Object(r["Tc"])({visitTaskId:this.visitTaskId}).then((function(t){e.priorList=t.Result,e.priorLoading=!1})).catch((function(){e.priorLoading=!1}))},handleViewDetail:function(e){var t=Object(s["a"])(),i=this.$router.currentRoute.query.criterionType,n=this.$router.currentRoute.query.readingTool;n=isNaN(parseInt(n))?null:parseInt(n);var a=this.$router.currentRoute.query.isReadingTaskViewInOrder,r=this.$router.currentRoute.query.TrialReadingCriterionId,o="";o=0===n?"/readingDicoms?TrialReadingCriterionId=".concat(r,"&trialId=").concat(this.trialId,"&subjectCode=").concat(this.subjectCode,"&subjectId=").concat(this.subjectId,"&visitTaskId=").concat(e,"&isReadingTaskViewInOrder=").concat(a,"&criterionType=").concat(i,"&readingTool=").concat(n,"&TokenKey=").concat(t):"/noneDicomReading?TrialReadingCriterionId=".concat(r,"&trialId=").concat(this.trialId,"&subjectCode=").concat(this.subjectCode,"&subjectId=").concat(this.subjectId,"&visitTaskId=").concat(e,"&isReadingTaskViewInOrder=").concat(a,"&criterionType=").concat(i,"&readingTool=").concat(n,"&TokenKey=").concat(t);var l=this.$router.resolve({path:o});window.open(l.href,"_blank")},previewCD:function(){var e=Object(s["a"])(),t=this.$router.resolve({path:"/clinicalData?subjectId=".concat(this.oncologyInfo.SubjectId,"&trialId=").concat(this.trialId,"&visitTaskId=").concat(this.oncologyInfo.OncologyTaskId,"&TokenKey=").concat(e)});window.open(t.href,"_blank")}}},d=u,f=(i("bebc"),i("2877")),h=Object(f["a"])(d,n,a,!1,null,"67d2c9e9",null);t["default"]=h.exports},b708:function(e,t,i){"use strict";i("eb17")},b719:function(e,t,i){var n=i("697e7");t.zrender=n;var a=i("1687");t.matrix=a;var r=i("401b");t.vector=r;var o=i("6d8b"),s=i("41ef");t.color=s;var l=i("2306"),c=i("3842");t.number=c;var u=i("eda2");t.format=u;var d=i("88b3");d.throttle;t.throttle=d.throttle;var f=i("1548");t.helper=f;var h=i("bda7");t.parseGeoJSON=h;var p=i("6179");t.List=p;var m=i("4319");t.Model=m;var g=i("84ce");t.Axis=g;var v=i("22d1");t.env=v;var b=h,y={};o.each(["map","each","filter","indexOf","inherits","reduce","filter","bind","curry","isArray","isString","isObject","isFunction","extend","defaults","clone","merge"],(function(e){y[e]=o[e]}));var w={};o.each(["extendShape","extendPath","makePath","makeImage","mergePath","resizePath","createIcon","setHoverStyle","setLabelStyle","setTextStyle","setText","getFont","updateProps","initProps","getTransform","clipPointsByRect","clipRectByRect","registerShape","getShapeClass","Group","Image","Text","Circle","Sector","Ring","Polygon","Polyline","Rect","Line","BezierCurve","Arc","IncrementalDisplayable","CompoundPath","LinearGradient","RadialGradient","BoundingRect"],(function(e){w[e]=l[e]})),t.parseGeoJson=b,t.util=y,t.graphic=w},b72c:function(e,t,i){},b768:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"search-container"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:researchStaff:table:siteId")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:"",filterable:""},model:{value:e.searchData.SiteId,callback:function(t){e.$set(e.searchData,"SiteId",t)},expression:"searchData.SiteId"}},e._l(e.siteOptions,(function(e,t){return i("el-option",{key:t,attrs:{label:e.TrialSiteCode,value:e.SiteId}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:researchStaff:table:Name")}},[i("el-input",{staticClass:"mr",staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.UserName,callback:function(t){e.$set(e.searchData,"UserName",t)},expression:"searchData.UserName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:researchStaff:table:role")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.TrialRoleNameId,callback:function(t){e.$set(e.searchData,"TrialRoleNameId",t)},expression:"searchData.TrialRoleNameId"}},e._l(e.dict.type.SiteSurvey_UserRoles,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:researchStaff:table:organization")}},[i("el-input",{staticClass:"mr",staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.OrganizationName,callback:function(t){e.$set(e.searchData,"OrganizationName",t)},expression:"searchData.OrganizationName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:researchStaff:table:isGenerateAccount")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.IsGenerateAccount,callback:function(t){e.$set(e.searchData,"IsGenerateAccount",t)},expression:"searchData.IsGenerateAccount"}},[i("el-option",{attrs:{label:"是",value:!0}}),e._v(" "),i("el-option",{attrs:{label:"否",value:!1}})],1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:researchStaff:table:userType")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.UserTypeId,callback:function(t){e.$set(e.searchData,"UserTypeId",t)},expression:"searchData.UserTypeId"}},e._l(e.userTypeOptions,(function(t){return i("el-option",{key:t.Id,attrs:{label:t.UserTypeShortName,value:t.Id}},[i("span",[e._v(e._s(t.UserType))])])})),1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")])],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")])],1),e._v(" "),i("el-form-item",[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:attachments:site-research:summary-record:sendEmail"],expression:"['trials:trials-panel:attachments:site-research:summary-record:sendEmail']"}],attrs:{type:"primary",icon:"el-icon-message",loading:e.sendEmailLoading,disabled:0===e.selectArr.length},on:{click:e.handleSendEmail}},[e._v("\n "+e._s(e.$t("trials:researchRecord:dialogButton:sendEmail"))+"\n ")])],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-download",disabled:0===e.list.length},on:{click:e.handleExport}},[e._v("\n "+e._s(e.$t("common:button:export"))+"\n ")])],1)],1)],1),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:70},expression:"{bottomOffset:70}"}],ref:"researchUsers",attrs:{data:e.list,stripe:"",height:"100"},on:{"selection-change":e.handleSelectChange,"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"selection",width:"50",selectable:e.handleSelectTable}}),e._v(" "),i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialSiteSurvey.TrialSiteCode",label:e.$t("trials:researchStaff:table:siteId"),"show-overflow-tooltip":"",sortable:"custom","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(""+t.row.TrialSiteSurvey.TrialSiteCode))]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialSiteSurvey.SiteName",label:e.$t("trials:researchStaff:table:siteName"),"show-overflow-tooltip":"",sortable:"custom","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(""+t.row.TrialSiteSurvey.SiteName))]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"LastName",label:e.$t("trials:researchStaff:table:Name"),"show-overflow-tooltip":"",sortable:"custom","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.LastName+" / "+t.row.FirstName))]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialRoleName",label:e.$t("trials:researchStaff:table:role"),"show-overflow-tooltip":"",sortable:"custom","min-width":"100"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Phone",label:e.$t("trials:researchStaff:table:phone"),"show-overflow-tooltip":"",sortable:"custom","min-width":"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Email",label:e.$t("trials:researchStaff:table:email"),"show-overflow-tooltip":"",sortable:"custom","min-width":"150"}}),e._v(" "),i("el-table-column",{attrs:{prop:"OrganizationName",label:e.$t("trials:researchStaff:table:organization"),"show-overflow-tooltip":"",sortable:"custom","min-width":"100"}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsGenerateAccount",label:e.$t("trials:researchStaff:table:isGenerateAccount"),"show-overflow-tooltip":"",sortable:"custom","min-width":"130"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("YesOrNo",t.row.IsGenerateAccount))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"UserType",label:e.$t("trials:researchStaff:table:userType"),"show-overflow-tooltip":"",sortable:"custom","min-width":"100"}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsJoin",label:e.$t("trials:researchStaff:table:isJoin"),"show-overflow-tooltip":"",sortable:"custom","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsJoin?i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("IsJoin",t.row.IsJoin)))]):i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("IsJoin",t.row.IsJoin)))])]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1)],2)},a=[],r=i("db72"),o=i("a8db"),s=i("3e42"),l=i("6071"),c=i("333d"),u=["SortField","Asc","PageIndex","PageSize"],d=function(){return{SortField:"",Asc:!0,PageIndex:1,PageSize:20,SiteId:"",UserTypeId:"",IsGenerateAccount:null,TrialRoleNameId:"",UserName:"",OrganizationName:"",FormWriterKeyInfo:"",State:""}},f={name:"SiteResearchList",components:{BaseContainer:l["default"],Pagination:c["default"]},dicts:["SiteSurvey_UserRoles"],data:function(){return{searchData:d(),loading:!1,list:[],total:0,trialId:this.$route.query.trialId,siteOptions:[],userTypeOptions:[],selectArr:[],sendEmailLoading:!1}},mounted:function(){this.getList(),this.getSite(),this.getUserType()},methods:{getList:function(){var e=this;this.loading=!0,this.searchData.TrialId=this.trialId,Object(s["mf"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},handleSelectChange:function(e){this.selectArr=e},handleSendEmail:function(){var e=this;this.sendEmailLoading=!0;var t={TrialId:this.trialId,TrialSiteSurveyId:this.selectArr[0].TrialSiteSurveyId,BaseUrl:"".concat(location.protocol,"//").concat(location.host,"/login"),RouteUrl:"".concat(location.protocol,"//").concat(location.host,"/email-recompose"),UserList:this.selectArr};Object(s["Ge"])(t).then((function(){e.sendEmailLoading=!1,e.$message.success(e.$t("trials:researchStaff:message:sendEmalil")),e.getList()})).catch((function(){e.sendEmailLoading=!1}))},handleExport:function(){var e=this;this.searchData.TrialId=this.trialId,this.loading=!0;var t=Object(r["a"])({},this.searchData),i=(t.SortField,t.Asc,t.PageIndex,t.PageSize,Object(o["a"])(t,u));Object(s["of"])(Object(r["a"])({},i)).then((function(t){e.loading=!1})).catch((function(){e.loading=!1}))},getSite:function(){var e=this;Object(s["Zd"])(this.trialId).then((function(t){e.siteOptions=t.Result}))},getUserType:function(){var e=this;Object(s["ge"])(3).then((function(t){e.userTypeOptions=t.Result}))},handleSelectTable:function(e){return e.IsGenerateSuccess&&!e.IsJoin},handleReset:function(){var e=this;this.searchData=d(),this.getList(),this.$nextTick((function(){e.$refs.researchUsers.clearSort()}))},handleSearch:function(){this.getList()},handleSortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.getList()}}},h=f,p=i("2877"),m=Object(p["a"])(h,n,a,!1,null,null,null);t["default"]=m.exports},b78b:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"employment-info"},[i("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0,model:e.employment,size:"small"}},[i("el-row",[i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"Department:"}},[e.isEnglish?i("span",[e._v(e._s(e.employment.Department))]):i("span",[e._v(e._s(e.employment.DepartmentCN))])])],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"Rank:"}},[e.isEnglish?i("span",[e._v(e._s(e.employment.Rank))]):i("span",[e._v(e._s(e.employment.RankCN))])])],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"Physician:"}},[e.isEnglish?i("span",[e._v(e._s(e.employment.Physician))]):i("span",[e._v(e._s(e.employment.PhysicianCN))])])],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"Position:"}},[e.isEnglish?i("span",[e._v(e._s(e.employment.Position))]):i("span",[e._v(e._s(e.employment.PositionCN))])])],1)],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"Hospital:"}},[e.isEnglish?i("span",[e._v(e._s(e.employment.HospitalName))]):i("span",[e._v(e._s(e.employment.HospitalNameCN))])])],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"Affiliated University:"}},[e.isEnglish?i("span",[e._v(e._s(e.employment.UniversityAffiliated))]):i("span",[e._v(e._s(e.employment.UniversityAffiliatedCN))])])],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"City:"}},[e.isEnglish?i("span",[e._v(e._s(e.employment.City))]):i("span",[e._v(e._s(e.employment.CityCN))])])],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"State/Province:"}},[e.isEnglish?i("span",[e._v(e._s(e.employment.Province))]):i("span",[e._v(e._s(e.employment.ProvinceCN))])])],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"Country:"}},[e.isEnglish?i("span",[e._v(e._s(e.employment.Country))]):i("span",[e._v(e._s(e.employment.CountryCN))])])],1)],1)],1)],1)},a=[],r={props:{employment:{type:Object,default:function(){return{}}},isEnglish:{type:Boolean}}},o=r,s=(i("4d89"),i("2877")),l=Object(s["a"])(o,n,a,!1,null,null,null);t["default"]=l.exports},b79c:function(e,t,i){},b7c3:function(e,t,i){},b804:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{style:{height:e.height+"px",zIndex:e.zIndex}},[i("div",{class:e.className,style:{top:e.isSticky?e.stickyTop+"px":"",zIndex:e.zIndex,position:e.position,width:e.width,height:e.height+"px"}},[e._t("default",[i("div",[e._v("sticky")])])],2)])},a=[],r=(i("c5f6"),{name:"Sticky",props:{stickyTop:{type:Number,default:0},zIndex:{type:Number,default:1},className:{type:String,default:""}},data:function(){return{active:!1,position:"",width:void 0,height:void 0,isSticky:!1}},mounted:function(){this.height=this.$el.getBoundingClientRect().height,window.addEventListener("scroll",this.handleScroll),window.addEventListener("resize",this.handleResize)},activated:function(){this.handleScroll()},destroyed:function(){window.removeEventListener("scroll",this.handleScroll),window.removeEventListener("resize",this.handleResize)},methods:{sticky:function(){this.active||(this.position="fixed",this.active=!0,this.width=this.width+"px",this.isSticky=!0)},handleReset:function(){this.active&&this.reset()},reset:function(){this.position="",this.width="auto",this.active=!1,this.isSticky=!1},handleScroll:function(){var e=this.$el.getBoundingClientRect().width;this.width=e||"auto";var t=this.$el.getBoundingClientRect().top;t<this.stickyTop?this.sticky():this.handleReset()},handleResize:function(){this.isSticky&&(this.width=this.$el.getBoundingClientRect().width+"px")}}}),o=r,s=i("2877"),l=Object(s["a"])(o,n,a,!1,null,null,null);t["default"]=l.exports},b809:function(e,t,i){var n=i("6d8b"),a=i("29a8"),r=i("2b17"),o=r.retrieveRawValue;function s(e,t){var i=t.getModel("aria");if(i.get("show"))if(i.get("description"))e.setAttribute("aria-label",i.get("description"));else{var r=0;t.eachSeries((function(e,t){++r}),this);var s,l=i.get("data.maxCount")||10,c=i.get("series.maxCount")||10,u=Math.min(r,c);if(!(r<1)){var d=g();s=d?p(m("general.withTitle"),{title:d}):m("general.withoutTitle");var f=[],h=r>1?"series.multiple.prefix":"series.single.prefix";s+=p(m(h),{seriesCount:r}),t.eachSeries((function(e,t){if(t<u){var i,n=e.get("name"),a="series."+(r>1?"multiple":"single")+".";i=m(n?a+"withName":a+"withoutName"),i=p(i,{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:v(e.subType)});var s=e.getData();window.data=s,s.count()>l?i+=p(m("data.partialData"),{displayCnt:l}):i+=m("data.allData");for(var c=[],d=0;d<s.count();d++)if(d<l){var h=s.getName(d),g=o(s,d);c.push(p(m(h?"data.withName":"data.withoutName"),{name:h,value:g}))}i+=c.join(m("data.separator.middle"))+m("data.separator.end"),f.push(i)}})),s+=f.join(m("series.multiple.separator.middle"))+m("series.multiple.separator.end"),e.setAttribute("aria-label",s)}}function p(e,t){if("string"!==typeof e)return e;var i=e;return n.each(t,(function(e,t){i=i.replace(new RegExp("\\{\\s*"+t+"\\s*\\}","g"),e)})),i}function m(e){var t=i.get(e);if(null==t){for(var n=e.split("."),r=a.aria,o=0;o<n.length;++o)r=r[n[o]];return r}return t}function g(){var e=t.getModel("title").option;return e&&e.length&&(e=e[0]),e&&e.text}function v(e){return a.series.typeNames[e]||"自定义图"}}e.exports=s},b810:function(e,t,i){},b82f:function(e,t,i){"use strict";i("f860")},b853:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"equipment-wrapper"},[i("div",{staticClass:"header-wrapper"},[0===e.state&&0===e.userTypeEnumInt?i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleAdd}},[e._v("\n "+e._s(e.$t("common:button:add"))+"\n ")]):e._e()],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.list,border:""}},[i("el-table-column",{attrs:{prop:"EquipmentType",label:e.$t("trials:equiptResearch:form:equipment"),width:"180"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Parameters",label:e.$t("trials:equiptResearch:form:param"),width:"180"}}),e._v(" "),i("el-table-column",{attrs:{prop:"ManufacturerName",label:e.$t("trials:equiptResearch:form:manufacturer")}}),e._v(" "),i("el-table-column",{attrs:{prop:"ScannerType",label:e.$t("trials:equiptResearch:form:model")}}),e._v(" "),i("el-table-column",{attrs:{prop:"Note",label:e.$t("trials:equiptResearch:form:model")}}),e._v(" "),0===e.state&&0===e.userTypeEnumInt?i("el-table-column",{attrs:{fixed:"right",label:e.$t("common:action:action"),width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("\n "+e._s(e.$t("common:button:edit"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("\n "+e._s(e.$t("common:button:delete"))+"\n ")])]}}],null,!1,3324590288)}):e._e()],1),e._v(" "),e.editVisible?i("el-dialog",{attrs:{visible:e.editVisible,"close-on-click-modal":!1,title:e.title,width:"600px","custom-class":"base-dialog-wrapper","append-to-body":0!==e.userTypeEnumInt},on:{"update:visible":function(t){e.editVisible=t}}},[i("EquipmentForm",{attrs:{data:e.rowData,"trial-site-survey-equipment-type":e.trialSiteSurveyEquipmentType},on:{getList:e.getList,close:e.closeDialog}})],1):e._e()],1)},a=[],r=(i("20d6"),i("db72")),o=i("896b"),s=i("0a53"),l=i("a599"),c={name:"ResearchEquipmentList",components:{EquipmentForm:s["default"]},props:{trialSiteSurveyEquipmentType:{type:String,default:""}},data:function(){return{list:[],editVisible:!1,title:"",loading:!1,rowData:{},userTypeEnumInt:0,state:null,trialSiteSurveyId:"",trialId:""}},mounted:function(){zzSessionStorage.getItem("userTypeEnumInt")&&(this.userTypeEnumInt=1*zzSessionStorage.getItem("userTypeEnumInt")),this.trialSiteSurveyId=Object(l["b"])("trialSiteSurveyId"),this.trialId=Object(l["b"])("trialId")},methods:{getList:function(){var e=this;this.loading=!0,Object(o["g"])(this.trialSiteSurveyId).then((function(t){e.loading=!1,e.list=t.Result})).catch((function(){e.loading=!1}))},handleAdd:function(){this.rowData={},this.title=this.$t("trials:equiptResearch:dialogTitle:add"),this.editVisible=!0},handleEdit:function(e){this.rowData=Object(r["a"])({},e),this.title=this.$t("trials:equiptResearch:dialogTitle:edit"),this.editVisible=!0},handleDelete:function(e){var t=this;this.$confirm(this.$t("trials:equiptResearch:message:confirmDel"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.loading=!0,Object(o["d"])(e.Id,t.trialId).then((function(i){t.loading=!1,i.IsSuccess&&(t.list.splice(t.list.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success(t.$t("trials:equiptResearch:message:delSuccessfully")))})).catch((function(){t.loading=!1}))})).catch((function(){}))},initList:function(e,t){this.list=e,this.state=t.State,this.$forceUpdate()},closeDialog:function(){this.editVisible=!1}}},u=c,d=(i("ab42"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,"77abb819",null);t["default"]=f.exports},b889:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"MedicalManagerDataForm",attrs:{model:e.form,size:"small",rules:e.rules,"label-width":"140px"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:e.$t("trials:pmMedicalReview:allocation:MIM"),prop:"MedicalManagerUserId"}},[i("el-select",{attrs:{clearable:""},model:{value:e.form.MedicalManagerUserId,callback:function(t){e.$set(e.form,"MedicalManagerUserId",t)},expression:"form.MedicalManagerUserId"}},e._l(e.doctorUserList,(function(e){return i("el-option",{key:e.UserId,attrs:{label:e.UserName+"("+e.FullName+")",value:e.UserId}})})),1)],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.close}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.save}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])},a=[],r=i("958c"),o={name:"AddOrUpdateTaskAllocationRuleData",props:{data:{type:Object,default:function(){return{}}},doctorUserList:{type:Array,default:function(){return[]}},selectList:{type:Array,default:function(){return[]}}},data:function(){return{form:{IdList:[],MedicalManagerUserId:null,TaskOptType:1},rules:{MedicalManagerUserId:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}]},loading:!1,btnLoading:!1}},mounted:function(){this.form.TrialId=this.$route.query.trialId,this.data.Id&&(this.form.IdList=[this.data.Id],this.form.TaskOptType=2,this.form.MedicalManagerUserId=this.data.MedicalManagerUserId)},methods:{save:function(){var e=this;this.$refs.MedicalManagerDataForm.validate((function(t){console.log(t),t&&(e.btnLoading=!0,e.loading=!0,Object(r["f"])(e.form).then((function(){e.$message.success(e.$t("common:message:savedSuccessfully")),e.$emit("getList"),e.loading=!1,e.btnLoading=!1})).catch((function(){e.loading=!1,e.btnLoading=!1})))}))},close:function(){this.$emit("close")}}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,"3f92e933",null);t["default"]=c.exports},b88c:function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-build",use:"icon-build-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-build"><defs><style type="text/css"></style></defs><path d="M960 591.424V368.96c0-0.288 0.16-0.512 0.16-0.768S960 367.68 960 367.424V192a32 32 0 0 0-32-32H96a32 32 0 0 0-32 32v175.424c0 0.288-0.16 0.512-0.16 0.768s0.16 0.48 0.16 0.768v222.464c0 0.288-0.16 0.512-0.16 0.768s0.16 0.48 0.16 0.768V864a32 32 0 0 0 32 32h832a32 32 0 0 0 32-32v-271.04c0-0.288 0.16-0.512 0.16-0.768S960 591.68 960 591.424z m-560-31.232v-160H608v160h-208z m208 64V832h-208v-207.808H608z m-480-224h208v160H128v-160z m544 0h224v160h-224v-160zM896 224v112.192H128V224h768zM128 624.192h208V832H128v-207.808zM672 832v-207.808h224V832h-224z" p-id="2055" /></symbol>'});o.a.add(s);t["default"]=s},b8aa:function(e,t,i){},b8ae:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("base-model",{attrs:{config:e.model_cfg}},[i("template",{slot:"dialog-body"},[i("el-form",{ref:"anonymizationFrom",attrs:{model:e.form,rules:e.rules,"label-width":"160px",size:"small"}},[i("el-form-item",{attrs:{label:"Group",prop:"Group"}},[i("el-input",{model:{value:e.form.Group,callback:function(t){e.$set(e.form,"Group",t)},expression:"form.Group"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Element",prop:"Group"}},[i("el-input",{model:{value:e.form.Element,callback:function(t){e.$set(e.form,"Element",t)},expression:"form.Element"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("admin:TagDescription"),prop:"Group"}},[i("el-input",{model:{value:e.form.TagDescription,callback:function(t){e.$set(e.form,"TagDescription",t)},expression:"form.TagDescription"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("admin:TagDescriptionCN"),prop:"Group"}},[i("el-input",{model:{value:e.form.TagDescriptionCN,callback:function(t){e.$set(e.form,"TagDescriptionCN",t)},expression:"form.TagDescriptionCN"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("admin:ValueRepresentation"),prop:"Group"}},[i("el-input",{model:{value:e.form.ValueRepresentation,callback:function(t){e.$set(e.form,"ValueRepresentation",t)},expression:"form.ValueRepresentation"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("admin:IsFixed")}},[i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},model:{value:e.form.IsFixed,callback:function(t){e.$set(e.form,"IsFixed",t)},expression:"form.IsFixed"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("admin:ReplaceValue")}},[i("el-input",{model:{value:e.form.ReplaceValue,callback:function(t){e.$set(e.form,"ReplaceValue",t)},expression:"form.ReplaceValue"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("admin:IsEnable")}},[i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},model:{value:e.form.IsEnable,callback:function(t){e.$set(e.form,"IsEnable",t)},expression:"form.IsEnable"}})],1)],1)],1),e._v(" "),i("template",{slot:"dialog-footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.handleCancle}},[e._v("Cancel")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleSave}},[e._v("Save")])],1)],2)},a=[],r=i("db72"),o=(i("ac6a"),i("456d"),i("e56e")),s=i("7eeb"),l=function(){return{Group:"",Element:"",TagDescription:"",TagDescriptionCN:"",ValueRepresentation:"",ReplaceValue:"",IsEnable:!1,IsAdd:!1,IsFixed:!1}},c={name:"AnonymizationFrom",components:{BaseModel:s["default"]},data:function(){return{isEnable:!1,btnLoading:!1,form:{Group:"",Element:"",TagDescription:"",TagDescriptionCN:"",ValueRepresentation:"",ReplaceValue:"",IsEnable:!1,IsAdd:!1},rules:{Group:[{required:!0,message:"Please specify",trigger:"blur"}]},model_cfg:{visible:!1,showClose:!0,width:"600px",title:""}}},mounted:function(){},methods:{openDialog:function(e,t){this.model_cfg.visible=!0,this.model_cfg.title=e,Object.keys(t).length?this.form=Object(r["a"])({},t):this.form=l()},handleSave:function(){var e=this;this.$refs.anonymizationFrom.validate((function(t){t&&(e.btnLoading=!0,Object(o["t"])(e.form).then((function(t){e.btnLoading=!1,e.$message.success("Saved successfully!"),e.model_cfg.visible=!1,e.$emit("getList")})).catch((function(){e.btnLoading=!1})))}))},handleCancle:function(){this.model_cfg.visible=!1}}},u=c,d=i("2877"),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},b8d4:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",{staticClass:"auditRecord"},[i("template",{slot:"search-container"},[i("el-form",{attrs:{inline:!0}},[i("div",{staticStyle:{"margin-bottom":"15px"}},[i("el-form-item",{attrs:{label:e.$t("trials:auditRecord:table:researchNo")}},[i("el-input",{attrs:{disabled:""},model:{value:e.ResearchProgramNo,callback:function(t){e.ResearchProgramNo=t},expression:"ResearchProgramNo"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:auditRecord:table:siteNo")}},[i("el-select",{attrs:{clearable:"",filterable:""},model:{value:e.searchData.SiteId,callback:function(t){e.$set(e.searchData,"SiteId",t)},expression:"searchData.SiteId"}},e._l(e.siteOptions,(function(e,t){return i("el-option",{key:t,attrs:{label:e.TrialSiteCode,value:e.SiteId}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:auditRecord:table:subject")}},[i("el-input",{model:{value:e.searchData.SubjectInfo,callback:function(t){e.$set(e.searchData,"SubjectInfo",t)},expression:"searchData.SubjectInfo"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:auditRecord:table:visit")}},[i("el-select",{attrs:{clearable:"",filterable:""},model:{value:e.searchData.VisitPlanInfo,callback:function(t){e.$set(e.searchData,"VisitPlanInfo",t)},expression:"searchData.VisitPlanInfo"}},[e._l(e.visitPlanOptions,(function(e,t){return i("el-option",{key:t,attrs:{label:e.VisitName,value:e.VisitNum}})})),e._v(" "),i("el-option",{key:"Other",attrs:{label:"OutPlan",value:"1.11"}})],2)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:auditRecord:table:criterion")}},[i("el-select",{attrs:{clearable:"",filterable:""},model:{value:e.searchData.TrialReadingCriterionId,callback:function(t){e.$set(e.searchData,"TrialReadingCriterionId",t)},expression:"searchData.TrialReadingCriterionId"}},e._l(e.trialCriterionList,(function(e,t){return i("el-option",{key:t,attrs:{label:e.TrialReadingCriterionName,value:e.TrialReadingCriterionId}})})),1)],1)],1),e._v(" "),i("div",[i("el-form-item",{attrs:{label:e.$t("trials:auditRecord:table:funcModule")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},on:{change:e.getModuleTypeDescriptionList},model:{value:e.searchData.ModuleType,callback:function(t){e.$set(e.searchData,"ModuleType",t)},expression:"searchData.ModuleType"}},e._l(e.dict.type.ModuleType,(function(e){return i("el-option",{key:"ModuleType"+e.value,attrs:{value:e.value,label:e.raw.ValueCN}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:auditRecord:table:operationName")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.Description,callback:function(t){e.$set(e.searchData,"Description",t)},expression:"searchData.Description"}},e._l(e.DescriptionOptions,(function(e){return i("el-option",{key:e,attrs:{value:e,label:e}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:auditRecord:table:operator")}},[i("el-input",{staticStyle:{width:"120px"},model:{value:e.searchData.OpByUserName,callback:function(t){e.$set(e.searchData,"OpByUserName",t)},expression:"searchData.OpByUserName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:auditRecord:table:operateTime")}},[i("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd HH:mm:ss",type:"datetimerange"},on:{change:e.changeTimeList},model:{value:e.timeList,callback:function(t){e.timeList=t},expression:"timeList"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:auditRecord:table:isSign")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.IsSign,callback:function(t){e.$set(e.searchData,"IsSign",t)},expression:"searchData.IsSign"}},e._l(e.$d.YesOrNo,(function(e){return i("el-option",{directives:[{name:"show",rawName:"v-show",value:"无"!==e.raw.ValueCN,expression:"item.raw.ValueCN !== '无'"}],key:"IsSign"+e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v(" "+e._s(e.$t("common:button:search")))]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v(" "+e._s(e.$t("common:button:reset")))])],1)],1)])],1),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"},{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortChange}},[i("el-table-column",{attrs:{type:"index",width:"40",fixed:"left",align:"left"}}),e._v(" "),i("el-table-column",{attrs:{prop:"ResearchProgramNo","min-width":"140",label:e.$t("trials:auditRecord:table:researchNo"),fixed:"left","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"SiteCode","min-width":"100",label:e.$t("trials:auditRecord:table:siteNo"),fixed:"left","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode","min-width":"100",label:e.$t("trials:auditRecord:table:subject"),fixed:"left","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitName","min-width":"100",label:e.$t("trials:auditRecord:table:visit"),fixed:"left","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskName","min-width":"100",label:e.$t("trials:auditRecord:table:taskName"),fixed:"left","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"BlindName","min-width":"150",label:e.$t("trials:auditRecord:table:taskBlindName"),fixed:"left","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialReadingCriterionName","min-width":"100",label:e.$t("trials:auditRecord:table:criterion"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ModuleTypeName","min-width":"100",label:e.$t("trials:auditRecord:table:funcModule"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Description","min-width":"140",label:e.$t("trials:auditRecord:table:operationName"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Reason","min-width":"100",label:e.$t("trials:auditRecord:table:modifyReason"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsSign","min-width":"120",align:"center",label:e.$t("trials:auditRecord:table:isSign"),"show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",[t.row.IsSign?i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"top"}},[i("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n "+e._s(t.row.SignText)+"\n ")]),e._v(" "),i("el-tag",{attrs:{type:"success"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsSign)))])],1):i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsSign)))])],1)]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateUserRealName","min-width":"100",label:e.$t("trials:auditRecord:table:operator"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateUserName","min-width":"100",label:e.$t("trials:auditRecord:table:userName"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"RoleName","min-width":"100",label:e.$t("trials:auditRecord:table:role"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime","min-width":"140",label:e.$t("trials:auditRecord:table:operateTime"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"IP","min-width":"100",label:"IP","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"","min-width":"150",fixed:"right",label:e.$t("common:action:action"),"show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.lookDetails(t.row)}}},[e._v("\n "+e._s(e.$t("trials:auditRecord:action:detail"))+"\n ")])]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}}),e._v(" "),i("base-model",{attrs:{config:e.model_cfg}},[i("template",{slot:"dialog-body"},[i("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"flex-start"}},[i("el-button",{staticStyle:{position:"relative",top:"-15px"},attrs:{size:"small",type:"primary"},on:{click:function(t){return e.lookAssociated(1)}}},[e._v(e._s(e.$t("trials:auditRecord:title:historicalOperations")))]),e._v(" "),i("el-button",{staticStyle:{position:"relative",top:"-15px"},attrs:{size:"small",type:"primary"},on:{click:function(t){return e.lookAssociated(0)}}},[e._v(e._s(e.$t("trials:auditRecord:title:relationOperations")))])],1),e._v(" "),e.auditData.length>0?i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.auditData,border:"",size:"small"}},[i("el-table-column",{attrs:{prop:"Enum",label:e.$t("trials:auditRecord:title:fieldName"),"show-overflow-tooltip":""}}),e._v(" "),"Add"!==e.OptType&&"Upload"!==e.OptType&&"Init"!==e.OptType?i("el-table-column",{attrs:{prop:"oldValue",label:"Add"===e.OptType?e.$t("trials:auditRecord:title:fieldValue"):"Delete"===e.OptType?e.$t("trials:auditRecord:title:beforeDeletion"):e.$t("trials:auditRecord:title:beforeModification"),"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",["Link"===t.row.DataType||"Router"===t.row.DataType?i("a",{attrs:{target:"_blank",href:t.row.oldValue}},[e._v("\n "+e._s(e.$t("trials:auditRecord:title:viewDetail"))+"\n ")]):"Image"!==t.row.DataType&&"ImageList"!==t.row.DataType||!t.row.oldValue?i("span",[e._v("\n "+e._s(t.row.oldValue)+"\n ")]):i("viewer",{ref:t.row.oldValue,attrs:{images:e.imagesList}},[i("span",{staticStyle:{color:"#409eff",cursor:"pointer"},on:{click:function(i){return e.openImage(t.row.oldValue)}}},[e._v(e._s(e.$t("trials:auditRecord:title:viewImage"))+e._s(t.row.oldValue instanceof Array?"("+t.row.oldValue.length+")":""))]),e._v(" "),e._l(t.row.oldValue,(function(n){return"ImageList"===t.row.DataType?i("img",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],attrs:{src:n,crossorigin:"anonymous",alt:""}}):e._e()})),e._v(" "),"Image"===t.row.DataType?i("img",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],attrs:{src:t.row.oldValue,crossorigin:"anonymous",alt:""}}):e._e()],2)],1)]}}],null,!1,2271291657)}):e._e(),e._v(" "),i("el-table-column",{attrs:{prop:"newValue",label:"Add"===e.OptType||"Init"===e.OptType?e.$t("trials:auditRecord:title:fieldValue"):"Delete"===e.OptType?e.$t("trials:auditRecord:title:afterDeletion"):e.$t("trials:auditRecord:title:afterModification"),"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{style:{color:t.row.newValue!==t.row.oldValue?"#f66":null}},["Link"===t.row.DataType||"Router"===t.row.DataType?i("a",{attrs:{target:"_blank",href:t.row.newValue}},[e._v("\n "+e._s(e.$t("trials:auditRecord:title:viewDetail"))+"\n ")]):"Image"!==t.row.DataType&&"ImageList"!==t.row.DataType||!t.row.newValue?i("span",[e._v(e._s(t.row.newValue))]):i("viewer",{ref:t.row.newValue,attrs:{images:e.imagesList}},[i("span",{staticStyle:{color:"#409eff",cursor:"pointer"},on:{click:function(i){return e.openImage(t.row.newValue)}}},[e._v(e._s(e.$t("trials:auditRecord:title:viewImage"))+e._s(t.row.newValue instanceof Array?"("+t.row.newValue.length+")":""))]),e._v(" "),e._l(t.row.newValue,(function(n){return"ImageList"===t.row.DataType?i("img",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],attrs:{src:n,crossorigin:"anonymous",alt:""}}):e._e()})),e._v(" "),"Image"===t.row.DataType?i("img",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],attrs:{src:t.row.newValue,crossorigin:"anonymous",alt:""}}):e._e()],2)],1)]}}],null,!1,3190487380)})],1):e._e(),e._v(" "),e.tableListData.length>0?i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableListData,border:"",size:"small"}},e._l(e.tableList,(function(t){return i("el-table-column",{attrs:{prop:t.ColumnValue,label:t.IsMerge?t.MergeColumnName:t.headName,align:"center","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(n){return t.IsMerge?void 0:[t.IsPicture?i("viewer",{ref:n.row[t.ColumnValue],refInFor:!0,attrs:{images:e.imagesList}},[i("span",{staticStyle:{color:"#409eff",cursor:"pointer"},on:{click:function(i){return e.openImage(n.row[t.ColumnValue])}}},[e._v(e._s(e.$t("trials:auditRecord:title:viewImage")))]),e._v(" "),i("img",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],attrs:{src:n.row[t.ColumnValue],crossorigin:"anonymous",alt:""}})]):i("span",[e._v(e._s(n.row[t.ColumnValue]))])]}}],null,!0)},[e._v(" "),e._l(t.ChildrenList,(function(n,a){return t.IsMerge?i("el-table-column",{attrs:{prop:n.ListName?n.ListName+n.ColumnValue+a:n.ColumnValue,label:n.headName,align:"center","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(r){return[t.IsPicture?i("viewer",{ref:r.row[n.ListName?n.ListName+n.ColumnValue+a:n.ColumnValue],refInFor:!0,attrs:{images:e.imagesList}},[i("span",{staticStyle:{color:"#409eff",cursor:"pointer"},on:{click:function(t){return e.openImage(r.row[n.ListName?n.ListName+n.ColumnValue+a:n.ColumnValue])}}},[e._v("\n "+e._s(e.$t("trials:auditRecord:title:viewImage"))+"\n ")]),e._v(" "),i("img",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],attrs:{src:r.row[n.ListName?n.ListName+n.ColumnValue+a:n.ColumnValue],crossorigin:"anonymous",alt:""}})]):i("span",[e._v(e._s(r.row[n.ListName?n.ListName+n.ColumnValue+a:n.ColumnValue]))])]}}],null,!0)}):e._e()}))],2)})),1):e._e(),e._v(" "),e.otherData.length>0?i("div",{staticStyle:{"margin-top":"20px","margin-bottom":"10px"}},[e._v("\n "+e._s(e.$t("trials:auditRecord:title:signInfo"))+"\n ")]):e._e(),e._v(" "),e.otherData.length>0?i("div",{staticStyle:{color:"#f66","font-size":"12px"}},[e._v("\n "+e._s(e.otherData[0].Value)+"\n ")]):e._e()],1),e._v(" "),i("template",{slot:"dialog-footer"},[i("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){e.model_cfg.visible=!1}}},[e._v("\n "+e._s(e.$t("common:button:close"))+"\n ")])],1)],2),e._v(" "),e.model_cfg2.visible?i("el-dialog",{attrs:{visible:e.model_cfg2.visible,title:e.model_cfg2.title,fullscreen:!0,"append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){return e.$set(e.model_cfg2,"visible",t)}}},[i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:300},expression:"{bottomOffset:300}"},{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list2,stripe:"",height:"100"}},[i("el-table-column",{attrs:{type:"index",width:"40",align:"left"}}),e._v(" "),i("el-table-column",{attrs:{prop:"ResearchProgramNo","min-width":"90",label:e.$t("trials:auditRecord:table:researchNo"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"SiteCode","min-width":"100",label:e.$t("trials:auditRecord:table:siteNo"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode","min-width":"100",label:e.$t("trials:auditRecord:table:subject"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitName","min-width":"100",label:e.$t("trials:auditRecord:table:visit"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskName","min-width":"100",label:e.$t("trials:auditRecord:table:taskName"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"BlindName","min-width":"150",label:e.$t("trials:auditRecord:table:taskBlindName"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialReadingCriterionName","min-width":"100",label:e.$t("trials:auditRecord:table:criterion"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ModuleTypeName","min-width":"100",label:e.$t("trials:auditRecord:table:funcModule"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Description","min-width":"140",label:e.$t("trials:auditRecord:table:operationName"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Reason","min-width":"100",label:e.$t("trials:auditRecord:table:modifyReason"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsSign","min-width":"90",align:"center",label:e.$t("trials:auditRecord:table:isSign"),"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",[t.row.IsSign?i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"top"}},[i("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n "+e._s(t.row.SignText)+"\n ")]),e._v(" "),i("el-tag",{attrs:{type:"success"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsSign)))])],1):i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsSign)))])],1)]}}],null,!1,1194668513)}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateUserRealName","min-width":"80",label:e.$t("trials:auditRecord:table:operator"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateUserName","min-width":"80",label:e.$t("trials:auditRecord:table:userName"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"RoleName","min-width":"70",label:e.$t("trials:auditRecord:table:role"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime","min-width":"140",label:e.$t("trials:auditRecord:table:operateTime"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"IP","min-width":"100",label:"IP","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"","min-width":"150",label:e.$t("common:action:action"),"show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.lookDetails2(t.row)}}},[e._v("\n "+e._s(e.$t("trials:auditRecord:action:detail"))+"\n ")])]}}],null,!1,3448104446)})],1)],1):e._e(),e._v(" "),i("base-model",{attrs:{config:e.model_cfg3}},[i("template",{slot:"dialog-body"},[e.auditData2.length>0?i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.auditData2,border:"",size:"small"}},[i("el-table-column",{attrs:{prop:"Enum",label:e.$t("trials:auditRecord:title:fieldName"),"show-overflow-tooltip":""}}),e._v(" "),"Add"!==e.OptType&&"Upload"!==e.OptType&&"Init"!==e.OptType?i("el-table-column",{attrs:{prop:"oldValue",label:"Add"===e.OptType?e.$t("trials:auditRecord:title:fieldValue"):"Delete"===e.OptType?e.$t("trials:auditRecord:title:beforeDeletion"):e.$t("trials:auditRecord:title:beforeModification"),"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",["Link"===t.row.DataType||"Router"===t.row.DataType?i("a",{attrs:{target:"_blank",href:t.row.oldValue}},[e._v(e._s(t.row.oldValue))]):i("span",[e._v("\n "+e._s(t.row.oldValue)+"\n ")])])]}}],null,!1,2838368906)}):e._e(),e._v(" "),i("el-table-column",{attrs:{prop:"newValue",label:"Add"===e.OptType||"Init"===e.OptType?e.$t("trials:auditRecord:title:fieldValue"):"Delete"===e.OptType?e.$t("trials:auditRecord:title:afterDeletion"):e.$t("trials:auditRecord:title:afterModification"),"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{style:{color:t.row.newValue!==t.row.oldValue?"#f66":null}},["Link"===t.row.DataType||"Router"===t.row.DataType?i("a",{attrs:{target:"_blank",href:t.row.newValue}},[e._v(e._s(t.row.newValue))]):i("span",[e._v(e._s(t.row.newValue))])])]}}],null,!1,2610221463)})],1):e._e(),e._v(" "),e.tableListData.length>0?i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableListData,border:"",size:"small"}},e._l(e.tableList,(function(t){return i("el-table-column",{attrs:{prop:t.ColumnValue,label:t.IsMerge?t.MergeColumnName:t.headName,align:"center","show-overflow-tooltip":""}},e._l(t.ChildrenList,(function(n,a){return t.IsMerge?i("el-table-column",{attrs:{prop:n.ListName?n.ListName+n.ColumnValue+a:n.ColumnValue,label:n.headName,align:"center","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[n.IsPicture?i("span",{on:{click:function(i){return e.openImage(t.row[n.ListName?n.ListName+n.ColumnValue+a:n.ColumnValue])}}},[e._v("\n "+e._s(e.$t("trials:auditRecord:title:viewImage"))+"\n ")]):i("span",[e._v(e._s(t.row[n.ListName?n.ListName+n.ColumnValue+a:n.ColumnValue]))])]}}],null,!0)}):[t.IsPicture?i("span",{on:{click:function(i){return e.openImage(e.scope.row[t.ColumnValue])}}},[e._v("\n "+e._s(e.$t("trials:auditRecord:title:viewImage"))+"\n ")]):i("span",[e._v(e._s(e.scope.row[t.ColumnValue]))])]})),1)})),1):e._e(),e._v(" "),e.otherData.length>0?i("div",{staticStyle:{"margin-top":"20px","margin-bottom":"10px"}},[e._v("\n "+e._s(e.$t("trials:auditRecord:title:signInfo"))+"\n ")]):e._e(),e._v(" "),e.otherData.length>0?i("div",{staticStyle:{color:"#f66","font-size":"12px"}},[e._v("\n "+e._s(e.otherData[0].Value)+"\n ")]):e._e()],1),e._v(" "),i("template",{slot:"dialog-footer"},[i("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){e.model_cfg3.visible=!1}}},[e._v("\n "+e._s(e.$t("common:button:close"))+"\n ")])],1)],2)],1)],2)},a=[],r=i("db72"),o=(i("96cf"),i("3b8d")),s=(i("6b54"),i("7514"),i("ac6a"),i("3e42")),l=i("b775");function c(e){return Object(l["a"])({url:"/Inspection/getInspectionList",method:"post",data:e})}function u(e,t){return Object(l["a"])({url:"/FrontAuditConfig/getInspectionJsonDataList?TrialId=".concat(e,"&Id=").concat(t),method:"get"})}var d=i("2938"),f=i("333d"),h=i("6071"),p=i("7eeb"),m=i("5f87"),g={components:{BaseContainer:h["default"],Pagination:f["default"],BaseModel:p["default"]},dicts:["OptType","ModuleType","ChildrenType"],data:function(){var e=this,t=function(){return{SortField:"",Asc:!1,PageIndex:1,PageSize:20,ModuleType:null,BlindName:null,TrialId:e.$route.query.trialId,SiteId:null,SubjectId:null,SubjectInfo:null,SubjectVisitId:null,VisitPlanInfo:null,OptType:null,ChildrenType:null,Reason:null,IsSign:null,StartTime:null,EndTime:null,Description:null,OpByUserName:null,BatchId:null,TrialReadingCriterionId:null}};return{isViewer:!0,otherData:[],model_cfg:{visible:!1,showClose:!0,width:"600px",title:"",appendToBody:!0},model_cfg2:{visible:!1,showClose:!0,width:"1000px",title:this.$t("trials:auditRecord:title:viewRelationOperations"),appendToBody:!0},model_cfg3:{visible:!1,showClose:!0,width:"600px",title:"",appendToBody:!0},model_cfg4:{visible:!1,showClose:!0,width:"600px",title:this.$t("trials:auditRecord:title:viewImage"),appendToBody:!0},total:0,loading:!1,searchData:t(),ResearchProgramNo:null,list:[],list2:[],isOpen:!1,typeConfigList:[],DescriptionOptions:[],auditData:[],auditData2:[],siteOptions:[],visitPlanOptions:[],OptType:null,trialId:this.$route.query.trialId,configList2:[],otherData2:[],timeList:[],tableList:[],tableListData:[],trialCriterionList:[],openImageUrl:null,$viewer:null,imagesList:[]}},mounted:function(){this.ResearchProgramNo=this.$route.query.researchProgramNo,this.getSite(),this.getVisitPlanOptions(),this.getTrialCriterionList(),this.getList()},methods:{openImage:function(e){console.log(e),this.imagesList=e instanceof Array?e:[e],this.$refs[e][0]?this.$refs[e][0].$viewer.show():this.$refs[e].$viewer.show()},getTrialCriterionList:function(){var e=this;Object(s["Cd"])(this.trialId,!1).then((function(t){e.trialCriterionList=t.Result})).catch((function(){}))},handleSortChange:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()},changeTimeList:function(){this.timeList?(this.searchData.StartTime=this.timeList[0],this.searchData.EndTime=this.timeList[1]):(this.searchData.StartTime=null,this.searchData.EndTime=null)},getModuleTypeDescriptionList:function(e){var t=this;this.searchData.Description=null,Object(d["i"])(e).then((function(e){t.DescriptionOptions=e.Result}))},getSite:function(){var e=this;Object(s["Zd"])(this.trialId).then((function(t){e.siteOptions=t.Result}))},getVisitPlanOptions:function(){var e=this;Object(s["ee"])(this.trialId).then((function(t){e.visitPlanOptions=t.Result}))},toTree:function(e,t){function i(t){for(var n=[],a=0;a<e.length;a++){var r=e[a];r.hasChildren=!1,r.ParentId===t&&(r.Children=i(r.Id),n.push(r))}return n}return i(t)},formatting:function(e,t,i,n,a,r){var o=this;this.tableList=[],this.tableListData=[],this[r]=[],e.forEach((function(e){var s;if(e.IsEnable&&(!e.IsShowByTrialConfig||n[e.TrialConfigRelyFieldName]))if(e.IsTableFiled)t[e.TableFiledName]&&t[e.TableFiledName].length>0&&t[e.TableFiledName].forEach((function(t,n){var l=i[e.TableFiledName][n];s="Add"===a.OptType||"Init"===a.OptType?{newValue:t[e.Code]&&t[e.Code]?t[e.Code]:"--",oldValue:""}:"Delete"===a.OptType?{oldValue:t[e.Code]&&t[e.Code]?t[e.Code]:"--",newValue:"--"}:{newValue:t[e.Code]&&t[e.Code]?t[e.Code]:"--",oldValue:l?l[e.Code]:"--"},s.key=t&&(t[e.Code]&&null!==t[e.Code]&&""!==t[e.Code]||0!==t[e.Code])?t[e.Code]:"--",s.Enum=e.ValueCN,s.DataType=e.DataType,s.IsTableFiled=e.IsTableFiled,o[r].push(s)}));else if("ImageList"!==e.DataType)if("Array"!==e.DataType&&"array"!==e.DataType){if("Router"===e.DataType)return s={oldValue:e.UrlConfig.IsHaveParameters?e.UrlConfig.RoutePath+"?"+e.UrlConfig.ParameterList.map((function(e){var i=t[e.UrlParameterValueName]?t[e.UrlParameterValueName]:n[e.UrlParameterValueName];return"token"===e.UrlParameterValueName&&(i=Object(m["a"])()),e.UrlParameterName+"="+i+"&"})).toString().replaceAll(",",""):e.UrlConfig.RoutePath,newValue:e.UrlConfig.IsHaveParameters?e.UrlConfig.RoutePath+"?"+e.UrlConfig.ParameterList.map((function(e){var i=t[e.UrlParameterValueName]?t[e.UrlParameterValueName]:n[e.UrlParameterValueName];return"token"===e.UrlParameterValueName&&(i=Object(m["a"])()),e.UrlParameterName+"="+i+"&"})).toString().replaceAll(",",""):e.UrlConfig.RoutePath},console.log(s),s.IsTableFiled=e.IsTableFiled,s.DataType=e.DataType,s.key=e.Code,s.Enum=e.ValueCN,void o[r].push(s);if("Table"===e.DataType){var l=[],c=[];e.TableConfigList.forEach((function(i,n){i.IsFixedColumn?l.push({IsPicture:i.IsPicture,headName:i.FixedColumnName,IsMerge:i.IsMerge,ColumnName:i.ColumnName,ColumnValue:i.ColumnValue,ListName:i.ListName,MergeColumnName:i.IsMerge?i.MergeColumnName:null,ChildrenList:[]}):i.ListName?t[e.Code][0][i.ListName].forEach((function(e,t){l.push({IsPicture:i.IsPicture,headName:e[i.ColumnName],IsMerge:i.IsMerge,ColumnName:i.ColumnName,ColumnValue:i.ColumnValue,ListName:i.ListName,MergeColumnName:i.IsMerge?i.MergeColumnName:null,ChildrenList:[]})})):l.push({IsPicture:i.IsPicture,headName:i.ColumnName,IsMerge:i.IsMerge,ColumnName:i.ColumnName,ColumnValue:i.ColumnValue,ListName:i.ListName,MergeColumnName:i.IsMerge?i.MergeColumnName:null,ChildrenList:[]})})),t[e.Code].forEach((function(t,i){var n={};e.TableConfigList.forEach((function(e){e.ListName?t[e.ListName].forEach((function(t,i){n[e.ListName+e.ColumnValue+i]=t[e.ColumnValue]})):n[e.ColumnValue]=t[e.ColumnValue]})),c.push(Object.assign({},n))}));var u=[],d=JSON.parse(JSON.stringify(l));return d.forEach((function(e){if(e.IsMerge){var t=d.filter((function(t){return t.MergeColumnName===e.MergeColumnName}));if(console.log(t),t){e.ChildrenList=Object.assign([],t);var i=u.find((function(t){return t.MergeColumnName===e.MergeColumnName}));i||u.push(e)}}else u.push(e)})),console.log(u,c),o.tableList=u,void(o.tableListData=c)}1===e.IsShowParent?(s="Delete"===a.OptType?{oldValue:n&&(n[e.Code]&&null!==n[e.Code]&&""!==n[e.Code]||0===n[e.Code])?n[e.Code]:"--",newValue:"--"}:"Add"===a.OptType||"Init"===a.OptType?{newValue:n&&(n[e.Code]&&null!==n[e.Code]&&""!==n[e.Code]||0===n[e.Code])?n[e.Code]:"--",oldValue:"--"}:{newValue:n&&(n[e.Code]&&null!==n[e.Code]&&""!==n[e.Code]||0===n[e.Code])?n[e.Code]:"--",oldValue:n&&(n[e.Code]&&null!==n[e.Code]&&""!==n[e.Code]||0===n[e.Code])?n[e.Code]:"--"},console.log(s,"1")):s=0===e.IsShowParent?"Delete"===a.OptType?{oldValue:t&&(t[e.Code]&&null!==t[e.Code]&&""!==t[e.Code]||0===t[e.Code])?t[e.Code]:"--",newValue:"--"}:"Add"===a.OptType||"Init"===a.OptType?{newValue:t&&(t[e.Code]&&null!==t[e.Code]&&""!==t[e.Code]||0===t[e.Code])?t[e.Code]:"--",oldValue:"--"}:{newValue:t&&(t[e.Code]&&null!==t[e.Code]&&""!==t[e.Code]||0===t[e.Code])?t[e.Code]:"--",oldValue:i&&(i[e.Code]&&null!==i[e.Code]&&""!==i[e.Code]||0===i[e.Code])?i[e.Code]:"--"}:"Delete"===a.OptType?{oldValue:a&&(a[e.Code]&&null!==a[e.Code]&&""!==a[e.Code]||0===a[e.Code])?a[e.Code]:"--",newValue:"--"}:("Add"===a.OptType||a.OptType,{newValue:a&&(a[e.Code]&&null!==a[e.Code]&&""!==a[e.Code]||0===a[e.Code])?a[e.Code]:"--",oldValue:"--"}),s.DataType=e.DataType,s.key=e.Code,s.Enum=e.ValueCN,o[r].push(s)}else t[e.Code]&&t[e.Code].length>0&&t[e.Code].forEach((function(t){var n=i?i[e.Code].find((function(i){return i[e.ChildDataLabel]==t[e.ChildDataLabel]})):null;s="Add"===a.OptType||"Init"===a.OptType?{key:t[e.ChildDataLabel],Enum:t[e.ChildDataLabel],newValue:t[e.ChildDataValue]&&t[e.ChildDataValue]?t[e.ChildDataValue]:"--",oldValue:""}:"Delete"===a.OptType?{key:t[e.ChildDataLabel],Enum:t[e.ChildDataLabel],oldValue:t[e.ChildDataValue]&&t[e.ChildDataValue]?t[e.ChildDataValue]:"--",newValue:"--"}:{key:t[e.ChildDataLabel],Enum:t[e.ChildDataLabel],newValue:t[e.ChildDataValue]&&t[e.ChildDataValue]?t[e.ChildDataValue]:"--",oldValue:n?n[e.ChildDataValue]:"--"},o[r].push(s)}));else t[e.Code]&&t[e.Code].length>0&&(s="Add"===a.OptType||"Init"===a.OptType?{key:e.Code,Enum:e.ValueCN,newValue:t[e.Code]?t[e.Code]:"--",oldValue:""}:"Delete"===a.OptType?{key:e.Code,Enum:e.ValueCN,oldValue:t[e.Code]?t[e.Code]:"--",newValue:"--"}:{key:e.Code,Enum:e.ValueCN,newValue:t[e.Code]?t[e.Code]:"--",oldValue:i[e.Code]?i[e.Code]:"--"},s.DataType=e.DataType,o[r].push(s))}))},getJSON:function(e){var t=this;return new Promise((function(i){u(t.trialId,e.Id).then((function(e){i(e.Result)}))}))},lookAssociated:function(e){var t=this,i=Object.assign({},{SortField:"",Asc:!0,PageIndex:1,PageSize:20,TrialId:this.$route.query.trialId,BatchId:e?null:this.currentRow.BatchId,ObjectRelationParentId:e?this.currentRow.ObjectRelationParentId:null,RelationDeadlineTime:e?this.currentRow.CreateTime:null,GeneralId:e?this.currentRow.GeneralId:null});this.model_cfg2.title="".concat(this.$t("trials:auditRecord:title:viewRelationOperations"),"--").concat(this.currentRow.Description),this.loading=!0,c(i).then((function(e){t.list2=e.CurrentPageData,t.model_cfg2.visible=!0,t.loading=!1})).catch((function(){t.loading=!1}))},lookDetails2:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){var i,n,a,r=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getJSON(t);case 2:i=e.sent,n=i[0]?JSON.parse(i[0]):null,a=i[1]?JSON.parse(i[1]):null,Object(d["g"])(t.FrontAuditConfigId).then((function(e){console.log(e);var i=e.Result;r.formatting(i,n.Data,a?a.Data:null,n.CommonData,t,"auditData2"),console.log(r.auditData2),r.otherData2=[],t.IsSign&&r.otherData2.push({Enum:r.$t("trials:auditRecord:title:signInfo2"),Value:t.SignText}),r.model_cfg3.title=t.Description,r.model_cfg3.visible=!0}));case 6:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),lookDetails:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){var i,n,a,o=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.currentRow=Object(r["a"])({},t),this.OptType=t.OptType,e.next=4,this.getJSON(t);case 4:i=e.sent,n=i[0]?JSON.parse(i[0]):null,a=i[1]?JSON.parse(i[1]):null,Object(d["g"])(t.FrontAuditConfigId).then((function(e){console.log(e);var i=e.Result;o.formatting(i,n.Data,a?a.Data:null,n.CommonData,t,"auditData"),o.otherData=[],t.IsSign&&(console.log(t.SignText),o.otherData.push({Enum:o.$t("trials:auditRecord:title:signInfo2"),Value:t.SignText})),o.model_cfg.title=t.Description,o.model_cfg.visible=!0}));case 8:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),handleReset:function(){this.searchData=Object.assign(this.searchData,{SortField:"",Asc:!1,PageIndex:1,PageSize:20,ModuleType:null,BlindName:null,TrialId:this.$route.query.trialId,SiteId:null,SubjectId:null,SubjectInfo:null,SubjectVisitId:null,VisitPlanInfo:null,OptType:null,ChildrenType:null,Reason:null,IsSign:null,StartTime:null,EndTime:null,Description:null,OpByUserName:null,BatchId:null}),this.getList()},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},getList:function(){var e=this;this.loading=!0,c(this.searchData).then((function(t){e.list=t.CurrentPageData,e.total=t.TotalCount,e.model_cfg.visible=!1,e.loading=!1,e.searchData.BatchId=null})).catch((function(){e.loading=!1}))}}},v=g,b=i("2877"),y=Object(b["a"])(v,n,a,!1,null,null,null);t["default"]=y.exports},b8df:function(e,t,i){const n=i("6cfe"),a=i("262e"),r=i("5ab7");e.exports={defaultOptions:n,getCreateFFmpegCore:a,fetchFile:r}},b8ec:function(e,t,i){var n=i("3eba");n.registerAction({type:"brush",event:"brush"},(function(e,t){t.eachComponent({mainType:"brush",query:e},(function(t){t.setAreas(e.areas)}))})),n.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},(function(){})),n.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},(function(){}))},b946:function(e,t,i){},ba29:function(e,t,i){},ba41:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"chat-wrapper"},[n("div",{staticClass:"chat-content"},e._l(e.recordContent,(function(t,a){return n("div",{key:a},[t.mineMsg?n("div",{staticClass:"word-my"},[n("div",{staticClass:"info"},[n("p",{staticClass:"time"},[n("span",{staticStyle:{"font-weight":"700"}},[e._v(e._s(t.userName)+" ")]),e._v(" "),n("span",[e._v("("+e._s(t.chatTime)+") ")])]),e._v(" "),n("div",{staticClass:"info-content"},[e._v(e._s(t.contactText))])]),e._v(" "),n("img",{attrs:{src:i("303f")}})]):n("div",{staticClass:"word"},[n("img",{attrs:{src:i("011b")}}),e._v(" "),n("div",{staticClass:"info"},[n("p",{staticClass:"time"},[n("span",{staticStyle:{"font-weight":"700"}},[e._v(e._s(t.userName)+" ")]),e._v(" "),n("span",[e._v("("+e._s(t.chatTime)+") ")])]),e._v(" "),n("div",{staticClass:"info-content"},[e._v(e._s(t.contactText))])])])])})),0),e._v(" "),n("div",{staticClass:"chat-message"},[n("el-input",{staticStyle:{width:"90%"},attrs:{type:"textarea",autosize:{minRows:1,maxRows:4},placeholder:"请输入内容"},model:{value:e.newMessage,callback:function(t){e.newMessage=t},expression:"newMessage"}}),e._v(" "),n("el-button",{attrs:{type:"primary"}},[e._v("发送")])],1)])},a=[],r={data:function(){return{recordContent:[{mineMsg:!1,userName:"CRC",chatTime:"2021.10.28 10:20:38",contactText:"影像已上传完毕",headUrl:""},{mineMsg:!1,userName:"CRC",chatTime:"2021.10.30 16:05:12",contactText:"请核查",headUrl:""},{mineMsg:!0,userName:"QC",chatTime:"2021.10.31 09:00:36",contactText:"确认无误",headUrl:""},{mineMsg:!1,userName:"CRC",chatTime:"2021.10.30 16:05:12",contactText:"请核查",headUrl:""},{mineMsg:!0,userName:"QC",chatTime:"2021.10.31 09:00:36",contactText:"确认无误确认无误确认无误确认无误确认无误确认无误确认无误确认无误确认无误确认无误确认无误确认无误确认无误确认无误确认无误",headUrl:""},{mineMsg:!0,userName:"QC",chatTime:"2021.10.31 09:00:36",contactText:"确认无误",headUrl:""},{mineMsg:!0,userName:"QC",chatTime:"2021.10.31 09:00:36",contactText:"确认无误确认无误确认无误确认无误确认无误确认无误确认无误确认无误确认无误确认无误确认无误确认无误确认无误确认无误确认无误",headUrl:""},{mineMsg:!0,userName:"QC",chatTime:"2021.10.31 09:00:36",contactText:"确认无误",headUrl:""}],newMessage:""}}},o=r,s=(i("19fd"),i("2877")),l=Object(s["a"])(o,n,a,!1,null,null,null);t["default"]=l.exports},ba63:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"clinical-data_content"},[i("el-divider"),e._v(" "),i("h4",{staticStyle:{margin:"0"}},[e._v("\n "+e._s(e.$t("trials:readingPeriod:cd:title:tips"))+"\n ")]),e._v(" "),i("h5",[e._v("\n "+e._s(e.$t("trials:readingPeriod:cd:title:tips1"))+"\n ")]),e._v(" "),i("h5",[e._v("\n "+e._s(e.$t("trials:readingPeriod:cd:title:tips2"))+"\n ")]),e._v(" "),i("div",{staticClass:"top"},[i("el-button",{attrs:{type:"primary",icon:"el-icon-view",size:"small",disabled:0===e.list.length},on:{click:function(t){return e.handlePreview()}}},[e._v("\n "+e._s(e.$t("trials:readingPeriod:cd:title:preview"))+"\n ")]),e._v(" "),e.otherInfo.IsCanAddClinicalData&&e.hasPermi(["trials:trials-panel:subject:readingPeriod:edit"])?i("el-button",{attrs:{type:"primary",icon:"el-icon-plus",size:"small"},on:{click:e.handleAdd}},[e._v("\n "+e._s(e.$t("common:button:add"))+"\n ")]):e._e()],1),e._v(" "),i("div",{staticClass:"main"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.list,stripe:"",height:"500"}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"ClinicalDataSetName",label:e.$t("trials:readingPeriod:cd:table:clinicalDataName")}}),e._v(" "),i("el-table-column",{attrs:{prop:"ClinicalDataLevel",label:e.$t("trials:readingPeriod:cd:table:dataLevel")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("ClinicalLevel",t.row.ClinicalDataLevel))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ClinicalUploadType",label:e.$t("trials:readingPeriod:cd:table:transferType")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("ClinicalUploadType",t.row.ClinicalUploadType))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"FileCount",label:e.$t("trials:readingPeriod:cd:table:fileCount")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(0===t.row.ClinicalUploadType?"NA":t.row.FileCount)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ReadingClinicalDataState",label:e.$t("trials:readingPeriod:cd:title:cdStatus"),width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.ReadingClinicalDataState?i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("ReadingClinicalDataState",t.row.ReadingClinicalDataState)))]):e._e(),e._v(" "),1===t.row.ReadingClinicalDataState?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ReadingClinicalDataState",t.row.ReadingClinicalDataState)))]):e._e(),e._v(" "),2===t.row.ReadingClinicalDataState?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ReadingClinicalDataState",t.row.ReadingClinicalDataState)))]):e._e(),e._v(" "),3===t.row.ReadingClinicalDataState?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("ReadingClinicalDataState",t.row.ReadingClinicalDataState)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"260"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{circle:"",disabled:1===t.row.ClinicalUploadType&&0===t.row.FileCount,title:e.$t("trials:readingPeriod:cd:action:view"),icon:"el-icon-view"},on:{click:function(i){return e.handlePreview(t.row.Id)}}}),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:subject:readingPeriod:edit"],expression:"['trials:trials-panel:subject:readingPeriod:edit']"}],attrs:{circle:"",title:e.$t("trials:readingPeriod:cd:action:edit"),icon:"el-icon-edit-outline",disabled:t.row.IsCRCUpload||t.row.IsSign||0===t.row.UploadRole},on:{click:function(i){return e.handleEdit(t.row)}}}),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:subject:readingPeriod:edit"],expression:"['trials:trials-panel:subject:readingPeriod:edit']"}],attrs:{circle:"",title:"核查",icon:"el-icon-s-claim",disabled:t.row.IsCRCUpload||t.row.IsSign||0===t.row.UploadRole},on:{click:function(i){return e.handleVerification(t.row)}}}),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:subject:readingPeriod:edit"],expression:"['trials:trials-panel:subject:readingPeriod:edit']"}],attrs:{circle:"",title:e.$t("trials:readingPeriod:cd:action:delete"),icon:"el-icon-delete",disabled:t.row.IsCRCUpload||t.row.IsSign||0===t.row.UploadRole},on:{click:function(i){return e.handleDelete(t.row)}}})]}}])})],1),e._v(" "),e.addOrUpdateCD.visible?i("el-dialog",{attrs:{visible:e.addOrUpdateCD.visible,"close-on-click-modal":!1,title:e.addOrUpdateCD.title,width:"500px","append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){return e.$set(e.addOrUpdateCD,"visible",t)}}},[i("AddOrEditCD",{attrs:{"trial-reading-criterion-id":e.trialReadingCriterionId,data:e.currentData},on:{close:function(t){e.addOrUpdateCD.visible=!1},getList:e.getList}})],1):e._e(),e._v(" "),e.verification.visible?i("el-dialog",{attrs:{visible:e.verification.visible,"close-on-click-modal":!1,title:e.verification.title,width:"600px","append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){return e.$set(e.verification,"visible",t)}}},[i("Verification",{attrs:{data:e.currentData},on:{close:function(t){e.verification.visible=!1},getList:e.getList,handlePreview:e.handlePreview,sign:e.handleSign}})],1):e._e(),e._v(" "),e.signVisible?i("el-dialog",{attrs:{visible:e.signVisible,"close-on-click-modal":!1,width:"600px","custom-class":"base-dialog-wrapper","append-to-body":""},on:{"update:visible":function(t){e.signVisible=t}}},[i("div",{attrs:{slot:"title"},slot:"title"},[i("span",{staticStyle:{"font-size":"18px"}},[e._v(e._s(e.$t("common:dialogTitle:sign")))]),e._v(" "),i("span",{staticStyle:{"font-size":"12px","margin-left":"5px"}},[e._v(e._s("("+e.$t("common:label:sign")+e.currentUser+")"))])]),e._v(" "),i("SignForm",{ref:"signForm",attrs:{"sign-code-enum":e.signCode},on:{closeDialog:e.closeSignDialog}})],1):e._e()],1)],1)},a=[],r=i("db72"),o=i("3e42"),s=i("2eec"),l=i("e540"),c=i("179b"),u=i("7a9e"),d=i("5f87"),f={name:"ClinicalData",components:{AddOrEditCD:s["default"],SignForm:c["default"],Verification:l["default"]},props:{trialReadingCriterionId:{type:String,default:function(){return""}},data:{type:Object,default:function(){return{}}}},data:function(){return{loading:!1,searchData:{},list:[],total:0,dialogVisible:!1,addOrUpdateCD:{title:"",visible:!1},verification:{title:"",visible:!1},currentData:{},signCode:"",currentUser:zzSessionStorage.getItem("userName"),signVisible:!1,otherInfo:{}}},mounted:function(){console.log(this.data),this.getList()},methods:{getList:function(){var e=this;this.searchData.ReadingId=this.data.Id,this.searchData.SubjectId=this.data.SubjectId,this.searchData.IsVisit=this.data.IsVisit,this.searchData.TrialId=this.data.TrialId,this.searchData.IsBaseLine=this.data.IsBaseLine,this.searchData.TrialReadingCriterionId=this.trialReadingCriterionId,this.loading=!0,Object(o["Mc"])(this.searchData).then((function(t){e.list=t.Result,e.otherInfo=t.OtherInfo,e.loading=!1})).catch((function(){e.loading=!1}))},handleAdd:function(){this.currentData=Object.assign({},{TrialId:this.data.TrialId,ReadingId:this.data.Id,IsVisit:this.data.IsVisit,SubjectId:this.data.SubjectId,IsBaseLine:this.data.IsBaseLine}),this.addOrUpdateCD.title=this.$t("common:button:new"),this.addOrUpdateCD.visible=!0},handleEdit:function(e){this.currentData=Object(r["a"])({},e),this.currentData.TrialId=this.data.TrialId,this.currentData.SubjectId=this.data.SubjectId,this.currentData.ReadingId=this.data.Id,this.currentData.IsVisit=this.data.IsVisit,this.currentData.IsBaseLine=this.data.IsBaseLine,this.addOrUpdateCD.title=this.$t("common:button:edit"),this.addOrUpdateCD.visible=!0},handleVerification:function(e){this.currentData=Object(r["a"])({},e),this.currentData.TrialId=this.data.TrialId,this.currentData.SubjectId=this.data.SubjectId,this.currentData.ReadingId=this.data.Id,this.currentData.IsVisit=this.data.IsVisit,this.currentData.IsBaseLine=this.data.IsBaseLine,this.verification.title=this.$t("trials:readingPeriod:cd:title:cdCheck"),this.verification.visible=!0},handleDelete:function(e){var t=this;this.$confirm(this.$t("trials:readingPeriod:cd:message:delete"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.loading=!0,Object(o["mb"])(e.Id).then((function(e){t.loading=!1,e.IsSuccess&&(t.getList(),t.$message.success(t.$t("common:message:deletedSuccessfully")))})).catch((function(){t.loading=!1}))})).catch((function(){}))},handleSign:function(){var e=u["default"].processSignature.CDQualityConfirmation;this.signCode=e,this.signVisible=!0},signConfirm:function(e){var t=this;this.loading=!0;var i={data:{readingClinicalDataId:this.currentData.Id,TrialReadingCriterionId:this.trialReadingCriterionId},signInfo:e};Object(o["c"])(i).then((function(e){t.loading=!1,e.IsSuccess&&(t.$message.success(t.$t("common:message:savedSuccessfully")),t.$refs["signForm"].btnLoading=!1,t.signVisible=!1,t.getList(),t.$nextTick((function(){t.verification.visible=!1})))})).catch((function(e){t.loading=!1,t.$refs["signForm"].btnLoading=!1}))},closeSignDialog:function(e,t){e?this.signConfirm(t):this.signVisible=!1},handlePreview:function(e){var t=Object(d["a"])(),i=this.$router.resolve({path:"/clinicalData?subjectId=".concat(this.data.SubjectId,"&trialId=").concat(this.data.TrialId,"&readingId=").concat(this.data.Id,"&readingClinicalDataId=").concat(e||"","&TokenKey=").concat(t)});window.open(i.href,"_blank")}}},h=f,p=(i("ec47"),i("2877")),m=Object(p["a"])(h,n,a,!1,null,"f64745d0",null);t["default"]=m.exports},ba8d:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"search-container"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:baseDataCfg:title:organType")}},[i("el-select",{staticStyle:{width:"130px"},attrs:{clearable:""},model:{value:e.searchData.OrganType,callback:function(t){e.$set(e.searchData,"OrganType",t)},expression:"searchData.OrganType"}},e._l(e.$d.OrganType,(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:baseDataCfg:title:bodyPart")}},[i("el-input",{staticStyle:{width:"130px"},attrs:{clearable:""},model:{value:e.searchData.Part,callback:function(t){e.$set(e.searchData,"Part",t)},expression:"searchData.Part"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:baseDataCfg:title:organ")}},[i("el-input",{staticStyle:{width:"130px"},attrs:{clearable:""},model:{value:e.searchData.TULOC,callback:function(t){e.$set(e.searchData,"TULOC",t)},expression:"searchData.TULOC"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:baseDataCfg:title:isLymphNodes")}},[i("el-select",{staticStyle:{width:"130px"},attrs:{clearable:""},model:{value:e.searchData.IsLymphNodes,callback:function(t){e.$set(e.searchData,"IsLymphNodes",t)},expression:"searchData.IsLymphNodes"}},e._l(e.$d.YesOrNo,(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"small"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left",size:"small"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.synchronizeSystemOrganToTrial}},[e._v("\n "+e._s(e.$t("trials:readingUnit:baseDataCfg:button:sync"))+"\n ")])],1)],1),e._v(" "),i("span",{staticStyle:{"margin-left":"auto"}},[e.isConfirm||e.isFromSystem?e._e():i("el-button",{attrs:{type:"primary",icon:"el-icon-plus",size:"small"},on:{click:e.handleSet}},[e._v("\n "+e._s(e.$t("trials:readingUnit:baseDataCfg:button:set"))+"\n ")])],1)],1),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"}],ref:"organList",attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"90"}}),e._v(" "),i("el-table-column",{attrs:{prop:"OrganType",label:e.$t("trials:readingUnit:baseDataCfg:title:organType"),"min-width":"120","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("OrganType",t.row.OrganType))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Classification",label:e.$t("trials:readingUnit:baseDataCfg:title:classification"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"ClassificationEN",label:e.$t("trials:readingUnit:baseDataCfg:title:classificationEn"),"min-width":"140","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Part",label:e.$t("trials:readingUnit:baseDataCfg:title:bodyPart"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"PartEN",label:e.$t("trials:readingUnit:baseDataCfg:title:bodyPartEn"),"min-width":"140","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TULOC",label:e.$t("trials:readingUnit:baseDataCfg:title:organ"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TULOCEN",label:e.$t("trials:readingUnit:baseDataCfg:title:organEn"),"min-width":"140","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TULAT",label:e.$t("trials:readingUnit:baseDataCfg:title:TULAT"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TULATEN",label:e.$t("trials:readingUnit:baseDataCfg:title:TULATEn"),"min-width":"140","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsLymphNodes",label:e.$t("trials:readingUnit:baseDataCfg:title:isLymphNodes"),"min-width":"160","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsLymphNodes?i("el-tag",{attrs:{type:"danger"}},[e._v("\n "+e._s(e.$fd("ReadingYesOrNo",t.row.IsLymphNodes))+"\n ")]):i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ReadingYesOrNo",t.row.IsLymphNodes)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsCanEditPosition",label:e.$t("trials:readingUnit:baseDataCfg:title:isCanEditPosition"),"min-width":"160","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsCanEditPosition?i("el-tag",{attrs:{type:"danger"}},[e._v("\n "+e._s(e.$fd("YesOrNo",t.row.IsCanEditPosition))+"\n ")]):i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsCanEditPosition)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ShowOrder",label:e.$t("trials:readingUnit:baseDataCfg:title:showOrder"),"show-overflow-tooltip":"","min-width":"80"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Remark",label:e.$t("trials:readingUnit:baseDataCfg:title:remark"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsEnable",label:e.$t("trials:readingUnit:baseDataCfg:title:isEnable"),"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e.isConfirm?i("span",[e._v(e._s(e.$fd("YesOrNo",t.row.IsEnable)))]):i("el-switch",{on:{change:function(i){return e.changeEnableStatus(i,t.row)}},model:{value:t.row.IsEnable,callback:function(i){e.$set(t.row,"IsEnable",i)},expression:"scope.row.IsEnable"}})]}}])})],1)],1),e._v(" "),e.criterion.visible?i("el-dialog",{attrs:{visible:e.criterion.visible,"close-on-click-modal":!1,title:e.criterion.title,width:"500px","custom-class":"base-dialog-wrapper","append-to-body":""},on:{"update:visible":function(t){return e.$set(e.criterion,"visible",t)}}},[i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.formLoading,expression:"formLoading"}],ref:"criterionForm",attrs:{model:e.form,size:"small"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:e.$t("trials:readingUnit:readingCriterion"),prop:"CriterionId",rules:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur"]}]}},[i("el-select",{model:{value:e.form.CriterionId,callback:function(t){e.$set(e.form,"CriterionId",t)},expression:"form.CriterionId"}},e._l(e.criterions,(function(e){return i("el-option",{key:e.CriterionId,attrs:{label:e.CriterionName,value:e.CriterionId}})})),1)],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{type:"primary"},on:{click:function(t){e.criterion.visible=!1}}},[e._v(" "+e._s(e.$t("common:button:cancel")))]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])],1):e._e()],2)},a=[],r=i("3e42"),o=i("6071"),s=function(){return{OrganType:null,TULOC:null,TULAT:null,IsLymphNodes:null}},l={name:"OrgansList",components:{BaseContainer:o["default"]},props:{trialReadingCriterionId:{type:String,required:!0},isFromSystem:{type:Boolean,required:!0},isConfirm:{type:Boolean,required:!0}},data:function(){return{searchData:s(),loading:!1,list:[],total:0,trialId:"",criterion:{title:this.$t("trials:readingUnit:baseDataCfg:title:set"),visible:!1},formLoading:!1,form:{CriterionId:""},criterions:[]}},watch:{list:function(){var e=this;this.$nextTick((function(){e.$refs.organList.doLayout()}))}},mounted:function(){this.getCriterions(),this.getList()},methods:{synchronizeSystemOrganToTrial:function(){var e=this;this.loading=!0,Object(r["if"])({TrialReadingCriterionId:this.trialReadingCriterionId}).then((function(t){e.loading=!1,e.getList(),e.$message.success(e.$t("trials:readingUnit:baseDataCfg:message:sync"))})).catch((function(){e.loading=!1}))},getList:function(){var e=this;this.loading=!0,this.searchData.TrialId=this.$route.query.trialId,this.searchData.TrialReadingCriterionId=this.trialReadingCriterionId,Object(r["Rd"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result})).catch((function(){e.loading=!1}))},handleAdd:function(){this.addDialog.visible=!0},changeEnableStatus:function(e,t){var i=this;t.IsEnable=!e;var n=this.$t("trials:readingUnit:baseDataCfg:message:updateConfirm");this.$confirm(n,{distinguishCancelAndClose:!0,type:"warning"}).then((function(){var e=!t.IsEnable;i.loading=!0;var n={isEnable:e,ids:[t.Id]};Object(r["Pe"])(n).then((function(e){i.loading=!1,e.IsSuccess&&(i.$message.success(i.$t("common:message:savedSuccessfully")),i.getList())})).catch((function(){i.loading=!1}))})).catch((function(){}))},handleDelete:function(e){var t=this;this.$confirm(this.$t("trials:readingUnit:baseDataCfg:message:deleteConfirm"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.loading=!0,Object(r["Bb"])(e.Id).then((function(e){t.loading=!1,e.IsSuccess&&(t.getList(),t.$message.success(t.$t("trials:readingUnit:baseDataCfg:message:deleteSuccessfully")))})).catch((function(){t.loading=!1}))}))},handleSearch:function(){this.getList()},handleReset:function(){this.searchData=s(),this.getList()},handleSortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()},getCriterions:function(){var e=this;Object(r["ud"])().then((function(t){e.criterions=t.Result}))},handleSet:function(){this.criterion.visible=!0,this.form.CriterionId=""},handleSave:function(){var e=this;this.$refs["criterionForm"].validate((function(t){if(t){e.formLoading=!0;var i={trialId:e.$route.query.trialId,systemCriterionId:e.form.CriterionId};Object(r["if"])(i).then((function(t){e.getList(),e.criterion.visible=!1,e.formLoading=!1})).catch((function(){e.formLoading=!1}))}}))}}},c=l,u=i("2877"),d=Object(u["a"])(c,n,a,!1,null,null,null);t["default"]=d.exports},ba92:function(e,t,i){"use strict";var n=i("4bf8"),a=i("77f1"),r=i("9def");e.exports=[].copyWithin||function(e,t){var i=n(this),o=r(i.length),s=a(e,o),l=a(t,o),c=arguments.length>2?arguments[2]:void 0,u=Math.min((void 0===c?o:a(c,o))-l,o-s),d=1;l<s&&s<l+u&&(d=-1,l+=u-1,s+=u-1);while(u-- >0)l in i?i[s]=i[l]:delete i[s],s+=d,l+=d;return i}},bad9:function(e,t,i){},bb05:function(e,t,i){"use strict";i("ec74")},bb1a:function(e,t,i){},bb6c:function(e,t,i){},bb70:function(e,t,i){var n=i("e86a"),a=i("3842"),r=a.parsePercent,o=Math.PI/180;function s(e,t,i,n,a,r,o,s,l,c){function u(t,i,n,a){for(var r=t;r<i;r++){if(e[r].y+n>l+o)break;if(e[r].y+=n,r>t&&r+1<i&&e[r+1].y>e[r].y+e[r].height)return void d(r,n/2)}d(i-1,n/2)}function d(t,i){for(var n=t;n>=0;n--){if(e[n].y-i<l)break;if(e[n].y-=i,n>0&&e[n].y>e[n-1].y+e[n-1].height)break}}function f(e,t,i,n,a,r){for(var o=t?Number.MAX_VALUE:0,s=0,l=e.length;s<l;s++)if("none"===e[s].labelAlignTo){var c=Math.abs(e[s].y-n),u=e[s].len,d=e[s].len2,f=c<a+u?Math.sqrt((a+u+d)*(a+u+d)-c*c):Math.abs(e[s].x-i);t&&f>=o&&(f=o-10),!t&&f<=o&&(f=o+10),e[s].x=i+f*r,o=f}}e.sort((function(e,t){return e.y-t.y}));for(var h,p=0,m=e.length,g=[],v=[],b=0;b<m;b++){if("outer"===e[b].position&&"labelLine"===e[b].labelAlignTo){var y=e[b].x-c;e[b].linePoints[1][0]+=y,e[b].x=c}h=e[b].y-p,h<0&&u(b,m,-h,a),p=e[b].y+e[b].height}o-p<0&&d(m-1,p-o);for(b=0;b<m;b++)e[b].y>=i?v.push(e[b]):g.push(e[b]);f(g,!1,t,i,n,a),f(v,!0,t,i,n,a)}function l(e,t,i,a,r,o,l,u){for(var d=[],f=[],h=Number.MAX_VALUE,p=-Number.MAX_VALUE,m=0;m<e.length;m++)c(e[m])||(e[m].x<t?(h=Math.min(h,e[m].x),d.push(e[m])):(p=Math.max(p,e[m].x),f.push(e[m])));s(f,t,i,a,1,r,o,l,u,p),s(d,t,i,a,-1,r,o,l,u,h);for(m=0;m<e.length;m++){var g=e[m];if(!c(g)){var v=g.linePoints;if(v){var b,y="edge"===g.labelAlignTo,w=g.textRect.width;b=y?g.x<t?v[2][0]-g.labelDistance-l-g.labelMargin:l+r-g.labelMargin-v[2][0]-g.labelDistance:g.x<t?g.x-l-g.bleedMargin:l+r-g.x-g.bleedMargin,b<g.textRect.width&&(g.text=n.truncateText(g.text,b,g.font),"edge"===g.labelAlignTo&&(w=n.getWidth(g.text,g.font)));var _=v[1][0]-v[2][0];y?g.x<t?v[2][0]=l+g.labelMargin+w+g.labelDistance:v[2][0]=l+r-g.labelMargin-w-g.labelDistance:(g.x<t?v[2][0]=g.x+g.labelDistance:v[2][0]=g.x-g.labelDistance,v[1][0]=v[2][0]+_),v[1][1]=v[2][1]=g.y}}}}function c(e){return"center"===e.position}function u(e,t,i,a,s,c){var u,d,f=e.getData(),h=[],p=!1,m=(e.get("minShowLabelAngle")||0)*o;f.each((function(a){var o=f.getItemLayout(a),l=f.getItemModel(a),c=l.getModel("label"),g=c.get("position")||l.get("emphasis.label.position"),v=c.get("distanceToLabelLine"),b=c.get("alignTo"),y=r(c.get("margin"),i),w=c.get("bleedMargin"),_=c.getFont(),I=l.getModel("labelLine"),x=I.get("length");x=r(x,i);var S=I.get("length2");if(S=r(S,i),!(o.angle<m)){var T,C,k,R,D=(o.startAngle+o.endAngle)/2,L=Math.cos(D),O=Math.sin(D);u=o.cx,d=o.cy;var $,N=e.getFormattedLabel(a,"normal")||f.getName(a),A=n.getBoundingRect(N,_,R,"top"),P="inside"===g||"inner"===g;if("center"===g)T=o.cx,C=o.cy,R="center";else{var E=(P?(o.r+o.r0)/2*L:o.r*L)+u,M=(P?(o.r+o.r0)/2*O:o.r*O)+d;if(T=E+3*L,C=M+3*O,!P){var F=E+L*(x+t-o.r),j=M+O*(x+t-o.r),V=F+(L<0?-1:1)*S,q=j;T="edge"===b?L<0?s+y:s+i-y:V+(L<0?-v:v),C=q,k=[[E,M],[F,j],[V,q]]}R=P?"center":"edge"===b?L>0?"right":"left":L>0?"left":"right"}var z=c.get("rotate");$="number"===typeof z?z*(Math.PI/180):z?L<0?-D+Math.PI:-D:0,p=!!$,o.label={x:T,y:C,position:g,height:A.height,len:x,len2:S,linePoints:k,textAlign:R,verticalAlign:"middle",rotation:$,inside:P,labelDistance:v,labelAlignTo:b,labelMargin:y,bleedMargin:w,textRect:A,text:N,font:_},P||h.push(o.label)}})),!p&&e.get("avoidLabelOverlap")&&l(h,u,d,t,i,a,s,c)}e.exports=u},bb8c:function(e,t,i){"use strict";i("e781")},bc42:function(e,t,i){},bc5f:function(e,t,i){var n=i("6cb7");n.registerSubTypeDefaulter("visualMap",(function(e){return e.categories||(e.pieces?e.pieces.length>0:e.splitNumber>0)&&!e.calculable?"piecewise":"continuous"}))},bc7b:function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-druid",use:"icon-druid-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-druid"><defs><style type="text/css"></style></defs><path d="M832 128H192a64.19 64.19 0 0 0-64 64v640a64.19 64.19 0 0 0 64 64h640a64.19 64.19 0 0 0 64-64V192a64.19 64.19 0 0 0-64-64z m0 703.89l-0.11 0.11H192.11l-0.11-0.11V768h640zM832 544H720L605.6 696.54 442.18 435.07 333.25 544H192v-64h114.75l147.07-147.07L610.4 583.46 688 480h144z m0-288H192v-63.89l0.11-0.11h639.78l0.11 0.11z" p-id="5854" /></symbol>'});o.a.add(s);t["default"]=s},bcaa1:function(e,t,i){var n=i("4ab1"),a=i("6d8b");function r(e,t){n.call(this,e,t,["filter"],"__filter_in_use__","_shadowDom")}function o(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY||e.textShadowBlur||e.textShadowOffsetX||e.textShadowOffsetY)}a.inherits(r,n),r.prototype.addWithoutUpdate=function(e,t){if(t&&o(t.style)){var i;if(t._shadowDom){i=t._shadowDom;var n=this.getDefs(!0);n.contains(t._shadowDom)||this.addDom(i)}else i=this.add(t);this.markUsed(t);var a=i.getAttribute("id");e.style.filter="url(#"+a+")"}},r.prototype.add=function(e){var t=this.createElement("filter");return e._shadowDomId=e._shadowDomId||this.nextId++,t.setAttribute("id","zr"+this._zrId+"-shadow-"+e._shadowDomId),this.updateDom(e,t),this.addDom(t),t},r.prototype.update=function(e,t){var i=t.style;if(o(i)){var a=this;n.prototype.update.call(this,t,(function(){a.updateDom(t,t._shadowDom)}))}else this.remove(e,t)},r.prototype.remove=function(e,t){null!=t._shadowDomId&&(this.removeDom(e),e.style.filter="")},r.prototype.updateDom=function(e,t){var i=t.getElementsByTagName("feDropShadow");i=0===i.length?this.createElement("feDropShadow"):i[0];var n,a,r,o,s=e.style,l=e.scale&&e.scale[0]||1,c=e.scale&&e.scale[1]||1;if(s.shadowBlur||s.shadowOffsetX||s.shadowOffsetY)n=s.shadowOffsetX||0,a=s.shadowOffsetY||0,r=s.shadowBlur,o=s.shadowColor;else{if(!s.textShadowBlur)return void this.removeDom(t,s);n=s.textShadowOffsetX||0,a=s.textShadowOffsetY||0,r=s.textShadowBlur,o=s.textShadowColor}i.setAttribute("dx",n/l),i.setAttribute("dy",a/c),i.setAttribute("flood-color",o);var u=r/2/l,d=r/2/c,f=u+" "+d;i.setAttribute("stdDeviation",f),t.setAttribute("x","-100%"),t.setAttribute("y","-100%"),t.setAttribute("width",Math.ceil(r/2*200)+"%"),t.setAttribute("height",Math.ceil(r/2*200)+"%"),t.appendChild(i),e._shadowDom=t},r.prototype.markUsed=function(e){e._shadowDom&&n.prototype.markUsed.call(this,e._shadowDom)};var s=r;e.exports=s},bcbe:function(e,t,i){var n=i("6d8b"),a=i("fab22"),r=i("2306"),o=i("edb9"),s=i("6679"),l=i("58df"),c=l.rectCoordAxisBuildSplitArea,u=l.rectCoordAxisHandleRemove,d=["axisLine","axisTickLabel","axisName"],f=["splitArea","splitLine"],h=s.extend({type:"singleAxis",axisPointerClass:"SingleAxisPointer",render:function(e,t,i,s){var l=this.group;l.removeAll();var c=this._axisGroup;this._axisGroup=new r.Group;var u=o.layout(e),p=new a(e,u);n.each(d,p.add,p),l.add(this._axisGroup),l.add(p.getGroup()),n.each(f,(function(t){e.get(t+".show")&&this["_"+t](e)}),this),r.groupTransition(c,this._axisGroup,e),h.superCall(this,"render",e,t,i,s)},remove:function(){u(this)},_splitLine:function(e){var t=e.axis;if(!t.scale.isBlank()){var i=e.getModel("splitLine"),n=i.getModel("lineStyle"),a=n.get("width"),o=n.get("color");o=o instanceof Array?o:[o];for(var s=e.coordinateSystem.getRect(),l=t.isHorizontal(),c=[],u=0,d=t.getTicksCoords({tickModel:i}),f=[],h=[],p=0;p<d.length;++p){var m=t.toGlobalCoord(d[p].coord);l?(f[0]=m,f[1]=s.y,h[0]=m,h[1]=s.y+s.height):(f[0]=s.x,f[1]=m,h[0]=s.x+s.width,h[1]=m);var g=u++%o.length;c[g]=c[g]||[],c[g].push(new r.Line({subPixelOptimize:!0,shape:{x1:f[0],y1:f[1],x2:h[0],y2:h[1]},style:{lineWidth:a},silent:!0}))}for(p=0;p<c.length;++p)this.group.add(r.mergePath(c[p],{style:{stroke:o[p%o.length],lineDash:n.getLineDash(a),lineWidth:a},silent:!0}))}},_splitArea:function(e){c(this,this._axisGroup,e,e)}}),p=h;e.exports=p},bcd4:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"none-dicom_preview-wrapper"},[i("div",{staticClass:"image-viewer-wrapper"},[e.previewVisible?i("ImageViewer",{attrs:{"on-switch":function(t){e.selected(t)},"initial-index":e.previewImage.index,"url-list":e.previewImage.imgList,"study-code":e.previewImage.studyCode,"body-part":e.previewImage.bodyPart,modality:e.previewImage.modality}}):e._e()],1),e._v(" "),i("div",{staticClass:"thumbnail-wrapper",staticStyle:{"z-index":"999","background-color":"#fff"}},[i("div",{},[i("div",{staticClass:"img-wrapper"},[i("el-button",{staticClass:"left to",attrs:{icon:"el-icon-d-arrow-left",plain:"",disabled:e.disabledPrev},on:{click:e.toRight}}),e._v(" "),i("div",{ref:"imagesWrapper",staticClass:"images"},[e.noData?i("div",{staticClass:"empty-text"},[e._t("empty",[e._v("暂无数据")])],2):e._e(),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:!e.noData,expression:"!noData"}],staticClass:"items",style:e.itemsStyle},e._l(e.previewImage.imgList,(function(t,n){return i("div",{key:n,staticClass:"item-img",class:{"is-active":n===e.currentIndex},style:e.imgSize,on:{click:function(t){return e.selected(n)}}},[i("img",{attrs:{title:t.FileName,src:"/api/"+t.PreviewPath}}),e._v(" "),t.FileName?i("p",{staticClass:"item-date"},[e._v("\n "+e._s(""+(n+1))+"\n ")]):e._e()])})),0)]),e._v(" "),i("el-button",{staticClass:"right to",attrs:{icon:"el-icon-d-arrow-right",disabled:e.disabledNext,plain:""},on:{click:e.Left}})],1)])])])},a=[],r=(i("a481"),i("c5f6"),i("bf34")),o={name:"Preview",components:{ImageViewer:r["default"]},props:{imgSize:{type:Object,default:function(){return{width:"120px",height:"120px"}}},value:{type:Number,default:null},previewImage:{type:Object,default:function(){return{imgList:[],index:0,infinite:!0,studyCode:"",modality:"",bodyPart:""}}}},data:function(){return{currentIndex:0,previewVisible:!0,translateX:0,pageSize:0,urlList:[]}},computed:{itemsStyle:function(){return{transform:"translateX(".concat(-this.translateX,"px)")}},itemWidth:function(){return parseInt(this.imgSize.width.replace("px",""))+8},disabledPrev:function(){return this.translateX<=0},disabledNext:function(){return this.translateX>=(this.previewImage.imgList.length-this.pageSize)*this.itemWidth},noData:function(){return 0===this.previewImage.imgList.length},dataLength:function(){return this.previewImage.imgList.length}},watch:{value:{immediate:!0,handler:function(e){this.currentIndex=e}},"previewImage.index":{immediate:!0,handler:function(e){this.urlList.index=e}}},mounted:function(){this.pageSize=this.wrapperWidth()/this.itemWidth,this.urlList=this.previewImage;var e=this;window.onresize=function(){e.pageSize=e.wrapperWidth()/e.itemWidth,e.selected(e.currentIndex)}},methods:{toRight:function(){this.translateX<this.pageSize*this.itemWidth?this.translateX=0:this.translateX=this.translateX-this.pageSize*this.itemWidth},Left:function(){this.translateX=this.translateX+this.pageSize*this.itemWidth;var e=this.itemWidth*(this.dataLength-this.pageSize);this.translateX>e&&(this.translateX=e)},selected:function(e){var t=this.pageSize>>1,i=this.dataLength-t;if(e>t&&e<i){var n=e-t;this.translateX=this.itemWidth*n}else{var a=this.itemWidth*(this.dataLength-this.pageSize);this.translateX=e<=t?0:a}this.currentIndex!==e&&(this.currentIndex=e),this.$emit("selectedImg",e)},wrapperWidth:function(){return this.$refs.imagesWrapper?this.$refs.imagesWrapper.offsetWidth:0}}},s=o,l=(i("7cf7"),i("2877")),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},bcdf:function(e,t){function i(){}e.exports=i},bce5:function(e,t,i){"use strict";i("52dd")},bd1b:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{ref:"previewCanvas",staticStyle:{height:"72px",width:"72px"}})])},a=[],r=i("81d9"),o={props:{imageId:String},mounted:function(){var e=this.$refs.previewCanvas;r["enable"](e),r["loadImage"](this.imageId).then((function(t){r["displayImage"](e,t)}))}},s=o,l=(i("0465"),i("2877")),c=Object(l["a"])(s,n,a,!1,null,"326dde52",null);t["default"]=c.exports},bd41:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[e.questionForm[e.question.parentId]===e.question.triggleValue||""===e.question.parentId?i("el-form-item",{attrs:{label:""+e.question.question,prop:e.question.id,rules:[{required:e.question.isRequired,message:"请注明",trigger:["blur","change"]}]}},["input"===e.question.type?i("el-input",{staticStyle:{width:"500px"},model:{value:e.questionForm[e.question.id],callback:function(t){e.$set(e.questionForm,e.question.id,t)},expression:"questionForm[question.id]"}}):e._e(),e._v(" "),"textarea"===e.question.type?i("el-input",{staticStyle:{width:"500px"},attrs:{type:"textarea",autosize:{minRows:2,maxRows:4}},model:{value:e.questionForm[e.question.id],callback:function(t){e.$set(e.questionForm,e.question.id,t)},expression:"questionForm[question.id]"}}):e._e(),e._v(" "),"select"===e.question.type?i("el-select",{on:{change:function(t){e.formItemChange(t,e.question)}},model:{value:e.questionForm[e.question.id],callback:function(t){e.$set(e.questionForm,e.question.id,t)},expression:"questionForm[question.id]"}},e._l(e.question.typeValue.split("|"),(function(e){return i("el-option",{key:e,attrs:{label:e,value:e}})})),1):e._e(),e._v(" "),"radio"===e.question.type?i("el-radio-group",{on:{change:function(t){e.formItemChange(t,e.question)}},model:{value:e.questionForm[e.question.id],callback:function(t){e.$set(e.questionForm,e.question.id,t)},expression:"questionForm[question.id]"}},e._l(e.question.typeValue.split("|"),(function(t){return i("el-radio",{key:t,attrs:{label:t}},[e._v(e._s(t))])})),1):e._e(),e._v(" "),"checkbox"===e.question.type?i("el-checkbox-group",{model:{value:e.questionForm[e.question.id],callback:function(t){e.$set(e.questionForm,e.question.id,t)},expression:"questionForm[question.id]"}},e._l(e.question.typeValue.split("|"),(function(t){return i("el-checkbox",{key:t,attrs:{label:t}},[e._v(e._s(t))])})),1):e._e()],1):e._e(),e._v(" "),e._l(e.question.childrens,(function(t){return i("FormItem",{key:t.id,attrs:{question:t,"question-form":e.questionForm}})}))],2)},a=[],r=(i("ac6a"),{name:"FormItem",props:{questionForm:{type:Object,default:function(){return{}}},question:{type:Object,default:function(){return[]}}},data:function(){return{}},watch:{questionForm:{deep:!0,immediate:!0,handler:function(e){}}},mounted:function(){},methods:{formItemChange:function(e,t){t.childrens.length>0&&this.resetChild(t.childrens)},resetChild:function(e){var t=this;e.forEach((function(e){t.$emit("resetFormItemData",e.id),e.childrens&&e.childrens.length>0&&t.resetChild(e.childrens)}))}}}),o=r,s=i("2877"),l=Object(s["a"])(o,n,a,!1,null,null,null);t["default"]=l.exports},bd4d:function(e,t,i){"use strict";i("b79c")},bd6b:function(e,t,i){var n=i("06ad"),a=i("4942"),r=i("6d8b"),o=r.isString,s=r.isFunction,l=r.isObject,c=r.isArrayLike,u=r.indexOf,d=function(){this.animators=[]};function f(e,t,i,n,a,r,l,c){o(n)?(r=a,a=n,n=0):s(a)?(r=a,a="linear",n=0):s(n)?(r=n,n=0):s(i)?(r=i,i=500):i||(i=500),e.stopAnimation(),h(e,"",e,t,i,n,c);var u=e.animators.slice(),d=u.length;function f(){d--,d||r&&r()}d||r&&r();for(var p=0;p<u.length;p++)u[p].done(f).start(a,l)}function h(e,t,i,n,a,r,o){var s={},u=0;for(var d in n)n.hasOwnProperty(d)&&(null!=i[d]?l(n[d])&&!c(n[d])?h(e,t?t+"."+d:d,i[d],n[d],a,r,o):(o?(s[d]=i[d],p(e,t,d,n[d])):s[d]=n[d],u++):null==n[d]||o||p(e,t,d,n[d]));u>0&&e.animate(t,!1).when(null==a?500:a,s).delay(r||0)}function p(e,t,i,n){if(t){var a={};a[t]={},a[t][i]=n,e.attr(a)}else e.attr(i,n)}d.prototype={constructor:d,animate:function(e,t){var i,r=!1,o=this,s=this.__zr;if(e){var l=e.split("."),c=o;r="shape"===l[0];for(var d=0,f=l.length;d<f;d++)c&&(c=c[l[d]]);c&&(i=c)}else i=o;if(i){var h=o.animators,p=new n(i,t);return p.during((function(e){o.dirty(r)})).done((function(){h.splice(u(h,p),1)})),h.push(p),s&&s.animation.addAnimator(p),p}a('Property "'+e+'" is not existed in element '+o.id)},stopAnimation:function(e){for(var t=this.animators,i=t.length,n=0;n<i;n++)t[n].stop(e);return t.length=0,this},animateTo:function(e,t,i,n,a,r){f(this,e,t,i,n,a,r)},animateFrom:function(e,t,i,n,a,r){f(this,e,t,i,n,a,r,!0)}};var m=d;e.exports=m},bd92:function(e,t,i){var n=i("6d8b"),a=i("4f85"),r=i("e468"),o=r.seriesModelMixin,s=a.extend({type:"series.candlestick",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,clip:!0,itemStyle:{color:"#c23531",color0:"#314656",borderWidth:1,borderColor:"#c23531",borderColor0:"#314656"},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationUpdate:!1,animationEasing:"linear",animationDuration:300},getShadowDim:function(){return"open"},brushSelector:function(e,t,i){var n=t.getItemLayout(e);return n&&i.rect(n.brushRect)}});n.mixin(s,o,!0);var l=s;e.exports=l},bd9e:function(e,t,i){var n=i("4e08"),a=(n.__DEV__,i("6d8b")),r=i("2306"),o=i("e0d3"),s=i("f4a2"),l=a.each,c=a.indexOf,u=a.curry,d=["dataToPoint","pointToData"],f=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"];function h(e,t,i){var n=this._targetInfoList=[],a={},r=g(t,e);l(v,(function(e,t){(!i||!i.include||c(i.include,t)>=0)&&e(r,n,a)}))}var p=h.prototype;function m(e){return e[0]>e[1]&&e.reverse(),e}function g(e,t){return o.parseFinder(e,t,{includeMainTypes:f})}p.setOutputRanges=function(e,t){this.matchOutputRanges(e,t,(function(e,t,i){if((e.coordRanges||(e.coordRanges=[])).push(t),!e.coordRange){e.coordRange=t;var n=w[e.brushType](0,i,t);e.__rangeOffset={offset:I[e.brushType](n.values,e.range,[1,1]),xyMinMax:n.xyMinMax}}}))},p.matchOutputRanges=function(e,t,i){l(e,(function(e){var n=this.findTargetInfo(e,t);n&&!0!==n&&a.each(n.coordSyses,(function(n){var a=w[e.brushType](1,n,e.range);i(e,a.values,n,t)}))}),this)},p.setInputRanges=function(e,t){l(e,(function(e){var i=this.findTargetInfo(e,t);if(e.range=e.range||[],i&&!0!==i){e.panelId=i.panelId;var n=w[e.brushType](0,i.coordSys,e.coordRange),a=e.__rangeOffset;e.range=a?I[e.brushType](n.values,a.offset,S(n.xyMinMax,a.xyMinMax)):n.values}}),this)},p.makePanelOpts=function(e,t){return a.map(this._targetInfoList,(function(i){var n=i.getPanelRect();return{panelId:i.panelId,defaultBrushType:t&&t(i),clipPath:s.makeRectPanelClipPath(n),isTargetByCursor:s.makeRectIsTargetByCursor(n,e,i.coordSysModel),getLinearBrushOtherExtent:s.makeLinearBrushOtherExtent(n)}}))},p.controlSeries=function(e,t,i){var n=this.findTargetInfo(e,i);return!0===n||n&&c(n.coordSyses,t.coordinateSystem)>=0},p.findTargetInfo=function(e,t){for(var i=this._targetInfoList,n=g(t,e),a=0;a<i.length;a++){var r=i[a],o=e.panelId;if(o){if(r.panelId===o)return r}else for(a=0;a<b.length;a++)if(b[a](n,r))return r}return!0};var v={grid:function(e,t){var i=e.xAxisModels,n=e.yAxisModels,r=e.gridModels,o=a.createHashMap(),s={},u={};(i||n||r)&&(l(i,(function(e){var t=e.axis.grid.model;o.set(t.id,t),s[t.id]=!0})),l(n,(function(e){var t=e.axis.grid.model;o.set(t.id,t),u[t.id]=!0})),l(r,(function(e){o.set(e.id,e),s[e.id]=!0,u[e.id]=!0})),o.each((function(e){var a=e.coordinateSystem,r=[];l(a.getCartesians(),(function(e,t){(c(i,e.getAxis("x").model)>=0||c(n,e.getAxis("y").model)>=0)&&r.push(e)})),t.push({panelId:"grid--"+e.id,gridModel:e,coordSysModel:e,coordSys:r[0],coordSyses:r,getPanelRect:y.grid,xAxisDeclared:s[e.id],yAxisDeclared:u[e.id]})})))},geo:function(e,t){l(e.geoModels,(function(e){var i=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:i,coordSyses:[i],getPanelRect:y.geo})}))}},b=[function(e,t){var i=e.xAxisModel,n=e.yAxisModel,a=e.gridModel;return!a&&i&&(a=i.axis.grid.model),!a&&n&&(a=n.axis.grid.model),a&&a===t.gridModel},function(e,t){var i=e.geoModel;return i&&i===t.geoModel}],y={grid:function(){return this.coordSys.grid.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(r.getTransform(e)),t}},w={lineX:u(_,0),lineY:u(_,1),rect:function(e,t,i){var n=t[d[e]]([i[0][0],i[1][0]]),a=t[d[e]]([i[0][1],i[1][1]]),r=[m([n[0],a[0]]),m([n[1],a[1]])];return{values:r,xyMinMax:r}},polygon:function(e,t,i){var n=[[1/0,-1/0],[1/0,-1/0]],r=a.map(i,(function(i){var a=t[d[e]](i);return n[0][0]=Math.min(n[0][0],a[0]),n[1][0]=Math.min(n[1][0],a[1]),n[0][1]=Math.max(n[0][1],a[0]),n[1][1]=Math.max(n[1][1],a[1]),a}));return{values:r,xyMinMax:n}}};function _(e,t,i,n){var r=i.getAxis(["x","y"][e]),o=m(a.map([0,1],(function(e){return t?r.coordToData(r.toLocalCoord(n[e])):r.toGlobalCoord(r.dataToCoord(n[e]))}))),s=[];return s[e]=o,s[1-e]=[NaN,NaN],{values:o,xyMinMax:s}}var I={lineX:u(x,0),lineY:u(x,1),rect:function(e,t,i){return[[e[0][0]-i[0]*t[0][0],e[0][1]-i[0]*t[0][1]],[e[1][0]-i[1]*t[1][0],e[1][1]-i[1]*t[1][1]]]},polygon:function(e,t,i){return a.map(e,(function(e,n){return[e[0]-i[0]*t[n][0],e[1]-i[1]*t[n][1]]}))}};function x(e,t,i,n){return[t[0]-n[e]*i[0],t[1]-n[e]*i[1]]}function S(e,t){var i=T(e),n=T(t),a=[i[0]/n[0],i[1]/n[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function T(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var C=h;e.exports=C},bda7:function(e,t,i){var n=i("6d8b"),a=i("f279");function r(e){if(!e.UTF8Encoding)return e;var t=e.UTF8Scale;null==t&&(t=1024);for(var i=e.features,n=0;n<i.length;n++)for(var a=i[n],r=a.geometry,s=r.coordinates,l=r.encodeOffsets,c=0;c<s.length;c++){var u=s[c];if("Polygon"===r.type)s[c]=o(u,l[c],t);else if("MultiPolygon"===r.type)for(var d=0;d<u.length;d++){var f=u[d];u[d]=o(f,l[c][d],t)}}return e.UTF8Encoding=!1,e}function o(e,t,i){for(var n=[],a=t[0],r=t[1],o=0;o<e.length;o+=2){var s=e.charCodeAt(o)-64,l=e.charCodeAt(o+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),s+=a,l+=r,a=s,r=l,n.push([s/i,l/i])}return n}function s(e,t){return r(e),n.map(n.filter(e.features,(function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0})),(function(e){var i=e.properties,r=e.geometry,o=r.coordinates,s=[];"Polygon"===r.type&&s.push({type:"polygon",exterior:o[0],interiors:o.slice(1)}),"MultiPolygon"===r.type&&n.each(o,(function(e){e[0]&&s.push({type:"polygon",exterior:e[0],interiors:e.slice(1)})}));var l=new a(i[t||"name"],s,i.cp);return l.properties=i,l}))}e.exports=s},bdab5:function(e,t,i){"use strict";i("a21d")},bdb0:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("base-model",{attrs:{config:e.model_cfg}},[i("template",{slot:"dialog-body"},[i("el-form",{ref:"menuForm",attrs:{model:e.form,"label-width":"110px",size:"small",rules:e.rules}},[i("el-form-item",{attrs:{label:"MenuName",prop:"MenuName"}},[i("el-input",{model:{value:e.form.MenuName,callback:function(t){e.$set(e.form,"MenuName",t)},expression:"form.MenuName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Route Name"}},[i("el-input",{model:{value:e.form.RouteName,callback:function(t){e.$set(e.form,"RouteName",t)},expression:"form.RouteName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Component"}},[i("el-input",{model:{value:e.form.Component,callback:function(t){e.$set(e.form,"Component",t)},expression:"form.Component"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Redirect"}},[i("el-input",{model:{value:e.form.Redirect,callback:function(t){e.$set(e.form,"Redirect",t)},expression:"form.Redirect"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Path"}},[i("el-input",{model:{value:e.form.Path,callback:function(t){e.$set(e.form,"Path",t)},expression:"form.Path"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Title"}},[i("el-input",{model:{value:e.form.MetaTitle,callback:function(t){e.$set(e.form,"MetaTitle",t)},expression:"form.MetaTitle"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Breadcrumb"}},[i("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-color":"#13ce66","inactive-color":"#ff4949"},model:{value:e.form.MetaBreadcrumb,callback:function(t){e.$set(e.form,"MetaBreadcrumb",t)},expression:"form.MetaBreadcrumb"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Icon"}},[i("el-select",{model:{value:e.form.MetaIcon,callback:function(t){e.$set(e.form,"MetaIcon",t)},expression:"form.MetaIcon"}},e._l(e.iconOptions,(function(e,t){return i("el-option",{key:t,attrs:{label:e,value:e}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Active Menu"}},[i("el-input",{model:{value:e.form.MetaActiveMenu,callback:function(t){e.$set(e.form,"MetaActiveMenu",t)},expression:"form.MetaActiveMenu"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Function Name"}},[i("el-input",{model:{value:e.form.FunctionName,callback:function(t){e.$set(e.form,"FunctionName",t)},expression:"form.FunctionName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Description"}},[i("el-input",{model:{value:e.form.Note,callback:function(t){e.$set(e.form,"Note",t)},expression:"form.Note"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Hidden"}},[i("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-color":"#13ce66","inactive-color":"#ff4949"},model:{value:e.form.Hidden,callback:function(t){e.$set(e.form,"Hidden",t)},expression:"form.Hidden"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Show Order"}},[i("el-input",{attrs:{type:"number"},model:{value:e.form.ShowOrder,callback:function(t){e.$set(e.form,"ShowOrder",t)},expression:"form.ShowOrder"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Status"}},[i("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-color":"#13ce66","inactive-color":"#ff4949"},model:{value:e.form.Status,callback:function(t){e.$set(e.form,"Status",t)},expression:"form.Status"}})],1)],1)],1),e._v(" "),i("template",{slot:"dialog-footer"},[i("el-button",{attrs:{disabled:e.loading,size:"small",type:"primary"},on:{click:function(t){e.model_cfg.visible=!1}}},[e._v("Cancel")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.loading},on:{click:function(t){return e.handleSave()}}},[e._v("Save")])],1)],2)},a=[],r=i("50fc"),o=i("9b6c"),s=i("7eeb"),l={components:{BaseModel:s["default"]},props:{form:{type:Object,default:function(){return{}}}},data:function(){return{model_cfg:o["a"],iconOptions:["dashboard","user","trial","statistics","financials","dictionary","admin"],rules:{MenuName:[{required:!0,message:"Please specify",trigger:"blur"}]},loading:!1}},methods:{handleSave:function(){var e=this;this.$refs.menuForm.validate((function(t){if(t){e.model_cfg.showClose=!1;var i=JSON.parse(JSON.stringify(e.form));i.MetaBreadcrumb=!!i.MetaBreadcrumb,i.Hidden=!!i.Hidden,e.loading=!0,Object(r["a"])(i).then((function(t){var n=i.Id?"Updated successfully":"Appended successfully";i.Id=t.Result,e.$message.success(n),e.$emit("close",i),e.loading=!1,e.model_cfg.showClose=!0})).catch((function(){e.loading=!1,e.model_cfg.showClose=!0}))}}))}}},c=l,u=i("2877"),d=Object(u["a"])(c,n,a,!1,null,null,null);t["default"]=d.exports},bdc0:function(e,t,i){var n=i("3eba");i("d2a5"),n.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},(function(t){t.setNodePosition(e.dataIndex,[e.localX,e.localY])}))}))},bddc:function(e,t,i){"use strict";i("b946")},be0c:function(e,t,i){},be16:function(e,t,i){"use strict";i("a543")},be50:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",[i("div",{staticClass:"search"},[i("el-form",{staticClass:"base-search-form",attrs:{inline:!0,size:"mini"}},[i("el-form-item",{attrs:{label:"Code:"}},[i("el-input",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.Code,callback:function(t){e.$set(e.searchData,"Code",t)},expression:"searchData.Code"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"KeyName:"}},[i("el-input",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.KeyName,callback:function(t){e.$set(e.searchData,"KeyName",t)},expression:"searchData.KeyName"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:e.handleReset}},[e._v("Reset")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.handleSearch}},[e._v("Search")])],1)],1),e._v(" "),i("span",{staticStyle:{"margin-left":"auto"}},[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.handleAdd}},[e._v("New")])],1)],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:45},expression:"{bottomOffset:45}"}],attrs:{data:e.list,stripe:"",size:"small",height:"100"}},[i("el-table-column",{attrs:{type:"index",width:"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Code",label:"Dictionary Type","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Description",label:"Description","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:"Is Enable",width:"100",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},on:{change:function(i){return e.switchChange(i,t.row)}},model:{value:t.row.IsEnable,callback:function(i){e.$set(t.row,"IsEnable",i)},expression:"scope.row.IsEnable"}})]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"Action",width:"200",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("\n Edit\n ")]),e._v(" "),i("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("\n Delete\n ")])]}}])})],1),e._v(" "),i("DictionaryTypeConfigForm",{ref:"DictionaryTypeConfigForm",on:{getList:e.getList}})],1)},a=[],r=(i("20d6"),i("e56e")),o=i("fc05"),s=i("f36a"),l=function(){return{Asc:!0,SortField:"Code",Code:"",KeyName:"",DataTypeEnum:0,PageIndex:1,PageSize:500}},c={name:"DictionaryConfig",components:{BoxContent:s["default"],DictionaryTypeConfigForm:o["default"]},data:function(){return{searchData:l(),list:[],total:0,loading:!1,rowData:{},model_cfg:{visible:!1,showClose:!0,width:"600px",title:""}}},mounted:function(){this.getList()},methods:{switchChange:function(e,t){var i=this;this.loading=!0,Object(r["c"])(t).then((function(e){i.$message.success("Saved successfully!"),i.loading=!1})).catch((function(){i.loading=!1}))},handleEdit:function(e){var t=this;this.$nextTick((function(){t.$refs["DictionaryTypeConfigForm"].openDialog("DictionaryTypeConfig",e)}))},handleAdd:function(){var e=this;this.$nextTick((function(){e.$refs["DictionaryTypeConfigForm"].openDialog("DictionaryTypeConfig",{})}))},handleDelete:function(e){var t=this;this.$confirm("Sure to delete?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){t.loading=!0,Object(r["C"])(e.Id).then((function(i){t.loading=!1,i.IsSuccess&&(t.list.splice(t.list.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success("Deleted successfully!"))})).catch((function(){t.loading=!1}))}))},getList:function(){var e=this;this.loading=!0,Object(r["W"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData})).catch((function(){e.loading=!1}))},handleSearch:function(){this.getList()},handleReset:function(){this.searchData=l(),this.getList()}}},u=c,d=i("2877"),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},be6a:function(e,t,i){"use strict";i("ba29")},be8f:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"search-container"},[i("div",{staticStyle:{"margin-left":"auto"}},[i("el-button",{attrs:{type:"primary",disabled:0==e.submitIdArr.length,icon:"el-icon-check",loading:e.loading},on:{click:e.handleSubmit}},[e._v("\n "+e._s(e.$t("trials:seletctedReviews:button:submit"))+"\n ")]),e._v(" "),e.hasPermi(["role:pm"])?i("el-button",{attrs:{type:"primary",icon:"el-icon-download",disabled:!e.total,loading:e.loading},on:{click:e.handleDownloadAll}},[e._v("\n "+e._s(e.$t("trials:seletctedReviews:button:submissionDownAll"))+"\n ")]):e._e()],1)]),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:65},expression:"{bottomOffset:65}"}],staticClass:"table",attrs:{height:"100",data:e.list,"row-class-name":e.handleHighLighRow},on:{"sort-change":e.handleSortChange,"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",selectable:e.handleSelectTable}}),e._v(" "),i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"LastName",label:e.$t("trials:seletctedReviews:table:name"),"show-overflow-tooltip":"",sortable:"custom","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("router-link",{staticStyle:{color:"#00d1b2"},attrs:{tag:"a",to:{path:"/trialsResume?doctorId="+t.row.Id+"&token="+e.token},target:"_blank"}},[e._v(e._s(t.row.LastName)+" / "+e._s(t.row.FirstName))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ChineseName",label:e.$t("trials:seletctedReviews:table:nameCN"),"show-overflow-tooltip":"",sortable:"custom","min-width":"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Code",label:e.$t("trials:seletctedReviews:table:id"),"show-overflow-tooltip":"",sortable:"custom","min-width":"100"}}),e._v(" "),i("el-table-column",{attrs:{prop:"DoctorTrialState",label:e.$t("trials:seletctedReviews:table:status"),"min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[5===t.row.DoctorTrialState?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("DoctorTrialState",t.row.DoctorTrialState)))]):i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("DoctorTrialState",16)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"OptUserName",label:e.$t("trials:seletctedReviews:table:submitter"),"min-width":"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"OptTimeStr",label:e.$t("trials:seletctedReviews:table:submissionTime"),"min-width":"150"}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action"),fixed:"right",width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{icon:"el-icon-download",circle:"",title:e.$t("trials:seletctedReviews:button:submissionDown")},on:{click:function(i){return e.handleDownload(t.row)}}})]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.listQuery.PageIndex,limit:e.listQuery.PageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"PageIndex",t)},"update:limit":function(t){return e.$set(e.listQuery,"PageSize",t)},pagination:e.getList}}),e._v(" "),i("el-dialog",{attrs:{title:e.$t("trials:seletctedReviews:title:language"),visible:e.dialogVisible,width:"30%"},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("span",[e._v(e._s(e.$t("trials:seletctedReviews:label:language"))+": ")]),e._v(" "),i("el-radio-group",{model:{value:e.language,callback:function(t){e.language=t},expression:"language"}},[i("el-radio",{attrs:{label:2}},[e._v("English")]),e._v(" "),i("el-radio",{attrs:{label:1}},[e._v("中文")])],1),e._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.dialogVisible=!1}}},[e._v(e._s(e.$t("common:button:cancel")))]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.handleDownloadResumes}},[e._v(e._s(e.$t("common:button:save")))])],1)],1)],1)],2)},a=[],r=i("6071"),o=i("333d"),s=i("3e42"),l=i("4360"),c=1,u={name:"Submission",components:{BaseContainer:r["default"],Pagination:o["default"]},data:function(){return{list:[],listQuery:{TrialId:"",IntoGroupSearchState:c,PageIndex:1,PageSize:20,Asc:!1,SortField:""},loading:!1,total:0,listLoading:!1,submitIdArr:[],dialogVisible:!1,language:2,token:l["a"].getters.token}},created:function(){this.initPage()},methods:{initPage:function(){this.getList()},getList:function(){var e=this;this.listLoading=!0,this.listQuery.TrialId=this.$route.query.trialId,Object(s["td"])(this.listQuery).then((function(t){e.listLoading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.listLoading=!1}))},handleSubmit:function(){var e=this;this.$confirm(this.$t("trials:seletctedReviews:message:msg2"),{type:"warning"}).then((function(){e.loading=!0;var t=e.$route.query.trialId;Object(s["df"])(t,e.submitIdArr,1).then((function(t){e.loading=!1,t.IsSuccess&&(e.getList(),e.$message.success(e.$t("common:message:savedSuccessfully")),e.$emit("nextStep","approval"))})).catch((function(){e.loading=!1}))}))},handleSelectionChange:function(e){for(var t=[],i=0;i<e.length;i++)t.push(e[i].Id);this.submitIdArr=t},handleSortChange:function(e){"ascending"===e.order?this.listQuery.Asc=!0:this.listQuery.Asc=!1,this.listQuery.SortField=e.prop,this.listQuery.PageIndex=1,this.getList()},handleHighLighRow:function(e){var t=e.row;e.rowIndex;if(5===t.DoctorTrialState)return"selected"},handleSelectTable:function(e){return 5!==e.DoctorTrialState},handleDetail:function(e){var t=this.$router.resolve({path:"/trialsResume?doctorId=".concat(e.Id)}),i=t.href;window.open(i,"_blank")},handleDownloadAll:function(){this.dialogVisible=!0},handleDownloadResumes:function(){this.dialogVisible=!1;for(var e=[],t=0;t<this.list.length;t++)e.push(this.list[t].Id);this.downloadResume(e)},downloadResume:function(e){Object(s["Gb"])(this.$route.query.trialId,this.language,e).then((function(e){window.open(e.Result)}))},handleDownload:function(e){this.downloadResume([e.Id])}}},d=u,f=i("2877"),h=Object(f["a"])(d,n,a,!1,null,null,null);t["default"]=h.exports},bebc:function(e,t,i){"use strict";i("6610")},bf34:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{width:"100%",height:"100%"}},[i("transition",{attrs:{name:"viewer-fade"}},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.urlList.length>0,expression:"urlList.length > 0"}],ref:"image-viewer__wrapper",staticClass:"image-viewer__wrapper",style:{"z-index":5},attrs:{tabindex:"-1"}},[i("span",{staticClass:"image-viewer_desc"},[e._v("\n "+e._s(e.index+1+" / "+e.urlList.length)+"\n ")]),e._v(" "),i("span",{staticClass:"image-viewer__btn image-viewer__close",on:{click:e.hide}},[i("i",{staticClass:"el-icon-close"})]),e._v(" "),e.isSingle?e._e():[i("span",{staticClass:"image-viewer__btn image-viewer__prev",class:{"is-disabled":!e.infinite&&e.isFirst},on:{click:e.prev}},[i("i",{staticClass:"el-icon-arrow-left"})]),e._v(" "),i("span",{staticClass:"el-image-viewer__btn el-image-viewer__next",class:{"is-disabled":!e.infinite&&e.isLast},on:{click:e.next}},[i("i",{staticClass:"el-icon-arrow-right"})])],e._v(" "),i("div",{staticClass:"image-viewer__btn image-viewer__actions"},[i("div",{staticClass:"image-viewer__actions__inner"},[i("i",{staticClass:"el-icon-zoom-out",on:{click:function(t){return e.handleActions("zoomOut")}}}),e._v(" "),i("i",{staticClass:"el-icon-zoom-in",on:{click:function(t){return e.handleActions("zoomIn")}}}),e._v(" "),i("i",{staticClass:"el-image-viewer__actions__divider"}),e._v(" "),i("i",{staticClass:"el-icon-c-scale-to-original",on:{click:e.toggleMode}}),e._v(" "),i("i",{staticClass:"el-image-viewer__actions__divider"}),e._v(" "),i("i",{staticClass:"el-icon-refresh-left",on:{click:function(t){return e.handleActions("anticlocelise")}}}),e._v(" "),i("i",{staticClass:"el-icon-refresh-right",on:{click:function(t){return e.handleActions("clocelise")}}})])]),e._v(" "),i("div",{staticClass:"image-viewer__canvas",attrs:{id:"image-viewer__canvas"}},e._l(e.urlList,(function(t,n){return i("img",{directives:[{name:"show",rawName:"v-show",value:n===e.index,expression:"i === index"}],key:t.Id,ref:"img"+n,refInFor:!0,staticStyle:{"max-width":"100%","max-height":"100%"},style:e.imgStyle,attrs:{src:"/api/"+t.FullFilePath},on:{load:e.handleImgLoad,error:e.handleImgError,mousedown:e.handleMouseDown}})})),0)],2)])],1)},a=[],r=i("db72"),o=(i("c5f6"),i("526f")),s=i("6bd7"),l=Object(s["a"])()?"DOMMouseScroll":"mousewheel",c={name:"ImageViewer",props:{urlList:{type:Array,default:function(){return[]}},studyCode:{type:String,default:""},bodyPart:{type:String,default:""},modality:{type:String,default:""},onSwitch:{type:Function,default:function(){}},onClose:{type:Function,default:function(){}},initialIndex:{type:Number,default:0}},data:function(){return{index:this.initialIndex,isShow:!1,infinite:!0,loading:!1,transform:{scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}},computed:{isSingle:function(){return this.urlList.length<=1},isFirst:function(){return 0===this.index},isLast:function(){return this.index===this.urlList.length-1},imgStyle:function(){var e=this.transform,t=e.scale,i=e.deg,n=e.offsetX,a=e.offsetY,r=e.enableTransition,o={transform:"scale(".concat(t,") rotate(").concat(i,"deg)"),transition:r?"transform .3s":"","margin-left":"".concat(n,"px"),"margin-top":"".concat(a,"px")};return o}},watch:{initialIndex:{immediate:!0,handler:function(e){this.index=e}},index:{immediate:!0,handler:function(e){this.reset(),this.onSwitch(e)}}},mounted:function(){var e=this;document.getElementById("image-viewer__canvas").onmousewheel=function(t){return t.deltaY>0?e.handleActions("zoomOut",{zoomRate:.015,enableTransition:!1}):e.handleActions("zoomIn",{zoomRate:.015,enableTransition:!1}),!1},this.deviceSupportInstall()},methods:{hide:function(){this.deviceSupportUninstall(),this.onClose()},deviceSupportInstall:function(){var e=this;this._keyDownHandler=function(t){t.stopPropagation();var i=t.keyCode;switch(i){case 27:e.hide();break;case 32:e.toggleMode();break;case 37:e.prev();break;case 38:e.handleActions("zoomIn");break;case 39:e.next();break;case 40:e.handleActions("zoomOut");break}},this._mouseWheelHandler=Object(s["b"])((function(t){var i=t.wheelDelta?t.wheelDelta:-t.detail;i>0?e.handleActions("zoomIn",{zoomRate:.015,enableTransition:!1}):e.handleActions("zoomOut",{zoomRate:.015,enableTransition:!1})})),Object(o["b"])(document,"keydown",this._keyDownHandler),Object(o["b"])(document,l,null)},deviceSupportUninstall:function(){Object(o["a"])(document,"keydown",this._keyDownHandler),Object(o["a"])(document,l,this._mouseWheelHandler),this._keyDownHandler=null,this._mouseWheelHandler=null},handleImgLoad:function(e){this.loading=!1},handleImgError:function(e){this.loading=!1,e.target.alt="加载失败"},handleMouseDown:function(e){var t=this;if(!this.loading&&0===e.button){var i=this.transform,n=i.offsetX,a=i.offsetY,r=e.pageX,l=e.pageY;this._dragHandler=Object(s["b"])((function(e){t.transform.offsetX=n+e.pageX-r,t.transform.offsetY=a+e.pageY-l})),Object(o["b"])(document,"mousemove",this._dragHandler),Object(o["b"])(document,"mouseup",(function(e){Object(o["a"])(document,"mousemove",t._dragHandler)})),e.preventDefault()}},reset:function(){this.transform={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}},toggleMode:function(){this.loading||this.reset()},prev:function(){if(!this.isFirst||this.infinite){var e=this.urlList.length;this.index=(this.index-1+e)%e}},next:function(){if(!this.isLast||this.infinite){var e=this.urlList.length;this.index=(this.index+1)%e}},handleActions:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.loading){var i=Object(r["a"])({zoomRate:.2,rotateDeg:90,enableTransition:!0},t),n=i.zoomRate,a=i.rotateDeg,o=i.enableTransition,s=this.transform;switch(e){case"zoomOut":s.scale>.2&&(s.scale=parseFloat((s.scale-n).toFixed(3)));break;case"zoomIn":s.scale<5&&(s.scale=parseFloat((s.scale+n).toFixed(3)));break;case"clocelise":s.deg+=a;break;case"anticlocelise":s.deg-=a;break}s.enableTransition=o}}}},u=c,d=(i("551d"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,"277055d0",null);t["default"]=f.exports},bf5d:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"research-info"},[i("el-form",{staticClass:"demo-form-inline",attrs:{model:e.researchInfo,size:"small"}},[i("el-form-item",{attrs:{label:"Field of Research:"}},[e.isEnglish?i("el-input",{attrs:{type:"textarea",autosize:"",readonly:""},model:{value:e.researchInfo.Research,callback:function(t){e.$set(e.researchInfo,"Research",t)},expression:"researchInfo.Research"}}):i("el-input",{attrs:{type:"textarea",autosize:"",readonly:""},model:{value:e.researchInfo.ResearchCN,callback:function(t){e.$set(e.researchInfo,"ResearchCN",t)},expression:"researchInfo.ResearchCN"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Grants:"}},[e.isEnglish?i("el-input",{attrs:{type:"textarea",autosize:"",readonly:""},model:{value:e.researchInfo.Grants,callback:function(t){e.$set(e.researchInfo,"Grants",t)},expression:"researchInfo.Grants"}}):i("el-input",{attrs:{type:"textarea",autosize:"",readonly:""},model:{value:e.researchInfo.GrantsCN,callback:function(t){e.$set(e.researchInfo,"GrantsCN",t)},expression:"researchInfo.GrantsCN"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Publications:"}},[i("el-input",{attrs:{type:"textarea",autosize:"",readonly:""},model:{value:e.auditView.BlindPublications,callback:function(t){e.$set(e.auditView,"BlindPublications",t)},expression:"auditView.BlindPublications"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Awards & Honors:"}},[e.isEnglish?i("el-input",{attrs:{type:"textarea",autosize:"",readonly:""},model:{value:e.researchInfo.AwardsHonors,callback:function(t){e.$set(e.researchInfo,"AwardsHonors",t)},expression:"researchInfo.AwardsHonors"}}):i("el-input",{attrs:{type:"textarea",autosize:"",readonly:""},model:{value:e.researchInfo.AwardsHonorsCN,callback:function(t){e.$set(e.researchInfo,"AwardsHonorsCN",t)},expression:"researchInfo.AwardsHonorsCN"}})],1)],1)],1)},a=[],r={props:{auditView:{type:Object,default:function(){return{}}},researchInfo:{type:Object,default:function(){return{}}},isEnglish:{type:Boolean}}},o=r,s=(i("8222"),i("2877")),l=Object(s["a"])(o,n,a,!1,null,null,null);t["default"]=l.exports},bf71:function(e,t,i){"use strict";i.d(t,"a",(function(){return n}));class n{constructor(){}log(e,t){}}n.instance=new n},bf9b:function(e,t,i){var n=i("3eba"),a=i("d81e"),r=a.updateCenterAndZoom;n.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var i=e.dataIndex,n=t.getData().tree,a=n.getNodeByDataIndex(i);a.isExpand=!a.isExpand}))})),n.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var i=t.coordinateSystem,n=r(i,e);t.setCenter&&t.setCenter(n.center),t.setZoom&&t.setZoom(n.zoom)}))}))},bfcf:function(e,t,i){"use strict";i("670b")},bfd8:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"measurement-wrapper",style:{height:e.height+10+"px"}},[i("div",{staticClass:"container",style:{height:e.height+"px"}},[e.isReadingShowSubjectInfo?i("h3",{staticStyle:{color:"#ddd",padding:"5px 0px",margin:"0"}},[e.subjectCode?i("span",[e._v(e._s(e.subjectCode)+" ")]):e._e(),e._v(" "),i("span",{staticStyle:{"margin-left":"5px"}},[e._v(e._s(e.taskBlindName))])]):e._e(),e._v(" "),i("div",{staticClass:"lesions"},[i("Questions",{ref:"ecrf",attrs:{"question-form-change-state":e.questionFormChangeState,"question-form-change-num":e.questionFormChangeNum,"is-first-change-task":e.isFirstChangeTask}})],1),e._v(" "),e.questions.length>0?e._l(e.questions,(function(t,n){return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],key:n,staticClass:"lesions lesions_wrapper"},["group"===t.Type?i("h4",{staticStyle:{color:"#ddd",padding:"5px 0px",margin:"0"}},[e._v("\n "+e._s("en"===e.language?t.GroupEnName:t.GroupName)+"\n ")]):e._e(),e._v(" "),i("div",{staticClass:"lesion_list"},e._l(t.Childrens,(function(n){return i("div",{directives:[{name:"show",rawName:"v-show",value:!(e.isBaseLineTask&&2===n.LesionType)&&!(e.isBaseLineTask&&3===n.LesionType),expression:"!(isBaseLineTask && item.LesionType === 2) && !(isBaseLineTask && item.LesionType === 3)"}],key:n.Id},["table"===n.Type?i("div",{staticClass:"flex-row"},[i("div",{staticClass:"title"},[e._v(e._s(n.QuestionName))]),e._v(" "),e.readingTaskState<2&&(e.isBaseLineTask||2===n.LesionType)?i("div",{staticClass:"add-icon",on:{click:function(t){return t.preventDefault(),e.handleAdd(n)}}},[i("i",{staticClass:"el-icon-plus"})]):e._e()]):e._e(),e._v(" "),"table"===n.Type&&n.TableQuestions?i("el-collapse",{attrs:{accordion:""},on:{change:e.handleCollapseChange},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},e._l(n.TableQuestions.Answers,(function(a,r){return i("el-collapse-item",{key:r,attrs:{name:n.Id+"_"+a.RowIndex}},[i("template",{slot:"title"},[i("div",{staticStyle:{width:"300px",position:"relative"},style:{color:e.activeName===n.Id+a.RowIndex?"#ffeb3b":"#fff"}},[e._v("\n "+e._s(e.getLesionName(n.OrderMark,a.RowIndex,t.Childrens))+"\n "),e._v(" "),e.readingTaskState<2&&0===parseInt(n.TableQuestions.Answers[r].saveTypeEnum)?i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$t("trials:reading:button:unsaved"),placement:"bottom"}},[i("i",{staticClass:"el-icon-warning",staticStyle:{color:"red"}})]):e._e(),e._v(" "),e.readingTaskState<2&&1===parseInt(n.TableQuestions.Answers[r].saveTypeEnum)?i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$t("trials:reading:button:incompleteInfor"),placement:"bottom"}},[i("i",{staticClass:"el-icon-warning",staticStyle:{color:"#ff9800"}})]):e._e(),e._v(" "),i("div",{staticStyle:{position:"absolute",left:"60px",top:"2px"}},[i("div",{staticStyle:{display:"flex","flex-direction":"row","font-size":"10px",width:"200px"}},[n.TableQuestions.Answers[r].lesionPart?i("div",{staticStyle:{"margin-left":"10px","margin-bottom":"5px"}},[e._v("\n "+e._s(n.TableQuestions.Answers[r].lesionPart)+"\n ")]):e._e(),e._v(" "),n.TableQuestions.Answers[r].lesionState?i("div",{staticStyle:{"margin-left":"10px","margin-bottom":"5px"}},[e._v("\n "+e._s(e.$fd("EvaluationOfState",parseInt(n.TableQuestions.Answers[r].lesionState)))+"\n ")]):e._e(),e._v(" "),n.TableQuestions.Answers[r].lesionType?i("div",{staticStyle:{"margin-left":"10px","margin-bottom":"5px"}},[e._v("\n "+e._s(n.TableQuestions.Answers[r].lesionType)+"\n ")]):e._e(),e._v(" "),isNaN(parseInt(n.TableQuestions.Answers[r].lesionNum))||4!==n.LesionType?e._e():i("div",{staticStyle:{"margin-left":"10px","margin-bottom":"5px"}},[e._v("\n "+e._s(n.TableQuestions.Answers[r].lesionNum)+"\n ")])])])],1)]),e._v(" "),i("QuestionForm",{ref:n.Id+"_"+a.RowIndex,refInFor:!0,attrs:{questions:n.TableQuestions.Questions,answers:n.TableQuestions.Answers[r],"lesion-type":n.LesionType,"order-mark":n.OrderMark,"table-questions":e.tableQuestions,"row-index":String(a.RowIndex),"question-name":n.QuestionName,"parent-qs-id":n.Id,"visit-task-id":e.visitTaskId,"is-current-task":e.isCurrentTask,"reading-task-state":e.readingTaskState,"is-base-line-task":e.isBaseLineTask},on:{getReadingQuestionAndAnswer:e.getReadingQuestionAndAnswer,determineExistsUnsavedLession:e.determineExistsUnsavedLession,resetQuestions:e.resetQuestions,close:e.close}})],2)})),1):e._e()],1)})),0)])})):e._e()],2)])},a=[],r=(i("f576"),i("28a5"),i("a481"),i("7514"),i("ac6a"),i("20d6"),i("96cf"),i("3b8d")),o=i("db72"),s=(i("c5f6"),i("9b92")),l=i("d862"),c=i("a588"),u=i("4360"),d=i("2f62"),f={name:"PCWG3Questions",components:{Questions:l["default"],QuestionForm:c["default"]},props:{isShow:{type:Boolean,required:!0},isReadingShowSubjectInfo:{type:Boolean,required:!0},questionFormChangeState:{type:Boolean,default:function(){return!1}},questionFormChangeNum:{type:Number,default:function(){return 0}}},data:function(){return{height:window.innerHeight-140,questions:[],activeName:"",activeItem:{activeRowIndex:null,activeCollapseId:null},visitTaskId:"",isCurrentTask:!1,loading:!1,unSaveTargets:[],temporaryLesions:[],readingTaskState:2,isBaseLineTask:!1,taskBlindName:"",tableQuestions:[],isFirstRender:!1,criterionType:null,subjectCode:"",isConvertedTask:null,isFirstChangeTask:null,TaskNum:null,BlindName:null,isMax:!1}},computed:Object(o["a"])({},Object(d["b"])(["visitTaskList","language","lastCanvasTaskId","currentReadingTaskState"])),watch:{lastCanvasTaskId:{immediate:!0,handler:function(e){e&&this.initList()}},currentReadingTaskState:{immediate:!0,handler:function(e){e&&(this.readingTaskState=e)}}},mounted:function(){var e=this;this.subjectCode=this.$router.currentRoute.query.subjectCode,window.addEventListener("message",this.receiveMsg),this.criterionType=parseInt(localStorage.getItem("CriterionType")),s["a"].$on("setCollapseActive",(function(t){e.setCollapseActive(t),console.log("setCollapseActive")})),s["a"].$on("changeLesionType",(function(t){e.changeLesionType(t),console.log("changeLesionType")})),s["a"].$on("getAllUnSaveLesions",(function(t){var i=e.getAllUnSaveLesions();t(i),console.log("getAllUnSaveLesions")})),window.addEventListener("resize",this.setHeight)},beforeDestroy:function(){s["a"].$off("setCollapseActive"),s["a"].$off("changeLesionType"),s["a"].$off("getUnSaveTarget")},methods:{initList:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,i,n,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this.visitTaskList.findIndex((function(e){return e.VisitTaskId===a.lastCanvasTaskId})),!(t>-1)){e.next=32;break}if(this.visitTaskId=this.visitTaskList[t].VisitTaskId,this.taskBlindName=this.visitTaskList[t].TaskBlindName,this.readingTaskState=this.visitTaskList[t].ReadingTaskState,this.isBaseLineTask=this.visitTaskList[t].IsBaseLineTask,this.isCurrentTask=this.visitTaskList[t].IsCurrentTask,this.activeName="",this.activeItem.activeRowIndex=null,this.activeItem.activeCollapseId=null,this.TaskNum=this.visitTaskList[t].VisitTaskNum,this.BlindName=this.visitTaskList[t].TaskBlindName,this.visitTaskList[t].IsInit){e.next=30;break}if(i=this.$loading({fullscreen:!0}),n=this.trialId=this.$router.currentRoute.query.trialId,this.visitTaskList[t].measureDataInit){e.next=18;break}return e.next=18,u["a"].dispatch("reading/getMeasuredData",this.visitTaskList[t].VisitTaskId);case 18:if(this.visitTaskList[t].studyListInit){e.next=21;break}return e.next=21,u["a"].dispatch("reading/getStudyInfo",{trialId:n,subjectVisitId:this.visitTaskList[t].VisitId,visitTaskId:this.visitTaskList[t].VisitTaskId,taskBlindName:this.visitTaskList[t].TaskBlindName});case 21:if(this.visitTaskList[t].readingQuestionsInit){e.next=24;break}return e.next=24,u["a"].dispatch("reading/getReadingQuestionAndAnswer",{trialId:n,visitTaskId:this.visitTaskList[t].VisitTaskId});case 24:if(this.visitTaskList[t].questionsInit){e.next=27;break}return e.next=27,u["a"].dispatch("reading/getDicomReadingQuestionAnswer",{trialId:n,visitTaskId:this.visitTaskList[t].VisitTaskId});case 27:return e.next=29,u["a"].dispatch("reading/setStatus",{visitTaskId:this.visitTaskList[t].VisitTaskId});case 29:i.close();case 30:this.questions=this.visitTaskList[t].ReadingQuestions,this.$nextTick((function(){a.$refs["ecrf"].getQuestions(a.visitTaskId),a.getTableQuestions(),a.tableQuestions.forEach((function(e){e.TableQuestions.Answers.forEach((function(t){var i="".concat(e.Id,"_").concat(t.RowIndex);a.$refs[i]&&a.$refs[i][0].initForm()}))}))}));case 32:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),modifyMeasuredData:function(e){if(e.questionInfo){this.activeItem.activeCollapseId=e.questionInfo.QuestionId,this.activeItem.activeRowIndex=String(e.questionInfo.RowIndex),this.activeName="".concat(this.activeItem.activeCollapseId,"_").concat(this.activeItem.activeRowIndex);var t="".concat(this.activeItem.activeCollapseId,"_").concat(this.activeItem.activeRowIndex);this.$refs[t][0].setMeasureData(e.measureData)}},setMeasuredData:function(e){var t=this;this.activeItem.activeCollapseId?this.$nextTick((function(){var i="".concat(t.activeItem.activeCollapseId,"_").concat(t.activeItem.activeRowIndex);t.$refs[i][0].questionForm&&t.$refs[i][0].questionForm.MeasureData&&e.data.uuid===t.$refs[i][0].questionForm.MeasureData.data.uuid||!t.$refs[i][0].questionForm.MeasureData?t.$refs[i][0].setMeasureData(e):t.isBaseLineTask?t.createNTTarget(e):t.createNLTarget(e)})):this.isBaseLineTask?this.createNTTarget(e):this.createNLTarget(e)},createNTTarget:function(e){var t=this.tableQuestions.findIndex((function(e){return 4===e.LesionType}));t>-1&&this.addTarget(this.tableQuestions[t],e)},setCollapseActive:function(e){if(e){if(this.activeItem.activeRowIndex===e.RowIndex&&this.activeItem.activeCollapseId===e.QuestionId)return;this.activeItem.activeCollapseId=e.QuestionId,this.activeItem.activeRowIndex=e.RowIndex,this.activeName="".concat(this.activeItem.activeCollapseId,"_").concat(this.activeItem.activeRowIndex)}},createNLTarget:function(e){var t=this.tableQuestions.findIndex((function(e){return 2===e.LesionType})),i=this.tableQuestions.findIndex((function(e){return 3===e.LesionType}));t>-1&&this.addTarget(this.tableQuestions[t],e,this.tableQuestions[i])},addTarget:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t,i,n){var a,r,o,s,l,c=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a={saveTypeEnum:0},r=t.TableQuestions.Questions.find((function(e){return 9===e.QuestionMark})),o=t.TableQuestions.Questions.find((function(e){return 7===e.QuestionMark})),o&&(a[o.Id]=2),s=this.getMaxRowIndex(t.TableQuestions.Answers),s<1&&!this.isBaseLineTask&&(s=this.getMaxRowIndex(n.TableQuestions.Answers)),a.RowIndex="".concat(s+1,".00"),r&&(a[r.Id]=this.BlindName,a["BlindName"]=this.BlindName,a["TaskNum"]=this.TaskNum),e.next=10,u["a"].dispatch("reading/addReadingQuestionAndAnswer",{lesionType:t.LesionType,visitTaskId:this.visitTaskId,lesionObj:a});case 10:this.activeItem.activeRowIndex=String(a.RowIndex),this.activeItem.activeCollapseId=t.Id,this.activeName="".concat(this.activeItem.activeCollapseId,"_").concat(this.activeItem.activeRowIndex),l="".concat(this.activeItem.activeCollapseId,"_").concat(this.activeItem.activeRowIndex),this.$nextTick((function(){c.$refs[l][0].setMeasureData(i)}));case 15:case"end":return e.stop()}}),e,this)})));function t(t,i,n){return e.apply(this,arguments)}return t}(),determineExistsUnsavedLession:function(e){if(this.getUnSaveTarget(),this.unSaveTargets.length>0){var t=String(this.unSaveTargets[0].rowIndex),i=this.unSaveTargets[0].questionId;if(t===String(this.activeItem.activeRowIndex)&&i===this.activeItem.activeCollapseId)return void e(!0);var n=this.$t("trials:reading:warnning:msg17");return n=n.replace("xxx",this.unSaveTargets[0].lessionName),this.$confirm(n,{type:"warning",showCancelButton:!1,callback:function(e){}}),void e(!1)}e(!0)},getReadingQuestionAndAnswer:function(){var e=this;return new Promise(function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(i){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.$loading({fullscreen:!0}),t.next=3,u["a"].dispatch("reading/refreshReadingQuestionAndAnswer",{trialId:e.$router.currentRoute.query.trialId,visitTaskId:e.visitTaskId}).then((function(){var t=e.visitTaskList.findIndex((function(t){return t.VisitTaskId===e.visitTaskId}));t>-1&&(e.visitTaskList[t].ReadingQuestions.length>0&&(e.questions=e.visitTaskList[t].ReadingQuestions),e.readingTaskState=e.visitTaskList[t].ReadingTaskState,e.isBaseLineTask=e.visitTaskList[t].IsBaseLineTask,e.isCurrentTask=e.visitTaskList[t].IsCurrentTask),e.getTableQuestions(),e.$nextTick((function(){e.tableQuestions.forEach((function(t){t.TableQuestions.Answers.forEach((function(i){var n="".concat(t.Id,"_").concat(i.RowIndex);e.$refs[n]&&e.$refs[n][0].initForm()}))}))}))}));case 3:return t.next=5,u["a"].dispatch("reading/refreshMeasuredData",e.visitTaskId);case 5:s["a"].$emit("getMeasureData"),n.close(),i();case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())},getUnSaveTarget:function(){var e=this;return this.unSaveTargets=[],this.isMax=!1,this.tableQuestions.map((function(t){t.TableQuestions&&t.TableQuestions.Answers&&t.TableQuestions.Answers.length<t.MaxQuestionCount?t.TableQuestions.Answers.map((function(i){if(!i.RowId){var n=e.getLesionName(t.OrderMark,i.RowIndex);e.unSaveTargets.push({lessionName:n,rowIndex:i.RowIndex,questionId:t.Id})}})):(e.isMax=!0,e.isBaseLineTask&&(e.isMax=!1),null===t.MaxQuestionCount&&(e.isMax=!1))})),this.unSaveTargets},resetQuestions:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.setQuestions(this.questions,t),e.next=3,u["a"].dispatch("reading/setReadingQuestionAndAnswer",{questions:this.questions,visitTaskId:this.visitTaskId});case 3:this.getTableQuestions();case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),setQuestions:function(e,t){var i=this;e.forEach((function(e){if("table"===e.Type&&e.Id===t.questionId){var n=e.TableQuestions.Answers.findIndex((function(e){return e.RowIndex===t.rowIndex}));for(var a in e.TableQuestions.Answers[n].isLymphLesion=t.isLymphLesion,e.TableQuestions.Answers[n].loctation=t.lesionOrgan,e.TableQuestions.Answers[n].lesionPart=t.lesionPart,e.TableQuestions.Answers[n].lesionLength=t.lesionLength,e.TableQuestions.Answers[n].lesionShort=t.lesionShort,e.TableQuestions.Answers[n].lesionState=t.lesionState,e.TableQuestions.Answers[n].lesionType=t.lesionType,e.TableQuestions.Answers[n].lesionNum=t.lesionNum,e.TableQuestions.Answers[n].saveTypeEnum=t.saveTypeEnum,t.anwsers)"MeasureData"===a&&t.anwsers[a]?(e.TableQuestions.Answers[n].InstanceId=t.anwsers[a].instanceId,e.TableQuestions.Answers[n].SeriesId=t.anwsers[a].seriesId,e.TableQuestions.Answers[n][a]=JSON.stringify(t.anwsers[a]),e.TableQuestions.Answers[n].isDicomReading=!(!1===t.anwsers[a].IsDicomReading||"False"===t.anwsers[a].IsDicomReading)):e.TableQuestions.Answers[n][a]=String(t.anwsers[a])}e.Childrens.length>0&&i.setQuestions(e.Childrens,t)}))},getQuestions:function(e){var t=this;return e.forEach((function(e){"table"===e.Type&&e.TableQuestions&&e.TableQuestions.Answers.length>0&&e.TableQuestions.Answers.forEach((function(i){t.$set(i,"loctation",t.getQuestionAnswer(e.TableQuestions.Questions,6,i)),t.$set(i,"lesionLength",t.getQuestionAnswer(e.TableQuestions.Questions,0,i)),t.$set(i,"lesionShort",t.getQuestionAnswer(e.TableQuestions.Questions,1,i));var n=t.getQuestionAnswer(e.TableQuestions.Questions,2,i);n=n?parseInt(n):null,t.$set(i,"isLymphLesion",n),t.$set(i,"isLesionSaved",!0);var a=t.getQuestionAnswer(e.TableQuestions.Questions,11,i);a=isNaN(parseInt(a))?"":parseInt(a),t.$set(i,"lesionNum",a);var r=t.getQuestionAnswer(e.TableQuestions.Questions,7,i);if(r=isNaN(parseInt(r))?"":parseInt(r),t.$set(i,"lesionState",r),i.RowId){var o=t.questions.findIndex((function(e){return 11===e.QuestionMark}));o>-1?t.$set(i,"saveTypeEnum",isNaN(parseInt(a))?1:2):t.$set(i,"saveTypeEnum",isNaN(parseInt(r))?1:2)}else t.$set(i,"saveTypeEnum",0)})),e.Childrens.length>0&&t.getQuestions(e.Childrens)})),e},getTableQuestions:function(){var e=this;this.tableQuestions=[],this.questions.map((function(t){"table"===t.Type&&e.tableQuestions.push(t),t.Childrens.length>0&&e.getTableQuestionsChild(t.Childrens)}))},getTableQuestionsChild:function(e){var t=this;e.map((function(e){"table"===e.Type&&t.tableQuestions.push(e),e.Childrens.length>0&&t.getTableQuestionsChild(e.Childrens)}))},getLesionName:function(e,t,i){var n="",a=t.split("."),r=parseInt(a[0]),o=parseInt(a[1]);return o>0?(o=String.fromCharCode(parseInt(a[1])-1+65+32),n="".concat(e).concat(String(r).padStart(2,"0")).concat(o)):n="".concat(e).concat(String(r).padStart(2,"0")),n},handleAdd:function(e){var t=this;if(this.getUnSaveTarget(),this.unSaveTargets.length>0){var i=this.$t("trials:reading:warnning:msg5");return i=i.replace("xxx",this.unSaveTargets[0].lessionName),void this.$confirm(i,{type:"warning",showCancelButton:!1,callback:function(e){}})}if(e.MaxQuestionCount&&e.MaxQuestionCount<=e.TableQuestions.Answers.length){var n=this.$t("trials:reading:pcwg:msg3").replace("xxx",e.QuestionName);n=n.replace("n",e.MaxQuestionCount),this.$confirm(n,{type:"warning",showCancelButton:!1,callback:function(e){}})}else{var a={saveTypeEnum:0},r=this.tableQuestions.findIndex((function(e){return 3===e.LesionType})),o=this.getMaxRowIndex(e.TableQuestions.Answers);o<1&&(o=this.getMaxRowIndex(this.tableQuestions[r].TableQuestions.Answers)),a.RowIndex="".concat(o+1,".00"),e.TableQuestions.Questions.forEach((function(e){9===e.QuestionMark?(a[e.Id]=t.BlindName,a["BlindName"]=t.BlindName,a["TaskNum"]=t.TaskNum):7===e.QuestionMark?a[e.Id]=2:a[e.Id]=""})),e.TableQuestions.Answers.push(a),this.activeItem.activeRowIndex=String(a.RowIndex),this.activeItem.activeCollapseId=e.Id,this.activeName="".concat(this.activeItem.activeCollapseId,"_").concat(this.activeItem.activeRowIndex)}},getMaxRowIndex:function(e){if(e.length>0){var t=[];e.forEach((function(e){var i=e.RowIndex;t.push(parseInt(i))}));var i=Math.max.apply(null,t);return i}return 0},handleCollapseChange:function(e){var t=this;if(this.activeName){var i=this.activeName.split("_");this.activeItem.activeRowIndex=i[1],this.activeItem.activeCollapseId=i[0],this.$nextTick((function(){var e="".concat(t.activeItem.activeCollapseId,"_").concat(t.activeItem.activeRowIndex);!1!==t.$refs[e][0].questionForm.IsDicomReading&&s["a"].$emit("imageLocation",{questionId:t.activeItem.activeCollapseId,rowIndex:t.activeItem.activeRowIndex,visitTaskId:t.visitTaskId,lesionName:t.$refs[e][0].lesionName,lesionType:t.$refs[e][0].lesionType})}))}else this.activeItem.activeRowIndex=null,this.activeItem.activeCollapseId=null},getAllUnSaveLesions:function(){var e=this,t=[];return this.tableQuestions.map((function(i){i.TableQuestions&&i.TableQuestions.Answers&&i.TableQuestions.Answers.map((function(n){var a="".concat(i.Id,"_").concat(n.RowIndex);if(e.$refs[a]&&e.$refs[a][0]&&2!==e.$refs[a][0].questionForm.saveTypeEnum){var r=e.getLesionName(i.OrderMark,n.RowIndex);t.push({lessionName:r,rowIndex:n.RowIndex,questionId:i.Id})}}))})),t},isCanActiveTool:function(e){if(this.getUnSaveTarget(),this.activeName){var t="".concat(this.activeItem.activeCollapseId,"_").concat(this.activeItem.activeRowIndex);if(this.$refs[t][0].questionForm.MeasureData&&this.isMax)return{isCanActiveTool:!1,reason:this.$t("trials:reading:pcwg:msg1")}}else if(this.isMax)return{isCanActiveTool:!1,reason:this.$t("trials:reading:pcwg:msg1")};if(this.unSaveTargets.length>0){var i=String(this.unSaveTargets[0].rowIndex),n=this.unSaveTargets[0].questionId,a="".concat(this.activeItem.activeCollapseId,"_").concat(this.activeItem.activeRowIndex);if(i!==this.activeItem.activeRowIndex||n!==this.activeItem.activeCollapseId||this.$refs[a][0].questionForm.MeasureData){var r=this.$t("trials:reading:warnning:msg5");return r=r.replace("xxx",this.unSaveTargets[0].lessionName),{isCanActiveTool:!1,reason:r}}return this.checkToolCanActive(e)}return this.activeItem.activeCollapseId?this.checkToolCanActive(e):this.isBaseLineTask?"ArrowAnnotate"===e||"RectangleRoi"===e?{isCanActiveTool:!0,reason:""}:{isCanActiveTool:!1,reason:""}:"ArrowAnnotate"===e?{isCanActiveTool:!0,reason:""}:{isCanActiveTool:!1,reason:""}},checkToolCanActive:function(e){var t="".concat(this.activeItem.activeCollapseId,"_").concat(this.activeItem.activeRowIndex);return this.$refs[t][0].questionForm.MeasureData?"ArrowAnnotate"!==e?{isCanActiveTool:!1,reason:this.$t("trials:reading:pcwg:msg5")}:{isCanActiveTool:!0,reason:""}:this.isBaseLineTask?"RectangleRoi"!==e&&"ArrowAnnotate"!==e?{isCanActiveTool:!1,reason:this.$t("trials:reading:pcwg:msg4")}:{isCanActiveTool:!0,reason:""}:4===this.$refs[t][0].lesionType&&"RectangleRoi"!==e&&"ArrowAnnotate"!==e?{isCanActiveTool:!1,reason:this.$t("trials:reading:pcwg:msg4")}:4!==this.$refs[t][0].lesionType&&"ArrowAnnotate"!==e?{isCanActiveTool:!1,reason:this.$t("trials:reading:pcwg:msg5")}:{isCanActiveTool:!0,reason:""}},close:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t&&this.getReadingQuestionAndAnswer(t.visitTaskId),this.activeItem.activeRowIndex=null,this.activeItem.activeCollapseId=null,this.activeName="";case 4:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()}},h=f,p=(i("7919"),i("2877")),m=Object(p["a"])(h,n,a,!1,null,"9fec8896",null);t["default"]=m.exports},bfde:function(e,t,i){},bffc:function(e,t,i){"use strict";var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{height:"100%",background:"#fff"}},[i("router-view")],1)},a=[];i.d(t,"a",(function(){return n})),i.d(t,"b",(function(){return a}))},c006:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"uploadFiles-container"},[i("el-upload",{staticClass:"upload-demo",attrs:{action:"","show-file-list":!1,"http-request":e.handleUploadFile,"file-list":e.fileList,accept:e.accept}},[i("el-button",{attrs:{size:"small",type:"primary",disabled:e.isDisabled}},[e._v("Upload")])],1)],1)},a=[],r=(i("386d"),i("20d6"),i("14b9"),i("7f7f"),i("ac6a"),i("a796")),o={name:"UploadFiles",props:{type:{type:String,required:!0},doctorId:{type:String,required:!0},accept:{type:String,required:!0}},data:function(){return{fileList:[],repeat:!1,isDisabled:!1}},mounted:function(){this.initFileList()},methods:{initFileList:function(){var e=this,t=this.$loading({fullscreen:!1,lock:!0,text:"Loading",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.07)"});Object(r["b"])(this.doctorId,this.type).then((function(i){t.close(),i.IsSuccess&&(i.Result.length>0?(e.fileList=e.formatterFileList(i.Result),e.$emit("getFileList",e.fileList)):e.fileList=[])})).catch((function(){t.close()}))},formatterFileList:function(e){var t=[];return e.forEach((function(e){var i={DoctorId:e.DoctorId,Type:e.Type,Path:e.Path,FullPath:e.FullPath,FileName:e.FileName,CreateTime:e.CreateTime,Id:e.Id};t.push(i)})),t},handleUploadFile:function(e){var t=this;if(this.repeat=!1,this.checkFileSuffix(e.file.name)){var i=this.fileList.some((function(t){return t.FileName===e.file.name}));i?this.$confirm("Override the existing resume?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"OK",cancelButtonText:"Cancel"}).then((function(){t.repeat=!0,t.uploadFile(e.file)})).catch((function(e){})):this.uploadFile(e.file)}else this.$message.error("Must be in ".concat(this.accept," format"))},uploadFile:function(e){var t=this;this.isDisabled=!0,Object(r["f"])(e,this.type,this.doctorId).then((function(i){if(t.repeat){var n=t.fileList.findIndex((function(t,i){return t.FileName===e.name}));t.fileList[n].Path=i.Result.FilePath,t.fileList[n].FullPath=i.Result.FullFilePath,t.fileList[n].ReUpload=!0}else{var a={DoctorId:t.doctorId,Type:t.type,Path:i.Result.FilePath,FullPath:i.Result.FullFilePath,FileName:e.name};t.fileList.push(a)}t.saveUploadFiles()})).catch((function(){t.isDisabled=!1}))},saveUploadFiles:function(){var e=this;Object(r["c"])(this.fileList).then((function(t){e.fileList=e.formatterFileList(t.Result),e.isDisabled=!1,e.$message.success("Uploaded successfully"),e.$emit("getFileList",e.fileList)})).catch((function(){e.isDisabled=!1}))},handleDeleteFile:function(e){var t=this;this.$confirm("Sure to remove?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){Object(r["a"])(e.Id,e.Path).then((function(i){i.IsSuccess&&(t.fileList.splice(t.fileList.findIndex((function(t){return t.Id===e.Id})),1),t.$emit("getFileList",t.fileList),t.$message({message:"Deleted successfully!",type:"success"}))}))})).catch((function(e){}))},checkFileSuffix:function(e){var t=e.lastIndexOf("."),i=e.substring(t+1,e.length);return 1===this.accept.toLocaleLowerCase().search(i.toLocaleLowerCase())}}},s=o,l=(i("a255"),i("2877")),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},c037:function(e,t,i){var n=i("3eba"),a=i("6d8b");i("f7c6"),i("1ab3");var r=i("7782"),o=i("98e7"),s=i("292e"),l=i("d3f47");r("pie",[{type:"pieToggleSelect",event:"pieselectchanged",method:"toggleSelected"},{type:"pieSelect",event:"pieselected",method:"select"},{type:"pieUnSelect",event:"pieunselected",method:"unSelect"}]),n.registerVisual(o("pie")),n.registerLayout(a.curry(s,"pie")),n.registerProcessor(l("pie"))},c067:function(e,t,i){},c07b:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"taskAllocationRuleDataForm",attrs:{model:e.form,size:"small",rules:e.rules,"label-width":"130px"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:e.$t("trials:reviewAssign:allocationRules:table:reader"),prop:"DoctorUserId"}},[i("el-select",{attrs:{disabled:!!e.form.Id,clearable:""},model:{value:e.form.DoctorUserId,callback:function(t){e.$set(e.form,"DoctorUserId",t)},expression:"form.DoctorUserId"}},e._l(e.doctorUserList,(function(e){return i("el-option",{attrs:{label:e.UserName+"("+e.FullName+")",value:e.DoctorUserId}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:reviewAssign:allocationRules:table:plannedCount"),prop:"PlanSubjectCount"}},[i("div",{staticStyle:{display:"flex","justify-content":"left","align-items":"center"}},[i("el-input-number",{attrs:{min:0,max:1e3,"controls-position":"right"},model:{value:e.form.PlanSubjectCount,callback:function(t){e.$set(e.form,"PlanSubjectCount",t)},expression:"form.PlanSubjectCount"}})],1)]),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:reviewAssign:allocationRules:table:status")}},[i("el-radio-group",{model:{value:e.form.IsEnable,callback:function(t){e.$set(e.form,"IsEnable",t)},expression:"form.IsEnable"}},e._l(e.$d.IsEnable,(function(t){return i("el-radio",{key:"form.IsEnable"+t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:reviewAssign:allocationRules:table:remark")}},[i("el-input",{attrs:{type:"textarea",maxlength:"100","show-word-limit":""},model:{value:e.form.Note,callback:function(t){e.$set(e.form,"Note",t)},expression:"form.Note"}})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.close}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.save}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])},a=[],r=i("db72"),o=(i("ac6a"),i("456d"),i("958c")),s={name:"AddOrUpdateTaskAllocationRuleData",props:{data:{type:Object,default:function(){return{}}},doctorUserList:{type:Array,default:function(){return[]}},TaskAllocationRuleList:{type:Array,default:function(){return[]}}},data:function(){return{form:{Id:null,TrialId:null,PlanSubjectCount:0,DoctorUserId:null,IsEnable:!0,Note:""},rules:{DoctorUserId:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}],PlanSubjectCount:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}]},loading:!1,btnLoading:!1}},mounted:function(){this.form.TrialId=this.$route.query.trialId,Object.keys(this.data).length&&this.data.Id&&(this.form=Object(r["a"])({},this.data))},methods:{save:function(){var e=this;this.$refs.taskAllocationRuleDataForm.validate((function(t){console.log(t),t&&(e.btnLoading=!0,e.loading=!0,Object(o["b"])(e.form).then((function(t){e.loading=!1,e.btnLoading=!1,e.$message.success(e.$t("common:message:savedSuccessfully")),e.$emit("getList")})).catch((function(){e.loading=!1,e.btnLoading=!1})))}))},close:function(){this.$emit("close")}}},l=s,c=i("2877"),u=Object(c["a"])(l,n,a,!1,null,"018aeb48",null);t["default"]=u.exports},c07d:function(e,t,i){"use strict";i("d22c")},c0ee:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-row",[i("el-col",{staticClass:"m-b-10",attrs:{span:24}},[i("el-table",e._b({directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:e.bottomOffset},expression:"{bottomOffset}"}],attrs:{data:e.list,height:e.tableHeight,stripe:"","highlight-current-row":e.highlightCurrentRow},on:{"selection-change":e.handleSelectionChange,"sort-change":e.sortByColumn,select:e.handleSelect,"cell-dblclick":e.celldblclick}},"el-table",e.$attrs,!1),[e._l(e.columns,(function(t,n){return[e._t("front-slot"),e._v(" "),"selection"===t.type?i("el-table-column",{key:n,attrs:{type:"selection",width:"55"}}):"index"===t.type?i("el-table-column",{key:n,attrs:{type:"index",width:"50"}}):i("el-table-column",{key:n,attrs:{align:"left",label:t.label,width:t.width,"min-width":t.minWidth,"show-overflow-tooltip":t.showOverflowTooltip||!1,sortable:t.sortable||!1,prop:t.prop},scopedSlots:e._u([{key:"default",fn:function(n){return[t.hidden?e._e():i("span",["operate"===t.type?i("span",e._l(t.operates,(function(t,a){return i("span",{key:a},[i("el-button",{staticStyle:{"margin-right":"5px"},attrs:{size:t.size||"mini",type:t.type||"primary"},on:{click:function(i){return e.handleClick(t,n.row)}}},[e._v(e._s(t.name))])],1)})),0):i("span",[e._v("\n "+e._s(n.row[t.prop])+"\n ")])]),e._v(" "),t.slot?i("span",[t.slot?e._t(t.slot,null,{scope:n}):e._e()],2):e._e()]}}],null,!0)})]})),e._v(" "),e._t("default")],2)],1),e._v(" "),e.hiddenPage?e._e():i("el-col",{staticClass:"page",attrs:{span:24}},[i("pagination",{attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.pagination}})],1)],1)},a=[],r=(i("c5f6"),i("333d")),o={name:"BaseTable",components:{Pagination:r["default"]},props:{list:{type:Array,default:function(){return[]}},columns:{type:Array,required:!0,default:function(){return[]}},hiddenPage:{type:Boolean,default:!1},bottomOffset:{type:Number,default:45},searchData:{type:Object,default:function(){}},total:{type:Number,default:0},highlightCurrentRow:{type:Boolean,default:!1}},data:function(){return{}},computed:{tableHeight:function(){return 100}},methods:{handleClick:function(e,t){this.$emit("".concat(e.emitKey),t)},handleSelectionChange:function(e){this.$emit("handleSelectionChange",e)},handleSelect:function(e,t){this.$emit("handleSelect",e,t)},celldblclick:function(e,t){this.$emit("celldblclick",e,t)},sortByColumn:function(e){this.$emit("sortByColumn",e)},pagination:function(){this.$emit("getList")}}},s=o,l=(i("c9935"),i("2877")),c=Object(l["a"])(s,n,a,!1,null,"5bc86f40",null);t["default"]=c.exports},c109d:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"search-container"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:researchRecord:table:siteId")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:"",filterable:""},model:{value:e.searchData.SiteId,callback:function(t){e.$set(e.searchData,"SiteId",t)},expression:"searchData.SiteId"}},e._l(e.siteOptions,(function(e,t){return i("el-option",{key:t,attrs:{label:e.TrialSiteCode,value:e.SiteId}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:researchRecord:table:contactor")}},[i("el-input",{staticClass:"mr",staticStyle:{width:"140px"},attrs:{clearable:"",placeholder:""+e.$t("trials:researchRecord:placeholder:contactorInfo")},model:{value:e.searchData.UserKeyInfo,callback:function(t){e.$set(e.searchData,"UserKeyInfo",t)},expression:"searchData.UserKeyInfo"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:researchRecord:table:status")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:"",filterable:""},model:{value:e.searchData.State,callback:function(t){e.$set(e.searchData,"State",t)},expression:"searchData.State"}},e._l(e.researchState,(function(e,t){return i("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:researchRecord:table:isDeleted")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:"",filterable:""},model:{value:e.searchData.IsDeleted,callback:function(t){e.$set(e.searchData,"IsDeleted",t)},expression:"searchData.IsDeleted"}},e._l(e.$d.YesOrNo,(function(t){return"无"!==t.raw.ValueCN?i("el-option",{attrs:{label:t.label,value:t.value}}):e._e()})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:researchRecord:table:updateTime")}},[i("el-date-picker",{staticStyle:{width:"250px"},attrs:{type:"daterange","value-format":"yyyy-MM-dd",format:"yyyy-MM-dd"},model:{value:e.searchData.DateRange,callback:function(t){e.$set(e.searchData,"DateRange",t)},expression:"searchData.DateRange"}})],1),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")]),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:attachments:site-research:summary-record"],expression:"['trials:trials-panel:attachments:site-research:summary-record']"}],attrs:{type:"primary",icon:"el-icon-info"},on:{click:e.showResearchUser}},[e._v("\n "+e._s(e.$t("trials:researchRecord:button:questionStaffs"))+"\n ")]),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:attachments:site-research:questionnaire-link"],expression:"['trials:trials-panel:attachments:site-research:questionnaire-link']"}],attrs:{type:"primary",icon:"el-icon-link"},on:{click:e.showResearchLink}},[e._v("\n "+e._s(e.$t("trials:researchRecord:button:questionLink"))+"\n ")])],1)],1),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"}],ref:"siteResearchList",attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialSiteCode",label:e.$t("trials:researchRecord:table:siteId"),"min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"SiteName",label:e.$t("trials:researchRecord:table:siteName"),"min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:e.$t("trials:researchRecord:table:contactor"),"min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Phone",label:e.$t("trials:researchRecord:table:contactorPhone"),"min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Email",label:e.$t("trials:researchRecord:table:contactorEmail"),"min-width":"150","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"preliminaryUser",label:e.$t("trials:researchRecord:table:preliminaryUser"),"min-width":"150","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.PreliminaryUser?t.row.PreliminaryUser.RealName:"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ReviewerUser",label:e.$t("trials:researchRecord:table:ReviewerUser"),"min-width":"150","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.ReviewerUser?t.row.ReviewerUser.RealName:"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"State",label:e.$t("trials:researchRecord:table:status"),"min-width":"150","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.State?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ResearchRecord",t.row.State)))]):e._e(),e._v(" "),1===t.row.State?i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("ResearchRecord",t.row.State)))]):e._e(),e._v(" "),2===t.row.State?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("ResearchRecord",t.row.State)))]):e._e(),e._v(" "),3===t.row.State?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ResearchRecord",t.row.State)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsDeleted",label:e.$t("trials:researchRecord:table:isDeleted"),"min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsDeleted?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsDeleted)))]):i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsDeleted)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"UpdateTime",label:e.$t("trials:researchRecord:table:updateTime"),"min-width":"150","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{disabled:0===t.row.State,circle:"",title:e.$t("trials:researchRecord:action:view"),icon:"el-icon-view"},on:{click:function(i){return e.handleViewResearchList(t.row)}}}),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:attachments:site-research:abolish"],expression:"['trials:trials-panel:attachments:site-research:abolish']"}],attrs:{disabled:0!==t.row.State||t.row.IsDeleted,circle:"",title:e.$t("trials:researchRecord:action:abolish"),icon:"el-icon-delete"},on:{click:function(i){return e.handleRepealResearch(t.row)}}})]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1),e._v(" "),e.researchUserVisible?i("el-dialog",{attrs:{visible:e.researchUserVisible,title:e.$t("trials:researchRecord:dialogTitle:questionStaff"),"custom-class":"base-dialog-wrapper",fullscreen:!0},on:{"update:visible":function(t){e.researchUserVisible=t}}},[i("div",{staticClass:"base-modal-body",staticStyle:{border:"1px solid #ccc",padding:"10px"}},[e.researchUserVisible?i("Users"):e._e()],1)]):e._e(),e._v(" "),e.researchInfoVisible?i("el-dialog",{attrs:{visible:e.researchInfoVisible,fullscreen:!0,"close-on-click-modal":!1},on:{"update:visible":function(t){e.researchInfoVisible=t}}},[e.researchInfoVisible?i("research-form",{on:{refreshPage:e.getList}}):e._e()],1):e._e(),e._v(" "),i("base-model",{attrs:{config:e.share_model}},[i("template",{slot:"dialog-body"},[i("div",[i("i",{staticClass:"el-icon-success",staticStyle:{color:"#00d1b2"}}),e._v(" "),i("span",[e._v(e._s(e.$t("trials:researchRecord:message:createLinkSuccessfully")))])]),e._v(" "),i("div",{staticStyle:{margin:"10px 0"}},[e._v("\n "+e._s(e.$t("trials:researchRecord:label:link"))+"\n "),i("el-input",{ref:"shareLink",attrs:{readonly:"",type:"textarea",autosize:""},model:{value:e.shareLink,callback:function(t){e.shareLink=t},expression:"shareLink"}})],1),e._v(" "),i("div",[i("el-button",{attrs:{type:"primary",round:""},on:{click:e.copyLink}},[e._v("\n "+e._s(e.$t("trials:researchRecord:button:copyLink"))+"\n ")])],1)])],2)],2)},a=[],r=i("3e42"),o=i("a599"),s=i("6071"),l=i("333d"),c=i("b768"),u=i("027d"),d=i("7eeb"),f=function(){return{SortField:"",Asc:!0,PageIndex:1,PageSize:20,SiteId:"",UserKeyInfo:"",State:null,IsDeleted:"",DateRange:""}},h={name:"SiteResearchList",components:{BaseContainer:s["default"],Pagination:l["default"],Users:c["default"],ResearchForm:u["default"],BaseModel:d["default"]},data:function(){return{searchData:f(),loading:!1,list:[],total:0,trialId:this.$route.query.trialId,siteOptions:[],researchUserVisible:!1,researchInfoVisible:!1,share_model:{visible:!1,title:"",width:"500px"},shareLink:"",researchState:this.$d.ResearchRecord}},mounted:function(){this.getList(),this.getSite()},methods:{getList:function(){var e=this;this.loading=!0,this.searchData.TrialId=this.trialId,Object(r["ae"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},handleViewResearchList:function(e){Object(o["a"])("trialSiteSurveyId",e.Id),this.researchInfoVisible=!0},handleRepealResearch:function(e){var t=this;this.$confirm(this.$t("trials:researchRecord:message:abolish"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){Object(r["g"])(t.trialId,e.Id).then((function(e){e.IsSuccess&&(t.getList(),t.$message.success(t.$t("trials:researchRecord:message:abolishSuccessfully")))}))}))},showResearchUser:function(){this.researchUserVisible=!0},copyLink:function(){var e=this;this.$copyText("".concat(this.$t("trials:researchRecord:message:researchFormLink"),": ").concat(this.shareLink)).then((function(t){e.$message.success(e.$t("trials:researchRecord:message:copySuccessfully"))})).catch((function(){e.$message.error(e.$t("trials:researchRecord:message:copyFailed"))}))},getSite:function(){var e=this;Object(r["Zd"])(this.trialId).then((function(t){e.siteOptions=t.Result}))},showResearchLink:function(){var e=this.trialId;this.shareLink="".concat(location.protocol,"//").concat(location.host,"/researchLogin?trialId=").concat(e),this.share_model.visible=!0},handleReset:function(){var e=this;this.searchData=f(),2===this.searchData.DateRange.length?(this.searchData.UpdateTimeBegin=this.searchData.DateRange[0],this.searchData.updateTimeEnd=this.searchData.DateRange[1]):(this.searchData.UpdateTimeBegin="",this.searchData.updateTimeEnd=""),this.getList(),this.$nextTick((function(){e.$refs.siteResearchList.clearSort()}))},handleSearch:function(){this.getList()},handleSortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.getList()}}},p=h,m=i("2877"),g=Object(m["a"])(p,n,a,!1,null,null,null);t["default"]=g.exports},c135:function(e,t){function i(e){if(Array.isArray(e))return e}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},c15b:function(e,t,i){"use strict";i("b72c")},c17f:function(e,t,i){},c1b0:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.isRender?i("el-form",{ref:"questionForm",staticStyle:{width:"600px"},attrs:{model:e.questionForm,size:"small"}},[e._l(e.answers,(function(t){return[t.IsShow?i("el-form-item",{key:t.TrialQCQuestionConfigureId,attrs:{label:""+t.QuestionName,prop:t.TrialQCQuestionConfigureId,rules:{required:t.IsRequired,message:e.$t("common:ruleMessage:specify")}}},["input"===t.Type?i("el-input",{staticStyle:{width:"500px"},attrs:{disabled:!t.IsEnable||e.isAudit},model:{value:e.questionForm[t.TrialQCQuestionConfigureId],callback:function(i){e.$set(e.questionForm,t.TrialQCQuestionConfigureId,i)},expression:"questionForm[item.TrialQCQuestionConfigureId]"}}):e._e(),e._v(" "),"textarea"===t.Type?i("el-input",{staticStyle:{width:"500px"},attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},disabled:!t.IsEnable||e.isAudit},model:{value:e.questionForm[t.TrialQCQuestionConfigureId],callback:function(i){e.$set(e.questionForm,t.TrialQCQuestionConfigureId,i)},expression:"questionForm[item.TrialQCQuestionConfigureId]"}}):e._e(),e._v(" "),"select"===t.Type?i("el-select",{attrs:{disabled:!t.IsEnable||e.isAudit},on:{change:function(i){e.formItemChange(i,t)}},model:{value:e.questionForm[t.TrialQCQuestionConfigureId],callback:function(i){e.$set(e.questionForm,t.TrialQCQuestionConfigureId,i)},expression:"questionForm[item.TrialQCQuestionConfigureId]"}},e._l(t.TypeValue.split("|"),(function(e){return i("el-option",{key:e,attrs:{label:e,value:e}})})),1):e._e(),e._v(" "),"radio"===t.Type?i("el-radio-group",{attrs:{disabled:!t.IsEnable||e.isAudit},on:{change:function(i){e.formItemChange(i,t)}},model:{value:e.questionForm[t.TrialQCQuestionConfigureId],callback:function(i){e.$set(e.questionForm,t.TrialQCQuestionConfigureId,i)},expression:"questionForm[item.TrialQCQuestionConfigureId]"}},e._l(t.TypeValue.split("|"),(function(t){return i("el-radio",{key:t,attrs:{label:t}},[e._v(e._s(t))])})),1):e._e(),e._v(" "),"checkbox"===t.Type?i("el-checkbox-group",{attrs:{disabled:!t.IsEnable||e.isAudit},on:{change:function(i){e.formItemChange(i,t)}},model:{value:e.questionForm[t.TrialQCQuestionConfigureId],callback:function(i){e.$set(e.questionForm,t.TrialQCQuestionConfigureId,i)},expression:"questionForm[item.TrialQCQuestionConfigureId]"}},e._l(t.TypeValue.split("|"),(function(t){return i("el-checkbox",{key:t,attrs:{label:t}},[e._v(e._s(t))])})),1):e._e()],1):e._e()]}))],2):e._e()},a=[],r=(i("ac6a"),{props:{answers:{type:Array,default:function(){return[]}},isAudit:{type:Boolean,default:!1}},data:function(){return{questionForm:{},isRender:!1}},mounted:function(){this.formatAnswers()},methods:{formatAnswers:function(){var e=this;this.answers.forEach((function(t,i){!t.IsChild||t.IsChild&&""!==t.Answer?(e.$set(e.answers[i],"IsShow",!0),e.$set(e.questionForm,t.TrialQCQuestionConfigureId,t.Answer)):(e.$set(e.answers[i],"IsShow",!1),e.$set(e.questionForm,t.TrialQCQuestionConfigureId,""))})),this.isRender=!0},formItemChange:function(e,t){var i=this;this.answers.forEach((function(n,a){if(n.ParentId===t.TrialQCQuestionConfigureId)if(n.ParentTriggerValue===e)i.$set(i.answers[a],"Answer",""),i.$set(i.questionForm,n.TrialQCQuestionConfigureId,""),i.$set(i.answers[a],"IsShow",!0);else{i.$set(i.answers[a],"Answer",""),i.$set(i.answers[a],"IsShow",!1),i.$set(i.questionForm,n.TrialQCQuestionConfigureId,"");var r=i;i.removeChild(n.TrialQCQuestionConfigureId,r)}}))},removeChild:function(e,t){t.answers.length>0&&t.answers.forEach((function(i,n){i.ParentId===e&&(t.$set(t.answers[n],"Answer",""),t.$set(t.answers[n],"IsShow",!1),t.$set(t.questionForm,i.TrialQCQuestionConfigureId,""),t.removeChild(i.TrialQCQuestionConfigureId,t))}))},submit:function(){var e=this;return new Promise((function(t,i){e.$refs["questionForm"].validate((function(n){n?(e.answers.forEach((function(t,i){t.IsShow&&e.$set(e.answers[i],"Answer",e.questionForm[t.TrialQCQuestionConfigureId])})),t(e.answers)):(e.$confirm(e.$t("trials:audit:message:specifyQuestions"),{type:"warning",showCancelButton:!1,callback:function(e){}}),i())}))}))}}}),o=r,s=i("2877"),l=Object(s["a"])(o,n,a,!1,null,null,null);t["default"]=l.exports},c1c6:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"chat-wrapper"},[i("div",{staticClass:"chat-content"},e._l(e.recordContent,(function(t,n){return i("div",{key:n},[t.IsCurrentUser?i("div",{staticClass:"word-my"},[i("div",{staticClass:"info"},[i("p",{staticClass:"user-info"},[i("span",{staticStyle:{"font-weight":"700"}},[e._v(e._s(t.CreateUserName)+" ")]),e._v(" "),i("span",[e._v("("+e._s(t.CreateTime)+") ")])]),e._v(" "),i("div",{staticClass:"info-content",domProps:{innerHTML:e._s(t.TalkContent)}})]),e._v(" "),1*t.UserTypeEnum===8?i("img",{attrs:{src:e.adminAvatar,alt:"Admin"}}):1*t.UserTypeEnum===1?i("img",{attrs:{src:e.pmAvatar,alt:"PM"}}):1*t.UserTypeEnum===2?i("img",{attrs:{src:e.crcAvatar,alt:"CRC"}}):1*t.UserTypeEnum===3?i("img",{attrs:{src:e.qcAvatar,alt:"QC"}}):e._e()]):i("div",{staticClass:"word"},[1*t.UserTypeEnum===8?i("img",{attrs:{src:e.adminAvatar,alt:"Admin"}}):1*t.UserTypeEnum===1?i("img",{attrs:{src:e.pmAvatar,alt:"PM"}}):1*t.UserTypeEnum===2?i("img",{attrs:{src:e.crcAvatar,alt:"CRC"}}):1*t.UserTypeEnum===3?i("img",{attrs:{src:e.qcAvatar,alt:"QC"}}):e._e(),e._v(" "),i("div",{staticClass:"info"},[i("p",{staticClass:"user-info"},[i("span",{staticStyle:{"font-weight":"700"}},[e._v(e._s(t.CreateUserName)+" ")]),e._v(" "),i("span",[e._v("("+e._s(t.CreateTime)+") ")])]),e._v(" "),i("div",{staticClass:"info-content",domProps:{innerHTML:e._s(t.TalkContent)}})])])])})),0),e._v(" "),e.hasPermi(["trials:trials-panel:visit:crc-upload:send"])?i("div",{directives:[{name:"show",rawName:"v-show",value:e.showNewMessage,expression:"showNewMessage"}],staticClass:"chat-message"},[i("div",{staticClass:"message"},[i("el-input",{attrs:{type:"textarea",rows:2},model:{value:e.newMessage,callback:function(t){e.newMessage=t},expression:"newMessage"}})],1),e._v(" "),i("div",{staticClass:"function"},[i("el-button",{directives:[{name:"show",rawName:"v-show",value:0===e.ReuploadEnum||3===e.ReuploadEnum,expression:"ReuploadEnum === 0 || ReuploadEnum === 3"},{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:crc-upload:apply-reupload"],expression:"['trials:trials-panel:visit:crc-upload:apply-reupload']"}],attrs:{type:"primary"},on:{click:e.handleCRCApplyReupload}},[e._v("\n "+e._s(e.$t("trials:crcQuestion:button:applyReupload"))+"\n ")]),e._v(" "),i("el-button",{directives:[{name:"show",rawName:"v-show",value:2===e.ReuploadEnum,expression:"ReuploadEnum === 2"},{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:crc-upload:reupload"],expression:"['trials:trials-panel:visit:crc-upload:reupload']"}],attrs:{type:"primary",loading:e.uploadBtnLoading},on:{click:e.openUploadDialog}},[e._v("\n "+e._s(e.$t("trials:crcQuestion:button:reupload"))+"\n ")]),e._v(" "),i("el-button",{directives:[{name:"show",rawName:"v-show",value:2===e.ReuploadEnum,expression:" ReuploadEnum === 2"},{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:crc-upload:set-reupload-finished"],expression:"['trials:trials-panel:visit:crc-upload:set-reupload-finished']"}],attrs:{type:"primary"},on:{click:e.handleSetUploadFinished}},[e._v("\n "+e._s(e.$t("trials:crcQuestion:button:reuploadCompleted"))+"\n ")]),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:crc-upload:send"],expression:"['trials:trials-panel:visit:crc-upload:send']"}],attrs:{disabled:""===e.newMessage,type:"primary",loading:e.btnLoading},on:{click:e.handleReply}},[e._v("\n "+e._s(e.$t("trials:crcQuestion:button:send"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",loading:e.btnLoading},on:{click:e.close}},[e._v("\n "+e._s(e.$t("trials:crcQuestion:button:close"))+"\n ")])],1)]):e._e(),e._v(" "),e.uploadVisible?i("el-dialog",{attrs:{visible:e.uploadVisible,fullscreen:!0,"append-to-body":"","custom-class":"upload-dialog"},on:{"update:visible":function(t){e.uploadVisible=t}}},[i("span",{attrs:{slot:"title"},slot:"title"},[i("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},[i("label",{staticStyle:{float:"left","margin-right":"10px"}},[e._v("Upload: ")]),e._v(" "),i("el-breadcrumb-item",{directives:[{name:"show",rawName:"v-show",value:e.trialCode,expression:"trialCode"}]},[e._v(e._s(e.trialCode))]),e._v(" "),i("el-breadcrumb-item",{directives:[{name:"show",rawName:"v-show",value:e.data.TrialSiteCode,expression:"data.TrialSiteCode"}]},[e._v(e._s(e.data.TrialSiteCode))]),e._v(" "),i("el-breadcrumb-item",{directives:[{name:"show",rawName:"v-show",value:e.data.SubjectCode,expression:"data.SubjectCode"}]},[e._v(e._s(e.data.SubjectCode))]),e._v(" "),i("el-breadcrumb-item",{directives:[{name:"show",rawName:"v-show",value:e.data.VisitName,expression:"data.VisitName"}]},[e._v(e._s(e.data.VisitName+" ("+e.data.VisitNum+")"))])],1)],1),e._v(" "),i("div",[i("el-tabs",{attrs:{type:"border-card"},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[i("el-tab-pane",{attrs:{label:e.$t("trials:uploadedDicoms:tab:uploadDicoms"),name:"dicom"}},[e.uploadVisible?i("upload-dicom-files",{attrs:{data:e.data,"subject-id":e.data.SubjectId,"subject-visit-id":e.data.SubjectVisitId},on:{close:e.closeUpload,getList:e.reFreshList}}):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:e.$t("trials:uploadNonDicoms:tab:uploadNonDicoms"),name:"non-dicom"}},["non-dicom"===e.activeName?i("upload-non-dicom-files",{attrs:{data:e.data,"site-id":e.data.SiteId,"subject-id":e.data.SubjectId,"allow-add-or-edit":!0,"body-parts":e.bodyParts,modalities:e.modalities,"subject-visit-id":e.data.SubjectVisitId},on:{getList:e.reFreshList}}):e._e()],1),e._v(" "),e.data.IsBaseLine&&e.clinicalEnum>0?i("el-tab-pane",{attrs:{label:e.$t("trials:uploadClinicalData:tab:uploadClinicalData"),name:"clinical-data"}},["clinical-data"===e.activeName?i("upload-clinical-data",{attrs:{"allow-add-or-edit":!0,data:e.data,"subject-visit-id":e.data.SubjectVisitId,"enum-type":e.clinicalEnum},on:{getList:e.reFreshList}}):e._e()],1):e._e()],1)],1)]):e._e(),e._v(" "),e.signVisible?i("el-dialog",{attrs:{visible:e.signVisible,"close-on-click-modal":!1,width:"600px","append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.signVisible=t}}},[i("div",{attrs:{slot:"title"},slot:"title"},[i("span",{staticStyle:{"font-size":"18px"}},[e._v(e._s(e.$t("common:dialogTitle:sign")))]),e._v(" "),i("span",{staticStyle:{"font-size":"12px","margin-left":"5px"}},[e._v(e._s("("+e.$t("common:label:sign")+e.currentUser+")"))])]),e._v(" "),i("SignForm",{ref:"signForm",attrs:{"sign-code-enum":e.signCode,"subject-visit-id":e.data.SubjectVisitId},on:{closeDialog:e.closeReuploadFinishedDialog}})],1):e._e()],1)},a=[],r=(i("ac6a"),i("28a5"),i("c5f6"),i("3e42")),o=i("9a3b"),s=i("268e"),l=i.n(s),c=i("19c3"),u=i.n(c),d=i("011b"),f=i.n(d),h=i("303f"),p=i.n(h),m=i("0280"),g=i("4ebb"),v=i("dda6"),b=i("179b"),y=i("5be4"),w=i("7a9e"),_={name:"ChatForm",components:{UploadDicomFiles:m["default"],UploadNonDicomFiles:g["default"],UploadClinicalData:v["default"],SignForm:b["default"]},props:{data:{type:Object,default:function(){return{}}},bodyParts:{type:String,default:""},modalities:{type:String,default:""},signText:{type:String,default:""},clinicalEnum:{type:Number,default:0}},data:function(){return{recordContent:[],newMessage:"",showNewMessage:!1,loading:!1,btnLoading:!1,userId:zzSessionStorage.getItem("userId"),adminAvatar:l.a,pmAvatar:u.a,crcAvatar:f.a,qcAvatar:p.a,trialCode:this.$route.query.trialCode,needReUpload:!1,uploadVisible:!1,setUploadLoading:!1,activeName:"dicom",isReuploaded:!1,currentUser:zzSessionStorage.getItem("userName"),signVisible:!1,signCode:"",ReuploadEnum:0,trialId:"",uploadBtnLoading:!1}},mounted:function(){this.trialId=this.$route.query.trialId,this.data.IsClosed||(this.showNewMessage=!0),this.ReuploadEnum=1*this.data.ReuploadEnum,this.getMessageList()},methods:{getMessageList:function(){var e=[],t=[];this.data.Content&&-1!==this.data.Content.indexOf("|")?t=this.data.Content.split("|"):this.data.Content&&""!==this.data.Content&&t.push(this.data.Content);var i=t.map((function(e){return"<li>".concat(e,"</li>")})),n="\n <div>".concat(this.$t("trials:qcQuality:dialog:qcContent"),"\n <ol>\n ").concat(i.join(""),"\n </ol>\n </div>\n <p>\n ").concat(this.$t("trials:qcQuality:dialogTips:tip"),"\n </p>\n <p style='color:red'>").concat(this.$t("trials:qcQuality:dialog:deadline"),": ").concat(this.data.DeadlineTime?this.data.DeadlineTime:this.$t("trials:qcQuality:dialog:none"),"}</p>"),a=zzSessionStorage.getItem("userId");e.push({IsCurrentUser:this.data.CreateUserId===a,TalkContent:n,CreateTime:this.data.CreateTime,CreateUserName:this.data.CreateUserName,CreateUserId:this.data.CreateUserId,UserTypeEnum:this.data.UserTypeEnum}),this.data.DialogList.forEach((function(t){e.push(t)})),this.recordContent=e,this.setScrollHeight()},addMessage:function(e){this.recordContent.push(e),this.setScrollHeight()},getMessageList2:function(){var e=this;this.loading=!0;var t=[],i=[];this.data.Content&&-1!==this.data.Content.indexOf("|")?i=this.data.Content.split("|"):this.data.Content&&""!==this.data.Content&&i.push(this.data.Content);var n=i.map((function(e){return"<li>".concat(e,"</li>")})),a="\n <div>".concat(this.$t("trials:qcQuality:dialog:qcContent"),"\n <ol>\n ").concat(n.join(""),"\n </ol>\n </div>\n <p>\n ").concat(this.$t("trials:qcQuality:dialogTips:tip"),"\n </p>\n <p style='color:red'>").concat(this.$t("trials:qcQuality:dialog:deadline"),": ").concat(this.data.DeadlineTime?this.data.DeadlineTime:this.$t("trials:qcQuality:dialog:none"),"}</p>"),o=zzSessionStorage.getItem("userId");t.push({IsCurrentUser:this.data.CreateUserId===o,TalkContent:a,CreateTime:this.data.CreateTime,CreateUserName:this.data.CreateUserName,CreateUserId:this.data.CreateUserId,UserTypeEnum:this.data.UserTypeEnum}),Object(r["Dc"])(this.data.Id).then((function(i){e.loading=!1,i.Result.forEach((function(e){t.push(e)})),e.recordContent=t,e.setScrollHeight()})).catch((function(){e.loading=!1}))},setScrollHeight:function(){setTimeout((function(){var e=document.querySelectorAll(".chat-content")[0];e.scrollTop=e.scrollHeight}),100)},handleReply:function(){var e=this;if(this.newMessage){this.btnLoading=!0;var t={talkContent:this.newMessage,qcChallengeId:this.data.Id,subjectVisitId:this.data.SubjectVisitId};Object(r["G"])(this.trialId,t).then((function(t){e.btnLoading=!1,t.IsSuccess&&(e.newMessage="",e.reFreshList())})).catch((function(){e.btnLoading=!1}))}},openUploadDialog:function(){var e=this,t=this.data.Id;t&&(this.uploadBtnLoading=!0,Object(r["Lf"])(this.trialId,t).then((function(t){e.uploadBtnLoading=!1,t.IsSuccess&&(y["a"].studyList=[],e.uploadVisible=!0)})).catch((function(){e.$emit("getDialogList"),e.uploadBtnLoading=!1})))},close:function(){this.$emit("close")},reFreshList:function(){this.$emit("getDialogList")},closeUpload:function(){this.uploadVisible=!0},handleCRCApplyReupload:function(){var e=this;this.$confirm(this.$t("trials:crcQuestion:message:applyReupload"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){e.loading=!0,Object(r["S"])(e.trialId,e.data.SubjectVisitId,e.data.Id).then((function(t){t.IsSuccess&&(e.ReuploadEnum=1,e.$message.success(e.$t("common:message:savedSuccessfully")),e.reFreshList()),e.loading=!1})).catch((function(){e.loading=!1}))})).catch((function(){}))},handleSetUploadFinished:function(){var e=this;if(this.clinicalEnum>0&&this.data.IsBaseLine){var t=w["default"].processSignature.ClinicalDataConfirmation;this.signCode=t,this.signVisible=!0}else this.$confirm(this.$t("trials:crcQuestion:message:reuploadConfirm"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){e.setReuploadFinished()})).catch((function(){}))},setReuploadFinished:function(e){var t=this;this.loading=!0;var i={data:{QcChallengeId:this.data.Id,TrialId:this.trialId,SetOrCancel:!0},signInfo:e};Object(o["d"])(i).then((function(i){e&&(t.$refs["signForm"].btnLoading=!1,t.signVisible=!1),t.loading=!1,i.IsSuccess&&(t.ReuploadEnum=3,t.$message.success(t.$t("common:message:savedSuccessfully")),t.reFreshList())})).catch((function(){t.loading=!1,t.$refs["signForm"].btnLoading=!1}))},closeReuploadFinishedDialog:function(e,t){e?this.setReuploadFinished(t):this.signVisible=!1}}},I=_,x=(i("3264"),i("2877")),S=Object(x["a"])(I,n,a,!1,null,null,null);t["default"]=S.exports},c1f8:function(e,t,i){},c22c:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",[i("div",{staticClass:"search"},[i("el-form",{staticClass:"base-search-form",attrs:{inline:!0,size:"small"}},[i("el-form-item",{attrs:{label:"Hospital:"}},[i("el-input",{staticStyle:{width:"100px"},model:{value:e.searchData.HospitalName,callback:function(t){e.$set(e.searchData,"HospitalName",t)},expression:"searchData.HospitalName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Province:"}},[i("el-input",{staticStyle:{width:"100px"},model:{value:e.searchData.Province,callback:function(t){e.$set(e.searchData,"Province",t)},expression:"searchData.Province"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"City:"}},[i("el-input",{staticStyle:{width:"100px"},model:{value:e.searchData.City,callback:function(t){e.$set(e.searchData,"City",t)},expression:"searchData.City"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("Search")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("Reset")])],1)],1),e._v(" "),i("span",{staticStyle:{"margin-left":"auto"}},[i("el-button",{staticStyle:{"margin-left":"auto"},attrs:{size:"small",type:"primary",icon:"el-icon-plus"},on:{click:e.handleAddHospital}},[e._v("New")])],1)],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"}],attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"HospitalName",label:"Hospital","min-width":"120","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"HospitalNameCN",label:"Hospital CN","min-width":"120","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"UniversityAffiliated",label:"University Affiliated","min-width":"170","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"UniversityAffiliatedCN",label:"University Affiliated CN","min-width":"170","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Country",label:"Country",width:"120","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"CountryCN",label:"Country CN",width:"140","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Province",label:"Province",width:"120","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"ProvinceCN",label:"Province CN",width:"140","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"City",label:"City",width:"120","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"CityCN",label:"City CN",width:"120","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{label:"Action",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{circle:"",icon:"el-icon-edit-outline",title:"编辑"},on:{click:function(i){return e.handleEdit(t.row)}}}),e._v(" "),i("el-button",{attrs:{circle:"",icon:"el-icon-delete",title:"删除"},on:{click:function(i){return e.handleDelete(t.row)}}})]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}}),e._v(" "),e.editDialog.visible?i("el-dialog",{attrs:{visible:e.editDialog.visible,"close-on-click-modal":!1,title:e.editDialog.title,width:"600px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){return e.$set(e.editDialog,"visible",t)}}},[e.editDialog.visible?i("hospital-form",{attrs:{data:e.rowData},on:{close:e.close,getList:e.getList}}):e._e()],1):e._e()],1)},a=[],r=(i("20d6"),i("e56e")),o=i("f36a"),s=i("333d"),l=i("e12a"),c=function(){return{HospitalName:"",Province:"",City:"",PageIndex:1,PageSize:20,Asc:!0,SortField:""}},u={name:"Hospitals",components:{BoxContent:o["default"],Pagination:s["default"],HospitalForm:l["default"]},data:function(){return{searchData:c(),editDialog:{visible:!1,title:""},list:[],total:0,loading:!1,rowData:{}}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0,Object(r["ib"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},handleAddHospital:function(){this.rowData={},this.editDialog.title="Add",this.editDialog.visible=!0},handleEdit:function(e){this.rowData=e,this.editDialog.title="Edit",this.editDialog.visible=!0},handleDelete:function(e){var t=this;this.$confirm("Sure to delete?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){t.loading=!0,Object(r["E"])(e.Id).then((function(i){i.IsSuccess&&(t.list.splice(t.list.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success("Deleted successfully!")),t.loading=!1})).catch((function(){t.loading=!1}))}))},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=c(),this.getList()},handleSortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()},close:function(){this.editDialog.visible=!1}}},d=u,f=(i("29ce"),i("2877")),h=Object(f["a"])(d,n,a,!1,null,"04d7b4f4",null);t["default"]=h.exports},c240:function(e,t){function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},c26b:function(e,t,i){"use strict";var n=i("86cc").f,a=i("2aeb"),r=i("dcbc"),o=i("9b43"),s=i("f605"),l=i("4a59"),c=i("01f9"),u=i("d53b"),d=i("7a56"),f=i("9e1e"),h=i("67ab").fastKey,p=i("b39a"),m=f?"_s":"size",g=function(e,t){var i,n=h(t);if("F"!==n)return e._i[n];for(i=e._f;i;i=i.n)if(i.k==t)return i};e.exports={getConstructor:function(e,t,i,c){var u=e((function(e,n){s(e,u,t,"_i"),e._t=t,e._i=a(null),e._f=void 0,e._l=void 0,e[m]=0,void 0!=n&&l(n,i,e[c],e)}));return r(u.prototype,{clear:function(){for(var e=p(this,t),i=e._i,n=e._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete i[n.i];e._f=e._l=void 0,e[m]=0},delete:function(e){var i=p(this,t),n=g(i,e);if(n){var a=n.n,r=n.p;delete i._i[n.i],n.r=!0,r&&(r.n=a),a&&(a.p=r),i._f==n&&(i._f=a),i._l==n&&(i._l=r),i[m]--}return!!n},forEach:function(e){p(this,t);var i,n=o(e,arguments.length>1?arguments[1]:void 0,3);while(i=i?i.n:this._f){n(i.v,i.k,this);while(i&&i.r)i=i.p}},has:function(e){return!!g(p(this,t),e)}}),f&&n(u.prototype,"size",{get:function(){return p(this,t)[m]}}),u},def:function(e,t,i){var n,a,r=g(e,t);return r?r.v=i:(e._l=r={i:a=h(t,!0),k:t,v:i,p:n=e._l,n:void 0,r:!1},e._f||(e._f=r),n&&(n.n=r),e[m]++,"F"!==a&&(e._i[a]=r)),e},getEntry:g,setStrong:function(e,t,i){c(e,t,(function(e,i){this._t=p(e,t),this._k=i,this._l=void 0}),(function(){var e=this,t=e._k,i=e._l;while(i&&i.r)i=i.p;return e._t&&(e._l=i=i?i.n:e._t._f)?u(0,"keys"==t?i.k:"values"==t?i.v:[i.k,i.v]):(e._t=void 0,u(1))}),i?"entries":"values",!i,!0),d(t)}}},c2a1:function(e,t,i){"use strict";i("ab64")},c2be:function(e,t,i){var n=i("2306"),a=n.extendShape,r=a({type:"sausage",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},buildPath:function(e,t){var i=t.cx,n=t.cy,a=Math.max(t.r0||0,0),r=Math.max(t.r,0),o=.5*(r-a),s=a+o,l=t.startAngle,c=t.endAngle,u=t.clockwise,d=Math.cos(l),f=Math.sin(l),h=Math.cos(c),p=Math.sin(c),m=u?c-l<2*Math.PI:l-c<2*Math.PI;m&&(e.moveTo(d*a+i,f*a+n),e.arc(d*s+i,f*s+n,o,-Math.PI+l,l,!u)),e.arc(i,n,r,l,c,!u),e.moveTo(h*r+i,p*r+n),e.arc(h*s+i,p*s+n,o,c-2*Math.PI,c-Math.PI,!u),0!==a&&(e.arc(i,n,a,c,l,u),e.moveTo(d*a+i,p*a+n)),e.closePath()}});e.exports=r},c2dd:function(e,t,i){var n=i("3eba"),a=i("6d8b"),r=i("fc82"),o=i("10cc"),s=o.layoutCovers,l=n.extendComponentView({type:"brush",init:function(e,t){this.ecModel=e,this.api=t,this.model,(this._brushController=new r(t.getZr())).on("brush",a.bind(this._onBrush,this)).mount()},render:function(e){return this.model=e,c.apply(this,arguments)},updateTransform:function(e,t){return s(t),c.apply(this,arguments)},updateView:c,dispose:function(){this._brushController.dispose()},_onBrush:function(e,t){var i=this.model.id;this.model.brushTargetManager.setOutputRanges(e,this.ecModel),(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:i,areas:a.clone(e),$from:i}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:i,areas:a.clone(e),$from:i})}});function c(e,t,i,n){(!n||n.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(i)).enableBrush(e.brushOption).updateCovers(e.areas.slice())}e.exports=l},c387:function(e,t,i){},c41f:function(e,t,i){"use strict";var n=i("e6ad"),a=n["external"];function r(e){var t=a.cornerstone.metaData.get("imagePlaneModule",e.imageId);return t?{rowPixelSpacing:t.rowPixelSpacing||t.rowImagePixelSpacing,colPixelSpacing:t.columnPixelSpacing||t.colImagePixelSpacing}:{rowPixelSpacing:e.rowPixelSpacing,colPixelSpacing:e.columnPixelSpacing}}function o(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=r(t),a=n.rowPixelSpacing,o=n.colPixelSpacing,s=e.handles,l=s.start,c=s.end,u=s.perpendicularStart,d=s.perpendicularEnd,f=(l.x-c.x)*(o||1),h=(l.y-c.y)*(a||1),p=Math.sqrt(f*f+h*h),m=(u.x-d.x)*(o||1),g=(u.y-d.y)*(a||1),v=Math.sqrt(m*m+g*g);if(v||(v=0),v>p){var b=v,y=p;p=b,v=y}return{longestDiameter:p.toFixed(i),shortestDiameter:v.toFixed(i)}}i.d(t,"a",(function(){return o}))},c458:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"enroll-container"},[i("div",{staticClass:"content-wrapper",staticStyle:{height:"170px"}},[i("div",{staticClass:"title"},[i("p",[e._v(e._s(e.$t("trials:seletctedReviews:title:trialInfor")))])]),e._v(" "),e.trialInfo?i("div",{staticClass:"trial-wrapper"},[i("div",{staticClass:"div-row"},[i("div",{staticClass:"div-col"},[i("label",{staticClass:"el-label"},[e._v(e._s(e.$t("trials:trials-list:form:indication"))+":")]),e._v(" "),i("span",[e._v(e._s(e.trialInfo.Indication))])]),e._v(" "),i("div",{staticClass:"div-col"},[i("label",{staticClass:"el-label"},[e._v(e._s(e.$t("trials:trials-list:form:criterion"))+":")]),e._v(" "),i("span",[e._v(e._s(e.trialInfo.CriterionList&&e.trialInfo.CriterionList.length>0?e.trialInfo.CriterionList.join(", "):""))])]),e._v(" "),i("div",{staticClass:"div-col"},[i("label",{staticClass:"el-label"},[e._v(e._s(e.$t("trials:trials-list:form:modality"))+":")]),e._v(" "),i("el-tooltip",{staticClass:"item",attrs:{content:e.trialInfo.Modalitys,placement:"top"}},[i("span",[e._v(e._s(e.trialInfo.Modalitys))])])],1)]),e._v(" "),i("div",{staticClass:"div-row"},[i("div",{staticClass:"div-col"},[i("label",{staticClass:"el-label"},[e._v(e._s(e.$t("trials:trials-list:form:reviewMode"))+":")]),e._v(" "),i("span",[e._v(e._s(e.$fd("ReadingMethod",e.trialInfo.ReadingType)))])]),e._v(" "),i("div",{staticClass:"div-col"},[i("label",{staticClass:"el-label"},[e._v(e._s(e.$t("trials:trials-list:form:totalReviewers"))+":")]),e._v(" "),i("span",[e._v(e._s(e.trialInfo.TotalReviewers))])]),e._v(" "),i("div",{staticClass:"div-col"},[i("label",{staticClass:"el-label"},[e._v(e._s(e.$t("trials:trials-list:form:typeofReviewers"))+":")]),e._v(" "),i("span",[e._v(e._s(e.$fd("AttendedReviewerType",e.trialInfo.AttendedReviewerType)))])])])]):e._e(),e._v(" "),i("div",{staticClass:"title"},[i("p",[e._v(e._s(e.$t("trials:spmEnroll:title:userList")))])])]),e._v(" "),i("div",{staticClass:"step-wrapper"},[i("div",{staticClass:"step-content"},[i("Approval",{ref:"approval",on:{nextStep:e.nextStep}})],1)])])},a=[],r=i("7d1c"),o=i("3e42"),s={name:"Enroll",components:{Approval:r["default"]},data:function(){return{trialInfo:null,TrialId:"",activeStatus:null,TrialMaxState:0}},mounted:function(){this.TrialId=this.$route.query.trialId,this.initPage()},methods:{initPage:function(){var e=this;Object(o["Pd"])(this.TrialId).then((function(t){e.trialInfo=t.Result.TrialView;var i=t.Result.TrialMaxState<1?0:t.Result.TrialMaxState<5?1:t.Result.TrialMaxState<8?2:3;e.activeStatus=i,e.TrialMaxState=i}))},handleClick:function(e){this.activeStatus=e},nextStep:function(e){this.activeStatus=3===this.activeStatus?3:this.activeStatus+1,this.TrialMaxState=this.activeStatus,this.$nextTick(function(){this.$refs[e].getList()}.bind(this))}}},l=s,c=(i("c924"),i("2877")),u=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},c4a3:function(e,t){function i(e,t){this.getAllNames=function(){var e=t();return e.mapArray(e.getName)},this.containName=function(e){var i=t();return i.indexOfName(e)>=0},this.indexOfName=function(t){var i=e();return i.indexOfName(t)},this.getItemVisual=function(t,i){var n=e();return n.getItemVisual(t,i)}}var n=i;e.exports=n},c4b1:function(e,t){e.exports={defaultArgs:["./ffmpeg","-nostdin","-y"],baseOptions:{log:!1,logger:()=>{},progress:()=>{},corePath:""}}},c4e3:function(e,t,i){(function(t,i){var n;!function(t){e.exports=t()}((function(){return function e(t,i,a){function r(s,l){if(!i[s]){if(!t[s]){var c="function"==typeof n&&n;if(!l&&c)return n(s,!0);if(o)return o(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var d=i[s]={exports:{}};t[s][0].call(d.exports,(function(e){var i=t[s][1][e];return r(i||e)}),d,d.exports,e,t,i,a)}return i[s].exports}for(var o="function"==typeof n&&n,s=0;s<a.length;s++)r(a[s]);return r}({1:[function(e,t,i){"use strict";var n=e("./utils"),a=e("./support"),r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";i.encode=function(e){for(var t,i,a,o,s,l,c,u=[],d=0,f=e.length,h=f,p="string"!==n.getTypeOf(e);d<e.length;)h=f-d,a=p?(t=e[d++],i=d<f?e[d++]:0,d<f?e[d++]:0):(t=e.charCodeAt(d++),i=d<f?e.charCodeAt(d++):0,d<f?e.charCodeAt(d++):0),o=t>>2,s=(3&t)<<4|i>>4,l=1<h?(15&i)<<2|a>>6:64,c=2<h?63&a:64,u.push(r.charAt(o)+r.charAt(s)+r.charAt(l)+r.charAt(c));return u.join("")},i.decode=function(e){var t,i,n,o,s,l,c=0,u=0,d="data:";if(e.substr(0,d.length)===d)throw new Error("Invalid base64 input, it looks like a data url.");var f,h=3*(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"")).length/4;if(e.charAt(e.length-1)===r.charAt(64)&&h--,e.charAt(e.length-2)===r.charAt(64)&&h--,h%1!=0)throw new Error("Invalid base64 input, bad content length.");for(f=a.uint8array?new Uint8Array(0|h):new Array(0|h);c<e.length;)t=r.indexOf(e.charAt(c++))<<2|(o=r.indexOf(e.charAt(c++)))>>4,i=(15&o)<<4|(s=r.indexOf(e.charAt(c++)))>>2,n=(3&s)<<6|(l=r.indexOf(e.charAt(c++))),f[u++]=t,64!==s&&(f[u++]=i),64!==l&&(f[u++]=n);return f}},{"./support":30,"./utils":32}],2:[function(e,t,i){"use strict";var n=e("./external"),a=e("./stream/DataWorker"),r=e("./stream/Crc32Probe"),o=e("./stream/DataLengthProbe");function s(e,t,i,n,a){this.compressedSize=e,this.uncompressedSize=t,this.crc32=i,this.compression=n,this.compressedContent=a}s.prototype={getContentWorker:function(){var e=new a(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new o("data_length")),t=this;return e.on("end",(function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),e},getCompressedWorker:function(){return new a(n.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(e,t,i){return e.pipe(new r).pipe(new o("uncompressedSize")).pipe(t.compressWorker(i)).pipe(new o("compressedSize")).withStreamInfo("compression",t)},t.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,i){"use strict";var n=e("./stream/GenericWorker");i.STORE={magic:"\0\0",compressWorker:function(e){return new n("STORE compression")},uncompressWorker:function(){return new n("STORE decompression")}},i.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,i){"use strict";var n=e("./utils"),a=function(){for(var e,t=[],i=0;i<256;i++){e=i;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[i]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==n.getTypeOf(e)?function(e,t,i,n){var r=a,o=n+i;e^=-1;for(var s=n;s<o;s++)e=e>>>8^r[255&(e^t[s])];return-1^e}(0|t,e,e.length,0):function(e,t,i,n){var r=a,o=n+i;e^=-1;for(var s=n;s<o;s++)e=e>>>8^r[255&(e^t.charCodeAt(s))];return-1^e}(0|t,e,e.length,0):0}},{"./utils":32}],5:[function(e,t,i){"use strict";i.base64=!1,i.binary=!1,i.dir=!1,i.createFolders=!0,i.date=null,i.compression=null,i.compressionOptions=null,i.comment=null,i.unixPermissions=null,i.dosPermissions=null},{}],6:[function(e,t,i){"use strict";var n=null;n="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:n}},{lie:37}],7:[function(e,t,i){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,a=e("pako"),r=e("./utils"),o=e("./stream/GenericWorker"),s=n?"uint8array":"array";function l(e,t){o.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}i.magic="\b\0",r.inherits(l,o),l.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(r.transformTo(s,e.data),!1)},l.prototype.flush=function(){o.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new a[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},i.compressWorker=function(e){return new l("Deflate",e)},i.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,i){"use strict";function n(e,t){var i,n="";for(i=0;i<t;i++)n+=String.fromCharCode(255&e),e>>>=8;return n}function a(e,t,i,a,o,u){var d,f,h=e.file,p=e.compression,m=u!==s.utf8encode,g=r.transformTo("string",u(h.name)),v=r.transformTo("string",s.utf8encode(h.name)),b=h.comment,y=r.transformTo("string",u(b)),w=r.transformTo("string",s.utf8encode(b)),_=v.length!==h.name.length,I=w.length!==b.length,x="",S="",T="",C=h.dir,k=h.date,R={crc32:0,compressedSize:0,uncompressedSize:0};t&&!i||(R.crc32=e.crc32,R.compressedSize=e.compressedSize,R.uncompressedSize=e.uncompressedSize);var D=0;t&&(D|=8),m||!_&&!I||(D|=2048);var L=0,O=0;C&&(L|=16),"UNIX"===o?(O=798,L|=function(e,t){var i=e;return e||(i=t?16893:33204),(65535&i)<<16}(h.unixPermissions,C)):(O=20,L|=function(e){return 63&(e||0)}(h.dosPermissions)),d=k.getUTCHours(),d<<=6,d|=k.getUTCMinutes(),d<<=5,d|=k.getUTCSeconds()/2,f=k.getUTCFullYear()-1980,f<<=4,f|=k.getUTCMonth()+1,f<<=5,f|=k.getUTCDate(),_&&(S=n(1,1)+n(l(g),4)+v,x+="up"+n(S.length,2)+S),I&&(T=n(1,1)+n(l(y),4)+w,x+="uc"+n(T.length,2)+T);var $="";return $+="\n\0",$+=n(D,2),$+=p.magic,$+=n(d,2),$+=n(f,2),$+=n(R.crc32,4),$+=n(R.compressedSize,4),$+=n(R.uncompressedSize,4),$+=n(g.length,2),$+=n(x.length,2),{fileRecord:c.LOCAL_FILE_HEADER+$+g+x,dirRecord:c.CENTRAL_FILE_HEADER+n(O,2)+$+n(y.length,2)+"\0\0\0\0"+n(L,4)+n(a,4)+g+x+y}}var r=e("../utils"),o=e("../stream/GenericWorker"),s=e("../utf8"),l=e("../crc32"),c=e("../signature");function u(e,t,i,n){o.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=i,this.encodeFileName=n,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}r.inherits(u,o),u.prototype.push=function(e){var t=e.meta.percent||0,i=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,o.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:i?(t+100*(i-n-1))/i:100}}))},u.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var i=a(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:i.fileRecord,meta:{percent:0}})}else this.accumulate=!0},u.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,i=a(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(i.dirRecord),t)this.push({data:function(e){return c.DATA_DESCRIPTOR+n(e.crc32,4)+n(e.compressedSize,4)+n(e.uncompressedSize,4)}(e),meta:{percent:100}});else for(this.push({data:i.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},u.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var i=this.bytesWritten-e,a=function(e,t,i,a,o){var s=r.transformTo("string",o(a));return c.CENTRAL_DIRECTORY_END+"\0\0\0\0"+n(e,2)+n(e,2)+n(t,4)+n(i,4)+n(s.length,2)+s}(this.dirRecords.length,i,e,this.zipComment,this.encodeFileName);this.push({data:a,meta:{percent:100}})},u.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},u.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()})),e.on("error",(function(e){t.error(e)})),this},u.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},u.prototype.error=function(e){var t=this._sources;if(!o.prototype.error.call(this,e))return!1;for(var i=0;i<t.length;i++)try{t[i].error(e)}catch(e){}return!0},u.prototype.lock=function(){o.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},t.exports=u},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,t,i){"use strict";var n=e("../compressions"),a=e("./ZipFileWorker");i.generateWorker=function(e,t,i){var r=new a(t.streamFiles,i,t.platform,t.encodeFileName),o=0;try{e.forEach((function(e,i){o++;var a=function(e,t){var i=e||t,a=n[i];if(!a)throw new Error(i+" is not a valid compression method !");return a}(i.options.compression,t.compression),s=i.options.compressionOptions||t.compressionOptions||{},l=i.dir,c=i.date;i._compressWorker(a,s).withStreamInfo("file",{name:e,dir:l,date:c,comment:i.comment||"",unixPermissions:i.unixPermissions,dosPermissions:i.dosPermissions}).pipe(r)})),r.entriesCount=o}catch(e){r.error(e)}return r}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,i){"use strict";function n(){if(!(this instanceof n))return new n;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var e=new n;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}(n.prototype=e("./object")).loadAsync=e("./load"),n.support=e("./support"),n.defaults=e("./defaults"),n.version="3.9.1",n.loadAsync=function(e,t){return(new n).loadAsync(e,t)},n.external=e("./external"),t.exports=n},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,t,i){"use strict";var n=e("./utils"),a=e("./external"),r=e("./utf8"),o=e("./zipEntries"),s=e("./stream/Crc32Probe"),l=e("./nodejsUtils");function c(e){return new a.Promise((function(t,i){var n=e.decompressed.getContentWorker().pipe(new s);n.on("error",(function(e){i(e)})).on("end",(function(){n.streamInfo.crc32!==e.decompressed.crc32?i(new Error("Corrupted zip : CRC32 mismatch")):t()})).resume()}))}t.exports=function(e,t){var i=this;return t=n.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:r.utf8decode}),l.isNode&&l.isStream(e)?a.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):n.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then((function(e){var i=new o(t);return i.load(e),i})).then((function(e){var i=[a.Promise.resolve(e)],n=e.files;if(t.checkCRC32)for(var r=0;r<n.length;r++)i.push(c(n[r]));return a.Promise.all(i)})).then((function(e){for(var a=e.shift(),r=a.files,o=0;o<r.length;o++){var s=r[o],l=s.fileNameStr,c=n.resolve(s.fileNameStr);i.file(c,s.decompressed,{binary:!0,optimizedBinaryString:!0,date:s.date,dir:s.dir,comment:s.fileCommentStr.length?s.fileCommentStr:null,unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions,createFolders:t.createFolders}),s.dir||(i.file(c).unsafeOriginalName=l)}return a.zipComment.length&&(i.comment=a.zipComment),i}))}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,t,i){"use strict";var n=e("../utils"),a=e("../stream/GenericWorker");function r(e,t){a.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}n.inherits(r,a),r.prototype._bindStream=function(e){var t=this;(this._stream=e).pause(),e.on("data",(function(e){t.push({data:e,meta:{percent:0}})})).on("error",(function(e){t.isPaused?this.generatedError=e:t.error(e)})).on("end",(function(){t.isPaused?t._upstreamEnded=!0:t.end()}))},r.prototype.pause=function(){return!!a.prototype.pause.call(this)&&(this._stream.pause(),!0)},r.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=r},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t,i){"use strict";var n=e("readable-stream").Readable;function a(e,t,i){n.call(this,t),this._helper=e;var a=this;e.on("data",(function(e,t){a.push(e)||a._helper.pause(),i&&i(t)})).on("error",(function(e){a.emit("error",e)})).on("end",(function(){a.push(null)}))}e("../utils").inherits(a,n),a.prototype._read=function(){this._helper.resume()},t.exports=a},{"../utils":32,"readable-stream":16}],14:[function(e,i,n){"use strict";i.exports={isNode:"undefined"!=typeof t,newBufferFrom:function(e,i){if(t.from&&t.from!==Uint8Array.from)return t.from(e,i);if("number"==typeof e)throw new Error('The "data" argument must not be a number');return new t(e,i)},allocBuffer:function(e){if(t.alloc)return t.alloc(e);var i=new t(e);return i.fill(0),i},isBuffer:function(e){return t.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}},{}],15:[function(e,t,i){"use strict";function n(e,t,i){var n,a=r.getTypeOf(t),s=r.extend(i||{},l);s.date=s.date||new Date,null!==s.compression&&(s.compression=s.compression.toUpperCase()),"string"==typeof s.unixPermissions&&(s.unixPermissions=parseInt(s.unixPermissions,8)),s.unixPermissions&&16384&s.unixPermissions&&(s.dir=!0),s.dosPermissions&&16&s.dosPermissions&&(s.dir=!0),s.dir&&(e=m(e)),s.createFolders&&(n=p(e))&&g.call(this,n,!0);var d="string"===a&&!1===s.binary&&!1===s.base64;i&&void 0!==i.binary||(s.binary=!d),(t instanceof c&&0===t.uncompressedSize||s.dir||!t||0===t.length)&&(s.base64=!1,s.binary=!0,t="",s.compression="STORE",a="string");var v=null;v=t instanceof c||t instanceof o?t:f.isNode&&f.isStream(t)?new h(e,t):r.prepareContent(e,t,s.binary,s.optimizedBinaryString,s.base64);var b=new u(e,v,s);this.files[e]=b}var a=e("./utf8"),r=e("./utils"),o=e("./stream/GenericWorker"),s=e("./stream/StreamHelper"),l=e("./defaults"),c=e("./compressedObject"),u=e("./zipObject"),d=e("./generate"),f=e("./nodejsUtils"),h=e("./nodejs/NodejsStreamInputAdapter"),p=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return 0<t?e.substring(0,t):""},m=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},g=function(e,t){return t=void 0!==t?t:l.createFolders,e=m(e),this.files[e]||n.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function v(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var b={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,i,n;for(t in this.files)n=this.files[t],(i=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(i,n)},filter:function(e){var t=[];return this.forEach((function(i,n){e(i,n)&&t.push(n)})),t},file:function(e,t,i){if(1!==arguments.length)return e=this.root+e,n.call(this,e,t,i),this;if(v(e)){var a=e;return this.filter((function(e,t){return!t.dir&&a.test(e)}))}var r=this.files[this.root+e];return r&&!r.dir?r:null},folder:function(e){if(!e)return this;if(v(e))return this.filter((function(t,i){return i.dir&&e.test(t)}));var t=this.root+e,i=g.call(this,t),n=this.clone();return n.root=i.name,n},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var i=this.filter((function(t,i){return i.name.slice(0,e.length)===e})),n=0;n<i.length;n++)delete this.files[i[n].name];return this},generate:function(e){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){var t,i={};try{if((i=r.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:a.utf8encode})).type=i.type.toLowerCase(),i.compression=i.compression.toUpperCase(),"binarystring"===i.type&&(i.type="string"),!i.type)throw new Error("No output type specified.");r.checkSupport(i.type),"darwin"!==i.platform&&"freebsd"!==i.platform&&"linux"!==i.platform&&"sunos"!==i.platform||(i.platform="UNIX"),"win32"===i.platform&&(i.platform="DOS");var n=i.comment||this.comment||"";t=d.generateWorker(this,i,n)}catch(e){(t=new o("error")).error(e)}return new s(t,i.type||"string",i.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e=e||{}).type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}};t.exports=b},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(e,t,i){t.exports=e("stream")},{stream:void 0}],17:[function(e,t,i){"use strict";var n=e("./DataReader");function a(e){n.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e("../utils").inherits(a,n),a.prototype.byteAt=function(e){return this.data[this.zero+e]},a.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),i=e.charCodeAt(1),n=e.charCodeAt(2),a=e.charCodeAt(3),r=this.length-4;0<=r;--r)if(this.data[r]===t&&this.data[r+1]===i&&this.data[r+2]===n&&this.data[r+3]===a)return r-this.zero;return-1},a.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),i=e.charCodeAt(1),n=e.charCodeAt(2),a=e.charCodeAt(3),r=this.readData(4);return t===r[0]&&i===r[1]&&n===r[2]&&a===r[3]},a.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=a},{"../utils":32,"./DataReader":18}],18:[function(e,t,i){"use strict";var n=e("../utils");function a(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}a.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(e){},readInt:function(e){var t,i=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)i=(i<<8)+this.byteAt(t);return this.index+=e,i},readString:function(e){return n.transformTo("string",this.readData(e))},readData:function(e){},lastIndexOfSignature:function(e){},readAndCheckSignature:function(e){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=a},{"../utils":32}],19:[function(e,t,i){"use strict";var n=e("./Uint8ArrayReader");function a(e){n.call(this,e)}e("../utils").inherits(a,n),a.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=a},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,i){"use strict";var n=e("./DataReader");function a(e){n.call(this,e)}e("../utils").inherits(a,n),a.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},a.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},a.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},a.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=a},{"../utils":32,"./DataReader":18}],21:[function(e,t,i){"use strict";var n=e("./ArrayReader");function a(e){n.call(this,e)}e("../utils").inherits(a,n),a.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=a},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,i){"use strict";var n=e("../utils"),a=e("../support"),r=e("./ArrayReader"),o=e("./StringReader"),s=e("./NodeBufferReader"),l=e("./Uint8ArrayReader");t.exports=function(e){var t=n.getTypeOf(e);return n.checkSupport(t),"string"!==t||a.uint8array?"nodebuffer"===t?new s(e):a.uint8array?new l(n.transformTo("uint8array",e)):new r(n.transformTo("array",e)):new o(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,i){"use strict";i.LOCAL_FILE_HEADER="PK",i.CENTRAL_FILE_HEADER="PK",i.CENTRAL_DIRECTORY_END="PK",i.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",i.ZIP64_CENTRAL_DIRECTORY_END="PK",i.DATA_DESCRIPTOR="PK\b"},{}],24:[function(e,t,i){"use strict";var n=e("./GenericWorker"),a=e("../utils");function r(e){n.call(this,"ConvertWorker to "+e),this.destType=e}a.inherits(r,n),r.prototype.processChunk=function(e){this.push({data:a.transformTo(this.destType,e.data),meta:e.meta})},t.exports=r},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,i){"use strict";var n=e("./GenericWorker"),a=e("../crc32");function r(){n.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(r,n),r.prototype.processChunk=function(e){this.streamInfo.crc32=a(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=r},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,i){"use strict";var n=e("../utils"),a=e("./GenericWorker");function r(e){a.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}n.inherits(r,a),r.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}a.prototype.processChunk.call(this,e)},t.exports=r},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,i){"use strict";var n=e("../utils"),a=e("./GenericWorker");function r(e){a.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then((function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=n.getTypeOf(e),t.isPaused||t._tickAndRepeat()}),(function(e){t.error(e)}))}n.inherits(r,a),r.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this.data=null},r.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},r.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},r.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=r},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,i){"use strict";function n(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}n.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var i=0;i<this._listeners[e].length;i++)this._listeners[e][i].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.end()})),e.on("error",(function(e){t.error(e)})),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var e=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)this.extraStreamInfo.hasOwnProperty(e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}},t.exports=n},{}],29:[function(e,i,n){"use strict";var a=e("../utils"),r=e("./ConvertWorker"),o=e("./GenericWorker"),s=e("../base64"),l=e("../support"),c=e("../external"),u=null;if(l.nodestream)try{u=e("../nodejs/NodejsStreamOutputAdapter")}catch(e){}function d(e,i){return new c.Promise((function(n,r){var o=[],l=e._internalType,c=e._outputType,u=e._mimeType;e.on("data",(function(e,t){o.push(e),i&&i(t)})).on("error",(function(e){o=[],r(e)})).on("end",(function(){try{var e=function(e,t,i){switch(e){case"blob":return a.newBlob(a.transformTo("arraybuffer",t),i);case"base64":return s.encode(t);default:return a.transformTo(e,t)}}(c,function(e,i){var n,a=0,r=null,o=0;for(n=0;n<i.length;n++)o+=i[n].length;switch(e){case"string":return i.join("");case"array":return Array.prototype.concat.apply([],i);case"uint8array":for(r=new Uint8Array(o),n=0;n<i.length;n++)r.set(i[n],a),a+=i[n].length;return r;case"nodebuffer":return t.concat(i);default:throw new Error("concat : unsupported type '"+e+"'")}}(l,o),u);n(e)}catch(e){r(e)}o=[]})).resume()}))}function f(e,t,i){var n=t;switch(t){case"blob":case"arraybuffer":n="uint8array";break;case"base64":n="string"}try{this._internalType=n,this._outputType=t,this._mimeType=i,a.checkSupport(n),this._worker=e.pipe(new r(n)),e.lock()}catch(e){this._worker=new o("error"),this._worker.error(e)}}f.prototype={accumulate:function(e){return d(this,e)},on:function(e,t){var i=this;return"data"===e?this._worker.on(e,(function(e){t.call(i,e.data,e.meta)})):this._worker.on(e,(function(){a.delay(t,arguments,i)})),this},resume:function(){return a.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(a.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new u(this,{objectMode:"nodebuffer"!==this._outputType},e)}},i.exports=f},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,i,n){"use strict";if(n.base64=!0,n.array=!0,n.string=!0,n.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,n.nodebuffer="undefined"!=typeof t,n.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)n.blob=!1;else{var a=new ArrayBuffer(0);try{n.blob=0===new Blob([a],{type:"application/zip"}).size}catch(e){try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);r.append(a),n.blob=0===r.getBlob("application/zip").size}catch(e){n.blob=!1}}}try{n.nodestream=!!e("readable-stream").Readable}catch(e){n.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,i){"use strict";for(var n=e("./utils"),a=e("./support"),r=e("./nodejsUtils"),o=e("./stream/GenericWorker"),s=new Array(256),l=0;l<256;l++)s[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;function c(){o.call(this,"utf-8 decode"),this.leftOver=null}function u(){o.call(this,"utf-8 encode")}s[254]=s[254]=1,i.utf8encode=function(e){return a.nodebuffer?r.newBufferFrom(e,"utf-8"):function(e){var t,i,n,r,o,s=e.length,l=0;for(r=0;r<s;r++)55296==(64512&(i=e.charCodeAt(r)))&&r+1<s&&56320==(64512&(n=e.charCodeAt(r+1)))&&(i=65536+(i-55296<<10)+(n-56320),r++),l+=i<128?1:i<2048?2:i<65536?3:4;for(t=a.uint8array?new Uint8Array(l):new Array(l),r=o=0;o<l;r++)55296==(64512&(i=e.charCodeAt(r)))&&r+1<s&&56320==(64512&(n=e.charCodeAt(r+1)))&&(i=65536+(i-55296<<10)+(n-56320),r++),i<128?t[o++]=i:(i<2048?t[o++]=192|i>>>6:(i<65536?t[o++]=224|i>>>12:(t[o++]=240|i>>>18,t[o++]=128|i>>>12&63),t[o++]=128|i>>>6&63),t[o++]=128|63&i);return t}(e)},i.utf8decode=function(e){return a.nodebuffer?n.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,i,a,r,o=e.length,l=new Array(2*o);for(t=i=0;t<o;)if((a=e[t++])<128)l[i++]=a;else if(4<(r=s[a]))l[i++]=65533,t+=r-1;else{for(a&=2===r?31:3===r?15:7;1<r&&t<o;)a=a<<6|63&e[t++],r--;1<r?l[i++]=65533:a<65536?l[i++]=a:(a-=65536,l[i++]=55296|a>>10&1023,l[i++]=56320|1023&a)}return l.length!==i&&(l.subarray?l=l.subarray(0,i):l.length=i),n.applyFromCharCode(l)}(e=n.transformTo(a.uint8array?"uint8array":"array",e))},n.inherits(c,o),c.prototype.processChunk=function(e){var t=n.transformTo(a.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(a.uint8array){var r=t;(t=new Uint8Array(r.length+this.leftOver.length)).set(this.leftOver,0),t.set(r,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var o=function(e,t){var i;for((t=t||e.length)>e.length&&(t=e.length),i=t-1;0<=i&&128==(192&e[i]);)i--;return i<0||0===i?t:i+s[e[i]]>t?i:t}(t),l=t;o!==t.length&&(a.uint8array?(l=t.subarray(0,o),this.leftOver=t.subarray(o,t.length)):(l=t.slice(0,o),this.leftOver=t.slice(o,t.length))),this.push({data:i.utf8decode(l),meta:e.meta})},c.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:i.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},i.Utf8DecodeWorker=c,n.inherits(u,o),u.prototype.processChunk=function(e){this.push({data:i.utf8encode(e.data),meta:e.meta})},i.Utf8EncodeWorker=u},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,i){"use strict";var n=e("./support"),a=e("./base64"),r=e("./nodejsUtils"),o=e("set-immediate-shim"),s=e("./external");function l(e){return e}function c(e,t){for(var i=0;i<e.length;++i)t[i]=255&e.charCodeAt(i);return t}i.newBlob=function(t,n){i.checkSupport("blob");try{return new Blob([t],{type:n})}catch(e){try{var a=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return a.append(t),a.getBlob(n)}catch(e){throw new Error("Bug : can't construct the Blob.")}}};var u={stringifyByChunk:function(e,t,i){var n=[],a=0,r=e.length;if(r<=i)return String.fromCharCode.apply(null,e);for(;a<r;)"array"===t||"nodebuffer"===t?n.push(String.fromCharCode.apply(null,e.slice(a,Math.min(a+i,r)))):n.push(String.fromCharCode.apply(null,e.subarray(a,Math.min(a+i,r)))),a+=i;return n.join("")},stringifyByChar:function(e){for(var t="",i=0;i<e.length;i++)t+=String.fromCharCode(e[i]);return t},applyCanBeUsed:{uint8array:function(){try{return n.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return n.nodebuffer&&1===String.fromCharCode.apply(null,r.allocBuffer(1)).length}catch(e){return!1}}()}};function d(e){var t=65536,n=i.getTypeOf(e),a=!0;if("uint8array"===n?a=u.applyCanBeUsed.uint8array:"nodebuffer"===n&&(a=u.applyCanBeUsed.nodebuffer),a)for(;1<t;)try{return u.stringifyByChunk(e,n,t)}catch(e){t=Math.floor(t/2)}return u.stringifyByChar(e)}function f(e,t){for(var i=0;i<e.length;i++)t[i]=e[i];return t}i.applyFromCharCode=d;var h={};h.string={string:l,array:function(e){return c(e,new Array(e.length))},arraybuffer:function(e){return h.string.uint8array(e).buffer},uint8array:function(e){return c(e,new Uint8Array(e.length))},nodebuffer:function(e){return c(e,r.allocBuffer(e.length))}},h.array={string:d,array:l,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return r.newBufferFrom(e)}},h.arraybuffer={string:function(e){return d(new Uint8Array(e))},array:function(e){return f(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:l,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return r.newBufferFrom(new Uint8Array(e))}},h.uint8array={string:d,array:function(e){return f(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:l,nodebuffer:function(e){return r.newBufferFrom(e)}},h.nodebuffer={string:d,array:function(e){return f(e,new Array(e.length))},arraybuffer:function(e){return h.nodebuffer.uint8array(e).buffer},uint8array:function(e){return f(e,new Uint8Array(e.length))},nodebuffer:l},i.transformTo=function(e,t){if(t=t||"",!e)return t;i.checkSupport(e);var n=i.getTypeOf(t);return h[n][e](t)},i.resolve=function(e){for(var t=e.split("/"),i=[],n=0;n<t.length;n++){var a=t[n];"."===a||""===a&&0!==n&&n!==t.length-1||(".."===a?i.pop():i.push(a))}return i.join("/")},i.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":n.nodebuffer&&r.isBuffer(e)?"nodebuffer":n.uint8array&&e instanceof Uint8Array?"uint8array":n.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},i.checkSupport=function(e){if(!n[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},i.MAX_VALUE_16BITS=65535,i.MAX_VALUE_32BITS=-1,i.pretty=function(e){var t,i,n="";for(i=0;i<(e||"").length;i++)n+="\\x"+((t=e.charCodeAt(i))<16?"0":"")+t.toString(16).toUpperCase();return n},i.delay=function(e,t,i){o((function(){e.apply(i||null,t||[])}))},i.inherits=function(e,t){function i(){}i.prototype=t.prototype,e.prototype=new i},i.extend=function(){var e,t,i={};for(e=0;e<arguments.length;e++)for(t in arguments[e])arguments[e].hasOwnProperty(t)&&void 0===i[t]&&(i[t]=arguments[e][t]);return i},i.prepareContent=function(e,t,r,o,l){return s.Promise.resolve(t).then((function(e){return n.blob&&(e instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(e)))&&"undefined"!=typeof FileReader?new s.Promise((function(t,i){var n=new FileReader;n.onload=function(e){t(e.target.result)},n.onerror=function(e){i(e.target.error)},n.readAsArrayBuffer(e)})):e})).then((function(t){var u=i.getTypeOf(t);return u?("arraybuffer"===u?t=i.transformTo("uint8array",t):"string"===u&&(l?t=a.decode(t):r&&!0!==o&&(t=function(e){return c(e,n.uint8array?new Uint8Array(e.length):new Array(e.length))}(t))),t):s.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,"set-immediate-shim":54}],33:[function(e,t,i){"use strict";var n=e("./reader/readerFor"),a=e("./utils"),r=e("./signature"),o=e("./zipEntry"),s=(e("./utf8"),e("./support"));function l(e){this.files=[],this.loadOptions=e}l.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+a.pretty(t)+", expected "+a.pretty(e)+")")}},isSignature:function(e,t){var i=this.reader.index;this.reader.setIndex(e);var n=this.reader.readString(4)===t;return this.reader.setIndex(i),n},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=s.uint8array?"uint8array":"array",i=a.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(i)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e,t,i,n=this.zip64EndOfCentralSize-44;0<n;)e=this.reader.readInt(2),t=this.reader.readInt(4),i=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:i}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(r.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(r.CENTRAL_FILE_HEADER);)(e=new o({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(r.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,r.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(e);var t=e;if(this.checkSignature(r.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===a.MAX_VALUE_16BITS||this.diskWithCentralDirStart===a.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===a.MAX_VALUE_16BITS||this.centralDirRecords===a.MAX_VALUE_16BITS||this.centralDirSize===a.MAX_VALUE_32BITS||this.centralDirOffset===a.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(r.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(r.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,r.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(r.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(r.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var i=this.centralDirOffset+this.centralDirSize;this.zip64&&(i+=20,i+=12+this.zip64EndOfCentralSize);var n=t-i;if(0<n)this.isSignature(t,r.CENTRAL_FILE_HEADER)||(this.reader.zero=n);else if(n<0)throw new Error("Corrupted zip: missing "+Math.abs(n)+" bytes.")},prepareReader:function(e){this.reader=n(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=l},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utf8":31,"./utils":32,"./zipEntry":34}],34:[function(e,t,i){"use strict";var n=e("./reader/readerFor"),a=e("./utils"),r=e("./compressedObject"),o=e("./crc32"),s=e("./utf8"),l=e("./compressions"),c=e("./support");function u(e,t){this.options=e,this.loadOptions=t}u.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(e){var t,i;if(e.skip(22),this.fileNameLength=e.readInt(2),i=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(i),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=function(e){for(var t in l)if(l.hasOwnProperty(t)&&l[t].magic===e)return l[t];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+a.pretty(this.compressionMethod)+" unknown (inner file : "+a.transformTo("string",this.fileName)+")");this.decompressed=new r(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(e){if(this.extraFields[1]){var t=n(this.extraFields[1].value);this.uncompressedSize===a.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===a.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===a.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===a.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(e){var t,i,n,a=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<a;)t=e.readInt(2),i=e.readInt(2),n=e.readData(i),this.extraFields[t]={id:t,length:i,value:n};e.setIndex(a)},handleUTF8:function(){var e=c.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(null!==t)this.fileNameStr=t;else{var i=a.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(i)}var n=this.findExtraFieldUnicodeComment();if(null!==n)this.fileCommentStr=n;else{var r=a.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(r)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=n(e.value);return 1!==t.readInt(1)||o(this.fileName)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=n(e.value);return 1!==t.readInt(1)||o(this.fileComment)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null}},t.exports=u},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,t,i){"use strict";function n(e,t,i){this.name=e,this.dir=i.dir,this.date=i.date,this.comment=i.comment,this.unixPermissions=i.unixPermissions,this.dosPermissions=i.dosPermissions,this._data=t,this._dataBinary=i.binary,this.options={compression:i.compression,compressionOptions:i.compressionOptions}}var a=e("./stream/StreamHelper"),r=e("./stream/DataWorker"),o=e("./utf8"),s=e("./compressedObject"),l=e("./stream/GenericWorker");n.prototype={internalStream:function(e){var t=null,i="string";try{if(!e)throw new Error("No output type specified.");var n="string"===(i=e.toLowerCase())||"text"===i;"binarystring"!==i&&"text"!==i||(i="string"),t=this._decompressWorker();var r=!this._dataBinary;r&&!n&&(t=t.pipe(new o.Utf8EncodeWorker)),!r&&n&&(t=t.pipe(new o.Utf8DecodeWorker))}catch(e){(t=new l("error")).error(e)}return new a(t,i,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof s&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var i=this._decompressWorker();return this._dataBinary||(i=i.pipe(new o.Utf8EncodeWorker)),s.createWorkerFrom(i,e,t)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof l?this._data:new r(this._data)}};for(var c=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],u=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},d=0;d<c.length;d++)n.prototype[c[d]]=u;t.exports=n},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,t,n){(function(e){"use strict";var i,n,a=e.MutationObserver||e.WebKitMutationObserver;if(a){var r=0,o=new a(u),s=e.document.createTextNode("");o.observe(s,{characterData:!0}),i=function(){s.data=r=++r%2}}else if(e.setImmediate||void 0===e.MessageChannel)i="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){u(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(u,0)};else{var l=new e.MessageChannel;l.port1.onmessage=u,i=function(){l.port2.postMessage(0)}}var c=[];function u(){var e,t;n=!0;for(var i=c.length;i;){for(t=c,c=[],e=-1;++e<i;)t[e]();i=c.length}n=!1}t.exports=function(e){1!==c.push(e)||n||i()}}).call(this,"undefined"!=typeof i?i:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(e,t,i){"use strict";var n=e("immediate");function a(){}var r={},o=["REJECTED"],s=["FULFILLED"],l=["PENDING"];function c(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,e!==a&&h(this,e)}function u(e,t,i){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof i&&(this.onRejected=i,this.callRejected=this.otherCallRejected)}function d(e,t,i){n((function(){var n;try{n=t(i)}catch(n){return r.reject(e,n)}n===e?r.reject(e,new TypeError("Cannot resolve promise with itself")):r.resolve(e,n)}))}function f(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function h(e,t){var i=!1;function n(t){i||(i=!0,r.reject(e,t))}function a(t){i||(i=!0,r.resolve(e,t))}var o=p((function(){t(a,n)}));"error"===o.status&&n(o.value)}function p(e,t){var i={};try{i.value=e(t),i.status="success"}catch(e){i.status="error",i.value=e}return i}(t.exports=c).prototype.finally=function(e){if("function"!=typeof e)return this;var t=this.constructor;return this.then((function(i){return t.resolve(e()).then((function(){return i}))}),(function(i){return t.resolve(e()).then((function(){throw i}))}))},c.prototype.catch=function(e){return this.then(null,e)},c.prototype.then=function(e,t){if("function"!=typeof e&&this.state===s||"function"!=typeof t&&this.state===o)return this;var i=new this.constructor(a);return this.state!==l?d(i,this.state===s?e:t,this.outcome):this.queue.push(new u(i,e,t)),i},u.prototype.callFulfilled=function(e){r.resolve(this.promise,e)},u.prototype.otherCallFulfilled=function(e){d(this.promise,this.onFulfilled,e)},u.prototype.callRejected=function(e){r.reject(this.promise,e)},u.prototype.otherCallRejected=function(e){d(this.promise,this.onRejected,e)},r.resolve=function(e,t){var i=p(f,t);if("error"===i.status)return r.reject(e,i.value);var n=i.value;if(n)h(e,n);else{e.state=s,e.outcome=t;for(var a=-1,o=e.queue.length;++a<o;)e.queue[a].callFulfilled(t)}return e},r.reject=function(e,t){e.state=o,e.outcome=t;for(var i=-1,n=e.queue.length;++i<n;)e.queue[i].callRejected(t);return e},c.resolve=function(e){return e instanceof this?e:r.resolve(new this(a),e)},c.reject=function(e){var t=new this(a);return r.reject(t,e)},c.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var i=e.length,n=!1;if(!i)return this.resolve([]);for(var o=new Array(i),s=0,l=-1,c=new this(a);++l<i;)u(e[l],l);return c;function u(e,a){t.resolve(e).then((function(e){o[a]=e,++s!==i||n||(n=!0,r.resolve(c,o))}),(function(e){n||(n=!0,r.reject(c,e))}))}},c.race=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var i=e.length,n=!1;if(!i)return this.resolve([]);for(var o,s=-1,l=new this(a);++s<i;)o=e[s],t.resolve(o).then((function(e){n||(n=!0,r.resolve(l,e))}),(function(e){n||(n=!0,r.reject(l,e))}));return l}},{immediate:36}],38:[function(e,t,i){"use strict";var n={};(0,e("./lib/utils/common").assign)(n,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=n},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,t,i){"use strict";var n=e("./zlib/deflate"),a=e("./utils/common"),r=e("./utils/strings"),o=e("./zlib/messages"),s=e("./zlib/zstream"),l=Object.prototype.toString,c=0,u=-1,d=0,f=8;function h(e){if(!(this instanceof h))return new h(e);this.options=a.assign({level:u,method:f,chunkSize:16384,windowBits:15,memLevel:8,strategy:d,to:""},e||{});var t=this.options;t.raw&&0<t.windowBits?t.windowBits=-t.windowBits:t.gzip&&0<t.windowBits&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var i=n.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(i!==c)throw new Error(o[i]);if(t.header&&n.deflateSetHeader(this.strm,t.header),t.dictionary){var p;if(p="string"==typeof t.dictionary?r.string2buf(t.dictionary):"[object ArrayBuffer]"===l.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(i=n.deflateSetDictionary(this.strm,p))!==c)throw new Error(o[i]);this._dict_set=!0}}function p(e,t){var i=new h(t);if(i.push(e,!0),i.err)throw i.msg||o[i.err];return i.result}h.prototype.push=function(e,t){var i,o,s=this.strm,u=this.options.chunkSize;if(this.ended)return!1;o=t===~~t?t:!0===t?4:0,"string"==typeof e?s.input=r.string2buf(e):"[object ArrayBuffer]"===l.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new a.Buf8(u),s.next_out=0,s.avail_out=u),1!==(i=n.deflate(s,o))&&i!==c)return this.onEnd(i),!(this.ended=!0);0!==s.avail_out&&(0!==s.avail_in||4!==o&&2!==o)||("string"===this.options.to?this.onData(r.buf2binstring(a.shrinkBuf(s.output,s.next_out))):this.onData(a.shrinkBuf(s.output,s.next_out)))}while((0<s.avail_in||0===s.avail_out)&&1!==i);return 4===o?(i=n.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===c):2!==o||(this.onEnd(c),!(s.avail_out=0))},h.prototype.onData=function(e){this.chunks.push(e)},h.prototype.onEnd=function(e){e===c&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},i.Deflate=h,i.deflate=p,i.deflateRaw=function(e,t){return(t=t||{}).raw=!0,p(e,t)},i.gzip=function(e,t){return(t=t||{}).gzip=!0,p(e,t)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,t,i){"use strict";var n=e("./zlib/inflate"),a=e("./utils/common"),r=e("./utils/strings"),o=e("./zlib/constants"),s=e("./zlib/messages"),l=e("./zlib/zstream"),c=e("./zlib/gzheader"),u=Object.prototype.toString;function d(e){if(!(this instanceof d))return new d(e);this.options=a.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var i=n.inflateInit2(this.strm,t.windowBits);if(i!==o.Z_OK)throw new Error(s[i]);this.header=new c,n.inflateGetHeader(this.strm,this.header)}function f(e,t){var i=new d(t);if(i.push(e,!0),i.err)throw i.msg||s[i.err];return i.result}d.prototype.push=function(e,t){var i,s,l,c,d,f,h=this.strm,p=this.options.chunkSize,m=this.options.dictionary,g=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?o.Z_FINISH:o.Z_NO_FLUSH,"string"==typeof e?h.input=r.binstring2buf(e):"[object ArrayBuffer]"===u.call(e)?h.input=new Uint8Array(e):h.input=e,h.next_in=0,h.avail_in=h.input.length;do{if(0===h.avail_out&&(h.output=new a.Buf8(p),h.next_out=0,h.avail_out=p),(i=n.inflate(h,o.Z_NO_FLUSH))===o.Z_NEED_DICT&&m&&(f="string"==typeof m?r.string2buf(m):"[object ArrayBuffer]"===u.call(m)?new Uint8Array(m):m,i=n.inflateSetDictionary(this.strm,f)),i===o.Z_BUF_ERROR&&!0===g&&(i=o.Z_OK,g=!1),i!==o.Z_STREAM_END&&i!==o.Z_OK)return this.onEnd(i),!(this.ended=!0);h.next_out&&(0!==h.avail_out&&i!==o.Z_STREAM_END&&(0!==h.avail_in||s!==o.Z_FINISH&&s!==o.Z_SYNC_FLUSH)||("string"===this.options.to?(l=r.utf8border(h.output,h.next_out),c=h.next_out-l,d=r.buf2string(h.output,l),h.next_out=c,h.avail_out=p-c,c&&a.arraySet(h.output,h.output,l,c,0),this.onData(d)):this.onData(a.shrinkBuf(h.output,h.next_out)))),0===h.avail_in&&0===h.avail_out&&(g=!0)}while((0<h.avail_in||0===h.avail_out)&&i!==o.Z_STREAM_END);return i===o.Z_STREAM_END&&(s=o.Z_FINISH),s===o.Z_FINISH?(i=n.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===o.Z_OK):s!==o.Z_SYNC_FLUSH||(this.onEnd(o.Z_OK),!(h.avail_out=0))},d.prototype.onData=function(e){this.chunks.push(e)},d.prototype.onEnd=function(e){e===o.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},i.Inflate=d,i.inflate=f,i.inflateRaw=function(e,t){return(t=t||{}).raw=!0,f(e,t)},i.ungzip=f},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,t,i){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;i.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var i=t.shift();if(i){if("object"!=typeof i)throw new TypeError(i+"must be non-object");for(var n in i)i.hasOwnProperty(n)&&(e[n]=i[n])}}return e},i.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var a={arraySet:function(e,t,i,n,a){if(t.subarray&&e.subarray)e.set(t.subarray(i,i+n),a);else for(var r=0;r<n;r++)e[a+r]=t[i+r]},flattenChunks:function(e){var t,i,n,a,r,o;for(t=n=0,i=e.length;t<i;t++)n+=e[t].length;for(o=new Uint8Array(n),t=a=0,i=e.length;t<i;t++)r=e[t],o.set(r,a),a+=r.length;return o}},r={arraySet:function(e,t,i,n,a){for(var r=0;r<n;r++)e[a+r]=t[i+r]},flattenChunks:function(e){return[].concat.apply([],e)}};i.setTyped=function(e){e?(i.Buf8=Uint8Array,i.Buf16=Uint16Array,i.Buf32=Int32Array,i.assign(i,a)):(i.Buf8=Array,i.Buf16=Array,i.Buf32=Array,i.assign(i,r))},i.setTyped(n)},{}],42:[function(e,t,i){"use strict";var n=e("./common"),a=!0,r=!0;try{String.fromCharCode.apply(null,[0])}catch(e){a=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){r=!1}for(var o=new n.Buf8(256),s=0;s<256;s++)o[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function l(e,t){if(t<65537&&(e.subarray&&r||!e.subarray&&a))return String.fromCharCode.apply(null,n.shrinkBuf(e,t));for(var i="",o=0;o<t;o++)i+=String.fromCharCode(e[o]);return i}o[254]=o[254]=1,i.string2buf=function(e){var t,i,a,r,o,s=e.length,l=0;for(r=0;r<s;r++)55296==(64512&(i=e.charCodeAt(r)))&&r+1<s&&56320==(64512&(a=e.charCodeAt(r+1)))&&(i=65536+(i-55296<<10)+(a-56320),r++),l+=i<128?1:i<2048?2:i<65536?3:4;for(t=new n.Buf8(l),r=o=0;o<l;r++)55296==(64512&(i=e.charCodeAt(r)))&&r+1<s&&56320==(64512&(a=e.charCodeAt(r+1)))&&(i=65536+(i-55296<<10)+(a-56320),r++),i<128?t[o++]=i:(i<2048?t[o++]=192|i>>>6:(i<65536?t[o++]=224|i>>>12:(t[o++]=240|i>>>18,t[o++]=128|i>>>12&63),t[o++]=128|i>>>6&63),t[o++]=128|63&i);return t},i.buf2binstring=function(e){return l(e,e.length)},i.binstring2buf=function(e){for(var t=new n.Buf8(e.length),i=0,a=t.length;i<a;i++)t[i]=e.charCodeAt(i);return t},i.buf2string=function(e,t){var i,n,a,r,s=t||e.length,c=new Array(2*s);for(i=n=0;i<s;)if((a=e[i++])<128)c[n++]=a;else if(4<(r=o[a]))c[n++]=65533,i+=r-1;else{for(a&=2===r?31:3===r?15:7;1<r&&i<s;)a=a<<6|63&e[i++],r--;1<r?c[n++]=65533:a<65536?c[n++]=a:(a-=65536,c[n++]=55296|a>>10&1023,c[n++]=56320|1023&a)}return l(c,n)},i.utf8border=function(e,t){var i;for((t=t||e.length)>e.length&&(t=e.length),i=t-1;0<=i&&128==(192&e[i]);)i--;return i<0||0===i?t:i+o[e[i]]>t?i:t}},{"./common":41}],43:[function(e,t,i){"use strict";t.exports=function(e,t,i,n){for(var a=65535&e|0,r=e>>>16&65535|0,o=0;0!==i;){for(i-=o=2e3<i?2e3:i;r=r+(a=a+t[n++]|0)|0,--o;);a%=65521,r%=65521}return a|r<<16|0}},{}],44:[function(e,t,i){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(e,t,i){"use strict";var n=function(){for(var e,t=[],i=0;i<256;i++){e=i;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[i]=e}return t}();t.exports=function(e,t,i,a){var r=n,o=a+i;e^=-1;for(var s=a;s<o;s++)e=e>>>8^r[255&(e^t[s])];return-1^e}},{}],46:[function(e,t,i){"use strict";var n,a=e("../utils/common"),r=e("./trees"),o=e("./adler32"),s=e("./crc32"),l=e("./messages"),c=0,u=4,d=0,f=-2,h=-1,p=4,m=2,g=8,v=9,b=286,y=30,w=19,_=2*b+1,I=15,x=3,S=258,T=S+x+1,C=42,k=113,R=1,D=2,L=3,O=4;function $(e,t){return e.msg=l[t],t}function N(e){return(e<<1)-(4<e?9:0)}function A(e){for(var t=e.length;0<=--t;)e[t]=0}function P(e){var t=e.state,i=t.pending;i>e.avail_out&&(i=e.avail_out),0!==i&&(a.arraySet(e.output,t.pending_buf,t.pending_out,i,e.next_out),e.next_out+=i,t.pending_out+=i,e.total_out+=i,e.avail_out-=i,t.pending-=i,0===t.pending&&(t.pending_out=0))}function E(e,t){r._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,P(e.strm)}function M(e,t){e.pending_buf[e.pending++]=t}function F(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function j(e,t){var i,n,a=e.max_chain_length,r=e.strstart,o=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-T?e.strstart-(e.w_size-T):0,c=e.window,u=e.w_mask,d=e.prev,f=e.strstart+S,h=c[r+o-1],p=c[r+o];e.prev_length>=e.good_match&&(a>>=2),s>e.lookahead&&(s=e.lookahead);do{if(c[(i=t)+o]===p&&c[i+o-1]===h&&c[i]===c[r]&&c[++i]===c[r+1]){r+=2,i++;do{}while(c[++r]===c[++i]&&c[++r]===c[++i]&&c[++r]===c[++i]&&c[++r]===c[++i]&&c[++r]===c[++i]&&c[++r]===c[++i]&&c[++r]===c[++i]&&c[++r]===c[++i]&&r<f);if(n=S-(f-r),r=f-S,o<n){if(e.match_start=t,s<=(o=n))break;h=c[r+o-1],p=c[r+o]}}}while((t=d[t&u])>l&&0!=--a);return o<=e.lookahead?o:e.lookahead}function V(e){var t,i,n,r,l,c,u,d,f,h,p=e.w_size;do{if(r=e.window_size-e.lookahead-e.strstart,e.strstart>=p+(p-T)){for(a.arraySet(e.window,e.window,p,p,0),e.match_start-=p,e.strstart-=p,e.block_start-=p,t=i=e.hash_size;n=e.head[--t],e.head[t]=p<=n?n-p:0,--i;);for(t=i=p;n=e.prev[--t],e.prev[t]=p<=n?n-p:0,--i;);r+=p}if(0===e.strm.avail_in)break;if(c=e.strm,u=e.window,d=e.strstart+e.lookahead,f=r,h=void 0,h=c.avail_in,f<h&&(h=f),i=0===h?0:(c.avail_in-=h,a.arraySet(u,c.input,c.next_in,h,d),1===c.state.wrap?c.adler=o(c.adler,u,h,d):2===c.state.wrap&&(c.adler=s(c.adler,u,h,d)),c.next_in+=h,c.total_in+=h,h),e.lookahead+=i,e.lookahead+e.insert>=x)for(l=e.strstart-e.insert,e.ins_h=e.window[l],e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+x-1])&e.hash_mask,e.prev[l&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=l,l++,e.insert--,!(e.lookahead+e.insert<x)););}while(e.lookahead<T&&0!==e.strm.avail_in)}function q(e,t){for(var i,n;;){if(e.lookahead<T){if(V(e),e.lookahead<T&&t===c)return R;if(0===e.lookahead)break}if(i=0,e.lookahead>=x&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+x-1])&e.hash_mask,i=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==i&&e.strstart-i<=e.w_size-T&&(e.match_length=j(e,i)),e.match_length>=x)if(n=r._tr_tally(e,e.strstart-e.match_start,e.match_length-x),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=x){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+x-1])&e.hash_mask,i=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else n=r._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(E(e,!1),0===e.strm.avail_out))return R}return e.insert=e.strstart<x-1?e.strstart:x-1,t===u?(E(e,!0),0===e.strm.avail_out?L:O):e.last_lit&&(E(e,!1),0===e.strm.avail_out)?R:D}function z(e,t){for(var i,n,a;;){if(e.lookahead<T){if(V(e),e.lookahead<T&&t===c)return R;if(0===e.lookahead)break}if(i=0,e.lookahead>=x&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+x-1])&e.hash_mask,i=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=x-1,0!==i&&e.prev_length<e.max_lazy_match&&e.strstart-i<=e.w_size-T&&(e.match_length=j(e,i),e.match_length<=5&&(1===e.strategy||e.match_length===x&&4096<e.strstart-e.match_start)&&(e.match_length=x-1)),e.prev_length>=x&&e.match_length<=e.prev_length){for(a=e.strstart+e.lookahead-x,n=r._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-x),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=a&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+x-1])&e.hash_mask,i=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!=--e.prev_length;);if(e.match_available=0,e.match_length=x-1,e.strstart++,n&&(E(e,!1),0===e.strm.avail_out))return R}else if(e.match_available){if((n=r._tr_tally(e,0,e.window[e.strstart-1]))&&E(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return R}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=r._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<x-1?e.strstart:x-1,t===u?(E(e,!0),0===e.strm.avail_out?L:O):e.last_lit&&(E(e,!1),0===e.strm.avail_out)?R:D}function B(e,t,i,n,a){this.good_length=e,this.max_lazy=t,this.nice_length=i,this.max_chain=n,this.func=a}function U(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=g,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new a.Buf16(2*_),this.dyn_dtree=new a.Buf16(2*(2*y+1)),this.bl_tree=new a.Buf16(2*(2*w+1)),A(this.dyn_ltree),A(this.dyn_dtree),A(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new a.Buf16(I+1),this.heap=new a.Buf16(2*b+1),A(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new a.Buf16(2*b+1),A(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Q(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=m,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?C:k,e.adler=2===t.wrap?0:1,t.last_flush=c,r._tr_init(t),d):$(e,f)}function H(e){var t=Q(e);return t===d&&function(e){e.window_size=2*e.w_size,A(e.head),e.max_lazy_match=n[e.level].max_lazy,e.good_match=n[e.level].good_length,e.nice_match=n[e.level].nice_length,e.max_chain_length=n[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=x-1,e.match_available=0,e.ins_h=0}(e.state),t}function G(e,t,i,n,r,o){if(!e)return f;var s=1;if(t===h&&(t=6),n<0?(s=0,n=-n):15<n&&(s=2,n-=16),r<1||v<r||i!==g||n<8||15<n||t<0||9<t||o<0||p<o)return $(e,f);8===n&&(n=9);var l=new U;return(e.state=l).strm=e,l.wrap=s,l.gzhead=null,l.w_bits=n,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=r+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+x-1)/x),l.window=new a.Buf8(2*l.w_size),l.head=new a.Buf16(l.hash_size),l.prev=new a.Buf16(l.w_size),l.lit_bufsize=1<<r+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new a.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=t,l.strategy=o,l.method=i,H(e)}n=[new B(0,0,0,0,(function(e,t){var i=65535;for(i>e.pending_buf_size-5&&(i=e.pending_buf_size-5);;){if(e.lookahead<=1){if(V(e),0===e.lookahead&&t===c)return R;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+i;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,E(e,!1),0===e.strm.avail_out))return R;if(e.strstart-e.block_start>=e.w_size-T&&(E(e,!1),0===e.strm.avail_out))return R}return e.insert=0,t===u?(E(e,!0),0===e.strm.avail_out?L:O):(e.strstart>e.block_start&&(E(e,!1),e.strm.avail_out),R)})),new B(4,4,8,4,q),new B(4,5,16,8,q),new B(4,6,32,32,q),new B(4,4,16,16,z),new B(8,16,32,32,z),new B(8,16,128,128,z),new B(8,32,128,256,z),new B(32,128,258,1024,z),new B(32,258,258,4096,z)],i.deflateInit=function(e,t){return G(e,t,g,15,8,0)},i.deflateInit2=G,i.deflateReset=H,i.deflateResetKeep=Q,i.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?f:(e.state.gzhead=t,d):f},i.deflate=function(e,t){var i,a,o,l;if(!e||!e.state||5<t||t<0)return e?$(e,f):f;if(a=e.state,!e.output||!e.input&&0!==e.avail_in||666===a.status&&t!==u)return $(e,0===e.avail_out?-5:f);if(a.strm=e,i=a.last_flush,a.last_flush=t,a.status===C)if(2===a.wrap)e.adler=0,M(a,31),M(a,139),M(a,8),a.gzhead?(M(a,(a.gzhead.text?1:0)+(a.gzhead.hcrc?2:0)+(a.gzhead.extra?4:0)+(a.gzhead.name?8:0)+(a.gzhead.comment?16:0)),M(a,255&a.gzhead.time),M(a,a.gzhead.time>>8&255),M(a,a.gzhead.time>>16&255),M(a,a.gzhead.time>>24&255),M(a,9===a.level?2:2<=a.strategy||a.level<2?4:0),M(a,255&a.gzhead.os),a.gzhead.extra&&a.gzhead.extra.length&&(M(a,255&a.gzhead.extra.length),M(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(e.adler=s(e.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=69):(M(a,0),M(a,0),M(a,0),M(a,0),M(a,0),M(a,9===a.level?2:2<=a.strategy||a.level<2?4:0),M(a,3),a.status=k);else{var h=g+(a.w_bits-8<<4)<<8;h|=(2<=a.strategy||a.level<2?0:a.level<6?1:6===a.level?2:3)<<6,0!==a.strstart&&(h|=32),h+=31-h%31,a.status=k,F(a,h),0!==a.strstart&&(F(a,e.adler>>>16),F(a,65535&e.adler)),e.adler=1}if(69===a.status)if(a.gzhead.extra){for(o=a.pending;a.gzindex<(65535&a.gzhead.extra.length)&&(a.pending!==a.pending_buf_size||(a.gzhead.hcrc&&a.pending>o&&(e.adler=s(e.adler,a.pending_buf,a.pending-o,o)),P(e),o=a.pending,a.pending!==a.pending_buf_size));)M(a,255&a.gzhead.extra[a.gzindex]),a.gzindex++;a.gzhead.hcrc&&a.pending>o&&(e.adler=s(e.adler,a.pending_buf,a.pending-o,o)),a.gzindex===a.gzhead.extra.length&&(a.gzindex=0,a.status=73)}else a.status=73;if(73===a.status)if(a.gzhead.name){o=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>o&&(e.adler=s(e.adler,a.pending_buf,a.pending-o,o)),P(e),o=a.pending,a.pending===a.pending_buf_size)){l=1;break}l=a.gzindex<a.gzhead.name.length?255&a.gzhead.name.charCodeAt(a.gzindex++):0,M(a,l)}while(0!==l);a.gzhead.hcrc&&a.pending>o&&(e.adler=s(e.adler,a.pending_buf,a.pending-o,o)),0===l&&(a.gzindex=0,a.status=91)}else a.status=91;if(91===a.status)if(a.gzhead.comment){o=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>o&&(e.adler=s(e.adler,a.pending_buf,a.pending-o,o)),P(e),o=a.pending,a.pending===a.pending_buf_size)){l=1;break}l=a.gzindex<a.gzhead.comment.length?255&a.gzhead.comment.charCodeAt(a.gzindex++):0,M(a,l)}while(0!==l);a.gzhead.hcrc&&a.pending>o&&(e.adler=s(e.adler,a.pending_buf,a.pending-o,o)),0===l&&(a.status=103)}else a.status=103;if(103===a.status&&(a.gzhead.hcrc?(a.pending+2>a.pending_buf_size&&P(e),a.pending+2<=a.pending_buf_size&&(M(a,255&e.adler),M(a,e.adler>>8&255),e.adler=0,a.status=k)):a.status=k),0!==a.pending){if(P(e),0===e.avail_out)return a.last_flush=-1,d}else if(0===e.avail_in&&N(t)<=N(i)&&t!==u)return $(e,-5);if(666===a.status&&0!==e.avail_in)return $(e,-5);if(0!==e.avail_in||0!==a.lookahead||t!==c&&666!==a.status){var p=2===a.strategy?function(e,t){for(var i;;){if(0===e.lookahead&&(V(e),0===e.lookahead)){if(t===c)return R;break}if(e.match_length=0,i=r._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,i&&(E(e,!1),0===e.strm.avail_out))return R}return e.insert=0,t===u?(E(e,!0),0===e.strm.avail_out?L:O):e.last_lit&&(E(e,!1),0===e.strm.avail_out)?R:D}(a,t):3===a.strategy?function(e,t){for(var i,n,a,o,s=e.window;;){if(e.lookahead<=S){if(V(e),e.lookahead<=S&&t===c)return R;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=x&&0<e.strstart&&(n=s[a=e.strstart-1])===s[++a]&&n===s[++a]&&n===s[++a]){o=e.strstart+S;do{}while(n===s[++a]&&n===s[++a]&&n===s[++a]&&n===s[++a]&&n===s[++a]&&n===s[++a]&&n===s[++a]&&n===s[++a]&&a<o);e.match_length=S-(o-a),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=x?(i=r._tr_tally(e,1,e.match_length-x),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(i=r._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),i&&(E(e,!1),0===e.strm.avail_out))return R}return e.insert=0,t===u?(E(e,!0),0===e.strm.avail_out?L:O):e.last_lit&&(E(e,!1),0===e.strm.avail_out)?R:D}(a,t):n[a.level].func(a,t);if(p!==L&&p!==O||(a.status=666),p===R||p===L)return 0===e.avail_out&&(a.last_flush=-1),d;if(p===D&&(1===t?r._tr_align(a):5!==t&&(r._tr_stored_block(a,0,0,!1),3===t&&(A(a.head),0===a.lookahead&&(a.strstart=0,a.block_start=0,a.insert=0))),P(e),0===e.avail_out))return a.last_flush=-1,d}return t!==u?d:a.wrap<=0?1:(2===a.wrap?(M(a,255&e.adler),M(a,e.adler>>8&255),M(a,e.adler>>16&255),M(a,e.adler>>24&255),M(a,255&e.total_in),M(a,e.total_in>>8&255),M(a,e.total_in>>16&255),M(a,e.total_in>>24&255)):(F(a,e.adler>>>16),F(a,65535&e.adler)),P(e),0<a.wrap&&(a.wrap=-a.wrap),0!==a.pending?d:1)},i.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==C&&69!==t&&73!==t&&91!==t&&103!==t&&t!==k&&666!==t?$(e,f):(e.state=null,t===k?$(e,-3):d):f},i.deflateSetDictionary=function(e,t){var i,n,r,s,l,c,u,h,p=t.length;if(!e||!e.state)return f;if(2===(s=(i=e.state).wrap)||1===s&&i.status!==C||i.lookahead)return f;for(1===s&&(e.adler=o(e.adler,t,p,0)),i.wrap=0,p>=i.w_size&&(0===s&&(A(i.head),i.strstart=0,i.block_start=0,i.insert=0),h=new a.Buf8(i.w_size),a.arraySet(h,t,p-i.w_size,i.w_size,0),t=h,p=i.w_size),l=e.avail_in,c=e.next_in,u=e.input,e.avail_in=p,e.next_in=0,e.input=t,V(i);i.lookahead>=x;){for(n=i.strstart,r=i.lookahead-(x-1);i.ins_h=(i.ins_h<<i.hash_shift^i.window[n+x-1])&i.hash_mask,i.prev[n&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=n,n++,--r;);i.strstart=n,i.lookahead=x-1,V(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=x-1,i.match_available=0,e.next_in=c,e.input=u,e.avail_in=l,i.wrap=s,d},i.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,t,i){"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(e,t,i){"use strict";t.exports=function(e,t){var i,n,a,r,o,s,l,c,u,d,f,h,p,m,g,v,b,y,w,_,I,x,S,T,C;i=e.state,n=e.next_in,T=e.input,a=n+(e.avail_in-5),r=e.next_out,C=e.output,o=r-(t-e.avail_out),s=r+(e.avail_out-257),l=i.dmax,c=i.wsize,u=i.whave,d=i.wnext,f=i.window,h=i.hold,p=i.bits,m=i.lencode,g=i.distcode,v=(1<<i.lenbits)-1,b=(1<<i.distbits)-1;e:do{p<15&&(h+=T[n++]<<p,p+=8,h+=T[n++]<<p,p+=8),y=m[h&v];t:for(;;){if(h>>>=w=y>>>24,p-=w,0===(w=y>>>16&255))C[r++]=65535&y;else{if(!(16&w)){if(0==(64&w)){y=m[(65535&y)+(h&(1<<w)-1)];continue t}if(32&w){i.mode=12;break e}e.msg="invalid literal/length code",i.mode=30;break e}_=65535&y,(w&=15)&&(p<w&&(h+=T[n++]<<p,p+=8),_+=h&(1<<w)-1,h>>>=w,p-=w),p<15&&(h+=T[n++]<<p,p+=8,h+=T[n++]<<p,p+=8),y=g[h&b];i:for(;;){if(h>>>=w=y>>>24,p-=w,!(16&(w=y>>>16&255))){if(0==(64&w)){y=g[(65535&y)+(h&(1<<w)-1)];continue i}e.msg="invalid distance code",i.mode=30;break e}if(I=65535&y,p<(w&=15)&&(h+=T[n++]<<p,(p+=8)<w&&(h+=T[n++]<<p,p+=8)),l<(I+=h&(1<<w)-1)){e.msg="invalid distance too far back",i.mode=30;break e}if(h>>>=w,p-=w,(w=r-o)<I){if(u<(w=I-w)&&i.sane){e.msg="invalid distance too far back",i.mode=30;break e}if(S=f,(x=0)===d){if(x+=c-w,w<_){for(_-=w;C[r++]=f[x++],--w;);x=r-I,S=C}}else if(d<w){if(x+=c+d-w,(w-=d)<_){for(_-=w;C[r++]=f[x++],--w;);if(x=0,d<_){for(_-=w=d;C[r++]=f[x++],--w;);x=r-I,S=C}}}else if(x+=d-w,w<_){for(_-=w;C[r++]=f[x++],--w;);x=r-I,S=C}for(;2<_;)C[r++]=S[x++],C[r++]=S[x++],C[r++]=S[x++],_-=3;_&&(C[r++]=S[x++],1<_&&(C[r++]=S[x++]))}else{for(x=r-I;C[r++]=C[x++],C[r++]=C[x++],C[r++]=C[x++],2<(_-=3););_&&(C[r++]=C[x++],1<_&&(C[r++]=C[x++]))}break}}break}}while(n<a&&r<s);n-=_=p>>3,h&=(1<<(p-=_<<3))-1,e.next_in=n,e.next_out=r,e.avail_in=n<a?a-n+5:5-(n-a),e.avail_out=r<s?s-r+257:257-(r-s),i.hold=h,i.bits=p}},{}],49:[function(e,t,i){"use strict";var n=e("../utils/common"),a=e("./adler32"),r=e("./crc32"),o=e("./inffast"),s=e("./inftrees"),l=1,c=2,u=0,d=-2,f=1,h=852,p=592;function m(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function g(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function v(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=f,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new n.Buf32(h),t.distcode=t.distdyn=new n.Buf32(p),t.sane=1,t.back=-1,u):d}function b(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,v(e)):d}function y(e,t){var i,n;return e&&e.state?(n=e.state,t<0?(i=0,t=-t):(i=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?d:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=i,n.wbits=t,b(e))):d}function w(e,t){var i,n;return e?(n=new g,(e.state=n).window=null,(i=y(e,t))!==u&&(e.state=null),i):d}var _,I,x=!0;function S(e){if(x){var t;for(_=new n.Buf32(512),I=new n.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(l,e.lens,0,288,_,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(c,e.lens,0,32,I,0,e.work,{bits:5}),x=!1}e.lencode=_,e.lenbits=9,e.distcode=I,e.distbits=5}function T(e,t,i,a){var r,o=e.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new n.Buf8(o.wsize)),a>=o.wsize?(n.arraySet(o.window,t,i-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(a<(r=o.wsize-o.wnext)&&(r=a),n.arraySet(o.window,t,i-a,r,o.wnext),(a-=r)?(n.arraySet(o.window,t,i-a,a,0),o.wnext=a,o.whave=o.wsize):(o.wnext+=r,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=r))),0}i.inflateReset=b,i.inflateReset2=y,i.inflateResetKeep=v,i.inflateInit=function(e){return w(e,15)},i.inflateInit2=w,i.inflate=function(e,t){var i,h,p,g,v,b,y,w,_,I,x,C,k,R,D,L,O,$,N,A,P,E,M,F,j=0,V=new n.Buf8(4),q=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return d;12===(i=e.state).mode&&(i.mode=13),v=e.next_out,p=e.output,y=e.avail_out,g=e.next_in,h=e.input,b=e.avail_in,w=i.hold,_=i.bits,I=b,x=y,E=u;e:for(;;)switch(i.mode){case f:if(0===i.wrap){i.mode=13;break}for(;_<16;){if(0===b)break e;b--,w+=h[g++]<<_,_+=8}if(2&i.wrap&&35615===w){V[i.check=0]=255&w,V[1]=w>>>8&255,i.check=r(i.check,V,2,0),_=w=0,i.mode=2;break}if(i.flags=0,i.head&&(i.head.done=!1),!(1&i.wrap)||(((255&w)<<8)+(w>>8))%31){e.msg="incorrect header check",i.mode=30;break}if(8!=(15&w)){e.msg="unknown compression method",i.mode=30;break}if(_-=4,P=8+(15&(w>>>=4)),0===i.wbits)i.wbits=P;else if(P>i.wbits){e.msg="invalid window size",i.mode=30;break}i.dmax=1<<P,e.adler=i.check=1,i.mode=512&w?10:12,_=w=0;break;case 2:for(;_<16;){if(0===b)break e;b--,w+=h[g++]<<_,_+=8}if(i.flags=w,8!=(255&i.flags)){e.msg="unknown compression method",i.mode=30;break}if(57344&i.flags){e.msg="unknown header flags set",i.mode=30;break}i.head&&(i.head.text=w>>8&1),512&i.flags&&(V[0]=255&w,V[1]=w>>>8&255,i.check=r(i.check,V,2,0)),_=w=0,i.mode=3;case 3:for(;_<32;){if(0===b)break e;b--,w+=h[g++]<<_,_+=8}i.head&&(i.head.time=w),512&i.flags&&(V[0]=255&w,V[1]=w>>>8&255,V[2]=w>>>16&255,V[3]=w>>>24&255,i.check=r(i.check,V,4,0)),_=w=0,i.mode=4;case 4:for(;_<16;){if(0===b)break e;b--,w+=h[g++]<<_,_+=8}i.head&&(i.head.xflags=255&w,i.head.os=w>>8),512&i.flags&&(V[0]=255&w,V[1]=w>>>8&255,i.check=r(i.check,V,2,0)),_=w=0,i.mode=5;case 5:if(1024&i.flags){for(;_<16;){if(0===b)break e;b--,w+=h[g++]<<_,_+=8}i.length=w,i.head&&(i.head.extra_len=w),512&i.flags&&(V[0]=255&w,V[1]=w>>>8&255,i.check=r(i.check,V,2,0)),_=w=0}else i.head&&(i.head.extra=null);i.mode=6;case 6:if(1024&i.flags&&(b<(C=i.length)&&(C=b),C&&(i.head&&(P=i.head.extra_len-i.length,i.head.extra||(i.head.extra=new Array(i.head.extra_len)),n.arraySet(i.head.extra,h,g,C,P)),512&i.flags&&(i.check=r(i.check,h,C,g)),b-=C,g+=C,i.length-=C),i.length))break e;i.length=0,i.mode=7;case 7:if(2048&i.flags){if(0===b)break e;for(C=0;P=h[g+C++],i.head&&P&&i.length<65536&&(i.head.name+=String.fromCharCode(P)),P&&C<b;);if(512&i.flags&&(i.check=r(i.check,h,C,g)),b-=C,g+=C,P)break e}else i.head&&(i.head.name=null);i.length=0,i.mode=8;case 8:if(4096&i.flags){if(0===b)break e;for(C=0;P=h[g+C++],i.head&&P&&i.length<65536&&(i.head.comment+=String.fromCharCode(P)),P&&C<b;);if(512&i.flags&&(i.check=r(i.check,h,C,g)),b-=C,g+=C,P)break e}else i.head&&(i.head.comment=null);i.mode=9;case 9:if(512&i.flags){for(;_<16;){if(0===b)break e;b--,w+=h[g++]<<_,_+=8}if(w!==(65535&i.check)){e.msg="header crc mismatch",i.mode=30;break}_=w=0}i.head&&(i.head.hcrc=i.flags>>9&1,i.head.done=!0),e.adler=i.check=0,i.mode=12;break;case 10:for(;_<32;){if(0===b)break e;b--,w+=h[g++]<<_,_+=8}e.adler=i.check=m(w),_=w=0,i.mode=11;case 11:if(0===i.havedict)return e.next_out=v,e.avail_out=y,e.next_in=g,e.avail_in=b,i.hold=w,i.bits=_,2;e.adler=i.check=1,i.mode=12;case 12:if(5===t||6===t)break e;case 13:if(i.last){w>>>=7&_,_-=7&_,i.mode=27;break}for(;_<3;){if(0===b)break e;b--,w+=h[g++]<<_,_+=8}switch(i.last=1&w,_-=1,3&(w>>>=1)){case 0:i.mode=14;break;case 1:if(S(i),i.mode=20,6!==t)break;w>>>=2,_-=2;break e;case 2:i.mode=17;break;case 3:e.msg="invalid block type",i.mode=30}w>>>=2,_-=2;break;case 14:for(w>>>=7&_,_-=7&_;_<32;){if(0===b)break e;b--,w+=h[g++]<<_,_+=8}if((65535&w)!=(w>>>16^65535)){e.msg="invalid stored block lengths",i.mode=30;break}if(i.length=65535&w,_=w=0,i.mode=15,6===t)break e;case 15:i.mode=16;case 16:if(C=i.length){if(b<C&&(C=b),y<C&&(C=y),0===C)break e;n.arraySet(p,h,g,C,v),b-=C,g+=C,y-=C,v+=C,i.length-=C;break}i.mode=12;break;case 17:for(;_<14;){if(0===b)break e;b--,w+=h[g++]<<_,_+=8}if(i.nlen=257+(31&w),w>>>=5,_-=5,i.ndist=1+(31&w),w>>>=5,_-=5,i.ncode=4+(15&w),w>>>=4,_-=4,286<i.nlen||30<i.ndist){e.msg="too many length or distance symbols",i.mode=30;break}i.have=0,i.mode=18;case 18:for(;i.have<i.ncode;){for(;_<3;){if(0===b)break e;b--,w+=h[g++]<<_,_+=8}i.lens[q[i.have++]]=7&w,w>>>=3,_-=3}for(;i.have<19;)i.lens[q[i.have++]]=0;if(i.lencode=i.lendyn,i.lenbits=7,M={bits:i.lenbits},E=s(0,i.lens,0,19,i.lencode,0,i.work,M),i.lenbits=M.bits,E){e.msg="invalid code lengths set",i.mode=30;break}i.have=0,i.mode=19;case 19:for(;i.have<i.nlen+i.ndist;){for(;L=(j=i.lencode[w&(1<<i.lenbits)-1])>>>16&255,O=65535&j,!((D=j>>>24)<=_);){if(0===b)break e;b--,w+=h[g++]<<_,_+=8}if(O<16)w>>>=D,_-=D,i.lens[i.have++]=O;else{if(16===O){for(F=D+2;_<F;){if(0===b)break e;b--,w+=h[g++]<<_,_+=8}if(w>>>=D,_-=D,0===i.have){e.msg="invalid bit length repeat",i.mode=30;break}P=i.lens[i.have-1],C=3+(3&w),w>>>=2,_-=2}else if(17===O){for(F=D+3;_<F;){if(0===b)break e;b--,w+=h[g++]<<_,_+=8}_-=D,P=0,C=3+(7&(w>>>=D)),w>>>=3,_-=3}else{for(F=D+7;_<F;){if(0===b)break e;b--,w+=h[g++]<<_,_+=8}_-=D,P=0,C=11+(127&(w>>>=D)),w>>>=7,_-=7}if(i.have+C>i.nlen+i.ndist){e.msg="invalid bit length repeat",i.mode=30;break}for(;C--;)i.lens[i.have++]=P}}if(30===i.mode)break;if(0===i.lens[256]){e.msg="invalid code -- missing end-of-block",i.mode=30;break}if(i.lenbits=9,M={bits:i.lenbits},E=s(l,i.lens,0,i.nlen,i.lencode,0,i.work,M),i.lenbits=M.bits,E){e.msg="invalid literal/lengths set",i.mode=30;break}if(i.distbits=6,i.distcode=i.distdyn,M={bits:i.distbits},E=s(c,i.lens,i.nlen,i.ndist,i.distcode,0,i.work,M),i.distbits=M.bits,E){e.msg="invalid distances set",i.mode=30;break}if(i.mode=20,6===t)break e;case 20:i.mode=21;case 21:if(6<=b&&258<=y){e.next_out=v,e.avail_out=y,e.next_in=g,e.avail_in=b,i.hold=w,i.bits=_,o(e,x),v=e.next_out,p=e.output,y=e.avail_out,g=e.next_in,h=e.input,b=e.avail_in,w=i.hold,_=i.bits,12===i.mode&&(i.back=-1);break}for(i.back=0;L=(j=i.lencode[w&(1<<i.lenbits)-1])>>>16&255,O=65535&j,!((D=j>>>24)<=_);){if(0===b)break e;b--,w+=h[g++]<<_,_+=8}if(L&&0==(240&L)){for($=D,N=L,A=O;L=(j=i.lencode[A+((w&(1<<$+N)-1)>>$)])>>>16&255,O=65535&j,!($+(D=j>>>24)<=_);){if(0===b)break e;b--,w+=h[g++]<<_,_+=8}w>>>=$,_-=$,i.back+=$}if(w>>>=D,_-=D,i.back+=D,i.length=O,0===L){i.mode=26;break}if(32&L){i.back=-1,i.mode=12;break}if(64&L){e.msg="invalid literal/length code",i.mode=30;break}i.extra=15&L,i.mode=22;case 22:if(i.extra){for(F=i.extra;_<F;){if(0===b)break e;b--,w+=h[g++]<<_,_+=8}i.length+=w&(1<<i.extra)-1,w>>>=i.extra,_-=i.extra,i.back+=i.extra}i.was=i.length,i.mode=23;case 23:for(;L=(j=i.distcode[w&(1<<i.distbits)-1])>>>16&255,O=65535&j,!((D=j>>>24)<=_);){if(0===b)break e;b--,w+=h[g++]<<_,_+=8}if(0==(240&L)){for($=D,N=L,A=O;L=(j=i.distcode[A+((w&(1<<$+N)-1)>>$)])>>>16&255,O=65535&j,!($+(D=j>>>24)<=_);){if(0===b)break e;b--,w+=h[g++]<<_,_+=8}w>>>=$,_-=$,i.back+=$}if(w>>>=D,_-=D,i.back+=D,64&L){e.msg="invalid distance code",i.mode=30;break}i.offset=O,i.extra=15&L,i.mode=24;case 24:if(i.extra){for(F=i.extra;_<F;){if(0===b)break e;b--,w+=h[g++]<<_,_+=8}i.offset+=w&(1<<i.extra)-1,w>>>=i.extra,_-=i.extra,i.back+=i.extra}if(i.offset>i.dmax){e.msg="invalid distance too far back",i.mode=30;break}i.mode=25;case 25:if(0===y)break e;if(C=x-y,i.offset>C){if((C=i.offset-C)>i.whave&&i.sane){e.msg="invalid distance too far back",i.mode=30;break}k=C>i.wnext?(C-=i.wnext,i.wsize-C):i.wnext-C,C>i.length&&(C=i.length),R=i.window}else R=p,k=v-i.offset,C=i.length;for(y<C&&(C=y),y-=C,i.length-=C;p[v++]=R[k++],--C;);0===i.length&&(i.mode=21);break;case 26:if(0===y)break e;p[v++]=i.length,y--,i.mode=21;break;case 27:if(i.wrap){for(;_<32;){if(0===b)break e;b--,w|=h[g++]<<_,_+=8}if(x-=y,e.total_out+=x,i.total+=x,x&&(e.adler=i.check=i.flags?r(i.check,p,x,v-x):a(i.check,p,x,v-x)),x=y,(i.flags?w:m(w))!==i.check){e.msg="incorrect data check",i.mode=30;break}_=w=0}i.mode=28;case 28:if(i.wrap&&i.flags){for(;_<32;){if(0===b)break e;b--,w+=h[g++]<<_,_+=8}if(w!==(4294967295&i.total)){e.msg="incorrect length check",i.mode=30;break}_=w=0}i.mode=29;case 29:E=1;break e;case 30:E=-3;break e;case 31:return-4;case 32:default:return d}return e.next_out=v,e.avail_out=y,e.next_in=g,e.avail_in=b,i.hold=w,i.bits=_,(i.wsize||x!==e.avail_out&&i.mode<30&&(i.mode<27||4!==t))&&T(e,e.output,e.next_out,x-e.avail_out)?(i.mode=31,-4):(I-=e.avail_in,x-=e.avail_out,e.total_in+=I,e.total_out+=x,i.total+=x,i.wrap&&x&&(e.adler=i.check=i.flags?r(i.check,p,x,e.next_out-x):a(i.check,p,x,e.next_out-x)),e.data_type=i.bits+(i.last?64:0)+(12===i.mode?128:0)+(20===i.mode||15===i.mode?256:0),(0==I&&0===x||4===t)&&E===u&&(E=-5),E)},i.inflateEnd=function(e){if(!e||!e.state)return d;var t=e.state;return t.window&&(t.window=null),e.state=null,u},i.inflateGetHeader=function(e,t){var i;return e&&e.state?0==(2&(i=e.state).wrap)?d:((i.head=t).done=!1,u):d},i.inflateSetDictionary=function(e,t){var i,n=t.length;return e&&e.state?0!==(i=e.state).wrap&&11!==i.mode?d:11===i.mode&&a(1,t,n,0)!==i.check?-3:T(e,t,n,n)?(i.mode=31,-4):(i.havedict=1,u):d},i.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,t,i){"use strict";var n=e("../utils/common"),a=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],r=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],o=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,i,l,c,u,d,f){var h,p,m,g,v,b,y,w,_,I=f.bits,x=0,S=0,T=0,C=0,k=0,R=0,D=0,L=0,O=0,$=0,N=null,A=0,P=new n.Buf16(16),E=new n.Buf16(16),M=null,F=0;for(x=0;x<=15;x++)P[x]=0;for(S=0;S<l;S++)P[t[i+S]]++;for(k=I,C=15;1<=C&&0===P[C];C--);if(C<k&&(k=C),0===C)return c[u++]=20971520,c[u++]=20971520,f.bits=1,0;for(T=1;T<C&&0===P[T];T++);for(k<T&&(k=T),x=L=1;x<=15;x++)if(L<<=1,(L-=P[x])<0)return-1;if(0<L&&(0===e||1!==C))return-1;for(E[1]=0,x=1;x<15;x++)E[x+1]=E[x]+P[x];for(S=0;S<l;S++)0!==t[i+S]&&(d[E[t[i+S]]++]=S);if(b=0===e?(N=M=d,19):1===e?(N=a,A-=257,M=r,F-=257,256):(N=o,M=s,-1),x=T,v=u,D=S=$=0,m=-1,g=(O=1<<(R=k))-1,1===e&&852<O||2===e&&592<O)return 1;for(;;){for(y=x-D,_=d[S]<b?(w=0,d[S]):d[S]>b?(w=M[F+d[S]],N[A+d[S]]):(w=96,0),h=1<<x-D,T=p=1<<R;c[v+($>>D)+(p-=h)]=y<<24|w<<16|_|0,0!==p;);for(h=1<<x-1;$&h;)h>>=1;if(0!==h?($&=h-1,$+=h):$=0,S++,0==--P[x]){if(x===C)break;x=t[i+d[S]]}if(k<x&&($&g)!==m){for(0===D&&(D=k),v+=T,L=1<<(R=x-D);R+D<C&&!((L-=P[R+D])<=0);)R++,L<<=1;if(O+=1<<R,1===e&&852<O||2===e&&592<O)return 1;c[m=$&g]=k<<24|R<<16|v-u|0}}return 0!==$&&(c[v+$]=x-D<<24|64<<16|0),f.bits=k,0}},{"../utils/common":41}],51:[function(e,t,i){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(e,t,i){"use strict";var n=e("../utils/common"),a=0,r=1;function o(e){for(var t=e.length;0<=--t;)e[t]=0}var s=0,l=29,c=256,u=c+1+l,d=30,f=19,h=2*u+1,p=15,m=16,g=7,v=256,b=16,y=17,w=18,_=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],I=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],x=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],S=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],T=new Array(2*(u+2));o(T);var C=new Array(2*d);o(C);var k=new Array(512);o(k);var R=new Array(256);o(R);var D=new Array(l);o(D);var L,O,$,N=new Array(d);function A(e,t,i,n,a){this.static_tree=e,this.extra_bits=t,this.extra_base=i,this.elems=n,this.max_length=a,this.has_stree=e&&e.length}function P(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function E(e){return e<256?k[e]:k[256+(e>>>7)]}function M(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function F(e,t,i){e.bi_valid>m-i?(e.bi_buf|=t<<e.bi_valid&65535,M(e,e.bi_buf),e.bi_buf=t>>m-e.bi_valid,e.bi_valid+=i-m):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=i)}function j(e,t,i){F(e,i[2*t],i[2*t+1])}function V(e,t){for(var i=0;i|=1&e,e>>>=1,i<<=1,0<--t;);return i>>>1}function q(e,t,i){var n,a,r=new Array(p+1),o=0;for(n=1;n<=p;n++)r[n]=o=o+i[n-1]<<1;for(a=0;a<=t;a++){var s=e[2*a+1];0!==s&&(e[2*a]=V(r[s]++,s))}}function z(e){var t;for(t=0;t<u;t++)e.dyn_ltree[2*t]=0;for(t=0;t<d;t++)e.dyn_dtree[2*t]=0;for(t=0;t<f;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*v]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function B(e){8<e.bi_valid?M(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function U(e,t,i,n){var a=2*t,r=2*i;return e[a]<e[r]||e[a]===e[r]&&n[t]<=n[i]}function Q(e,t,i){for(var n=e.heap[i],a=i<<1;a<=e.heap_len&&(a<e.heap_len&&U(t,e.heap[a+1],e.heap[a],e.depth)&&a++,!U(t,n,e.heap[a],e.depth));)e.heap[i]=e.heap[a],i=a,a<<=1;e.heap[i]=n}function H(e,t,i){var n,a,r,o,s=0;if(0!==e.last_lit)for(;n=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],a=e.pending_buf[e.l_buf+s],s++,0===n?j(e,a,t):(j(e,(r=R[a])+c+1,t),0!==(o=_[r])&&F(e,a-=D[r],o),j(e,r=E(--n),i),0!==(o=I[r])&&F(e,n-=N[r],o)),s<e.last_lit;);j(e,v,t)}function G(e,t){var i,n,a,r=t.dyn_tree,o=t.stat_desc.static_tree,s=t.stat_desc.has_stree,l=t.stat_desc.elems,c=-1;for(e.heap_len=0,e.heap_max=h,i=0;i<l;i++)0!==r[2*i]?(e.heap[++e.heap_len]=c=i,e.depth[i]=0):r[2*i+1]=0;for(;e.heap_len<2;)r[2*(a=e.heap[++e.heap_len]=c<2?++c:0)]=1,e.depth[a]=0,e.opt_len--,s&&(e.static_len-=o[2*a+1]);for(t.max_code=c,i=e.heap_len>>1;1<=i;i--)Q(e,r,i);for(a=l;i=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Q(e,r,1),n=e.heap[1],e.heap[--e.heap_max]=i,e.heap[--e.heap_max]=n,r[2*a]=r[2*i]+r[2*n],e.depth[a]=(e.depth[i]>=e.depth[n]?e.depth[i]:e.depth[n])+1,r[2*i+1]=r[2*n+1]=a,e.heap[1]=a++,Q(e,r,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var i,n,a,r,o,s,l=t.dyn_tree,c=t.max_code,u=t.stat_desc.static_tree,d=t.stat_desc.has_stree,f=t.stat_desc.extra_bits,m=t.stat_desc.extra_base,g=t.stat_desc.max_length,v=0;for(r=0;r<=p;r++)e.bl_count[r]=0;for(l[2*e.heap[e.heap_max]+1]=0,i=e.heap_max+1;i<h;i++)g<(r=l[2*l[2*(n=e.heap[i])+1]+1]+1)&&(r=g,v++),l[2*n+1]=r,c<n||(e.bl_count[r]++,o=0,m<=n&&(o=f[n-m]),s=l[2*n],e.opt_len+=s*(r+o),d&&(e.static_len+=s*(u[2*n+1]+o)));if(0!==v){do{for(r=g-1;0===e.bl_count[r];)r--;e.bl_count[r]--,e.bl_count[r+1]+=2,e.bl_count[g]--,v-=2}while(0<v);for(r=g;0!==r;r--)for(n=e.bl_count[r];0!==n;)c<(a=e.heap[--i])||(l[2*a+1]!==r&&(e.opt_len+=(r-l[2*a+1])*l[2*a],l[2*a+1]=r),n--)}}(e,t),q(r,c,e.bl_count)}function W(e,t,i){var n,a,r=-1,o=t[1],s=0,l=7,c=4;for(0===o&&(l=138,c=3),t[2*(i+1)+1]=65535,n=0;n<=i;n++)a=o,o=t[2*(n+1)+1],++s<l&&a===o||(s<c?e.bl_tree[2*a]+=s:0!==a?(a!==r&&e.bl_tree[2*a]++,e.bl_tree[2*b]++):s<=10?e.bl_tree[2*y]++:e.bl_tree[2*w]++,r=a,c=(s=0)===o?(l=138,3):a===o?(l=6,3):(l=7,4))}function Y(e,t,i){var n,a,r=-1,o=t[1],s=0,l=7,c=4;for(0===o&&(l=138,c=3),n=0;n<=i;n++)if(a=o,o=t[2*(n+1)+1],!(++s<l&&a===o)){if(s<c)for(;j(e,a,e.bl_tree),0!=--s;);else 0!==a?(a!==r&&(j(e,a,e.bl_tree),s--),j(e,b,e.bl_tree),F(e,s-3,2)):s<=10?(j(e,y,e.bl_tree),F(e,s-3,3)):(j(e,w,e.bl_tree),F(e,s-11,7));r=a,c=(s=0)===o?(l=138,3):a===o?(l=6,3):(l=7,4)}}o(N);var K=!1;function Z(e,t,i,a){F(e,(s<<1)+(a?1:0),3),function(e,t,i,a){B(e),a&&(M(e,i),M(e,~i)),n.arraySet(e.pending_buf,e.window,t,i,e.pending),e.pending+=i}(e,t,i,!0)}i._tr_init=function(e){K||(function(){var e,t,i,n,a,r=new Array(p+1);for(n=i=0;n<l-1;n++)for(D[n]=i,e=0;e<1<<_[n];e++)R[i++]=n;for(R[i-1]=n,n=a=0;n<16;n++)for(N[n]=a,e=0;e<1<<I[n];e++)k[a++]=n;for(a>>=7;n<d;n++)for(N[n]=a<<7,e=0;e<1<<I[n]-7;e++)k[256+a++]=n;for(t=0;t<=p;t++)r[t]=0;for(e=0;e<=143;)T[2*e+1]=8,e++,r[8]++;for(;e<=255;)T[2*e+1]=9,e++,r[9]++;for(;e<=279;)T[2*e+1]=7,e++,r[7]++;for(;e<=287;)T[2*e+1]=8,e++,r[8]++;for(q(T,u+1,r),e=0;e<d;e++)C[2*e+1]=5,C[2*e]=V(e,5);L=new A(T,_,c+1,u,p),O=new A(C,I,0,d,p),$=new A(new Array(0),x,0,f,g)}(),K=!0),e.l_desc=new P(e.dyn_ltree,L),e.d_desc=new P(e.dyn_dtree,O),e.bl_desc=new P(e.bl_tree,$),e.bi_buf=0,e.bi_valid=0,z(e)},i._tr_stored_block=Z,i._tr_flush_block=function(e,t,i,n){var o,s,l=0;0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,i=4093624447;for(t=0;t<=31;t++,i>>>=1)if(1&i&&0!==e.dyn_ltree[2*t])return a;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return r;for(t=32;t<c;t++)if(0!==e.dyn_ltree[2*t])return r;return a}(e)),G(e,e.l_desc),G(e,e.d_desc),l=function(e){var t;for(W(e,e.dyn_ltree,e.l_desc.max_code),W(e,e.dyn_dtree,e.d_desc.max_code),G(e,e.bl_desc),t=f-1;3<=t&&0===e.bl_tree[2*S[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),o=e.opt_len+3+7>>>3,(s=e.static_len+3+7>>>3)<=o&&(o=s)):o=s=i+5,i+4<=o&&-1!==t?Z(e,t,i,n):4===e.strategy||s===o?(F(e,2+(n?1:0),3),H(e,T,C)):(F(e,4+(n?1:0),3),function(e,t,i,n){var a;for(F(e,t-257,5),F(e,i-1,5),F(e,n-4,4),a=0;a<n;a++)F(e,e.bl_tree[2*S[a]+1],3);Y(e,e.dyn_ltree,t-1),Y(e,e.dyn_dtree,i-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,l+1),H(e,e.dyn_ltree,e.dyn_dtree)),z(e),n&&B(e)},i._tr_tally=function(e,t,i){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&i,e.last_lit++,0===t?e.dyn_ltree[2*i]++:(e.matches++,t--,e.dyn_ltree[2*(R[i]+c+1)]++,e.dyn_dtree[2*E(t)]++),e.last_lit===e.lit_bufsize-1},i._tr_align=function(e){F(e,2,3),j(e,v,T),function(e){16===e.bi_valid?(M(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},{"../utils/common":41}],53:[function(e,t,i){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(e,t,i){"use strict";t.exports="function"==typeof setImmediate?setImmediate:function(){var e=[].slice.apply(arguments);e.splice(1,0,0),setTimeout.apply(null,e)}},{}]},{},[10])(10)}))}).call(this,i("1c35").Buffer,i("c8ba"))},c515:function(e,t,i){i("849b"),i("8459"),i("b006")},c523:function(e,t,i){},c526:function(e,t){var i={axisPointer:1,tooltip:1,brush:1};function n(e,t,n){var a=t.getComponentByElement(e.topTarget),r=a&&a.coordinateSystem;return a&&a!==n&&!i[a.mainType]&&r&&r.model!==n}t.onIrrelevantElement=n},c533:function(e,t){var i=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],n={color:i,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],i]};e.exports=n},c54d:function(e,t,i){var n,a,r;(function(o,s){a=[t,i("313e")],n=s,r="function"===typeof n?n.apply(t,a):n,void 0===r||(e.exports=r)})(0,(function(e,t){var i=function(e){"undefined"!==typeof console&&console&&console.error&&console.error(e)};t?t.registerMap?t.registerMap("world",{type:"FeatureCollection",crs:{type:"name",properties:{name:"urn:ogc:def:crs:OGC:1.3:CRS84"}},features:[{geometry:{type:"Polygon",coordinates:["@@࠿@ᠳ࡚с̶ʩт˷˔ƹͮɠͲ˖рԜ׷҄̕ҴNܾͰؼ÷۸ήԪ‡Үƴ̮¿ঞɪֶϤϲŹƛе²֭ĝDZƊĠǔōϭñėށ؅ਓɁȥԯ঻ƻԓࣗඩअ৯۝ڻो֑য়ߝล໥ϓ؇UļāļƫȖɩ̌]ᶼ̈́͘ɮ͜ɪ͚€®ĞĚ۪ƼɦːϪǰ;Ąߞᢌᣮ"],encodeOffsets:[[49130,8189]]},properties:{name:"Somalia",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ƛ¬Ð@ĞÆÒªDZ"],encodeOffsets:[[9810,48188]]},properties:{name:"Liechtenstein",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@⌗†øĒ୬ͪࣆيʊˆ҄ؔ^˶ȇɪÈצϲ֌ĐФ؜ְദ׼ҢڴήࡔլİtʍԾ΃ʤ›՘IJʢË΢ǒŎɽĠPĀmǶVǢgΤ̑Įவňȵ’Ǒ¼ýĈå²yĞÇÞ³œëąÍĥʹ೵]Ɂ³Ɨ{‘ΡʼnƑcăZÉSÍƫH˃ǨǓѭLJƣġǥÕȿÕǃñÿśıƇħěŽđұĿЍU“ƉÝå‹Sĵ^čfʉdʇǍ·ƒণ֣oۋ@Ĺ"],encodeOffsets:[[-8891,28445]]},properties:{name:"Morocco",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@⌘…@ķœ@@@Ŕ@@̷@̩@ǕBȍ@ȋ@ƍ@ĩ᫫@@ɋ@΃@ɭ@ŕ@қ@΃Oх̉űƽw½gΉɩķƯtįQJ–dz˜՟TšRšPėRŏᇷCฝCċα`ý§¨Ƙ࢘Ӕ׎ŰшΞ׎LJĹèƤ࠴݂Ģָ͌܌۴КͲޞŚƀ","@@i˷@@j˸"],encodeOffsets:[[-13351,28480],[-8984,28120]]},properties:{name:"W. Sahara",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@A@ƟwđĵȏÒʁč«Ǔƅ@ã̌Ο˘SǴʒÊÆ`Å_֡˰ϟʊkˆIŠDZʪĠɁ˔˶àϷˈȘѬ˻W²ɤ˲ÚͩǀºĬȋːÈĆѠŎNJĘȘoø`Ȓg¤_€cº·¶ÙȈėÒ÷´›fFfV\\T^Qhɿ՘ɳ†kĝƱƨ÷YißMµGuOD‡Ǝ‰Ĩãɰ™İŸÈßĜhŴĬŬ~Ũ±â›Z‰ƒ]ãNÇk¹ėnjƽɣȭkƒěHãƺ˝Ǵ謭’¡İÃƩǝÿďȫ•Ẹ̀Q‘ßço}ß]ĕUΥ@Ʌ±@@"],encodeOffsets:[[22080,43262]]},properties:{name:"Serbia",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@хǑޟ˜ܯőࡡԧ¡á͘з¤̧սշŊƉ™ˏͭąٝ°̺׿ٓɥɓӱŒз·ʫɫƚν@ӧʟƆƋʇğԻzЛϭĭ޿ॕʳכ]ʛŷѿĘࣻõЍĺٵȀ͋ĠШъȒȢȌȜxèFƆ·ǴăĆˁȡ|ɍ‚ƒZ{ƒZØaŤDĠŽƲDèij̎őͨaŦ̰̚˽êóļ@͒ƂDzȸZíĊ•´ubSv\\vÀT˜„ΠŠhňǞjΔö’´ƌ„’FgÈèTɶǓЀ«Ȁǫ͊î̲džzĺîĢƘ؜Ɣ˒Ř˞Lj°òŠńƲъ„ÖŖ¾ŚšǶRɄJǮˊרȋ¦HʲpȮ‹ńċľsĺ¤ÚR|¼[þJ¬wNwNÌÛļûĢmnjÂpp^ªô¤ʂĸ®T¸S–Z^‚b\\~VvL¤QȂƓ„¼¶^ê}ĞlôÒÈŒ”ǐ`Ɛ™ǢbÀèHϱĸ^ŽǠŶˌ̆ѨīÞŗ­Ƀ”aÎJĊtÄB~oűځĈʁŔů࠰˨ȦȨˈŢƠ®ĈRľsª_ÂW\\—a÷ËvkĄOΘĈŠ˜²˜ʹ‹ČѼ­§MÕryŠWJ·oğ}ƽáHiĸã|u^Q"],encodeOffsets:[[76331,37911]]},properties:{name:"Afghanistan",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ÂR̮cҮƠ͎Åǖ@ǔˆ|ɔDªĞƶHNJšŖ̈ƄĺTNJ|ʖ€ĞGR_¿ƽA½n½¦ƒʬGɼEҾi°oČ଩ýٵ͔ӑĠճēśnʕ¬ÓАþÖÚ~ɈqɘM͚IJ̴™ŐŢdܓ×މoěG±ðƁIĵY൑@ȗ@@ڟ@ˑ@ˑBౝǶ֡া࡙ࢳǑ೟Ƶҧƀ਩¼ҹͺሹTᅍeғ̴ʟÌՋȭǃN‘OėFǗ–ģµƇoŒ͆ƖËܼɠˌ҆ლζ֌θɌƴȞǀЊ¢ݐс޴˫ߚ̢̤hˊүஒґۤݴɦƌOՎNዲQĮ…ĘÇƈǕžϡÐŻĚƉÆ˕Ԃۻ"],["@@̆Ƅ„_øęÞËr___ğ™ı•ͅ˭DeÌ·‹ӏɫ‰θƅːОΖ"]],encodeOffsets:[[[18002,-8293]],[[12802,-4697]]]},properties:{name:"Angola",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@Π˗ä̋ÝԍȄ́ɊßQÙÚŷűŻȉ̍ǝ©¡aq›uwW@yÐğBƧůÙPь‹XkAűˬѽ̨ŚAĹɐȨࠐDŮȡæ½ʮ̾ϦŒŷɴÒ"],encodeOffsets:[[20546,43569]]},properties:{name:"Albania",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@Ł•^ĊĤ³"],["@@ɨ÷ϫƯħƾƊ¡sƜƖ"]],encodeOffsets:[[[20135,61632]],[[20470,61800]]]},properties:{name:"Aland",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@Ɵ½íIir[ò\\¢Ö ÈOŢ~y@esQm"],encodeOffsets:[[1747,43524]]},properties:{name:"Andorra",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ʙOǘøĂç"],["@@š‚ȆĶãŷ"],["@@ø֟˗ȫÁǸǣï…ԿƖw´ŷѡĹÂĹ˧څ[˥ççᒣʾ߳४oǪǘÚȱɴ‘ѼƸॺí̆ĐȾĚ̌҂ৎࠠŞɦò_m̙ź‘"]],encodeOffsets:[[[55223,24758]],[[54613,24841]],[[57650,26267]]]},properties:{name:"United Arab Emirates",childNum:3}},{geometry:{type:"MultiPolygon",coordinates:[["@@ؠQۓƫĵÜǪĢ"],["@@nᇜ͠έLJvµǥˠ›Ÿɏ׶УНࢴŧʕȣ࢑įԭņ౳¦"],["@@ȴǛߖȡפϿବӗɒ˳͉ӡȧɇ“˽ͫЛoÁŒıξ”บɿɮȜǴGƌùÚD涐ÌE悶̆ž rºʒàǞȔɌͦžʮbΰƠ¥ʐĒɜũȈԵƛ۩ЧʩхŃɫˇԽ˳ŽƩǟXࢣ਍ʉƽƯɃƅ曡•ě½õijģ“ă¾ɣÙßdƕqùşȅiߜ‘l•‡ëĿēk©z¿HÃiÉZǜÁEÕáųeû¤ͩɅŷĻҩžѻőēȰ͗آ˯͆˿Ʒ̛fʳɔɧ˜¥ÞщܿਟՍ̍൱ͷŻأ€УƊϋȰʼnŁMĒå¯̩ŽÍīʩžБůǻӃǿ֋¥਻ΤɛŧŬਅϘŷƒƋŴcˎ’ňƗ¢θĖƒƙZ΍Εƻϟ̲ЛŹ³ýתǭѫȁ΋͏͏͍R̅ҧšكʗցڛþؖ͟ӁٺóɖɁÛʗΉǁʔ@ľĩൿࡕǿʛş֡γƻ·̒LƷˋÉ͎KƨůԹ˻˃ѹƄ†ƒеίăрýѬ֯ౡ̊࿩fЩϘÊܞƛØգŋ̉Ԩ«֊þŴ˜\\Đʊ͐ƢÌ̮ȒĠvɌǃȞƠ͒ψʔ‡̶ȬưƧЮȴǨī̀ͮȺȹ̒ϏÚmŎڬRĐǠ«Ĵԛ¶ŞϢȋӨżĢͩȺŽب̜ǤƉͬiߪȊʼğǤƄž»͖Ʋ„Ś֖Ҙˤʷ۾qޚŘˎմϲUҐŝɶƌČ˺܆ǚ܂߆ɝèÀˊ˻ڨĠł˥͚ÆΞǰłƀ֌ǒFĦƶīĆÉيǘȄƞׄМЪˠ٪Ɉ\\ɰƖɭцƪˈƫ؞Ǫˠƫ̂ʾ̘ݨ̞̈ࢂƽưǢʾɼʚ̆Ē–¼”ʆİxzžEÜ}™ǘşöãîSƖ`Ѷ_͘ijèţžħ‚čÔƧ¢Çd‚–NJʒѾ°š€Ǽʗî·ƚ÷ƄƣΔӍ׶Ћ"]],encodeOffsets:[[[-66098,-56029]],[[-70300,-56170]],[[-62550,-24224]]]},properties:{name:"Argentina",childNum:3}},{geometry:{type:"Polygon",coordinates:["@@́{ř̮ǯŔfƖ˟§ʭôķƶɛ½Г˲Իðą̘ŸȦʁ͚՚Ú؞Þdž€ǀťıÑѢȓǫƣÜşєʣßǫʳ¡Ժ͏ɼīŷȀƭƹúʇ"],encodeOffsets:[[47607,39841]]},properties:{name:"Armenia",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@āɆœƃë"],encodeOffsets:[[-174823,-14695]]},properties:{name:"American Samoa",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@īƨǜMïƙ"],["@@΂ŜªūȩÃŚÕٸǔȢťƙțȃúͽñȐŵɖ¨ĻƣࠅƦƇƥƫJÌ҈ħĊȜͼŒǗëȃŐy"],["@@ƥÈè þħ"]],encodeOffsets:[[[70946,-50236]],[[70846,-50288]],[[53079,-47554]]]},properties:{name:"Fr. S. Antarctic Lands",childNum:3}},{geometry:{type:"Polygon",coordinates:["@@ťowîÐÒĎŏ"],encodeOffsets:[[-63197,17446]]},properties:{name:"Antigua and Barb.",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ŸēǡÎƮŸÔı"],["@@Ȫb࢈ͥ;ðŀùŢƨϸQƖƂɂyĄþȺÙńଡŇȶʏԑlԟƇñĈ§ĐŸþȏêķǁŻȲ­ΧȻºæijǡ˱˙Ĕщ£ƞǴ¼˫p͕̮ʏאɨɗ¢ŚƹǪą¥FƪЅՊĵΆÔʸ˚ĩ"],["@@£ÝÏÒĴL"],["@@‹éŠżBÑ"],["@@ÞƯ͑êʴĆ"],["@@ʠȓbƿǩõ˵͢ȞĨ"],["@@÷Dzƌ˖Š̻dzƋ"],["@@’Çȏ|ƾŒ"],["@@˪ZǎŁϟȅƩȩüϡ¥ǷŤĈŢגƀɀyXı"],["@@ĥɩRʨĔ}"],["@@ǿɪcɂȤѫ"],["@@čǘ¾̞ǂǀédžĨðþ˫ɭֿ"],["@@þCȷǡȸĨ"],["@@ŅÁĮƶXij"],["@@ĕP–ŊÀř"],["@@jɇǗȞƮj"],["@@„ľàēģi"],["@@̉ƙŒɲʚÔĢĵǃµ"],["@@ųÈÈĮìƵ"],["@@ÕgIżàœ"],["@@ěWÌŖĽ"],["@@ƪdũʉǤģ³ğҷèö̆Țǂ¸Ņ"],["@@īPþŸnƇ"],["@@ƃ×ʤǮşŕ"],["@@Ŭřҿ|żň›ƴŢŠƒ˽"],["@@ͼ–ȶŨɪȹӳЩρʸŅΨȠƹ"],["@@Ñ»ɆΪƳ̭"],["@@ğɠĂÌ^˫"],["@@Í̉ʖ˱ƺڭʟǪԝǤĩјȚƦɕ՞ϙŜ௳ˠЉƂƒǶ؇ÿՙʪɽ¦ΣٌΓɼ^˘͡ࡢѧŀLJŻZĥѪқȾϟɀܥĴ¨ŶƇȰŔŦϸͧxƦĔ…ƞ࢑ʼ˙֬˵ʤЋ˜ǣǔͱɔȗÒ͑ưů¡ਗϬ࢝”εӯཝñܹ͓ԡõͥ˫ȩzá̏ťѩ֯W̃ſáĜq̡ЁÉћԟۏɗාϝȯകƍࡧؕ՝ÁĴƕŊ®Çʱȭɾȉ‰ŧȢͥŌŪŢÇŴƷL˩əȯƈǎGǪɆȓLjеȥɨÕृԡࣩκؗĬŋįƛr΍ʌԷưԗնÔӪŅʔٓڔǬ¶ĤóMȢٕɡ˳|˞ӶkɖͳԀͭࠉڷąŌ˘̈́DĒلςӨã͈ŠĚǫѠNȳ̷̉ǡλڵͳҏՋàˑƩĴŧÝѳ̖ĀĊȞÿȗԸˣ˪ĉʢƵŜʳtŅƼÕȘńdNƶӋ˺ϟpϣȒҗ§࣏ј̣ĝഁ±༱ԕ୷ƒঃӭџŏإݵଗÙ÷İտ¢ಧů͹ͥұģٓэҭģࣃĢѽNJΟ̴ұƞ_ج̬Ŀ˘ϔ`఼Է॔ȃ஖ׇࣀř؞۽঒ڽ„ƎȎБŸ‹ĒĂbƘϩԴ´ĪɘșVʣŊĬŚʵĊÓŀĖAπڟஔÔӈɤϜŽшĥɶ˸َϬfջȢŢ˨Ѥغ˨Ұϰא̈́טÉښ̄ҪĨ̒ɢМ—ஊκ˸ʆи۾ј̬ǕӀĪΎϬ̊ɀ̎Ӿ࣫~ЬȨ÷˜Ǟ͑άŔØeNJĺ€ŊǃƼİɌĻІ]̯ĔXƔƈhÔȲŧďĻǶ¸ɞĺEŌȈ̶ƗTŔƍEÏŲǘƀˊīƫ;ͶȚ¢Ȑއ—ȧƄ¼ÐůŌļ„ѤŊsØƉŨŨƖšǰǤIƖńœҰʍ؈֯ġԱðĖĊÕáɊʹɦМğƂɵ¬ʐ̮ɥFʐDznȳƴþøˍƒ˦Όň΂ΠɪĿƂ„ǀȚɨǾ”JǺȶŃLdžΘʦŬǫՂGDŽĂƂğČƈǞXçöš͖ǗƂͷbȿƢŜĸǎʼnƬô̌ʁɺĈȊʡ؀ŁќȅˀÌʦǫǂwעͪǽ͑ʮdÖȗƮWÌňáŎnjȆɶɱƬc¨ęΉι¶ǿŏȅƕò̯ƓxՋҥە¤ƑلЗðƓΎīäǫǾ`ל̕ҔС٠ƱȨίڌ̽ЎàˎǮϰߜˬ஀đӲÒˊĹ̘ƢҎˆˈǢɃȼVŠƴ̀úßǨजʎȪۓ©ŁȐȭþץʴŏ"],["@@ëµ¹ĸȤÞĥ"]],encodeOffsets:[[[150893,-44438]],[[148525,-41765]],[[151795,-41487]],[[148260,-41478]],[[151887,-41274]],[[151553,-40711]],[[147383,-41078]],[[148803,-39414]],[[140899,-36596]],[[157224,-28094]],[[115900,-26678]],[[156752,-26368]],[[154775,-24054]],[[118217,-21286]],[[152621,-20778]],[[149789,-18668]],[[142807,-17525]],[[142857,-16970]],[[140384,-16156]],[[127588,-15771]],[[128204,-14929]],[[139996,-14135]],[[139508,-14156]],[[139611,-11880]],[[133591,-11959]],[[133754,-11649]],[[139877,-11651]],[[135776,-11574]],[[146616,-12241]],[[145690,-10961]]]},properties:{name:"Australia",childNum:30}},{geometry:{type:"Polygon",coordinates:["@@ñDZʀ͋ãʣթƒɊśȝŕV̡ͥťŕƻࣃÑ˿ǥ܋ĶǭˆśFƵ^׃Čù~·¶½ÚĩČo¦ˆ˜Š„I\\wPͥąȻXā]ǁMġ‘Ñݍ½iÇOĉLÍfϬğPčBuTD†‘ÆÅjǹőҫǦ«ǶĈǒď´ȌªúoŎŸÀvqL±Ŕ{cíƼòˆ¨ˆŔšSƨLêoŌGƚŃ२ȐdxMÀZR¸_ð@Ŝcnj_î}t_aDuvkΉø}žDd~bÒLÚſʲƘNjǼϤǐĜ|òÀ¦ƞXN`TŲAŲNZ†JłXhȠƑբE͂ͰࠬȱФ–ΆǓ"],encodeOffsets:[[17360,49766]]},properties:{name:"Austria",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@Փň֍ը£¬ɜ¾ĸƵʮóˠ¨eƕǰœŚ̭"],["@@ݒ࢙ˎǻ΀áƸȋϓŒ̯ĻȏӯŽɑǓˋŷĔƃʝ\\͹ɵqԃόʞƒǁȆǾƄ˛ʈ౉ٷùʈƺ‚ǿƮĬŸɻԹ͐ʴ¢àǬѓʤÛŠǬƤѡȔIJÒƿŦǺŐÂvڲɟ̂ěĔXüҊðT”­´ˁƐķǎȸDŽˎßӌѽЈéڂը"]],encodeOffsets:[[[47222,39811]],[[49739,42849]]]},properties:{name:"Azerbaijan",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@guûƿcy¤«£ŇR§è—öcʕÐO€ōiƃ͇͟ϟչȕů˃LLJԮZپǭ˪ôľʎdzʶ^ƜàÀ̈́ǀÝʔĔŨñ"],encodeOffsets:[[31287,-2457]]},properties:{name:"Burundi",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ʦq̈ʣȋ˥w†…Aá\\ğí£Í}©™•ž͋ʁw՝ɸ£̪ɯljͫVtɴСºÿƞ˓°Ɠȼ̇{ȟ̆ۚɾèōЂ˘ƮڰêƸDžӨŁđͅ"],encodeOffsets:[[5831,51994]]},properties:{name:"Belgium",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@“ÁÁŏEĕŶǽbm…l“’ʻàƋ¿ǃĿQ›ͻɷȍɽ׏ɧ‡Ó֩aл„ɍ€Ù†ÃAƒck_wL˝‡óVŃjån»k¥cÇ{ȍ࣫ŹžàȹזĀJqႬǷʾ±ՔӇ͞ŚԜѴϠҮyΆДo˚τƌڒׁ"],encodeOffsets:[[3682,11977]]},properties:{name:"Benin",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@­ΏȀɃ ɯǂɥӪ̃DZNC˕ӠͿҒÈĸȡŹƁˈ΋΅Гҭzѳϟ΃ҽƊȗ¨˟ȩΑê຋WíͿļƇVֽ^óºĽV«ko¥ƒ¥D·Øs†ŸÜ“Ü­†­€ÃĆ¿žÇYʕ–ǫM͟ŕïÅćÕDķÚĉSą˜ґӂɗ̄ԮȬ˪ϞӶȼɪɘ©ˮɈĸď˚ƬǀǠĄΜǿȎĈ®͆ʢUÞʬʌɸЊ¹Şʎޤ̨ʐȒѲXϠŭ"],encodeOffsets:[[223,15270]]},properties:{name:"Burkina Faso",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@÷r¢dž–Ƿ"],["@@‰ç\\ƪnā"],["@@ęψΒÒ́"],["@@ũšŠĐȟ"],["@@əqƒɚƫѐĀzɮ͇ùͩ"],["@@|JeƊÊAɪ̻ɖnńĊæŶɫD͍oȉZ¬WɆÕв«ாDΚȍéāőžo[Aġğɷ­ijǽǗij|̓ŧǃͱǖӻÞŌİǩÈWŎÖFȠˆÖŰŦQĀ@ô¦LÆ[ǞLòχzˁĒǍx¥Î՗\\ÏPŽƉʧŒŵūŨуɣ͐ljনÇ«ˉӴɛȱɩ›ʑή©ӆ£ƛʉ†˔ǃſѝƲ͓͝ҁƇ¶Ŝɨɉő‰þÈ̎ơЛȱǻïђḍūNjɓŶ™͸ʼn̜iǰ¥ǔàŬǡÌuȦ¿¶ËľŐˠ\\Ê\\ĮNœUšå¨ťjƉĜĥNátÉįÞLŒ`¤Ėǜ„AºäìȐİ@̚ˆ\\Êõ˜ïƂɡž̗ɲ‘~šȸƶƜĚĦ­Đ‡XfæŰƒȏɐ"]],encodeOffsets:[[[94157,22025]],[[94079,22357]],[[93339,22708]],[[93755,22920]],[[92957,22620]],[[91076,26876]]]},properties:{name:"Bangladesh",childNum:6}},{geometry:{type:"Polygon",coordinates:["@@ĵ̓˧Nǡǭ‘νͻɿѼнҏmƱŐ¥\\ȝ…—é‡ɧuÇˍÏŵsySyFyĵxÿckkgÞŵXñg¥Í…ţśfɏŧ‡ŋiБĦƫòwr§î}FγyoµkQ́ÕċAđZ½SōGëÁȫ^ôͺƕɈЯːà^p~àèR’Qnół~ǴˬŦƪǞįđ¢«®dzĎƹ˞Gä„ĜlŽ‚šĄÀŠŠ˸ƩƇʼn¨ħᓞƏ؀˲ܸƈ˶ŭϬ˴Ƿ̨}"],encodeOffsets:[[29272,44793]]},properties:{name:"Bulgaria",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ÛĝƄHɜĬXl̛"],encodeOffsets:[[51822,26505]]},properties:{name:"Bahrain",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@řǵѡGBņƂôʎ‰ƪƄ€ĵ"],["@@ʚďΏ¬Ķ¤"],["@@Ï{̶̀¡ǀĖ`\\lj̵˙"],["@@ǽWņɀĭ"],["@@͏ɬþĒƻʹЎٱ"],["@@̻źxÌ̄ȅ"],["@@ĹĉrŖĈ‹"],["@@ćïŞ¬®áWͯǓ\\ȓϾ˼|"],["@@Ǐ»Ăńˋ΢ΚЩ"],["@@Ƿ`ʊvѕ"],["@@CȳʣƧďǦȃ¨ËêNJv€ҌȤęȚ̓"],["@@ʰſǾLJ—ЭųƚĚJ¬ʠǫnjɁĴƇIÐŚ¾Ý"],["@@ӐۑDžȯDŽǀěǜǺĖÍ"],["@@ƩĸƀŎPͼɫʈη¶Έ@Ͼ̽xǑŇý·˱"]],encodeOffsets:[[[-74779,21702]],[[-74794,22968]],[[-75987,22747]],[[-75834,23269]],[[-76636,23444]],[[-77480,24013]],[[-76215,24646]],[[-79521,24832]],[[-77115,24781]],[[-79203,25615]],[[-79609,25301]],[[-78488,26100]],[[-80376,27371]],[[-79079,26526]]]},properties:{name:"Bahamas",childNum:14}},{geometry:{type:"Polygon",coordinates:["@@˼Xȗѫϸˇ˵ßɂ˓ʩğ{D©OS«^­To_ðƛSáM™®ëNď¿Ù«§ǟœ_›™nLJäŕġå٥˲ç”ÆÌ̓τࠉ֮Ṷ̌ͬȶªΎȬVɞƱȦǨ͚¼ݨǗ܌@ƤǍƞ["],encodeOffsets:[[19464,45947]]},properties:{name:"Bosnia and Herz.",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ŘñࣸįkŻº¹Î“ŰÊ®fº@ät¶Œ²ZĘQLjR͢ƭʀąKơãÇUoHy±æïh¥@‹ůŕs­[¯PmƼóڟ~oÝőĢĪƉĖăȌíƎ¯†sX}Wŗãy›ÈeƞJǬ_ɀŅɈˇ»OÇaĝ•˝ƭʕ^ƳĂɁI{Uo½ß›™Œw¶³øÑüÁ~jȏOȃpw¤m”•ÊāJqǃNȑEҝȥGŕÿ÷µóåëĿ§ýzÔ»TÃj©ƵåʏǢۃăȳȶ“C¡u‡w§Sßkıě“L•d£ðÉh֡~ƅĩSĂͥrubŅŜËRķMƯbࠥŸண±çýŹġůÕwKñŽÓ\\íHýĭQM¢ѮБȸجОαজØiƦMϨŽž}æwʬòŮIlpŠĶšvƪWÆlʺʂàšwl¥{‘Ú‡NJ’¿Ħïd¹BSjjž¬êÄڒzNvSņŘǜĘxň`è”Úĸ”^ʺQ ØņÌ_jáZƻXrX|¦Ü¢ĊpÜFœϬƎѲӒ̂"],encodeOffsets:[[28824,57491]]},properties:{name:"Belarus",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ÝŝĔɜuĽ"],["@@˵CÒྪzƀ˞KʄИȒv­ħȀOœĿƽԭÌÿğݑӥد"]],encodeOffsets:[[[-89961,17841]],[[-91027,16272]]]},properties:{name:"Belize",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@ŏgǎнõ"],encodeOffsets:[[-66283,33069]]},properties:{name:"Bermuda",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ĭއҀޕU฿̇ѥޗAх̽গljȤࣟ¯™ʑѽ•ljc¡ÈÓƨČĪçŤ͗Ĵѵ`ƕ_íTõäǗŠšÛ|Hwy…į“ė•»̅đɻʙǡʽƕƒǽ‹ǷZí´Cˢʯ݀Uˌ̣ͰØɰɗƜ[˾ǖŰDÄgžįĮEhļƊĦńMpkx̭ʐġŀUž¡ƀÅ̾«Ŝ¨Āǁî}nǕξ@B@œUÒĽŠl¢ԔҸWƔDŽŚ̽DŽǡѐȾͼǝɰ^ƘЪՂǟФĂڬʚ͆ݥನ̌G͌±ƜďɾĀ˜ˆä|ƀXĨiʲʘۺЬǀĈι]ę綕³S·Ħ͕VōÇȅǢх͸ʹؚ̨͋˼ǝɼVʬ˟ծƋnçŴƑÐÁî±ǶBÄaĂ^ʌz¬RӐʥŒՇČ֛ŇIƳI¬›ŴƥŚƋŠΟhȗXŗ൚¹”DÖf¢r~AIǥĵƅO§fǭ–ƛlŹ¢¡̜șðgÔjš»RĉIJɵÚƥúûßÅŵϟµƳÆʼnΏיɪȡu‘Õi»]ÕăÅ["],encodeOffsets:[[-59555,-20648]]},properties:{name:"Bolivia",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@˛XȦņƦÑ̯"],["@@åĦłĴ›ș"],["@@LJMŲƘ–Ɖ"],["@@ȗ}İĊĨË"],["@@×§™àĬœFÓ"],["@@ÚǼÊĥţĕ"],["@@ĉćĮːcȇ"],["@@ř¯–ĘĄ§"],["@@ėeɐ̮ŒξʖĞĀĿī̗ҳ΋"],["@@јÆ؊őυࣽǣĽőĐ½ƽɭôçǛǻßɕòχëɅҢ€ĨŸpŏtñƞŴՒͮƀԶĥ"],["@@ɯǑģĐǐƨDŽå"],["@@͕f˜ƬŌçÑĩ"],["@@ƯʓΟÈÈǂ҈Š"],["@@cūƯ¾ɂҌ’˧ÿĵ"],["@@ĝ…iƂȈĺÿȵ"],["@@Ɓy…ǾŰ\\˜ǟ"],["@@ŁIJǡÀ¿Nwʫ̃şݭĘ˝ŒõXŷOƅI½øŻŌŸʰ˕Άƥ†œ„ƢHLżĢ˜’¶ʲɪňĠfà‚ǜH¤nȒȦ–Gðn҂vQ°ÍÌgФtϴċ´^†~PøLÀŸ²µÀ­âÁnP’–––ptzvĖdffHȐĩ̄ˆ”¢¸VĈ¢ØOšœvJV¥–§¦ŸżQr犁œArY–iˆ¡èʬñ̦ȠܪťːˊɌպ֦݈Ęɀ˞ǽь࿫Ɍʯтƛ¸йͩ˝ϯԧѷʵוઁȻJλǃ׼…հǤەʌɇͺƸɾā;ǎ˓ޥƮŸȸӴȂòʀ˼ȺŁĨŎıôfȾˮ΂ҶÌŜąjŞ࿄ؕṇ̌Ɇɂ̘ɣµÅņ®ĨʳǿdzĀĝȒǤ®Ǔś‘ÍƗőՋʈɔǬЊļmñ˅ɔȎВæÚłόõ׀˝̼žͬƛࡌĸєÇనܗΪн΢́˚ķńǗӬƹ࢔ƂķҸ๱Aߑэ੓ΡЅŃ`LƉљՕ̵ƿΑͭơ˭EŶˣ܇ˣЭ͏̿ʏ˾ƉƕôįÑȩǏǽ·ȉĎu¹ίĚ\\įԽƮ৫˓ૃ¤ѳйңŏ્ǽƛͧ۟ͥ˯Ƒ˧ýɣ гףʻɱɩ¿̭ޓiǑȰÍɡ֥ğٚʢ¢ǃĊ٫ŧ‰ŵĔÉً˛śǝяNݩχषڣºŏɯȻbĚǻŽÕƝɋؒĻʔėɝȹöù—ȳŇ÷ǎީÇ݉ƭпЅʝЋЭҭࣁԹۧऱܙoʆ͐²΄ʢĢ̞ƴrdžɄǘwɺŔYdƼϯīɯˬŠˣĿ͗ÛÞŭαϹɹȅуÈʁѱࠃ׿ԕwJÅzË®@РhÀ|’ô¸îêĄĚö쁴ύɸƇ̄ƃĖʥĈ̶̯ϕǦ±‡ç†͑ͺtqMo…]ƒţģŃßU«B[ôhż΅͞Υ˺ʍ‹ÿŝ˳n³Öœ¢ƆĚưɄʊƾࢤ਎ǠWƪԾ˴ɬˈцńШʪƜ۪ȇԶɛŪʏđƟ¦JŤŚǴŒĊžۆ‹Ƭ¨ÀtfǕŪƻơ̈ƉĉoħgûZã\\£wð@Ö_ƹºi áކŇƆMĐăĒţxǕ@±bűƠ«`˝ƹ঱ŸZʼĦڨíʶÁ‚oNJm¦ƒ|ƒ¬ƒ’[²kÖÆ\\ÖĄ¼^Öjv’ƙŮďôΒך]ń©F¶ƴŶϠàÆùüÙƦıɶQĊ™¼ÓiïhǷŴţæ¡¢kź•ƜeǮP¨ĶƆJǦ}B¡qÕe“C൙ºWŘgȘ‰ΠřƌųƦ«œʼTċ֜őՈӏʦ«Qʋyā]ɹ`í²ÏÂųƒmèխƌȿNJ«ŖɹU˽ǞؙŽ̧͌ͷʺǡц²̔ĥ͖T¸–´èŜ^Ěćκযƿ۹ЫʱʗħjſWã{˛˅ɽÿƛĐ͋²ȝPĭGăEƑlķFė«ŻÃÏa©E¥R·„éà¿}ƒ˜୞¶ƶÇs{]ͻ˹׃ȉŗۻ]ǕвۣĊĴŪĶŪGńąĢŏƐĉÆ·Ʀ‹jŵĦƵЄXþŸ|¯^Õ쩚‡ti|jjp|KńǸš|vŘ‡ŒˆȖԸτĉ̲vΠĄƶʢþњ²zŐxú¶ŜĞĮĬÌΊȴܸżĞĶÈ´à^džQłd¾™v«à¯Ģ^ڟ¤L‚vLÆfˆɺ಄ɨఈȟּν̶b׾ӨŶˎÑƅ͢ґRHղචXãŀÀŢɐȧ҈̲ʀ΍ŒѥǦŽѼϥʌf͈ǖƄşƒŽêF̴ΖݲΠǒͶӜȌ˜Ɍցúƥ࣮ϕΦijɜDzŕ͒[ƞǓָ^К̍ŨΦʪŜɐ·˨ĊҔːɸfͰΐËǸ‘x{TøhNJƒ¨nÖUČgŶſƃңϘƱ"]],encodeOffsets:[[[-49649,-28433]],[[-49750,-27035]],[[-46346,-24462]],[[-45188,-23697]],[[-39837,-13796]],[[-39673,-13411]],[[-45567,-3010]],[[-45960,-1349]],[[-53076,-1468]],[[-50819,-234]],[[-51868,-134]],[[-50630,-115]],[[-50931,275]],[[-51636,143]],[[-51356,403]],[[-51506,1986]],[[-61132,4458]]]},properties:{name:"Brazil",childNum:17}},{geometry:{type:"Polygon",coordinates:["@@ıj‡ǜȂųÇÑ"],encodeOffsets:[[-60921,13396]]},properties:{name:"Barbados",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@Ĩ@ŴҟƷŒãє"],["@@ɽƳĀ˙ƽ̗ӷҰ̢ÌӒ̤€Ĺ"]],encodeOffsets:[[[117788,5018]],[[117788,5018]]]},properties:{name:"Brunei",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@ǝŰīĞGČh’Q®í×«ÛyÉSŸLi‚ŒÅL»q‘§gſCƝ§ŻJ½º{@ŝÝҟcͥIJş—éýƯ}ƭmŻdoºɇÎƹě¤ƵĆijǶl˜ĸâTf´Ű҄Ԅ² ĮªĆ|ÊÌæŽêb̰É^w{Ĺh[ľSźPîMʲď´HŰĆ P†•ɲĉSƍ"],encodeOffsets:[[93832,28427]]},properties:{name:"Bhutan",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@_ƧגࠁȖԋࡔҿĒͅͰqSһ̂Ыࡘȱbȃǎ½àߦ‰ȡgĭÅÉĭęïՇdzͭΏ›“ֵέȿ֍ǽŽƓƽ¯ɡµĉĵ›ͥޑʯÿݏ\\řĠȉNÙtщʺȫFɩƙɿ֥£Ý“ɇƛŁLJã±ȇ×§ą—…ߣOĉĚŸ۞̧٦ϙ̶EᙶࡄŽIᵦሶˎ͌ϯզξʌ{͆Ț̌z"],encodeOffsets:[[25865,-18220]]},properties:{name:"Botswana",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ڊअoЛŻȍÎʣԠųŨ̽ҾŻ̈ˡgɁĈʼn࣪ڕ­ƯǦ͗Պ̃ɒԩ˥úȿřટɀϭ́صvݷˣҫ¼ωӵ༩˞˧̰ΛɔʱŽγȣЋқ`ܱŕŨˁĻ֙ǀ݋Ƴţ֣ʇҽĵ՜޹ޘÃϪ˩ˊƗ֬®ӮƻƤʶȮϾުɰˊВaΞƨƖƶȪ˃ܪζޒ¾ҜԢȇƲÐĒୖǂβɺވݒô̔؈̮̔Ý"],encodeOffsets:[[23409,11182]]},properties:{name:"Central African Rep.",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ˣ\\͠¤»¿"],["@@œ­Ăƪ’Ļ"],["@@ĵÌƚR£Ý"],["@@ƍWʈĸĹğ"],["@@ͥyɰĶǰŦùȡ"],["@@ȬǍɽ˒¢ɸǼɭWκ̖Ôī̤‰nǽۥ̍ԡcƓŤ”ϢҎՂϲǨÜɡƋϻԡ˙"],["@@ŊĀҪŝघAуǿKȍЫøń´ƉĎàüȡſΫÐįƘ̑xsƦɃ”ͨΞÿʉɶʵ"],["@@ŢqȡuìLjѺDzѥ̑"],["@@ĉƒǔȪĉǥ"],["@@ॴΠͰӮࢨҔ܈Ǥذɶࢢ޺ਞֆႺӲૼkԶˋʡɦųēɣއͷ֕Ƙٹƕ̂іųȰȫԘƪʢĹǫ̙ͿɣЦ‘§ȧ˺ӧՂÙì·ȋï̔ƍࡄį¥ýɤuѸȸƮDZʆ€ŤħÌŏƯ×ΰÙቱկʡ’Kǟ͝ƒďƁÇĊı‰Tǹ৥ۇɋ˜űȠȧfÉˤ˚Φɹŏ²Î൤ۨˀ˃–ǎ؎ŮోSҸИƕ{ųŠūʷगΑȍĀêĎ΍ˑε{ɃĒȯHÇΰ̳ľIଘέɜכœħǸljŒٝىʏګӋՓϳhǃʃᥫE›A"],["@@zùƓ‚ڏ"],["@@țûÝâʺZ"],["@@ĦéʯÇPĮƺ„"],["@@ʡĦZĴǂLĆȥ"],["@@ਫŌோ֌̔°੮ȣ࢖Οĸŧė›"],["@@įˈȒNjġĻ"],["@@෺˕նڋۮʱоաĚôâɓɗó˿Âৡ̀ɪɢŒƺĩǕҿã˵ƄƺĀʵÀbźӫImnj΂è͟ ͇ȌǯÜɒċïıĤͫ‰•ˊΚ‘jƮӻíʍȸάĮ؄ȃ"],["@@Ŀůϓ¹Șʛ޳ࡵ÷ͥդтdƥֆ˜ՙ̧ɪ¨ǽǿײŽ€įĪŖĻέ܎ϔ°ǓЬĦ˴ĵžƱӳ̓ʸpħĕɔ§΃ɗࣲȬĝțЉǍ’ijʥËȚIȍȓLjś̌͞ΖĬʭԍȌ”ƌǺňȁϯݥǩÀɡáOю΋ʳƏ”˘ҺŝˈǟĔʝϥ\\Ŧ͏ƋϫЕЇŋŲάŦרшӧGǫǏҩŒɖøRȐޓɇಿƔٽƇǡƔ¤ɒ߈Ѷ۱Š˚ǂÃądž©ˀФΎąĝøĴŸǯzmņǔƀȌ«œǰвڰɈĠijìɚˀ̔˒րȤˮćrĜǪ•"],["@@ȋŸİèĜȟ"],["@@ɓ¸̼Üħœ"],["@@ÑʞNJôķ͑"],["@@વʬNJŖײhͺϩ"],["@@Ĵɯ˳—ѢƫœĻ˦ƍ»ĥƪWßřߍՊlǺͷŚژ¸"],["@@–ΝƙȕÉЊŹõɵʔŤ˄Ͷƕäơ"],["@@ſrðǂÐdz"],["@@֛̈́ÈòюǏdžLJÿÝ"],["@@ůĩˍ¢ɌǔDzŋ"],["@@̒yŘṯ̌ʭ̈„¬̌ϼĚʑۧ͝ĵͳĸ˔xΛƜȟˤ€˒ͤ"],["@@jŸŰcƙœ"],["@@̤Ɍœǯȏ›"],["@@áäВƮͯɑ"],["@@ȩ͋M˞ˁ˳ɧÉȄ˒ϋȣѼծß̟ɞΜ˰˫"],["@@Ěř̽ŎɤL"],["@@ûÓÆƒvý"],["@@Njã¦ƺŦĕ"],["@@‡Íʝàĉłΰœ"],["@@őØɾɮɦřΑǫ"],["@@ŗWΪĐʑ÷"],["@@ԋʆդZ—ʟ"],["@@Œū˳ƒǢe"],["@@ɒƏ‹ȅЯγϗȊJʔ˪ʆ͎f"],["@@̞oYıΡHÞŚ"],["@@έ¤ϡɶٸŝĘƻ"],["@@sȋҕ˝ϕNjֵ£DZʚ҆Ϛୂ¦"],["@@̀ȣ·ijӿʸֈ "],["@@ֿǎȚĀИƭqğ"],["@@ΘǔΖȫႆӗ̾γǯǑࢸØѶ˟سʧ૧ȶõȄ۱Ǽૡۭٓǃ́Ӧ୏īȂˈְȢĹήʦ߾Ѩ͔͈ƟÁȣːȽ"],["@@Οƴ­ɒͤſêʅ"],["@@аåĉëډŠʍ̠ԶƓ¼ƙ"],["@@ʌMśşůŮ"],["@@DžNϤłɝŏ"],["@@§ëǛĤĒȢŲə"],["@@ߝœŏȨ৴ÇòǧǷS"],["@@ʟĎÉɜɐǤɾĹƣϓ"],["@@ԈűĻ׵ӟƧএƒ̡κƮɘѼ˨ޜš"],["@@LJÒȆö}Ƈ"],["@@ѕźϘD¾Ž"],["@@ѥƪĦƌʮ‘Ēʣ"],["@@ϱĄʜŦɾÓħƕ"],["@@͇“~ɖ̊ȁ"],["@@Ǜk˜ŚƄĭ"],["@@Ǣވ˲ϑλγė"],["@@ŋƕƉİʖ¦"],["@@͑ŊLjƔѨ×˝ȅ"],["@@šƮˀĩƝÃ"],["@@ÜǏʗÛǴñǩdɈ̦"],["@@ʳÜˀÆKš"],["@@UěڷĿێȜ"],["@@ĹſгFÎĿۇư̶Ğ࠲S"],["@@फ़ʣҤϑОÓ࣏॑̕Ô܉ʤ͏Ǜň̋ÍȫƐƠࡀǠùȨъĭƅ˺ΈÄ̎ǿ"],["@@̖įٟîΊ‚"],["@@­Gȟ{ͻǕΗʭ̯ȍՑԩٵ@ܥFɗMĿ“˝įöœr­’õœ‰ÆÓɏƇࣗ͏ٽıЕŧϻǵϷǵɁ@ϝʨ‚ɲӄ̘̾܌ªĆ̅ౚÇɜ̱ƞ֡ʤļƬūĺ̥ũΘˉGȋœǭ̚ǍäӧȬࡩΔ҇Dz҉ǴՓȰࣝʳૻŔȷÀ˿ŕԱȴ˽sÇ@ïƄ˯ŐΟ¼ijWˣùŧæ٥ŖûĸùŜµɌNžʧÆMͅȣBܑ@Ω@ܑ@੻@⿿@、@、@ᅍ@Χ@Ω@੻@ີ@Šćž@čąƓʂ̌Ŝͭ¯ö˰˽ʃлǦŠŐƨűȠĂʕ²¤΂ĵ’ʷʟēсȼɱͰǔϢǗ̝ΕaÁŶďƵϟ€̓øҚİԡsŞƄŭzJLjĩšΧ¡յʄʐϨؒĄիHˣȕƳǐ°Ѥ̜ƒǐѺ˫ЕͬȰʚÉúŸǃ؍̧ʻсɋ̶ːƆĈȒ˧ƵȀҢʽíƇˆұȐùƔˈƞ§ų̃śΈEǢţɻǪϽÒõNJȜĤΫaʣΡʱƕ٫ЈʖΆΖĆϩ£̃Ȭܴ࢔ȟĈɅх†ݦëƄ˅\\ÁĞƟ„ەʘ̑„“ǞȧĔĆɳł¸Æ¢®ÍÞšŌěþϛϘɯɲɫɾ֟̆ģøÁÎʅdžɡöěʒˇƒ˭]ԳĽšĿǁiĥʵȟCˁğŵ«ƉíçZÓʼ؋͔ҧˮˇŚ¢ö¶Ĝ@ÂŽGχUʟũЕĮÕåȥ”ȩ”@Ӭ@݄@௰@݄@௰@݄@௰@݂@݄໒ŕྞҧग़çܨǕ֯ʒ̨¬˭îȀǘͲEŶƈֺT¢ǢѼƥʛɉࡖƴȼǐј|íâ˚ƒࡸǞЄȄ؄‰ɨĐxǏহ̃गį݉ˡԍ̣ɾćǕöْZšȚ޲̒϶Ñɘøþȭܒі਀ȸɑƓĔċǜ¨চђУƄưžٞɷࠎف؎Nj̒ÜƹǖӶ̨ȇŒμľŰ͑ʂÝǵ˙ںrцΞߦLजŽ۔ɽណϻঘÛƹŘڪƒےǏր̅ōō֙F̥řʳȕʨëᕊŗ౜ĞޔǞόɓӾ•ƼɥȨƨՀ˻EƉчEਤ׋ϛ˺]ȴӌđک߀ƈǾାƐ֤͢שÛųƅࡕuĩƁӵgͩŦ;˂ᅰʸДùʸΑ،ƷƔƕ࡚ªॺ͇٠—ૼŪઘĥђæȁɠপϥȼȨҁļϡ¯ϩφζΤÎŋŘўwθȭҠ²ʕɭلǰͯةȒȧΜµō̦{EţࡇŽՔιȽː՘ZŢˀͣЎdžʄ׺¦ઞҢ͹͎dzǹ҇fѢːƝdžՔĔŇLJǺɊاşǎǁÓॣȎӯ΂ɈʨʎOŨ̹©ʓƖĒβ͔ƤмÝƂžϹæग़ΈΪǽҾmڢЗ·஖ٍ֣´LJŋ҈Åމ̵ӜJʹţ׮ĪȧijࡲÍЏǃ́fِͻāͿ̴ǽަ࠼ࢴ˹ΆӍáąϡ’„˳ߢٯڤʰޘ৾ٴÖȩÒȶȖѳƄĵԨ᝜ŻȔ÷̩ęώíêƉ܌¿ӣʫӜƒČljՏǗՙWˤʩǮ¤Š˧ִ̩ơΫ࿃ו्Ԑʵ²ɣĹ͂xўɃ̖ϿΥà˭ëࠍ̢क›pƋؐȯళٻѣT๻ӲşÉಋâ͖ı¶øࢺśߚε࿒ųࣟ࡝ױDž͏ĸÎũПÀǏŲȗƼƹʿn\\ʏցğছȰ̙‡ଝ̠ŘɿʒqĝĜਆɍʷŗԼŤܺɉɬ͇ؿɓދ`ΦȑԫǷǑȨƳ֫ǒʦűΫʁȻRɨƥԍʇԅ݃ɃęwਗƙǗ֞̑ΙǬτߎUظ୿ུ̫ͭˮ࿘Ϳܾ͑ӾϑྡྷЗ˺LJŭɧʰǦॴ|౤ȹƤɉǣӋʄΩųڋ׊ԇȓǫ̤g݆ҋŪɻ΃ɛ̼ƶ̾qٌѩ͝ΤͲϊʢƑŚəƠʠɁɸ҆Фʝ̙ͨࡂĖ̄ȷĆĂÐӅф࿀Զঞބà׊ʅ٠̤̅ଝ֎يז†ʞ̈́ćŕĚǐ˲ʝÈŐ¶ȓʀƬĬʋĈǜƚӻT֖ئэɶĥϚٖʒಲɍxŗϖŐ׬Ǒ[Ą߈ɘࡤ̉íʅɢèɼùƾŵƩý̎ĐȒÓǹƩδɿ÷ʊDZЪƸĊNj̕΁ð̩࠙¥ޞěªӝ˴ƿηĭ£ŕŔ̷Ǐ̬ÑѦǐӖjˈƉŸɑŅˑַɕՄŰͤθŐǃƧſʶɠàΏĞȈ܈ɸ̠ʨ̢̡“͞˔Ǡ˴ЎźʎĐÁžξç̳ŶsȦ;KťŘ̖΢ˊ¿äą̉ƅРª¶˓ƜæʲʻǏōƜēȤ²ľřұş؈\\ƒǙȚVƪǥ֍˽˞ŚԬNǽɯϗƻٴŜƲƳ̆»SʥѷĻӘ˱ơզȥˡुĶٔɳǝđў¿ʍʼn̊]Âƙů©̢Ň̄ÚƴǷȄ¶ÉœǼƙΥΝܞȾÎĥɂiͱ̥Ӡ͖ɘ¥Ǿʽ͎ÃμĐҶʅʛǣءƃǕƭৃǷ˓ȧȿ¶ʜƕȕȃඬײ׺Ĩ͍płĨٴÅʀ̷͛ƯNJţЬɪ͂tоʙƘɑIӍѫĉӠÏ}ġȟ~ˈɋ੿ֱಅƋୁࠓ໵dzǍňڝÌṽ÷Ϗǽαթއŵୣ࠻૿Ɏॸʃú×ȁ̝ׯԋҿ˿ԣğएБзЅһȣɷ|˺ƻ؟˻"],["@@ʻºȘNJäɃ"],["@@ߎ¸ʈʢҐŠఞɭԿ̛Ȃ±̤ϣ̆ոq੆εӊ۝̀ćюɦ޳੊ǬǘಠŹࣈ΁ࡼৱŇљ޲εюĹzŪ଼̓ĪţѨq¼αуƜƏŵ҅ŮΏŅqƕ܁þΔƟÑɣ֤ɬʹυࢍǙඩ¤҅¢ðƊਿĨ͛ȶٿοޥÉछɑᵽƳЩ̀Ý̚ྣôݩŢֵՊᔔɐ࿢ñࡌìᄿ͎ምĕഅ˜֩ɒIŬ៺ϬᕏďʑÚОNJ۹UͻĬ˜ȆؚɸɣƐ̈ǦᰶتδÙžȏЃБ"],["@@൏ҼʶǺઞÒؘǃ…ɡ֕͡"],["@@ੂVࣤƓࡰտ൹®ఝŝсÎ̥ͰӿĠÓ͘ાÇ"],["@@ߐŢҤAɬĻľԒ՝ÈӓʐӸȸࢎǁҷɜȀÌ׽œʷʨ͚ȚࡌƁ৕ʺࢎ̎Ք‘ªƆຆżҒăैܩߝϩ԰ŜˁҗزʨʢȋžɸĪۦƥOȕ΢ƋɷȄƎɀসơ߽ʖؘɊႤŹո̃ܵёࡨ͐׌ķęŗݛŏш…ʝϧђΰ֤ļ̯͑ТƸ҂ʯćɊ͂Š੖ƋΌƫɟȝϋU׍ɛݞǺ̺ÑҜŒź³õɓे̣ԪÎŹ̻ϘϠࡾɞ௢ȡŎŇ෍ρ੾Ɗȗȋɞֺ͂אʁŤʭڣਗɏئÆ੶įѪůRť෗ÂՑőՀØӪę§ʁ஻ÖञŻɬƭ৒ÇʑōĠɓǎÂÈā€ƨΚÐșϓтȦàů̘žĞʗ]ǢвŸĉȳ͐¬ڎɱƃǿׇFܨïȶĨҨţ։΋تńӪ™ɌŠ٪̛ƥŋԃîҬɩ͕ÁԅĈhƯҖLJՏgȰƵɵNjѓdʑǐŽŧȗ¡˂™u͗ȱʩةȴÜȔʇʅ܅ծߦҬҷȩۑåƚǪ΁Óޡж÷ďȗšèɓփƂךεƕĕБˆՍʆʏ¥Ҁķ~ǩːąÏǫ̰àϞǟǿÿ՜ѿÀƼΞɹɴƐ֐ɉɉŃϤÉśő̯SΊɟЮ@ĵĥ͚ǫɇϯѷѦļсͬ˹ЫV®ʳफИIĭƻŠȫȨ—Ǐ৏֐ƞʽ٫ʬΕk٨ѿϸá»ë๎ڧť˅ᎋ̦ӷƚЀՋIӅŮʯüƈIJ͵¯թ̎ԤƐޅŮĮƒ˗ÍߥӚƸƸ՝IŻŹÅƸ˥ŒȁƼȧÅȌɥࡩx©ōࣵŻݻĺʇŞ¥τؠɐ†Ɍ఼ȍ͕̈́ĂƖχʐՎ[ࡺȂӲeܫֶ୐ҼȶʬӌȊࣃऒ҉LA˖ʝ^ņŷɽMԻɢƪȦ༳̅zʼԔlʲƴۉɎȚnjё÷̇ÀȚŞ؛ÐƵͦёSڃ̀˵ǟҖƅwɝԿ÷ᅗĶؘ̌եDzؓėܙƠ׫ŸೕŲ̇ÙҕĞÙːேǿߍȼ֡ӊഢįפÈᖑϜ³ߘঀ࠮ࠢː๨ńࡈŇࢭ΃տӵςۙ৐ҝೇ˻"],["@@܀ǵదƀрÁƚƃԽƏ̒ī९ϑڈòѐͳҊêŬƃ̗ȕǀЩ߿ǡԉ„šDŽľΉϵśһîଷ٠ԩƐџCࠟϘъ˂޲̙ڎªöǢɤÏ΃ʔײ`ғŪѯëՑDzҠĨϢųχ˼ࠈHUŴ"],["@@ס³ϋêขǶӓȫ"],["@@ߔǁഄiȸŃร࣑HφõǺȹЛͣࠃ_ӿܸھ޼νǾƊƈຬĴ"],["@@ѾîôƵӖȖࡼY၊ԧÂƯᱝىҩ͍֕÷σקܑĭɷ²̍ދӪએʞңLႢຐݯӤᧈǔ࿈ʿơĵ"],["@@ͧ_ˬĮ¼č"],["@@ҙÞ˺°Ǡō"],["@@٣ĤҔʂנȱЏų"],["@@}̟߱ჃͪըΌࣜƾࠂǩ̮ͧ"],["@@۱ŋÉŌԬŨʐŧ"],["@@̽ƴ̨ÆVȹ"],["@@ЧµӟĄ๘к׏҇"],["@@ӛéՊʬ­ȁ"],["@@ȀÛӑƅء_ɰżߋ^ƺĔωVĝŔ഼ŀтʕ"],["@@ࠆőɓđ࢟Yȑɮіºªé"],["@@ǃץМóÒɅˇôȍùǢʏ̷ÖÙƗᄩsȽƲ˴¸Ӈƈ౤ʖ᭣ƹǭðոɴঠÝχ¢ϩȦ̀ŒӛĪׄĀದсȹnjӒzܻĆξÎ܏DzࡠĞޤƕưȔࡔȑ"],["@@͗t଀ňߧŻ"],["@@ӎ½ʡDžڰðʬDZȤ̂࢜ßĨˁӕҗࢽƋ૑h̙IJᶿկॷŠաɚఐɔ঒šӠȦᔱƿšdž͖ƂңdŷǍ̃ŠÀǁӋģͥŜ˅ūعǠࣵ¾ʶȐল„޺Ƽýاº̤ńຼľඡ¾ϤȦலmࢗĈۖȒڰ̶ȵूI൪չᄘMDƂާȘ͒Ǻ۟ȌৼϊՌ×Ʀֱ"],["@@ۣȒΜĒφą}ȝ"],["@@ੱ¨ߌĎ˦ŵ"],["@@ࣆţʯ˓ҐƢෆ¼ٚƻܻ‘ᅌŻĹĥ၁€Υ̱ȗؖģɬǤόūІÂdžùʂŐલȇkŒ႔ʒאË࣪æ໨ǝۀ̳ܻȍ࠘įҗë͹Îîˋඩģڝ´ډ̺SˇݥÝՕĊÓ÷ʷḙ̂ďᔫIģ˴ࡱɵ࠳¶˝ǤɇƗΑL۷ԜǢӪݿѐᆵ÷ٟȈ͜ĈਕżД¸̙ƦކĀಮŹ"],["@@ٹȍѨǕω‹ʲDžࢫƯȟȿّľĦͲމʕʏ͛пǞ°ˡ͗śзƒσ̜̫Ǘ્ƒ¹ǰʻw͒ȀߪĎᐄܐሺ†ǑłѺè߮ƹ"],["@@ͧ±ٟİs˄রŷLȉ"],["@@ց’ۏҶϖG࢜ͯ_Ǐ"],["@@ᆸ«ȯɯᏋdǩǼ׮ü"],["@@ַ€ÏŸ੊§džāׇ"],["@@ϣƒ׉ǎղƌм˕"],["@@۰y਱ȫ״ѝȧᆣƉڕƔ§̾ᙎǘ"],["@@˦˭ඹÐ̇ģԩúࣻḚ́ƚနɤࢾë"],["@@ઐšΏƑͪűႱɧ֗ʆ״¾कƤʃϖߚRবɁ"],["@@܎νܺǘӚɷ׌fۚȣό؏झqڣ̤ಃ°Ľĺ৹ġۇüūǚ૶YϙĄղĐہœ„ǪرƳŰȀڏLlǮńæ࿰O"],["@@ŹɍथƤHǐݴ€̤ť"],["@@ਰґஂé͈˿ւ¯˙ʴ܌ȹɱߐǡˋˁߪ°ˤſ̠ŐԘ˝ྑʹևʣΡˎ¶ϫّ¢åͯ৷Ξјϓ٫ƘˉƫรƎйŮࠚèୱÆ̱ŤЌtߣźೊ̔਺ø౫ÞणƅƩĤ࠱ĥҹȦ੖Ǭ૳Ù܋ɌƷȂᅄó͒Ŭॣ¹ࠩư܂ª̔ͅှƉೱɼ҆ǰ෎¨޷Ș়`ॲdz"],["@@ᣈ÷႟ɯᦜŪˆĒЖĻܨ†̧ͨ٬Ð࣪ßȉɏᛏχᇃŁჁ˕ᾆǘ♩टঋƀϔʱຓġద}ۍ˥ࢣÉ࿧ưޠıĢɃᅡ÷୩ĈઞɭऺSƇǍ῅טŏൂÄ๨ɋ͡ǥ಍ƒƷ֟ˉᅫÃÃΩՍƩ༩w࣯ǰ̜Ƴً¡ʨýቒOѦʫ׆îʲȇʩƹᑝͭƥʠرrڿȔʠɍ൷[˵Ȉ§ˋܭ«િɾȏǩ֣ÒŕŚOǗݯhċ̰¥̏ۗ¬ʼn̒ऐɸ೰æܳɂ˯̊੘âখͷ܌čࡤ®ࡖκĬŤহϫ౓vɏ̲޴ɦͤgֿÂņʎڭΗՍyʢɘ࠱ǻ՛¦شԈະŜผţ౪ǦׁÓဇþzĺڶÅᜁږßΎᙲ{ႊҗ৲ã̐ÂݕpဏՊㄾҖ༓ò໦ДٳགྷÝ֌ǎᇏȵ໩̑Ĉ߶ɖጎȊħಣ̫֣L঍ɠᗄĂಊɂያǥጉ¡˗ŞتàϷàნǔݍ྿ƅԂȖఃÃ̗ĨᳮΌ࢜ř͢þ೨Ë೑Ȣ฀Țቜ̹ĆƜᣒͫ᠛Қ٢ľλĠੈ³ŭǨቘċ୿Ȝᒌ_ഞ̣όØಷͲᗮJ์ʕڃƸՊƪۢh࢘ǗŧƲप„Кĉ"]],encodeOffsets:[[[-61222,44995]],[[-68364,45755]],[[-62424,46582]],[[-75463,46680]],[[-75332,46561]],[[-62571,47048]],[[-65342,47584]],[[-63400,48420]],[[-55528,48580]],[[-76501,46084]],[[-129118,50539]],[[-55863,50779]],[[-55391,50939]],[[-129680,50797]],[[-63284,50273]],[[-128188,51300]],[[-130250,51856]],[[-56789,52774]],[[-130994,52710]],[[-81289,53199]],[[-131449,53659]],[[-82669,54014]],[[-134915,54473]],[[-131637,54211]],[[-132267,54393]],[[-132964,54444]],[[-133361,55254]],[[-135839,55427]],[[-134069,55787]],[[-133709,56085]],[[-81897,57557]],[[-80830,57617]],[[-63225,58936]],[[-81629,58896]],[[-70819,60458]],[[-65952,61816]],[[-69871,61687]],[[-80416,62187]],[[-66388,62839]],[[-66591,63365]],[[-81454,63910]],[[-66379,64061]],[[-72025,64050]],[[-83968,64466]],[[-79745,64994]],[[-78517,64916]],[[-86957,66828]],[[-86706,67149]],[[-85735,67376]],[[-110686,68614]],[[-64185,68666]],[[-110489,69020]],[[-75388,69411]],[[-88673,69362]],[[-77492,69963]],[[-80878,69830]],[[-107049,70048]],[[-76678,69990]],[[-104290,70233]],[[-102622,70459]],[[-102394,70670]],[[-81111,70498]],[[-92364,71086]],[[-78843,70804]],[[-103599,71063]],[[-97805,71244]],[[-69544,71210]],[[-79901,71389]],[[-81337,71463]],[[-99778,71315]],[[-88998,71796]],[[-76501,46084]],[[-99105,74688]],[[-117270,74336]],[[-107815,74670]],[[-81446,75423]],[[-88667,72716]],[[-102401,75721]],[[-100628,75642]],[[-95406,75941]],[[-122609,75892]],[[-99692,76315]],[[-97594,76294]],[[-106618,76838]],[[-95787,76829]],[[-98384,77323]],[[-96795,77568]],[[-121168,77394]],[[-80960,77749]],[[-104680,77840]],[[-106519,78422]],[[-100045,78302]],[[-103655,78418]],[[-110891,77883]],[[-91879,78344]],[[-116286,78586]],[[-96558,78759]],[[-118324,79220]],[[-91989,79123]],[[-107067,78994]],[[-97776,79660]],[[-104134,79562]],[[-116564,79621]],[[-113109,79978]],[[-112451,80539]],[[-98513,80417]],[[-105908,81220]],[[-101162,81901]],[[-94090,83081]],[[-71156,85010]]]},properties:{name:"Canada",childNum:110}},{geometry:{type:"Polygon",coordinates:["@@ÅÑ@ĝ«ÏƜŽBAҬǥǺŒÆi’ÅC…ŸʼnOςĩȟзK¥]u­mÁN‡ŠwzµfĿ¡S‘Tďľ¯Ląků§¹B§TďƨyAā^čɵíǡťǕȍǦή̡ƚóǘӓǿųíõȫ֑ēǕÕp‡lÉü³†ĿĪ[ɀƯlűMě‰ñ½‡ŝħãI‡RAÂÆp¼–„ʌɾǂhÞxĮƘ²–nl€ŐĘŌĔvˆnj@bč°ÌºƘŠǨ³ɮƆ۴HĘxX^G\\]NčMVSt‚˜ŘœߜɃĐ³ćǑ@A"],encodeOffsets:[[9757,48405]]},properties:{name:"Switzerland",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ɫªƎŞĞLJ"],["@@ɓśŽĬә™șȬࢲFƔƧ"],["@@ڪĉό¸ŽǑˤċȠ͙ۋNJoǬʫÎƓŅƬƥȗ€ӋʠĄɞƴ‹"],["@@ƾċ͚¸ĶǣƫÁ߱ʎϐl"],["@@̲áķɗˣŤЍÏɗɈǶƌԚŭ"],["@@”ąʹSɶǿǟǑϱĻĚɘɳ‚“ƑʼnXēɎѿƸͰŖѰÓ"],["@@ؚŭѦʅγ ʥǮ͹`ω˪˞ƣ"],["@@mᇛ۩IȥŬٱą૫ƶąĈņĂ؄SʂĮĆƃ͞—ҩΘIȐ˰ɎŸ̟ȿeĀŋ̮ȱάÖШɁǬŴߋʢƍȄºƔآʲɿè׉—ħʖˀŤȿdžϐËѬˮȸƳ͆úƆÛ"],["@@ʊ˭ƃˁƁPɅМʂƄ"],["@@½ijΩCȯȑŖ̆ΖÒƬÍ"],["@@ğë_ʄʾ{ƽƛ"],["@@ͥŸĺ˦Ϛćƭƽ"],["@@ʃ˕Ɂ‰źĨăȊАn"],["@@ıܝƙIįʈƀʪȣĝėˍН¼ȲʢƉŔ͌öĽĺɖǀ®Ȓ̌…Ð͋"],["@@şƪâЬƲÜȜԑ̏ş"],["@@̙…ʏР\\ƖʬŖˢم"],["@@űÖˮ”ƻĩ"],["@@ŷÅȋĂ͈ЬCѧ"],["@@ƽƜĂĜüɷ"],["@@ȯãƙð¡ŐȦʴβƣǫɫ"],["@@ɣǑɲԕʍűԏהĮƦͼìĒȾʔőķ"],["@@ŧāƿ¦˨œ"],["@@˻Wɭł̎ாђčĖʟ¡ɯˋij̔̏ˁȅoƿ"],["@@ƻ_ĦðÖÏ"],["@@ŻšĒĢÑ"],["@@ƾƯ̇ࢁݧ̝ʽ̗Ƭ́ǩ˟Ƭ؝Ʃˇɮхɯƕɇ[˟٩ЛЩƝ׃ǗȃÊىĬąĥƵǑEſ֋ǯŁÅΝ˦͙ğŁ˼ڧ¿ˉɞç߅ǙÛ˹܅ƋċŞɵVҏճϱŗˍrޙʸ۽җˣř֕Ʊƒ¼͕ƃŽĠǣȉʻjߩƊ̛ͫǣاͪȹŻġȌӧŝϡԜµ¬ijďǟګQnōϐÙȺ̑ͭȹĬ̿ȳǧƨЭȫƯˆ̵χʓƟ͑DŽȝuɋȑğḘ̈͏ơďʉ˛[ýų¬։̊ԧդŌƜ×ÉܝЪϗ࿪eౢ̉ڟŶ͉ɑথʯǙࡓʩĕ݃ɂȧʂЄĮ¦ʑϐ¨ɄϞǘ¾ȈƉ ݝ̱ɫ˟хǼ˘Кɲ©˰ƐԚœ׷ìDZĕɱø·ҍѭȤͼŊİȂĵŕ˻¿έ Ɂ҆βŇŴƀΤãϸǪȌȿęƹżňďʸŔƶɫLj΁Ĵӌ̃ޗȭȟȶύĬɢÀS̐ܿǠɻ͎΄h÷LjŎĠɺŃȐˣ˪ĵŶϐ˕˫ǩ˺ȢˈʞȂ̀i̫ǰ„ưϢKɏƲƆ΄ʉЕũČtڲ˨ĶϷVġϸৌūǿŸę˴ȋɯʉ‘ΫɢĸŔʔģĞö̉ƈ˘ȼŽͦşlµıгŨnȔҳƽĢȡɵȔڂҞţʈކĜˆɪƒüՕǏԟ̻ƉΨÂöʴŦˆvɑȫϱĔƒɆ֖śΚϸŒ˨ęѕǸèɔԾȴ¸ŞbƄԏɤ”ɪžŠÔȘáʶˊʆ÷̶ØƐŢGşɄ޶Ȁǁñ΂˗Ôϴɔ˜Ŵȋlj·ƨʏɟ͏€ĤƊƿÄŽͰʜॾɖƤƺӆʙ׸²ЀǓ˼A̜¼Ÿ͖nĊДѾޮ‰ƤͲЪȆ޲˴њßҶʒμɋႀʢɨǀìвǟ؊DzɈȄܞƈȎɼ੒ÇҞɤԤŅѺƴ࣠Ǜʼ~ǖȚǪɄరįՎࡨɕଢаŜľǺ¥ʌƖ®ĊÞÚÈǖν~mǂí§ÿ¬śÆ̽¢ſVŽĢĿȦǟ֛²“lwPoħŃĻƉFgİĭhCÃǕů\\˽ɘƛ×ɯ̤ͯVˋʰܿDˡʦÍǾŒƖ„"]],encodeOffsets:[[[-68903,-57115]],[[-68689,-56477]],[[-71375,-56237]],[[-72695,-56184]],[[-73103,-55329]],[[-74673,-54765]],[[-76170,-54192]],[[-70277,-53916]],[[-76618,-52869]],[[-76348,-52507]],[[-77109,-51896]],[[-76856,-51503]],[[-76909,-50008]],[[-76263,-50327]],[[-77322,-49933]],[[-76356,-49758]],[[-76914,-48985]],[[-76096,-46788]],[[-75399,-45897]],[[-74737,-45854]],[[-75504,-45460]],[[-75582,-44879]],[[-75543,-44386]],[[-80695,-34453]],[[-111902,-27791]],[[-68807,-23369]]]},properties:{name:"Chile",childNum:26}},{geometry:{type:"MultiPolygon",coordinates:[["@@ŀ˯̻̩ǃҙ͓ʥҡȕۉˊ‰٦ԤϨċNðĪބƠΖßÂƌȦū"],["@@ŘScĭȉ†Ėü"],["@@ijaļòGÏ"],["@@QƜægÓų"],["@@ý§\\Ěâ±"],["@@ĵolǦĮ¡cœ"],["@@ĵoØŢžı"],["@@ɭ¦¯ŊˆÙXĕ"],["@@˽´ʷɌնʿ"],["@@ɽǬKŮ˽ĚǙҧ͑…̿݅͟§ȴ͉şȁ߿ŦȍȦDZ™هۏऋϏѷϣɋƍϣ’ڻɽܝҡʯ¥wśУŏ³ǂӖǂ«ĤLjƔҗAQƆɀĂ@ǦʆĘЊӺυζėŅү°׏֛ࣳГΏӏ֯īɍƈƥ‰Ƚ˳·ȑǬˁȼŇަşŲ˻ŗ̳ˮNjЈbҪϾ¯´аżݠ̻ΖÌԢŁȃ˭Öķƭĩ΃ń݇̇ȱjîǁƹ}ÕʃȵÛÅƤŧsõëdžőܗַɛϝˆčࣈЋԔ੏c̕ШȣÀǿϞ͝VħƻRˡŬ͇VϟȤПƛְ¢ÔƏܼпǾͷϭŅԅι̹„ɉūʦ¾ŜƛՀƞΜ˙ͼĝӛ͕κĸoЃǙĸȗÁNJȫśiĺåƿǭŔ̉˳ÏŁĖƿʑǯuîijȵʻjƗˡ˅ljΧǡ»·ȢħįĹ²ʘϙΗɻ˗ÈNJơʌ°á΋êǙω¸ĘǽʷmËɽɫÿhǵӍLåũƏOǶȓΫ΅ƋHĉɃÝłǩŕƟÌ¥ǍșĉÎÛƇĉËȝǿˆͱƯDZªšőʫĈ˻ǙǝŜćȏʍXɁyͩ̌BɠčsǃDžȈˉG̳ͳų»ŐœʥũŒȅƗȏǜ¯ȣ̣Ğ˹ʓӯ¡ϙʟſľɍͥDzě«ƓǖŹƕȉϱÎðìʱЀfǸɀ̌ȳšķƔkŹͩĥŸƒˣ’ƭɪħHnɫƫ¼ßŕɱ¥dzŬ΃͉ˆʵ°ħѮȖɸȧŊə§ŋĦʯ¡Ӊ΢Ήǫƫ˃˅ıȓĆǛɓˑȮŅNjƓƴ́˓ѕʬ×ƛȭ»©£‡ʇRçĒkJQ‰qs³uß©©—mDzΩN£HƟqʓÞđaO±¡oMƋìɕ¥…\\ovY®RěÆlεž¹ǀЋʃϧRǧɸoɨ؋Ĉ˄۬õĠүĺθŽɾƄǼԻUխǙŦˌƩɚªʄżĂè͎dž”Őɺdž`˔ɸûǬĸĮ®ԆóڌǕìŻęȣՖϳ˦½MęſÙċ…‹–ėʛȅë»٫˼ϧÜԽ̳࢓ƇϫɝʱҍӁ¢׍”r”Ä’MlVžzʬ܍دî‘RćgğHůΌǠTƎɻĎ÷°ŸOůą³GʱĐíNŹOĽTg\\|ĺ]xцįrĻRéaåÉËą{ĭ©±Ÿӷس· ÉÊaüæȶhЛŜȏðŵçŵ•ői_B¿Ƚ`ȧÑ˧Nűbķøï’û€ûn¤yrÛP»c‹Ĺĝ‡ã€ġÀåþ·]ůÍq“d¾åŪåîå¶ɣCǕb÷p…´„ĤŽôAjVµNǵ³·NӉ̐­ŀ¡ĶuÂá„ïv̑ăΫή޹ϜƫɚǁŠdzrȋ¥Ƌȳß­LJǔĥ®ֵɺbĬʃǤɓÜɵĊɿ˶̧áXȐ½dž‚ȲȗȚ‘îƔy®̈Žb·ƒšɄŞqш—¨‚Ķm®ƏĶëîå͆³ǢȲǸ…ľÑŽҍǺƗ˺éǂƒ̂ȱ`̑gŷ‚ǡšǯ¾ĥ¢bą¨ËšWĪ£Qĭ“œuÕA}fÝżƃȾ˪mÜeÂýņ˜ĕ ÿdħ…‰Z¡Ū}~ʕÖėe¹_ǓêûB·]]R{vķäGjƾâĢ~¶pXIz‰Öq¨NȒźȋǺçܠ҅ǘɃĵȋÊėȺĠĪǕɖ|ƘIªLj’ìøPzĜ—¤GŒjzz¦°Ď¬Ä۶ʈ{Ȇ°~VŜ™ĚHŊvɾنCĺˍǎE͘ņ¼áގìºĈņœîdäjŒ¢ŽĬƐì–â`ԂŸŚ€Ą€ŢIƖtȈǦbøäžʦŤҨȈЈĮØĆÎhʴdfVXb‹ŊMҜ˰ŜůƜͪIJα޼ń԰ԡƚǀļ൐˾Ɇǁ˒¸Ɍÿøʤʟƞ׸೺ࠤǹմDĴšטȞƠdžŋ֊ȊЂڦŦɒѪўŠĀQȞȸ˜ªE¸ƋŇijô÷ǒ±‚yãŷˤéĔËĔg¦ÇRćĚ¥ƀËâYŊñδvèqǼƫ®Eâj¢–ÎQÚōô™ĺsdkĂųÒȁŬƹÔąìeÐ}”ÑÚœ×БŠÿ¤ÓJÍ˷ѕǺˡƢl҆ş۶ÉžDǬrؔù৒ӿ՚Õqȧǚïˬ֫ѴұېÎቚȅѠĠĒMζ­ӖÅͺYê]æo˂ʅƸ·ΘÅмï՜ɉʊžʶ¤nj€@ǿ̦]ĸ£ÌjÆ¢æØİ„ҮȈݸʜ୶ƆѠոlĔdߨˌԜӊܸ˶®ŔѽҬиגŔdäeʤIôŸĈÿĠ…˾ÕɄeǨ{âaÆdȌŐŸ ¨z˶ȚŠǀƮ|Ʋ“ȲXѦÌѢʀ˜´W¦_”̌͸ʞĊЌup|AžŠĎ\\„‚`ĞDǎÏˤŰðXŸĄ[ƨWÌTØSĸÌĨsǢąƜqŤZŬmðD”œ~ƼƽʖՉшÁ€ř’ĵ‚ÍÄĻĸ͔ؗHΕ˯Å^ǹŞı~§bşbĝIśsœJ½`ïCſËåßăqɿǀûɌβŬÀVĈIĠ|ĺܦਸ৆ʻӠ˦ڸȈðDzƵńݺ৐ֶжÿЄӳÈvżݢкᔺɘৢ΋ɚÎӘƉ׊ֱӪ੗͐ͣ~̛Ɇş‘΁Ϙȝע€̤ȍθ^הй̜AɑɄɕÑ˓Ȕʹ౞LȚȜξƄ˘Qۚɶ̺ĵċȗƾʵӭ΍ʱࢯΧգȿġÓ̩ƫč࣫ʠͽ˽Ϸŝɰ٭D׋ǁЏէƥĒLJ"],["@@ƅ€ǦüŸĻ"],["@@ɂzDȵ˥ÎàŮ"],[],["@@těřlĦð"],["@@Ɨ׏ԛژƇδºцބ୊ҬȰ˰ʧѿຩ͝ҩ"]],encodeOffsets:[[[113551,20472]],[[113035,21600]],[[115348,22160]],[[115498,22121]],[[121020,25085]],[[122697,26068]],[[124162,28761]],[[125232,30683]],[[124788,32249]],[[133660,43557]],[[116734,22744]],[[116752,23053]],[],[[121250,25111]],[[123913,23164]]]},properties:{name:"China",childNum:15}},{geometry:{type:"Polygon",coordinates:["@@ҒӁƗĊTĸÙÖCŶŖ͠ŖǬNʖ•ÈZÀÄą®°…òŷt…¸×¨C¤„lpT£gå“ʱ´i”ˤſĀӻ‹ÕoOwfY‰¯qķ÷ƛБɣףȔࢍǤģŽƗ»ɻ̑¦ŶŭȉٯưЧ×ӒKܥû͏Ôí¹ʲi܏ij്և{ȆÙƼՒ¯ʔƳÈÿXÑĴŽîÿ¨ʱ„ʧƠɜΰëЮkdžàW̓v„øƞUĚĮǰúýXێ†ZżN¢ʄnŊUîû˜@oɤșŦZnjŠŒľÂk†‘ŒáŒnȐȭäcВƐDŽˢɞɶñ̲ǓÈǘɐNp˜mĶLÆT´nnƞăȜƂºˋC}£ùFcĺ¹èMńĦX¢ª†ŴšŚNƤŁĶL"],encodeOffsets:[[-5388,10568]]},properties:{name:"Côte d'Ivoire",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ɯˉϽީʵȭƼƣ­ӭƘ֫˪ˉÄϩ޺ޗĶ՛ĽӿˉȨ۵Ĉ˗ƾઇ‹ÕĂඉžǯEgōț@ʱ@ڻ@ġžƒ|K„IlsNlȢńҐɵϬĀðĽWïƾƸ°ċĦ¤úǣT·ťΥƚçϴɏİIŽĭ²ƨЌʂܸатʒ˼”p®hƐIJĖÚr‹dŸjkô]ĶBNJƼ̊ʉàáÖȫ gìZƒêŲƎzNJàÀǢƒāž–ÖǨȴǼ׌ƞˀƮ|ΘŊŴrÌÎΖ®ļɨŚÒЈŨŔĸθƐɦNJɢöÒ܄ðHºh̜ȌºքčŮȷ¸óøķՎƲAǼ±͖ѧȠց©ؙĒϷŦʕ͈̋உwɡʍ̘Чڄիθ٧Íɛ"],encodeOffsets:[[15852,7705]]},properties:{name:"Cameroon",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@͔ϵͼʛȢuʦƴмħȴȂǪsѤԕ˂ūàǯƞ@æőÌçŷ̯üǍį͡ϔƻÜȍહ਍Qˏǻͳşణ͉˧ÅЋɉǣdȡĶíǮ˩YٽLjԭBŸß˵CÁfëǚѡªŵZÓU«ėǃU¹vŭ†š¦ãĴȇöÙƎģŨĥĚĹĎƓĀɍ̂؝༓ʕyʥϿσǠϡ”ܷɗࡡČȵӦҋΠÍndžʌÔiઁȃDŽ̑űƿ|ʅόƭöśˌ۵ʔΑծ˭͕ڡÚ֩ɢ»ΊމǣWʌͱɒÅģÉ̳œ͙ijɗPɇrÙ}ýÕߏ‰J«ÔmʖĔŜğմ͓Ӓþٴċବ¯pҽjɻFʫH¥„m¾B¾ÀƾQ^ĝJʕlj{ĹU̇Ɓ™ŕGljĝƵC©{ɓǓ‡Ǖ@͍ÆүƟ̫dÁQԁۼÅ˖ęƊÏżϢƇǖėÈĭ†ዱRՍMƋPؙŧȩȰɬƒծ¨ˆÒ’nfȞȮIJ”Ġœ``^„¤CɺȝȶĮ¶ɢȊ}ΖƼüųëŕœȷʠ¥ંबȒآCܒ˚˴˶Ԫܼ֪ˎᓀΚފĴҮ_ܲЌҜδȤʲΜɓ˨̯༪˝ϊӶҬ»ݸˤضuϮ̂ઠȿɀŚ˦ù"],encodeOffsets:[[28061,5232]]},properties:{name:"Dem. Rep. Congo",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ijҭΙމˍܻ֩˵ԩ˙˳Dܑȑءઁफʟ¦›ȸìŖûŴΕƻȉ~µɡȵĭɹȞ£D]ƒq`ÝÊ÷Ĝƒ`̅ƃНΕȫςխղĖȎɨƞƴƋnjb°̆ǿޜǎȇŬÊдϬÏ͐ê]ʹƄĒǠėǖ͋ЊçɦɎź˝ĚsǦ؋ŘȆ˞øૈԩ̶øҶ̾ɪĚɸȽЀˣ¢Փƛ™Ғĸ̼ઈŒ˘ƽ۶ćˊȧľԀʈҾŤ֤݌ƴ֚ƿ˂ļŖŧ"],encodeOffsets:[[19057,3562]]},properties:{name:"Congo",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@՛ǏʑЁχ̣Ư˿ŗם̟ԃʶÆɘųŌЙɴ˹çٙɞŹǜ˳݆͢ĔԜŗמۣߤ„ԨŐ̈́ğPȿ̍և}ٙnjե̎ϕҡԹȬ@΄͹ˬকǥ‹ѦɿΎ̱҇ɏȨ¿šäĿඟWGձҒQƆ͡ˍÒӧŵa׽ξ̵Ƞֻɧఇɹಃe‡ǛƼÕƘµŽ“‚՜़Ëfㄥ°ɿŒÓZµÂǫľ­X·gñgéÉǙkƋĢNjÒ¥[Žû©ȟ×؇N£°Ƒ¾•ϔʥŚƗώǕªÃÒ¹xÉÎрÅx‹–§Þéɪ¡À£¢“’½¼Ù†ÁŒs®iœ˱Ųū³Яǒг̌ȉǟݵƄÑȰȡǜГŌ֭ЦƓƘȞȎǺÙ]ӪƦń̌tɆǨئ৔ƽi]ƒãħ§ʬĥ‡ƘƼÈ˘ñԐƉǴʈȲȁͮĎͰҁպŜЂȊŏ˾΀ʁѶĔƈѮӋÓįŚ•^͊ůɚզΒɀ͚̈́î“ɼŢЎƛ¿ɚϾԐоќħƻőĬćɐҲۤsࢎԀŞʦΞȚϞíŀʏƵƹ"],encodeOffsets:[[-73031,12147]]},properties:{name:"Colombia",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@нǏtĆƂ»"],["@@|ɳʇƼɌø"],["@@ȧŲÔ̈́Ā…ÔЯ"]],encodeOffsets:[[[44840,-12602]],[[45544,-12371]],[[44509,-12186]]]},properties:{name:"Comoros",childNum:3}},{geometry:{type:"MultiPolygon",coordinates:[["@@ŏk±ŪƖlƍ"],["@@yƾú±¿ŋ"],["@@»ûǛœ—̰ʰˏ"],["@@ȌÉcŁȽD–Lj"],["@@°§ǭxãęÙłʼH"],["@@ý–¢ŠœƵ"],["@@ǥ^Ƃø¤ĕ"],["@@śU{žʬî°åǃů"]],encodeOffsets:[[[-24891,15213]],[[-23738,15501]],[[-24006,15369]],[[-23467,16627]],[[-24665,17022]],[[-23437,17059]],[[-25484,17222]],[[-25773,17354]]]},properties:{name:"Cape Verde",childNum:8}},{geometry:{type:"Polygon",coordinates:["@@ʜԑӌթǸýIecgµƒƁð—i_¹{}‰W]i@͛¸GĊŖZ‡ǃƧ¾ėVũa‰ƓĭŰɡȳʂȢʵIJƮʧɃ’DžƚĶDŽĻ̄܁Θő˦ѩ˾Aœ̎ʉDžǿȧǬʹüȍ͞ƶϞȫźƎƐƈń֦ȳɴĎ׸ʻǦ¨ÒŎ"],encodeOffsets:[[-85649,11180]]},properties:{name:"Costa Rica",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ͭŋȋŸǰAğǘúŶɸ«Ÿˋ"],["@@ȽŘʈ…‰đ"],["@@ƋؖĆĶƝ"],["@@ӚKİďж¢ʈƅҜ³ҚЕӸ“ࢤӍŞQïĎðc̔ȑȅĨŇźĘȚɑ२ȁńĭŅɽۼÁ̴ɡ̄û\\Ľ߳ɡ‡ĚśīܱĆಳœԤҬŁȤݗIJ̽ʖȥҎՉMܻʌɉɂҥ¥űǎċƃӃĔȓƤ̰ĠŅƨݱbաϹѫ«ʼnȑЅƕBż͕ÕҼǾ…ʮˆʎڎʨஜǐ"]],encodeOffsets:[[[-84543,22090]],[[-79533,22479]],[[-79748,22659]],[[-83801,23719]]]},properties:{name:"Cuba",childNum:4}},{geometry:{type:"Polygon",coordinates:["@@ȳèƍȨ΂ˏ"],encodeOffsets:[[-70401,12350]]},properties:{name:"Curaçao",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ɚ™ʡuˆÐ"],["@@çSƎ°å›"]],encodeOffsets:[[[-83322,19814]],[[-81739,20186]]]},properties:{name:"Cayman Is.",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@ѹÃýƌϵÙǧìƖRÀǮ֔‰ߖʶԩ̳Àȑ"],encodeOffsets:[[34821,35907]]},properties:{name:"N. Cyprus",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@Ǩë϶ÚþƋѺĞÛ̍eׇͳҹƆōȌ_ňΊö"],encodeOffsets:[[33498,36016]]},properties:{name:"Cyprus",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@òFòrVņ࡜ͷɲšŚçǫųήˑ̎Ŕğdž҈ơʌ¬ÙDžȺŧźÂ҆ſɪ̱֟ɇÙlj˝ƩԻŸƵȯ΅ǔУ•ࠫȲ́ͯաFȟƒ›¤í¼řêęG‘nП̒ȡìʓ˚ĺŚ΍θŠ@m´™žÁzrȴǀϼĈƒhী͜£ŜȎ™^ˆ‰zGS·šoÆc˜F€rXb"],encodeOffsets:[[15165,52080]]},properties:{name:"Czech Rep.",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ɭ‘ćȼ̶ǩ"],["@@CďѣœŬ̸˒řªƩ"],["@@ʂŵŹǝܨſʀÂIǕǓęĚáМ§װȊϸʤϠ³ΚɧɶXŢʥͦϐƣĮɭCÉCc•ýÙáŻÿU¯ŀăɖŗĘį¥ć_Ñh–‰ÄyÔƗųȽŘǣyé^iƲ»~yx˷ñēŗIYWaq—EÅd™pT¸yH‡Š]ȍš¤śি͛ƑgϻćȳƿyqÂ±š‘n‰@SQ@…ǤōǾɑĹřʔ˙ȢëР̑’mĚHŚé£WgIŁY…ʣK]SYM¥Ɲñ¿ě{ϣǏnjǻ±ƗƀÉKÙaÑc}Cõ~ϊulCv`bs‚í~Џ¤YQN¿cw॥ȏ½JñÔo~DhŋHépƧK—T‰ő‡©ƻñdîœ|A~Itur¿‚ō ùpȋ©ߛɄŗ›—TsŽUĎN^MH[W[åWqa۳GBӄѦۈֹƮ׷R͡ʖŤ̄ʁİǸy¼NðȌ˦̇ʤ°żDžŀɮİÌʬȿ̒ܐƒÛĨʾʦʋìź˔„ƒՎĻǐǰǠ؊TČȉŘmôƊƌDZļИӲeӠʩЅʰ͡Ě[ʞɿþ˜Ĩɿξ࣎ß"],["@@ŦɦÓŽɀOˑė"]],encodeOffsets:[[[14539,55214]],[[14039,55688]],[[9974,56142]],[[8508,56102]]]},properties:{name:"Germany",childNum:4}},{geometry:{type:"Polygon",coordinates:["@@˕п̩æٓčKצӰپ~z”v|OȌŏ–¸Ŭ’®dAĺ”ĤžȤ˻xɳثѿıX¾ÙϬüǠõ"],encodeOffsets:[[44284,11776]]},properties:{name:"Djibouti",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ÿké΀ƴęIɹ"],encodeOffsets:[[-62752,15615]]},properties:{name:"Dominica",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@͆ívŅʷ§ΟŨpƘʬ£"],["@@α§žŲɴĉ"],["@@ɉhsƎɾƵ"],["@@ĥĎˢʰǻͽ"],["@@͹äæǎ̰ŵ›Ļ"],["@@ŠЏ˽íϡĬŅ̐چĂ"],["@@ĩ‘¢ľÈë"],["@@̓ˋǖƯ˕ĉ‘̻ǁ•ǩΐ̯dʵѢ̀€ʰǢNJɑ ɪ̒Ŵ̠¯Sɻ"],["@@ƭTʨ¼ĹÏ"],["@@࣍à¯ўНƴ€ࡎѐģǼȪƮ¸Ŋû¶ʼɗHȃʓʭ»ƹǀˮɒۄÂѼ΀ծƀ˝भզƫơǛι{ŕ̇ɻkĶçεɣäȑǽȏɺÑPţ"]],encodeOffsets:[[[11635,56210]],[[12851,56285]],[[10303,56204]],[[10992,56065]],[[15450,56343]],[[10901,56945]],[[12970,56931]],[[12871,57124]],[[11318,58627]],[[9974,56142]]]},properties:{name:"Denmark",childNum:10,cp:[10.2768332,56.1773879]}},{geometry:{type:"Polygon",coordinates:["@@ċøˆǜǜk~ĤŊ״ÆٖɳȦ„Ǽ̹юw̻Åcõ߂dz̄ʗ̇ͫȻNJ˷‚зH׫ȏƑĴ͏ÁΉՙljŜŗɠHƐxÊsÐġÚÉĄ»ð\\XĶHļĴbÐM¬ÕŌƈǬ"],encodeOffsets:[[-73366,19657]]},properties:{name:"Dominican Rep.",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@Ţŵ׳šē†ăçij‡ėȵؙչj̥˾ҝȢįȄїװЃĮϛÂȻʜ१ǫĩж޿ĢୡƗϣŖי͡ʟ™ɡҬ؟ɊحŠėʒÆےȥϰڝ␣ᕧ൩୧ഝ˯ܹſȣĮŖʶĿτ௏Ѻ×ƪϏɚiʆ᣽ၮ᜿༸ἡኒ@̸@Ȳpیত֤¸„ʈǎʊcĎeĶ]ŒTÞæ”ƊЎVҲŀžĒĨĜDzʤDŽòɀÖǦÖƤĢѮLjǧǔG˄ÎƬÊTĄYƒd΢Ŋ|’´Ƙʂ೶^ĦʺªźÝ´ĝȱzćæ»þ‘ǒŇȶĭஶ˯Ȃ¹¸yØҞâ਺֮͆{̢ˤֆʀഺƂ͊ƸڲĤࠖ@ҌȻৈπφƓʾ¤…ľצȣ֔ærēͥ˃"],encodeOffsets:[[8405,37396]]},properties:{name:"Algeria",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@šm¤ȰŦîƠ³ȇȻ"],["@@ā”–à¬ij"],["@@Džn˒ǖŋȃ"],["@@ǩĄVĂɚĆÜƣšħ"],["@@ƹb‰Ɔƾ|†ǣ"],["@@ʙÂòĢǨƣ"],["@@ЈٷęǁȍáʍpÛŖ̀ʪȽɬ¹ɞƗtȢļøč"],["@@ç”üÈSě"],["@@˻_K‡Ò•УÈƇƒƳṬĉ]vw`YųӍѥԏӷί঳Ι͉ЫĕÚʫ܏ˁƧđ¥e³X¡I±_i…½—‚åB¿|Ëô³ØĄ]Ō½»žÕYïQ¡~ı²čÀـ·]ăė÷Ÿ“€SŠœ¸úńčF‡’Iža¦jº¬€ŒuŠ´ŠrŒf¥ˢåǂ̤ȘȞӢĥіéЗĕQpǠɹ̑խπƠˬţܚ̊ȘĊɚƢ‡ǗɄμѲ•ՈূΠ’Ⱦ֮ХДŋȢǛÒȯݶƃȊǠд̋аǑ"]],encodeOffsets:[[[-82054,-3044]],[[-92594,-1372]],[[-91564,-932]],[[-92502,-790]],[[-93620,-471]],[[-92747,-342]],[[-93462,26]],[[-80803,1283]],[[-77091,-109]]]},properties:{name:"Ecuador",childNum:9}},{geometry:{type:"Polygon",coordinates:["@@քนƕǥ˱੉ƯɃϭʄљѪֳ஀ǥ˿Ҏࣅղ֕DʓʦΟĢ҉ਠᆣӸҋȱc‰šnj۩҂ˉբՍ⮿AªŸï°ŝǙƗOᢱBᢳ@@᳾@ᴀɵࡦɐВĝրʢːȚšіĜଖȱʖƑࠎƋҴȁܞͬʖ€ƢǘѺĠ̡ųςžæŠψŧ̬êȺǙȳŢķDž˦ǗưĜÅþ͘ȋࣂ¾ҀNJ¢ĩ"],encodeOffsets:[[35068,31958]]},properties:{name:"Egypt",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ɐĭΣ„wêļgŋÌbŨƺNj"],["@@„ąħ´ä’"],["@@ijňԉˎ׃Ę˫µ¿Ē½ ¥@y•ƷĕʵµÕHǭȆǿò·Ö¹–ÁťĥɁ¹œßƣqIZȿʠțƳdz˜ŏOŗ£eCʎkNJoǠkNJŞȖ̈޺sˠúƨEÈhż\\ŽªDĞgȮj– ¶ưŒˆȢŔЄł\\‚nj¶žv†¤ĚǀƴΦޛɞএФڟà̄˺ϥࠆͥКՙӲͩż̿ľRɰ̙Ƣ³~üêنĭģĹ“cB‘«·ūÁ—ȋŐ{P“u}yõĔÃüùĠƵĤûŦāƄͷˆΣО"]],encodeOffsets:[[[41105,16073]],[[41039,16469]],[[41922,14319]]]},properties:{name:"Eritrea",childNum:3}},{geometry:{type:"MultiPolygon",coordinates:[["@@ąƏƧĬɮ¤"],["@@‰˯ɯwĉǰłƆʂM"],["@@ŝĄÈðżýåõ"],["@@ëȓȩŧȻ˨ڂȤǯǏ"],["@@ŕħƅœɔĬȔЬŬ€ÑПɥë"],["@@ƓɞÒðǞĵěȗ"],["@@ť—ŠŨ̢Ȋ]ȗȧā"],["@@ǁA~ĆƄă"],["@@ȅ]ŀƪǺ’ºçƭĵ"],["@@ˈý͛ͫɭìċƂǛÃʼnĀڐͰ[Ư"],["@@ΩĮ[Ė̼}ÊDž"],["@@͒Ɨ¥ƿƈ¤׶ʩ৾ğÆžؚȽ[¡†ģîJƠ¾żÌĖÕমàŠХȱƩޟЕࢥȍˋȩƪčʛěޡँĺϧ΀ʭ؇ωʙҟĀśԙÏˁƣЃԡ቉·ʵDZйéǃʍɝğΑƌ˿ϘƖɶƭçϽϔҕċҤФϮůMȥɶ̄ԊҍԘΘjŤĮâȊŗŪȈƨı֔׺ѮˣŠÛɨѹɍŭؽkħ˚ѕǑġƐǒƚĿXðłçȔȃĘǢʵƮ´ǔްɞOŠɄĬтœϊƻ৸ú૖ȕޘĔҺŭƜêҎŃҘä"]],encodeOffsets:[[[-18317,28478]],[[-15770,28823]],[[-17597,28695]],[[-16726,29062]],[[-14537,28846]],[[-18262,29178]],[[-14045,29606]],[[1633,39601]],[[1480,39853]],[[3221,40746]],[[4397,40799]],[[-1837,44450]]]},properties:{name:"Spain",childNum:12,cp:[-2.9366964,40.3438963]}},{geometry:{type:"MultiPolygon",coordinates:[["@@צƝӿȁ̝[̿ʉLjȊʱĜgȢيľ"],["@@ȟĠȊUVĉ"],["@@͋ŗōƤ̕äӾŦɖą\\Ə"],["@@Ŝğ׻ӱÌӇɶ̍ȣÑţŏ¡ś͕æηßȟÐ՛ˎ͗öƋ®շŽă•‘ОΏó̅ĂɑʢƠňȽŐÀɴӶĄʠƲࣂ¤ÆIJ௺ǁࢌ„"]],encodeOffsets:[[[23161,60029]],[[23904,59956]],[[23474,60239]],[[28685,60912]]]},properties:{name:"Estonia",childNum:4}},{geometry:{type:"Polygon",coordinates:["@@ÖGʶ¶ƸĖz–¦@¾ŸÀđˬ¶ׄėԊˍĴŇΤН͸˅ĂƃüťƶģúğÄûöēӯٽLץٔĎ̪åɟͱƺͭ˸˓ʪст̵ᠴ࡙ࡀ@ᢋᣭߝͽăϩǯɥˏ۩ƻĝę­ūBɋ_ğcŵCǙĨɋǺޡΟ©ąŏƩƍķݗŦſJȏ\\ś~޳ԘȽƂݑ´ɑ˸MŤnžl¨±ǀΙ @žHˆʅ̬ɯڬիӆƉʄݻ͠ʂҌ֢NĴĐJޔȞؖ„ϾȒȆǘőƈIJƲߞҸڴϤŒͰాfDؤŐPǴ—ȜƴɀʟYrJÞƤ¼ŔĤɂÄŦº•¸ÕȀñǮȅ"],encodeOffsets:[[39354,14775]]},properties:{name:"Ethiopia",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ȬɯřʃĸĈì"],["@@ų¥ÙŠȎù"],["@@ǖ™ƋƛłŒ‰"],["@@ɫªͦZĹÃ"],["@@ҩı̞Áʩ̏ǶʣֆŅզͥޟٵࢌও͗ďĝ́ȀēȇƩЀǟ˓ЈȱSƭљʉৄѵ̒˕̅ͻహ޹ལࡓਖ਼ĽˆDzljǙΟ¦äŏɷ×ďÈ৯ʿࠛ‡ωƛƬǦʋǀƋŷʋyĺ̐९ǺƜ࠶̋ͰĥـюʦėƒٲĘǴ˴ࣈؘٖͤ߬¸ºԴ֡LjŸǂЇ­ϣϔʎҸ̇ˌþʚɻŒƺдڇΎܙźିѠόJ@ƢѸºۊҭގÑѾƂࣴdzڴͬ˘מϠȊԐQԶƄͥLjǕХʝĶŽ"]],encodeOffsets:[[[22708,61820]],[[21966,61983]],[[21727,64760]],[[25445,66551]],[[29662,70679]]]},properties:{name:"Finland",childNum:5}},{geometry:{type:"MultiPolygon",coordinates:[["@@ѻŭ͂ǀź‘"],["@@ăÒ¬ò˜ƃ"],["@@ʾɽÜέױƷՑƾµǶȬ˘˂Ŷϲb"],["@@đAĒƮ@ƫ"],["@@s@²@ê@ŞĈĩȥ"],["@@ϋĊĞyÑ"],["@@λϿHġ̦ȔCȍё½ǻĀǏƿʧÛǫǂðƔȆSغ͎ϔĆ@_"]],encodeOffsets:[[[182772,-19429]],[[183654,-18536]],[[182559,-17788]],[[184320,-17370]],[[-184294,-17331]],[[-184247,-16898]],[[184320,-16556]]]},properties:{name:"Fiji",childNum:7}},{geometry:{type:"MultiPolygon",coordinates:[["@@ŤQÑŷǓĜł®"],["@@ݲĒĴÉչҕ˙cęŹ˩¡ɳŌ؈ʈ˿º˲Ö˕ʀʂĕ"],["@@ƍĬǤw•ó"],["@@Τ¯éƅȦùZƂʄ„ƘőŷÅƚ«ݡʥ~ƍҗæņŽɯm¯ĥɅƤàǬјȬ‹njȸȆ"]],encodeOffsets:[[[-62483,-53028]],[[-61733,-52697]],[[-61554,-52629]],[[-60262,-52500]]]},properties:{name:"Falkland Is.",childNum:4}},{geometry:{type:"MultiPolygon",coordinates:[["@@ιÆʼnǺàż̎EƬș•Ǜ"],["@@ġænȲŌċ—ȋ"],["@@֥݇ɋչˏˉܩŦ̥ȟʫò率¢•jqZXRŠN„B¦ÖìœŪɄ¼ĖtƨƒŨ`”ŀƤ®ĄsƲˇΦŇڂҼ޶ࡪ˿ԞН…ƝĖüƌũ²̫ƦʄƦӗ"],["@@ȥw¬ŔǝȸʊýĎɕ"],["@@ãJ¼Ĥhĭ"],["@@ƛ°Xʘǐë‹ɛ"],["@@ǍC¨ɺʤȿŽu"],["@@Ð֧̩س͇ǠäĦɟȘâƐœɚȾɀмʦʮİDZ"],["@@‡ñƥȞǮū"],["@@†ƒÞ_zY~mªQÀRž~¾\\Ǝ͢ʕ׸QֺƭѥۇAӃɭƅǧ´Ɨ‰É¹Č¯@akiw‡ŋēŏėk•mƗ±cƣʹǩWijkƗŁÅBÁˆQäJĨžˆŞò¾ĜŠŲNưk\\ȿŀĩ´…¦·dƒȗƹ̘̟ÉšϋƟ̜ȫýЯΚǓˌvŧͭޡӋϡŁ׫ž̅Ǽ̇ÑکDŽյ̵ǧɷƆПভßĕÖË€ŻžHĎš€ÇP՟ؙȾÅŽ৽Ġ׵ʪƇ£¦ǀ͑ƘʺƀȪ࠸ƚŊÛØýćƒܮ҂ҁȯϾͽȸƐvĩӐ՟Ǣɭʜ’ȒƫŀƚĤʈµțĂѹBÜƆ˽˜cĤ౱ǔ̯Ǽ̌ŌȹĴˮ\\Бº—ôȚƚદȆҐʯȸĤϊÅĈĪѼ™ǃŸcͮɭКԈGĶʕࠌûӤŸʋº¶ǎࢸʞ̆ɈäՐܒDzȠ̅̈|ƔȻ˔¯ĀƝТ¹sɳͬUɰNJ¤̩՞ɷʂx"]],encodeOffsets:[[[57137,-21851]],[[46265,-13288]],[[-52892,4159]],[[-62286,14843]],[[-62700,16272]],[[-63067,16392]],[[-62799,16620]],[[9708,43833]],[[-1206,47006]],[[5929,50728]]]},properties:{name:"France",childNum:10,cp:[2.8719426,46.8222422]}},{geometry:{type:"MultiPolygon",coordinates:[["@@ÐýəzNJÄ"],["@@qœƹvĬƗϓˬҔµ"],["@@ś«SŴŰć"]],encodeOffsets:[[[-7359,63631]],[[-6790,63722]],[[-6559,63753]]]},properties:{name:"Faeroe Is.",childNum:3}},{geometry:{type:"MultiPolygon",coordinates:[["@@ōY£ŦƈLjŗ"],["@@ÛåĴƤ—ý"]],encodeOffsets:[[[162115,6978]],[[141459,9729]]]},properties:{name:"Micronesia",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@ķ̻šґՔƜˤ¡ȾϿęɷ̽ɩ÷ҵԪ̵÷ેȅ˝ŒŗǥŗętŹ˞ɥɍЉèǕ͌ǟĘƃđ^ͳ͏éϫÐÉгȈū›ǍȀš¯̅NjaƳƌɧƝĕȍڃݺԿҞ˸éοƸ˙϶ƸPǽÐȓѠʂ˕ƶÞǥ’¨džţµśì̥רȴć̌˴¸׎ĨƷˠīǤŴϣĐȅɌƞĦĺówϤž^’zzJ²Iz£`wĒEѼG՜hŎǰFඊÖā"],encodeOffsets:[[13613,2214]]},properties:{name:"Gabon",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ƻďʽàɀĜȺë"],["@@Ů_˗ƟǍɄɆ€IJă"],["@@γ{̛̈ˉɯʁVїɪ̪ƲſĔ̢Î˨˘زŰτăˌ˝ƉƩʞnĦƍǛ¤Äɵ΋ȅǗŒ"],["@@ȏ‚\\ȔǴɕ"],["@@ÖȡȿófƔǣÙ|Ģˬĺ"],["@@ďà̆Ȏȵʭ"],["@@҇§ƤǔŭĸƸ†˼Žaū"],["@@ƉɠŦSdɋ"],["@@TLJϴ½ɵǧïƀʍBρȪϤȘƊƕ"],["@@pű˩Ìʺæ"],["@@̗ɩňÓҵɫčÄȐĠȓɒ̠N§ĦҐǜś"],["@@đǍٷ̣ěƮƒɷȭؚŌૢKʘȓڽދ׽ǕΦ†ǰŧֿȍΩÊجťϘÚϞĽЮ˧Τܯ८ӯķă˒΍͕ņ͝Y̮ӄ̙îƧʻɇȠąɼƄиOԐǥøʅŽ̝̋ů™ƗνÕŜƃϻęࠬđaƱοɋ։ų࣭UՋŎèÛƵÕћmIĹߵĨͽëɳͣѝź҃đ͟ɃчX஺ड़ࢪ`נҊܡ̍ԇǜ˿mŦúʛæџĩɡĪ]ǬߺˠȦɜķ̾ӧğΒ˴ۺǒˤã‚Ɩˆį˅ǠȀԺˍMͻ˶ĘʲάưћI΁ƕܡÆÿſķÒŝȌиѠǏ̺ʌÆɓĦšĜΫɭŦʾ˛ǝũԙƥ¯ȐϾėɆΠנϷȏЗƦ͸Ŭŋ¦ʦˤțŪǴƘƍĺŘǴϜ@ɍǂÚƚˤpQʰӬ­তŘǦ]³ĵ"],["@@ɜĻҍÄlƆɆč"],["@@ɌýȹӇRɴ̻ňʐ¦ǓƌǪĬ²Ó"]],encodeOffsets:[[[-1091,51907]],[[-4297,54602]],[[-6367,55387]],[[-5227,56780]],[[-6275,57273]],[[-6113,57155]],[[-5916,57697]],[[-7423,58487]],[[-6292,58886]],[[-7378,59068]],[[-6347,59765]],[[-3184,59920]],[[-3130,60447]],[[-1339,61991]]]},properties:{name:"United Kingdom",childNum:14,cp:[-2.5830348,54.4598409]}},{geometry:{type:"Polygon",coordinates:["@@˂Ə®³S“‰ïûÑēẂĜڱɠÁuǹŏsYƑe؝Ýէuȑ˜«ŽWz~nmhûžųĪít…Òƒ^ÓNÙMaOoWčijғ²ďÁ™Rß~ĿvÇhLjǂ¾ɞɱׄշͺ̽êПɰžÆ¼Ìӂgʚīޙɲ“ǵͳর¥ȚßR•ö»Ѐŧĉƈ½`eEs›U“lmÆmŎI zĊlȐòƨœɠōâŊjTÔuň‰öeƶũȂLŤ‹loýȫH}ӘǷǾĉȷǃĸǍ"],encodeOffsets:[[47417,42504]]},properties:{name:"Georgia",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@àāă̇ϼ͍ĭիà“ğşʘËҡĭû˂ͻƽڷŔljĝхǰͯϚ̧ȥɻׅ«ቕ࠵थ˜ʢļɼƘǣĤȓࢎɤפƜВĸø°rZŠeŽPxÖp‚ŒÿӼ£ƀ“̳j”ʲTŊU¬¹ľ]ôU־Ļƈî΀ຌXΒéˠȪȘ§"],encodeOffsets:[[-70,11383]]},properties:{name:"Ghana",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ħǥǔƷ̺džȊʳκ˂ѪƵͬȎ‹Ǭ̐¿ȎЕGȽ΢ʳɣ̛ˢeÐщɔƏbƅƏǃdБȮãmȏ⋐‹n…ĽÁ‰‹YNjȚťpɣŅüʼnVʃmO¡Wݐ…܍þWŽùĭǯVě÷ƛuƒǕœ³™ơŊȗΧȑ̃ǘĀʎůդɛLjʁěéøï§GÛV…]đij½ŇLs\\ˆÆƪʌī̸ģng\\Ex¾ŜJzÙĄʏͶőŜq¬Ëf՗GșįʉnʼnNjǕ˥ǝġijNjǷiť̸ɉĬBͤʼn“ȍɈ͍ĜƵʪbǼëßĉȰģŒóƑۀšª°äƒˬºÜŒvàFŸœŀÖÀ~ŤOƚZȄÒDȊM¦ßœŏľ¾Ìń`òǺ¹ĬHæլ“lťŊ˜҂ljࡔÄ"],encodeOffsets:[[-11662,12703]]},properties:{name:"Guinea",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@½ɸžŒɌǣࠤǖשiǻĕǭȴࢬAèŠˎîמʷή’ŴŕΛƟݻːŕƇѷÑiƗۃEĩ÷"],encodeOffsets:[[-17165,13378]]},properties:{name:"Gambia",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ËovŒ–ġ"],["@@ŰƜê¡ř"],["@@ķX¸ĸÀŏ"],["@@©ĻĩİƔL"],["@@Ń_½ËǰƙN¥CȉȃÑʽI¿}ĿÕŷ›ßE‹u·ÛƓ˫­á›«§Ò’ŌƗģLŀƩ¾ŽƮĽ^΀ǀƁöƵÓõĠ†Ĵ͜łܧƵlŶǽiǃŒêƼljɱŴ°TŖaĖhƦÚĈ^ʰgɞ¬͈DŽ܆GʆA˰AGåºīñǹ"]],encodeOffsets:[[[-16277,11349]],[[-16501,11325]],[[-16283,11741]],[[-16370,12168]],[[-14090,12557]]]},properties:{name:"Guinea-Bissau",childNum:5}},{geometry:{type:"MultiPolygon",coordinates:[["@@Fѻ஭đŽ_xy¤±JyI‘y›]Pnõ¼ĽrΞڎwŠlȤtMT¯†{Ġڼ@ʲ@Ȝ@H՛"],["@@Ƥ@Šŋȯ͹ȓ”UƼɬʶ"]],encodeOffsets:[[[11605,1566]],[[8946,3849]]]},properties:{name:"Eq. Guinea",childNum:2}},{geometry:{type:"MultiPolygon",coordinates:[["@@˄ºµċȶŕୂW¾ȍѺNJŻʝଫíûžȵÒܷĆmɸĒiÄŢĬĵ"],["@@ėŐŸȈŸ̗"],["@@ť€’ƎĔǍ"],["@@ŅzBǶѠɚŧ̳ȳŕ"],["@@ĥ…ŽĬØå"],["@@DžČúú«"],["@@ɠƠŘ}ͷš"],["@@īA˒Ĩǥĥ"],["@@ċ]ŤŎŅ"],["@@ơ…ňΚã"],["@@õāŢƎłjȕ"],["@@ĉN¸à’í"],["@@÷ÐŴe»©"],["@@´Ęɞˑŧ"],["@@ċ¯ƇŎɔÝ"],["@@É£úžoę"],["@@ȘďǭÃɛâȲò"],["@@Ęąƥ™ǗdžÔØǒĽ"],["@@{ÇəɦɎ³ˆũ"],["@@ŰʿȥŠÓńĉ­Ǯʜ¦û"],["@@ǝtČĠũȄ˄ƒÇ˓"],["@@ŏuŞɘMȡ"],["@@ői¯LjǂƝ"],["@@ĠũԒƏŰέˀą©ť˗ŚƟɮ͝¬̞͍ͯÎ͚ƊƂÕ"],["@@ƺɿęviď̡ĜƒİǙđȓĖ˒Ƥȶ™"],["@@NjzȧʲɾNãėȚȡ"],["@@åƥěðƿ•GŮ͊a"],["@@ɑ‚ĞŪŴƫ"],["@@޷ɤʽŗˇøͧȉˍpĔˡ̄ùŌƯίǰƻ{ȪǷiűʁɒȧ’ǜ˷ؗЎtLjʗă‹ϫآܣơ×Nƀȫ¤‡ŕƲŏлƛֺǥβʹʄݶœIϳѥ̜ϷſϠρ˟ęνǬμँϋ̆ʏˋ̇ҬĿÁɅʹ̀ĆʴүъɼʰɊkƔŸ࡬̡˲Ɣٗʲďç̕²бùšƒwħDžV˿Ь˾lNŒͽL΋ʔġȀûĄćÌlBŒ‹ÚOƨŰA’ÏĞ@zxXœvr‚¢bǞªȊ̎ŲżÙŸRÚԤfªxŸ°ǶƲdžxʺ‘Ģlĸޏź̺SìÂŐH¼TĒYČB͂ÖlRp¶ˤEЀ~EɌǑȂRŞ£IJÓ֠ÌŦÌ†h¦Uò·ƶllĀdĶwɖī˜ǗʙƍBʅʗȑ"]],encodeOffsets:[[[24425,36389]],[[27829,36317]],[[23608,37059]],[[28512,36792]],[[26095,37267]],[[27096,37464]],[[27597,37609]],[[26480,37674]],[[27669,37847]],[[25886,37959]],[[26159,37855]],[[25113,38017]],[[26013,38318]],[[26655,38431]],[[25863,38503]],[[24941,38479]],[[27469,38719]],[[21390,38713]],[[25592,38666]],[[21108,39305]],[[26721,39136]],[[21184,39536]],[[25267,39741]],[[23978,39894]],[[27045,40274]],[[20560,40380]],[[26049,40943]],[[25369,41590]],[[26664,41705]]]},properties:{name:"Greece",childNum:29}},{geometry:{type:"Polygon",coordinates:["@@@ƢЎĝǯ"],encodeOffsets:[[-63196,12301]]},properties:{name:"Grenada",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ĩķ΁ĈӪƼ½Ƌ"],["@@ǧàLjĦ`Dž"],["@@ǁwŗǨȴNJΒÛ˫ʝ"],["@@ּřŪǝත̉ԕŮѲ¾ƓÚँƢŎȤϸOяLjϬƸࣚģӆɕ"],["@@ύ`ZĈδħ"],["@@~ɥۇǗ͗ČறÇΘΪ࠸ڬƘ͘Ĺ"],["@@Οò̼Ɯ¤ɍ"],["@@ҥȑխž৔Ô"],["@@Ԟ̷੹‡ƻˊܘö"],["@@х͚Ǡɰʦ։"],["@@ۓĘࢴ‹ȟË"],["@@ࢣėЏŎॾǠјušǟ"],["@@བྷɞѩʸܼˆచǯ¬ͭ"],["@@ↂʭƧ‘ď㞆ƨպʁ᝚ȱಇʹƍʵę̀ī෢Ġᗆ¡ܘʧৄʾ´ĜϽབྷەᰦܦᆦȯ૮͈཈Œຶōࡈȍෑ̳૛ā§ȕቍǃۖūҩƧ೧áଝî؃ȷ঄۩ᅡѧԅߙܰǠ଺ljpŹ׍ľѧÑϘȿ޴ūܜŒÉЙဏŤॅțӏĚΣ÷ؚŋ͞ʩ୒«ԂϱcӝߩŒএʓӫĆҎŽ׬Ģľρώ˶ζ@זέçəݙAͫũ઩ĜX˒͇ɛƾʽ๤ţš̗໳ȉݕňޥ̮ѧƋۿɀؖ˹੩ɏ৩ƶؔƿࡩġǶÏኔˠަ\\ᄄЭɍڣ๳͈ҽҐၷ˓༂ƾƎˍϽȡϜøᗨ׉ѩ̣ÀœIJƸҠžȖߝܣÁ«ͮɇΡ՗\\եǘӹӖ૕̊ঢ়°gÿਫ਼«Čʟࠍțද–΀ćßǑࡃɇfœęࠟțƪŏ̚Ǯ఼Ŷ༦ǵ୐[Cûعŏ_ĝۇ±łůҳEBūݥƭĆāԗɳڇǵᙡͅԳ\\ϗijͷ¸Ġő̱³ଉ͂Ǝϑ࠯̩࢕ࠅࠫͻ֭džȦʧؽʹŭƪśǻͭæ̅Ƿқo֨֞݅æͼĽ̛͙͉ĘˈʡခŽԄǹ̟ǕˇýۥªIJțʼ ЊλԋɏڣÜҦƫΎVÊͿȋLJɯg˷ϝϥPˣŜҒȣɱȡࢃaڐŵƙΓDzʝЍŝȨċ̵܍˝ȱ݅Ò׬ǡúˣǓŏՓĈʠƕȽ—ǭ`¨Ā̅Eǂ̐͛ɍ١ƼXƜͤîȀǨԽȁ֓ƞăƊɬψࡇ͵ળ¡ΊȔԭN•ƶгṷ́ˀûʦҪDŽڛåÐȠٟȬjȾъ˔ԅȇ࣡ېß̪ઌǪȏK¦Ė७ǭĻĐʮɒތȖМȷĥɎͩÀϋκȪ͹нƙ‡Ŋ֕ґ˱޾ɹƤޘ͔ѸÀՋ«۟ɗǭňοHþ͐ʉÒᆖ۪ົ֯х¿Ķє͊Ƭն°ࢳ˜υǰðʄॎ˦ႬȅҵƔǞĨڝÍӣĊଢ଼ʋӪք଺ų˖¸ȸʮࠧǕহǛ˂κĈࠚƣ֬ŰŚŒχ݃͜ڌ–ٻڈڰ࿳œ٥Ȳ࠭Ĵѡɺ̬ĶନÍྰ͕Ǭ¬օƞÈɞѣƂيQ̛İോ¾ĬɸऺǶඛýʜȔэҲɳ™ϘϿҕlj´Ǘ؍ùݽƼɺҶЎȶحƩ¯ĸ˺®ʳČ֪IJǀʨ˭Ťǹç͉Ú͊ˌۅȚɠǜ̶͗ࡋGѲĀUǮϲĈኻۜˈźɡƶᖟЀᄓǎҩœϵČࢿƽыĞӷċѷØˊȣఉø૭˨଴ɄಷîiɈޙƗѹǨɺŬཔj۾Ƹุĉʩʹ࠹Ɓ޷àؕœহȜΞŢঁyಝ͌̄ʎےŢᖂȞԮƲŖࢄ۞ԨĊᖏmǧʶᒈԬژ¶׌Ɨŀˢ௾íӾ؆ಾ|ᖖѫᕭզ◴݆̂ƿĬѕ֚҄ᅈΩ଒p୧ϸݲö⪴׉ЮӴૉ͈ᶰÇюÎ♣ĠǤي፾ȸ෬ƍߌȚᇚ˫ӽ̺ࡶń㹪Ê"]],encodeOffsets:[[[-47377,62241]],[[-37920,67105]],[[-52237,71222]],[[-53996,71624]],[[-52915,72556]],[[-26042,72624]],[[-54820,72746]],[[-56337,74539]],[[-18432,77218]],[[-19028,77868]],[[-73387,79182]],[[-18035,81742]],[[-45941,84054]],[[-30671,85571]]]},properties:{name:"Greenland",childNum:14}},{geometry:{type:"Polygon",coordinates:["@@˶DʔŁRƾ̮ȅ—…ÿáˍɉɷǩƳãáǧºǑQ¿īÝÛĩǯsvůс˳ŸƕїNJ٩¼ܛҲÜΘ^Žœtr ĥȺĖƦŀǪȄ̮ʬBϢ@ɶ@ƴ@ÚDYøTĊ‚ø@’­¤ĕz·–@°sȧÞɟƆη͚ǶAǠCHӂໞAÑྩ"],encodeOffsets:[[-91374,16270]]},properties:{name:"Guatemala",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ýƚȐƾƛǗʻ"],encodeOffsets:[[148216,13578]]},properties:{name:"Guam",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ĽdzĠŝķƧ͋{ǥƛÒŷǩӇ΂ש̀aĘѱвۇȆāУsËh¯ÎuRǗ§ā¯óœ›¡£mǛG߁ğg©Ņʱʑµ_¡ġ—KŻơG›ƒµ…Ʀʯ˖ŋ CĄÓ‚_vB̼œöĕ˞Šݮʬ̄Mx¿ÀıǢłϗƲƄҤŵƀċhÿ·ĽWlj„÷gՓפ]‚ôĢà䯜€’oƞB¾}ÈmÚ¶ĚάÖ̮Ƞ~øG–g`ĵbµm»X¥²í˘ǤɸИȬ–Ğt~Į´d¶ƻȲۈЋׄ֩~̟ljխɒϮδÅϊϡˀŹ„Չ"],encodeOffsets:[[-58567,5682]]},properties:{name:"Guyana",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ȯŸǵǪӰŗʼnq"],encodeOffsets:[[75477,-54412]]},properties:{name:"Heard I. and McDonald Is.",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ݷȱĝxǷŲĽµ×ƛűɩѳϟgMƒOǓĸ³îʓɽ]țhĽWsaW¡PÁ„ȓhÿeyÁIå[›—ùǹ¥_ɹYŵ̾˙ž‚ĺÈʖazϤ÷Jĉ_ƇĞʡŗ…F]¨MºO^ԝ͢ȯœLjLjRÀ¹ǒâǨƴäɸǪˎɊĀ☆ĆyɎƮ౤ąΞƞ¥ÐфĽєøΐƿʤjиΕǩĪřw`ûƘMƖƣɚDůŬɶŇâƉĉ̥ɍ`Ĺĉč"],encodeOffsets:[[-85642,15234]]},properties:{name:"Honduras",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ŘËͳøɜk"],["@@Ҍá˱mǙĐ"],["@@٦˱æŃ׋̪ٹǾԺı"],["@@ʛ`•ĎϊÓė™"],["@@Æ×ƕĤЋ"],["@@ƧȬhɞƀщ"],["@@̟ĒĶŪȪȻ"],["@@ÇąȌˏ¹īͪƿ˱Ù±ɣƝ\\ƣǎ܋@ݧǘ͙»ȥǧɝƲȫU©΍̮ȵǔͫࠊ֭̈́σÅËֵϢёŶ΃oڥոÁì̊`Ы˦ŁВʯǼȥ’ϝп˿ը̤­Ю®¶pŢŶpK¶áŦÿƊlƀ£ŌSĈvYˆ‡OŽÐäÝÖ̀ňpĺQÄͼI€b‚кǮǸŸĚUöq®]ƮËļÝτ˽иǥҨ‹ƨ˜€bĎĂȬr"]],encodeOffsets:[[[18031,43796]],[[17051,44029]],[[18092,43927]],[[17189,44310]],[[15741,45030]],[[14836,45732]],[[15166,46057]],[[19360,47035]]]},properties:{name:"Croatia",childNum:8}},{geometry:{type:"MultiPolygon",coordinates:[["@@cÏɋêǗƎЈƧ"],["@@ƇǫÖŋN«aÏĻijĵG[W¼ïÊăĢÙtÏșíâýÊĩ˜ۇÝёČ̥½řůӽ΄úƦƆŽூȑΎŞ|ĎϵͬĜ̴؟ʀȂƊӦdΖſ͖¡²ll}žǛ‡ǛČ÷"]],encodeOffsets:[[[-74551,19229]],[[-73366,19657]]]},properties:{name:"Haiti",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@ĺDˢɯƾqĜƍ݃χ݅ਇ̣‰ūħė„ȑƒqd£`ȑh÷_ȗpljėًſčāaƧ—ҧŒзǦσ˾ĽÞƫÌ­^ț̜DžL̢ŦUͦȞŖɉŜժ„äʤԬȣ߲dÊǴ۬Ȉ˚Û͐ŰƀȚ߲tˆǵ̪Ê"],encodeOffsets:[[22663,49568]]},properties:{name:"Hungary",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ĹVhŘѴʌ ƧЁɑ"],["@@ƭ†ʚĠīť"],["@@ùŽŐľ•Ƌ"],["@@ٮө¢ãœƙɑóʙĂҙΨџÊŃǀ˲ŶլÈÐÕ"],["@@՟՗֯ǕţÞĤLjŃĤĶ̒˞ɰȸñƌȨВȺ^ġDzV£ŭŝoĜʣ"],["@@Ұ䞤č"],["@@õ•ĺŜŤwƧÍ"],["@@áJ¾ʴĢ÷ýȅ"],["@@ʗ“NJƈĴƒeï"],["@@ŃǧÔÅ̅u͏ŀȂ˜_ʶ˺Ȝˊōßɷ"],["@@ŝǝǿêʾȶ Ł"],["@@̹ʙ˕ŠȸǪí–͔úŲé"],["@@˧âȞŖĊǷ"],["@@ÅƺƤˆĝȁ"],["@@Ќæŭفõ¦ȜŪ–"],["@@ʞÑăíǟÆFú"],["@@्ʋȣìïďʗeСŐ՟±ďƈÈɺآƮۮ˱Ѭĺ̚ơѸ˘ÎèƉŠƄäøȇȉʃ"],["@@ñȶɒƀ˃ǁ"],["@@̴ŒĐőǴİǠ̷͑Éòć̓mċƴǃƓेɑɭþ Њˢƒ͸·ȪʇƎaɠŖΛɀ¹NJ̦xŀǏ"],["@@ɎɃҹω÷ɶωǎũDzЄiǺĸʚõ"],["@@ĿïĕȦǢatœ"],["@@ˡʃγÄȯĉƪ˒Ȩ—ͬŔLjă"],["@@£ĢĖc±ý"],["@@ȩŋիfδېǶńЌ¤Ȁʱϟӟ"],["@@DZDrˀъӔþëûÏg̟ʣ̻"],["@@șîƠZºć"],["@@ş¤ĈƘĩ"],["@@őFOĈŢč"],["@@׽ijͳŶŢƢǚhނNĊñȕŧ"],["@@Ɓfjüʲßƙ"],["@@ŋtŜúOĭ"],["@@ǵ΁ț`b̦ôXãɦΠɁ"],["@@ʘǩ֐Ï̈щ฼Ɓ΄ѰŚWǬɁ̠ҠȵϞƒĠʛŪé@ȻȀėРÇӖú˶ƅmԥǒ̫ૣОӗĹঙĔݹƀ૙ώғŒʏʼn҅ÖՏɄۡĔĈ˓ŀ߉þĬƞĨįƞˀŎZè˸ǦǞـƷȆǎ˞ē"],["@@“ƓSׄ¨ѯ"],["@@ŏPĔÞ|í"],["@@ٽ§ʲƪȳ"],["@@ӵɯʉɬŮ®”ƪřŀŖIȖʈƨɻ"],["@@åïʘ֜eɏNj˛"],["@@ɍƀɖ™Gĥ"],["@@™ă‘ĆìA"],["@@ȟƴĘƺņñBɻ"],["@@åıɿÊĨɀwʬ˪۸˅ūǡ€ŋ"],["@@`ɫşØé͝ǸǍǿÕſɟƕP·ƦưɺòӼȆȚĘƏ"],["@@¨­ʧǂɀœ"],["@@ƕĩęǔȲ‚~ī"],["@@Ɲ«ºļĤÏ"],["@@ʡą«ÒͺƸ«ƃ"],["@@‰Ɵ½ĈĈØ"],["@@ȳŝJҦǦǦ„ԭ"],["@@̮ʭFȯҙDžЅȀƃƸ‚ˆٮf"],["@@ťÔƘAqÑ"],["@@ՀĽdžšʒσ¯ʋ߯Ҁ˧C›ĿԕȀ̅ǵ͑ʔȗ˵qɲ˒̚ږŒƸĕʺŮɪã"],["@@’ũɕ˼KǜɌǹ{Ƴ"],["@@ŷȕǓŠȱϧʐĒ̖ƞŠ͆ƕÚŏéƗ"],["@@ǁáwʜǺǹ"],["@@ȣð‡Țɬˉ"],["@@lj̀ºĐŐЏ"],["@@ʶƒܑįûĆ՘®"],["@@ÆɽƛÛѕƲԬƨ"],["@@ȀMłƑݫŅóŬôǘҪ"],["@@சǧ֑āهʪ"],["@@ī•ƒĀŰ©"],["@@ːڛϠğǧˑ²Ʃ֙ȺdzզշŜ˜Ͼł¢ĬǡhǔDŽzŖƏ"],["@@ĩpžƮÌǝ"],["@@ӹÉƕŜɄɎь˟"],["@@tǽǔŸĦč‡ġȥVďƭmʾɕʃážĆɀʰV"],["@@ȹąZʖɤ­ƒš"],["@@ēD…Ŕƚ¯ç"],["@@˯ƘȍΌØȒɎbˬ֣ēų"],["@@ǿ¼ğʞ̠–ͯ"],["@@є×М̱ǯĵȽŠƙ̘č¹əȘ"],["@@ťh¬ŢúƉ"],["@@Ɖ–ŴÎVģ"],["@@băȏoǮĴ"],["@@@NjDᲗħͥĨƓBᇳࠉޢĪɮƳƫҥóŗǨ̝ɋǖմ˹˰ΰ¼˥°ȵǚɜàΧўţͨàĘƥŠŞŎɃ…uȴٿѨ։ń՛ʎڅäѡ̺xľưbԵOijŲơkʝ˴ƎΦş¡ɷœŸįХŷƍ˫JƇ̔ĬŸıɎٽьɔĞдğϺ̐ђƽ®ƤŶºħĈŊLj߫Ɲս~ʅɄýβ՗ƖʡǐɒÈʺҠŸӸ̈ϴ½ԬʷфeŚđ‘Żǀ̣Ź̝öӳɞѯpɀŨžØͫŢršʧ̪ƅȢp̺̌Ҁ؈ִƘČâ¡ƺֶ̞သܫ۪ćŀƉȎE"],["@@ĮōȑljėǐǼň"],["@@ĬűÝšɴǗij×řİƉ‘LƎƗŤrƒŌÑĤô"],["@@ʼnqNȮƐK“ǯ"],["@@ɳSôŌǀķ"],["@@϶ũÀş˫Ï͏ɲɶɏůċ½ŮśÏˁƂłŘϚÌ"],["@@űAİʲĕȎȆɍíɯ"],["@@ȐęҷĀĄǨȤǍ"],["@@ũP¢ŴĈƃ"],["@@ҋĢ`Țиȕtĥ"],["@@ĝpľší"],["@@ϷƶpĘɲùƖǓ"],["@@Ĭ]×ƧőèþĞ"],["@@ÞƕñǽŗȀƿ‡ĢƔȊˆ"],["@@ŭðo˒ƾƍ_ȳ"],["@@ϚЭģ·ŗ‚ãȦǕĨ˛ДɶĪł×"],["@@PŇЍɸϾů"],["@@ϱѳ֣ƑЧlɥƖ©ιð͗ɓƭϵ¦̟ƬˁɶƝŴˣКіͦĕʼƨԠD¹Ć˼ôǪß°Ň³ȏЋĔշջ͡řǩǝʝb޾ࡻĜʗūΛπϵƄhr˝ŷªԗǙÝʕϗÖďƮŌШ؍Ӓƌ̔CΔơĘȍkͣʁƨُaއšѹŶϏГ\\ȟĭƇêǓʠȠڔ|ШſѬЇqŃŞë֪ʸȨȖҬYѬǘфǠȎŐƱĹٰŦň³ǖĖǦ̚Ѷ˨įɠͰǶÚ˔ëǀƧ܄¥ͶơȔĆܪûԒ͌ΎψƐ\\ļƷ́э"],["@@Vʏǿ³ùʐʤ´"],["@@Ű_ðǮnjĬ¾ȲϺƠ^ϻ͹ȕţ̎Ʒʐ˫ޕɌăƣúҟϔէ͇ǀ̕϶bѼƝ˖ÐȦƯʖǠנ;̘ṷ̋ľŋ@̵̝ˉäƓ"],["@@ȏŢƸa˜Ŀ"],["@@ƃcÝɚ͒ʦòĻÅȿƛƟ"],["@@սʞùƜƮÂѬ̽žŽ"],["@@čiČĨBý"],["@@ËǘŨïÛħ"],["@@CËéĮî¡"],["@@ġŶŐqmŃ"],["@@ūt•ɬǂʟ"],["@@ōƽ¥óƒȢb"],["@@ǹ^ŦĘȭƢȸȠŨșÝʝ"],["@@ğāʾ͗؃ÇʒǑLțɒʼn•œň•·½άяɷʓ৐࢛ϙƗ˵¼ʅȌ¬ǭȁƅȇг·ҹĊϓկϝƣƮ\\ʃБϧŰ@xśřǻɂƅ‰ǯDZ•\\̋ƏƒúLJʧϿਖ਼ӗƗژãėďŒ@Ǯ죯èͅƩāɔɡ§ʹ˂¿ɇdzœƃá˅äΩș‡жŅƘٝƳčÚÎòǑĥŇŊˉÙƇ߸ŗŜpӴǏɜѹǢĨƚɁȺŖΠʿ˚yҴ–ȆƢĴķ[ÆɌʬΪɂĘùōĬɿܐمԄǂתɨŎĜʞʒĶϼPÂŏԮǕɾǖԠdˌѺ™ɪͤɮĉĤŒɖňŌǪRȌ঄ƴžռƒЊƕ"],["@@ĥŒĠǀûðˆǢƐɏĕɍ"],["@@ࢰoלړ¸ˑ஦އږ࠳̪ȭ¹ʜǾ^βӃҘɁ̶ԋբɛqƍϧǗڐʢ˪ȍĪȭ̝ȩoƛĖēÏġʂʻ՞ŷžٿˢɯǍуːȌΨSծ؍Ǜяòǿĉˣ²܅śڷͱɦɣǑωȎœ̻éW٧ۚઙެ·Ҭңδ׃ޚ…˄ҟज՛ܺѕʴӁౚݧдġЦǗňΟԌѱȮܭ܄̹ԺlʀͶšш˃̠Å"]],encodeOffsets:[[[125900,-11171]],[[124809,-10844]],[[126379,-10549]],[[122893,-9599]],[[128070,-9740]],[[118385,-8980]],[[125929,-8750]],[[122332,-8950]],[[126278,-8555]],[[119441,-8820]],[[127270,-8529]],[[126900,-8471]],[[142229,-8589]],[[120378,-8568]],[[127566,-8336]],[[130892,-8293]],[[125730,-8818]],[[134003,-8518]],[[121081,-8517]],[[118219,-8350]],[[132955,-8145]],[[129845,-7851]],[[130478,-7806]],[[141861,-8472]],[[134478,-8191]],[[135150,-7374]],[[131759,-7355]],[[123674,-7289]],[[116577,-7275]],[[118147,-7138]],[[107779,-6799]],[[137766,-6596]],[[109951,-6151]],[[123421,-6449]],[[115425,-5950]],[[135995,-5991]],[[137981,-5843]],[[136117,-6043]],[[104825,-5610]],[[126594,-5398]],[[124972,-5568]],[[125589,-5395]],[[126137,-4660]],[[136777,-4347]],[[126201,-4211]],[[131649,-3671]],[[131355,-3762]],[[119219,-3547]],[[119095,-3960]],[[129906,-3161]],[[109452,-3077]],[[132869,-2934]],[[102836,-3259]],[[110805,-3069]],[[102609,-2806]],[[102240,-2399]],[[129081,-2510]],[[129049,-1832]],[[133482,-1731]],[[127969,-1746]],[[138726,-1630]],[[111568,-1658]],[[108591,-1709]],[[126564,-1745]],[[131229,-1700]],[[126170,-1199]],[[112344,-1209]],[[138205,-1142]],[[101544,-1820]],[[134146,-1347]],[[138633,-667]],[[130356,-799]],[[133762,-541]],[[124790,-416]],[[144357,-2672]],[[106982,-342]],[[130629,-326]],[[130304,-507]],[[106227,-356]],[[133953,-4]],[[100823,-543]],[[107294,-180]],[[105764,555]],[[105501,765]],[[105907,1074]],[[105643,892]],[[106522,1209]],[[107096,1246]],[[104886,1014]],[[99822,1501]],[[104952,1495]],[[127887,1020]],[[104150,2129]],[[130799,869]],[[99671,2126]],[[131537,2102]],[[98779,2417]],[[111501,2976]],[[108299,2932]],[[108837,3233]],[[120483,3360]],[[128674,3519]],[[120714,4287]],[[110916,3779]],[[120397,4271]],[[129861,4131]],[[98809,5355]]]},properties:{name:"Indonesia",childNum:107}},{geometry:{type:"Polygon",coordinates:["@@̽ĥ̤ˬZȅ"],encodeOffsets:[[-4517,55486]]},properties:{name:"Isle of Man",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ʬ@ĤмӼþʜόώeլԟ͚ƺ̃͠đUz­ŽƓ’íȘșKąuū¾DžWǫ̑âʀ˵ɶĉɔÛʄǣaīֶɹĦ­™`·O¹yiŕĿœāŭƛíƃ½ůBėoĻÁϏqėƒĽh‘ƀěĈ³Ā¯¼Mb€n|Î_Ө˃ָϿšP¢r˜^¤YډƨĝƐíƬ`¢[„ÛpßҲůä’^†ÀjĖQǐ»èeɚĪŜÁɂãň¥€£\\€¥юɳĐsɴČâWªŸŽš´‰Ǵœ׎ǵ˄ĶɬǏłÂμ\\Ŭ¯€Zzˆ´ƀ¦ŜGèŸĸįƄS¢ƎԬFĀ‘xAÀ‚`ŒjŶ–ŶèȐï±СbûÊɸŸSeķák—Ĵǵʒũƺ„ɈÏp¹ĐI¬YƮnư~êþИͦıҠdŞÞ|@À¹źIƞ¨ĐP°K¨hֶ“Ӡ£ʨҎϬɢࢎƈՎ̰Ϧ×٢˿áƷfÙǞɵC¡ůdſƎԙ‡ࠩԵšƕRʃ’ċjiF{şɫ˗ʽĩȱŴįǭϯĭƍëŷǿϙ͡ŔȗeŁÜ޳aŸũ£Ŀˋê̝ùųęǥ¯]±léĂçv·ĵ±ƒ[ÐÍ՘w¦đǎy˂ñφǝIÅ\\¥K@óRÿƷǻEȟǕ½įǪÝŋǕӼDŽͲ̈́ŨĴ{Ǿǘ®ĴĠɸBĢp\\ŒêĂΙȎ஽Cб¬ɅÖ«XY€pȊC͎ŵɬĉåmŃɕ‚ɩ̼ÉBfƉ{IɏžƑȐůžˆW®ďęĥƵƛ™ȷ’}̘ɱɢðƁö—[É̙‡į@ëȏ¹ãƒŽKĕǛ]£M‹²ÝÈÃâsĦMƊěŦiæ§V™M›[ĭ[Éō˟ÊĽÀµvȥƢ›€oy˿jǯŊ̛m˳ßBĐʅNjúħƇGΞĉĮµϱś›ƃŦ…ŕǑÒŜϐɇȢǾɅ˯ͧԻƵȷƭĥɓŐͿȋ͗̽ʳŋ †őףȏßHPLjɋŋÉƋɖ€֝с֕۩ำ৑č҉йȗЏPʳӡ˧Ř̓ƹȫ՗łԃÉɟǎؑųȔÿěɾȳħ̵֟כƓ֧Ět¦šUܽѯÇׅ̿äț͢şγÜҷƏȓǵŏэҕʱϝȦљӲȓҤçЎŐ͙êEĥ͖ųƐЅੴٹৠӁྰεӤů˔Ō@Ƈƨ¼òŷ¤ǡ̄ԍᓶĆіřƫĔRȂƦkǗîĵϾȐۼãϐDžɈĤČķSоʐӍ­ƂɴƭH€ƸɌÖՁŒļåċȥɡƢāšǓȩ̿ࠫΕʱDӻ̔ঁ৒æŬȎŵݴʌˀѢųű֥Ʊέöԁ˼ȉ͎̠ɾҕɉÍɔİÒĊnĜbĈAŚCHʨXxh^lNhIz›ˆDŒvìgÈ\\ÌcĬAǬPĬEȸěʘĺLjÌɎÀfQ¯p«äƒ´O¨PŽbææ–h°C¾B~ÙŢL vˆž†wÎÏŔÕƞȍ̢EȲáÁiµGƷtƑǠ¤π…ǜէɌĈ̶ˠʦżȄĂż¤ž¨ƆúîCŠïÀƗĚ¹ÜJʼİ̞Ž˞þfî¸ŊƲƚƐ̎¦°ҾɸВݾάƆÞÌ ¼Qº•ÐbêĢîˤ̼”@ŊÈļÚO†]šýÖbÚºǢY¸ÑDŽ`ª|®æÒĔ¸˨ŠÊ`ĬˆâŜWN"]],encodeOffsets:[[[77130,33061]]]},properties:{name:"India",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@¿µáƠĆŏAƨžƁ"],encodeOffsets:[[74232,-7554]]},properties:{name:"Br. Indian Ocean Ter.",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ˋÄɨt¤÷"],["@@Ňŭˎ࡛λӧŜĉӅñÙøࣽΣ̏¼űϵŽޣġDzǨԃãѬɰدÙδ˖ЗZ„ÒӮšőźɰŦ܊ŎǧÜƹĵحÅϜɆƔɲ̴Ģӫ~ӝƦsŖͬ²Ƴļ˖à@Ø˯_¸Țȣ¼ŠĒౖaßĘЬʚՋ’͘ǪĒɎԜĢRʇ̌ͨ̈Ņɍũ˧˗̡Íƀē̩ƱјɩʂUˊɰ̜̇δ|"]],encodeOffsets:[[[-10186,55208]],[[-6367,55387]]]},properties:{name:"Ireland",childNum:2}},{geometry:{type:"MultiPolygon",coordinates:[["@@ȝȃեĝϜȂIŖѮHû}"],["@@͂|ొٸ˜ʇǽƃǂȅʝƑԄϋɶrüқǰʑ߬Nj͸ͣӰɫ࣒ķೠʸŮ@ȣÝʔ‡±ѴڈńǚʶКɰݠ|ƚƚنƒƈȱނʵҰdТơźɏԞʑɺ˙ٺLþϝ¹ǵČğTȻhÇEƒ‘³Ƌõ‘iΓŇǝ‰gĥã¿S[uTuvańŽȷYƁDZ@͑ôĻ˾é̙̯bťŒͧĴ̍CçƱCğHǻ|Ƒ„Ȣ{˄Ăą¸dzEƅwçȋțȑȡЧщLjǏİķب࠷ܺ́j͵}҇ΐY|Q¼‰œ±HwÁŸRǕQ]±wcƟܙƥÓőĩXʃţ»{ƛuŷamÍ©McT·ĝqʡyë¯MĵÿؽƲŹżġĿߍƜ΅ÃȽŘ௳Ȧʣࡒʵ˞ԡ`ଝՙїLjҕ|࡛ԈǹʘϏǪχʻɤǻԂǏŨRNJǙìsɰЗтćɸѡƛѷʰǒŜȅ†é͕̻ƃ˔™†ēȼ˅ưIѲ˥Z@ͰØǚÜnjīŢĻŸáÀƵʰ™fƏOҩ̰ljĄálƻNgfYª@¸¼ôJ²ŁƼԻҲŪȴéɊ”ĤŘO”ȌȲȘĶªü —ŀşǞÈŲŦŽæ„Vzė¢͡BΏnjķ˺…”©V•D¹¾ʍ֞|ŰȃŨbɴ͇ǔȨΪŵªuϚȽҔ̮œǖ̆Ȗı֎էՔŇ"]],encodeOffsets:[[[57537,27568]],[[47222,39811]]]},properties:{name:"Iran",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@ŗP“ģêɉũȳԼұłƻI±»ó@·Z©heɞyNJăҪ̯ƎPœeƶʯâ¿ļŷĬšÛNj×Ǚ@ͯ˦YJѱˆƯǺ˕ûqċfdzìƅ{Gy˭ĪзąȯϳŗDžÙóƋƍƧ൝Ŋ߉վ෗ਚഃۀğž˻²˗¢ҷèŮĴ›Ĝǥɣ࣊ᇴࢴǪ˸ƆܸµزĶŌ̺êӐјĆhưĸĘĦ†‹ÌSž˜ӪşƊGƪúĐW”gŠƒbŸMųäך‚Ü¢ǢIJÂE¾O†oʎ֝º½–CªU†“ĸ˹ΐNj͢AĘ¡U{åťÇűŠǝ˜ĿkÍûŸķ©ȯȗ“ȋ"],encodeOffsets:[[46733,35404]]},properties:{name:"Iraq",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ߔźѫɋΜėŇɋκpåDZʴÈҤĻƿƏǦˍϏʙ˹H÷ɃϝƣݽťڵʻধŷŋƫקŇಙŲʝŌäIJȥÉуǨఽį¥ɌLjû˔¢،˸ӷÅĒǜ̢Ĥџỵ̈ɚଏ³ǧŀਦƶݬDĦŞؕR֒ɂࢷŐ࠹ơӛİȒø͢ÛȡȨАćˤÐҟČʶ€ɅŘ̀NeƂθǗ̠ššƃƤ”уŤϴ®ՍÔƠúѦBࡨͻ‚ʅʅeѼϧ˚̶̌ÅȺѼ׾˧ĚʶҌĞעϙŽΤ͠]̚ƭͮȨ˄Ý̔бɂʔÜɜQϊʉ"],encodeOffsets:[[-15916,67818]]},properties:{name:"Iceland",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ǷÿGkcȋÉNå¤a–çjģlŅ×¯Ĺ¯ƫ†ȹWŸqsPclMÐlØkÜÉɅŭÏȟӐĤБྣÍßփบĒìDÐƨƎ£¸NPǎʮβীʬOϨ̚œЛŁǷ"],encodeOffsets:[[36647,33521]]},properties:{name:"Israel",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@Бٗǒ͹Ƶ̯ԣĢ̝ʲȥEء͆ѽĬǣȎʤ̨ƚů͜Ƃкǯ૤Ơ͊ŚàÏ"],["@@µċ¯ŮĦ¡"],["@@ã•Īľ…ç"],["@@Ƣ͏ƋșåएыÔ÷ɳˉ‹ȗɼňՒŝàẦɿ̠†ɘ̈Áր΂͚ȫbœ"],["@@rŧʍzɜĮ"],["@@ǰ‡Fgeq˙½¥M}PmlYúLÂǁƘģģýûƸΟ@޵˙¡ǡʢɯɳȷŮлঘշϒݍѾϏՆʻɛ͑ႮܛьηįͱɟĬdz˾Ͽ¼ǹƌɃ™ͿׯӾ̯º͍ҵǕÑ͡Чϻ˩EߥȜӢˌŪ\\ƴѣࢤدȾEȘƳǘΧÍĶŊΓêʻΤթPϩȎ࠱یзĒvŪϫʹNj€˝࠘டЌٕҝљğŨͮˋuΙǔþа̛ȬόƠÊŢ̗̠ȘƺˆkÖoǖ‚֒ĔöȬŴîÈÀԔôǗ̢ƙP_£ÃƨƕÐ`ư̾ĎɶĂ]zBĐƧ¨SºAۨĆl°KĒĽS¢Teŀy¶‰xMˆnÂv®¦^¸LȠÏi¸W´ ŊvSĎAĠOЫÎeĊKÈP€j¾ÐÞĢ’ǂNĂ^ȼWͦĆxOJ[‰ƒ‡—p¥Īċ¾Ù¸µú}ׄċƶ]ŜEǮ‡—[׃ƍćlė"]],encodeOffsets:[[[15951,39138]],[[8683,40006]],[[8485,42025]],[[9864,41864]],[[10645,43887]],[[13744,47322]]]},properties:{name:"Italy",childNum:6}},{geometry:{type:"Polygon",coordinates:["@@ފʱŞȧ˃¡˟ĞùĿƧ€íƑƁIJͿšɵʞʛĪļƈ˾ØԦÃ"],encodeOffsets:[[-79115,18901]]},properties:{name:"Jamaica",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ǻ¯`øǜ‡"],encodeOffsets:[[-2067,50413]]},properties:{name:"Jersey",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ůį…YӱŭɛÇԱŽɹÍɍÃ࡬࠯į³NjāgcacãƗ¿őka׵Ň©…ĥƑīƟNjŝǵŻऱŸnǞВྤĸْiƂdȌHlǸĀӬ̇ϒÏ࿦ࢲɤࣉǦžœěŭij"],encodeOffsets:[[40085,32896]]},properties:{name:"Jordan",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ǩŽúĆƐ«Ÿç"],["@@Ɓƙ©öǾŶQÑ"],["@@ƥS^ŜƈŇ"],["@@͡ǭÁʑų·ɊԌDŽuƂǸHȕ"],["@@ĉNPƜúƩ"],["@@ïåǝĺѴɤȥʷ"],["@@ƩDµļĠÞŪÛiŁ"],["@@õ DŽ͔čγ"],["@@ŝȂ®ãý"],["@@Ĺ\\¤ɺƄh‚Ǜįġ"],["@@ȔōǛŸwƮ"],["@@áĤĦƲÔŝėŷ"],["@@ķŸǘƺßř"],["@@ķQ˜IJàğ"],["@@Ѯ@ƅˡ̠g£ŗżȡ˻Ε˕ࢻɡ‚xƱ΋ȭø׈ķXĉŽ‚͓͙Ĩ­İٖxŴőƘN˒ϐѼţŒ¦Ʀʹ̄ģÓ¤ɇŶD\\ŵʉÎʉǙ¸żŭˮˀǫΉ͔|ĜȠkeĬҐǔĴǚȚĀȦ³Ȇɥ"],["@@Ʈȣ“¶Ô"],["@@ÿlzƨƉ"],["@@ɼ{ĐͿ̣dzǏ̡ȉǜ˛À̅ŵʷѣơ÷ƋTÊŠǷ\\çќ͉÷Ԣ̌ʖ;ɐƋ͜ìlȐ̄ĖΆû"],["@@č»ÍĄƜ‡"],["@@ĝïƁü˲ɀÑɋ"],["@@ıˈÅ˩"],["@@ōqĪö Úŗ"],["@@ijPrȾɈȦ¥ȫĸSȗȳ"],["@@Ȑ‚sֳ̰γưܥÛˋ̇̕á̟̝ÅūǃࢅΫݑʦыΓǷđˡѕɡɪʐəÔƹȽtɓǛŲȋiƍρȽȁ‡̘ЦƹČѽѹթÌЙçǴdžʽ¾ûďtʬý^ɫ̹̈ȳuġѱū΍ԫȃÙȱÈ˙Ϣwʀˆˢ֧Ůб§ɹƿۛȋС±˿àƕУͽǶۓÛ{ʊĬŌ̌j೎ईࢶGৌȬŸȅ̔mȈĔNJƊẘՊՀŪՠЖŞΡͻİɽȖëɤǖڲɢӆՂДɊςڂɚزÏȘɅÆɨ˸ó˴̜ȼÂ̜ʄOĸ̫ǀĢƶ·ł˖ύÇDĪŔɄʖŏ"],["@@¥ĴńˆÝŻ"],["@@ų†¤ĀĐŅ"],["@@Á¿ǒĐŏ"],["@@ݠǁռͲȕ֑ǚ̡аìމ͕ߝijґϳljΗӠύΝǣɵǴȓHŻɟۘЧŵÉ˷àɱʟʥí÷ŤĦ˰ɭ̬rʮӔ̼‘̊ظĻȤČ͘ৠƫ֢ìȶɪĞߒ۵߆ҭ"]],encodeOffsets:[[[126862,24863]],[[127277,25105]],[[128455,25337]],[[131337,27293]],[[132095,28387]],[[132560,28886]],[[133758,30990]],[[134103,31127]],[[133511,33202]],[[133205,33004]],[[131754,33571]],[[132175,33629]],[[132600,34021]],[[132911,34559]],[[134323,34410]],[[135441,34760]],[[132383,34943]],[[137583,35079]],[[137577,35312]],[[138172,35112]],[[132491,35179]],[[136572,37073]],[[141665,38730]],[[144619,42366]],[[142829,43091]],[[144687,46203]],[[144459,46421]],[[147277,45176]]]},properties:{name:"Japan",childNum:28}},{geometry:{type:"Polygon",coordinates:["@@ķȤ›øÍŖøĤ£Dz»Ǣ™ŸƒłEŶRÚ^́Njɉŋĵ½"],encodeOffsets:[[78898,35953]]},properties:{name:"Siachen Glacier",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ǁèĪŨÑŏŪÿ"],["@@ѝ‰ɑѩڥťȉЁŌ։ƟDžחȝijŢճCࠣǺ׷೹ʠƝ÷ʣɋĀˑ·Ʌǂ൏˽ƿĻԢƙŃԯβ޻ͩıŰƛ˯śNқśĨűĢ㚽vȍƴĀbᅛǔ˹™řUӝTûR§GěđՓØ۳˰˕ĝˣʼnęʥyğÒƹåVă¢ƒŒΫ´ďÞǭ’ɣâџÄȷ¯û`Ɠ£̧ͥ®ûທەӍңWɇɿ„ȳźÆȂƩƘਏcǯۆЩVúࠢʟħʳζӹͼϳƍਡÞ৻ŗࠛݸঊᓡһBᶡҗsӣ֚؝̶ࣃƿҿ̯ĒࠖוĠʁʐˏ`LʶЃװнŐáŖƂƌ॒ý҅͠΀ξຈuΩȮ̤ԴÅ֐ӱŔ́Ƌ߭ʀકѝҏÛīƳׅɦbŶͶdڕ޸ֻĄǃÁȑаͻư–ͤˢ̂ȕǼòˤҒ֊ɶjՊѩΤÐőֺזȪƦȚؼǦҠτ̶çƲƟ݀Ƞ̐ȑ٤@ڪχΒщòЎ࢚έڲξѨžβƧͮǞѨwѲ̳ӎ×ÐŅʐöȸɦ̮ƝѤbϔƒƔ϶ࣹ˜ιʂ߸ͺȃ˶ɰʠ࢈„ΡȈϯº~ƄʲÞұĊɄͮזÓᒂπՄ™͜ʄᖮ̔¨Ƹ٪Ȕ৤ȏҲŤϖץý͗ފMƴĶɖ͑ƨNJԜƩМîͿ˭ĎɓϞƠвōČƆ٦ȺǼǐ୴̒ƵʟȝNÂŇୀهπƞrȦʌĢͤđ±ȇˈWàǻࡸWɤƒԄĐӴȁ͆҉֖ƫȲϏߖĭдɸ£ǵגБ"]],encodeOffsets:[[[51389,45932]],[[89419,50264]]]},properties:{name:"Kazakhstan",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@Κi²ƿk§mŽNţɒ˷ݒ³ȾƁڒяŢćŜ}Ȑ[ƀIݘťƎĸŐƪªĆޢΠɌǹǚħŶDĠdɌ`ŬAɩ͙ɭ͛̓͗^ᶻɪ̋ƬȕĂĻVĹɟȿ̓áPȷɇɧΟůęҿɉ˛̵ݵɥǷഩ৐ŠϞḭ႘’নǾδɀɚÒƦˈǞƬЌBŤYǚå̘nÀϩָ“ǎO°˜njGœ›”Ł”ďäj´­hſ˦ǜǘǠǜɔɊȨȠǦǞƸƲ¶Ņ"],encodeOffsets:[[36174,5494]]},properties:{name:"Kenya",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@·ƭ鬿¨•”ɛןŪȓ²\\Ú[zƒl֝ǫʡNJৡ¿«ʪ†úz¨¸‹šTIÒE~мƴՐȓ͢ɾ˂‚͜œςʌɐWZŴǞ©ѺʬЉ”ʛƤÍGåsuXKþa°£\\ÁmÿnãPiĮÅLJ^³t‰ôwO‡}Hŕ»¹ˆWǥ_Yʁ|ȿÔŃƨҫƞ֨ϬƦ ǒîHpgjç˜āˆ³ec­ų̈ͦƔ¤ü_ȸ°Ͷ½ĪEɤãǬĒÝά³„‹Ą¡æUÑƺzĠĚʦˤŊ˖Ğ۴˯Ք×ĜǍHüQӞSŘV˼šᅜǓÜġþ»Ôµ¼ÁвÏŲġŜħŒʼnWaeUʳcÍg׹࡯˵Ǘčč•ãa÷ȇǥƕsšJăřԁ á_ë•īƏ¡i‹›íćŅë¹Ý»â͗ŅǍFĹˎ…DɽŭʼnuęGśšÃÅ|ċΙLJƙ›Ɓcÿ«Ã¯ďy£iyH‹˜£‚ěOy…›¥›ěuë[ƉXéc§}YϿr","@@ćXÍ`]@LgÐÓ¬Gø‹|","@@nƀů€³ÎeF›ÁìăAaå¬SüC¨R"],encodeOffsets:[[74384,40332],[72361,40812],[72916,40850]]},properties:{name:"Kyrgyzstan",childNum:3}},{geometry:{type:"Polygon",coordinates:["@@ұȲʃđŸĮƴȆǃɎƭȍǛOwҠƩ˂]ÉǓ͐f˲ɋȴƍݞǮt̨ҪʒǐೢĄʜǛ¬®˜²\\TFwl¹Ž·ĖùƴžǪÏüĝÖ«ƌE¶ņyàûŖsä|\\Ƃ`t`†ô˜SòWü¼°Â|{„™ˆÔ«ž«ŠiĀ^rC°ÂŒ†‚S BƸƨô‹†PĖŢƿӟɰׁʼn΁€֓ħĕƱšљ˙ʉ}]ɗͣÒŽĻJ˹ʰɍFȱʻÎćł̋ùęɧÈBǭǑƕΣĻ"],encodeOffsets:[[106933,10662]]},properties:{name:"Cambodia",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ƔĭͷƌŤ¯ÒĊÝâͳiĥ"],["@@ÄŃőÞΦ"]],encodeOffsets:[[[-161118,1901]],[[-163163,4018]]]},properties:{name:"Kiribati",childNum:2}},{geometry:{type:"MultiPolygon",coordinates:[["@@ƉöƠŰӂ°yƣҝı"],["@@ģÖȆĎġƣ"],["@@ƑŘÒ ĀƷ"],["@@UćƳv“ŞȞË"],["@@ÿ½ƁňƮŤÔǭ"],["@@IōýfWǘĠï"],["@@࢚ೃ]ࡍƚCŹҫ˽̿ӅkÉȗ΁Ŷ˓ÉBȝʽĐÚǓŻƋŵêÖǬ̋ˇţÖȇǕɣ̠ɖrÌńơAŇˤ˔ΖĿÜɞȌdzʜ«ѸʳCiä˜Ȣʢ·òĽĘĪȗɊĥӴϦфߖr˰ˆ"]],encodeOffsets:[[[129359,34021]],[[129264,35196]],[[129201,35565]],[[131140,35642]],[[131831,35634]],[[129558,38643]],[[131456,39551]]]},properties:{name:"Korea",childNum:7}},{geometry:{type:"MultiPolygon",coordinates:[["@@āYĉǀĔưƎǑÕƃ"],["@@٫ϨݵĚƌƎÚôŘdžȰϴиĆĠiȎÿvŭŚəƣšȹȉˢ͢ڿ"]],encodeOffsets:[[[49434,30336]],[[49606,29228]]]},properties:{name:"Kuwait",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@ϤЋâȓÞD‚€xödRŒŁĉΑ‚ÁȄʻĚ©Ɇ»ƠéϺȾżýȠƣ§û­™‘™rcĖU収J‘`ÁlgŲE”ƒ’ñAÃħĩYÉ·çŽŕ•OʉØǓMEe{ŽçXå‡¿ă¯‰sI‡੊ջA…µĵxù̀Ɂ¼ÝÎÿĒȷˆ˓ɚǕÄÕþšÜ£pÝP±ZƛĢƃꑪŽ”ˆfU–ıŽ™ϸʹ}Ɵéo‰ĪƷ¸·Ȏƙ¶å€¯gřх½ÙÝrÃj™U­­“§ď…ŒƷƧŸAT…­ÁqDÿ]‰j¬Ó¬Çއvƒš{|ɵđ…ós_Ɓ_{[tãþŕxßµŅƋFÕ¬ûĞǩÐƳĕú¸mºCx¼lĊ¤ä°®¸l¼tɆpöYĠ—ð@ňŀȚpĈDÒe˜ȉŊNƄÙ¦Ƴ²ďÊȓʲËƴMȤ`NJ´ȊÛƊʽȦėİŃƢŭȒĉǧoęlƍÆšŠķJß]‹‡E…€…auÁg§‹µë‘ğȳé÷­•‘JygK™`eĀŽÿhę¾ǡƂŸ“ñóӇ³f™óŧĻËQQšÿȷȁ¿eǑĔȢҺMŦñĶEˆȪ҈õ̎pƆQ¾חJīǠĺΠǝǪċŸßÿsXPºN²°ǼÆŠÜÆèzƂB¶ˆIhËJwŽ^ÐƔɒ͆Ǽ¸Č¶œÅQÃZ­pu† ĊFƌëpN²¢bPÝĒrʔGƠM¤DZژnªªªŔŠr€RlIæđƸ¨ÈuŠƒ"],encodeOffsets:[[104579,22917]]},properties:{name:"Lao PDR",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ϧ̙ʫPҐ঒ˠ͌΄z¯ƃƦÉäǯʳʝòï͇ñ¤ƕƓŹ"],encodeOffsets:[[36730,34235]]},properties:{name:"Lebanon",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@àūìЭɛίʨƟʲƒĀ§òǑÒijĀWƴǰʓƻՑV˿|ȅ׵Ȫܻ϶१ࡰ࡝ԢǹȀȪ˜͞ʲȘȄÞʾ®°ƂÀÜʠ¨Hð€ê÷ʂĜɜLJŰգÿʍ̄ǗȒžȘΨƢʼn"],encodeOffsets:[[-8690,7740]]},properties:{name:"Liberia",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ʡˏĞտɏБɶࡥ@᳿@᳽Aေ࠽M@нủཤ↏Ⴒࡉϕٛ̓؟Ҽౙ˴ϯڞۑȦʑÅşĘɉخҫؠšɢ͢ʠŕךƘϤġୢе߀ǬĪ͂ƄŒŽņżƀǠďֲƈȆǜ¨ŐnjǾŶƮüƎìDŽöŮÌ~ºCªãİ@ŞLĬP̌ǼŸÁƀsϼȟЊµѾĨཤѯѼ߷ᅀн۶їϢűӸȈͰЌƻܖǐʹо̦ࡠ̚Ҩeݺʥ`ʋƲı۾ǡؾsɮˡ"],encodeOffsets:[[25755,32415]]},properties:{name:"Libya",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@³ĕķŰƒȒZɫ"],encodeOffsets:[[-62356,14154]]},properties:{name:"Saint Lucia",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@|ÙſŊń¯"],["@@ɪaϬίѠܣŪצʃϞܟY͙ȋЍލϑϧ~ƟŦȣ֪ũ଒ŠĦ†ɵŪ݌ƜʾY̰˼ą͏ƚÁƎ"]],encodeOffsets:[[[81792,9268]],[[81902,10049]]]},properties:{name:"Sri Lanka",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@ɉkɛ̓Ñęʭ€͝˒ƛ˴ŗˆȦĚψӢȊÈŀĀŰàȪðĤl–Z֨ёîȕ‹Ĺ±Ŀŵő™ǿϛǧ"],encodeOffsets:[[29335,-30849]]},properties:{name:"Lesotho",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@µPǸˤƁ˳"],["@@و~’™xʁßɹÅkƩX™u‰ĵkoϙçåx~Ս×jǠë¶ñ’ĥ”éd›JwšfépÏLµïŖHЊʸɏǀгJ۱ǚDdžƧ̞OǮO ɦIJ˶ńβüڔUþ_Ú³ÜN܊ަđڂŒƖǓԀăްοC›qÛ¡ĉ¥ÛW{ŽqƼWâY`iƥţʹR“]Ùķç“Ň_ėwŗǛTŅMu‘yÃÙ«éiTiŪeÀĥlj‘"]],encodeOffsets:[[[21461,56606]],[[26187,55440]]]},properties:{name:"Lithuania",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@ţ̃ƍž½[}¿Q©R}nyZÝ`…„ƒɼš–|¨¦ÐĠîĨYjNEMïz»È·ÊyǸõ"],encodeOffsets:[[6643,50994]]},properties:{name:"Luxembourg",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ӑ́ѱ‚ϫƍޯπӿĄƕǔځőʵÆԯŒÛ‰ÝMƕÔړV̓åÝU˵Ńɥıքغۚź؞Փ̢ıؠɼ¹Զ’–ոžƌ­͘õ՜ˍȠÏθàȄÏŞYŤCÎÿɐħ‚oTO«LJ̋Ɩl–[šĥĬşĄ¯P‡¸ĻnÑT±­į"],encodeOffsets:[[28824,57491]]},properties:{name:"Latvia",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@řŰƒ࢖Ɨ˲ϩ̦Տۄ̥Ęl†Ǩþ®_˞@˒Ěڔ˫êFמƵTЋːǓĮ˟ŮåƄ¯ÆĕOċUïǨī±Ǔc“S͇ĔŹZå÷gFGł]f‘FƿË…F¿\\ÕÀĥ…£qÝĉÑġ•Sí½·ėµÏÏNŭǁg›]«ƒ"],encodeOffsets:[[28890,46542]]},properties:{name:"Moldova",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ĥƷǘ͠ñǧ"],["@@ʼnkkŀIJÀ„Ɠ"],["@@Ͱ՝ʢඇȼչɱәǁƄŃ̂ȓÃƦ߷Ó˟ˉΧzփīο஭₵́గ͋ލϗ̥Ӎãճ˩ʫOছӚ̫אª٪ϧ६tϜǰӜʤƪԖ੎šдǭ̔KˬNjϞ»ݬϊׄ°Тζ˜˄ȊĴïɌšĐƮϪÜȰƽËǰŦǚϼʚƂǷMʆɔ͒Ħ¬\\ʝʞ̺dž‡LJʬȈΆĥź¶ŨĊÈǺĻҔϞļάŏ̲Ū‚ɲ̠˨̑"]],encodeOffsets:[[[51135,-17308]],[[49503,-13684]],[[50728,-12730]]]},properties:{name:"Madagascar",childNum:3}},{geometry:{type:"MultiPolygon",coordinates:[["@@ōAɼìŭé"],["@@ƾǸöƩɳ"],["@@ĕ¥ŘŘñ"],["@@zĥƉdžŐß"],["@@ȩȴŘи‡ύŚʝ"],["@@Ŀƻ–Ǥêg"],["@@Ƶ†ĴɞÂʣ"],["@@Ûȣȡàú̚ŜŒèȡ"],["@@˹Ɋùɠ͖ɩžȿ"],["@@ѫ೑ƥཉâͻϖҕÿʓtʚ̵Ϯӊહؘ܇Ɣѵјҍţ^ʚŇÿÞҎÉ͒ƽ˶̇ނɜ֘ŽόǨϼ”¼ƿ͊ÓɒƘËɶÿUזϲž͆ǜǼŜࣀ҄ɠଔʜϬ†َƁÀČƱxˬfǰƝªɩŻ̩еұi̳ȷȋ˜éȄ|ȟșFÿż|ɕۻĵƟƣɂr˄ɛ̯ȑuʃЗ˝LyſໝBGӁǟDǵBθ͙ɠƅ¨ÝtÇ@¯¸•Ėy®£@‘÷SĉZ÷ÙCƳ@ɵ@ϡ@ʫAȃ̭ĿǩĕƥĦȹqŸ›s]ÛΗඳ౐ϩȚ©·ΦǧևƶØĪǟyËŎƋšȆË˭࣡Пԁ„̓ƸӍ¶ٟ˴ȯȖޭƺঁКْ࣏ٿĔدɚЃцࡵИҗ֖ƿΆΆnjÇƦƹ²ɲʼz̸ȇņǽ̴H˶ūʨ॥ੈۣӺȨĥ^ňρłˣϼȖ]թˈùżȭ³ŤɆʻšǁŔ‘ʲȎɮê«ƅʀǧƪɫOǃ̈́ηźǷʾÀˎӻĔ࢑ࢪݫൎXѺӝƖŕDzǁÒǛĹڅͦŦɇýЫ˨॓ڜջɌχʚŅĦʉȈóŘԉͼʩϼ܃ƎćăʤȎƟɺޗԖޟxѵʖȭÂȪʀƑ̆љɌƳÙˏѕɟ̙װ૏ߜij[ɩʢF؜ʵբե̴œ̦ĭޞÍȱȶԓɄāǴϡʰ—Ěϼ·ɨöCąȜčõȴě^Ǿаݛިإͼ͙ࢢȟƔ‹Ȝˡ̦¹ƜĐĮȑŬɽҊ፺ƴġǧẘষᛠJFϚ๠WʢˉচگЌ߿ͦʓߊ͙ɶǾɸҊ̄ĴۢāּԁϪܕڔٻ¤Э̊ԡผәȖø"]],encodeOffsets:[[[-93884,19126]],[[-89026,20791]],[[-109058,22130]],[[-113220,25604]],[[-114746,25135]],[[-113766,26646]],[[-117934,28744]],[[-114895,29702]],[[-115871,29750]],[[-99477,26585]]]},properties:{name:"Mexico",childNum:10}},{geometry:{type:"Polygon",coordinates:["@@аˏƖɇó͹ōI·Źķġkʹ’DžwǵƱŷ¯©wԣeɉàȃ̂ÞԎƆ@¬ǔʂĎȐÑĒĶƠxB@Ɇ²ѼV"],encodeOffsets:[[22881,43330]]},properties:{name:"Macedonia",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@Nᅫħ՛ɹտ˕ǿ_ŃύÒ·ïෛÍ̑ʑؗÏϟŮѱWʏȑޣ̧ŝʍЉºʋɷÝʫʡV­ͅȍćΛȀǟăƫƿĐ˙ɇķª˭ɩɗӵȻŽϝȫ˩ƒԭ\\řMų™©…W¡ŃĥéNķºEd¤úD~¹ˌțƁçtõÐmoS±KÅnĵo—ɏMÇǗ̱ǔɵòˡɝaƆɓƐÏъˡfɤ̜ΡʴHȾȍЖ̏ÀŒǫͫȍѩƶιˁȉʴ̹DžǓƸĨǦAҌȵάǑ­ȇˊĀȰ·˦ǫɄ«̎ƨÁpjºɘԶìòƤŀ WюЋɄɬي£жîAĮl¢Ú°`ŵ–oẀKŸڊűƆijńyȬyȾyȾyȼíظǙฮ̵᨜íظ³к{ȾuȒʴ@ˠ@ˌBی@ᝀ༷᣾ၭjʅϐəØƩௐѹŀσŕʵȤĭܺƀ"],encodeOffsets:[[4330,19603]]},properties:{name:"Mali",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ʼníƀǸĿ"],encodeOffsets:[[14916,36714]]},properties:{name:"Malta",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ñƤƤğı"],["@@¾dzDžŬňÈ"],["@@sǥÿz·ȌƬŸ"],["@@¥ưŦŅÿ©"],["@@ÁģÁÊńš"],["@@žĽũřC˼Đã"],["@@KƏ™ɤ¦ē"],["@@ÑHĀĢmĩ"],["@@ÅćoŪǴDzĽɓ"],["@@⬾ǘ„Ƀ"],["@@ǟƸɎC­Ƴ"],["@@Țʼn™ąũKĥƚÐÂ"],["@@lřčǒâ·"],["@@ZăĝɐĄƋ"],["@@·ċͅǻõljŸi}]ÏxÌIJgµ‡ƁAçyÛÅÅş¯ǻM±ijÀ£ŠÃRƛĉɗŒxdzΉ§ƃ˛қë̙¼ǕʏÑܹ̹ÏɒȑØб؜ۑȆթƦò¬ÅÏƝȍŋ‡ֵ̭ƏVȑ̲ԭӊե[ֻʀЛǮ٣Υ֧εύ¯ЃŝŽćբǮʼÈԖŔňȫf¼ФąjàĒđۂ̿ی§˧ÆUϖDžЮĠ@ǧǦďࡢŁŨŢҤ̍ƧӔ̉ʲ¶̵ťˏ˫ǣȯɚŖ˕ҽɳ̽ϑó„ž˺ƛɫȟO¥̬șɹ–ԜɗΗǽß̬ಬΙ঎ÚRƧŸqͨĭ͙ȉńdz˾˨ŋƤǞ͗ˮĄŘϩƂĵDZŅǼÆʬȧǙÀƎŽȈYɣͱиŧфŶŬʨőƊUЈOŽĪź‚B¦wnjďĚǦúŴé̞ŀˌŪ¤b ޴łÛȘf͢œȀϚìŸĮƎǮϰųİĪȲ˘ʾpŤàؐ°E|kjČQʄŢƖࠪԶԚˆƀƍŰcD¢ǝɶeÚâƸò¾ʚȆ“ĖjŎ„ŠÚČĚƀ¾Nϴ˥ȤՕżĚǖëôڋ­ԅķĭüǫ˓ɷDž_ŏɹDž“ç͍Żā©ʃƪəťˋծǚԼVƃǻžɽ€ηҰĹöğ˃۫،ćpɧǨɷϨQЌʄºƿ"]],encodeOffsets:[[[100539,10172]],[[100567,11216]],[[100920,12027]],[[100881,12191]],[[100420,12688]],[[100776,12901]],[[100675,13414]],[[97081,16199]],[[96745,16329]],[[99917,16644]],[[95940,19133]],[[95964,20028]],[[95736,20370]],[[95243,20403]],[[103567,22086]]]},properties:{name:"Myanmar",childNum:15}},{geometry:{type:"Polygon",coordinates:["@@Ϡʉ֢˯ʑÉTdzɳÑőŸ̽ϥ¾ʭݿ׈ĠæáŖmLjb|z^Ŕ`CƬĚÚ¬ĐÀìMš­¢NTÄąŞV~p`®Sª]„TªP|Crë"],encodeOffsets:[[19680,44493]]},properties:{name:"Montenegro",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ܷ˵ԛӉߧˋēcշkџ€୵ƅݷʛҭȇįƒå×Å¡ËiНÂ@ȀNjʵ£ʉ՛ɊлðΗÆƷ¸ˁʆåpé^͹ZӕÆε®đNџğ቙ȆۏÍѳҲ˫֬ǙðrȨՙÖ৑ԀؓúǫqŽCɁ„ϏP҅Šơkǹˢ˸іIÎ£Ô‰ĀØВÙŔ“ÒÏ~ëfǿʀÑȂßþa¶clĹtóšÙŎÍR¡•ái­FǻƬçrγuÛ¢­áZſÌę¦QĈ¥ÈēhēÌˣêäŸȓìõøŊĴ³äRŠUžĸD¬n”„òŠÞǐφ†ǖ‹‚âŠXžroŽUĐzÐ~n”‚Ÿ_â¤ĖØdSƼΆdžԐňºŒž ɘĠDzŒÈV’NØC‚®̜ƠʦCôRƎƎÒ»ǚī°I¶x’ÌÞVîWƌƣ॰¡Ĕ˫ɔǕ¼H˜`Dz@ƴĝΊoҘòȾć֞eȈŵŶVȖƜΐĒȺʎ|ȚœˆÇˆ£”ǡ˸ɸоҌˊɆˈࡺ̥ĨeǐMȪGÊY܂ɕDŽ^ɀʔ˚H«c›˜µjȃĐģyŏࡠ͓ˢ¿ø`ânɶmરːۮƛŴ\\ǦVŘ_ȖĭČġĒ­ø—ĪEʆGʈ‡¤ʙψɏĬ¯üeԼXǼÚu֞ċȔ¦ʀÝIJp̈́ŚŎªþ[մèΒĞǠsĞbĞœŠ¢ŒÜÔĖżÞńÊņÆ؊ɢϐ‘ɖăɬǃø‹Ä_ƆSňKàtŌžǪºèCŔǚµŎąܥ਷{ĹJğUćū¿ĩ±üɋʀƿĄræàƀÌðD¾_ŔIŜtĞJŠa¨aIJ}ǺŝÆ]Ζ˰ؘGΓļķÎÃĶŘ‘ÄՊчƾʕƻij›“kïCūnţYƛrǡĆħt­[ɯ×TËSƧXă\\ŷïWˣůǍÐĝC_[ƒ‰čBo{Ћvʝĉ̋ͷ`“—³ѡɿѥËȱWƱ”ƭ{şƿɃŷñáǟÙȋŏÅcҍÄ˽Öğ†ćĀó ʣJãfœcзבѾҫ­œ"],encodeOffsets:[[114564,44729]]},properties:{name:"Mongolia",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@èЦÏō"],encodeOffsets:[[149250,15497]]},properties:{name:"N. Mariana Is.",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@MˎÃȨfɜĥ¼ŽƽӌɇΈɏࣤŢĒࡂࡄÛƊŜАр֦ǷԄÔʈųƎʘӦĭఐÒƞࡏʄס;ڡz•̒Əո᠂ࠒκүبŤŌơˆחʛҁʂЩ;χƮśŸƯº£ÞGÒZdlSʐ§ƚ©ÆU\\ÚƺĮǸȬˆĠ| ŽŠČĐࣈuzgNJƁǦǛɞħŢŅƌȝɈͷǤÇȆEĜƹߎȼЌ®ĐƖZŐEȈHȤQðkºFÊhżŊłCƞéþÑ`½Ī‰֤ŞͦťƚˆƸĂǐʊӒijиȸۢɊƠüЌ̚ŰǓĿēĢÅǍуň֟›ЧĀţť̇ŎCvख़ĶûÍ˗ňİÎʟȏͭ„ũ֕ߵNjÍ®šٓҋ߃ɧݳйʱɇ҇ٵş¨wţ͍ōݿۍʣĤĚĵ§յɸ˩ʊ܁¢طʵÖ˶Öŏž׷ǣۭƞu©ȭлӭၽ۷̷ћɒɛĘƺkƙ™ӟEe҃YŹzñK"],encodeOffsets:[[32884,-27483]]},properties:{name:"Mozambique",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ÃćĐŒƀ}Ƈ"],["@@ŷډṿL³Ʀ‡S“™k£Bĭгíً¤ɃɫэЌʯǙËƱ™ȽűDž¹oiʭŦ˛Ȱ̵φʯЦ̅ĨĥqγζׅĆٷljЃ ǝ˝ěmƯƒá@ϖÔ˄ζઌƵबʧ̞ǬŴŝȠيȁΦljeɇϞş¥ȝ_þČβพD६BϪBȖ@Ȗ@Ŷ@QŐOĘQŢSޗՠ·˚ĸưŖöƀĔĴà¾hƾx̌ŲNц@΄@Ҝ@Ŗ@ɮ@΄@Ɍ൞@޴@̼@ƾ@Ǡ@@Ī@Ǝ@ȌAȎ@ǖ@̪ἢኑۋ@ˋA˟@ʳ@ǔก̶ᨛǚอîطzȻzȽ´ЩĴŃŲƅ"]],encodeOffsets:[[[-16766,20180]],[[-5488,16674]]]},properties:{name:"Mauritania",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@ӓ~Ė–Á"],encodeOffsets:[[-63640,17143]]},properties:{name:"Montserrat",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@˩¶ĈȲȮǎŔȇşɭ"],encodeOffsets:[[59035,-20976]]},properties:{name:"Mauritius",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ŏFƕY“YÍȻЋƺߍFěÈȅ͸ǣȞɇņƋĨšǜɝƂǥžȃďࣇ‰ċŸğ{ȫ‡ĭǷÙƹV[ªÅ¨ƙTʏckÑYÝH¹¤ ưƭŜͽψʁЪʜ҂‡טŋƢاţЧՄƕËƷːŃĊʠ̬PѰҌ̔Ɵ’óǐªΠÑɰˆ\\Ĥȸñʲ̴ʤĝƌ_’QĮǻǔtì\\üďĒďžŷeÙǸࠀəĚƦ˚ȣȾёĈҩ¹ʍƔɕĮ« Ínī"],encodeOffsets:[[35799,-11856]]},properties:{name:"Malawi",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ßnnˤ²̑"],["@@ûˆ²ĖŠŝ"],["@@ȡa¸þƪÛ"],["@@ćW°ƺþµ¥ī"],["@@ÐęƥăćžǞ "],["@@ȪÏǎʹӀϡˌҷpྕ̼̑΀ܛ‚˭ŕrŏǰTƙʟIǷĵĻǼՉʺளࡼJ̲ӭ״ä´Ʊ̎ɫഢȋϪŤȮìŏΆ÷ĴǷưEÑЅŎőϊɪĺŇǐ ȒΖ"],["@@ЉƖӯ„ջmƳŽȋঃǩQŇŋ‹ɕĊģͣɭšɩˋѹԟcɽǕԭǖÁŐϻOʑĵěʝɧōשԃǁ܏نīʀúŎȢɛР›ܾ˕ǍƌȪӨ¹ȪȢDÌ̤ఎΚ޾ࣨŞ̊Ӹүƾ̘ÿ˚ɾƴäѓƸ‹ųҠȠ„ưƈœːƺDŽŘÏŘæܺନĎų¿ȃ˺̨Đ{ÄəˆƑìƋ¥̉ţįфƚĦDžƱَå͊ČȰǵՆƯ˜ĕŸůʳŗշ…ÙƇ̈́˛[ĻґŇʽþĹơ"],["@@½«aŨǚüFŋĿ«"]],encodeOffsets:[[[114063,2474]],[[106723,2798]],[[120714,4287]],[[102696,5422]],[[102245,6621]],[[104552,6393]],[[120397,4271]],[[119954,7341]]]},properties:{name:"Malaysia",childNum:8}},{geometry:{type:"Polygon",coordinates:["@@ݨƈϪ‹ɦ§Ɏȋ̋yͅșʋν͋ϰስˍJᵥࡃFᙵ@ᲃ@šυĻȏƃÉƙë‹܍¬ܧǂċǒVȜƝŘōĐĻµ·…ù›µŇ‡ŝ폛ؓնͅӤǝ݆Ɵdžʼnઆ˯ۨๆࡗʁؚ׭੐ֵި•ɀRфƈnĤ¸ǘ•ĘE’PDŽMՌȬʠËҔ̱ᅌfሼSҺ͹ਨ»Ҫſೠƶࢴǒ"],encodeOffsets:[[23942,-18064]]},properties:{name:"Namibia",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@č_@ĈĎç"],["@@ņ]eƝŹsŷȼƤ²ný"],["@@˟Ǝ‘ÚƂĴőêȰYĒΫ"],["@@Ȟ‰ٌХЄл੾ەxțǑ­ʱĶಓ߼ُںğ˶Ťĕ"]],encodeOffsets:[[[171566,-23166]],[[172044,-21944]],[[171419,-21668]],[[168144,-20731]]]},properties:{name:"New Caledonia",childNum:4}},{geometry:{type:"Polygon",coordinates:["@@ǠఉΦӋgȅ͂͗ȓωɕᠵङঃޛଵ¶ȷĎίƭEēϝȅǻĹLJȝ౉ɺЛ“ȷ¥›UӍϫΏVϛðʛŸ̡Țŝ€ƕ^ؙ˱ɅĜщҨīJ̃Đ̅ĜÛ[­mĵáӝqѡɳǙֵʧȵ©۫ڑׂσƋp˙ˇΌźƂķȢґÇӟ΀D˖DzMө̄ǁɦŸɰǿɄ®ΐؘÐ̒ʒොθðώÑ`ń˖ȀɺրĨ՜Mᅬഞ˰൪␤ᕨౚ˳ؠһٜ̈́"],encodeOffsets:[[15339,23549]]},properties:{name:"Niger",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ƇoòŎÖĝ"],["@@Ɇěؚ˲Ɩ]Şվ͑ϜïΐUӎϬœVȸ¦М”ొɹLjȞٮ̀ƮF˜ϑŎƯĄϹtƓô÷ȸ·Ďŭ¹փ̛ȋ¹gïGك÷ÑljɡƏɥķηŧœÑЇɧř­ĻÍΕqËʼnųȻÓýƧßŗǻ׋ǧȳ•ÕĂŽǡƑÝ¿{ljͭɑ¡hÕȬßẩʊljƻĵAó^ilc oŒėÙƏı­g“o¯ġÅıƛħЯсʁܷǙˑɿƶº̋ձƒħŊȷěǩƚàǝșĻŽˬþ̏ȑƒ­ŖsœʓPļćŻǟ¼͏ʸŝʤÃƸþrę”CŤƴŘƍÓƽŎɎàŇĄǷÇɃ͔ί˔ࠗâɢƞʋÕāŅՇw|ȎdÈl¦k¼kæUńˆôK˞`xdlB„çݨÔ֪ɨˆɾאɸȎœͼŀRÀDŽßƌ‘ʼk”±´ŵǾFĖÂՔÄÎÆc٤ʨȶǚֶѢɴӞrĶâ®nÜ\\ڶǵъҧ"]],encodeOffsets:[[[7476,4525]],[[6968,13423]]]},properties:{name:"Nigeria",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@Ñōǥ§׷ʼɳč֥ȴƇŃྦྷེîàƊĹò¶ɺZ¦`úǺœ˜æ\\ÂJfz«˔OÂX¢tbľXȜgž^ĀŊòĂ¾˜¤Z´íǔķ„PhNLdE²¤¨ЊˢŲɪǖȒǸűĞwݸȲĊĎĸ€ɐ_w‰qÁijÃöÍÛĪÝĤ΃ȋ˿Ż֩²ރĭ¢†ɈƉDZØБñˆ½Ǖľ‰¬Ƶǹ˻Ȏ͏"],encodeOffsets:[[-85649,11180]]},properties:{name:"Nicaragua",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ũVĪ̀į"],encodeOffsets:[[-173878,-19541]]},properties:{name:"Niue",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@£ħīɪƐƁ"],["@@˗ƭЁŽçŎ݂R"],["@@łù́¼ɀ~"],["@@Ʃ‡ƪŮ@ĥ"],["@@ٷżʜ²ѾĿɧŀƮ\\ȣǚҊоʊՎʖhЄʸѾŚو†͎ƃƑՍ˓ƒŽŹʌëʽʥÜħ܏Ƒɀ̑ËʫɭįdžĿ¯ŻʥrĒ͆ӧłƷdžگé"],["@@ŕLͤžɍ©"]],encodeOffsets:[[[-69842,12437]],[[4328,52620]],[[4044,52982]],[[5004,54345]],[[4328,52620]],[[5454,54668]]]},properties:{name:"Netherlands",childNum:6,cp:[5.0752777,52.358465]}},{geometry:{type:"MultiPolygon",coordinates:[["@@Hıōɒņş"],["@@ƅCÀĤĆğ"],["@@ʣÜɨ¶|ő"],["@@ƷhВİlč˅‰"],["@@ЭJʀĞǮħ"],["@@ů­ȴɂăǓ"],["@@ȌŸܱȇÒƒӔĖ"],["@@^˛ۉ Ր˲Ɯµ"],["@@ӌˆdžȱҙȗ෽DZॾΦÐάӆɒʍح"],["@@тù­ʵϳƷɭ¶Ljʔ̠hŤǸ"],["@@Dž{ÎŜĸğ"],["@@˃Yzńʘ`Mʼn"],["@@̒¡ɯǗҥȭջiȀǮ˚\\Ϫϴļƫ"],["@@Ȫŝ΁DŽƘ¥"],["@@ϥɡǿƌԘƠÎÉ"],["@@ʩIÀƼȪƱ"],["@@ԥɱЁu̩Ţ௒Ɔ"],["@@QȵֱĈýǟחœΟɵĵžЦʞLJǖ୧ͦԵƃԏRϟȉ˗םڳͫࣳǴѽƁލÒۉҮѷ¹@ơϋIы_ȚƟͅбඕǘ͗ӷӻŜғǫտϿɶ̷ࠗӅ¼Ʒ߅ƩÁۣ۟؁άįÂʓƱƅٍ¼ΉÙԯ͹ƧʯʮࡋŭӃ،̳ƣʕ΋µʚҩđ˿گѝİʫŽ̧ƟaéńҭŮȩӤΓى˱§ʇżČšఫۛঋķŃńʋ­ÎƔߟɖŵϜҚĕɞŊɝ£ǭŬÀǜ϶ȼਯ͓ÌͶȘŲʦ«ώƂУœԴЬȌPŸǩЀ̠۽ƓࡍקºϘОˆ͹èůȬіȰͻıŅÈě͸๨ĔɖǃDŜӄĴɑøĆŔɧɧӕľǻŽ޳́ðĕȶ˰¬·ȌDƘࣰù׸è௵ÈĽȊ٠ɎƦÉк¸Ħ¼ҳ»ǼǠદŸĩĞюĊ઻¥ǦǬՌƚѼOѮȵϹˆВƲɱƀǺĒҺOhőҔƒ˘ȝتЇƎժƲǏĀʂĖųžͣŅjŵ݉ɏЧǎ࠾ײߪ˜ĠÎ˱¹njȆ֜Ǡ̊ã΂ȬлŽʃĂҰԼ̀°ȽŦੂǔޓÇþΈؼźʵĦϨǴ઴êࠉÌѪʮՎȏĈƢϋæ²Ǝϗď±ŪˮƐЦqʱĶ׊ƈʮ̇ĝμଌĠ࢏ĚೲԾƄ˂րœʧžӪɎѲ†åָ̛ѪɩԥζǮɆkįͤҔqɨľҖƭԳͰߺ€̨Ģ֚͟sȊࣼдƁŀͨƦԜƃцT؋سലۦÛѽͼĐǎȜ̦¼ʽȚ̌Ũڜĭгʟ̾SáΛ՜Ԭހǻ˞²݈έֱű௫ڠīLjȽʞUŲŨdžŝψ¾"],["@@Ңūҩ‡ɣÖɬĞ"],["@@ߞ˴Aŕߛǝ"],["@@̝ļ˔HŠŃ"],["@@μeɌ̉ॸß˭ƃຈȡጇЩŌʊํÿ،϶஥Ұ୊İ"],["@@ܮͅ࠵ȘӁτ׊ʕ"],["@@ղMີ«ԺĬҊ±"],["@@ࢢęƓΏؔȀʀ˽৺ǥ׼¨ٺ̭෱ŋ᠏ၽይվ̵ɰטbȎƐᄨĞijĎᛗŃ·ɎՄmఐ˒ਂ˜үŒˬƈଫDžƒʢ̱ş˝ú§ʳѷť߯ƒ຅״ߪ‰ȩ̒щb̷ŻЃ͠Èɺ̄åҬĔӮěOĒஎœîũਇũٺJגȗӂϢเۓѷצΰ̰Ҕţ"],["@@࢙UᅮĠओĉ"],["@@ୢǙƊ̒ҶÔĚʋশƤᓂǛ˴Ʌವч෋ǫ࢙ŒƲ၉[؛üϡĐठƂႷXЁƚԎĜ߃Ěபṳ͞঒ȓ"]],encodeOffsets:[[[5208,61755]],[[5078,62551]],[[8298,64858]],[[8675,65196]],[[11501,66423]],[[13284,69504]],[[14206,69904]],[[15573,70598]],[[16139,70207]],[[17924,71267]],[[30676,71472]],[[21278,71772]],[[19718,71749]],[[20242,71902]],[[24183,72243]],[[24595,72261]],[[24004,72516]],[[31611,71459]],[[26201,72850]],[[-9168,72540]],[[19681,76177]],[[22127,80482]],[[11521,80498]],[[29745,80806]],[[17190,81825]],[[33307,82042]],[[21400,82176]]]},properties:{name:"Norway",childNum:27}},{geometry:{type:"Polygon",coordinates:["@@R¡IJƃžķJç¥ś³ſy‡Yקmɫǐ˃ĵ׍Ƕdz›µŠõǂáVɵĉčtэɲ¨BĦ[ž¤Ň¦ɁäśÂəĩçfǏ¼ĕR¿i]…ã‘ҳŰmރޡ\\ƫ_ƏîƧĞي£Z—]¡q™OֹЀӥ˄Í`m{a»Nÿ°ĉ´ŽĜg’„ľžĘrÂÐpļCĘÀŰîƄŮƜɪȂzjº‚¸Pǰşà®ƌȴȌ¦Ǵqǂ‰ƪə޼ϛάί̒ĆðuâƒvÁ¢ĵ®Ŀӊ̏¸´¶M‚UBióƒģ†³øoǖaɤDæµæíæũ‚½”cÎr^۸€æýĢ¿äЈŒĺ¼dÜOzq€£Ƹ­ð‘ĸ÷Ųa˨MȨÒȾ_Łأ"],encodeOffsets:[[90096,27786]]},properties:{name:"Nepal",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@§ÓėØƀC"],["@@lë̓ŒDzɨƔiǝ"],["@@ďÑǔŗ׿ǁɼ̐cǨƠJDŽƕ"],["@@šijʼn¸ð¼"],["@@ǡŁuĘĝoƶȫƳûĩäØƺʗzʂĚ͜o"],["@@őµƸǪ¥ų"],["@@ۦ̖ů̇ǜɺʬsɛȇ˨Śʧ˙\\ȭǘÏࢽਡԇʝĤéǩğƖjĨƩɢ±OǕӁ€ƷşɕƔŨǍ߃̱āկūBĪŅ΍էÚƽ̙Ï؛ԡ́Í߭`NjȲ̅GʫǼƝý՗šƺȬɡëÌŸȍÙIŐѠĴǥÈnjĪɍWRÚƪ¼¥ĆʊċØĶǡƖȞ”ÃĴǺŖ²ŋfǀʪƨĺÍ©ƐԎЂ؆İSŘ֐Ȭ΀̼ƀeýØʸ`óêŢ¢ÎËȢʾ–ƕ`DŽʈȢƢ֔ϲɌLjӺтΰʮAǯqyĽʆƱńα"],["@@Ǔ¾˜ŞżǛ"],["@@ƮútđՌǑƁƬ®ɔҏƹW΀їãҁӞŷðdzƂJç؎ʾɑ˰އঔ̉آςѸŗɥܟʕƝÉѣ͕Ɣϑůř˩ƞıɣПܟࢱ֡ͭŧnjʅM_ǜȗÇѸ֘ü˨ĉƦūƎࣙϊƝdžæưҮƪǘƬǢݜńü˽צŰįǐŌŭŠʱDʋϘǴğQ̦ĿÜ]ïǻńĹǶFğȾʹĥաۊǶȊȿƳ¿¶ǓȦØDŽСҼ˴vãęʲͱ"]],encodeOffsets:[[[173239,-53757]],[[170211,-51979]],[[172181,-47986]],[[170987,-46264]],[[-180405,-44790]],[[178089,-41844]],[[177271,-42269]],[[179757,-37149]],[[177428,-35773]]]},properties:{name:"New Zealand",childNum:9}},{geometry:{type:"MultiPolygon",coordinates:[["@@åO@ńȲ˾ÈƏȓʡ"],["@@ɄёОЩ൲ϵրܙͦŵmʏέ؅Ѝ͕ΟץɝdˆƦÙSʵ́ŭӇĈ։ࠣɛωٟݻŧȉɏhɝǯʁ࠷ƒϩȵѱĥछጊᠾ࠾֐၌ϣמ\\˦˨چÁĺѢĺ³Ÿƕx†ՀǤðÂǷ˘Ȭ"],["@@Ź’n̚ñ`˨ʎĩי"]],encodeOffsets:[[[60132,20704]],[[57742,25579]],[[57650,26267]]]},properties:{name:"Oman",childNum:3}},{geometry:{type:"Polygon",coordinates:["@@MΥ٫֕ۖߕÄ޽ںՓe˂ȕDƳ¦“Ȟ_šd€[iű˜ĩljǖJ̆Ʒáśī‡É_˧şĕ·ãÑ{­_©ÒǃZ·¹ǡaÙüÕ`™N…ĻÙŇǓ@ˣ̻ġíaé–ÏR¹Ÿ»ÝËΫƅГݽһɷ§¯ƍ̍Ʊƙ·ʼneí˟ý̛ʻįÛIęº¿Ƙȍôƅù§¥āŻŹȅ˟ʣć̵ըɋ†Ǜ£οƐǟ¼iľI´HÄjàHȱȎ̡ÖƟÐőv͛…u‡KŸÚšA}½¯D•gååa§O³Pã„o¬R°e‚ɏ¿DžËʗĹõNç¬Ù¢īDǫMīBËdÇ[ëh‹u‡C¡¦kMg_WuGʧȡFěaĉmıÑ£ēɋŲLJų̟̂řӨϿĖG̬̿͂ljĝ˰£ළřıĻԋȀх¥Ãţྥqjbzêrʤ€ĜSºNdΪbnvŸ|Ɯ‚¼ʄŤĪWÔŒܚƦdƠ²xR^Qǖ Gx›²»Š{RΏZ~҈iͶܹ̂اıĸDžǐ͌ğٶǿЎĹࣼöҀėʜŸל^ॖʴĮ߀МϮԼyʈĠƅƌӨʠξ@ɬƙΈʬ‹иɔӲٔɦ̹؀ٞ¯ͮÚːʼnƊվո£̨͗и¢âࡢԨ۸Ŋ"],encodeOffsets:[[74844,37750]]},properties:{name:"Pakistan",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@Ƚĸ’Ŝê|łʏ"],["@@¿ƌÞr]ƽ"],["@@ēƇʂѵ˽ͿȉŐśЁѩۨŒ~Ūʜ͎Ʌ˵̨ĽċƧĞUųĕɰӓ̴ΝwƯijŇDZƙ׫͍Bŗϔӛսɱȟ¨ƍԼǡɱȣĄȉΔγ¶ÛĮϋVƽÙ[ƧůɢƔĮbŠUŪ½ĘˆÄżĤ¯ØĉÆ·H@͜^jŠX|~`º˜lƂïäЭŊā€ǿŶc³ƇƖąʢnĩƶҐ̟ѢĚװ˔Ҧ͜శ̥תӝ"]],encodeOffsets:[[[-83561,7509]],[[-80791,8473]],[[-79231,8867]]]},properties:{name:"Panama",childNum:3}},{geometry:{type:"Polygon",coordinates:["@@Էσ‡ȕˆ‹ŽŗȳÏLŃo{iij{ˆ™Öë°] {WýƶЃŶħŒgR‡I«°ñĊÅŐƏĆġHŃĵũijũۤĉǖбۼ^ȊŘØ„ͼ˺|^Èty©m­—ž„À~ê߸…¦OªFÐbżÄʬĸEƒkĄFݦಧʙͅāګǠУЩՁ]ƗǞɯȽͻǢя̾ǃǃřXƓԓҷk¡ľşVÑ@›@AÙÉĉÛƕ­¦ʋĽǹЯśޙ֎Ǐ͚޹Ӱ੕юୁڒίњͳɠω٪ݺˆδԝ࡮ˏʐÉͬ΍͂đϜϙغӛఈԫڀԯࣈ७ײmƴȞ†¤Ǧϡߺ¬̆پۜƮĞæǁ¦ˡ‹e‰q‰³őv«i¹b¥Jˆ‘ĎEùћ·T‰°” ĄĘ¸^ÚĎ¿IJ±¢}ðRÖZ¼¾^ŋžă²×ÎóÀ{æÁ˜l޾j†²^Môf´ž¤ƨĔŽ˂ʬܐĖÙ͊ЬΚӸΰѦԐŴӎZŽƄwS̤ƑƴÇƈϤіLˆʊgǞü˰űl›t­Â‹Ú…¾»”‘¤¡¢¿êɩ¨ÝŒ•NJ·ÊͺwÄÑǖ©Ƙύʦř–ϓƒ½¤¯؈MȠتŽÄ¼Ä¾¨\\njÑƌġǚlêÊòh¸hɚŕ¶ÁÔYʀő¦¯äƒÌe՛ऻǤíšEÄh–€’J”ÖƗŴģ¨×u£KÙ ġ]ß°u¬½šŁcDžRß]ƥƩܷŻΉȳą‹ĭīśĝùµŏw±yýљƵʡŸăuÍĊ̱"],encodeOffsets:[[-74892,-6621]]},properties:{name:"Peru",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@έƽ̀ɚîÛ"],["@@ɂŕĭÏΗêʄļ"],["@@őYŃȼȎÞɠśȗƣ"],["@@ōýbĦĬg"],["@@©Û·ôržêfFƻ"],["@@ËoKľØč"],["@@šUWĀźé"],["@@éœķöǢž"],["@@ƾ™Ĥ˙Ƒ̙Ȑģþɿo̵ŔŽXίͧ͝Eҗ̩ࡰŕÏʷӕǪȋâУˑ͉ĩЄʯǍ׷̜œƠýӶȆ͸ғΠơSďͳʛʘɅƝ©NJƧ”Љہƫf‘Țˎض֘DzŜɸ͒ɨΒɩ¥͑ͰƲǨ̶˜‹ŚΆɮēÌƄʐWwخ҈λ"],["@@ÉÔèȄĊɑħ…"],["@@Ѕǁƽrijnj̚ˌƌrȮŏdȩ"],["@@ǏǢƠ˒pѳ"],["@@Ļ}¸ƺƀÏûë"],["@@ģ¡AƶƐŐ©ɣ"],["@@ŗIŅɖʯƎƋ˸ÒŜ͔ŀΖƔ͐ɰĜɈ϶ţͿޓWɑƞ˩ǃǫ"],["@@`Ѥո઴ƒܽʯɫˣ֭"],["@@¸ŏáBjŎ"],["@@ýÓŎ̄༾๜èиȺ˺u̡ƈϟˉơƫɡ·ŧ̅ևऽۇ"],["@@űč´Ŏþ"],["@@̘|ĆƉ[ΧɊБŁıŻƬ˭ȷŖLԨĽƲǻīԦȴlj"],["@@ĿMĻưŴlĈǍ"],["@@˼g´ŻɜÏȽˇʟƒƓۇ͇Ų৖ƿǰĨ”Ͼɽ"],["@@ÿYëɚƦ‰Fǵ"],["@@ņ¬òǩʯGĿʖǸŏ"],["@@șŪƲŒ¨Ƶ"],["@@äǥǺʼn™ԇè̙ƌǁхĄǕǒįǼÞǨң͚ŵΖߐ•"],["@@˘ˑJǵӑ϶ˇʓâքЖʝ"],["@@ãȽùȎàɢŦ°§ʡ"],["@@HñƁʸźȅ"],["@@ðŷ·΀˘ɇ"],["@@мŸːʧdбū˳Ɓå˃ʖɫքʿȲÀĖʮ"],["@@ǚÝġɑƥľîDz"],["@@ƭčŗŎƾΐNJǧÁȧ"],["@@č̋ÿ͐ǎƒ"],["@@شˏnj‚ĞƆIJyħڙ̰ґ͑߃ґɃXɛǷ́ʮӳËŽŜ΍ϐȧÜÈóŶάƜʴʼnƘοǐðnȎиȋSīɍÛɨ̓ƒƃ̜ÙéϿƵļÒȐՙņŭͮӋϺŃkǘЭÉǛȉ˞ԉΖɵăƁNjȽ~ɉǤǟãi͒ʲʰfŸ̛ȤJͯű{ǁ˸Ɨ¶ʹ୼¶ÒˢɻǬÀU౺ȰܶтĜ"],["@@ă«IJƘmī"],["@@TùſîŬL"]],encodeOffsets:[[[123137,5383]],[[124068,6222]],[[125024,6583]],[[125888,7587]],[[119890,8073]],[[120172,8412]],[[127803,9363]],[[126667,9460]],[[129031,9545]],[[129085,10001]],[[127585,10023]],[[128707,10153]],[[122795,10738]],[[125594,10725]],[[126087,9282]],[[126332,9677]],[[126728,11555]],[[120127,8643]],[[122739,11802]],[[127565,11616]],[[127600,11769]],[[125437,11894]],[[122920,11985]],[[122983,12460]],[[125599,12605]],[[128246,12829]],[[126686,12583]],[[125025,12652]],[[126746,12753]],[[126241,13162]],[[123602,13803]],[[124841,13866]],[[127339,13960]],[[124963,15366]],[[124008,19063]],[[124848,19349]],[[124438,19827]]]},properties:{name:"Philippines",childNum:37}},{geometry:{type:"Polygon",coordinates:["@@áŦŔƾ±ˣ"],encodeOffsets:[[137826,7560]]},properties:{name:"Palau",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@Ȍġǧ™ɡĨénj˨ŷ"],["@@ƅÁćÞɎ["],["@@]ßĉ’ĨŽ"],["@@ǺÂÅȧɫĒƷ͐ʰʻ"],["@@ɔÑĘȿϩ˜ÔöÑƨü\\"],["@@ȡŎĊžĤµtȕ"],["@@˒ġ^ŝϝǘĮ¨"],["@@dÑijʀĦĘU˅"],["@@ɝĪɔoJù"],["@@ȵǘ\\Ŕɖij{Ƿ"],["@@ȧƧ̿ŢšΎϋ̈́}Ф̬Ƨ̼ѱ̘ȡŔʳ"],["@@ƝŀłĮœȭ"],["@@ę˔üĆĂǡãǷ"],["@@ŕ¸Ħņpƽ"],["@@ǜìʐҝЙ̯ɅƆʁÇďǯę̍Zʉً̯˿ۏwɩDzʃٗϔĂǔުĥЈ¼ŌÜņμä·ćȧĢǷ׼ÞΪФ̂Þßֶ˔ă"],["@@qó𳥬€ù"],["@@AᇴħƔĨͦCᲘ@njྴׯԖġҶ̽ΊiԠѯȺ‰ζοkӣ໒ջȢɏ˜̇؏·ƑħȤҙ޾؍ĶϙǢşŐ̙ԬhÄϹؼDžȿıĨǧࠌȇ͹Ñǜǯ˝ŗʫÞəȌအʄكִ­ˢ˩Ğԇܾࢷɲġƞ̓Ä̯DžЧʠʌНĝí˅zĄǙࣷķƩżşyɦƣ˖r˂ŇɠʍUǗ؁̭ΕƄअ©ƁĒ"],["@@ÕÛŷǒÑш͛Ҧ৳وˑøäƔ২֭ࠠܕĬȷƕͻ"],["@@ɫBǡƾɠøǞïPLJ"],["@@̶ĉșĻևuĠȠΌ\\"],["@@ȁèˆIJƺǙ"]],encodeOffsets:[[[157221,-11751]],[[157984,-11634]],[[154521,-10818]],[[154707,-10260]],[[154142,-9570]],[[153954,-9721]],[[156295,-9174]],[[154734,-8943]],[[147033,-8685]],[[151579,-5966]],[[159701,-6847]],[[150709,-5562]],[[158359,-5563]],[[149524,-4839]],[[155562,-4399]],[[156335,-3208]],[[144360,-9337]],[[156637,-4870]],[[154048,-2725]],[[150598,-2007]],[[153360,-1590]]]},properties:{name:"Papua New Guinea",childNum:21}},{geometry:{type:"Polygon",coordinates:["@@βছثНВȷ¡ѭºǩδοċÁĀɹıķɕ֥ГˣʗµÉX¯ºʼnX·uĽŢ÷ʷQÅRϟņ͋ǞҹNǯēыÐʱǡʧpdƘ˧ȎʗǕˇĤɩ̲҅ƀŹÁȹŨÚdžʋ«҇ƢĠDž̍œέ˒ǬŴřèɱ™࡛͸UŅñqñEJZĔ؞òy˸{zƱ¼]jzêŗǤŴȾÓƘÃz•Šgž`Ò¦ĈėİɕŘĿĄV°żĀÚâ–þDdDÊŽϒ˘ùsƸ̅ņဌ˸̾ɜ๜ʆμŻ˕¼ʹ̿٤øԖ࿮»ӂS†ÐKêoŽex™œIêcĦ“ò‘ìµ€ǟ"],encodeOffsets:[[24049,55235]]},properties:{name:"Poland",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ū€ɸGŋw"],["@@тÁPś̍ɥ਍jÉ̶ĘŔࡼ¯"]],encodeOffsets:[[[-66995,18541]],[[-67716,18888]]]},properties:{name:"Puerto Rico",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@ƈȝϛijЕЃ¡ܗ̯ŋۣԃߋ̉ơӗ͢ĻӴϯ˯˅ߕqϥуɝĆɅŕ̇ȲΉɕŸIJ˓ôǾŴџ¢̈́άФň͕ĴȮО£ȨӯȚŗťɵ͞ѸϤऌϐوېDzšȎȥࠀťŠȂȳ݆͊῭͒͠†ǚҨ˾ęLŭɾǫ"],encodeOffsets:[[133660,43557]]},properties:{name:"Dem. Rep. Korea",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@мġ˙ăǩˈĐ"],["@@ϼGQÕҙAģŌǔ«"],["@@è‘͝GÿĢͶÇ"],["@@ǛÖŨ’´ħ"],["@@ʻļɒpªū"],["@@ũYlĒľ÷"],["@@έƣٙĮͳõƸͰÉࡠǴmŋĀΏÏ‹ǬȖøȖ˨́˯ȃ›ĻĎĘҒҌٸŸ՘ÏߒōÆĢƪіǒĨ˙ؾlɎŮѺÜɧˤş׹ѭIJ֓ȇƧŘũáȉţĭΗiҎԗ̃ԉȦɵŰNУϭŽң"]],encodeOffsets:[[[-17603,33658]],[[-26264,38750]],[[-28822,39376]],[[-29328,39450]],[[-27725,39571]],[[-31884,40353]],[[-7583,38072]]]},properties:{name:"Portugal",childNum:7,cp:[-8.7440694,39.9251454]}},{geometry:{type:"Polygon",coordinates:["@@lÕ\\±„‘„«‚{p¥pljîʵĥڧYʻলŷ˞ƺ¬_˜ïĚñ²_ǖ@ŤwĄđNđňƃâޅjŸº¹`ė@Õx羅ä[üYĨhĊp̜ƊƼõÎÍňۏɑŽۅ‹ĉřdzIţaߝʭɋͥǝȓʑßq¹ŸË…µFåËåµÙCƋúdzHɭțนɾν‘‹IJpÂͬМ”˾ȨɈ͊Ӣɑ˴ଫӘףЀߕȢȳǜ׵ЌΓӎƃƤƙöíºB|sx̾ঘBцѦޘเ̈ޖVވѿj̅"],encodeOffsets:[[-59555,-20648]]},properties:{name:"Paraguay",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@đëƒì]~ɼɘ —D_ƫȝ"],["@@ÐȠɆŮÛÊ×lÏkkNOdŠÔ…Ⱥ°Ƭ°ĺņØĤkêi`•æ£ÊKjƃķّӏģ"]],encodeOffsets:[[[35173,32044]],[[35718,32121]]]},properties:{name:"Palestine",childNum:2}},{geometry:{type:"MultiPolygon",coordinates:[["@@ŨŸIĿƅŊȥE³ƞɌ–¶Ɨ"],["@@°£Ə¢ĠB"],["@@ǒŸʳóĢŔ"],["@@ËÈրIć"],["@@ŧemŎƴG]ğ"]],encodeOffsets:[[[-152905,-18114]],[[-146883,-17018]],[[-142360,-9927]],[[-143437,-9652]],[[-143434,-9124]]]},properties:{name:"Fr. Polynesia",childNum:5}},{geometry:{type:"Polygon",coordinates:["@@÷iíkÏ@³RlÓì©Ģ€¼XŽýіȾӨɒƠʀȿ·ͅľЅƱ͓Ƈ½"],encodeOffsets:[[52499,25198]]},properties:{name:"Qatar",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ĘēŒ¯˲©MÎĦiˢĨƲbƐ£ŚġůΕёï Ǿǡ³ʱধ̧~˳Ǹϫ‚˵ŮܷƇ׿˱ᓝƐ§ĨƈŊ˗ƈaVNjƾºĘÆlæM„^YŠáœŧ²ū}ųīěgƷŀɯšħäƍŠCˆvP¶HàNZjƧøĞƲ…l՗ɴgʀ]R[SeUeE³œÑøȇĘįŒ„ĘƒŬĨ̤Š݆ਈ݄ψƮºìæÂEǤāȄLߚÃʹǧТƾȌlȂˆɈtÖҔ¤zúŘvƪ~̦ėՐۃϪ̥Ƙ˱Ƒ࢕Śů"],encodeOffsets:[[28890,46542]]},properties:{name:"Romania",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ýÎɚbƛï"],["@@̢µջ˯˝ɑ}ƱāǦظՄ"],["@@ֻ˝ɋ[ٓӕ̊Ϟ՜̶ƂŎķɤjШȒtŭȧ›"],["@@ȭ£ѠήӺƾܫӇ"],["@@ɻËӆ˂ʉȵ"],["@@ǗcǶ̒]˭"],["@@ѱɕݬqǢϲĒΖ̸ƧЁ"],["@@ȥØǬŊĤeéƻ"],["@@ӂறƙ݉ŦϛѢଋݮൣ֑ԠˇÀՃħѿृa˫ֈߋɦ•Ă͡ů˧űѾףŢсڃȷ҄Ǫׄ×ϔǾΨ˅ئɴیÛࢾŠӼПќ½ҌǐѪҞˌƀ͒¡ưϖ̷͔ΪĨ"],["@@Ļƣ˹~϶Ŧ"],["@@ɠ·С̵ɑǮȕé̂΀̨ĕ"],["@@۲ǙдIɐƿşʷGÏðŕԇFࡹ‚ಉÊ̶ϲҞÖ͊ʖ¶O̥ʟʹánj‚ ˢ"],["@@IũݥԎѲdyū͸˛"],["@@ĵˆǒĚÛš"],["@@ƏÿʒьھǦ˜˯ࠗʁ"],["@@‹ǣȿƤʌ€"],["@@̳ÀűƾӘ±±Nj"],["@@ަƻƲǩԄŔƅɔÖӝȒ܆ɫ¿Ïሴҝ{ˑ̺äŸóÙ؍ΠïĠNjʺňhȱʔǤϩǔŪʼϵŮܶ°ѮÛƓĩÄĩÈź֢“ХĦ৲ŏઊӵāāʬž¶ĿϺu­ŧ׫ŏŁȳىǂˆʣڧ_݃ƼҨȍÛƯ̑w͂—ÔƁܹșʆuċƋоǷ˱AƏĨµǕ˅©ɀͷƥ۹̒ۗîϫǬȩϮ߳ŤεġޣOѵҌNJeȂ͚˹Ƿɳǂƹdz̗lęʃπ͑կϙ@ȶ@ȶ@ȴ@ȶ@ȶ@ȴ@ȶ@ȴ@ȶ@ȶ@ȴ@ȶ@ȶ@ȴ@ȶBȶǜ™"],["@@՛˛׹įЅÀij϶ѴȎ͊b࢒˙"],["@@͓ъ΢Ȟا"],["@@ܑìНȤвĬࡢőƣʩ"],["@@UǫګIœŪҥvεΦѺŤ୸ѳ"],["@@ʐűƛȹٯˈռä"],["@@ƫɼ૆δ@қख़Ɠ"],["@@ȻëխĚن¸Ťå"],["@@ذģԢʣཡȹӫÖ@Ҝ़"],["@@ٗt݆˄Ԯů؛LJ"],["@@ܱňҀȲ˲̹"],["@@ЕĐdŒٚŸʧǁ"],["@@Ͽ™ŷâԸ‡"],["@@ठěʵͧ׿ɍėԩং۟ঞͅЕŝٕŨĪƕڿŀ࣯W৽njʌǶТŽطǸDDŽఉ¯ΩƢÒ΢֜¸ΆǨɊ˨˱ļڒŀıɢಬǢѠá"],["@@Ցµ›˒ߎž־˷ߝá"],["@@঄˝Ğ˳༕ä޹Š݃ąતіऎ~"],["@@ؙh˨¼Ͳã"],["@@ԍßǹˆ܂Lyȱ"],["@@ԕʱ੻ɐ͂VǤƼબů"],["@@ͲDĿŷ֙Àͨô"],["@@ǍƟ˕”¶ƎϠÂNă"],["@@൘˜ƄƩሜãƩDZࢣƟધxᅭͰ͐͜ɐǯ"],["@@йiȺϦЂȩȁǑ"],["@@٤Ǖ֜юসɯࡢ@ඤ˩૷У܋ÔχȄǴ͂ՑkğʣޮΡջűСƞกŧӱİӧʵࡍŠ१Ѻ˼niͶπTūǒծƆײèै̱"],["@@țſࠩþÎØॸU"],["@@®ƝҿƪђK"],["@@فWࡐŒɍĹ"],["@@㎅ޡ࣡ʵȌđ۝ʛιêǗǧыZêɫ܍dzUȵϋÎȖƯӟʕ҅Í஡ƀקđҋΒ݊njזϮڞÞүŌޔˤׁƖȎÎ҈ăɰɆٚSϜ˒ۖNJ୮Ȯ֎qɔǮ๨›రŢᧂՐ۬ÝϦȏ঩Ё"],["@@࡟O੒ƾȱƭ"],["@@̹ŽЊìďĹ"],["@@ƇȞđLjըƦǂАɯٮϸŞ;˾࣬ʟƬĎÔ̪ɀĢΨդʲࢰӮΎƽʶČȘ̹Ķۙɵ˗RνƃșțౝKȓʺÒ˔ɃɖBɒ̛€דкη]̣ȎסϗȞ’΂ɅŠ}̜͏ͤө੘׉ֲӗƊəÍৡΌᔹɗݡйuŻӴÇĀЃֵеݹ৏ƶŃïDZڷȇӟ˥৅ʼōĆǙ¶ő€éDǩ·ŋŸÝsʼnLƅTÃ`÷ŒɫDŽɕĄϏ”؉ɣŅÅŃÉŻÝÓĕ‹Ûş¡ĝ›ĝaǟtΑĝճçý\\ō©̓řıoɿÞęGŝ֝ČÙvǻŽԻWùfĭ°χɐ£ʚʇˆʅHĩF÷˜đ®ċĢȕĮŗ`ǥUų[ۭƜયˏϏ_ŗvÙnį\\࡟͔zŐďĤiȄ—¶SĞdœ™ŏ|ƃȿžǃ]܁ɖÉZȩHǏNħfǝĮۛȸɅˇҋˉɷнńʼnÞǭ¤“ȇÚWºo{șȷʍէɭŵUȇŸ֝dȽĈҗñΉpƳĞijJýI—_»G¥ÄǭŒēˬ९¢ƋƤëXÝU“˵w¯J¡ŒŷàѼ¹[ēű͙M̛Ɵ­×D‘MÇUDZ‹ƷûßcŸ¹‹ԍŇ·DžTƻ׏á£ŷ`“mÁÏ}ďyVqp‚‰WáǕŒυ…µÏgĿñ‰“ƒ«mķC©Fȷ—ċÿRבВ¤ǶгɷߕĮȱϐ֕ƬͅҊӳȂԃďɣƑࡷXßǼˇX²ȈͣĒʋġqȥοƝᅁᐴିوÁňȞMƶʠ୳̑ǻǏ٥ȹċƅбŎϝƟčɔ΀ˮЛíԛƪƧljɕ͒ƳĵމNþ͘ϕצұţৣȐ٩ȓ§Ʒᖭ̓͛ʃՃšοוÔɃͭҲĉʱÝ}ƃϰ¹΢ȇࢇƒɯʟȄ˵߷͹κʁࣺ˛ƓϵϓƑѣa̭ƞȷɥʏõÏņӍØѱ̴ѧxͭǝαƨѧڱν࢙ήñЍΑъکψ٣@̏ȒܿȟƱƠ̵èҟσػǥƥșוȩŒֹΣÏՉѪɵiґ։ñˣȖǻˡ́•ͣͼƯȒЯDŽÂּăږ޷͵caŵ׆ɥҡɁžǃȱŽܓ̍ƛĄÈųƭʿե׵ԌͳžҡƺˢƷ܋ठ৅ځէЇêӋѾˍàǽĊӗǺG|þȬkpţŒȁKƵŪõfҊÓviSáʼnáþ¡tř\\Ʃ›ȏñĉkŸyōJÅnknV”žœYšƅ¾ÅŠϿŨõ¼Q–șàয¦ĵ´đ¶ɱ”ššş¾Ź®Ӂh»ËųWॿۆ҉Ōˣɼ̗GʓɸӝƮ˂ŜȃèŪ²̈ŽθʅǀːξæžÆĥĔƈʺIӡˈŭȖؠx½ŲܖʘćƎƟFăą́sǮĤҡƛżѦҀȶ݈‚Ʈ͎ĹɰDž¤ŮǼǰ\\ˉƾ΢Ȳy˚ʥIԗʆɍևȒDZōԽЮګǝхǘѳ‘ɻ֦Ȼƈ܋ªýΤɶĐ֍ӄથʿɍ̟¨IrÉӖ¡nqxPȄiȐ}ûÂ÷Òµ´‹xĚĺpž|Vζ÷ʖ]˞ƮĞ–Èb¼Pɇˈȿņǩ`ƟIÇfÒŀXÆW~…tƍ°ȋîĕĄĩƊġäĴE^}př ƻôOn\\°t®ŰŖ@Œg¦åðÁ²GzVpäÈLƢɿĆ͡ƮLJQėR±Yµ‹ãsħeůÉ͔¹ºlżࣷİŗò®İS²mÒ·ļOˆǯǐUê|—\\ƕkLǰP¬SžpɏĨwà“`ıH¢ŜŤŐȤÒɵ̎Ëӈ׼ӲśĠžʢɶõƸƀΰiǘƞࠎ٦ìϛȦշEΧƸʼnʪ׹şཤࡔ఺޺̆ͼ̑˖ৃѶњʊTƮЇȲ€˔ϿǠȈƪǿĔĞ͂͘Đࢋঔޠٶեͦօņǵʤʪ̝̐ÂҪIJΠɶטŔþǠֲćRȶ֬ñϚĨYŦ࡮șýĵإÔǚǏԺQiđЎ¼ˁ̟ҘȮᆤı༼пט˯ड़ʅɊ[]þӒˍӰıͤчƛ͏ѵௗșᥟ˞ׁǸ˻»Ď઩njȁȰࢇÚ๖׿ʛħلĕӢɯîƷ̵̹Ոߥ٢ĕӀ˩ࣞǃѶŖĀŤĝȔ٧öҹ˼÷ǂ̈Ȟᝂԃʦǎ͘PիӒfȼආѴؠͬ࡮ĕΜƑģŃʪfɖő˚ްիˈΠ࠾ܷΜ׸ĿༀËڤՋঋûՃ˿ֈȑ˖ʛԜù঎ƨȀԞ߬ĆáǸͶsᛶ֘͸ƽ˚Ŏͅľ௪͚ׄE׍íŒЇ֝Ɨ৺x͖ýҴ̮Հæ࣪āࢠ˰ݒĮ˂ɣɫʛՄûƜ̖ӾnώɐٙԖبɌ᪂ʿפʋᄚ̽଴ҹ٦՘ԇbҋњ͋ĖҹĠƗŝ͚঺šĊυeÁɚൊԐ૾તłą๚zાȇȧ֭ץү۲гŅဵ࡞УϝʧÓΏਁٓЙƤɹۃƏ˽êʸŦ΁¹ͿƆևaǡ‘Ʋǭ४ȣࡦdҸħ;ðĄȔୀκʂΚ׎̐ͅռǂ˦౺Ȍ̐DټёÃׅԈǫॴh૫ƌÜςˤÎ˿զ൳˨ӣHԗůࠓ¬ɑֈ٠ٴ੍ܮӮʹૐʦǣ֖̮”ӶҳϽ˳¸ԯആǵֈ’ؚȥԸHŢÌзQ̿ɮ๻ʊͳ̞۶ĺހǑϤĮǻŞѯikĶوƼ৔F૸ʓݲ̻आ¢Ўăމ΃ƅ֋¶ǝծҸƊ̧̽̇ͰĽMƸ֌ɨӭҶ͒Ӥ˫džұ¨ҩ˸੡Ȉ^ϰΕʂƆ˴┰Ÿ්Ɣऍϗݔ˥ا̌঴ƄϚǒ࠿ζӍÔͨŒфĽ˨Ž௃ʀΊƞϚő͞ĆΨȠѹ°ÊĐ֒‘ϲ὞˒হE̴DŽዎŽк±ΟǃܖĨWĩᆒ̐ञǵȕȗʼŎsǦࡧ̂ႌšيï֛IJ¾θശѤ୼Ȇႜ˷༙ʍᘪÉШĝࡡΏસTϮǺ᧮§מǧŵċ֪FŠˣ԰ǖʔ̟ʘ|ʏ̑फɘцɑʌ’ОƉڧλᣭ׋}ŷഡЍޭÕӻʑЫm࢛ѿӄº٨ʬ੮†˄Ѳ_࡚ɒউZҰɰڜßÚĪΚq˓»ƢşظijհŒ”Ǽǒ£͒ɟɓǁˬħ̧џҌǑϗƠ֞Ғ́ƆໞǔᲄƑΏÕuǽૐɣᑔĉаvřĸҞÕϲȨōЊࢨîࢴʭրĎʢǵЖǴ׬Åଢ̳уǽΘmȞƕۧƛܨćňɫЍñ्̖ŽŁ࣐ҫʤƊɀƩԯÛޚҙٴȑȂÐɞǻ࡜мԲֶ࢈Я࡜ŸܚȈҀT༌УăĀЂĊͩ¸ˆDzҞ„ΰƹٲ ɕ̩ͦÈۢȪࡗw‡ƔϮƔఔúɫʰ੆ƛ⇈ɻcû௫‚ԙĻŀÇᒌĒ׽̍ĮNJЅöCʇ׉]ŀȗݒĦৄѨሪƍѠɥ߿čãĕൎƝхʙܶżԬÿєɛˣ‘غů↨ɒଐ­ૄȽվЗɷσ঴ɝŀяɲĭϡϋ׮̮{ЌՈȜࢊĒᴴǷࢊȔϒϥࡐljʤʙެ’ϪȂ΍ҎϘ˜КᚔʅƊļᐜ©ᬐՕؐɳ@ᾕకϵ٫Īܱ̪ҏ…ג¡ƼřŻÙࡏƤ౗ɵ౎ȄʜǗǭĵઊƬLˋɈŝ̜ïƺŪŸē̎ӿʓ½ʬǯ¤ŪԄͥŇśʾˑϙ̭ໟɺ ƶ˅IŖǹᕩإݟěЯʹɱÀ¨ƁїŧEėງՃɍЁ̱ĐًѼࣷmއƕߡҧŗļǺь੣͗ŋɉέǾΉƍlð͡š͇ȷûЕ्ܕƱ̷β̟ɚȚӔƃϑεXЛŌŷˬ‡âϣʍǁǧlDZƔΈʒ̯ťȕϋƝ̡ӽ͎سЙȣ܏tו̑șͽƴջρĞ۹ˡɯľŘƅĭЫ͛ӕ੍ڭċ‹ȏΊſैɇ̚ЫှÅОάଆܮԄņƨŭ˂ԸhǺȄԞU޼є՘Ԟྀࡲ˄˄ൢϚſĠϞˌǛİͺۦ͠ƬԢąǬÖ࠽ɐࣱŹˁևȪLJƟŇȕŒϳ—ൃރӽīǦ͚ӵÍѦ߀ٍƥ̧ǮळƧԍž͓Ľ଱࠱صʱ֫җťʯےáDŽɓםvϓşˇŲ˫UҗʍлĖțĵٕ‡ǣǨड़Šދ˴ܩÇƸ¾ࡳǶӝŝŞţ΁œ­ƅȄIȥġЁƀرūࠏǂЧʉеȲጥ™ԣʼnຑ޽˿Щ຅܉ࠃۛᎯ৑IǯԀůߒŒßۇξd]̢ѴĐ˝ƷжŹӥͳה¶Ӟ̘”şˍʛǜZȾ˪—ή֎ė͚ìֱּ࠘ʭljɷ˻ÔΔȹĻͻ̒ɏıɏηʧ΋ۍĔ׽ƋƝ°˅࣓̅೫௻Ƚћշ؋ಗૣɣīر܇षӟ܍ɁϙƮͽPJβωǿÔǨٽ֧ϗ~ŀőŭȃ"],["@@ǵÕࣇè੾Q"],["@@ЅΙ˂նɥ׎½ƖˍӑƇ࿏ŵ೽Hෟǹჸା֊ÿźƪЖƭ"],["@@ૺű߃O͵Ƃ"],["@@ળŴŭǐᓘŁवȁ"],["@@ોŒ܂ĨЊų"],["@@٧|ՀŒŨƍ"],["@@mͯߎʖ௸ɳ͉ϟ՝}ݚ˧ౣƣᝋʼѕک̌७ĀྔԐʜÇ፤ņ"],["@@зì˞ÒƚŽ"],["@@ûɻথ`ǴɈࢮT"],["@@ফzіDŽ࠼œ˥é"],["@@Խ†ɏ˰ᆲųܛqχǏ"],["@@ԓFÆňҎō"],["@@ࡈ¡ȨơࠓŎೃˋƟļࣃ”ᒌȲ"],["@@ûǽࡱǕٯÜՅÁµ͖ᓚd"],["@@நȩᝣ˫ƖLJਭåƀƂݷ±̅İ੄ȔৈYƂʲࢄĘ"],["@@ޭ‰ĴŰࣀUɅď"],["@@ࢿ¤ୈˎŹ"],["@@ๆįञȱීŃ৷ĢԻŐ֤ȴ"],["@@ʶǭէÇࣙɄ۶ĐӖÝ"],["@@ٿźᇮ̀ՔɟჁș"],["@@˿Ý૓Ěඔ{"],["@@૾ʿ܁ȑɰəᵥɛᅋ̌ศζ֛UIJüᏘͰՠTؐǣ"],["@@وŅף§õǕႭfȿļጀȢ"],["@@ಛÐഔP·ß"],["@@ƉĦॆvĂāࢽ™"]],encodeOffsets:[[[150236,44794]],[[149717,45566]],[[152166,46406]],[[153281,46738]],[[155651,48023]],[[158526,50496]],[[159664,51510]],[[160159,51874]],[[146188,55700]],[[140471,56423]],[[141252,56415]],[[21746,56591]],[[170650,56156]],[[154205,60436]],[[167563,60010]],[[36676,66747]],[[71702,68099]],[[-184113,70595]],[[51472,70847]],[[165343,70555]],[[173262,71251]],[[61902,71614]],[[54174,73078]],[[183155,72527]],[[141271,73224]],[[-183169,73295]],[[79496,74027]],[[81410,74468]],[[76453,74623]],[[123148,74844]],[[56648,75068]],[[72371,74850]],[[145598,75670]],[[85555,75850]],[[144395,75776]],[[116109,76187]],[[88733,76781]],[[84145,77230]],[[150319,77180]],[[139212,77220]],[[143410,77649]],[[98850,78109]],[[115178,78460]],[[152730,78500]],[[69392,78068]],[[98597,78876]],[[91663,79042]],[[133824,43318]],[[110281,80007]],[[105354,81157]],[[78079,81563]],[[94908,81598]],[[52644,81863]],[[61122,81875]],[[100019,82083]],[[51254,81997]],[[58449,82280]],[[54806,82110]],[[59348,82047]],[[55722,82405]],[[48581,82795]],[[63660,82775]],[[51485,82870]],[[81948,82789]],[[62609,82894]],[[56033,83063]],[[60030,82987]],[[64895,82637]],[[93765,83089]],[[98844,83022]],[[59198,83504]],[[65179,83568]],[[59695,83677]]]},properties:{name:"Russia",childNum:73}},{geometry:{type:"Polygon",coordinates:["@@ƒaM¡ŽÝľƅà{ª½¨ĕÂӣkĹuÕǃ¡PµSÁo‘EŧòʓēƿÞ¿̓ƛßʵ]ʍǴóĽĵîcȢɊǤÆЌ͊˨Ⱦ¬Ėœΰͪ¬X¶E’A"],encodeOffsets:[[31243,-1092]]},properties:{name:"Rwanda",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ÔôĈț̙ǪºȊńʋ"],["@@ݶęȨϧ٬T̮իWƟφș¿¯Ȗɍضѥš`Ǧ̵·ǩĽVѶࡱĞϏÿâãľǍŽk´QÐ@îløjЗÖNďȗɒ­ߴ३ᒤʽèèϤם֏။ᠽ࠽ុΑܵΥӽשř˱ʣƑƕNȻʾŒ͙ŀਙđлLjȑƁu֛̫ˉыࣂҙϚѧژЃ֭ࣞі̑ľϝӬƵ˰®Ǭƅ̦ØװԇऴқЊ́Ě̥ѺîŠį˦࿿ᘲϩĄćŘ઎लŷǶżnjŞĮƠĤƒª†׶ňlbÀŒäƘbdhdnjĂİ´сѐ̽̈ūŘɎÄɺÎԲžɜÈӲنZŰİȊƒ˰£˖¡˼±ĠഄڿෘਙߊսൠʼnƦ‚"]],encodeOffsets:[[[42996,17117]],[[47649,29795]]]},properties:{name:"Saudi Arabia",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@²·˦БAÍęÄSĹªܣɺધड़ۃƿƳs›WwW…u…µmi[ЃŃȡő‹‡µƯ•ŸƋIá_ĝh©C[gŻFÇùƧt˟̇޹ŝȕlljpǟ¬ЗͯఽϣőҷڳƱߝƇıǗŒȑȅƒϽȝؕǥœü̘³ˎٵӄ³ܢłԤБL^ǵ֑EɢʝèԷ৏ઑЁËكҠͯdzōʝбƥŕɥڛFƙɰڳXΑʼnةּ½ȦիÝŧ‰ɿѥɇݙ͓ȅԟŴÍʤżȎpМډआÀΨ˥ȠUΈĝàĵӾΣdđĦ͸ҐĹЂζ̦Ɓ͜ʐƠɘτD̸ƞƜܮfRṴ@о࠾NBဲᢴ@ᢲAƘPŞǚð¯©ŷ⯀B"],encodeOffsets:[[37757,22525]]},properties:{name:"Sudan",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@Iޓijď֡Mʁҋݼ͟ƊʃլӅɰګʆ̫ƷƱǥǝȧȟɓɉǟǛǛǗȟȡơơá³Яŀ֋ƣǗƽ˳ʂɁĿͩĞˁʛåŒƝ@ßǰˁŬѣԖǩtȳȁлĨʥƳȡvͻʜ͓϶ɑԪՉ̄ǥ͘®ưࣩږćŊhɂ̇ˢҽżŧ͔̾ȆɈݚʀѦŨŠլÞ¾ȥتֻΒŊڴWƚɯڜEŖɦвƦŎʞͰǴلҟЂÌ৐઒çԸɡʞ֒F]ǶВKŁԣ´ܡٶӃ´ˍû̗Ǧ›"],encodeOffsets:[[34896,9689]]},properties:{name:"S. Sudan",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@¬̍ǬɃ¸˥ÿȯȈˉǒ®ȶΫBҋࡓÃҁNJʼn—kŦի”˯BʅB܅HƵùǑĉɝ«ʯhć]ƥÙĕgŕb¯S£ƞˊìŽĘũʼngДĪøۄFjƘѸÒŖƈݼˏΜƠųŖέ‘םʸˍíçşࢫBǣˊŲŖƣ‰̓ՖƫöĉÝùĔ͜Ɩʮ̺ɮφˆĔ„ânưĜǞ˞ЄŸٸNJ׆ąδεĦr̆ħʰХ̶υ˜ȯņã"],encodeOffsets:[[-12575,15165]]},properties:{name:"Senegal",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ˍKƘĸŶī"],encodeOffsets:[[106465,1364]]},properties:{name:"Singapore",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@Ͳ•´ŻːVѺїʋēڧѸصƠZŀͯ†ސµ"],encodeOffsets:[[-37993,-55363]]},properties:{name:"S. Geo. and S. Sandw. Is.",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ùMÚĊ`û"],encodeOffsets:[[-5828,-16381]]},properties:{name:"Saint Helena",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@őaϧːӺʭ"],["@@ȕÿĥÈȜļĠă"],["@@͞Çɦ̳ӱĘȽŶ§ǢljˆVĺΈƵ"],["@@NŧŧôˢƸɭ"],["@@ȂƇ͔X϶χƛÅ܅ƒDžʘ\\ƆŀŽ"],["@@ȪŧʫºÂî"],["@@ŷ¤þèĊ‹ÿ"],["@@ƛ«yƞǐ|Fŭ"],["@@ƩŰƖŨTʗ"],["@@ȼʡ«ƿǶƋǬձԃծµΤĽƖƆ¸"],["@@ŔɝßėșƔ}ƨɋÁíÐɰʢɮɵ"],["@@dzĀÆŬƌÕ]ƕ"],["@@ƩǺ¦ŒȼűķǙ"],["@@޻дУиɶ¹הΥΌʡŠǩ"],["@@ƋP¾ĮĎĽ"],["@@ā˷ĐկּӠɇƌɥʚƛ"]],encodeOffsets:[[[164431,-12081]],[[170121,-11015]],[[165597,-10636]],[[165425,-9856]],[[163585,-9495]],[[164013,-9211]],[[163010,-9342]],[[161903,-8892]],[[161167,-8922]],[[164608,-8513]],[[161550,-8439]],[[160944,-8302]],[[160449,-8113]],[[163717,-8739]],[[159580,-7267]],[[161267,-7506]]]},properties:{name:"Solomon Is.",childNum:16}},{geometry:{type:"MultiPolygon",coordinates:[["@@ΧŔ˲Èǝ[ū"],["@@ÚăIy½śFwh[ĤmĬ̷Ʃʋ‡Åt[†R¤UžžĒĴ†^ÞUE›ĻǯįÝʽȗȃ͝ʱȩ˛ࠓЖL̰ǽ‹ŹĒė˜ljÎĽǺǀKLjǤʍ«qɢَȝƘǸjĴnjǠĢǔ˦ŊnjʊmȚİ՘HÌer«Œśʐ͵"]],encodeOffsets:[[[-12826,7615]],[[-11016,9611]]]},properties:{name:"Sierra Leone",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@Ȱ›Ԟ͡P]N¹^§†E’rŐÊŀœƈĝĊ`øIУbyÇʕű˹ىĐƤćક͂ʓƪ Ɩт˴uŰǰt"],encodeOffsets:[[-91507,14762]]},properties:{name:"El Salvador",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@įehɼĈɕ"],encodeOffsets:[[-57617,47963]]},properties:{name:"St. Pierre and Miquelon",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ŝ¯©ƊȀƬÀƉ÷Ļ"],["@@ýˆìĄRŋ"]],encodeOffsets:[[[6820,124]],[[7602,1606]]]},properties:{name:"São Tomé and Principe",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@tƱ­ăĿƣ_“„ŧcijO³»ĕũɃőıƒA‰MWQ›B‰‚qèŻR¥ •¨U¤uGś—Q×Pć¡·U“¡̃‡ȏΉmuĕsy•o••Q‘Äm®á¶¿ ±K¿O÷ù›ϳČȅĂбۈėѲ˿b΁תǪӈÑŸǦƜ͌|ĸƨğŞľǴȌώؠě˴ƻWnjɘþۄFټƱuʱͱ֓ňځˈΥ"],encodeOffsets:[[-55331,3717]]},properties:{name:"Suriname",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@]“œƃÿƿŷįWƍ̩É˅Ƕ߱sſș͏ů˙Ü۫ȇÉdz߱cԫȤɿ͌òDzƶȰԼ ˞ƪÚNJ֠Ɉˈģʘǖ˨ȍcƗʨoʲǢьÏǰĔҺM͌ǝϠŅÆQ"],encodeOffsets:[[23080,50251]]},properties:{name:"Slovakia",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@õręVǷŷйǭaJàĿoĹ̿ŇÞÕÏãPˆZ‡ćuŋTſ¤ƉkťĀ·âmLiy“ãíµqЭ«ʧöɢÜYòƗĤÁǂùKkZOnN~¾¦ÌšfrEhǯˆkĘƎĈ؄–\\j¶܌ĵ̀ǦࣄÒŖƼdžKȜ̛"],encodeOffsets:[[16913,47616]]},properties:{name:"Slovenia",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ćŸe˚Ԧٶзࢯ"],["@@əŇĀʷٗБŞƎűЊͶɰ̨îƨã"],["@@ϵ¤Įǒeƥ‘"],["@@ࢭÍכłūɝׁǃ˜ūǕ´Ǝljλˇٍ͎̃ԃᅿ׃ʙƳŴčʗęɛĈŌʋǟćΣLȈɳɑ̭úƵɥ’ÇůĸܿΆƑʜ®ݮӁİɥࡋͯԄˆɱʇવϣٛc׬ťɫ·@޷ʫړѭӭ࢛ŒwŇ̑±ƽŧłʯƗŋઋ^ô˲хҖˤuŧƪǜXtƒϱʐࠅ৲eȆƵzďԶ¤øNJ•êŃƠbž̨įʬڰўḔʙҪΌ¶Ƥʖ؋̴Ůӄʭࡌƨʰ԰ͺΊÚَ»ƲƆÁʔΫİۤ؂Â۠߆ƪ»Ƹ࠘ӆɵ̸րЀҔǬӼś͘ӸඖǗ͆вșƠь`ୀџܚŹڈ΍ƹгɼ‹ýʙ̈ˋʍҷϤϓ"]],encodeOffsets:[[[16926,57642]],[[19535,59224]],[[19617,59313]],[[24736,67385]]]},properties:{name:"Sweden",childNum:4}},{geometry:{type:"Polygon",coordinates:["@@Ħ»eɛÄȧNˍóz}MwţkdzZŏǹGɯ´ǯłĿǔ¯ļÛNYlR̎ʈζĴŚņô Z„GьȇvX"],encodeOffsets:[[32715,-26580]]},properties:{name:"Swaziland",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@DýƅƪÔ¦îő"],encodeOffsets:[[56874,-4805]]},properties:{name:"Seychelles",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ӏї̹éĵŋ¶رƅܷǩ˷ᇳࢳ࿥ࢱϑÐӫ̈łǸ›МƔź£Ɩ͈òñðʴʞãǰƥʰƄ΃yÕڔśŶÚɸ®ÊØMƈßvDnjƜzƘɖÀJ|ēǎR¤¨ǐ€Ü~rIJSƒ…˜±æ¥̶SôˆǒÆƾ¨ʈĜӘǫŠDǜ]ȾBŨlƺŠˤòׄɮ঴¸Ƣ¤ĜêˆRœ_jIœŸžķ"],encodeOffsets:[[43376,38e3]]},properties:{name:"Syria",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ǂ·LJ…Fþ"],encodeOffsets:[[-74068,22376]]},properties:{name:"Turks and Caicos Is.",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@QṳܭeƝƛC̷ɗσʏƟƂ͛ε̥ĺЁͷҏĒĥΤcĶӽĞßV·˦ȟ¿Χ̭Þ؇̓ó̓އݑαɹ୕ǁÏđȈƱқԡޑ½ܩεȩ˄ƕƵΝƧБbÎɜη٨ڃլ̗Шɢʎஊx͇̌ťʖđϸªؚȟւ͕Ѩǻ²ƱBōư˛ϒčΰµȸޜଶच঄ɖᠶȔΐ͘hȆΥӌǟఊࡊϖ←ႱỨལ"],encodeOffsets:[[24556,19965]]},properties:{name:"Chad",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@řԛӈ͝²ՓǸʽrႫÿIȺוŽßλŃϙ̨ǯͰĞцœNJƾڸˁͼĮüŒҢʗÄĠŠß”Įլϻ͎Ą̈ßĂҾƉ΄"],encodeOffsets:[[923,11258]]},properties:{name:"Togo",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ĥŁt͠ĨåuƷ"],["@@ĝƑmŜŌv"],["@@ĿOqƞŲƍ"],["@@O¹tWƬŠǞǩĹΟĬǟזIT½oƅö̍ȩ҇F‡òĵNťȡҹ •Ų½ÀfȸȂŢĀRRļÌôŨš€´ˆòôȔ MǢƁĚ½ĀgÄōš_hL̸Ǥ’Ġ¶ì¨ŒÂhbv†F†Œˆà^ĸIމƎÅĚk¨pĊđŮȑńơĘįʾȥÜƉ³ȉ_ljNȣÎƳȒʱĐÉƴ±Ú¥MƃȊʼnf—CÏoćĿț@ҘïZğoõsɅk»­·ã¯ĉ£»k[S—±«­ʛǜೡăʑǏ̧ҩǭsƎݝɌȳe˱ǔ͏˷и­ÿףҀ޿\\Äٺ̟Ŗ̯éȵȭČǕŁ̗rѧە།öࢯӦpżחŞƉ†äĮȫɠ࢓ę®·ɖąTwȊăƧɚΉԂ˝ЖJԔԻȑΕǏŸĹňωɩōŒÒІƯFijǸ΅øëŐţȭΡκrȖƕĨšŘȧbăȸƻČuƜəƠíǒĽôƃƓĭ¢ÁҖϰ஠°ЄζώΦ֨ǭ٤ɿМ\\ּӉզ̱ԮUȒ̮ƐˆֶȎŌÐƞ«Æƥñȅժ؛ے×вɑȒ̺ÐÒܺǖʐ̚»ҜìƄ˜Ί¨wǴɘ‹ƜĊÄQ¤‰Ĵ¿"]],encodeOffsets:[[[100771,8092]],[[102473,9817]],[[104886,12277]],[[102526,20805]]]},properties:{name:"Thailand",childNum:4}},{geometry:{type:"MultiPolygon",coordinates:[["@@ĕÃÏÔMh^@Î_ĈW"],["@@̟ɝՏȔлƳF}ånj·ly§…ù¬ʩৢÀʢlj֞Ǭ„k\\yW‹CȔ± ũɜؖ“À§ê«ΈƮЀqłZЎ¨~êdƊWJ©{ƗǖɕğĩĘȹȌÉɄĶ҆ǗèܟȌǹȑŹ_T›šċÒьʻr÷E±—‰—ΗćăPuløÌbž[˜ÁX©`ĽtćQƟ­˅šȧȧ࠯˧œŰćʂŲڂ}pÃAćsÏI“b®ɄÝŘѧĬˋ̅ǟŵ]²ķGč¿ç͏œnƏšǏ_ő“ÑÇkó~ĝ]黵¥ƒQí¨ȁƔ£RuK}Ua[]•Y·T­Sʁķó£]©oo£RŧÓġnĻüÙАÔ`ȰҊ،əɘœϢοʟŘʑîÌȾʘƀشíƨʪȖÎÁŤƖ’˻Þը~Ë̴Ŵǚ̚ġׂ͆̌ʿ͉˳ʀƷʲŽ"]],encodeOffsets:[[[72361,40812]],[[72662,41205]]]},properties:{name:"Tajikistan",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@¥GקȌǭˉɃIǵQř™ŕ½ƒÕƯщ‹Ń¯ñ˝LJˑŗ؛ƓƗĥțÝ‰Ĺ¹ƛā͉íǿǬϿ¬ɵǔçSSȼċĠºǶýϞٹKɹ˚ԝʒŹɐСƢүcށʶƇȲم„ƙƙݟ{ЙɯǙʵڇѝചƏɔ̱ŎƯÛầ̰½ŋĸ^Ȯнà¢ǵșɾÏ̂Ǯ՞ǜǵЄKɈƛѐšµŢ̬ŽԝϖʓԊ՝ıŽɝˆѕ̙ӤӀ̰ࣄǀ؞̵Ӥ֙Ҙt࢔·ĎòŻю˜ɢѰÈǸʢϐǁ˓ˢ˚†ĦĮٞϣՌĥ—ȧɒƛĿ™\\̟̬ƭڎɈò΀ƵӤय઀ۅҞƷا̞LՔɏãǛ]ƽAşXġ"],encodeOffsets:[[68119,38245]]},properties:{name:"Turkmenistan",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@΄ŶƋȧȷò"],["@@ěʤŞp¤ŮDZU]ĢɌʜǠÔਨĮ̆Ŧˤĝ͋ʓ౏һ˷ȣ"],["@@ÇƟӌŜŔ"]],encodeOffsets:[[[127014,-9565]],[[128070,-9740]],[[128662,-8335]]]},properties:{name:"Timor-Leste",childNum:3}},{geometry:{type:"MultiPolygon",coordinates:[["@@ê’ßőǥƀǜ¿"],["@@īAĎÚ^×"]],encodeOffsets:[[[-179365,-21677]],[[-178128,-19086]]]},properties:{name:"Tonga",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@ݥÅ΀ǘlˮơĬ؞ĺĭƝl҇"],encodeOffsets:[[-62476,10378]]},properties:{name:"Trinidad and Tobago",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ȡbpŴɮÅ»ď"],["@@ŻÑŎŜnÉ"],["@@ƇȅĐ֯ſǟŅŽ‹́ƃʛ२ÁȼĭϜׯЄȃјȡİ˽Ҟiؚ̦պ€ȶˆĘèĴÛϜ€״šŶͦ˄qĔतͺŴœĴ˒£ĆΣĴ¥բ˺ÔǕձחĪʍΎɅĮͥίҿӓͯÍȉɌ˟΄ȢĦʤˉ¯¹ʪÉCu‡DžOËKɇäıD©}¹ŭËǃõƍëƭû¯¹ƍûŏNjǛ§"]],encodeOffsets:[[[11221,34532]],[[11549,35588]],[[10522,32446]]]},properties:{name:"Tunisia",childNum:3}},{geometry:{type:"MultiPolygon",coordinates:[["@@ʩ@ɀĐªď"],["@@N£ʂ͙ŷȥĆ̗ԼïД˱¤«ȕIJṶ̈̄̅›ȾғvϙŶ©ȧΩ͈ǓaɳȄŧ{ů…p½PÁFǡıÛ¡™‰J™ÎNŴa ‰„“hďXƩùƇHӫŠŽ—Ƌ …SėĥƯķągĸ› iL›^‡Qěéơ£঳·ɉõιƷˣñƹ‰ŧkȽAǛ^şCӗǬʇěƽ§ǑÅó‡ğHŝRķE㦙²Ƒ†ıT}qÛ§ǏQ£Ċȉɕ¿yƗũÅ¡ĕuCƇà×Nçͦ͆̊ŝɄտ˯׃ȰࡑՓݳūΕŰ̗֛̐ɠשÄǕԃٍħϹƘɇ֑͠ĆʇƫÆİՋҪĴȦǔࠕ©ŒŲȠŒϻдƀÊRɈ߉ʢŴ̪ȞʱЂĮȥ~ťȒɂƬǗؐżƟƪǼɎډçWĐäΞҴΈҠ²džŕɆRͬĭĎŤ€Ĭowĵ࢜jȁŦƞĆݠŊءƬ†ʄᄚħǠDz܊Έࣚʎ଴½ɌĚۇŗƦƋɖāв¢̖΁̺öʎƯ૆ɓ࢜ƶ۶ũیʦ˦ƌĄĀLjà}šQĒÂҒ±ĎĴpXbPÚNÔM„]†ÑîsŴĩüng}mXy¬Ȓ—"],["@@ҐnƸΑܠ˗čȅڅÔ֡ěȭʉУǃӍΟ¨ȪҐʾֽ_ÉĮʘȒAʆʚƎ—ǘɕĬîŶtŽÐ~¨Šdɨvꈘ‚ƶd¨b¨[ưŏ"]],encodeOffsets:[[[26594,41100]],[[44476,42144]],[[28135,42954]]]},properties:{name:"Turkey",childNum:3}},{geometry:{type:"MultiPolygon",coordinates:[["@@ĝ”ʮʌǏ˟"],["@@ÜdzûÇʣʀńϚǀϝ"],["@@īҍđÚvψLjl"],["@@Ḯ႗‰ϝപ৏ΕୃÎɗ֠׉ɏгCɧŢsZǕŗεŮнDŽȿìڵبϵЋ̙ƟûۡɉзȷӑĴǏʉƷāƙ‡ͥŦ֡ŝīŠ_¾ýÒƝêŁDŻʼnÉgũfȡRȉGmĬŸÎĭ¬ƓɖºʎćҪȽђ˙Ȥęƥ߿ɚƏîہɦqĦhËjŧMįĔěŶć ɱIĝ¼ÛÞ½öğʀ˃զÿɎčƔęĺŧĦƍĤõÚijȈ¥ä…ŢuŮVºĘDŽV¬YÔ©ŶǙѢeìDÂà˶A ˆKȔŰϠպ͈͠jƄ}ŎÑPė–õd¹rmfQ¨¤ň£¬dzüǀhv’FÂp¸T „vÖlĺWĊÞKͼ§Ė©¾ß|ĽƆÞN¢„bTHŸXΚÊZ^GlG౶@ಀ@"]],encodeOffsets:[[[40665,-8168]],[[40445,-6322]],[[40822,-5023]],[[34717,-1026]]]},properties:{name:"Tanzania",childNum:4}},{geometry:{type:"Polygon",coordinates:["@@‘BµF«WίͩĕŔȽ«ŠతǼʹRː઺਎ÛȎϓƼİ͢ûǎŸ̰Ëè˂ʜͪĝɂŀ˴ʁǘƾ֌ƤаĿâ´ƢƢȠȢƀ˥®gk³Ēãł“œ“H›—NjP¯”ǍϪַm¿æ̗ZǙAţƫЋˇǝÑƥȿəǽγ‘ধ౿@౷@iF]JÉY͙ÕeáNSG"],encodeOffsets:[[31243,-1092]]},properties:{name:"Uganda",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@Ś£ӯǝĮцƛ"],["@@֝aؽ̡ȡ¤؛śڿѥɠƤ¥Ɗ͉ɁƢЩκ͓״Řͼ¹Ƴ˟ѭ¹ͯþ͓ʝԯåһ˫ϫƔĖҜ࢟ʲঀҘÏŲƏȑİ؍ûթǖƪŰϟľڲáǼŠ҃vʇӐĨҿ˹^€ĦƇůԙÛӝֻӹŧÞϱřĢƏ¤Ʊaˡħĥj]ol˱ªő°ėĔ¬„œ^DŽh^°mþÐÐʶ¾¸TîĢ–ĊÒrކ¤¿Ħ[ÖEÀ€†ǀ̒E^eHŁhEȠÞ͈ē”Tǔd²žǧĬVðPČq¸“žʱŖĭˠˏǔSЌםƶéEړˬˏę˟@­`ǧýk…Ʃ}ɻȥɇsȁ‡ȋkСƽͳǨߙÄȁKǥĂÁFəŝěƌƽrˡɰķCVƎŸİĀǀŔƄ^”ʸRšø³̰¶Êˤʘ֦Дɖ‚IJĸHðćNJČÂγπ§ǸþĮîGÖ[ðxLŰÖźĢèþத²ࠨŷƮaĸNÌQżŽͦqTāƆĪ֢}Êg¤ï–c”KIJĜàl¨Tˆx¢v”DȴȵۄĄʐǡƶæiªSē¼yĨþìŀôæú¶ŔĀȦHņ°ȒFDŽM̠§ˀɎદŽ֎ӃɵďþΣ܌©ȼƇɼ֥Ѵ’цǗڬǞԾЭDzŎֈȑɎ€ԘʅʦJz˙Ρȱˊƽǯ[ŭǻdž£ĺɯƭ͍݇ѿȵŻѥ"]],encodeOffsets:[[[32781,47313]],[[39132,48222]]]},properties:{name:"Ukraine",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@½ɤ”ĄĴĤ¾öJ̌´Õ˴mxfÈĸʎŒΦ˹Ά͝gŻ\\óŌTȸDzrNžs͒͹腲ˆϖǥ̵̰Ϫǝƈ̃А˫õëăęíéó·{‘g¿@ПƊñ£‰«Ï¿Ɨǩț—ŋ͏ʑ؝ə٫ƂӛĿޝϖօqӏӄŠؘʀʎŸŘƒdžĂàŴH֛ÂYÈjÊGÄyÀlªŀĔˆìŸdžjàŠȄrücƖÚà"],encodeOffsets:[[-59198,-31599]]},properties:{name:"Uruguay",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@ʥ¸ƕ֮ȔɞWɘՐɿͨЁٷљ"],["@@Ľ_ÝžƜO€ō"],["@@ǬhʎǍΙŷÑǒǽŮĦðĊđ"],["@@т»ŭĉα´ÞĒ"],["@@ƐűЋXƍɢʼĮƎȵ"],["@@ȣmƱŎǮƴȒGiʋ"],["@@ýMǨ¤ĩ•"],["@@Ǖƿ˖ͤĿǣ"],["@@ș֊`͂Ǻࢋ"],["@@b×ɡժɀӑ"],["@@dzĠŌ€èş"],["@@ǫU͊ČƝõ"],["@@ıkƂʏë"],["@@¨ÕůJĽŮȆá"],["@@ǩĄưZzĝ"],["@@˪©ɓ»ÕĦ"],["@@ũeź¶„Ьˏãǫ"],["@@įŵŦǼuÅ"],["@@ÏÃ֬Şઓ΁ۑÓŖǮʲņߖÔ̐Ɗȣƕ"],["@@ɉlLjĢÂō"],["@@ˍcǶĊĘå"],["@@ĕmĪƺSƋ"],["@@ȋĦƌĦĽ"],["@@ĭ‹pŌþÿ"],["@@DŽȝ̝ʪĨƆð÷ŻÅľÓ"],["@@úśüķ٦ŕŨåˤúĴXΠ»˰ŏðƃÈ@˾tԲȳ̀ŖǠN˜ÍૼœࣞʴՔȯҊdz҈DZࡪΓӨȫǎãǮ̙Ȍ›ˊΗ̦‚ŬĹĻƫ֢ʣ̲ƝÈɛ̆ౙ©ą̗܋Ӄ̽ɱϞʧɂ@ϸǶϼǶЖŨپIJࣘ͐ɐƈÅԛŠ‘öę̢Ɯ¼Ƃ´ŀ”ɘNܦEٶ@ՒԪ̰ȎΘʮͼǖȠ|ĊJᥬFDŽʄϴgӌՔʐڬٞيNJ‹ĨǷלŔήɛJଗ̴ĽÈίȰGŚ˻ǡŷկĉǽljāIJʣJçȽɻæ¦Țϵӫʛ÷‰ðÇđ{ĨŽȅƁêǵõҭבăȳǺǝηʕʶđˀЅΦÎȩɞŎYŌį|ʅשţ™ưϽȋhɌĹÃijĪŏΓ୵ÿࢿ҅Ĭʮĉǎ˜˭˱͕ʖŇěԣ^Ǣؕ࠭Ƈ©¶ǐՃ̂Đʦ̊ǎ˝ŷƽDžǐҡʮ˅ĉƽŰƑݩੱ“ȸˆҲLJdO͠ljçǵƀBƐȺtǑŐŅ£ƢŦƉČǎŊčĠêļɸ¼ŅˆŌĎïØˋə­æ÷ƭųšŦţŋ½ƐבʃȲR×˞ϙѵʬmćģŸș‹ǞКȕʏYȻȐJڂϵãǽůNԱОҾзȴć–Ƿř|«ĥʭȚЊϟį»ȗȘԳĜӠſƺɵШ`Ϻࣿ΍۸ƹƢ̣˟ƔCŏ횚×˧čƥǶPɫրZ[ɻȖɨĂį]Ǒͱʗˇ˜óŖƏďʡĆѶɏɟɻʓƐĂʼnȘëʎ¤Ă­ßýܙȫĭņ„ǡ̷ȯƫ́sȖ¹ɏͣLλNj̑Еƈ¥ɧѻ̇ŅnOţΟƕɫXƈ÷ėœȇƈĞțΙ˱ ùNjȽìMǥƭþõŹÃ×ͭɢࡑ؎વ½ǵň̷ŹɶF̄ñƫJȞűƮǿזೕÛࠋ̝ԓՁûsƠǐơĔɁ϶̍ŶȱюŊǔǯœvΆȕĥǕǰɯτʸ̨ɧĎÄƽōÉčŘLj࢔ࢗ࢐̋ƬɟÕƁ޻ȑāò@ÚĊëİ˓ȸÔƒŵĵחȜ˦NőòߍŹǺüWŜơġǗǏ›xČƣŇ͑…Ǻ¼ȃ͸Ľ˝٧¤ΓÏɣƯҋǠǥùåřȦģπŦÖ±ųğƸēȘŤ ȏ̯ǙפΕŝƻãÄşčÇǴ׹̀ĘǛƅșƕdž̹ƏҏƂŞ|ćȸɟQ͇ʀȯŗ¨ęƩ‰ޏȆյ­]Ɋ£ʓܳʯȞƐɃAŠǞɿŸŔ˧͕Ϳ߯ЍȊŦοLJĪȀɁɉĭćäÅȏˉ§`é̄ĝ̝ůŤƕų˻ˡňÚƛǪ¥ÍɩĴЙʐѱȕ÷ปӚ̉Ԣ£ЮړټϩܖֻԂۡẴijɷ҉ɵǽ߉͚ͥʔЋࠀঙڰʡˊ๟XEϙᛟIẗসĢǨ፹Ƴ˵٘ԧΪˣlăɰՙĂϱʴܿ¬ƏĞ[ҘǕò—Ǻ͑ɂӿռÐѪӳ̚ĕˮ®Ɍ̀ˏ˃МÒ ڐ¤ܱöŅˋΉȔÇÇúǪڗװōܲѱԂʈࣶϽଔ݈͠Ȃཔ»դ٨ÅȵİԛRz˚Ċơ´ȒȉǠɨĎɥÔwåȥעʉˆ¡΀ؠDZࡄāǐÂĺɋĹţ—°ˉ΁ǼlŧOfâѠφţʳĈˍDžÙ»IJǗǓ˜ÿɖ¡ΎƈȐɳŰĞŒɕƠƢ’aƐ£ĞĽb‰¸ÇŞ୎@෤@Ϊ@Ψ@ܒ@੼@。@。@ @੼@ܒ@Ϊ@ܒ@ȤAN͆ʨÅM¶ɋ"],["@@Á¹ÁĜń¡"],["@@ƯnÔüƳŜѲÛȡƩ"],["@@ѭ_ҼȔdz"],["@@Šŋёōɚ͎Ęij"],["@@ȉØļ¨ĎĿ"],["@@ƑjΚǚɇȃ"],["@@Ѿ³ڿƁÚτZ"],["@@ŽBŲĬƀ·ųµ"],["@@ԱYࠪǎŇĎɢĔļ«Ùțҳč"],["@@ˏœ̼ú«ŕ"],["@@ԾƉсċυƼˊÚ"],["@@िћͲͪʺ´þǼϮPŗƍ"],["@@ȲĈŢÅ˃ǧdž«зȃޯŷըȐĶƠǨ«ÊÊ̩ČÌň̪Ķė"],["@@ǹa}ĬǎŒǚęů{"],["@@VŰŤóŹ»"],["@@ŕìƜ¬…ŗ"],["@@ĆƑʞūɱÈ௹ˇÁǂ΄ʤ֠Ť˦Ë"],["@@đāÔƚ~×"],["@@TLJəŚvȨȐƹ"],["@@̕ǥ°ǚʈŴ^ŧ"],["@@ȴCóǩ؉Զ˨ùȢˍ"],["@@[ßƣØǀH"],["@@ŎÆÆǏʵ‘Òɔ÷"],["@@́ɱñȒδ "],["@@ƟRŦĂzē"],["@@ǫʁɓǞ˃ȱëɂȆΒ̘ľɬȑfȩ"],["@@̨gĚȕоǏΦΏ˵ĨĵķǶTǰɑȘ_õеࢭԪƈÌÙnjիǐςŖʼnĬ̷ÑDzƴ‡nj"],["@@ɉĀŐĦɮ•ųƏ"],["@@iƓŻ[̹ŲɾΜˀɇŕ"],["@@ħ²ǰ‚ćó"],["@@ʀ“ƃ£Ļø"],["@@Ǜ”ĘȒɲǿƭ¥"],["@@ɂǍǯѯȫ§Ę͊ʏ͎ȘĀźñ"],["@@̶ՌɅÙ³ʙǬƞ˫˛™еҶԦK"],["@@̯ÓöŐ̈́ĉy"],["@@̌Տ½уʣʬĈƈϓŤŌǤɉȈ̛ȫUɬ̾ɈДƷ"],["@@ЀD­ĹɢŃǑĹѹšɘŹԁijϫƣøû͓ƵȠDzϙźăȇ˫ѴҶǤά̃ŹҶ̔ōɪÄ´ƪʼÙ¡Õ"],["@@İɅɢŐ͢ğ_Ǖ̱¡̠›¢ȱՏƼŅȷǿvփѴȺȺƬķ¦Č̪ "],["@@φcΖџЁΔ͌׉ԕʹ|τνܼȲNj"],["@@ϊ¥āōǗ֓įʏzˣƙϟĀ;ǮǢeÍŚΦ³"],["@@ų´Ȭà÷œ"],["@@DZüΔńǡǿ"],["@@ȿWNJĊ¶ñ"],["@@ŌӲΐƊs׹ѧ"],["@@;ÍŚͳҳűࠫȴʟǖԌV̢ƒ˺B"],["@@ʖѡřëŔʸ”"],["@@ŇɭēĸȜŶ"],["@@іƃͻ|ΉȪʰġ"],["@@ή¯آĂضʳ۴¿›ćԓ•ʽǷţƔࡻ˔ڃÿī̐ʄ¿"],["@@@݁@௯@݃@௯@݃@௯@݃@ӫȪ“Ȧ“ÖæЖĭʠŪψVžH@Áµě¡õˈřҨ˭،͓ÔʻèYƊîŶ¬˂ĠȠDĦʶǂj™ŀԴľˮ^ˈƑĜʑɢõʆDžÂÍĤ÷֠̅ɬɽɰɱϜϗĜýŢŋÎÝ¡­·ÅƴŀkՓąȨÔǝ̒ƒۖʗƠƒÂĝˆ[ìƃǙޥ̣ɋɱŽǓ̌ʤƈ͇դĂņفDZǗ˻ơÄ©ż̨΀ʘ ˱ˆʙƮգՖաĮƵЂ҂ÛΙɢ˺œ̩ ƍãʷȒżϒ˧ʇӉȄӳߺśǻΌߧЙƔ˛WũΠǼÜDžqŏƦÛʃٙɨÏƉϐÃŊLJɒ_Ɛűҟǫ޽˴ࠃӬ੏̤ɔƞBɌȎ˽ÆǬȞ`ϋƪࠧʩࠩNJ@Ǹɗŭੳń৛åŔ׹ƺǮˬҵʏճĈȊƢݩàƮèȷðƀ˄ºങȇĩàɈɂӹƅCǥDZwʦŵ͑ƻѪîž÷ϻзۯTŅĜǟ˯ĭŲñƳǡ ljǽ΅G˝ˁȽ¨үģDZÜÆĸРŊ̔Ɍ͹Ĺ͹ŎϨв’ϖޒʨମŭࠓʜԶˢҗȃՕl࠙ˑߓ׷П~̬ʡҩŽIJŏҹ¿ѳЭٔǑgǣ܍ϙ–ŧٕť٩ϕփǩNj̋ງӗřĻɶįȓőñĺǕǓ؝ƩŗƹģǺؓʭݏƓ½ŢȰ~˅ÚҳЕʿñȳǎ™ȿDž•ɉĢWůǡÝ´ʂ̺Ø৬װМĪˈwęęǞŏĆĮΒÅȻǜȦʶ୒ӌȲó^ȶ˸ɒЌȖ͒kȟƢð̺ΖŤʛº‡ƘҤ˄ƔͰ˩ɍࢣɛʿȤàŲ̂m˻ĦɋƇŋœj҃Ƌ‰؁ьȿùωȚݑɃĩʼnڅsΞŴäˆ˱ŠŸϊӽאϬΌ؇ΩĪɻटǁϳĄݑԔ˝”Ҥ̎Фķ­ƭ̼ƤɨƧʸƖСĆː¤ƍÈȵĕवÌȸƮΉ¶LĘʕơʡȞfǜʵT_Ė̠œɧĜϺÈāȘњ̼ξpƚǴǟïMʜΒĦqƺϺ‚˜ĹķğȞøǼ¹֔Ȃ˶ɚʸÛܾĘ˒ɖǫζхƶҸŨÜƪɱƜՇğࢡχͫɸºȓӍƒ੟œএň˳ŪÆǖљȘ٬ňਹŘֹȢහФ٦Yũǀ૆ɨ۔[ɋBŝ̡˴ō๘“ДȪΞýïŪڝÞՃͦƴŤ٪ЧŇNJх¶҅ıϫŰŘːຽèӿшᖉن΀ÆƞϮঔEনżဤજljƛࣞŤ݊ʌɂʿ¨Ȁάx׍ĢʹŶ̮üÂʼnૼĤ௄Ң@ĭݠƝӉljƤïڴɎࠆʡ߲Ōذ§ɐÑƓǃՊ»Ƨĝᖨ¤ೂʃཐµՀŵဖĞіéદ͉;E@݃"]],encodeOffsets:[[[-159315,19469]],[[-160613,21272]],[[-160242,21435]],[[-160986,21725]],[[-161586,21972]],[[-163197,22459]],[[-82989,25311]],[[-82311,25746]],[[-99502,26788]],[[-82111,27934]],[[-93996,30209]],[[-86945,30355]],[[-91365,30807]],[[-121188,34187]],[[-122924,34733]],[[-122759,34898]],[[-77357,36086]],[[-75912,40634]],[[-74250,41970]],[[-71657,42256]],[[-72202,42370]],[[-72951,42488]],[[-69823,45397]],[[-125331,48533]],[[-125514,49313]],[[-97078,50179]],[[-180517,53036]],[[-182148,52890]],[[-181399,52958]],[[-180831,53112]],[[184042,53152]],[[181674,53128]],[[-177718,53388]],[[-176603,53527]],[[-178869,53284]],[[177893,53617]],[[176960,54286]],[[-171995,54626]],[[-170614,55195]],[[-169821,55369]],[[-169534,55436]],[[-166193,56164]],[[-167399,56301]],[[-163343,56476]],[[-134491,56402]],[[-163709,56452]],[[-136050,56212]],[[-164177,56666]],[[-164541,56643]],[[-136504,56877]],[[-159299,57161]],[[-134122,56821]],[[-136771,57692]],[[-135966,57598]],[[-135283,57456]],[[-157909,57872]],[[-173829,57995]],[[-135932,57883]],[[-137205,58210]],[[-136567,58372]],[[-156679,58496]],[[-138209,58728]],[[-156567,59212]],[[-138987,59643]],[[-137912,59558]],[[-156074,59761]],[[-156145,59889]],[[-164781,59983]],[[-151574,61507]],[[-151281,61249]],[[-170122,61833]],[[-149907,61901]],[[-151202,61902]],[[-176888,61909]],[[-175578,65168]],[[-144386,70425]]]},properties:{name:"United States",childNum:76}},{geometry:{type:"MultiPolygon",coordinates:[["@@§QûD«T‚æBb로ÂfE´ÍŰmſ"],["@@‚d´‡è—hiGo࢟ӹҬƝńƧɀÓǂ@Ā{`ZZǦƺt¸ƤŠó´sˆ]ÆđjĭäOĀmÂn¤[b¯LývWŴ|ʜƣЊ“ѹʫǝªYųɏXρʋ͛ŔˁɿƸ͊˴̋ˀׁ̙ͅĢųǙÌ̳է}˼Ýƕ‘ÂţȕÍƧʩسîʗſËȽʒí ŗπɛϡɚɗ҉؋_ȯÓMx«xýI÷œÙQĹ£ĽtŃČȭŒʱoWĢBŠ^ƾäǜՓɐ̝KફبҝƸ੿ۆӣरͿƶɇñڍ‚̫Ʈ[̠ŀšɑƜ˜ȨՋĦٝϤĥĭ˙…˔ˡϏǂǷʡѯDzɡżэčñ࢓¸AᶢᓢҼᏠউࠜݷৼŘਢÝϴƎӺͻʴεʠĨùࠡЪUǰۅਐdƪƗÅȁȴŹʀƒXɈӎҤຘۖ"]],encodeOffsets:[[[72916,40850]],[[72650,43263]]]},properties:{name:"Uzbekistan",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@ÿŊň҇Ǜ"],encodeOffsets:[[-62642,13474]]},properties:{name:"St. Vin. and Gren.",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@Ñäźļ®ķŕç"],["@@ķǦĈíÅ"],["@@ËȳСĂDŽĖƺíưŊ"],["@@|S’wÌǷͯΏɷeғˏ˧ĉɏ¸ʩśŧΥЙַ̎]Ɲǔ͑\\DZŖĴɛϖΥƦ࣭ւù—ɋӛȋǑ͵ݱΟ̳ΕéE„žƃŠ͇ǕʋeѻϦ˫খ΃ͺȫ@ҢԺ̍ϖNjզ~ٚ̎ֈOɀ̓ĠԧŏߣƒםۤԛŘ͡ē݅žǛ˴ɝźèٚɳ˺ŋКɗŴʵÅ̠ԄŘמừψ̤ʒЂ՜ǐ՗ʕĸ͉njƩõeŘ˱ѥۻв٣͆Ħƀǀ„̜ω۞tδਤ΄ŖŮʖWǖ́¡ÿɘìDzǖä̼וڮ¡ήɫĒЅƀǑཤŞͪ̿؈ƿɼz֌̠Ϧžџ§þ᎚ĘсǍ҃]Ȓȯ¯ȝdžŨȖΗČČÊ»CƂâG˺˿}ƶƬäڞ҃ȗǥȋү̷E˄ƽцƴՒrŴÉƼȱcµĭ³s}•ĝЗȫǣɷĤǷu𦱼W¶nÖC ]h_H•—³˕ƫΫÕµęnÙ~ÇA½pƝ‘Å›ßãóġ^ǬțǶȥDzȡ"]],encodeOffsets:[[[-62461,9081]],[[-62280,9358]],[[-65381,11399]],[[-62199,5327]]]},properties:{name:"Venezuela",childNum:4}},{geometry:{type:"Polygon",coordinates:["@@Ƽ™ʷ£ļþ"],encodeOffsets:[[-66320,18222]]},properties:{name:"U.S. Virgin Is.",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@̥ƙ˼Ǹj"],["@@ĹmŸŊ}ě"],["@@ǗĽÔƨń©"],["@@ҿȉ±ȕǃęЙªÐɟǟǩnœӵϟ̥ࠇɢϵԢұgȑĝx௴ணǒRڔߟМӝŸ˗j̗ğŶĭėðɉĉrOׅƅŏ«ɋݡσÿƩث˓ɉɚ·ɕȃŖķÏŖi`űʗF˒ƳDžɍϫ̦άэãſչψˠͿTǓ֗ʭ͕ϵ́łŲݲvڮȪ͞ʁǨśȥȮΤļǒƖAǮɨÇúĚ̌ŽĈŁʼÍEȲʯɎI˺žļͤÑ^ɘʊ~њ˚Ʋ™ĨĖ֔Ŋ΂ɯׂǀӠIĨV®išqÄÚކ¾šÒhưµæĕØķĂ·¸ĩƸpŠƠê€~HüϹʺ‹š•IJeV“‡©é’ġƄYƜO²oÞțɜɛǖ˃˔ēȸϹÜ˿Ʉwú¶ĶD†ռHˆŠtĄ°ˆÀWæêfz€FǔNʊזPžŖ¶è\\ÊĨĪBđò“„űFkh_ÂI’žĹĕVqb’œÒš®t¨üȟƤŻþÿ‚ϹȽƟêɅ¼ęªȁʼƒÂĊΒĕ®{ÔcQwõÝCáȔϣЌ¤ˆ¼ªƜȮĘіʫ̂˔ƔƳņnj˒ȭǜɔȔąˆIJƬ˄ΊǬӊΡʰ¢Ōĥɚ¨ȨʼnȕɷĨѭʶ¯͊˅΄žǴū"]],encodeOffsets:[[[106562,10641]],[[110102,21429]],[[110186,21727]],[[110564,22025]]]},properties:{name:"Vietnam",childNum:4}},{geometry:{type:"MultiPolygon",coordinates:[["@@ŧéʼnŮ~ŌȴǏ"],["@@̇Ì|ȒņZdžʷ"],["@@ŞŹ»đ̭ôĪƄƢT"],["@@ɟsƖʾš"],["@@̯ĜȠŮŐɉ"],["@@Τ̓͗ėčʹǓØ¢ǐŖÞƯ"],["@@ȥ_ˠƚùŹ"],["@@Ä˥ɠȆŀэęř˯§ŃȎÁٜƬƹ"],["@@Ż…gĈĄ²àij"],["@@ąIJöâPǓ"]],encodeOffsets:[[[173560,-20009]],[[173399,-19394]],[[172489,-17963]],[[172490,-17181]],[[172336,-16728]],[[171431,-16482]],[[171942,-15806]],[[170748,-15182]],[[171607,-14603]],[[171509,-14240]]]},properties:{name:"Vanuatu",childNum:10}},{geometry:{type:"MultiPolygon",coordinates:[["@@ϧœœŨϊmŲƕ"],["@@ƀȁ¡ijʻZȱɲϐª"]],encodeOffsets:[[[-175569,-14383]],[[-176469,-13788]]]},properties:{name:"Samoa",childNum:2}},{geometry:{type:"MultiPolygon",coordinates:[["@@Τv˘ġ͍lj·•͹ǶȀƶȔß"],["@@ÇĖþ½"],["@@ÿŒÌºtą"],["@@ُ̕Ź˱˜ʧݧίဇӳֳӳ֭Cӧ͗ԳǑोŃԳѭΝBԥǫ̷Řūɋӌ¨ΨNjˌŹެãǎǕČŢĀçˠĺ̈́‘˸̬ˊv֜ȒƂмLJਚĒ͚Ŀ৊‹ȼʽƖMʤƒŚ˲ӾתܶΦូΒजጉ"]],encodeOffsets:[[[55054,12941]],[[43783,14034]],[[43815,14307]],[[54360,17048]]]},properties:{name:"Yemen",childNum:4}},{geometry:{type:"MultiPolygon",coordinates:[["@@ɡŠǘÐÊę"],["@@ƾӋÃ౑ӯǶŅóijřʇεH̹ÜM°ĻŀǓǰŁǐ³ɰ]ǺHYŐlǴxŤ~NôyòLźyΤVĠD̏଍ȽΟߙٍ଩࿋౫ફହݫկȧԻnșʣӑ¾ƩǏșIݭƴίõ׵Òʷ·ϧʭੑùё˓؇ƞ‚ĺțŤɡ[áʀɃuȧğƄæІӧݞĪĴƆ“ǜȴīٚܧઢͭ࢔ǭͨʕ͢ʶƒ‚¶nŌ€œ†ü¶¶ļŎďƞŗöέܨǁ܎«ìŒÊƚȐƄφļ@Ţ@ᲄϜ̵̦٥ŷ۝ĊęߤP˜†¨ĆȈØä²łLjɈƜޔ¦žɾ֦ɪƚȬEъʹÚsȊMŚğݐ[ʰĀͦޒĶœČ€ɠ¶°€͒˼ɀ֎ֶޜ”ͮΐՊǴĘðÊĮİÆȠhZBʈ Ȭʎěɨ‹ɂ€̦Uļ‹ú³ɐࣣɈ·","@@Ɯ˳͞ˑʮÒĚɜ̈́ɊlϜǨšȀŶŒ²ŀŒĺíȖ֧ђ•YģkȩïůßĿÿȉÇχӡȥęŘ˅"]],encodeOffsets:[[[38766,-48070]],[[32563,-24465],[27847,-30659]]]},properties:{name:"South Africa",childNum:2}},{geometry:{type:"Polygon",coordinates:["@@ĐŽĐđ[ûuëǾǓRį`ĞƋ̳ʣòʱģȷ‡[Mįàſ©ΟôǏƠ‘ҋ̓Oѯʟ̫ńĉƸˏƖÌ®Ó᠁ࠑƐշޅ­ӗʓŷҙ̩۟މࢿȭéϑĦ˳“إƪɍȌɥ¨ϩŒݧƇঽ࡚ǵ֢A౞@˒@˒@ڠȘ@൒@ĶZåDŽH²pĜØފcܔͲɑXʋފǤ¼Ή֪ɡڢÙˮ͖Βխ۶ʓŜˋƮõʆϋǀ{̒ŲȄǃjંʋÓmDžΟÎӥҌċȶɘࡢ“ܸǟϢЀτzʦ༔ʖâLJ¾õÜÝĞ»ɰJĊŸð¹lûİēȶƒFÝl‡ۂɥƎíÜǷŸf"],encodeOffsets:[[33944,-9834]]},properties:{name:"Zambia",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ǵḀ̄TɁ}ɩŒʍĜȩŽʇŸYA¥ŠßàǍ¾aȄࡗȲ́ЬTҼͯrđ͆ࡓӀȕԌבࠂ`ƨئƩ˴”ϒĥȮêފࣀ̪۠ŸҚӘʔކ®–̑ڢyעͽࡐʃÑƝĮఏʗӥŴƍÓʇǸԃп֥śЏÜƉࡁࡃšđ"],encodeOffsets:[[32039,-22939]]},properties:{name:"Zimbabwe",childNum:1}},{geometry:{type:"Polygon",coordinates:["@@ڽը¿ުەߖ٬֖NΦxHޠ—цǒŴ\\ǔéº`Ęfú[ǜ¹~}¢ũІĀcĖŸÌ›œ£¢áfÁnÛ½˩ƄÇÞŻ~eÖBŒvİ”¤RXĩ̙Ą§’až÷Îŕœ÷ĸȣ¡ıǽûsmQ}«»ď§řjʅõōDđ³Û«ŷ³அɘŅ™ĭ“āuƕɳ`«Ī¢§NÙéžõʠ{ɩɥƤǵšɇ"],encodeOffsets:[[75785,34052]]},properties:{name:"",childNum:1}},{geometry:{type:"MultiPolygon",coordinates:[["@@͙̄͟ƹիԠύfʛϋӻýģлʫ@˭ƪǕIđŠ\\™cȝ`¥”CƴˁȖƈʊƣǶɪɦʟ|öÜêOž¡¨ĩŽ_¬ƖɴĂxĮ’ņšஆɗŸ´Ü¬Ĕ´ŌCʆöŚiШ®¼P~tnǾü~Ðd¢̀NJŰÜŀÄǬȲ_„́êǁƘ˹Ҏǹҍ†ĽȱǷ´ǡæͅìíƐĵn­ĵ˜§rчɃŝƑŢa¸ȵw"]],encodeOffsets:[[[80376,33312]]]},properties:{name:"",childNum:1}}],UTF8Encoding:!0}):i("ECharts Map is not loaded"):i("ECharts is not Loaded")}))},c553:function(e,t,i){},c611:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"emailList",attrs:{data:e.list,stripe:""},on:{"sort-change":e.handleSortChange}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialReadingCriterionId",label:e.$t("trials:reviewTrack:table:criterionName"),"show-overflow-tooltip":"",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.TrialCriterionName)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"BusinessScenarioEnum",label:e.$t("trials:emailManageCfg:title:businessScenario"),"show-overflow-tooltip":"",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("Common_File_BusinessScenario",t.row.BusinessScenarioEnum))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ToUserTypeList",label:e.$t("trials:emailManageCfg:title:toUserTypeList"),"show-overflow-tooltip":"",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.ToUserTypeNameList.length>0?t.row.ToUserTypeNameList.join("、"):"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"CopyUserTypeList",label:e.$t("trials:emailManageCfg:title:copyUserTypeList"),"show-overflow-tooltip":"",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.CopyUserTypeNameList.length>0?t.row.CopyUserTypeNameList.join("、"):"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"FileName",label:e.$t("trials:subject:title:report"),"show-overflow-tooltip":"","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{icon:"el-icon-view",disabled:!t.row.fileInfo,circle:"",title:e.$t("trials:uploadedDicoms:action:preview")},on:{click:function(i){return e.handlePreview(t.row.fileInfo.RelativePath)}}}),e._v(" "),i("el-button",{attrs:{icon:"el-icon-pie-chart",circle:"",title:"生成报告"},on:{click:function(i){return e.handleGenerate(t.row)}}})]}}])}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"80px",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{icon:"el-icon-message",disabled:!t.row.fileInfo,circle:"",title:e.$t("trials:subject:title:send")},on:{click:function(i){return e.sendEmail(t.row)}}})]}}])})],1)],1)],2)},a=[],r=i("db72"),o=(i("ac6a"),i("a481"),i("3e42")),s=i("958c"),l=i("6071"),c=function(){return{BusinessScenarioEnum:null,CriterionTypeEnum:null,TrialReadingCriterionId:null}},u={name:"Message",components:{BaseContainer:l["default"]},props:{data:{type:Object,default:function(){return{}}}},data:function(){return{searchData:c(),list:[],total:0,currentRow:{},editDialog:{title:"",visible:!1},loading:!1,trialId:"",trialCriterionList:[]}},watch:{list:function(){var e=this;this.$nextTick((function(){e.$refs.emailList.doLayout()}))}},mounted:function(){this.trialId=this.$route.query.trialId,this.getList()},methods:{sendEmail:function(e){var t=this,i=this.$t("trials:subject:message:sendReport").replace("xxx",this.data.Code);this.$confirm(i).then((function(){t.loading=!0,Object(o["re"])({VisitTaskId:e.fileInfo.VisitTaskId,SendFileRelativePath:e.fileInfo.RelativePath}).then((function(e){t.loading=!1,t.$message.success(t.$t("trials:subject:message:sendSuccessfully"))})).catch((function(){t.loading=!1}))}))},handleGenerate:function(e){var t=this;this.loading=!0,Object(o["qe"])({SubjectId:this.data.Id,TrialReadingCriterionId:e.TrialReadingCriterionId,BusinessScenarioEnum:e.BusinessScenarioEnum}).then((function(i){t.loading=!1,t.$set(e,"fileInfo",i.Result)})).catch((function(){t.loading=!1}))},getTrialCriterionList:function(){var e=this;Object(s["U"])(this.trialId).then((function(t){e.trialCriterionList=t.Result})).catch((function(){}))},getList:function(){var e=this;this.loading=!0,this.searchData.TrialId=this.trialId,this.searchData.IsDistinguishCriteria=!0,Object(o["Jd"])(this.searchData).then((function(t){e.loading=!1,t.Result.forEach((function(t){t.ToUserTypeNameList=e.getUserTypeName(t.ToUserTypeList),t.CopyUserTypeNameList=e.getUserTypeName(t.CopyUserTypeList)})),e.list=t.Result})).catch((function(){e.loading=!1}))},getUserTypeName:function(e){var t=this,i=e.map((function(e){return t.$fd("UserType",e)}));return i},getUserList:function(e,t){return e.filter((function(e){return e.EmailUserType===t}))},getUsersByType:function(e,t){var i=e.filter((function(e){return e.EmailUserType===t})),n=i.map((function(e){return e.RealName}));return n.join("、")},handleAdd:function(){this.editDialog.title=this.$t("common:button:new"),this.currentRow={CriterionTypeEnum:this.criterionType},this.editDialog.visible=!0},handleEdit:function(e){this.editDialog.title=this.$t("common:button:edit"),this.currentRow=Object(r["a"])({},e),this.editDialog.visible=!0},handlePreview:function(e){e&&window.open(e,"_blank")},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=c(),this.getList()},closeDialog:function(){this.editDialog.visible=!1},handleSortChange:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()}}},d=u,f=i("2877"),h=Object(f["a"])(d,n,a,!1,null,null,null);t["default"]=h.exports},c62c:function(e,t,i){var n=i("6d8b"),a=i("6cb7"),r=i("9e47"),o=i("2023"),s=a.extend({type:"singleAxis",layoutMode:"box",axis:null,coordinateSystem:null,getCoordSysModel:function(){return this}}),l={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}};function c(e,t){return t.type||(t.data?"category":"value")}n.merge(s.prototype,o),r("single",s,c,l);var u=s;e.exports=u},c637:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"personnel-container"},[i("Staff",{ref:"staffList",staticStyle:{width:"100%"}})],1)},a=[],r=i("b02f"),o=i("a082"),s={name:"PersonnelManage",components:{Staff:r["default"],Site:o["default"]},data:function(){return{activeNames:["Staff","Sites"]}},methods:{refreshPage:function(){this.$refs["staffList"].handleReset(),this.$refs["siteList"].handleReset()}}},l=s,c=(i("de66"),i("2877")),u=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},c662:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container"},[i("div",{staticClass:"ImageReviewTask-list app-container"},[i("el-row",[i("el-col",{attrs:{span:12}},[i("el-card",{staticClass:"box-card"},[i("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[i("span",[e._v("Global1")])]),e._v(" "),i("el-collapse",{model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},[i("el-collapse-item",{attrs:{title:"Timepoint Efficacy Assessment",name:"TimepointEfficacy"}},[i("el-table",{ref:"TimepointEfficacyTable",attrs:{data:e.Global1VisitRS,stripe:"",size:"small"}},[i("el-table-column",{attrs:{type:"index",width:"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitName",label:"Visit","show-overflow-tooltip":"","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.VisitName+" ")+"\n "),i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return e.goCRF(t.row)}}},[e._v("CRF")]),e._v(" "),i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return e.goVisitImage(t.row)}}},[e._v("Image")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"OverallResponse",label:"Timepoint Efficacy Assessment","show-overflow-tooltip":"","min-width":"100"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Agree",label:"Agree or not","show-overflow-tooltip":"","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-select",{staticStyle:{width:"100%"},attrs:{size:"small"},model:{value:t.row.GlobalRSSelect.Agree,callback:function(i){e.$set(t.row.GlobalRSSelect,"Agree",i)},expression:"scope.row.GlobalRSSelect.Agree"}},[i("el-option",{attrs:{value:!0,label:"Agree"}}),e._v(" "),i("el-option",{attrs:{value:!1,label:"Disagree"}})],1)]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"newRS",label:"Updated Timepoint Efficacy Assessment","show-overflow-tooltip":"","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-select",{staticStyle:{width:"100%"},attrs:{size:"small"},model:{value:t.row.GlobalRSSelect.NewRS,callback:function(i){e.$set(t.row.GlobalRSSelect,"NewRS",i)},expression:"scope.row.GlobalRSSelect.NewRS"}},[i("el-option",{attrs:{value:"test1",label:"test1"}}),e._v(" "),i("el-option",{attrs:{value:"test2",label:"test2"}})],1)]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Note",label:"Comments for This Timepoint","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-input",{attrs:{type:"text",placeholder:"",size:"small",disabled:e.isReportSaved},model:{value:t.row.GlobalRSSelect.Note,callback:function(i){e.$set(t.row.GlobalRSSelect,"Note",i)},expression:"scope.row.GlobalRSSelect.Note"}})]}}])})],1)],1),e._v(" "),i("el-collapse-item",{attrs:{title:"Comments for the Subject",name:"CommentsForSubject"}},[i("el-input",{attrs:{type:"text",placeholder:"",size:"small",disabled:e.isReportSaved},model:{value:e.SubjectNote1,callback:function(t){e.SubjectNote1=t},expression:"SubjectNote1"}})],1),e._v(" "),i("el-collapse-item",{attrs:{title:"Previous Global Reads",name:"PreviousGlobalReads"}},[i("el-table",{ref:"GlobalReadsTable",attrs:{data:e.PreviousGlobalReadsList1,stripe:"",size:"small"}},[i("el-table-column",{attrs:{type:"index",width:"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitName",label:"Visit","show-overflow-tooltip":"","min-width":"100"}}),e._v(" "),i("el-table-column",{attrs:{prop:"OverallResponse",label:"Timepoint Efficacy Assessment","show-overflow-tooltip":"","min-width":"100"}})],1)],1)],1)],1)],1),e._v(" "),i("el-col",{attrs:{span:12}},[i("el-card",{staticClass:"box-card"},[i("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[i("span",[e._v("Global2")])]),e._v(" "),i("el-collapse",{model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},[i("el-collapse-item",{attrs:{title:"Timepoint Efficacy Assessment",name:"TimepointEfficacy"}},[i("el-table",{ref:"TimepointEfficacyTable",attrs:{data:e.Global2VisitRS,stripe:"",size:"small"}},[i("el-table-column",{attrs:{type:"index",width:"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitName",label:"Visit","show-overflow-tooltip":"","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.VisitName+" ")+"\n "),i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return e.goCRF(t.row)}}},[e._v("CRF")]),e._v(" "),i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return e.goVisitImage(t.row)}}},[e._v("Image")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"OverallResponse",label:"Timepoint Efficacy Assessment","show-overflow-tooltip":"","min-width":"100"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Agree",label:"Agree or not","show-overflow-tooltip":"","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-select",{staticStyle:{width:"100%"},attrs:{size:"small"},model:{value:t.row.GlobalRSSelect.Agree,callback:function(i){e.$set(t.row.GlobalRSSelect,"Agree",i)},expression:"scope.row.GlobalRSSelect.Agree"}},[i("el-option",{attrs:{value:!0,label:"Agree"}}),e._v(" "),i("el-option",{attrs:{value:!1,label:"Disagree"}})],1)]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"newRS",label:"Updated Timepoint Efficacy Assessment","show-overflow-tooltip":"","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-select",{staticStyle:{width:"100%"},attrs:{size:"small"},model:{value:t.row.GlobalRSSelect.NewRS,callback:function(i){e.$set(t.row.GlobalRSSelect,"NewRS",i)},expression:"scope.row.GlobalRSSelect.NewRS"}},[i("el-option",{attrs:{value:"test1",label:"test1"}}),e._v(" "),i("el-option",{attrs:{value:"test2",label:"test2"}})],1)]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Note",label:"Comments for This Timepoint","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-input",{attrs:{type:"text",placeholder:"",size:"small",disabled:e.isReportSaved},model:{value:t.row.GlobalRSSelect.Note,callback:function(i){e.$set(t.row.GlobalRSSelect,"Note",i)},expression:"scope.row.GlobalRSSelect.Note"}})]}}])})],1)],1),e._v(" "),i("el-collapse-item",{attrs:{title:"Comments for the Subject",name:"CommentsForSubject"}},[i("el-input",{attrs:{type:"text",placeholder:"",size:"small",disabled:e.isReportSaved},model:{value:e.SubjectNote2,callback:function(t){e.SubjectNote2=t},expression:"SubjectNote2"}})],1),e._v(" "),i("el-collapse-item",{attrs:{title:"Previous Global Reads",name:"PreviousGlobalReads"}},[i("el-table",{ref:"GlobalReadsTable",attrs:{data:e.PreviousGlobalReadsList2,stripe:"",size:"small"}},[i("el-table-column",{attrs:{type:"index",width:"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitName",label:"Visit","show-overflow-tooltip":"","min-width":"100"}}),e._v(" "),i("el-table-column",{attrs:{prop:"OverallResponse",label:"Timepoint Efficacy Assessment","show-overflow-tooltip":"","min-width":"100"}})],1)],1)],1)],1)],1)],1),e._v(" "),i("div",{staticStyle:{"margin-top":"50px"}},[i("el-form",{ref:"basicInfoForm",attrs:{size:"small"}},[i("el-row",[i("el-col",{attrs:{span:12,offset:6}},[i("el-form-item",{attrs:{prop:"Qualified",label:"Which one do you prefer?","label-width":"200px",rules:[{required:!0,message:"",trigger:"blur"}]}},[i("el-radio-group",{attrs:{disabled:e.isReportSaved},model:{value:e.adReport.SelectGlobalId,callback:function(t){e.$set(e.adReport,"SelectGlobalId",t)},expression:"adReport.SelectGlobalId"}},[i("el-radio",{attrs:{label:e.dbAdInfo.Global1Id}},[e._v("Global1")]),e._v(" "),i("el-radio",{attrs:{label:e.dbAdInfo.Global2Id}},[e._v("Global2")])],1)],1)],1),e._v(" "),i("el-col",{attrs:{span:8,offset:6}},[i("el-form-item",{attrs:{label:"Note: ",prop:"Note"}},[i("el-input",{attrs:{type:"textarea",rows:8,placeholder:"Please input Note"},model:{value:e.adReport.AdNote,callback:function(t){e.$set(e.adReport,"AdNote",t)},expression:"adReport.AdNote"}})],1)],1)],1),e._v(" "),i("el-row",[i("el-form-item",{staticStyle:{"margin-left":"120px"}},[i("el-button",{staticStyle:{float:"left","margin-left":"500px"},attrs:{type:"primary",disabled:e.isReportSaved},on:{click:e.AddADReport}},[e._v("Save")])],1)],1)],1)],1)],1),e._v(" "),e.dialogVisible?i("div",[i("el-dialog",{attrs:{title:e.dialogTitle,visible:e.dialogVisible,width:"90%"},on:{"update:visible":function(t){e.dialogVisible=t}}},[1==e.rowVisitNum?i("baseline-task"):e._e(),e._v(" "),1!=e.rowVisitNum?i("visit-task",{attrs:{"global-row-visit-num":e.rowVisitNum,"visit-tp-code":e.rowTpCode}}):e._e()],1)],1):e._e()])},a=[],r=i("0a05"),o=i("414c"),s=i("54b7"),l={name:"GlobalTask",components:{VisitTask:s["default"],BaselineTask:o["default"]},data:function(){return{token:zzSessionStorage.getItem("TokenKey"),pageAdInfo:"",dbAdInfo:"",isReportSaved:!1,activeNames:["TimepointEfficacy","CommentsForSubject","PreviousGlobalReads"],PreviousGlobalReadsList1:[],PreviousGlobalReadsList2:[],SubjectNote1:"",SubjectNote2:"",Global1VisitRS:[],Global2VisitRS:[],dialogVisible:!1,rowVisitNum:0,rowTpCode:"",dialogTitle:"",adReport:{AdID:"",SelectGlobalId:"",AdNote:""},timepointEfficacyList:[],previousGlobalReadsList:[]}},created:function(){this.pageAdInfo=this.$route.query},mounted:function(){this.GetAdReport(this.pageAdInfo.Id)},methods:{GetAdReport:function(e){var t=this;Object(r["c"])(e).then((function(e){t.PreviousGlobalReadsList1=e.Result.Global1.PreviousGlobalReadsList,t.SubjectNote1=e.Result.Global1.SubjectNote,t.Global1VisitRS=e.Result.Global1VisitRS,t.PreviousGlobalReadsList2=e.Result.Global2.PreviousGlobalReadsList,t.SubjectNote2=e.Result.Global2.SubjectNote,t.Global2VisitRS=e.Result.Global2VisitRS,t.dbAdInfo=e.Result.ADInfo,t.adReport.SelectGlobalId=t.dbAdInfo.SelectGlobalId,t.adReport.AdNote=t.dbAdInfo.AdNote}))},AddADReport:function(){var e=this;this.adReport.AdID=this.pageAdInfo.Id,Object(r["a"])(this.adReport).then((function(t){e.$message.success("Report saved successfully"),e.GetAdReport(e.pageAdInfo.Id)}))},goVisitImage:function(e){var t=this.$router.resolve({path:"/showdicom",query:{tpCode:e.TpCode,visitNum:e.VisitNum,token:zzSessionStorage.getItem("TokenKey")}});window.setTimeout((function(){window.open(t.href,"_blank")}),1e3)},goCRF:function(e){this.rowVisitNum=e.VisitNum,this.dialogVisible=!0,this.rowTpCode=e.TpCode,this.dialogTitle=this.globalInfo.TrialCode+"/"+this.globalInfo.SubjectCode+"/"+e.VisitName}}},c=l,u=(i("5678"),i("2877")),d=Object(u["a"])(c,n,a,!1,null,null,null);t["default"]=d.exports},c686:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"preview-wrapper"},[-1!==e.fileType.indexOf("jpg")||-1!==e.fileType.indexOf("png")?i("iframe",{attrs:{frameborder:"0",src:e.filePath,width:"100%",height:"100%"}}):-1!==e.fileType.indexOf("pdf")?i("iframe",{attrs:{src:"/static/pdfjs/web/viewer.html?file="+e.filePath+"?userName="+e.currentUser+"%26email=932230508@qq.com",width:"100%",height:"100%",frameborder:"0"}}):i("div",[e._v("\n "+e._s(e.$t("common:message:downloadFile"))+"\n "),i("el-link",{attrs:{type:"primary"},on:{click:e.downLoadFile}},[e._v(e._s(e.$t("common:button:download")))])],1)])},a=[],r=i("db72"),o=i("2f62"),s={name:"PreviewFile",computed:Object(r["a"])({},Object(o["b"])(["name"])),props:{filePath:{type:String,required:!0},fileType:{type:String,required:!0}},data:function(){return{currentUser:zzSessionStorage.getItem("userName")}},mounted:function(){},methods:{downLoadFile:function(){this.filePath&&window.open(this.filePath,"_blank")}}},l=s,c=(i("90ce"),i("2877")),u=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},c6bd:function(e,t,i){},c6ce:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"search-container"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:signRecords:table:fileType")}},[i("el-select",{staticStyle:{width:"150px"},model:{value:e.searchData.FileTypeId,callback:function(t){e.$set(e.searchData,"FileTypeId",t)},expression:"searchData.FileTypeId"}},e._l(e.typeOptions,(function(e){return i("el-option",{key:e.FileTypeId,attrs:{label:e.FileType,value:e.FileTypeId}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:signRecords:table:fileName")}},[i("el-input",{staticStyle:{width:"120px"},model:{value:e.searchData.Name,callback:function(t){e.$set(e.searchData,"Name",t)},expression:"searchData.Name"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:signRecords:table:user")}},[i("el-select",{staticStyle:{width:"140px"},attrs:{clearable:"",filterable:""},model:{value:e.searchData.UserId,callback:function(t){e.$set(e.searchData,"UserId",t)},expression:"searchData.UserId"}},e._l(e.userOptions,(function(t){return i("el-option",{key:t.UserId,attrs:{label:t.RealName,value:t.UserId}},[i("span",{staticStyle:{float:"left"}},[e._v(e._s(t.RealName))]),e._v(" "),i("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px","margin-left":"5px"}},[e._v("\n "+e._s(t.UserName)+"\n ")])])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:signRecords:table:userType")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:"",filterable:""},model:{value:e.searchData.UserTypeId,callback:function(t){e.$set(e.searchData,"UserTypeId",t)},expression:"searchData.UserTypeId"}},e._l(e.userTypeOptions,(function(t){return i("el-option",{key:t.Id,attrs:{label:t.UserTypeShortName,value:t.Id}},[i("span",[e._v(e._s(t.UserType))])])})),1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{icon:"el-icon-search",type:"primary"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{icon:"el-icon-refresh-left",type:"primary"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")])],1)],1)],1),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"}],ref:"AttachmentsManagement",attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"FileType",label:e.$t("trials:signRecords:table:fileType"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Name",label:e.$t("trials:signRecords:table:fileName"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsSystemDoc",label:e.$t("trials:signRecords:table:fileLevel"),"show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsSystemDoc?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("IsSystemDoc",t.row.IsSystemDoc)))]):i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("IsSystemDoc",t.row.IsSystemDoc)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsDeleted",label:e.$t("trials:signRecords:table:isDeleted"),"show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsDeleted?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsDeleted)))]):i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsDeleted)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:e.$t("trials:signRecords:table:uploadTime"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"ConfirmTime",label:e.$t("trials:signRecords:table:isSign"),"show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsConfirmed?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsConfirmed)))]):i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsConfirmed)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"RealName",label:e.$t("trials:signRecords:table:user"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:e.$t("trials:signRecords:table:userName"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"UserTypeShortName",label:e.$t("trials:signRecords:table:userType"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"ConfirmTime",label:e.$t("trials:signRecords:table:confirmTime"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action")},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{circle:"",title:e.$t("trials:signRecords:action:preview"),icon:"el-icon-view"},on:{click:function(i){return e.handlePreview(t.row)}}})]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1),e._v(" "),e.previewVisible?i("el-dialog",{attrs:{visible:e.previewVisible,title:e.$t("trials:signRecords:action:preview"),fullscreen:!0,"append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.previewVisible=t}}},[i("div",{staticClass:"base-modal-body",staticStyle:{border:"2px solid #ccc",padding:"10px"}},[e.previewVisible?i("PreviewFile",{attrs:{"file-path":e.currentPath,"file-type":e.currentType},on:{getList:e.getList}}):e._e()],1)]):e._e()],2)},a=[],r=i("db72"),o=(i("96cf"),i("3b8d")),s=i("3e42"),l=i("6071"),c=i("333d"),u=i("c686"),d=(i("4360"),function(){return{FileTypeId:"",Name:"",UserId:"",UserTypeId:"",PageIndex:1,PageSize:20}}),f={name:"AttachmentsManagement",components:{BaseContainer:l["default"],Pagination:c["default"],PreviewFile:u["default"]},data:function(){return{searchData:d(),loading:!1,list:[],total:0,currentRow:{},currentPath:"",currentType:"",previewVisible:!1,userOptions:[],userTypeOptions:[],currentUser:zzSessionStorage.getItem("userName"),typeOptions:[],trialId:this.$route.query.trialId}},mounted:function(){this.getTypeOptions(),this.getUserSelect(),this.getUserType(),this.getList()},methods:{getList:function(){var e=this;this.loading=!0,this.searchData.TrialId=this.trialId,Object(s["dc"])(this.searchData).then(function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(i){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.loading=!1,e.list=i.Result.CurrentPageData,e.total=i.Result.TotalCount,console.log(e.total);case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(){e.loading=!1}))},getTypeOptions:function(){var e=this;Object(s["Fd"])(this.trialId).then((function(t){e.typeOptions=t.Result}))},getUserSelect:function(){var e=this;Object(s["ce"])(this.trialId).then((function(t){e.userOptions=t.Result}))},getUserType:function(){var e=this;Object(s["de"])().then((function(t){e.userTypeOptions=t.Result}))},handlePreview:function(e){this.currentRow=Object(r["a"])({},e);var t=e.Name,i=e.FullFilePath;this.currentPath=i,this.currentType=e.Name?t.substring(t.lastIndexOf(".")+1).toLocaleLowerCase():"",this.previewVisible=!0},handleReset:function(){var e=this;this.searchData=d(),this.getList(),this.$nextTick((function(){e.$refs.AttachmentsManagement.clearSort()}))},handleSearch:function(){this.getList()},handleSortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.getList()}}},h=f,p=i("2877"),m=Object(p["a"])(h,n,a,!1,null,null,null);t["default"]=m.exports},c6f7:function(e,t,i){},c6fb:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{flex:"1",overflow:"auto"}},[i("router-view",{key:e.$route.path+e.$route.query.trialId+(new Date).getTime()})],1)},a=[],r={created:function(){}},o=r,s=(i("4b35"),i("2877")),l=Object(s["a"])(o,n,a,!1,null,null,null);t["default"]=l.exports},c746:function(e,t,i){"use strict";i("71ed")},c765:function(e,t,i){},c775:function(e,t,i){var n=i("2b17"),a=n.retrieveRawValue;function r(e,t){var i=e.mapDimension("defaultedLabel",!0),n=i.length;if(1===n)return a(e,t,i[0]);if(n){for(var r=[],o=0;o<i.length;o++){var s=a(e,t,i[o]);r.push(s)}return r.join(" ")}}t.getDefaultLabel=r},c7a2:function(e,t,i){var n=i("cbe5"),a=i("5693"),r=i("9cf9"),o=r.subPixelOptimizeRect,s={},l=n.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(e,t){var i,n,r,l;this.subPixelOptimize?(o(s,t,this.style),i=s.x,n=s.y,r=s.width,l=s.height,s.r=t.r,t=s):(i=t.x,n=t.y,r=t.width,l=t.height),t.r?a.buildPath(e,t):e.rect(i,n,r,l),e.closePath()}});e.exports=l},c7b8:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{width:"100%",height:"100%",position:"relative"}},[e.videoSrc?i("video",{staticStyle:{position:"relative","z-index":"10",width:"100%",height:"calc(100% - 50px)"},attrs:{id:"video",src:e.videoSrc,controls:"",crossorigin:"anonymous"}}):e._e(),e._v(" "),i("div",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.jietu}},[e._v("截图")])],1)])},a=[],r={props:{videoSrc:{type:String,default:function(){return""}},fileName:{type:String,default:function(){return""}}},data:function(){return{isDisabled:!1,imgList:[],fileObj:null,videoList:[],file:null,dataBuffer:null,percentage:0,isVideoToMp4:!1,isNeedToMp4:!1}},watch:{},mounted:function(){},methods:{jietu:function(){this.screenShot("video")},screenShot:function(e){var t=document.getElementById(e);console.log(t);var i=document.createElement("canvas"),n=document.createElement("img");i.width=t.videoWidth,i.height=t.videoHeight,i.getContext("2d").drawImage(t,0,0,i.width,i.height);var a=i.toDataURL("image/png");n.src=a,n.width=t.clientWidth,n.height=t.clientHeight,n.style.objectFit="contain",console.log(a),this.downFile(a,"截图".concat((new Date).getTime(),".png"))},downFile:function(e,t){var i=document.createElementNS("http://www.w3.org/1999/xhtml","a");i.href=e,i.download=t;var n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),i.dispatchEvent(n)}}},o=r,s=i("2877"),l=Object(s["a"])(o,n,a,!1,null,"59caf568",null);t["default"]=l.exports},c7f0:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"upload-container"},[i("el-upload",{staticClass:"upload-demo",attrs:{action:"",accept:e.accept,"before-upload":e.beforeUpload,"http-request":e.handleUploadFile,"on-preview":e.handlePreview,"on-remove":e.handleRemoveFile,"show-file-list":!0,"file-list":e.fileList,limit:1,"on-exceed":e.handleExceed}},[i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnDisabled}},[e._v("Upload")]),e._v(" "),i("span",{staticClass:"el-upload__tip",staticStyle:{"margin-left":"10px"},attrs:{slot:"tip"},slot:"tip"},[e._v("(must be in pdf format)")])],1)],1)},a=[],r=(i("386d"),i("7f7f"),i("a796")),o={name:"Upload",props:{type:{type:String,required:!0},accept:{type:String,required:!0}},data:function(){return{fileList:[],btnDisabled:!1}},methods:{initFileList:function(e){this.fileList=e},beforeUpload:function(e){return this.checkFileSuffix(e.name)?(this.fileList=[],!0):(this.$message.error("Must be in ".concat(this.accept," format")),!1)},handleUploadFile:function(e){var t=this;this.btnDisabled=!0,Object(r["g"])(e.file,this.type).then((function(i){t.btnDisabled=!1,i.IsSuccess&&(t.fileList.push({name:e.file.name,path:i.Result.FilePath,fullPath:i.Result.FullFilePath,type:t.type}),t.$emit("getFileList",t.fileList))})).catch((function(){t.btnDisabled=!1}))},handleRemoveFile:function(){this.fileList=[],this.$emit("getFileList",this.fileList)},handlePreview:function(e){e.fullPath&&window.open(e.fullPath,"_blank")},handleExceed:function(e,t){this.$message.warning("Upload is currently limited to 1 file")},checkFileSuffix:function(e){var t=e.lastIndexOf("."),i=e.substring(t+1,e.length);return-1!==this.accept.toLocaleLowerCase().search(i.toLocaleLowerCase())}}},s=o,l=(i("4aa1"),i("2877")),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},c7fc:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.isRender?i("el-form",{ref:"assessmentForm",attrs:{model:e.form,size:"small"}},[i("div",{staticClass:"base-dialog-body"},e._l(e.questions,(function(t){return i("AssessmentFormItem",{key:t.Id,attrs:{question:t,"question-form":e.form},on:{setFormItemData:e.setFormItemData,resetFormItemData:e.resetFormItemData}})})),1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{size:"small"},on:{click:e.handleCancel}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)]):e._e()},a=[],r=(i("ac6a"),i("96cf"),i("3b8d")),o=i("db72"),s=i("3e42"),l=i("2f62"),c=i("4a1d"),u={name:"AdditionalAssessment",components:{AssessmentFormItem:c["default"]},props:{visitTaskId:{type:String,required:!0},questions:{type:Array,default:function(){return[]}}},data:function(){return{form:{},isRender:!1}},computed:Object(o["a"])({},Object(l["b"])(["language"])),mounted:function(){var e=this;this.questions.map((function(t){"group"!==t.Type&&"summary"!==t.Type&&e.$set(e.form,t.Id,t.Answer?t.Answer:null),t.Childrens.length>0&&e.setChild(t.Childrens)})),this.isRender=!0},methods:{handleSave:function(){var e=this;this.$refs.assessmentForm.validate(function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(i){var n,a,r,o;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(i){t.next=2;break}return t.abrupt("return");case 2:for(r in n=e.$loading({fullscreen:!0}),a=[],e.form)a.push({questionId:r,answer:e.form[r]});o={visitTaskId:e.visitTaskId,answerList:a},Object(s["submitTaskAdditionalQuestion"])(o).then((function(t){e.$emit("sign"),n.close()})).catch((function(){n.close()}));case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())},handleCancel:function(){this.$emit("close")},setChild:function(e){var t=this;e.forEach((function(e){"group"!==e.Type&&"summary"!==e.Type&&e.Id&&t.$set(t.form,e.Id,e.Answer?e.Answer:null),e.Childrens&&e.Childrens.length>0&&t.setChild(e.Childrens)}))},resetFormItemData:function(e){this.form[e]=null},setFormItemData:function(e){this.form[e.key]=e.val}}},d=u,f=i("2877"),h=Object(f["a"])(d,n,a,!1,null,null,null);t["default"]=h.exports},c877:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"reset-wrapper"},[i("el-page-header",{attrs:{content:e.$t("passwordReset:title:reset")},on:{back:e.goBack}}),e._v(" "),i("div",{staticClass:"box-wrapper"},[i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.formLoading,expression:"formLoading"}],ref:"resetForm",staticClass:"demo-ruleForm",attrs:{model:e.form,"label-width":"150px",rules:e.rules,size:"small"}},[i("el-form-item",{attrs:{label:e.$t("passwordReset:form:email"),prop:"EmailOrPhone"}},[i("el-col",{attrs:{span:18}},[i("el-input",{attrs:{autocomplete:"off"},on:{change:e.handleEmailChange},model:{value:e.form.EmailOrPhone,callback:function(t){e.$set(e.form,"EmailOrPhone",t)},expression:"form.EmailOrPhone"}})],1),e._v(" "),i("el-col",{staticStyle:{"text-align":"right"},attrs:{span:6}},[i("el-button",{staticStyle:{width:"80%"},attrs:{size:"small",type:"primary",disabled:e.sendDisabled},on:{click:e.handleSendCode}},[e._v(e._s(e.sendTitle))])],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"验证码",required:""}},[i("el-col",{attrs:{span:20}},[i("el-form-item",{attrs:{prop:"VerificationCode"}},[i("el-input",{attrs:{autocomplete:"off"},model:{value:e.form.VerificationCode,callback:function(t){e.$set(e.form,"VerificationCode",t)},expression:"form.VerificationCode"}})],1)],1),e._v(" "),i("el-col",{staticStyle:{"text-align":"right"},attrs:{span:4}},[i("el-button",{staticStyle:{width:"80%"},attrs:{size:"small",type:"primary",disabled:""===e.form.VerificationCode||""===e.form.EmailOrPhone},on:{click:e.verifyCode}},[e._v("\n "+e._s(e.$t("passwordReset:button:verify"))+"\n ")])],1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("passwordReset:form:userName"),prop:"UserId"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",filterable:""},on:{change:e.handleUserChange},model:{value:e.form.UserId,callback:function(t){e.$set(e.form,"UserId",t)},expression:"form.UserId"}},e._l(e.users,(function(t){return i("el-option",{key:t.UserId,attrs:{label:t.UserName,value:t.UserId}},[i("span",{staticStyle:{float:"left"}},[e._v(e._s(t.UserName))]),e._v(" "),i("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[e._v(e._s(t.UserType))])])})),1)],1),e._v(" "),e.form.UserId?i("el-form-item",{attrs:{label:e.$t("passwordReset:form:userType")}},[i("el-input",{attrs:{disabled:""},model:{value:e.form.UserType,callback:function(t){e.$set(e.form,"UserType",t)},expression:"form.UserType"}})],1):e._e(),e._v(" "),i("el-form-item",{staticStyle:{position:"relative"},attrs:{label:e.$t("passwordReset:form:password"),prop:"NewPwd"}},[i("el-input",{attrs:{"show-password":"",autocomplete:"off"},model:{value:e.form.NewPwd,callback:function(t){e.$set(e.form,"NewPwd",t)},expression:"form.NewPwd"}}),e._v(" "),i("span",{staticStyle:{position:"absolute",right:"-30px"}},[i("el-tooltip",{attrs:{content:e.$t("passwordReset:form:passwordCentent"),placement:"top"}},[i("i",{staticClass:"el-icon-question",staticStyle:{color:"#00d1b2"}})])],1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("passwordReset:form:confirmPassword"),prop:"CheckPass"}},[i("el-input",{attrs:{"show-password":"",autocomplete:"off"},model:{value:e.form.CheckPass,callback:function(t){e.$set(e.form,"CheckPass",t)},expression:"form.CheckPass"}})],1),e._v(" "),i("el-form-item",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{size:"small"},on:{click:e.onCancel}},[e._v("\n "+e._s(e.$t("passwordReset:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.onSubmit}},[e._v("\n "+e._s(e.$t("passwordReset:button:submit"))+"\n ")])],1)],1)],1)],1)},a=[],r=(i("20d6"),i("c24f")),o=i("8237"),s=i.n(o),l="",c=60,u={data:function(){var e=this,t=function(t,i,n){if(""===i)n(new Error(e.$t("passwordReset:formRule:email")));else{var a=/^[A-Za-z0-9]+([_\.][A-Za-z0-9]+)*@([A-Za-z0-9\-]+\.)+[A-Za-z]{2,6}$/;e.form.EmailOrPhone&&a.test(e.form.EmailOrPhone)?(e.sendDisabled=!1,n()):(n(new Error(e.$t("passwordReset:formRule:passwordinvalid"))),e.sendDisabled=!0)}},i=function(t,i,n){""===i||void 0===i?n(new Error(e.$t("passwordReset:formRule:confirmPassword"))):void 0!==i&&i!==e.form.NewPwd?n(new Error(e.$t("passwordReset:formRule:passwordsDiffer"))):n()};return{form:{EmailOrPhone:"",VerificationCode:"",NewPwd:"",UserId:"",UserType:""},users:[],CheckPass:"",rules:{EmailOrPhone:[{required:!0,validator:t,trigger:["blur","change"]}],VerificationCode:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:["blur","change"]}],NewPwd:[{required:!0,validator:this.$validatePassword,trigger:["blur","change"]}],CheckPass:[{required:!0,validator:i,trigger:["blur","change"]}],UserId:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}]},sendDisabled:!0,sendTitle:"发送验证码",formLoading:!1}},methods:{onSubmit:function(){var e=this;this.$refs["resetForm"].validate((function(t){t&&(e.formLoading=!0,Object(r["b"])(e.form.UserId,s()(e.form.NewPwd)).then((function(t){t.IsSuccess?(e.$message.success(e.$t("passwordReset:message:updatedSuccessfully")),e.formLoading=!1,e.goBack()):e.$message.error(t.ErrorMessage)})).catch((function(){e.formLoading=!1})))}))},handleSendCode:function(){var e=this,t=this;this.sendDisabled=!0,Object(r["a"])(this.form.EmailOrPhone).then((function(e){e.IsSuccess?t.settime(t):t.$message.error(e.ErrorMessage)})).catch((function(){e.sendDisabled=!1}))},verifyCode:function(){var e=this;this.formLoading=!0,Object(r["i"])(this.form.EmailOrPhone,this.form.VerificationCode).then((function(t){e.formLoading=!1,e.users=t.Result})).catch((function(){e.formLoading=!1}))},handleEmailChange:function(){var e=/^[A-Za-z0-9]+([_\.][A-Za-z0-9]+)*@([A-Za-z0-9\-]+\.)+[A-Za-z]{2,6}$/;this.form.EmailOrPhone&&e.test(this.form.EmailOrPhone)&&(this.sendDisabled=!1)},handleUserChange:function(e){var t=this.users.findIndex((function(t){return t.UserId===e}));t>-1&&(this.form.UserType=this.users[t].UserType)},settime:function(e){if(0===c)return e.sendDisabled=!1,e.sendTitle="发送验证码",c=60,void clearTimeout(l);e.sendDisabled=!0,e.sendTitle="".concat(this.$t("passwordReset:button:wait"),"(").concat(c,"s)"),c--,c=c,l=setTimeout((function(){e.settime(e)}),1e3)},onCancel:function(){this.$refs["resetForm"].resetFields()},goBack:function(){this.$router.push("/login")}}},d=u,f=(i("9746"),i("404e"),i("2877")),h=Object(f["a"])(d,n,a,!1,null,"1401f65e",null);t["default"]=h.exports},c8a7:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"search-container"},[i("el-form",{attrs:{inline:!0,size:"small"}},[i("el-form-item",{attrs:{label:"业务场景"}},[i("el-select",{staticStyle:{width:"150px"},model:{value:e.searchData.BusinessScenarioEnum,callback:function(t){e.$set(e.searchData,"BusinessScenarioEnum",t)},expression:"searchData.BusinessScenarioEnum"}},e._l(e.$d.Common_File_BusinessScenario,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"文件名称"}},[i("el-input",{staticStyle:{width:"130px"},attrs:{clearable:""},model:{value:e.searchData.Name,callback:function(t){e.$set(e.searchData,"Name",t)},expression:"searchData.Name"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")])],1)],1),e._v(" "),i("el-button",{staticStyle:{"margin-left":"auto"},attrs:{type:"primary",icon:"el-icon-plus",size:"small"},on:{click:e.handleAdd}},[e._v("\n "+e._s(e.$t("common:button:new"))+"\n ")])],1),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"},{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortChange}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Code",label:"Code","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"BusinessScenarioEnum",label:"业务场景","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("Common_File_BusinessScenario",t.row.BusinessScenarioEnum))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Name",label:"文件名称","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Description",label:"描述","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsDeleted",label:"是否废除","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsDeleted?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsDeleted)))]):i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsDeleted)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"UpdateTime",label:"更新时间","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{label:"Action"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleDownload(t.row)}}},[e._v("\n 下载\n ")]),e._v(" "),i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("\n 编辑\n ")])]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}}),e._v(" "),e.editDialog.visible?i("el-dialog",{attrs:{visible:e.editDialog.visible,"close-on-click-modal":!1,title:e.editDialog.title,width:"600px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){return e.$set(e.editDialog,"visible",t)}}},[i("TemplateForm",{attrs:{data:e.currentRow},on:{closeDialog:e.closeDialog,getList:e.getList}})],1):e._e()],1)],2)},a=[],r=i("db72"),o=i("e56e"),s=i("6071"),l=i("333d"),c=i("58c1"),u=2,d=function(){return{FileTypeEnum:u,BusinessScenarioEnum:null,Name:"",PageIndex:1,PageSize:20}},f={name:"ExportTemplate",components:{BaseContainer:s["default"],Pagination:l["default"],TemplateForm:c["default"]},data:function(){return{searchData:d(),list:[],total:0,currentRow:{},editDialog:{title:"",visible:!1},loading:!1}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0,Object(o["ab"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},handleAdd:function(){this.editDialog.title="Add",this.currentRow={FileTypeEnum:u},this.editDialog.visible=!0},handleDownload:function(e){var t=this;this.loading=!0,Object(o["a"])(e.Code).then((function(e){t.loading=!1})).catch((function(){t.loading=!1}))},handleEdit:function(e){this.editDialog.title="Edit",this.currentRow=Object(r["a"])({},e),this.editDialog.visible=!0},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=d(),this.getList()},closeDialog:function(){this.editDialog.visible=!1},handleSortChange:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()}}},h=f,p=i("2877"),m=Object(p["a"])(h,n,a,!1,null,null,null);t["default"]=m.exports},c8ef:function(e,t,i){var n=i("6d8b"),a=i("a15a"),r=a.createSymbol,o=i("2306"),s=o.Group,l=i("3842"),c=l.parsePercent,u=i("1418"),d=3;function f(e){return n.isArray(e)||(e=[+e,+e]),e}function h(e,t){var i=t.rippleEffectColor||t.color;e.eachChild((function(e){e.attr({z:t.z,zlevel:t.zlevel,style:{stroke:"stroke"===t.brushType?i:null,fill:"fill"===t.brushType?i:null}})}))}function p(e,t){s.call(this);var i=new u(e,t),n=new s;this.add(i),this.add(n),n.beforeUpdate=function(){this.attr(i.getScale())},this.updateData(e,t)}var m=p.prototype;m.stopEffectAnimation=function(){this.childAt(1).removeAll()},m.startEffectAnimation=function(e){for(var t=e.symbolType,i=e.color,n=this.childAt(1),a=0;a<d;a++){var o=r(t,-1,-1,2,2,i);o.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scale:[.5,.5]});var s=-a/d*e.period+e.effectOffset;o.animate("",!0).when(e.period,{scale:[e.rippleScale/2,e.rippleScale/2]}).delay(s).start(),o.animateStyle(!0).when(e.period,{opacity:0}).delay(s).start(),n.add(o)}h(n,e)},m.updateEffectAnimation=function(e){for(var t=this._effectCfg,i=this.childAt(1),n=["symbolType","period","rippleScale"],a=0;a<n.length;a++){var r=n[a];if(t[r]!==e[r])return this.stopEffectAnimation(),void this.startEffectAnimation(e)}h(i,e)},m.highlight=function(){this.trigger("emphasis")},m.downplay=function(){this.trigger("normal")},m.updateData=function(e,t){var i=e.hostModel;this.childAt(0).updateData(e,t);var n=this.childAt(1),a=e.getItemModel(t),r=e.getItemVisual(t,"symbol"),o=f(e.getItemVisual(t,"symbolSize")),s=e.getItemVisual(t,"color");n.attr("scale",o),n.traverse((function(e){e.attr({fill:s})}));var l=a.getShallow("symbolOffset");if(l){var u=n.position;u[0]=c(l[0],o[0]),u[1]=c(l[1],o[1])}var d=e.getItemVisual(t,"symbolRotate");n.rotation=(d||0)*Math.PI/180||0;var h={};if(h.showEffectOn=i.get("showEffectOn"),h.rippleScale=a.get("rippleEffect.scale"),h.brushType=a.get("rippleEffect.brushType"),h.period=1e3*a.get("rippleEffect.period"),h.effectOffset=t/e.count(),h.z=a.getShallow("z")||0,h.zlevel=a.getShallow("zlevel")||0,h.symbolType=r,h.color=s,h.rippleEffectColor=a.get("rippleEffect.color"),this.off("mouseover").off("mouseout").off("emphasis").off("normal"),"render"===h.showEffectOn)this._effectCfg?this.updateEffectAnimation(h):this.startEffectAnimation(h),this._effectCfg=h;else{this._effectCfg=null,this.stopEffectAnimation();var p=this.childAt(0),m=function(){p.highlight(),"render"!==h.showEffectOn&&this.startEffectAnimation(h)},g=function(){p.downplay(),"render"!==h.showEffectOn&&this.stopEffectAnimation()};this.on("mouseover",m,this).on("mouseout",g,this).on("emphasis",m,this).on("normal",g,this)}this._effectCfg=h},m.fadeOut=function(e){this.off("mouseover").off("mouseout").off("emphasis").off("normal"),e&&e()},n.inherits(p,s);var g=p;e.exports=g},c924:function(e,t,i){"use strict";i("c93a")},c92f:function(e,t,i){var n=i("3041"),a=n.parseSVG,r=n.makeViewBoxTransform,o=i("e1fc"),s=i("c7a2"),l=i("6d8b"),c=l.assert,u=l.createHashMap,d=i("9850"),f=i("e0d3"),h=f.makeInner,p=h(),m={load:function(e,t){var i=p(t).originRoot;if(i)return{root:i,boundingRect:p(t).boundingRect};var n=g(t);return p(t).originRoot=n.root,p(t).boundingRect=n.boundingRect,n},makeGraphic:function(e,t,i){var n=p(t),a=n.rootMap||(n.rootMap=u()),r=a.get(i);if(r)return r;var o=n.originRoot,s=n.boundingRect;return n.originRootHostKey?r=g(t,s).root:(n.originRootHostKey=i,r=o),a.set(i,r)},removeGraphic:function(e,t,i){var n=p(t),a=n.rootMap;a&&a.removeKey(i),i===n.originRootHostKey&&(n.originRootHostKey=null)}};function g(e,t){var i,n,l=e.svgXML;try{i=l&&a(l,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=i.root,c(null!=n)}catch(g){throw new Error("Invalid svg format\n"+g.message)}var u=i.width,f=i.height,h=i.viewBoxRect;if(t||(t=null==u||null==f?n.getBoundingRect():new d(0,0,0,0),null!=u&&(t.width=u),null!=f&&(t.height=f)),h){var p=r(h,t.width,t.height),m=n;n=new o,n.add(m),m.scale=p.scale,m.position=p.position}return n.setClipPath(new s({shape:t.plain()})),{root:n,boundingRect:t}}e.exports=m},c93a:function(e,t,i){},c94a:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},e._l(e.$d.ReadingCategory,(function(t){return i("el-tab-pane",{key:t.id,attrs:{label:t.label,name:t.label}},[e.tabs.includes(t.label)?i("QuestionTpl",{attrs:{"trial-reading-criterion-id":e.trialReadingCriterionId,"reading-category":t.value}}):e._e()],1)})),1)},a=[],r=(i("7f7f"),i("6762"),i("2fdb"),i("7612")),o={name:"QuestionsPreview",components:{QuestionTpl:r["default"]},props:{trialReadingCriterionId:{type:String,default:function(){return""}}},data:function(){return{activeName:this.$d.ReadingCategory[0].label,tabs:[this.$d.ReadingCategory[0].label]}},methods:{handleClick:function(e,t){this.tabs.includes(e.name)||this.tabs.push(e.name)}}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},c965:function(e,t,i){var n=i("2306"),a=i("a15a"),r=a.createSymbol,o=i("392f"),s=4,l=n.extendShape({shape:{points:null},symbolProxy:null,softClipShape:null,buildPath:function(e,t){var i=t.points,n=t.size,a=this.symbolProxy,r=a.shape,o=e.getContext?e.getContext():e,l=o&&n[0]<s;if(!l)for(var c=0;c<i.length;){var u=i[c++],d=i[c++];isNaN(u)||isNaN(d)||(this.softClipShape&&!this.softClipShape.contain(u,d)||(r.x=u-n[0]/2,r.y=d-n[1]/2,r.width=n[0],r.height=n[1],a.buildPath(e,r,!0)))}},afterBrush:function(e){var t=this.shape,i=t.points,n=t.size,a=n[0]<s;if(a){this.setTransform(e);for(var r=0;r<i.length;){var o=i[r++],l=i[r++];isNaN(o)||isNaN(l)||(this.softClipShape&&!this.softClipShape.contain(o,l)||e.fillRect(o-n[0]/2,l-n[1]/2,n[0],n[1]))}this.restoreTransform(e)}},findDataIndex:function(e,t){for(var i=this.shape,n=i.points,a=i.size,r=Math.max(a[0],4),o=Math.max(a[1],4),s=n.length/2-1;s>=0;s--){var l=2*s,c=n[l]-r/2,u=n[l+1]-o/2;if(e>=c&&t>=u&&e<=c+r&&t<=u+o)return s}return-1}});function c(){this.group=new n.Group}var u=c.prototype;u.isPersistent=function(){return!this._incremental},u.updateData=function(e,t){this.group.removeAll();var i=new l({rectHover:!0,cursor:"default"});i.setShape({points:e.getLayout("symbolPoints")}),this._setCommon(i,e,!1,t),this.group.add(i),this._incremental=null},u.updateLayout=function(e){if(!this._incremental){var t=e.getLayout("symbolPoints");this.group.eachChild((function(e){if(null!=e.startIndex){var i=2*(e.endIndex-e.startIndex),n=4*e.startIndex*2;t=new Float32Array(t.buffer,n,i)}e.setShape("points",t)}))}},u.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clearIncremental(),e.count()>2e6?(this._incremental||(this._incremental=new o({silent:!0})),this.group.add(this._incremental)):this._incremental=null},u.incrementalUpdate=function(e,t,i){var n;this._incremental?(n=new l,this._incremental.addDisplayable(n,!0)):(n=new l({rectHover:!0,cursor:"default",startIndex:e.start,endIndex:e.end}),n.incremental=!0,this.group.add(n)),n.setShape({points:t.getLayout("symbolPoints")}),this._setCommon(n,t,!!this._incremental,i)},u._setCommon=function(e,t,i,n){var a=t.hostModel;n=n||{};var o=t.getVisual("symbolSize");e.setShape("size",o instanceof Array?o:[o,o]),e.softClipShape=n.clipShape||null,e.symbolProxy=r(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var l=e.shape.size[0]<s;e.useStyle(a.getModel("itemStyle").getItemStyle(l?["color","shadowBlur","shadowColor"]:["color"]));var c=t.getVisual("color");c&&e.setColor(c),i||(e.seriesIndex=a.seriesIndex,e.on("mousemove",(function(t){e.dataIndex=null;var i=e.findDataIndex(t.offsetX,t.offsetY);i>=0&&(e.dataIndex=i+(e.startIndex||0))})))},u.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},u._clearIncremental=function(){var e=this._incremental;e&&e.clearDisplaybles()};var d=c;e.exports=d},c993:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"logincal-config-form"},[i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"logicalConfigForm",staticStyle:{width:"800px"},attrs:{model:e.form,"label-width":"220px",rules:e.rules,size:"small"}},[i("el-form-item",{attrs:{label:e.$t("trials:logincCfg:form:subjectNumberRule"),prop:"IsNoticeSubjectCodeRule"}},[i("el-radio-group",{attrs:{disabled:e.form.IsTrialBasicLogicConfirmed&&!e.isEdit},on:{change:e.subjectCodeRuleChange},model:{value:e.form.IsNoticeSubjectCodeRule,callback:function(t){e.$set(e.form,"IsNoticeSubjectCodeRule",t)},expression:"form.IsNoticeSubjectCodeRule"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"IsNoticeSubjectCodeRule"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1),e._v(" "),e.form.IsNoticeSubjectCodeRule?i("el-form-item",{attrs:{label:e.$t("trials:logincCfg:form:subjectNumFormat"),prop:"SubjectCodeRule"}},[i("el-input",{attrs:{disabled:e.form.IsTrialBasicLogicConfirmed&&!e.isEdit,type:"textarea",autosize:{minRows:2,maxRows:4},maxlength:"50","show-word-limit":""},model:{value:e.form.SubjectCodeRule,callback:function(t){e.$set(e.form,"SubjectCodeRule",t)},expression:"form.SubjectCodeRule"}})],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:logincCfg:form:subjectNum2"),prop:"IsSubjectSecondCodeView"}},[i("el-radio-group",{attrs:{disabled:e.form.IsTrialBasicLogicConfirmed&&!e.isEdit},model:{value:e.form.IsSubjectSecondCodeView,callback:function(t){e.$set(e.form,"IsSubjectSecondCodeView",t)},expression:"form.IsSubjectSecondCodeView"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"IsSubjectSecondCodeView"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:logincCfg:form:scanDateVerify"),prop:"IsVerifyVisitImageDate"}},[i("el-radio-group",{attrs:{disabled:e.form.IsTrialBasicLogicConfirmed&&!e.isEdit},model:{value:e.form.IsVerifyVisitImageDate,callback:function(t){e.$set(e.form,"IsVerifyVisitImageDate",t)},expression:"form.IsVerifyVisitImageDate"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"IsVerifyVisitImageDate"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:logincCfg:form:visitBaseDate"),prop:"IsHaveFirstGiveMedicineDate"}},[i("el-radio-group",{attrs:{disabled:e.form.IsTrialBasicLogicConfirmed&&!e.isEdit},model:{value:e.form.IsHaveFirstGiveMedicineDate,callback:function(t){e.$set(e.form,"IsHaveFirstGiveMedicineDate",t)},expression:"form.IsHaveFirstGiveMedicineDate"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"IsHaveFirstGiveMedicineDate"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:logincCfg:form:subjectAge"),prop:"IsHaveSubjectAge"}},[i("el-radio-group",{attrs:{disabled:e.form.IsTrialBasicLogicConfirmed&&!e.isEdit},model:{value:e.form.IsHaveSubjectAge,callback:function(t){e.$set(e.form,"IsHaveSubjectAge",t)},expression:"form.IsHaveSubjectAge"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"IsHaveSubjectAge"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:logincCfg:form:subjectGender"),prop:"IsSubjectSexView"}},[i("el-radio-group",{attrs:{disabled:e.form.IsTrialBasicLogicConfirmed&&!e.isEdit},model:{value:e.form.IsSubjectSexView,callback:function(t){e.$set(e.form,"IsSubjectSexView",t)},expression:"form.IsSubjectSexView"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"IsSubjectSexView"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:logincCfg:form:lastVisitName"),prop:"OutEnrollmentVisitName"}},[i("el-input",{attrs:{disabled:e.form.IsTrialBasicLogicConfirmed&&!e.isEdit,maxlength:"50","show-word-limit":""},model:{value:e.form.OutEnrollmentVisitName,callback:function(t){e.$set(e.form,"OutEnrollmentVisitName",t)},expression:"form.OutEnrollmentVisitName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:logincCfg:form:imageCopy"),prop:"IsImageReplicationAcrossTrial"}},[i("el-radio-group",{attrs:{disabled:e.form.IsTrialBasicLogicConfirmed&&!e.isEdit},model:{value:e.form.IsImageReplicationAcrossTrial,callback:function(t){e.$set(e.form,"IsImageReplicationAcrossTrial",t)},expression:"form.IsImageReplicationAcrossTrial"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"IsImageReplicationAcrossTrial"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:logincCfg:form:bodypart"),prop:"BodyPartTypes"}},[i("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:8},disabled:e.form.IsTrialBasicLogicConfirmed&&!e.isEdit,maxlength:"500","show-word-limit":""},model:{value:e.form.BodyPartTypes,callback:function(t){e.$set(e.form,"BodyPartTypes",t)},expression:"form.BodyPartTypes"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:logincCfg:form:modality"),prop:"ModalityListStr"}},[i("el-input",{staticStyle:{width:"80%"},attrs:{type:"textarea",autosize:{minRows:1,maxRows:3},disabled:""},model:{value:e.form.ModalityListStr,callback:function(t){e.$set(e.form,"ModalityListStr",t)},expression:"form.ModalityListStr"}}),e._v(" "),i("el-button",{attrs:{disabled:e.form.IsTrialBasicLogicConfirmed&&!e.isEdit,icon:"el-icon-plus",circle:""},on:{click:e.handleSetModality}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:logincCfg:form:exceededDays"),prop:"ChangeDefalutDays"}},[i("el-input-number",{attrs:{"controls-position":"right",min:0,disabled:e.form.IsTrialBasicLogicConfirmed&&!e.isEdit},model:{value:e.form.ChangeDefalutDays,callback:function(t){e.$set(e.form,"ChangeDefalutDays",t)},expression:"form.ChangeDefalutDays"}})],1),e._v(" "),i("el-form-item",[!1===e.form.IsTrialBasicLogicConfirmed&&e.hasPermi(["trials:trials-panel:setting:trial-config:save"])?i("el-button",{attrs:{type:"primary"},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")]):e._e(),e._v(" "),!1===e.form.IsTrialBasicLogicConfirmed&&e.hasPermi(["trials:trials-panel:setting:trial-config:save"])?i("el-button",{attrs:{type:"primary"},on:{click:e.handleConfirm}},[e._v("\n "+e._s(e.$t("trials:trialCfg:button:confirm"))+"\n ")]):e._e(),e._v(" "),!0===e.form.IsTrialBasicLogicConfirmed&&!e.isEdit&&e.hasPermi(["trials:trials-panel:setting:trial-config:save"])?i("el-button",{attrs:{type:"primary"},on:{click:function(t){e.isEdit=!0}}},[e._v("\n "+e._s(e.$t("trials:trialCfg:button:update"))+"\n ")]):e._e(),e._v(" "),!0===e.form.IsTrialBasicLogicConfirmed&&e.isEdit&&e.hasPermi(["trials:trials-panel:setting:trial-config:save"])?i("el-button",{attrs:{type:"primary"},on:{click:e.handleUpdate}},[e._v("\n "+e._s(e.$t("trials:trialCfg:button:updateAndConfirm"))+"\n ")]):e._e(),e._v(" "),!0===e.form.IsTrialBasicLogicConfirmed&&e.isEdit&&e.hasPermi(["trials:trials-panel:setting:trial-config:save"])?i("el-button",{attrs:{type:"primary"},on:{click:function(t){e.isEdit=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]):e._e()],1)],1),e._v(" "),e.confirmVisible?i("el-dialog",{attrs:{visible:e.confirmVisible,"close-on-click-modal":!1,width:"600px",title:e.$t("trials:trialCfg:dialogTitle:cfgConfirm"),"custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.confirmVisible=t}}},[i("div",{staticClass:"base-dialog-body"},[i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.confirmData,border:"",size:"small"}},[i("el-table-column",{attrs:{prop:"Name",label:e.$t("trials:trialCfg:table:cfgItem"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"NewVal",label:e.$t("trials:trialCfg:table:cfgVal"),"show-overflow-tooltip":""}})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleConfirmConfigData}},[e._v("\n "+e._s(e.$t("trials:trialCfg:button:confirmCfg"))+"\n ")])],1)]):e._e(),e._v(" "),e.updateVisible?i("el-dialog",{attrs:{visible:e.updateVisible,"close-on-click-modal":!1,width:"600px",title:e.$t("trials:trialCfg:dialogTitle:cfgConfirm"),"custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.updateVisible=t}}},[i("div",{staticClass:"base-dialog-body"},[i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.confirmData,border:"",size:"small"}},[i("el-table-column",{attrs:{prop:"Name",label:e.$t("trials:trialCfg:table:cfgItem"),"show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"OldVal",label:e.$t("trials:trialCfg:table:cfgVal")+" "+e.$t("trials:trialCfg:table:beforeChange")+"","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"NewVal",label:e.$t("trials:trialCfg:table:cfgVal")+" "+e.$t("trials:trialCfg:table:updated")+"","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{class:{fontColor:t.row.NewVal!==t.row.OldVal}},[e._v(e._s(t.row.NewVal))])]}}],null,!1,1329206807)})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleUpdateConfigData}},[e._v("\n "+e._s(e.$t("trials:trialCfg:button:confirmCfg"))+"\n ")])],1)]):e._e(),e._v(" "),e.signVisible?i("el-dialog",{attrs:{visible:e.signVisible,"close-on-click-modal":!1,width:"600px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.signVisible=t}}},[i("div",{attrs:{slot:"title"},slot:"title"},[i("span",{staticStyle:{"font-size":"18px"}},[e._v(e._s(e.$t("common:dialogTitle:sign")))]),e._v(" "),i("span",{staticStyle:{"font-size":"12px","margin-left":"5px"}},[e._v(e._s("("+e.$t("common:label:sign")+e.currentUser+")"))])]),e._v(" "),i("SignForm",{ref:"signForm",attrs:{"sign-code-enum":e.signCode},on:{closeDialog:e.closeSignDialog}})],1):e._e(),e._v(" "),e.clinicalDataVisible?i("el-dialog",{attrs:{visible:e.clinicalDataVisible,"close-on-click-modal":!1,title:"临床数据配置",width:"1200px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.clinicalDataVisible=t}}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticClass:"base-dialog-body"},[i("div",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{size:"mini",type:"primary",icon:"el-icon-plus"},on:{click:e.handleAddClinicalData}},[e._v("\n "+e._s(e.$t("common:button:new"))+"\n ")])],1),e._v(" "),i("el-table",{ref:"clinicalData",attrs:{data:e.clinicalDataList,stripe:"",height:"400","row-key":"Id"},on:{"selection-change":e.handleSelectChange}},[i("el-table-column",{attrs:{type:"selection",align:"left",width:"45","reserve-selection":!0,selectable:e.handleSelectable}}),e._v(" "),i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"ClinicalDataSetName",label:"临床数据名称",width:"180"}}),e._v(" "),i("el-table-column",{attrs:{prop:"UploadRole",label:"上传人","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("ClinicalDataUploadRole",t.row.UploadRole))+"\n ")]}}],null,!1,1127071785)}),e._v(" "),i("el-table-column",{attrs:{prop:"ClinicalDataLevel",label:"数据级别",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("ClinicalLevel",t.row.ClinicalDataLevel))+"\n ")]}}],null,!1,3396559462)}),e._v(" "),i("el-table-column",{attrs:{prop:"ClinicalUploadType",label:"传输方式"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("ClinicalUploadType",t.row.ClinicalUploadType))+"\n ")]}}],null,!1,2625700950)}),e._v(" "),i("el-table-column",{attrs:{prop:"FileName",label:"模板名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.FileName)+"\n ")]}}],null,!1,3732858332)}),e._v(" "),i("el-table-column",{attrs:{label:"操作",width:"250",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"primary",size:"mini",disabled:!t.row.FileName},on:{click:function(i){return e.handleDownloadTpl(t.row)}}},[e._v("\n 下载\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"mini",disabled:t.row.IsUsed},on:{click:function(i){return e.handleEditClinicalData(t.row)}}},[e._v("\n 编辑\n ")]),e._v(" "),i("el-button",{attrs:{type:"danger",size:"mini",disabled:t.row.IsUsed||e.form.ClinicalDataSetNames.indexOf(t.row.ClinicalDataSetName)>-1},on:{click:function(i){return e.handleDeleteClinicalData(t.row)}}},[e._v("\n 删除\n ")])]}}],null,!1,972516598)})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-button",{attrs:{size:"small",type:"primary",disabled:e.listLoading},on:{click:function(t){e.clinicalDataVisible=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",disabled:e.listLoading},on:{click:e.handleConfirmClinicalData}},[e._v("\n "+e._s(e.$t("common:button:confirm"))+"\n ")])],1)]):e._e(),e._v(" "),e.addOrEditCD.visible?i("el-dialog",{attrs:{visible:e.addOrEditCD.visible,"close-on-click-modal":!1,title:e.addOrEditCD.title,width:"500px","append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){return e.$set(e.addOrEditCD,"visible",t)}}},[i("ClinicalDataForm",{ref:"addOrEditCD",attrs:{"trial-id":e.form.TrialId,data:e.currentRow},on:{close:function(t){e.addOrEditCD.visible=!1},getList:e.getClinicalDataList}})],1):e._e(),e._v(" "),e.modalityListVisible?i("el-dialog",{attrs:{visible:e.modalityListVisible,"close-on-click-modal":!1,title:"检查技术","custom-class":"base-dialog-wrapper",width:"400px"},on:{"update:visible":function(t){e.modalityListVisible=t}}},[i("div",{staticClass:"base-dialog-body"},[i("el-table",{ref:"multipleTable",staticClass:"criterion-table",attrs:{data:e.$d.Modality,stripe:"",height:"450","row-key":"Id"},on:{select:e.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",align:"left",width:"45","reserve-selection":!0}}),e._v(" "),i("el-table-column",{attrs:{prop:"value",label:"检查技术"}})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-button",{attrs:{size:"small",type:"primary",disabled:e.listLoading},on:{click:function(t){e.modalityListVisible=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",disabled:e.listLoading},on:{click:e.handleConfirmModality}},[e._v("\n "+e._s(e.$t("common:button:confirm"))+"\n ")])],1)]):e._e()],1)},a=[],r=(i("20d6"),i("96cf"),i("3b8d")),o=i("db72"),s=(i("7514"),i("ac6a"),i("6b54"),i("3e42")),l=i("0662"),c=i("179b"),u=i("f0e0"),d=i("7a9e"),f={name:"LogicalConfig",components:{SignForm:c["default"],ClinicalDataForm:u["default"]},data:function(){return{form:{TrialId:"",IsNoticeSubjectCodeRule:!1,SubjectCodeRule:"",IsSubjectSecondCodeView:!1,IsVerifyVisitImageDate:!1,IsHaveFirstGiveMedicineDate:!0,IsHaveSubjectAge:!1,IsSubjectSexView:!1,OutEnrollmentVisitName:"EOT",IsImageReplicationAcrossTrial:!1,BodyPartTypes:"",Modalitys:"",ModalityList:[],ModalityListStr:"",ChangeDefalutDays:5,IsTrialBasicLogicConfirmed:!1},rules:{IsNoticeSubjectCodeRule:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}],SubjectCodeRule:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"},{max:50,message:"".concat(this.$t("common:ruleMessage:maxLength")," 50")}],IsSubjectSecondCodeView:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}],IsVerifyVisitImageDate:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}],IsHaveFirstGiveMedicineDate:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}],OutEnrollmentVisitName:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"},{max:50,message:"".concat(this.$t("common:ruleMessage:maxLength")," 50")}],BodyPartTypes:[{required:!0,message:this.$t("trials:trialCfg:formRule:bodyPart"),trigger:"blur"},{max:500,message:"".concat(this.$t("common:ruleMessage:maxLength")," 500")}],ModalityListStr:[{required:!0,message:this.$t("trials:trialCfg:formRule:modality"),trigger:"blur"},{max:500,message:"".concat(this.$t("common:ruleMessage:maxLength")," 500")}]},confirmVisible:!1,updateVisible:!1,signVisible:!1,btnLoading:!1,confirmData:[],loading:!1,signText:"",signCode:"",currentUser:zzSessionStorage.getItem("userName"),initialForm:{},isEdit:!1,clinicalDataList:[],clinicalDataVisible:!1,addOrEditCD:{visible:!1,title:""},currentRow:{},selectClinicalDataArr:[],selectedCD:[],listLoading:!1,modalityListVisible:!1,selectedList:[]}},methods:{handleConfirmModality:function(){this.form.ModalityList=Object.assign([],this.selectedList.map((function(e){return e.value}))),this.form.ModalityListStr=this.form.ModalityList.toString().replaceAll(",","|"),this.modalityListVisible=!1},handleSelectionChange:function(e){this.selectedList=e},toggleSelection:function(e){var t=this;console.log(this.$refs.multipleTable),e?e.forEach((function(e){t.$refs.multipleTable.toggleRowSelection(e)})):this.$refs.multipleTable.clearSelection()},handleSetModality:function(){var e=this;this.modalityListVisible=!0,this.$nextTick((function(){var t=e.$d.Modality.filter((function(t){return!!e.form.ModalityList.find((function(e){return e===t.value}))}));e.toggleSelection(t)}))},handleSave:function(){var e=this;this.$refs["logicalConfigForm"].validate((function(t){t&&(e.loading=!0,Object(s["Z"])(e.form).then((function(t){e.loading=!1,t.IsSuccess&&(e.$message.success(e.$t("common:message:savedSuccessfully")),e.initialForm=Object(o["a"])({},e.form))})).catch((function(t){e.loading=!1})))}))},handleConfirm:function(){var e=this;this.$refs["logicalConfigForm"].validate((function(t){t&&(e.getConfigArr(),e.confirmVisible=!0)}))},handleUpdate:function(){var e=this;this.$refs["logicalConfigForm"].validate((function(t){t&&(e.getConfigArr(),e.updateVisible=!0)}))},handleConfirmConfigData:function(){var e=d["default"].processSignature.LogicalConfigConfirmation;this.signCode=e,this.initialForm=Object(o["a"])({},this.form),this.signVisible=!0},handleUpdateConfigData:function(){var e=d["default"].processSignature.LogicalConfigUpdates;this.signCode=e,this.initialForm=Object(o["a"])({},this.form),this.signVisible=!0},confirmConfigData:function(){var e=this;this.$refs["logicalConfigForm"].validate((function(t){t&&(e.btnLoading=!0,Object(s["Z"])(e.form).then((function(t){e.btnLoading=!1,t.IsSuccess&&(e.initialForm=Object(o["a"])({},e.form),e.signVisible=!0)})).catch((function(t){e.btnLoading=!1})))}))},closeSignDialog:function(e,t){e?this.signConfirm(t):this.signVisible=!1},signConfirm:function(e){var t=this;this.loading=!0;var i={data:this.form,signInfo:e};Object(l["a"])(i).then((function(e){t.loading=!1,e.IsSuccess&&(t.$message.success(t.$t("common:message:savedSuccessfully")),t.form.IsTrialBasicLogicConfirmed=!0,t.isEdit=!1,t.$refs["signForm"].btnLoading=!1,t.signVisible=!1,t.updateVisible=!1,t.confirmVisible=!1,t.$emit("refresh"))})).catch((function(e){t.loading=!1,t.$refs["signForm"].btnLoading=!1}))},getConfigArr:function(){this.confirmData=[{Name:this.$t("trials:logincCfg:form:subjectNumberRule"),NewVal:this.$fd("YesOrNo",this.form.IsNoticeSubjectCodeRule),OldVal:this.$fd("YesOrNo",this.initialForm.IsNoticeSubjectCodeRule)},{Name:this.$t("trials:logincCfg:form:subjectNumFormat"),NewVal:this.form.SubjectCodeRule,OldVal:this.initialForm.SubjectCodeRule},{Name:this.$t("trials:logincCfg:form:subjectNum2"),NewVal:this.$fd("YesOrNo",this.initialForm.IsSubjectSecondCodeView),OldVal:this.$fd("YesOrNo",this.initialForm.IsSubjectSecondCodeView)},{Name:this.$t("trials:logincCfg:form:scanDateVerify"),NewVal:this.$fd("YesOrNo",this.form.IsVerifyVisitImageDate),OldVal:this.$fd("YesOrNo",this.initialForm.IsVerifyVisitImageDate)},{Name:this.$t("trials:logincCfg:form:visitBaseDate"),NewVal:this.$fd("YesOrNo",this.form.IsHaveFirstGiveMedicineDate),OldVal:this.$fd("YesOrNo",this.initialForm.IsHaveFirstGiveMedicineDate)},{Name:this.$t("trials:logincCfg:form:subjectAge"),NewVal:this.$fd("YesOrNo",this.form.IsHaveSubjectAge),OldVal:this.$fd("YesOrNo",this.initialForm.IsHaveSubjectAge)},{Name:this.$t("trials:logincCfg:form:subjectGender"),NewVal:this.$fd("YesOrNo",this.form.IsSubjectSexView),OldVal:this.$fd("YesOrNo",this.initialForm.IsSubjectSexView)},{Name:this.$t("trials:logincCfg:form:lastVisitName"),NewVal:this.form.OutEnrollmentVisitName,OldVal:this.initialForm.OutEnrollmentVisitName},{Name:this.$t("trials:logincCfg:form:imageCopy"),NewVal:this.$fd("YesOrNo",this.form.IsImageReplicationAcrossTrial),OldVal:this.$fd("YesOrNo",this.initialForm.IsImageReplicationAcrossTrial)},{Name:this.$t("trials:logincCfg:form:bodypart"),NewVal:this.form.BodyPartTypes,OldVal:this.initialForm.BodyPartTypes},{Name:this.$t("trials:logincCfg:form:modality"),NewVal:this.form.ModalityListStr,OldVal:this.initialForm.ModalityListStr},{Name:this.$t("trials:logincCfg:form:exceededDays"),NewVal:this.form.ChangeDefalutDays,OldVal:this.initialForm.ChangeDefalutDays}]},subjectCodeRuleChange:function(e){e||(this.form.SubjectCodeRule="")},initForm:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){var i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:for(i in this.form.TrialId=t.TrialId,this.loading=!0,this.form)t.hasOwnProperty(i)&&(this.form[i]=t[i]);this.form.ModalityListStr=this.form.ModalityList.toString().replaceAll(",","|"),console.log(this.form.ModalityListStr),this.initialForm=Object(o["a"])({},this.form),this.loading=!1;case 7:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),getClinicalDataList:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return new Promise((function(i,n){e.listLoading=!0,Object(s["yd"])({trialId:e.form.TrialId}).then((function(n){e.clinicalDataList=n.Result,e.listLoading=!1,t&&e.$nextTick((function(){for(var t=function(t){n=e.clinicalDataList.findIndex((function(i){return i.Id===e.form.ClinicalDataTrialSetIds[t]})),n>-1&&e.$refs["clinicalData"].toggleRowSelection(e.clinicalDataList[n],!0)},i=0;i<e.form.ClinicalDataTrialSetIds.length;i++){var n;t(i)}})),i()})).catch((function(){e.listLoading=!1,n()}))}))},handleSelectChange:function(e){var t=[];this.selectedCD=[];for(var i=0;i<e.length;i++)t.push(e[i].Id),this.selectedCD.push(e[i].ClinicalDataSetName);this.selectClinicalDataArr=t},handleConfirmClinicalData:function(){this.form.ClinicalDataSetNames=this.selectedCD,this.form.ClinicalDataTrialSetIds=this.selectClinicalDataArr,this.form.ClinicalDataSetNamesStr=this.form.ClinicalDataSetNames.join(", "),this.clinicalDataVisible=!1},handleSetCD:function(){var e=this;this.clinicalDataVisible=!0,this.$nextTick((function(){for(var t=function(t){n=e.clinicalDataList.findIndex((function(i){return i.Id===e.form.ClinicalDataTrialSetIds[t]})),n>-1&&e.$refs["clinicalData"].toggleRowSelection(e.clinicalDataList[n],!0)},i=0;i<e.form.ClinicalDataTrialSetIds.length;i++){var n;t(i)}}))},handleAddClinicalData:function(){this.currentRow={},this.addOrEditCD.title="新增",this.addOrEditCD.visible=!0},handleEditClinicalData:function(e){this.currentRow=Object(o["a"])({},e),this.addOrEditCD.title="编辑",this.addOrEditCD.visible=!0},handleDeleteClinicalData:function(e){var t=this;this.$confirm("是否确认删除?",{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.loading=!0,Object(s["fb"])(e.Id).then((function(i){if(t.loading=!1,i.IsSuccess){var n=t.selectedCD.indexOf(e.ClinicalDataSetName);n>-1&&t.selectedCD.splice(n,1);var a=t.selectClinicalDataArr.indexOf(e.Id);a>-1&&t.selectClinicalDataArr.splice(a,1);var r=t.form.ClinicalDataTrialSetIds.indexOf(e.Id);r>-1&&t.form.ClinicalDataTrialSetIds.splice(r,1);var o=t.form.ClinicalDataSetNames.indexOf(e.ClinicalDataSetName);o>-1&&(t.form.ClinicalDataSetNames.splice(o,1),t.form.ClinicalDataSetNamesStr=t.form.ClinicalDataSetNames.join(", ")),t.getClinicalDataList(!0),t.$message.success("删除成功!")}})).catch((function(){t.loading=!1}))}))},handleDownloadTpl:function(e){var t=this;this.listLoading=!0,Object(s["a"])(e.Id).then((function(e){t.listLoading=!1})).catch((function(){t.listLoading=!1}))},handleSelectable:function(e){return!e.IsUsed}}},h=f,p=(i("0811"),i("2877")),m=Object(p["a"])(h,n,a,!1,null,"2dd21b30",null);t["default"]=m.exports},c9935:function(e,t,i){"use strict";i("1fcb")},c9e1:function(e,t,i){},ca17:function(e,t,i){
/*!
* vue-treeselect v0.4.0 | (c) 2017-2019 Riophae Lee
* Released under the MIT License.
* https://vue-treeselect.js.org/
*/
e.exports=function(e){var t={};function i(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,i),a.l=!0,a.exports}return i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)i.d(n,a,function(t){return e[t]}.bind(null,a));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/",i(i.s=16)}([function(e,t){e.exports=i("278c")},function(e,t){e.exports=i("448a")},function(e,t){e.exports=i("9523")},function(e,t){e.exports=i("2e39")},function(e,t){e.exports=i("bcdf")},function(e,t){e.exports=i("b047")},function(e,t){e.exports=i("df0f")},function(e,t){e.exports=i("2655")},function(e,t){e.exports=i("1d92")},function(e,t){e.exports=i("cd9d")},function(e,t){e.exports=i("72f0a")},function(e,t){e.exports=i("7037")},function(e,t){e.exports=i("4416")},function(e,t){e.exports=i("92fa")},function(e,t){e.exports=i("2b0e")},function(e,t,i){},function(e,t,i){"use strict";i.r(t);var n=i(0),a=i.n(n),r=i(1),o=i.n(r),s=i(2),l=i.n(s),c=i(3),u=i.n(c),d=i(4),f=i.n(d),h=f.a;function p(e){return function(t){if("mousedown"===t.type&&0===t.button){for(var i=arguments.length,n=new Array(i>1?i-1:0),a=1;a<i;a++)n[a-1]=arguments[a];e.call.apply(e,[this,t].concat(n))}}}function m(e,t){var i=e.getBoundingClientRect(),n=t.getBoundingClientRect(),a=t.offsetHeight/3;n.bottom+a>i.bottom?e.scrollTop=Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+a,e.scrollHeight):n.top-a<i.top&&(e.scrollTop=Math.max(t.offsetTop-a,0))}var g,v=i(5),b=i.n(v),y=i(6),w=i.n(y);function _(e,t){var i=e.indexOf(t);-1!==i&&e.splice(i,1)}var I=[],x=100;function S(){g=setInterval((function(){I.forEach(C)}),x)}function T(){clearInterval(g),g=null}function C(e){var t=e.$el,i=e.listener,n=e.lastWidth,a=e.lastHeight,r=t.offsetWidth,o=t.offsetHeight;n===r&&a===o||(e.lastWidth=r,e.lastHeight=o,i({width:r,height:o}))}function k(e,t){var i={$el:e,listener:t,lastWidth:null,lastHeight:null},n=function(){_(I,i),I.length||T()};return I.push(i),C(i),S(),n}function R(e,t){var i=9===document.documentMode,n=!0,a=function(){return n||t.apply(void 0,arguments)},r=i?k:w.a,o=r(e,a);return n=!1,o}function D(e){var t=[],i=e.parentNode;while(i&&"BODY"!==i.nodeName&&i.nodeType===document.ELEMENT_NODE)L(i)&&t.push(i),i=i.parentNode;return t.push(window),t}function L(e){var t=getComputedStyle(e),i=t.overflow,n=t.overflowX,a=t.overflowY;return/(auto|scroll|overlay)/.test(i+a+n)}function O(e,t){var i=D(e);return window.addEventListener("resize",t,{passive:!0}),i.forEach((function(e){e.addEventListener("scroll",t,{passive:!0})})),function(){window.removeEventListener("resize",t,{passive:!0}),i.forEach((function(e){e.removeEventListener("scroll",t,{passive:!0})}))}}function $(e){return e!==e}var N=i(7),A=i.n(N),P=i(8),E=i.n(P),M=i(9),F=i.n(M),j=i(10),V=i.n(j),q=function(){return Object.create(null)},z=i(11),B=i.n(z);function U(e){return null!=e&&"object"===B()(e)&&Object.getPrototypeOf(e)===Object.prototype}function Q(e,t,i){U(i)?(e[t]||(e[t]={}),H(e[t],i)):e[t]=i}function H(e,t){if(U(t))for(var i=Object.keys(t),n=0,a=i.length;n<a;n++)Q(e,i[n],t[i[n]]);return e}var G=i(12),W=i.n(G);function Y(e,t){return-1!==e.indexOf(t)}function K(e,t,i){for(var n=0,a=e.length;n<a;n++)if(t.call(i,e[n],n,e))return e[n]}function Z(e,t){if(e.length!==t.length)return!0;for(var i=0;i<e.length;i++)if(e[i]!==t[i])return!0;return!1}var X=null,J=0,ee=1,te=2,ie="ALL_CHILDREN",ne="ALL_DESCENDANTS",ae="LEAF_CHILDREN",re="LEAF_DESCENDANTS",oe="LOAD_ROOT_OPTIONS",se="LOAD_CHILDREN_OPTIONS",le="ASYNC_SEARCH",ce="ALL",ue="BRANCH_PRIORITY",de="LEAF_PRIORITY",fe="ALL_WITH_INDETERMINATE",he="ORDER_SELECTED",pe="LEVEL",me="INDEX",ge={BACKSPACE:8,ENTER:13,ESCAPE:27,END:35,HOME:36,ARROW_LEFT:37,ARROW_UP:38,ARROW_RIGHT:39,ARROW_DOWN:40,DELETE:46},ve=200,be=5,ye=40;function we(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function _e(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?we(i,!0).forEach((function(t){l()(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):we(i).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function Ie(e,t){var i=0;do{if(e.level<i)return-1;if(t.level<i)return 1;if(e.index[i]!==t.index[i])return e.index[i]-t.index[i];i++}while(1)}function xe(e,t){return e.level===t.level?Ie(e,t):e.level-t.level}function Se(){return{isLoaded:!1,isLoading:!1,loadingError:""}}function Te(e){return"string"===typeof e?e:"number"!==typeof e||$(e)?"":e+""}function Ce(e,t,i){return e?u()(t,i):Y(i,t)}function ke(e){return e.message||String(e)}var Re=0,De={provide:function(){return{instance:this}},props:{allowClearingDisabled:{type:Boolean,default:!1},allowSelectingDisabledDescendants:{type:Boolean,default:!1},alwaysOpen:{type:Boolean,default:!1},appendToBody:{type:Boolean,default:!1},async:{type:Boolean,default:!1},autoFocus:{type:Boolean,default:!1},autoLoadRootOptions:{type:Boolean,default:!0},autoDeselectAncestors:{type:Boolean,default:!1},autoDeselectDescendants:{type:Boolean,default:!1},autoSelectAncestors:{type:Boolean,default:!1},autoSelectDescendants:{type:Boolean,default:!1},backspaceRemoves:{type:Boolean,default:!0},beforeClearAll:{type:Function,default:V()(!0)},branchNodesFirst:{type:Boolean,default:!1},cacheOptions:{type:Boolean,default:!0},clearable:{type:Boolean,default:!0},clearAllText:{type:String,default:"Clear all"},clearOnSelect:{type:Boolean,default:!1},clearValueText:{type:String,default:"Clear value"},closeOnSelect:{type:Boolean,default:!0},defaultExpandLevel:{type:Number,default:0},defaultOptions:{default:!1},deleteRemoves:{type:Boolean,default:!0},delimiter:{type:String,default:","},flattenSearchResults:{type:Boolean,default:!1},disableBranchNodes:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},disableFuzzyMatching:{type:Boolean,default:!1},flat:{type:Boolean,default:!1},instanceId:{default:function(){return"".concat(Re++,"$$")},type:[String,Number]},joinValues:{type:Boolean,default:!1},limit:{type:Number,default:1/0},limitText:{type:Function,default:function(e){return"and ".concat(e," more")}},loadingText:{type:String,default:"Loading..."},loadOptions:{type:Function},matchKeys:{type:Array,default:V()(["label"])},maxHeight:{type:Number,default:300},multiple:{type:Boolean,default:!1},name:{type:String},noChildrenText:{type:String,default:"No sub-options."},noOptionsText:{type:String,default:"No options available."},noResultsText:{type:String,default:"No results found..."},normalizer:{type:Function,default:F.a},openDirection:{type:String,default:"auto",validator:function(e){var t=["auto","top","bottom","above","below"];return Y(t,e)}},openOnClick:{type:Boolean,default:!0},openOnFocus:{type:Boolean,default:!1},options:{type:Array},placeholder:{type:String,default:"Select..."},required:{type:Boolean,default:!1},retryText:{type:String,default:"Retry?"},retryTitle:{type:String,default:"Click to retry"},searchable:{type:Boolean,default:!0},searchNested:{type:Boolean,default:!1},searchPromptText:{type:String,default:"Type to search..."},showCount:{type:Boolean,default:!1},showCountOf:{type:String,default:ie,validator:function(e){var t=[ie,ne,ae,re];return Y(t,e)}},showCountOnSearch:null,sortValueBy:{type:String,default:he,validator:function(e){var t=[he,pe,me];return Y(t,e)}},tabIndex:{type:Number,default:0},value:null,valueConsistsOf:{type:String,default:ue,validator:function(e){var t=[ce,ue,de,fe];return Y(t,e)}},valueFormat:{type:String,default:"id"},zIndex:{type:[Number,String],default:999}},data:function(){return{trigger:{isFocused:!1,searchQuery:""},menu:{isOpen:!1,current:null,lastScrollPosition:0,placement:"bottom"},forest:{normalizedOptions:[],nodeMap:q(),checkedStateMap:q(),selectedNodeIds:this.extractCheckedNodeIdsFromValue(),selectedNodeMap:q()},rootOptionsStates:Se(),localSearch:{active:!1,noResults:!0,countMap:q()},remoteSearch:q()}},computed:{selectedNodes:function(){return this.forest.selectedNodeIds.map(this.getNode)},internalValue:function(){var e,t=this;if(this.single||this.flat||this.disableBranchNodes||this.valueConsistsOf===ce)e=this.forest.selectedNodeIds.slice();else if(this.valueConsistsOf===ue)e=this.forest.selectedNodeIds.filter((function(e){var i=t.getNode(e);return!!i.isRootNode||!t.isSelected(i.parentNode)}));else if(this.valueConsistsOf===de)e=this.forest.selectedNodeIds.filter((function(e){var i=t.getNode(e);return!!i.isLeaf||0===i.children.length}));else if(this.valueConsistsOf===fe){var i,n=[];e=this.forest.selectedNodeIds.slice(),this.selectedNodes.forEach((function(t){t.ancestors.forEach((function(t){Y(n,t.id)||Y(e,t.id)||n.push(t.id)}))})),(i=e).push.apply(i,n)}return this.sortValueBy===pe?e.sort((function(e,i){return xe(t.getNode(e),t.getNode(i))})):this.sortValueBy===me&&e.sort((function(e,i){return Ie(t.getNode(e),t.getNode(i))})),e},hasValue:function(){return this.internalValue.length>0},single:function(){return!this.multiple},visibleOptionIds:function(){var e=this,t=[];return this.traverseAllNodesByIndex((function(i){if(e.localSearch.active&&!e.shouldOptionBeIncludedInSearchResult(i)||t.push(i.id),i.isBranch&&!e.shouldExpand(i))return!1})),t},hasVisibleOptions:function(){return 0!==this.visibleOptionIds.length},showCountOnSearchComputed:function(){return"boolean"===typeof this.showCountOnSearch?this.showCountOnSearch:this.showCount},hasBranchNodes:function(){return this.forest.normalizedOptions.some((function(e){return e.isBranch}))},shouldFlattenOptions:function(){return this.localSearch.active&&this.flattenSearchResults}},watch:{alwaysOpen:function(e){e?this.openMenu():this.closeMenu()},branchNodesFirst:function(){this.initialize()},disabled:function(e){e&&this.menu.isOpen?this.closeMenu():e||this.menu.isOpen||!this.alwaysOpen||this.openMenu()},flat:function(){this.initialize()},internalValue:function(e,t){var i=Z(e,t);i&&this.$emit("input",this.getValue(),this.getInstanceId())},matchKeys:function(){this.initialize()},multiple:function(e){e&&this.buildForestState()},options:{handler:function(){this.async||(this.initialize(),this.rootOptionsStates.isLoaded=Array.isArray(this.options))},deep:!0,immediate:!0},"trigger.searchQuery":function(){this.async?this.handleRemoteSearch():this.handleLocalSearch(),this.$emit("search-change",this.trigger.searchQuery,this.getInstanceId())},value:function(){var e=this.extractCheckedNodeIdsFromValue(),t=Z(e,this.internalValue);t&&this.fixSelectedNodeIds(e)}},methods:{verifyProps:function(){var e=this;if(h((function(){return!e.async||e.searchable}),(function(){return'For async search mode, the value of "searchable" prop must be true.'})),null!=this.options||this.loadOptions||h((function(){return!1}),(function(){return'Are you meant to dynamically load options? You need to use "loadOptions" prop.'})),this.flat&&h((function(){return e.multiple}),(function(){return'You are using flat mode. But you forgot to add "multiple=true"?'})),!this.flat){var t=["autoSelectAncestors","autoSelectDescendants","autoDeselectAncestors","autoDeselectDescendants"];t.forEach((function(t){h((function(){return!e[t]}),(function(){return'"'.concat(t,'" only applies to flat mode.')}))}))}},resetFlags:function(){this._blurOnSelect=!1},initialize:function(){var e=this.async?this.getRemoteSearchEntry().options:this.options;if(Array.isArray(e)){var t=this.forest.nodeMap;this.forest.nodeMap=q(),this.keepDataOfSelectedNodes(t),this.forest.normalizedOptions=this.normalize(X,e,t),this.fixSelectedNodeIds(this.internalValue)}else this.forest.normalizedOptions=[]},getInstanceId:function(){return null==this.instanceId?this.id:this.instanceId},getValue:function(){var e=this;if("id"===this.valueFormat)return this.multiple?this.internalValue.slice():this.internalValue[0];var t=this.internalValue.map((function(t){return e.getNode(t).raw}));return this.multiple?t:t[0]},getNode:function(e){return h((function(){return null!=e}),(function(){return"Invalid node id: ".concat(e)})),null==e?null:e in this.forest.nodeMap?this.forest.nodeMap[e]:this.createFallbackNode(e)},createFallbackNode:function(e){var t=this.extractNodeFromValue(e),i=this.enhancedNormalizer(t).label||"".concat(e," (unknown)"),n={id:e,label:i,ancestors:[],parentNode:X,isFallbackNode:!0,isRootNode:!0,isLeaf:!0,isBranch:!1,isDisabled:!1,isNew:!1,index:[-1],level:0,raw:t};return this.$set(this.forest.nodeMap,e,n)},extractCheckedNodeIdsFromValue:function(){var e=this;return null==this.value?[]:"id"===this.valueFormat?this.multiple?this.value.slice():[this.value]:(this.multiple?this.value:[this.value]).map((function(t){return e.enhancedNormalizer(t)})).map((function(e){return e.id}))},extractNodeFromValue:function(e){var t=this,i={id:e};if("id"===this.valueFormat)return i;var n=this.multiple?Array.isArray(this.value)?this.value:[]:this.value?[this.value]:[],a=K(n,(function(i){return i&&t.enhancedNormalizer(i).id===e}));return a||i},fixSelectedNodeIds:function(e){var t=this,i=[];if(this.single||this.flat||this.disableBranchNodes||this.valueConsistsOf===ce)i=e;else if(this.valueConsistsOf===ue)e.forEach((function(e){i.push(e);var n=t.getNode(e);n.isBranch&&t.traverseDescendantsBFS(n,(function(e){i.push(e.id)}))}));else if(this.valueConsistsOf===de){var n=q(),a=e.slice();while(a.length){var r=a.shift(),o=this.getNode(r);i.push(r),o.isRootNode||(o.parentNode.id in n||(n[o.parentNode.id]=o.parentNode.children.length),0===--n[o.parentNode.id]&&a.push(o.parentNode.id))}}else if(this.valueConsistsOf===fe){var s=q(),l=e.filter((function(e){var i=t.getNode(e);return i.isLeaf||0===i.children.length}));while(l.length){var c=l.shift(),u=this.getNode(c);i.push(c),u.isRootNode||(u.parentNode.id in s||(s[u.parentNode.id]=u.parentNode.children.length),0===--s[u.parentNode.id]&&l.push(u.parentNode.id))}}var d=Z(this.forest.selectedNodeIds,i);d&&(this.forest.selectedNodeIds=i),this.buildForestState()},keepDataOfSelectedNodes:function(e){var t=this;this.forest.selectedNodeIds.forEach((function(i){if(e[i]){var n=_e({},e[i],{isFallbackNode:!0});t.$set(t.forest.nodeMap,i,n)}}))},isSelected:function(e){return!0===this.forest.selectedNodeMap[e.id]},traverseDescendantsBFS:function(e,t){if(e.isBranch){var i=e.children.slice();while(i.length){var n=i[0];n.isBranch&&i.push.apply(i,o()(n.children)),t(n),i.shift()}}},traverseDescendantsDFS:function(e,t){var i=this;e.isBranch&&e.children.forEach((function(e){i.traverseDescendantsDFS(e,t),t(e)}))},traverseAllNodesDFS:function(e){var t=this;this.forest.normalizedOptions.forEach((function(i){t.traverseDescendantsDFS(i,e),e(i)}))},traverseAllNodesByIndex:function(e){var t=function t(i){i.children.forEach((function(i){!1!==e(i)&&i.isBranch&&t(i)}))};t({children:this.forest.normalizedOptions})},toggleClickOutsideEvent:function(e){e?document.addEventListener("mousedown",this.handleClickOutside,!1):document.removeEventListener("mousedown",this.handleClickOutside,!1)},getValueContainer:function(){return this.$refs.control.$refs["value-container"]},getInput:function(){return this.getValueContainer().$refs.input},focusInput:function(){this.getInput().focus()},blurInput:function(){this.getInput().blur()},handleMouseDown:p((function(e){if(e.preventDefault(),e.stopPropagation(),!this.disabled){var t=this.getValueContainer().$el.contains(e.target);t&&!this.menu.isOpen&&(this.openOnClick||this.trigger.isFocused)&&this.openMenu(),this._blurOnSelect?this.blurInput():this.focusInput(),this.resetFlags()}})),handleClickOutside:function(e){this.$refs.wrapper&&!this.$refs.wrapper.contains(e.target)&&(this.blurInput(),this.closeMenu())},handleLocalSearch:function(){var e=this,t=this.trigger.searchQuery,i=function(){return e.resetHighlightedOptionWhenNecessary(!0)};if(!t)return this.localSearch.active=!1,i();this.localSearch.active=!0,this.localSearch.noResults=!0,this.traverseAllNodesDFS((function(t){var i;t.isBranch&&(t.isExpandedOnSearch=!1,t.showAllChildrenOnSearch=!1,t.isMatched=!1,t.hasMatchedDescendants=!1,e.$set(e.localSearch.countMap,t.id,(i={},l()(i,ie,0),l()(i,ne,0),l()(i,ae,0),l()(i,re,0),i)))}));var n=t.trim().toLocaleLowerCase(),a=n.replace(/\s+/g," ").split(" ");this.traverseAllNodesDFS((function(t){e.searchNested&&a.length>1?t.isMatched=a.every((function(e){return Ce(!1,e,t.nestedSearchLabel)})):t.isMatched=e.matchKeys.some((function(i){return Ce(!e.disableFuzzyMatching,n,t.lowerCased[i])})),t.isMatched&&(e.localSearch.noResults=!1,t.ancestors.forEach((function(t){return e.localSearch.countMap[t.id][ne]++})),t.isLeaf&&t.ancestors.forEach((function(t){return e.localSearch.countMap[t.id][re]++})),t.parentNode!==X&&(e.localSearch.countMap[t.parentNode.id][ie]+=1,t.isLeaf&&(e.localSearch.countMap[t.parentNode.id][ae]+=1))),(t.isMatched||t.isBranch&&t.isExpandedOnSearch)&&t.parentNode!==X&&(t.parentNode.isExpandedOnSearch=!0,t.parentNode.hasMatchedDescendants=!0)})),i()},handleRemoteSearch:function(){var e=this,t=this.trigger.searchQuery,i=this.getRemoteSearchEntry(),n=function(){e.initialize(),e.resetHighlightedOptionWhenNecessary(!0)};if((""===t||this.cacheOptions)&&i.isLoaded)return n();this.callLoadOptionsProp({action:le,args:{searchQuery:t},isPending:function(){return i.isLoading},start:function(){i.isLoading=!0,i.isLoaded=!1,i.loadingError=""},succeed:function(a){i.isLoaded=!0,i.options=a,e.trigger.searchQuery===t&&n()},fail:function(e){i.loadingError=ke(e)},end:function(){i.isLoading=!1}})},getRemoteSearchEntry:function(){var e=this,t=this.trigger.searchQuery,i=this.remoteSearch[t]||_e({},Se(),{options:[]});if(this.$watch((function(){return i.options}),(function(){e.trigger.searchQuery===t&&e.initialize()}),{deep:!0}),""===t){if(Array.isArray(this.defaultOptions))return i.options=this.defaultOptions,i.isLoaded=!0,i;if(!0!==this.defaultOptions)return i.isLoaded=!0,i}return this.remoteSearch[t]||this.$set(this.remoteSearch,t,i),i},shouldExpand:function(e){return this.localSearch.active?e.isExpandedOnSearch:e.isExpanded},shouldOptionBeIncludedInSearchResult:function(e){return!!e.isMatched||(!(!e.isBranch||!e.hasMatchedDescendants||this.flattenSearchResults)||!(e.isRootNode||!e.parentNode.showAllChildrenOnSearch))},shouldShowOptionInMenu:function(e){return!(this.localSearch.active&&!this.shouldOptionBeIncludedInSearchResult(e))},getControl:function(){return this.$refs.control.$el},getMenu:function(){var e=this.appendToBody?this.$refs.portal.portalTarget:this,t=e.$refs.menu.$refs.menu;return t&&"#comment"!==t.nodeName?t:null},setCurrentHighlightedOption:function(e){var t=this,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.menu.current;if(null!=n&&n in this.forest.nodeMap&&(this.forest.nodeMap[n].isHighlighted=!1),this.menu.current=e.id,e.isHighlighted=!0,this.menu.isOpen&&i){var a=function(){var i=t.getMenu(),n=i.querySelector('.vue-treeselect__option[data-id="'.concat(e.id,'"]'));n&&m(i,n)};this.getMenu()?a():this.$nextTick(a)}},resetHighlightedOptionWhenNecessary:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.menu.current;!e&&null!=t&&t in this.forest.nodeMap&&this.shouldShowOptionInMenu(this.getNode(t))||this.highlightFirstOption()},highlightFirstOption:function(){if(this.hasVisibleOptions){var e=this.visibleOptionIds[0];this.setCurrentHighlightedOption(this.getNode(e))}},highlightPrevOption:function(){if(this.hasVisibleOptions){var e=this.visibleOptionIds.indexOf(this.menu.current)-1;if(-1===e)return this.highlightLastOption();this.setCurrentHighlightedOption(this.getNode(this.visibleOptionIds[e]))}},highlightNextOption:function(){if(this.hasVisibleOptions){var e=this.visibleOptionIds.indexOf(this.menu.current)+1;if(e===this.visibleOptionIds.length)return this.highlightFirstOption();this.setCurrentHighlightedOption(this.getNode(this.visibleOptionIds[e]))}},highlightLastOption:function(){if(this.hasVisibleOptions){var e=W()(this.visibleOptionIds);this.setCurrentHighlightedOption(this.getNode(e))}},resetSearchQuery:function(){this.trigger.searchQuery=""},closeMenu:function(){!this.menu.isOpen||!this.disabled&&this.alwaysOpen||(this.saveMenuScrollPosition(),this.menu.isOpen=!1,this.toggleClickOutsideEvent(!1),this.resetSearchQuery(),this.$emit("close",this.getValue(),this.getInstanceId()))},openMenu:function(){this.disabled||this.menu.isOpen||(this.menu.isOpen=!0,this.$nextTick(this.resetHighlightedOptionWhenNecessary),this.$nextTick(this.restoreMenuScrollPosition),this.options||this.async||this.loadRootOptions(),this.toggleClickOutsideEvent(!0),this.$emit("open",this.getInstanceId()))},toggleMenu:function(){this.menu.isOpen?this.closeMenu():this.openMenu()},toggleExpanded:function(e){var t;this.localSearch.active?(t=e.isExpandedOnSearch=!e.isExpandedOnSearch,t&&(e.showAllChildrenOnSearch=!0)):t=e.isExpanded=!e.isExpanded,t&&!e.childrenStates.isLoaded&&this.loadChildrenOptions(e)},buildForestState:function(){var e=this,t=q();this.forest.selectedNodeIds.forEach((function(e){t[e]=!0})),this.forest.selectedNodeMap=t;var i=q();this.multiple&&(this.traverseAllNodesByIndex((function(e){i[e.id]=J})),this.selectedNodes.forEach((function(t){i[t.id]=te,e.flat||e.disableBranchNodes||t.ancestors.forEach((function(t){e.isSelected(t)||(i[t.id]=ee)}))}))),this.forest.checkedStateMap=i},enhancedNormalizer:function(e){return _e({},e,{},this.normalizer(e,this.getInstanceId()))},normalize:function(e,t,i){var n=this,r=t.map((function(e){return[n.enhancedNormalizer(e),e]})).map((function(t,r){var o=a()(t,2),s=o[0],c=o[1];n.checkDuplication(s),n.verifyNodeShape(s);var u=s.id,d=s.label,f=s.children,p=s.isDefaultExpanded,m=e===X,g=m?0:e.level+1,v=Array.isArray(f)||null===f,b=!v,y=!!s.isDisabled||!n.flat&&!m&&e.isDisabled,w=!!s.isNew,_=n.matchKeys.reduce((function(e,t){return _e({},e,l()({},t,Te(s[t]).toLocaleLowerCase()))}),{}),I=m?_.label:e.nestedSearchLabel+" "+_.label,x=n.$set(n.forest.nodeMap,u,q());if(n.$set(x,"id",u),n.$set(x,"label",d),n.$set(x,"level",g),n.$set(x,"ancestors",m?[]:[e].concat(e.ancestors)),n.$set(x,"index",(m?[]:e.index).concat(r)),n.$set(x,"parentNode",e),n.$set(x,"lowerCased",_),n.$set(x,"nestedSearchLabel",I),n.$set(x,"isDisabled",y),n.$set(x,"isNew",w),n.$set(x,"isMatched",!1),n.$set(x,"isHighlighted",!1),n.$set(x,"isBranch",v),n.$set(x,"isLeaf",b),n.$set(x,"isRootNode",m),n.$set(x,"raw",c),v){var S,T=Array.isArray(f);n.$set(x,"childrenStates",_e({},Se(),{isLoaded:T})),n.$set(x,"isExpanded","boolean"===typeof p?p:g<n.defaultExpandLevel),n.$set(x,"hasMatchedDescendants",!1),n.$set(x,"hasDisabledDescendants",!1),n.$set(x,"isExpandedOnSearch",!1),n.$set(x,"showAllChildrenOnSearch",!1),n.$set(x,"count",(S={},l()(S,ie,0),l()(S,ne,0),l()(S,ae,0),l()(S,re,0),S)),n.$set(x,"children",T?n.normalize(x,f,i):[]),!0===p&&x.ancestors.forEach((function(e){e.isExpanded=!0})),T||"function"===typeof n.loadOptions?!T&&x.isExpanded&&n.loadChildrenOptions(x):h((function(){return!1}),(function(){return'Unloaded branch node detected. "loadOptions" prop is required to load its children.'}))}if(x.ancestors.forEach((function(e){return e.count[ne]++})),b&&x.ancestors.forEach((function(e){return e.count[re]++})),m||(e.count[ie]+=1,b&&(e.count[ae]+=1),y&&(e.hasDisabledDescendants=!0)),i&&i[u]){var C=i[u];x.isMatched=C.isMatched,x.showAllChildrenOnSearch=C.showAllChildrenOnSearch,x.isHighlighted=C.isHighlighted,C.isBranch&&x.isBranch&&(x.isExpanded=C.isExpanded,x.isExpandedOnSearch=C.isExpandedOnSearch,C.childrenStates.isLoaded&&!x.childrenStates.isLoaded?x.isExpanded=!1:x.childrenStates=_e({},C.childrenStates))}return x}));if(this.branchNodesFirst){var o=r.filter((function(e){return e.isBranch})),s=r.filter((function(e){return e.isLeaf}));r=o.concat(s)}return r},loadRootOptions:function(){var e=this;this.callLoadOptionsProp({action:oe,isPending:function(){return e.rootOptionsStates.isLoading},start:function(){e.rootOptionsStates.isLoading=!0,e.rootOptionsStates.loadingError=""},succeed:function(){e.rootOptionsStates.isLoaded=!0,e.$nextTick((function(){e.resetHighlightedOptionWhenNecessary(!0)}))},fail:function(t){e.rootOptionsStates.loadingError=ke(t)},end:function(){e.rootOptionsStates.isLoading=!1}})},loadChildrenOptions:function(e){var t=this,i=e.id,n=e.raw;this.callLoadOptionsProp({action:se,args:{parentNode:n},isPending:function(){return t.getNode(i).childrenStates.isLoading},start:function(){t.getNode(i).childrenStates.isLoading=!0,t.getNode(i).childrenStates.loadingError=""},succeed:function(){t.getNode(i).childrenStates.isLoaded=!0},fail:function(e){t.getNode(i).childrenStates.loadingError=ke(e)},end:function(){t.getNode(i).childrenStates.isLoading=!1}})},callLoadOptionsProp:function(e){var t=e.action,i=e.args,n=e.isPending,a=e.start,r=e.succeed,o=e.fail,s=e.end;if(this.loadOptions&&!n()){a();var l=E()((function(e,t){e?o(e):r(t),s()})),c=this.loadOptions(_e({id:this.getInstanceId(),instanceId:this.getInstanceId(),action:t},i,{callback:l}));A()(c)&&c.then((function(){l()}),(function(e){l(e)})).catch((function(e){console.error(e)}))}},checkDuplication:function(e){var t=this;h((function(){return!(e.id in t.forest.nodeMap&&!t.forest.nodeMap[e.id].isFallbackNode)}),(function(){return"Detected duplicate presence of node id ".concat(JSON.stringify(e.id),". ")+'Their labels are "'.concat(t.forest.nodeMap[e.id].label,'" and "').concat(e.label,'" respectively.')}))},verifyNodeShape:function(e){h((function(){return!(void 0===e.children&&!0===e.isBranch)}),(function(){return"Are you meant to declare an unloaded branch node? `isBranch: true` is no longer supported, please use `children: null` instead."}))},select:function(e){if(!this.disabled&&!e.isDisabled){this.single&&this.clear();var t=this.multiple&&!this.flat?this.forest.checkedStateMap[e.id]===J:!this.isSelected(e);t?this._selectNode(e):this._deselectNode(e),this.buildForestState(),t?this.$emit("select",e.raw,this.getInstanceId()):this.$emit("deselect",e.raw,this.getInstanceId()),this.localSearch.active&&t&&(this.single||this.clearOnSelect)&&this.resetSearchQuery(),this.single&&this.closeOnSelect&&(this.closeMenu(),this.searchable&&(this._blurOnSelect=!0))}},clear:function(){var e=this;this.hasValue&&(this.single||this.allowClearingDisabled?this.forest.selectedNodeIds=[]:this.forest.selectedNodeIds=this.forest.selectedNodeIds.filter((function(t){return e.getNode(t).isDisabled})),this.buildForestState())},_selectNode:function(e){var t=this;if(this.single||this.disableBranchNodes)return this.addValue(e);if(this.flat)return this.addValue(e),void(this.autoSelectAncestors?e.ancestors.forEach((function(e){t.isSelected(e)||e.isDisabled||t.addValue(e)})):this.autoSelectDescendants&&this.traverseDescendantsBFS(e,(function(e){t.isSelected(e)||e.isDisabled||t.addValue(e)})));var i=e.isLeaf||!e.hasDisabledDescendants||this.allowSelectingDisabledDescendants;if(i&&this.addValue(e),e.isBranch&&this.traverseDescendantsBFS(e,(function(e){e.isDisabled&&!t.allowSelectingDisabledDescendants||t.addValue(e)})),i){var n=e;while((n=n.parentNode)!==X){if(!n.children.every(this.isSelected))break;this.addValue(n)}}},_deselectNode:function(e){var t=this;if(this.disableBranchNodes)return this.removeValue(e);if(this.flat)return this.removeValue(e),void(this.autoDeselectAncestors?e.ancestors.forEach((function(e){t.isSelected(e)&&!e.isDisabled&&t.removeValue(e)})):this.autoDeselectDescendants&&this.traverseDescendantsBFS(e,(function(e){t.isSelected(e)&&!e.isDisabled&&t.removeValue(e)})));var i=!1;if(e.isBranch&&this.traverseDescendantsDFS(e,(function(e){e.isDisabled&&!t.allowSelectingDisabledDescendants||(t.removeValue(e),i=!0)})),e.isLeaf||i||0===e.children.length){this.removeValue(e);var n=e;while((n=n.parentNode)!==X){if(!this.isSelected(n))break;this.removeValue(n)}}},addValue:function(e){this.forest.selectedNodeIds.push(e.id),this.forest.selectedNodeMap[e.id]=!0},removeValue:function(e){_(this.forest.selectedNodeIds,e.id),delete this.forest.selectedNodeMap[e.id]},removeLastValue:function(){if(this.hasValue){if(this.single)return this.clear();var e=W()(this.internalValue),t=this.getNode(e);this.select(t)}},saveMenuScrollPosition:function(){var e=this.getMenu();e&&(this.menu.lastScrollPosition=e.scrollTop)},restoreMenuScrollPosition:function(){var e=this.getMenu();e&&(e.scrollTop=this.menu.lastScrollPosition)}},created:function(){this.verifyProps(),this.resetFlags()},mounted:function(){this.autoFocus&&this.focusInput(),this.options||this.async||!this.autoLoadRootOptions||this.loadRootOptions(),this.alwaysOpen&&this.openMenu(),this.async&&this.defaultOptions&&this.handleRemoteSearch()},destroyed:function(){this.toggleClickOutsideEvent(!1)}};function Le(e){return"string"===typeof e?e:null==e||$(e)?"":JSON.stringify(e)}var Oe,$e,Ne={name:"vue-treeselect--hidden-fields",inject:["instance"],functional:!0,render:function(e,t){var i=arguments[0],n=t.injections.instance;if(!n.name||n.disabled||!n.hasValue)return null;var a=n.internalValue.map(Le);return n.multiple&&n.joinValues&&(a=[a.join(n.delimiter)]),a.map((function(e,t){return i("input",{attrs:{type:"hidden",name:n.name},domProps:{value:e},key:"hidden-field-"+t})}))}},Ae=Ne;function Pe(e,t,i,n,a,r,o,s){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=i,c._compiled=!0),n&&(c.functional=!0),r&&(c._scopeId="data-v-"+r),o?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),a&&a.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=l):a&&(l=s?function(){a.call(this,this.$root.$options.shadowRoot)}:a),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}var Ee=Pe(Ae,Oe,$e,!1,null,null,null);Ee.options.__file="src/components/HiddenFields.vue";var Me,Fe,je=Ee.exports,Ve=i(13),qe=i.n(Ve),ze=[ge.ENTER,ge.END,ge.HOME,ge.ARROW_LEFT,ge.ARROW_UP,ge.ARROW_RIGHT,ge.ARROW_DOWN],Be={name:"vue-treeselect--input",inject:["instance"],data:function(){return{inputWidth:be,value:""}},computed:{needAutoSize:function(){var e=this.instance;return e.searchable&&!e.disabled&&e.multiple},inputStyle:function(){return{width:this.needAutoSize?"".concat(this.inputWidth,"px"):null}}},watch:{"instance.trigger.searchQuery":function(e){this.value=e},value:function(){this.needAutoSize&&this.$nextTick(this.updateInputWidth)}},created:function(){this.debouncedCallback=b()(this.updateSearchQuery,ve,{leading:!0,trailing:!0})},methods:{clear:function(){this.onInput({target:{value:""}})},focus:function(){var e=this.instance;e.disabled||this.$refs.input&&this.$refs.input.focus()},blur:function(){this.$refs.input&&this.$refs.input.blur()},onFocus:function(){var e=this.instance;e.trigger.isFocused=!0,e.openOnFocus&&e.openMenu()},onBlur:function(){var e=this.instance,t=e.getMenu();if(t&&document.activeElement===t)return this.focus();e.trigger.isFocused=!1,e.closeMenu()},onInput:function(e){var t=e.target.value;this.value=t,t?this.debouncedCallback():(this.debouncedCallback.cancel(),this.updateSearchQuery())},onKeyDown:function(e){var t=this.instance,i="which"in e?e.which:e.keyCode;if(!(e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)){if(!t.menu.isOpen&&Y(ze,i))return e.preventDefault(),t.openMenu();switch(i){case ge.BACKSPACE:t.backspaceRemoves&&!this.value.length&&t.removeLastValue();break;case ge.ENTER:if(e.preventDefault(),null===t.menu.current)return;var n=t.getNode(t.menu.current);if(n.isBranch&&t.disableBranchNodes)return;t.select(n);break;case ge.ESCAPE:this.value.length?this.clear():t.menu.isOpen&&t.closeMenu();break;case ge.END:e.preventDefault(),t.highlightLastOption();break;case ge.HOME:e.preventDefault(),t.highlightFirstOption();break;case ge.ARROW_LEFT:var a=t.getNode(t.menu.current);a.isBranch&&t.shouldExpand(a)?(e.preventDefault(),t.toggleExpanded(a)):!a.isRootNode&&(a.isLeaf||a.isBranch&&!t.shouldExpand(a))&&(e.preventDefault(),t.setCurrentHighlightedOption(a.parentNode));break;case ge.ARROW_UP:e.preventDefault(),t.highlightPrevOption();break;case ge.ARROW_RIGHT:var r=t.getNode(t.menu.current);r.isBranch&&!t.shouldExpand(r)&&(e.preventDefault(),t.toggleExpanded(r));break;case ge.ARROW_DOWN:e.preventDefault(),t.highlightNextOption();break;case ge.DELETE:t.deleteRemoves&&!this.value.length&&t.removeLastValue();break;default:t.openMenu()}}},onMouseDown:function(e){this.value.length&&e.stopPropagation()},renderInputContainer:function(){var e=this.$createElement,t=this.instance,i={},n=[];return t.searchable&&!t.disabled&&(n.push(this.renderInput()),this.needAutoSize&&n.push(this.renderSizer())),t.searchable||H(i,{on:{focus:this.onFocus,blur:this.onBlur,keydown:this.onKeyDown},ref:"input"}),t.searchable||t.disabled||H(i,{attrs:{tabIndex:t.tabIndex}}),e("div",qe()([{class:"vue-treeselect__input-container"},i]),[n])},renderInput:function(){var e=this.$createElement,t=this.instance;return e("input",{ref:"input",class:"vue-treeselect__input",attrs:{type:"text",autocomplete:"off",tabIndex:t.tabIndex,required:t.required&&!t.hasValue},domProps:{value:this.value},style:this.inputStyle,on:{focus:this.onFocus,input:this.onInput,blur:this.onBlur,keydown:this.onKeyDown,mousedown:this.onMouseDown}})},renderSizer:function(){var e=this.$createElement;return e("div",{ref:"sizer",class:"vue-treeselect__sizer"},[this.value])},updateInputWidth:function(){this.inputWidth=Math.max(be,this.$refs.sizer.scrollWidth+15)},updateSearchQuery:function(){var e=this.instance;e.trigger.searchQuery=this.value}},render:function(){return this.renderInputContainer()}},Ue=Be,Qe=Pe(Ue,Me,Fe,!1,null,null,null);Qe.options.__file="src/components/Input.vue";var He,Ge,We=Qe.exports,Ye={name:"vue-treeselect--placeholder",inject:["instance"],render:function(){var e=arguments[0],t=this.instance,i={"vue-treeselect__placeholder":!0,"vue-treeselect-helper-zoom-effect-off":!0,"vue-treeselect-helper-hide":t.hasValue||t.trigger.searchQuery};return e("div",{class:i},[t.placeholder])}},Ke=Ye,Ze=Pe(Ke,He,Ge,!1,null,null,null);Ze.options.__file="src/components/Placeholder.vue";var Xe,Je,et=Ze.exports,tt={name:"vue-treeselect--single-value",inject:["instance"],methods:{renderSingleValueLabel:function(){var e=this.instance,t=e.selectedNodes[0],i=e.$scopedSlots["value-label"];return i?i({node:t}):t.label}},render:function(){var e=arguments[0],t=this.instance,i=this.$parent.renderValueContainer,n=t.hasValue&&!t.trigger.searchQuery;return i([n&&e("div",{class:"vue-treeselect__single-value"},[this.renderSingleValueLabel()]),e(et),e(We,{ref:"input"})])}},it=tt,nt=Pe(it,Xe,Je,!1,null,null,null);nt.options.__file="src/components/SingleValue.vue";var at=nt.exports,rt=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 348.333 348.333"}},[i("path",{attrs:{d:"M336.559 68.611L231.016 174.165l105.543 105.549c15.699 15.705 15.699 41.145 0 56.85-7.844 7.844-18.128 11.769-28.407 11.769-10.296 0-20.581-3.919-28.419-11.769L174.167 231.003 68.609 336.563c-7.843 7.844-18.128 11.769-28.416 11.769-10.285 0-20.563-3.919-28.413-11.769-15.699-15.698-15.699-41.139 0-56.85l105.54-105.549L11.774 68.611c-15.699-15.699-15.699-41.145 0-56.844 15.696-15.687 41.127-15.687 56.829 0l105.563 105.554L279.721 11.767c15.705-15.687 41.139-15.687 56.832 0 15.705 15.699 15.705 41.145.006 56.844z"}})])},ot=[];rt._withStripped=!0;var st={name:"vue-treeselect--x"},lt=st,ct=Pe(lt,rt,ot,!1,null,null,null);ct.options.__file="src/components/icons/Delete.vue";var ut,dt,ft=ct.exports,ht={name:"vue-treeselect--multi-value-item",inject:["instance"],props:{node:{type:Object,required:!0}},methods:{handleMouseDown:p((function(){var e=this.instance,t=this.node;e.select(t)}))},render:function(){var e=arguments[0],t=this.instance,i=this.node,n={"vue-treeselect__multi-value-item":!0,"vue-treeselect__multi-value-item-disabled":i.isDisabled,"vue-treeselect__multi-value-item-new":i.isNew},a=t.$scopedSlots["value-label"],r=a?a({node:i}):i.label;return e("div",{class:"vue-treeselect__multi-value-item-container"},[e("div",{class:n,on:{mousedown:this.handleMouseDown}},[e("span",{class:"vue-treeselect__multi-value-label"},[r]),e("span",{class:"vue-treeselect__icon vue-treeselect__value-remove"},[e(ft)])])])}},pt=ht,mt=Pe(pt,ut,dt,!1,null,null,null);mt.options.__file="src/components/MultiValueItem.vue";var gt,vt,bt=mt.exports,yt={name:"vue-treeselect--multi-value",inject:["instance"],methods:{renderMultiValueItems:function(){var e=this.$createElement,t=this.instance;return t.internalValue.slice(0,t.limit).map(t.getNode).map((function(t){return e(bt,{key:"multi-value-item-".concat(t.id),attrs:{node:t}})}))},renderExceedLimitTip:function(){var e=this.$createElement,t=this.instance,i=t.internalValue.length-t.limit;return i<=0?null:e("div",{class:"vue-treeselect__limit-tip vue-treeselect-helper-zoom-effect-off",key:"exceed-limit-tip"},[e("span",{class:"vue-treeselect__limit-tip-text"},[t.limitText(i)])])}},render:function(){var e=arguments[0],t=this.$parent.renderValueContainer,i={props:{tag:"div",name:"vue-treeselect__multi-value-item--transition",appear:!0}};return t(e("transition-group",qe()([{class:"vue-treeselect__multi-value"},i]),[this.renderMultiValueItems(),this.renderExceedLimitTip(),e(et,{key:"placeholder"}),e(We,{ref:"input",key:"input"})]))}},wt=yt,_t=Pe(wt,gt,vt,!1,null,null,null);_t.options.__file="src/components/MultiValue.vue";var It=_t.exports,xt=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 292.362 292.362"}},[i("path",{attrs:{d:"M286.935 69.377c-3.614-3.617-7.898-5.424-12.848-5.424H18.274c-4.952 0-9.233 1.807-12.85 5.424C1.807 72.998 0 77.279 0 82.228c0 4.948 1.807 9.229 5.424 12.847l127.907 127.907c3.621 3.617 7.902 5.428 12.85 5.428s9.233-1.811 12.847-5.428L286.935 95.074c3.613-3.617 5.427-7.898 5.427-12.847 0-4.948-1.814-9.229-5.427-12.85z"}})])},St=[];xt._withStripped=!0;var Tt={name:"vue-treeselect--arrow"},Ct=Tt,kt=Pe(Ct,xt,St,!1,null,null,null);kt.options.__file="src/components/icons/Arrow.vue";var Rt,Dt,Lt=kt.exports,Ot={name:"vue-treeselect--control",inject:["instance"],computed:{shouldShowX:function(){var e=this.instance;return e.clearable&&!e.disabled&&e.hasValue&&(this.hasUndisabledValue||e.allowClearingDisabled)},shouldShowArrow:function(){var e=this.instance;return!e.alwaysOpen||!e.menu.isOpen},hasUndisabledValue:function(){var e=this.instance;return e.hasValue&&e.internalValue.some((function(t){return!e.getNode(t).isDisabled}))}},methods:{renderX:function(){var e=this.$createElement,t=this.instance,i=t.multiple?t.clearAllText:t.clearValueText;return this.shouldShowX?e("div",{class:"vue-treeselect__x-container",attrs:{title:i},on:{mousedown:this.handleMouseDownOnX}},[e(ft,{class:"vue-treeselect__x"})]):null},renderArrow:function(){var e=this.$createElement,t=this.instance,i={"vue-treeselect__control-arrow":!0,"vue-treeselect__control-arrow--rotated":t.menu.isOpen};return this.shouldShowArrow?e("div",{class:"vue-treeselect__control-arrow-container",on:{mousedown:this.handleMouseDownOnArrow}},[e(Lt,{class:i})]):null},handleMouseDownOnX:p((function(e){e.stopPropagation(),e.preventDefault();var t=this.instance,i=t.beforeClearAll(),n=function(e){e&&t.clear()};A()(i)?i.then(n):setTimeout((function(){return n(i)}),0)})),handleMouseDownOnArrow:p((function(e){e.preventDefault(),e.stopPropagation();var t=this.instance;t.focusInput(),t.toggleMenu()})),renderValueContainer:function(e){var t=this.$createElement;return t("div",{class:"vue-treeselect__value-container"},[e])}},render:function(){var e=arguments[0],t=this.instance,i=t.single?at:It;return e("div",{class:"vue-treeselect__control",on:{mousedown:t.handleMouseDown}},[e(i,{ref:"value-container"}),this.renderX(),this.renderArrow()])}},$t=Ot,Nt=Pe($t,Rt,Dt,!1,null,null,null);Nt.options.__file="src/components/Control.vue";var At,Pt,Et=Nt.exports,Mt={name:"vue-treeselect--tip",functional:!0,props:{type:{type:String,required:!0},icon:{type:String,required:!0}},render:function(e,t){var i=arguments[0],n=t.props,a=t.children;return i("div",{class:"vue-treeselect__tip vue-treeselect__".concat(n.type,"-tip")},[i("div",{class:"vue-treeselect__icon-container"},[i("span",{class:"vue-treeselect__icon-".concat(n.icon)})]),i("span",{class:"vue-treeselect__tip-text vue-treeselect__".concat(n.type,"-tip-text")},[a])])}},Ft=Mt,jt=Pe(Ft,At,Pt,!1,null,null,null);jt.options.__file="src/components/Tip.vue";var Vt,qt,zt,Bt,Ut,Qt=jt.exports,Ht={name:"vue-treeselect--option",inject:["instance"],props:{node:{type:Object,required:!0}},computed:{shouldExpand:function(){var e=this.instance,t=this.node;return t.isBranch&&e.shouldExpand(t)},shouldShow:function(){var e=this.instance,t=this.node;return e.shouldShowOptionInMenu(t)}},methods:{renderOption:function(){var e=this.$createElement,t=this.instance,i=this.node,n={"vue-treeselect__option":!0,"vue-treeselect__option--disabled":i.isDisabled,"vue-treeselect__option--selected":t.isSelected(i),"vue-treeselect__option--highlight":i.isHighlighted,"vue-treeselect__option--matched":t.localSearch.active&&i.isMatched,"vue-treeselect__option--hide":!this.shouldShow};return e("div",{class:n,on:{mouseenter:this.handleMouseEnterOption},attrs:{"data-id":i.id}},[this.renderArrow(),this.renderLabelContainer([this.renderCheckboxContainer([this.renderCheckbox()]),this.renderLabel()])])},renderSubOptionsList:function(){var e=this.$createElement;return this.shouldExpand?e("div",{class:"vue-treeselect__list"},[this.renderSubOptions(),this.renderNoChildrenTip(),this.renderLoadingChildrenTip(),this.renderLoadingChildrenErrorTip()]):null},renderArrow:function(){var e=this.$createElement,t=this.instance,i=this.node;if(t.shouldFlattenOptions&&this.shouldShow)return null;if(i.isBranch){var n={props:{name:"vue-treeselect__option-arrow--prepare",appear:!0}},a={"vue-treeselect__option-arrow":!0,"vue-treeselect__option-arrow--rotated":this.shouldExpand};return e("div",{class:"vue-treeselect__option-arrow-container",on:{mousedown:this.handleMouseDownOnArrow}},[e("transition",n,[e(Lt,{class:a})])])}return t.hasBranchNodes?(Vt||(Vt=e("div",{class:"vue-treeselect__option-arrow-placeholder"},[" "])),Vt):null},renderLabelContainer:function(e){var t=this.$createElement;return t("div",{class:"vue-treeselect__label-container",on:{mousedown:this.handleMouseDownOnLabelContainer}},[e])},renderCheckboxContainer:function(e){var t=this.$createElement,i=this.instance,n=this.node;return i.single||i.disableBranchNodes&&n.isBranch?null:t("div",{class:"vue-treeselect__checkbox-container"},[e])},renderCheckbox:function(){var e=this.$createElement,t=this.instance,i=this.node,n=t.forest.checkedStateMap[i.id],a={"vue-treeselect__checkbox":!0,"vue-treeselect__checkbox--checked":n===te,"vue-treeselect__checkbox--indeterminate":n===ee,"vue-treeselect__checkbox--unchecked":n===J,"vue-treeselect__checkbox--disabled":i.isDisabled};return qt||(qt=e("span",{class:"vue-treeselect__check-mark"})),zt||(zt=e("span",{class:"vue-treeselect__minus-mark"})),e("span",{class:a},[qt,zt])},renderLabel:function(){var e=this.$createElement,t=this.instance,i=this.node,n=i.isBranch&&(t.localSearch.active?t.showCountOnSearchComputed:t.showCount),a=n?t.localSearch.active?t.localSearch.countMap[i.id][t.showCountOf]:i.count[t.showCountOf]:NaN,r="vue-treeselect__label",o="vue-treeselect__count",s=t.$scopedSlots["option-label"];return s?s({node:i,shouldShowCount:n,count:a,labelClassName:r,countClassName:o}):e("label",{class:r},[i.label,n&&e("span",{class:o},["(",a,")"])])},renderSubOptions:function(){var e=this.$createElement,t=this.node;return t.childrenStates.isLoaded?t.children.map((function(t){return e(Ht,{attrs:{node:t},key:t.id})})):null},renderNoChildrenTip:function(){var e=this.$createElement,t=this.instance,i=this.node;return!i.childrenStates.isLoaded||i.children.length?null:e(Qt,{attrs:{type:"no-children",icon:"warning"}},[t.noChildrenText])},renderLoadingChildrenTip:function(){var e=this.$createElement,t=this.instance,i=this.node;return i.childrenStates.isLoading?e(Qt,{attrs:{type:"loading",icon:"loader"}},[t.loadingText]):null},renderLoadingChildrenErrorTip:function(){var e=this.$createElement,t=this.instance,i=this.node;return i.childrenStates.loadingError?e(Qt,{attrs:{type:"error",icon:"error"}},[i.childrenStates.loadingError,e("a",{class:"vue-treeselect__retry",attrs:{title:t.retryTitle},on:{mousedown:this.handleMouseDownOnRetry}},[t.retryText])]):null},handleMouseEnterOption:function(e){var t=this.instance,i=this.node;e.target===e.currentTarget&&t.setCurrentHighlightedOption(i,!1)},handleMouseDownOnArrow:p((function(){var e=this.instance,t=this.node;e.toggleExpanded(t)})),handleMouseDownOnLabelContainer:p((function(){var e=this.instance,t=this.node;t.isBranch&&e.disableBranchNodes?e.toggleExpanded(t):e.select(t)})),handleMouseDownOnRetry:p((function(){var e=this.instance,t=this.node;e.loadChildrenOptions(t)}))},render:function(){var e=arguments[0],t=this.node,i=this.instance.shouldFlattenOptions?0:t.level,n=l()({"vue-treeselect__list-item":!0},"vue-treeselect__indent-level-".concat(i),!0),a={props:{name:"vue-treeselect__list--transition"}};return e("div",{class:n},[this.renderOption(),t.isBranch&&e("transition",a,[this.renderSubOptionsList()])])}},Gt=Ht,Wt=Gt,Yt=Pe(Wt,Bt,Ut,!1,null,null,null);Yt.options.__file="src/components/Option.vue";var Kt,Zt,Xt=Yt.exports,Jt={top:"top",bottom:"bottom",above:"top",below:"bottom"},ei={name:"vue-treeselect--menu",inject:["instance"],computed:{menuStyle:function(){var e=this.instance;return{maxHeight:e.maxHeight+"px"}},menuContainerStyle:function(){var e=this.instance;return{zIndex:e.appendToBody?null:e.zIndex}}},watch:{"instance.menu.isOpen":function(e){e?this.$nextTick(this.onMenuOpen):this.onMenuClose()}},created:function(){this.menuSizeWatcher=null,this.menuResizeAndScrollEventListeners=null},mounted:function(){var e=this.instance;e.menu.isOpen&&this.$nextTick(this.onMenuOpen)},destroyed:function(){this.onMenuClose()},methods:{renderMenu:function(){var e=this.$createElement,t=this.instance;return t.menu.isOpen?e("div",{ref:"menu",class:"vue-treeselect__menu",on:{mousedown:t.handleMouseDown},style:this.menuStyle},[this.renderBeforeList(),t.async?this.renderAsyncSearchMenuInner():t.localSearch.active?this.renderLocalSearchMenuInner():this.renderNormalMenuInner(),this.renderAfterList()]):null},renderBeforeList:function(){var e=this.instance,t=e.$scopedSlots["before-list"];return t?t():null},renderAfterList:function(){var e=this.instance,t=e.$scopedSlots["after-list"];return t?t():null},renderNormalMenuInner:function(){var e=this.instance;return e.rootOptionsStates.isLoading?this.renderLoadingOptionsTip():e.rootOptionsStates.loadingError?this.renderLoadingRootOptionsErrorTip():e.rootOptionsStates.isLoaded&&0===e.forest.normalizedOptions.length?this.renderNoAvailableOptionsTip():this.renderOptionList()},renderLocalSearchMenuInner:function(){var e=this.instance;return e.rootOptionsStates.isLoading?this.renderLoadingOptionsTip():e.rootOptionsStates.loadingError?this.renderLoadingRootOptionsErrorTip():e.rootOptionsStates.isLoaded&&0===e.forest.normalizedOptions.length?this.renderNoAvailableOptionsTip():e.localSearch.noResults?this.renderNoResultsTip():this.renderOptionList()},renderAsyncSearchMenuInner:function(){var e=this.instance,t=e.getRemoteSearchEntry(),i=""===e.trigger.searchQuery&&!e.defaultOptions,n=!i&&(t.isLoaded&&0===t.options.length);return i?this.renderSearchPromptTip():t.isLoading?this.renderLoadingOptionsTip():t.loadingError?this.renderAsyncSearchLoadingErrorTip():n?this.renderNoResultsTip():this.renderOptionList()},renderOptionList:function(){var e=this.$createElement,t=this.instance;return e("div",{class:"vue-treeselect__list"},[t.forest.normalizedOptions.map((function(t){return e(Xt,{attrs:{node:t},key:t.id})}))])},renderSearchPromptTip:function(){var e=this.$createElement,t=this.instance;return e(Qt,{attrs:{type:"search-prompt",icon:"warning"}},[t.searchPromptText])},renderLoadingOptionsTip:function(){var e=this.$createElement,t=this.instance;return e(Qt,{attrs:{type:"loading",icon:"loader"}},[t.loadingText])},renderLoadingRootOptionsErrorTip:function(){var e=this.$createElement,t=this.instance;return e(Qt,{attrs:{type:"error",icon:"error"}},[t.rootOptionsStates.loadingError,e("a",{class:"vue-treeselect__retry",on:{click:t.loadRootOptions},attrs:{title:t.retryTitle}},[t.retryText])])},renderAsyncSearchLoadingErrorTip:function(){var e=this.$createElement,t=this.instance,i=t.getRemoteSearchEntry();return e(Qt,{attrs:{type:"error",icon:"error"}},[i.loadingError,e("a",{class:"vue-treeselect__retry",on:{click:t.handleRemoteSearch},attrs:{title:t.retryTitle}},[t.retryText])])},renderNoAvailableOptionsTip:function(){var e=this.$createElement,t=this.instance;return e(Qt,{attrs:{type:"no-options",icon:"warning"}},[t.noOptionsText])},renderNoResultsTip:function(){var e=this.$createElement,t=this.instance;return e(Qt,{attrs:{type:"no-results",icon:"warning"}},[t.noResultsText])},onMenuOpen:function(){this.adjustMenuOpenDirection(),this.setupMenuSizeWatcher(),this.setupMenuResizeAndScrollEventListeners()},onMenuClose:function(){this.removeMenuSizeWatcher(),this.removeMenuResizeAndScrollEventListeners()},adjustMenuOpenDirection:function(){var e=this.instance;if(e.menu.isOpen){var t=e.getMenu(),i=e.getControl(),n=t.getBoundingClientRect(),a=i.getBoundingClientRect(),r=n.height,o=window.innerHeight,s=a.top,l=window.innerHeight-a.bottom,c=a.top>=0&&a.top<=o||a.top<0&&a.bottom>0,u=l>r+ye,d=s>r+ye;c?"auto"!==e.openDirection?e.menu.placement=Jt[e.openDirection]:e.menu.placement=u||!d?"bottom":"top":e.closeMenu()}},setupMenuSizeWatcher:function(){var e=this.instance,t=e.getMenu();this.menuSizeWatcher||(this.menuSizeWatcher={remove:R(t,this.adjustMenuOpenDirection)})},setupMenuResizeAndScrollEventListeners:function(){var e=this.instance,t=e.getControl();this.menuResizeAndScrollEventListeners||(this.menuResizeAndScrollEventListeners={remove:O(t,this.adjustMenuOpenDirection)})},removeMenuSizeWatcher:function(){this.menuSizeWatcher&&(this.menuSizeWatcher.remove(),this.menuSizeWatcher=null)},removeMenuResizeAndScrollEventListeners:function(){this.menuResizeAndScrollEventListeners&&(this.menuResizeAndScrollEventListeners.remove(),this.menuResizeAndScrollEventListeners=null)}},render:function(){var e=arguments[0];return e("div",{ref:"menu-container",class:"vue-treeselect__menu-container",style:this.menuContainerStyle},[e("transition",{attrs:{name:"vue-treeselect__menu--transition"}},[this.renderMenu()])])}},ti=ei,ii=Pe(ti,Kt,Zt,!1,null,null,null);ii.options.__file="src/components/Menu.vue";var ni=ii.exports,ai=i(14),ri=i.n(ai);function oi(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function si(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?oi(i,!0).forEach((function(t){l()(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):oi(i).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var li,ci,ui,di={name:"vue-treeselect--portal-target",inject:["instance"],watch:{"instance.menu.isOpen":function(e){e?this.setupHandlers():this.removeHandlers()},"instance.menu.placement":function(){this.updateMenuContainerOffset()}},created:function(){this.controlResizeAndScrollEventListeners=null,this.controlSizeWatcher=null},mounted:function(){var e=this.instance;e.menu.isOpen&&this.setupHandlers()},methods:{setupHandlers:function(){this.updateWidth(),this.updateMenuContainerOffset(),this.setupControlResizeAndScrollEventListeners(),this.setupControlSizeWatcher()},removeHandlers:function(){this.removeControlResizeAndScrollEventListeners(),this.removeControlSizeWatcher()},setupControlResizeAndScrollEventListeners:function(){var e=this.instance,t=e.getControl();this.controlResizeAndScrollEventListeners||(this.controlResizeAndScrollEventListeners={remove:O(t,this.updateMenuContainerOffset)})},setupControlSizeWatcher:function(){var e=this,t=this.instance,i=t.getControl();this.controlSizeWatcher||(this.controlSizeWatcher={remove:R(i,(function(){e.updateWidth(),e.updateMenuContainerOffset()}))})},removeControlResizeAndScrollEventListeners:function(){this.controlResizeAndScrollEventListeners&&(this.controlResizeAndScrollEventListeners.remove(),this.controlResizeAndScrollEventListeners=null)},removeControlSizeWatcher:function(){this.controlSizeWatcher&&(this.controlSizeWatcher.remove(),this.controlSizeWatcher=null)},updateWidth:function(){var e=this.instance,t=this.$el,i=e.getControl(),n=i.getBoundingClientRect();t.style.width=n.width+"px"},updateMenuContainerOffset:function(){var e=this.instance,t=e.getControl(),i=this.$el,n=t.getBoundingClientRect(),a=i.getBoundingClientRect(),r="bottom"===e.menu.placement?n.height:0,o=Math.round(n.left-a.left)+"px",s=Math.round(n.top-a.top+r)+"px",l=this.$refs.menu.$refs["menu-container"].style,c=["transform","webkitTransform","MozTransform","msTransform"],u=K(c,(function(e){return e in document.body.style}));l[u]="translate(".concat(o,", ").concat(s,")")}},render:function(){var e=arguments[0],t=this.instance,i=["vue-treeselect__portal-target",t.wrapperClass],n={zIndex:t.zIndex};return e("div",{class:i,style:n,attrs:{"data-instance-id":t.getInstanceId()}},[e(ni,{ref:"menu"})])},destroyed:function(){this.removeHandlers()}},fi={name:"vue-treeselect--menu-portal",created:function(){this.portalTarget=null},mounted:function(){this.setup()},destroyed:function(){this.teardown()},methods:{setup:function(){var e=document.createElement("div");document.body.appendChild(e),this.portalTarget=new ri.a(si({el:e,parent:this},di))},teardown:function(){document.body.removeChild(this.portalTarget.$el),this.portalTarget.$el.innerHTML="",this.portalTarget.$destroy(),this.portalTarget=null}},render:function(){var e=arguments[0];return li||(li=e("div",{class:"vue-treeselect__menu-placeholder"})),li}},hi=fi,pi=Pe(hi,ci,ui,!1,null,null,null);pi.options.__file="src/components/MenuPortal.vue";var mi,gi,vi=pi.exports,bi={name:"vue-treeselect",mixins:[De],computed:{wrapperClass:function(){return{"vue-treeselect":!0,"vue-treeselect--single":this.single,"vue-treeselect--multi":this.multiple,"vue-treeselect--searchable":this.searchable,"vue-treeselect--disabled":this.disabled,"vue-treeselect--focused":this.trigger.isFocused,"vue-treeselect--has-value":this.hasValue,"vue-treeselect--open":this.menu.isOpen,"vue-treeselect--open-above":"top"===this.menu.placement,"vue-treeselect--open-below":"bottom"===this.menu.placement,"vue-treeselect--branch-nodes-disabled":this.disableBranchNodes,"vue-treeselect--append-to-body":this.appendToBody}}},render:function(){var e=arguments[0];return e("div",{ref:"wrapper",class:this.wrapperClass},[e(je),e(Et,{ref:"control"}),this.appendToBody?e(vi,{ref:"portal"}):e(ni,{ref:"menu"})])}},yi=bi,wi=Pe(yi,mi,gi,!1,null,null,null);wi.options.__file="src/components/Treeselect.vue";var _i=wi.exports;i(15);i.d(t,"VERSION",(function(){return Ii})),i.d(t,"Treeselect",(function(){return _i})),i.d(t,"treeselectMixin",(function(){return De})),i.d(t,"LOAD_ROOT_OPTIONS",(function(){return oe})),i.d(t,"LOAD_CHILDREN_OPTIONS",(function(){return se})),i.d(t,"ASYNC_SEARCH",(function(){return le}));t["default"]=_i;var Ii="0.4.0"}])},ca29:function(e,t,i){var n=i("6d9a"),a=n.eachAfter,r=n.eachBefore,o=i("22da"),s=o.init,l=o.firstWalk,c=o.secondWalk,u=o.separation,d=o.radialCoordinate,f=o.getViewRect;function h(e,t){e.eachSeriesByType("tree",(function(e){p(e,t)}))}function p(e,t){var i=f(e,t);e.layoutInfo=i;var n=e.get("layout"),o=0,h=0,p=null;"radial"===n?(o=2*Math.PI,h=Math.min(i.height,i.width)/2,p=u((function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth}))):(o=i.width,h=i.height,p=u());var m=e.getData().tree.root,g=m.children[0];if(g){s(m),a(g,l,p),m.hierNode.modifier=-g.hierNode.prelim,r(g,c);var v=g,b=g,y=g;r(g,(function(e){var t=e.getLayout().x;t<v.getLayout().x&&(v=e),t>b.getLayout().x&&(b=e),e.depth>y.depth&&(y=e)}));var w=v===b?1:p(v,b)/2,_=w-v.getLayout().x,I=0,x=0,S=0,T=0;if("radial"===n)I=o/(b.getLayout().x+w+_),x=h/(y.depth-1||1),r(g,(function(e){S=(e.getLayout().x+_)*I,T=(e.depth-1)*x;var t=d(S,T);e.setLayout({x:t.x,y:t.y,rawX:S,rawY:T},!0)}));else{var C=e.getOrient();"RL"===C||"LR"===C?(x=h/(b.getLayout().x+w+_),I=o/(y.depth-1||1),r(g,(function(e){T=(e.getLayout().x+_)*x,S="LR"===C?(e.depth-1)*I:o-(e.depth-1)*I,e.setLayout({x:S,y:T},!0)}))):"TB"!==C&&"BT"!==C||(I=o/(b.getLayout().x+w+_),x=h/(y.depth-1||1),r(g,(function(e){S=(e.getLayout().x+_)*I,T="TB"===C?(e.depth-1)*x:h-(e.depth-1)*x,e.setLayout({x:S,y:T},!0)})))}}}e.exports=h},ca2f:function(e,t,i){"use strict";i("45b7")},ca4e:function(e,t,i){"use strict";i("c387")},ca86:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"check-container form-container"},[i("el-form",{ref:"checkForm",attrs:{model:e.checkForm,"label-width":"200px",size:"small",rules:e.rules}},[i("div",{staticClass:"title-wrapper"},[i("p",[e._v("盲化信息")])]),e._v(" "),i("div",{staticClass:"check-content"},[i("el-form-item",{attrs:{label:"Blind Name",prop:"BlindName"}},[i("el-input",{staticStyle:{width:"300px"},model:{value:e.checkForm.BlindName,callback:function(t){e.$set(e.checkForm,"BlindName",t)},expression:"checkForm.BlindName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Blind NameCN",prop:"BlindNameCN"}},[i("el-input",{staticStyle:{width:"300px"},model:{value:e.checkForm.BlindNameCN,callback:function(t){e.$set(e.checkForm,"BlindNameCN",t)},expression:"checkForm.BlindNameCN"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Blind Publications",prop:"BlindPublications"}},[i("el-input",{staticStyle:{width:"60%"},attrs:{type:"textarea",rows:"8",size:"small"},model:{value:e.checkForm.BlindPublications,callback:function(t){e.$set(e.checkForm,"BlindPublications",t)},expression:"checkForm.BlindPublications"}})],1)],1),e._v(" "),i("div",{staticClass:"title-wrapper"},[i("p",[e._v("Setting")])]),e._v(" "),i("div",{staticClass:"check-content"},[i("el-form-item",{attrs:{label:"Information Confirmed?"}},[i("el-radio-group",{on:{change:e.handleChange},model:{value:e.checkForm.ReviewStatus,callback:function(t){e.$set(e.checkForm,"ReviewStatus",t)},expression:"checkForm.ReviewStatus"}},[i("el-radio",{attrs:{label:1}},[e._v("Yes")]),e._v(" "),i("el-radio",{attrs:{label:2}},[e._v("No")])],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Contractor Status?"}},[i("el-radio-group",{on:{change:e.handleChange},model:{value:e.checkForm.CooperateStatus,callback:function(t){e.$set(e.checkForm,"CooperateStatus",t)},expression:"checkForm.CooperateStatus"}},[i("el-radio",{attrs:{label:1}},[e._v("Yes")]),e._v(" "),i("el-radio",{attrs:{label:2}},[e._v("No")])],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Accepting New Trials?"}},[i("el-radio-group",{attrs:{disabled:e.radioDisabled},model:{value:e.checkForm.AcceptingNewTrial,callback:function(t){e.$set(e.checkForm,"AcceptingNewTrial",t)},expression:"checkForm.AcceptingNewTrial"}},[i("el-radio",{attrs:{label:!0}},[e._v("Yes")]),e._v(" "),i("el-radio",{attrs:{label:!1}},[e._v("No")])],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Actively Reading?"}},[i("el-radio-group",{attrs:{disabled:e.radioDisabled},model:{value:e.checkForm.ActivelyReading,callback:function(t){e.$set(e.checkForm,"ActivelyReading",t)},expression:"checkForm.ActivelyReading"}},[i("el-radio",{attrs:{label:!0}},[e._v("Yes")]),e._v(" "),i("el-radio",{attrs:{label:!1}},[e._v("No")])],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Is Virtual?"}},[i("el-radio-group",{attrs:{disabled:e.radioDisabled},model:{value:e.checkForm.IsVirtual,callback:function(t){e.$set(e.checkForm,"IsVirtual",t)},expression:"checkForm.IsVirtual"}},[i("el-radio",{attrs:{label:!0}},[e._v("Yes")]),e._v(" "),i("el-radio",{attrs:{label:!1}},[e._v("No")])],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"On Vacation: "}},[i("span",{staticStyle:{"font-size":"12px","margin-right":"20px"}},[e._v(e._s(e.checkForm.InHoliday))]),e._v(" "),i("el-button",{attrs:{type:"text"},on:{click:e.handleView}},[e._v("Planned Vacation")])],1),e._v(" "),i("el-form-item",{attrs:{label:"Comment: ",prop:"AdminComment"}},[i("el-input",{staticStyle:{width:"60%"},attrs:{type:"textarea",rows:"8"},model:{value:e.checkForm.AdminComment,callback:function(t){e.$set(e.checkForm,"AdminComment",t)},expression:"checkForm.AdminComment"}})],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-top":"20px"}},[i("el-button",{attrs:{type:"primary",disabled:e.isDisabled},on:{click:e.handleSave}},[e._v("Save")])],1)],1)]),e._v(" "),i("el-dialog",{attrs:{title:"Vacation",visible:e.dialogVisible,width:"50%","close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogVisible=t},close:e.closeDialog}},[i("div",[i("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",format:"yyyy-MM-dd",type:"daterange","range-separator":"to","start-placeholder":"Beginning Date","end-placeholder":"End Date",size:"small"},model:{value:e.daterange,callback:function(t){e.daterange=t},expression:"daterange"}}),e._v(" "),i("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary",size:"small"},on:{click:e.handleAddHoliday}},[e._v("Add")])],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading2,expression:"loading2"}],attrs:{data:e.gridData,size:"small"}},[i("el-table-column",{attrs:{type:"index"}}),e._v(" "),i("el-table-column",{attrs:{property:"StartDate",label:"Beginning Date","min-width":"120",formatter:e.beginTimeFormatter}}),e._v(" "),i("el-table-column",{attrs:{property:"EndDate",label:"End Date","min-width":"120",formatter:e.endTimeFormatter}}),e._v(" "),i("el-table-column",{attrs:{label:"Action",fixed:"right","min-width":"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("Delete")])]}}])})],1),e._v(" "),i("div",{staticClass:"pagination"},[i("el-pagination",{attrs:{background:"",layout:"total,sizes,prev, pager, next",total:e.totalItems,"page-sizes":[5,10,20,50],"page-size":e.pageSize,"current-page":e.pageIndex},on:{"update:currentPage":function(t){e.pageIndex=t},"update:current-page":function(t){e.pageIndex=t},"current-change":e.handleCurrentChange,"size-change":e.handleSizeChange}})],1)],1)],1)},a=[],r=(i("20d6"),i("33ba")),o=i("7878"),s={name:"Setting",props:{id:{type:String,default:function(){return""}}},data:function(){return{loading:!1,checkForm:{Id:"",CooperateStatus:2,ResumeStatus:2,ReviewStatus:2,AcceptingNewTrial:!1,ActivelyReading:!1,IsVirtual:!1,BlindName:"",AdminComment:"",InHoliday:"",BlindNameCN:"",BlindPublications:""},rules:{AdminComment:[{max:500,message:"The maximum length is 500"}],BlindName:[{required:!0,message:"Please specify",trigger:"blur"}],BlindNameCN:[{required:!0,message:"Please specify",trigger:"blur"}]},doctorId:this.$route.query.Id,isDisabled:!1,radioDisabled:!1,dialogVisible:!1,gridData:[],daterange:"",pageIndex:1,pageSize:5,totalItems:0,loading2:!1}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=this;Object(r["o"])(this.doctorId).then((function(t){t.Result&&(e.checkForm=t.Result,e.checkForm.InHoliday=t.Result.InHoliday?"Yes":"No")}))},handleSave:function(){var e=this;this.$refs.checkForm.validate((function(t){if(t){e.isDisabled=!0;var i={};Object.assign(i,e.checkForm),i.InHoliday="Yes"===e.checkForm.InHoliday,i.ResumeStatus=i.ReviewStatus,Object(r["B"])(i).then((function(t){t.IsSuccess&&(t.Result&&(e.checkForm.Id=t.Result),e.isDisabled=!1,e.$message.success("Saved successfully"))})).catch((function(){e.isDisabled=!1}))}}))},handleView:function(){this.dialogVisible=!0,this.initHolidayList()},initHolidayList:function(){var e=this;this.loading2=!0,Object(r["z"])(this.doctorId,this.pageIndex,this.pageSize).then((function(t){t.IsSuccess&&(e.gridData=t.Result.CurrentPageData,e.totalItems=t.Result.TotalCount),e.loading2=!1})).catch((function(){e.loading2=!1}))},handleAddHoliday:function(){var e=this;if(this.daterange){var t={DoctorId:this.doctorId,StartDate:this.daterange[0],EndDate:this.daterange[1]};this.loading2=!0,Object(r["g"])(t).then((function(i){i.IsSuccess?(t.Id=i.Result,e.gridData.push(t),e.totalItems=e.totalItems+1,e.daterange=""):e.$message.error(i.ErrorMessage),e.loading2=!1})).catch((function(){e.daterange="",e.loading2=!1}))}},handleDelete:function(e){var t=this;this.$confirm("Sure to delete?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){t.loading2=!0,Object(r["l"])(e.Id).then((function(i){if(i.IsSuccess){var n=t.gridData.findIndex((function(t){return t.Id===e.Id}));-1!==n&&(t.gridData.splice(n,1),t.totalItems=t.totalItems-1),t.$message.success("Deleted successfully!")}t.loading2=!1})).catch((function(){t.loading2=!1}))})).catch((function(e){}))},closeDialog:function(){this.initForm()},handleChange:function(){2===this.checkForm.ReviewStatus||2===this.checkForm.cooperateStatus?(this.checkForm.ActivelyReading=!1,this.checkForm.AcceptingNewTrial=!1,this.radioDisabled=!0):this.radioDisabled=!1},beginTimeFormatter:function(e){if(e.StartDate)return Object(o["fmtDate"])(e.StartDate)},endTimeFormatter:function(e){if(e.EndDate)return Object(o["fmtDate"])(e.EndDate)},statusFormatter:function(e){return e.Status?"on vacation":""},handleCurrentChange:function(e){this.pageIndex=e,this.initHolidayList()},handleSizeChange:function(e){this.pageSize=e,this.initHolidayList()}}},l=s,c=i("2877"),u=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},ca98:function(e,t,i){var n=i("6d8b"),a=i("e0d3"),r=i("6cb7"),o=n.each,s=n.clone,l=n.map,c=n.merge,u=/^(min|max)?(.+)$/;function d(e){this._api=e,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}function f(e,t,i){var a,r,s=[],l=[],c=e.timeline;if(e.baseOption&&(r=e.baseOption),(c||e.options)&&(r=r||{},s=(e.options||[]).slice()),e.media){r=r||{};var u=e.media;o(u,(function(e){e&&e.option&&(e.query?l.push(e):a||(a=e))}))}return r||(r=e),r.timeline||(r.timeline=c),o([r].concat(s).concat(n.map(l,(function(e){return e.option}))),(function(e){o(t,(function(t){t(e,i)}))})),{baseOption:r,timelineOptions:s,mediaDefault:a,mediaList:l}}function h(e,t,i){var a={width:t,height:i,aspectratio:t/i},r=!0;return n.each(e,(function(e,t){var i=t.match(u);if(i&&i[1]&&i[2]){var n=i[1],o=i[2].toLowerCase();p(a[o],e,n)||(r=!1)}})),r}function p(e,t,i){return"min"===i?e>=t:"max"===i?e<=t:e===t}function m(e,t){return e.join(",")===t.join(",")}function g(e,t){t=t||{},o(t,(function(t,i){if(null!=t){var n=e[i];if(r.hasClass(i)){t=a.normalizeToArray(t),n=a.normalizeToArray(n);var o=a.mappingToExists(n,t);e[i]=l(o,(function(e){return e.option&&e.exist?c(e.exist,e.option,!0):e.exist||e.option}))}else e[i]=c(n,t,!0)}}))}d.prototype={constructor:d,setOption:function(e,t){e&&n.each(a.normalizeToArray(e.series),(function(e){e&&e.data&&n.isTypedArray(e.data)&&n.setAsPrimitive(e.data)})),e=s(e);var i=this._optionBackup,r=f.call(this,e,t,!i);this._newBaseOption=r.baseOption,i?(g(i.baseOption,r.baseOption),r.timelineOptions.length&&(i.timelineOptions=r.timelineOptions),r.mediaList.length&&(i.mediaList=r.mediaList),r.mediaDefault&&(i.mediaDefault=r.mediaDefault)):this._optionBackup=r},mountOption:function(e){var t=this._optionBackup;return this._timelineOptions=l(t.timelineOptions,s),this._mediaList=l(t.mediaList,s),this._mediaDefault=s(t.mediaDefault),this._currentMediaIndices=[],s(e?t.baseOption:this._newBaseOption)},getTimelineOption:function(e){var t,i=this._timelineOptions;if(i.length){var n=e.getComponent("timeline");n&&(t=s(i[n.getCurrentIndex()],!0))}return t},getMediaOption:function(e){var t=this._api.getWidth(),i=this._api.getHeight(),n=this._mediaList,a=this._mediaDefault,r=[],o=[];if(!n.length&&!a)return o;for(var c=0,u=n.length;c<u;c++)h(n[c].query,t,i)&&r.push(c);return!r.length&&a&&(r=[-1]),r.length&&!m(r,this._currentMediaIndices)&&(o=l(r,(function(e){return s(-1===e?a.option:n[e].option)}))),this._currentMediaIndices=r,o}};var v=d;e.exports=v},cab9:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"search-container"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:pmMedicalReview:table:siteCode")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:"",filterable:""},model:{value:e.searchData.TrialSiteCode,callback:function(t){e.$set(e.searchData,"TrialSiteCode",t)},expression:"searchData.TrialSiteCode"}},e._l(e.siteOptions,(function(e,t){return i("el-option",{key:t,attrs:{label:e,value:e}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:pmMedicalReview:table:subjectCode")}},[i("el-input",{staticStyle:{width:"100px"},model:{value:e.searchData.SubjectCode,callback:function(t){e.$set(e.searchData,"SubjectCode",t)},expression:"searchData.SubjectCode"}})],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:pmMedicalReview:table:taskName")}},[i("el-input",{staticStyle:{width:"100px"},attrs:{clearable:""},model:{value:e.searchData.TaskName,callback:function(t){e.$set(e.searchData,"TaskName",t)},expression:"searchData.TaskName"}})],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:pmMedicalReview:table:reader")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.DoctorUserId,callback:function(t){e.$set(e.searchData,"DoctorUserId",t)},expression:"searchData.DoctorUserId"}},e._l(e.DoctorUserList,(function(e){return i("el-option",{key:"DoctorUserId"+e.DoctorUserId,attrs:{value:e.DoctorUserId,label:e.UserName+"("+e.FullName+")"}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:pmMedicalReview:table:criterionName")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.TrialReadingCriterionId,callback:function(t){e.$set(e.searchData,"TrialReadingCriterionId",t)},expression:"searchData.TrialReadingCriterionId"}},e._l(e.trialCriterionList,(function(e){return i("el-option",{key:"TrialReadingCriterionId"+e.TrialReadingCriterionId,attrs:{value:e.TrialReadingCriterionId,label:e.TrialReadingCriterionName}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:pmMedicalReview:table:isUrgent")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.IsUrgent,callback:function(t){e.$set(e.searchData,"IsUrgent",t)},expression:"searchData.IsUrgent"}},e._l(e.$d.YesOrNo,(function(e){return i("el-option",{key:"IsUrgent"+e.label,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:pmMedicalReview:table:taskState")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.TaskState,callback:function(t){e.$set(e.searchData,"TaskState",t)},expression:"searchData.TaskState"}},e._l(e.$d.TaskState,(function(e){return i("el-option",{key:"TaskState"+e.label,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:pmMedicalReview:table:taskType")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.ReadingCategory,callback:function(t){e.$set(e.searchData,"ReadingCategory",t)},expression:"searchData.ReadingCategory"}},e._l(e.$d.ReadingCategory,(function(e){return i("el-option",{key:"ReadingCategory"+e.label,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:pmMedicalReview:table:auditState")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.AuditState,callback:function(t){e.$set(e.searchData,"AuditState",t)},expression:"searchData.AuditState"}},e._l(e.$d.MedicalReviewAuditState,(function(e){return i("el-option",{key:"AuditState"+e.label,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"}},[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-download"},on:{click:e.handleExport}},[e._v("\n "+e._s(e.$t("common:button:export"))+"\n ")]),e._v(" "),e.hasPermi(["trials:trials-panel:tab:pmMedicalFeedback:edit"])?i("el-button",{attrs:{type:"primary"},on:{click:e.openFilter}},[e._v("\n "+e._s(e.$t("trials:pmMedicalReview:button:select"))+"\n ")]):e._e(),e._v(" "),e.hasPermi(["trials:trials-panel:tab:pmMedicalFeedback:edit"])?i("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.setMedicalReviewInvalid()}}},[e._v("\n "+e._s(e.$t("trials:pmMedicalReview:button:setInvalid"))+"\n ")]):e._e()],1)],1)],1),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"},{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortChange,"selection-change":e.handleListSelectChange}},[i("el-table-column",{attrs:{type:"selection",selectable:e.MedicalReviewSelectable,align:"left",width:"45"}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsUrgent",label:e.$t("trials:pmMedicalReview:table:isUrgent"),"show-overflow-tooltip":"","min-width":"100",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsUrgent?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsUrgent)))]):i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsUrgent)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskCode",label:e.$t("trials:pmMedicalReview:table:taskCode"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialSiteCode",label:e.$t("trials:pmMedicalReview:table:siteCode"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode",label:e.$t("trials:pmMedicalReview:table:subjectCode"),"min-width":"120",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitTaskNum",label:e.$t("trials:pmMedicalReview:table:taskName"),"min-width":"120",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.TaskName)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskBlindName",label:e.$t("trials:pmMedicalReview:table:blindName"),"min-width":"140",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ReadingCategory",label:e.$t("trials:pmMedicalReview:table:taskType"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.ReadingCategory?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e(),e._v(" "),2===t.row.ReadingCategory?i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e(),e._v(" "),4===t.row.ReadingCategory?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e(),e._v(" "),5===t.row.ReadingCategory?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskState",label:e.$t("trials:pmMedicalReview:table:taskState"),"min-width":"140",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.TaskState?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e(),e._v(" "),1===t.row.TaskState?i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e(),e._v(" "),3===t.row.TaskState?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e(),e._v(" "),4===t.row.TaskState?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ArmEnum",label:e.$t("trials:pmMedicalReview:table:role"),"min-width":"80",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.ArmEnum?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ArmEnum",t.row.ArmEnum)))]):e._e(),e._v(" "),2===t.row.ArmEnum?i("el-tag",{attrs:{type:"success"}},[e._v(e._s(e.$fd("ArmEnum",t.row.ArmEnum)))]):e._e(),e._v(" "),3===t.row.ArmEnum?i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("ArmEnum",t.row.ArmEnum)))]):e._e(),e._v(" "),4===t.row.ArmEnum?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ArmEnum",t.row.ArmEnum)))]):e._e(),e._v(" "),5===t.row.ArmEnum?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("ArmEnum",t.row.ArmEnum)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"DoctorUser.UserName",label:e.$t("trials:pmMedicalReview:table:reader"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return t.row.DoctorUser.UserName?[e._v("\n "+e._s(t.row.DoctorUser.UserName)+"("+e._s(t.row.DoctorUser.FullName)+")\n ")]:void 0}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialReadingCriterionName",label:e.$t("trials:pmMedicalReview:table:criterionName"),"min-width":"180",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"SignTime",label:e.$t("trials:pmMedicalReview:table:signTime"),"min-width":"140",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"MedicalManagerUser.UserName",label:e.$t("trials:pmMedicalReview:table:mim"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return t.row.MedicalManagerUser?[e._v("\n "+e._s(t.row.MedicalManagerUser.UserName)+"("+e._s(t.row.MedicalManagerUser.FullName)+")\n ")]:void 0}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"AllocateTime",label:e.$t("trials:pmMedicalReview:table:allocateTime"),"min-width":"140",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsInvalid","min-width":"100",label:e.$t("trials:pmMedicalReview:table:isInvalid"),sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsInvalid?i("el-tag",{attrs:{type:"danger"}},[e._v("\n "+e._s(e.$fd("IsTakeEffect",t.row.IsInvalid))+"\n ")]):i("el-tag",{attrs:{type:"primary"}},[e._v("\n "+e._s(e.$fd("IsTakeEffect",t.row.IsInvalid))+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"AuditState",label:e.$t("trials:pmMedicalReview:table:auditState"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.AuditState?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("MedicalReviewAuditState",t.row.AuditState)))]):e._e(),e._v(" "),1===t.row.AuditState?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("MedicalReviewAuditState",t.row.AuditState)))]):e._e(),e._v(" "),2===t.row.AuditState?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("MedicalReviewAuditState",t.row.AuditState)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"AuditAdviceEnum",label:e.$t("trials:pmMedicalReview:table:auditAdvice"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("AuditAdvice",t.row.AuditAdviceEnum))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"DoctorUserIdeaEnum",label:e.$t("trials:pmMedicalReview:table:whetherAgree"),"min-width":"160",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.DoctorUserIdeaEnum?i("el-tag",{attrs:{type:"primary"}},[e._v(" "+e._s(e.$fd("MedicalReviewDoctorUserIdea",t.row.DoctorUserIdeaEnum))+" ")]):e._e(),e._v(" "),2===t.row.DoctorUserIdeaEnum?i("el-tag",{attrs:{type:"danger"}},[e._v(" "+e._s(e.$fd("MedicalReviewDoctorUserIdea",t.row.DoctorUserIdeaEnum))+" ")]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"AuditSignTime",label:e.$t("trials:pmMedicalReview:table:auditSignTime"),"min-width":"140",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"240",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{circle:"",title:e.$t("trials:pmMedicalReview:action:view"),disabled:t.row.IsInvalid||2!==t.row.AuditState,icon:"el-icon-view"},on:{click:function(i){return e.handleReadMecialAudit(t.row)}}}),e._v(" "),i("el-button",{attrs:{circle:"",title:e.$t("trials:pmMedicalReview:action:failure"),disabled:t.row.IsInvalid||!!t.row.SignTime,icon:"el-icon-close"},on:{click:function(i){return e.setMedicalReviewInvalid(t.row)}}}),e._v(" "),i("el-button",{attrs:{circle:"",title:e.$t("trials:pmMedicalReview:action:assign"),disabled:!!t.row.MedicalManagerUser||t.row.IsInvalid||!!t.row.SignTime,icon:"el-icon-thumb"},on:{click:function(i){return e.assignMedicalReviewTask(t.row,1)}}}),e._v(" "),i("el-button",{attrs:{circle:"",title:e.$t("trials:pmMedicalReview:action:cancelAssign"),disabled:!t.row.MedicalManagerUser||t.row.IsInvalid||!!t.row.SignTime,icon:"el-icon-refresh-left"},on:{click:function(i){return e.assignMedicalReviewTask(t.row,3)}}})]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}}),e._v(" "),e.FilterVisible?i("el-dialog",{attrs:{title:e.$t("trials:pmMedicalReview:button:select"),visible:e.FilterVisible,width:"1200px",fullscreen:!0,"append-to-body":"","close-on-click-modal":!1,"custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.FilterVisible=t}}},[i("GenerateMedicalReviewTaskList",{attrs:{"trial-criterion-list":e.trialCriterionList},on:{getList:e.getList}})],1):e._e(),e._v(" "),e.AssignMedicalReviewTaskVisible?i("el-dialog",{attrs:{title:e.$t("trials:pmMedicalReview:allocation:aliocationMIM"),visible:e.AssignMedicalReviewTaskVisible,width:"500px","close-on-click-modal":!1},on:{"update:visible":function(t){e.AssignMedicalReviewTaskVisible=t}}},[i("ReAssignMedicalReviewTask",{attrs:{data:e.rowData,"select-list":e.SelectList,"doctor-user-list":e.MIMOptions},on:{close:function(){e.AssignMedicalReviewTaskVisible=!1},getList:e.getList}})],1):e._e(),e._v(" "),e.auditVisible?i("el-dialog",{attrs:{visible:e.auditVisible,"close-on-click-modal":!1,fullscreen:!0,title:e.$t("trials:pmMedicalReview:dialog:medicalReview")},on:{"update:visible":function(t){e.auditVisible=t}}},[i("MedicalAudit",{attrs:{"visit-task-id":e.currentRow.VisitTaskId,"task-medical-review-id":e.currentRow.Id,rowData:e.currentRow},on:{getList:e.getList,close:function(t){e.auditVisible=!1}}})],1):e._e()],1)],2)},a=[],r=i("db72"),o=i("958c"),s=i("3f2a"),l=i("6071"),c=i("333d"),u=i("d4982"),d=i("48cc"),f=i("b889"),h=i("8691"),p=i("a93a"),m=function(){return{PageIndex:1,PageSize:20,TrialSiteCode:null,Asc:!0,SortField:"",TrialId:null,SiteId:null,SubjectId:null,SubjectCode:null,IsUrgent:null,TaskName:null,TaskState:null,DoctorUserId:null,ReadingCategory:null,TaskAllocationState:null,BeginAllocateDate:null,EndAllocateDate:null,AuditState:null,TrialReadingCriterionId:null}},g={name:"TrialsNotice",components:{BaseContainer:l["default"],Pagination:c["default"],AddOrEditFilter:u["default"],AssignMedicalReviewTask:d["default"],GenerateMedicalReviewTaskList:h["default"],MedicalAudit:p["default"],ReAssignMedicalReviewTask:f["default"]},data:function(){return{auditVisible:null,searchData:m(),maxLength:0,list:[],siteOptions:[],total:0,loading:!1,FilterVisible:!1,AssignMedicalReviewTaskVisible:!1,AddOrEditFilterVisible:!1,trialId:this.$route.query.trialId,currentData:{},param:{},DoctorUserList:[],btnLoading:!1,rowData:{},OtherInfo:null,MIMOptions:[],FilterList:[],title:null,SelectList:[],SelectMedicalList:[],distributionInfo:{},currentRow:{},trialCriterionList:[]}},mounted:function(){this.getList(),this.getSite(),this.getDoctorUserSelectList(),this.getMIMUserList(),this.getTrialCriterionList()},methods:{handleExport:function(){var e=this;Object(s["g"])(this.searchData).then((function(e){})).catch((function(){e.loading=!1}))},getTrialCriterionList:function(){var e=this;Object(o["U"])(this.trialId).then((function(t){e.trialCriterionList=t.Result})).catch((function(){}))},MedicalReviewSelectable:function(e){return!e.IsInvalid&&!e.SignTime},handleListSelectChange:function(e){this.SelectMedicalList=e},setMedicalReviewInvalid:function(e){var t=this,i={};if(e)i.MedicalReviewIdList=[e.Id];else{if(0===this.SelectMedicalList.length)return void this.$message.error(this.$t("trials:pmMedicalReview:message:msg01"));i.MedicalReviewIdList=this.SelectMedicalList.map((function(e){return e.Id}))}this.$confirm(this.$t("trials:pmMedicalReview:message:msg02")).then((function(){t.loading=!0,i.TrialId=t.trialId,Object(o["Z"])(i).then((function(e){t.$message.success(t.$t("trials:pmMedicalReview:message:msg03")),t.getList(),t.loading=!1})).catch((function(){t.loading=!1}))}))},openAssignMedicalReviewTask:function(){this.rowData={},0!==this.SelectList.length?this.AssignMedicalReviewTaskVisible=!0:this.$message.error(this.$t("trials:pmMedicalReview:message:msg04"))},handleReadMecialAudit:function(e){this.currentRow=Object(r["a"])({},e),this.auditVisible=!0},assignMedicalReviewTask:function(e,t){var i=this,n={IdList:[e.Id],taskOptType:t};3===t?this.$confirm(this.$t("trials:pmMedicalReview:message:msg05")).then((function(){i.loading=!0,i.btnLoading=!0,Object(o["f"])(n).then((function(){i.$message.success(i.$t("trials:pmMedicalReview:message:msg06")),i.getList(),i.loading=!1,i.btnLoading=!1})).catch((function(){i.loading=!1,i.btnLoading=!1}))})):(this.rowData=Object(r["a"])({},e),this.AssignMedicalReviewTaskVisible=!0)},selectable:function(e){return!e.MedicalManagerUserId},generateMedicalReviewTask:function(){var e=this;this.$confirm("确定要应用吗?").then((function(){e.loading=!0,e.btnLoading=!0,Object(o["t"])({trialId:e.trialId}).then((function(t){e.$message.success("应用成功"),e.loading=!1,e.getList(),e.btnLoading=!1,e.FilterVisible=!1})).catch((function(){e.loading=!1,e.btnLoading=!1}))}))},addOrEdit:function(e){e?(this.rowData=Object(r["a"])({},e),this.title="编辑"):(this.rowData={},this.title="新增"),this.AddOrEditFilterVisible=!0},openFilter:function(){this.FilterVisible=!0,this.AddOrEditFilterVisible=!1},getDoctorUserSelectList:function(){var e=this;Object(o["A"])(this.$route.query.trialId).then((function(t){e.DoctorUserList=t.Result,e.DoctorUserList.length>0&&(e.ReadingType=e.DoctorUserList[0].ReadingType)}))},getList:function(){var e=this;this.searchData.TrialId=this.$route.query.trialId,this.loading=!0,Object(o["G"])(this.searchData).then((function(t){e.loading=!1,e.OtherInfo=t.OtherInfo,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount,e.AssignMedicalReviewTaskVisible=!1})).catch((function(){e.loading=!1}))},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=m(),this.getList()},getSite:function(){var e=this;Object(o["V"])(this.trialId).then((function(t){e.siteOptions=t.Result}))},getMIMUserList:function(){var e=this;Object(o["F"])(this.trialId).then((function(t){e.MIMOptions=t.Result}))},handleDelete:function(e){var t=this;this.$confirm("确定要删除".concat(e.DoctorUser.UserName,"(").concat(e.DoctorUser.FullName,")的核查计划吗?"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.loading=!0,Object(o["s"])(e.Id).then((function(e){t.loading=!1,t.$message.success("删除成功"),t.openFilter()})).catch((function(){t.loading=!1}))}))},handleSortChange:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()}}},v=g,b=(i("6ee8"),i("2877")),y=Object(b["a"])(v,n,a,!1,null,"9149eee8",null);t["default"]=y.exports},caf7:function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-email",use:"icon-email-usage",viewBox:"0 0 128 96",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 96" id="icon-email"><path d="M64.125 56.975L120.188.912A12.476 12.476 0 0 0 115.5 0h-103c-1.588 0-3.113.3-4.513.838l56.138 56.137z" /><path d="M64.125 68.287l-62.3-62.3A12.42 12.42 0 0 0 0 12.5v71C0 90.4 5.6 96 12.5 96h103c6.9 0 12.5-5.6 12.5-12.5v-71a12.47 12.47 0 0 0-1.737-6.35L64.125 68.287z" /></symbol>'});o.a.add(s);t["default"]=s},cb11:function(e,t,i){var n=i("cbe5"),a=i("9cf9"),r=a.subPixelOptimizeLine,o={},s=n.extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(e,t){var i,n,a,s;this.subPixelOptimize?(r(o,t,this.style),i=o.x1,n=o.y1,a=o.x2,s=o.y2):(i=t.x1,n=t.y1,a=t.x2,s=t.y2);var l=t.percent;0!==l&&(e.moveTo(i,n),l<1&&(a=i*(1-l)+a*l,s=n*(1-l)+s*l),e.lineTo(a,s))},pointAt:function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]}});e.exports=s},cb69:function(e,t,i){var n=i("3301"),a=i("4f85"),r=a.extend({type:"series.scatter",dependencies:["grid","polar","geo","singleAxis","calendar"],getInitialData:function(e,t){return n(this.getSource(),this,{useEncodeDefaulter:!0})},brushSelector:"point",getProgressive:function(){var e=this.option.progressive;return null==e?this.option.large?5e3:this.get("progressive"):e},getProgressiveThreshold:function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?1e4:this.get("progressiveThreshold"):e},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},clip:!0}});e.exports=r},cb6d:function(e,t){function i(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this)}function n(e,t){return{target:e,topTarget:t&&t.topTarget}}i.prototype={constructor:i,_dragStart:function(e){var t=e.target;while(t&&!t.draggable)t=t.parent;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.dispatchToElement(n(t,e),"dragstart",e.event))},_drag:function(e){var t=this._draggingTarget;if(t){var i=e.offsetX,a=e.offsetY,r=i-this._x,o=a-this._y;this._x=i,this._y=a,t.drift(r,o,e),this.dispatchToElement(n(t,e),"drag",e.event);var s=this.findHover(i,a,t).target,l=this._dropTarget;this._dropTarget=s,t!==s&&(l&&s!==l&&this.dispatchToElement(n(l,e),"dragleave",e.event),s&&s!==l&&this.dispatchToElement(n(s,e),"dragenter",e.event))}},_dragEnd:function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.dispatchToElement(n(t,e),"dragend",e.event),this._dropTarget&&this.dispatchToElement(n(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null}};var a=i;e.exports=a},cb73:function(e,t,i){var n=i("3842"),a=n.parsePercent,r=i("6d8b"),o=Math.PI/180;function s(e,t,i,n){t.eachSeriesByType(e,(function(e){var t=e.get("center"),n=e.get("radius");r.isArray(n)||(n=[0,n]),r.isArray(t)||(t=[t,t]);var s=i.getWidth(),c=i.getHeight(),u=Math.min(s,c),d=a(t[0],s),f=a(t[1],c),h=a(n[0],u/2),p=a(n[1],u/2),m=-e.get("startAngle")*o,g=e.get("minAngle")*o,v=e.getData().tree.root,b=e.getViewRoot(),y=b.depth,w=e.get("sort");null!=w&&l(b,w);var _=0;r.each(b.children,(function(e){!isNaN(e.getValue())&&_++}));var I=b.getValue(),x=Math.PI/(I||_)*2,S=b.depth>0,T=b.height-(S?-1:1),C=(p-h)/(T||1),k=e.get("clockwise"),R=e.get("stillShowZeroSum"),D=k?1:-1,L=function(e,t){if(e){var i=t;if(e!==v){var n=e.getValue(),o=0===I&&R?x:n*x;o<g&&(o=g),i=t+D*o;var s=e.depth-y-(S?-1:1),l=h+C*s,c=h+C*(s+1),p=e.getModel();null!=p.get("r0")&&(l=a(p.get("r0"),u/2)),null!=p.get("r")&&(c=a(p.get("r"),u/2)),e.setLayout({angle:o,startAngle:t,endAngle:i,clockwise:k,cx:d,cy:f,r0:l,r:c})}if(e.children&&e.children.length){var m=0;r.each(e.children,(function(e){m+=L(e,t+m)}))}return i-t}};if(S){var O=h,$=h+C,N=2*Math.PI;v.setLayout({angle:N,startAngle:m,endAngle:m+N,clockwise:k,cx:d,cy:f,r0:O,r:$})}L(b,m)}))}function l(e,t){var i=e.children||[];e.children=c(i,t),i.length&&r.each(e.children,(function(e){l(e,t)}))}function c(e,t){if("function"===typeof t)return e.sort(t);var i="asc"===t;return e.sort((function(e,t){var n=(e.getValue()-t.getValue())*(i?1:-1);return 0===n?(e.dataIndex-t.dataIndex)*(i?-1:1):n}))}e.exports=s},cb7b:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"chat-wrapper"},[e.recordContent.length>0?i("div",{staticClass:"chat-content"},e._l(e.recordContent,(function(t,n){return i("div",{key:n},[t.IsCurrentUser?i("div",{staticClass:"word-my"},[i("div",{staticClass:"info"},[i("p",{staticClass:"user-info"},[i("span",{staticStyle:{"font-weight":"700"}},[e._v(e._s(t.CreateUserName)+" ")]),e._v(" "),i("span",[e._v("("+e._s(t.CreateTime)+") ")])]),e._v(" "),i("div",{staticClass:"info-content",domProps:{innerHTML:e._s(t.TalkContent)}})]),e._v(" "),1*t.UserTypeEnum===8?i("img",{attrs:{src:e.adminAvatar,alt:"Admin"}}):1*t.UserTypeEnum===1?i("img",{attrs:{src:e.pmAvatar,alt:"PM"}}):1*t.UserTypeEnum===2?i("img",{attrs:{src:e.crcAvatar,alt:"CRC"}}):e._e()]):i("div",{staticClass:"word"},[1*t.UserTypeEnum===8?i("img",{attrs:{src:e.adminAvatar,alt:"Admin"}}):1*t.UserTypeEnum===1?i("img",{attrs:{src:e.pmAvatar,alt:"PM"}}):1*t.UserTypeEnum===2?i("img",{attrs:{src:e.crcAvatar,alt:"CRC"}}):e._e(),e._v(" "),i("div",{staticClass:"info"},[i("p",{staticClass:"user-info"},[i("span",{staticStyle:{"font-weight":"700"}},[e._v(e._s(t.CreateUserName)+" ")]),e._v(" "),i("span",[e._v("("+e._s(t.CreateTime)+") ")])]),e._v(" "),i("div",{staticClass:"info-content",domProps:{innerHTML:e._s(t.TalkContent)}})])])])})),0):i("div",{staticClass:"chat-content"},[i("h3",[e._v(e._s(e.$t("trials:consistencyCheck:label:noData")))])]),e._v(" "),3!==e.checkChallengeState&&11!==e.checkState?i("div",{staticClass:"chat-message"},[i("div",{staticClass:"message"},[i("el-input",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:consistency-check:fallback"],expression:"['trials:trials-panel:visit:consistency-check:fallback']"}],attrs:{type:"textarea",rows:2},model:{value:e.newMessage,callback:function(t){e.newMessage=t},expression:"newMessage"}})],1),e._v(" "),i("div",{staticClass:"function"},[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:consistency-check:apply-fallback"],expression:"['trials:trials-panel:visit:consistency-check:apply-fallback']"}],attrs:{type:"primary",disabled:!(10===e.checkState&&(0===e.requestBackState||3===e.requestBackState))},on:{click:e.handleApplyBack}},[e._v("\n "+e._s(e.$t("trials:consistencyCheck:action:applyFallback"))+"\n ")]),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:consistency-check:fallback"],expression:"['trials:trials-panel:visit:consistency-check:fallback']"}],attrs:{type:"primary",disabled:!(1===e.requestBackState)},on:{click:e.handleRejectBack}},[e._v("\n "+e._s(e.$t("trials:consistencyCheck:button:rejectBack"))+"\n ")]),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:consistency-check:fallback"],expression:"['trials:trials-panel:visit:consistency-check:fallback']"}],attrs:{type:"primary",disabled:!(1===e.requestBackState)},on:{click:e.handleBack}},[e._v("\n "+e._s(e.$t("trials:consistencyCheck:action:fallback"))+"\n ")]),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["role:pm"],expression:"['role:pm']"}],attrs:{disabled:!(10===e.checkState&&3!==e.checkChallengeState)||""===e.newMessage,type:"primary",loading:e.btnLoading},on:{click:function(t){return e.handleReply()}}},[e._v("\n "+e._s(e.$t("trials:consistencyCheck:button:sendMessage"))+"\n ")]),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["role:crc"],expression:"['role:crc']"}],attrs:{disabled:!(10===e.checkState&&3!==e.checkChallengeState)||!!(e.recordContent&&e.recordContent.length>0)&&1*e.recordContent[e.recordContent.length-1].UserTypeEnum===2,type:"primary",loading:e.btnLoading},on:{click:e.handleCRCReply}},[e._v("\n "+e._s(e.$t("trials:consistencyCheck:title:reply"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",loading:e.btnLoading},on:{click:e.close}},[e._v("\n "+e._s(e.$t("trials:consistencyCheck:title:close"))+"\n ")])],1)]):e._e(),e._v(" "),e.sendMessageCRCVisible?i("el-dialog",{directives:[{name:"dialogDrag",rawName:"v-dialogDrag"}],attrs:{visible:e.sendMessageCRCVisible,"close-on-click-modal":!1,"append-to-body":"","custom-class":"base-dialog-wrapper",width:"600px",title:e.$t("trials:consistencyCheck:title:replyConsistency")},on:{"update:visible":function(t){e.sendMessageCRCVisible=t}}},[i("crcSendMessage",{attrs:{"crc-message-info":e.crcMessageInfo},on:{sendMessage:e.handleReply}})],1):e._e()],1)},a=[],r=(i("ac6a"),i("3e42")),o=i("d38e"),s=i("268e"),l=i.n(s),c=i("19c3"),u=i.n(c),d=i("011b"),f=i.n(d),h={name:"ConsistencyCheckForm",components:{crcSendMessage:o["default"]},props:{data:{type:Object,default:function(){return{}}},dialogList:{type:Array,default:function(){return[]}},isReply:{type:Boolean,default:!1}},data:function(){return{recordContent:[],sendMessageCRCVisible:!1,newMessage:"",loading:!1,btnLoading:!1,userId:zzSessionStorage.getItem("userId"),adminAvatar:l.a,pmAvatar:u.a,crcAvatar:f.a,requestBackState:null,checkState:null,checkChallengeState:null,crcMessageInfo:{arrayOnelist:[],arrayTwolist:[]}}},watch:{data:{handler:function(e){this.requestBackState=e.RequestBackState,this.checkState=e.CheckState,this.checkChallengeState=e.CheckChallengeState},immediate:!0,deep:!0}},mounted:function(){this.getMessageList(this.dialogList),console.log(this.dialogList)},methods:{close:function(){this.$emit("close")},getMessageList:function(e){var t=[];e.forEach((function(e){t.push(e)})),this.recordContent=t,this.setScrollHeight()},setScrollHeight:function(){setTimeout((function(){var e=document.querySelectorAll(".chat-content")[0];e.scrollTop=e.scrollHeight}),100)},addMessage:function(e){this.recordContent.push(e),this.setScrollHeight(),this.loading=!1},handleApplyBack:function(){this.$emit("handleApplyBack")},handleBack:function(){this.$emit("handleBack")},handleRejectBack:function(){var e=this,t=this.$route.query.trialId;this.loading=!0,Object(r["ue"])(t,this.data.Id).then((function(t){t.IsSuccess&&e.$emit("getDialogList")})).catch((function(){e.loading=!1}))},handleCRCReply:function(){this.sendMessageCRCVisible=!0;var e=Object.assign([],this.recordContent);e=e.filter((function(e){return!0===e.IsCRCNeedReply}));var t=e[e.length-1];console.log(t),t.TalkContent&&(this.crcMessageInfo=t)},handleReply:function(e,t){var i=this;if(console.log(e),this.newMessage=e||this.newMessage,this.newMessage){var n=this.$route.query.trialId,a={TalkContent:this.newMessage,SubjectVisitId:this.data.Id};this.loading=!0,Object(r["i"])(n,a).then((function(e){e.IsSuccess&&(i.newMessage="",t&&t(),i.sendMessageCRCVisible=!1,i.$emit("getDialogList"))})).catch((function(){i.loading=!1}))}}}},p=h,m=(i("69323"),i("2877")),g=Object(m["a"])(p,n,a,!1,null,null,null);t["default"]=g.exports},cb8f:function(e,t,i){var n=i("3eba"),a=i("6d8b"),r=i("cd33"),o=i("eb6b");i("48ac"),i("d4b1"),i("4a9d"),n.registerPreprocessor((function(e){if(e){(!e.axisPointer||0===e.axisPointer.length)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!a.isArray(t)&&(e.axisPointer.link=[t])}})),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,(function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=r.collect(e,t)})),n.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},o)},cbb0:function(e,t,i){var n=i("6d8b"),a=i("f934"),r=a.getLayoutRect;function o(e,t,i){var n=e.option,a=n.align;if(null!=a&&"auto"!==a)return a;for(var o={width:t.getWidth(),height:t.getHeight()},s="horizontal"===n.orient?1:0,l=[["left","right","width"],["top","bottom","height"]],c=l[s],u=[0,null,10],d={},f=0;f<3;f++)d[l[1-s][f]]=u[f],d[c[f]]=2===f?i[0]:n[c[f]];var h=[["x","width",3],["y","height",0]][s],p=r(d,o,n.padding);return c[(p.margin[h[2]]||0)+p[h[0]]+.5*p[h[1]]<.5*o[h[1]]?0:1]}function s(e,t){return n.each(e||[],(function(e){null!=e.dataIndex&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")})),e}t.getItemAlign=o,t.makeHighDownBatch=s},cbb3:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"taskAllocationRuleDataForm",attrs:{model:e.form,size:"small",rules:e.rules,"label-width":"170px"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:e.$t("trials:consistencyAnalysisRule:table:visitNum"),prop:"PlanVisitCount"}},[i("el-input-number",{attrs:{disabled:e.isDisable,min:0,"controls-position":"right"},model:{value:e.form.PlanVisitCount,callback:function(t){e.$set(e.form,"PlanVisitCount",t)},expression:"form.PlanVisitCount"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:consistencyAnalysisRule:table:isReadingPeriod"),prop:"IsHaveReadingPeriod"}},[i("el-radio-group",{attrs:{disabled:e.isDisable},on:{change:function(t){e.form.IsGenerateGlobalTask=e.form.IsHaveReadingPeriod}},model:{value:e.form.IsHaveReadingPeriod,callback:function(t){e.$set(e.form,"IsHaveReadingPeriod",t)},expression:"form.IsHaveReadingPeriod"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"form.IsHaveReadingPeriod"+t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1),e._v(" "),e.isSelfAnalysis?i("el-form-item",{attrs:{label:e.$t("trials:consistencyAnalysisRule:table:intervalPeriod"),prop:"IntervalWeeks"}},[i("el-input-number",{attrs:{min:0,disabled:e.isDisable,"controls-position":"right"},model:{value:e.form.IntervalWeeks,callback:function(t){e.$set(e.form,"IntervalWeeks",t)},expression:"form.IntervalWeeks"}})],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:consistencyAnalysisRule:table:plannedNum"),prop:"PlanSubjectCount"}},[i("el-input-number",{attrs:{min:0,disabled:e.isDisable,"controls-position":"right"},model:{value:e.form.PlanSubjectCount,callback:function(t){e.$set(e.form,"PlanSubjectCount",t)},expression:"form.PlanSubjectCount"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:consistencyAnalysisRule:table:siteCode"),prop:"BlindTrialSiteCode"}},[i("el-input",{staticStyle:{width:"140px"},attrs:{disabled:e.isDisable},model:{value:e.form.BlindTrialSiteCode,callback:function(t){e.$set(e.form,"BlindTrialSiteCode",t)},expression:"form.BlindTrialSiteCode"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:consistencyAnalysisRule:table:subjectNum"),prop:"BlindSubjectNumberOfPlaces"}},[i("el-input-number",{attrs:{min:1,disabled:e.isDisable,max:5,"controls-position":"right"},model:{value:e.form.BlindSubjectNumberOfPlaces,callback:function(t){e.$set(e.form,"BlindSubjectNumberOfPlaces",t)},expression:"form.BlindSubjectNumberOfPlaces"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:consistencyAnalysisRule:table:isGenerateGlobalTask"),prop:"IsGenerateGlobalTask"}},[i("el-radio-group",{attrs:{disabled:""},model:{value:e.form.IsGenerateGlobalTask,callback:function(t){e.$set(e.form,"IsGenerateGlobalTask",t)},expression:"form.IsGenerateGlobalTask"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"form.IsGenerateGlobalTask"+t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.close}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading,disabled:e.isDisable},on:{click:e.save}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])},a=[],r=i("958c"),o={name:"AddOrUpdateTaskAllocationRuleData",props:{TrialReadingCriterionId:{type:String,default:function(){return""}},data:{type:Object,default:function(){return{}}},isDisable:{type:Boolean,default:function(){return!0}},isSelfAnalysis:{type:Boolean,default:function(){return!0}},doctorUserList:{type:Array,default:function(){return[]}}},data:function(){return{form:{Id:null,TrialId:this.$route.query.trialId,PlanSubjectCount:0,PlanVisitCount:0,IntervalWeeks:0,IsHaveReadingPeriod:null,IsGenerateGlobalTask:null,BlindTrialSiteCode:"",BlindSubjectNumberOfPlaces:0,IsEnable:!0,Note:""},rules:{IsHaveReadingPeriod:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}],IsGenerateGlobalTask:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}],PlanSubjectCount:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}],IntervalWeeks:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}],PlanVisitCount:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}],BlindTrialSiteCode:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}],BlindSubjectNumberOfPlaces:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}]},loading:!1,btnLoading:!1}},mounted:function(){this.getFrom()},methods:{getFrom:function(){var e=this;Object(r["v"])({TrialId:this.$route.query.trialId,IsSelfAnalysis:this.isSelfAnalysis,TrialReadingCriterionId:this.TrialReadingCriterionId}).then((function(t){t.Result&&(e.form=t.Result)}))},save:function(){var e=this;this.$refs.taskAllocationRuleDataForm.validate((function(t){t&&(e.btnLoading=!0,e.loading=!0,e.form.IsSelfAnalysis=e.isSelfAnalysis,e.form.TrialReadingCriterionId=e.TrialReadingCriterionId,Object(r["c"])(e.form).then((function(t){e.loading=!1,e.btnLoading=!1,e.$message.success(e.$t("common:message:savedSuccessfully")),e.$emit("getList")})).catch((function(){e.loading=!1,e.btnLoading=!1})))}))},close:function(){this.$emit("close")}}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,"f9fcfbd0",null);t["default"]=c.exports},cbe5:function(e,t,i){var n=i("19eb"),a=i("6d8b"),r=i("20c8"),o=i("d833"),s=i("dc2f"),l=s.prototype.getCanvasPattern,c=Math.abs,u=new r(!0);function d(e){n.call(this,e),this.path=null}d.prototype={constructor:d,type:"path",__dirtyPath:!0,strokeContainThreshold:5,segmentIgnoreThreshold:0,subPixelOptimize:!1,brush:function(e,t){var i,n=this.style,a=this.path||u,r=n.hasStroke(),o=n.hasFill(),s=n.fill,c=n.stroke,d=o&&!!s.colorStops,f=r&&!!c.colorStops,h=o&&!!s.image,p=r&&!!c.image;(n.bind(e,this,t),this.setTransform(e),this.__dirty)&&(d&&(i=i||this.getBoundingRect(),this._fillGradient=n.getGradient(e,s,i)),f&&(i=i||this.getBoundingRect(),this._strokeGradient=n.getGradient(e,c,i)));d?e.fillStyle=this._fillGradient:h&&(e.fillStyle=l.call(s,e)),f?e.strokeStyle=this._strokeGradient:p&&(e.strokeStyle=l.call(c,e));var m=n.lineDash,g=n.lineDashOffset,v=!!e.setLineDash,b=this.getGlobalScale();if(a.setScale(b[0],b[1],this.segmentIgnoreThreshold),this.__dirtyPath||m&&!v&&r?(a.beginPath(e),m&&!v&&(a.setLineDash(m),a.setLineDashOffset(g)),this.buildPath(a,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(e.beginPath(),this.path.rebuildPath(e)),o)if(null!=n.fillOpacity){var y=e.globalAlpha;e.globalAlpha=n.fillOpacity*n.opacity,a.fill(e),e.globalAlpha=y}else a.fill(e);if(m&&v&&(e.setLineDash(m),e.lineDashOffset=g),r)if(null!=n.strokeOpacity){y=e.globalAlpha;e.globalAlpha=n.strokeOpacity*n.opacity,a.stroke(e),e.globalAlpha=y}else a.stroke(e);m&&v&&e.setLineDash([]),null!=n.text&&(this.restoreTransform(e),this.drawRectText(e,this.getBoundingRect()))},buildPath:function(e,t,i){},createPathProxy:function(){this.path=new r},getBoundingRect:function(){var e=this._rect,t=this.style,i=!e;if(i){var n=this.path;n||(n=this.path=new r),this.__dirtyPath&&(n.beginPath(),this.buildPath(n,this.shape,!1)),e=n.getBoundingRect()}if(this._rect=e,t.hasStroke()){var a=this._rectWithStroke||(this._rectWithStroke=e.clone());if(this.__dirty||i){a.copy(e);var o=t.lineWidth,s=t.strokeNoScale?this.getLineScale():1;t.hasFill()||(o=Math.max(o,this.strokeContainThreshold||4)),s>1e-10&&(a.width+=o/s,a.height+=o/s,a.x-=o/s/2,a.y-=o/s/2)}return a}return e},contain:function(e,t){var i=this.transformCoordToLocal(e,t),n=this.getBoundingRect(),a=this.style;if(e=i[0],t=i[1],n.contain(e,t)){var r=this.path.data;if(a.hasStroke()){var s=a.lineWidth,l=a.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(a.hasFill()||(s=Math.max(s,this.strokeContainThreshold)),o.containStroke(r,s/l,e,t)))return!0}if(a.hasFill())return o.contain(r,e,t)}return!1},dirty:function(e){null==e&&(e=!0),e&&(this.__dirtyPath=e,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(e){return this.animate("shape",e)},attrKV:function(e,t){"shape"===e?(this.setShape(t),this.__dirtyPath=!0,this._rect=null):n.prototype.attrKV.call(this,e,t)},setShape:function(e,t){var i=this.shape;if(i){if(a.isObject(e))for(var n in e)e.hasOwnProperty(n)&&(i[n]=e[n]);else i[e]=t;this.dirty(!0)}return this},getLineScale:function(){var e=this.transform;return e&&c(e[0]-1)>1e-10&&c(e[3]-1)>1e-10?Math.sqrt(c(e[0]*e[3]-e[2]*e[1])):1}},d.extend=function(e){var t=function(t){d.call(this,t),e.style&&this.style.extendFrom(e.style,!1);var i=e.shape;if(i){this.shape=this.shape||{};var n=this.shape;for(var a in i)!n.hasOwnProperty(a)&&i.hasOwnProperty(a)&&(n[a]=i[a])}e.init&&e.init.call(this,t)};for(var i in a.inherits(t,d),e)"style"!==i&&"shape"!==i&&(t.prototype[i]=e[i]);return t},a.inherits(d,n);var f=d;e.exports=f},cbe9:function(e,t,i){var n=i("6d8b"),a=i("9850"),r=i("cf7e");function o(e){r.call(this,e)}o.prototype={constructor:o,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},containPoint:function(e){var t=this.getAxis("x"),i=this.getAxis("y");return t.contain(t.toLocalCoord(e[0]))&&i.contain(i.toLocalCoord(e[1]))},containData:function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},dataToPoint:function(e,t,i){var n=this.getAxis("x"),a=this.getAxis("y");return i=i||[],i[0]=n.toGlobalCoord(n.dataToCoord(e[0])),i[1]=a.toGlobalCoord(a.dataToCoord(e[1])),i},clampData:function(e,t){var i=this.getAxis("x").scale,n=this.getAxis("y").scale,a=i.getExtent(),r=n.getExtent(),o=i.parse(e[0]),s=n.parse(e[1]);return t=t||[],t[0]=Math.min(Math.max(Math.min(a[0],a[1]),o),Math.max(a[0],a[1])),t[1]=Math.min(Math.max(Math.min(r[0],r[1]),s),Math.max(r[0],r[1])),t},pointToData:function(e,t){var i=this.getAxis("x"),n=this.getAxis("y");return t=t||[],t[0]=i.coordToData(i.toLocalCoord(e[0])),t[1]=n.coordToData(n.toLocalCoord(e[1])),t},getOtherAxis:function(e){return this.getAxis("x"===e.dim?"y":"x")},getArea:function(){var e=this.getAxis("x").getGlobalExtent(),t=this.getAxis("y").getGlobalExtent(),i=Math.min(e[0],e[1]),n=Math.min(t[0],t[1]),r=Math.max(e[0],e[1])-i,o=Math.max(t[0],t[1])-n,s=new a(i,n,r,o);return s}},n.inherits(o,r);var s=o;e.exports=s},cc27:function(e,t,i){e.exports=i.p+"static/img/IR.5a471057.png"},cc2e:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",[i("div",{staticClass:"search"},[i("el-form",{staticClass:"base-search-form",attrs:{inline:!0,size:"mini"}},[i("el-form-item",{attrs:{label:"是否需要回执:"}},[i("el-select",{staticStyle:{width:"100px"},attrs:{clearable:""},model:{value:e.searchData.IsReturnRequired,callback:function(t){e.$set(e.searchData,"IsReturnRequired",t)},expression:"searchData.IsReturnRequired"}},[i("el-option",{attrs:{value:!0,label:"是"}}),e._v(" "),i("el-option",{attrs:{value:!1,label:"否"}})],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"是否加急:"}},[i("el-select",{staticStyle:{width:"100px"},attrs:{clearable:""},model:{value:e.searchData.IsUrgent,callback:function(t){e.$set(e.searchData,"IsUrgent",t)},expression:"searchData.IsUrgent"}},[i("el-option",{attrs:{value:!0,label:"是"}}),e._v(" "),i("el-option",{attrs:{value:!1,label:"否"}})],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"是否启用:"}},[i("el-select",{staticStyle:{width:"100px"},attrs:{clearable:""},model:{value:e.searchData.IsEnable,callback:function(t){e.$set(e.searchData,"IsEnable",t)},expression:"searchData.IsEnable"}},[i("el-option",{attrs:{value:!0,label:"是"}}),e._v(" "),i("el-option",{attrs:{value:!1,label:"否"}})],1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:e.handleSearch}},[e._v("查询")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.handleReset}},[e._v("重置")])],1)],1),e._v(" "),i("span",{staticStyle:{"margin-left":"auto"}},[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.handleAdd}},[e._v("\n 新增\n ")])],1)],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:45},expression:"{bottomOffset:45}"}],staticStyle:{width:"100%"},attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Code",label:"Code",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"BusinessScenarioEnum",label:"业务场景","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("Common_File_BusinessScenario",t.row.BusinessScenarioEnum))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsReturnRequired",label:"是否需要回执","show-overflow-tooltip":"",sortable:"custom",width:"130"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsReturnRequired?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsReturnRequired)))]):i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsReturnRequired)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsUrgent",label:"是否加急","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsUrgent?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsUrgent)))]):i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsUrgent)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsAutoSend",label:"是否自动发送","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsAutoSend?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsAutoSend)))]):i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsAutoSend)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsDistinguishCriteria",label:"是否区分标准","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsDistinguishCriteria?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsDistinguishCriteria)))]):i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsDistinguishCriteria)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsEnable",label:"是否启用","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsEnable?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsEnable)))]):i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsEnable)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"UpdateTime",label:"更新时间","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:"创建时间","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{label:"Action",width:"140",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleDetail(t.row)}}},[e._v("\n 附件\n ")]),e._v(" "),i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("\n 编辑\n ")]),e._v(" "),i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("删除")])]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}}),e._v(" "),e.editVisible?i("el-dialog",{attrs:{visible:e.editVisible,"close-on-click-modal":!1,title:e.title,width:"700px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.editVisible=t}}},[i("EmailForm",{attrs:{data:e.rowData},on:{closeDialog:e.closeDialog,getList:e.getList}})],1):e._e(),e._v(" "),e.attachmentVisible?i("el-dialog",{attrs:{visible:e.attachmentVisible,"close-on-click-modal":!1,title:"附件",width:"80%","custom-class":"base-dialog-wrapper","append-to-body":""},on:{"update:visible":function(t){e.attachmentVisible=t}}},[i("AttachmentList",{attrs:{"business-scenario-enum":e.rowData.BusinessScenarioEnum,"is-distinguish-criteria":e.rowData.IsDistinguishCriteria},on:{getList:e.getList}})],1):e._e()],1)},a=[],r=i("db72"),o=i("e56e"),s=i("f36a"),l=i("333d"),c=i("3fdc"),u=i("5651"),d=function(){return{IsReturnRequired:"",IsUrgent:"",IsEnable:"",PageIndex:1,PageSize:20}},f={name:"EmailList",components:{BoxContent:s["default"],Pagination:l["default"],EmailForm:c["default"],AttachmentList:u["default"]},data:function(){return{searchData:d(),loading:!1,list:[],total:0,rowData:{},title:"",editVisible:!1,attachmentVisible:!1}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0,Object(o["hb"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},handleAdd:function(){this.rowData={},this.title="新增",this.editVisible=!0},handleEdit:function(e){this.rowData=Object(r["a"])({},e),this.title="编辑",this.editVisible=!0},handleDelete:function(e){var t=this;this.$confirm("是否确认删除?",{type:"warning",distinguishCancelAndClose:!0}).then((function(){Object(o["D"])(e.Id).then((function(e){e.IsSuccess&&(t.getList(),t.$message.success("删除成功!"))}))}))},handleDetail:function(e){this.rowData=Object(r["a"])({},e),this.attachmentVisible=!0},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=d(),this.getList()},handleSortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()},closeDialog:function(){this.editVisible=!1}}},h=f,p=i("2877"),m=Object(p["a"])(h,n,a,!1,null,null,null);t["default"]=m.exports},cc39:function(e,t,i){var n=i("6d8b"),a=i("3842"),r=i("50e5"),o=i("ef6a"),s=n.each,l=a.asc,c=function(e,t,i,n){this._dimName=e,this._axisIndex=t,this._valueWindow,this._percentWindow,this._dataExtent,this._minMaxSpan,this.ecModel=n,this._dataZoomModel=i};function u(e,t,i){var n=[1/0,-1/0];return s(i,(function(e){var i=e.getData();i&&s(i.mapDimension(t,!0),(function(e){var t=i.getApproximateExtent(e);t[0]<n[0]&&(n[0]=t[0]),t[1]>n[1]&&(n[1]=t[1])}))})),n[1]<n[0]&&(n=[NaN,NaN]),d(e,n),n}function d(e,t){var i=e.getAxisModel(),n=i.getMin(!0),a="category"===i.get("type"),r=a&&i.getCategories().length;null!=n&&"dataMin"!==n&&"function"!==typeof n?t[0]=n:a&&(t[0]=r>0?0:NaN);var o=i.getMax(!0);return null!=o&&"dataMax"!==o&&"function"!==typeof o?t[1]=o:a&&(t[1]=r>0?r-1:NaN),i.get("scale",!0)||(t[0]>0&&(t[0]=0),t[1]<0&&(t[1]=0)),t}function f(e,t){var i=e.getAxisModel(),n=e._percentWindow,r=e._valueWindow;if(n){var o=a.getPixelPrecision(r,[0,500]);o=Math.min(o,20);var s=t||0===n[0]&&100===n[1];i.setRange(s?null:+r[0].toFixed(o),s?null:+r[1].toFixed(o))}}function h(e){var t=e._minMaxSpan={},i=e._dataZoomModel,n=e._dataExtent;s(["min","max"],(function(r){var o=i.get(r+"Span"),s=i.get(r+"ValueSpan");null!=s&&(s=e.getAxisModel().axis.scale.parse(s)),null!=s?o=a.linearMap(n[0]+s,n,[0,100],!0):null!=o&&(s=a.linearMap(o,[0,100],n,!0)-n[0]),t[r+"Span"]=o,t[r+"ValueSpan"]=s}))}c.prototype={constructor:c,hostedBy:function(e){return this._dataZoomModel===e},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var e=[],t=this.ecModel;return t.eachSeries((function(i){if(r.isCoordSupported(i.get("coordinateSystem"))){var n=this._dimName,a=t.queryComponents({mainType:n+"Axis",index:i.get(n+"AxisIndex"),id:i.get(n+"AxisId")})[0];this._axisIndex===(a&&a.componentIndex)&&e.push(i)}}),this),e},getAxisModel:function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var e,t,i,n=this._dimName,a=this.ecModel,r=this.getAxisModel(),o="x"===n||"y"===n;return o?(t="gridIndex",e="x"===n?"y":"x"):(t="polarIndex",e="angle"===n?"radius":"angle"),a.eachComponent(e+"Axis",(function(e){(e.get(t)||0)===(r.get(t)||0)&&(i=e)})),i},getMinMaxSpan:function(){return n.clone(this._minMaxSpan)},calculateDataWindow:function(e){var t,i=this._dataExtent,n=this.getAxisModel(),r=n.axis.scale,c=this._dataZoomModel.getRangePropMode(),u=[0,100],d=[],f=[];s(["start","end"],(function(n,o){var s=e[n],l=e[n+"Value"];"percent"===c[o]?(null==s&&(s=u[o]),l=r.parse(a.linearMap(s,u,i))):(t=!0,l=null==l?i[o]:r.parse(l),s=a.linearMap(l,i,u)),f[o]=l,d[o]=s})),l(f),l(d);var h=this._minMaxSpan;function p(e,t,i,n,s){var l=s?"Span":"ValueSpan";o(0,e,i,"all",h["min"+l],h["max"+l]);for(var c=0;c<2;c++)t[c]=a.linearMap(e[c],i,n,!0),s&&(t[c]=r.parse(t[c]))}return t?p(f,d,i,u,!1):p(d,f,u,i,!0),{valueWindow:f,percentWindow:d}},reset:function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=u(this,this._dimName,t),h(this);var i=this.calculateDataWindow(e.settledOption);this._valueWindow=i.valueWindow,this._percentWindow=i.percentWindow,f(this)}},restore:function(e){e===this._dataZoomModel&&(this._valueWindow=this._percentWindow=null,f(this,!0))},filterData:function(e,t){if(e===this._dataZoomModel){var i=this._dimName,n=this.getTargetSeriesModels(),a=e.get("filterMode"),r=this._valueWindow;"none"!==a&&s(n,(function(e){var t=e.getData(),n=t.mapDimension(i,!0);n.length&&("weakFilter"===a?t.filterSelf((function(e){for(var i,a,o,s=0;s<n.length;s++){var l=t.get(n[s],e),c=!isNaN(l),u=l<r[0],d=l>r[1];if(c&&!u&&!d)return!0;c&&(o=!0),u&&(i=!0),d&&(a=!0)}return o&&i&&a})):s(n,(function(i){if("empty"===a)e.setData(t=t.map(i,(function(e){return o(e)?e:NaN})));else{var n={};n[i]=r,t.selectRange(n)}})),s(n,(function(e){t.setApproximateExtent(r,e)})))}))}function o(e){return e>=r[0]&&e<=r[1]}}};var p=c;e.exports=p},cc5f:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container my_menu"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:"操作名"}},[i("el-input",{attrs:{placeholder:"请输入操作名",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.menuName,callback:function(t){e.$set(e.queryParams,"menuName",t)},expression:"queryParams.menuName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"模块"}},[i("el-select",{attrs:{placeholder:"模块",clearable:"",size:"small"},model:{value:e.queryParams.visible,callback:function(t){e.$set(e.queryParams,"visible",t)},expression:"queryParams.visible"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:e.handleQuery}},[e._v("搜索")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-plus",size:"mini"},on:{click:e.handleAdd}},[e._v("新增")])],1)],1),e._v(" "),i("div",[i("el-button",{attrs:{type:"info",plain:"",icon:"el-icon-sort",size:"mini"},on:{click:e.toggleExpandAll}},[e._v("展开/折叠")])],1),e._v(" "),e.refreshTable?i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.menuList,"default-expand-all":e.isExpandAll,"row-key":"Id","tree-props":{children:"Children",hasChildren:"hasChildren"}}},[i("el-table-column",{attrs:{prop:"ModuleTypeValueCN",label:"模块",align:"left","min-width":"230px"}}),e._v(" "),i("el-table-column",{attrs:{prop:"OptTypeValueCN",label:"操作类型","min-width":"120px"}}),e._v(" "),i("el-table-column",{attrs:{prop:"ChildrenTypeValueCN",label:"操作子类","min-width":"120px","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Description",label:"操作名称","show-overflow-tooltip":!0,"min-width":"200px"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Code",label:"字段名","min-width":"120px","show-overflow-tooltip":!0}}),e._v(" "),i("el-table-column",{attrs:{prop:"Value",label:"字段英文","min-width":"120px","show-overflow-tooltip":!0}}),e._v(" "),i("el-table-column",{attrs:{prop:"ValueCN",label:"字段中文","min-width":"120px","show-overflow-tooltip":!0}}),e._v(" "),i("el-table-column",{attrs:{label:"启用",align:"center",prop:"CreateTime","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsEnable?i("el-tag",{attrs:{size:"success"}},[e._v("启用")]):i("el-tag",{attrs:{size:"danger"}},[e._v("禁用")])]}}],null,!1,3408094289)}),e._v(" "),i("el-table-column",{attrs:{label:"是否使用父数据",align:"center",prop:"CreateTime","min-width":"130"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsShowParent?i("el-tag",{attrs:{size:"success"}},[e._v("父数据")]):i("el-tag",{attrs:{size:"danger"}},[e._v("子数据")])]}}],null,!1,2599008903)}),e._v(" "),i("el-table-column",{attrs:{label:"操作",align:"center","min-width":"180","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-edit"},on:{click:function(i){return e.handleUpdate(t.row)}}},[e._v("修改")]),e._v(" "),"M"===t.row.ConfigType?i("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-plus"},on:{click:function(i){return e.handleAdd(t.row)}}},[e._v("新增")]):e._e(),e._v(" "),i("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-delete"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("删除")])]}}],null,!1,963390274)})],1):e._e(),e._v(" "),i("el-dialog",{attrs:{title:e.title,"close-on-click-modal":!1,visible:e.open,width:"680px","append-to-body":""},on:{"update:visible":function(t){e.open=t}}},[i("el-form",{ref:"form",attrs:{model:e.form,"label-width":"100px"}},[i("el-row",[i("el-col",{attrs:{span:24}},[i("el-form-item",{attrs:{label:"选择操作"}},[i("treeselect",{attrs:{options:e.menuOptions,normalizer:e.normalizer,"show-count":!0,placeholder:"选择上级操作"},model:{value:e.form.ParentId,callback:function(t){e.$set(e.form,"ParentId",t)},expression:"form.ParentId"}})],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"M"===e.form.ConfigType,expression:"form.ConfigType === 'M'"}],attrs:{span:12}},[i("el-form-item",{attrs:{label:"模块",prop:"menuType"}},[i("el-select",{attrs:{placeholder:"模块",clearable:"",size:"small"},on:{change:e.changeDescription},model:{value:e.form.ModuleTypeId,callback:function(t){e.$set(e.form,"ModuleTypeId",t)},expression:"form.ModuleTypeId"}},e._l(e.dict.type.ModuleType,(function(e){return i("el-option",{attrs:{value:e.value,label:e.raw.ValueCN}})})),1)],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"M"===e.form.ConfigType,expression:"form.ConfigType === 'M'"}],attrs:{span:12}},[i("el-form-item",{attrs:{label:"操作类型",prop:"menuType"}},[i("el-select",{attrs:{placeholder:"操作类型",clearable:"",size:"small"},on:{change:e.changeDescription},model:{value:e.form.OptTypeId,callback:function(t){e.$set(e.form,"OptTypeId",t)},expression:"form.OptTypeId"}},e._l(e.dict.type.OptType,(function(e){return i("el-option",{attrs:{value:e.value,label:e.raw.ValueCN}})})),1)],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"M"===e.form.ConfigType,expression:"form.ConfigType === 'M'"}],attrs:{span:12}},[i("el-form-item",{attrs:{label:"操作子类",prop:"menuType"}},[i("el-select",{attrs:{placeholder:"操作子类",clearable:"",size:"small"},on:{change:e.changeDescription},model:{value:e.form.ChildrenTypeId,callback:function(t){e.$set(e.form,"ChildrenTypeId",t)},expression:"form.ChildrenTypeId"}},e._l(e.dict.type.ChildrenType,(function(e){return i("el-option",{attrs:{value:e.value,label:e.raw.ValueCN}})})),1)],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"M"==e.form.ConfigType,expression:"form.ConfigType == 'M'"}],attrs:{span:12}},[i("el-form-item",{attrs:{label:"名称",prop:"Description"}},[i("el-input",{attrs:{placeholder:"请输入名称"},model:{value:e.form.Description,callback:function(t){e.$set(e.form,"Description",t)},expression:"form.Description"}})],1)],1),e._v(" "),i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{label:"显示排序",prop:"ShowOrder"}},[i("el-input-number",{attrs:{"controls-position":"right",min:0},model:{value:e.form.Sort,callback:function(t){e.$set(e.form,"Sort",t)},expression:"form.Sort"}})],1)],1),e._v(" "),i("el-col",{attrs:{span:12}},[i("el-form-item",[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 是否启用\n ")]),e._v(" "),i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},model:{value:e.form.IsEnable,callback:function(t){e.$set(e.form,"IsEnable",t)},expression:"form.IsEnable"}})],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"C"===e.form.ConfigType,expression:"form.ConfigType === 'C'"}],attrs:{span:12}},[i("el-form-item",[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n 继承父数据\n ")]),e._v(" "),i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},model:{value:e.form.IsShowParent,callback:function(t){e.$set(e.form,"IsShowParent",t)},expression:"form.IsShowParent"}})],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"C"===e.form.ConfigType,expression:"form.ConfigType === 'C'"}],attrs:{span:24}},[i("el-form-item",{attrs:{label:"字段key"}},[i("el-input",{attrs:{placeholder:"请输入字段key"},model:{value:e.form.Code,callback:function(t){e.$set(e.form,"Code",t)},expression:"form.Code"}})],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"C"===e.form.ConfigType,expression:"form.ConfigType === 'C'"}],attrs:{span:12}},[i("el-form-item",{attrs:{label:"字段英文"}},[i("el-input",{attrs:{placeholder:"请输入字段英文"},model:{value:e.form.Value,callback:function(t){e.$set(e.form,"Value",t)},expression:"form.Value"}})],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"C"===e.form.ConfigType,expression:"form.ConfigType === 'C'"}],attrs:{span:12}},[i("el-form-item",{attrs:{label:"字段中文"}},[i("el-input",{attrs:{placeholder:"请输入字段中文"},model:{value:e.form.ValueCN,callback:function(t){e.$set(e.form,"ValueCN",t)},expression:"form.ValueCN"}})],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"C"===e.form.ConfigType,expression:"form.ConfigType === 'C'"}],attrs:{span:24}},[i("el-form-item",{attrs:{label:"枚举类型"}},[i("el-radio-group",{model:{value:e.form.EnumType,callback:function(t){e.$set(e.form,"EnumType",t)},expression:"form.EnumType"}},[i("el-radio",{attrs:{label:null}},[e._v("无")]),e._v(" "),i("el-radio",{attrs:{label:"E"}},[e._v("枚举")]),e._v(" "),i("el-radio",{attrs:{label:"D"}},[e._v("字典")])],1)],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"C"===e.form.ConfigType&&"E"===e.form.EnumType,expression:"form.ConfigType === 'C' && form.EnumType === 'E'"}],attrs:{span:24}},[i("el-form-item",{attrs:{label:"枚举"}},[i("el-input",{attrs:{placeholder:"请输入枚举"},model:{value:e.form.EnumList,callback:function(t){e.$set(e.form,"EnumList",t)},expression:"form.EnumList"}})],1)],1),e._v(" "),i("el-col",{directives:[{name:"show",rawName:"v-show",value:"C"===e.form.ConfigType&&"D"===e.form.EnumType,expression:"form.ConfigType === 'C' && form.EnumType === 'D'"}],attrs:{span:24}},[i("el-form-item",{attrs:{label:"字典code"}},[i("el-input",{attrs:{placeholder:"请输入字典code"},model:{value:e.form.dictionaryKey,callback:function(t){e.$set(e.form,"dictionaryKey",t)},expression:"form.dictionaryKey"}})],1)],1)],1)],1),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("确 定")]),e._v(" "),i("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1)],1)],1)},a=[],r=(i("7514"),i("2938")),o=i("ca17"),s=i.n(o),l=(i("542c"),i("5aee")),c={name:"checkConfig",dicts:["OptType","ModuleType","ChildrenType"],components:{Treeselect:s.a,IconSelect:l["default"]},data:function(){return{loading:!0,menuList:[],menuOptions:[],title:"",open:!1,visibleOptions:[],queryParams:{menuName:void 0,visible:void 0},isExpandAll:!1,refreshTable:!0,form:{},rules:{MenuName:[{required:!0,message:"菜单名称不能为空",trigger:"blur"}],ShowOrder:[{required:!0,message:"菜单顺序不能为空",trigger:"blur"}]}}},created:function(){this.getList()},methods:{toggleExpandAll:function(){var e=this;this.refreshTable=!1,this.isExpandAll=!this.isExpandAll,this.$nextTick((function(){e.refreshTable=!0}))},normalizer:function(e){return e.Children&&!e.Children.length&&delete e.Children,{id:e.Id,label:e.Description,children:e.Children}},toTree:function(e,t){function i(t){for(var n=[],a=0;a<e.length;a++){var r=e[a];r.hasChildren=!1,r.ParentId===t&&(r.Children=i(r.Id),n.push(r))}return n}return i(t)},selected:function(e){this.form.MenuIcon=e},getList:function(){var e=this;this.loading=!0,Object(r["h"])(this.queryParams).then((function(t){e.menuList=e.toTree(t.Result,"00000000-0000-0000-0000-000000000000");var i={Id:"00000000-0000-0000-0000-000000000000",Description:"操作",Children:[]};i.Children=e.menuList,e.menuOptions=Object.assign([],[i]),e.loading=!1})).catch((function(){}))},getTreeselect:function(){var e=this;this.loading=!0,Object(r["h"])({}).then((function(t){var i={Id:"00000000-0000-0000-0000-000000000000",Description:"操作",Children:[]};i.Children=e.toTree(t.Result,"00000000-0000-0000-0000-000000000000"),e.menuOptions=Object.assign([],[i]),e.loading=!1})).catch((function(){}))},visibleFormat:function(e,t){return"F"===e.MenuType?"":this.selectDictLabel(this.visibleOptions,e.visible)},cancel:function(){this.open=!1,this.reset()},reset:function(){this.form={Id:null,ParentId:null,ConfigType:"M",Description:null,IsEnable:!0,ModuleTypeId:null,OptTypeId:null,ChildrenTypeId:null,IsShowParent:!1,Sort:0,Code:null,Value:null,ValueCN:null,EnumType:null},this.resetForm("form")},findName:function(e,t,i){return e?this.dict.type[t].find((function(t){return t.value===e})).raw[i]:""},changeDescription:function(){this.form.Description=this.findName(this.form.OptTypeId,"OptType","ValueCN")+this.findName(this.form.ModuleTypeId,"ModuleType","ValueCN")+this.findName(this.form.ChildrenTypeId,"ChildrenType","ValueCN")},handleQuery:function(){this.getList()},handleAdd:function(e){this.reset(),this.getTreeselect(),null!=e&&(this.form.ParentId=e.Id,this.form.ModuleTypeId=e.ModuleTypeId,this.form.OptTypeId=e.OptTypeId,this.form.ChildrenTypeId=e.ChildrenTypeId,e.ModuleTypeId&&e.OptTypeId&&e.ChildrenTypeId&&(this.form.ConfigType="C"),this.form.Description=e.OptTypeValueCN+e.ModuleTypeValueCN+e.ChildrenTypeValueCN),this.open=!0,this.title="添加"},handleUpdate:function(e){this.reset(),this.getTreeselect(),this.form=Object.assign({},e),this.open=!0,this.title="修改"},submitForm:function(){var e=this;this.$refs["form"].validate((function(t){t&&Object(r["a"])(e.form).then((function(t){e.$message.success("保存成功"),e.open=!1,e.getList()}))}))},handleDelete:function(e){var t=this;this.$confirm('是否确认删除名称为"'+e.Description+'"的数据项?',"警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){return Object(r["e"])(e.Id)})).then((function(){t.getList(),t.$message.success("删除成功")})).catch((function(){}))}}},u=c,d=(i("b4be"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},cc73:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{ref:"dicom-wrapper",staticClass:"dicom-wrapper"},[i("div",{ref:"dicomViewer",staticClass:"dicom-viewer"},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.layoutRow>=1,expression:"layoutRow>=1"}],staticClass:"dicom-row",style:{height:e.rowHeight}},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.layoutRow>=1&&e.layoutCol>=1,expression:"layoutRow>=1&&layoutCol>=1"}],staticClass:"dicom-item",class:{activeItem:"dicomCanvas0"==e.activeItem},attrs:{"data-index":"0"},on:{click:function(t){return e.activateDicomCanvas(0)},dblclick:function(t){return e.setFullScreen(t)}}},[i("dicom-canvas",{ref:"dicomCanvas0",staticStyle:{width:"100%",height:"100%"}})],1),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:e.layoutRow>=1&&e.layoutCol>=2,expression:"layoutRow>=1&&layoutCol>=2"}],staticClass:"dicom-item",class:{activeItem:"dicomCanvas1"==e.activeItem},attrs:{"data-index":"1"},on:{click:function(t){return e.activateDicomCanvas(1)},dblclick:function(t){return e.setFullScreen(t)}}},[i("dicom-canvas",{ref:"dicomCanvas1",staticStyle:{width:"100%",height:"100%"}})],1),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:e.layoutRow>=1&&e.layoutCol>=3,expression:"layoutRow>=1&&layoutCol>=3"}],staticClass:"dicom-item",class:{activeItem:"dicomCanvas2"==e.activeItem},attrs:{"data-index":"2"},on:{click:function(t){return e.activateDicomCanvas(2)},dblclick:function(t){return e.setFullScreen(t)}}},[i("dicom-canvas",{ref:"dicomCanvas2",staticStyle:{width:"100%",height:"100%"}})],1)]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:e.layoutRow>=2,expression:"layoutRow>=2"}],staticClass:"dicom-row",style:{height:e.rowHeight}},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.layoutRow>=2&&e.layoutCol>=1,expression:"layoutRow>=2&&layoutCol>=1"}],staticClass:"dicom-item",class:{activeItem:"dicomCanvas3"==e.activeItem},attrs:{"data-index":"3"},on:{click:function(t){return e.activateDicomCanvas(3)},dblclick:function(t){return e.setFullScreen(t)}}},[i("dicom-canvas",{ref:"dicomCanvas3",staticStyle:{width:"100%",height:"100%"}})],1),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:e.layoutRow>=2&&e.layoutCol>=2,expression:"layoutRow>=2&&layoutCol>=2"}],staticClass:"dicom-item",class:{activeItem:"dicomCanvas4"==e.activeItem},attrs:{"data-index":"4"},on:{click:function(t){return e.activateDicomCanvas(4)},dblclick:function(t){return e.setFullScreen(t)}}},[i("dicom-canvas",{ref:"dicomCanvas4",staticStyle:{width:"100%",height:"100%"}})],1),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:e.layoutRow>=2&&e.layoutCol>=3,expression:"layoutRow>=2&&layoutCol>=3"}],staticClass:"dicom-item",class:{activeItem:"dicomCanvas5"==e.activeItem},attrs:{"data-index":"5"},on:{click:function(t){return e.activateDicomCanvas(5)},dblclick:function(t){return e.setFullScreen(t)}}},[i("dicom-canvas",{ref:"dicomCanvas5",staticStyle:{width:"100%",height:"100%"}})],1)]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:3==e.layoutRow,expression:"layoutRow==3"}],staticClass:"dicom-row",style:{height:e.rowHeight}},[i("div",{directives:[{name:"show",rawName:"v-show",value:3==e.layoutRow&&e.layoutCol>=1,expression:"layoutRow==3&&layoutCol>=1"}],staticClass:"dicom-item",class:{activeItem:"dicomCanvas6"==e.activeItem},attrs:{"data-index":"6"},on:{click:function(t){return e.activateDicomCanvas(6)},dblclick:function(t){return e.setFullScreen(t)}}},[i("dicom-canvas",{ref:"dicomCanvas6",staticStyle:{width:"100%",height:"100%"}})],1),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:3==e.layoutRow&&e.layoutCol>=2,expression:"layoutRow==3&&layoutCol>=2"}],staticClass:"dicom-item",class:{activeItem:"dicomCanvas7"==e.activeItem},attrs:{"data-index":"7"},on:{click:function(t){return e.activateDicomCanvas(7)},dblclick:function(t){return e.setFullScreen(t)}}},[i("dicom-canvas",{ref:"dicomCanvas7",staticStyle:{width:"100%",height:"100%"}})],1),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:3==e.layoutRow&&e.layoutCol>=3,expression:"layoutRow==3&&layoutCol>=3"}],staticClass:"dicom-item",class:{activeItem:"dicomCanvas8"==e.activeItem},attrs:{"data-index":"8"},on:{click:function(t){return e.activateDicomCanvas(8)},dblclick:function(t){return e.setFullScreen(t)}}},[i("dicom-canvas",{ref:"dicomCanvas8",staticStyle:{width:"100%",height:"100%"}})],1)])]),e._v(" "),i("div",{ref:"dicomTools",staticClass:"dicom-tools"},[i("div",{staticClass:"measureTool-wrapper"},[i("div",{staticClass:"sideTool-title"},[e._v("布局")]),e._v(" "),i("div",{staticClass:"sideTool-wrapper"},[i("label",[e._v("布局:")]),e._v(" "),i("select",{staticClass:"sidetool-select",staticStyle:{width:"90px"},on:{change:function(t){return e.changeLayout(t)}}},[i("option",{attrs:{value:"1x1",selected:""}},[e._v("1x1")]),e._v(" "),i("option",{attrs:{value:"1x2"}},[e._v("1x2")]),e._v(" "),i("option",{attrs:{value:"2x1"}},[e._v("2x1")]),e._v(" "),i("option",{attrs:{value:"2x2"}},[e._v("2x2")]),e._v(" "),i("option",{attrs:{value:"1x3"}},[e._v("1x3")]),e._v(" "),i("option",{attrs:{value:"3x1"}},[e._v("3x1")]),e._v(" "),i("option",{attrs:{value:"2x3"}},[e._v("2x3")]),e._v(" "),i("option",{attrs:{value:"3x2"}},[e._v("3x2")]),e._v(" "),i("option",{attrs:{value:"3x3"}},[e._v("3x3")])])])]),e._v(" "),i("div",{staticClass:"measureTool-wrapper"},[i("div",{staticClass:"sideTool-title"},[e._v("图像变换")]),e._v(" "),i("div",{staticClass:"sideTool-wrapper"},[i("button",{staticClass:"btn-link",attrs:{title:"调窗","data-tool":"Wwwc"},on:{click:function(t){return e.setToolActive(t,"Wwwc")}}},[i("svg-icon",{staticStyle:{"font-size":"20px"},attrs:{"icon-class":"reverse"}})],1),e._v(" "),i("button",{staticClass:"btn-link",attrs:{title:"反色"},on:{click:e.toggleInvert}},[i("svg-icon",{staticStyle:{"font-size":"20px"},attrs:{"icon-class":"reversecolor"}})],1),e._v(" "),i("button",{staticClass:"btn-link",attrs:{title:"缩放","data-tool":"Zoom"},on:{click:function(t){return e.setToolActive(t,"Zoom")}}},[i("svg-icon",{staticStyle:{"font-size":"20px"},attrs:{"icon-class":"magnifier"}})],1),e._v(" "),i("button",{staticClass:"btn-link",attrs:{title:"透镜","data-tool":"Magnify"},on:{click:function(t){return e.setToolActive(t,"Magnify")}}},[i("svg-icon",{staticStyle:{"font-size":"20px"},attrs:{"icon-class":"zoom"}})],1),e._v(" "),i("button",{staticClass:"btn-link",attrs:{title:"适应窗口","data-tool":"fitToWindow"},on:{click:function(t){return e.fitToType(t,"fitToWindow")}}},[i("svg-icon",{staticStyle:{"font-size":"20px"},attrs:{"icon-class":"fitToWindow"}})],1),e._v(" "),i("button",{staticClass:"btn-link",attrs:{title:"适应图像","data-tool":"fitToImage"},on:{click:function(t){return e.fitToType(t,"fitToImage")}}},[i("svg-icon",{staticStyle:{"font-size":"20px"},attrs:{"icon-class":"fitToImage"}})],1),e._v(" "),i("button",{staticClass:"btn-link dropdown",attrs:{title:"旋转","data-tool":"Rotate"}},[i("svg-icon",{staticStyle:{"font-size":"20px"},attrs:{"icon-class":"rotate"}}),e._v(" "),i("div",{staticClass:"dropdown-content"},[i("p",{on:{click:function(t){return t.stopPropagation(),e.setDicomCanvasRotate(1)}}},[e._v("默认值")]),e._v(" "),i("p",{on:{click:function(t){return t.stopPropagation(),e.setDicomCanvasRotate(2)}}},[e._v("水平翻转")]),e._v(" "),i("p",{on:{click:function(t){return t.stopPropagation(),e.setDicomCanvasRotate(3)}}},[e._v("垂直翻转")]),e._v(" "),i("p",{on:{click:function(t){return t.stopPropagation(),e.setDicomCanvasRotate(4)}}},[e._v("左转90度")]),e._v(" "),i("p",{on:{click:function(t){return t.stopPropagation(),e.setDicomCanvasRotate(5)}}},[e._v("右转90度")])])],1),e._v(" "),i("button",{staticClass:"btn-link",attrs:{title:"移动","data-tool":"Pan"},on:{click:function(t){return e.setToolActive(t,"Pan")}}},[i("svg-icon",{staticStyle:{"font-size":"20px"},attrs:{"icon-class":"move"}})],1)])]),e._v(" "),i("div",{staticClass:"measureTool-wrapper"},[i("div",{staticClass:"sideTool-title"},[e._v("测量标注")]),e._v(" "),i("div",{staticClass:"sideTool-wrapper"},[i("button",{staticClass:"btn-link",attrs:{title:"探针","data-tool":"Probe"},on:{click:function(t){return e.setToolActive(t,"Probe")}}},[i("svg-icon",{staticStyle:{"font-size":"20px"},attrs:{"icon-class":"pixel"}})],1),e._v(" "),i("button",{staticClass:"btn-link",attrs:{title:"长度测量","data-tool":"Length"},on:{click:function(t){return e.setToolActive(t,"Length")}}},[i("svg-icon",{staticStyle:{"font-size":"20px"},attrs:{"icon-class":"length"}})],1),e._v(" "),i("button",{staticClass:"btn-link",attrs:{title:"角度测量","data-tool":"Angle"},on:{click:function(t){return e.setToolActive(t,"Angle")}}},[i("svg-icon",{staticStyle:{"font-size":"20px"},attrs:{"icon-class":"angle"}})],1),e._v(" "),i("button",{staticClass:"btn-link",attrs:{title:"Cobb测量","data-tool":"CobbAngle"},on:{click:function(t){return e.setToolActive(t,"CobbAngle")}}},[i("svg-icon",{staticStyle:{"font-size":"20px"},attrs:{"icon-class":"cobb"}})],1),e._v(" "),i("button",{staticClass:"btn-link",attrs:{title:"椭圆测量","data-tool":"EllipticalRoi"},on:{click:function(t){return e.setToolActive(t,"EllipticalRoi")}}},[i("svg-icon",{staticStyle:{"font-size":"20px"},attrs:{"icon-class":"oval"}})],1),e._v(" "),i("button",{staticClass:"btn-link",attrs:{title:"矩形测量","data-tool":"RectangleRoi"},on:{click:function(t){return e.setToolActive(t,"RectangleRoi")}}},[i("svg-icon",{staticStyle:{"font-size":"20px"},attrs:{"icon-class":"rectangle"}})],1),e._v(" "),i("button",{staticClass:"btn-link",attrs:{title:"多边形标记","data-tool":"FreehandRoi"},on:{click:function(t){return e.setToolActive(t,"FreehandRoi")}}},[i("svg-icon",{staticStyle:{"font-size":"20px"},attrs:{"icon-class":"polygon"}})],1),e._v(" "),i("button",{staticClass:"btn-link",attrs:{title:"十字线","data-tool":"Bidirectional"},on:{click:function(t){return e.setToolActive(t,"Bidirectional")}}},[i("svg-icon",{staticStyle:{"font-size":"20px"},attrs:{"icon-class":"bidirection"}})],1),e._v(" "),i("button",{staticClass:"btn-link",attrs:{title:"文字标注","data-tool":"ArrowAnnotate"},on:{click:function(t){return e.setToolActive(t,"ArrowAnnotate")}}},[i("svg-icon",{staticStyle:{"font-size":"20px"},attrs:{"icon-class":"label"}})],1),e._v(" "),i("button",{staticClass:"btn-link",attrs:{title:"清除测量和标记","data-tool":"Eraser"},on:{click:function(t){return e.setToolActive(t,"Eraser")}}},[i("svg-icon",{staticStyle:{"font-size":"20px"},attrs:{"icon-class":"clear"}})],1),e._v(" "),i("button",{staticClass:"btn-link",attrs:{title:"截屏"},on:{click:function(t){return e.currentDicomCanvas.saveImage()}}},[i("svg-icon",{staticStyle:{"font-size":"20px"},attrs:{"icon-class":"image"}})],1)])]),e._v(" "),i("div",{staticClass:"measureTool-wrapper"},[i("div",{staticClass:"sideTool-title"},[e._v("播放")]),e._v(" "),i("div",{staticClass:"sideTool-wrapper"},[i("button",{staticClass:"btn-link",attrs:{title:"第一帧"},on:{click:function(t){return e.currentDicomCanvas.scrollPage(-9999)}}},[i("svg-icon",{staticStyle:{"font-size":"20px"},attrs:{"icon-class":"firstframe"}})],1),e._v(" "),i("button",{staticClass:"btn-link",attrs:{title:"显示上一张影像"},on:{click:function(t){return e.currentDicomCanvas.scrollPage(-1)}}},[i("svg-icon",{staticStyle:{"font-size":"20px"},attrs:{"icon-class":"previousframe"}})],1),e._v(" "),i("button",{staticClass:"btn-link",attrs:{title:"播放"},on:{click:function(t){return e.currentDicomCanvas.toggleClipPlay()}}},[i("svg-icon",{staticStyle:{"font-size":"20px"},attrs:{"icon-class":e.currentDicomCanvas.toolState.clipPlaying?"stop":"play"}})],1),e._v(" "),i("button",{staticClass:"btn-link",attrs:{title:"下一帧"},on:{click:function(t){return e.currentDicomCanvas.scrollPage(1)}}},[i("svg-icon",{staticStyle:{"font-size":"20px"},attrs:{"icon-class":"nextframe"}})],1),e._v(" "),i("button",{staticClass:"btn-link",attrs:{title:"最后一帧"},on:{click:function(t){return e.currentDicomCanvas.scrollPage(9999)}}},[i("svg-icon",{staticStyle:{"font-size":"20px"},attrs:{"icon-class":"lastframe"}})],1),e._v(" "),i("select",{staticClass:"sidetool-select",staticStyle:{width:"60px"},on:{change:function(t){return e.setDicomCanvasfps(t)}}},[i("option",{domProps:{value:10}},[e._v("默认值")]),e._v(" "),i("option",{domProps:{value:15}},[e._v("15")]),e._v(" "),i("option",{domProps:{value:20}},[e._v("20")]),e._v(" "),i("option",{domProps:{value:30}},[e._v("30")])])])]),e._v(" "),i("div",{staticClass:"measureTool-wrapper"},[i("div",{staticClass:"sideTool-title"},[e._v("颜色")]),e._v(" "),i("div",{staticClass:"sideTool-wrapper"},[i("label",[e._v("预设窗位值:")]),e._v(" "),i("select",{directives:[{name:"model",rawName:"v-model",value:e.wwwcList[e.currentDicomCanvasIndex],expression:"wwwcList[currentDicomCanvasIndex]"}],staticClass:"sidetool-select",staticStyle:{width:"100px"},on:{change:[function(t){var i=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.$set(e.wwwcList,e.currentDicomCanvasIndex,t.target.multiple?i:i[0])},function(t){return e.setDicomCanvasWwwc(t)}]}},[i("option",{domProps:{value:-1}},[e._v("默认值")]),e._v(" "),i("option",{domProps:{value:0}},[e._v("自定义")]),e._v(" "),i("option",{staticStyle:{"border-bottom":"1px solid #fff"},domProps:{value:1}},[e._v("区域窗宽")]),e._v(" "),i("option",{domProps:{value:2}},[e._v("\n CT Abdomen\n ")]),e._v(" "),i("option",{domProps:{value:3}},[e._v("\n CT Angio\n ")]),e._v(" "),i("option",{domProps:{value:4}},[e._v("\n CT Bone\n ")]),e._v(" "),i("option",{domProps:{value:5}},[e._v("\n CT Brain\n ")]),e._v(" "),i("option",{domProps:{value:6}},[e._v("\n CT Chest\n ")]),e._v(" "),i("option",{domProps:{value:7}},[e._v("\n CT Lungs\n ")])])]),e._v(" "),i("div",{staticClass:"sideTool-wrapper"},[i("label",[e._v("伪彩色:")]),e._v(" "),i("select",{directives:[{name:"model",rawName:"v-model",value:e.colorList[e.currentDicomCanvasIndex],expression:"colorList[currentDicomCanvasIndex]"}],staticClass:"sidetool-select",staticStyle:{width:"90px"},on:{change:[function(t){var i=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){var t="_value"in e?e._value:e.value;return t}));e.$set(e.colorList,e.currentDicomCanvasIndex,t.target.multiple?i:i[0])},function(t){return e.setColormap(t)}]}},[i("option",{attrs:{value:""}},[e._v("默认值")]),e._v(" "),e._l(e.colormapsList,(function(t,n){return i("option",{key:n,domProps:{value:t.id}},[e._v(e._s(t.name))])}))],2)])])]),e._v(" "),e.customWwc.visible?i("el-dialog",{attrs:{visible:e.customWwc.visible,"close-on-click-modal":!1,title:e.customWwc.title,width:"400px","custom-class":"base-dialog-wrapper","append-to-body":""},on:{"update:visible":function(t){return e.$set(e.customWwc,"visible",t)}}},[i("CustomWwwcForm",{on:{close:function(t){e.customWwc.visible=!1},setWwwc:e.setWwwc}})],1):e._e()],1)},a=[],r=(i("28a5"),i("5df3"),i("1c4c"),i("ac6a"),i("06cf")),o=i("137a"),s=i("81d9"),l=i("6e43"),c=i("e6ad"),u=i("c8b5"),d=i.n(u),f=(i("a481"),i("6762"),i("2fdb"),i("2b0e"));f["default"].directive("dialogDrag",{bind:function(e,t,i,n){var a=e.querySelector(".el-dialog__header"),r=e.querySelector(".el-dialog");a.style.cssText+=";cursor:move;",r.style.cssText+=";top:0px;";var o=function(){return window.document.currentStyle?function(e,t){return e.currentStyle[t]}:function(e,t){return getComputedStyle(e,!1)[t]}}();a.onmousedown=function(e){var t=e.clientX-a.offsetLeft,i=e.clientY-a.offsetTop,n=document.body.clientWidth,s=document.documentElement.clientHeight,l=r.offsetWidth,c=r.offsetHeight,u=r.offsetLeft,d=n-r.offsetLeft-l,f=r.offsetTop,h=s-r.offsetTop-c,p=o(r,"left"),m=o(r,"top");return p.includes("%")?(p=+document.body.clientWidth*(+p.replace(/\%/g,"")/100),m=+document.body.clientHeight*(+m.replace(/\%/g,"")/100)):(p=+p.replace(/\px/g,""),m=+m.replace(/\px/g,"")),document.onmousemove=function(e){var n=e.clientX-t,a=e.clientY-i;-n>u?n=-u:n>d&&(n=d),-a>f?a=-f:a>h&&(a=h),r.style.cssText+=";left:".concat(n+p,"px;top:").concat(a+m,"px;")},document.onmouseup=function(e){document.onmousemove=null,document.onmouseup=null},!1}}}),c["external"].cornerstone=s,c["external"].Hammer=d.a,c["external"].cornerstoneMath=l;var h={name:"DicomsViewer",components:{DicomCanvas:r["default"],CustomWwwcForm:o["default"]},data:function(){return{activeTool:"",activeItem:"dicomCanvas0",layoutRow:1,layoutCol:1,currentDicomCanvasIndex:0,currentDicomCanvas:{toolState:{clipPlaying:!1}},rowHeight:"100%",sync:{Wwwc:null},colormapsList:[],rotateList:[],colorList:[],wwwcList:[],layout:null,seriesList:[],customWwc:{visible:!1,title:null}}},mounted:function(){this.customWwc={visible:!1,title:this.$t("DicomViewer:data:customWwc")},this.rotateList[0]="1",this.colorList[0]="",this.wwwcList[0]="1",this.colormapsList=s["colors"].getColormapsList(),this.currentDicomCanvas=this.$refs["dicomCanvas0"]},methods:{loadImageStack:function(e){var t=this;this.$nextTick((function(){t.currentDicomCanvas.loadImageStack(e)}))},loadOtherImageStack:function(e){var t=this;this.$nextTick((function(){t.seriesList=e;var i=document.querySelectorAll(".dicom-item");Array.from(i).forEach((function(i,n){var a=i.getAttribute("data-index");n<e.length&&"none"!==i.style.display&&t.$refs["dicomCanvas".concat(a)].loadImageStack(e[n])}))}))},activateDicomCanvas:function(e){if(e!==this.currentDicomCanvasIndex){if(this.currentDicomCanvasIndex=e,this.currentDicomCanvas=this.$refs["dicomCanvas".concat(e)],this.currentDicomCanvas.tabIndex=0,this.activeItem="dicomCanvas".concat(e),this.sync.ReferenceLines&&this.sync["ReferenceLines"]){var t=this.sync["ReferenceLines"].getSourceElements();t.length>0&&(this.$refs["dicomCanvas".concat(e)].removeTarget(this.sync["ReferenceLines"]),this.sync["ReferenceLines"].addTarget(t[0]),this.sync["ReferenceLines"].removeSource(t[0]),this.$refs["dicomCanvas".concat(e)].addSourceElement(this.sync["ReferenceLines"]))}this.rotateList[this.currentDicomCanvasIndex]||(this.rotateList[this.currentDicomCanvasIndex]="1"),this.colorList[this.currentDicomCanvasIndex]||(this.colorList[this.currentDicomCanvasIndex]=""),this.wwwcList[this.currentDicomCanvasIndex]||(this.wwwcList[this.currentDicomCanvasIndex]="1")}},changeLayout:function(e){var t=e.target.value.split("x");this.layoutRow=parseInt(t[0]),this.layoutCol=parseInt(t[1]),this.rowHeight=100/this.layoutRow+"%",this.$forceUpdate(),this.$nextTick((function(){var e=document.querySelectorAll(".cornerstone-element");Array.from(e).forEach((function(e){s["enable"](e),s["resize"](e)}))}))},setFullScreen:function(e){if(1!==this.layoutRow||1!==this.layoutCol)if(this.layout){e.currentTarget.classList.remove("dicom-item-fullscreen");var t=this.layout.split("x");this.layoutRow=parseInt(t[0]),this.layoutCol=parseInt(t[1]),this.rowHeight=100/this.layoutRow+"%",this.$forceUpdate(),this.$nextTick((function(){var e=document.querySelectorAll(".cornerstone-element");Array.from(e).forEach((function(e){s["enable"](e),s["resize"](e)}))})),this.layout=null}else this.layout="".concat(this.layoutRow,"x").concat(this.layoutCol),e.currentTarget.classList.add("dicom-item-fullscreen"),s["enable"](e.currentTarget.children[0]),s["resize"](e.currentTarget.children[0])},setToolActive:function(e,t){var i=document.querySelectorAll(".dicom-item");if(e.currentTarget.classList.contains("activeTool")){e.currentTarget.classList.remove("activeTool");var n=this;Array.from(i).forEach((function(e,i){"none"!==e.style.display&&n.$refs["dicomCanvas".concat(i)].setToolPassive(t)}))}else{var a=document.querySelectorAll("[data-tool]");Array.from(a).forEach((function(e){e.classList.remove("activeTool")})),e.currentTarget.classList.add("activeTool");var r=this;Array.from(i).forEach((function(e,i){"none"!==e.style.display&&r.$refs["dicomCanvas".concat(i)].setToolActive(t)}))}},setDicomCanvasWwwc:function(e){this.wwwcList[this.currentDicomCanvasIndex]=e.target.value;var t=parseInt(e.target.value);-1===t?this.currentDicomCanvas.resetWwwc():0===t?this.customWwc.visible=!0:1===t?this.currentDicomCanvas.setToolActive("WwwcRegion"):2===t?this.currentDicomCanvas.setWwwc(400,60):3===t?this.currentDicomCanvas.setWwwc(600,300):4===t?this.currentDicomCanvas.setWwwc(1500,300):5===t?this.currentDicomCanvas.setWwwc(80,40):6===t?this.currentDicomCanvas.setWwwc(400,40):7===t&&this.currentDicomCanvas.setWwwc(1500,-400)},setWwwc:function(e){this.currentDicomCanvas.setWwwc(e.ww,e.wc),this.customWwc.visible=!1},toggleInvert:function(){this.currentDicomCanvas.toggleInvert()},setDicomCanvasRotate:function(e){var t=parseInt(e);1===t?this.currentDicomCanvas.resetRotate():2===t?this.currentDicomCanvas.setRotate(!0,!1,0,t):3===t?this.currentDicomCanvas.setRotate(!1,!0,0,t):4===t?this.currentDicomCanvas.setRotate(!1,!1,-90,t):5===t&&this.currentDicomCanvas.setRotate(!1,!1,90,t)},setColormap:function(e){this.colorList[this.currentDicomCanvasIndex]=e.target.value,this.currentDicomCanvas.setColormap(e.target.value)},setDicomCanvasfps:function(e){this.currentDicomCanvas.setFps(e.target.value)},fitToType:function(e,t){var i=document.querySelectorAll("[data-tool]");Array.from(i).forEach((function(e){e.classList.remove("activeTool")})),e.currentTarget.classList.add("activeTool"),"fitToWindow"===t?this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)].fitToWindow():this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)].fitToImage()},setAnnotationSync:function(e){if(this.layoutRow*this.layoutCol!==1){this.resetSync("annotationSync");var t=!0,i=e.currentTarget;i.classList.contains("activeTool")?(i.classList.remove("activeTool"),t=!1):i.classList.add("activeTool"),this.sync.annotationSync||(this.sync.annotationSync=new c["Synchronizer"]("cornerstoneimagerendered",c["updateImageSynchronizer"]));var n=this,a=document.querySelectorAll(".dicom-item");Array.from(a).forEach((function(e,i){"none"!==e.style.display&&(t?(i!==n.currentDicomCanvasIndex?n.$refs["dicomCanvas".concat(i)].addTargetElement(n.sync["annotationSync"]):n.$refs["dicomCanvas".concat(i)].addSourceElement(n.sync["annotationSync"]),n.$refs["dicomCanvas".concat(i)].activeAnnotationSync(n.sync.annotationSync)):n.$refs["dicomCanvas".concat(i)].disabledAnnotationSync(n.sync.annotationSync))})),t||(n.sync.annotationSync=null)}},resetSync:function(e){for(var t in this.sync)t!==e&&this.sync[e]&&(this.sync[e]=null)}}},p=h,m=(i("a582"),i("2877")),g=Object(m["a"])(p,n,a,!1,null,null,null);t["default"]=g.exports},cc92:function(e,t,i){"use strict";i("e875")},cccd:function(e,t,i){var n=i("e0d3"),a=n.makeInner;function r(){var e=a();return function(t){var i=e(t),n=t.pipelineContext,a=i.large,r=i.progressiveRender,o=i.large=n&&n.large,s=i.progressiveRender=n&&n.progressiveRender;return!!(a^o||r^s)&&"reset"}}e.exports=r},cd12:function(e,t,i){i("01ed"),i("4a9d"),i("cb8f")},cd33:function(e,t,i){var n=i("6d8b"),a=i("4319"),r=n.each,o=n.curry;function s(e,t){var i={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return l(i,e,t),i.seriesInvolved&&u(i,e),i}function l(e,t,i){var n=t.getComponent("tooltip"),a=t.getComponent("axisPointer"),s=a.get("link",!0)||[],l=[];r(i.getCoordinateSystems(),(function(i){if(i.axisPointerEnabled){var u=v(i.model),f=e.coordSysAxesInfo[u]={};e.coordSysMap[u]=i;var h=i.model,p=h.getModel("tooltip",n);if(r(i.getAxes(),o(w,!1,null)),i.getTooltipAxes&&n&&p.get("show")){var m="axis"===p.get("trigger"),b="cross"===p.get("axisPointer.type"),y=i.getTooltipAxes(p.get("axisPointer.axis"));(m||b)&&r(y.baseAxes,o(w,!b||"cross",m)),b&&r(y.otherAxes,o(w,"cross",!1))}}function w(n,r,o){var u=o.model.getModel("axisPointer",a),h=u.get("show");if(h&&("auto"!==h||n||g(u))){null==r&&(r=u.get("triggerTooltip")),u=n?c(o,p,a,t,n,r):u;var m=u.get("snap"),b=v(o.model),y=r||m||"category"===o.type,w=e.axesInfo[b]={key:b,axis:o,coordSys:i,axisPointerModel:u,triggerTooltip:r,involveSeries:y,snap:m,useHandle:g(u),seriesModels:[]};f[b]=w,e.seriesInvolved|=y;var _=d(s,o);if(null!=_){var I=l[_]||(l[_]={axesInfo:{}});I.axesInfo[b]=w,I.mapper=s[_].mapper,w.linkGroup=I}}}}))}function c(e,t,i,o,s,l){var c=t.getModel("axisPointer"),u={};r(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],(function(e){u[e]=n.clone(c.get(e))})),u.snap="category"!==e.type&&!!l,"cross"===c.get("type")&&(u.type="line");var d=u.label||(u.label={});if(null==d.show&&(d.show=!1),"cross"===s){var f=c.get("label.show");if(d.show=null==f||f,!l){var h=u.lineStyle=c.get("crossStyle");h&&n.defaults(d,h.textStyle)}}return e.model.getModel("axisPointer",new a(u,i,o))}function u(e,t){t.eachSeries((function(t){var i=t.coordinateSystem,n=t.get("tooltip.trigger",!0),a=t.get("tooltip.show",!0);i&&"none"!==n&&!1!==n&&"item"!==n&&!1!==a&&!1!==t.get("axisPointer.show",!0)&&r(e.coordSysAxesInfo[v(i.model)],(function(e){var n=e.axis;i.getAxis(n.dim)===n&&(e.seriesModels.push(t),null==e.seriesDataCount&&(e.seriesDataCount=0),e.seriesDataCount+=t.getData().count())}))}),this)}function d(e,t){for(var i=t.model,n=t.dim,a=0;a<e.length;a++){var r=e[a]||{};if(f(r[n+"AxisId"],i.id)||f(r[n+"AxisIndex"],i.componentIndex)||f(r[n+"AxisName"],i.name))return a}}function f(e,t){return"all"===e||n.isArray(e)&&n.indexOf(e,t)>=0||e===t}function h(e){var t=p(e);if(t){var i=t.axisPointerModel,n=t.axis.scale,a=i.option,r=i.get("status"),o=i.get("value");null!=o&&(o=n.parse(o));var s=g(i);null==r&&(a.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==o||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),a.value=o,s&&(a.status=t.axis.scale.isBlank()?"hide":"show")}}function p(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[v(e)]}function m(e){var t=p(e);return t&&t.axisPointerModel}function g(e){return!!e.get("handle.show")}function v(e){return e.type+"||"+e.id}t.collect=s,t.fixValue=h,t.getAxisInfo=p,t.getAxisPointerModel=m,t.makeKey=v},cd6b:function(e,t,i){},cd76:function(e,t,i){},cd83:function(e,t,i){"use strict";i.r(t);var n=i("4bf81"),a=i.n(n);for(var r in n)"default"!==r&&function(e){i.d(t,e,(function(){return n[e]}))}(r);t["default"]=a.a},cd84:function(e,t,i){var n=i("6d8b"),a=256;function r(){var e=n.createCanvas();this.canvas=e,this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={}}r.prototype={update:function(e,t,i,n,r,o){var s=this._getBrush(),l=this._getGradient(e,r,"inRange"),c=this._getGradient(e,r,"outOfRange"),u=this.pointSize+this.blurSize,d=this.canvas,f=d.getContext("2d"),h=e.length;d.width=t,d.height=i;for(var p=0;p<h;++p){var m=e[p],g=m[0],v=m[1],b=m[2],y=n(b);f.globalAlpha=y,f.drawImage(s,g-u,v-u)}if(!d.width||!d.height)return d;var w=f.getImageData(0,0,d.width,d.height),_=w.data,I=0,x=_.length,S=this.minOpacity,T=this.maxOpacity,C=T-S;while(I<x){y=_[I+3]/256;var k=4*Math.floor(y*(a-1));if(y>0){var R=o(y)?l:c;y>0&&(y=y*C+S),_[I++]=R[k],_[I++]=R[k+1],_[I++]=R[k+2],_[I++]=R[k+3]*y*256}else I+=4}return f.putImageData(w,0,0),d},_getBrush:function(){var e=this._brushCanvas||(this._brushCanvas=n.createCanvas()),t=this.pointSize+this.blurSize,i=2*t;e.width=i,e.height=i;var a=e.getContext("2d");return a.clearRect(0,0,i,i),a.shadowOffsetX=i,a.shadowBlur=this.blurSize,a.shadowColor="#000",a.beginPath(),a.arc(-t,t,this.pointSize,0,2*Math.PI,!0),a.closePath(),a.fill(),e},_getGradient:function(e,t,i){for(var n=this._gradientPixels,a=n[i]||(n[i]=new Uint8ClampedArray(1024)),r=[0,0,0,0],o=0,s=0;s<256;s++)t[i](s/255,!0,r),a[o++]=r[0],a[o++]=r[1],a[o++]=r[2],a[o++]=r[3];return a}};var o=r;e.exports=o},cd8e:function(e,t,i){"use strict";i("221a")},cd95:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{ref:"researchBSForm",staticStyle:{width:"80%"},attrs:{size:"small",model:e.form,rules:e.rules}},[i("el-form-item",{attrs:{label:e.$t("trials:researchForm:form:trialId")}},[i("el-input",{attrs:{disabled:""},model:{value:e.form.TrialCode,callback:function(t){e.$set(e.form,"TrialCode",t)},expression:"form.TrialCode"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:researchForm:form:researchNo")}},[i("el-input",{attrs:{disabled:""},model:{value:e.form.ResearchProgramNo,callback:function(t){e.$set(e.form,"ResearchProgramNo",t)},expression:"form.ResearchProgramNo"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:researchForm:form:researchName")}},[i("el-input",{attrs:{disabled:""},model:{value:e.form.ExperimentName,callback:function(t){e.$set(e.form,"ExperimentName",t)},expression:"form.ExperimentName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:researchForm:form:decleareType")}},[i("el-input",{attrs:{disabled:""},model:{value:e.form.IndicationType,callback:function(t){e.$set(e.form,"IndicationType",t)},expression:"form.IndicationType"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:researchForm:form:siteName"),prop:"SiteId"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",disabled:!(0===e.state&&0===e.userTypeEnumInt)},on:{change:e.handleSiteChange},model:{value:e.form.SiteId,callback:function(t){e.$set(e.form,"SiteId",t)},expression:"form.SiteId"}},e._l(e.siteOptions,(function(e,t){return i("el-option",{key:t,attrs:{label:e.TrialSiteAliasName,value:e.SiteId}})})),1)],1),e._v(" "),e.form.SiteId?i("el-form-item",{attrs:{label:e.$t("trials:researchForm:form:siteId")}},[i("el-input",{attrs:{disabled:""},model:{value:e.form.TrialSiteCode,callback:function(t){e.$set(e.form,"TrialSiteCode",t)},expression:"form.TrialSiteCode"}})],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:researchForm:form:contactor"),prop:"UserName"}},[i("el-input",{attrs:{disabled:!(0===e.state&&0===e.userTypeEnumInt)},model:{value:e.form.UserName,callback:function(t){e.$set(e.form,"UserName",t)},expression:"form.UserName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:researchForm:form:contactorPhone"),prop:"Phone"}},[i("el-input",{attrs:{disabled:!(0===e.state&&0===e.userTypeEnumInt)},model:{value:e.form.Phone,callback:function(t){e.$set(e.form,"Phone",t)},expression:"form.Phone"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:researchForm:form:contactorEmail")}},[i("el-input",{attrs:{disabled:""},model:{value:e.form.Email,callback:function(t){e.$set(e.form,"Email",t)},expression:"form.Email"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:researchForm:form:engravingCycle")}},[i("el-input-number",{attrs:{disabled:!(0===e.state&&0===e.userTypeEnumInt),"controls-position":"right",min:0},model:{value:e.form.AverageEngravingCycle,callback:function(t){e.$set(e.form,"AverageEngravingCycle",t)},expression:"form.AverageEngravingCycle"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:researchForm:form:isQualified")}},[i("el-radio-group",{attrs:{disabled:!(0===e.state&&0===e.userTypeEnumInt)},model:{value:e.form.IsConfirmImagingTechnologist,callback:function(t){e.$set(e.form,"IsConfirmImagingTechnologist",t)},expression:"form.IsConfirmImagingTechnologist"}},[i("el-radio",{attrs:{label:!0}},[e._v("是")]),e._v(" "),i("el-radio",{attrs:{label:!1}},[e._v("否")])],1)],1),e._v(" "),!1===e.form.IsConfirmImagingTechnologist?i("el-form-item",{attrs:{label:e.$t("trials:researchForm:form:notQualifiedReason")}},[i("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},disabled:!(0===e.state&&0===e.userTypeEnumInt)},model:{value:e.form.NotConfirmReson,callback:function(t){e.$set(e.form,"NotConfirmReson",t)},expression:"form.NotConfirmReson"}})],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:researchForm:form:staffType")}},[i("el-radio-group",{attrs:{disabled:!(0===e.state&&0===e.userTypeEnumInt)},model:{value:e.form.EfficacyEvaluatorType,callback:function(t){e.$set(e.form,"EfficacyEvaluatorType",t)},expression:"form.EfficacyEvaluatorType"}},[i("el-radio",{attrs:{label:0}},[e._v("影像科医生")]),e._v(" "),i("el-radio",{attrs:{label:1}},[e._v("临床医生")])],1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:researchForm:form:isFollowStudyParam")}},[i("el-radio-group",{attrs:{disabled:!(0===e.state&&0===e.userTypeEnumInt)},model:{value:e.form.IsFollowStudyParameters,callback:function(t){e.$set(e.form,"IsFollowStudyParameters",t)},expression:"form.IsFollowStudyParameters"}},[i("el-radio",{attrs:{label:!0}},[e._v("是")]),e._v(" "),i("el-radio",{attrs:{label:!1}},[e._v("否")])],1)],1),e._v(" "),e.form.IsFollowStudyParameters?e._e():i("el-form-item",{attrs:{label:e.$t("trials:researchForm:form:notFollowStudyParam")}},[i("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},disabled:!(0===e.state&&0===e.userTypeEnumInt)},model:{value:e.form.NotFollowReson,callback:function(t){e.$set(e.form,"NotFollowReson",t)},expression:"form.NotFollowReson"}})],1),e._v(" "),i("el-form-item",[0===e.state&&0===e.userTypeEnumInt?i("el-button",{attrs:{type:"primary",loading:e.btnLoading,size:"small"},on:{click:function(t){return e.handleSave(!1)}}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")]):e._e()],1)],1)},a=[],r=(i("7514"),i("96cf"),i("3b8d")),o=(i("c5f6"),i("7cdf"),i("3e42")),s=i("896b"),l={name:"QuestionForm",data:function(){var e=this,t=function(t,i,n){var a=/^1[3|4|5|7|8][0-9]{9}$/;if(!i)return n(new Error(e.$t("trials:researchForm:formRule:specify")));setTimeout((function(){Number.isInteger(+i)&&a.test(i)?n():n(new Error(e.$t("trials:researchForm:formRule:phone")))}),100)};return{form:{Id:"",Sponsor:"",ResearchProgramNo:"",ExperimentName:"",TrialCode:"",IndicationType:"",SiteId:"",TrialSiteCode:"",UserName:"",Phone:"",Email:"",AverageEngravingCycle:"",IsConfirmImagingTechnologist:"",NotConfirmReson:"",EfficacyEvaluatorType:"",IsFollowStudyParameters:"",NotFollowReson:""},rules:{SiteId:[{required:!0,message:this.$t("trials:researchForm:formRule:specify"),trigger:"blur"}],UserName:[{required:!0,message:this.$t("trials:researchForm:formRule:specify"),trigger:"blur"},{min:0,max:50,message:this.$t("trials:researchForm:formRule:maxLength"),trigger:"blur"}],Phone:[{required:!0,validator:t,trigger:"blur"}]},siteOptions:[],btnLoading:!1,state:null,userTypeEnumInt:1*zzSessionStorage.getItem("userTypeEnumInt")}},methods:{handleSave:function(e){var t=this;return new Promise((function(i,n){t.$refs["researchBSForm"].validate((function(a){if(a){t.btnLoading=!0;var r={id:t.form.Id,trialId:t.$route.query.trialId,siteId:t.form.SiteId,userName:t.form.UserName,phone:t.form.Phone,email:t.form.Email,averageEngravingCycle:t.form.AverageEngravingCycle,isConfirmImagingTechnologist:t.form.IsConfirmImagingTechnologist,notConfirmReson:t.form.NotConfirmReson,efficacyEvaluatorType:t.form.EfficacyEvaluatorType,isFollowStudyParameters:t.form.IsFollowStudyParameters,notFollowReson:t.form.NotFollowReson};Object(s["b"])(r).then((function(n){t.btnLoading=!1,n.IsSuccess&&!e&&t.$message.success(t.$t("common:message:savedSuccessfully")),i(!0)})).catch((function(){t.btnLoading=!1,n(!1)}))}else n(!1)}))}))},initForm:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t,i){var n,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(o["Zd"])(this.$route.query.trialId);case 2:n=e.sent,a=n.Result,this.siteOptions=a,this.form.Id=i.Id,this.form.Sponsor=t.Sponsor,this.form.ResearchProgramNo=t.ResearchProgramNo,this.form.ExperimentName=t.ExperimentName,this.form.TrialCode=t.TrialCode,this.form.TrialSiteCode=i.TrialSiteCode,this.form.TrialSiteAliasName=i.TrialSiteAliasName,this.form.IndicationType=t.IndicationType,this.form.SiteId=i.SiteId,this.form.UserName=i.UserName,this.form.Phone=i.Phone,this.form.Email=i.Email,this.form.AverageEngravingCycle=i.AverageEngravingCycle,this.form.IsConfirmImagingTechnologist=i.IsConfirmImagingTechnologist,this.form.NotConfirmReson=i.NotConfirmReson,this.form.EfficacyEvaluatorType=i.EfficacyEvaluatorType,this.form.IsFollowStudyParameters=i.IsFollowStudyParameters,this.form.NotFollowReson=i.NotFollowReson,this.state=i.State;case 24:case"end":return e.stop()}}),e,this)})));function t(t,i){return e.apply(this,arguments)}return t}(),handleSiteChange:function(e){var t=this.siteOptions.find((function(t){return t.SiteId===e}));t&&(this.form.TrialSiteCode=t.TrialSiteCode)}}},c=l,u=i("2877"),d=Object(u["a"])(c,n,a,!1,null,null,null);t["default"]=d.exports},cd96:function(e,t,i){"use strict";i("29d7")},cd9d:function(e,t){function i(e){return e}e.exports=i},cdaa:function(e,t,i){var n=i("607d"),a=n.addEventListener,r=n.removeEventListener,o=n.normalizeEvent,s=n.getNativeEvent,l=i("6d8b"),c=i("1fab"),u=i("22d1"),d=300,f=u.domSupported,h=function(){var e=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],i={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=l.map(e,(function(e){var t=e.replace("mouse","pointer");return i.hasOwnProperty(t)?t:e}));return{mouse:e,touch:t,pointer:n}}(),p={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]};function m(e){return"mousewheel"===e&&u.browser.firefox?"DOMMouseScroll":e}function g(e){var t=e.pointerType;return"pen"===t||"touch"===t}function v(e){e.touching=!0,null!=e.touchTimer&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout((function(){e.touching=!1,e.touchTimer=null}),700)}function b(e){e&&(e.zrByTouch=!0)}function y(e,t){return o(e.dom,new _(e,t),!0)}function w(e,t){var i=t,n=!1;while(i&&9!==i.nodeType&&!(n=i.domBelongToZr||i!==t&&i===e.painterRoot))i=i.parentNode;return n}function _(e,t){this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}var I=_.prototype;I.stopPropagation=I.stopImmediatePropagation=I.preventDefault=l.noop;var x={mousedown:function(e){e=o(this.dom,e),this._mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=o(this.dom,e);var t=this._mayPointerCapture;!t||e.zrX===t[0]&&e.zrY===t[1]||D(this,!0),this.trigger("mousemove",e)},mouseup:function(e){e=o(this.dom,e),D(this,!1),this.trigger("mouseup",e)},mouseout:function(e){e=o(this.dom,e),this._pointerCapturing&&(e.zrEventControl="no_globalout");var t=e.toElement||e.relatedTarget;e.zrIsToLocalDOM=w(this,t),this.trigger("mouseout",e)},touchstart:function(e){e=o(this.dom,e),b(e),this._lastTouchMoment=new Date,this.handler.processGesture(e,"start"),x.mousemove.call(this,e),x.mousedown.call(this,e)},touchmove:function(e){e=o(this.dom,e),b(e),this.handler.processGesture(e,"change"),x.mousemove.call(this,e)},touchend:function(e){e=o(this.dom,e),b(e),this.handler.processGesture(e,"end"),x.mouseup.call(this,e),+new Date-this._lastTouchMoment<d&&x.click.call(this,e)},pointerdown:function(e){x.mousedown.call(this,e)},pointermove:function(e){g(e)||x.mousemove.call(this,e)},pointerup:function(e){x.mouseup.call(this,e)},pointerout:function(e){g(e)||x.mouseout.call(this,e)}};l.each(["click","mousewheel","dblclick","contextmenu"],(function(e){x[e]=function(t){t=o(this.dom,t),this.trigger(e,t)}}));var S={pointermove:function(e){g(e)||S.mousemove.call(this,e)},pointerup:function(e){S.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this._pointerCapturing;D(this,!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function T(e,t){var i=t.domHandlers;u.pointerEventsSupported?l.each(h.pointer,(function(n){k(t,n,(function(t){i[n].call(e,t)}))})):(u.touchEventsSupported&&l.each(h.touch,(function(n){k(t,n,(function(a){i[n].call(e,a),v(t)}))})),l.each(h.mouse,(function(n){k(t,n,(function(a){a=s(a),t.touching||i[n].call(e,a)}))})))}function C(e,t){function i(i){function n(n){n=s(n),w(e,n.target)||(n=y(e,n),t.domHandlers[i].call(e,n))}k(t,i,n,{capture:!0})}u.pointerEventsSupported?l.each(p.pointer,i):u.touchEventsSupported||l.each(p.mouse,i)}function k(e,t,i,n){e.mounted[t]=i,e.listenerOpts[t]=n,a(e.domTarget,m(t),i,n)}function R(e){var t=e.mounted;for(var i in t)t.hasOwnProperty(i)&&r(e.domTarget,m(i),t[i],e.listenerOpts[i]);e.mounted={}}function D(e,t){if(e._mayPointerCapture=null,f&&e._pointerCapturing^t){e._pointerCapturing=t;var i=e._globalHandlerScope;t?C(e,i):R(i)}}function L(e,t){this.domTarget=e,this.domHandlers=t,this.mounted={},this.listenerOpts={},this.touchTimer=null,this.touching=!1}function O(e,t){c.call(this),this.dom=e,this.painterRoot=t,this._localHandlerScope=new L(e,x),f&&(this._globalHandlerScope=new L(document,S)),this._pointerCapturing=!1,this._mayPointerCapture=null,T(this,this._localHandlerScope)}var $=O.prototype;$.dispose=function(){R(this._localHandlerScope),f&&R(this._globalHandlerScope)},$.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},l.mixin(O,c);var N=O;e.exports=N},cdaa5:function(e,t,i){"use strict";i("5af2")},cdce:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{staticStyle:{"text-align":"right"}},[e.auditInfo.GlobalInfo.OtherGlobalTaskId?i("el-button",{attrs:{type:"text"},on:{click:function(t){return e.handleView(e.auditInfo.GlobalInfo.OtherGlobalTaskId)}}},[e._v(e._s(e.$t("trials:medicalFeedback:title:otherReader")))]):e._e(),e._v(" "),e.auditInfo.GlobalInfo.JudgeTaskName?i("el-button",{attrs:{type:"text"},on:{click:function(t){return e.handleView(e.auditInfo.GlobalInfo.JudgeTaskId)}}},[e._v(e._s(e.auditInfo.GlobalInfo.JudgeTaskName))]):e._e()],1),e._v(" "),10===e.rowData.CriterionType?i("el-table",{attrs:{data:e.taskList}},[i("el-table-column",{attrs:{prop:"BlindName",label:e.$t("trials:medicalFeedback:table:taskBlindName"),"show-overflow-tooltip":"",width:"150"}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("trials:medicalFeedback:table:visitPointCount"),align:"center",prop:"","show-overflow-tooltip":""}},[e._l(e.evaluationQsList,(function(t,n){return i("el-table-column",{key:n,attrs:{prop:"",label:t,"show-overflow-tooltip":"",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.BeforeQuestionList.length>n&&t.row.BeforeQuestionList[n].Answer?i("div",[t.row.BeforeQuestionList[n].DictionaryCode?i("span",[e._v("\n "+e._s(e.$fd(t.row.BeforeQuestionList[n].DictionaryCode,parseInt(t.row.BeforeQuestionList[n].Answer)))+"\n ")]):22===t.row.BeforeQuestionList[n].QuestionType?i("span",[e._v(e._s("-1"===t.row.BeforeQuestionList[n].Answer?e.$t("trials:medicalFeedback:table:unKnow"):t.row.BeforeQuestionList[n].Answer))]):i("span",[e._v(e._s(t.row.BeforeQuestionList[n].Answer))])]):e._e()]}}],null,!0)})}))],2),e._v(" "),e._l(e.agreeOrNotList,(function(t,n){return i("el-table-column",{key:n,attrs:{prop:"",label:e.$t("trials:medicalFeedback:table:agreeToVisitPointCount"),"show-overflow-tooltip":"",width:"170"},scopedSlots:e._u([{key:"default",fn:function(t){return[1===parseInt(t.row.AgreeOrNot[0].Answer)?i("el-tag",{attrs:{type:"primary"}},[e._v("\n "+e._s(e.$fd("ReadingYesOrNo",parseInt(t.row.AgreeOrNot[0].Answer)))+"\n ")]):0===parseInt(t.row.AgreeOrNot[0].Answer)?i("el-tag",{attrs:{type:"danger"}},[e._v(" "+e._s(e.$fd("ReadingYesOrNo",parseInt(t.row.AgreeOrNot[0].Answer))))]):i("span")]}}],null,!0)})})),e._v(" "),i("el-table-column",{attrs:{label:e.$t("trials:medicalFeedback:table:assessmentResults"),align:"center",prop:"","show-overflow-tooltip":""}},[e._l(e.adjustedQsList,(function(t,n){return i("el-table-column",{key:n,attrs:{prop:"",label:t,"show-overflow-tooltip":"",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.AfterQuestionList.length>n&&t.row.AfterQuestionList[n].Answer?i("div",[3===t.row.AfterQuestionList[n].GlobalAnswerType?i("span",[e._v("\n "+e._s(e.getAssessType(t.row.AfterQuestionList[n].Answer))+"\n ")]):t.row.AfterQuestionList[n].DictionaryCode?i("span",[e._v("\n "+e._s(e.$fd(t.row.AfterQuestionList[n].DictionaryCode,parseInt(t.row.AfterQuestionList[n].Answer)))+"\n ")]):i("span",[e._v(e._s(t.row.AfterQuestionList[n].Answer))])]):e._e()]}}],null,!0)})}))],2),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{circle:"",title:e.$t("trials:medicalFeedback:table:view"),icon:"el-icon-view"},on:{click:function(i){return e.handleView(t.row.VisitTaskId)}}})]}}],null,!1,1649918131)})],2):i("el-table",{attrs:{data:e.taskList}},[i("el-table-column",{attrs:{prop:"BlindName",label:e.$t("trials:globalReview:table:visitName"),"show-overflow-tooltip":"",width:"150"}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("trials:globalReview:table:evaluationRes"),align:"center",prop:""}},[e._l(e.evaluationQsList,(function(t,n){return i("el-table-column",{key:n,attrs:{prop:"",label:t,"show-overflow-tooltip":"",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.BeforeQuestionList.length>n&&t.row.BeforeQuestionList[n].Answer?i("div",[t.row.BeforeQuestionList[n].DictionaryCode?i("span",[e._v("\n "+e._s(e.$fd(t.row.BeforeQuestionList[n].DictionaryCode,parseInt(t.row.BeforeQuestionList[n].Answer)))+"\n ")]):i("span",[e._v(e._s(t.row.BeforeQuestionList[n].Answer))])]):e._e()]}}],null,!0)})}))],2),e._v(" "),e._l(e.agreeOrNotList,(function(t,n){return i("el-table-column",{key:n,attrs:{prop:"",label:e.$t("trials:globalReview:table:isAgreeEvaluationRes"),"show-overflow-tooltip":"",width:"170"},scopedSlots:e._u([{key:"default",fn:function(t){return[1===parseInt(t.row.AgreeOrNot[0].Answer)?i("el-tag",{attrs:{type:"primary"}},[e._v("\n "+e._s(e.$fd("ReadingYesOrNo",parseInt(t.row.AgreeOrNot[0].Answer)))+"\n ")]):0===parseInt(t.row.AgreeOrNot[0].Answer)?i("el-tag",{attrs:{type:"danger"}},[e._v(" "+e._s(e.$fd("ReadingYesOrNo",parseInt(t.row.AgreeOrNot[0].Answer))))]):i("span")]}}],null,!0)})})),e._v(" "),i("el-table-column",{attrs:{label:e.$t("trials:globalReview:table:adjustedRes"),align:"center",prop:""}},[e._l(e.adjustedQsList,(function(t,n){return i("el-table-column",{key:n,attrs:{prop:"",label:t,"show-overflow-tooltip":"",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.AfterQuestionList.length>n&&t.row.AfterQuestionList[n].Answer?i("div",[3===t.row.AfterQuestionList[n].GlobalAnswerType?i("span",[e._v("\n "+e._s(e.getAssessType(t.row.AfterQuestionList[n].Answer))+"\n ")]):t.row.AfterQuestionList[n].DictionaryCode?i("span",[e._v("\n "+e._s(e.$fd(t.row.AfterQuestionList[n].DictionaryCode,parseInt(t.row.AfterQuestionList[n].Answer)))+"\n ")]):i("span",[e._v(e._s(t.row.AfterQuestionList[n].Answer))])]):e._e()]}}],null,!0)})}))],2),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{circle:"",title:e.$t("trials:globalReview:table:view"),icon:"el-icon-view"},on:{click:function(i){return e.handleView(t.row.VisitTaskId)}}})]}}])})],2)],1)},a=[],r=(i("20d6"),i("28a5"),i("5f87")),o={name:"GReview",props:{auditInfo:{type:Object,default:function(){return{}}},rowData:{type:Object,default:function(){return{}}}},data:function(){return{taskList:[],evaluationQsList:[],agreeOrNotList:[],adjustedQsList:[],judgeQuestion:[]}},mounted:function(){this.initPage()},methods:{initPage:function(){var e=this,t=[],i=[],n=[];if(this.auditInfo.GlobalInfo.TaskList.length>0){var a=this.auditInfo.GlobalInfo.TaskList[0];a.BeforeQuestionList.map((function(e){t.push(e.QuestionName)})),a.AfterQuestionList.map((function(t){1===t.GlobalAnswerType&&10===e.CriterionType?i.push(e.$t("trials:globalReview:table:visitRemark")):1===t.GlobalAnswerType&&1===e.CriterionType?i.push(e.$t("trials:globalReview:table:globalRemark")):3===t.GlobalAnswerType&&1===e.CriterionType?i.push(e.$t("trials:globalReview:table:updateType")):i.push(t.QuestionName)})),a.AgreeOrNot.map((function(e){n.push(e.QuestionName)}))}this.globalUpdateType=this.auditInfo.GlobalInfo.GlobalUpdateType?this.auditInfo.GlobalInfo.GlobalUpdateType.split("|"):[],this.evaluationQsList=t,this.adjustedQsList=i,this.agreeOrNotList=n,this.taskList=this.auditInfo.GlobalInfo.TaskList,this.assessTypeList=this.auditInfo.GlobalInfo.AssessTypeList},getAssessType:function(e){var t=this.assessTypeList.findIndex((function(t){return t.Code===e}));return t>-1?this.assessTypeList[t].ValueCN:""},handleView:function(e){var t=Object(r["a"])(),i=this.$route.query.trialId,n=this.rowData.CriterionType,a=this.rowData.ReadingTool;a=isNaN(parseInt(a))?null:parseInt(a);var o=this.rowData.IsReadingTaskViewInOrder,s=this.rowData.TrialReadingCriterionId,l="";l=0===a?"/readingDicoms?TrialReadingCriterionId=".concat(s,"&trialId=").concat(i,"&subjectCode=").concat(this.rowData.SubjectCode,"&subjectId=").concat(this.rowData.SubjectId,"&visitTaskId=").concat(e,"&isReadingTaskViewInOrder=").concat(o,"&criterionType=").concat(n,"&readingTool=").concat(a,"&TokenKey=").concat(t,"&key=").concat((new Date).getTime()):"/noneDicomReading?TrialReadingCriterionId=".concat(s,"&trialId=").concat(i,"&subjectCode=").concat(this.rowData.SubjectCode,"&subjectId=").concat(this.rowData.SubjectId,"&visitTaskId=").concat(e,"&isReadingTaskViewInOrder=").concat(o,"&criterionType=").concat(n,"&readingTool=").concat(a,"&TokenKey=").concat(t,"&key=").concat((new Date).getTime());var c=this.$router.resolve({path:l});window.open(c.href,"_blank")}}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},cddb:function(e,t,i){},ce01:function(e,t,i){},ce0b:function(e,t,i){"use strict";i("6f97")},ce7a:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"trialForm",staticClass:"demo-ruleForm trial-Form",attrs:{"label-width":"190px",rules:e.trialFormRules,model:e.trialForm,"label-position":"right",inline:!0}},[i("el-row",[""!==e.trialForm.Id?i("el-form-item",{attrs:{label:e.$t("trials:trials-list:form:trialId")}},[i("el-input",{attrs:{disabled:""},model:{value:e.trialForm.TrialCode,callback:function(t){e.$set(e.trialForm,"TrialCode",t)},expression:"trialForm.TrialCode"}})],1):e._e()],1),e._v(" "),i("el-row",[i("el-form-item",{attrs:{label:e.$t("trials:trials-list:form:experimentName"),prop:"ExperimentName"}},[i("el-input",{attrs:{type:"textarea",autosize:{minRows:1,maxRows:4}},model:{value:e.trialForm.ExperimentName,callback:function(t){e.$set(e.trialForm,"ExperimentName",t)},expression:"trialForm.ExperimentName"}})],1)],1),e._v(" "),i("el-row",[i("el-form-item",{attrs:{label:e.$t("trials:trials-list:form:pi"),prop:"HeadPI"}},[i("el-input",{model:{value:e.trialForm.HeadPI,callback:function(t){e.$set(e.trialForm,"HeadPI",t)},expression:"trialForm.HeadPI"}})],1)],1),e._v(" "),i("el-row"),e._v(" "),i("el-row",[i("el-form-item",{attrs:{label:e.$t("trials:trials-list:form:indication"),prop:"Indication"}},["Other"!==e.trialForm.Indication&&"其它"!==e.trialForm.Indication?i("el-select",{model:{value:e.trialForm.Indication,callback:function(t){e.$set(e.trialForm,"Indication",t)},expression:"trialForm.Indication"}},e._l(e.$d.Indication,(function(t){return i("el-option",{directives:[{name:"show",rawName:"v-show",value:e.indicationGrouping===t.raw.ChildGroup,expression:"indicationGrouping === item.raw.ChildGroup"}],key:t.id,attrs:{label:t.label,value:t.label}})})),1):e._e(),e._v(" "),"Other"===e.trialForm.Indication||"其它"===e.trialForm.Indication?i("el-row",[i("el-col",{attrs:{span:12}},[i("el-select",{staticStyle:{width:"200px","margin-right":"10px"},model:{value:e.trialForm.Indication,callback:function(t){e.$set(e.trialForm,"Indication",t)},expression:"trialForm.Indication"}},e._l(e.$d.Indication,(function(t){return i("el-option",{directives:[{name:"show",rawName:"v-show",value:e.indicationGrouping===t.raw.ChildGroup,expression:"indicationGrouping === item.raw.ChildGroup"}],key:t.id,attrs:{label:t.label,value:t.label}})})),1)],1),e._v(" "),i("el-col",{attrs:{span:12}},[i("el-input",{model:{value:e.trialForm.IndicationOther,callback:function(t){e.$set(e.trialForm,"IndicationOther",t)},expression:"trialForm.IndicationOther"}})],1)],1):e._e()],1)],1),e._v(" "),i("el-row",[i("el-form-item",{attrs:{label:e.$t("trials:trials-list:form:modality")}},[i("el-select",{attrs:{multiple:""},model:{value:e.trialForm.ModalityIds,callback:function(t){e.$set(e.trialForm,"ModalityIds",t)},expression:"trialForm.ModalityIds"}},e._l(e.$d.Modality,(function(e){return i("el-option",{key:e.id,attrs:{label:e.label,value:e.id}})})),1)],1)],1),e._v(" "),i("el-row",{staticStyle:{"margin-left":"190px"}},[i("el-form-item",{attrs:{label:""}},[i("el-button",{attrs:{type:"primary",disabled:e.btnLoading},on:{click:e.handleCancel}},[e._v("\n "+e._s(e.$t("trials:trials-list:form:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",loading:e.btnLoading},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("trials:trials-list:form:save"))+"\n ")])],1)],1)],1)},a=[],r=(i("96cf"),i("3b8d")),o=i("75fc"),s=(i("28a5"),i("db72")),l=i("4360"),c=i("2f62"),u=i("3e42"),d=i("86a6"),f={name:"TrialForm",props:{trialId:{type:String,default:""}},data:function(){var e=this,t=function(t,i,n){if(("其它"===i||"Other"===i)&&!e.trialForm.IndicationOther)return n(new Error("请输入适应症"));n()};return{trialForm:{Id:"",TrialCode:"",TrialType:1,SponsorId:"",CROId:"",ReviewModeId:"",ReviewTypeIds:[],Expedited:0,ModalityIds:[],Note:"",ExpectedPatients:0,TimePointsPerPatient:0,ProjectCycle:"",TotalReviewers:0,DeclarationTypeId:"742e0000-3e2c-0016-b5ca-08da6222442f",IndicationTypeId:"437a81b3-c5ad-49fd-82a1-8f441c4ba8da",PhaseId:"b1509dde-234a-46ce-cf13-08d9c120c961",AttendedReviewerType:0,IsLocked:!1,ResearchProgramNo:"111",ExperimentName:"",MainResearchUnit:"",HeadPI:"",PlanSiteCount:null,PlanVisitCount:null,Indication:null,IndicationOther:null},indicationGrouping:null,trialFormRules:{Code:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"},{max:50,message:"".concat(this.$t("common:ruleMessage:maxLength")," 50")}],TrialType:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}],ResearchProgramNo:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"},{max:100,message:"".concat(this.$t("common:ruleMessage:maxLength")," 100")}],ExperimentName:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"},{max:100,message:"".concat(this.$t("common:ruleMessage:maxLength")," 100")}],Indication:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"},{max:50,message:"".concat(this.$t("common:ruleMessage:maxLength")," 50")},{validator:t,trigger:"blur"}],ProjectCycle:[{max:50,message:"".concat(this.$t("common:ruleMessage:maxLength")," 50")}],ReviewModeId:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}],Expedited:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}],Note:[{max:500,message:"".concat(this.$t("common:ruleMessage:maxLength")," 500")}],ModalityIds:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}],PhaseId:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}],IndicationTypeId:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}],DeclarationTypeId:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}],ReviewTypeIds:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}]},btnLoading:!1,isLock:!1,expeditedOption:this.$d.YesOrNoForInt,loading:!1,declarationNum:null,indicationNum:null,phaseNum:null,dictionaryList:{}}},computed:Object(s["a"])(Object(s["a"])({},Object(c["b"])(["sponsorList","croList"])),Object(c["d"])("user",["isTestUser"])),mounted:function(){this.initPage(),this.handleIndicationTypeChange("437a81b3-c5ad-49fd-82a1-8f441c4ba8da"),console.log(this.isTestUser,"isTestUser")},methods:{initForm:function(){var e=this;this.loading=!0,Object(u["Od"])(this.trialId).then((function(t){if(e.loading=!1,t.IsSuccess)for(var i in e.trialForm){if("IndicationOther"===i)return;if("Indication"===i)if(~t.Result["Indication"].indexOf("-")){var n=t.Result["Indication"].split("-");e.$set(e.trialForm,"IndicationOther",n[1]),e.trialForm["Indication"]=n[0]}else e.trialForm[i]="00000000-0000-0000-0000-000000000000"===t.Result[i]?"":t.Result[i];else e.trialForm[i]="00000000-0000-0000-0000-000000000000"===t.Result[i]?"":t.Result[i],"IndicationTypeId"===i&&(e.indicationGrouping=e.$d.IndicationType.filter((function(e){return e.id===t.Result[i]}))[0].raw.ChildGroup)}})).catch((function(){e.loading=!1}))},handleSave:function(){var e=this;this.$refs.trialForm.validate((function(t){if(t){e.btnLoading=!0,e.trialForm.Id||(e.trialForm.TrialCode="".concat(e.declarationNum).concat(e.indicationNum).concat(e.phaseNum),console.log(e.trialForm.TrialCode));var i=Object.assign({},e.trialForm);"其它"!==i.Indication&&"Other"!==i.Indication||(i.Indication=i.Indication+"-"+i.IndicationOther),Object(u["A"])(i).then((function(t){e.btnLoading=!1,e.trialForm.Id?e.$message.success(e.$t("trials:trials-list:message:updatedSuccessfully")):(e.trialForm.Id=t.Result,e.$message.success(e.$t("trials:trials-list:message:addedSuccessfully"))),e.$emit("getList"),e.$emit("closeDialog")})).catch((function(){e.btnLoading=!1}))}}))},handleCancel:function(){this.$emit("closeDialog")},handleDeclarationTypeChange:function(e){if(e&&(this.declarationNum=this.$d.DeclarationType.filter((function(t){return t.id===e}))[0].raw.ShowOrder,this.trialForm.Id)){var t=Object(o["a"])(this.trialForm.TrialCode);t[2]=this.declarationNum,this.trialForm.TrialCode=t.join("")}},handleIndicationTypeChange:function(e){if(this.indicationGrouping=null,e){if(this.indicationNum=this.$d.IndicationType.filter((function(t){return t.id===e}))[0].raw.ShowOrder,this.trialForm.Id){var t=Object(o["a"])(this.trialForm.TrialCode);t[3]=this.indicationNum,this.trialForm.TrialCode=t.join("")}this.indicationGrouping=this.$d.IndicationType.filter((function(t){return t.id===e}))[0].raw.ChildGroup}this.trialForm.Indication=null},handlePhaseChange:function(e){if(e&&(this.phaseNum=this.$d.Trial_Phase.filter((function(t){return t.id===e}))[0].raw.ShowOrder,this.trialForm.Id)){var t=Object(o["a"])(this.trialForm.TrialCode);t[4]=this.phaseNum,this.trialForm.TrialCode=t.join("")}},handleExpectedPatientsChange:function(e){this.trialForm.PlanVisitCount=e*this.trialForm.TimePointsPerPatient},handleTpPerPatientChange:function(e){this.trialForm.PlanVisitCount=e*this.trialForm.ExpectedPatients},initPage:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.loading=!0,e.next=3,this.getDicData();case 3:return e.next=5,l["a"].dispatch("global/getSponsorList");case 5:return e.next=7,l["a"].dispatch("global/getCROList");case 7:this.trialId&&(this.trialForm.Id=this.trialId,this.initForm()),this.loading=!1;case 9:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getDicData:function(){var e=this;Object(d["c"])(["DeclarationType","IndicationType","Modality","ReviewMode","ReviewType","Trial_Phase"]).then((function(t){e.dictionaryList=Object(s["a"])({},t.Result)}))}}},h=f,p=(i("3016"),i("2877")),m=Object(p["a"])(h,n,a,!1,null,null,null);t["default"]=m.exports},cea2:function(e,t,i){"use strict";i("47c1")},cee1:function(e,t,i){var n=i("6d8b");function a(e){var t={};e.eachSeriesByType("map",(function(i){var a=i.getMapType();if(!i.getHostGeoModel()&&!t[a]){var r={};n.each(i.seriesGroup,(function(t){var i=t.coordinateSystem,n=t.originalData;t.get("showLegendSymbol")&&e.getComponent("legend")&&n.each(n.mapDimension("value"),(function(e,t){var a=n.getName(t),o=i.getRegion(a);if(o&&!isNaN(e)){var s=r[a]||0,l=i.dataToPoint(o.center);r[a]=s+1,n.setItemLayout(t,{point:l,offset:s})}}))}));var o=i.getData();o.each((function(e){var t=o.getName(e),i=o.getItemLayout(e)||{};i.showLabel=!r[t],o.setItemLayout(e,i)})),t[a]=!0}}))}e.exports=a},cf22:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"viewerContainer"},[i("div",{staticClass:"viewerContentWrapper"},[i("div",{staticClass:"viewerLeftSidePanel"},[i("div",{staticClass:"sidePanelBody",attrs:{id:"listWrapper"}},[i("div",{staticClass:"sidePanelThumbs"},[i("el-tabs",{attrs:{type:"border-card"},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[i("el-tab-pane",{attrs:{label:"当前检查",name:"first"}},[i("div",{staticClass:"studyDesc"},[e._v("\n "+e._s(e.studyCode)+"\n ")]),e._v(" "),i("div",{staticClass:"studyDesc"},[e._v("\n "+e._s(e.description)+"\n ")]),e._v(" "),e.seriesCount?i("div",{staticClass:"studyDesc"},[e._v("\n "+e._s(e.modality)+" : "+e._s(e.seriesCount)+" Series\n ")]):e._e(),e._v(" "),i("div",{staticClass:"viewerSidethumbs ps",staticStyle:{position:"relative"}},[i("div",{staticClass:"viewerSidethumbinner"},e._l(e.seriesList,(function(t,n){return i("div",{key:n,class:{viewerSideActive:0==n},staticStyle:{position:"relative","margin-bottom":"5px","border-radius":"2px",border:"1px solid #404040"},attrs:{"series-type":"current"},on:{click:function(i){return e.showSeriesImage(i,n,t)}}},[i("div",{staticClass:"viewernavigatorwrapper"},[i("el-image",{staticClass:"image-preview",staticStyle:{height:"72px",width:"72px"},attrs:{src:t.previewImageUrl,fit:"fill"}}),e._v(" "),i("div",{staticClass:"viewernavitextwrapper"},[t.keySeries?i("div",{staticStyle:{padding:"1px",color:"red"}},[e._v("\n Key Images\n ")]):i("div",{staticStyle:{padding:"1px"}},[e._v("\n #"+e._s(t.seriesNumber)+"\n ")]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.instanceCount,expression:"item.instanceCount"}],staticStyle:{padding:"1px"}},[e._v("\n "+e._s(t.modality)+": "+e._s(t.instanceCount)+" image\n ")]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:!t.keySeries&&t.sliceThickness,expression:"!item.keySeries && item.sliceThickness"}],staticStyle:{padding:"1px"}},[e._v("\n T: "+e._s(t.sliceThickness)+"\n ")]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:!t.keySeries&&t.description,expression:"!item.keySeries &&item.description"}],staticStyle:{width:"120px","white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis",padding:"1x"}},[e._v("\n "+e._s(t.description)+"\n ")]),e._v(" "),t.keySeries?e._e():i("div",{staticStyle:{padding:"1px"}},[e._v("\n "+e._s(t.prefetchInstanceCount)+"/"+e._s(t.instanceCount)+"\n ")])])],1),e._v(" "),e.showDelete?i("div",{on:{click:function(e){e.stopPropagation()}}},[i("span",{staticStyle:{"font-size":"12px"}},[e._v("是否阅片")]),e._v(" "),i("el-switch",{attrs:{size:"mini"},on:{change:function(i){return e.changeReadingStatus(i,t)}},model:{value:t.isReading,callback:function(i){e.$set(t,"isReading",i)},expression:"item.isReading"}}),e._v(" "),i("span",{staticStyle:{"font-size":"12px"}},[e._v("是否删除")]),e._v(" "),i("el-switch",{attrs:{size:"mini"},on:{change:function(i){return e.changeDeleteStatus(i,t)}},model:{value:t.isDeleted,callback:function(i){e.$set(t,"isDeleted",i)},expression:"item.isDeleted"}})],1):e._e(),e._v(" "),t.prefetchInstanceCount>0&&t.prefetchInstanceCount<t.instanceCount?i("div",[i("el-progress",{attrs:{percentage:parseInt((t.prefetchInstanceCount/t.instanceCount*100).toFixed(2))}})],1):e._e()])})),0)])])],1)],1)])]),e._v(" "),i("div",{staticClass:"viewerContent"},[i("dicom-viewer",{ref:"dicomViewer",staticStyle:{height:"100%"},attrs:{id:"dicomViewer"}})],1)])])},a=[],r=(i("20d6"),i("55dd"),i("a481"),i("5df3"),i("1c4c"),i("ac6a"),i("acd4")),o=i("81d9"),s=i("344d"),l=i("cc73"),c=i("0a05"),u=i("3e42"),d=i("f5c4"),f=i("4360"),h=i("a599");s["external"].dicomParser=r,s["external"].cornerstone=o;var p={components:{"dicom-viewer":l["default"]},data:function(){return{trialId:"",studyId:"",tpCode:"",baseLine:null,studyCode:"",modality:"",description:"",seriesCount:0,seriesList:[],currentSeriesIndex:-1,arr:[],activeName:"first",tpList:[],visitNum:0,labels:{},type:"",currentRelationIndex:[],cachedImages:[],isLoadedAll:!1,studyList:{},currentStudy:"",previewImageCount:0,relationStudyList:[],isStartLoad:!1,firstInstanceId:"",showDelete:!1,loading:!1}},created:function(){this.type=this.$router.currentRoute.query.type?this.$router.currentRoute.query.type:"",this.visitNum=this.$router.currentRoute.query.visitNum?parseInt(this.$router.currentRoute.query.visitNum):0,o["events"].addEventListener("cornerstoneimageloaded",this.cornerstoneImageLoaded),this.$router.currentRoute.query.TokenKey&&(f["a"].dispatch("user/setToken",this.$router.currentRoute.query.TokenKey),Object(h["a"])("TokenKey","")),this.studyId=this.$router.currentRoute.query.studyId,"Series"===this.type?(this.showDelete=this.$router.currentRoute.query.showDelete,this.initSeries()):"Study"===this.type?(this.showDelete=this.$router.currentRoute.query.showDelete,this.loadStudy()):"Share"===this.type&&this.loadStudy()},beforeDestroy:function(){d["a"].stopTaskTimer()},methods:{loadStudy:function(){var e=this;Object(c["k"])(e.studyId).then((function(t){if(t.IsSuccess){e.studyCode=t.Result.StudyCode,e.modality=t.Result.Modalities,e.seriesCount=t.Result.SeriesCount,e.description=t.Result.Description;var i="/series/list/".concat(e.studyId);e.getSeriesList(i)}}))},getSeriesList:function(e){var t=this;Object(c["j"])(e).then((function(e){if(e.IsSuccess){var i=e.Result,n=[];i.forEach((function(e){var i=[];e.InstancePathList.forEach((function(e){i.push("wadouri:".concat("USA"!==localStorage.getItem("location")?"https://zyypacs-mdc.oss-cn-shanghai.aliyuncs.com":"https://zyypacs-usa.oss-us-west-1.aliyuncs.com").concat(e))}));var a=t.$router.currentRoute.query.subjectVisitId,r=t.$router.currentRoute.query.studyId,o=t.$router.currentRoute.query.trialId;n.push({trialId:o,subjectVisitId:a,studyId:r,imageIds:i,seriesId:e.Id,seriesUid:e.SeriesInstanceUid,seriesNumber:e.SeriesNumber,sliceThickness:e.SliceThickness,modality:e.Modality,description:e.Description,isReading:e.IsReading,isDeleted:e.IsDeleted,previewImageUrl:"/api/series/preview/".concat(e.Id),instanceCount:e.InstanceCount,prefetchInstanceCount:0,hasLabel:e.HasLabel,keySeries:e.KeySeries,tpCode:t.tpCode,loadStatus:!1,imageloadedArr:[]})})),t.seriesList=n,t.seriesList.length>0&&(t.$refs.dicomViewer.loadImageStack(t.seriesList[0],t.labels[t.tpCode]),t.firstInstanceId=t.seriesList[0].imageIds[0])}}))},initSeries:function(){var e=this;this.studyCode=this.$router.currentRoute.query.studyCode,this.modality=this.$router.currentRoute.query.modality,this.seriesCount=1,this.description=this.$router.currentRoute.query.description;var t=this.$router.currentRoute.query.seriesId,i=this.$router.currentRoute.query.seriesNumber,n=this.$router.currentRoute.query.subjectVisitId,a=this.$router.currentRoute.query.studyId,r=this.$router.currentRoute.query.trialId;Object(u["mc"])(t).then((function(o){if(o.Result&&(!o.Result||0!==o.Result.length)){var s=o.Result[0].SeriesInstanceUid,l=o.Result[0].SliceLocation,c=o.Result[0].IsReading,u=o.Result[0].IsDeleted,d=[],f=[];o.Result.forEach((function(e){f.push("wadouri:".concat("USA"!==localStorage.getItem("location")?"https://zyypacs-mdc.oss-cn-shanghai.aliyuncs.com":"https://zyypacs-usa.oss-us-west-1.aliyuncs.com").concat(e.Path))})),d.push({trialId:r,subjectVisitId:n,studyId:a,imageIds:f,seriesId:t,seriesUid:s,seriesNumber:i,sliceThickness:l,modality:e.modality,description:e.description,isReading:c,isDeleted:u,previewImageUrl:"/api/series/preview/".concat(t),instanceCount:o.Result.length,prefetchInstanceCount:0,loadStatus:!1,imageloadedArr:[]}),e.seriesList=d,e.seriesList.length>0&&e.$nextTick((function(){e.$refs.dicomViewer.loadImageStack(e.seriesList[0]),e.firstInstanceId=e.seriesList[0].imageIds[0]}))}}))},showSeriesImage:function(e,t,i){var n=this,a=e.currentTarget,r=document.querySelectorAll("[series-type]");if(Array.from(r).forEach((function(e){e.classList.remove("viewerSideActive")})),a.classList.add("viewerSideActive"),this.currentSeriesIndex=t,this.$refs.dicomViewer.loadImageStack(this.seriesList[t]),!i.loadStatus){i.isLoading=!0;var o=(new Date).getTime();i.imageIds.map((function(e,t){var a="";a=0===t?new Date((new Date).setHours(23,59,59,999)).getTime():o-1,n.load(e,i.seriesId,a)}))}},initStudy:function(){var e=this;if(this.studyCode=this.$router.currentRoute.query.studyCode,this.modality=this.$router.currentRoute.query.modality,this.seriesCount=1,this.description=this.$router.currentRoute.query.description,this.$router.currentRoute.query.series){var t=JSON.parse(this.$router.currentRoute.query.series),i=[],n=[];t.InstancePathList.forEach((function(e){n.push("wadouri:".concat("USA"!==localStorage.getItem("location")?"https://zyypacs-mdc.oss-cn-shanghai.aliyuncs.com":"https://zyypacs-usa.oss-us-west-1.aliyuncs.com").concat(e))})),i.push({imageIds:n,seriesId:t.Id,seriesUid:t.SeriesInstanceUid,seriesNumber:t.SeriesNumber,sliceThickness:t.SliceThickness,modality:t.Modality,description:t.Description,previewImageUrl:"/api/series/preview/".concat(t.Id),instanceCount:t.InstanceCount,prefetchInstanceCount:0,hasLabel:t.HasLabel,keySeries:t.KeySeries,loadStatus:!1,imageloadedArr:[]}),this.seriesList=i,this.seriesList.length>0&&this.$nextTick((function(){e.$refs.dicomViewer.loadImageStack(e.seriesList[0]),e.firstInstanceId=e.seriesList[0].imageIds[0]}))}},deleteSeries:function(){var e=this;this.loading=!0;var t=this.$router.currentRoute.query.subjectVisitId,i=this.$router.currentRoute.query.studyId,n=this.$router.currentRoute.query.seriesId;Object(u["Re"])(this.trialId,t,i,n,5).then((function(t){e.loading=!1,t.IsSuccess&&(e.$message.success(e.$t("common:message:savedSuccessfully")),window.opener.postMessage({type:"refreshSeriesList",data:""},window.location))})).catch((function(){e.loading=!1}))},changeReadingStatus:function(e,t){var i=this,n="";e?(n=this.$t("trials:audit:label:setSeriesReading"),t.isReading=!1):(n=this.$t("trials:audit:label:setSeriesNotReading"),t.isReading=!0);var a=this.$t("trials:audit:message:changeSeriesStatus").replace("xxx",n);this.$confirm(a,{distinguishCancelAndClose:!0,type:"warning"}).then((function(){var e=t.isReading?1:2;i.loading=!0,Object(u["Re"])(t.trialId,t.subjectVisitId,t.studyId,t.seriesId,e).then((function(e){i.loading=!1,e.IsSuccess&&(t.isReading=!t.isReading,i.$message.success(i.$t("common:message:savedSuccessfully")),window.opener.postMessage({type:"refreshSeriesList",data:""},window.location))})).catch((function(){i.loading=!1}))})).catch((function(){}))},changeDeleteStatus:function(e,t){var i=this,n="";e?(n=this.$t("trials:audit:label:setSeriesDeleted"),t.isDeleted=!1):(n=this.$t("trials:audit:label:setSeriesNotDelete"),t.isDeleted=!0);var a=this.$t("trials:audit:message:changeSeriesStatus").replace("xxx",n);this.$confirm(a,{distinguishCancelAndClose:!0,type:"warning"}).then((function(){var e=t.isDeleted?5:4;i.loading=!0,Object(u["Re"])(t.trialId,t.subjectVisitId,t.studyId,t.seriesId,e).then((function(e){i.loading=!1,e.IsSuccess&&(t.isDeleted=!t.isDeleted,i.$message.success(i.$t("common:message:savedSuccessfully")),window.opener.postMessage({type:"refreshSeriesList",data:""},window.location))})).catch((function(){i.loading=!1}))})).catch((function(){}))},loadAllImages:function(){var e=this,t=(new Date).getTime();this.seriesList.forEach((function(i){i.imageIds.forEach((function(n){t--,e.load(n,i.seriesId,t)}))}))},load:function(e,t){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:999;return new Promise((function(a,r){d["a"].loadAndCacheImagePlus(e,t,n).then((function(t){t&&(i.imageLoaded(e,t.data.string("x0020000e")),a(t))})).catch((function(e){r(e)}))}))},imageLoaded:function(e,t){for(var i=-1,n=0;n<this.seriesList.length;++n)if(this.seriesList[n].seriesUid===t){i=n;break}if(!(i<0)){var a=this.seriesList[i].imageIds.indexOf(e);a<0||this.seriesList[i].imageloadedArr.indexOf(e)<0&&(++this.seriesList[i].prefetchInstanceCount,this.seriesList[i].imageloadedArr.push(e),this.seriesList[i].prefetchInstanceCount>=this.seriesList[i].instanceCount&&(this.seriesList[i].prefetchInstanceCount=this.seriesList[i].instanceCount,this.seriesList[i].loadStatus=!0))}},datasetsCacheChanged:function(e){var t=e.detail.cacheInfo;t.cacheSizeInBytes},unload:function(){this.cachedImages.sort(this.compare),s["wadouri"].dataSetCacheManager.unload(this.cachedImages[0].uri),this.cachedImages.splice(0,1)},compare:function(e,t){return e.timeStamp>t.timeStamp?-1:e.timeStamp<t.timeStamp?1:0},cornerstoneImageLoaded:function(e){console.log("dicom-study"),this.firstInstanceId!==e.detail.image.imageId||this.isStartLoad||(this.loadAllImages(),this.isStartLoad=!0,d["a"].executeTask());var t=e.detail.image.sharedCacheKey,i=this.cachedImages.findIndex((function(e){return e.uri===t}));-1===i?this.cachedImages.push({uri:t,timestamp:(new Date).getTime()}):this.cachedImages[i].timestamp=(new Date).getTime();for(var n=e.detail.image.imageId,a=e.detail.image.data.string("x0020000e"),r=-1,o=0;o<this.seriesList.length;++o)if(this.seriesList[o].seriesUid===a){r=o;break}if(!(r<0)){var s=this.seriesList[r].imageIds.indexOf(n);s<0||this.seriesList[r].imageloadedArr.indexOf(n)<0&&(++this.seriesList[r].prefetchInstanceCount,this.seriesList[r].imageloadedArr.push(n),this.seriesList[r].prefetchInstanceCount>=this.seriesList[r].instanceCount&&(this.seriesList[r].prefetchInstanceCount=this.seriesList[r].instanceCount,this.seriesList[r].loadStatus=!0))}}}},m=p,g=(i("afe7"),i("2877")),v=Object(g["a"])(m,n,a,!1,null,null,null);t["default"]=v.exports},cf221:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",[i("div",{staticClass:"search"},[i("el-form",{staticClass:"base-search-form",attrs:{inline:!0,size:"mini"}}),e._v(" "),i("span",{staticStyle:{"margin-left":"auto"}},[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.handleAdd}},[e._v("新建")])],1)],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:45},expression:"{bottomOffset:45}"}],attrs:{data:e.list,stripe:"",size:"small",height:"100"}},[i("el-table-column",{attrs:{type:"index",width:"60"}}),e._v(" "),~e.$route.path.indexOf("select")?e._e():i("el-table-column",{attrs:{prop:"Code",label:"字典键值","min-width":"180","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ValueCN",label:"中文值","min-width":"180","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Value",label:"英文值","min-width":"180","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ChildGroup",label:"分组","min-width":"180","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ShowOrder",label:"显示顺序","min-width":"180","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Description",label:"描述","min-width":"180","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:"是否可用",width:"100",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},on:{change:function(i){return e.switchChange(i,t.row)}},model:{value:t.row.IsEnable,callback:function(i){e.$set(t.row,"IsEnable",i)},expression:"scope.row.IsEnable"}})]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"操作",width:"300",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("\n 编辑\n ")]),e._v(" "),i("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("\n 删除\n ")])]}}])})],1),e._v(" "),i("DictionaryChildAddOrUpdateForm",{ref:"DictionaryChildAddOrUpdateForm",on:{getList:e.getList}})],1)},a=[],r=(i("20d6"),i("e56e")),o=i("f36a"),s=i("ff85"),l=function(){return{parentId:""}},c={components:{BoxContent:o["default"],DictionaryChildAddOrUpdateForm:s["default"]},props:{parent:{type:Object,default:function(){return{}}}},data:function(){return{searchData:l(),basicDicList:[],list:[],total:0,loading:!1,drawerChild:!1,rowData:{},childList:[],model_cfg:{visible:!1,showClose:!0,width:"600px",title:"",appendToBody:!0}}},mounted:function(){this.getList()},methods:{handleChild:function(e){this.drawerChild=!0,this.getDictionaryChildList(e.Id)},getDictionaryChildList:function(e){var t=this;Object(r["fb"])(e).then((function(e){t.childList=e.Result.CurrentPageData})).catch((function(){t.loading=!1}))},switchChange:function(e,t){var i=this;this.loading=!0,Object(r["c"])(t).then((function(e){i.$message.success("Saved successfully!"),i.loading=!1})).catch((function(){i.loading=!1}))},handleEdit:function(e){var t=this;this.$nextTick((function(){t.$refs["DictionaryChildAddOrUpdateForm"].openDialog("DictionaryChild Edit",e,{DataTypeEnum:t.parent.DataTypeEnum})}))},handleAdd:function(){var e=this;this.$nextTick((function(){e.$refs["DictionaryChildAddOrUpdateForm"].openDialog("DictionaryChild Add",{},{ConfigTypeId:e.parent.ConfigTypeId,parentId:e.parent.Id,DataTypeEnum:e.parent.DataTypeEnum})}))},handleDelete:function(e){var t=this;this.$confirm("Sure to delete?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){t.loading=!0,Object(r["C"])(e.Id).then((function(i){t.loading=!1,i.IsSuccess&&(t.list.splice(t.list.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success("Deleted successfully!"))})).catch((function(){t.loading=!1}))}))},getList:function(){var e=this;this.loading=!0,Object(r["fb"])(this.parent.Id).then((function(t){e.loading=!1,e.list=t.Result})).catch((function(){e.loading=!1}))},handleSearch:function(){this.getList()},handleReset:function(){this.searchData=l(),this.getList()}}},u=c,d=i("2877"),f=Object(d["a"])(u,n,a,!1,null,"249f93b7",null);t["default"]=f.exports},cf4f:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"form-container"},[i("el-card",{staticClass:"box-card"},[i("div",{staticStyle:{width:"80%"}},[i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"employmentForm",staticClass:"demo-ruleForm",attrs:{rules:e.employmentRules,model:e.employmentForm,"label-width":"150px"}},[i("el-row",[i("el-col",{attrs:{span:14}},[i("el-form-item",{attrs:{label:"Hospital: ",prop:"HospitalId"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"select",disabled:"1"===e.$route.query.ReviewStatus,size:"small"},on:{change:e.handleHospitalChange},model:{value:e.employmentForm.HospitalId,callback:function(t){e.$set(e.employmentForm,"HospitalId",t)},expression:"employmentForm.HospitalId"}},e._l(e.hospitalList,(function(t,n){return i("el-option",{key:n,attrs:{label:t.HospitalName,value:t.Id}},[i("span",[e._v("\n "+e._s(t.HospitalName)+"\n ")])])})),1)],1)],1)],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:14}},[i("el-form-item",{attrs:{label:"Affiliated University: "}},[i("el-input",{attrs:{disabled:"1"===e.$route.query.ReviewStatus,type:"textarea",autosize:"",disabled:"",size:"small"},model:{value:e.UniversityAffiliated,callback:function(t){e.UniversityAffiliated=t},expression:"UniversityAffiliated"}})],1)],1)],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:14}},[i("el-form-item",{attrs:{label:"City: "}},[i("el-input",{attrs:{disabled:"1"===e.$route.query.ReviewStatus,disabled:"",size:"small"},model:{value:e.City,callback:function(t){e.City=t},expression:"City"}})],1)],1)],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:14}},[i("el-form-item",{attrs:{label:"State/Province: "}},[i("el-input",{attrs:{disabled:"1"===e.$route.query.ReviewStatus,disabled:"",size:"small"},model:{value:e.Province,callback:function(t){e.Province=t},expression:"Province"}})],1)],1)],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:14}},[i("el-form-item",{attrs:{label:"Country: "}},[i("el-input",{attrs:{disabled:"1"===e.$route.query.ReviewStatus,disabled:"",size:"small"},model:{value:e.Country,callback:function(t){e.Country=t},expression:"Country"}})],1)],1)],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:14}},[i("el-form-item",{attrs:{label:"Department: ",prop:"DepartmentId"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"select",disabled:"1"===e.$route.query.ReviewStatus,size:"small"},model:{value:e.employmentForm.DepartmentId,callback:function(t){e.$set(e.employmentForm,"DepartmentId",t)},expression:"employmentForm.DepartmentId"}},[e._l(e.dictionaryList.Department,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.Value,value:e.Id}})})),e._v(" "),i("el-option",{attrs:{label:"Other",value:e.otherId}})],2)],1)],1),e._v(" "),i("el-col",{attrs:{span:5}},[e.employmentForm.DepartmentId===e.otherId?i("el-form-item",{staticClass:"other-item",attrs:{prop:"DepartmentOther"}},[i("el-input",{attrs:{disabled:"1"===e.$route.query.ReviewStatus,placeholder:"Please specify (required)",size:"small"},model:{value:e.employmentForm.DepartmentOther,callback:function(t){e.$set(e.employmentForm,"DepartmentOther",t)},expression:"employmentForm.DepartmentOther"}})],1):e._e()],1),e._v(" "),i("el-col",{attrs:{span:5}},[e.employmentForm.DepartmentId===e.otherId?i("el-form-item",{staticClass:"other-item",attrs:{prop:"DepartmentOtherCN"}},[i("el-input",{attrs:{disabled:"1"===e.$route.query.ReviewStatus,placeholder:"请用中文注明",size:"small"},model:{value:e.employmentForm.DepartmentOtherCN,callback:function(t){e.$set(e.employmentForm,"DepartmentOtherCN",t)},expression:"employmentForm.DepartmentOtherCN"}})],1):e._e()],1)],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:14}},[i("el-form-item",{attrs:{label:"Rank: ",prop:"RankId"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{disabled:"1"===e.$route.query.ReviewStatus,placeholder:"select",size:"small"},on:{change:e.RankChange},model:{value:e.employmentForm.RankId,callback:function(t){e.$set(e.employmentForm,"RankId",t)},expression:"employmentForm.RankId"}},e._l(e.$d.Rank,(function(e){return i("el-option",{key:e.id,attrs:{label:e.raw.Value,value:e.id}})})),1)],1)],1),e._v(" "),i("el-col",{attrs:{span:5}},["其它"===e.$fd("Rank",e.employmentForm.RankId,"id")||"Other"===e.$fd("Rank",e.employmentForm.RankId,"id")?i("el-form-item",{staticClass:"other-item",attrs:{prop:"RankOther"}},[i("el-input",{attrs:{disabled:"1"===e.$route.query.ReviewStatus,placeholder:"Please specify",size:"small"},model:{value:e.employmentForm.RankOther,callback:function(t){e.$set(e.employmentForm,"RankOther",t)},expression:"employmentForm.RankOther"}})],1):e._e()],1),e._v(" "),i("el-col",{attrs:{span:5}},["其它"===e.$fd("Rank",e.employmentForm.RankId,"id")||"Other"===e.$fd("Rank",e.employmentForm.RankId,"id")?i("el-form-item",{staticClass:"other-item",attrs:{prop:"RankOtherCN"}},[i("el-input",{attrs:{disabled:"1"===e.$route.query.ReviewStatus,placeholder:"请用中文注明",size:"small"},model:{value:e.employmentForm.RankOtherCN,callback:function(t){e.$set(e.employmentForm,"RankOtherCN",t)},expression:"employmentForm.RankOtherCN"}})],1):e._e()],1)],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:14}},[i("el-form-item",{attrs:{label:"Physician: ",prop:"PhysicianId"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"select",disabled:"1"===e.$route.query.ReviewStatus,size:"small"},on:{change:e.PhysicianChange},model:{value:e.employmentForm.PhysicianId,callback:function(t){e.$set(e.employmentForm,"PhysicianId",t)},expression:"employmentForm.PhysicianId"}},e._l(e.$d.PhysicianOriginal,(function(e){return i("el-option",{key:e.id,attrs:{label:e.raw.Value,value:e.id}})})),1)],1)],1),e._v(" "),i("el-col",{attrs:{span:5}},["其它"===e.$fd("PhysicianOriginal",e.employmentForm.PhysicianId,"id")||"Other"===e.$fd("PhysicianOriginal",e.employmentForm.PhysicianId,"id")?i("el-form-item",{staticClass:"other-item",attrs:{prop:"Physician"}},[i("el-input",{attrs:{disabled:"1"===e.$route.query.ReviewStatus,placeholder:"Please specify",size:"small"},model:{value:e.employmentForm.Physician,callback:function(t){e.$set(e.employmentForm,"Physician",t)},expression:"employmentForm.Physician"}})],1):e._e()],1),e._v(" "),i("el-col",{attrs:{span:5}},["其它"===e.$fd("PhysicianOriginal",e.employmentForm.PhysicianId,"id")||"Other"===e.$fd("PhysicianOriginal",e.employmentForm.PhysicianId,"id")?i("el-form-item",{staticClass:"other-item",attrs:{prop:"PhysicianCN"}},[i("el-input",{attrs:{disabled:"1"===e.$route.query.ReviewStatus,placeholder:"请用中文注明",size:"small"},model:{value:e.employmentForm.PhysicianCN,callback:function(t){e.$set(e.employmentForm,"PhysicianCN",t)},expression:"employmentForm.PhysicianCN"}})],1):e._e()],1)],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:14}},[i("el-form-item",{attrs:{label:"Position: ",prop:"Position"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{disabled:"1"===e.$route.query.ReviewStatus,placeholder:"select",size:"small"},model:{value:e.employmentForm.PositionId,callback:function(t){e.$set(e.employmentForm,"PositionId",t)},expression:"employmentForm.PositionId"}},[e._l(e.dictionaryList.Position,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.Value,value:e.Id}})})),e._v(" "),i("el-option",{attrs:{label:"Other",value:e.otherId}}),e._v(" "),i("el-option",{attrs:{label:"None",value:"f30a074b-2b47-4a92-97ec-e15086d37883"}})],2)],1)],1),e._v(" "),i("el-col",{attrs:{span:5}},[e.employmentForm.PositionId===e.otherId?i("el-form-item",{staticClass:"other-item",attrs:{prop:"PositionOther"}},[i("el-input",{attrs:{disabled:"1"===e.$route.query.ReviewStatus,placeholder:"Please specify",size:"small"},model:{value:e.employmentForm.PositionOther,callback:function(t){e.$set(e.employmentForm,"PositionOther",t)},expression:"employmentForm.PositionOther"}})],1):e._e()],1),e._v(" "),i("el-col",{attrs:{span:5}},[e.employmentForm.PositionId===e.otherId?i("el-form-item",{staticClass:"other-item",attrs:{prop:"PositionOtherCN"}},[i("el-input",{attrs:{disabled:"1"===e.$route.query.ReviewStatus,placeholder:"请用中文注明",size:"small"},model:{value:e.employmentForm.PositionOtherCN,callback:function(t){e.$set(e.employmentForm,"PositionOtherCN",t)},expression:"employmentForm.PositionOtherCN"}})],1):e._e()],1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",disabled:e.isDisabled||"1"===e.$route.query.ReviewStatus,size:"small"},on:{click:e.handleSave}},[e._v("Save")])],1)],1)],1)])],1)},a=[],r=(i("96cf"),i("3b8d")),o=(i("7514"),i("db72")),s=i("33ba"),l=i("86a6"),c=i("4360"),u=i("2f62"),d={name:"Employment",data:function(){return{employmentForm:{Id:this.$route.query.Id,DepartmentId:"",DepartmentOther:"",DepartmentOtherCN:"",RankId:"",RankOther:"",RankOtherCN:"",PositionId:"",PositionOther:"",PositionOtherCN:"",HospitalId:"",PhysicianId:"",Physician:"",PhysicianCN:"",PhysicianOriginal:null},UniversityAffiliated:"",City:"",Province:"",Country:"",employmentRules:{DepartmentId:[{required:!0,message:"Please select department",trigger:"blur"}],DepartmentOther:[{required:!0,message:"Please specify",trigger:"blur"},{max:50,message:"The maximum length is 50"}],DepartmentOtherCN:[{max:50,message:"The maximum length is 50"}],RankId:[{required:!0,message:"Please select rank",trigger:"blur"}],RankOther:[{required:!0,message:"Please select rank",trigger:"blur"},{max:50,message:"The maximum length is 50"}],RankOtherCN:[{required:!0,message:"Please select rank",trigger:"blur"},{max:50,message:"The maximum length is 50"}],PhysicianId:[{required:!0,message:"Please select Physician",trigger:"blur"}],Physician:[{required:!0,message:"Please select Physician",trigger:"blur"},{max:50,message:"The maximum length is 50"}],PhysicianCN:[{required:!0,message:"Please select Physician",trigger:"blur"},{max:50,message:"The maximum length is 50"}],PositionId:[{required:!0,message:"Please select position",trigger:"blur"}],PositionOther:[{max:50,message:"The maximum length is 50"}],PositionOtherCN:[{max:50,message:"The maximum length is 50"}],HospitalId:[{required:!0,message:"Please select hospital",trigger:"blur"}]},isDisabled:!1,selectId:"00000000-0000-0000-0000-000000000000",otherId:"ef84e9cb-f1a6-49d7-b6da-34be2c12abd5",loading:!1,dictionaryList:{}}},computed:Object(o["a"])({},Object(u["b"])(["hospitalList"])),mounted:function(){this.initEmployment()},methods:{RankChange:function(e){var t=this.$d.Rank.find((function(t){return t.id===e}));"其它"===t.label||"Other"===t.label?(this.employmentForm.RankOther="",this.employmentForm.RankOtherCN=""):(this.employmentForm.RankOther=t.raw.Value,this.employmentForm.RankOtherCN=t.raw.ValueCN)},PhysicianChange:function(e){var t=this.$d.PhysicianOriginal.find((function(t){return t.id===e}));"其它"===t.label||"Other"===t.label?(this.employmentForm.Physician="",this.employmentForm.PhysicianCN=""):(this.employmentForm.Physician=t.raw.Value,this.employmentForm.PhysicianCN=t.raw.ValueCN)},handleSave:function(){var e=this;this.$refs.employmentForm.validate((function(t){if(t){e.loading=!0,e.isDisabled=!0;var i={},n=e.$d.PhysicianOriginal.find((function(t){return t.id===e.employmentForm.PhysicianId}));i.Id=e.$route.query.Id,i.DepartmentId=e.employmentForm.DepartmentId,i.DepartmentOther=e.employmentForm.DepartmentId===e.otherId?e.employmentForm.DepartmentOther:"",i.DepartmentOtherCN=e.employmentForm.DepartmentId===e.otherId?e.employmentForm.DepartmentOtherCN:"",i.RankId=e.employmentForm.RankId,i.RankOther=e.employmentForm.RankId===e.otherId?e.employmentForm.RankOther:"",i.RankOtherCN=e.employmentForm.RankId===e.otherId?e.employmentForm.RankOtherCN:"",i.PhysicianId=e.employmentForm.PhysicianId,i.Physician="其它"!==n.label&&"Other"!==n.label?n.raw.Value:e.employmentForm.Physician,i.PhysicianCN="其它"!==n.label&&"Other"!==n.label?n.raw.ValueCN:e.employmentForm.PhysicianCN,i.PositionId=e.employmentForm.PositionId,i.PositionOther=e.employmentForm.PositionId===e.otherId?e.employmentForm.PositionOther:"",i.PositionOtherCN=e.employmentForm.PositionId===e.otherId?e.employmentForm.PositionOtherCN:"",i.HospitalId=e.employmentForm.HospitalId,Object(s["C"])(i).then((function(t){e.isDisabled=!1,e.loading=!1,e.$message.success("Saved successfully"),e.id||(e.employmentForm.Id=t.Result)})).catch((function(){e.isDisabled=!1,e.loading=!1}))}}))},initForm:function(){var e=this,t=this.$route.query.Id;t&&(this.loading=!0,Object(s["v"])(t).then((function(i){var n=i.Result,a=n.PhysicianId,r=n.Physician,o=n.PhysicianCN,s=n.DepartmentId,l=n.DepartmentOther,c=n.DepartmentOtherCN,u=n.RankId,d=n.RankOther,f=n.RankOtherCN,h=n.PositionId,p=n.PositionOther,m=n.PositionOtherCN,g=n.HospitalId;e.employmentForm.Id=t,e.employmentForm.DepartmentId=s===e.selectId?"":s,e.employmentForm.DepartmentOther=l,e.employmentForm.DepartmentOtherCN=c,e.employmentForm.RankId=u===e.selectId?"":u,e.employmentForm.RankOther=d,e.employmentForm.RankOtherCN=f,e.employmentForm.PositionId=h===e.selectId?"":h,e.employmentForm.PositionOther=p,e.employmentForm.PhysicianId=a,e.employmentForm.Physician=r,e.employmentForm.PhysicianCN=o,e.employmentForm.PositionOtherCN=m,e.employmentForm.HospitalId=g===e.selectId?"":g,e.handleHospitalChange(e.employmentForm.HospitalId),e.loading=!1})).catch((function(){e.loading=!1})))},handleHospitalChange:function(e){var t=this.hospitalList.filter((function(t){return t.Id===e}));t.length&&(this.UniversityAffiliated=t[0].UniversityAffiliated,this.City=t[0].City,this.Province=t[0].Province,this.Country=t[0].Country)},initEmployment:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getDicData();case 2:return e.next=4,c["a"].dispatch("global/getHospital");case 4:this.initForm();case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getDicData:function(){var e=this;Object(l["c"])(["Department","Rank","Position"]).then((function(t){e.dictionaryList=Object(o["a"])({},t.Result)}))}}},f=d,h=(i("7dd4"),i("2877")),p=Object(h["a"])(f,n,a,!1,null,null,null);t["default"]=p.exports},cf53:function(e,t,i){"use strict";i("f2af")},cf62:function(e,t,i){},cf76:function(e,t,i){},cf7e:function(e,t,i){var n=i("6d8b");function a(e){return this._axes[e]}var r=function(e){this._axes={},this._dimList=[],this.name=e||""};r.prototype={constructor:r,type:"cartesian",getAxis:function(e){return this._axes[e]},getAxes:function(){return n.map(this._dimList,a,this)},getAxesByScale:function(e){return e=e.toLowerCase(),n.filter(this.getAxes(),(function(t){return t.scale.type===e}))},addAxis:function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},dataToCoord:function(e){return this._dataCoordConvert(e,"dataToCoord")},coordToData:function(e){return this._dataCoordConvert(e,"coordToData")},_dataCoordConvert:function(e,t){for(var i=this._dimList,n=e instanceof Array?[]:{},a=0;a<i.length;a++){var r=i[a],o=this._axes[r];n[r]=o[t](e[r])}return n}};var o=r;e.exports=o},cfdc:function(e,t,i){},cfe0:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"container",staticClass:"none-dicom-reading-container"},[e.isShow&&e.readingCategory&&1===e.readingCategory?i("VisitReview",{attrs:{"trial-id":e.trialId,"subject-id":e.subjectId,"subject-code":e.subjectCode,"visit-task-id":e.visitTaskId,"reading-category":e.readingCategory,"is-exists-clinical-data":e.isExistsClinicalData}}):e.isShow&&e.readingCategory&&2===e.readingCategory?i("GlobalReview",{attrs:{"trial-id":e.trialId,"subject-id":e.subjectId,"visit-task-id":e.visitTaskId,"reading-category":e.readingCategory,"subject-code":e.subjectCode,"task-blind-name":e.taskBlindName,"is-reading-show-subject-info":e.isReadingShowSubjectInfo,"is-reading-show-previous-results":e.isReadingShowPreviousResults,"is-exists-clinical-data":e.isExistsClinicalData}}):e.isShow&&e.readingCategory&&4===e.readingCategory?i("AdReview",{attrs:{"trial-id":e.trialId,"subject-id":e.subjectId,"visit-task-id":e.visitTaskId,"reading-category":e.readingCategory,"subject-code":e.subjectCode,"task-blind-name":e.taskBlindName,"is-reading-show-subject-info":e.isReadingShowSubjectInfo,"is-reading-show-previous-results":e.isReadingShowPreviousResults,"is-exists-clinical-data":e.isExistsClinicalData}}):e.isShow&&e.readingCategory&&5===e.readingCategory?i("OncologyReview",{attrs:{"trial-id":e.trialId,"subject-id":e.subjectId,"visit-task-id":e.visitTaskId,"reading-category":e.readingCategory,"subject-code":e.subjectCode,"task-blind-name":e.taskBlindName,"is-reading-show-subject-info":e.isReadingShowSubjectInfo,"is-reading-show-previous-results":e.isReadingShowPreviousResults,"is-exists-clinical-data":e.isExistsClinicalData}}):e._e(),e._v(" "),i("el-dialog",{staticStyle:{margin:"0px"},attrs:{width:"75%",visible:e.dialogVisible,"custom-class":"dialog-container","show-close":!1},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("span",{staticClass:"dialog-footer",attrs:{slot:"title"},slot:"title"},[e._v("\n 当前阅片任务存在临床数据,请查看。若已查看,请点击“确认”\n ")]),e._v(" "),i("div",{style:{height:e.dialogH,margin:0}},[i("ClinicalData",{attrs:{"trial-id":e.trialId,"subject-id":e.subjectId,"visit-task-id":e.visitTaskId}})],1),e._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{type:"primary"},on:{click:e.handleConfirmCD}},[e._v("确认")])],1)])],1)},a=[],r=i("3e42"),o=i("4360"),s=i("a599"),l=i("9b92"),c=i("2dff"),u=i("6501"),d=i("7962"),f=i("421a"),h=i("5f87"),p=i("b706"),m={name:"NoneDicomReading",components:{VisitReview:c["default"],AdReview:d["default"],GlobalReview:u["default"],OncologyReview:p["default"],ClinicalData:f["default"]},data:function(){return{loading:!1,readingCategory:null,subjectId:"",visitTaskId:"",trialId:"",subjectCode:"",taskBlindName:"",isReadingShowSubjectInfo:!1,isReadingShowPreviousResults:!1,isReadingTaskViewInOrder:!1,isExistsClinicalData:!1,isNeedReadClinicalData:!1,isReadClinicalData:!1,criterionType:null,readingTool:null,isNewSubject:null,dialogVisible:!1,dialogH:0,isShow:!1}},mounted:function(){var e=this;l["a"].$on("getNextTask",(function(){e.getTaskInfo()})),this.trialId=this.$router.currentRoute.query.trialId,this.subjectCode=this.$router.currentRoute.query.subjectCode,this.subjectId=this.$router.currentRoute.query.subjectId,this.visitTaskId=this.$router.currentRoute.query.visitTaskId,this.isReadingShowSubjectInfo=this.$router.currentRoute.query.isReadingShowSubjectInfo,this.isReadingShowPreviousResults=this.$router.currentRoute.query.isReadingShowPreviousResults,this.isReadingTaskViewInOrder=JSON.parse(this.$router.currentRoute.query.isReadingTaskViewInOrder),this.criterionType=this.$router.currentRoute.query.criterionType,this.readingTool=this.$router.currentRoute.query.readingTool,this.isNewSubject=this.$router.currentRoute.query.isNewSubject,this.isNewSubject&&this.isReadingTaskViewInOrder&&(this.$message.success("已开始受试者".concat(this.subjectCode,"阅片任务")),Object(s["a"])("isNewSubject","")),this.$router.currentRoute.query.TokenKey&&(o["a"].dispatch("user/setToken",this.$router.currentRoute.query.TokenKey),Object(s["a"])("TokenKey","")),this.getTaskInfo(),this.dialogH=this.$refs["container"].clientHeight-250+"px",window.addEventListener("resize",(function(){e.dialogH=e.$refs["container"].clientHeight-250+"px"}))},beforeDestroy:function(){l["a"].$off("getNextTask")},methods:{getTaskInfo:function(){var e=this;this.loading=!0;var t={subjectId:this.subjectId,trialId:this.trialId,subjectCode:this.subjectCode,visitTaskId:this.$router.currentRoute.query.visitTaskId,trialReadingCriterionId:this.$router.currentRoute.query.TrialReadingCriterionId};this.isShow=!1,Object(r["vc"])(t).then((function(t){if(e.readingCategory=t.Result.ReadingCategory,e.subjectId!==t.Result.SubjectId&&e.isReadingTaskViewInOrder){o["a"].dispatch("reading/resetVisitTasks");var i=Object(h["a"])();window.location.href="/noneDicomReading?trialId=".concat(e.trialId,"&subjectCode=").concat(t.Result.SubjectCode,"&subjectId=").concat(t.Result.SubjectId,"&isReadingShowPreviousResults=").concat(e.isReadingShowPreviousResults,"&isReadingShowSubjectInfo=").concat(e.isReadingShowSubjectInfo,"&criterionType=").concat(e.criterionType,"&readingTool=").concat(e.readingTool,"&isNewSubject=1&isReadingTaskViewInOrder=").concat(t.Result.IsReadingTaskViewInOrder,"&TokenKey=").concat(i)}e.subjectId=t.Result.SubjectId,e.visitTaskId=t.Result.VisitTaskId,e.subjectCode=t.Result.SubjectCode,e.taskBlindName=t.Result.TaskBlindName,e.isExistsClinicalData=t.Result.IsExistsClinicalData,e.isReadClinicalData=t.Result.IsReadClinicalData,e.isNeedReadClinicalData=t.Result.IsNeedReadClinicalData,e.isReadingShowSubjectInfo=t.Result.IsReadingShowSubjectInfo,e.isReadingShowPreviousResults=t.Result.IsReadingShowPreviousResults,e.digitPlaces=t.Result.DigitPlaces,localStorage.setItem("digitPlaces",2),e.$nextTick((function(){e.isExistsClinicalData&&e.isNeedReadClinicalData&&!e.isReadClinicalData&&(e.dialogVisible=!0)})),e.isShow=!0,e.loading=!1})).catch((function(){e.loading=!1}))},handleConfirmCD:function(){var e=this;this.loading=!0;var t=this.visitTaskId;Object(r["te"])({visitTaskId:t}).then((function(t){e.loading=!1,e.dialogVisible=!1,e.isReadClinicalData=!0})).catch((function(){e.loading=!1}))}}},g=m,v=(i("c15b"),i("2877")),b=Object(v["a"])(g,n,a,!1,null,"da41f3fe",null);t["default"]=b.exports},cfed:function(e,t,i){"use strict";i("7b90")},d01c:function(e,t,i){var n=i("4f85"),a=i("237f"),r=i("eda2"),o=r.encodeHTML,s=i("4319"),l=i("4e08"),c=(l.__DEV__,n.extend({type:"series.sankey",layoutInfo:null,levelModels:null,getInitialData:function(e,t){for(var i=e.edges||e.links,n=e.data||e.nodes,r=e.levels,o=this.levelModels={},l=0;l<r.length;l++)null!=r[l].depth&&r[l].depth>=0&&(o[r[l].depth]=new s(r[l],this,t));if(n&&i){var c=a(n,i,this,!0,u);return c.data}function u(e,t){e.wrapMethod("getItemModel",(function(e,t){return e.customizeGetParent((function(e){var i=this.parentModel,n=i.getData().getItemLayout(t).depth,a=i.levelModels[n];return a||this.parentModel})),e})),t.wrapMethod("getItemModel",(function(e,t){return e.customizeGetParent((function(e){var i=this.parentModel,n=i.getGraph().getEdgeByIndex(t),a=n.node1.getLayout().depth,r=i.levelModels[a];return r||this.parentModel})),e}))}},setNodePosition:function(e,t){var i=this.option.data[e];i.localX=t[0],i.localY=t[1]},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},formatTooltip:function(e,t,i){if("edge"===i){var n=this.getDataParams(e,i),a=n.data,r=a.source+" -- "+a.target;return n.value&&(r+=" : "+n.value),o(r)}if("node"===i){var s=this.getGraph().getNodeByIndex(e),l=s.getLayout().value,u=this.getDataParams(e,i).data.name;if(l)r=u+" : "+l;return o(r)}return c.superCall(this,"formatTooltip",e,t)},optionUpdated:function(){var e=this.option;!0===e.focusNodeAdjacency&&(e.focusNodeAdjacency="allEdges")},getDataParams:function(e,t){var i=c.superCall(this,"getDataParams",e,t);if(null==i.value&&"node"===t){var n=this.getGraph().getNodeByIndex(e),a=n.getLayout().value;i.value=a}return i},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",layout:null,left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,focusNodeAdjacency:!1,layoutIterations:32,label:{show:!0,position:"right",color:"#000",fontSize:12},levels:[],nodeAlign:"justify",itemStyle:{borderWidth:1,borderColor:"#333"},lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},animationEasing:"linear",animationDuration:1e3}})),u=c;e.exports=u},d01d:function(e,t,i){"use strict";i("2860")},d045:function(e,t,i){"use strict";i("7688")},d070:function(e,t,i){var n=i("3eba"),a=i("6d8b");function r(e,t){t.update="updateView",n.registerAction(t,(function(t,i){var n={};return i.eachComponent({mainType:"geo",query:t},(function(i){i[e](t.name);var r=i.coordinateSystem;a.each(r.regions,(function(e){n[e.name]=i.isSelected(e.name)||!1}))})),{selected:n,name:t.name}}))}i("1f1a"),i("eeea"),i("7661"),i("49e8"),r("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),r("select",{type:"geoSelect",event:"geoselected"}),r("unSelect",{type:"geoUnSelect",event:"geounselected"})},d090:function(e,t,i){var n=i("6d8b"),a=i("f934"),r=i("3842"),o=i("2039"),s=864e5;function l(e,t,i){this._model=e}function c(e,t,i,n){var a=i.calendarModel,r=i.seriesModel,o=a?a.coordinateSystem:r?r.coordinateSystem:null;return o===this?o[e](n):null}l.prototype={constructor:l,type:"calendar",dimensions:["time","value"],getDimensionsInfo:function(){return[{name:"time",type:"time"},"value"]},getRangeInfo:function(){return this._rangeInfo},getModel:function(){return this._model},getRect:function(){return this._rect},getCellWidth:function(){return this._sw},getCellHeight:function(){return this._sh},getOrient:function(){return this._orient},getFirstDayOfWeek:function(){return this._firstDayOfWeek},getDateInfo:function(e){e=r.parseDate(e);var t=e.getFullYear(),i=e.getMonth()+1;i=i<10?"0"+i:i;var n=e.getDate();n=n<10?"0"+n:n;var a=e.getDay();return a=Math.abs((a+7-this.getFirstDayOfWeek())%7),{y:t,m:i,d:n,day:a,time:e.getTime(),formatedDate:t+"-"+i+"-"+n,date:e}},getNextNDay:function(e,t){return t=t||0,0===t||(e=new Date(this.getDateInfo(e).time),e.setDate(e.getDate()+t)),this.getDateInfo(e)},update:function(e,t){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var i=this._rangeInfo.weeks||1,r=["width","height"],o=this._model.get("cellSize").slice(),s=this._model.getBoxLayoutParams(),l="horizontal"===this._orient?[i,7]:[7,i];n.each([0,1],(function(e){d(o,e)&&(s[r[e]]=o[e]*l[e])}));var c={width:t.getWidth(),height:t.getHeight()},u=this._rect=a.getLayoutRect(s,c);function d(e,t){return null!=e[t]&&"auto"!==e[t]}n.each([0,1],(function(e){d(o,e)||(o[e]=u[r[e]]/l[e])})),this._sw=o[0],this._sh=o[1]},dataToPoint:function(e,t){n.isArray(e)&&(e=e[0]),null==t&&(t=!0);var i=this.getDateInfo(e),a=this._rangeInfo,r=i.formatedDate;if(t&&!(i.time>=a.start.time&&i.time<a.end.time+s))return[NaN,NaN];var o=i.day,l=this._getRangeInfo([a.start.time,r]).nthWeek;return"vertical"===this._orient?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+l*this._sh+this._sh/2]:[this._rect.x+l*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},pointToData:function(e){var t=this.pointToDate(e);return t&&t.time},dataToRect:function(e,t){var i=this.dataToPoint(e,t);return{contentShape:{x:i[0]-(this._sw-this._lineWidth)/2,y:i[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:i,tl:[i[0]-this._sw/2,i[1]-this._sh/2],tr:[i[0]+this._sw/2,i[1]-this._sh/2],br:[i[0]+this._sw/2,i[1]+this._sh/2],bl:[i[0]-this._sw/2,i[1]+this._sh/2]}},pointToDate:function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,i=Math.floor((e[1]-this._rect.y)/this._sh)+1,n=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(i,t-1,n):this._getDateByWeeksAndDay(t,i-1,n)},convertToPixel:n.curry(c,"dataToPoint"),convertFromPixel:n.curry(c,"pointToData"),_initRangeOption:function(){var e=this._model.get("range"),t=e;if(n.isArray(t)&&1===t.length&&(t=t[0]),/^\d{4}$/.test(t)&&(e=[t+"-01-01",t+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(t)){var i=this.getDateInfo(t),a=i.date;a.setMonth(a.getMonth()+1);var r=this.getNextNDay(a,-1);e=[i.formatedDate,r.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(t)&&(e=[t,t]);var o=this._getRangeInfo(e);return o.start.time>o.end.time&&e.reverse(),e},_getRangeInfo:function(e){var t;e=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],e[0].time>e[1].time&&(t=!0,e.reverse());var i=Math.floor(e[1].time/s)-Math.floor(e[0].time/s)+1,n=new Date(e[0].time),a=n.getDate(),r=e[1].date.getDate();n.setDate(a+i-1);var o=n.getDate();if(o!==r){var l=n.getTime()-e[1].time>0?1:-1;while((o=n.getDate())!==r&&(n.getTime()-e[1].time)*l>0)i-=l,n.setDate(o-l)}var c=Math.floor((i+e[0].day+6)/7),u=t?1-c:c-1;return t&&e.reverse(),{range:[e[0].formatedDate,e[1].formatedDate],start:e[0],end:e[1],allDay:i,weeks:c,nthWeek:u,fweek:e[0].day,lweek:e[1].day}},_getDateByWeeksAndDay:function(e,t,i){var n=this._getRangeInfo(i);if(e>n.weeks||0===e&&t<n.fweek||e===n.weeks&&t>n.lweek)return!1;var a=7*(e-1)-n.fweek+t,r=new Date(n.start.time);return r.setDate(n.start.d+a),this.getDateInfo(r)}},l.dimensions=l.prototype.dimensions,l.getDimensionsInfo=l.prototype.getDimensionsInfo,l.create=function(e,t){var i=[];return e.eachComponent("calendar",(function(n){var a=new l(n,e,t);i.push(a),n.coordinateSystem=a})),e.eachSeries((function(e){"calendar"===e.get("coordinateSystem")&&(e.coordinateSystem=i[e.get("calendarIndex")||0])})),i},o.register("calendar",l);var u=l;e.exports=u},d0b8:function(e,t,i){},d0f9:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return 1===e.rowData.ReadingCategory?i("VisitReview",{attrs:{"audit-info":e.auditInfo,"row-data":e.rowData}}):2===e.rowData.ReadingCategory?i("GlobalReview",{attrs:{"audit-info":e.auditInfo,"row-data":e.rowData}}):4===e.rowData.ReadingCategory?i("AdReview",{attrs:{"audit-info":e.auditInfo,"row-data":e.rowData}}):5===e.rowData.ReadingCategory?i("OncologyReview",{attrs:{"audit-info":e.auditInfo,"row-data":e.rowData}}):e._e()},a=[],r=i("46f5"),o=i("cdce"),s=i("02c3"),l=i("919e"),c={name:"HistoricAssessment",components:{VisitReview:r["default"],GlobalReview:o["default"],AdReview:s["default"],OncologyReview:l["default"]},props:{auditInfo:{type:Object,default:function(){return{}}},rowData:{type:Object,default:function(){return{}}}}},u=c,d=(i("559d"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},d13d:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"base-search-form"},[i("el-form",{attrs:{size:e.size,inline:!0,"label-width":e.labelWidth}},[e._l(e.searchForm,(function(t){return i("el-form-item",{key:t.prop,attrs:{label:t.label}},["Input"===t.type?i("el-input",{style:{width:t.width},attrs:{placeholder:t.placeholder,size:"mini",readonly:t.readonly},model:{value:e.searchData[t.prop],callback:function(i){e.$set(e.searchData,t.prop,i)},expression:"searchData[item.prop]"}}):e._e(),e._v(" "),"Select"===t.type?i("el-select",{style:{width:t.width},attrs:{placeholder:t.placeholder,size:"mini"},on:{change:function(i){t.change&&t.change(e.that,e.searchData[t.prop])}},model:{value:e.searchData[t.prop],callback:function(i){e.$set(e.searchData,t.prop,i)},expression:"searchData[item.prop]"}},e._l(t.options,(function(e){return i("el-option",{key:e[t.props["label"]],attrs:{label:e[t.props["label"]],value:e[t.props["value"]]}})})),1):e._e(),e._v(" "),"Select2"===t.type?i("el-select",{style:{width:t.width},attrs:{placeholder:t.placeholder,size:"mini"},on:{change:function(i){t.change&&t.change(e.that,e.searchData[t.prop])}},model:{value:e.searchData[t.prop],callback:function(i){e.$set(e.searchData,t.prop,i)},expression:"searchData[item.prop]"}},e._l(t.options,(function(e,t){return i("el-option",{key:e,attrs:{label:e,value:t}})})),1):e._e(),e._v(" "),"Radio"===t.type?i("el-radio-group",{style:{width:t.width},model:{value:e.searchData[t.prop],callback:function(i){e.$set(e.searchData,t.prop,i)},expression:"searchData[item.prop]"}},e._l(t.radios,(function(t){return i("el-radio",{key:t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1):e._e(),e._v(" "),"RadioButton"===t.type?i("el-radio-group",{style:{width:t.width},on:{change:function(i){t.change&&t.change(e.searchData[t.prop])}},model:{value:e.searchData[t.prop],callback:function(i){e.$set(e.searchData,t.prop,i)},expression:"searchData[item.prop]"}},e._l(t.radios,(function(t){return i("el-radio-button",{key:t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1):e._e(),e._v(" "),"Checkbox"===t.type?i("el-checkbox-group",{style:{width:t.width},model:{value:e.searchData[t.prop],callback:function(i){e.$set(e.searchData,t.prop,i)},expression:"searchData[item.prop]"}},e._l(t.checkboxs,(function(t){return i("el-checkbox",{key:t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1):e._e(),e._v(" "),"Date"===t.type?i("el-date-picker",{style:{width:t.width},attrs:{placeholder:t.placeholder,"value-format":"yyyy-MM-dd",format:"yyyy-MM-dd","picker-options":t.pickerOption},model:{value:e.searchData[t.prop],callback:function(i){e.$set(e.searchData,t.prop,i)},expression:"searchData[item.prop]"}}):e._e(),e._v(" "),"Time"===t.type?i("el-time-select",{style:{width:t.width},attrs:{placeholder:t.placeholder,type:""},model:{value:e.searchData[t.prop],callback:function(i){e.$set(e.searchData,t.prop,i)},expression:"searchData[item.prop]"}}):e._e(),e._v(" "),"DateTime"===t.type?i("el-date-picker",{style:{width:t.width},attrs:{placeholder:t.placeholder,type:"datetime",disabled:t.disable&&t.disable(e.searchData[t.prop])},model:{value:e.searchData[t.prop],callback:function(i){e.$set(e.searchData,t.prop,i)},expression:"searchData[item.prop]"}}):e._e(),e._v(" "),"Switch"===t.type?i("el-switch",{style:{width:t.width},model:{value:e.searchData[t.prop],callback:function(i){e.$set(e.searchData,t.prop,i)},expression:"searchData[item.prop]"}}):e._e(),e._v(" "),"Custom"===t.type?e._t(t.slot):e._e()],2)})),e._v(" "),e._l(e.searchHandle,(function(t){return i("el-form-item",{key:t.label},[t.slot?e._t(t.slot):i("el-button",{attrs:{type:t.type,size:t.size||e.size,icon:t.icon||""},on:{click:function(i){return e.handleClick(t.emitKey)}}},[e._v(e._s(t.label))])],2)}))],2)],1)},a=[],r={props:{that:{type:Object,default:void 0},isHandle:{type:Boolean,default:!0},labelWidth:{type:String,default:""},size:{type:String,default:"mini"},searchForm:{type:Array,default:function(){return[]}},searchHandle:{type:Array,default:function(){return[]}},searchData:{type:Object,default:function(){}}},methods:{handleClick:function(e){this.$emit("".concat(e))}}},o=r,s=(i("75f8"),i("2877")),l=Object(s["a"])(o,n,a,!1,null,null,null);t["default"]=l.exports},d15d:function(e,t,i){var n=i("6d8b"),a=n.createHashMap,r=n.each;function o(e){var t=a();e.eachSeries((function(e){var i=e.get("stack");if(i){var n=t.get(i)||t.set(i,[]),a=e.getData(),r={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:e};if(!r.stackedDimension||!r.isStackedByIndex&&!r.stackedByDimension)return;n.length&&a.setCalculationInfo("stackedOnSeries",n[n.length-1].seriesModel),n.push(r)}})),t.each(s)}function s(e){r(e,(function(t,i){var n=[],a=[NaN,NaN],r=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=o.map(r,(function(r,l,c){var u,d,f=o.get(t.stackedDimension,c);if(isNaN(f))return a;s?d=o.getRawIndex(c):u=o.get(t.stackedByDimension,c);for(var h=NaN,p=i-1;p>=0;p--){var m=e[p];if(s||(d=m.data.rawIndexOf(m.stackedByDimension,u)),d>=0){var g=m.data.getByRawIndex(m.stackResultDimension,d);if(f>=0&&g>0||f<=0&&g<0){f+=g,h=g;break}}}return n[0]=f,n[1]=h,n}));o.hostModel.setData(l),t.data=l}))}e.exports=o},d205:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{ref:"surgeryForm",staticClass:"surgery-wrapper",attrs:{model:e.form,"label-width":"100px",size:"small",rules:e.rules}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:e.$t("trials:uploadClinicalData:table:surgeryName"),prop:"OperationName"}},[i("el-input",{model:{value:e.form.OperationName,callback:function(t){e.$set(e.form,"OperationName",t)},expression:"form.OperationName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:uploadClinicalData:table:surgeryDate"),prop:"OperationTime"}},[i("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date","value-format":"yyyy-MM-dd",format:"yyyy-MM-dd","picker-options":e.pickerOption},model:{value:e.form.OperationTime,callback:function(t){e.$set(e.form,"OperationTime",t)},expression:"form.OperationTime"}})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{size:"small",type:"primary",disabled:e.saveBtnLoading},on:{click:e.cancel}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.saveBtnLoading},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])},a=[],r=(i("ac6a"),i("456d"),i("3e42")),o={props:{parentData:{type:Object,default:function(){return{}}},data:{type:Object,default:function(){return{}}},subjectVisitId:{type:String,required:!0}},data:function(){return{trialId:this.$route.query.trialId,form:{Id:"",OperationName:"",OperationTime:"",ClinicalDataTrialSetId:""},rules:{OperationName:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:["blur","change"]}]},saveBtnLoading:!1,pickerOption:{disabledDate:function(e){return e.getTime()>Date.now()}}}},mounted:function(){if(Object.keys(this.data).length)for(var e in this.form)this.data.hasOwnProperty(e)&&(this.form[e]=this.data[e])},methods:{handleSave:function(){var e=this;this.$refs.surgeryForm.validate((function(t){t&&(e.saveBtnLoading=!0,e.form.SubjectVisitId=e.subjectVisitId,Object(r["n"])(e.trialId,e.form).then((function(t){e.saveBtnLoading=!1,e.$emit("closePSDialog"),e.$emit("refresh"),e.$message.success(e.$t("common:message:savedSuccessfully"))})).catch((function(){e.saveBtnLoading=!1})))}))},cancel:function(){this.$emit("closePSDialog")}}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},d21f:function(e,t,i){"use strict";i("e61d")},d22c:function(e,t,i){},d28b:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{"min-height":"400px"}},[e.isRender?i("el-form",{ref:"questions",attrs:{size:"small",model:e.questionForm}},e._l(e.questions,(function(t){return i("QSFormItem",{key:t.Id,attrs:{question:t,"question-form":e.questionForm},on:{resetFormItemData:e.resetFormItemData}})})),1):e._e()],1)},a=[],r=(i("ac6a"),i("e56e")),o=i("85de"),s={name:"QcQuestionPreview",components:{QSFormItem:o["default"]},props:{trialId:{type:String,default:""}},data:function(){return{loading:!1,questions:[],questionForm:{},isRender:!1}},mounted:function(){this.getQuestions()},methods:{getQuestions:function(){var e=this;this.loading=!0;var t={trialId:this.trialId};Object(r["qb"])(t).then((function(t){t.Result.map((function(t){e.$set(e.questionForm,t.Id,""),t.Childrens.length>0&&e.setChild(t.Childrens)})),e.questions=t.Result,e.isRender=!0,e.loading=!1})).catch((function(){e.loading=!1}))},setChild:function(e){var t=this;e.forEach((function(e){t.$set(t.questionForm,e.Id,""),e.Childrens&&e.Childrens.length>0&&t.setChild(e.Childrens)}))},resetFormItemData:function(e){this.questionForm[e]=""}}},l=s,c=(i("60d25"),i("2877")),u=Object(c["a"])(l,n,a,!1,null,"8cacef0c",null);t["default"]=u.exports},d28f:function(e,t,i){var n=i("3eba");i("84d5"),i("4650"),i("5e97");var a=i("903c"),r=i("6cb7");n.registerProcessor(n.PRIORITY.PROCESSOR.SERIES_FILTER,a),r.registerSubTypeDefaulter("legend",(function(){return"plain"}))},d2a5:function(e,t,i){var n=i("3eba");n.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},(function(){})),n.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},(function(){}))},d2cf:function(e,t,i){var n=i("6d8b"),a=i("401b"),r=i("cb6d"),o=i("1fab"),s=i("607d"),l=i("0b44"),c="silent";function u(e,t,i){return{type:e,event:i,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:i.zrX,offsetY:i.zrY,gestureEvent:i.gestureEvent,pinchX:i.pinchX,pinchY:i.pinchY,pinchScale:i.pinchScale,wheelDelta:i.zrDelta,zrByTouch:i.zrByTouch,which:i.which,stop:d}}function d(){s.stop(this.event)}function f(){}f.prototype.dispose=function(){};var h=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],p=function(e,t,i,n){o.call(this),this.storage=e,this.painter=t,this.painterRoot=n,i=i||new f,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,r.call(this),this.setHandlerProxy(i)};function m(e,t,i){if(e[e.rectHover?"rectContain":"contain"](t,i)){var n,a=e;while(a){if(a.clipPath&&!a.clipPath.contain(t,i))return!1;a.silent&&(n=!0),a=a.parent}return!n||c}return!1}function g(e,t,i){var n=e.painter;return t<0||t>n.getWidth()||i<0||i>n.getHeight()}p.prototype={constructor:p,setHandlerProxy:function(e){this.proxy&&this.proxy.dispose(),e&&(n.each(h,(function(t){e.on&&e.on(t,this[t],this)}),this),e.handler=this),this.proxy=e},mousemove:function(e){var t=e.zrX,i=e.zrY,n=g(this,t,i),a=this._hovered,r=a.target;r&&!r.__zr&&(a=this.findHover(a.x,a.y),r=a.target);var o=this._hovered=n?{x:t,y:i}:this.findHover(t,i),s=o.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),r&&s!==r&&this.dispatchToElement(a,"mouseout",e),this.dispatchToElement(o,"mousemove",e),s&&s!==r&&this.dispatchToElement(o,"mouseover",e)},mouseout:function(e){var t=e.zrEventControl,i=e.zrIsToLocalDOM;"only_globalout"!==t&&this.dispatchToElement(this._hovered,"mouseout",e),"no_globalout"!==t&&!i&&this.trigger("globalout",{type:"globalout",event:e})},resize:function(e){this._hovered={}},dispatch:function(e,t){var i=this[e];i&&i.call(this,t)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},dispatchToElement:function(e,t,i){e=e||{};var n=e.target;if(!n||!n.silent){var a="on"+t,r=u(t,e,i);while(n)if(n[a]&&(r.cancelBubble=n[a].call(n,r)),n.trigger(t,r),n=n.parent,r.cancelBubble)break;r.cancelBubble||(this.trigger(t,r),this.painter&&this.painter.eachOtherLayer((function(e){"function"===typeof e[a]&&e[a].call(e,r),e.trigger&&e.trigger(t,r)})))}},findHover:function(e,t,i){for(var n=this.storage.getDisplayList(),a={x:e,y:t},r=n.length-1;r>=0;r--){var o;if(n[r]!==i&&!n[r].ignore&&(o=m(n[r],e,t))&&(!a.topTarget&&(a.topTarget=n[r]),o!==c)){a.target=n[r];break}}return a},processGesture:function(e,t){this._gestureMgr||(this._gestureMgr=new l);var i=this._gestureMgr;"start"===t&&i.clear();var n=i.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if("end"===t&&i.clear(),n){var a=n.type;e.gestureEvent=a,this.dispatchToElement({target:n.target},a,n.event)}}},n.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(e){p.prototype[e]=function(t){var i,n,r=t.zrX,o=t.zrY,s=g(this,r,o);if("mouseup"===e&&s||(i=this.findHover(r,o),n=i.target),"mousedown"===e)this._downEl=n,this._downPoint=[t.zrX,t.zrY],this._upEl=n;else if("mouseup"===e)this._upEl=n;else if("click"===e){if(this._downEl!==this._upEl||!this._downPoint||a.dist(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,e,t)}})),n.mixin(p,o),n.mixin(p,r);var v=p;e.exports=v},d34b:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"dicom-container"},[i("div",{staticClass:"dicom-list"},[i("div",{staticClass:"container"},[i("div",{staticClass:"related-study-wrapper"},[i("div",{staticClass:"left"},[i("div",{staticClass:"visit-name-wrapper"},[e.visitTaskList.length>0?i("div",{staticStyle:{display:"flex","flex-direction":"row"}},e._l(e.visitTaskList,(function(t){return i("div",{key:t.VisitTaskId,staticClass:"visit-item",class:{"visit-item-active":e.activeTaskVisitId==t.VisitTaskId},on:{click:function(i){return i.preventDefault(),e.handleClick(t)}}},[e._v(e._s(t.TaskBlindName))])})),0):e._e()])]),e._v(" "),i("div",{staticClass:"right"},e._l(e.visitTaskList,(function(t){return i("div",{directives:[{name:"show",rawName:"v-show",value:e.activeTaskVisitId===t.VisitTaskId,expression:"activeTaskVisitId === s.VisitTaskId"}],key:t.VisitTaskId,staticClass:"study-wrapper"},[e.selectArr.includes(t.VisitTaskId)?i("StudyList",{ref:t.VisitTaskId,refInFor:!0,attrs:{"visit-task-id":t.VisitTaskId,"trial-id":e.trialId,"subject-visit-id":t.VisitId,"task-blind-name":t.TaskBlindName},on:{loadImageStack:e.loadImageStack,previewNoneDicoms:e.previewNoneDicoms}}):e._e()],1)})),0)])])]),e._v(" "),i("div",{staticClass:"dicom-viewer"},[i("div",{staticClass:"container"},[e.activeTaskVisitId?i("DicomViewer",{ref:"dicomViewer",attrs:{"is-exists-clinical-data":e.isExistsClinicalData,"is-exists-no-dicom-file":e.isExistsNoDicomFile,IseCRFShowInDicomReading:e.IseCRFShowInDicomReading,isReadingShowSubjectInfo:e.isReadingShowSubjectInfo},on:{previewCD:e.previewCD}}):e._e()],1)])])},a=[],r=(i("6762"),i("2fdb"),i("20d6"),i("96cf"),i("3b8d")),o=i("db72"),s=i("2048"),l=i("e4ac"),c=i("9b92"),u=i("4360"),d=i("5f87"),f=i("2f62"),h={name:"CustomizeReadPage",components:{DicomViewer:l["default"],StudyList:s["default"]},props:{isReadingShowSubjectInfo:{type:Boolean,required:!0},trialId:{type:String,required:!0},subjectId:{type:String,required:!0},subjectCode:{type:String,required:!0},visitTaskId:{type:String,required:!0},isExistsClinicalData:{type:Boolean,required:!0},isExistsNoDicomFile:{type:Boolean,required:!0},IseCRFShowInDicomReading:{type:Boolean,required:!0}},data:function(){return{activeName:"relation-study",tabs:["relation-study"],taskList:[],loading:!1,selectArr:[],activeTaskIndex:-1,activeTaskVisitId:"",measureData:[],activeTaskIsCurrentTask:!1,activeTaskIsBaseline:!1,activeTaskReadingTaskState:2,readingTaskState:2,open:null}},computed:Object(o["a"])({},Object(f["b"])(["visitTaskList"])),mounted:function(){var e=this;this.getVisitInfo(),c["a"].$on("getNextVisitInfo",(function(){e.getNextVisitInfo()})),c["a"].$on("toggleVisitList",function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(i){var n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=e.visitTaskList.findIndex((function(e){return e.VisitTaskId===i.visitTaskId})),e.activeTaskVisitId=i.visitTaskId,e.activeTaskIndex=n,e.activeTaskIsCurrentTask=e.visitTaskList[n].IsCurrentTask,e.activeTaskIsBaseline=e.visitTaskList[n].IsBaseLineTask,e.activeTaskReadingTaskState=e.visitTaskList[n].ReadingTaskState,e.visitTaskList[n].IsInit){t.next=23;break}if(a=e.$loading({fullscreen:!0}),e.visitTaskList[n].measureDataInit){t.next=11;break}return t.next=11,u["a"].dispatch("reading/getMeasuredData",e.visitTaskList[n].VisitTaskId);case 11:if(e.visitTaskList[n].studyListInit){t.next=14;break}return t.next=14,u["a"].dispatch("reading/getStudyInfo",{trialId:e.trialId,subjectVisitId:e.visitTaskList[n].VisitId,visitTaskId:e.visitTaskList[n].VisitTaskId,taskBlindName:e.visitTaskList[n].TaskBlindName});case 14:if(e.visitTaskList[n].readingQuestionsInit){t.next=17;break}return t.next=17,u["a"].dispatch("reading/getReadingQuestionAndAnswer",{trialId:e.trialId,visitTaskId:e.visitTaskList[n].VisitTaskId});case 17:if(e.visitTaskList[n].questionsInit){t.next=20;break}return t.next=20,u["a"].dispatch("reading/getDicomReadingQuestionAnswer",{trialId:e.trialId,visitTaskId:e.visitTaskList[n].VisitTaskId});case 20:return t.next=22,u["a"].dispatch("reading/setStatus",{visitTaskId:e.visitTaskList[n].VisitTaskId});case 22:a.close();case 23:e.selectArr.includes(e.visitTaskList[n].VisitTaskId)||e.selectArr.push(e.visitTaskList[n].VisitTaskId),e.$nextTick((function(){e.$refs[e.activeTaskVisitId][0].toggleStudy(i)}));case 25:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),c["a"].$on("isCanActiveNoneDicomTool",(function(t){e.open.postMessage({type:"isCanActiveNoneDicomTool",data:t},window.location)})),c["a"].$on("removeNoneDicomMeasureData",(function(t){e.open.postMessage({type:"removeNoneDicomMeasureData",data:t},window.location)})),c["a"].$on("addNoneDicomMeasureData",(function(t){e.open.postMessage({type:"addNoneDicomMeasureData",data:t},window.location)}))},beforeDestroy:function(){c["a"].$off("toggleVisitList"),c["a"].$off("getNextVisitInfo"),c["a"].$off("isCanActiveNoneDicomTool"),c["a"].$off("removeNoneDicomMeasureData"),c["a"].$off("addNoneDicomMeasureData")},methods:{getVisitInfo:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,i,n=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this.$loading({fullscreen:!0}),e.next=3,u["a"].dispatch("reading/getOrganInfo",this.visitTaskId);case 3:return e.next=5,u["a"].dispatch("reading/getVisitTasks",this.visitTaskId);case 5:if(i=this.visitTaskList.findIndex((function(e){return e.IsCurrentTask})),!(i>-1)){e.next=24;break}return e.next=9,u["a"].dispatch("reading/getMeasuredData",this.visitTaskList[i].VisitTaskId);case 9:return e.next=11,u["a"].dispatch("reading/getStudyInfo",{trialId:this.trialId,subjectVisitId:this.visitTaskList[i].VisitId,visitTaskId:this.visitTaskList[i].VisitTaskId,taskBlindName:this.visitTaskList[i].TaskBlindName});case 11:return e.next=13,u["a"].dispatch("reading/getReadingQuestionAndAnswer",{trialId:this.trialId,visitTaskId:this.visitTaskList[i].VisitTaskId});case 13:return e.next=15,u["a"].dispatch("reading/getDicomReadingQuestionAnswer",{trialId:this.trialId,visitTaskId:this.visitTaskList[i].VisitTaskId});case 15:return e.next=17,u["a"].dispatch("reading/setStatus",{visitTaskId:this.visitTaskList[i].VisitTaskId});case 17:this.activeTaskVisitId=this.visitTaskList[i].VisitTaskId,this.activeTaskIndex=i,this.activeTaskIsCurrentTask=this.visitTaskList[i].IsCurrentTask,this.activeTaskIsBaseline=this.visitTaskList[i].IsBaseLineTask,this.activeTaskReadingTaskState=this.visitTaskList[i].ReadingTaskState,this.selectArr.push(this.visitTaskList[i].VisitTaskId),this.$nextTick((function(){c["a"].$emit("getCustomTableQuestionAnswer",n.visitTaskList[i].VisitTaskId),n.$refs[n.activeTaskVisitId][0].getStudyInfo(!0)}));case 24:t.close();case 25:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getNextVisitInfo:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,i,n=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this.$loading({fullscreen:!0}),e.next=3,u["a"].dispatch("reading/getNextVisitTask",{visitTaskId:this.visitTaskId});case 3:if(i=this.visitTaskList.findIndex((function(e){return e.IsCurrentTask})),!(i>-1)){e.next=22;break}return e.next=7,u["a"].dispatch("reading/getMeasuredData",this.visitTaskList[i].VisitTaskId);case 7:return e.next=9,u["a"].dispatch("reading/getStudyInfo",{trialId:this.trialId,subjectVisitId:this.visitTaskList[i].VisitId,visitTaskId:this.visitTaskList[i].VisitTaskId,taskBlindName:this.visitTaskList[i].TaskBlindName});case 9:return e.next=11,u["a"].dispatch("reading/getReadingQuestionAndAnswer",{trialId:this.trialId,visitTaskId:this.visitTaskList[i].VisitTaskId});case 11:return e.next=13,u["a"].dispatch("reading/getDicomReadingQuestionAnswer",{trialId:this.trialId,visitTaskId:this.visitTaskList[i].VisitTaskId});case 13:return e.next=15,u["a"].dispatch("reading/setStatus",{visitTaskId:this.visitTaskList[i].VisitTaskId});case 15:this.activeTaskVisitId=this.visitTaskList[i].VisitTaskId,this.activeTaskIndex=i,this.activeTaskIsCurrentTask=this.visitTaskList[i].IsCurrentTask,this.activeTaskIsBaseline=this.visitTaskList[i].IsBaseLineTask,this.activeTaskReadingTaskState=this.visitTaskList[i].ReadingTaskState,this.selectArr.push(this.visitTaskList[i].VisitTaskId),this.$nextTick((function(){c["a"].$emit("getCustomTableQuestionAnswer",n.visitTaskList[i].VisitTaskId),n.$refs[n.activeTaskVisitId][0].getStudyInfo()}));case 22:t.close();case 23:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),handleClick:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){var i,n,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.activeTaskVisitId!==t.VisitTaskId){e.next=2;break}return e.abrupt("return");case 2:if(i=this.visitTaskList.findIndex((function(e){return e.VisitTaskId===t.VisitTaskId})),this.visitTaskList[i].IsInit){e.next=17;break}return n=this.$loading({fullscreen:!0}),e.next=7,u["a"].dispatch("reading/getMeasuredData",this.visitTaskList[i].VisitTaskId);case 7:return e.next=9,u["a"].dispatch("reading/getStudyInfo",{trialId:this.trialId,subjectVisitId:this.visitTaskList[i].VisitId,visitTaskId:this.visitTaskList[i].VisitTaskId,taskBlindName:this.visitTaskList[i].TaskBlindName});case 9:return e.next=11,u["a"].dispatch("reading/getReadingQuestionAndAnswer",{trialId:this.trialId,visitTaskId:this.visitTaskList[i].VisitTaskId});case 11:return e.next=13,u["a"].dispatch("reading/getDicomReadingQuestionAnswer",{trialId:this.trialId,visitTaskId:this.visitTaskList[i].VisitTaskId});case 13:return e.next=15,u["a"].dispatch("reading/setStatus",{visitTaskId:this.visitTaskList[i].VisitTaskId});case 15:c["a"].$emit("getCustomTableQuestionAnswer",this.visitTaskList[i].VisitTaskId),n.close();case 17:this.activeTaskVisitId=this.visitTaskList[i].VisitTaskId,this.activeTaskIndex=i,this.activeTaskIsCurrentTask=this.visitTaskList[i].IsCurrentTask,this.activeTaskIsBaseline=this.visitTaskList[i].IsBaseLineTask,this.activeTaskReadingTaskState=this.visitTaskList[i].ReadingTaskState,this.selectArr.includes(this.visitTaskList[i].VisitTaskId)||this.selectArr.push(this.visitTaskList[i].VisitTaskId),this.$nextTick((function(){a.$refs[a.activeTaskVisitId][0].initStudyList()}));case 24:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),loadImageStack:function(e){var t=this;this.$nextTick((function(){t.$refs.dicomViewer.loadImageStack(e)}))},previewCD:function(){var e=Object(d["a"])(),t=this.$router.resolve({path:"/clinicalData?subjectId=".concat(this.subjectId,"&trialId=").concat(this.trialId,"&visitTaskId=").concat(this.visitTaskId,"&TokenKey=").concat(e)});window.open(t.href,"_blank")},previewNoneDicoms:function(e){var t=this.visitTaskList.findIndex((function(t){return t.VisitTaskId===e.visitTaskId})),i=this.visitTaskList[t].TaskBlindName,n=Object(d["a"])(),a=this.$router.resolve({path:"/nonedicoms?subjectId=".concat(this.subjectId,"&trialId=").concat(this.trialId,"&visitTaskId=").concat(e.visitTaskId,"&taskBlindName=").concat(i,"&readingTaskState=").concat(this.visitTaskList[t].ReadingTaskState,"&TokenKey=").concat(n)});this.open=window.open(a.href,"_blank")}}},p=h,m=(i("558b"),i("2877")),g=Object(m["a"])(p,n,a,!1,null,"6e4d762c",null);t["default"]=g.exports},d357:function(e,t,i){var n=i("6d8b"),a=n.each,r=i("1c5f"),o=r.simpleLayout,s=r.simpleLayoutEdge;function l(e,t){e.eachSeriesByType("graph",(function(e){var t=e.get("layout"),i=e.coordinateSystem;if(i&&"view"!==i.type){var n=e.getData(),r=[];a(i.dimensions,(function(e){r=r.concat(n.mapDimension(e,!0))}));for(var l=0;l<n.count();l++){for(var c=[],u=!1,d=0;d<r.length;d++){var f=n.get(r[d],l);isNaN(f)||(u=!0),c.push(f)}u?n.setItemLayout(l,i.dataToPoint(c)):n.setItemLayout(l,[NaN,NaN])}s(n.graph,e)}else t&&"none"!==t||o(e)}))}e.exports=l},d36a:function(e,t,i){"use strict";i("f026")},d38e:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[i("div",{staticStyle:{padding:"0 20px"}},[i("div",{staticClass:"info-content",domProps:{innerHTML:e._s(e.crcMessageInfo.TalkContent)}})]),e._v(" "),i("div",[i("div",{staticStyle:{padding:"10px",background:"#f3f3f3","border-radius":"10px","margin-top":"10px"}},[i("div",{staticStyle:{display:"flex","margin-bottom":"10px","justify-content":"space-between","align-items":"center"}},[i("div",[e._v("\n "+e._s(e.$t("trials:consistencyCheck:title:message20"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.addMsg}},[e._v(e._s(e.$t("trials:consistencyCheck:title:add")))])],1),e._v(" "),i("el-table",{attrs:{data:e.msgList}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"",label:e.$t("trials:consistencyCheck:title:studyDate"),"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.StudyDate)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"",label:e.$t("trials:consistencyCheck:title:studyModality"),"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.Modality)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"",label:e.$t("trials:consistencyCheck:title:submitted"),"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("YesOrNo",t.row.IsJoin))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"",label:e.$t("trials:consistencyCheck:title:existed"),"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-switch",{attrs:{disabled:!t.row.IsJoin},on:{change:e.compareStudy},model:{value:t.row.IsCheck,callback:function(i){e.$set(t.row,"IsCheck",i)},expression:"scope.row.IsCheck"}})]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"",width:"100px",label:e.$t("common:action:action"),fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{disabled:t.row.IsJoin,size:"small",type:"text"},on:{click:function(i){return e.moveMsg(t.$index)}}},[e._v("\n "+e._s(e.$t("trials:consistencyCheck:title:delete"))+"\n ")])]}}])})],1),e._v(" "),i("el-form",{ref:"revenusForm",attrs:{size:"small","label-width":"400px","label-position":"top",rules:e.rules,model:e.form}},[e.isLackOf?i("el-form-item",{attrs:{label:e.$t("trials:consistencyCheck:title:title1"),prop:"reason"}},[i("el-checkbox-group",{staticStyle:{display:"flex","flex-direction":"column"},model:{value:e.form.reason,callback:function(t){e.$set(e.form,"reason",t)},expression:"form.reason"}},[i("el-checkbox",{staticStyle:{display:"block"},attrs:{label:"EDC按疗效评估数据记录影像检查信息;"}},[e._v("\n "+e._s(e.$t("trials:consistencyCheck:title:message9"))+"\n ")]),e._v(" "),i("el-checkbox",{staticStyle:{display:"block"},attrs:{label:"EDC录入错误;"}},[e._v("\n "+e._s(e.$t("trials:consistencyCheck:title:message10"))+"\n ")]),e._v(" "),i("el-checkbox",{staticStyle:{display:"block"},attrs:{label:"IRC数据上传错误申请回退并重新上传;"}},[e._v("\n "+e._s(e.$t("trials:consistencyCheck:title:message11"))+"\n ")])],1)],1):e._e()],1)],1)]),e._v(" "),i("div",{staticClass:"function"},[i("el-button",{attrs:{type:"primary"},on:{click:e.handleReply}},[e._v("\n "+e._s(e.$t("trials:consistencyCheck:button:sendMessage"))+"\n ")])],1),e._v(" "),e.studyVisible?i("el-dialog",{directives:[{name:"dialogDrag",rawName:"v-dialogDrag"}],attrs:{visible:e.studyVisible,"close-on-click-modal":!1,"append-to-body":"","custom-class":"base-dialog-wrapper",width:"500px",title:e.$t("trials:consistencyCheck:title:addStudy")},on:{"update:visible":function(t){e.studyVisible=t}}},[i("el-form",[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{"label-width":"80px",label:e.$t("trials:consistencyCheck:title:studyDate")}},[i("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date","value-format":"yyyy-MM-dd"},model:{value:e.typeInfo.StudyDate,callback:function(t){e.$set(e.typeInfo,"StudyDate",t)},expression:"typeInfo.StudyDate"}})],1),e._v(" "),i("el-form-item",{attrs:{"label-width":"80px",label:e.$t("trials:consistencyCheck:title:studyModality")}},[i("el-select",{staticStyle:{width:"100%"},model:{value:e.typeInfo.Modality,callback:function(t){e.$set(e.typeInfo,"Modality",t)},expression:"typeInfo.Modality"}},e._l(e.$d.Modality,(function(e){return i("el-option",{attrs:{label:e.raw.Value,value:e.value}})})),1)],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleCancel}},[e._v(" "+e._s(e.$t("common:button:cancel")))]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])],1):e._e()],1)},a=[],r=(i("a481"),i("db72")),o=(i("ac6a"),{name:"CrcSendMessage",props:{crcMessageInfo:{type:Object,default:function(){return{TalkContent:null}}}},data:function(){return{loading:!1,msgList:[],studyVisible:!1,typeInfo:{StudyDate:null,Modality:null,IsJoin:!1,IsCheck:!0},isLackOf:!1,EDCList:[],IRCList:[],form:{reason:[]},rules:{reason:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}]}}},mounted:function(){var e=this;this.crcMessageInfo.ParamInfoList.forEach((function(t){e.msgList.push(Object(r["a"])(Object(r["a"])({},t),{},{IsJoin:!0,Ischeck:!1}))})),this.compareStudy()},methods:{compareStudy:function(){var e=this,t=!1;this.IRCList=[],this.msgList.forEach((function(i){i.IsJoin!==i.IsCheck&&(t=!0,e.IRCList.push(i))})),this.isLackOf=t},handleCancel:function(){this.studyVisible=!1,this.typeInfo={StudyDate:null,Modality:null}},handleSave:function(){this.typeInfo.StudyDate&&this.typeInfo.Modality?(this.msgList.push(Object(r["a"])({},this.typeInfo)),this.compareStudy(),this.studyVisible=!1,this.typeInfo={StudyDate:null,Modality:null,IsJoin:!1,IsCheck:!0}):this.$message.error(this.$t("trials:consistencyCheck:title:title2"))},closeLoading:function(){this.loading=!1},addMsg:function(){this.studyVisible=!0},moveMsg:function(e){var t=this;this.$confirm(this.$t("trials:consistencyCheck:title:title3")).then((function(i){t.msgList.splice(e,1),t.compareStudy()}))},handleReply:function(){var e=this;0!==this.msgList.length?this.$refs.revenusForm.validate((function(t){if(t){var i="";i+="".concat(e.$t("trials:consistencyCheck:title:title5"),"<br>"),e.msgList.forEach((function(t,n){var a=e.$t("trials:consistencyCheck:title:title6").replace("yyyy",t.StudyDate);a=a.replace("xxx",t.Modality),i+="".concat(n+1,". ").concat(a,"<br>")})),e.isLackOf?(i+="<br>",i+="".concat(e.$t("trials:consistencyCheck:title:title7"),"<br>"),e.IRCList.forEach((function(t,n){var a=e.$t("trials:consistencyCheck:title:title6").replace("yyyy",t.StudyDate);a=a.replace("xxx",t.Modality),i+="".concat(n+1,".").concat(a,"").concat(t.IsJoin&&!t.IsCheck?e.$t("trials:consistencyCheck:title:title8"):e.$t("trials:consistencyCheck:title:title9"),"<br>")})),e.form.reason.length>0&&(i+="<br>",i+="".concat(e.$t("trials:consistencyCheck:title:title10"),"<br>"),e.form.reason.forEach((function(e,t){i+="".concat(t+1,".").concat(e,"<br>")})))):i+="<br>".concat(e.$t("trials:consistencyCheck:title:title11")),console.log(i),e.$emit("sendMessage",i,e.closeLoading)}})):this.$message.error(this.$t("trials:consistencyCheck:title:title4"))}}}),s=o,l=(i("aa3e1"),i("2877")),c=Object(l["a"])(s,n,a,!1,null,"3dd20f93",null);t["default"]=c.exports},d394:function(e,t,i){},d3a0:function(e,t,i){var n=i("3eba"),a=i("6d8b"),r=i("29a8"),o=i("2145"),s=r.toolbox.magicType,l="__ec_magicType_stack__";function c(e){this.model=e}c.defaultOption={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:a.clone(s.title),option:{},seriesIndex:{}};var u=c.prototype;u.getIcons=function(){var e=this.model,t=e.get("icon"),i={};return a.each(e.get("type"),(function(e){t[e]&&(i[e]=t[e])})),i};var d={line:function(e,t,i,n){if("bar"===e)return a.merge({id:t,type:"line",data:i.get("data"),stack:i.get("stack"),markPoint:i.get("markPoint"),markLine:i.get("markLine")},n.get("option.line")||{},!0)},bar:function(e,t,i,n){if("line"===e)return a.merge({id:t,type:"bar",data:i.get("data"),stack:i.get("stack"),markPoint:i.get("markPoint"),markLine:i.get("markLine")},n.get("option.bar")||{},!0)},stack:function(e,t,i,n){var r=i.get("stack")===l;if("line"===e||"bar"===e)return n.setIconStatus("stack",r?"normal":"emphasis"),a.merge({id:t,stack:r?"":l},n.get("option.stack")||{},!0)}},f=[["line","bar"],["stack"]];u.onclick=function(e,t,i){var n=this.model,r=n.get("seriesIndex."+i);if(d[i]){var o,c={series:[]},u=function(t){var r=t.subType,o=t.id,s=d[i](r,o,t,n);s&&(a.defaults(s,t.option),c.series.push(s));var l=t.coordinateSystem;if(l&&"cartesian2d"===l.type&&("line"===i||"bar"===i)){var u=l.getAxesByScale("ordinal")[0];if(u){var f=u.dim,h=f+"Axis",p=e.queryComponents({mainType:h,index:t.get(name+"Index"),id:t.get(name+"Id")})[0],m=p.componentIndex;c[h]=c[h]||[];for(var g=0;g<=m;g++)c[h][m]=c[h][m]||{};c[h][m].boundaryGap="bar"===i}}};if(a.each(f,(function(e){a.indexOf(e,i)>=0&&a.each(e,(function(e){n.setIconStatus(e,"normal")}))})),n.setIconStatus(i,"emphasis"),e.eachComponent({mainType:"series",query:null==r?null:{seriesIndex:r}},u),"stack"===i){var h=c.series&&c.series[0]&&c.series[0].stack===l;o=h?a.merge({stack:s.title.tiled},s.title):a.clone(s.title)}t.dispatchAction({type:"changeMagicType",currentType:i,newOption:c,newTitle:o,featureName:"magicType"})}},n.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(e,t){t.mergeOption(e.newOption)})),o.register("magicType",c);var h=c;e.exports=h},d3a3:function(e,t,i){},d3a4:function(e,t,i){var n,a=i("22d1"),r="urn:schemas-microsoft-com:vml",o="undefined"===typeof window?null:window,s=!1,l=o&&o.document;function c(e){return n(e)}if(l&&!a.canvasSupported)try{!l.namespaces.zrvml&&l.namespaces.add("zrvml",r),n=function(e){return l.createElement("<zrvml:"+e+' class="zrvml">')}}catch(d){n=function(e){return l.createElement("<"+e+' xmlns="'+r+'" class="zrvml">')}}function u(){if(!s&&l){s=!0;var e=l.styleSheets;e.length<31?l.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):e[0].addRule(".zrvml","behavior:url(#default#VML)")}}t.doc=l,t.createNode=c,t.initVML=u},d3de:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div")},a=[],r={},o=r,s=i("2877"),l=Object(s["a"])(o,n,a,!1,null,"673cd722",null);t["default"]=l.exports},d3ee:function(e,t,i){"use strict";i("66ad")},d3f47:function(e,t){function i(e){return{seriesType:e,reset:function(e,t){var i=t.findComponents({mainType:"legend"});if(i&&i.length){var n=e.getData();n.filterSelf((function(e){for(var t=n.getName(e),a=0;a<i.length;a++)if(!i[a].isSelected(t))return!1;return!0}))}}}}e.exports=i},d42f:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{ref:"reading_stats",staticStyle:{width:"100%",height:"100%","padding-top":"5px"}})},a=[],r=i("313e"),o=i.n(r),s=i("5fd4"),l=i("6331"),c={props:{area:{type:String,default:""}},data:function(){return{myChart:"",data:[],sum:0}},watch:{area:function(){this.myChart&&this.myChart.resize()}},mounted:function(){this.getReadingData()},methods:{initChart:function(e){var t=["#2fA2FF ","#27d08a","#2f89cf","#FBD444","#7F6AAD","#585247"],i={title:{text:"Workload",subtext:this.sum,textStyle:{fontSize:Object(l["a"])(.16),color:"#fff"},subtextStyle:{fontSize:Object(l["a"])(.2),color:"#fff"},textAlign:"center",left:"49%",top:"41%"},tooltip:{trigger:"item",formatter:"{a} <br/>{b}: {c} ({d}%)"},legend:{show:!0,top:"2%",icon:"circle",itemWidth:Object(l["a"])(.1),textStyle:{color:"#fff",fontSize:Object(l["a"])(.14)}},color:t,series:[{name:"Total",type:"pie",radius:["50%","75%"],center:["50%","50%"],labelLine:{normal:{length:"4%",length2:"2%",lineStyle:{color:"#e6e6e6"}}},label:{normal:{position:"inner",formatter:"{per|{c}}",rich:{a:{color:"#fff",fontSize:Object(l["a"])(.12),lineHeight:Object(l["a"])(.2),align:"center"},hr:{width:"100%",height:0,alien:"center"},per:{color:"#fff",align:"center",fontSize:Object(l["a"])(.15)}}}},itemStyle:{borderWidth:Object(l["a"])(.3)},data:e}],animationEasing:"elasticOut",animationDelayUpdate:function(e){return 5*e}};this.$refs.reading_stats&&(this.myChart=o.a.init(this.$refs.reading_stats),this.myChart.setOption(i))},getReadingData:function(){var e=this;Object(s["d"])().then((function(t){if(t.IsSuccess){var i=[];if(t.Result)for(var n in t.Result){var a=n;"Timepoint"===n?a="TP":"Adjudication"===n?a="AD":"Global"===n&&(a="GL"),i.push({name:a,value:t.Result[n]}),e.sum+=t.Result[n]}e.initChart(i)}else e.$message({message:t.ErrorMessage,type:"error"})}))}}},u=c,d=i("2877"),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},d454:function(e,t,i){"use strict";i("3d96")},d498:function(e,t,i){var n=i("cbe5"),a=i("4fac"),r=n.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(e,t){a.buildPath(e,t,!1)}});e.exports=r},d4982:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"taskAllocationRuleDataForm",attrs:{model:e.form,size:"small",rules:e.rules,"label-width":"140px"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:"阅片人",prop:"DoctorUserId"}},[i("el-select",{attrs:{disabled:!!e.form.Id,clearable:""},model:{value:e.form.DoctorUserId,callback:function(t){e.$set(e.form,"DoctorUserId",t)},expression:"form.DoctorUserId"}},e._l(e.doctorUserList,(function(e){return i("el-option",{attrs:{label:e.UserName+"("+e.FullName+")",value:e.DoctorUserId}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"访视任务数",prop:"PlanVisitCount"}},[i("el-input-number",{attrs:{min:0,"controls-position":"right"},model:{value:e.form.PlanVisitCount,callback:function(t){e.$set(e.form,"PlanVisitCount",t)},expression:"form.PlanVisitCount"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"裁判任务数",prop:"PlanJudgeCount"}},[i("el-input-number",{attrs:{min:0,"controls-position":"right"},model:{value:e.form.PlanJudgeCount,callback:function(t){e.$set(e.form,"PlanJudgeCount",t)},expression:"form.PlanJudgeCount"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"全局任务数",prop:"PlanGlobalCount"}},[i("el-input-number",{attrs:{min:0,"controls-position":"right"},model:{value:e.form.PlanGlobalCount,callback:function(t){e.$set(e.form,"PlanGlobalCount",t)},expression:"form.PlanGlobalCount"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"肿瘤学阅片任务数",prop:"PlanTumorCount"}},[i("el-input-number",{attrs:{min:0,"controls-position":"right"},model:{value:e.form.PlanTumorCount,callback:function(t){e.$set(e.form,"PlanTumorCount",t)},expression:"form.PlanTumorCount"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"状态"}},[i("el-radio-group",{model:{value:e.form.IsEnable,callback:function(t){e.$set(e.form,"IsEnable",t)},expression:"form.IsEnable"}},e._l(e.$d.IsEnable,(function(t){return i("el-radio",{key:"form.IsEnable"+t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"备注"}},[i("el-input",{attrs:{type:"textarea",maxlength:"100","show-word-limit":""},model:{value:e.form.Note,callback:function(t){e.$set(e.form,"Note",t)},expression:"form.Note"}})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.close}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.save}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])},a=[],r=i("db72"),o=(i("ac6a"),i("456d"),i("958c")),s={name:"AddOrUpdateTaskAllocationRuleData",props:{data:{type:Object,default:function(){return{}}},doctorUserList:{type:Array,default:function(){return[]}}},data:function(){return{form:{Id:null,TrialId:null,PlanVisitCount:0,PlanJudgeCount:0,PlanGlobalCount:0,PlanTumorCount:0,DoctorUserId:null,IsEnable:!0,Note:""},rules:{DoctorUserId:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}],PlanVisitCount:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}],PlanJudgeCount:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}],PlanGlobalCount:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}],PlanTumorCount:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}]},loading:!1,btnLoading:!1}},mounted:function(){console.log(this.doctorUserList),console.log(this.data),this.form.TrialId=this.$route.query.trialId,Object.keys(this.data).length&&this.data.Id&&(this.form=Object(r["a"])({},this.data))},methods:{save:function(){var e=this;this.$refs.taskAllocationRuleDataForm.validate((function(t){console.log(t),t&&(e.btnLoading=!0,e.loading=!0,Object(o["d"])(e.form).then((function(t){e.loading=!1,e.btnLoading=!1,e.$message.success("保存成功"),e.$emit("getList")})).catch((function(){e.loading=!1,e.btnLoading=!1})))}))},close:function(){this.$emit("close")}}},l=s,c=i("2877"),u=Object(c["a"])(l,n,a,!1,null,"7f20e73d",null);t["default"]=u.exports},d4b1:function(e,t,i){var n=i("3eba"),a=i("17d6"),r=n.extendComponentView({type:"axisPointer",render:function(e,t,i){var n=t.getComponent("tooltip"),r=e.get("triggerOn")||n&&n.get("triggerOn")||"mousemove|click";a.register("axisPointer",i,(function(e,t,i){"none"!==r&&("leave"===e||r.indexOf(e)>=0)&&i({type:"updateAxisPointer",currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})}))},remove:function(e,t){a.unregister(t.getZr(),"axisPointer"),r.superApply(this._model,"remove",arguments)},dispose:function(e,t){a.unregister("axisPointer",t),r.superApply(this._model,"dispose",arguments)}}),o=r;e.exports=o},d4c3:function(e,t,i){"use strict";i("fccc")},d4c6:function(e,t,i){var n=i("cbe5"),a=n.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var e=this.__dirtyPath,t=this.shape.paths,i=0;i<t.length;i++)e=e||t[i].__dirtyPath;this.__dirtyPath=e,this.__dirty=this.__dirty||e},beforeBrush:function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),i=0;i<e.length;i++)e[i].path||e[i].createPathProxy(),e[i].path.setScale(t[0],t[1],e[i].segmentIgnoreThreshold)},buildPath:function(e,t){for(var i=t.paths||[],n=0;n<i.length;n++)i[n].buildPath(e,i[n].shape,!0)},afterBrush:function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].__dirtyPath=!1},getBoundingRect:function(){return this._updatePathDirty(),n.prototype.getBoundingRect.call(this)}});e.exports=a},d4d1:function(e,t,i){var n=i("cbe5"),a=i("401b"),r=i("897a"),o=a.min,s=a.max,l=a.scaleAndAdd,c=a.copy,u=[],d=[],f=[];function h(e){return isNaN(e[0])||isNaN(e[1])}function p(e,t,i,n,a,r,o,s,l,c,u){return"none"!==c&&c?m.apply(this,arguments):g.apply(this,arguments)}function m(e,t,i,n,a,r,o,s,l,u,p){for(var m=0,g=i,v=0;v<n;v++){var b=t[g];if(g>=a||g<0)break;if(h(b)){if(p){g+=r;continue}break}if(g===i)e[r>0?"moveTo":"lineTo"](b[0],b[1]);else if(l>0){var y=t[m],w="y"===u?1:0,_=(b[w]-y[w])*l;c(d,y),d[w]=y[w]+_,c(f,b),f[w]=b[w]-_,e.bezierCurveTo(d[0],d[1],f[0],f[1],b[0],b[1])}else e.lineTo(b[0],b[1]);m=g,g+=r}return v}function g(e,t,i,n,r,p,m,g,v,b,y){for(var w=0,_=i,I=0;I<n;I++){var x=t[_];if(_>=r||_<0)break;if(h(x)){if(y){_+=p;continue}break}if(_===i)e[p>0?"moveTo":"lineTo"](x[0],x[1]),c(d,x);else if(v>0){var S=_+p,T=t[S];if(y)while(T&&h(t[S]))S+=p,T=t[S];var C=.5,k=t[w];T=t[S];if(!T||h(T))c(f,x);else{var R,D;if(h(T)&&!y&&(T=x),a.sub(u,T,k),"x"===b||"y"===b){var L="x"===b?0:1;R=Math.abs(x[L]-k[L]),D=Math.abs(x[L]-T[L])}else R=a.dist(x,k),D=a.dist(x,T);C=D/(D+R),l(f,x,u,-v*(1-C))}o(d,d,g),s(d,d,m),o(f,f,g),s(f,f,m),e.bezierCurveTo(d[0],d[1],f[0],f[1],x[0],x[1]),l(d,x,u,v*C)}else e.lineTo(x[0],x[1]);w=_,_+=p}return I}function v(e,t){var i=[1/0,1/0],n=[-1/0,-1/0];if(t)for(var a=0;a<e.length;a++){var r=e[a];r[0]<i[0]&&(i[0]=r[0]),r[1]<i[1]&&(i[1]=r[1]),r[0]>n[0]&&(n[0]=r[0]),r[1]>n[1]&&(n[1]=r[1])}return{min:t?i:n,max:t?n:i}}var b=n.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},brush:r(n.prototype.brush),buildPath:function(e,t){var i=t.points,n=0,a=i.length,r=v(i,t.smoothConstraint);if(t.connectNulls){for(;a>0;a--)if(!h(i[a-1]))break;for(;n<a;n++)if(!h(i[n]))break}while(n<a)n+=p(e,i,n,a,a,1,r.min,r.max,t.smooth,t.smoothMonotone,t.connectNulls)+1}}),y=n.extend({type:"ec-polygon",shape:{points:[],stackedOnPoints:[],smooth:0,stackedOnSmooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},brush:r(n.prototype.brush),buildPath:function(e,t){var i=t.points,n=t.stackedOnPoints,a=0,r=i.length,o=t.smoothMonotone,s=v(i,t.smoothConstraint),l=v(n,t.smoothConstraint);if(t.connectNulls){for(;r>0;r--)if(!h(i[r-1]))break;for(;a<r;a++)if(!h(i[a]))break}while(a<r){var c=p(e,i,a,r,r,1,s.min,s.max,t.smooth,o,t.connectNulls);p(e,n,a+c-1,c,r,-1,l.min,l.max,t.stackedOnSmooth,o,t.connectNulls),a+=c+1,e.closePath()}}});t.Polyline=b,t.Polygon=y},d51b:function(e,t){var i=function(){this.head=null,this.tail=null,this._len=0},n=i.prototype;n.insert=function(e){var t=new a(e);return this.insertEntry(t),t},n.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},n.remove=function(e){var t=e.prev,i=e.next;t?t.next=i:this.head=i,i?i.prev=t:this.tail=t,e.next=e.prev=null,this._len--},n.len=function(){return this._len},n.clear=function(){this.head=this.tail=null,this._len=0};var a=function(e){this.value=e,this.next,this.prev},r=function(e){this._list=new i,this._map={},this._maxSize=e||10,this._lastRemovedEntry=null},o=r.prototype;o.put=function(e,t){var i=this._list,n=this._map,r=null;if(null==n[e]){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=i.head;i.remove(l),delete n[l.key],r=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new a(t),s.key=e,i.insertEntry(s),n[e]=s}return r},o.get=function(e){var t=this._map[e],i=this._list;if(null!=t)return t!==i.tail&&(i.remove(t),i.insertEntry(t)),t.value},o.clear=function(){this._list.clear(),this._map={}};var s=r;e.exports=s},d524:function(e,t,i){"use strict";i("bb1a")},d55a:function(e,t,i){"use strict";i("c523")},d55c:function(e,t,i){"use strict";i("e3da")},d592:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",{staticClass:"visit-list"},[i("template",{slot:"search-container"},[i("el-form",{staticClass:"base-search-form",attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:crcUpload:table:subjectId")}},[i("el-input",{staticStyle:{width:"100px"},model:{value:e.searchData.SubjectInfo,callback:function(t){e.$set(e.searchData,"SubjectInfo",t)},expression:"searchData.SubjectInfo"}})],1),e._v(" "),i("el-form-item",{staticClass:"my_multiple",attrs:{label:e.$t("trials:crcUpload:table:visitName")}},[i("el-select",{staticStyle:{width:"140px"},attrs:{clearable:"",multiple:""},model:{value:e.searchData.VisitPlanArray,callback:function(t){e.$set(e.searchData,"VisitPlanArray",t)},expression:"searchData.VisitPlanArray"}},[e._l(e.visitPlanOptions,(function(t,n){return i("el-option",{key:n,attrs:{label:t.VisitName,value:t.VisitNum}},[i("span",{staticStyle:{float:"left"}},[e._v(e._s(t.VisitName))])])})),e._v(" "),i("el-option",{key:"Other",attrs:{label:"OutPlan",value:"1.11"}})],2)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:crcUpload:table:submitState")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.SubmitState,callback:function(t){e.$set(e.searchData,"SubmitState",t)},expression:"searchData.SubmitState"}},e._l(e.$d.SubmitState,(function(e){return i("el-option",{key:e.label,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),0!==e.otherInfo.QCProcessEnum?i("el-form-item",{attrs:{label:e.$t("trials:crcUpload:table:auditState")}},[2===e.otherInfo.QCProcessEnum?i("el-select",{staticStyle:{width:"120px"},attrs:{multiple:""},model:{value:e.searchData.AuditStateArray,callback:function(t){e.$set(e.searchData,"AuditStateArray",t)},expression:"searchData.AuditStateArray"}},e._l(e.$d.AuditStateRC,(function(e,t){return i("el-option",{directives:[{name:"show",rawName:"v-show",value:e.value<=8,expression:"item.value <= 8"}],key:"AuditStateRC"+e.label+t,attrs:{value:e.value,label:e.label}})})),1):e._e(),e._v(" "),1===e.otherInfo.QCProcessEnum?i("el-select",{staticStyle:{width:"120px"},attrs:{multiple:""},model:{value:e.searchData.AuditStateArray,callback:function(t){e.$set(e.searchData,"AuditStateArray",t)},expression:"searchData.AuditStateArray"}},e._l(e.$d.AuditStatePE,(function(e,t){return i("el-option",{directives:[{name:"show",rawName:"v-show",value:e.value<=8,expression:"item.value <= 8"}],key:"AuditStatePE"+e.label+t,attrs:{value:e.value,label:e.label}})})),1):e._e()],1):e._e(),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:seletctedReviews:table:submissionTime")}},[i("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd HH:mm:ss",type:"datetimerange"},on:{change:e.changeTimeList},model:{value:e.timeList,callback:function(t){e.timeList=t},expression:"timeList"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")])],1)],1),e._v(" "),i("span",[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:crc-upload:submit"],expression:"['trials:trials-panel:visit:crc-upload:submit']"}],attrs:{type:"primary",icon:"el-icon-check",disabled:0===e.selectArr.length},on:{click:e.handleBulkSubmit}},[e._v("\n "+e._s(e.$t("trials:crcUpload:button:submit"))+"\n ")]),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:crc-upload:new"],expression:"['trials:trials-panel:visit:crc-upload:new']"}],attrs:{type:"primary",icon:"el-icon-plus"},on:{click:e.handleAdd}},[e._v("\n "+e._s(e.$t("common:button:new"))+"\n ")])],1)],1),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"}],ref:"visitList",attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortByColumn,"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",align:"left",width:"45"}}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode",label:e.$t("trials:crcUpload:table:subjectId"),"show-overflow-tooltip":"",sortable:"custom","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.row.SubjectCode))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitNum",label:e.$t("trials:crcUpload:table:visitName"),"show-overflow-tooltip":"","min-width":"160",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.VisitExecuted?i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handleOpenStudyDialog(t.row)}}},[i("span",[e._v(e._s(t.row.VisitName))])]):i("span",[e._v("\n "+e._s(t.row.VisitName)+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"DicomStudyCount",label:e.$t("trials:auditRecord:table:visit"),"show-overflow-tooltip":"","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-tooltip",{attrs:{placement:"bottom"}},[i("div",{attrs:{slot:"content"},slot:"content"},[i("span",[e._v(e._s(e.$t("trials:crcUpload:label:dicom"))+": "+e._s(t.row.DicomStudyCount))])]),e._v(" "),i("span",[e._v("\n "+e._s(t.row.DicomStudyCount)+"\n ")])])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"EarliestScanDate",label:e.$t("trials:crcUpload:table:earliestScanDate"),"show-overflow-tooltip":"","min-width":"140",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.EarliestScanDate?e.moment(t.row.EarliestScanDate).format("YYYY-MM-DD"):"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"LatestScanDate",label:e.$t("trials:crcUpload:table:latestScanDate"),"show-overflow-tooltip":"","min-width":"140",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.LatestScanDate?e.moment(t.row.LatestScanDate).format("YYYY-MM-DD"):"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"SubmitState",label:e.$t("trials:crcUpload:table:submitState"),"show-overflow-tooltip":"","min-width":"120",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[1*t.row.SubmitState===0?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("SubmitState",1*t.row.SubmitState)))]):1*t.row.SubmitState===1?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("SubmitState",1*t.row.SubmitState)))]):1*t.row.SubmitState===2?i("el-tag",[e._v(e._s(e.$fd("SubmitState",1*t.row.SubmitState)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"SubmitTime",label:e.$t("trials:crcUpload:table:submitTime"),"show-overflow-tooltip":"","min-width":"140",sortable:"custom"}}),e._v(" "),e.hasPermi(["trials:trials-panel:visit:crc-upload:upload","trials:trials-panel:visit:crc-upload:submit","trials:trials-panel:visit:crc-upload:edit","trials:trials-panel:visit:crc-upload:delete"],"||")?i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"250"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:crc-upload:upload"],expression:"['trials:trials-panel:visit:crc-upload:upload']"}],attrs:{icon:"el-icon-upload2",disabled:1*t.row.SubmitState===2||2===t.row.VisitExecuted||t.row.IsLostVisit,circle:"",title:e.$t("trials:crcUpload:action:upload")},on:{click:function(i){return e.handleUpload(t.row)}}}),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:crc-upload:submit"],expression:"['trials:trials-panel:visit:crc-upload:submit']"}],attrs:{icon:"el-icon-check",disabled:1*t.row.AuditState>0||1*t.row.SubmitState!==1||2===t.row.VisitExecuted||t.row.IsLostVisit,circle:"",title:e.$t("trials:crcUpload:action:submit")},on:{click:function(i){return e.handleSubmit(t.row)}}}),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:crc-upload:delete"],expression:"['trials:trials-panel:visit:crc-upload:delete']"}],attrs:{icon:"el-icon-delete",disabled:1*t.row.SubmitState!==0||t.row.InPlan||t.row.IsLostVisit||t.row.IsFinalVisit,circle:"",title:e.$t("trials:crcUpload:action:delete")},on:{click:function(i){return e.handleDelete(t.row)}}})]}}],null,!1,2998173990)}):e._e()],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1),e._v(" "),e.edit_cfg.visible?i("el-dialog",{attrs:{visible:e.edit_cfg.visible,"close-on-click-modal":!1,title:e.edit_cfg.title,width:"600px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){return e.$set(e.edit_cfg,"visible",t)}}},[e.edit_cfg.visible?i("VisitForm",{attrs:{data:e.rowData,"other-info":e.otherInfo},on:{getList:e.getList,closeDialog:e.closeEditDialog}}):e._e()],1):e._e(),e._v(" "),e.uploadVisible?i("el-dialog",{attrs:{visible:e.uploadVisible,fullscreen:!0,"close-on-click-modal":!1,"custom-class":"upload-dialog"},on:{"update:visible":function(t){e.uploadVisible=t}}},[i("span",{attrs:{slot:"title"},slot:"title"},[i("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},[i("label",{staticStyle:{float:"left","margin-right":"10px"}},[e._v("Upload: ")]),e._v(" "),i("el-breadcrumb-item",{directives:[{name:"show",rawName:"v-show",value:e.searchData.TrialCode,expression:"searchData.TrialCode"}]},[e._v(e._s(e.searchData.TrialCode))]),e._v(" "),i("el-breadcrumb-item",{directives:[{name:"show",rawName:"v-show",value:e.rowData.SubjectCode,expression:"rowData.SubjectCode"}]},[e._v(e._s(e.rowData.SubjectCode))]),e._v(" "),i("el-breadcrumb-item",{directives:[{name:"show",rawName:"v-show",value:e.rowData.VisitName,expression:"rowData.VisitName"}]},[e._v(e._s(e.rowData.VisitName+" ("+e.rowData.VisitNum+")"))])],1)],1),e._v(" "),i("div",{staticClass:"base-modal-body",staticStyle:{display:"flex","flex-direction":"column"}},[i("el-form",{directives:[{name:"show",rawName:"v-show",value:e.rowData.IsBaseLine&&(e.otherInfo.IsHaveFirstGiveMedicineDate||e.otherInfo.IsEnrollementQualificationConfirm)||!e.rowData.IsBaseLine&&e.otherInfo.IsPDProgressView,expression:"(rowData.IsBaseLine && (otherInfo.IsHaveFirstGiveMedicineDate || otherInfo.IsEnrollementQualificationConfirm)) || (!rowData.IsBaseLine && otherInfo.IsPDProgressView)"}],staticClass:"base-search-form",staticStyle:{height:"60px",padding:"10px"},attrs:{inline:!0}},[i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.rowData.IsBaseLine&&e.otherInfo.IsHaveFirstGiveMedicineDate,expression:"rowData.IsBaseLine && otherInfo.IsHaveFirstGiveMedicineDate"}],attrs:{label:e.$t("trials:crcUpload:form:baseDateOfVisit")}},[i("el-date-picker",{attrs:{type:"date","picker-options":e.pickerOption,"value-format":"yyyy-MM-dd",format:"yyyy-MM-dd",disabled:""},model:{value:e.rowData.SubjectFirstGiveMedicineTime,callback:function(t){e.$set(e.rowData,"SubjectFirstGiveMedicineTime",t)},expression:"rowData.SubjectFirstGiveMedicineTime"}})],1),e._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.rowData.IsBaseLine&&e.otherInfo.IsEnrollementQualificationConfirm,expression:"rowData.IsBaseLine && otherInfo.IsEnrollementQualificationConfirm"}],attrs:{label:e.$t("trials:crcUpload:form:enrollmentConfirmation")}},[i("el-radio-group",{attrs:{disabled:""},model:{value:e.rowData.IsEnrollmentConfirm,callback:function(t){e.$set(e.rowData,"IsEnrollmentConfirm",t)},expression:"rowData.IsEnrollmentConfirm"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"IsEnrollmentConfirm"+t.label,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1),e._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:!e.rowData.IsBaseLine&&e.otherInfo.IsPDProgressView,expression:"!rowData.IsBaseLine && otherInfo.IsPDProgressView"}],attrs:{label:e.$t("trials:crcUpload:form:pd")}},[i("el-radio-group",{attrs:{disabled:""},model:{value:e.rowData.PDState,callback:function(t){e.$set(e.rowData,"PDState",t)},expression:"rowData.PDState"}},e._l(e.$d.YesOrNoForInt,(function(t){return i("el-radio",{key:"PDState"+t.label,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1),e._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.rowData.IsBaseLine&&(e.otherInfo.IsHaveFirstGiveMedicineDate||e.otherInfo.IsEnrollementQualificationConfirm)||!e.rowData.IsBaseLine&&e.otherInfo.IsPDProgressView,expression:"(rowData.IsBaseLine && (otherInfo.IsHaveFirstGiveMedicineDate || otherInfo.IsEnrollementQualificationConfirm)) || (!rowData.IsBaseLine && otherInfo.IsPDProgressView)"}]},[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:crc-upload:edit"],expression:"['trials:trials-panel:visit:crc-upload:edit']"}],staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-edit"},on:{click:function(t){e.relationVisible=!0}}},[e._v("\n "+e._s(e.$t("common:button:edit"))+"\n\n ")])],1)],1),e._v(" "),i("el-tabs",{staticStyle:{flex:"1"},attrs:{type:"border-card"},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[i("el-tab-pane",{attrs:{label:e.$t("trials:uploadedDicoms:tab:uploadDicoms"),name:"dicom"}},[i("upload-dicom-files",{attrs:{data:e.rowData,"subject-id":e.rowData.SubjectId,"subject-visit-id":e.rowData.Id},on:{getList:e.getList,close:e.closeUpload}})],1),e._v(" "),e.rowData.IsBaseLine&&e.otherInfo.ClinicalInformationTransmissionEnum>0&&e.otherInfo.IsHaveSubjectClinicalData?i("el-tab-pane",{attrs:{label:e.$t("trials:uploadClinicalData:tab:uploadClinicalData"),name:"clinical-data"}},["clinical-data"===e.activeName?i("upload-clinical-data",{attrs:{"subject-visit-id":e.rowData.Id,data:e.rowData,"enum-type":e.otherInfo.ClinicalInformationTransmissionEnum,"allow-add-or-edit":!0},on:{getList:e.getList}}):e._e()],1):e._e(),e._v(" "),!e.rowData.IsBaseLine&&e.otherInfo.ClinicalInformationTransmissionEnum>0&&e.otherInfo.IsHaveVisitClinicalData?i("el-tab-pane",{attrs:{label:e.$t("trials:uploadClinicalData:tab:uploadClinicalData"),name:"clinical-data"}},["clinical-data"===e.activeName?i("upload-clinical-data",{attrs:{"subject-visit-id":e.rowData.Id,data:e.rowData,"enum-type":e.otherInfo.ClinicalInformationTransmissionEnum,"allow-add-or-edit":!0},on:{getList:e.getList}}):e._e()],1):e._e()],1)],1)]):e._e(),e._v(" "),e.studyVisible?i("el-dialog",{attrs:{visible:e.studyVisible,"close-on-click-modal":!1,fullscreen:!0,"custom-class":"upload-dialog"},on:{"update:visible":function(t){e.studyVisible=t}}},[i("span",{attrs:{slot:"title"},slot:"title"},[i("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},[i("el-breadcrumb-item",{directives:[{name:"show",rawName:"v-show",value:e.searchData.TrialCode,expression:"searchData.TrialCode"}]},[e._v(e._s(e.searchData.TrialCode))]),e._v(" "),i("el-breadcrumb-item",{directives:[{name:"show",rawName:"v-show",value:e.rowData.SubjectCode,expression:"rowData.SubjectCode"}]},[e._v(e._s(e.rowData.SubjectCode))]),e._v(" "),i("el-breadcrumb-item",{directives:[{name:"show",rawName:"v-show",value:e.rowData.VisitName,expression:"rowData.VisitName"}]},[e._v(e._s(e.rowData.VisitName+" ("+e.rowData.VisitNum+")"))])],1)],1),e._v(" "),i("div",{staticClass:"base-modal-body"},[i("el-form",{staticClass:"base-search-form",staticStyle:{padding:"10px"},attrs:{inline:!0}},[i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.rowData.IsBaseLine&&e.otherInfo.IsHaveFirstGiveMedicineDate,expression:"rowData.IsBaseLine && otherInfo.IsHaveFirstGiveMedicineDate"}],attrs:{label:e.$t("trials:crcUpload:form:baseDateOfVisit")}},[i("el-date-picker",{attrs:{type:"date","picker-options":e.pickerOption,"value-format":"yyyy-MM-dd",format:"yyyy-MM-dd",disabled:""},model:{value:e.rowData.SubjectFirstGiveMedicineTime,callback:function(t){e.$set(e.rowData,"SubjectFirstGiveMedicineTime",t)},expression:"rowData.SubjectFirstGiveMedicineTime"}})],1),e._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.rowData.IsBaseLine&&e.otherInfo.IsEnrollementQualificationConfirm,expression:"rowData.IsBaseLine && otherInfo.IsEnrollementQualificationConfirm"}],attrs:{label:e.$t("trials:crcUpload:form:enrollmentConfirmation")}},[i("el-radio-group",{attrs:{disabled:""},model:{value:e.rowData.IsEnrollmentConfirm,callback:function(t){e.$set(e.rowData,"IsEnrollmentConfirm",t)},expression:"rowData.IsEnrollmentConfirm"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"IsEnrollmentConfirm"+t.label,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1),e._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:!e.rowData.IsBaseLine&&e.otherInfo.IsPDProgressView||1===e.rowData.PDState,expression:"!rowData.IsBaseLine && otherInfo.IsPDProgressView || rowData.PDState === 1"}],attrs:{label:e.$t("trials:crcUpload:form:pd")}},[i("el-radio-group",{attrs:{disabled:""},model:{value:e.rowData.PDState,callback:function(t){e.$set(e.rowData,"PDState",t)},expression:"rowData.PDState"}},e._l(e.$d.YesOrNoForInt,(function(t){return i("el-radio",{key:"PDState"+t.label,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1)],1),e._v(" "),i("h4",{staticClass:"box-title"},[e._v(e._s(e.$t("trials:crcUpload:label:dicom")))]),e._v(" "),i("el-card",{staticClass:"box-card"},[e.rowData.Id?i("StudyInfo",{attrs:{data:e.rowData},on:{getList:e.getList}}):e._e()],1),e._v(" "),e.rowData.IsBaseLine&&e.otherInfo.ClinicalInformationTransmissionEnum>0&&e.otherInfo.IsHaveSubjectClinicalData?i("h4",{staticClass:"box-title",staticStyle:{"margin-top":"10px"}},[e._v("\n "+e._s(e.$t("trials:crcUpload:label:clinicalData"))+"\n ")]):e._e(),e._v(" "),e.rowData.IsBaseLine&&e.otherInfo.ClinicalInformationTransmissionEnum>0&&e.otherInfo.IsHaveSubjectClinicalData?i("el-card",{staticClass:"box-card"},[e.rowData.Id&&e.rowData.IsBaseLine?i("UploadClinicalData",{attrs:{"enum-type":e.otherInfo.ClinicalInformationTransmissionEnum,"allow-add-or-edit":!1,data:e.rowData,"subject-visit-id":e.rowData.Id},on:{getList:e.getList}}):e._e()],1):e._e(),e._v(" "),!e.rowData.IsBaseLine&&e.otherInfo.ClinicalInformationTransmissionEnum>0&&e.otherInfo.IsHaveVisitClinicalData?i("h4",{staticClass:"box-title",staticStyle:{"margin-top":"10px"}},[e._v("\n "+e._s(e.$t("trials:crcUpload:label:clinicalData"))+"\n ")]):e._e(),e._v(" "),!e.rowData.IsBaseLine&&e.otherInfo.ClinicalInformationTransmissionEnum>0&&e.otherInfo.IsHaveVisitClinicalData?i("el-card",{staticClass:"box-card"},[e.rowData.Id?i("UploadClinicalData",{attrs:{"enum-type":e.otherInfo.ClinicalInformationTransmissionEnum,"allow-add-or-edit":!1,data:e.rowData,"subject-visit-id":e.rowData.Id},on:{getList:e.getList}}):e._e()],1):e._e()],1)]):e._e(),e._v(" "),i("base-model",{attrs:{config:e.chat_cfg}},[i("template",{slot:"dialog-body"},[e.rowData.Id?i("HistoryChat",{attrs:{data:e.rowData,"body-parts":e.otherInfo.BodyPartTypes,modalities:e.otherInfo.Modalitys,"clinical-enum":e.otherInfo.ClinicalInformationTransmissionEnum},on:{getList:e.getList}}):e._e()],1)],2),e._v(" "),e.relationVisible?i("el-dialog",{staticStyle:{height:"600px"},attrs:{visible:e.relationVisible,"close-on-click-modal":!1,title:e.$t("trials:crcUpload:dialogTitle:edit"),width:"500px","custom-class":"base-dialog-wrapper","append-to-body":""},on:{"update:visible":function(t){e.relationVisible=t}}},[i("el-form",{attrs:{size:"small"}},[i("div",{staticClass:"base-dialog-body"},[e.rowData.IsBaseLine&&e.otherInfo.IsHaveFirstGiveMedicineDate?i("el-form-item",{attrs:{label:e.$t("trials:crcUpload:form:baseDateOfVisit")}},[i("el-date-picker",{attrs:{type:"date","picker-options":e.pickerOption,"value-format":"yyyy-MM-dd",format:"yyyy-MM-dd"},model:{value:e.rowData.SubjectFirstGiveMedicineTime,callback:function(t){e.$set(e.rowData,"SubjectFirstGiveMedicineTime",t)},expression:"rowData.SubjectFirstGiveMedicineTime"}})],1):e._e(),e._v(" "),e.rowData.IsBaseLine&&e.otherInfo.IsEnrollementQualificationConfirm?i("el-form-item",{attrs:{label:e.$t("trials:crcUpload:form:enrollmentConfirmation")}},[i("el-radio-group",{model:{value:e.rowData.IsEnrollmentConfirm,callback:function(t){e.$set(e.rowData,"IsEnrollmentConfirm",t)},expression:"rowData.IsEnrollmentConfirm"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"IsEnrollmentConfirm"+t.label,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1):e._e(),e._v(" "),!e.rowData.IsBaseLine&&e.otherInfo.IsPDProgressView?i("el-form-item",{attrs:{label:e.$t("trials:crcUpload:form:pd")}},[i("el-radio-group",{model:{value:e.rowData.PDState,callback:function(t){e.$set(e.rowData,"PDState",t)},expression:"rowData.PDState"}},e._l(e.$d.YesOrNoForInt,(function(t){return i("el-radio",{key:"PDState"+t.label,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1):e._e()],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{size:"small",type:"primary",disabled:e.btnLoading},on:{click:function(t){e.relationVisible=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.saveRelationInfo}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])],1):e._e(),e._v(" "),e.signVisible?i("el-dialog",{attrs:{visible:e.signVisible,"close-on-click-modal":!1,width:"600px","append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.signVisible=t}}},[i("div",{attrs:{slot:"title"},slot:"title"},[i("span",{staticStyle:{"font-size":"18px"}},[e._v(e._s(e.$t("common:dialogTitle:sign")))]),e._v(" "),i("span",{staticStyle:{"font-size":"12px","margin-left":"5px"}},[e._v(e._s("("+e.$t("common:label:sign")+e.currentUser+")"))])]),e._v(" "),i("SignForm",{ref:"signForm",attrs:{"sign-code-enum":e.signCode,"subject-visit-id":e.rowData.Id},on:{closeDialog:e.closeSignDialog}})],1):e._e(),e._v(" "),e.SubjectVisible?i("el-dialog",{attrs:{visible:e.SubjectVisible,"close-on-click-modal":!1,width:"600px","append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.SubjectVisible=t}}},[i("div",{attrs:{slot:"title"},slot:"title"},[i("span",{staticStyle:{"font-size":"18px"}},[e._v(e._s(e.$t("trials:crcUpload:dialogTitle:edit")))])]),e._v(" "),i("div",{staticStyle:{color:"#f66","margin-bottom":"20px","margin-left":"40px"}},[e._v("\n "+e._s(e.$t("trials:crcUpload:message:baseDate"))+"\n ")]),e._v(" "),e.SubjectVisible?i("SubjectsForm",{attrs:{data:e.SubjectInfo,"other-info":e.otherInfo},on:{submitFirstGiveMedicineTime:e.submitFirstGiveMedicineTime,close:e.closeSubjectVisible}}):e._e()],1):e._e()],2)},a=[],r=i("db72"),o=i("3e42"),s=i("9a3b"),l=i("3f2a"),c=i("6071"),u=i("333d"),d=i("5572"),f=i("0280"),h=i("4ebb"),p=i("dda6"),m=i("4c58"),g=i("fa44"),v=i("0744"),b=i("179b"),y=i("7eeb"),w=i("5be4"),_=i("c1df"),I=i.n(_),x=i("7a9e"),S=i("a599"),T=i("5f87"),C=function(){return{SubjectInfo:"",SiteId:"",PageIndex:1,PageSize:20,VisitPlanArray:[],AuditStateArray:[],SubmitState:null,ChallengeState:null,BeginSubmitTime:null,EndSubmitTime:null}},k={name:"VisitList",components:{BaseContainer:c["default"],Pagination:u["default"],BaseModel:y["default"],SignForm:b["default"],VisitForm:d["default"],UploadDicomFiles:f["default"],UploadNonDicomFiles:h["default"],UploadClinicalData:p["default"],HistoryChat:m["default"],StudyInfo:g["default"],SubjectsForm:v["default"]},data:function(){return{timeList:[],edit_cfg:{visible:!1,title:"",width:"600px",showClose:!0},SubjectVisible:!1,searchData:C(),loading:!1,uploadVisible:!1,qcVisible:!1,list:[],total:0,siteOptions:[],visitPlanOptions:[],rowData:{},moment:I.a,activeName:"dicom",studyVisible:!1,studyLoading:!1,studyList:[],deleteArr:[],currentVisitId:"",urgentForm:{isUrgent:null},btnLoading:!1,chat_cfg:{visible:!1,title:"",width:"1000px",showClose:!0},relationVisible:!1,otherInfo:{},SubjectInfo:{},selectArr:[],signVisible:!1,signCode:null,currentUser:zzSessionStorage.getItem("userName"),pickerOption:{disabledDate:function(e){return e.getTime()>Date.now()}},trialId:this.$route.query.trialId}},watch:{list:function(){var e=this;this.$nextTick((function(){e.$refs.visitList.doLayout()}))}},mounted:function(){this.getSite(),this.$route.query.subjectCode&&(this.searchData.SubjectInfo=this.$route.query.subjectCode),Object(S["a"])("subjectCode",""),this.getList(),this.getVisitPlanOptions()},methods:{changeTimeList:function(){this.timeList?(this.searchData.BeginSubmitTime=this.timeList[0],this.searchData.EndSubmitTime=this.timeList[1]):(this.searchData.BeginSubmitTime=null,this.searchData.EndSubmitTime=null)},handleExport:function(){var e=this;Object(l["a"])(this.searchData).then((function(e){})).catch((function(){e.loading=!1}))},getList:function(){var e=this;this.loading=!0,this.searchData.TrialId=this.trialId,Object(o["Pb"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount,e.otherInfo=t.OtherInfo})).catch((function(){e.loading=!1}))},handleAdd:function(){this.rowData={},this.edit_cfg.title=this.$t("trials:crcUpload:dialogTitle:new"),this.edit_cfg.visible=!0},handleEdit:function(e){this.rowData=e,this.edit_cfg.title=this.$t("trials:crcUpload:dialogTitle:edit"),this.edit_cfg.visible=!0},closeEditDialog:function(){this.edit_cfg.visible=!1},handleView:function(e){var t=Object(T["a"])(),i=this.$router.resolve({path:"/showvisitdicoms?trialId=".concat(e.TrialId,"&visitInfo=").concat(e.VisitName,"(").concat(e.VisitNum,")&subjectVisitId=").concat(e.Id,"&TokenKey=").concat(t)});window.open(i.href,"_blank")},handleUpload:function(e){w["a"].studyList=[],this.activeName="dicom",this.rowData=Object(r["a"])({},e),this.uploadVisible=!0},handleSubmit:function(e){this.rowData=Object(r["a"])({},e),this.verifyIsAllowSubmit()},verifyIsAllowSubmit:function(){var e=this;this.loading=!0;var t={trialId:this.trialId,subjectVisitIds:[this.rowData.Id]};Object(o["Ff"])(t).then((function(t){e.loading=!1,t.IsSuccess&&e.$confirm(e.$t("trials:crcUpload:message:submit"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){if(e.rowData.IsBaseLine)if(e.otherInfo.ClinicalInformationTransmissionEnum>0){var t=x["default"].processSignature.ClinicalDataConfirmation;e.signCode=t,e.signVisible=!0}else e.submit();else e.checkNeedSignAndSubmit()})).catch((function(){}))})).catch((function(t){e.loading=!1,1===t.Result?e.$confirm(t.ErrorMessage,{showCancelButton:!1,showConfirmButton:!1,type:"warning"}):0===t.Result&&e.$confirm(t.ErrorMessage,{distinguishCancelAndClose:!0,type:"warning"}).then((function(){e.checkNeedSignAndSubmit()})).catch((function(){}))}))},checkNeedSignAndSubmit:function(){if(!this.otherInfo.IsHaveFirstGiveMedicineDate||null!==this.rowData.SubjectFirstGiveMedicineTime&&""!==this.rowData.SubjectFirstGiveMedicineTime||this.rowData.IsBaseLine)if(this.otherInfo.ClinicalInformationTransmissionEnum>0&&this.rowData.IsBaseLine){var e=x["default"].processSignature.ClinicalDataConfirmation;this.signCode=e,this.signVisible=!0}else this.submit();else{var t=Object.assign({},this.rowData);t.Code=this.rowData.SubjectCode,t.Id=this.rowData.SubjectId,this.SubjectInfo=t,this.SubjectVisible=!0}},submitFirstGiveMedicineTime:function(e){this.rowData.SubjectFirstGiveMedicineTime=e,this.SubjectVisible=!1,this.checkNeedSignAndSubmit()},closeSignDialog:function(e,t){e?this.submit(t):this.signVisible=!1},submit:function(e){var t=this;this.loading=!0;var i={data:{trialId:this.trialId,subjectVisitIds:[this.rowData.Id]}};e&&(i.signInfo=e),Object(s["a"])(i).then((function(i){t.loading=!1,i.IsSuccess&&(e&&(t.$refs["signForm"].btnLoading=!1,t.signVisible=!1),t.getList(),t.$message.success(t.$t("trials:crcUpload:message:submittedSuccessfully")))})).catch((function(i){t.loading=!1,3===i.Result?(t.getList(),t.signVisible=!1,t.$confirm(i.ErrorMessage,{showCancelButton:!1,showConfirmButton:!0,type:"warning"})):e&&(t.$refs["signForm"].btnLoading=!1)}))},handleBulkSubmit:function(){var e=this;this.$confirm(this.$t("trials:crcUpload:message:bulkSubmit"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){e.loading=!0;var t={data:{trialId:e.trialId,subjectVisitIds:e.selectArr}};Object(s["a"])(t).then((function(t){t.IsSuccess&&(e.getList(),e.$message.success(e.$t("trials:crcUpload:message:submittedSuccessfully")))})).catch((function(t){e.loading=!1,3===t.Result&&e.$confirm(t.ErrorMessage,{showCancelButton:!1,showConfirmButton:!0,type:"warning"}),e.getList()}))})).catch((function(){}))},handleOpenStudyDialog:function(e){this.studyVisible=!0,this.currentVisitId=e.Id,this.rowData=Object(r["a"])({},e)},closeUpload:function(){this.uploadVisible=!1},handleOpenHistoryChat:function(e){this.rowData=Object(r["a"])({},e),this.chat_cfg.title="".concat(this.$t("trials:crcUpload:dialogTitle:qsRecord")," (").concat(e.SubjectCode," ").concat(e.VisitName,")"),this.chat_cfg.visible=!0},handleDelete:function(e){var t=this;this.$confirm(this.$t("trials:crcUpload:message:deleteVisit"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.loading=!0,Object(o["Ab"])(t.trialId,e.Id).then((function(e){e.IsSuccess&&(t.getList(),t.$message.success(t.$t("trials:crcUpload:message:deleteVisitSuccessfully"))),t.loading=!1})).catch((function(){t.loading=!1}))}))},handleReset:function(){this.searchData=C(),this.getList()},closeSubjectVisible:function(){this.SubjectVisible=!1},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleSortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()},getSite:function(){var e=this;Object(o["Zd"])(this.trialId).then((function(t){e.siteOptions=t.Result}))},getVisitPlanOptions:function(){var e=this;Object(o["ee"])(this.trialId).then((function(t){e.visitPlanOptions=t.Result}))},saveRelationInfo:function(){var e=this;this.btnLoading=!0;var t={subjectVisitId:this.rowData.Id,subjectId:this.rowData.SubjectId,pdState:this.rowData.PDState,isEnrollmentConfirm:this.rowData.IsEnrollmentConfirm,subjectFirstGiveMedicineTime:this.rowData.SubjectFirstGiveMedicineTime};Object(o["sf"])(this.trialId,t).then((function(t){e.btnLoading=!1,e.$message.success(e.$t("common:message:savedSuccessfully")),e.relationVisible=!1,e.getList()})).catch((function(){e.btnLoading=!1}))},handleSelectionChange:function(e){for(var t=[],i=0;i<e.length;i++)t.push(e[i].Id);this.selectArr=t}}},R=k,D=(i("e7e1"),i("2877")),L=Object(D["a"])(R,n,a,!1,null,null,null);t["default"]=L.exports},d5b7:function(e,t,i){var n=i("de00"),a=i("1fab"),r=i("0cde"),o=i("bd6b"),s=i("6d8b"),l=function(e){r.call(this,e),a.call(this,e),o.call(this,e),this.id=e.id||n()};l.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(e,t){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=e,i[5]+=t,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(e,t){},attrKV:function(e,t){if("position"===e||"scale"===e||"origin"===e){if(t){var i=this[e];i||(i=this[e]=[]),i[0]=t[0],i[1]=t[1]}}else this[e]=t},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(e,t){if("string"===typeof e)this.attrKV(e,t);else if(s.isObject(e))for(var i in e)e.hasOwnProperty(i)&&this.attrKV(i,e[i]);return this.dirty(!1),this},setClipPath:function(e){var t=this.__zr;t&&e.addSelfToZr(t),this.clipPath&&this.clipPath!==e&&this.removeClipPath(),this.clipPath=e,e.__zr=t,e.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var e=this.clipPath;e&&(e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(e){this.__zr=e;var t=this.animators;if(t)for(var i=0;i<t.length;i++)e.animation.addAnimator(t[i]);this.clipPath&&this.clipPath.addSelfToZr(e)},removeSelfFromZr:function(e){this.__zr=null;var t=this.animators;if(t)for(var i=0;i<t.length;i++)e.animation.removeAnimator(t[i]);this.clipPath&&this.clipPath.removeSelfFromZr(e)}},s.mixin(l,o),s.mixin(l,r),s.mixin(l,a);var c=l;e.exports=c},d5ee:function(e,t,i){"use strict";i("6b40")},d62e:function(e,t,i){},d674:function(e,t,i){},d6d9:function(e,t,i){var n=i("3014"),a=n.extend({type:"series.pictorialBar",dependencies:["grid"],defaultOption:{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,hoverAnimation:!1},getInitialData:function(e){return e.stack=null,a.superApply(this,"getInitialData",arguments)}}),r=a;e.exports=r},d6da:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"sign-form-wrapper"},[i("div",{staticClass:"sign-form-body"},[i("h4",{staticStyle:{color:"red"}},[e._v("*"+e._s(e.signText))]),e._v(" "),i("el-form",{ref:"signForm",attrs:{model:e.signForm,size:"small","label-width":"100px"}},[i("el-form-item",{attrs:{label:"User ID: ",prop:"UserName",rules:[{required:!0,message:"please specify.",trigger:"blur"}]}},[i("el-input",{model:{value:e.signForm.UserName,callback:function(t){e.$set(e.signForm,"UserName",t)},expression:"signForm.UserName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Password: ",prop:"Password",rules:[{required:!0,message:"please specify.",trigger:"blur"}]}},[i("el-input",{attrs:{"show-password":"","auto-complete":"new-password"},model:{value:e.signForm.Password,callback:function(t){e.$set(e.signForm,"Password",t)},expression:"signForm.Password"}})],1)],1)],1),e._v(" "),i("div",{staticClass:"dialog-footer sign-form-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.handleclose}},[e._v("Cancel")]),e._v(" "),i("el-button",{attrs:{loading:e.btnLoading,size:"small",type:"primary"},on:{click:e.handleVerifySignature}},[e._v("签名")])],1)])},a=[],r=i("3e42"),o=i("8237"),s=i.n(o),l={name:"SignForm",props:{signText:{type:String,default:""}},data:function(){return{signForm:{UserName:"",Password:""},btnLoading:!1}},methods:{handleVerifySignature:function(){var e=this,t=zzSessionStorage.getItem("userName").toLocaleLowerCase();this.$refs.signForm.validate((function(i){i&&(e.signForm.UserName.trim().toLocaleLowerCase()===t?(e.btnLoading=!0,Object(r["e"])(e.signForm.UserName,s()(e.signForm.Password)).then((function(t){e.$emit("closeDialog",!0)})).catch((function(){e.btnLoading=!1}))):e.$message.error("用户名输入错误!"))}))},handleclose:function(){this.$emit("closeDialog",!1)}}},c=l,u=(i("2659"),i("2877")),d=Object(u["a"])(c,n,a,!1,null,"066d9282",null);t["default"]=d.exports},d6ef:function(e,t,i){var n=i("3eba"),a={type:"selectDataRange",event:"dataRangeSelected",update:"update"};n.registerAction(a,(function(e,t){t.eachComponent({mainType:"visualMap",query:e},(function(t){t.setSelected(e.selected)}))}))},d7169:function(e,t,i){var n=i("3eba"),a=i("6d8b");i("aa01"),i("340d"),i("44fb");var r=i("98e7"),o=i("cb73"),s=i("d3f47");n.registerVisual(a.curry(r,"sunburst")),n.registerLayout(a.curry(o,"sunburst")),n.registerProcessor(a.curry(s,"sunburst"))},d725:function(e,t,i){},d747:function(e,t,i){var n=i("3eba"),a=i("d81e"),r=a.updateCenterAndZoom;i("d2a5");var o={type:"graphRoam",event:"graphRoam",update:"none"};n.registerAction(o,(function(e,t){t.eachComponent({mainType:"series",query:e},(function(t){var i=t.coordinateSystem,n=r(i,e);t.setCenter&&t.setCenter(n.center),t.setZoom&&t.setZoom(n.zoom)}))}))},d758:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"tp-list data-list"},[i("div",{staticClass:"filter-container"},[i("span",[e._v("Subject ID:")]),e._v(" "),i("el-input",{staticClass:"mr",attrs:{size:"small"},model:{value:e.listQuery.SubjectCode,callback:function(t){e.$set(e.listQuery,"SubjectCode",t)},expression:"listQuery.SubjectCode"}}),e._v(" "),i("span",[e._v("Status:")]),e._v(" "),i("el-select",{staticClass:"mr",attrs:{size:"small",clearable:""},model:{value:e.listQuery.Status,callback:function(t){e.$set(e.listQuery,"Status",t)},expression:"listQuery.Status"}},[i("el-option",{attrs:{value:30,label:"待读"}}),e._v(" "),i("el-option",{attrs:{value:80,label:"已读"}})],1),e._v(" "),i("el-button",{attrs:{size:"small",type:"text"},on:{click:e.handleReset}},[e._v("Reset")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.handleSearch}},[e._v("Search")])],1),e._v(" "),i("div",{staticClass:"data-table"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],attrs:{data:e.list,stripe:"",size:"small"},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialCode",label:"TrialId",sortable:"custom","show-overflow-tooltip":"","min-width":"90"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialIndication",label:"Indication",sortable:"custom","show-overflow-tooltip":"","min-width":"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Sponsor",label:"Sponsor",sortable:"custom","show-overflow-tooltip":"","min-width":"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Expedited","min-width":"110",label:"Expedited","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(0==t.row.Expedited?"No":1==t.row.Expedited?"24H":"48H"))]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode",label:"Subject ID","show-overflow-tooltip":"",sortable:"custom","min-width":"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitName",label:"Visit Name","show-overflow-tooltip":"",sortable:"custom","min-width":"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitNum",label:"Visit Num","show-overflow-tooltip":"",sortable:"custom","min-width":"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Status",label:"Status","show-overflow-tooltip":"",sortable:"custom","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e.handleStatus(t.row.Status)))]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"UpdateTime",label:"UpdateTime","show-overflow-tooltip":"",sortable:"custom","min-width":"120"}}),e._v(" "),i("el-table-column",{attrs:{label:"Action","min-width":"150",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(i){return e.goGlobalReport(t.row)}}},[e._v("Read")])]}}])})],1)],1),e._v(" "),i("div",{staticClass:"pagination"},[i("pagination",{attrs:{total:e.total,page:e.listQuery.PageIndex,limit:e.listQuery.PageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"PageIndex",t)},"update:limit":function(t){return e.$set(e.listQuery,"PageSize",t)},pagination:e.getList}})],1)])},a=[],r=i("3e42"),o=i("333d"),s=function(){return{SubjectCode:"",Status:30,WorkloadType:2,Expedited:"",PageIndex:1,PageSize:20}},l={components:{Pagination:o["default"]},data:function(){return{list:[],listQuery:s(),listLoading:!1,total:0,row:{},trialCode:"",types:[{Type:"TP",Value:1},{Type:"Global",Value:2},{Type:"AD",Value:3}]}},created:function(){this.listQuery.TrialId=zzSessionStorage.getItem("trialId"),this.getList()},methods:{getList:function(){var e=this;this.listLoading=!0,Object(r["me"])(this.listQuery).then((function(t){e.listLoading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.listLoading=!1}))},goGlobalReport:function(e){this.$router.push({name:"globalTask",query:e})},handleStatus:function(e){return 30===e?"待读":80===e?"已读":""},handleSearch:function(){this.listQuery.PageIndex=1,this.getList()},handleReset:function(){this.listQuery=s(),this.getList()},handleSortByColumn:function(e){"ascending"===e.order?this.listQuery.Asc=!0:this.listQuery.Asc=!1,this.listQuery.SortField=e.prop,this.listQuery.PageIndex=1,this.getList()}}},c=l,u=(i("21ec"),i("2877")),d=Object(u["a"])(c,n,a,!1,null,"76130cc6",null);t["default"]=d.exports},d7ac:function(e,t,i){},d7b7:function(e,t,i){"use strict";i("26b3")},d808:function(e,t,i){},d81e:function(e,t){function i(e,t,i){var n=e.getZoom(),a=e.getCenter(),r=t.zoom,o=e.dataToPoint(a);if(null!=t.dx&&null!=t.dy){o[0]-=t.dx,o[1]-=t.dy;a=e.pointToData(o);e.setCenter(a)}if(null!=r){if(i){var s=i.min||0,l=i.max||1/0;r=Math.max(Math.min(n*r,l),s)/n}e.scale[0]*=r,e.scale[1]*=r;var c=e.position,u=(t.originX-c[0])*(r-1),d=(t.originY-c[1])*(r-1);c[0]-=u,c[1]-=d,e.updateTransform();a=e.pointToData(o);e.setCenter(a),e.setZoom(r*n)}return{center:e.getCenter(),zoom:e.getZoom()}}t.updateCenterAndZoom=i},d82f:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",[i("div",{staticClass:"search"},[i("el-form",{staticClass:"base-search-form",attrs:{inline:!0,size:"mini"}},[i("el-form-item",{attrs:{label:"Code:"}},[i("el-input",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.Code,callback:function(t){e.$set(e.searchData,"Code",t)},expression:"searchData.Code"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"KeyName:"}},[i("el-input",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.KeyName,callback:function(t){e.$set(e.searchData,"KeyName",t)},expression:"searchData.KeyName"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:e.handleReset}},[e._v("Reset")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.handleSearch}},[e._v("Search")])],1)],1),e._v(" "),i("span",{staticStyle:{"margin-left":"auto"}},[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.handleAdd}},[e._v("New")])],1)],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:45},expression:"{bottomOffset:45}"}],attrs:{data:e.list,stripe:"",size:"small",height:"100"}},[i("el-table-column",{attrs:{type:"index",width:"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Code",label:"Code","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"KeyName",label:"KeyName","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Description",label:"Description","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Value",label:"Value","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ValueCN",label:"ValueCN","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:"Is Enable",width:"100",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},on:{change:function(i){return e.switchChange(i,t.row)}},model:{value:t.row.IsEnable,callback:function(i){e.$set(t.row,"IsEnable",i)},expression:"scope.row.IsEnable"}})]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"Action",width:"200",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("\n Edit\n ")]),e._v(" "),i("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("\n Delete\n ")])]}}])})],1),e._v(" "),i("DictionaryTypeConfigForm",{ref:"DictionaryTypeConfigForm",on:{getList:e.getList}})],1)},a=[],r=(i("20d6"),i("e56e")),o=i("4e83"),s=i("f36a"),l=function(){return{asc:!0,sortField:"",code:"",keyName:"",IsConfig:!0,PageIndex:1,PageSize:20}},c={name:"DictionaryConfig",components:{BoxContent:s["default"],DictionaryTypeConfigForm:o["default"]},data:function(){return{searchData:l(),list:[],total:0,loading:!1,rowData:{},model_cfg:{visible:!1,showClose:!0,width:"600px",title:""}}},mounted:function(){this.getList()},methods:{switchChange:function(e,t){var i=this;this.loading=!0,Object(r["c"])(t).then((function(e){i.$message.success("Saved successfully!"),i.loading=!1})).catch((function(){i.loading=!1}))},handleEdit:function(e){var t=this;this.$nextTick((function(){t.$refs["DictionaryTypeConfigForm"].openDialog("DictionaryTypeConfig",e)}))},handleAdd:function(){var e=this;this.$nextTick((function(){e.$refs["DictionaryTypeConfigForm"].openDialog("DictionaryTypeConfig",{})}))},handleDelete:function(e){var t=this;this.$confirm("Sure to delete?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){t.loading=!0,Object(r["C"])(e.Id).then((function(i){t.loading=!1,i.IsSuccess&&(t.list.splice(t.list.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success("Deleted successfully!"))})).catch((function(){t.loading=!1}))}))},getList:function(){var e=this;this.loading=!0,Object(r["W"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData})).catch((function(){e.loading=!1}))},handleSearch:function(){this.getList()},handleReset:function(){this.searchData=l(),this.getList()}}},u=c,d=i("2877"),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},d832:function(e,t,i){},d833:function(e,t,i){var n=i("20c8"),a=i("9680"),r=i("e7d2"),o=i("68ab"),s=i("9f51"),l=i("857d"),c=l.normalizeRadian,u=i("4a3f"),d=i("8728"),f=n.CMD,h=2*Math.PI,p=1e-4;function m(e,t){return Math.abs(e-t)<p}var g=[-1,-1,-1],v=[-1,-1];function b(){var e=v[0];v[0]=v[1],v[1]=e}function y(e,t,i,n,a,r,o,s,l,c){if(c>t&&c>n&&c>r&&c>s||c<t&&c<n&&c<r&&c<s)return 0;var d=u.cubicRootAt(t,n,r,s,c,g);if(0===d)return 0;for(var f,h,p=0,m=-1,y=0;y<d;y++){var w=g[y],_=0===w||1===w?.5:1,I=u.cubicAt(e,i,a,o,w);I<l||(m<0&&(m=u.cubicExtrema(t,n,r,s,v),v[1]<v[0]&&m>1&&b(),f=u.cubicAt(t,n,r,s,v[0]),m>1&&(h=u.cubicAt(t,n,r,s,v[1]))),2===m?w<v[0]?p+=f<t?_:-_:w<v[1]?p+=h<f?_:-_:p+=s<h?_:-_:w<v[0]?p+=f<t?_:-_:p+=s<f?_:-_)}return p}function w(e,t,i,n,a,r,o,s){if(s>t&&s>n&&s>r||s<t&&s<n&&s<r)return 0;var l=u.quadraticRootAt(t,n,r,s,g);if(0===l)return 0;var c=u.quadraticExtremum(t,n,r);if(c>=0&&c<=1){for(var d=0,f=u.quadraticAt(t,n,r,c),h=0;h<l;h++){var p=0===g[h]||1===g[h]?.5:1,m=u.quadraticAt(e,i,a,g[h]);m<o||(g[h]<c?d+=f<t?p:-p:d+=r<f?p:-p)}return d}p=0===g[0]||1===g[0]?.5:1,m=u.quadraticAt(e,i,a,g[0]);return m<o?0:r<t?p:-p}function _(e,t,i,n,a,r,o,s){if(s-=t,s>i||s<-i)return 0;var l=Math.sqrt(i*i-s*s);g[0]=-l,g[1]=l;var u=Math.abs(n-a);if(u<1e-4)return 0;if(u%h<1e-4){n=0,a=h;var d=r?1:-1;return o>=g[0]+e&&o<=g[1]+e?d:0}if(r){l=n;n=c(a),a=c(l)}else n=c(n),a=c(a);n>a&&(a+=h);for(var f=0,p=0;p<2;p++){var m=g[p];if(m+e>o){var v=Math.atan2(s,m);d=r?1:-1;v<0&&(v=h+v),(v>=n&&v<=a||v+h>=n&&v+h<=a)&&(v>Math.PI/2&&v<1.5*Math.PI&&(d=-d),f+=d)}}return f}function I(e,t,i,n,l){for(var c=0,u=0,h=0,p=0,g=0,v=0;v<e.length;){var b=e[v++];switch(b===f.M&&v>1&&(i||(c+=d(u,h,p,g,n,l))),1===v&&(u=e[v],h=e[v+1],p=u,g=h),b){case f.M:p=e[v++],g=e[v++],u=p,h=g;break;case f.L:if(i){if(a.containStroke(u,h,e[v],e[v+1],t,n,l))return!0}else c+=d(u,h,e[v],e[v+1],n,l)||0;u=e[v++],h=e[v++];break;case f.C:if(i){if(r.containStroke(u,h,e[v++],e[v++],e[v++],e[v++],e[v],e[v+1],t,n,l))return!0}else c+=y(u,h,e[v++],e[v++],e[v++],e[v++],e[v],e[v+1],n,l)||0;u=e[v++],h=e[v++];break;case f.Q:if(i){if(o.containStroke(u,h,e[v++],e[v++],e[v],e[v+1],t,n,l))return!0}else c+=w(u,h,e[v++],e[v++],e[v],e[v+1],n,l)||0;u=e[v++],h=e[v++];break;case f.A:var I=e[v++],x=e[v++],S=e[v++],T=e[v++],C=e[v++],k=e[v++];v+=1;var R=1-e[v++],D=Math.cos(C)*S+I,L=Math.sin(C)*T+x;v>1?c+=d(u,h,D,L,n,l):(p=D,g=L);var O=(n-I)*T/S+I;if(i){if(s.containStroke(I,x,T,C,C+k,R,t,O,l))return!0}else c+=_(I,x,T,C,C+k,R,O,l);u=Math.cos(C+k)*S+I,h=Math.sin(C+k)*T+x;break;case f.R:p=u=e[v++],g=h=e[v++];var $=e[v++],N=e[v++];D=p+$,L=g+N;if(i){if(a.containStroke(p,g,D,g,t,n,l)||a.containStroke(D,g,D,L,t,n,l)||a.containStroke(D,L,p,L,t,n,l)||a.containStroke(p,L,p,g,t,n,l))return!0}else c+=d(D,g,D,L,n,l),c+=d(p,L,p,g,n,l);break;case f.Z:if(i){if(a.containStroke(u,h,p,g,t,n,l))return!0}else c+=d(u,h,p,g,n,l);u=p,h=g;break}}return i||m(h,g)||(c+=d(u,h,p,g,n,l)||0),0!==c}function x(e,t,i){return I(e,0,!1,t,i)}function S(e,t,i,n){return I(e,t,!0,i,n)}t.contain=x,t.containStroke=S},d84e:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"attachment-wrapper"},[i("el-tabs",{on:{"tab-click":e.clickTab},model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},e._l(e.$d.Common_File_Type,(function(t){return i("el-tab-pane",{key:t.value,attrs:{label:t.label,name:String(t.value)}},["1"===e.activeTab?i("UploadTemplate"):e._e(),e._v(" "),"2"===e.activeTab?i("ExportTemplate"):e._e(),e._v(" "),"3"===e.activeTab?i("EmailTemplate"):e._e(),e._v(" "),"4"===e.activeTab?i("CommonTemplate"):e._e(),e._v(" "),"5"===e.activeTab?i("SignatureTemplate"):e._e()],1)})),1)],1)},a=[],r=(i("7f7f"),i("437a")),o=i("c8a7"),s=i("3407"),l=i("8e37"),c=i("737a"),u={name:"Attachment",components:{UploadTemplate:r["default"],ExportTemplate:o["default"],EmailTemplate:s["default"],CommonTemplate:l["default"],SignatureTemplate:c["default"]},data:function(){return{activeTab:null}},mounted:function(){this.$route.query.tabActive?this.activeTab=this.$route.query.tabActive:this.activeTab=String(this.$d.Common_File_Type[0].value)},methods:{clickTab:function(e,t){this.$router.push({path:"/dictionary/attachment?tabActive=".concat(e.name)})}}},d=u,f=(i("0f13"),i("2877")),h=Object(f["a"])(d,n,a,!1,null,null,null);t["default"]=h.exports},d862:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"ecrf-wrapper"},[e.questions.length>0?i("el-form",{ref:"questions",attrs:{size:"small",model:e.questionForm}},[e._l(e.questions,(function(t){return i("QuestionItem",{key:t.Id,attrs:{question:t,"question-form":e.questionForm,"reading-task-state":e.readingTaskState,"is-first-change-task":e.isFirstChangeTask,"visit-task-id":e.visitTaskId},on:{setFormItemData:e.setFormItemData,resetFormItemData:e.resetFormItemData}})})),e._v(" "),e.readingTaskState<2&&!e.isFirstChangeTask?i("el-form-item",[i("div",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{size:"mini",disabled:!e.questionFormChangeState,type:e.questionFormChangeState?"primary":null},on:{click:e.handleSave}},[e._v(e._s(e.$t("common:button:save")))])],1)]):e._e()],2):e._e()],1)},a=[],r=(i("ac6a"),i("20d6"),i("96cf"),i("3b8d")),o=i("db72"),s=(i("c5f6"),i("3e42")),l=i("6caf"),c=i("9b92"),u=i("2f62"),d=i("4360"),f={name:"ECRF",components:{QuestionItem:l["default"]},props:{questionFormChangeState:{type:Boolean,default:!1},questionFormChangeNum:{type:Number,default:0},isFirstChangeTask:{type:Boolean,default:!1}},data:function(){return{loading:!1,questions:[],questionForm:{},readingTaskState:2,visitTaskId:""}},computed:Object(o["a"])({},Object(u["b"])(["visitTaskList","currentReadingTaskState"])),watch:{questionForm:{deep:!0,immediate:!1,handler:function(e){c["a"].$emit("questionFormChange",!0)}},currentReadingTaskState:{immediate:!0,handler:function(e){e&&(this.readingTaskState=e)}}},mounted:function(){var e=this;c["a"].$on("setReadingState",(function(t){e.readingTaskState=t})),c["a"].$on("handleSaveQuestions",(function(t){e.handleSave()}))},beforeDestroy:function(){c["a"].$off("setReadingState")},methods:{getQuestions:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){var i,n,a=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.visitTaskId=t,i=this.visitTaskList.findIndex((function(e){return e.VisitTaskId===t})),i>-1&&(this.readingTaskState=this.visitTaskList[i].ReadingTaskState,n=this.visitTaskList[i].Questions,n.map((function(e){"group"===e.Type&&0===e.Childrens.length||(e.IsPage||"group"===e.Type||"summary"===e.Type||a.$set(a.questionForm,e.Id,e.Answer?e.Answer:null),e.Childrens.length>0&&a.setChild(e.Childrens))})),this.questions=n);case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),setChild:function(e){var t=this;e.forEach((function(e){"group"!==e.Type&&"summary"!==e.Type&&e.Id&&t.$set(t.questionForm,e.Id,e.Answer?e.Answer:null),e.Childrens&&e.Childrens.length>0&&t.setChild(e.Childrens)}))},handleSave:function(){var e=this;this.$refs["questions"].validate((function(t){if(t){e.loading=!0;var i=[];for(var n in e.questionForm)i.push({id:n,answer:e.questionForm[n]});var a={visitTaskId:e.visitTaskId,answers:i};Object(s["ye"])(a).then(function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(i){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.$message.success(e.$t("common:message:savedSuccessfully")),n=e.$route.query.trialId,t.next=4,d["a"].dispatch("reading/refreshDicomReadingQuestionAnswer",{trialId:n,visitTaskId:e.visitTaskId});case 4:e.getQuestions(e.visitTaskId),e.loading=!1,c["a"].$emit("questionFormChange",!1),c["a"].$emit("getReportInfo",!0);case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(){e.loading=!1}))}}))},resetFormItemData:function(e){this.questionForm[e]=null},setFormItemData:function(e){this.questionForm[e.key]=e.val}}},h=f,p=(i("c07d"),i("2877")),m=Object(p["a"])(h,n,a,!1,null,"028a58a9",null);t["default"]=m.exports},d870:function(e,t,i){"use strict";i("03e9")},d873:function(e,t,i){},d88a:function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-user",use:"icon-user-usage",viewBox:"0 0 130 130",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 130 130" id="icon-user"><path d="M63.444 64.996c20.633 0 37.359-14.308 37.359-31.953 0-17.649-16.726-31.952-37.359-31.952-20.631 0-37.36 14.303-37.358 31.952 0 17.645 16.727 31.953 37.359 31.953zM80.57 75.65H49.434c-26.652 0-48.26 18.477-48.26 41.27v2.664c0 9.316 21.608 9.325 48.26 9.325H80.57c26.649 0 48.256-.344 48.256-9.325v-2.663c0-22.794-21.605-41.271-48.256-41.271z" stroke="#979797" /></symbol>'});o.a.add(s);t["default"]=s},d898:function(e,t,i){},d943:function(e,t,i){},d9d0:function(e,t,i){var n=i("6d8b"),a=i("1687"),r=i("f934"),o=i("697e"),s=i("0f55"),l=i("2306"),c=i("3842"),u=i("ef6a"),d=n.each,f=Math.min,h=Math.max,p=Math.floor,m=Math.ceil,g=c.round,v=Math.PI;function b(e,t,i){this._axesMap=n.createHashMap(),this._axesLayout={},this.dimensions=e.dimensions,this._rect,this._model=e,this._init(e,t,i)}function y(e,t){return f(h(e,t[0]),t[1])}function w(e,t){var i=t.layoutLength/(t.axisCount-1);return{position:i*e,axisNameAvailableWidth:i,axisLabelShow:!0}}function _(e,t){var i,n,a=t.layoutLength,r=t.axisExpandWidth,o=t.axisCount,s=t.axisCollapseWidth,l=t.winInnerIndices,c=s,u=!1;return e<l[0]?(i=e*s,n=s):e<=l[1]?(i=t.axisExpandWindow0Pos+e*r-t.axisExpandWindow[0],c=r,u=!0):(i=a-(o-1-e)*s,n=s),{position:i,axisNameAvailableWidth:c,axisLabelShow:u,nameTruncateMaxWidth:n}}b.prototype={type:"parallel",constructor:b,_init:function(e,t,i){var n=e.dimensions,a=e.parallelAxisIndex;d(n,(function(e,i){var n=a[i],r=t.getComponent("parallelAxis",n),l=this._axesMap.set(e,new s(e,o.createScaleByModel(r),[0,0],r.get("type"),n)),c="category"===l.type;l.onBand=c&&r.get("boundaryGap"),l.inverse=r.get("inverse"),r.axis=l,l.model=r,l.coordinateSystem=r.coordinateSystem=this}),this)},update:function(e,t){this._updateAxesFromSeries(this._model,e)},containPoint:function(e){var t=this._makeLayoutInfo(),i=t.axisBase,n=t.layoutBase,a=t.pixelDimIndex,r=e[1-a],o=e[a];return r>=i&&r<=i+t.axisLength&&o>=n&&o<=n+t.layoutLength},getModel:function(){return this._model},_updateAxesFromSeries:function(e,t){t.eachSeries((function(i){if(e.contains(i,t)){var n=i.getData();d(this.dimensions,(function(e){var t=this._axesMap.get(e);t.scale.unionExtentFromData(n,n.mapDimension(e)),o.niceScaleExtent(t.scale,t.model)}),this)}}),this)},resize:function(e,t){this._rect=r.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},getRect:function(){return this._rect},_makeLayoutInfo:function(){var e,t=this._model,i=this._rect,n=["x","y"],a=["width","height"],r=t.get("layout"),o="horizontal"===r?0:1,s=i[a[o]],l=[0,s],c=this.dimensions.length,u=y(t.get("axisExpandWidth"),l),d=y(t.get("axisExpandCount")||0,[0,c]),f=t.get("axisExpandable")&&c>3&&c>d&&d>1&&u>0&&s>0,h=t.get("axisExpandWindow");if(h)e=y(h[1]-h[0],l),h[1]=h[0]+e;else{e=y(u*(d-1),l);var v=t.get("axisExpandCenter")||p(c/2);h=[u*v-e/2],h[1]=h[0]+e}var b=(s-e)/(c-d);b<3&&(b=0);var w=[p(g(h[0]/u,1))+1,m(g(h[1]/u,1))-1],_=b/u*h[0];return{layout:r,pixelDimIndex:o,layoutBase:i[n[o]],layoutLength:s,axisBase:i[n[1-o]],axisLength:i[a[1-o]],axisExpandable:f,axisExpandWidth:u,axisCollapseWidth:b,axisExpandWindow:h,axisCount:c,winInnerIndices:w,axisExpandWindow0Pos:_}},_layoutAxes:function(){var e=this._rect,t=this._axesMap,i=this.dimensions,n=this._makeLayoutInfo(),r=n.layout;t.each((function(e){var t=[0,n.axisLength],i=e.inverse?1:0;e.setExtent(t[i],t[1-i])})),d(i,(function(t,i){var o=(n.axisExpandable?_:w)(i,n),s={horizontal:{x:o.position,y:n.axisLength},vertical:{x:0,y:o.position}},l={horizontal:v/2,vertical:0},c=[s[r].x+e.x,s[r].y+e.y],u=l[r],d=a.create();a.rotate(d,d,u),a.translate(d,d,c),this._axesLayout[t]={position:c,rotation:u,transform:d,axisNameAvailableWidth:o.axisNameAvailableWidth,axisLabelShow:o.axisLabelShow,nameTruncateMaxWidth:o.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},getAxis:function(e){return this._axesMap.get(e)},dataToPoint:function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},eachActiveState:function(e,t,i,a){null==i&&(i=0),null==a&&(a=e.count());var r=this._axesMap,o=this.dimensions,s=[],l=[];n.each(o,(function(t){s.push(e.mapDimension(t)),l.push(r.get(t).model)}));for(var c=this.hasAxisBrushed(),u=i;u<a;u++){var d;if(c){d="active";for(var f=e.getValues(s,u),h=0,p=o.length;h<p;h++){var m=l[h].getActiveState(f[h]);if("inactive"===m){d="inactive";break}}}else d="normal";t(d,u)}},hasAxisBrushed:function(){for(var e=this.dimensions,t=this._axesMap,i=!1,n=0,a=e.length;n<a;n++)"normal"!==t.get(e[n]).model.getActiveState()&&(i=!0);return i},axisCoordToPoint:function(e,t){var i=this._axesLayout[t];return l.applyTransform([e,0],i.transform)},getAxisLayout:function(e){return n.clone(this._axesLayout[e])},getSlidedAxisExpandWindow:function(e){var t=this._makeLayoutInfo(),i=t.pixelDimIndex,n=t.axisExpandWindow.slice(),a=n[1]-n[0],r=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:n};var o,s=e[i]-t.layoutBase-t.axisExpandWindow0Pos,l="slide",c=t.axisCollapseWidth,d=this._model.get("axisExpandSlideTriggerArea"),p=null!=d[0];if(c)p&&c&&s<a*d[0]?(l="jump",o=s-a*d[2]):p&&c&&s>a*(1-d[0])?(l="jump",o=s-a*(1-d[2])):(o=s-a*d[1])>=0&&(o=s-a*(1-d[1]))<=0&&(o=0),o*=t.axisExpandWidth/c,o?u(o,n,r,"all"):l="none";else{a=n[1]-n[0];var m=r[1]*s/a;n=[h(0,m-a/2)],n[1]=f(r[1],n[0]+a),n[0]=n[1]-a}return{axisExpandWindow:n,behavior:l}}};var I=b;e.exports=I},d9f1:function(e,t,i){var n=i("6d8b"),a=i("6cb7"),r=i("9e47"),o=i("2023"),s=a.extend({type:"polarAxis",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"polar",index:this.option.polarIndex,id:this.option.polarId})[0]}});n.merge(s.prototype,o);var l={angle:{startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}},radius:{splitNumber:5}};function c(e,t){return t.type||(t.data?"category":"value")}r("angle",s,c,l.angle),r("radius",s,c,l.radius)},d9f2:function(e,t,i){"use strict";i("dcd5")},d9fc:function(e,t,i){var n=i("cbe5"),a=n.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(e,t,i){i&&e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,2*Math.PI,!0)}});e.exports=a},da2b:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",{staticStyle:{height:"100%"}},[i("template",{slot:"search-container"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:crcQuestion:table:siteId")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:"",filterable:""},model:{value:e.searchData.SiteId,callback:function(t){e.$set(e.searchData,"SiteId",t)},expression:"searchData.SiteId"}},e._l(e.siteOptions,(function(e,t){return i("el-option",{key:t,attrs:{label:e.TrialSiteCode,value:e.SiteId}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:crcQuestion:table:subjectId")}},[i("el-input",{staticStyle:{width:"100px"},model:{value:e.searchData.SubjectCode,callback:function(t){e.$set(e.searchData,"SubjectCode",t)},expression:"searchData.SubjectCode"}})],1),e._v(" "),i("el-form-item",{staticClass:"my_multiple",attrs:{label:e.$t("trials:crcQuestion:table:visitName")}},[i("el-select",{staticStyle:{width:"140px"},attrs:{clearable:"",multiple:""},model:{value:e.searchData.VisitPlanArray,callback:function(t){e.$set(e.searchData,"VisitPlanArray",t)},expression:"searchData.VisitPlanArray"}},[e._l(e.visitPlanOptions,(function(t,n){return i("el-option",{key:n,attrs:{label:t.VisitName,value:t.VisitNum}},[i("span",{staticStyle:{float:"left"}},[e._v(e._s(t.VisitName))])])})),e._v(" "),i("el-option",{key:"Other",attrs:{label:"OutPlan",value:"1.11"}})],2)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:crcQuestion:table:isOverTime")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.IsOverTime,callback:function(t){e.$set(e.searchData,"IsOverTime",t)},expression:"searchData.IsOverTime"}},e._l(e.$d.YesOrNo,(function(e){return i("el-option",{attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-download"},on:{click:e.handleExport}},[e._v("\n "+e._s(e.$t("common:button:export"))+"\n ")])],1)],1)],1),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"}],attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{ref:"crcQsTable",attrs:{prop:"ChallengeCode",label:e.$t("trials:crcQuestion:table:challengeCode"),"show-overflow-tooltip":"",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{style:{color:t.row.IsClosed?"":"red"},attrs:{type:"text"},on:{click:function(i){return e.handleReplay(t.row)}}},[e._v("\n "+e._s(t.row.ChallengeCode)+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialSiteCode",label:e.$t("trials:crcQuestion:table:siteId"),"show-overflow-tooltip":"","min-width":"100",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode",label:e.$t("trials:crcQuestion:table:subjectId"),"show-overflow-tooltip":"","min-width":"100",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitName",label:e.$t("trials:crcQuestion:table:visitName"),"show-overflow-tooltip":"","min-width":"100",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"QCProcessEnum",label:e.$t("trials:crcQuestion:table:qCProcessEnum"),"show-overflow-tooltip":"","min-width":"100",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[1===e.otherInfo.QCProcessEnum?i("div",[1===t.row.CurrentQCEnum?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("CurrentQCType",0)))]):i("span",[e._v("--")])],1):2===e.otherInfo.QCProcessEnum?i("div",[1===t.row.CurrentQCEnum?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("CurrentQCType",t.row.CurrentQCEnum)))]):2===t.row.CurrentQCEnum?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("CurrentQCType",t.row.CurrentQCEnum)))]):i("span",[e._v("--")])],1):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ReuploadEnum",label:e.$t("trials:crcQuestion:table:reuploadSatus"),"show-overflow-tooltip":"","min-width":"120",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.ReuploadEnum?i("span",[e._v("--")]):1===t.row.ReuploadEnum?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ReuploadEnum",t.row.ReuploadEnum)))]):2===t.row.ReuploadEnum?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("ReuploadEnum",t.row.ReuploadEnum)))]):3===t.row.ReuploadEnum?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ReuploadEnum",t.row.ReuploadEnum)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ReUploadedTime",label:e.$t("trials:crcQuestion:table:reuploadTime"),"show-overflow-tooltip":"","min-width":"150",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:e.$t("trials:crcQuestion:table:createTime"),"show-overflow-tooltip":"","min-width":"120",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"DeadlineTime",label:e.$t("trials:crcQuestion:table:deadline"),"show-overflow-tooltip":"","min-width":"130",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsOverTime",label:e.$t("trials:crcQuestion:table:isOverTime"),"show-overflow-tooltip":"","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsOverTime?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsOverTime)))]):i("el-tag",[e._v(e._s(e.$fd("YesOrNo",t.row.IsOverTime)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsClosed",label:e.$t("trials:crcQuestion:table:isClose"),"show-overflow-tooltip":"","min-width":"120",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsClosed?i("el-tag",[e._v(e._s(e.$fd("YesOrNo",t.row.IsClosed)))]):i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsClosed)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"LatestMsgTime",label:e.$t("trials:crcQuestion:table:latestMsgTime"),"show-overflow-tooltip":"","min-width":"130",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"ClosedTime",label:e.$t("trials:crcQuestion:table:closedTime"),"show-overflow-tooltip":"","min-width":"120",sortable:"custom"}}),e._v(" "),e.hasPermi(["trials:trials-panel:visit:crc-question:send"])?i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"100",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:crc-question:send"],expression:"['trials:trials-panel:visit:crc-question:send']"}],attrs:{icon:"el-icon-chat-dot-square",disabled:t.row.IsClosed,circle:"",title:e.$t("trials:crcQuestion:action:reply")},on:{click:function(i){return e.handleReplay(t.row)}}})]}}],null,!1,2949028649)}):e._e()],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1),e._v(" "),e.chatVisible?i("el-dialog",{attrs:{visible:e.chatVisible,"close-on-click-modal":!1,width:"800px",title:e.$t("trials:crcQuestion:dialogTitle:message1")+"("+e.currentQCRow.SubjectCode+" "+e.currentQCRow.VisitName+")"},on:{"update:visible":function(t){e.chatVisible=t}}},[i("chat-form",{ref:"chatForm",attrs:{data:e.currentQCRow,"user-type":"crc","body-parts":e.otherInfo.BodyPartTypes,modalities:e.otherInfo.Modalitys,"subject-visit-id":e.currentQCRow.Id,"clinical-enum":e.otherInfo.ClinicalInformationTransmissionEnum},on:{close:e.close,getDialogList:e.getDialogList}})],1):e._e()],2)},a=[],r=(i("20d6"),i("db72")),o=i("3e42"),s=i("3f2a"),l=i("c1c6"),c=i("6071"),u=i("333d"),d=function(){return{IsOverTime:null,SubjectCode:"",SiteId:"",VisitPlanArray:[],PageIndex:1,PageSize:20}},f={name:"CrcQusetion",components:{BaseContainer:c["default"],Pagination:u["default"],ChatForm:l["default"]},data:function(){return{searchData:d(),total:0,list:[],loading:!1,chatVisible:!1,currentQCRow:{},siteOptions:[],visitPlanOptions:[],otherInfo:{},trialId:this.$route.query.trialId}},mounted:function(){this.getList(),this.getSite(),this.getVisitPlanOptions()},methods:{handleExport:function(){var e=this;Object(s["i"])(this.searchData).then((function(e){})).catch((function(){e.loading=!1}))},getList:function(){var e=this;this.loading=!0,this.searchData.TrialId=this.trialId,Object(o["Mb"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount,e.otherInfo=t.OtherInfo})).catch((function(){e.loading=!1}))},handleReplay:function(e){var t=this;this.loading=!0,Object(o["Dc"])(e.Id).then((function(i){t.loading=!1,i.IsSuccess&&(i.Result.length>0&&Object.assign(e,i.Result[0]),t.currentQCRow=Object(r["a"])({},e),t.chatVisible=!0)})).catch((function(){t.loading=!1}))},close:function(){this.chatVisible=!1},getDialogList:function(){var e=this;this.loading=!0,Object(o["Dc"])(this.currentQCRow.Id).then((function(t){if(e.loading=!1,t.IsSuccess&&t.Result.length>0){var i=e.list.findIndex((function(t){return t.Id===e.currentQCRow.Id}));i>-1&&(e.currentQCRow=Object.assign(e.list[i],t.Result[0]),e.$refs["chatForm"].addMessage(t.Result[0].DialogList[t.Result[0].DialogList.length-1]))}})).catch((function(){e.loading=!1}))},handleReset:function(){this.searchData=d(),this.getList()},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleSortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()},getSite:function(){var e=this;Object(o["Zd"])(this.trialId).then((function(t){e.siteOptions=t.Result}))},getVisitPlanOptions:function(){var e=this;Object(o["ee"])(this.trialId).then((function(t){e.visitPlanOptions=t.Result}))}}},h=f,p=i("2877"),m=Object(p["a"])(h,n,a,!1,null,null,null);t["default"]=m.exports},da52:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"search-container"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:uploadMonitor:table:siteId")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:"",filterable:""},model:{value:e.searchData.SiteId,callback:function(t){e.$set(e.searchData,"SiteId",t)},expression:"searchData.SiteId"}},e._l(e.siteOptions,(function(e,t){return i("el-option",{key:t,attrs:{label:e.TrialSiteCode,value:e.SiteId}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:uploadMonitor:table:subjectId")}},[i("el-input",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.SubjectInfo,callback:function(t){e.$set(e.searchData,"SubjectInfo",t)},expression:"searchData.SubjectInfo"}})],1),e._v(" "),i("el-form-item",{staticClass:"my_multiple",attrs:{label:e.$t("trials:uploadMonitor:table:visitName")}},[i("el-select",{staticStyle:{width:"140px"},attrs:{clearable:"",multiple:""},model:{value:e.searchData.VisitPlanArray,callback:function(t){e.$set(e.searchData,"VisitPlanArray",t)},expression:"searchData.VisitPlanArray"}},[e._l(e.visitPlanOptions,(function(t,n){return i("el-option",{key:n,attrs:{label:t.VisitName,value:t.VisitNum}},[i("span",{staticStyle:{float:"left"}},[e._v(e._s(t.VisitName))])])})),e._v(" "),i("el-option",{key:"Other",attrs:{label:"OutPlan",value:"1.11"}})],2)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-download"},on:{click:e.handleExport}},[e._v("\n "+e._s(e.$t("common:button:export"))+"\n ")])],1)],1)],1),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"},{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"40",align:"left"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialSiteCode","min-width":"100",label:e.$t("trials:uploadMonitor:table:siteId"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode","min-width":"130",label:e.$t("trials:uploadMonitor:table:subjectId"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitName","min-width":"100",label:e.$t("trials:uploadMonitor:table:visitName"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"StudyCode","min-width":"100",label:e.$t("trials:uploadMonitor:table:studyId"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsDicom","min-width":"100",label:e.$t("trials:uploadMonitor:table:imageType"),"show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.IsDicom?"DICOM":"Non-DICOM")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Uploader","min-width":"100",label:e.$t("trials:uploadMonitor:table:uploader"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"IP","min-width":"100",label:e.$t("trials:uploadMonitor:table:ip"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"UploadStartTime","min-width":"140",label:e.$t("trials:uploadMonitor:table:beginTime"),"show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.UploadStartTimeStr)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ArchiveFinishedTime","min-width":"140",label:e.$t("trials:uploadMonitor:table:endTime"),"show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.ArchiveFinishedTime)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"UploadIntervalStr","min-width":"100",label:e.$t("trials:uploadMonitor:table:uploadInterval"),"show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.UploadIntervalStr)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ArchiveIntervalStr","min-width":"100",label:e.$t("trials:uploadMonitor:table:archiveInterval"),"show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.ArchiveIntervalStr)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TotalMillisecondsInterval","min-width":"100",label:e.$t("trials:uploadMonitor:table:totalTime"),"show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.TimeInterval)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"FileCount","min-width":"100",label:e.$t("trials:uploadMonitor:table:fileCount"),"show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"FileSize","min-width":"100",label:e.$t("trials:uploadMonitor:table:fileSize"),"show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.fileSizeFormatter(t.row.FileSize))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsDicomReUpload","min-width":"140",label:e.$t("trials:uploadMonitor:table:isRepetition"),"show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("YesOrNo",t.row.IsDicomReUpload))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsSuccess","min-width":"130",label:e.$t("trials:uploadMonitor:table:uploadStatus"),"show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsSuccess?i("el-tag",{attrs:{type:"primary"}},[e._v(" "+e._s(e.$fd("YesOrNo",t.row.IsSuccess)))]):i("el-tag",{attrs:{type:"danger"}},[e._v(" "+e._s(e.$fd("YesOrNo",t.row.IsSuccess)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Note","min-width":"110",label:e.$t("trials:uploadMonitor:table:remark"),"show-overflow-tooltip":"",sortable:"custom"}})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1)],2)},a=[],r=i("3e42"),o=i("3f2a"),s=i("333d"),l=i("6071"),c=i("7eeb"),u=function(){return{SortField:"",Asc:!1,PageIndex:1,PageSize:20,TrialId:"",SiteId:"",SubjectId:"",SubjectVisitId:"",SubjectInfo:"",VisitPlanArray:[]}},d={components:{BaseContainer:l["default"],Pagination:s["default"],BaseModel:c["default"]},data:function(){return{list:[],total:0,loading:!1,searchData:u(),trialId:this.$route.query.trialId,siteOptions:[],visitPlanOptions:[]}},mounted:function(){this.getSite(),this.getList(),this.getVisitPlanOptions()},methods:{getList:function(){var e=this;this.loading=!0,this.searchData.TrialId=this.trialId,Object(r["ac"])(this.searchData).then((function(t){e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount,e.loading=!1})).catch((function(){e.loading=!1}))},getSite:function(){var e=this;Object(r["Zd"])(this.trialId).then((function(t){e.siteOptions=t.Result}))},getVisitPlanOptions:function(){var e=this;Object(r["ee"])(this.trialId).then((function(t){e.visitPlanOptions=t.Result}))},fileSizeFormatter:function(e){if(e)return(e/Math.pow(1024,2)).toFixed(3)+"M"},handleReset:function(){this.searchData=u(),this.getList()},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleSortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.getList()},handleExport:function(){Object(o["n"])(this.searchData).then((function(e){})).catch((function(){}))}}},f=d,h=i("2877"),p=Object(h["a"])(f,n,a,!1,null,null,null);t["default"]=p.exports},da75:function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-dict",use:"icon-dict-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-dict"><defs><style type="text/css"></style></defs><path d="M1002.0848 744.672l-33.568 10.368c0.96 7.264 2.144 14.304 2.144 21.76 0 7.328-1.184 14.432-2.368 21.568l33.792 10.56c7.936 2.24 14.496 7.616 18.336 14.752 3.84 7.328 4.672 15.808 1.952 23.552-5.376 16-23.168 24.672-39.936 19.68l-34.176-10.624c-7.136 12.8-15.776 24.672-26.208 35.2l20.8 27.488a28.96 28.96 0 0 1 5.824 22.816 29.696 29.696 0 0 1-12.704 19.616 32.544 32.544 0 0 1-44.416-6.752l-20.8-27.552c-13.696 6.56-28.192 11.2-43.008 13.888v33.632c0 16.736-14.112 30.432-31.648 30.432-17.6 0-31.872-13.696-31.872-30.432v-33.632a167.616 167.616 0 0 1-42.88-13.888l-20.928 27.552c-10.72 13.76-30.08 16.64-44.288 6.752a29.632 29.632 0 0 1-12.704-19.616 29.28 29.28 0 0 1 5.696-22.816l20.896-27.808a166.72 166.72 0 0 1-27.008-34.688l-33.376 10.432c-16.8 5.184-34.56-3.552-39.936-19.616a29.824 29.824 0 0 1 20.224-38.24l33.472-10.432c-0.8-7.264-2.016-14.304-2.016-21.824 0-7.36 1.184-14.496 2.304-21.632l-33.792-10.368c-16.672-5.376-25.632-22.496-20.224-38.432 5.376-16 23.136-24.672 39.936-19.68l34.016 10.752c7.328-12.672 15.84-24.8 26.336-35.328l-20.8-27.552a29.44 29.44 0 0 1 6.944-42.432 32.704 32.704 0 0 1 44.384 6.752l20.832 27.616c13.696-6.432 28.224-11.2 43.104-13.952v-33.568c0-16.736 14.048-30.432 31.648-30.432 17.536 0 31.808 13.568 31.808 30.432v33.504c15.072 2.688 29.344 7.808 42.848 14.016l20.992-27.616a32.48 32.48 0 0 1 44.224-6.752 29.568 29.568 0 0 1 7.136 42.432l-21.024 27.808c10.432 10.432 19.872 21.888 27.04 34.752l33.376-10.432c16.768-5.12 34.56 3.68 39.936 19.68 5.536 15.936-3.712 33.056-20.32 38.304z m-206.016-74.432c-61.344 0-111.136 47.808-111.136 106.56 0 58.88 49.792 106.496 111.136 106.496 61.312 0 111.104-47.616 111.104-106.496 0-58.752-49.792-106.56-111.104-106.56z" p-id="3602" /><path d="M802.7888 57.152h-76.448c0-22.08-21.024-38.24-42.848-38.24H39.3968a39.68 39.68 0 0 0-39.36 40.032v795.616s41.888 120.192 110.752 120.192H673.2848a227.488 227.488 0 0 1-107.04-97.44H117.6368s-40.608-13.696-40.608-41.248l470.304-0.256 1.664 3.36a227.68 227.68 0 0 1-12.64-73.632c0-60.576 24-118.624 66.88-161.44a228.352 228.352 0 0 1 123.552-63.392l-3.2 0.288 2.144-424.672h38.208l0.576 421.024c27.04 0 52.672 4.8 76.64 13.344V101.536c0.032 0-6.304-44.384-38.368-44.384zM149.7648 514.336H72.3888v-77.408H149.7648v77.408z m0-144.32H72.3888v-77.44H149.7648v77.44z m0-137.248H72.3888v-77.44H149.7648v77.44z m501.856 281.568H206.0848v-77.408h445.536v77.408z m0-144.32H206.0848v-77.44h445.536v77.44z m0-137.248H206.0848v-77.44h445.536v77.44z" p-id="3603" /></symbol>'});o.a.add(s);t["default"]=s},dae1:function(e,t,i){var n=i("3eba");i("928d"),i("b369"),i("4411");var a=i("90c2"),r=i("9ca8");n.registerVisual(a),n.registerLayout(r)},db0e:function(e,t,i){var n=i("3eba");i("a8c6"),i("8344"),n.registerPreprocessor((function(e){e.markPoint=e.markPoint||{}}))},db38:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{height:"100%"}},[i("router-view")],1)},a=[],r=i("2877"),o={},s=Object(r["a"])(o,n,a,!1,null,null,null);t["default"]=s.exports},db47:function(e,t,i){},db6f:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%",height:"100%"}},[i("transition",{attrs:{name:"viewer-fade"}},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.urlList.length>0,expression:"urlList.length > 0"}],ref:"image-viewer__wrapper",staticClass:"image-viewer__wrapper",style:{"z-index":5},attrs:{tabindex:"-1"}},[i("span",{staticClass:"image-viewer_desc"},[e._v("\n "+e._s(e.index+1+" / "+e.urlList.length)+"\n ")]),e._v(" "),i("span",{staticClass:"image-viewer__btn image-viewer__close",on:{click:e.hide}},[i("i",{staticClass:"el-icon-close"})]),e._v(" "),e.isSingle?e._e():[i("span",{staticClass:"image-viewer__btn image-viewer__prev",class:{"is-disabled":!e.infinite&&e.isFirst},on:{click:e.prev}},[i("i",{staticClass:"el-icon-arrow-left"})]),e._v(" "),i("span",{staticClass:"el-image-viewer__btn el-image-viewer__next",class:{"is-disabled":!e.infinite&&e.isLast},on:{click:e.next}},[i("i",{staticClass:"el-icon-arrow-right"})])],e._v(" "),i("div",{staticClass:"image-viewer__btn image-viewer__actions"},[i("div",{staticClass:"image-viewer__actions__inner"},[i("i",{staticClass:"el-icon-zoom-out",on:{click:function(t){return e.handleActions("zoomOut")}}}),e._v(" "),i("i",{staticClass:"el-icon-zoom-in",on:{click:function(t){return e.handleActions("zoomIn")}}}),e._v(" "),i("i",{staticClass:"el-image-viewer__actions__divider"}),e._v(" "),i("i",{staticClass:"el-icon-c-scale-to-original",on:{click:e.toggleMode}}),e._v(" "),i("i",{staticClass:"el-image-viewer__actions__divider"}),e._v(" "),i("i",{staticClass:"el-icon-refresh-left",on:{click:function(t){return e.handleActions("anticlocelise")}}}),e._v(" "),i("i",{staticClass:"el-icon-refresh-right",on:{click:function(t){return e.handleActions("clocelise")}}}),e._v(" "),i("i",{staticClass:"el-icon-bottom-right",style:{cursor:e.isToolDisabled||e.readingTaskState>=2?"not-allowed":"pointer"},on:{click:e.handleDrawArrow}})])]),e._v(" "),i("div",{staticClass:"image-viewer__canvas",attrs:{id:"image-viewer__canvas"}},[e.canvasSize.width&&e.canvasPosition.y?i("canvas",{style:e.imgStyle,attrs:{id:"canvas",height:e.canvasSize.height,width:e.canvasSize.width},on:{mousedown:e.handleMouseDown,mousemove:e.handleMouseMove,mouseup:e.handleMouseUp,contextmenu:e.handleContextmenu}}):e._e()])],2)])],1)},a=[],r=i("db72"),o=(i("20d6"),i("ac6a"),i("96cf"),i("3b8d")),s=(i("c5f6"),i("526f")),l=i("6bd7"),c=i("4360"),u=Object(l["a"])()?"DOMMouseScroll":"mousewheel",d="",f={name:"CustomizeNoneDicomsCanvas",props:{readingTaskState:{type:Number,default:2},urlList:{type:Array,default:function(){return[]}},studyCode:{type:String,default:""},bodyPart:{type:String,default:""},modality:{type:String,default:""},studyId:{type:String,default:""},onSwitch:{type:Function,default:function(){}},onClose:{type:Function,default:function(){}},initialIndex:{type:Number,default:0}},data:function(){return{loading:!1,index:this.initialIndex,isShow:!1,infinite:!0,transform:{scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1},imgUrl:"",ctx:null,canvasPosition:{x:"",y:""},canvasSize:{height:"",width:""},canvasMousePosition:{x:"",y:""},mousePosition:{x:"",y:""},color:"rgb(255, 255, 0)",lineWidth:2,isMouseDown:!1,canvasMouseStart:{x:"",y:""},model:"",currentImg:"",imgId:"",currentDrawData:{},canvasData:[],imgZoom:1,isToolDisabled:!1,lesionName:"",visitTaskId:"",isInit:!1,imgSize:{height:"",width:""}}},computed:{isSingle:function(){return this.urlList.length<=1},isFirst:function(){return 0===this.index},isLast:function(){return this.index===this.urlList.length-1},imgStyle:function(){var e=this.transform,t=e.scale,i=e.deg,n=e.offsetX,a=e.offsetY,r=e.enableTransition,o={transform:"scale(".concat(t,") rotate(").concat(i,"deg)"),transition:r?"transform .3s":"","margin-left":"".concat(n,"px"),"margin-top":"".concat(a,"px")};return o}},watch:{initialIndex:{immediate:!0,handler:function(e){this.index=e}},index:{immediate:!0,handler:function(e){this.reset(),this.onSwitch(e),this.imgUrl=this.urlList[e].Path,this.imgId=this.urlList[e].Id,this.loadImage()}}},mounted:function(){var e=this;window.addEventListener("message",this.receiveMsg),document.getElementById("image-viewer__canvas").onmousewheel=function(t){return t.deltaY>0?e.handleActions("zoomOut",{zoomRate:.015,enableTransition:!1}):e.handleActions("zoomIn",{zoomRate:.015,enableTransition:!1}),!1},this.deviceSupportInstall()},methods:{getCanvasData:function(){var e=this;return new Promise(function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(i){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.visitTaskId=e.$router.currentRoute.query.visitTaskId,e.canvasData=[],t.next=4,c["a"].dispatch("reading/getMeasuredData",e.visitTaskId);case 4:return t.next=6,c["a"].dispatch("reading/getNoneDicomMeasuredData",e.visitTaskId).then((function(t){t.forEach((function(t){t&&t.MeasureData&&e.canvasData.push(t.MeasureData)})),console.log("getCanvasData添加"),sessionStorage.setItem("measureData",e.canvasData)}));case 6:i();case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())},loadImage:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,i=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.loading=!0,this.isInit){e.next=5;break}return e.next=4,this.getCanvasData();case 4:this.isInit=!0;case 5:return t=new Image,t.src=this.imgUrl,e.abrupt("return",new Promise((function(e){t.onload=function(){i.currentImg=t,i.loading=!1,i.initCanvas(t),e(t)}})));case 8:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),handleDrawArrow:function(){var e={type:"isCanActiveNoneDicomTool",data:""};window.opener.postMessage(e,window.location)},receiveMsg:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){var i,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(console.log("nonedicoms",t.data.type),"isCanActiveNoneDicomTool"!==t.data.type){e.next=12;break}if(!t.data.data.isCanActiveTool){e.next=7;break}this.model="ArrowAnnotate",this.lesionName=t.data.data.lesionName,e.next=10;break;case 7:if(t.data.data.reason){e.next=9;break}return e.abrupt("return");case 9:this.$confirm(t.data.data.reason,{type:"warning",distinguishCancelAndClose:!0,showCancelButton:!1}).then((function(){}));case 10:e.next=42;break;case 12:if("removeNoneDicomMeasureData"!==t.data.type){e.next=25;break}return i=this.canvasData.findIndex((function(e){return e.data.uuid===t.data.data.data.uuid})),this.canvasData.splice(i,1),console.log("移除",t.data.data.data.uuid,this.canvasData),d.clearRect(0,0,this.canvasSize.width,this.canvasSize.height),e.next=19,d.drawImage(this.currentImg,0,0,this.canvasSize.width,this.canvasSize.height);case 19:this.drawToArr(),this.isMouseDown=!1,this.model="",this.lesionName="",e.next=42;break;case 25:if("addNoneDicomMeasureData"!==t.data.type){e.next=42;break}n=this.canvasData.length-1;case 27:if(!(n>=0)){e.next=35;break}if(!this.canvasData[n]||!this.canvasData[n].data||this.canvasData[n].data.uuid!==t.data.data.data.uuid){e.next=32;break}return this.canvasData[n]=t.data.data,console.log("添加",t.data.data,t.data.data.data.uuid,this.canvasData),e.abrupt("break",35);case 32:n--,e.next=27;break;case 35:return d.clearRect(0,0,this.canvasSize.width,this.canvasSize.height),e.next=38,d.drawImage(this.currentImg,0,0,this.canvasSize.width,this.canvasSize.height);case 38:this.drawToArr(),this.isMouseDown=!1,this.model="",this.lesionName="";case 42:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),initCanvas:function(e){var t=this;this.loading=!0,this.canvasSize.height=e.height,this.canvasSize.width=e.width,this.imgSize.height=e.height,this.imgSize.width=e.width;var i=document.getElementsByClassName("image-viewer__canvas")[0];this.canvasPosition={x:i.offsetWidth/2-e.width/2,y:i.offsetHeight/2-e.height/2-25},this.$nextTick(Object(o["a"])(regeneratorRuntime.mark((function i(){return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return d=document.getElementById("canvas").getContext("2d"),i.next=3,d.drawImage(e,0,0,e.width,e.height);case 3:t.drawToArr(),t.loading=!1;case 5:case"end":return i.stop()}}),i)}))))},clearCanvas:function(){this.canvasData=[],this.currentDrawData={},d.clearRect(0,0,this.canvasSize.width,this.canvasSize.height),d.drawImage(this.currentImg,0,0,this.canvasSize.width,this.canvasSize.height)},handleContextmenu:function(e){e.preventDefault()},handleMouseDown:function(e){0===e.button&&(this.isMouseDown=!0,this.canvasMouseStart={x:e.offsetX,y:e.offsetY})},handleMouseMove:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.mousePosition={x:t.pageX,y:t.pageY},this.canvasMousePosition={x:t.offsetX,y:t.offsetY},(t.offsetX<0||t.offsetY<0||0===t.offsetX||0===t.offsetY)&&(this.isMsg=!1,this.isMouseDown=!1),this.isMouseDown){e.next=5;break}return e.abrupt("return");case 5:return d.clearRect(0,0,this.canvasSize.width,this.canvasSize.height),e.next=8,d.drawImage(this.currentImg,0,0,this.canvasSize.width,this.canvasSize.height);case 8:return e.next=10,this.drawToArr();case 10:"ArrowAnnotate"===this.model&&this.drawArrowAnnotate(t);case 11:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),drawToArr:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.canvasData.forEach((function(e){if(e.instanceId===t.imgId&&"ArrowAnnotate"===e.type){var i,n,a=10,r=45,o=e.data.handles.start.x,s=e.data.handles.start.y,l=e.data.handles.end.x,c=e.data.handles.end.y,u=180*Math.atan2(s-c,o-l)/Math.PI,f=(u+r)*Math.PI/180,h=(u-r)*Math.PI/180,p=a*Math.cos(f),m=a*Math.sin(f),g=a*Math.cos(h),v=a*Math.sin(h);d.lineWidth=t.lineWidth,d.beginPath(),d.moveTo(o*t.imgZoom,s*t.imgZoom),d.lineTo(l*t.imgZoom,c*t.imgZoom),i=l+p,n=c+m,d.moveTo(i,n),d.lineTo(l,c),i=l+g,n=c+v,d.lineTo(i,n),t.drawText(d,{x:o,y:s},{x:l,y:c},e.data.remark,t.color),d.strokeStyle=t.color,d.stroke()}}));case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),handleMouseUp:function(e){if(0===e.button){if("ArrowAnnotate"===this.model){for(var t in this.currentDrawData.data.handles)this.currentDrawData.data.handles[t].x=this.currentDrawData.data.handles[t].x/this.imgZoom,this.currentDrawData.data.handles[t].y=this.currentDrawData.data.handles[t].y/this.imgZoom;this.currentDrawData&&this.currentDrawData.data&&(console.log("handleMouseUp添加"),this.canvasData.push(this.currentDrawData))}this.isMouseDown=!1,this.model="",this.lesionName="",this.canvasMousePosition={x:e.offsetX,y:e.offsetY};var i={type:"setMeasurement",data:this.currentDrawData};window.opener.postMessage(i,window.location)}},drawArrowAnnotate:function(e){var t,i,n=10,a=45,r=this.canvasMouseStart.x,o=this.canvasMouseStart.y,s=e.offsetX,l=e.offsetY,c=180*Math.atan2(o-l,r-s)/Math.PI,u=(c+a)*Math.PI/180,f=(c-a)*Math.PI/180,h=n*Math.cos(u),p=n*Math.sin(u),m=n*Math.cos(f),g=n*Math.sin(f);d.lineWidth=this.lineWidth,d.beginPath(),d.strokeStyle=this.color,d.moveTo(this.canvasMouseStart.x,this.canvasMouseStart.y),d.lineTo(e.offsetX,e.offsetY),t=s+h,i=l+p,d.moveTo(t,i),d.lineTo(s,l),t=s+m,i=l+g,d.lineTo(t,i),this.drawText(d,{x:r,y:o},{x:s,y:l},this.lesionName,this.color),d.stroke(),this.currentDrawData={isDicomReading:!1,studyId:this.studyId,seriesId:"",instanceId:this.imgId,type:"ArrowAnnotate",data:{handles:{start:{x:this.canvasMouseStart.x,y:this.canvasMouseStart.y},end:{x:e.offsetX,y:e.offsetY}},remark:this.lesionName,uuid:"".concat(this.imgId,"-").concat(this.lesionName),toolName:"ArrowAnnotate",toolType:"ArrowAnnotate"}}},drawText:function(e,t,i,n,a){if(n&&""!==n){var r=5,o=this.textBoxWidth(e,n,r),s=12,l=s+10,c=Math.max(o,l)/2+r;i.x<t.x&&(c=-c);var u={x:i.x-o/2-c,y:i.y-l/2},d={width:o,height:r+s+r};d.left=u.x,d.top=u.y,e.textBaseline="top",e.font="".concat(s,"px Arial"),e.fillStyle=a,e.fillText(n,d.left+r,d.top+r+s+r)}},textBoxWidth:function(e,t,i){var n=e.measureText(t).width;return n+2*i},hide:function(){this.deviceSupportUninstall(),this.onClose()},deviceSupportInstall:function(){var e=this;this._keyDownHandler=function(t){t.stopPropagation();var i=t.keyCode;switch(i){case 27:e.hide();break;case 32:e.toggleMode();break;case 37:e.prev();break;case 38:e.handleActions("zoomIn");break;case 39:e.next();break;case 40:e.handleActions("zoomOut");break}},this._mouseWheelHandler=Object(l["b"])((function(t){var i=t.wheelDelta?t.wheelDelta:-t.detail;i>0?e.handleActions("zoomIn",{zoomRate:.015,enableTransition:!1}):e.handleActions("zoomOut",{zoomRate:.015,enableTransition:!1})})),Object(s["b"])(document,"keydown",this._keyDownHandler),Object(s["b"])(document,u,null)},deviceSupportUninstall:function(){Object(s["a"])(document,"keydown",this._keyDownHandler),Object(s["a"])(document,u,this._mouseWheelHandler),this._keyDownHandler=null,this._mouseWheelHandler=null},handleImgLoad:function(e){this.loading=!1},handleImgError:function(e){this.loading=!1,e.target.alt="加载失败"},reset:function(){this.transform={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}},toggleMode:function(){this.loading||this.reset()},prev:function(){if(!this.isFirst||this.infinite){var e=this.urlList.length;this.index=(this.index-1+e)%e}},next:function(){if(!this.isLast||this.infinite){var e=this.urlList.length;this.index=(this.index+1)%e}},handleActions:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.loading){var i=Object(r["a"])({zoomRate:.2,rotateDeg:90,enableTransition:!0},t),n=i.zoomRate,a=i.rotateDeg,o=i.enableTransition,s=this.transform;switch(e){case"zoomOut":s.scale>.2&&(s.scale=parseFloat((s.scale-n).toFixed(3)));break;case"zoomIn":s.scale<5&&(s.scale=parseFloat((s.scale+n).toFixed(3)));break;case"clocelise":s.deg+=a;break;case"anticlocelise":s.deg-=a;break}s.enableTransition=o}}}},h=f,p=(i("ed4c"),i("2877")),m=Object(p["a"])(h,n,a,!1,null,"74d167e6",null);t["default"]=m.exports},db9e:function(e,t,i){var n=i("3eba"),a=i("6d8b"),r=i("e86a"),o=i("2145"),s=i("2306"),l=i("4319"),c=i("80f0"),u=i("79190"),d=n.extendComponentView({type:"toolbox",render:function(e,t,i,n){var d=this.group;if(d.removeAll(),e.get("show")){var h=+e.get("itemSize"),p=e.get("feature")||{},m=this._features||(this._features={}),g=[];a.each(p,(function(e,t){g.push(t)})),new c(this._featureNames||[],g).add(v).update(v).remove(a.curry(v,null)).execute(),this._featureNames=g,u.layout(d,e,i),d.add(u.makeBackground(d.getBoundingRect(),e)),d.eachChild((function(e){var t=e.__title,n=e.hoverStyle;if(n&&t){var a=r.getBoundingRect(t,r.makeFont(n)),o=e.position[0]+d.position[0],s=e.position[1]+d.position[1]+h,l=!1;s+a.height>i.getHeight()&&(n.textPosition="top",l=!0);var c=l?-5-a.height:h+8;o+a.width/2>i.getWidth()?(n.textPosition=["100%",c],n.textAlign="right"):o-a.width/2<0&&(n.textPosition=[0,c],n.textAlign="left")}}))}function v(a,r){var s,c=g[a],u=g[r],d=p[c],h=new l(d,e,e.ecModel);if(n&&null!=n.newTitle&&n.featureName===c&&(d.title=n.newTitle),c&&!u){if(f(c))s={model:h,onclick:h.option.onclick,featureName:c};else{var v=o.get(c);if(!v)return;s=new v(h,t,i)}m[c]=s}else{if(s=m[u],!s)return;s.model=h,s.ecModel=t,s.api=i}c||!u?h.get("show")&&!s.unusable?(b(h,s,c),h.setIconStatus=function(e,t){var i=this.option,n=this.iconPaths;i.iconStatus=i.iconStatus||{},i.iconStatus[e]=t,n[e]&&n[e].trigger(t)},s.render&&s.render(h,t,i,n)):s.remove&&s.remove(t,i):s.dispose&&s.dispose(t,i)}function b(n,r,o){var l=n.getModel("iconStyle"),c=n.getModel("emphasis.iconStyle"),u=r.getIcons?r.getIcons():n.get("icon"),f=n.get("title")||{};if("string"===typeof u){var p=u,m=f;u={},f={},u[o]=p,f[o]=m}var g=n.iconPaths={};a.each(u,(function(o,u){var p=s.createIcon(o,{},{x:-h/2,y:-h/2,width:h,height:h});p.setStyle(l.getItemStyle()),p.hoverStyle=c.getItemStyle(),p.setStyle({text:f[u],textAlign:c.get("textAlign"),textBorderRadius:c.get("textBorderRadius"),textPadding:c.get("textPadding"),textFill:null});var m=e.getModel("tooltip");m&&m.get("show")&&p.attr("tooltip",a.extend({content:f[u],formatter:m.get("formatter",!0)||function(){return f[u]},formatterParams:{componentType:"toolbox",name:u,title:f[u],$vars:["name","title"]},position:m.get("position",!0)||"bottom"},m.option)),s.setHoverStyle(p),e.get("showTitle")&&(p.__title=f[u],p.on("mouseover",(function(){var t=c.getItemStyle(),i="vertical"===e.get("orient")?null==e.get("right")?"right":"left":null==e.get("bottom")?"bottom":"top";p.setStyle({textFill:c.get("textFill")||t.fill||t.stroke||"#000",textBackgroundColor:c.get("textBackgroundColor"),textPosition:c.get("textPosition")||i})})).on("mouseout",(function(){p.setStyle({textFill:null,textBackgroundColor:null})}))),p.trigger(n.get("iconStatus."+u)||"normal"),d.add(p),p.on("click",a.bind(r.onclick,r,t,i,u)),g[u]=p}))}},updateView:function(e,t,i,n){a.each(this._features,(function(e){e.updateView&&e.updateView(e.model,t,i,n)}))},remove:function(e,t){a.each(this._features,(function(i){i.remove&&i.remove(e,t)})),this.group.removeAll()},dispose:function(e,t){a.each(this._features,(function(i){i.dispose&&i.dispose(e,t)}))}});function f(e){return 0===e.indexOf("my")}e.exports=d},dbe0:function(e,t,i){},dc13:function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-peoples",use:"icon-peoples-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-peoples"><path d="M95.648 118.762c0 5.035-3.563 9.121-7.979 9.121H7.98c-4.416 0-7.979-4.086-7.979-9.121C0 100.519 15.408 83.47 31.152 76.75c-9.099-6.43-15.216-17.863-15.216-30.987v-9.128c0-20.16 14.293-36.518 31.893-36.518s31.894 16.358 31.894 36.518v9.122c0 13.137-6.123 24.556-15.216 30.993 15.738 6.726 31.141 23.769 31.141 42.012z" /><path d="M106.032 118.252h15.867c3.376 0 6.101-3.125 6.101-6.972 0-13.957-11.787-26.984-23.819-32.123 6.955-4.919 11.638-13.66 11.638-23.704v-6.985c0-15.416-10.928-27.926-24.39-27.926-1.674 0-3.306.193-4.89.561 1.936 4.713 3.018 9.974 3.018 15.526v9.121c0 13.137-3.056 23.111-11.066 30.993 14.842 4.41 27.312 23.42 27.541 41.509z" /></symbol>'});o.a.add(s);t["default"]=s},dc20:function(e,t,i){var n=i("8727"),a=n.createElement,r=i("6d8b"),o=i("4942"),s=i("cbe5"),l=i("0da8"),c=i("76a5"),u=i("0c12"),d=i("b16f"),f=i("9fa3"),h=i("bcaa1"),p=i("3f8e"),m=p.path,g=p.image,v=p.text;function b(e){return parseInt(e,10)}function y(e){return e instanceof s?m:e instanceof l?g:e instanceof c?v:m}function w(e,t){return t&&e&&t.parentNode!==e}function _(e,t,i){if(w(e,t)&&i){var n=i.nextSibling;n?e.insertBefore(t,n):e.appendChild(t)}}function I(e,t){if(w(e,t)){var i=e.firstChild;i?e.insertBefore(t,i):e.appendChild(t)}}function x(e,t){t&&e&&t.parentNode===e&&e.removeChild(t)}function S(e){return e.__textSvgEl}function T(e){return e.__svgEl}var C=function(e,t,i,n){this.root=e,this.storage=t,this._opts=i=r.extend({},i||{});var o=a("svg");o.setAttribute("xmlns","http://www.w3.org/2000/svg"),o.setAttribute("version","1.1"),o.setAttribute("baseProfile","full"),o.style.cssText="user-select:none;position:absolute;left:0;top:0;";var s=a("g");o.appendChild(s);var l=a("g");o.appendChild(l),this.gradientManager=new d(n,l),this.clipPathManager=new f(n,l),this.shadowManager=new h(n,l);var c=document.createElement("div");c.style.cssText="overflow:hidden;position:relative",this._svgDom=o,this._svgRoot=l,this._backgroundRoot=s,this._viewport=c,e.appendChild(c),c.appendChild(o),this.resize(i.width,i.height),this._visibleList=[]};function k(e){return function(){o('In SVG mode painter not support method "'+e+'"')}}C.prototype={constructor:C,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getSvgDom:function(){return this._svgDom},getSvgRoot:function(){return this._svgRoot},getViewportRootOffset:function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},refresh:function(){var e=this.storage.getDisplayList(!0);this._paintList(e)},setBackgroundColor:function(e){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var t=a("rect");t.setAttribute("width",this.getWidth()),t.setAttribute("height",this.getHeight()),t.setAttribute("x",0),t.setAttribute("y",0),t.setAttribute("id",0),t.style.fill=e,this._backgroundRoot.appendChild(t),this._backgroundNode=t},_paintList:function(e){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var t,i=this._svgRoot,n=this._visibleList,a=e.length,r=[];for(t=0;t<a;t++){var o=e[t],s=y(o),l=T(o)||S(o);o.invisible||(o.__dirty&&(s&&s.brush(o),this.clipPathManager.update(o),o.style&&(this.gradientManager.update(o.style.fill),this.gradientManager.update(o.style.stroke),this.shadowManager.update(l,o)),o.__dirty=!1),r.push(o))}var c,d=u(n,r);for(t=0;t<d.length;t++){var f=d[t];if(f.removed)for(var h=0;h<f.count;h++){o=n[f.indices[h]],l=T(o);var p=S(o);x(i,l),x(i,p)}}for(t=0;t<d.length;t++){f=d[t];if(f.added)for(h=0;h<f.count;h++){o=r[f.indices[h]],l=T(o),p=S(o);c?_(i,l,c):I(i,l),l?_(i,p,l):c?_(i,p,c):I(i,p),_(i,p,l),c=p||l||c,this.gradientManager.addWithoutUpdate(l||p,o),this.shadowManager.addWithoutUpdate(l||p,o),this.clipPathManager.markUsed(o)}else if(!f.removed)for(h=0;h<f.count;h++){o=r[f.indices[h]],l=T(o),p=S(o),l=T(o),p=S(o);this.gradientManager.markUsed(o),this.gradientManager.addWithoutUpdate(l||p,o),this.shadowManager.markUsed(o),this.shadowManager.addWithoutUpdate(l||p,o),this.clipPathManager.markUsed(o),p&&_(i,p,l),c=l||p||c}}this.gradientManager.removeUnused(),this.clipPathManager.removeUnused(),this.shadowManager.removeUnused(),this._visibleList=r},_getDefs:function(e){var t=this._svgDom,i=t.getElementsByTagName("defs");if(0===i.length){if(e){i=t.insertBefore(a("defs"),t.firstChild);return i.contains||(i.contains=function(e){var t=i.children;if(!t)return!1;for(var n=t.length-1;n>=0;--n)if(t[n]===e)return!0;return!1}),i}return null}return i[0]},resize:function(e,t){var i=this._viewport;i.style.display="none";var n=this._opts;if(null!=e&&(n.width=e),null!=t&&(n.height=t),e=this._getSize(0),t=this._getSize(1),i.style.display="",this._width!==e||this._height!==t){this._width=e,this._height=t;var a=i.style;a.width=e+"px",a.height=t+"px";var r=this._svgDom;r.setAttribute("width",e),r.setAttribute("height",t)}this._backgroundNode&&(this._backgroundNode.setAttribute("width",e),this._backgroundNode.setAttribute("height",t))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(e){var t=this._opts,i=["width","height"][e],n=["clientWidth","clientHeight"][e],a=["paddingLeft","paddingTop"][e],r=["paddingRight","paddingBottom"][e];if(null!=t[i]&&"auto"!==t[i])return parseFloat(t[i]);var o=this.root,s=document.defaultView.getComputedStyle(o);return(o[n]||b(s[i])||b(o.style[i]))-(b(s[a])||0)-(b(s[r])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._backgroundRoot=this._svgDom=this._backgroundNode=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},toDataURL:function(){this.refresh();var e=encodeURIComponent(this._svgDom.outerHTML.replace(/></g,">\n\r<"));return"data:image/svg+xml;charset=UTF-8,"+e}},r.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","pathToImage"],(function(e){C.prototype[e]=k(e)}));var R=C;e.exports=R},dc2f:function(e,t){var i=function(e,t){this.image=e,this.repeat=t,this.type="pattern"};i.prototype.getCanvasPattern=function(e){return e.createPattern(this.image,this.repeat||"repeat")};var n=i;e.exports=n},dc32:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"question-wrapper"},[i("el-tabs",{on:{"tab-click":e.clickTab},model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},[i("el-tab-pane",{attrs:{label:"DICOM匿名配置",name:"anonymization"}},["anonymization"==e.activeTab?i("Anonymization"):e._e()],1)],1)],1)},a=[],r=(i("7f7f"),i("0a32")),o=i("5adc"),s=i("909f"),l=i("2ae9"),c=i("02c9"),u=i("87d6"),d=i("cc2e"),f=i("8455"),h={name:"Questions",components:{QcQuestions:r["default"],CriterionsTmp:o["default"],ClinicalData:s["default"],Anonymization:c["default"],IncreaseFields:u["default"],Email:d["default"],Sign:f["default"],MedicalAudit:l["default"]},data:function(){return{activeTab:"anonymization"}},mounted:function(){this.$route.query.tabActive?this.activeTab=this.$route.query.tabActive:this.activeTab="anonymization"},methods:{clickTab:function(e,t){this.$router.push({path:"/dictionary/template?tabActive=".concat(e.name)})}}},p=h,m=(i("8e6c"),i("2877")),g=Object(m["a"])(p,n,a,!1,null,null,null);t["default"]=g.exports},dc78:function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-table",use:"icon-table-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-table"><path d="M.006.064h127.988v31.104H.006V.064zm0 38.016h38.396v41.472H.006V38.08zm0 48.384h38.396v41.472H.006V86.464zM44.802 38.08h38.396v41.472H44.802V38.08zm0 48.384h38.396v41.472H44.802V86.464zM89.598 38.08h38.396v41.472H89.598zm0 48.384h38.396v41.472H89.598z" /><path d="M.006.064h127.988v31.104H.006V.064zm0 38.016h38.396v41.472H.006V38.08zm0 48.384h38.396v41.472H.006V86.464zM44.802 38.08h38.396v41.472H44.802V38.08zm0 48.384h38.396v41.472H44.802V86.464zM89.598 38.08h38.396v41.472H89.598zm0 48.384h38.396v41.472H89.598z" /></symbol>'});o.a.add(s);t["default"]=s},dc83:function(e,t,i){"use strict";i("efa6")},dcaf:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-container",{staticClass:"siteform-container"},[i("el-header",{staticStyle:{height:"50px"}},[i("div",{staticClass:"filter-container"},[i("span",[e._v(e._s(e.$t("trials:customSite:form:siteName"))+":")]),e._v(" "),i("el-input",{staticClass:"mr",attrs:{size:"mini",clearable:""},model:{value:e.listQuery.SiteName,callback:function(t){e.$set(e.listQuery,"SiteName",t)},expression:"listQuery.SiteName"}}),e._v(" "),i("el-button",{attrs:{type:"primary",size:"mini",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"mini",type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")]),e._v(" "),i("span",{staticStyle:{"margin-left":"auto"}},[i("el-button",{attrs:{type:"primary",size:"mini",icon:"el-icon-plus"},on:{click:e.handleCustomSite}},[e._v("\n "+e._s(e.$t("trials:sitesList:dialogButton:customSite"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"mini",disabled:0===e.selectArr.length,loading:e.assignLoadStatus,icon:"el-icon-plus"},on:{click:e.handleAssign}},[e._v("\n "+e._s(e.$t("trials:sitesList:dialogButton:addSite"))+"\n ")])],1)],1)]),e._v(" "),i("el-main",[i("div",{staticClass:"data-table"},[i("el-table",{staticClass:"site-table-list",attrs:{data:e.list,stripe:"",height:"400px"},on:{"selection-change":e.handleSelectChange,"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"selection",width:"50",selectable:e.handleSelectable}}),e._v(" "),i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"SiteName",label:e.$t("trials:customSite:form:siteName"),"show-overflow-tooltip":"",sortable:"custom","min-width":"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Country",label:e.$t("trials:customSite:form:country"),"show-overflow-tooltip":"",sortable:"custom","min-width":"80"}}),e._v(" "),i("el-table-column",{attrs:{prop:"City",label:e.$t("trials:customSite:form:city"),"show-overflow-tooltip":"","min-width":"80",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Address",label:e.$t("trials:customSite:form:address"),"show-overflow-tooltip":"",sortable:"custom","min-width":"120"}})],1)],1)]),e._v(" "),i("el-footer",{staticStyle:{"text-align":"right"}},[i("div",{staticClass:"pagination"},[i("pagination",{attrs:{total:e.total,page:e.listQuery.PageIndex,limit:e.listQuery.PageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"PageIndex",t)},"update:limit":function(t){return e.$set(e.listQuery,"PageSize",t)},pagination:e.getList}})],1)]),e._v(" "),e.customVisible?i("el-dialog",{attrs:{visible:e.customVisible,"close-on-click-modal":!1,title:e.$t("trials:customSite:title:custom"),width:"600px","custom-class":"base-dialog-wrapper","append-to-body":""},on:{"update:visible":function(t){e.customVisible=t}}},[e.customVisible?i("CustomSiteForm",{on:{close:e.closeDialog,getList:e.handleReset}}):e._e()],1):e._e()],1)},a=[],r=i("3e42"),o=i("4165"),s=i("333d"),l=function(){return{SiteName:"",PageIndex:1,PageSize:20}},c={components:{Pagination:s["default"],CustomSiteForm:o["default"]},data:function(){return{list:[],total:0,listQuery:l(),selectArr:[],assignLoadStatus:!1,customVisible:!1,trialId:""}},mounted:function(){this.trialId=this.$route.query.trialId,this.getList()},methods:{getList:function(){var e=this,t=this.$loading({target:document.querySelector(".site-table-list"),fullscreen:!1,lock:!0});this.listQuery.TrialId=this.trialId,Object(r["Yd"])(this.listQuery).then((function(i){t.close(),e.list=i.Result.CurrentPageData,e.total=i.Result.TotalCount})).catch((function(){t.close()}))},handleCustomSite:function(){this.customVisible=!0},closeDialog:function(){this.customVisible=!1},handleAssign:function(){var e=this;this.$confirm(this.$t("trials:customSite:message:add"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){var t=e.$loading({target:document.querySelector(".site-table-list"),fullscreen:!1,lock:!0});e.assignLoadStatus=!0,Object(r["J"])(e.selectArr).then((function(i){e.assignLoadStatus=!1,t.close(),i.IsSuccess&&(e.$emit("closeDialog"),e.$message.success(e.$t("common:message:addedSuccessfully")))})).catch((function(){t.close(),e.assignLoadStatus=!1}))}))},handleSearch:function(){this.listQuery.PageIndex=1,this.getList()},handleReset:function(){this.listQuery=l(),this.getList()},handleSelectChange:function(e){for(var t=[],i=0;i<e.length;i++){var n={TrialId:this.trialId,SiteId:e[i].Id,SiteName:e[i].SiteName};t.push(n)}this.selectArr=t},handleSortByColumn:function(e){"ascending"===e.order?this.listQuery.Asc=!0:this.listQuery.Asc=!1,this.listQuery.SortField=e.prop,this.listQuery.PageIndex=1,this.getList()},handleSelectable:function(e){return!e.IsSelect}}},u=c,d=(i("8d1b"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,"65e3370c",null);t["default"]=f.exports},dcb3:function(e,t,i){var n=i("6d8b"),a=i("625e"),r=i("2306"),o=i("cd33"),s=i("607d"),l=i("88b3"),c=i("e0d3"),u=c.makeInner,d=u(),f=n.clone,h=n.bind;function p(){}function m(e,t,i,n){g(d(i).lastProp,n)||(d(i).lastProp=n,t?r.updateProps(i,n,e):(i.stopAnimation(),i.attr(n)))}function g(e,t){if(n.isObject(e)&&n.isObject(t)){var i=!0;return n.each(t,(function(t,n){i=i&&g(e[n],t)})),!!i}return e===t}function v(e,t){e[t.get("label.show")?"show":"hide"]()}function b(e){return{position:e.position.slice(),rotation:e.rotation||0}}function y(e,t,i){var n=t.get("z"),a=t.get("zlevel");e&&e.traverse((function(e){"group"!==e.type&&(null!=n&&(e.z=n),null!=a&&(e.zlevel=a),e.silent=i)}))}p.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(e,t,i,a){var o=t.get("value"),s=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=i,a||this._lastValue!==o||this._lastStatus!==s){this._lastValue=o,this._lastStatus=s;var l=this._group,c=this._handle;if(!s||"hide"===s)return l&&l.hide(),void(c&&c.hide());l&&l.show(),c&&c.show();var u={};this.makeElOption(u,o,e,t,i);var d=u.graphicKey;d!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=d;var f=this._moveAnimation=this.determineAnimation(e,t);if(l){var h=n.curry(m,t,f);this.updatePointerEl(l,u,h,t),this.updateLabelEl(l,u,h,t)}else l=this._group=new r.Group,this.createPointerEl(l,u,e,t),this.createLabelEl(l,u,e,t),i.getZr().add(l);y(l,t,!0),this._renderHandle(o)}},remove:function(e){this.clear(e)},dispose:function(e){this.clear(e)},determineAnimation:function(e,t){var i=t.get("animation"),n=e.axis,a="category"===n.type,r=t.get("snap");if(!r&&!a)return!1;if("auto"===i||null==i){var s=this.animationThreshold;if(a&&n.getBandWidth()>s)return!0;if(r){var l=o.getAxisInfo(e).seriesDataCount,c=n.getExtent();return Math.abs(c[0]-c[1])/l>s}return!1}return!0===i},makeElOption:function(e,t,i,n,a){},createPointerEl:function(e,t,i,n){var a=t.pointer;if(a){var o=d(e).pointerEl=new r[a.type](f(t.pointer));e.add(o)}},createLabelEl:function(e,t,i,n){if(t.label){var a=d(e).labelEl=new r.Rect(f(t.label));e.add(a),v(a,n)}},updatePointerEl:function(e,t,i){var n=d(e).pointerEl;n&&t.pointer&&(n.setStyle(t.pointer.style),i(n,{shape:t.pointer.shape}))},updateLabelEl:function(e,t,i,n){var a=d(e).labelEl;a&&(a.setStyle(t.label.style),i(a,{shape:t.label.shape,position:t.label.position}),v(a,n))},_renderHandle:function(e){if(!this._dragging&&this.updateHandleTransform){var t,i=this._axisPointerModel,a=this._api.getZr(),o=this._handle,c=i.getModel("handle"),u=i.get("status");if(!c.get("show")||!u||"hide"===u)return o&&a.remove(o),void(this._handle=null);this._handle||(t=!0,o=this._handle=r.createIcon(c.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(e){s.stop(e.event)},onmousedown:h(this._onHandleDragMove,this,0,0),drift:h(this._onHandleDragMove,this),ondragend:h(this._onHandleDragEnd,this)}),a.add(o)),y(o,i,!1);var d=["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];o.setStyle(c.getItemStyle(null,d));var f=c.get("size");n.isArray(f)||(f=[f,f]),o.attr("scale",[f[0]/2,f[1]/2]),l.createOrUpdate(this,"_doDispatchAxisPointer",c.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,t)}},_moveHandleToValue:function(e,t){m(this._axisPointerModel,!t&&this._moveAnimation,this._handle,b(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(e,t){var i=this._handle;if(i){this._dragging=!0;var n=this.updateHandleTransform(b(i),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(b(n)),d(i).lastProp=null,this._doDispatchAxisPointer()}},_doDispatchAxisPointer:function(){var e=this._handle;if(e){var t=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.componentIndex}]})}},_onHandleDragEnd:function(e){this._dragging=!1;var t=this._handle;if(t){var i=this._axisPointerModel.get("value");this._moveHandleToValue(i),this._api.dispatchAction({type:"hideTip"})}},getHandleTransform:null,updateHandleTransform:null,clear:function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),i=this._group,n=this._handle;t&&i&&(this._lastGraphicKey=null,i&&t.remove(i),n&&t.remove(n),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(e,t,i){return i=i||0,{x:e[i],y:e[1-i],width:t[i],height:t[1-i]}}},p.prototype.constructor=p,a.enableClassExtend(p);var w=p;e.exports=w},dcb4:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{ref:"userForm",staticStyle:{width:"800px"},attrs:{size:"small",model:e.user,rules:e.userFormRules,"label-width":"150px"}},[i("el-card",{staticClass:"Basic",attrs:{shadow:"never",size:"small"}},[i("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[i("span",[e._v(e._s(e.$t("trials:trials-myinfo:title:basicInfo")))])]),e._v(" "),e.user.UserCode?i("el-form-item",{attrs:{label:"S/N",prop:"UserCode"}},[i("el-input",{attrs:{disabled:""},model:{value:e.user.UserCode,callback:function(t){e.$set(e.user,"UserCode",t)},expression:"user.UserCode"}})],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:e.$t("admin:UserName"),prop:"UserName"}},[i("el-input",{model:{value:e.user.UserName,callback:function(t){e.$set(e.user,"UserName",t)},expression:"user.UserName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:staffResearch:form:lastName"),prop:"LastName"}},[i("el-input",{model:{value:e.user.LastName,callback:function(t){e.$set(e.user,"LastName",t)},expression:"user.LastName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:staffResearch:form:firstName"),prop:"FirstName"}},[i("el-input",{model:{value:e.user.FirstName,callback:function(t){e.$set(e.user,"FirstName",t)},expression:"user.FirstName"}})],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-right":"40px"},attrs:{label:e.$t("admin:Sex"),prop:"Sex"}},[i("el-radio-group",{model:{value:e.user.Sex,callback:function(t){e.$set(e.user,"Sex",t)},expression:"user.Sex"}},e._l(e.$d.Sex,(function(t){return i("el-radio",{attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("admin:EMail"),prop:"EMail"}},[i("el-input",{model:{value:e.user.EMail,callback:function(t){e.$set(e.user,"EMail",t)},expression:"user.EMail"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("admin:Phone"),prop:"Phone"}},[i("el-input",{model:{value:e.user.Phone,callback:function(t){e.$set(e.user,"Phone",t)},expression:"user.Phone"}})],1),e._v(" "),1==e.type?i("el-form-item",{attrs:{label:e.$t("admin:Status")}},[i("el-switch",{attrs:{"active-value":0,"inactive-value":1},model:{value:e.user.Status,callback:function(t){e.$set(e.user,"Status",t)},expression:"user.Status"}})],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:e.$t("admin:IsTestUser")}},[i("el-switch",{model:{value:e.user.IsTestUser,callback:function(t){e.$set(e.user,"IsTestUser",t)},expression:"user.IsTestUser"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("admin:UserType"),prop:"UserTypeId"}},[i("el-select",{ref:"userType",staticStyle:{width:"100%"},attrs:{size:"small",disabled:!1===e.user.CanEditUserType},model:{value:e.user.UserTypeId,callback:function(t){e.$set(e.user,"UserTypeId",t)},expression:"user.UserTypeId"}},e._l(e.userTypeOptions,(function(t,n){return 20!==t.UserTypeEnum?i("el-option",{key:n,attrs:{label:t.UserType,value:t.Id}}):e._e()})),1)],1)],1),e._v(" "),i("el-card",{staticClass:"Affiliation",staticStyle:{"margin-top":"10px"},attrs:{shadow:"never",size:"small"}},[i("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[i("span",[e._v(e._s(e.$t("admin:OrganizationName")))])]),e._v(" "),i("el-form-item",{attrs:{label:e.$t("admin:IsZhiZhun")}},[i("el-radio-group",{on:{change:e.OrgnizationTypeChanged},model:{value:e.user.IsZhiZhun,callback:function(t){e.$set(e.user,"IsZhiZhun",t)},expression:"user.IsZhiZhun"}},e._l(e.$d.IsZhiZhun,(function(t){return i("el-radio",{attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1),e._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:!1===e.user.IsZhiZhun,expression:"user.IsZhiZhun === false"}],attrs:{label:e.$t("admin:OrganizationName")}},[i("el-input",{model:{value:e.user.OrganizationName,callback:function(t){e.$set(e.user,"OrganizationName",t)},expression:"user.OrganizationName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("admin:DepartmentName"),prop:"DepartmentName"}},[i("el-input",{model:{value:e.user.DepartmentName,callback:function(t){e.$set(e.user,"DepartmentName",t)},expression:"user.DepartmentName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("admin:PositionName"),prop:"PositionName"}},[i("el-input",{model:{value:e.user.PositionName,callback:function(t){e.$set(e.user,"PositionName",t)},expression:"user.PositionName"}})],1)],1),e._v(" "),i("el-form-item",[i("el-button",{staticStyle:{margin:"10px 15px"},attrs:{type:"primary",size:"small",disabled:e.isDisabled},on:{click:e.handleSave}},[e._v(e._s(e.$t("common:button:save")))])],1)],1)},a=[],r=i("50fc"),o={name:"UserInfo",props:{userId:{type:String,default:""}},data:function(){var e=function(e,t,i){var n=zzSessionStorage.getItem("lang")?zzSessionStorage.getItem("lang"):"zh",a=/^[a-zA-Z0-9_]{4,16}$/;console.log(!a.test(t)),a.test(t)?i():i("zh"===n?new Error("1新建账号用户名字符长度最小为4个字符最大为16个字符只可使用字母、数字、下划线"):new Error("Passwords must have: 1) 8 - 32 characters; 2) At least 1 number; 3) At least 1 uppercase letter; 4) At least 1 lowercase letter; 5) At least 1 special character (~!-@#$%^&*_+?) "))};return{user:{UserName:"",LastName:"",FirstName:"",Sex:"",EMail:"",Phone:"",UserTypeId:"",IsZhiZhun:"",OrganizationName:"",DepartmentName:"",PositionName:"",IsTestUser:!1},userFormRules:{UserName:[{required:!0,validator:e,trigger:"blur"}],UserTypeId:[{required:!0,message:"Please Select",trigger:["blur","change"]}],IsZhiZhun:[{required:!0,message:"Please Select",trigger:["blur","change"]}],OrganizationName:[{required:!0,message:"Please specify",trigger:"blur"}],LastName:[{required:!0,message:"Please specify",trigger:"blur"},{max:50,message:"The maximum length is 50"}],FirstName:[{required:!0,message:"Please specify",trigger:"blur"},{max:50,message:"The maximum length is 50"}],Phone:[{max:20,min:7,message:"The length is 7 to 20",trigger:["blur"]}],EMail:[{required:!0,message:"Please input the email address",trigger:"blur"},{type:"email",message:"Please input the correct email address",trigger:["blur"]},{max:50,message:"The maximum length is 50"}],Sex:[{required:!0,message:"Please specify",trigger:"blur"}],Status:[{required:!0,message:"Please specify",trigger:"blur"}],DepartmentName:[{max:50,message:"The maximum length is 50"}],PositionName:[{max:50,message:"The maximum length is 50"}]},userTypeOptions:[],isDisabled:!1,type:0}},created:function(){this.getUserTypeList(),""!==this.userId?(this.getUserInfo(),this.type=1):this.type=0},methods:{handleSave:function(){var e=this;this.$refs.userForm.validate((function(t){if(t){e.isDisabled=!0;var i=e.userTypeOptions.filter((function(t){return t.Id===e.user.UserTypeId}));i.length>0&&(e.user.UserTypeEnum=i[0].UserTypeEnum),e.user.BaseUrl="".concat(location.protocol,"//").concat(location.host,"/login"),e.user.RouteUrl="".concat(location.protocol,"//").concat(location.host,"/email-recompose"),e.user.Id?Object(r["v"])(e.user).then((function(t){e.isDisabled=!1,e.$message.success(e.$t("common:message:updatedSuccessfully"))})).catch((function(){e.isDisabled=!1})):Object(r["c"])(e.user).then((function(t){e.isDisabled=!1,e.user.Id=t.Result.Id,e.user.UserCode=t.Result.UserCode,e.$emit("getUserId",t.Result.Id),e.$message.success(e.$t("common:message:addedSuccessfully")),e.$router.push({path:"/system/user/list"})})).catch((function(){e.isDisabled=!1}))}}))},getUserTypeList:function(){var e=this;Object(r["o"])(0).then((function(t){t.IsSuccess&&(e.userTypeOptions=t.Result)}))},getUserInfo:function(){var e=this;Object(r["l"])(this.userId).then((function(t){e.user=t.Result}))},OrgnizationTypeChanged:function(e){this.user.OrganizationName=""}}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},dcd5:function(e,t,i){},dcea:function(e,t,i){var n=i("6d8b"),a=i("e887"),r=i("2306"),o=i("cbe5"),s=["itemStyle"],l=["emphasis","itemStyle"],c=a.extend({type:"boxplot",render:function(e,t,i){var n=e.getData(),a=this.group,r=this._data;this._data||a.removeAll();var o="horizontal"===e.get("layout")?1:0;n.diff(r).add((function(e){if(n.hasValue(e)){var t=n.getItemLayout(e),i=d(t,n,e,o,!0);n.setItemGraphicEl(e,i),a.add(i)}})).update((function(e,t){var i=r.getItemGraphicEl(t);if(n.hasValue(e)){var s=n.getItemLayout(e);i?f(s,i,n,e):i=d(s,n,e,o),a.add(i),n.setItemGraphicEl(e,i)}else a.remove(i)})).remove((function(e){var t=r.getItemGraphicEl(e);t&&a.remove(t)})).execute(),this._data=n},remove:function(e){var t=this.group,i=this._data;this._data=null,i&&i.eachItemGraphicEl((function(e){e&&t.remove(e)}))},dispose:n.noop}),u=o.extend({type:"boxplotBoxPath",shape:{},buildPath:function(e,t){var i=t.points,n=0;for(e.moveTo(i[n][0],i[n][1]),n++;n<4;n++)e.lineTo(i[n][0],i[n][1]);for(e.closePath();n<i.length;n++)e.moveTo(i[n][0],i[n][1]),n++,e.lineTo(i[n][0],i[n][1])}});function d(e,t,i,n,a){var r=e.ends,o=new u({shape:{points:a?h(r,n,e):r}});return f(e,o,t,i,a),o}function f(e,t,i,n,a){var o=i.hostModel,c=r[a?"initProps":"updateProps"];c(t,{shape:{points:e.ends}},o,n);var u=i.getItemModel(n),d=u.getModel(s),f=i.getItemVisual(n,"color"),h=d.getItemStyle(["borderColor"]);h.stroke=f,h.strokeNoScale=!0,t.useStyle(h),t.z2=100;var p=u.getModel(l).getItemStyle();r.setHoverStyle(t,p)}function h(e,t,i){return n.map(e,(function(e){return e=e.slice(),e[t]=i.initBaseline,e}))}var p=c;e.exports=p},dd39:function(e,t,i){i("6932"),i("3a56"),i("7dcf"),i("414c3"),i("4b08"),i("2c17"),i("9e87")},dd7e:function(e,t,i){var n=i("6d8b"),a=i("edaf"),r=i("38a2"),o=a.extend({type:"timeline.slider",defaultOption:{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"emptyCircle",symbolSize:10,lineStyle:{show:!0,width:2,color:"#304654"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#304654"},itemStyle:{color:"#304654",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:13,color:"#c23531",borderWidth:5,borderColor:"rgba(194,53,49, 0.5)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:22,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"path://M18.6,50.8l22.5-22.5c0.2-0.2,0.3-0.4,0.3-0.7c0-0.3-0.1-0.5-0.3-0.7L18.7,4.4c-0.1-0.1-0.2-0.3-0.2-0.5 c0-0.4,0.3-0.8,0.8-0.8c0.2,0,0.5,0.1,0.6,0.3l23.5,23.5l0,0c0.2,0.2,0.3,0.4,0.3,0.7c0,0.3-0.1,0.5-0.3,0.7l-0.1,0.1L19.7,52 c-0.1,0.1-0.3,0.2-0.5,0.2c-0.4,0-0.8-0.3-0.8-0.8C18.4,51.2,18.5,51,18.6,50.8z",prevIcon:"path://M43,52.8L20.4,30.3c-0.2-0.2-0.3-0.4-0.3-0.7c0-0.3,0.1-0.5,0.3-0.7L42.9,6.4c0.1-0.1,0.2-0.3,0.2-0.5 c0-0.4-0.3-0.8-0.8-0.8c-0.2,0-0.5,0.1-0.6,0.3L18.3,28.8l0,0c-0.2,0.2-0.3,0.4-0.3,0.7c0,0.3,0.1,0.5,0.3,0.7l0.1,0.1L41.9,54 c0.1,0.1,0.3,0.2,0.5,0.2c0.4,0,0.8-0.3,0.8-0.8C43.2,53.2,43.1,53,43,52.8z",color:"#304654",borderColor:"#304654",borderWidth:1},emphasis:{label:{show:!0,color:"#c23531"},itemStyle:{color:"#c23531"},controlStyle:{color:"#c23531",borderColor:"#c23531",borderWidth:2}},data:[]}});n.mixin(o,r);var s=o;e.exports=s},dda6:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"clinical-data-wrapper"},[i("el-tabs",{attrs:{type:"border-card"}},e._l(e.clinicalDatas,(function(t){return i("el-tab-pane",{key:t.ClinicalDataTrialSetId,attrs:{label:t.ClinicalDataSetName}},[0===t.ClinicalUploadType?i("div",[i("h4",[e._v(e._s(e.$t("trials:uploadClinicalData:title:pastTreatment")))]),e._v(" "),e.allowAddOrEdit?i("div",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{type:"primary",icon:"el-icon-plus",size:"small"},nativeOn:{click:function(i){return i.preventDefault(),e.addPreviousHistory(t.ClinicalDataTrialSetId)}}},[e._v("\n "+e._s(e.$t("common:button:new"))+"\n ")])],1):e._e(),e._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.ClinicalTableData.PreviousHistoryList}},[i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Position",label:e.$t("trials:uploadClinicalData:table:bodyPart")}}),e._v(" "),i("el-table-column",{attrs:{prop:"StartTime",label:e.$t("trials:uploadClinicalData:table:beginDate")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.StartTime?e.moment(t.row.StartTime).format("YYYY-MM-DD"):"")+"\n ")]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"EndTime",label:e.$t("trials:uploadClinicalData:table:endDate")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.EndTime?e.moment(t.row.EndTime).format("YYYY-MM-DD"):"")+"\n ")]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"IsPD",label:e.$t("trials:uploadClinicalData:table:isPD")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("IsPdEnum",t.row.IsPD))+"\n ")]}}],null,!0)}),e._v(" "),e.hasPermi(["trials:trials-panel:visit:crc-upload:upload"])&&e.allowAddOrEdit?i("el-table-column",{attrs:{label:e.$t("common:action:action"),"min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.allowAddOrEdit?i("el-button",{attrs:{icon:"el-icon-edit-outline",circle:"",title:e.$t("common:button:edit"),size:"small"},nativeOn:{click:function(i){return i.preventDefault(),e.editRow(t.row,1)}}}):e._e(),e._v(" "),1*e.data.SubmitState<2||2===e.data.SubmitState&&e.data.IsQCConfirmedReupload?i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:crc-upload:upload"],expression:"['trials:trials-panel:visit:crc-upload:upload']"}],attrs:{icon:"el-icon-delete",circle:"",title:e.$t("common:button:delete"),size:"small"},nativeOn:{click:function(i){return i.preventDefault(),e.deletePreviousHistory(t.row)}}}):e._e()]}}],null,!0)}):e._e()],1),e._v(" "),i("h4",[e._v(e._s(e.$t("trials:uploadClinicalData:title:pastSurgery")))]),e._v(" "),e.allowAddOrEdit?i("div",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{type:"primary",icon:"el-icon-plus",size:"small"},on:{click:function(i){return e.addPreviousSurgery(t.ClinicalDataTrialSetId)}}},[e._v("\n "+e._s(e.$t("common:button:new"))+"\n ")])],1):e._e(),e._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.ClinicalTableData.PreviousSurgeryList}},[i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"OperationName",label:e.$t("trials:uploadClinicalData:table:surgeryName")}}),e._v(" "),i("el-table-column",{attrs:{prop:"OperationTime",label:e.$t("trials:uploadClinicalData:table:surgeryDate")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.OperationTime?e.moment(t.row.OperationTime).format("YYYY-MM-DD"):"")+"\n ")]}}],null,!0)}),e._v(" "),e.hasPermi(["trials:trials-panel:visit:crc-upload:upload"])&&e.allowAddOrEdit?i("el-table-column",{attrs:{label:e.$t("common:action:action"),"min-width":"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.allowAddOrEdit?i("el-button",{attrs:{icon:"el-icon-edit-outline",circle:"",title:e.$t("common:button:edit"),size:"small"},nativeOn:{click:function(i){return i.preventDefault(),e.editRow(t.row,2)}}}):e._e(),e._v(" "),1*e.data.SubmitState<2||2===e.data.SubmitState&&e.data.IsQCConfirmedReupload?i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:crc-upload:upload"],expression:"['trials:trials-panel:visit:crc-upload:upload']"}],attrs:{icon:"el-icon-delete",circle:"",title:e.$t("common:button:delete"),size:"small"},nativeOn:{click:function(i){return i.preventDefault(),e.deletePreviousSurgery(t.row)}}}):e._e()]}}],null,!0)}):e._e()],1),e._v(" "),i("h4",[e._v(e._s(e.$t("trials:uploadClinicalData:title:others")))]),e._v(" "),e.allowAddOrEdit?i("div",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{type:"primary",icon:"el-icon-plus",size:"small"},on:{click:function(i){return e.addPreviousOther(t.ClinicalDataTrialSetId)}}},[e._v("\n "+e._s(e.$t("common:button:new"))+"\n ")])],1):e._e(),e._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.ClinicalTableData.PreviousOtherList}},[i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TreatmentType",label:e.$t("trials:uploadClinicalData:table:treatmentType")}}),e._v(" "),i("el-table-column",{attrs:{prop:"StartTime",label:e.$t("trials:uploadClinicalData:table:treatmentbeginDate")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.StartTime?e.moment(t.row.StartTime).format("YYYY-MM-DD"):"")+"\n ")]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"EndTime",label:e.$t("trials:uploadClinicalData:table:treatmentendDate")},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.EndTime?e.moment(t.row.EndTime).format("YYYY-MM-DD"):"")+"\n ")]}}],null,!0)}),e._v(" "),e.hasPermi(["trials:trials-panel:visit:crc-upload:upload"])&&e.allowAddOrEdit?i("el-table-column",{attrs:{label:e.$t("common:action:action"),"min-width":"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.allowAddOrEdit?i("el-button",{attrs:{icon:"el-icon-edit-outline",circle:"",title:e.$t("common:button:edit"),size:"small"},nativeOn:{click:function(i){return i.preventDefault(),e.editRow(t.row,3)}}}):e._e(),e._v(" "),1*e.data.SubmitState<2||2===e.data.SubmitState&&e.data.IsQCConfirmedReupload?i("el-button",{attrs:{icon:"el-icon-delete",circle:"",title:e.$t("common:button:delete"),size:"small"},nativeOn:{click:function(i){return i.preventDefault(),e.deletePreviousOther(t.row)}}}):e._e()]}}],null,!0)}):e._e()],1)],1):e._e(),e._v(" "),1===t.ClinicalUploadType?i("div",[e.allowAddOrEdit?i("div",{staticStyle:{"text-align":"right"}},[t.Path?i("el-button",{attrs:{type:"primary",icon:"el-icon-download",size:"small",loading:e.downloadLoading},nativeOn:{click:function(i){return i.preventDefault(),e.handleDownloadTpl(t.ClinicalDataTrialSetId)}}},[e._v("\n "+e._s(e.$t("trials:uploadClinicalData:button:downloadTemplate"))+"\n ")]):e._e(),e._v(" "),i("el-button",{attrs:{icon:"el-icon-plus",type:"primary",size:"small"},nativeOn:{click:function(i){return i.preventDefault(),e.addFile(t.Id,t.ClinicalDataTrialSetId)}}},[e._v("\n "+e._s(e.$t("common:button:new"))+"\n ")])],1):e._e(),e._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:t.PDFFileList}},[i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"FileName",label:e.$t("trials:uploadClinicalData:table:fileName"),width:"250"}}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:e.$t("trials:uploadClinicalData:table:uploadedTime"),width:"200"}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{icon:"el-icon-view",circle:"",title:e.$t("trials:uploadClinicalData:action:preview"),size:"small"},nativeOn:{click:function(i){return i.preventDefault(),e.preview(t.row.Path)}}}),e._v(" "),1*e.data.SubmitState<2||2===e.data.SubmitState&&e.data.IsQCConfirmedReupload?i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:crc-upload:upload"],expression:"['trials:trials-panel:visit:crc-upload:upload']"}],attrs:{icon:"el-icon-delete",circle:"",title:e.$t("common:button:delete"),size:"small"},nativeOn:{click:function(i){return i.preventDefault(),e.deleteFile(t.row.Id)}}}):e._e()]}}],null,!0)})],1)],1):e._e()])})),1),e._v(" "),e.prVisible?i("el-dialog",{attrs:{visible:e.prVisible,"close-on-click-modal":!1,title:e.$t("trials:uploadClinicalData:title:pastTreatment"),width:"600px","append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.prVisible=t}}},[e.prVisible?i("PreviousRadiotherapy",{attrs:{data:e.currentRow,"subject-visit-id":e.subjectVisitId},on:{closePRDialog:e.closePRDialog,refresh:e.refresh}}):e._e()],1):e._e(),e._v(" "),e.psVisible?i("el-dialog",{attrs:{visible:e.psVisible,"close-on-click-modal":!1,title:e.$t("trials:uploadClinicalData:title:pastSurgery"),width:"600px","append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.psVisible=t}}},[e.psVisible?i("PreviousSurgery",{attrs:{data:e.currentRow,"parent-data":e.data,"subject-visit-id":e.subjectVisitId},on:{closePSDialog:e.closePSDialog,refresh:e.refresh}}):e._e()],1):e._e(),e._v(" "),e.poVisible?i("el-dialog",{attrs:{visible:e.poVisible,"close-on-click-modal":!1,title:e.$t("trials:uploadClinicalData:title:others"),width:"600px","append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.poVisible=t}}},[e.poVisible?i("PreviousOther",{attrs:{data:e.currentRow,"parent-data":e.data,"subject-visit-id":e.subjectVisitId},on:{closePODialog:e.closePODialog,refresh:e.refresh}}):e._e()],1):e._e(),e._v(" "),e.upVisible?i("el-dialog",{attrs:{visible:e.upVisible,"close-on-click-modal":!1,title:e.$t("trials:uploadClinicalData:title:uploadFile"),width:"600px","append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.upVisible=t}}},[e.upVisible?i("PreviousFiles",{attrs:{data:e.currentRow,"parent-data":e.data,"subject-visit-id":e.subjectVisitId},on:{closeUpDialog:e.closeUpDialog,refresh:e.refresh}}):e._e()],1):e._e()],1)},a=[],r=i("db72"),o=(i("c5f6"),i("3e42")),s=i("0b11"),l=i("d205"),c=i("b244"),u=i("5ca9"),d=i("c1df"),f=i.n(d),h={name:"ClinicalData",components:{PreviousRadiotherapy:s["default"],PreviousSurgery:l["default"],PreviousOther:c["default"],PreviousFiles:u["default"]},props:{data:{type:Object,default:function(){return{}}},subjectVisitId:{type:String,required:!0},enumType:{type:Number,default:0},allowAddOrEdit:{type:Boolean,default:!1}},data:function(){return{userTypeEnumInt:1*zzSessionStorage.getItem("userTypeEnumInt"),loading:!1,PreviousHistoryList:[],PreviousSurgeryList:[],PreviousOtherList:[],PreviousPDFList:[],fileList:[],currentRow:{},prVisible:!1,psVisible:!1,poVisible:!1,upVisible:!1,trialId:this.$route.query.trialId,moment:f.a,downloadLoading:!1,clinicalDatas:[]}},mounted:function(){this.getClinicalData()},methods:{getClinicalData:function(){var e=this;this.loading=!0;var t={subjectVisitId:this.subjectVisitId,trialId:this.trialId,subjectId:this.data.SubjectId,isBaseLine:this.data.IsBaseLine};Object(o["Nb"])(t).then((function(t){e.clinicalDatas=t.Result,e.loading=!1})).catch((function(){e.loading=!1}))},editRow:function(e,t){1===t?this.prVisible=!0:2===t?this.psVisible=!0:3===t&&(this.poVisible=!0),this.currentRow=Object(r["a"])({},e)},deletePreviousHistory:function(e){var t=this;this.$confirm(this.$t("trials:uploadedDicoms:message:deleteMes"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.loading=!0,Object(o["ib"])(t.data.TrialId,t.subjectVisitId,e.Id).then((function(e){t.loading=!1,e.IsSuccess&&(t.getClinicalData(),t.$message.success(t.$t("trials:uploadedDicoms:message:deleteSuccessfully")),t.$emit("getList"))})).catch((function(){t.loading=!1}))}))},deletePreviousSurgery:function(e){var t=this;this.$confirm(this.$t("trials:uploadedDicoms:message:deleteMes"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.loading=!0,Object(o["kb"])(t.data.TrialId,t.subjectVisitId,e.Id).then((function(e){t.loading=!1,e.IsSuccess&&(t.getClinicalData(),t.$message.success(t.$t("trials:uploadedDicoms:message:deleteSuccessfully")),t.$emit("getList"))})).catch((function(){t.loading=!1}))}))},deletePreviousOther:function(e){var t=this;this.$confirm(this.$t("trials:uploadedDicoms:message:deleteMes"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.loading=!0,Object(o["jb"])(t.data.TrialId,t.subjectVisitId,e.Id).then((function(e){t.loading=!1,e.IsSuccess&&(t.getClinicalData(),t.$message.success(t.$t("trials:uploadedDicoms:message:deleteSuccessfully")),t.$emit("getList"))})).catch((function(){t.loading=!1}))}))},preview:function(e){e&&window.open("".concat(e),"_blank")},addPreviousHistory:function(e){console.log(e),this.currentRow={ClinicalDataTrialSetId:e},this.prVisible=!0},addPreviousSurgery:function(e){this.currentRow={ClinicalDataTrialSetId:e},this.psVisible=!0},addPreviousOther:function(e){this.currentRow={ClinicalDataTrialSetId:e},this.poVisible=!0},closePRDialog:function(){this.prVisible=!1},closePSDialog:function(){this.psVisible=!1},closePODialog:function(){this.poVisible=!1},closeUpDialog:function(){this.upVisible=!1},refresh:function(){this.getClinicalData(),this.$emit("getList")},addFile:function(e,t){this.currentRow={Id:e,ClinicalDataTrialSetId:t,SubjectId:this.data.SubjectId},this.upVisible=!0},deleteFile:function(e){var t=this;this.$confirm(this.$t("trials:uploadedDicoms:message:deleteMes"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.loading=!0,Object(o["nb"])(e).then((function(e){t.loading=!1,e.IsSuccess&&(t.getClinicalData(),t.$emit("getList"),t.$message.success(t.$t("trials:uploadedDicoms:message:deleteSuccessfully")))})).catch((function(){t.loading=!1}))}))},handleDownloadTpl:function(e){var t=this;this.downloadLoading=!0,Object(o["a"])(e).then((function(e){t.downloadLoading=!1})).catch((function(){t.downloadLoading=!1}))}}},p=h,m=(i("b2e9"),i("2877")),g=Object(m["a"])(p,n,a,!1,null,null,null);t["default"]=g.exports},dded:function(e,t,i){var n=i("6d8b"),a=i("42e5"),r=function(e,t,i,n,r){this.x=null==e?.5:e,this.y=null==t?.5:t,this.r=null==i?.5:i,this.type="radial",this.global=r||!1,a.call(this,n)};r.prototype={constructor:r},n.inherits(r,a);var o=r;e.exports=o},de00:function(e,t){var i=2311;function n(){return i++}e.exports=n},de10:function(e,t,i){},de1c:function(e,t){var i={getBoxLayoutParams:function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}}};e.exports=i},de44:function(e,t,i){},de66:function(e,t,i){"use strict";i("059d")},de6e:function(e,t){function i(e){return e instanceof Array||(e=[e,e]),e}function n(e){e.eachSeriesByType("graph",(function(e){var t=e.getGraph(),n=e.getEdgeData(),a=i(e.get("edgeSymbol")),r=i(e.get("edgeSymbolSize")),o="lineStyle.color".split("."),s="lineStyle.opacity".split(".");n.setVisual("fromSymbol",a&&a[0]),n.setVisual("toSymbol",a&&a[1]),n.setVisual("fromSymbolSize",r&&r[0]),n.setVisual("toSymbolSize",r&&r[1]),n.setVisual("color",e.get(o)),n.setVisual("opacity",e.get(s)),n.each((function(e){var a=n.getItemModel(e),r=t.getEdgeByIndex(e),l=i(a.getShallow("symbol",!0)),c=i(a.getShallow("symbolSize",!0)),u=a.get(o),d=a.get(s);switch(u){case"source":u=r.node1.getVisual("color");break;case"target":u=r.node2.getVisual("color");break}l[0]&&r.setVisual("fromSymbol",l[0]),l[1]&&r.setVisual("toSymbol",l[1]),c[0]&&r.setVisual("fromSymbolSize",c[0]),c[1]&&r.setVisual("toSymbolSize",c[1]),r.setVisual("color",u),r.setVisual("opacity",d)}))}))}e.exports=n},de86:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[i("el-tabs",{attrs:{type:"border-card"},on:{"tab-click":function(t){return e.tabClick()}},model:{value:e.index,callback:function(t){e.index=t},expression:"index"}},e._l(e.CriterionList,(function(t){return i("el-tab-pane",{key:t.ReadingQuestionCriterionTrialId},[i("span",{attrs:{slot:"label"},slot:"label"},[e._v("\n "+e._s(t.ReadingQuestionCriterionTrialName)+"\n ")]),e._v(" "),i("el-collapse",{model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},e._l(e.QuestionList,(function(t,n){return i("el-collapse-item",{key:t.ReadingQuestionTrialId,staticStyle:{position:"relative"},attrs:{name:t.ReadingQuestionTrialId}},[i("div",{attrs:{slot:"title"},slot:"title"},[e._v("\n Q"+e._s(n+1)+""+e._s(t.QuestionName)+"\n ")]),e._v(" "),i("div",{staticStyle:{position:"relative"}},[i("el-button",{staticStyle:{position:"absolute",right:"0",top:"0","z-index":"10"},attrs:{size:"mini",type:"primary"},on:{click:function(i){return e.apply(t.ReadingQuestionTrialId,n)}}},[e._v("应用")]),e._v(" "),i("el-button",{staticStyle:{position:"absolute",right:"60px",top:"0","z-index":"10"},attrs:{size:"mini",type:"primary"},on:{click:function(i){return e.reset(t.ReadingQuestionTrialId,n)}}},[e._v("重置")]),e._v(" "),i("el-form-item",{attrs:{"label-width":"150px",label:"产生裁判阅片的条件"}},[i("el-radio-group",{model:{value:e.QuestionList[n].JudgeType,callback:function(t){e.$set(e.QuestionList[n],"JudgeType",t)},expression:"QuestionList[index].JudgeType"}},e._l(e.$d.JudgeTypeEnum,(function(t){return i("el-radio",{key:t.id,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1)],1),e._v(" "),3===e.QuestionList[n].JudgeType?i("div",{staticStyle:{"text-align":"right",margin:"10px 0"}},[i("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(t){return e.addGroup(n,null)}}},[e._v("添加规则")])],1):e._e(),e._v(" "),3===e.QuestionList[n].JudgeType?i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.QuestionList[n].AnswerGroupList,border:"",stripe:""}},[i("el-table-column",{attrs:{prop:"AnswerGroupA",label:"序号",width:"50"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.$index+1)+"\n ")]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"AnswerGroupA",label:"阅片人A","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.AnswerGroupA.toString())+"\n ")]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"AnswerGroupB",label:"阅片人B","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.AnswerGroupB.toString())+"\n ")]}}],null,!0)}),e._v(" "),i("el-table-column",{attrs:{prop:"AnswerGroupB",label:"操作","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{icon:"el-icon-edit",circle:"",title:"编辑",size:"mini"},on:{click:function(i){return e.addGroup(n,t.$index)}}}),e._v(" "),i("el-button",{attrs:{icon:"el-icon-delete",circle:"",title:"删除",size:"mini"},on:{click:function(i){return e.tagClose(n,t.$index)}}})]}}],null,!0)})],1):e._e(),e._v(" "),2===e.QuestionList[n].JudgeType?i("div",[i("div",{staticStyle:{background:"#f6f6f6","border-radius":"20px",padding:"15px 20px","margin-top":"10px"}},[i("el-checkbox-group",{model:{value:e.QuestionList[n].grouping,callback:function(t){e.$set(e.QuestionList[n],"grouping",t)},expression:"QuestionList[index].grouping"}},e._l(t.TypeValue.split("|"),(function(t,n){return i("el-checkbox",{key:t,attrs:{label:t}},[e._v(e._s(t))])})),1),e._v(" "),i("div",{staticStyle:{"margin-top":"20px"}},[e._v("当前选择答案分组: "),e.QuestionList[n].grouping.length>0?i("el-tag",[e._v(e._s(e.QuestionList[n].grouping.toString().replaceAll(",","|")))]):e._e(),e._v(" "),i("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(t){return e.addGroup2(n)}}},[e._v("添加分组")])],1)],1),e._v(" "),i("div",{staticStyle:{"margin-top":"20px"}},[e._v("分组: "),e._l(e.QuestionList[n].AnswerGroup2List,(function(t){return i("el-tag",{staticStyle:{"margin-right":"10px"},attrs:{closable:""},on:{close:function(){return e.tagClose2(n,e.indexA)}}},[e._v(e._s(t))])}))],2)]):e._e()],1)})),1)],1)})),1),e._v(" "),e.QuestionVisible?i("el-dialog",{attrs:{title:"选择答案",visible:e.QuestionVisible,width:"800px","close-on-click-modal":!1,"custom-class":"base-dialog-wrapper","append-to-body":""},on:{"update:visible":function(t){e.QuestionVisible=t}}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{"label-width":"110px",label:"阅片人A"}},[i("el-checkbox-group",{model:{value:e.QuestionList[e.selectIndex].groupingA,callback:function(t){e.$set(e.QuestionList[e.selectIndex],"groupingA",t)},expression:"QuestionList[selectIndex].groupingA"}},e._l(e.QuestionList[e.selectIndex].TypeValue.split("|"),(function(t,n){return i("el-checkbox",{key:t,attrs:{label:t,disabled:!!e.QuestionList[e.selectIndex].groupingB.length&&~e.QuestionList[e.selectIndex].groupingB.indexOf(t)}},[e._v("A"+e._s(n+1)+""+e._s(t))])})),1)],1),e._v(" "),i("el-form-item",{attrs:{"label-width":"110px",label:"阅片人B"}},[i("el-checkbox-group",{model:{value:e.QuestionList[e.selectIndex].groupingB,callback:function(t){e.$set(e.QuestionList[e.selectIndex],"groupingB",t)},expression:"QuestionList[selectIndex].groupingB"}},e._l(e.QuestionList[e.selectIndex].TypeValue.split("|"),(function(t,n){return i("el-checkbox",{key:t,attrs:{label:t,disabled:!!e.QuestionList[e.selectIndex].groupingA.length&&~e.QuestionList[e.selectIndex].groupingA.indexOf(t)}},[e._v("A"+e._s(n+1)+""+e._s(t))])})),1)],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){e.QuestionVisible=!1,e.$set(e.QuestionList[e.selectIndex],"groupingA",[]),e.$set(e.QuestionList[e.selectIndex],"groupingB",[])}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.save}},[e._v("\n 保存\n ")])],1)]):e._e()],1)},a=[],r=(i("6b54"),i("ac6a"),i("958c")),o={data:function(){return{CriterionList:[],QuestionList:[],ReadingQuestionCriterionTrialId:null,btnLoading:!1,loading:!1,index:0,QuestionVisible:!1,activeNames:null,indexA:null,type:null}},watch:{ReadingQuestionCriterionTrialId:function(e){var t=this;this.loading=!0,Object(r["T"])({ReadingQuestionCriterionTrialId:e}).then((function(e){t.loading=!1,t.QuestionList=e.Result,t.activeNames=t.QuestionList[0].ReadingQuestionTrialId,t.QuestionList.forEach((function(e){t.$set(e,"grouping",[]),t.$set(e,"groupingA",[]),t.$set(e,"groupingB",[]),t.$set(e,"AnswerGroupList",Object.assign([],e.AnswerCombination)),t.$set(e,"AnswerGroup2List",Object.assign([],e.AnswerGroup)),console.log(e)}))})).catch((function(){t.btnLoading=!1,t.loading=!1}))}},methods:{tagClose2:function(e,t){var i=this;this.$confirm("删除该规则组?").then((function(){i.QuestionList[e].AnswerGroup2List.splice(t,1)}))},tagClose:function(e,t){var i=this;this.$confirm("删除该规则组?").then((function(){i.QuestionList[e].AnswerGroupList.splice(t,1)}))},save:function(){var e=this.selectIndex,t=this.indexA;0!==this.QuestionList[e].groupingA.length?0!==this.QuestionList[e].groupingB.length?("add"===this.type?this.QuestionList[e].AnswerGroupList.push({AnswerGroupA:this.QuestionList[e].groupingA,AnswerGroupB:this.QuestionList[e].groupingB}):(this.$set(this.QuestionList[e].AnswerGroupList[t],"AnswerGroupA",this.QuestionList[e].groupingA),this.$set(this.QuestionList[e].AnswerGroupList[t],"AnswerGroupB",this.QuestionList[e].groupingB)),this.$set(this.QuestionList[e],"groupingA",[]),this.$set(this.QuestionList[e],"groupingB",[]),this.$message.success("成功新增答案规则"),this.QuestionVisible=!1):this.$message.error("请先选择答案B"):this.$message.error("请先选择答案A")},addGroup2:function(e){if(0!==this.QuestionList[e].grouping.length){var t=this.QuestionList[e].grouping.toString().replaceAll(",","|");this.QuestionList[e].AnswerGroup2List.push("|".concat(t,"|")),this.$set(this.QuestionList[e],"grouping",[])}else this.$message.error("请先选择答案,再添加分组")},addGroup:function(e,t){this.selectIndex=e,this.type="add",null!==t&&(this.indexA=t,this.type="edit",console.log(this.QuestionList[e].AnswerGroupList[t].AnswerGroupA),console.log(this.QuestionList[e].AnswerGroupList[t].AnswerGroupB),this.$set(this.QuestionList[e],"groupingA",this.QuestionList[e].AnswerGroupList[t].AnswerGroupA),this.$set(this.QuestionList[e],"groupingB",this.QuestionList[e].AnswerGroupList[t].AnswerGroupB)),this.QuestionVisible=!0},reset:function(e,t){var i=this;this.$confirm("确定重置当前设置的裁判任务生成规则吗?").then((function(){i.btnLoading=!0,i.loading=!0,Object(r["ab"])({ReadingQuestionTrialId:e,AnswerGroup:[],AnswerCombination:[],JudgeType:1}).then((function(e){i.$set(i.QuestionList[t],"AnswerGroup2List",[]),i.$set(i.QuestionList[t],"AnswerGroupList",[]),i.$set(i.QuestionList[t],"JudgeType",1),i.$message.success("重置成功"),i.btnLoading=!1,i.loading=!1})).catch((function(){i.btnLoading=!1,i.loading=!1}))}))},apply:function(e,t){var i=this;(2!==this.QuestionList[t].JudgeType||0!==this.QuestionList[t].AnswerGroup2List.length)&&(3!==this.QuestionList[t].JudgeType||0!==this.QuestionList[t].AnswerGroupList.length)?(this.btnLoading=!0,this.loading=!0,Object(r["ab"])({ReadingQuestionTrialId:e,AnswerGroup:this.QuestionList[t].AnswerGroup2List,AnswerCombination:this.QuestionList[t].AnswerGroupList,JudgeType:this.QuestionList[t].JudgeType}).then((function(e){i.$message.success("应用成功"),i.btnLoading=!1,i.loading=!1})).catch((function(){i.btnLoading=!1,i.loading=!1}))):this.$message.error("请先配置规则才能应用")},tabClick:function(e){this.ReadingQuestionCriterionTrialId=this.CriterionList[this.index].ReadingQuestionCriterionTrialId},getList:function(){var e=this;this.btnLoading=!0,this.loading=!0,Object(r["S"])({TrialId:this.$route.query.trialId}).then((function(t){e.CriterionList=t.Result,e.CriterionList.length&&(e.ReadingQuestionCriterionTrialId=e.CriterionList[0].ReadingQuestionCriterionTrialId),e.btnLoading=!1,e.loading=!1})).catch((function(){e.btnLoading=!1,e.loading=!1}))}},mounted:function(){this.getList()}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,"546d78ee",null);t["default"]=c.exports},de99:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("base-model",{attrs:{config:e.model_cfg}},[i("template",{slot:"dialog-body"},[i("el-form",{ref:"anonymizationFrom",attrs:{model:e.form,rules:e.rules,"label-width":"100px",size:"small"}},[i("el-form-item",{attrs:{label:e.$t("trials:externalStaff:table:lastName"),prop:"LastName"}},[i("el-input",{model:{value:e.form.LastName,callback:function(t){e.$set(e.form,"LastName",t)},expression:"form.LastName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:externalStaff:table:firstName"),prop:"FirstName"}},[i("el-input",{model:{value:e.form.FirstName,callback:function(t){e.$set(e.form,"FirstName",t)},expression:"form.FirstName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:externalStaff:table:userType"),prop:"UserTypeId"}},[e.userTypeOptions?i("el-select",{staticStyle:{width:"100%"},model:{value:e.form.UserTypeId,callback:function(t){e.$set(e.form,"UserTypeId",t)},expression:"form.UserTypeId"}},e._l(e.userTypeOptions,(function(t){return i("el-option",{key:t.Id,attrs:{label:t.UserTypeShortName,value:t.Id}},[i("span",[e._v(e._s(t.UserType))])])})),1):e._e()],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:externalStaff:table:phone"),prop:"Phone"}},[i("el-input",{model:{value:e.form.Phone,callback:function(t){e.$set(e.form,"Phone",t)},expression:"form.Phone"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:externalStaff:table:email"),prop:"Email"}},[i("el-input",{model:{value:e.form.Email,callback:function(t){e.$set(e.form,"Email",t)},expression:"form.Email"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:externalStaff:table:organization"),prop:"OrganizationName"}},[i("el-input",{model:{value:e.form.OrganizationName,callback:function(t){e.$set(e.form,"OrganizationName",t)},expression:"form.OrganizationName"}})],1)],1),e._v(" "),e.errorMsg?i("div",{staticStyle:{"font-size":"12px",color:"#f66"}},[e._v(e._s(e.errorMsg))]):e._e()],1),e._v(" "),i("template",{slot:"dialog-footer"},[i("el-button",{attrs:{size:"small",type:"primary",disabled:e.btnLoading},on:{click:e.handleCancel}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:function(t){return e.handleSave("SendEmail")}}},[e._v("\n "+e._s(e.$t("trials:externalStaff:button:saveAndSendEmail"))+"\n ")])],1)],2)},a=[],r=i("db72"),o=(i("ac6a"),i("456d"),i("c5f6"),i("7cdf"),i("3e42")),s=i("7eeb"),l=function(){return{Id:null,TrialId:null,LastName:null,FirstName:null,UserTypeId:"",Phone:null,Email:null,OrganizationName:null}},c={name:"StaffExternalAdd",components:{BaseModel:s["default"]},props:{userTypeOptions:{type:Array,default:function(){return{}}}},data:function(){var e=this,t=function(t,i,n){var a=/^1[3|4|5|7|8][0-9]{9}$/;i||n(),setTimeout((function(){Number.isInteger(+i)&&a.test(i)?n():n(new Error(e.$t("trials:externalStaff:formRule:phone")))}),100)},i=function(t,i,n){if(""===i)n(new Error(e.$t("common:ruleMessage:specify")));else{var a=/^[A-Za-z0-9]+([_\.][A-Za-z0-9]+)*@([A-Za-z0-9\-]+\.)+[A-Za-z]{2,6}$/;e.form.Email&&a.test(e.form.Email)?(e.sendDisabled=!1,n()):(n(new Error(e.$t("trials:externalStaff:formRule:email"))),e.sendDisabled=!0)}};return{form:{Id:null,LastName:null,FirstName:null,UserTypeId:"",Phone:null,Email:null,TrialId:null,IsSendEmail:!1},rules:{LastName:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"},{min:0,max:50,message:"".concat(this.$t("common:ruleMessage:maxLength")," 50"),trigger:"blur"}],FirstName:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"},{min:0,max:50,message:"".concat(this.$t("common:ruleMessage:maxLength")," 50"),trigger:"blur"}],UserTypeId:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur"]}],Phone:[{required:!1,validator:t,trigger:["blur"]}],Email:[{required:!0,validator:i,trigger:["blur"]}]},btnLoading:!1,userRoles:[],userTypeEnumInt:0,model_cfg:{visible:!1,showClose:!0,width:"600px",title:"",appendToBody:!0},trialId:"",errorMsg:null}},watch:{model_cfg:{handler:function(e,t){this.errorMsg=null},deep:!0}},mounted:function(){this.trialId=this.$route.query.trialId},methods:{openDialog:function(e,t){this.model_cfg.visible=!0,this.model_cfg.title=e,Object.keys(t).length?this.form=Object(r["a"])({},t):this.form=l()},handleSave:function(e){var t=this;this.$refs.anonymizationFrom.validate((function(i){i&&(t.btnLoading=!0,t.form.TrialId=t.trialId,"SendEmail"===e&&(t.form.IsSendEmail=!0,t.form.BaseUrl="".concat(location.protocol,"//").concat(location.host,"/login"),t.form.RouteUrl="".concat(location.protocol,"//").concat(location.host,"/email-recompose")),Object(o["D"])(t.form).then((function(e){t.btnLoading=!1,t.$message.success(t.$t("common:message:savedSuccessfully")),t.model_cfg.visible=!1,t.$emit("getList")})).catch((function(e){e.Result&&(t.$set(t.form,"LastName",e.Result.LastName),t.$set(t.form,"FirstName",e.Result.FirstName),t.$set(t.form,"Phone",e.Result.Phone),t.errorMsg=e.ErrorMessage),t.btnLoading=!1})))}))},handleCancel:function(){this.model_cfg.visible=!1}}},u=c,d=i("2877"),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},de9d:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("base-model",{attrs:{config:e.model_cfg}},[i("template",{slot:"dialog-body"},[i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:0===e.dict.type.UserTypeGroup.length,expression:"dict.type.UserTypeGroup.length === 0"}],ref:"roleForm",staticClass:"demo-ruleForm",attrs:{rules:e.rules,model:e.form,size:"small","label-width":"120px"}},[i("el-form-item",{attrs:{label:"User Type: ",prop:"UserTypeName"}},[i("el-input",{model:{value:e.form.UserTypeName,callback:function(t){e.$set(e.form,"UserTypeName",t)},expression:"form.UserTypeName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Shortname: ",prop:"UserTypeShortName"}},[i("el-input",{model:{value:e.form.UserTypeShortName,callback:function(t){e.$set(e.form,"UserTypeShortName",t)},expression:"form.UserTypeShortName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"是否内部角色: ",prop:"IsInternal"}},[i("el-radio-group",{model:{value:e.form.IsInternal,callback:function(t){e.$set(e.form,"IsInternal",t)},expression:"form.IsInternal"}},[i("el-radio",{attrs:{label:!0}},[e._v("是")]),e._v(" "),i("el-radio",{attrs:{label:!1}},[e._v("否")])],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Group: ",prop:"UserTypeGroupIdList"}},[i("el-select",{attrs:{multiple:""},model:{value:e.form.UserTypeGroupIdList,callback:function(t){e.$set(e.form,"UserTypeGroupIdList",t)},expression:"form.UserTypeGroupIdList"}},e._l(e.dict.type.UserTypeGroup,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Order: "}},[i("el-input-number",{attrs:{"controls-position":"right",min:0},model:{value:e.form.Order,callback:function(t){e.$set(e.form,"Order",t)},expression:"form.Order"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"PermissionStr: ",prop:"PermissionStr"}},[i("el-input",{model:{value:e.form.PermissionStr,callback:function(t){e.$set(e.form,"PermissionStr",t)},expression:"form.PermissionStr"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Description: ",prop:"Description"}},[i("el-input",{attrs:{type:"textarea",rows:5},model:{value:e.form.Description,callback:function(t){e.$set(e.form,"Description",t)},expression:"form.Description"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"role: "}},[i("el-checkbox",{on:{change:function(t){return e.handleCheckedTreeExpand(t)}},model:{value:e.menuExpand,callback:function(t){e.menuExpand=t},expression:"menuExpand"}},[e._v("展开/折叠")]),e._v(" "),i("el-checkbox",{on:{change:function(t){return e.handleCheckedTreeNodeAll(t)}},model:{value:e.menuNodeAll,callback:function(t){e.menuNodeAll=t},expression:"menuNodeAll"}},[e._v("全选/全不选")]),e._v(" "),i("el-checkbox",{on:{change:function(t){return e.handleCheckedTreeConnect(t)}},model:{value:e.form.menuCheckStrictly,callback:function(t){e.$set(e.form,"menuCheckStrictly",t)},expression:"form.menuCheckStrictly"}},[e._v("父子联动")]),e._v(" "),i("el-tree",{ref:"menu",staticClass:"tree-border",attrs:{"check-strictly":!e.form.menuCheckStrictly,data:e.menuOptions,"show-checkbox":"","node-key":"MenuId","empty-text":"加载中,请稍后",props:e.defaultProps}})],1)],1)],1),e._v(" "),i("template",{slot:"dialog-footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){e.model_cfg.visible=!1}}},[e._v("Cancel\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleSave}},[e._v("Save")])],1)],2)},a=[],r=i("db72"),o=(i("ac6a"),i("456d"),i("50fc")),s=i("a6dc"),l=i("30b0"),c=i("7eeb"),u={components:{BaseModel:c["default"]},dicts:["UserTypeGroup"],props:{data:{type:Object,default:function(){return{Id:"",UserTypeName:"",IsInternal:!0,UserTypeShortName:"",Order:"",Description:"",PermissionStr:""}}}},data:function(){return{menuExpand:!1,menuNodeAll:!1,userTypeGroupOptions:[{value:1,label:"Trial"},{value:2,label:"Reviewer"},{value:3,label:"Other"}],model_cfg:l["a"],defaultProps:{children:"Children",label:"MenuName"},form:{Id:"",UserType:"",IsInternal:!0,UserTypeShortName:"",Type:null,Description:"",UserTypeGroupIdList:[],menuCheckStrictly:!0},rules:{UserTypeName:[{required:!0,message:"Please specify",trigger:"blur"},{max:50,message:"The maximum length is 50"}],UserTypeShortName:[{required:!0,message:"Please specify",trigger:"blur"},{max:50,message:"The maximum length is 50",trigger:"blur"}],Description:[{max:500,message:"The maximum length is 500"}],UserTypeGroupIdList:[{required:!0,message:"Please specify",trigger:"blur"}]},menuOptions:[],btnLoading:!1}},mounted:function(){this.getMenuList(),Object.keys(this.data).length&&this.data.Id&&(this.form=Object(r["a"])({},this.data))},methods:{handleCheckedTreeConnect:function(e){this.form.menuCheckStrictly=!!e},getMenuAllCheckedKeys:function(){var e=this.$refs.menu.getCheckedKeys(),t=this.$refs.menu.getHalfCheckedKeys();return e.unshift.apply(e,t),e},handleCheckedTreeExpand:function(e){for(var t=this.menuOptions,i=0;i<t.length;i++)this.$refs.menu.store.nodesMap[t[i].MenuId].expanded=e},handleCheckedTreeNodeAll:function(e,t){this.$refs.menu.setCheckedNodes(e?this.menuOptions:[])},toTree:function(e,t){function i(t){for(var n=[],a=0;a<e.length;a++){var r=e[a];r.hasChildren=!1,r.ParentId===t&&(r.Children=i(r.MenuId),n.push(r))}return n}return i(t)},getMenuList:function(){var e=this;Object(s["c"])({}).then((function(t){var i=e.toTree(t.Result,"00000000-0000-0000-0000-000000000000");e.menuOptions=i,e.form.MenuIds.forEach((function(t){e.$nextTick((function(){e.$refs.menu.setChecked(t,!0,!1)}))}))})).catch((function(){}))},handleSave:function(){var e=this;this.$refs.roleForm.validate((function(t){t&&(e.btnLoading=!0,e.model_cfg.showClose=!1,e.form.MenuIds=e.getMenuAllCheckedKeys(),console.log(e.form.MenuIds),Object(o["b"])(e.form).then((function(t){e.btnLoading=!1,e.$refs["roleForm"].resetFields(),e.$emit("close"),e.model_cfg.showClose=!0,e.$message.success("Saved successfully!")})).catch((function(){e.btnLoading=!1,e.model_cfg.showClose=!0})))}))}}},d=u,f=i("2877"),h=Object(f["a"])(d,n,a,!1,null,null,null);t["default"]=h.exports},deda:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{ref:"previewCanvas",staticStyle:{height:"72px",width:"72px"}})])},a=[],r=i("81d9"),o={props:{imageId:String},mounted:function(){var e=this.$refs.previewCanvas;r["enable"](e),r["loadImage"](this.imageId).then((function(t){r["displayImage"](e,t)}))}},s=o,l=(i("e219"),i("2877")),c=Object(l["a"])(s,n,a,!1,null,"2ee0adce",null);t["default"]=c.exports},df0f:function(e,t,i){"use strict";i.r(t);var n=function(e,t){var i=document.createElement("_"),n=i.appendChild(document.createElement("_")),a=i.appendChild(document.createElement("_")),r=n.appendChild(document.createElement("_")),o=void 0,s=void 0;return n.style.cssText=i.style.cssText="height:100%;left:0;opacity:0;overflow:hidden;pointer-events:none;position:absolute;top:0;transition:0s;width:100%;z-index:-1",r.style.cssText=a.style.cssText="display:block;height:100%;transition:0s;width:100%",r.style.width=r.style.height="200%",e.appendChild(i),l(),u;function l(){c();var r=e.offsetWidth,u=e.offsetHeight;r===o&&u===s||(o=r,s=u,a.style.width=2*r+"px",a.style.height=2*u+"px",i.scrollLeft=i.scrollWidth,i.scrollTop=i.scrollHeight,n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight,t({width:r,height:u})),n.addEventListener("scroll",l),i.addEventListener("scroll",l)}function c(){n.removeEventListener("scroll",l),i.removeEventListener("scroll",l)}function u(){c(),e.removeChild(i)}};t["default"]=n},df2d:function(e,t,i){"use strict";i("1bd1")},df3a:function(e,t,i){var n=i("6d8b"),a=i("6cb7"),r=i("282b"),o=i("9e47"),s=i("3842"),l=i("2023"),c=a.extend({type:"baseParallelAxis",axis:null,activeIntervals:[],getAreaSelectStyle:function(){return r([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},setActiveIntervals:function(e){var t=this.activeIntervals=n.clone(e);if(t)for(var i=t.length-1;i>=0;i--)s.asc(t[i])},getActiveState:function(e){var t=this.activeIntervals;if(!t.length)return"normal";if(null==e||isNaN(e))return"inactive";if(1===t.length){var i=t[0];if(i[0]<=e&&e<=i[1])return"active"}else for(var n=0,a=t.length;n<a;n++)if(t[n][0]<=e&&e<=t[n][1])return"active";return"inactive"}}),u={type:"value",dim:null,areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function d(e,t){return t.type||(t.data?"category":"value")}n.merge(c.prototype,l),o("parallel",c,d,u);var f=c;e.exports=f},df51:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{"min-height":"400px"}},[e.isRender?i("el-form",{ref:"questions",attrs:{size:"small",model:e.questionForm}},e._l(e.questions,(function(t){return i("CriterionFormItem",{key:t.Id,attrs:{question:t,"question-form":e.questionForm,"reading-task-state":e.readingTaskState,"criterion-id":e.criterionId},on:{resetFormItemData:e.resetFormItemData,setFormItemData:e.setFormItemData}})})),1):e._e()],1)},a=[],r=(i("ac6a"),i("e56e")),o=i("5644"),s={name:"EcrfPreview",components:{CriterionFormItem:o["default"]},props:{criterionId:{type:String,required:!0}},data:function(){return{loading:!1,questions:[],questionForm:{},publicQuestions:[],isRender:!1,readingTaskState:0,activeName:0}},mounted:function(){this.getQuestions()},methods:{getQuestions:function(){var e=this;this.loading=!0;var t={id:this.criterionId};Object(r["Fb"])(t).then((function(t){t.Result.SinglePage.map((function(t){"group"===t.Type&&0===t.Childrens.length||(t.IsPage||"group"===t.Type||"summary"===t.Type||e.$set(e.questionForm,t.Id,t.DefaultValue),t.Childrens&&t.Childrens.length>0&&e.setChild(t.Childrens))})),e.questions=t.Result.SinglePage,e.isRender=!0,e.loading=!1})).catch((function(){e.loading=!1}))},setChild:function(e){var t=this;e.forEach((function(e){"group"!==e.Type&&"summary"!==e.Type&&e.Id&&t.$set(t.questionForm,e.Id,""),e.Childrens&&e.Childrens.length>0&&t.setChild(e.Childrens)}))},resetFormItemData:function(e){this.questionForm[e]=""},setFormItemData:function(e){this.$set(this.questionForm,e.key,e.val)}}},l=s,c=(i("5da4"),i("2877")),u=Object(c["a"])(l,n,a,!1,null,"004906dc",null);t["default"]=u.exports},df70:function(e,t,i){var n=i("3eba"),a=i("6fda"),r=i("29a8"),o=i("2145"),s=r.toolbox.restore;function l(e){this.model=e}l.defaultOption={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:s.title};var c=l.prototype;c.onclick=function(e,t,i){a.clear(e),t.dispatchAction({type:"restore",from:this.uid})},o.register("restore",l),n.registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(e,t){t.resetOption("recreate")}));var u=l;e.exports=u},df96:function(e,t,i){"use strict";i("807f")},dfa3:function(e,t,i){"use strict";i("ffb2")},dfb2:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"needSignSys-wrapper"},[i("el-row",[i("el-col",{attrs:{span:12}},[i("h3",[e._v(e._s(e.$t("trials:workbench:title:sysDocBeSigned")))])]),e._v(" "),i("el-col",{staticStyle:{"text-align":"right"},attrs:{span:12}},[i("h3",[i("Pagination",{staticClass:"page",staticStyle:{display:"inline-block"},attrs:{total:e.total,page:e.listQuery.pageIndex,limit:e.listQuery.pageSize,layout:"total, sizes, prev, pager, next",background:!1},on:{"update:page":function(t){return e.$set(e.listQuery,"pageIndex",t)},"update:limit":function(t){return e.$set(e.listQuery,"pageSize",t)},pagination:e.getList}}),e._v(" "),i("el-button",{attrs:{icon:"el-icon-refresh-left",size:"small",circle:"",title:e.$t("common:button:reset")},on:{click:e.handleReset}})],1)])],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],ref:"needSignSysList",attrs:{data:e.list,"show-header":!0,height:"calc(100% - 100px)"},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("trials:sysDocBeSigned:table:fileType"),prop:"FileType","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("trials:sysDocBeSigned:table:fileName"),prop:"Name","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("trials:sysDocBeSigned:table:uploadTime"),prop:"UpdateTime","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"140"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{icon:"el-icon-edit-outline",circle:"",title:e.$t("trials:workbench:action:sign")},on:{click:function(i){return e.handleSign(t.row)}}})]}}])})],1),e._v(" "),e.previewVisible?i("el-dialog",{attrs:{visible:e.previewVisible,title:e.title,fullscreen:!0,"append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.previewVisible=t}}},[e.currentIsConfirm?e._e():i("span",{staticStyle:{position:"fixed",right:"75px",top:"14px"}},[i("span",{staticStyle:{color:"red","margin-right":"10px"}},[e._v("\n "+e._s(e.$t("common:message:signTip"))+"\n "),i("span",{directives:[{name:"show",rawName:"v-show",value:e.duration<60*e.currentMinMinutes,expression:"duration < currentMinMinutes * 60"}]},[e._v(e._s("("+(60*e.currentMinMinutes-e.duration)+"s)"))])]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",disabled:null!==e.timer||0===e.duration,loading:e.btnLoading},on:{click:e.handleConfirm}},[e._v("\n "+e._s(e.$t("common:button:sign"))+"\n ")])],1),e._v(" "),i("div",{staticClass:"base-modal-body",staticStyle:{border:"2px solid #ccc",padding:"10px"}},[e.previewVisible?i("PreviewFile",{attrs:{"file-path":e.currentPath,"file-type":e.currentType},on:{getList:e.getList}}):e._e()],1)]):e._e(),e._v(" "),e.signVisible?i("el-dialog",{attrs:{visible:e.signVisible,"close-on-click-modal":!1,width:"600px","append-to-body":""},on:{"update:visible":function(t){e.signVisible=t}}},[i("div",{attrs:{slot:"title"},slot:"title"},[i("span",{staticStyle:{"font-size":"18px"}},[e._v(e._s(e.$t("common:dialogTitle:sign")))]),e._v(" "),i("span",{staticStyle:{"font-size":"12px","margin-left":"5px"}},[e._v(e._s("("+e.$t("common:label:sign")+e.currentUser+")"))])]),e._v(" "),i("SignForm",{attrs:{"is-system-doc":e.currentRow.IsSystemDoc,"document-id":e.currentRow.Id,"file-name":e.fileName},on:{closeDialog:e.closeSignDialog}})],1):e._e()],1)},a=[],r=i("db72"),o=i("3e42"),s=i("333d"),l=i("c686"),c=i("1d64"),u=function(){return{pageIndex:1,pageSize:20,asc:!0,sortField:""}},d={name:"NeedSignSysDoc",components:{Pagination:s["default"],PreviewFile:l["default"],SignForm:c["default"]},data:function(){return{listQuery:u(),listLoading:!1,list:[],total:0,previewVisible:!1,signVisible:!1,currentMinMinutes:0,duration:0,timer:null,btnLoading:!1,fileName:"",currentPath:"",currentType:"",currentIsConfirm:!1,currentUser:zzSessionStorage.getItem("userName"),currentRow:{}}},mounted:function(){this.getList()},destroyed:function(){this.timer&&this.stopTimer()},methods:{getList:function(){var e=this;Object(o["le"])(this.listQuery).then((function(t){e.listLoading=!1,e.total=t.Result.TotalCount,e.list=t.Result.CurrentPageData})).catch((function(){e.listLoading=!1}))},handleSign:function(e){var t=this;this.currentRow=Object(r["a"])({},e);var i=e.Name,n=e.FullFilePath,a=e.SignViewMinimumMinutes;this.currentPath=n,this.currentType=e.Name?i.substring(i.lastIndexOf(".")+1).toLocaleLowerCase():"",this.currentMinMinutes=a,this.currentIsConfirm=!1,this.title=i,this.fileName=i.slice(0,i.lastIndexOf(".")),this.listLoading=!0,Object(o["Te"])(e.Id).then((function(e){t.listLoading=!1,t.previewVisible=!0;var i=t;setTimeout((function(){i.initTimer()}),1e3)})).catch((function(){t.listLoading=!1}))},handleSortByColumn:function(e){"ascending"===e.order?this.listQuery.asc=!0:this.listQuery.asc=!1,this.listQuery.sortField=e.prop,this.getList()},handleReset:function(){var e=this;this.listQuery=u(),this.getList(),this.$nextTick((function(){e.$refs.needSignSysList.clearSort()}))},handleConfirm:function(){this.signVisible=!0},closeSignDialog:function(e){this.signVisible=!1,e&&(this.currentIsConfirm=!0,this.getList(),this.$emit("refreshStats"))},initTimer:function(){this.currentMinMinutes>0&&!this.currentIsConfirm&&(this.duration=0,this.timer&&this.stopTimer(),this.startTimer())},startTimer:function(){var e=this;this.timer=setInterval((function(){e.duration++,e.duration>=60*e.currentMinMinutes&&e.stopTimer()}),1e3)},stopTimer:function(){clearInterval(this.timer),this.timer=null}}},f=d,h=(i("6311"),i("2877")),p=Object(h["a"])(f,n,a,!1,null,"42c23ce6",null);t["default"]=p.exports},dffe:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"specialty-info"},[i("el-form",{staticClass:"demo-form-inline",attrs:{model:e.specialty,size:"small"}},[i("el-form-item",{attrs:{label:"Specialty:"}},[e.isEnglish?i("span",[e._v(e._s(e.specialty.Speciality))]):i("span",[e._v(e._s(e.specialty.SpecialityCN))])]),e._v(" "),i("el-form-item",{attrs:{label:"Subspeciality:"}},[e.isEnglish?i("span",[e._v(e._s(e.specialty.Subspeciality))]):i("span",[e._v(e._s(e.specialty.SubspecialityCNList))])]),e._v(" "),i("el-form-item",{attrs:{label:"Modality:"}},[e.isEnglish?i("span",[e._v(e._s(e.specialty.ReadingType))]):i("span",[e._v(e._s(e.specialty.ReadingTypeCNList))])])],1)],1)},a=[],r={props:{specialty:{type:Object,default:function(){return{}}},isEnglish:{type:Boolean}}},o=r,s=(i("49e4"),i("2877")),l=Object(s["a"])(o,n,a,!1,null,null,null);t["default"]=l.exports},e042:function(e,t,i){},e04d:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"reviewer-analysis"},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],ref:"listContainer",staticClass:"list-container"},[i("el-table",{attrs:{size:"small",stripe:"",data:e.list,"show-summary":"","summary-method":e.getSummaries,height:"99%"},on:{"selection-change":e.handleSelectChange}},[i("el-table-column",{attrs:{type:"selection"}}),e._v(" "),i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"LastName",label:"Name","min-width":"120","show-overflow-tooltip":"",sortable:""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.LastName)+" / "+e._s(t.row.FirstName))]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ChineseName",label:"Name CN","min-width":"100","show-overflow-tooltip":"",sortable:""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ReviewerCode",label:"Reviewer ID","min-width":"110","show-overflow-tooltip":"",sortable:""}}),e._v(" "),i("el-table-column",{attrs:{prop:"PaymentUSD",label:"Payment($)","min-width":"120","show-overflow-tooltip":"",sortable:""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.PaymentUSD)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"RevenusUSD",label:"Revenus($)","min-width":"120","show-overflow-tooltip":"",sortable:""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.MissingTrialCodes&&t.row.MissingTrialCodes.length>0?i("div",[i("span",[e._v(e._s(e._f("rounding")(t.row.RevenusUSD)))]),e._v(" "),i("span",{staticStyle:{color:"red"}},[e._v(" ("+e._s(t.row.MissingTrialCodes.join(","))+" need setting trial unit price)")])]):i("div",[e._v(e._s(e._f("rounding")(t.row.RevenusUSD)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"GrossProfit",label:"Gross profit($)","min-width":"120","show-overflow-tooltip":"",sortable:""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.GrossProfit)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"GrossProfitMargin",label:"Gross Profit Margin","min-width":"140","show-overflow-tooltip":"",formatter:e.grossProfitMarginFormatter,sortable:""}})],1)],1)])},a=[],r=(i("ac6a"),i("c5f6"),i("6b95")),o=i("0340"),s=i("3339"),l={filters:{rounding:function(e){return e?Number(e).toFixed(2):e}},props:{param:{type:Object,default:function(){return{}}}},data:function(){return{list:[],listQuery:{},listLoading:!1,arrID:[]}},watch:{param:{deep:!0,handler:function(e,t){console.log(e),this.listQuery.Reviewer=e.Reviewer,this.listQuery.BeginDate=e.BeginDate,this.listQuery.EndDate=e.EndDate,this.listQuery.Nation=e.Nation?1*e.Nation:""}}},mounted:function(){this.listQuery.Reviewer=this.param.Reviewer,this.listQuery.BeginDate=this.param.BeginDate,this.listQuery.EndDate=this.param.EndDate,this.listQuery.Nation=this.param.Nation?1*this.param.Nation:"",this.getList()},methods:{getList:function(){var e=this;this.listLoading=!0,Object(r["z"])(this.listQuery).then((function(t){e.listLoading=!1,e.list=t.Result,e.total=t.Result.TotalCount})).catch((function(){e.listLoading=!1}))},resetList:function(){this.getList()},getSummaries:function(e){var t=this;window.setTimeout((function(){t.theight===t.height?t.theight-=.5:t.theight=t.height}),1e3);var i=e.columns,n=e.data,a=[];return i.forEach((function(e,t){if(2!==t){if("PaymentUSD"===e.property||"RevenusUSD"===e.property||"GrossProfit"===e.property||"GrossProfitMargin"===e.property){var i=n.map((function(t){return Number(t[e.property])}));i.every((function(e){return isNaN(e)}))?a[t]="":(a[t]=i.reduce((function(e,t){var i=Number(t);return isNaN(i)?e:s["a"].add(e,t)}),0),"GrossProfitMargin"===e.property?a[t]=0===a[6]?"0.00%":(Number(a[7])/Number(a[6])*100).toFixed(2)+"%":"PaymentUSD"!==e.property&&"RevenusUSD"!==e.property&&"GrossProfit"!==e.property||(a[t]=Number(a[t])))}}else a[t]="Total (Current Page)"})),a},grossProfitMarginFormatter:function(e){return Number(100*e.GrossProfitMargin).toFixed(2)+"%"},handleSelectChange:function(e){for(var t=[],i=0;i<e.length;i++)t.push(e[i].ReviewerId);this.arrID=t,this.arrID.length>0?this.$emit("selectMore",!1):this.$emit("selectMore",!0)},export:function(){var e=this,t="".concat(this.listQuery.BeginDate,"--").concat(this.listQuery.EndDate),i=[{key:"Index",width:5},{key:"LastName",width:15},{key:"FirstName",width:15},{key:"ChineseName",width:15},{key:"ReviewerCode",width:20},{key:"PaymentUSD",width:15},{key:"RevenusUSD",width:15},{key:"GrossProfit",width:20},{key:"GrossProfitMargin",width:25}],n="Type:Reviewer Beginning Month:".concat(this.listQuery.BeginDate," End Month:").concat(this.listQuery.EndDate),a=["","Surname","Given Name","Name CN","Reviewer ID","Payment($)","Revenus($)","Gross profit($)","Gross Profit Margin"],r=[{colIndex:6,format:"#,##0.00"},{colIndex:7,format:"#,##0.00"},{colIndex:8,format:"#,##0.00"},{colIndex:9,format:"0.00%"}],s=0,l=0,c=0,u=1,d=this.list.filter((function(t){return e.arrID.indexOf(t.ReviewerId)>-1}));d.forEach((function(e){e.Index=u++,s+=e.PaymentUSD,l+=e.RevenusUSD,c+=e.GrossProfit}));var f=["","Total","","","",s,l,c,0===l?0:c/l];Object(o["a"])(t,i,"Analysis",n,a,d,f,r)}}},c=l,u=(i("be6a"),i("2877")),d=Object(u["a"])(c,n,a,!1,null,"69c4eef5",null);t["default"]=d.exports},e054:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"subjectStatusForm",attrs:{model:e.form,rules:e.rules,size:"small","label-width":"160px"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:e.$t("trials:subject:table:status"),prop:"Status"}},[i("el-radio-group",{attrs:{disabled:2===e.originalStatus},model:{value:e.form.Status,callback:function(t){e.$set(e.form,"Status",t)},expression:"form.Status"}},e._l(e.$d.Subject_Visit_Status,(function(t){return i("el-radio",{attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1),e._v(" "),2==e.form.Status?i("el-form-item",{attrs:{label:e.$t("trials:subject:table:outVisitDate"),prop:"VisitOverTime"}},[i("el-date-picker",{attrs:{type:"date","picker-options":e.pickerOption,"value-format":"yyyy-MM-dd",format:"yyyy-MM-dd"},model:{value:e.form.VisitOverTime,callback:function(t){e.$set(e.form,"VisitOverTime",t)},expression:"form.VisitOverTime"}})],1):e._e()],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.handleCancel}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])},a=[],r=(i("ac6a"),i("456d"),i("96cf"),i("3b8d")),o=i("3e42"),s={name:"SubjectStatusForm",props:{data:{type:Object,default:function(){return{}}}},data:function(){return{form:{SubjectId:"",Status:1,OutEnrollmentTime:"",Reason:"",VisitOverTime:"",FinalSubjectVisitId:""},rules:{OutEnrollmentTime:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur"]}],FinalSubjectVisitId:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur"]}],Reason:[{max:500,message:"".concat(this.$t("common:ruleMessage:maxLength")," 500")}],VisitOverTime:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur"]}]},pickerOption:{disabledDate:function(e){return e.getTime()>Date.now()}},subjectVisitOptions:[],btnLoading:!1,loading:!1,originalStatus:null,trialId:""}},mounted:function(){this.trialId=this.$route.query.trialId,this.initForm()},methods:{initForm:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,i,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.loading=!0,e.next=3,Object(o["rd"])(this.data.Id);case 3:if(t=e.sent,i=t.Result,this.subjectVisitOptions=i,Object.keys(this.data).length>0){for(n in this.form)this.data.hasOwnProperty(n)&&(this.form[n]=this.data[n]);this.form.SubjectId=this.data.Id,this.originalStatus=this.data.Status}this.form.TrialId=this.trialId,this.loading=!1;case 9:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),handleSave:function(){var e=this;this.$refs.subjectStatusForm.validate((function(t){t&&(e.btnLoading=!0,e.form.TrialId=e.trialId,e.form.SiteId=e.data.SiteId,Object(o["tf"])(e.form).then((function(t){e.btnLoading=!1,e.$emit("getList"),e.$message.success(e.$t("common:message:savedSuccessfully")),e.$emit("closeDialog")})).catch((function(){e.btnLoading=!1})))}))},handleCancel:function(){this.$emit("closeDialog")}}},l=s,c=i("2877"),u=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},e057:function(e,t,i){var n=i("4e08"),a=(n.__DEV__,i("6d8b")),r=i("2306"),o=i("c775"),s=o.getDefaultLabel,l=i("3301"),c=i("9d57"),u=c.getLayoutOnAxis,d=i("80f0"),f=i("4f85"),h=i("4319"),p=i("e887"),m=i("b0af"),g=m.createClipPath,v=i("aa3e"),b=i("00d8"),y=i("307b"),w=i("eaeb"),_=i("471e"),I=r.CACHED_LABEL_STYLE_PROPERTIES,x=["itemStyle"],S=["emphasis","itemStyle"],T=["label"],C=["emphasis","label"],k="e\0\0",R={cartesian2d:v,geo:b,singleAxis:y,polar:w,calendar:_};function D(e){var t,i=e.type;if("path"===i){var n=e.shape,a=null!=n.width&&null!=n.height?{x:n.x||0,y:n.y||0,width:n.width,height:n.height}:null,o=B(n);t=r.makePath(o,null,a,n.layout||"center"),t.__customPathData=o}else if("image"===i)t=new r.Image({}),t.__customImagePath=e.style.image;else if("text"===i)t=new r.Text({}),t.__customText=e.style.text;else if("group"===i)t=new r.Group;else{if("compoundPath"===i)throw new Error('"compoundPath" is not supported yet.');var s=r.getShapeClass(i);t=new s}return t.__customGraphicType=i,t.name=e.name,t}function L(e,t,i,n,o,s,l){var c={},u=i.style||{};if(i.shape&&(c.shape=a.clone(i.shape)),i.position&&(c.position=i.position.slice()),i.scale&&(c.scale=i.scale.slice()),i.origin&&(c.origin=i.origin.slice()),i.rotation&&(c.rotation=i.rotation),"image"===e.type&&i.style){var d=c.style={};a.each(["x","y","width","height"],(function(t){O(t,d,u,e.style,s)}))}if("text"===e.type&&i.style){d=c.style={};a.each(["x","y"],(function(t){O(t,d,u,e.style,s)})),!u.hasOwnProperty("textFill")&&u.fill&&(u.textFill=u.fill),!u.hasOwnProperty("textStroke")&&u.stroke&&(u.textStroke=u.stroke)}if("group"!==e.type&&(e.useStyle(u),s)){e.style.opacity=0;var f=u.opacity;null==f&&(f=1),r.initProps(e,{style:{opacity:f}},n,t)}s?e.attr(c):r.updateProps(e,c,n,t),i.hasOwnProperty("z2")&&e.attr("z2",i.z2||0),i.hasOwnProperty("silent")&&e.attr("silent",i.silent),i.hasOwnProperty("invisible")&&e.attr("invisible",i.invisible),i.hasOwnProperty("ignore")&&e.attr("ignore",i.ignore),i.hasOwnProperty("info")&&e.attr("info",i.info);var h=i.styleEmphasis;r.setElementHoverStyle(e,h),l&&r.setAsHighDownDispatcher(e,!1!==h)}function O(e,t,i,n,a){null==i[e]||a||(t[e]=i[e],i[e]=n[e])}function $(e,t,i,n){var o=e.get("renderItem"),l=e.coordinateSystem,c={};l&&(c=l.prepareCustoms?l.prepareCustoms():R[l.type](l));var d,f,h,p,m,g=a.defaults({getWidth:n.getWidth,getHeight:n.getHeight,getZr:n.getZr,getDevicePixelRatio:n.getDevicePixelRatio,value:w,style:_,styleEmphasis:I,visual:k,barLayout:D,currentSeriesIndices:L,font:O},c.api||{}),v={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:c.coordSys,dataInsideLength:t.count(),encode:N(e.getData())},b=!0;return function(e,i){return d=e,b=!0,o&&o(a.defaults({dataIndexInside:e,dataIndex:t.getRawIndex(e),actionType:i?i.type:null},v),g)};function y(e){null==e&&(e=d),b&&(f=t.getItemModel(e),h=f.getModel(T),p=f.getModel(C),m=t.getItemVisual(e,"color"),b=!1)}function w(e,i){return null==i&&(i=d),t.get(t.getDimension(e||0),i)}function _(i,n){null==n&&(n=d),y(n);var o=f.getModel(x).getItemStyle();null!=m&&(o.fill=m);var l=t.getItemVisual(n,"opacity");null!=l&&(o.opacity=l);var c=i?V(i,h):h;return r.setTextStyle(o,c,null,{autoColor:m,isRectText:!0}),o.text=c.getShallow("show")?a.retrieve2(e.getFormattedLabel(n,"normal"),s(t,n)):null,i&&q(o,i),o}function I(i,n){null==n&&(n=d),y(n);var o=f.getModel(S).getItemStyle(),l=i?V(i,p):p;return r.setTextStyle(o,l,null,{isRectText:!0},!0),o.text=l.getShallow("show")?a.retrieve3(e.getFormattedLabel(n,"emphasis"),e.getFormattedLabel(n,"normal"),s(t,n)):null,i&&q(o,i),o}function k(e,i){return null==i&&(i=d),t.getItemVisual(i,e)}function D(e){if(l.getBaseAxis){var t=l.getBaseAxis();return u(a.defaults({axis:t},e),n)}}function L(){return i.getCurrentSeriesIndices()}function O(e){return r.getFont(e,i)}}function N(e){var t={};return a.each(e.dimensions,(function(i,n){var a=e.getDimensionInfo(i);if(!a.isExtraCoord){var r=a.coordDim,o=t[r]=t[r]||[];o[a.coordDimIndex]=n}})),t}function A(e,t,i,n,a,r){return e=P(e,t,i,n,a,r,!0),e&&r.setItemGraphicEl(t,e),e}function P(e,t,i,n,a,r,o){var s=!i;i=i||{};var l=i.type,c=i.shape,u=i.style;if(e&&(s||null!=l&&l!==e.__customGraphicType||"path"===l&&U(c)&&B(c)!==e.__customPathData||"image"===l&&Q(u,"image")&&u.image!==e.__customImagePath||"text"===l&&Q(c,"text")&&u.text!==e.__customText)&&(a.remove(e),e=null),!s){var d=!e;return!e&&(e=D(i)),L(e,t,i,n,r,d,o),"group"===l&&E(e,t,i,n,r),a.add(e),e}}function E(e,t,i,n,a){var r=i.children,o=r?r.length:0,s=i.$mergeChildren,l="byName"===s||i.diffChildrenByName,c=!1===s;if(o||l||c)if(l)M({oldChildren:e.children()||[],newChildren:r||[],dataIndex:t,animatableModel:n,group:e,data:a});else{c&&e.removeAll();for(var u=0;u<o;u++)r[u]&&P(e.childAt(u),t,r[u],n,e,a)}}function M(e){new d(e.oldChildren,e.newChildren,F,F,e).add(j).update(j).remove(z).execute()}function F(e,t){var i=e&&e.name;return null!=i?i:k+t}function j(e,t){var i=this.context,n=null!=e?i.newChildren[e]:null,a=null!=t?i.oldChildren[t]:null;P(a,i.dataIndex,n,i.animatableModel,i.group,i.data)}function V(e,t){var i=new h({},t);return a.each(I,(function(t,n){e.hasOwnProperty(t)&&(i.option[n]=e[t])})),i}function q(e,t){for(var i in t)!t.hasOwnProperty(i)&&I.hasOwnProperty(i)||(e[i]=t[i])}function z(e){var t=this.context,i=t.oldChildren[e];i&&t.group.remove(i)}function B(e){return e&&(e.pathData||e.d)}function U(e){return e&&(e.hasOwnProperty("pathData")||e.hasOwnProperty("d"))}function Q(e,t){return e&&e.hasOwnProperty(t)}f.extend({type:"series.custom",dependencies:["grid","polar","geo","singleAxis","calendar"],defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,useTransform:!0,clip:!1},getInitialData:function(e,t){return l(this.getSource(),this)},getDataParams:function(e,t,i){var n=f.prototype.getDataParams.apply(this,arguments);return i&&(n.info=i.info),n}}),p.extend({type:"custom",_data:null,render:function(e,t,i,n){var a=this._data,r=e.getData(),o=this.group,s=$(e,r,t,i);r.diff(a).add((function(t){A(null,t,s(t,n),e,o,r)})).update((function(t,i){var l=a.getItemGraphicEl(i);A(l,t,s(t,n),e,o,r)})).remove((function(e){var t=a.getItemGraphicEl(e);t&&o.remove(t)})).execute();var l=e.get("clip",!0)?g(e.coordinateSystem,!1,e):null;l?o.setClipPath(l):o.removeClipPath(),this._data=r},incrementalPrepareRender:function(e,t,i){this.group.removeAll(),this._data=null},incrementalRender:function(e,t,i,n,a){var r=t.getData(),o=$(t,r,i,n);function s(e){e.isGroup||(e.incremental=!0,e.useHoverLayer=!0)}for(var l=e.start;l<e.end;l++){var c=A(null,l,o(l,a),t,this.group,r);c.traverse(s)}},dispose:a.noop,filterForExposedEvent:function(e,t,i,n){var a=t.element;if(null==a||i.name===a)return!0;while((i=i.parent)&&i!==this.group)if(i.name===a)return!0;return!1}})},e073:function(e,t,i){var n=i("6d8b"),a=i("e86a"),r=i("e0d3"),o=r.makeInner,s=i("697e"),l=s.makeLabelFormatter,c=s.getOptionCategoryInterval,u=s.shouldShowAllLabels,d=o();function f(e){return"category"===e.type?p(e):v(e)}function h(e,t){return"category"===e.type?g(e,t):{ticks:e.scale.getTicks()}}function p(e){var t=e.getLabelModel(),i=m(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:i.labelCategoryInterval}:i}function m(e,t){var i,a,r=b(e,"labels"),o=c(t),s=y(r,o);return s||(n.isFunction(o)?i=T(e,o):(a="auto"===o?_(e):o,i=S(e,a)),w(r,o,{labels:i,labelCategoryInterval:a}))}function g(e,t){var i,a,r=b(e,"ticks"),o=c(t),s=y(r,o);if(s)return s;if(t.get("show")&&!e.scale.isBlank()||(i=[]),n.isFunction(o))i=T(e,o,!0);else if("auto"===o){var l=m(e,e.getLabelModel());a=l.labelCategoryInterval,i=n.map(l.labels,(function(e){return e.tickValue}))}else a=o,i=S(e,a,!0);return w(r,o,{ticks:i,tickCategoryInterval:a})}function v(e){var t=e.scale.getTicks(),i=l(e);return{labels:n.map(t,(function(t,n){return{formattedLabel:i(t,n),rawLabel:e.scale.getLabel(t),tickValue:t}}))}}function b(e,t){return d(e)[t]||(d(e)[t]=[])}function y(e,t){for(var i=0;i<e.length;i++)if(e[i].key===t)return e[i].value}function w(e,t,i){return e.push({key:t,value:i}),i}function _(e){var t=d(e).autoInterval;return null!=t?t:d(e).autoInterval=e.calculateCategoryInterval()}function I(e){var t=x(e),i=l(e),n=(t.axisRotate-t.labelRotate)/180*Math.PI,r=e.scale,o=r.getExtent(),s=r.count();if(o[1]-o[0]<1)return 0;var c=1;s>40&&(c=Math.max(1,Math.floor(s/40)));for(var u=o[0],f=e.dataToCoord(u+1)-e.dataToCoord(u),h=Math.abs(f*Math.cos(n)),p=Math.abs(f*Math.sin(n)),m=0,g=0;u<=o[1];u+=c){var v=0,b=0,y=a.getBoundingRect(i(u),t.font,"center","top");v=1.3*y.width,b=1.3*y.height,m=Math.max(m,v,7),g=Math.max(g,b,7)}var w=m/h,_=g/p;isNaN(w)&&(w=1/0),isNaN(_)&&(_=1/0);var I=Math.max(0,Math.floor(Math.min(w,_))),S=d(e.model),T=e.getExtent(),C=S.lastAutoInterval,k=S.lastTickCount;return null!=C&&null!=k&&Math.abs(C-I)<=1&&Math.abs(k-s)<=1&&C>I&&S.axisExtend0===T[0]&&S.axisExtend1===T[1]?I=C:(S.lastTickCount=s,S.lastAutoInterval=I,S.axisExtend0=T[0],S.axisExtend1=T[1]),I}function x(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function S(e,t,i){var n=l(e),a=e.scale,r=a.getExtent(),o=e.getLabelModel(),s=[],c=Math.max((t||0)+1,1),d=r[0],f=a.count();0!==d&&c>1&&f/c>2&&(d=Math.round(Math.ceil(d/c)*c));var h=u(e),p=o.get("showMinLabel")||h,m=o.get("showMaxLabel")||h;p&&d!==r[0]&&v(r[0]);for(var g=d;g<=r[1];g+=c)v(g);function v(e){s.push(i?e:{formattedLabel:n(e),rawLabel:a.getLabel(e),tickValue:e})}return m&&g-c!==r[1]&&v(r[1]),s}function T(e,t,i){var a=e.scale,r=l(e),o=[];return n.each(a.getTicks(),(function(e){var n=a.getLabel(e);t(e,n)&&o.push(i?e:{formattedLabel:r(e),rawLabel:n,tickValue:e})})),o}t.createAxisLabels=f,t.createAxisTicks=h,t.calculateCategoryInterval=I},e09f:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"search-container"},[i("el-form",{attrs:{inline:!0,size:"mini"}},[i("el-form-item",{attrs:{label:"靶病灶"}},[i("el-select",{attrs:{size:"mini"},model:{value:e.searchData.TargetLesion,callback:function(t){e.$set(e.searchData,"TargetLesion",t)},expression:"searchData.TargetLesion"}},e._l(e.$d.TargetAssessment,(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"非靶病灶"}},[i("el-select",{attrs:{size:"mini"},model:{value:e.searchData.NonTargetLesions,callback:function(t){e.$set(e.searchData,"NonTargetLesions",t)},expression:"searchData.NonTargetLesions"}},e._l(e.$d.NoTargetAssessment,(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"新病灶"}},[i("el-select",{attrs:{size:"mini"},model:{value:e.searchData.NewLesion,callback:function(t){e.$set(e.searchData,"NewLesion",t)},expression:"searchData.NewLesion"}},e._l(e.$d.NewLesionAssessment,(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"整体疗效"}},[i("el-select",{attrs:{size:"mini"},model:{value:e.searchData.OverallEfficacy,callback:function(t){e.$set(e.searchData,"OverallEfficacy",t)},expression:"searchData.OverallEfficacy"}},e._l(e.$d.OverallAssessment,(function(e){return i("el-option",{key:e.id,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left",size:"mini"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")])],1)],1),e._v(" "),i("span",{staticStyle:{"margin-left":"auto"}},[e.isCompleteConfig?e._e():i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.handleAdd}},[e._v("\n "+e._s(e.$t("common:button:new"))+"\n ")])],1)],1),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:80},expression:"{bottomOffset:80}"}],ref:"organList",attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"90"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TargetLesion",label:"靶病灶","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("TargetAssessment",Number(t.row.TargetLesion)))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"NonTargetLesions",label:"非靶病灶","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("NoTargetAssessment",t.row.NonTargetLesions))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"NewLesion",label:"新病灶","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("NewLesionAssessment",t.row.NewLesion))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"OverallEfficacy",label:"整体疗效","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("OverallAssessment",t.row.OverallEfficacy))+"\n ")]}}])}),e._v(" "),e.isCompleteConfig?e._e():i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"200",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{circle:"",title:"编辑",icon:"el-icon-edit-outline"},on:{click:function(i){return e.handleEdit(t.row)}}}),e._v(" "),i("el-button",{attrs:{circle:"",title:"删除",icon:"el-icon-delete"},on:{click:function(i){return e.handleDelete(t.row)}}})]}}],null,!1,2864343614)})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1),e._v(" "),e.editDialog.visible?i("el-dialog",{attrs:{visible:e.editDialog.visible,"close-on-click-modal":!1,title:e.editDialog.title,width:"500px","custom-class":"base-dialog-wrapper","append-to-body":""},on:{"update:visible":function(t){return e.$set(e.editDialog,"visible",t)}}},[i("EfficacyAssessmentForm",{attrs:{data:e.rowData,"criterion-id":e.criterionId},on:{close:function(t){e.editDialog.visible=!1},getList:e.getList}})],1):e._e()],2)},a=[],r=i("db72"),o=i("e56e"),s=i("6071"),l=i("333d"),c=i("0a58"),u=function(){return{CriterionId:"",TargetLesion:null,NonTargetLesions:null,NewLesion:null,OverallEfficacy:null,PageIndex:1,PageSize:20}},d={name:"EfficacyAssessmentList",components:{BaseContainer:s["default"],Pagination:l["default"],EfficacyAssessmentForm:c["default"]},props:{criterionId:{type:String,required:!0},isCompleteConfig:{type:Boolean,required:!0}},data:function(){return{searchData:u(),loading:!1,list:[],total:0,rowData:{},editDialog:{title:"",visible:!1},criterions:[]}},watch:{list:function(){var e=this;this.$nextTick((function(){e.$refs.organList.doLayout()}))}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0,this.searchData.CriterionId=this.criterionId,Object(o["Hb"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},handleAdd:function(){this.rowData={CriterionId:this.criterionId},this.editDialog.title="新增",this.editDialog.visible=!0},handleEdit:function(e){this.rowData=Object(r["a"])({},e),this.editDialog.title="编辑",this.editDialog.visible=!0},handleDelete:function(e){var t=this;this.$confirm("是否确认删除",{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.loading=!0,Object(o["S"])(e.Id).then((function(e){t.loading=!1,e.IsSuccess&&(t.getList(),t.$message.success("删除成功!"))})).catch((function(){t.loading=!1}))}))},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=u(),this.getList()},handleSortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()}}},f=d,h=i("2877"),p=Object(h["a"])(f,n,a,!1,null,null,null);t["default"]=p.exports},e0a5:function(e,t,i){},e0b8:function(e,t,i){"use strict";var n=i("7726"),a=i("5ca1"),r=i("2aba"),o=i("dcbc"),s=i("67ab"),l=i("4a59"),c=i("f605"),u=i("d3f4"),d=i("79e5"),f=i("5cc5"),h=i("7f20"),p=i("5dbc");e.exports=function(e,t,i,m,g,v){var b=n[e],y=b,w=g?"set":"add",_=y&&y.prototype,I={},x=function(e){var t=_[e];r(_,e,"delete"==e||"has"==e?function(e){return!(v&&!u(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return v&&!u(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,i){return t.call(this,0===e?0:e,i),this})};if("function"==typeof y&&(v||_.forEach&&!d((function(){(new y).entries().next()})))){var S=new y,T=S[w](v?{}:-0,1)!=S,C=d((function(){S.has(1)})),k=f((function(e){new y(e)})),R=!v&&d((function(){var e=new y,t=5;while(t--)e[w](t,t);return!e.has(-0)}));k||(y=t((function(t,i){c(t,y,e);var n=p(new b,t,y);return void 0!=i&&l(i,g,n[w],n),n})),y.prototype=_,_.constructor=y),(C||R)&&(x("delete"),x("has"),g&&x("get")),(R||T)&&x(w),v&&_.clear&&delete _.clear}else y=m.getConstructor(t,e,g,w),o(y.prototype,i),s.NEED=!0;return h(y,e),I[e]=y,a(a.G+a.W+a.F*(y!=b),I),v||m.setStrong(y,e,g),y}},e0d3:function(e,t,i){var n=i("6d8b"),a=i("22d1"),r=n.each,o=n.isObject,s=n.isArray,l="series\0";function c(e){return e instanceof Array?e:null==e?[]:[e]}function u(e,t,i){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var n=0,a=i.length;n<a;n++){var r=i[n];!e.emphasis[t].hasOwnProperty(r)&&e[t].hasOwnProperty(r)&&(e.emphasis[t][r]=e[t][r])}}}var d=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function f(e){return!o(e)||s(e)||e instanceof Date?e:e.value}function h(e){return o(e)&&!(e instanceof Array)}function p(e,t){t=(t||[]).slice();var i=n.map(e||[],(function(e,t){return{exist:e}}));return r(t,(function(e,n){if(o(e)){for(var a=0;a<i.length;a++)if(!i[a].option&&null!=e.id&&i[a].exist.id===e.id+"")return i[a].option=e,void(t[n]=null);for(a=0;a<i.length;a++){var r=i[a].exist;if(!i[a].option&&(null==r.id||null==e.id)&&null!=e.name&&!v(e)&&!v(r)&&r.name===e.name+"")return i[a].option=e,void(t[n]=null)}}})),r(t,(function(e,t){if(o(e)){for(var n=0;n<i.length;n++){var a=i[n].exist;if(!i[n].option&&!v(a)&&null==e.id){i[n].option=e;break}}n>=i.length&&i.push({option:e})}})),i}function m(e){var t=n.createHashMap();r(e,(function(e,i){var n=e.exist;n&&t.set(n.id,e)})),r(e,(function(e,i){var a=e.option;n.assert(!a||null==a.id||!t.get(a.id)||t.get(a.id)===e,"id duplicates: "+(a&&a.id)),a&&null!=a.id&&t.set(a.id,e),!e.keyInfo&&(e.keyInfo={})})),r(e,(function(e,i){var n=e.exist,a=e.option,r=e.keyInfo;if(o(a)){if(r.name=null!=a.name?a.name+"":n?n.name:l+i,n)r.id=n.id;else if(null!=a.id)r.id=a.id+"";else{var s=0;do{r.id="\0"+r.name+"\0"+s++}while(t.get(r.id))}t.set(r.id,e)}}))}function g(e){var t=e.name;return!(!t||!t.indexOf(l))}function v(e){return o(e)&&e.id&&0===(e.id+"").indexOf("\0_ec_\0")}function b(e,t){var i={},n={};return a(e||[],i),a(t||[],n,i),[r(i),r(n)];function a(e,t,i){for(var n=0,a=e.length;n<a;n++)for(var r=e[n].seriesId,o=c(e[n].dataIndex),s=i&&i[r],l=0,u=o.length;l<u;l++){var d=o[l];s&&s[d]?s[d]=null:(t[r]||(t[r]={}))[d]=1}}function r(e,t){var i=[];for(var n in e)if(e.hasOwnProperty(n)&&null!=e[n])if(t)i.push(+n);else{var a=r(e[n],!0);a.length&&i.push({seriesId:n,dataIndex:a})}return i}}function y(e,t){return null!=t.dataIndexInside?t.dataIndexInside:null!=t.dataIndex?n.isArray(t.dataIndex)?n.map(t.dataIndex,(function(t){return e.indexOfRawIndex(t)})):e.indexOfRawIndex(t.dataIndex):null!=t.name?n.isArray(t.name)?n.map(t.name,(function(t){return e.indexOfName(t)})):e.indexOfName(t.name):void 0}function w(){var e="__\0ec_inner_"+_+++"_"+Math.random().toFixed(5);return function(t){return t[e]||(t[e]={})}}var _=0;function I(e,t,i){if(n.isString(t)){var a={};a[t+"Index"]=0,t=a}var o=i&&i.defaultMainType;!o||x(t,o+"Index")||x(t,o+"Id")||x(t,o+"Name")||(t[o+"Index"]=0);var s={};return r(t,(function(a,r){a=t[r];if("dataIndex"!==r&&"dataIndexInside"!==r){var o=r.match(/^(\w+)(Index|Id|Name)$/)||[],l=o[1],c=(o[2]||"").toLowerCase();if(!(!l||!c||null==a||"index"===c&&"none"===a||i&&i.includeMainTypes&&n.indexOf(i.includeMainTypes,l)<0)){var u={mainType:l};"index"===c&&"all"===a||(u[c]=a);var d=e.queryComponents(u);s[l+"Models"]=d,s[l+"Model"]=d[0]}}else s[r]=a})),s}function x(e,t){return e&&e.hasOwnProperty(t)}function S(e,t,i){e.setAttribute?e.setAttribute(t,i):e[t]=i}function T(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function C(e){return"auto"===e?a.domSupported?"html":"richText":e||"html"}function k(e,t){var i=n.createHashMap(),a=[];return n.each(e,(function(e){var n=t(e);(i.get(n)||(a.push(n),i.set(n,[]))).push(e)})),{keys:a,buckets:i}}t.normalizeToArray=c,t.defaultEmphasis=u,t.TEXT_STYLE_OPTIONS=d,t.getDataItemValue=f,t.isDataItemOption=h,t.mappingToExists=p,t.makeIdAndName=m,t.isNameSpecified=g,t.isIdInner=v,t.compressBatches=b,t.queryDataIndex=y,t.makeInner=w,t.parseFinder=I,t.setAttribute=S,t.getAttribute=T,t.getTooltipRenderMode=C,t.groupData=k},e0d8:function(e,t,i){var n=i("625e");function a(e){this._setting=e||{},this._extent=[1/0,-1/0],this._interval=0,this.init&&this.init.apply(this,arguments)}a.prototype.parse=function(e){return e},a.prototype.getSetting=function(e){return this._setting[e]},a.prototype.contain=function(e){var t=this._extent;return e>=t[0]&&e<=t[1]},a.prototype.normalize=function(e){var t=this._extent;return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])},a.prototype.scale=function(e){var t=this._extent;return e*(t[1]-t[0])+t[0]},a.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},a.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},a.prototype.getExtent=function(){return this._extent.slice()},a.prototype.setExtent=function(e,t){var i=this._extent;isNaN(e)||(i[0]=e),isNaN(t)||(i[1]=t)},a.prototype.isBlank=function(){return this._isBlank},a.prototype.setBlank=function(e){this._isBlank=e},a.prototype.getLabel=null,n.enableClassExtend(a),n.enableClassManagement(a,{registerWhenExtend:!0});var r=a;e.exports=r},e0ef:function(e,t,i){var n=i("4b17"),a="Expected a function";function r(e,t){var i;if("function"!=typeof t)throw new TypeError(a);return e=n(e),function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=void 0),i}}e.exports=r},e12a:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{ref:"hospitalForm",staticClass:"demo-ruleForm",attrs:{model:e.form,rules:e.rules,size:"small","label-width":"170px"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:"Hospital CN: ",prop:"SiteId"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{filterable:""},on:{change:e.siteChange},model:{value:e.form.SiteId,callback:function(t){e.$set(e.form,"SiteId",t)},expression:"form.SiteId"}},e._l(e.siteList,(function(e){return i("el-option",{key:e.Id,attrs:{value:e.Id,label:e.SiteName}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Hospital EN: ",prop:"HospitalName"}},[i("el-input",{model:{value:e.form.HospitalName,callback:function(t){e.$set(e.form,"HospitalName",t)},expression:"form.HospitalName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Affiliated University CN: ",prop:"UniversityAffiliatedCN"}},[i("el-input",{model:{value:e.form.UniversityAffiliatedCN,callback:function(t){e.$set(e.form,"UniversityAffiliatedCN",t)},expression:"form.UniversityAffiliatedCN"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Affiliated University EN: ",prop:"UniversityAffiliated"}},[i("el-input",{model:{value:e.form.UniversityAffiliated,callback:function(t){e.$set(e.form,"UniversityAffiliated",t)},expression:"form.UniversityAffiliated"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Country CN: ",prop:"CountryCN"}},[i("el-input",{model:{value:e.form.CountryCN,callback:function(t){e.$set(e.form,"CountryCN",t)},expression:"form.CountryCN"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Country EN: ",prop:"Country"}},[i("el-input",{model:{value:e.form.Country,callback:function(t){e.$set(e.form,"Country",t)},expression:"form.Country"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Province CN: ",prop:"ProvinceCN"}},[i("el-input",{model:{value:e.form.ProvinceCN,callback:function(t){e.$set(e.form,"ProvinceCN",t)},expression:"form.ProvinceCN"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Province EN: ",prop:"Province"}},[i("el-input",{model:{value:e.form.Province,callback:function(t){e.$set(e.form,"Province",t)},expression:"form.Province"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"City CN: ",prop:"CityCN"}},[i("el-input",{model:{value:e.form.CityCN,callback:function(t){e.$set(e.form,"CityCN",t)},expression:"form.CityCN"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"City EN: ",prop:"City"}},[i("el-input",{model:{value:e.form.City,callback:function(t){e.$set(e.form,"City",t)},expression:"form.City"}})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.handleCancel}},[e._v("Cancel")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleSave}},[e._v("Save")])],1)],1)])},a=[],r=i("db72"),o=(i("ac6a"),i("456d"),i("e56e")),s=i("b1ef"),l={name:"HospitalForm",props:{data:{type:Object,default:function(){return{}}},model:{type:Object,default:function(){return{}}}},data:function(){return{btnLoading:!1,form:{SiteId:null,Id:"",HospitalName:"",HospitalNameCN:"",UniversityAffiliated:"",UniversityAffiliatedCN:"",Country:"",CountryCN:"",Province:"",ProvinceCN:"",City:"",CityCN:""},siteList:[],rules:{SiteId:[{required:!0,message:"Please specify",trigger:"blur"},{max:50,message:"The maximum length is 50"}],HospitalName:[{required:!0,message:"Please specify",trigger:"blur"},{max:50,message:"The maximum length is 50"}],UniversityAffiliated:[{max:100,message:"The maximum length is 100"}],UniversityAffiliatedCN:[{max:100,message:"The maximum length is 100"}],Country:[{required:!0,message:"Please specify",trigger:"blur"},{max:50,message:"The maximum length is 50"}],CountryCN:[{max:50,message:"The maximum length is 50"}],Province:[{required:!0,message:"Please specify",trigger:"blur"},{max:50,message:"The maximum length is 50"}],ProvinceCN:[{max:50,message:"The maximum length is 50"}],City:[{required:!0,message:"Please specify",trigger:"blur"},{max:50,message:"The maximum length is 50"}],CityCN:[{max:50,message:"The maximum length is 50"}]}}},mounted:function(){this.getAllSiteList(),Object.keys(this.data).length&&this.data.Id&&(this.form=Object(r["a"])({},this.data))},methods:{siteChange:function(e){var t=this;this.siteList.forEach((function(i){i.Id===e&&(t.form.CityCN=i.City,t.form.HospitalNameCN=i.SiteName,t.form.ProvinceCN=i.Province,t.form.CountryCN=i.Country)}))},getAllSiteList:function(){var e=this;Object(s["c"])().then((function(t){e.siteList=t.Result,console.log(e.siteList)})).catch((function(){reject()}))},handleSave:function(){var e=this;this.$refs.hospitalForm.validate((function(t){t&&(e.btnLoading=!0,Object(o["j"])(e.form).then((function(t){e.btnLoading=!1,t.IsSuccess&&(e.$message.success("Saved successfully"),e.$refs["hospitalForm"].resetFields(),e.$emit("getList"),e.$emit("close"))})).catch((function(){e.btnLoading=!1})))}))},handleCancel:function(){this.$emit("close")}}},c=l,u=i("2877"),d=Object(u["a"])(c,n,a,!1,null,null,null);t["default"]=d.exports},e135:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",[i("div",{staticClass:"search",staticStyle:{position:"relative"}},[i("SearchForm",{attrs:{size:"mini",that:this,"search-data":e.searchData,"search-form":e.searchForm,"search-handle":e.searchHandle},on:{search:e.handleSearch,reset:e.handleReset}}),e._v(" "),i("el-button",{staticStyle:{"margin-left":"auto",height:"28px",position:"absolute",bottom:"0",right:"10px"},attrs:{type:"primary",size:"mini"},on:{click:e.handleAddUser}},[e._v(e._s(e.$t("common:button:new")))])],1),e._v(" "),i("base-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{columns:e.columns,list:e.users,"search-data":e.searchData,total:e.total},on:{getList:e.getList,editCb:e.handleEditUser,deleteCb:e.handleDeleteUser,sortByColumn:e.sortByColumn},scopedSlots:e._u([{key:"genderSlot",fn:function(t){var i=t.scope;return[e._v("\n\n "+e._s(e.$fd("Sex",i.row.Sex))+"\n ")]}},{key:"roleSlot",fn:function(t){var i=t.scope;return[e._v("\n "+e._s(i.row.RoleNameList.map((function(e){return e.RoleName})).join(","))+"\n ")]}},{key:"isZhiZhunSlot",fn:function(t){var i=t.scope;return[e._v("\n "+e._s(e.$fd("IsZhiZhun",i.row.IsZhiZhun))+"\n ")]}},{key:"isTestUserSlot",fn:function(t){var i=t.scope;return[e._v("\n "+e._s(e.$fd("YesOrNo",i.row.IsTestUser))+"\n ")]}},{key:"statusSlot",fn:function(t){var i=t.scope;return[e._v("\n "+e._s(e.$fd("IsEnableByInt",i.row.Status))+"\n ")]}}])})],1)},a=[],r=(i("96cf"),i("3b8d")),o=(i("20d6"),i("50fc")),s=i("2b0e"),l=i("9923"),c=new s["default"]({i18n:l["a"]}),u=[{type:"index"},{prop:"UserCode",label:c.$t("S/N"),width:100,sortable:"custom",showOverflowTooltip:!0},{prop:"UserName",label:c.$t("admin:UserName"),minWidth:100,sortable:"custom",showOverflowTooltip:!0},{prop:"RealName",label:c.$t("admin:RealName"),minWidth:120,sortable:"custom",showOverflowTooltip:!0},{prop:"Sex",label:c.$t("admin:Sex"),hidden:!0,slot:"genderSlot",minWidth:100,sortable:"custom",showOverflowTooltip:!0},{prop:"Phone",label:c.$t("admin:Phone"),minWidth:120,sortable:"custom",showOverflowTooltip:!0},{prop:"EMail",label:c.$t("admin:EMail"),minWidth:150,sortable:"custom",showOverflowTooltip:!0},{prop:"OrganizationName",label:c.$t("admin:OrganizationName"),minWidth:130,showOverflowTooltip:!0},{prop:"UserType",label:c.$t("admin:UserType"),minWidth:100,sortable:"custom",showOverflowTooltip:!0},{prop:"IsZhiZhun",label:c.$t("admin:IsZhiZhun"),hidden:!0,slot:"isZhiZhunSlot",minWidth:140,sortable:"custom",showOverflowTooltip:!0},{prop:"IsTestUser",label:c.$t("admin:IsTestUser"),hidden:!0,slot:"isTestUserSlot",minWidth:120,sortable:"custom",showOverflowTooltip:!0},{prop:"Status",label:c.$t("admin:Status"),hidden:!0,slot:"statusSlot",minWidth:100,sortable:"custom",showOverflowTooltip:!0},{type:"operate",label:c.$t("common:action:action"),minWidth:200,operates:[{name:c.$t("common:button:edit"),type:"primary",emitKey:"editCb"},{name:c.$t("common:button:delete"),type:"danger",emitKey:"deleteCb"}]}],d=[{type:"Input",label:c.$t("admin:UserName"),prop:"UserName",width:"120px",placeholder:""},{type:"Input",label:c.$t("admin:RealName"),prop:"RealName",width:"120px",placeholder:""},{type:"Input",label:c.$t("admin:Phone"),prop:"Phone",width:"120px",placeholder:""},{type:"Input",label:c.$t("admin:OrganizationName"),prop:"OrganizationName",width:"120px",placeholder:""},{type:"Select",label:c.$t("admin:IsZhiZhun"),prop:"IsZhiZhun",width:"100px",options:c.$d.IsZhiZhun,props:{label:"label",value:"value"},change:function(e){return""},placeholder:""},{type:"Select",label:c.$t("admin:IsTestUser"),prop:"IsTestUser",width:"100px",options:c.$d.YesOrNo,props:{label:"label",value:"value"},change:function(e){return""},placeholder:""},{type:"Select",label:c.$t("admin:Status"),prop:"UserState",width:"100px",options:c.$d.IsEnableByInt,props:{label:"label",value:"value"},change:function(e){return""},placeholder:""},{type:"Select",label:c.$t("admin:UserType"),prop:"UserType",width:"100px",options:[],props:{label:"UserType",value:"Id"},placeholder:""}],f=[{label:c.$t("common:button:reset"),type:"primary",emitKey:"reset"},{label:c.$t("common:button:search"),type:"primary",emitKey:"search"}],h=i("f36a"),p=i("d13d"),m=i("c0ee"),g=i("fab6"),v=function(){return{UserName:null,Phone:null,OrganizationName:null,UserState:null,UserType:null,PageIndex:1,PageSize:20,Asc:!0,RealName:"",SortField:""}},b={name:"UserList",components:{BoxContent:h["default"],SearchForm:p["default"],BaseTable:m["default"]},mixins:[g["a"]],data:function(){return{searchData:v(),searchForm:d,searchHandle:f,columns:u,userTypeOptions:[],loading:!1,total:0,users:[]}},created:function(){this.getList(),this.getInfo()},methods:{getList:function(){var e=this;this.loading=!0,Object(o["m"])(this.searchData).then((function(t){e.loading=!1,e.users=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},findItemIndex:function(e){return this.searchForm.findIndex((function(t){return t.prop&&t.prop===e}))},getInfo:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(o["n"])();case 2:t=e.sent,i=this.findItemIndex("UserType"),this.$set(this.searchForm[i],"options",t.Result);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),handleAddUser:function(){this.$router.push({path:"/system/user/add"})},handleEditUser:function(e){this.$router.push({path:"/system/user/edit",query:{Id:e.Id}})},handleDeleteUser:function(e){var t=this;this.$confirm(this.$t("common:message:delete"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){Object(o["e"])(e.Id).then((function(i){i.IsSuccess&&(t.users.splice(t.users.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success("Deleted successfully!"))}))}))},handleReset:function(){this.searchData=v(),this.getList()}}},y=b,w=(i("5c2b"),i("2877")),_=Object(w["a"])(y,n,a,!1,null,"1d8961fc",null);t["default"]=_.exports},e196:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container"},[e.isInit?i("resume-info"):e._e()],1)},a=[],r=i("6f0b"),o=i("a599"),s=i("4360"),l={components:{ResumeInfo:r["default"]},data:function(){return{isInit:!1}},mounted:function(){var e=Object(o["b"])("token");e&&(s["a"].dispatch("user/setToken",e),Object(o["a"])("token","")),this.isInit=!0}},c=l,u=(i("d3ee"),i("2877")),d=Object(u["a"])(c,n,a,!1,null,"2ab9fe6e",null);t["default"]=d.exports},e199:function(e,t,i){"use strict";i("6210")},e1e6:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("base-model",{attrs:{config:e.model_cfg}},[i("template",{slot:"dialog-body"},[i("el-form",{ref:"DictionaryTypeConfigForm",attrs:{model:e.form,rules:e.rules,"label-width":"120px",size:"small"}},[i("el-form-item",{attrs:{label:"Enum Value: ",prop:"Code"}},[i("el-input",{model:{value:e.form.Code,callback:function(t){e.$set(e.form,"Code",t)},expression:"form.Code"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Value: ",prop:"Code"}},[i("el-input",{model:{value:e.form.ValueCN,callback:function(t){e.$set(e.form,"ValueCN",t)},expression:"form.ValueCN"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Value EN: ",prop:"Code"}},[i("el-input",{model:{value:e.form.Value,callback:function(t){e.$set(e.form,"Value",t)},expression:"form.Value"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"ChildGroup: ",prop:"Code"}},[i("el-input",{model:{value:e.form.ChildGroup,callback:function(t){e.$set(e.form,"ChildGroup",t)},expression:"form.ChildGroup"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"ShowOrder: ",prop:"Code"}},[i("el-input-number",{attrs:{min:0},model:{value:e.form.ShowOrder,callback:function(t){e.$set(e.form,"ShowOrder",t)},expression:"form.ShowOrder"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Description: ",prop:"Code"}},[i("el-input",{model:{value:e.form.Description,callback:function(t){e.$set(e.form,"Description",t)},expression:"form.Description"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Is Enable: "}},[i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},model:{value:e.form.IsEnable,callback:function(t){e.$set(e.form,"IsEnable",t)},expression:"form.IsEnable"}})],1)],1)],1),e._v(" "),i("template",{slot:"dialog-footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.handleCancle}},[e._v("Cancel")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleSave}},[e._v("Save")])],1)],2)},a=[],r=i("db72"),o=(i("ac6a"),i("456d"),i("e56e")),s=i("7eeb"),l=function(){return{Id:"",Code:"",KeyName:"",Description:"",Value:"",ValueCN:"",ShowOrder:0,IsEnable:!0,IsConfig:!1}},c={name:"AnonymizationFrom",components:{BaseModel:s["default"]},data:function(){return{btnLoading:!1,form:l(),rules:{},model_cfg:{visible:!1,showClose:!0,width:"600px",title:"",appendToBody:!0}}},mounted:function(){},methods:{openDialog:function(e,t,i){this.model_cfg.visible=!0,this.model_cfg.title=e,Object.keys(t).length?this.form=Object(r["a"])({},t):this.form=l(),Object.keys(i).length&&(this.form=Object.assign(this.form,i))},handleSave:function(){var e=this;this.$refs.DictionaryTypeConfigForm.validate((function(t){t&&(e.btnLoading=!0,Object(o["c"])(e.form).then((function(t){e.btnLoading=!1,e.$message.success("Saved successfully!"),e.model_cfg.visible=!1,e.$emit("getList")})).catch((function(){e.btnLoading=!1})))}))},handleCancle:function(){this.model_cfg.visible=!1}}},u=c,d=i("2877"),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},e1fc:function(e,t,i){var n=i("6d8b"),a=i("d5b7"),r=i("9850"),o=function(e){for(var t in e=e||{},a.call(this,e),e)e.hasOwnProperty(t)&&(this[t]=e[t]);this._children=[],this.__storage=null,this.__dirty=!0};o.prototype={constructor:o,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(e){return this._children[e]},childOfName:function(e){for(var t=this._children,i=0;i<t.length;i++)if(t[i].name===e)return t[i]},childCount:function(){return this._children.length},add:function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},addBefore:function(e,t){if(e&&e!==this&&e.parent!==this&&t&&t.parent===this){var i=this._children,n=i.indexOf(t);n>=0&&(i.splice(n,0,e),this._doAdd(e))}return this},_doAdd:function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__storage,i=this.__zr;t&&t!==e.__storage&&(t.addToStorage(e),e instanceof o&&e.addChildrenToStorage(t)),i&&i.refresh()},remove:function(e){var t=this.__zr,i=this.__storage,a=this._children,r=n.indexOf(a,e);return r<0||(a.splice(r,1),e.parent=null,i&&(i.delFromStorage(e),e instanceof o&&e.delChildrenFromStorage(i)),t&&t.refresh()),this},removeAll:function(){var e,t,i=this._children,n=this.__storage;for(t=0;t<i.length;t++)e=i[t],n&&(n.delFromStorage(e),e instanceof o&&e.delChildrenFromStorage(n)),e.parent=null;return i.length=0,this},eachChild:function(e,t){for(var i=this._children,n=0;n<i.length;n++){var a=i[n];e.call(t,a,n)}return this},traverse:function(e,t){for(var i=0;i<this._children.length;i++){var n=this._children[i];e.call(t,n),"group"===n.type&&n.traverse(e,t)}return this},addChildrenToStorage:function(e){for(var t=0;t<this._children.length;t++){var i=this._children[t];e.addToStorage(i),i instanceof o&&i.addChildrenToStorage(e)}},delChildrenFromStorage:function(e){for(var t=0;t<this._children.length;t++){var i=this._children[t];e.delFromStorage(i),i instanceof o&&i.delChildrenFromStorage(e)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(e){for(var t=null,i=new r(0,0,0,0),n=e||this._children,a=[],o=0;o<n.length;o++){var s=n[o];if(!s.ignore&&!s.invisible){var l=s.getBoundingRect(),c=s.getLocalTransform(a);c?(i.copy(l),i.applyTransform(c),t=t||i.clone(),t.union(i)):(t=t||l.clone(),t.union(l))}}return t||i}},n.inherits(o,a);var s=o;e.exports=s},e219:function(e,t,i){"use strict";i("b3f5")},e229:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"shortcut-key-input",class:{cursor:e.focus},style:e.$props.style,attrs:{tabindex:"0"},on:{focus:e.handleFocus,blur:function(t){e.focus=!1},keydown:e.handleKeydown}},[e.key.text?[i("span",[e._v(e._s(e.key.text)+" "),i("i",{staticClass:"el-icon-circle-close",on:{click:e.handleDeleteKey}})])]:i("div",{staticClass:"placeholder"},[e._v(e._s(e.placeholder))])],2)},a=[],r=(i("2fdb"),i("6762"),i("ac6a"),i("5df3"),i("1c4c"),Array.from({length:10},(function(e,t){return"Digit".concat(t+1)}))),o=Array.from({length:10},(function(e,t){return"Numpad".concat(t+1)})),s=Array.from({length:26},(function(e,t){return"Key".concat(String.fromCharCode(t+65).toUpperCase())})),l=["Shift","ShiftLeft","ShiftRight","Control","ControlLeft","ControlRight","Alt","AltLeft","AltRight"],c=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown","PageUp","PageDown","Equal","Minus","Space"],u={name:"HotKeyInput",props:{hotkey:{type:Object,required:!0},verify:{type:Function,default:function(){return!0}},hotkeyId:{type:String,required:!0},placeholder:{type:String,default:""},range:{type:Array,default:function(){return["NUMBER","NUMPAD","ABC","OTHER"]}}},data:function(){return{focus:!1,key:{controlKey:"",text:""},keyRange:[]}},watch:{key:{handler:function(e){e.controlKey&&(this.focus=!1),this.$emit("update:hotkey",this.key)},immediate:!0},hotkey:{handler:function(e){e.text&&(this.key.text=e.text,this.key.controlKey=e.controlKey)},immediate:!0},range:{handler:function(e){var t=this,i={NUMBER:r,NUMPAD:o,ABC:s,OTHER:c};e.forEach((function(e){t.keyRange=t.keyRange.concat(i[e.toUpperCase()])}))},immediate:!0}},methods:{handleFocus:function(){this.key.text||(this.focus=!0)},handleDeleteKey:function(){this.key.text="",this.key.controlKey="",this.$emit("update:hotkey",this.key)},handleKeydown:function(e){console.log(e);var t=e.altKey,i=e.ctrlKey,n=e.shiftKey,a=e.key,r=e.code;if(!l.includes(a)){if(!this.keyRange.includes(r))return;var o="";[{key:t,text:"Alt"},{key:i,text:"Ctrl"},{key:n,text:"Shift"}].forEach((function(e){e.key&&(o&&(o+="+"),o+=e.text)})),a&&(o&&(o+="+"),"ArrowUp"===a?o+="↑":"ArrowDown"===a?o+="↓":"ArrowLeft"===a?o+="←":"ArrowRight"===a?o+="→":"PageUp"===a?o+="PageUp":"PageDown"===a?o+="PageDown":"+"===a&&n?o="+":"="!==a||n?"-"!==a||n?" "===a&&"Space"===r?o="Space":o+=a.toUpperCase():o="-":o="="),this.addHotkey({text:o,controlKey:{altKey:t,ctrlKey:i,shiftKey:n,key:a,code:r}})}e.preventDefault()},addHotkey:function(e){e.id=this.hotkeyId,this.verify(e)&&(this.key.text=e.text,this.key.controlKey=e.controlKey)}}},d=u,f=(i("3469"),i("2877")),h=Object(f["a"])(d,n,a,!1,null,"8989d59e",null);t["default"]=h.exports},e24f:function(e,t,i){"use strict";i("1b5d")},e254:function(e,t,i){"use strict";i("696c")},e263:function(e,t,i){var n=i("401b"),a=i("4a3f"),r=Math.min,o=Math.max,s=Math.sin,l=Math.cos,c=2*Math.PI,u=n.create(),d=n.create(),f=n.create();function h(e,t,i){if(0!==e.length){var n,a=e[0],s=a[0],l=a[0],c=a[1],u=a[1];for(n=1;n<e.length;n++)a=e[n],s=r(s,a[0]),l=o(l,a[0]),c=r(c,a[1]),u=o(u,a[1]);t[0]=s,t[1]=c,i[0]=l,i[1]=u}}function p(e,t,i,n,a,s){a[0]=r(e,i),a[1]=r(t,n),s[0]=o(e,i),s[1]=o(t,n)}var m=[],g=[];function v(e,t,i,n,s,l,c,u,d,f){var h,p=a.cubicExtrema,v=a.cubicAt,b=p(e,i,s,c,m);for(d[0]=1/0,d[1]=1/0,f[0]=-1/0,f[1]=-1/0,h=0;h<b;h++){var y=v(e,i,s,c,m[h]);d[0]=r(y,d[0]),f[0]=o(y,f[0])}for(b=p(t,n,l,u,g),h=0;h<b;h++){var w=v(t,n,l,u,g[h]);d[1]=r(w,d[1]),f[1]=o(w,f[1])}d[0]=r(e,d[0]),f[0]=o(e,f[0]),d[0]=r(c,d[0]),f[0]=o(c,f[0]),d[1]=r(t,d[1]),f[1]=o(t,f[1]),d[1]=r(u,d[1]),f[1]=o(u,f[1])}function b(e,t,i,n,s,l,c,u){var d=a.quadraticExtremum,f=a.quadraticAt,h=o(r(d(e,i,s),1),0),p=o(r(d(t,n,l),1),0),m=f(e,i,s,h),g=f(t,n,l,p);c[0]=r(e,s,m),c[1]=r(t,l,g),u[0]=o(e,s,m),u[1]=o(t,l,g)}function y(e,t,i,a,r,o,h,p,m){var g=n.min,v=n.max,b=Math.abs(r-o);if(b%c<1e-4&&b>1e-4)return p[0]=e-i,p[1]=t-a,m[0]=e+i,void(m[1]=t+a);if(u[0]=l(r)*i+e,u[1]=s(r)*a+t,d[0]=l(o)*i+e,d[1]=s(o)*a+t,g(p,u,d),v(m,u,d),r%=c,r<0&&(r+=c),o%=c,o<0&&(o+=c),r>o&&!h?o+=c:r<o&&h&&(r+=c),h){var y=o;o=r,r=y}for(var w=0;w<o;w+=Math.PI/2)w>r&&(f[0]=l(w)*i+e,f[1]=s(w)*a+t,g(p,f,p),v(m,f,m))}t.fromPoints=h,t.fromLine=p,t.fromCubic=v,t.fromQuadratic=b,t.fromArc=y},e27f:function(e,t,i){"use strict";i("02ab")},e297:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"payment-history data-list"},[i("div",{staticClass:"filter-container"},[i("el-select",{staticClass:"mr",attrs:{size:"small"},on:{change:e.handleTypeChange},model:{value:e.type,callback:function(t){e.type=t},expression:"type"}},e._l(e.types,(function(e){return i("el-option",{key:e,attrs:{label:e,value:e}})})),1),e._v(" "),i("el-select",{staticStyle:{width:"120px","margin-right":"5px"},attrs:{placeholder:"Nation",size:"small",clearable:""},model:{value:e.listQuery.Nation,callback:function(t){e.$set(e.listQuery,"Nation",t)},expression:"listQuery.Nation"}},[i("el-option",{attrs:{label:"CN",value:"0"}}),e._v(" "),i("el-option",{attrs:{label:"US",value:"1"}})],1),e._v(" "),i("el-input",{staticClass:"mr",attrs:{size:"small",placeholder:"Reviewer",clearable:""},model:{value:e.listQuery.Reviewer,callback:function(t){e.$set(e.listQuery,"Reviewer",t)},expression:"listQuery.Reviewer"}}),e._v(" "),i("el-date-picker",{staticStyle:{width:"160px","margin-right":"5px"},attrs:{size:"small",placeholder:"Beginning Month","value-format":"yyyy-MM",format:"yyyy-MM",type:"month","picker-options":e.beginPickerOption,clearable:!1},model:{value:e.listQuery.BeginMonth,callback:function(t){e.$set(e.listQuery,"BeginMonth",t)},expression:"listQuery.BeginMonth"}}),e._v("To\n "),i("el-date-picker",{staticStyle:{width:"160px",margin:"0 5px"},attrs:{size:"small",placeholder:"End Month","value-format":"yyyy-MM",format:"yyyy-MM",type:"month","picker-options":e.endpickerOption,clearable:!1},model:{value:e.listQuery.EndMonth,callback:function(t){e.$set(e.listQuery,"EndMonth",t)},expression:"listQuery.EndMonth"}}),e._v(" "),i("el-button",{attrs:{type:"text",size:"small"},on:{click:e.handleReset}},[e._v("Reset")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.handleSearch}},[e._v("Search")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"small",disabled:e.exportDisabled},on:{click:e.handleExport}},[e._v("Export Excel")])],1),e._v(" "),i("div",{staticClass:"data-table"},["Payment"==e.type?i("payment-list",{ref:"Payment",attrs:{param:e.listQuery},on:{selectMore:e.selectMore}}):e._e(),e._v(" "),"Adjustment"==e.type?i("adjustment-list",{ref:"Adjustment",attrs:{param:e.listQuery},on:{selectMore:e.selectMore}}):e._e()],1)])},a=[],r=i("db72"),o=(i("7878"),i("0228")),s=i("aa48"),l=i("2f62"),c={components:{PaymentList:o["default"],AdjustmentList:s["default"]},data:function(){var e=this;return{listQuery:{Reviewer:"",Nation:"",BeginMonth:new Date((new Date).setMonth((new Date).getMonth()-5)).format("yyyy-MM"),EndMonth:new Date(new Date).format("yyyy-MM")},beginPickerOption:{disabledDate:function(t){return e.listQuery.EndMonth?t.getTime()>new Date(e.listQuery.EndMonth).getTime():t.getTime()>Date.now()}},endpickerOption:{disabledDate:function(t){return e.listQuery.BeginMonth?t.getTime()>Date.now()||t.getTime()<=new Date(e.listQuery.BeginMonth).getTime():t.getTime()>Date.now()}},exportDisabled:!0,types:["Payment","Adjustment"],type:"Payment"}},computed:Object(r["a"])({},Object(l["b"])(["paymentHistoryQuery"])),created:function(){this.paymentHistoryQuery&&(this.listQuery=this.paymentHistoryQuery)},methods:Object(r["a"])({handleSearch:function(){this.listQuery.PageIndex=1,this.setQueryParam(this.listQuery),this.$refs[this.type].getList()},handleReset:function(){this.listQuery.Reviewer="",this.listQuery.Nation="",this.listQuery.EndMonth=(new Date).format("yyyy-MM"),this.listQuery.BeginMonth=new Date((new Date).setMonth((new Date).getMonth()-5)).format("yyyy-MM"),this.setQueryParam(this.listQuery),this.$refs[this.type].resetList()},handleTypeChange:function(){this.listQuery.Reviewer=""},handleExport:function(){this.$refs[this.type].export()},selectMore:function(e){this.exportDisabled=e}},Object(l["c"])({setQueryParam:"financials/SET_PAYMENTHISTORYQUERYPARAM"}))},u=c,d=(i("e7ca"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,"0d9805a9",null);t["default"]=f.exports},e2f5:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.pageLoading,expression:"pageLoading"}],staticStyle:{height:"100%",display:"flex","flex-direction":"column"}},[i("div",{staticStyle:{height:"50px"}},[i("div",{staticStyle:{"text-align":"right"}},[i("el-switch",{staticStyle:{"margin-right":"20px"},attrs:{"active-text":"EN","inactive-text":"中文"},model:{value:e.isEnglish,callback:function(t){e.isEnglish=t},expression:"isEnglish"}})],1),e._v(" "),i("div",{staticStyle:{"text-align":"center"}},[i("h3",[e._v(e._s(e.title))])])]),e._v(" "),i("div",{staticStyle:{flex:"1","margin-top":"50px","overflow-y":"auto"}},[i("el-collapse",{model:{value:e.activeNames,callback:function(t){e.activeNames=t},expression:"activeNames"}},[i("status-info",{attrs:{"basic-info":e.basicInfo,"status-list":e.statusList,"doctor-id":e.doctorId,holiday:e.holiday,"is-english":e.isEnglish}}),e._v(" "),i("el-collapse-item",{attrs:{title:"Basic Info",name:"1"}},[i("basic-info",{attrs:{"basic-info":e.doctorInfo.BasicInfoView,"is-english":e.isEnglish}})],1),e._v(" "),i("el-collapse-item",{attrs:{title:"Employment",name:"2"}},[i("Employment",{attrs:{employment:e.workInfo,"is-english":e.isEnglish}})],1),e._v(" "),i("el-collapse-item",{attrs:{title:"Specialty",name:"3"}},[i("Specialty",{attrs:{specialty:e.specialtyList,"is-english":e.isEnglish}})],1),e._v(" "),i("el-collapse-item",{attrs:{title:"Education & Training",name:"4"}},[i("education-training",{attrs:{"education-list":e.doctorInfo.EducationList,"postgraduate-list":e.doctorInfo.PostgraduateList,"is-english":e.isEnglish}})],1),e._v(" "),i("el-collapse-item",{attrs:{title:"Research & Publication",name:"5"}},[i("research-publication",{attrs:{"research-info":e.doctorInfo.ResearchPublicationView,"is-english":e.isEnglish}})],1),e._v(" "),i("el-collapse-item",{attrs:{title:"Trial Experience",name:"6"}},[e.doctorInfo.TrialExperienceView?i("trial-experience",{attrs:{"trial-experience":e.doctorInfo.TrialExperienceView,"is-english":e.isEnglish}}):e._e()],1),e._v(" "),i("el-collapse-item",{attrs:{title:"Credentials",name:"7"}},[e.doctorInfo.AttachmentList?i("Credentials",{attrs:{"attachment-list":e.doctorInfo.AttachmentList,"doctor-id":e.doctorId}}):e._e()],1),e._v(" "),i("el-collapse-item",{attrs:{title:"Resume",name:"8"}},[e.doctorInfo.AttachmentList?i("Resume",{attrs:{"resume-list":e.doctorInfo.AttachmentList}}):e._e()],1),e._v(" "),i("el-collapse-item",{attrs:{title:"Agreements",name:"9"}},[e.doctorInfo.AttachmentList?i("Agreements",{attrs:{"doctor-info":e.doctorInfo}}):e._e()],1),e._v(" "),i("el-collapse-item",{attrs:{title:"Comment",name:"10"}},[i("Comment",{attrs:{"status-list":e.statusList}})],1)],1)],1)])},a=[],r=i("33ba"),o=i("2c29"),s=i("3a1d"),l=i("b78b"),c=i("7f1c"),u=i("451c"),d=i("4e13"),f=i("b300"),h=i("aacc"),p=i("89ff"),m=i("14e2"),g=i("0b29"),v={components:{StatusInfo:o["default"],BasicInfo:s["default"],Employment:l["default"],Specialty:c["default"],EducationTraining:u["default"],ResearchPublication:d["default"],TrialExperience:f["default"],Credentials:h["default"],Resume:p["default"],Agreements:m["default"],Comment:g["default"]},data:function(){return{isEnglish:!0,htmlTitle:"",title:"",holiday:"",loading:!1,activeNames:["1","2","3","4","5","6","7","8","9","10"],statusList:{},basicInfo:{},workInfo:{},researchInfo:{},certificateTbl:[],resumeList:[],specialtyList:{Speciality:"",ReadingType:"",Subspeciality:""},doctorInfo:{},agreementList:[],pageLoading:!1,doctorId:""}},mounted:function(){this.isEnglish=!(!0!==this.$route.query.isEnglish&&"true"!==this.$route.query.isEnglish),this.doctorId=this.$route.query.doctorId,this.initForm()},methods:{initStatus:function(){if(this.doctorInfo.AuditView){var e=this.doctorInfo.AuditView;this.statusList.ResumeStatus=0===e.ResumeStatus?"":1===e.ResumeStatus?"Yes":"No",this.statusList.CooperateStatus=0===e.CooperateStatus?"":1===e.CooperateStatus?"Yes":"No",this.statusList.ReviewStatus=0===e.ReviewStatus?"":1===e.ReviewStatus?"Yes":"No",this.statusList.AcceptingNewTrial=e.AcceptingNewTrial?"Yes":"No",this.statusList.ActivelyReading=e.ActivelyReading?"Yes":"No",this.statusList.AdminComment=e.AdminComment,this.statusList.Submitted=this.doctorInfo.IntoGroupInfo?this.doctorInfo.IntoGroupInfo.Submitted:0,this.statusList.Approved=this.doctorInfo.IntoGroupInfo?this.doctorInfo.IntoGroupInfo.Approved:0,this.statusList.Reading=this.doctorInfo.IntoGroupInfo?this.doctorInfo.IntoGroupInfo.Reading:0}},initEmploymentInfo:function(){this.doctorInfo.EmploymentView&&(this.workInfo=this.doctorInfo.EmploymentView,this.workInfo.Department="ef84e9cb-f1a6-49d7-b6da-34be2c12abd5"===this.workInfo.DepartmentId?this.workInfo.DepartmentOther?this.workInfo.DepartmentOther:"Other":this.workInfo.Department,this.workInfo.DepartmentCN="ef84e9cb-f1a6-49d7-b6da-34be2c12abd5"===this.workInfo.DepartmentId?this.workInfo.DepartmentOtherCN:this.workInfo.DepartmentCN,this.workInfo.RankOther=this.workInfo.RankOther?"Other - "+this.workInfo.RankOther:"Other",this.workInfo.Rank="ef84e9cb-f1a6-49d7-b6da-34be2c12abd5"===this.workInfo.RankId?this.workInfo.RankOther:this.workInfo.Rank,this.workInfo.RankCN="ef84e9cb-f1a6-49d7-b6da-34be2c12abd5"===this.workInfo.RankId?this.workInfo.RankOtherCN:this.workInfo.RankCN,"ef84e9cb-f1a6-49d7-b6da-34be2c12abd5"===this.workInfo.PositionId?(this.workInfo.Position=this.workInfo.PositionOther,this.workInfo.PositionCN=this.workInfo.PositionOtherCN):"f30a074b-2b47-4a92-97ec-e15086d37883"===this.workInfo.PositionId?this.workInfo.Position="None":(this.workInfo.Position=this.workInfo.Position,this.workInfo.PositionCN=this.workInfo.PositionCN),this.workInfo.PositionOther=this.workInfo.PositionOther?"Other - "+this.workInfo.PositionOther:"Other")},initSpecialtyInfo:function(){if(this.doctorInfo.SpecialtyView){var e=this.doctorInfo.SpecialtyView;this.specialtyList.Department=e.DepartmentName?e.DepartmentName:"Other-"+e.DepartmentOther,e.ReadingTypeOther&&e.ReadingTypeList.push("Other-"+e.ReadingTypeOther),this.specialtyList.ReadingType=e.ReadingTypeList.length>0?e.ReadingTypeList.join(", "):"",e.ReadingTypeOtherCN&&e.ReadingTypeCNList.push(e.ReadingTypeOtherCN),this.specialtyList.ReadingTypeCNList=e.ReadingTypeCNList.length>0?e.ReadingTypeCNList.join(", "):"",e.SubspecialityOther&&e.SubspecialityList.push("Other-"+e.SubspecialityOther),e.SubspecialityOtherCN&&e.SubspecialityCNList.push(e.SubspecialityOtherCN),this.specialtyList.Subspeciality=e.SubspecialityList.length>0?e.SubspecialityList.join(", "):"",this.specialtyList.SubspecialityCNList=e.SubspecialityCNList.length>0?e.SubspecialityCNList.join(", "):"",this.specialtyList.Speciality="ef84e9cb-f1a6-49d7-b6da-34be2c12abd5"===e.SpecialityId?"Other-"+e.SpecialityOther:e.Speciality,this.specialtyList.SpecialityCN="ef84e9cb-f1a6-49d7-b6da-34be2c12abd5"===e.SpecialityId?e.SpecialityOtherCN:e.SpecialityCN}},initForm:function(){var e=this;this.doctorId&&(this.pageLoading=!0,Object(r["q"])(this.doctorId).then((function(t){e.pageLoading=!1,t.IsSuccess&&t.Result&&(e.holiday=t.Result.InHoliday?"Yes":"No",e.doctorInfo=t.Result,e.title="".concat(e.doctorInfo.BasicInfoView.FirstName," ").concat(e.doctorInfo.BasicInfoView.LastName,"'s Details"),e.htmlTitle=e.title,e.initStatus(),e.initEmploymentInfo(),e.initSpecialtyInfo())})))}}},b=v,y=(i("d4c3"),i("2877")),w=Object(y["a"])(b,n,a,!1,null,"baf50954",null);t["default"]=w.exports},e327:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",[i("div",{staticClass:"search"},[i("el-form",{staticClass:"base-search-form",attrs:{inline:!0,size:"mini"}},[i("el-form-item",{attrs:{label:"字典表名称:"}},[i("el-input",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.Code,callback:function(t){e.$set(e.searchData,"Code",t)},expression:"searchData.Code"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"字典分组:"}},[i("el-select",{attrs:{placeholder:"字典分组",clearable:"",size:"small"},model:{value:e.searchData.ConfigTypeId,callback:function(t){e.$set(e.searchData,"ConfigTypeId",t)},expression:"searchData.ConfigTypeId"}},e._l(e.basicDicList,(function(e){return i("el-option",{key:e.Id,attrs:{value:e.Id,label:e.Code}})})),1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:e.handleReset}},[e._v("Reset")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.handleSearch}},[e._v("Search")])],1)],1),e._v(" "),i("span",{staticStyle:{"margin-left":"auto"}},[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.handleSetting}},[e._v("配置字典分组")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.handleAdd}},[e._v("新建")])],1)],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:45},expression:"{bottomOffset:45}"}],attrs:{data:e.list,stripe:"",size:"small",height:"100"},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"60"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Code",label:"字典表名称",sortable:"custom","min-width":"180","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ConfigType",label:"字典分组",sortable:"custom","min-width":"180","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Description",label:"描述",sortable:"custom","min-width":"180","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ShowOrder",label:"显示顺序",sortable:"custom","min-width":"180","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{label:"是否可用",width:"100",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},on:{change:function(i){return e.switchChange(i,t.row)}},model:{value:t.row.IsEnable,callback:function(i){e.$set(t.row,"IsEnable",i)},expression:"scope.row.IsEnable"}})]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"操作",width:"300",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("\n 编辑\n ")]),e._v(" "),i("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(i){return e.handleChild(t.row)}}},[e._v("\n 子项\n ")]),e._v(" "),i("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("\n 删除\n ")])]}}])})],1),e._v(" "),i("div",{staticClass:"pagination",staticStyle:{"text-align":"right","margin-top":"5px"}},[i("pagination",{attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1),e._v(" "),i("DictionaryTypeConfigForm",{ref:"DictionaryTypeConfigForm",attrs:{"basic-dic-list":e.basicDicList},on:{getList:e.getList}}),e._v(" "),i("el-drawer",{attrs:{title:e.drawer_cfg.title,visible:e.drawer_cfg.drawerChild,direction:"rtl",size:"80%"},on:{"update:visible":function(t){return e.$set(e.drawer_cfg,"drawerChild",t)}}},[e.drawer_cfg.drawerChild?i("DictionaryChild",{ref:"DictionaryChild",attrs:{parent:e.drawer_cfg.parent}}):e._e()],1)],1)},a=[],r=(i("20d6"),i("e56e")),o=i("fc57"),s=i("cf221"),l=i("333d"),c=i("f36a"),u=function(){return{Asc:!0,SortField:"",Code:"",KeyName:"",DataTypeEnum:1,PageIndex:1,PageSize:20,ConfigTypeId:null}},d={components:{BoxContent:c["default"],Pagination:l["default"],DictionaryTypeConfigForm:o["default"],DictionaryChild:s["default"]},data:function(){return{searchData:u(),basicDicList:[],list:[],total:0,loading:!1,drawer_cfg:{drawerChild:!1,parentId:"",title:""},rowData:{},model_cfg:{visible:!1,showClose:!0,width:"600px",title:"",appendToBody:!0}}},mounted:function(){this.getList(),this.getDictionaryTypeConfig()},methods:{handleSortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()},handleChild:function(e){this.drawer_cfg={drawerChild:!0,parentId:e.Id,title:e.Code,parent:e}},handleSetting:function(){this.$router.push({path:"/dictionary/newDictionary/setting"})},switchChange:function(e,t){var i=this;this.loading=!0,Object(r["c"])(t).then((function(e){i.$message.success("Saved successfully!"),i.loading=!1})).catch((function(){i.loading=!1}))},handleEdit:function(e){var t=this;this.$nextTick((function(){t.$refs["DictionaryTypeConfigForm"].openDialog("DictionaryTypeConfig",e)}))},handleAdd:function(){var e=this;this.$nextTick((function(){e.$refs["DictionaryTypeConfigForm"].openDialog("DictionaryTypeConfig",{DataTypeEnum:1})}))},handleDelete:function(e){var t=this;this.$confirm("Sure to delete?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){t.loading=!0,Object(r["C"])(e.Id).then((function(i){t.loading=!1,i.IsSuccess&&(t.list.splice(t.list.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success("Deleted successfully!"))})).catch((function(){t.loading=!1}))}))},getList:function(){var e=this;this.loading=!0,Object(r["W"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},getDictionaryTypeConfig:function(){var e=this;Object(r["W"])({DataTypeEnum:0,SortField:"Code",PageIndex:1,PageSize:500}).then((function(t){e.basicDicList=t.Result.CurrentPageData,console.log(e.basicDicList)})).catch((function(){}))},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=u(),this.getList()}}},f=d,h=i("2877"),p=Object(h["a"])(f,n,a,!1,null,null,null);t["default"]=p.exports},e330:function(e,t,i){},e351:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"upload-container"},[i("el-table",{attrs:{size:"small",stripe:"",data:e.doctorList,height:"100%"}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Name",sortable:"custom",label:"Name","min-width":"90","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.row.LastName+t.row.FirstName))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ChineseName",sortable:"custom",label:"Name CN","min-width":"110","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ReviewerCode",sortable:"custom",label:"ID","min-width":"130","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Training",label:"Training","min-width":"80","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.Training)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"RefresherTraining",label:"Refresher Training","min-width":"130","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.RefresherTraining)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"Timepoint",align:"center"}},[i("el-table-column",{attrs:{prop:"Timepoint",label:"Regular","min-width":"80","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.Timepoint)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TimepointIn48H",label:"48-hour","min-width":"90","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.Timepoint48H)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TimepointIn24H",label:"24-hour","min-width":"90","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.Timepoint24H)))])]}}])})],1),e._v(" "),i("el-table-column",{attrs:{label:"Adjudication",align:"center"}},[i("el-table-column",{attrs:{prop:"Adjudication",label:"Regular","min-width":"80","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.Adjudication)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"AdjudicationIn48H",label:"48-hour","min-width":"90","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.Adjudication48H)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"AdjudicationIn24H",label:"24-hour","min-width":"90","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.Adjudication24H)))])]}}])})],1),e._v(" "),i("el-table-column",{attrs:{prop:"Global",label:"Global","min-width":"80","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.Global)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Downtime",label:"Downtime","min-width":"80","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.Downtime)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"Action","min-width":"80",fixed:"right",align:"left"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{size:"small",type:"text"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("Edit")])]}}])})],1),e._v(" "),i("el-dialog",{key:e.timer,attrs:{size:"small",title:"Edit","append-to-body":"",visible:e.dialogVisible,width:"600px","close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("TrialsDataReviewersForm",{attrs:{form:e.row},on:{getList:e.getList,closeDialog:e.closeDialog}})],1)],1)},a=[],r=(i("c5f6"),i("32fb")),o={name:"TrialsDataReviewers",filters:{rounding:function(e){return e||(e=0),e?Number(e).toFixed(2):e}},components:{TrialsDataReviewersForm:r["default"]},props:{doctorList:{type:Array,default:function(){return[]}}},data:function(){return{dialogVisible:!1,timer:null,row:null}},methods:{closeDialog:function(){this.dialogVisible=!1},getList:function(e){this.$emit("getList",e,1)},handleEdit:function(e){this.timer=(new Date).getTime(),this.row=JSON.parse(JSON.stringify(e)),this.dialogVisible=!0}}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},e378:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{height:"100%","overflow-y":"auto"}},[i("router-view")],1)},a=[],r=i("2877"),o={},s=Object(r["a"])(o,n,a,!1,null,null,null);t["default"]=s.exports},e389:function(e,t,i){"use strict";i("5837")},e3c3:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"taskAllocationRuleDataForm",attrs:{model:e.form,rules:e.rules,size:"small"}},[e.list.length>0?i("div",[i("div",{staticStyle:{"text-align":"right"}}),e._v(" "),1===e.readingType?i("div",{staticStyle:{"line-height":"32px","margin-bottom":"10px"}},[e._v("\n "+e._s(e.$t("trials:reviewAssign:clearReader:title:r"))+"\n "),e.findDoctorUser(e.list,0).DoctorUser&&!e.findDoctorUser(e.list,0).IsCancelAssign?i("el-tag",{attrs:{closable:!e.findDoctorUser(e.list,0).IsHaveReading},on:{close:function(t){e.myClose(e.findDoctorUser(e.list,0))}}},[e._v("\n "+e._s(e.findDoctorUser(e.list,0).DoctorUser.UserName)+"("+e._s(e.findDoctorUser(e.list,0).DoctorUser.FullName)+")\n ")]):e._e()],1):e._e(),e._v(" "),2===e.readingType?i("div",{staticStyle:{"line-height":"32px","margin-bottom":"10px"}},[e._v("\n "+e._s(e.$t("trials:reviewAssign:clearReader:title:r1"))+"\n "),e.findDoctorUser(e.list,1).DoctorUser&&!e.findDoctorUser(e.list,1).IsCancelAssign?i("el-tag",{attrs:{closable:!e.findDoctorUser(e.list,1).IsHaveReading},on:{close:function(t){e.myClose(e.findDoctorUser(e.list,1))}}},[e._v("\n "+e._s(e.findDoctorUser(e.list,1).DoctorUser.UserName)+"("+e._s(e.findDoctorUser(e.list,1).DoctorUser.FullName)+")\n ")]):e._e()],1):e._e(),e._v(" "),2===e.readingType?i("div",{staticStyle:{"line-height":"32px","margin-bottom":"10px"}},[e._v("\n "+e._s(e.$t("trials:reviewAssign:clearReader:title:r2"))+"\n "),e.findDoctorUser(e.list,2).DoctorUser&&!e.findDoctorUser(e.list,2).IsCancelAssign?i("el-tag",{attrs:{closable:!e.findDoctorUser(e.list,2).IsHaveReading},on:{close:function(t){e.myClose(e.findDoctorUser(e.list,2))}}},[e._v("\n "+e._s(e.findDoctorUser(e.list,2).DoctorUser.UserName)+"("+e._s(e.findDoctorUser(e.list,2).DoctorUser.FullName)+")\n ")]):e._e()],1):e._e(),e._v(" "),e.OtherInfo&&e.OtherInfo.IsArbitrationReading&&2===e.readingType?i("div",{staticStyle:{"line-height":"32px","margin-bottom":"10px"}},[e._v("\n "+e._s(e.$t("trials:reviewAssign:clearReader:title:ad"))+"\n "),e.findDoctorUser(e.list,3).DoctorUser&&!e.findDoctorUser(e.list,3).IsCancelAssign?i("el-tag",{attrs:{closable:!e.findDoctorUser(e.list,3).IsHaveReading},on:{close:function(t){e.myClose(e.findDoctorUser(e.list,3))}}},[e._v("\n "+e._s(e.findDoctorUser(e.list,3).DoctorUser.UserName)+"("+e._s(e.findDoctorUser(e.list,3).DoctorUser.FullName)+")\n ")]):e._e()],1):e._e(),e._v(" "),e.OtherInfo&&e.OtherInfo.IsOncologyReading?i("div",{staticStyle:{"line-height":"32px","margin-bottom":"10px"}},[e._v("\n "+e._s(e.$t("trials:reviewAssign:clearReader:title:O1"))+"\n "),e.findDoctorUser(e.list,4).DoctorUser&&!e.findDoctorUser(e.list,4).IsCancelAssign?i("el-tag",{attrs:{closable:!e.findDoctorUser(e.list,4).IsHaveReading},on:{close:function(t){e.myClose(e.findDoctorUser(e.list,4))}}},[e._v("\n "+e._s(e.findDoctorUser(e.list,4).DoctorUser.UserName)+"("+e._s(e.findDoctorUser(e.list,4).DoctorUser.FullName)+")\n ")]):e._e()],1):e._e(),e._v(" "),i("div",{staticStyle:{"line-height":"32px","margin-bottom":"10px","font-size":"12px",color:"#f66"}},[i("i",{staticClass:"el-icon-info"}),e._v(" "),e._v("\n "+e._s(e.$t("trials:reviewAssign:clearReader:title:msg1"))+"\n ")]),e._v(" "),i("div",[i("el-form-item",{attrs:{"label-width":"80px",label:e.$t("trials:reviewAssign:clearReader:title:reason"),prop:"Note"}},[i("el-input",{attrs:{type:"textarea",maxlength:"500","show-word-limit":""},model:{value:e.form.Note,callback:function(t){e.$set(e.form,"Note",t)},expression:"form.Note"}})],1)],1)]):e._e(),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{disabled:e.loading,size:"small",type:"primary"},on:{click:e.close}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{staticStyle:{"margin-top":"10px"},attrs:{size:"small",type:"primary",loading:e.loading},on:{click:e.save}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])},a=[],r=(i("7514"),i("ac6a"),i("c5f6"),i("958c")),o={name:"ManualAllocationTable",props:{TrialReadingCriterionId:{type:String,default:function(){return""}},data:{type:Object,default:function(){return{}}},readingType:{type:Number,default:function(){return 0}}},data:function(){return{TrialId:this.$route.query.trialId,list:[],loading:!1,btnLoading:!1,form:{Note:""},readingType:null,rules:{Note:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}]},OtherInfo:null}},mounted:function(){var e=this;this.TrialId=this.$route.query.trialId,this.loading=!0,Object(r["P"])(this.data.SubjectId,this.TrialReadingCriterionId).then((function(t){e.list=t.Result,e.readingType=t.OtherInfo.ReadingType,e.OtherInfo=Object.assign({},t.OtherInfo),e.loading=!1})).catch((function(){e.loading=!1}))},methods:{clearAll:function(){var e=this,t=!1;this.form.Note="",this.list.forEach((function(i,n){i.IsHaveReading||(e.$set(i,"IsCancelAssign",!0),n+1===e.list.length?e.form.Note+="".concat(e.$t("trials:reviewAssign:clearReader:title:cancelReader"),"(").concat(e.$fd("ArmEnum",i.ArmEnum)," ").concat(i.DoctorUser.UserName,"(").concat(i.DoctorUser.FullName,");"):e.form.Note+="".concat(e.$t("trials:reviewAssign:clearReader:title:cancelReader"),"(").concat(e.$fd("ArmEnum",i.ArmEnum)," ").concat(i.DoctorUser.UserName,"(").concat(i.DoctorUser.FullName,");\n"),t=!0)})),t?this.$message.success(this.$t("trials:reviewAssign:clearReader:title:msg2")):this.$message.error(this.$t("trials:reviewAssign:clearReader:title:msg3"))},myClose:function(e){this.$set(e,"IsCancelAssign",!0),this.form.Note?this.form.Note+="\n".concat(this.$t("trials:reviewAssign:clearReader:title:cancelReader"),"(").concat(e.DoctorUser.UserName,"(").concat(e.DoctorUser.FullName,");"):this.form.Note+="".concat(this.$t("trials:reviewAssign:clearReader:title:cancelReader"),"(").concat(e.DoctorUser.UserName,"(").concat(e.DoctorUser.FullName,");")},findDoctorUser:function(e,t){var i;return e.length>0&&(i=e.find((function(e){return e.ArmEnum===t}))?e.find((function(e){return e.ArmEnum===t})):{DoctorUser:null}),i},save:function(){var e=this;this.$refs.taskAllocationRuleDataForm.validate((function(t){if(t){e.loading=!0;var i=e.list.map((function(t){return{Id:t.Id,SubjectId:e.data.SubjectId,DoctorUserId:t.DoctorUserId,ArmEnum:t.ArmEnum,IsCancelAssign:t.IsCancelAssign}}));Object(r["l"])({CancelList:i,Note:e.form.Note,TrialReadingCriterionId:e.TrialReadingCriterionId,TrialId:e.TrialId}).then((function(){e.loading=!1,e.$message.success(e.$t("common:message:savedSuccessfully")),e.$emit("getList"),e.close()})).catch((function(){e.loading=!1}))}}))},close:function(){this.$emit("close")}}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,"3c562ed2",null);t["default"]=c.exports},e3da:function(e,t,i){},e3ff:function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-excel",use:"icon-excel-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-excel"><path d="M78.208 16.576v8.384h38.72v5.376h-38.72v8.704h38.72v5.376h-38.72v8.576h38.72v5.376h-38.72v8.576h38.72v5.376h-38.72v8.576h38.72v5.376h-38.72v8.512h38.72v5.376h-38.72v11.136H128v-94.72H78.208zM0 114.368L72.128 128V0L0 13.632v100.736z" /><path d="M28.672 82.56h-11.2l14.784-23.488-14.08-22.592h11.52l8.192 14.976 8.448-14.976h11.136l-14.08 22.208L58.368 82.56H46.656l-8.768-15.68z" /></symbol>'});o.a.add(s);t["default"]=s},e468:function(e,t,i){var n=i("e46b"),a=i("6d8b"),r=i("2f45"),o=r.getDimensionTypeByAxis,s=i("0f99"),l=s.makeSeriesEncodeForAxisCoordSys,c={_baseAxisDim:null,getInitialData:function(e,t){var i,r,s=t.getComponent("xAxis",this.get("xAxisIndex")),c=t.getComponent("yAxis",this.get("yAxisIndex")),u=s.get("type"),d=c.get("type");"category"===u?(e.layout="horizontal",i=s.getOrdinalMeta(),r=!0):"category"===d?(e.layout="vertical",i=c.getOrdinalMeta(),r=!0):e.layout=e.layout||"horizontal";var f=["x","y"],h="horizontal"===e.layout?0:1,p=this._baseAxisDim=f[h],m=f[1-h],g=[s,c],v=g[h].get("type"),b=g[1-h].get("type"),y=e.data;if(y&&r){var w=[];a.each(y,(function(e,t){var i;e.value&&a.isArray(e.value)?(i=e.value.slice(),e.value.unshift(t)):a.isArray(e)?(i=e.slice(),e.unshift(t)):i=e,w.push(i)})),e.data=w}var _=this.defaultValueDimensions,I=[{name:p,type:o(v),ordinalMeta:i,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:m,type:o(b),dimsDef:_.slice()}];return n(this,{coordDimensions:I,dimensionsCount:_.length+1,encodeDefaulter:a.curry(l,I,this)})},getBaseAxis:function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis}};t.seriesModelMixin=c},e46b:function(e,t,i){var n=i("b1d4"),a=i("6179"),r=i("6d8b"),o=r.extend,s=r.isArray;function l(e,t,i){t=s(t)&&{coordDimensions:t}||o({},t);var r=e.getSource(),l=n(r,t),c=new a(l,e);return c.initData(r,i),c}e.exports=l},e47b:function(e,t,i){var n=i("e0d3"),a=n.makeInner,r=n.normalizeToArray,o=a();function s(e,t){for(var i=e.length,n=0;n<i;n++)if(e[n].length>t)return e[n];return e[i-1]}var l={clearColorPalette:function(){o(this).colorIdx=0,o(this).colorNameMap={}},getColorFromPalette:function(e,t,i){t=t||this;var n=o(t),a=n.colorIdx||0,l=n.colorNameMap=n.colorNameMap||{};if(l.hasOwnProperty(e))return l[e];var c=r(this.get("color",!0)),u=this.get("colorLayer",!0),d=null!=i&&u?s(u,i):c;if(d=d||c,d&&d.length){var f=d[a];return e&&(l[e]=f),n.colorIdx=(a+1)%d.length,f}}};e.exports=l},e4a3:function(e,t,i){"use strict";i("a078")},e4ac:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"dicom-viewer-wrapper"},[i("div",{staticClass:"dicom-viewer-container"},[i("div",{staticClass:"dicom-tools"},[i("div",{staticClass:"tool-wrapper"},[i("div",{staticClass:"dropdown"},[i("div",{staticClass:"icon"},[i("svg-icon",{staticClass:"svg-icon",attrs:{"icon-class":"layout"}})],1),e._v(" "),e._m(0),e._v(" "),i("div",{staticClass:"dropdown-content layout-content"},[i("ul",{staticStyle:{width:"50px"}},[i("li",{staticClass:"flex_row",on:{click:function(t){return t.preventDefault(),e.changeLayout("A")}}},[i("div",{staticClass:"layout_box_1_1"},[e._v("\n A\n ")])]),e._v(" "),i("li",{staticClass:"flex_row",on:{click:function(t){return t.preventDefault(),e.changeLayout("A|A")}}},[i("div",{staticClass:"layout_box_1_1"},[e._v("\n A\n ")]),e._v(" "),i("div",{staticClass:"layout_box_1_1"},[e._v("\n A\n ")])]),e._v(" "),e.isReadingTaskViewInOrder?i("li",{staticClass:"flex_row",on:{click:function(t){return t.preventDefault(),e.changeLayout("A|B")}}},[i("div",{staticClass:"layout_box_1_1"},[e._v("\n A\n ")]),e._v(" "),i("div",{staticClass:"layout_box_1_1"},[e._v("\n B\n ")])]):e._e(),e._v(" "),i("li",{staticClass:"flex_column",on:{click:function(t){return t.preventDefault(),e.changeLayout("A|A|A|A")}}},[e._m(1),e._v(" "),e._m(2)])])])])]),e._v(" "),i("div",{staticClass:"tool-wrapper"},[i("div",{staticClass:"dropdown"},[i("div",{staticClass:"icon",class:["Wwwc"===e.activeTool?"tool_active":""],staticStyle:{width:"35px",translate:"50%"},attrs:{"data-tool":"Wwwc"},on:{click:function(t){return t.preventDefault(),e.setToolActive("Wwwc",!1)}}},[i("svg-icon",{staticClass:"svg-icon",attrs:{"icon-class":"reversecolor"}})],1),e._v(" "),e._m(3),e._v(" "),i("div",{staticClass:"dropdown-content"},[i("ul",{staticStyle:{width:"80px"}},e._l(e.wwwcArr,(function(t){return i("li",{key:t.label},[i("a",{attrs:{href:"#"},on:{click:function(i){return i.preventDefault(),e.setDicomCanvasWwwc(t)}}},[e._v(e._s(t.label))])])})),0)])])]),e._v(" "),i("div",{staticClass:"tool-wrapper"},[i("div",{staticClass:"icon",class:["Zoom"===e.activeTool?"tool_active":""],attrs:{"data-tool":"Zoom"},on:{click:function(t){return t.preventDefault(),e.setToolActive("Zoom",!1)}}},[i("svg-icon",{staticClass:"svg-icon",attrs:{"icon-class":"magnifier"}})],1),e._v(" "),i("div",{staticClass:"text"},[e._v("缩放")])]),e._v(" "),i("div",{staticClass:"tool-wrapper"},[i("div",{staticClass:"icon",class:["Pan"===e.activeTool?"tool_active":""],attrs:{"data-tool":"Pan"},on:{click:function(t){return t.preventDefault(),e.setToolActive("Pan",!1)}}},[i("svg-icon",{staticClass:"svg-icon",attrs:{"icon-class":"move"}})],1),e._v(" "),i("div",{staticClass:"text"},[e._v("移动")])]),e._v(" "),i("div",{staticClass:"tool-wrapper"},[i("div",{staticClass:"dropdown"},[i("div",{staticClass:"icon",class:["Rotate"===e.activeTool?"tool_active":""],attrs:{"data-tool":"Rotate"}},[i("svg-icon",{staticClass:"svg-icon",attrs:{"icon-class":"rotate"}})],1),e._v(" "),e._m(4),e._v(" "),i("div",{staticClass:"dropdown-content"},[i("ul",{staticStyle:{width:"80px"}},e._l(e.rotateArr,(function(t){return i("li",{key:t.label},[i("a",{attrs:{href:"#"},on:{click:function(i){return i.preventDefault(),e.setDicomCanvasRotate(t.val)}}},[e._v(e._s(t.label))])])})),0)])])]),e._v(" "),i("div",{staticClass:"tool-wrapper"},[i("div",{staticClass:"icon",on:{click:function(t){return t.preventDefault(),e.fitToType(1===e.fitType?"fitToWindow":"fitToImage")}}},[1===e.fitType?i("svg-icon",{staticClass:"svg-icon",attrs:{"icon-class":"fitToWindow"}}):i("svg-icon",{staticClass:"svg-icon",attrs:{"icon-class":"fitToImage"}})],1),e._v(" "),i("div",{staticClass:"text"},[e._v(e._s(1===e.fitType?"适应窗口":"适应图像"))])]),e._v(" "),i("div",{staticClass:"tool-wrapper"},[i("div",{staticClass:"icon",class:[e.isScrollSync?"tool_active":""],on:{click:function(t){return t.preventDefault(),e.setImageIndexSync(t)}}},[e.isScrollSync?i("i",{staticClass:"el-icon-lock svg-icon"}):i("i",{staticClass:"el-icon-unlock svg-icon"})]),e._v(" "),i("div",{staticClass:"text"},[e._v("同步")])]),e._v(" "),e._l(e.measuredTools,(function(t){return i("div",{key:t.toolName},[t.disabledReason?i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:t.disabledReason,placement:"top"}},[i("div",{staticClass:"tool-wrapper"},[i("div",{staticClass:"icon",class:[e.activeTool===t.toolName?"tool_active":""],style:{cursor:t.isDisabled?"not-allowed":"pointer"},attrs:{"data-tool":t.toolName},on:{click:function(i){return i.preventDefault(),e.setToolActive(t.toolName,!0,i)},mouseenter:function(i){return e.enter(i,t.toolName)}}},[i("svg-icon",{staticClass:"svg-icon",attrs:{"icon-class":t.icon}})],1),e._v(" "),i("div",{staticClass:"text"},[e._v(e._s(t.text))])])]):i("div",{staticClass:"tool-wrapper"},[i("div",{staticClass:"icon",class:[e.activeTool===t.toolName?"tool_active":""],style:{cursor:t.isDisabled?"not-allowed":"pointer"},attrs:{"data-tool":t.toolName},on:{click:function(i){return i.preventDefault(),e.setToolActive(t.toolName,!0,i)},mouseenter:function(i){return e.enter(i,t.toolName)}}},[i("svg-icon",{staticClass:"svg-icon",attrs:{"icon-class":t.icon}})],1),e._v(" "),i("div",{staticClass:"text"},[e._v(e._s(t.text))])])],1)})),e._v(" "),i("div",{staticStyle:{"margin-left":"auto"}},[i("div",{staticStyle:{padding:"5px"}},[e.isExistsClinicalData?i("el-button",{attrs:{type:"text"},on:{click:e.previewCD}},[e._v("临床数据")]):e._e()],1)])],2),e._v(" "),i("div",{staticClass:"dicom-viewers"},[i("div",{ref:"container",staticClass:"viewer-container",class:["box","box_"+e.layoutRow+"_"+e.layoutCol]},e._l(e.maxCanvas,(function(t){return i("div",{key:t,class:["item",t-1===e.currentDicomCanvasIndex?"item_active":""],style:t-1===e.currentDicomCanvasIndex?e.cornerstoneStyle:{},attrs:{"data-index":t-1},on:{dblclick:function(i){return e.setCornerstoneStyle(t-1)},click:function(i){return e.activateDicomCanvas(t-1)}}},[e.canvasW?i("dicom-canvas",{ref:"dicomCanvas"+(t-1),refInFor:!0,style:{width:e.canvasW,height:e.canvasH},attrs:{"canvas-index":t-1,"is-active":t-1===e.currentDicomCanvasIndex,"is-scroll-sync":e.isScrollSync},on:{setMeasureData:e.setMeasureData,modifyMeasureData:e.modifyMeasureData,scrollSync:e.scrollSync}}):e._e()],1)})),0),e._v(" "),i("div",{ref:"form-container",staticClass:"form-container"},[i("MeasurementList",{ref:"measurementList",attrs:{IseCRFShowInDicomReading:e.IseCRFShowInDicomReading,isReadingShowSubjectInfo:e.isReadingShowSubjectInfo}})],1)])])])},a=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"text"},[e._v("布局"),i("i",{staticClass:"el-icon-caret-bottom"})])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{flex:"1",display:"flex",width:"100%"}},[i("div",{staticClass:"layout_box_1_2"},[e._v("\n A\n ")]),e._v(" "),i("div",{staticClass:"layout_box_1_2"},[e._v("\n A\n ")])])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{flex:"1",display:"flex",width:"100%"}},[i("div",{staticClass:"layout_box_1_2"},[e._v("\n A\n ")]),e._v(" "),i("div",{staticClass:"layout_box_1_2"},[e._v("\n A\n ")])])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"text"},[e._v("窗宽/窗位"),i("i",{staticClass:"el-icon-caret-bottom"})])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"text"},[e._v("旋转"),i("i",{staticClass:"el-icon-caret-bottom"})])}],r=(i("7514"),i("96cf"),i("3b8d")),o=(i("5df3"),i("1c4c"),i("ac6a"),i("7f7f"),i("20d6"),i("db72")),s=i("81d9"),l=i("6e43"),c=i("e6ad"),u=i("c8b5"),d=i.n(u),f=i("4ed2"),h=i("9bb8"),p=i("9b92"),m=i("2f62"),g=i("4360");c["external"].cornerstone=s,c["external"].Hammer=d.a,c["external"].cornerstoneMath=l;var v={name:"DicomViewer",components:{DicomCanvas:f["default"],MeasurementList:h["default"]},props:{isReadingShowSubjectInfo:{type:Boolean,required:!0},isExistsClinicalData:{type:Boolean,default:!1},isExistsNoDicomFile:{type:Boolean,default:!1},IseCRFShowInDicomReading:{type:Boolean,required:!0}},data:function(){return{cornerstoneStyle:{},layouts:[{index:0,row:1,col:1,name:"A"},{index:1,row:1,col:2,name:"A|A"},{index:2,row:1,col:2,name:"A|B"},{index:3,row:2,col:2,name:"A|A|A|A"}],rotateArr:[{label:"默认值",val:1},{label:"垂直翻转",val:2},{label:"水平翻转",val:3},{label:"左转90度",val:4},{label:"右转90度",val:5}],maxCanvas:1,layoutRow:1,layoutCol:1,currentDicomCanvasIndex:-1,currentDicomCanvas:{toolState:{clipPlaying:!1}},colormapsList:[],rotateList:[],colorList:[],wwwcList:[],canvasW:null,canvasH:null,activeTool:"",CriterionType:0,measuredTools:[{toolName:"Length",text:"直径测量",icon:"length",isDisabled:!1,disabledReason:""},{toolName:"Bidirectional",text:"长短径测量",icon:"bidirection",isDisabled:!1,disabledReason:""},{toolName:"ArrowAnnotate",text:"箭头工具",icon:"arrow",isDisabled:!1,disabledReason:""}],fitType:0,isDisabledTool:!1,canvasObj:{},wwwcArr:[{label:"默认值",val:1,ww:null,wc:null},{label:"CT Abdomen",val:2,wc:60,ww:400},{label:"CT Angio",val:3,wc:300,ww:600},{label:"CT Bone",val:4,wc:300,ww:1500},{label:"CT Brain",val:5,wc:40,ww:80},{label:"CT Chest",val:6,wc:40,ww:400},{label:"CT Lungs",val:7,wc:-400,ww:1500}],activeSeries:{},seriesStack:[],trialId:"",isScrollSync:!1,imageIndexSync:{sourceCanvas:"",targetCanvas:[]},isFirstRender:!1,isReadingTaskViewInOrder:!1}},computed:Object(o["a"])({},Object(m["b"])(["visitTaskList"])),mounted:function(){var e=this;this.isReadingTaskViewInOrder="true"===this.$router.currentRoute.query.isReadingTaskViewInOrder,this.CriterionType=parseInt(localStorage.getItem("CriterionType")),10===this.CriterionType&&(this.measuredTools=[{toolName:"ArrowAnnotate",text:"箭头",icon:"label",isDisabled:!1,disabledReason:""}]),this.rotateList[0]="1",this.colorList[0]="",this.wwwcList[0]="1",this.colormapsList=s["colors"].getColormapsList(),this.currentDicomCanvas=this.$refs["dicomCanvas0"]?this.$refs["dicomCanvas0"][0]:"",this.trialId=this.$router.currentRoute.query.trialId,this.setCanvasStyle(),window.addEventListener("resize",this.setCanvasStyle),p["a"].$on("updateImage",(function(t){for(var i=0;i<e.maxCanvas;i++){var n=e.$refs["dicomCanvas".concat(e.currentDicomCanvasIndex)][0].stack;n.studyId&&e.$refs["dicomCanvas".concat(e.currentDicomCanvasIndex)][0].updateImage(t)}})),p["a"].$on("getMeasureData",(function(){for(var t=0;t<e.maxCanvas;t++){var i=e.$refs["dicomCanvas".concat(t)][0].stack;i.studyId&&e.$refs["dicomCanvas".concat(t)][0].getMeasureData()}console.log("getMeasureData")})),p["a"].$on("imageLocation",(function(t){t&&(e.imageLocation(t),console.log("imageLocation"))})),p["a"].$on("setReadingState",(function(t){e.canvasObj[e.currentDicomCanvasIndex].readingTaskState=t,e.activeTool&&(e.$refs["dicomCanvas".concat(e.currentDicomCanvasIndex)][0].setToolEnabled(e.activeTool),e.activeTool="")})),p["a"].$on("PGWC3Active",(function(t){e.setToolActive("ArrowAnnotate",!0,null,"open")})),p["a"].$on("loadImageStacks",(function(t){e.loadImageStacks(t),console.log("loadImageStacks")}))},beforeDestroy:function(){p["a"].$off("updateImage"),p["a"].$off("getMeasureData"),p["a"].$off("imageLocation"),p["a"].$off("setReadingState"),p["a"].$off("loadImageStacks")},methods:{setCornerstoneStyle:function(e){var t=this;this.cornerstoneStyle.position?(this.cornerstoneStyle={},this.setCanvasStyle()):(this.cornerstoneStyle={position:"absolute",top:"72px",left:"205px",right:"350px",zIndex:10},this.canvasW=window.innerWidth-570+"px",this.canvasH=window.innerHeight-130+"px"),this.$nextTick((function(){t.$refs["dicomCanvas".concat(t.currentDicomCanvasIndex)][0].reloadCanvas()}))},loadImageStacks:function(e){var t=this,i=e.length>1?"A|B":"A",n=this.layouts.findIndex((function(e){return e.name===i})),a=this.layouts[n];this.layoutRow=a.row,this.layoutCol=a.col,this.setCanvasStyle(),this.maxCanvas=a.row*a.col,this.$nextTick((function(){var i=document.querySelectorAll(".cornerstone-element");Array.from(i).forEach((function(e){s["enable"](e),s["resize"](e)})),e.map((function(e,i){t.canvasObj[i]=e,e.isCurrentTask&&(t.currentDicomCanvasIndex=i,t.activeSeries=e,t.$refs["measurementList"].initPage(e)),t.$refs["dicomCanvas".concat(i)][0].loadImageStack(e),t.activeTool&&(e.isCurrentTask&&e.readingTaskState<2?t.$nextTick((function(){t.$refs["dicomCanvas".concat(i)][0].setToolPassive(t.activeTool)})):t.$nextTick((function(){t.$refs["dicomCanvas".concat(i)][0].setToolEnabled(t.activeTool)})),t.activeTool="")}))}))},loadImageStack:function(e){var t=this;this.canvasObj[this.currentDicomCanvasIndex]=e,this.activeTool&&(e.isCurrentTask&&e.readingTaskState<2?this.$nextTick((function(){t.$refs["dicomCanvas".concat(t.currentDicomCanvasIndex)][0].setToolPassive(t.activeTool)})):this.$nextTick((function(){t.$refs["dicomCanvas".concat(t.currentDicomCanvasIndex)][0].setToolEnabled(t.activeTool)})),this.activeTool=""),this.$nextTick((function(){if(t.activeSeries=e,!t.isFirstRender||e.isFirstRender){t.isFirstRender=!0;var i=t.visitTaskList.findIndex((function(t){return t.VisitTaskId===e.visitTaskId}));!t.visitTaskList[i].IsBaseLineTask&&t.isReadingTaskViewInOrder&&t.visitTaskList.length>1?t.changeLayout("A|B"):t.changeLayout("A")}else t.$refs["dicomCanvas".concat(t.currentDicomCanvasIndex)][0].loadImageStack(e);t.$refs["measurementList"].initPage(e)}))},getSeriesShowInCanvas:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){var i,n,a,o,s,l,c,u,d,f,h=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=this.$loading({fullscreen:!0}),"A"!==t.name){e.next=14;break}if(!this.activeSeries){e.next=10;break}return this.seriesStack=[this.activeSeries],this.currentDicomCanvasIndex=0,e.next=7,this.setCanvas(this.seriesStack);case 7:i.close(),e.next=12;break;case 10:n=this.visitTaskList.findIndex((function(e){return e.IsCurrentTask})),this.getFirstSeries(this.visitTaskList[n]).then(function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return h.seriesStack=[t],h.currentDicomCanvasIndex=0,e.next=4,h.setCanvas(h.seriesStack);case 4:i.close();case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 12:e.next=59;break;case 14:if("A|A"!==t.name){e.next=27;break}if(!this.activeSeries){e.next=23;break}return this.seriesStack=[this.activeSeries,this.activeSeries],this.currentDicomCanvasIndex=0,e.next=20,this.setCanvas(this.seriesStack);case 20:i.close(),e.next=25;break;case 23:a=this.visitTaskList.findIndex((function(e){return e.IsCurrentTask})),this.getFirstSeries(this.visitTaskList[a]).then(function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return h.seriesStack=[t,t],h.currentDicomCanvasIndex=0,e.next=4,h.setCanvas(h.seriesStack);case 4:i.close();case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 25:e.next=59;break;case 27:if("A|B"!==t.name){e.next=48;break}if(!this.activeSeries){e.next=43;break}if(o=this.visitTaskList.findIndex((function(e){return e.VisitTaskId===h.activeSeries.visitTaskId})),s=this.visitTaskList[o].VisitTaskNum,!(s>0&&this.visitTaskList.length>1)){e.next=36;break}l=this.visitTaskList.findIndex((function(e){return e.IsBaseLineTask})),this.getFirstSeries(this.visitTaskList[10===this.CriterionType?s-1:l]).then(function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return h.seriesStack=[t,h.activeSeries],h.currentDicomCanvasIndex=1,e.next=4,h.setCanvas(h.seriesStack);case 4:i.close();case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),e.next=41;break;case 36:return this.seriesStack=[this.activeSeries,this.activeSeries],this.currentDicomCanvasIndex=1,e.next=40,this.setCanvas(this.seriesStack);case 40:i.close();case 41:e.next=46;break;case 43:c=this.visitTaskList.findIndex((function(e){return e.IsCurrentTask})),u=this.visitTaskList[c].VisitTaskNum,u>0?(d=this.visitTaskList.findIndex((function(e){return e.IsBaseLineTask})),this.getFirstSeries(this.visitTaskList[d]).then((function(e){h.getFirstSeries(h.visitTaskList[c]).then(function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return h.seriesStack=[e,n],h.currentDicomCanvasIndex=1,t.next=4,h.setCanvas(h.seriesStack);case 4:i.close();case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())}))):this.getFirstSeries(this.visitTaskList[c]).then(function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return h.seriesStack=[t,t],h.currentDicomCanvasIndex=1,e.next=4,h.setCanvas(h.seriesStack);case 4:i.close();case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 46:e.next=59;break;case 48:if("A|A|A|A"!==t.name){e.next=59;break}if(!this.activeSeries){e.next=57;break}return this.seriesStack=[this.activeSeries,this.activeSeries,this.activeSeries,this.activeSeries],this.currentDicomCanvasIndex=0,e.next=54,this.setCanvas(this.seriesStack);case 54:i.close(),e.next=59;break;case 57:f=this.visitTaskList.findIndex((function(e){return e.IsCurrentTask})),this.getFirstSeries(this.visitTaskList[f]).then(function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return h.seriesStack=[t,t,t,t],h.currentDicomCanvasIndex=0,e.next=4,h.setCanvas(h.seriesStack);case 4:i.close();case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 59:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),setCanvas:function(e){var t=this;return new Promise((function(i){for(var n=[],a=0;a<t.maxCanvas&&a<e.length;a++)t.canvasObj[a]=e[a],n.push(t.$refs["dicomCanvas".concat(a)][0].loadImageStack(e[a]));Promise.all(n).then((function(){i()})).catch((function(){i()}))}))},imageLocation:function(e){var t=this;console.log(e);var i=this.isScrollSync;this.isScrollSync&&(this.isScrollSync=!1);for(var n=[],a=0;a<this.maxCanvas;a++)if(this.$refs["dicomCanvas".concat(a)][0].stack&&this.$refs["dicomCanvas".concat(a)][0].stack.seriesId){var r=this.$refs["dicomCanvas".concat(a)][0].stack.visitTaskId,o=this.visitTaskList.findIndex((function(e){return e.VisitTaskId===r}));if(o>-1&&this.visitTaskList[o].measureDataInit){var s=this.visitTaskList[o].MeasureData.findIndex((function(t){return t.QuestionId===e.questionId&&t.RowIndex===e.rowIndex}));if(s>-1){var l=this.visitTaskList[o].StudyList,c=this.visitTaskList[o].MeasureData[s].StudyId,u=this.visitTaskList[o].MeasureData[s].SeriesId,d=this.visitTaskList[o].MeasureData[s].InstanceId,f=l.findIndex((function(e){return e.StudyId===c}));if(f>-1){var h=l[f].SeriesList.findIndex((function(e){return e.seriesId===u}));if(h>-1){var p=l[f].SeriesList[h],m=p.imageIds.findIndex((function(e){return!!~e.indexOf(d)}));m>-1&&(p.imageIdIndex=m,n.push(this.$refs["dicomCanvas".concat(a)][0].loadImageStack(p)))}}}}}Promise.all(n).then((function(){t.isScrollSync=i}))},getFirstSeries:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){var i,n,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t||t.studyListInit){e.next=5;break}return e.next=3,g["a"].dispatch("reading/getStudyInfo",{trialId:this.trialId,subjectVisitId:t.VisitId,visitTaskId:t.VisitTaskId,taskBlindName:t.TaskBlindName});case 3:return e.next=5,g["a"].dispatch("reading/getMeasuredData",t.VisitTaskId);case 5:if(i=this.visitTaskList.findIndex((function(e){return e.VisitTaskId===t.VisitTaskId})),n=this.visitTaskList[i].StudyList,a=n.findIndex((function(e){return e.SeriesList.length>0})),!(a>-1)){e.next=12;break}return e.abrupt("return",n[a].SeriesList[0]);case 12:return e.abrupt("return","");case 13:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),setCanvasStyle:function(){this.canvasW=(window.innerWidth-570)/this.layoutCol+"px",this.canvasH=(window.innerHeight-130)/this.layoutRow+"px"},changeLayout:function(e){var t=this,i=this.layouts.findIndex((function(t){return t.name===e})),n=this.layouts[i];this.layoutRow=n.row,this.layoutCol=n.col,this.setCanvasStyle(),this.maxCanvas=n.row*n.col,this.$nextTick((function(){var e=document.querySelectorAll(".cornerstone-element");Array.from(e).forEach((function(e){s["enable"](e),s["resize"](e)})),t.getSeriesShowInCanvas(n)}))},updateCanvas:function(e){for(var t=0;t<this.maxCanvas;t++){var i=this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].stack;i.studyId&&this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].removeToolState(e)}},setDicomCanvasRotate:function(e){var t=parseInt(e);1===t?this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].resetRotate():2===t?this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].setRotate(!0,!1,0,t):3===t?this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].setRotate(!1,!0,0,t):4===t?this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].setRotate(!1,!1,-90,t):5===t&&this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].setRotate(!1,!1,90,t)},activateDicomCanvas:function(e){if(e!==this.currentDicomCanvasIndex){var t=this.canvasObj[this.currentDicomCanvasIndex];this.activeSeries=t,this.activeTool&&(t.isCurrentTask&&t.readingTaskState<2?this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].setToolPassive(this.activeTool):this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].setToolEnabled(this.activeTool),this.activeTool=""),this.currentDicomCanvasIndex=e,this.currentDicomCanvas=this.$refs["dicomCanvas".concat(e)],this.currentDicomCanvas.tabIndex=0,this.rotateList[this.currentDicomCanvasIndex]||(this.rotateList[this.currentDicomCanvasIndex]="1"),this.colorList[this.currentDicomCanvasIndex]||(this.colorList[this.currentDicomCanvasIndex]=""),this.wwwcList[this.currentDicomCanvasIndex]||(this.wwwcList[this.currentDicomCanvasIndex]="1");var i=this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].stack;i.studyId&&p["a"].$emit("toggleVisitList",i)}},enter:function(e,t){var i=this.measuredTools.findIndex((function(e){return e.toolName===t}));if(-1!==i){var n=this.canvasObj[this.currentDicomCanvasIndex];if(n&&(!n.isCurrentTask||n.readingTaskState>=2))this.measuredTools[i].isDisabled=!0,e.target.style.cursor="not-allowed",this.activeTool&&(this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].setToolEnabled(t),this.activeTool="");else{var a=this.$refs["measurementList"].isCanActiveTool(t,!0);this.measuredTools[i].disabledReason=a.reason,a.isCanActiveTool?(this.measuredTools[i].isDisabled=!1,e.target.style.cursor="pointer"):(this.activeTool&&(this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].setToolPassive(t),this.activeTool=""),this.measuredTools[i].isDisabled=!0,e.target.style.cursor="not-allowed")}}},setToolActive:function(e,t,i,n){var a=this;if(console.log("setToolActive",e),t){var r=this.measuredTools.findIndex((function(t){return t.toolName===e}));if(-1===r&&this.measuredTools[r].isDisabled)return;var o=this.measuredTools.find((function(t){return t.toolName===e}));if(!o||o.isDisabled)return;var s=this.canvasObj[this.currentDicomCanvasIndex];if(s.isCurrentTask&&t&&s.readingTaskState<2)this.activeTool&&!n?(this.measuredTools.forEach((function(e){a.$refs["dicomCanvas".concat(a.currentDicomCanvasIndex)][0].setToolPassive(e.toolName)})),this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].setToolPassive(e),this.activeTool=""):(this.measuredTools.forEach((function(e){a.$refs["dicomCanvas".concat(a.currentDicomCanvasIndex)][0].setToolPassive(e.toolName)})),this.activeTool=e,this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].setToolActive(e));else{if(!this.activeTool)return;this.measuredTools.forEach((function(e){a.$refs["dicomCanvas".concat(a.currentDicomCanvasIndex)][0].setToolEnabled(e.toolName)})),this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].setToolEnabled(e),this.activeTool=""}}else this.activeTool===e?(this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].setToolEnabled(e),this.activeTool=""):(this.activeTool=e,this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].setToolActive(e))},setToolEnabled:function(){var e=this.canvasObj[this.currentDicomCanvasIndex];if(!e.isCurrentTask)return this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].setToolEnabled(this.activeTool),void(this.activeTool="");this.activeTool&&(this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].setToolEnabled(this.activeTool),this.activeTool="")},fitToType:function(e){"fitToWindow"!==this.activeTool&&"fitToImage"!==this.activeTool&&this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].setToolPassive(this.activeTool),"fitToWindow"===e?(this.fitType=0,this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].fitToWindow()):"fitToImage"===e&&(this.fitType=1,this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].fitToImage()),this.activeTool=e},setMeasureData:function(e){this.$refs["measurementList"].setMeasuredData(e),this.activeTool=""},modifyMeasureData:function(e){this.$refs["measurementList"].modifyMeasuredData(e),this.activeTool=""},setDicomCanvasWwwc:function(e){1===e.val?this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].resetWwwc():8===e.val?this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].toggleInvert():this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].setWwwc(e.ww,e.wc)},setImageIndexSync:function(){this.isScrollSync=!this.isScrollSync},scrollSync:function(e){for(var t=0;t<this.maxCanvas;t++)t!==e.canvasIndex&&this.$refs["dicomCanvas".concat(t)][0].scrollPage(e.direction)},previewCD:function(){this.$emit("previewCD")},previewNoneDicoms:function(){this.$emit("previewNoneDicoms")}}},b=v,y=(i("bfcf"),i("2877")),w=Object(y["a"])(b,n,a,!1,null,"128141bc",null);t["default"]=w.exports},e4b9:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"preview-wrapper"},[i("el-tabs",{attrs:{"tab-position":"right",type:"card"}},e._l(e.fileList,(function(t){return i("el-tab-pane",{key:t.Id,attrs:{label:t.FileName}},[-1!==t.Type.indexOf("jpg")||-1!==t.Type.indexOf("png")?i("iframe",{attrs:{frameborder:"0",src:t.FullFilePath,width:"100%",height:"100%"}}):-1!==t.Type.indexOf("pdf")?i("iframe",{attrs:{src:"/static/pdfjs/web/viewer.html?file="+t.FullFilePath,width:"100%",height:"100%",frameborder:"0"}}):~~t.Type.indexOf("MP4")?i("div",[e._v("\n "+e._s(e.$t("common:message:downloadFile"))+"\n "),i("el-link",{attrs:{type:"primary"},on:{click:function(i){return e.downLoadFile(t.FullFilePath)}}},[e._v(e._s(e.$t("common:button:download")))])],1):i("videoPlayer",{staticStyle:{width:"100%",height:"100%"},attrs:{"video-src":t.FullFilePath}})],1)})),1)],1)},a=[],r=(i("ac6a"),i("3e42")),o=i("c7b8"),s={name:"PreviewFiles",components:{videoPlayer:o["default"]},props:{noneDicomId:{type:String,required:!0},data:{type:Object,default:function(){return{}}}},data:function(){return{fileType:"",fileUrl:"",loading:!1,fileList:[]}},mounted:function(){this.getFileList()},methods:{handlePaste:function(e){return e.preventDefault(),!1},getFileList:function(){var e=this;this.loading=!0,Object(r["wc"])(this.noneDicomId).then((function(t){e.fileList=t.Result,e.fileList.forEach((function(e){var t=e.FileName;e.Type=t.substring(t.lastIndexOf(".")+1).toLocaleLowerCase()})),e.data.VideoName&&e.fileList.push({FileName:e.data.VideoName,FullFilePath:e.data.VideoUrl,Type:"MP4"}),e.loading=!1,setTimeout((function(){document.getElementById("embed").contentDocument.oncontextmenu=function(){return!1}}),200)})).catch((function(){e.loading=!1}))},downLoadFile:function(e){e&&window.open(e,"_blank")}}},l=s,c=(i("a8ed"),i("2877")),u=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},e4c2:function(e,t,i){},e4d1:function(e,t,i){i("6932"),i("3a56"),i("7dcf"),i("3790"),i("2325"),i("2c17"),i("9e87")},e51b:function(e,t,i){"use strict";i("850c")},e540:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"verificationForm",attrs:{model:e.form,size:"small",rules:e.rules,"label-width":"150px",inline:!0}},[i("el-divider",{attrs:{"content-position":"left"}},[e._v(e._s(e.$t("trials:readingPeriod:verify:title:fileList")))]),e._v(" "),i("div",{staticStyle:{"text-align":"right"}},[i("el-button",{staticStyle:{"margin-bottom":"10px"},attrs:{type:"primary",icon:"el-icon-view",size:"mini"},on:{click:e.handlePreview}},[e._v("\n "+e._s(e.$t("trials:readingPeriod:verify:title:preview"))+"\n ")])],1),e._v(" "),i("el-table",{ref:"filesTable",staticClass:"dicomFiles-table",staticStyle:{width:"100%"},attrs:{data:e.fileList,height:"200",border:""}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"FileName",label:e.$t("trials:uploadClinicalData:table:fileName"),"min-width":"190","show-overflow-tooltip":""}})],1),e._v(" "),i("el-divider",{attrs:{"content-position":"left"}},[e._v(e._s(e.$t("trials:readingPeriod:verify:title:result")))]),e._v(" "),i("div",[i("el-form-item",{attrs:{label:e.$t("trials:readingPeriod:verify:title:isComplete"),prop:"IsComplete"}},[i("el-radio-group",{model:{value:e.form.IsComplete,callback:function(t){e.$set(e.form,"IsComplete",t)},expression:"form.IsComplete"}},[i("el-radio",{attrs:{label:!0}},[e._v(e._s(e.$fd("YesOrNo",!0)))]),e._v(" "),3!==e.data.ClinicalDataLevel?i("el-radio",{attrs:{label:!1}},[e._v("N/A")]):e._e()],1)],1)],1),e._v(" "),i("div",[i("el-form-item",{attrs:{label:e.$t("trials:readingPeriod:verify:title:isBlind"),prop:"IsBlind"}},[i("el-radio-group",{model:{value:e.form.IsBlind,callback:function(t){e.$set(e.form,"IsBlind",t)},expression:"form.IsBlind"}},[i("el-radio",{attrs:{label:!0}},[e._v(e._s(e.$fd("YesOrNo",!0)))]),e._v(" "),3!==e.data.ClinicalDataLevel?i("el-radio",{attrs:{label:!1}},[e._v("N/A")]):e._e()],1)],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.close}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.save}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)],1)},a=[],r=(i("20d6"),i("ac6a"),i("456d"),i("96cf"),i("3b8d")),o=i("3e42"),s=i("b775");function l(e){return Object(s["a"])({url:"/ReadingClinicalData/PMClinicalDataConfirm",method:"put",data:e})}var c={name:"AddOrUpdateClinicalData",props:{data:{type:Object,default:function(){return{}}}},data:function(){return{form:{Id:null,FileList:[],IsBlind:null,IsComplete:null},rules:{IsBlind:[{required:!0,message:this.$t("common:ruleMessage:select")}],IsComplete:[{required:!0,message:this.$t("common:ruleMessage:select")}]},loading:!1,btnLoading:!1,clinicalDatas:[],fileList:[]}},mounted:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getClinicalDatas();case 2:if(Object.keys(this.data).length>0){for(t in this.form)this.form[t]=this.data[t];console.log(this.form),this.handleClinicalDataSetChange(this.form.ClinicalDataTrialSetId),this.fileList=this.form.FileList.concat()}case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:{PMClinicalDataConfirm:function(){var e=this;this.loading=!0,this.btnLoading=!0,l(this.form).then((function(t){e.loading=!1,e.btnLoading=!1,e.$emit("getList"),e.$emit("sign")})).catch((function(){e.loading=!1,e.btnLoading=!1}))},handleClinicalDataSetChange:function(e){var t=this.clinicalDatas.findIndex((function(t){return t.Id===e}));t>-1&&(this.currentTpl.id=this.clinicalDatas[t].Id,this.currentTpl.isExist=!!this.clinicalDatas[t].FileName)},getClinicalDatas:function(){var e=this;return new Promise((function(t,i){e.loading=!0;var n={trialId:e.data.TrialId,IsVisit:e.data.IsVisit,ReadingId:e.data.ReadingId,SubjectId:e.data.SubjectId,ReadingClinicalDataId:e.data.Id?e.data.Id:"",IsBaseLine:e.data.IsBaseLine};Object(o["xd"])(n).then((function(i){e.clinicalDatas=i.Result,e.loading=!1,t()})).catch((function(){e.loading=!1,i()}))}))},save:function(){var e=this;this.$refs.verificationForm.validate((function(t){t&&e.PMClinicalDataConfirm()}))},handlePreview:function(){this.$emit("handlePreview",this.data.Id)},close:function(){this.$emit("close")}}},u=c,d=i("2877"),f=Object(d["a"])(u,n,a,!1,null,"55cf189a",null);t["default"]=f.exports},e56e:function(e,t,i){"use strict";i.d(t,"eb",(function(){return r})),i.d(t,"gb",(function(){return o})),i.d(t,"h",(function(){return s})),i.d(t,"C",(function(){return l})),i.d(t,"ib",(function(){return c})),i.d(t,"j",(function(){return u})),i.d(t,"E",(function(){return d})),i.d(t,"vb",(function(){return f})),i.d(t,"r",(function(){return h})),i.d(t,"M",(function(){return p})),i.d(t,"X",(function(){return m})),i.d(t,"g",(function(){return g})),i.d(t,"z",(function(){return v})),i.d(t,"wb",(function(){return b})),i.d(t,"s",(function(){return y})),i.d(t,"N",(function(){return w})),i.d(t,"pb",(function(){return _})),i.d(t,"l",(function(){return I})),i.d(t,"G",(function(){return x})),i.d(t,"ob",(function(){return S})),i.d(t,"y",(function(){return T})),i.d(t,"lb",(function(){return C})),i.d(t,"m",(function(){return k})),i.d(t,"H",(function(){return R})),i.d(t,"mb",(function(){return D})),i.d(t,"n",(function(){return L})),i.d(t,"I",(function(){return O})),i.d(t,"Bb",(function(){return $})),i.d(t,"v",(function(){return N})),i.d(t,"R",(function(){return A})),i.d(t,"Qb",(function(){return P})),i.d(t,"ab",(function(){return E})),i.d(t,"e",(function(){return M})),i.d(t,"Pb",(function(){return F})),i.d(t,"a",(function(){return j})),i.d(t,"b",(function(){return V})),i.d(t,"hb",(function(){return q})),i.d(t,"D",(function(){return z})),i.d(t,"i",(function(){return B})),i.d(t,"V",(function(){return U})),i.d(t,"zb",(function(){return Q})),i.d(t,"P",(function(){return H})),i.d(t,"u",(function(){return G})),i.d(t,"Y",(function(){return W})),i.d(t,"yb",(function(){return Y})),i.d(t,"xb",(function(){return K})),i.d(t,"t",(function(){return Z})),i.d(t,"O",(function(){return X})),i.d(t,"W",(function(){return J})),i.d(t,"c",(function(){return ee})),i.d(t,"fb",(function(){return te})),i.d(t,"Z",(function(){return ie})),i.d(t,"d",(function(){return ne})),i.d(t,"A",(function(){return ae})),i.d(t,"tb",(function(){return re})),i.d(t,"ub",(function(){return oe})),i.d(t,"q",(function(){return se})),i.d(t,"L",(function(){return le})),i.d(t,"Ab",(function(){return ce})),i.d(t,"Db",(function(){return ue})),i.d(t,"Nb",(function(){return de})),i.d(t,"sb",(function(){return fe})),i.d(t,"J",(function(){return he})),i.d(t,"o",(function(){return pe})),i.d(t,"Fb",(function(){return me})),i.d(t,"nb",(function(){return ge})),i.d(t,"qb",(function(){return ve})),i.d(t,"rb",(function(){return be})),i.d(t,"jb",(function(){return ye})),i.d(t,"kb",(function(){return we})),i.d(t,"k",(function(){return _e})),i.d(t,"F",(function(){return Ie})),i.d(t,"db",(function(){return xe})),i.d(t,"f",(function(){return Se})),i.d(t,"B",(function(){return Te})),i.d(t,"Hb",(function(){return Ce})),i.d(t,"w",(function(){return ke})),i.d(t,"S",(function(){return Re})),i.d(t,"p",(function(){return De})),i.d(t,"K",(function(){return Le})),i.d(t,"U",(function(){return Oe})),i.d(t,"T",(function(){return $e})),i.d(t,"Kb",(function(){return Ne})),i.d(t,"Jb",(function(){return Ae})),i.d(t,"Eb",(function(){return Pe})),i.d(t,"Mb",(function(){return Ee})),i.d(t,"cb",(function(){return Me})),i.d(t,"Gb",(function(){return Fe})),i.d(t,"Ib",(function(){return je})),i.d(t,"Lb",(function(){return Ve})),i.d(t,"Cb",(function(){return qe})),i.d(t,"bb",(function(){return ze})),i.d(t,"x",(function(){return Be})),i.d(t,"Q",(function(){return Ue})),i.d(t,"Ob",(function(){return Qe}));var n=i("b775"),a=i("c5af");function r(){return Object(n["a"])({url:"/dictionary/getDicTree",method:"get"})}function o(e){return Object(n["a"])({url:"/dictionary/getDictionarySelectList",method:"post",data:e})}function s(e){return Object(n["a"])({url:"/dictionary/addOrUpdateDictionary",method:"post",data:e})}function l(e){return Object(n["a"])({url:"/dictionary/deleteDictionary/".concat(e),method:"delete"})}function c(e){return Object(n["a"])({url:"/hospital/getHospitalPageList",method:"post",data:e})}function u(e){return Object(n["a"])({url:"/hospital/addOrUpdateHospital",method:"post",data:e})}function d(e){return Object(n["a"])({url:"/hospital/deleteHospital/".concat(e),method:"delete"})}function f(e){return Object(n["a"])({url:"/site/getSiteList",method:"post",data:e})}function h(e){return Object(n["a"])({url:"/site/addOrUpdateSite",method:"post",data:e})}function p(e){return Object(n["a"])({url:"/site/deleteSite/".concat(e),method:"delete"})}function m(e){return Object(n["a"])({url:"/cro/getCROList",method:"post",data:e})}function g(e){return Object(n["a"])({url:"/cro/addOrUpdateCro",method:"post",data:e})}function v(e){return Object(n["a"])({url:"/cro/deleteCro/".concat(e),method:"delete"})}function b(e){return Object(n["a"])({url:"/sponsor/getSponsorList",method:"post",data:e})}function y(e){return Object(n["a"])({url:"/sponsor/addOrUpdateSponsor",method:"post",data:e})}function w(e){return Object(n["a"])({url:"/sponsor/deleteSponsor/".concat(e),method:"delete"})}function _(e){return Object(n["a"])({url:"/QATemplate/GetQaTemplateList",method:"post",data:e})}function I(e){return Object(n["a"])({url:"/QATemplate/AddOrUpdateQATemplate",method:"post",data:e})}function x(e){return Object(n["a"])({url:"/QATemplate/DeleteQATemplate/".concat(e),method:"delete"})}function S(e,t){return Object(n["a"])({url:"/QATemplate/GetQATemplateConfigedList/".concat(e,"/").concat(t),method:"get"})}function T(e){return Object(n["a"])({url:"/QATemplate/ConfigQATemplateItem",method:"post",data:e})}function C(e){return Object(n["a"])({url:"/QATemplate/GetQATemplateItemList",method:"post",data:e})}function k(e){return Object(n["a"])({url:"/QATemplate/AddOrUpdateQATemplateItem",method:"post",data:e})}function R(e){return Object(n["a"])({url:"/QATemplate/DeleteQATemplateItem/".concat(e),method:"delete"})}function D(e){return Object(n["a"])({url:"/QCQuestionConfigure/getQCQuestionConfigureList",method:"post",data:e})}function L(e){return Object(n["a"])({url:"/QCQuestionConfigure/addOrUpdateQCQuestionConfigure",method:"post",data:e})}function O(e){return Object(n["a"])({url:"/QCQuestionConfigure/deleteQCQuestionConfigure/".concat(e),method:"delete"})}function $(e){return Object(n["a"])({url:"/SystemDocument/getSystemDocumentList",method:"post",data:e})}function N(e){return Object(n["a"])({url:"/SystemDocument/addOrUpdateSystemDocument",method:"post",data:e})}function A(e){return Object(n["a"])({url:"/SystemDocument/deleteSystemDocument/".concat(e),method:"delete"})}function P(e){var t=new FormData;return t.append("file",e),Object(n["a"])({url:"/TrialDocument/UploadSystemDoc",method:"post",data:t})}function E(e){return Object(n["a"])({url:"/CommonDocument/getCommonDocumentList",method:"post",data:e})}function M(e){return Object(n["a"])({url:"/CommonDocument/addOrUpdateCommonDocument",method:"post",data:e})}function F(e){var t=new FormData;return t.append("file",e),Object(n["a"])({url:"/CommonDocument/UploadCommonDoc",method:"post",data:t})}function j(e){return Object(a["a"])({url:"/CommonDocument/DownloadCommonDoc?code=".concat(e),method:"get",responseType:"blob"})}function V(e){return Object(a["a"])({url:"/CommonDocument/DownloadSystemClinicalFile?clinicalDataSystemSetId=".concat(e),method:"get",responseType:"blob"})}function q(e){return Object(n["a"])({url:"/EmailNoticeConfig/getEmailNoticeConfigList",method:"post",data:e})}function z(e){return Object(n["a"])({url:"/EmailNoticeConfig/deleteEmailNoticeConfig/".concat(e),method:"delete"})}function B(e){return Object(n["a"])({url:"/EmailNoticeConfig/addOrUpdateEmailNoticeConfig",method:"post",data:e})}function U(e){return Object(n["a"])({url:"/SystemBasicData/getBasicDataSelect",method:"post",data:e})}function Q(e){return Object(n["a"])({url:"/SystemBasicData/getSystemBasicDataList",method:"post",data:e})}function H(e){return Object(n["a"])({url:"/SystemBasicData/deleteSystemBasicData/".concat(e),method:"delete"})}function G(e){return Object(n["a"])({url:"/SystemBasicData/addOrUpdateSystemBasicData",method:"post",data:e})}function W(e){return Object(n["a"])({url:"/SystemBasicData/getChildList/".concat(e),method:"get"})}function Y(e){return Object(n["a"])({url:"/SystemBasicData/getSystemBasicData/".concat(e),method:"get"})}function K(e){return Object(n["a"])({url:"/SystemAnonymization/getSystemAnonymizationList",method:"post",data:e})}function Z(e){return Object(n["a"])({url:"/SystemAnonymization/addOrUpdateSystemAnonymization",method:"post",data:e})}function X(e){return Object(n["a"])({url:"/SystemAnonymization/deleteSystemAnonymization/".concat(e),method:"delete"})}function J(e){return Object(n["a"])({url:"/Dictionary/getBasicDicList",method:"post",data:e})}function ee(e){return Object(n["a"])({url:"/Dictionary/addOrUpdateBasicDic",method:"post",data:e})}function te(e){return Object(n["a"])({url:"/Dictionary/getChildList/".concat(e),method:"get"})}function ie(e){return Object(n["a"])({url:"/ClinicalDataSet/getSystemClinicalDataSystemSetList",method:"post",data:e})}function ne(e){return Object(n["a"])({url:"/ClinicalDataSet/addOrUpdateClinicalDataSystemSet",method:"post",data:e})}function ae(e){return Object(n["a"])({url:"/ClinicalDataSet/deleteClinicalSystemSetData/".concat(e),method:"delete"})}function re(e){return Object(n["a"])({url:"/ReadingQuestion/getReadingQuestionCriterionSystemList",method:"post",data:e})}function oe(e){return Object(n["a"])({url:"/ReadingQuestion/getReadingQuestionSystemList",method:"post",data:e})}function se(e){return Object(n["a"])({url:"/ReadingQuestion/addOrUpdateReadingQuestionSystem",method:"post",data:e})}function le(e){return Object(n["a"])({url:"/ReadingQuestion/deleteReadingQuestionSystem/".concat(e),method:"delete"})}function ce(e){return Object(n["a"])({url:"/ReadingQuestion/getSystemCriterionOtherQuestion",method:"post",data:e})}function ue(e){return Object(n["a"])({url:"/ReadingQuestion/getSystemGroupNameList",method:"post",data:e})}function de(e){return Object(n["a"])({url:"/ReadingQuestion/setSystemReadingQuestionCriterionIsCompleteConfig",method:"post",data:e})}function fe(e){return Object(n["a"])({url:"/ReadingMedicineQuestion/getReadingMedicineSystemQuestionList",method:"post",data:e})}function he(e){return Object(n["a"])({url:"/ReadingMedicineQuestion/deleteReadingMedicineSystemQuestion/".concat(e),method:"delete"})}function pe(e){return Object(n["a"])({url:"/ReadingMedicineQuestion/addOrUpdateReadingMedicineSystemQuestion",method:"post",data:e})}function me(e){return Object(n["a"])({url:"/ReadingImageTask/getSystemReadingQuestion",method:"post",data:e})}function ge(e){return Object(n["a"])({url:"/QCQuestionConfigure/GetQCQuestionSelectList",method:"post",data:e})}function ve(e){return Object(n["a"])({url:"/QCQuestionConfigure/getQuestionView",method:"post",data:e})}function be(e){return Object(n["a"])({url:"/ReadingMedicineQuestion/getReadingMedicineSystemOtherQuestion",method:"post",data:e})}function ye(e){return Object(n["a"])({url:"/OrganInfo/getOrganInfoList",method:"post",data:e})}function we(e){return Object(n["a"])({url:"/OrganInfo/getOrganPageList",method:"post",data:e})}function _e(e){return Object(n["a"])({url:"/OrganInfo/addOrUpdateOrganInfo",method:"post",data:e})}function Ie(e){return Object(n["a"])({url:"/OrganInfo/deleteOrganInfo/".concat(e),method:"delete"})}function xe(e){return Object(n["a"])({url:"/OrganInfo/getCriterionNidusList",method:"post",data:e})}function Se(e){return Object(n["a"])({url:"/OrganInfo/addOrUpdateCriterionNidus",method:"post",data:e})}function Te(e){return Object(n["a"])({url:"/OrganInfo/deleteCriterionNidus/".concat(e),method:"delete"})}function Ce(e){return Object(n["a"])({url:"/ReadingQuestion/getTumorAssessmentPageList",method:"post",data:e})}function ke(e){return Object(n["a"])({url:"/ReadingQuestion/addOrUpdateTumorAssessment",method:"post",data:e})}function Re(e){return Object(n["a"])({url:"/ReadingQuestion/deleteTumorAssessment/".concat(e),method:"delete"})}function De(e){return Object(n["a"])({url:"/ReadingQuestion/addOrUpdateReadingQuestionCriterionSystem",method:"post",data:e})}function Le(e){return Object(n["a"])({url:"/ReadingQuestion/deleteReadingQuestionCriterionSystem/".concat(e),method:"delete"})}function Oe(e){return Object(n["a"])({url:"/Dictionary/getBasicConfigSelect?searchKey=".concat(e),method:"get"})}function $e(e){return Object(n["a"])({url:"/ReadingQuestion/getAssessType",method:"post",data:e})}function Ne(e){return Object(n["a"])({url:"/ReadingQuestion/setDictionaryFollowVisitUse",method:"post",data:e})}function Ae(e){return Object(n["a"])({url:"/ReadingQuestion/setDictionaryBaseLineUse",method:"post",data:e})}function Pe(e){return Object(n["a"])({url:"/ReadingQuestion/getSystemOncologyInfo",method:"post",data:e})}function Ee(e){return Object(n["a"])({url:"/ReadingQuestion/setSystemOncologyInfo",method:"post",data:e})}function Me(e){return Object(n["a"])({url:"/Dictionary/getCriterionDictionaryList?SystemCriterionId=".concat(e.SystemCriterionId),method:"get"})}function Fe(e){return Object(n["a"])({url:"/Dictionary/getTrialCriterionDictionaryList?TrialCriterionId=".concat(e.TrialCriterionId),method:"get"})}function je(e){return Object(n["a"])({url:"/ReadingQuestion/setCriterionDictionary",method:"post",data:e})}function Ve(e){return Object(n["a"])({url:"/ReadingQuestion/setSystemGlobalInfo",method:"post",data:e})}function qe(e){return Object(n["a"])({url:"/ReadingQuestion/getSystemGlobalInfo",method:"post",data:e})}function ze(e){return Object(n["a"])({url:"/Dictionary/getCriterionDictionary",method:"post",data:e})}function Be(e){return Object(n["a"])({url:"/ReadingQuestion/addSystemCriterionDictionaryCode",method:"post",data:e})}function Ue(e){return Object(n["a"])({url:"/ReadingQuestion/deleteSystemCriterionDictionary",method:"post",data:e})}function Qe(e){return Object(n["a"])({url:"/OrganInfo/synchronizeSystemOrgan",method:"post",data:e})}},e5a3:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"EditRPStatus",attrs:{model:e.form,size:"small","label-width":"100px"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:e.$t("trials:rpManage:table:readingStatus"),prop:"IsTakeEffect"}},[i("el-radio-group",{staticStyle:{width:"100%"},model:{value:e.form.IsTakeEffect,callback:function(t){e.$set(e.form,"IsTakeEffect",t)},expression:"form.IsTakeEffect"}},e._l(e.$d.TakeEffect,(function(t){return i("el-radio",{key:t.value,attrs:{label:t.value,disabled:0===t.value}},[e._v(e._s(t.label))])})),1)],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.close}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])},a=[],r=(i("ac6a"),i("456d"),i("96cf"),i("3b8d")),o=i("3e42"),s={name:"EditRPStatus",props:{trialReadingCriterionId:{type:String,default:""},data:{type:Object,default:function(){return{}}}},data:function(){return{loading:!1,btnLoading:!1,visitPlanOptions:[],form:{Id:"",IsTakeEffect:null}}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(Object.keys(this.data).length>0)for(t in this.form)this.data.hasOwnProperty(t)&&(this.form[t]=this.data[t]);this.form.TrialId=this.trialId;case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),handleSave:function(){var e=this;this.$refs.EditRPStatus.validate((function(t){t&&(e.btnLoading=!0,e.form.TrialReadingCriterionId=e.trialReadingCriterionId,Object(o["Qe"])(e.form).then((function(t){e.btnLoading=!1,e.$emit("getList"),e.$emit("close"),e.$message.success(e.$t("common:message:savedSuccessfully"))})).catch((function(){e.btnLoading=!1})))}))},close:function(){this.$emit("close")}}},l=s,c=i("2877"),u=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},e5bc:function(e,t,i){"use strict";i("e042")},e5cc:function(e,t,i){"use strict";i("23df")},e61d:function(e,t,i){},e61e:function(e,t,i){},e64a:function(e,t,i){},e694:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"payment-settings"},[i("el-tabs",{on:{"tab-click":e.clickTab},model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},[i("el-tab-pane",{staticStyle:{"overflow-y":"auto"},attrs:{label:"Rates",name:"Rates"}},[e.load.Rates?i("rank-based-rates"):e._e(),e._v(" "),e.load.Rates?i("volume-reward"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Reviewers Data",name:"ReviewersData"}},[e.load.ReviewersData?i("reviewers-data"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Trials Data",name:"TrialsData"}},[e.load.TrialsData?i("trials-data"):e._e()],1),e._v(" "),i("el-tab-pane",{attrs:{label:"Exchange Rate",name:"ExchangeRate"}},[e.load.ExchangeRate?i("exchange-rate"):e._e()],1)],1)],1)},a=[],r=(i("7f7f"),i("f9dc")),o=i("4f6d"),s=i("eef3"),l=i("4ef0"),c=i("9a4e"),u={name:"Payment",components:{RankBasedRates:r["default"],VolumeReward:o["default"],ReviewersData:s["default"],TrialsData:l["default"],ExchangeRate:c["default"]},data:function(){return{activeTab:"Rates",load:{Rates:!0,ReviewersData:!1,TrialsData:!1,ExchangeRate:!1}}},computed:{},created:function(){this.$route.query.activeIndex&&(this.activeTab=this.$route.query.activeIndex)},methods:{clickTab:function(e,t){!1===this.load[e.name]&&(this.load={Rates:!1,ReviewersData:!1,TrialsData:!1,ExchangeRate:!1},this.load[e.name]=!0)}}},d=u,f=(i("e5cc"),i("2877")),h=Object(f["a"])(d,n,a,!1,null,null,null);t["default"]=h.exports},e6c9:function(e,t,i){"use strict";i("5c34")},e6cd:function(e,t,i){var n=i("6d8b");function a(){var e,t=[],i={};return{add:function(e,a,r,o,s){return n.isString(o)&&(s=o,o=0),!i[e.id]&&(i[e.id]=1,t.push({el:e,target:a,time:r,delay:o,easing:s}),!0)},done:function(t){return e=t,this},start:function(){for(var n=t.length,a=0,r=t.length;a<r;a++){var o=t[a];o.el.animateTo(o.target,o.time,o.delay,o.easing,s)}return this;function s(){n--,n||(t.length=0,i={},e&&e())}}}}t.createWrap=a},e6d0:function(e,t,i){"use strict";i("d674")},e6fa:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"trial-analysis"},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],ref:"listContainer",staticClass:"list-container"},[i("el-table",{attrs:{height:"99%",border:"",size:"small",data:e.list,"show-summary":"","summary-method":e.getSummaries,"span-method":e.objectSpanMethod}},[i("el-table-column",{attrs:{type:"index",width:"50"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Type",label:"Type","min-width":"130","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialCode",label:"Trial ID","min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Expedited","min-width":"110",label:"Expedited","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(0==t.row.Expedited?"No":1==t.row.Expedited?"24H":"48H"))]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Indication",label:"Indication","min-width":"120","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Cro",label:"CRO","min-width":"120","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"PaymentUSD",label:"Payment($)","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.PaymentUSD)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"RevenusUSD",label:"Revenus($)","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.PaymentUSD>0&&0==t.row.RevenusUSD&&t.row.TrialCode?i("div",[i("span",{staticStyle:{color:"red"}},[e._v("Missing Trial unit price")])]):i("div",[e._v(e._s(e._f("rounding")(t.row.RevenusUSD)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"GrossProfit",label:"Gross profit($)","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.GrossProfit)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"GrossProfitMargin",label:"Gross Profit Margin","min-width":"140","show-overflow-tooltip":"",formatter:e.grossProfitMarginFormatter}})],1)],1)])},a=[],r=(i("ac6a"),i("c5f6"),i("6b95")),o=i("0340"),s=i("3339"),l={filters:{rounding:function(e){return e?Number(e).toFixed(2):e}},props:{param:{type:Object,default:function(){return{}}}},data:function(){return{list:[],listQuery:{},listLoading:!1,spanArr:[],pos:0}},watch:{param:{handler:function(e,t){this.listQuery.CroId=e.CroId,this.listQuery.TrialCode=e.TrialCode,this.listQuery.BeginDate=e.BeginDate,this.listQuery.EndDate=e.EndDate,this.listQuery.AttendedReviewerType=e.AttendedReviewerType?1*e.AttendedReviewerType:""},deep:!0}},mounted:function(){this.listQuery.CroId=this.param.CroId,this.listQuery.TrialCode=this.param.TrialCode,this.listQuery.BeginDate=this.param.BeginDate,this.listQuery.EndDate=this.param.EndDate,this.listQuery.AttendedReviewerType=this.param.AttendedReviewerType?1*this.param.AttendedReviewerType:"",this.getList()},methods:{getList:function(){var e=this;this.listLoading=!0,Object(r["D"])(this.listQuery).then((function(t){e.listLoading=!1,e.list=t.Result,e.total=t.Result.TotalCount,e.getSpanArr(e.list)})).catch((function(){e.listLoading=!1}))},resetList:function(){this.getList()},getSummaries:function(e){var t=e.columns,i=e.data,n=[];return t.forEach((function(e,t){if(1!==t){if("PaymentUSD"===e.property||"RevenusUSD"===e.property||"GrossProfit"===e.property||"GrossProfitMargin"===e.property){var a=i.map((function(t){return Number(t[e.property])}));a.every((function(e){return isNaN(e)}))?n[t]="":(n[t]=a.reduce((function(e,t){var i=Number(t);return isNaN(i)?e:s["a"].add(e,t)}),0),"GrossProfitMargin"===e.property?n[t]=0!==Number(n[8])?(Number(n[8])/Number(n[7])*100).toFixed(2)+"%":"0.00%":"PaymentUSD"!==e.property&&"RevenusUSD"!==e.property&&"GrossProfit"!==e.property||(n[t]=Number(n[t])))}}else n[t]="Total (Current Page)"})),n},grossProfitMarginFormatter:function(e){return Number(100*e.GrossProfitMargin).toFixed(2)+"%"},objectSpanMethod:function(e){e.row,e.column;var t=e.rowIndex,i=e.columnIndex;if(1===i){var n=this.spanArr[t],a=n>0?1:0;return{rowspan:n,colspan:a}}},getSpanArr:function(e){for(var t=0;t<e.length;t++)0===t?(this.spanArr.push(1),this.pos=0):e[t].Type===e[t-1].Type?(this.spanArr[this.pos]+=1,this.spanArr.push(0)):(this.spanArr.push(1),this.pos=t)},export:function(){var e="".concat(this.listQuery.BeginDate,"--").concat(this.listQuery.EndDate),t=[{key:"Index",width:5},{key:"Type",width:15},{key:"TrialCode",width:15},{key:"Expedited",width:15},{key:"Indication",width:15},{key:"Cro",width:15},{key:"PaymentUSD",width:15},{key:"RevenusUSD",width:15},{key:"GrossProfit",width:20},{key:"GrossProfitMargin",width:25}],i="";i=this.listQuery.CroId?"Type:Trial CRO:".concat(this.listQuery.CroId," Beginning Month:").concat(this.listQuery.BeginDate," End Month:").concat(this.listQuery.EndDate):"Type:Trial Beginning Month:".concat(this.listQuery.BeginDate," End Month:").concat(this.listQuery.EndDate);var n=["","Type","Trial ID","Expedited","Indication","Cro","Payment($)","Revenus($)","Gross profit($)","Gross Profit Margin"],a=[{colIndex:7,format:"#,##0.00"},{colIndex:8,format:"#,##0.00"},{colIndex:9,format:"#,##0.00"},{colIndex:10,format:"0.00%"}],r=0,s=0,l=0,c=this.list,u=0,d=1;c.forEach((function(e){e.Index=d++,e.Expedited=0===e.Expedited?"No":0===e.Expedited?"24-Hour":"48-Hour",r+=e.PaymentUSD,s+=e.RevenusUSD,l+=e.GrossProfit,"Trial"===e.Type&&u++}));var f="";u>1&&(f="B5:B".concat(u+4));var h=["","Total","","","","",r,s,l,l/s];Object(o["a"])(e,t,"Analysis",i,n,c,h,a,f)}}},c=l,u=(i("340c"),i("2877")),d=Object(u["a"])(c,n,a,!1,null,"74526cdc",null);t["default"]=d.exports},e781:function(e,t,i){},e7a0:function(e,t,i){},e7aa:function(e,t,i){var n=i("2306"),a=i("c775"),r=a.getDefaultLabel;function o(e,t,i,a,o,l,c){var u=i.getModel("label"),d=i.getModel("emphasis.label");n.setLabelStyle(e,t,u,d,{labelFetcher:o,labelDataIndex:l,defaultText:r(o.getData(),l),isRectText:!0,autoColor:a}),s(e),s(t)}function s(e,t){"outside"===e.textPosition&&(e.textPosition=t)}t.setLabel=o},e7ca:function(e,t,i){"use strict";i("a915")},e7d2:function(e,t,i){var n=i("4a3f");function a(e,t,i,a,r,o,s,l,c,u,d){if(0===c)return!1;var f=c;if(d>t+f&&d>a+f&&d>o+f&&d>l+f||d<t-f&&d<a-f&&d<o-f&&d<l-f||u>e+f&&u>i+f&&u>r+f&&u>s+f||u<e-f&&u<i-f&&u<r-f&&u<s-f)return!1;var h=n.cubicProjectPoint(e,t,i,a,r,o,s,l,u,d,null);return h<=f/2}t.containStroke=a},e7e1:function(e,t,i){"use strict";i("ef49")},e80e:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{ref:"revenusForm",attrs:{size:"small","label-width":"170px",rules:e.rules,model:e.form}},[i("el-form-item",{attrs:{label:"Trial ID: ",prop:"TrialCOde"}},[i("el-input",{attrs:{disabled:""},model:{value:e.form.TrialCode,callback:function(t){e.$set(e.form,"TrialCode",t)},expression:"form.TrialCode"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Indication: ",prop:"Indication"}},[i("el-input",{attrs:{disabled:""},model:{value:e.form.Indication,callback:function(t){e.$set(e.form,"Indication",t)},expression:"form.Indication"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Dispaly All: "}},[i("el-switch",{model:{value:e.isDispaly,callback:function(t){e.isDispaly=t},expression:"isDispaly"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Training ($): ",prop:"Training"}},[i("el-input",{attrs:{type:"number",oninput:"this.value=this.value.replace(/[^\\d.]/g,'');"},model:{value:e.form.Training,callback:function(t){e.$set(e.form,"Training",t)},expression:"form.Training"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Refresher Training ($): ",prop:"RefresherTraining"}},[i("el-input",{attrs:{type:"number",oninput:"this.value=this.value.replace(/[^\\d.]/g,'');"},model:{value:e.form.RefresherTraining,callback:function(t){e.$set(e.form,"RefresherTraining",t)},expression:"form.RefresherTraining"}})],1),e._v(" "),!e.isDispaly&&0==e.form.Expedited||e.isDispaly?i("el-form-item",{attrs:{label:"Timepoint ($): ",prop:"Timepoint"}},[i("el-input",{attrs:{type:"number",oninput:"this.value=this.value.replace(/[^\\d.]/g,'');"},model:{value:e.form.Timepoint,callback:function(t){e.$set(e.form,"Timepoint",t)},expression:"form.Timepoint"}})],1):e._e(),e._v(" "),!e.isDispaly&&2==e.form.Expedited||e.isDispaly?i("el-form-item",{attrs:{label:"Timepoint 48H ($): ",prop:"TimepointIn48H"}},[i("el-input",{attrs:{type:"number",oninput:"this.value=this.value.replace(/[^\\d.]/g,'');"},model:{value:e.form.TimepointIn48H,callback:function(t){e.$set(e.form,"TimepointIn48H",t)},expression:"form.TimepointIn48H"}})],1):e._e(),e._v(" "),!e.isDispaly&&1==e.form.Expedited||e.isDispaly?i("el-form-item",{attrs:{label:"Timepoint 24H ($): ",prop:"TimepointIn24H"}},[i("el-input",{attrs:{type:"number",oninput:"this.value=this.value.replace(/[^\\d.]/g,'');"},model:{value:e.form.TimepointIn24H,callback:function(t){e.$set(e.form,"TimepointIn24H",t)},expression:"form.TimepointIn24H"}})],1):e._e(),e._v(" "),!e.isDispaly&&0==e.form.Expedited&&"Double review with adjudication"==e.form.ReviewMode||e.isDispaly&&"Double review with adjudication"==e.form.ReviewMode?i("el-form-item",{attrs:{label:"Adjudication ($): ",prop:"Adjudication"}},[i("el-input",{attrs:{type:"number",oninput:"this.value=this.value.replace(/[^\\d.]/g,'');"},model:{value:e.form.Adjudication,callback:function(t){e.$set(e.form,"Adjudication",t)},expression:"form.Adjudication"}})],1):e._e(),e._v(" "),!e.isDispaly&&2==e.form.Expedited&&"Double review with adjudication"==e.form.ReviewMode||e.isDispaly&&"Double review with adjudication"==e.form.ReviewMode?i("el-form-item",{attrs:{label:"Adjudication 48H ($): ",prop:"AdjudicationIn48H"}},[i("el-input",{attrs:{type:"number",oninput:"this.value=this.value.replace(/[^\\d.]/g,'');"},model:{value:e.form.AdjudicationIn48H,callback:function(t){e.$set(e.form,"AdjudicationIn48H",t)},expression:"form.AdjudicationIn48H"}})],1):e._e(),e._v(" "),!e.isDispaly&&1==e.form.Expedited&&"Double review with adjudication"==e.form.ReviewMode||e.isDispaly&&"Double review with adjudication"==e.form.ReviewMode?i("el-form-item",{attrs:{label:"Adjudication 24H ($): ",prop:"AdjudicationIn24H"}},[i("el-input",{attrs:{type:"number",oninput:"this.value=this.value.replace(/[^\\d.]/g,'');"},model:{value:e.form.AdjudicationIn24H,callback:function(t){e.$set(e.form,"AdjudicationIn24H",t)},expression:"form.AdjudicationIn24H"}})],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:"Global ($): ",prop:"Global"}},[i("el-input",{attrs:{type:"number",oninput:"this.value=this.value.replace(/[^\\d.]/g,'');"},model:{value:e.form.Global,callback:function(t){e.$set(e.form,"Global",t)},expression:"form.Global"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Downtime ($): ",prop:"Downtime"}},[i("el-input",{attrs:{type:"number",oninput:"this.value=this.value.replace(/[^\\d.]/g,'');"},model:{value:e.form.Downtime,callback:function(t){e.$set(e.form,"Downtime",t)},expression:"form.Downtime"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",disabled:e.btnDisabled},on:{click:e.handleSave}},[e._v("Save")])],1)],1)},a=[],r=i("6b95"),o=/^([1-9]\d*(\.\d+)?|0)$/,s={props:{form:{type:Object,default:function(){return{}}}},data:function(){return{rules:{Training:[{required:!0,trigger:"blur"},{pattern:o,message:"Please specify a number greater than 0"}],RefresherTraining:[{required:!0,trigger:"blur"},{pattern:o,message:"Please specify a number greater than 0"}],Timepoint:[{required:!0,trigger:"blur"},{pattern:o,message:"Please specify a number greater than 0"}],TimepointIn24H:[{required:!0,trigger:"blur"},{pattern:o,message:"Please specify a number greater than 0"}],TimepointIn48H:[{required:!0,trigger:"blur"},{pattern:o,message:"Please specify a number greater than 0"}],Adjudication:[{required:!0,trigger:"blur"},{pattern:o,message:"Please specify a number greater than 0"}],AdjudicationIn24H:[{required:!0,trigger:"blur"},{pattern:o,message:"Please specify a number greater than 0"}],AdjudicationIn48H:[{required:!0,trigger:"blur"},{pattern:o,message:"Please specify a number greater than 0"}],Global:[{required:!0,trigger:["blur","change"]},{pattern:o,message:"Please specify a number greater than 0"}]},isDispaly:!1,btnDisabled:!1}},methods:{handleSave:function(){var e=this;this.$refs.revenusForm.validate((function(t){if(t){e.btnDisabled=!0;var i=function(e){var t=e.TrialId,i=e.Timepoint,n=e.TimepointIn24H,a=e.TimepointIn48H,r=e.Adjudication,o=e.AdjudicationIn24H,s=e.AdjudicationIn48H,l=e.Global,c=e.Training,u=e.Downtime,d=e.RefresherTraining;return{TrialId:t,Timepoint:i,TimepointIn24H:n,TimepointIn48H:a,Adjudication:r,AdjudicationIn24H:o,AdjudicationIn48H:s,Global:l,Training:c,Downtime:u,RefresherTraining:d}}(e.form);Object(r["g"])(i).then((function(t){t.IsSuccess&&(e.$emit("getList"),e.$message.success("Updated successfully!"),e.$emit("closeDialog"))}))}}))}}},l=s,c=i("2877"),u=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},e82a:function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-job",use:"icon-job-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-job"><defs><style type="text/css"></style></defs><path d="M934.912 1016.832H192c-14.336 0-25.6-11.264-25.6-25.6v-189.44c0-14.336 11.264-25.6 25.6-25.6s25.6 11.264 25.6 25.6v163.84h691.712V64H217.6v148.48c0 14.336-11.264 25.6-25.6 25.6s-25.6-11.264-25.6-25.6v-174.08c0-14.336 11.264-25.6 25.6-25.6h742.912c14.336 0 25.6 11.264 25.6 25.6v952.832c0 14.336-11.264 25.6-25.6 25.6z" p-id="5473" /><path d="M232.96 371.2h-117.76c-14.336 0-25.6-11.264-25.6-25.6s11.264-25.6 25.6-25.6h117.76c14.336 0 25.6 11.264 25.6 25.6s-11.264 25.6-25.6 25.6zM232.96 540.16h-117.76c-14.336 0-25.6-11.264-25.6-25.6s11.264-25.6 25.6-25.6h117.76c14.336 0 25.6 11.264 25.6 25.6s-11.264 25.6-25.6 25.6zM232.96 698.88h-117.76c-14.336 0-25.6-11.264-25.6-25.6s11.264-25.6 25.6-25.6h117.76c14.336 0 25.6 11.264 25.6 25.6s-11.264 25.6-25.6 25.6zM574.464 762.88c-134.144 0-243.2-109.056-243.2-243.2S440.32 276.48 574.464 276.48s243.2 109.056 243.2 243.2-109.056 243.2-243.2 243.2z m0-435.2c-105.984 0-192 86.016-192 192S468.48 711.68 574.464 711.68s192-86.016 192-192S680.448 327.68 574.464 327.68z" p-id="5474" /><path d="M663.04 545.28h-87.04c-14.336 0-25.6-11.264-25.6-25.6s11.264-25.6 25.6-25.6h87.04c14.336 0 25.6 11.264 25.6 25.6s-11.264 25.6-25.6 25.6z" p-id="5475" /><path d="M576 545.28c-14.336 0-25.6-11.264-25.6-25.6v-87.04c0-14.336 11.264-25.6 25.6-25.6s25.6 11.264 25.6 25.6v87.04c0 14.336-11.264 25.6-25.6 25.6z" p-id="5476" /></symbol>'});o.a.add(s);t["default"]=s},e86a:function(e,t,i){var n=i("9850"),a=i("5e76"),r=i("6d8b"),o=r.getContext,s=r.extend,l=r.retrieve2,c=r.retrieve3,u=r.trim,d={},f=0,h=5e3,p=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,m="12px sans-serif",g={};function v(e,t){g[e]=t}function b(e,t){t=t||m;var i=e+":"+t;if(d[i])return d[i];for(var n=(e+"").split("\n"),a=0,r=0,o=n.length;r<o;r++)a=Math.max(O(n[r],t).width,a);return f>h&&(f=0,d={}),f++,d[i]=a,a}function y(e,t,i,n,a,r,o,s){return o?_(e,t,i,n,a,r,o,s):w(e,t,i,n,a,r,s)}function w(e,t,i,a,r,o,s){var l=$(e,t,r,o,s),c=b(e,t);r&&(c+=r[1]+r[3]);var u=l.outerHeight,d=I(0,c,i),f=x(0,u,a),h=new n(d,f,c,u);return h.lineHeight=l.lineHeight,h}function _(e,t,i,a,r,o,s,l){var c=N(e,{rich:s,truncate:l,font:t,textAlign:i,textPadding:r,textLineHeight:o}),u=c.outerWidth,d=c.outerHeight,f=I(0,u,i),h=x(0,d,a);return new n(f,h,u,d)}function I(e,t,i){return"right"===i?e-=t:"center"===i&&(e-=t/2),e}function x(e,t,i){return"middle"===i?e-=t/2:"bottom"===i&&(e-=t),e}function S(e,t,i){var n=t.textPosition,a=t.textDistance,r=i.x,o=i.y;a=a||0;var s=i.height,l=i.width,c=s/2,u="left",d="top";switch(n){case"left":r-=a,o+=c,u="right",d="middle";break;case"right":r+=a+l,o+=c,d="middle";break;case"top":r+=l/2,o-=a,u="center",d="bottom";break;case"bottom":r+=l/2,o+=s+a,u="center";break;case"inside":r+=l/2,o+=c,u="center",d="middle";break;case"insideLeft":r+=a,o+=c,d="middle";break;case"insideRight":r+=l-a,o+=c,u="right",d="middle";break;case"insideTop":r+=l/2,o+=a,u="center";break;case"insideBottom":r+=l/2,o+=s-a,u="center",d="bottom";break;case"insideTopLeft":r+=a,o+=a;break;case"insideTopRight":r+=l-a,o+=a,u="right";break;case"insideBottomLeft":r+=a,o+=s-a,d="bottom";break;case"insideBottomRight":r+=l-a,o+=s-a,u="right",d="bottom";break}return e=e||{},e.x=r,e.y=o,e.textAlign=u,e.textVerticalAlign=d,e}function T(e,t,i){var n={textPosition:e,textDistance:i};return S({},n,t)}function C(e,t,i,n,a){if(!t)return"";var r=(e+"").split("\n");a=k(t,i,n,a);for(var o=0,s=r.length;o<s;o++)r[o]=R(r[o],a);return r.join("\n")}function k(e,t,i,n){n=s({},n),n.font=t;i=l(i,"...");n.maxIterations=l(n.maxIterations,2);var a=n.minChar=l(n.minChar,0);n.cnCharWidth=b("国",t);var r=n.ascCharWidth=b("a",t);n.placeholder=l(n.placeholder,"");for(var o=e=Math.max(0,e-1),c=0;c<a&&o>=r;c++)o-=r;var u=b(i,t);return u>o&&(i="",u=0),o=e-u,n.ellipsis=i,n.ellipsisWidth=u,n.contentWidth=o,n.containerWidth=e,n}function R(e,t){var i=t.containerWidth,n=t.font,a=t.contentWidth;if(!i)return"";var r=b(e,n);if(r<=i)return e;for(var o=0;;o++){if(r<=a||o>=t.maxIterations){e+=t.ellipsis;break}var s=0===o?D(e,a,t.ascCharWidth,t.cnCharWidth):r>0?Math.floor(e.length*a/r):0;e=e.substr(0,s),r=b(e,n)}return""===e&&(e=t.placeholder),e}function D(e,t,i,n){for(var a=0,r=0,o=e.length;r<o&&a<t;r++){var s=e.charCodeAt(r);a+=0<=s&&s<=127?i:n}return r}function L(e){return b("国",e)}function O(e,t){return g.measureText(e,t)}function $(e,t,i,n,a){null!=e&&(e+="");var r=l(n,L(t)),o=e?e.split("\n"):[],s=o.length*r,c=s,u=!0;if(i&&(c+=i[0]+i[2]),e&&a){u=!1;var d=a.outerHeight,f=a.outerWidth;if(null!=d&&c>d)e="",o=[];else if(null!=f)for(var h=k(f-(i?i[1]+i[3]:0),t,a.ellipsis,{minChar:a.minChar,placeholder:a.placeholder}),p=0,m=o.length;p<m;p++)o[p]=R(o[p],h)}return{lines:o,height:s,outerHeight:c,lineHeight:r,canCacheByTextString:u}}function N(e,t){var i={lines:[],width:0,height:0};if(null!=e&&(e+=""),!e)return i;var n,r=p.lastIndex=0;while(null!=(n=p.exec(e))){var o=n.index;o>r&&A(i,e.substring(r,o)),A(i,n[2],n[1]),r=p.lastIndex}r<e.length&&A(i,e.substring(r,e.length));var s=i.lines,u=0,d=0,f=[],h=t.textPadding,m=t.truncate,g=m&&m.outerWidth,v=m&&m.outerHeight;h&&(null!=g&&(g-=h[1]+h[3]),null!=v&&(v-=h[0]+h[2]));for(var y=0;y<s.length;y++){for(var w=s[y],_=0,I=0,x=0;x<w.tokens.length;x++){var S=w.tokens[x],T=S.styleName&&t.rich[S.styleName]||{},k=S.textPadding=T.textPadding,R=S.font=T.font||t.font,D=S.textHeight=l(T.textHeight,L(R));if(k&&(D+=k[0]+k[2]),S.height=D,S.lineHeight=c(T.textLineHeight,t.textLineHeight,D),S.textAlign=T&&T.textAlign||t.textAlign,S.textVerticalAlign=T&&T.textVerticalAlign||"middle",null!=v&&u+S.lineHeight>v)return{lines:[],width:0,height:0};S.textWidth=b(S.text,R);var O=T.textWidth,$=null==O||"auto"===O;if("string"===typeof O&&"%"===O.charAt(O.length-1))S.percentWidth=O,f.push(S),O=0;else{if($){O=S.textWidth;var N=T.textBackgroundColor,P=N&&N.image;P&&(P=a.findExistImage(P),a.isImageReady(P)&&(O=Math.max(O,P.width*D/P.height)))}var E=k?k[1]+k[3]:0;O+=E;var M=null!=g?g-I:null;null!=M&&M<O&&(!$||M<E?(S.text="",S.textWidth=O=0):(S.text=C(S.text,M-E,R,m.ellipsis,{minChar:m.minChar}),S.textWidth=b(S.text,R),O=S.textWidth+E))}I+=S.width=O,T&&(_=Math.max(_,S.lineHeight))}w.width=I,w.lineHeight=_,u+=_,d=Math.max(d,I)}i.outerWidth=i.width=l(t.textWidth,d),i.outerHeight=i.height=l(t.textHeight,u),h&&(i.outerWidth+=h[1]+h[3],i.outerHeight+=h[0]+h[2]);for(y=0;y<f.length;y++){S=f[y];var F=S.percentWidth;S.width=parseInt(F,10)/100*d}return i}function A(e,t,i){for(var n=""===t,a=t.split("\n"),r=e.lines,o=0;o<a.length;o++){var s=a[o],l={styleName:i,text:s,isLineHolder:!s&&!n};if(o)r.push({tokens:[l]});else{var c=(r[r.length-1]||(r[0]={tokens:[]})).tokens,u=c.length;1===u&&c[0].isLineHolder?c[0]=l:(s||!u||n)&&c.push(l)}}}function P(e){var t=(e.fontSize||e.fontFamily)&&[e.fontStyle,e.fontWeight,(e.fontSize||12)+"px",e.fontFamily||"sans-serif"].join(" ");return t&&u(t)||e.textFont||e.font}g.measureText=function(e,t){var i=o();return i.font=t||m,i.measureText(e)},t.DEFAULT_FONT=m,t.$override=v,t.getWidth=b,t.getBoundingRect=y,t.adjustTextX=I,t.adjustTextY=x,t.calculateTextPosition=S,t.adjustTextPositionOnRect=T,t.truncateText=C,t.getLineHeight=L,t.measureText=O,t.parsePlainText=$,t.parseRichText=N,t.makeFont=P},e872:function(e,t,i){},e875:function(e,t,i){},e87a:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"search-container"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:rereadTrack:table:siteCode")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:"",filterable:""},model:{value:e.searchData.TrialSiteCode,callback:function(t){e.$set(e.searchData,"TrialSiteCode",t)},expression:"searchData.TrialSiteCode"}},e._l(e.siteOptions,(function(e,t){return i("el-option",{key:t,attrs:{label:e,value:e}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:rereadTrack:table:subjectCode")}},[i("el-input",{staticStyle:{width:"100px"},model:{value:e.searchData.SubjectCode,callback:function(t){e.$set(e.searchData,"SubjectCode",t)},expression:"searchData.SubjectCode"}})],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:rereadTrack:table:taskName")}},[i("el-input",{staticStyle:{width:"100px"},attrs:{clearable:""},model:{value:e.searchData.TaskName,callback:function(t){e.$set(e.searchData,"TaskName",t)},expression:"searchData.TaskName"}})],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:rereadTrack:table:reader")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.DoctorUserId,callback:function(t){e.$set(e.searchData,"DoctorUserId",t)},expression:"searchData.DoctorUserId"}},e._l(e.DoctorUserList,(function(e){return i("el-option",{key:"DoctorUserId"+e.DoctorUserId,attrs:{value:e.DoctorUserId,label:e.UserName+"("+e.FullName+")"}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:rereadTrack:table:criterionName")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.TrialReadingCriterionId,callback:function(t){e.$set(e.searchData,"TrialReadingCriterionId",t)},expression:"searchData.TrialReadingCriterionId"}},e._l(e.trialCriterionList,(function(e){return i("el-option",{key:"TrialReadingCriterionId"+e.TrialReadingCriterionId,attrs:{value:e.TrialReadingCriterionId,label:e.TrialReadingCriterionName}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:rereadTrack:table:isUrgent")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.IsUrgent,callback:function(t){e.$set(e.searchData,"IsUrgent",t)},expression:"searchData.IsUrgent"}},e._l(e.$d.YesOrNo,(function(e){return i("el-option",{key:"IsUrgent"+e.label,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:rereadTrack:table:taskStatus")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.TaskState,callback:function(t){e.$set(e.searchData,"TaskState",t)},expression:"searchData.TaskState"}},e._l(e.$d.TaskState,(function(e){return i("el-option",{key:"TaskState"+e.label,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:rereadTrack:table:taskType")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.ReadingCategory,callback:function(t){e.$set(e.searchData,"ReadingCategory",t)},expression:"searchData.ReadingCategory"}},e._l(e.$d.ReadingCategory,(function(e){return i("el-option",{key:"ReadingCategory"+e.label,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:rereadTrack:table:applyType")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.RequestReReadingType,callback:function(t){e.$set(e.searchData,"RequestReReadingType",t)},expression:"searchData.RequestReReadingType"}},e._l(e.$d.RequestReReadingType,(function(e){return i("el-option",{key:"RequestReReadingType"+e.label,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:rereadTrack:table:approvalResult")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.RequestReReadingResultEnum,callback:function(t){e.$set(e.searchData,"RequestReReadingResultEnum",t)},expression:"searchData.RequestReReadingResultEnum"}},e._l(e.$d.RequestReReadingResult,(function(e){return i("el-option",{key:"RequestReReadingResultEnum"+e.label,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"}},[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-download"},on:{click:e.handleExport}},[e._v("\n "+e._s(e.$t("common:button:export"))+"\n ")])],1)],1)],1),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"},{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortChange}},[i("el-table-column",{attrs:{prop:"OriginalReReadingTask.IsUrgent",label:e.$t("trials:rereadTrack:table:isUrgent"),"show-overflow-tooltip":"","min-width":"100",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.OriginalReReadingTask.IsUrgent?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.OriginalReReadingTask.IsUrgent)))]):i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.OriginalReReadingTask.IsUrgent)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"OriginalReReadingTask.TaskCode",label:e.$t("trials:rereadTrack:table:taskCode"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"OriginalReReadingTask.TrialSiteCode",label:e.$t("trials:rereadTrack:table:siteCode"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"OriginalReReadingTask.SubjectCode",label:e.$t("trials:rereadTrack:table:subjectCode"),"min-width":"120",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"OriginalReReadingTask.TaskName",label:e.$t("trials:rereadTrack:table:taskName"),"min-width":"120",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"OriginalReReadingTask.TaskBlindName",label:e.$t("trials:rereadTrack:table:blindName"),"min-width":"140",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"OriginalReReadingTask.CreateTime",label:e.$t("trials:rereadTrack:table:createTime"),"min-width":"140",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"OriginalReReadingTask.TaskState",label:e.$t("trials:rereadTrack:table:taskStatus"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.OriginalReReadingTask.TaskState?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("TaskState",t.row.OriginalReReadingTask.TaskState)))]):e._e(),e._v(" "),1===t.row.OriginalReReadingTask.TaskState?i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("TaskState",t.row.OriginalReReadingTask.TaskState)))]):e._e(),e._v(" "),3===t.row.OriginalReReadingTask.TaskState?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("TaskState",t.row.OriginalReReadingTask.TaskState)))]):e._e(),e._v(" "),4===t.row.OriginalReReadingTask.TaskState?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("TaskState",t.row.OriginalReReadingTask.TaskState)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"OriginalReReadingTask.ReadingCategory",label:e.$t("trials:rereadTrack:table:taskType"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.OriginalReReadingTask.ReadingCategory?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.OriginalReReadingTask.ReadingCategory)))]):e._e(),e._v(" "),2===t.row.OriginalReReadingTask.ReadingCategory?i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.OriginalReReadingTask.ReadingCategory)))]):e._e(),e._v(" "),4===t.row.OriginalReReadingTask.ReadingCategory?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.OriginalReReadingTask.ReadingCategory)))]):e._e(),e._v(" "),5===t.row.OriginalReReadingTask.ReadingCategory?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.OriginalReReadingTask.ReadingCategory)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"OriginalReReadingTask.ArmEnum",label:e.$t("trials:rereadTrack:table:role"),sortable:"custom","min-width":"80","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.OriginalReReadingTask.ArmEnum?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ArmEnum",t.row.OriginalReReadingTask.ArmEnum)))]):e._e(),e._v(" "),2===t.row.OriginalReReadingTask.ArmEnum?i("el-tag",{attrs:{type:"success"}},[e._v(e._s(e.$fd("ArmEnum",t.row.OriginalReReadingTask.ArmEnum)))]):e._e(),e._v(" "),3===t.row.OriginalReReadingTask.ArmEnum?i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("ArmEnum",t.row.OriginalReReadingTask.ArmEnum)))]):e._e(),e._v(" "),4===t.row.OriginalReReadingTask.ArmEnum?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ArmEnum",t.row.OriginalReReadingTask.ArmEnum)))]):e._e(),e._v(" "),5===t.row.OriginalReReadingTask.ArmEnum?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("ArmEnum",t.row.OriginalReReadingTask.ArmEnum)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"OriginalReReadingTask.UserName",label:e.$t("trials:rereadTrack:table:reader"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.OriginalReReadingTask.UserName)+"("+e._s(t.row.OriginalReReadingTask.FullName)+")\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"OriginalReReadingTask.TrialReadingCriterionName",label:e.$t("trials:rereadTrack:table:criterionName"),"min-width":"180",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"OriginalReReadingTask.SignTime",label:e.$t("trials:rereadTrack:table:signTime"),"min-width":"180",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"RequestReReadingType",label:e.$t("trials:rereadTrack:table:applyType"),"min-width":"140",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.RequestReReadingType?i("div",[2===t.row.RequestReReadingType?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("RequestReReadingType",t.row.RequestReReadingType)))]):i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("RequestReReadingType",t.row.RequestReReadingType)))])],1):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"RequestReReadingTime",label:e.$t("trials:rereadTrack:table:applyTime"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"RequestReReadingReason",label:e.$t("trials:rereadTrack:table:applyReason"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"RequestReReadingResultEnum",label:e.$t("trials:rereadTrack:table:approvalResult"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.RequestReReadingResultEnum||0===t.row.RequestReReadingResultEnum?i("div",[2===t.row.RequestReReadingResultEnum?i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"top"}},[i("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n "+e._s(t.row.RequestReReadingRejectReason)+"\n ")]),e._v(" "),i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("RequestReReadingResult",t.row.RequestReReadingResultEnum)))])],1):e._e(),e._v(" "),1===t.row.RequestReReadingResultEnum?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("RequestReReadingResult",t.row.RequestReReadingResultEnum)))]):e._e(),e._v(" "),0===t.row.RequestReReadingResultEnum?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("RequestReReadingResult",t.row.RequestReReadingResultEnum)))]):e._e()],1):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ReReadingNewTaskCode",label:e.$t("trials:rereadTrack:table:newTaskCode"),"min-width":"120",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),e.hasPermi(["trials:trials-panel:reReadingTracking:edit"])?i("el-table-column",{attrs:{fixed:"right",label:e.$t("common:action:action"),width:"210"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{disabled:!!t.row.RequestReReadingResultEnum||2===t.row.RequestReReadingType,icon:"el-icon-check",circle:"",title:e.$t("trials:rereadTrack:table:agree")},on:{click:function(i){return e.openReReadingOrBackList(t.row,1)}}}),e._v(" "),i("el-button",{attrs:{disabled:!!t.row.RequestReReadingResultEnum||2===t.row.RequestReReadingType,icon:"el-icon-close",circle:"",title:e.$t("trials:rereadTrack:table:reject")},on:{click:function(i){return e.confirmReReading(t.row,2,!0)}}}),e._v(" "),i("el-button",{attrs:{disabled:1!==t.row.RequestReReadingResultEnum,icon:"el-icon-document-copy",circle:"",title:e.$t("trials:rereadTrack:table:influenceTaskList")},on:{click:function(i){return e.getInfluencedTaskList(t.row)}}})]}}],null,!1,3025484238)}):e._e()],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}}),e._v(" "),e.ConfirmReReadingVisible?i("el-dialog",{attrs:{title:"驳回",visible:e.ConfirmReReadingVisible,width:"600px","append-to-body":"","close-on-click-modal":!1,"custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.ConfirmReReadingVisible=t}}},[i("div",{staticStyle:{padding:"10px",border:"1px solid #e0e0e0","max-height":"650px","overflow-y":"auto"}},[i("el-form",{ref:"reasonForm",staticClass:"demo-ruleForm",attrs:{rules:e.rules,model:e.ConfirmReReadingForm,size:"small","label-width":"120px"}},[i("el-form-item",{attrs:{label:e.$t("trials:rereadTrack:reject:title:reason"),prop:"RequestReReadingRejectReason"}},[i("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:e.$t("common:ruleMessage:specify"),maxlength:"500","show-word-limit":""},model:{value:e.ConfirmReReadingForm.RequestReReadingRejectReason,callback:function(t){e.$set(e.ConfirmReReadingForm,"RequestReReadingRejectReason",t)},expression:"ConfirmReReadingForm.RequestReReadingRejectReason"}})],1)],1)],1),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){e.ConfirmReReadingVisible=!1,e.ConfirmReReadingForm={RequestReReadingRejectReason:null}}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{loading:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){return e.confirmSign(2)}}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)]):e._e(),e._v(" "),e.ReReadingOrBackVisible?i("el-dialog",{attrs:{title:"read"===e.opentype?e.$t("trials:reviewTrack:dialog:backImpactList"):e.$t("trials:reviewTrack:dialog:impactList"),visible:e.ReReadingOrBackVisible,width:"1460px","append-to-body":"","close-on-click-modal":!1,"custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.ReReadingOrBackVisible=t}}},[i("div",{staticClass:"base-dialog-body"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{"min-height":"400px"},attrs:{data:e.InfluenceTaskList,stripe:"",height:"100"}},[i("el-table-column",{attrs:{prop:"TaskCode",label:e.$t("trials:reviewTrack:table:taskCode"),"min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialSiteCode",label:e.$t("trials:reviewTrack:table:siteCode"),"min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode",label:e.$t("trials:reviewTrack:table:subjectCode"),"min-width":"120","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitTaskNum",label:e.$t("trials:reviewTrack:table:taskName"),"min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.TaskName)+"\n ")]}}],null,!1,2420443191)}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskBlindName",label:e.$t("trials:reviewTrack:table:blindName"),"min-width":"120","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialReadingCriterionName",label:e.$t("trials:reviewTrack:table:criterionName"),"min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskState",label:e.$t("trials:reviewTrack:table:taskStatus"),"min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.TaskState?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e(),e._v(" "),1===t.row.TaskState?i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e(),e._v(" "),3===t.row.TaskState?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e(),e._v(" "),4===t.row.TaskState?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e()]}}],null,!1,3420009093)}),e._v(" "),i("el-table-column",{attrs:{prop:"ReadingCategory","min-width":"100",label:e.$t("trials:reviewTrack:table:taskType"),"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.ReadingCategory?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e(),e._v(" "),2===t.row.ReadingCategory?i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e(),e._v(" "),4===t.row.ReadingCategory?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e(),e._v(" "),5===t.row.ReadingCategory?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e()]}}],null,!1,3295727457)}),e._v(" "),i("el-table-column",{attrs:{prop:"ReadingTaskState",label:e.$t("trials:reviewTrack:table:readingStatus"),"min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[2===t.row.ReadingTaskState?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ReadingTaskState",t.row.ReadingTaskState)))]):i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ReadingTaskState",t.row.ReadingTaskState)))])]}}],null,!1,2667573932)}),e._v(" "),i("el-table-column",{attrs:{prop:"OptType",label:e.$t("trials:reviewTrack:applyReread:title:postEffectiveImpacts"),"min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.OptType?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ReReadingOrBackOptType",t.row.OptType)))]):e._e(),e._v(" "),1===t.row.OptType?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ReReadingOrBackOptType",t.row.OptType)))]):e._e(),e._v(" "),2===t.row.OptType?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("ReReadingOrBackOptType",t.row.OptType)))]):e._e()]}}],null,!1,2995316527)}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:e.$t("trials:reviewTrack:table:reader"),"min-width":"160","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return t.row.DoctorUser?[e._v("\n "+e._s(t.row.DoctorUser.UserName)+"("+e._s(t.row.DoctorUser.FullName)+")\n ")]:void 0}}],null,!0)})],1)],1),e._v(" "),"read"===e.opentype?i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){e.ReReadingOrBackVisible=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{loading:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){return e.confirmSign(1)}}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1):e._e()]):e._e(),e._v(" "),i("el-dialog",{attrs:{"destroy-on-close":!0,visible:e.signVisible,"close-on-click-modal":!1,width:"600px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.signVisible=t}}},[i("div",{attrs:{slot:"title"},slot:"title"},[i("span",{staticStyle:{"font-size":"18px"}},[e._v(e._s(e.$t("common:dialogTitle:sign")))]),e._v(" "),i("span",{staticStyle:{"font-size":"12px","margin-left":"5px"}},[e._v(e._s("("+e.$t("common:label:sign")+e.currentUser+")"))])]),e._v(" "),i("SignForm",{ref:"signForm",attrs:{"sign-code-enum":e.signCode},on:{closeDialog:e.closeSignDialog}})],1)],1)],2)},a=[],r=(i("96cf"),i("3b8d")),o=(i("7514"),i("db72")),s=i("958c"),l=i("3f2a"),c=i("6071"),u=i("333d"),d=i("5f87"),f=i("7a9e"),h=i("a599"),p=i("179b"),m=function(){return{PageIndex:1,PageSize:20,Asc:!0,SortField:"",TrialId:null,SiteId:null,SubjectId:null,SubjectCode:null,TrialSiteCode:null,IsUrgent:null,TaskName:null,TaskState:null,DoctorUserId:null,ReadingCategory:null,TaskAllocationState:null,BeginAllocateDate:null,EndAllocateDate:null,RootReReadingTaskId:null,TrialReadingCriterionId:null,RequestReReadingType:null,ReReadingApplyState:null,CompleteClinicalDataEnum:null}},g={name:"TrialsNotice",components:{BaseContainer:c["default"],Pagination:u["default"],SignForm:p["default"]},data:function(){return{searchData:m(),signVisible:!1,ReReadingOrBackVisible:!1,InfluenceTaskList:[],maxLength:0,list:[],siteOptions:[],opentype:"",currentUser:zzSessionStorage.getItem("userName"),signCode:null,total:0,SubjectAssignListTotal:0,loading:!1,AllocationConfigVisible:!1,ConfirmReReadingForm:{RequestReReadingRejectReason:null},rules:{RequestReReadingRejectReason:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}]},ConfirmReReadingVisible:!1,taskAllocationRuleVisible:!1,AutoAlloctionVisible:!1,manualAllocationVisible:!1,trialId:this.$route.query.trialId,currentData:{},param:{},DoctorUserList:[],TaskAllocationRuleList:[],btnLoading:!1,value:!0,value1:!0,TrialTaskInfo:{TrialId:null,TaskAllocateObjEnum:0,FollowVisitAutoAssignDefaultState:0,FollowGlobalVisitAutoAssignDefaultState:0,TaskAllocateDefaultState:1},title:"",rowData:{},timeList:[],SubjectAssignList:[],SubjectAssignSelectList:[],TaskAllocationRuleSelectList:[],readVisible:!1,TaskOptType:null,OtherInfo:null,ReadingType:null,trialCriterionList:[]}},mounted:function(){this.$route.query.SiteId&&(this.searchData.SiteId=this.$route.query.SiteId,this.searchData.SubjectCode=this.$route.query.SubjectCode,this.searchData.TaskName=this.$route.query.TaskName,this.searchData.DoctorUserId=this.$route.query.DoctorUserId,Object(h["a"])("SiteId",""),Object(h["a"])("SubjectCode",""),Object(h["a"])("TaskName",""),Object(h["a"])("DoctorUserId","")),this.getList(),this.getSite(),this.getDoctorUserSelectList(),this.getTrialCriterionList()},methods:{handleExport:function(){var e=this;Object(l["j"])(this.searchData).then((function(e){})).catch((function(){e.loading=!1}))},getTrialCriterionList:function(){var e=this;Object(s["U"])(this.trialId).then((function(t){e.trialCriterionList=t.Result})).catch((function(){}))},getInfluencedTaskList:function(e){var t=this;this.loading=!0,this.opentype="look",this.rowData=Object(o["a"])({},e),Object(s["D"])(e.OriginalReReadingTaskId).then((function(e){t.InfluenceTaskList=e.Result,t.ReReadingOrBackVisible=!0,t.loading=!1}))},openReReadingOrBackList:function(e){var t=this;this.loading=!0,this.opentype="read",this.rowData=Object(o["a"])({},e),Object(s["H"])(e.OriginalReReadingTaskId,!0,e.Id).then((function(e){t.InfluenceTaskList=e.Result,t.ReReadingOrBackVisible=!0,t.loading=!1})).catch((function(){t.loading=!1}))},lookReadingResults:function(e){var t,i=Object(d["a"])();t=0===e.ReadingTool?"/readingDicoms?trialId=".concat(this.trialId,"&subjectCode=").concat(e.SubjectCode,"&subjectId=").concat(e.SubjectId,"&visitTaskId=").concat(e.Id,"&isReadingTaskViewInOrder=").concat(e.IsReadingTaskViewInOrder,"&criterionType=").concat(e.CriterionType,"&readingTool=").concat(e.ReadingTool,"&TokenKey=").concat(i):"/noneDicomReading?trialId=".concat(this.trialId,"&subjectCode=").concat(e.SubjectCode,"&subjectId=").concat(e.SubjectId,"&visitTaskId=").concat(e.Id,"&isReadingTaskViewInOrder=").concat(e.IsReadingTaskViewInOrder,"&criterionType=").concat(e.CriterionType,"&readingTool=").concat(e.ReadingTool,"&TokenKey=").concat(i),window.open(t,"_blank")},applyReReading:function(e){var t=this;this.$confirm(this.$t("trials:rereadTrack:message:msg1")).then((function(){t.loading=!0,t.btnLoading=!0;var i={TaskIdList:[e.NewReReadingTaskId],TrialId:t.$route.query.trialId,RequestReReadingType:2,RequestReReadingReason:""};Object(s["e"])(i).then((function(){t.loading=!1,t.btnLoading=!1,t.$message.success(t.$t("trials:rereadTrack:message:msg2")),t.getList()})).catch((function(){t.loading=!1,t.btnLoading=!1}))}))},confirmSign:function(e){var t=f["default"].processSignature.HeavyReadingApproval;this.type=e,this.signCode=t,this.signVisible=!0},closeSignDialog:function(e,t){e?this.confirmReReading(this.rowData,this.type,!1,t):this.signVisible=!1},confirmReReading:function(e,t,i,n){var a=this;if(i)return this.rowData=Object(o["a"])({},e),this.ConfirmReReadingVisible=!0,void(this.ConfirmReReadingForm={RequestReReadingRejectReason:null});if(2!==t){var r={data:{ConfirmReReadingList:[{Id:e.Id,OriginalReReadingTaskId:e.OriginalReReadingTaskId,RootReReadingTaskId:e.RootReReadingTaskId,NewReReadingTaskId:e.NewReReadingTaskId}],TrialId:this.$route.query.trialId,RequestReReadingResultEnum:t},signInfo:n};this.loading=!0,this.btnLoading=!0,Object(s["q"])(r).then((function(){a.loading=!1,a.btnLoading=!1,a.$message.success("".concat(1===t?a.$t("trials:rereadTrack:message:msg3"):a.$t("trials:rereadTrack:message:msg4"))),a.ReReadingOrBackVisible=!1,a.$refs["signForm"].btnLoading=!1,a.signVisible=!1,a.getList()})).catch((function(){a.loading=!1,a.$refs["signForm"].btnLoading=!1,a.btnLoading=!1}))}else this.$refs.reasonForm.validate((function(i){if(i){var r={data:{ConfirmReReadingList:[{Id:e.Id,OriginalReReadingTaskId:e.OriginalReReadingTaskId,RootReReadingTaskId:e.RootReReadingTaskId,NewReReadingTaskId:e.NewReReadingTaskId}],RequestReReadingRejectReason:a.ConfirmReReadingForm.RequestReReadingRejectReason,TrialId:a.$route.query.trialId,RequestReReadingResultEnum:t},signInfo:n};a.loading=!0,a.btnLoading=!0,Object(s["q"])(r).then((function(){a.loading=!1,a.btnLoading=!1,a.$message.success("".concat(1===t?a.$t("trials:rereadTrack:message:msg3"):a.$t("trials:rereadTrack:message:msg4"))),a.$refs["signForm"].btnLoading=!1,a.signVisible=!1,a.getList(),a.ConfirmReReadingVisible=!1})).catch((function(){a.loading=!1,a.$refs["signForm"].btnLoading=!1,a.btnLoading=!1}))}}))},assignSubjectTaskToDoctor:function(e,t){var i=this;this.rowData=Object(o["a"])({},e),this.rowData.TaskOptType=t,1===t||2===t?this.readVisible=!0:3===t?this.$confirm("是否确定分配").then((function(){i.btnLoading=!0,i.loading=!0;var e=Object.assign({},i.rowData);Object(s["h"])(e).then((function(){i.$message.success("保存成功"),i.btnLoading=!1,i.loading=!1,i.readVisible=!1,i.getList()})).catch((function(){i.btnLoading=!1,i.loading=!1}))})):4===t&&this.$confirm("是否确定取消分配").then((function(){i.btnLoading=!0,i.loading=!0;var e=Object.assign({},i.rowData);Object(s["h"])(e).then((function(){i.$message.success("保存成功"),i.btnLoading=!1,i.loading=!1,i.readVisible=!1,i.getList()})).catch((function(){i.btnLoading=!1,i.loading=!1}))}))},assignSubjectTaskToDoctorSave:function(){var e=this;this.$refs.readDataForm.validate((function(t){if(t){e.btnLoading=!0,e.loading=!0;var i=Object.assign({},e.rowData);Object(s["h"])(i).then((function(){e.$message.success("保存成功"),e.btnLoading=!1,e.loading=!1,e.readVisible=!1,e.getList()})).catch((function(){e.btnLoading=!1,e.loading=!1}))}}))},manualAssignDoctorApplyTask:function(e){var t=this;console.log(e);var i={TrialId:this.trialId};e&&(i.SubjectDoctorUserList=[e]),this.$confirm("确定将当前已分配阅片人应用到任务?").then((function(){t.loading=!0,t.btnLoading=!0,Object(s["W"])(i).then((function(){t.loading=!1,t.btnLoading=!1,t.$message.success("应用成功"),t.getList(),t.openAutoAlloction()})).catch((function(){t.loading=!1,t.btnLoading=!1}))}))},autoSubjectAssignDoctor:function(){var e=this;this.$confirm("确定执行自动分配?").then((function(){e.loading=!0,e.btnLoading=!0,Object(s["i"])({TrialId:e.trialId}).then((function(){e.loading=!1,e.btnLoading=!1,e.$message.success("自动分配成功"),e.getList(),e.openAutoAlloction()})).catch((function(){e.loading=!1,e.btnLoading=!1}))}))},handleSaveTaskAllocationRuleSelectList:function(){var e,t=this;if(0!==this.TaskAllocationRuleSelectList.length)if(e=2===this.ReadingType?2:1,this.TaskAllocationRuleSelectList.length===e){this.loading=!0,this.btnLoading=!0;var i={DoctorUserIdArmList:this.TaskAllocationRuleSelectList.map((function(e,i){return{DoctorUserId:e.DoctorUserId,ArmEnum:1===t.ReadingType?1:i+1}})),SubjectIdList:this.SubjectAssignSelectList.map((function(e){return e.SubjectId})),TrialId:this.trialId,IsReAssign:!0};Object(s["g"])(i).then((function(){t.loading=!1,t.btnLoading=!1,t.openAutoAlloction(),t.TaskAllocationRuleSelectList=[],t.SubjectAssignSelectList=[],t.getDoctorUserSelectList(),t.$message.success("分配成功"),t.manualAllocationVisible=!1})).catch((function(){t.loading=!1,t.btnLoading=!1}))}else this.$message.error("当前阅片模式为".concat(this.$fd("ReadingMethod",this.ReadingType),",请选择正确阅片人数量"));else this.$message.error("请选择阅片人")},selectable:function(e){var t;return t=2===this.ReadingType?2:1,!(this.TaskAllocationRuleSelectList.length===t&&!this.TaskAllocationRuleSelectList.find((function(t){return t.UserName===e.UserName})))},cancelSubjectAssignDoctor:function(e){var t=this;e?this.$confirm("确定要清空该受试者的阅片人吗?").then((function(){var i={SubjectIdList:[e.SubjectId],TrialId:t.trialId};t.loading=!0,t.btnLoading=!0,Object(s["k"])(i).then((function(){t.$message.success("清空成功"),t.loading=!1,t.btnLoading=!1,t.openAutoAlloction()})).catch((function(){t.loading=!1,t.btnLoading=!1}))})):0!==this.SubjectAssignSelectList.length?this.$confirm("确定要清空该受试者的阅片人吗?").then((function(){var e={SubjectIdList:t.SubjectAssignSelectList.map((function(e){return e.SubjectId})),TrialId:t.trialId};t.loading=!0,t.btnLoading=!0,Object(s["k"])(e).then((function(){t.$message.success("清空成功"),t.loading=!1,t.btnLoading=!1,t.openAutoAlloction()})).catch((function(){t.loading=!1,t.btnLoading=!1}))})):this.$message.error("请勾选要清空阅片人的受试者")},manualAllocation:function(e){e&&(this.SubjectAssignSelectList=[e]),0!==this.SubjectAssignSelectList.length?this.manualAllocationVisible=!0:this.$message.error("请勾选要分配的受试者")},handleTaskAllocationRuleListSelectChange:function(e){this.TaskAllocationRuleSelectList=e},handleSubjectAssignListSelectChange:function(e){this.SubjectAssignSelectList=e},changeTimeList:function(){this.timeList?(this.searchData.BeginAllocateDate=this.timeList[0],this.searchData.EndAllocateDate=this.timeList[1]):(this.searchData.BeginAllocateDate=null,this.searchData.EndAllocateDate=null)},handleCancel:function(){this.AllocationConfigVisible=!1},handleSave:function(){var e=this;this.btnLoading=!0,this.loading=!0;var t=Object.assign({},this.TrialTaskInfo);t.TrialId=this.$route.query.trialId,Object(s["n"])(t).then((function(){e.btnLoading=!1,e.loading=!1,e.AllocationConfigVisible=!1,e.getList(),e.$message.success("保存成功")})).catch((function(){e.btnLoading=!1,e.loading=!1}))},handleDelete:function(e){var t=this;this.$confirm("确定要删除".concat(e.UserName,"的任务分配规则?"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.loading=!0,Object(s["r"])(e.Id).then((function(){t.loading=!1,t.$message.success("删除成功"),t.openAllocationConfigVisible()})).catch((function(){t.loading=!1}))}))},addOrEdit:function(e){e?(this.rowData=Object(o["a"])({},e),this.title="编辑"):(this.rowData={},this.title="新增"),this.taskAllocationRuleVisible=!0},openAllocationConfigVisible:function(){var e=this;this.loading=!0,Object(s["R"])({TrialId:this.$route.query.trialId}).then((function(t){e.loading=!1,e.TaskAllocationRuleList=t.Result,e.TrialTaskInfo=Object.assign({},t.OtherInfo),e.AllocationConfigVisible=!0,e.taskAllocationRuleVisible=!1})).catch((function(){e.loading=!1}))},openAutoAlloction:function(){var e=this;this.loading=!0,Object(s["R"])({TrialId:this.$route.query.trialId}).then(function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(i){var n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.taskSearchData.TrialId=e.$route.query.trialId,n=Object.assign({},e.taskSearchData),t.next=4,Object(s["O"])(n);case 4:a=t.sent,e.SubjectAssignList=a.Result.CurrentPageData,e.SubjectAssignListTotal=a.Result.TotalCount,e.loading=!1,e.TaskAllocationRuleList=i.Result,e.TrialTaskInfo=Object.assign({},i.OtherInfo),e.AutoAlloctionVisible=!0;case 11:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(){e.loading=!1}))},getDoctorUserSelectList:function(){var e=this;Object(s["A"])(this.$route.query.trialId).then((function(t){e.DoctorUserList=t.Result,e.DoctorUserList.length>0&&(e.ReadingType=e.DoctorUserList[0].ReadingType)}))},getList:function(){var e=this;this.searchData.TrialId=this.$route.query.trialId,this.loading=!0,Object(s["I"])(this.searchData).then((function(t){e.loading=!1,e.OtherInfo=t.OtherInfo,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=m(),this.getList()},getSite:function(){var e=this;Object(s["V"])(this.trialId).then((function(t){e.siteOptions=t.Result}))},handleSortChange:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()}}},v=g,b=(i("3cf3"),i("2877")),y=Object(b["a"])(v,n,a,!1,null,"e73e63aa",null);t["default"]=y.exports},e887:function(e,t,i){var n=i("6d8b"),a=n.each,r=i("e1fc"),o=i("8918"),s=i("625e"),l=i("e0d3"),c=i("2306"),u=i("f47d"),d=u.createTask,f=i("cccd"),h=l.makeInner(),p=f();function m(){this.group=new r,this.uid=o.getUID("viewChart"),this.renderTask=d({plan:y,reset:w}),this.renderTask.context={view:this}}m.prototype={type:"chart",init:function(e,t){},render:function(e,t,i,n){},highlight:function(e,t,i,n){b(e.getData(),n,"emphasis")},downplay:function(e,t,i,n){b(e.getData(),n,"normal")},remove:function(e,t){this.group.removeAll()},dispose:function(){},incrementalPrepareRender:null,incrementalRender:null,updateTransform:null,filterForExposedEvent:null};var g=m.prototype;function v(e,t,i){if(e&&(e.trigger(t,i),e.isGroup&&!c.isHighDownDispatcher(e)))for(var n=0,a=e.childCount();n<a;n++)v(e.childAt(n),t,i)}function b(e,t,i){var n=l.queryDataIndex(e,t),r=t&&null!=t.highlightKey?c.getHighlightDigit(t.highlightKey):null;null!=n?a(l.normalizeToArray(n),(function(t){v(e.getItemGraphicEl(t),i,r)})):e.eachItemGraphicEl((function(e){v(e,i,r)}))}function y(e){return p(e.model)}function w(e){var t=e.model,i=e.ecModel,n=e.api,a=e.payload,r=t.pipelineContext.progressiveRender,o=e.view,s=a&&h(a).updateMethod,l=r?"incrementalPrepareRender":s&&o[s]?s:"render";return"render"!==l&&o[l](t,i,n,a),_[l]}g.updateView=g.updateLayout=g.updateVisual=function(e,t,i,n){this.render(e,t,i,n)},s.enableClassExtend(m,["dispose"]),s.enableClassManagement(m,{registerWhenExtend:!0}),m.markUpdateMethod=function(e,t){h(e).updateMethod=t};var _={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},I=m;e.exports=I},e8ae:function(e,t,i){(function(t){var i;!function(t){e.exports=t()}((function(){return function e(t,n,a){function r(s,l){if(!n[s]){if(!t[s]){var c="function"==typeof i&&i;if(!l&&c)return i(s,!0);if(o)return o(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var d=n[s]={exports:{}};t[s][0].call(d.exports,(function(e){return r(t[s][1][e]||e)}),d,d.exports,e,t,n,a)}return n[s].exports}for(var o="function"==typeof i&&i,s=0;s<a.length;s++)r(a[s]);return r}({1:[function(e,t,i){"use strict";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 a(e,t,i,n,a,r,o){try{var s=e[r](o),l=s.value}catch(e){return void i(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function r(e){return function(){var t=this,i=arguments;return new Promise((function(n,r){var o=e.apply(t,i);function s(e){a(o,n,r,s,l,"next",e)}function l(e){a(o,n,r,s,l,"throw",e)}s(void 0)}))}}function o(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var s=e("fs"),l=e("fast-csv"),c=e("dayjs/plugin/customParseFormat"),u=e("dayjs/plugin/utc"),d=e("dayjs").extend(c).extend(u),f=e("../utils/stream-buf"),h=e("../utils/utils").fs.exists,p={true:!0,false:!1,"#N/A":{error:"#N/A"},"#REF!":{error:"#REF!"},"#NAME?":{error:"#NAME?"},"#DIV/0!":{error:"#DIV/0!"},"#NULL!":{error:"#NULL!"},"#VALUE!":{error:"#VALUE!"},"#NUM!":{error:"#NUM!"}},m=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.workbook=t,this.worksheet=null}var t,i,a,c,u;return t=e,(i=[{key:"readFile",value:(u=r(regeneratorRuntime.mark((function e(t,i){var n,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=i||{},e.next=3,h(t);case 3:if(e.sent){e.next=5;break}throw new Error("File not found: ".concat(t));case 5:return n=s.createReadStream(t),e.next=8,this.read(n,i);case 8:return a=e.sent,n.close(),e.abrupt("return",a);case 11:case"end":return e.stop()}}),e,this)}))),function(e,t){return u.apply(this,arguments)})},{key:"read",value:function(e,t){var i=this;return t=t||{},new Promise((function(n,a){var r=i.workbook.addWorksheet(t.sheetName),o=t.dateFormats||["YYYY-MM-DD[T]HH:mm:ssZ","YYYY-MM-DD[T]HH:mm:ss","MM-DD-YYYY","YYYY-MM-DD"],s=t.map||function(e){if(""===e)return null;var t=Number(e);if(!Number.isNaN(t)&&t!==1/0)return t;var i=o.reduce((function(t,i){if(t)return t;var n=d(e,i,!0);return n.isValid()?n:null}),null);if(i)return new Date(i.valueOf());var n=p[e];return void 0!==n?n:e},c=l.parse(t.parserOptions).on("data",(function(e){r.addRow(e.map(s))})).on("end",(function(){c.emit("worksheet",r)}));c.on("worksheet",n).on("error",a),e.pipe(c)}))}},{key:"createInputStream",value:function(){throw new Error("`CSV#createInputStream` is deprecated. You should use `CSV#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}},{key:"write",value:function(e,t){var i=this;return new Promise((function(a,r){t=t||{};var o=i.workbook.getWorksheet(t.sheetName||t.sheetId),s=l.format(t.formatterOptions);e.on("finish",(function(){a()})),s.on("error",r),s.pipe(e);var c=t,u=c.dateFormat,f=c.dateUTC,h=t.map||function(e){if(e){if(e.text||e.hyperlink)return e.hyperlink||e.text||"";if(e.formula||e.result)return e.result||"";if(e instanceof Date)return u?f?d.utc(e).format(u):d(e).format(u):f?d.utc(e).format():d(e).format();if(e.error)return e.error;if("object"===n(e))return JSON.stringify(e)}return e},p=void 0===t.includeEmptyRows||t.includeEmptyRows,m=1;o&&o.eachRow((function(e,t){if(p)for(;m++<t-1;)s.write([]);var i=e.values;i.shift(),s.write(i.map(h)),m=t})),s.end()}))}},{key:"writeFile",value:function(e,t){var i={encoding:(t=t||{}).encoding||"utf8"},n=s.createWriteStream(e,i);return this.write(n,t)}},{key:"writeBuffer",value:(c=r(regeneratorRuntime.mark((function e(t){var i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=new f,e.next=3,this.write(i,t);case 3:return e.abrupt("return",i.read());case 4:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})}])&&o(t.prototype,i),a&&o(t,a),e}();t.exports=m},{"../utils/stream-buf":23,"../utils/utils":26,dayjs:336,"dayjs/plugin/customParseFormat":337,"dayjs/plugin/utc":338,"fast-csv":369,fs:215}],2:[function(e,t,i){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var r=e("../utils/col-cache"),o=function(){function e(t,i){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(n(this,e),i)if("string"==typeof i){var o=r.decodeAddress(i);this.nativeCol=o.col+a,this.nativeColOff=0,this.nativeRow=o.row+a,this.nativeRowOff=0}else void 0!==i.nativeCol?(this.nativeCol=i.nativeCol||0,this.nativeColOff=i.nativeColOff||0,this.nativeRow=i.nativeRow||0,this.nativeRowOff=i.nativeRowOff||0):void 0!==i.col?(this.col=i.col+a,this.row=i.row+a):(this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0);else this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0;this.worksheet=t}var t,i,o;return t=e,o=[{key:"asInstance",value:function(t){return t instanceof e||null==t?t:new e(t)}}],(i=[{key:"col",get:function(){return this.nativeCol+Math.min(this.colWidth-1,this.nativeColOff)/this.colWidth},set:function(e){this.nativeCol=Math.floor(e),this.nativeColOff=Math.floor((e-this.nativeCol)*this.colWidth)}},{key:"row",get:function(){return this.nativeRow+Math.min(this.rowHeight-1,this.nativeRowOff)/this.rowHeight},set:function(e){this.nativeRow=Math.floor(e),this.nativeRowOff=Math.floor((e-this.nativeRow)*this.rowHeight)}},{key:"colWidth",get:function(){return this.worksheet&&this.worksheet.getColumn(this.nativeCol+1)&&this.worksheet.getColumn(this.nativeCol+1).isCustomWidth?Math.floor(1e4*this.worksheet.getColumn(this.nativeCol+1).width):64e4}},{key:"rowHeight",get:function(){return this.worksheet&&this.worksheet.getRow(this.nativeRow+1)&&this.worksheet.getRow(this.nativeRow+1).height?Math.floor(1e4*this.worksheet.getRow(this.nativeRow+1).height):18e4}},{key:"model",get:function(){return{nativeCol:this.nativeCol,nativeColOff:this.nativeColOff,nativeRow:this.nativeRow,nativeRowOff:this.nativeRowOff}},set:function(e){this.nativeCol=e.nativeCol,this.nativeColOff=e.nativeColOff,this.nativeRow=e.nativeRow,this.nativeRowOff=e.nativeRowOff}}])&&a(t.prototype,i),o&&a(t,o),e}();t.exports=o},{"../utils/col-cache":19}],3:[function(e,t,i){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,t,i){return t&&a(e.prototype,t),i&&a(e,i),e}var o=e("../utils/col-cache"),s=e("../utils/under-dash"),l=e("./enums"),c=e("../utils/shared-formula").slideFormula,u=e("./note"),d=function(){function e(t,i,a){if(n(this,e),!t||!i)throw new Error("A Cell needs a Row");this._row=t,this._column=i,o.validateAddress(a),this._address=a,this._value=S.create(e.Types.Null,this),this.style=this._mergeStyle(t.style,i.style,{}),this._mergeCount=0}return r(e,[{key:"destroy",value:function(){delete this.style,delete this._value,delete this._row,delete this._column,delete this._address}},{key:"_mergeStyle",value:function(e,t,i){var n=e&&e.numFmt||t&&t.numFmt;n&&(i.numFmt=n);var a=e&&e.font||t&&t.font;a&&(i.font=a);var r=e&&e.alignment||t&&t.alignment;r&&(i.alignment=r);var o=e&&e.border||t&&t.border;o&&(i.border=o);var s=e&&e.fill||t&&t.fill;s&&(i.fill=s);var l=e&&e.protection||t&&t.protection;return l&&(i.protection=l),i}},{key:"toCsvString",value:function(){return this._value.toCsvString()}},{key:"addMergeRef",value:function(){this._mergeCount++}},{key:"releaseMergeRef",value:function(){this._mergeCount--}},{key:"merge",value:function(t,i){this._value.release(),this._value=S.create(e.Types.Merge,this,t),i||(this.style=t.style)}},{key:"unmerge",value:function(){this.type===e.Types.Merge&&(this._value.release(),this._value=S.create(e.Types.Null,this),this.style=this._mergeStyle(this._row.style,this._column.style,{}))}},{key:"isMergedTo",value:function(t){return this._value.type===e.Types.Merge&&this._value.isMergedTo(t)}},{key:"toString",value:function(){return this.text}},{key:"_upgradeToHyperlink",value:function(t){this.type===e.Types.String&&(this._value=S.create(e.Types.Hyperlink,this,{text:this._value.value,hyperlink:t}))}},{key:"addName",value:function(e){this.workbook.definedNames.addEx(this.fullAddress,e)}},{key:"removeName",value:function(e){this.workbook.definedNames.removeEx(this.fullAddress,e)}},{key:"removeAllNames",value:function(){this.workbook.definedNames.removeAllNames(this.fullAddress)}},{key:"worksheet",get:function(){return this._row.worksheet}},{key:"workbook",get:function(){return this._row.worksheet.workbook}},{key:"numFmt",get:function(){return this.style.numFmt},set:function(e){this.style.numFmt=e}},{key:"font",get:function(){return this.style.font},set:function(e){this.style.font=e}},{key:"alignment",get:function(){return this.style.alignment},set:function(e){this.style.alignment=e}},{key:"border",get:function(){return this.style.border},set:function(e){this.style.border=e}},{key:"fill",get:function(){return this.style.fill},set:function(e){this.style.fill=e}},{key:"protection",get:function(){return this.style.protection},set:function(e){this.style.protection=e}},{key:"address",get:function(){return this._address}},{key:"row",get:function(){return this._row.number}},{key:"col",get:function(){return this._column.number}},{key:"$col$row",get:function(){return"$".concat(this._column.letter,"$").concat(this.row)}},{key:"type",get:function(){return this._value.type}},{key:"effectiveType",get:function(){return this._value.effectiveType}},{key:"isMerged",get:function(){return this._mergeCount>0||this.type===e.Types.Merge}},{key:"master",get:function(){return this.type===e.Types.Merge?this._value.master:this}},{key:"isHyperlink",get:function(){return this._value.type===e.Types.Hyperlink}},{key:"hyperlink",get:function(){return this._value.hyperlink}},{key:"value",get:function(){return this._value.value},set:function(t){this.type!==e.Types.Merge?(this._value.release(),this._value=S.create(S.getType(t),this,t)):this._value.master.value=t}},{key:"note",get:function(){return this._comment&&this._comment.note},set:function(e){this._comment=new u(e)}},{key:"text",get:function(){return this._value.toString()}},{key:"html",get:function(){return s.escapeHtml(this.text)}},{key:"formula",get:function(){return this._value.formula}},{key:"result",get:function(){return this._value.result}},{key:"formulaType",get:function(){return this._value.formulaType}},{key:"fullAddress",get:function(){return{sheetName:this._row.worksheet.name,address:this.address,row:this.row,col:this.col}}},{key:"name",get:function(){return this.names[0]},set:function(e){this.names=[e]}},{key:"names",get:function(){return this.workbook.definedNames.getNamesEx(this.fullAddress)},set:function(e){var t=this,i=this.workbook.definedNames;i.removeAllNames(this.fullAddress),e.forEach((function(e){i.addEx(t.fullAddress,e)}))}},{key:"_dataValidations",get:function(){return this.worksheet.dataValidations}},{key:"dataValidation",get:function(){return this._dataValidations.find(this.address)},set:function(e){this._dataValidations.add(this.address,e)}},{key:"model",get:function(){var e=this._value.model;return e.style=this.style,this._comment&&(e.comment=this._comment.model),e},set:function(e){if(this._value.release(),this._value=S.create(e.type,this),this._value.model=e,e.comment)switch(e.comment.type){case"note":this._comment=u.fromModel(e.comment)}e.style?this.style=e.style:this.style={}}}]),e}();d.Types=l.ValueType;var f=function(){function e(t){n(this,e),this.model={address:t.address,type:d.Types.Null}}return r(e,[{key:"toCsvString",value:function(){return""}},{key:"release",value:function(){}},{key:"toString",value:function(){return""}},{key:"value",get:function(){return null},set:function(e){}},{key:"type",get:function(){return d.Types.Null}},{key:"effectiveType",get:function(){return d.Types.Null}},{key:"address",get:function(){return this.model.address},set:function(e){this.model.address=e}}]),e}(),h=function(){function e(t,i){n(this,e),this.model={address:t.address,type:d.Types.Number,value:i}}return r(e,[{key:"toCsvString",value:function(){return this.model.value.toString()}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value.toString()}},{key:"value",get:function(){return this.model.value},set:function(e){this.model.value=e}},{key:"type",get:function(){return d.Types.Number}},{key:"effectiveType",get:function(){return d.Types.Number}},{key:"address",get:function(){return this.model.address},set:function(e){this.model.address=e}}]),e}(),p=function(){function e(t,i){n(this,e),this.model={address:t.address,type:d.Types.String,value:i}}return r(e,[{key:"toCsvString",value:function(){return'"'.concat(this.model.value.replace(/"/g,'""'),'"')}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value}},{key:"value",get:function(){return this.model.value},set:function(e){this.model.value=e}},{key:"type",get:function(){return d.Types.String}},{key:"effectiveType",get:function(){return d.Types.String}},{key:"address",get:function(){return this.model.address},set:function(e){this.model.address=e}}]),e}(),m=function(){function e(t,i){n(this,e),this.model={address:t.address,type:d.Types.String,value:i}}return r(e,[{key:"toString",value:function(){return this.model.value.richText.map((function(e){return e.text})).join("")}},{key:"toCsvString",value:function(){return'"'.concat(this.text.replace(/"/g,'""'),'"')}},{key:"release",value:function(){}},{key:"value",get:function(){return this.model.value},set:function(e){this.model.value=e}},{key:"type",get:function(){return d.Types.RichText}},{key:"effectiveType",get:function(){return d.Types.RichText}},{key:"address",get:function(){return this.model.address},set:function(e){this.model.address=e}}]),e}(),g=function(){function e(t,i){n(this,e),this.model={address:t.address,type:d.Types.Date,value:i}}return r(e,[{key:"toCsvString",value:function(){return this.model.value.toISOString()}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value.toString()}},{key:"value",get:function(){return this.model.value},set:function(e){this.model.value=e}},{key:"type",get:function(){return d.Types.Date}},{key:"effectiveType",get:function(){return d.Types.Date}},{key:"address",get:function(){return this.model.address},set:function(e){this.model.address=e}}]),e}(),v=function(){function e(t,i){n(this,e),this.model={address:t.address,type:d.Types.Hyperlink,text:i?i.text:void 0,hyperlink:i?i.hyperlink:void 0},i&&i.tooltip&&(this.model.tooltip=i.tooltip)}return r(e,[{key:"toCsvString",value:function(){return this.model.hyperlink}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.text}},{key:"value",get:function(){var e={text:this.model.text,hyperlink:this.model.hyperlink};return this.model.tooltip&&(e.tooltip=this.model.tooltip),e},set:function(e){this.model={text:e.text,hyperlink:e.hyperlink},e.tooltip&&(this.model.tooltip=e.tooltip)}},{key:"text",get:function(){return this.model.text},set:function(e){this.model.text=e}},{key:"hyperlink",get:function(){return this.model.hyperlink},set:function(e){this.model.hyperlink=e}},{key:"type",get:function(){return d.Types.Hyperlink}},{key:"effectiveType",get:function(){return d.Types.Hyperlink}},{key:"address",get:function(){return this.model.address},set:function(e){this.model.address=e}}]),e}(),b=function(){function e(t,i){n(this,e),this.model={address:t.address,type:d.Types.Merge,master:i?i.address:void 0},this._master=i,i&&i.addMergeRef()}return r(e,[{key:"isMergedTo",value:function(e){return e===this._master}},{key:"toCsvString",value:function(){return""}},{key:"release",value:function(){this._master.releaseMergeRef()}},{key:"toString",value:function(){return this.value.toString()}},{key:"value",get:function(){return this._master.value},set:function(e){e instanceof d?(this._master&&this._master.releaseMergeRef(),e.addMergeRef(),this._master=e):this._master.value=e}},{key:"master",get:function(){return this._master}},{key:"type",get:function(){return d.Types.Merge}},{key:"effectiveType",get:function(){return this._master.effectiveType}},{key:"address",get:function(){return this.model.address},set:function(e){this.model.address=e}}]),e}(),y=function(){function e(t,i){n(this,e),this.cell=t,this.model={address:t.address,type:d.Types.Formula,shareType:i?i.shareType:void 0,ref:i?i.ref:void 0,formula:i?i.formula:void 0,sharedFormula:i?i.sharedFormula:void 0,result:i?i.result:void 0}}return r(e,[{key:"_copyModel",value:function(e){var t={},i=function(i){var n=e[i];n&&(t[i]=n)};return i("formula"),i("result"),i("ref"),i("shareType"),i("sharedFormula"),t}},{key:"validate",value:function(e){switch(S.getType(e)){case d.Types.Null:case d.Types.String:case d.Types.Number:case d.Types.Date:break;case d.Types.Hyperlink:case d.Types.Formula:default:throw new Error("Cannot process that type of result value")}}},{key:"_getTranslatedFormula",value:function(){if(!this._translatedFormula&&this.model.sharedFormula){var e=this.cell.worksheet.findCell(this.model.sharedFormula);this._translatedFormula=e&&c(e.formula,e.address,this.model.address)}return this._translatedFormula}},{key:"toCsvString",value:function(){return"".concat(this.model.result||"")}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.result?this.model.result.toString():""}},{key:"value",get:function(){return this._copyModel(this.model)},set:function(e){this.model=this._copyModel(e)}},{key:"dependencies",get:function(){return{ranges:this.formula.match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g),cells:this.formula.replace(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g,"").match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}/g)}}},{key:"formula",get:function(){return this.model.formula||this._getTranslatedFormula()},set:function(e){this.model.formula=e}},{key:"formulaType",get:function(){return this.model.formula?l.FormulaType.Master:this.model.sharedFormula?l.FormulaType.Shared:l.FormulaType.None}},{key:"result",get:function(){return this.model.result},set:function(e){this.model.result=e}},{key:"type",get:function(){return d.Types.Formula}},{key:"effectiveType",get:function(){var e=this.model.result;return null==e?l.ValueType.Null:e instanceof String||"string"==typeof e?l.ValueType.String:"number"==typeof e?l.ValueType.Number:e instanceof Date?l.ValueType.Date:e.text&&e.hyperlink?l.ValueType.Hyperlink:e.formula?l.ValueType.Formula:l.ValueType.Null}},{key:"address",get:function(){return this.model.address},set:function(e){this.model.address=e}}]),e}(),w=function(){function e(t,i){n(this,e),this.model={address:t.address,type:d.Types.SharedString,value:i}}return r(e,[{key:"toCsvString",value:function(){return this.model.value.toString()}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value.toString()}},{key:"value",get:function(){return this.model.value},set:function(e){this.model.value=e}},{key:"type",get:function(){return d.Types.SharedString}},{key:"effectiveType",get:function(){return d.Types.SharedString}},{key:"address",get:function(){return this.model.address},set:function(e){this.model.address=e}}]),e}(),_=function(){function e(t,i){n(this,e),this.model={address:t.address,type:d.Types.Boolean,value:i}}return r(e,[{key:"toCsvString",value:function(){return this.model.value?1:0}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value.toString()}},{key:"value",get:function(){return this.model.value},set:function(e){this.model.value=e}},{key:"type",get:function(){return d.Types.Boolean}},{key:"effectiveType",get:function(){return d.Types.Boolean}},{key:"address",get:function(){return this.model.address},set:function(e){this.model.address=e}}]),e}(),I=function(){function e(t,i){n(this,e),this.model={address:t.address,type:d.Types.Error,value:i}}return r(e,[{key:"toCsvString",value:function(){return this.toString()}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value.error.toString()}},{key:"value",get:function(){return this.model.value},set:function(e){this.model.value=e}},{key:"type",get:function(){return d.Types.Error}},{key:"effectiveType",get:function(){return d.Types.Error}},{key:"address",get:function(){return this.model.address},set:function(e){this.model.address=e}}]),e}(),x=function(){function e(t,i){n(this,e),this.model={address:t.address,type:d.Types.String,value:JSON.stringify(i),rawValue:i}}return r(e,[{key:"toCsvString",value:function(){return this.model.value}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value}},{key:"value",get:function(){return this.model.rawValue},set:function(e){this.model.rawValue=e,this.model.value=JSON.stringify(e)}},{key:"type",get:function(){return d.Types.String}},{key:"effectiveType",get:function(){return d.Types.String}},{key:"address",get:function(){return this.model.address},set:function(e){this.model.address=e}}]),e}(),S={getType:function(e){return null==e?d.Types.Null:e instanceof String||"string"==typeof e?d.Types.String:"number"==typeof e?d.Types.Number:"boolean"==typeof e?d.Types.Boolean:e instanceof Date?d.Types.Date:e.text&&e.hyperlink?d.Types.Hyperlink:e.formula||e.sharedFormula?d.Types.Formula:e.richText?d.Types.RichText:e.sharedString?d.Types.SharedString:e.error?d.Types.Error:d.Types.JSON},types:[{t:d.Types.Null,f:f},{t:d.Types.Number,f:h},{t:d.Types.String,f:p},{t:d.Types.Date,f:g},{t:d.Types.Hyperlink,f:v},{t:d.Types.Formula,f:y},{t:d.Types.Merge,f:b},{t:d.Types.JSON,f:x},{t:d.Types.SharedString,f:w},{t:d.Types.RichText,f:m},{t:d.Types.Boolean,f:_},{t:d.Types.Error,f:I}].reduce((function(e,t){return e[t.t]=t.f,e}),[]),create:function(e,t,i){var n=this.types[e];if(!n)throw new Error("Could not create Value of type ".concat(e));return new n(t,i)}};t.exports=d},{"../utils/col-cache":19,"../utils/shared-formula":22,"../utils/under-dash":25,"./enums":7,"./note":9}],4:[function(e,t,i){"use strict";function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var a=e("../utils/under-dash"),r=e("./enums"),o=e("../utils/col-cache"),s=function(){function e(t,i,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._worksheet=t,this._number=i,!1!==n&&(this.defn=n)}var t,i,s;return t=e,s=[{key:"toModel",value:function(e){var t=[],i=null;return e&&e.forEach((function(e,n){e.isDefault?i&&(i=null):i&&e.equivalentTo(i)?i.max=n+1:(i={min:n+1,max:n+1,width:void 0!==e.width?e.width:9,style:e.style,isCustomWidth:e.isCustomWidth,hidden:e.hidden,outlineLevel:e.outlineLevel,collapsed:e.collapsed},t.push(i))})),t.length?t:void 0}},{key:"fromModel",value:function(t,i){i=i||[];for(var n=[],a=1,r=0;r<i.length;){for(var o=i[r++];a<o.min;)n.push(new e(t,a++));for(;a<=o.max;)n.push(new e(t,a++,o))}return n.length?n:null}}],(i=[{key:"toString",value:function(){return JSON.stringify({key:this.key,width:this.width,headers:this.headers.length?this.headers:void 0})}},{key:"equivalentTo",value:function(e){return this.width===e.width&&this.hidden===e.hidden&&this.outlineLevel===e.outlineLevel&&a.isEqual(this.style,e.style)}},{key:"eachCell",value:function(e,t){var i=this.number;t||(t=e,e=null),this._worksheet.eachRow(e,(function(e,n){t(e.getCell(i),n)}))}},{key:"_applyStyle",value:function(e,t){return this.style[e]=t,this.eachCell((function(i){i[e]=t})),t}},{key:"number",get:function(){return this._number}},{key:"worksheet",get:function(){return this._worksheet}},{key:"letter",get:function(){return o.n2l(this._number)}},{key:"isCustomWidth",get:function(){return void 0!==this.width&&9!==this.width}},{key:"defn",get:function(){return{header:this._header,key:this.key,width:this.width,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel}},set:function(e){e?(this.key=e.key,this.width=void 0!==e.width?e.width:9,this.outlineLevel=e.outlineLevel,e.style?this.style=e.style:this.style={},this.header=e.header,this._hidden=!!e.hidden):(delete this._header,delete this._key,delete this.width,this.style={},this.outlineLevel=0)}},{key:"headers",get:function(){return this._header&&this._header instanceof Array?this._header:[this._header]}},{key:"header",get:function(){return this._header},set:function(e){var t=this;void 0!==e?(this._header=e,this.headers.forEach((function(e,i){t._worksheet.getCell(i+1,t.number).value=e}))):this._header=void 0}},{key:"key",get:function(){return this._key},set:function(e){(this._key&&this._worksheet.getColumnKey(this._key))===this&&this._worksheet.deleteColumnKey(this._key),this._key=e,e&&this._worksheet.setColumnKey(this._key,this)}},{key:"hidden",get:function(){return!!this._hidden},set:function(e){this._hidden=e}},{key:"outlineLevel",get:function(){return this._outlineLevel||0},set:function(e){this._outlineLevel=e}},{key:"collapsed",get:function(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelCol)}},{key:"isDefault",get:function(){if(this.isCustomWidth)return!1;if(this.hidden)return!1;if(this.outlineLevel)return!1;var e=this.style;return!e||!(e.font||e.numFmt||e.alignment||e.border||e.fill||e.protection)}},{key:"headerCount",get:function(){return this.headers.length}},{key:"values",get:function(){var e=[];return this.eachCell((function(t,i){t&&t.type!==r.ValueType.Null&&(e[i]=t.value)})),e},set:function(e){var t=this;if(e){var i=this.number,n=0;e.hasOwnProperty("0")&&(n=1),e.forEach((function(e,a){t._worksheet.getCell(a+n,i).value=e}))}}},{key:"numFmt",get:function(){return this.style.numFmt},set:function(e){this._applyStyle("numFmt",e)}},{key:"font",get:function(){return this.style.font},set:function(e){this._applyStyle("font",e)}},{key:"alignment",get:function(){return this.style.alignment},set:function(e){this._applyStyle("alignment",e)}},{key:"protection",get:function(){return this.style.protection},set:function(e){this._applyStyle("protection",e)}},{key:"border",get:function(){return this.style.border},set:function(e){this._applyStyle("border",e)}},{key:"fill",get:function(){return this.style.fill},set:function(e){this._applyStyle("fill",e)}}])&&n(t.prototype,i),s&&n(t,s),e}();t.exports=s},{"../utils/col-cache":19,"../utils/under-dash":25,"./enums":7}],5:[function(e,t,i){"use strict";function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.model=t||{}}var t,i,a;return t=e,(i=[{key:"add",value:function(e,t){return this.model[e]=t}},{key:"find",value:function(e){return this.model[e]}},{key:"remove",value:function(e){this.model[e]=void 0}}])&&n(t.prototype,i),a&&n(t,a),e}();t.exports=a},{}],6:[function(e,t,i){"use strict";function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var a=e("../utils/under-dash"),r=e("../utils/col-cache"),o=e("../utils/cell-matrix"),s=e("./range"),l=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/,c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.matrixMap={}}var t,i,c;return t=e,(i=[{key:"getMatrix",value:function(e){return this.matrixMap[e]||(this.matrixMap[e]=new o)}},{key:"add",value:function(e,t){var i=r.decodeEx(e);this.addEx(i,t)}},{key:"addEx",value:function(e,t){var i=this.getMatrix(t);if(e.top)for(var n=e.left;n<=e.right;n++)for(var a=e.top;a<=e.bottom;a++){var o={sheetName:e.sheetName,address:r.n2l(n)+a,row:a,col:n};i.addCellEx(o)}else i.addCellEx(e)}},{key:"remove",value:function(e,t){var i=r.decodeEx(e);this.removeEx(i,t)}},{key:"removeEx",value:function(e,t){this.getMatrix(t).removeCellEx(e)}},{key:"removeAllNames",value:function(e){a.each(this.matrixMap,(function(t){t.removeCellEx(e)}))}},{key:"forEach",value:function(e){a.each(this.matrixMap,(function(t,i){t.forEach((function(t){e(i,t)}))}))}},{key:"getNames",value:function(e){return this.getNamesEx(r.decodeEx(e))}},{key:"getNamesEx",value:function(e){return a.map(this.matrixMap,(function(t,i){return t.findCellEx(e)&&i})).filter(Boolean)}},{key:"_explore",value:function(e,t){t.mark=!1;var i,n,a=t.sheetName,r=new s(t.row,t.col,t.row,t.col,a);function o(i,n){var o=e.findCellAt(a,i,t.col);return!(!o||!o.mark||(r[n]=i,o.mark=!1,0))}for(n=t.row-1;o(n,"top");n--);for(n=t.row+1;o(n,"bottom");n++);function l(t,i){var o=[];for(n=r.top;n<=r.bottom;n++){var s=e.findCellAt(a,n,t);if(!s||!s.mark)return!1;o.push(s)}r[i]=t;for(var l=0;l<o.length;l++)o[l].mark=!1;return!0}for(i=t.col-1;l(i,"left");i--);for(i=t.col+1;l(i,"right");i++);return r}},{key:"getRanges",value:function(e,t){var i=this;return(t=t||this.matrixMap[e])?(t.forEach((function(e){e.mark=!0})),{name:e,ranges:t.map((function(e){return e.mark&&i._explore(t,e)})).filter(Boolean).map((function(e){return e.$shortRange}))}):{name:e,ranges:[]}}},{key:"normaliseMatrix",value:function(e,t){e.forEachInSheet(t,(function(e,t,i){e&&(e.row===t&&e.col===i||(e.row=t,e.col=i,e.address=r.n2l(i)+t))}))}},{key:"spliceRows",value:function(e,t,i,n){var r=this;a.each(this.matrixMap,(function(a){a.spliceRows(e,t,i,n),r.normaliseMatrix(a,e)}))}},{key:"spliceColumns",value:function(e,t,i,n){var r=this;a.each(this.matrixMap,(function(a){a.spliceColumns(e,t,i,n),r.normaliseMatrix(a,e)}))}},{key:"model",get:function(){var e=this;return a.map(this.matrixMap,(function(t,i){return e.getRanges(i,t)})).filter((function(e){return e.ranges.length}))},set:function(e){var t=this.matrixMap={};e.forEach((function(e){var i=t[e.name]=new o;e.ranges.forEach((function(e){l.test(e.split("!").pop()||"")&&i.addCell(e)}))}))}}])&&n(t.prototype,i),c&&n(t,c),e}();t.exports=c},{"../utils/cell-matrix":18,"../utils/col-cache":19,"../utils/under-dash":25,"./range":10}],7:[function(e,t,i){"use strict";t.exports={ValueType:{Null:0,Merge:1,Number:2,String:3,Date:4,Hyperlink:5,Formula:6,SharedString:7,RichText:8,Boolean:9,Error:10},FormulaType:{None:0,Master:1,Shared:2},RelationshipType:{None:0,OfficeDocument:1,Worksheet:2,CalcChain:3,SharedStrings:4,Styles:5,Theme:6,Hyperlink:7},DocumentType:{Xlsx:1},ReadingOrder:{LeftToRight:1,RightToLeft:2},ErrorValue:{NotApplicable:"#N/A",Ref:"#REF!",Name:"#NAME?",DivZero:"#DIV/0!",Null:"#NULL!",Value:"#VALUE!",Num:"#NUM!"}}},{}],8:[function(e,t,i){"use strict";function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var a=e("../utils/col-cache"),r=e("./anchor"),o=function(){function e(t,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.worksheet=t,this.model=i}var t,i,o;return t=e,(i=[{key:"model",get:function(){switch(this.type){case"background":return{type:this.type,imageId:this.imageId};case"image":return{type:this.type,imageId:this.imageId,hyperlinks:this.range.hyperlinks,range:{tl:this.range.tl.model,br:this.range.br&&this.range.br.model,ext:this.range.ext,editAs:this.range.editAs}};default:throw new Error("Invalid Image Type")}},set:function(e){var t=e.type,i=e.imageId,n=e.range,o=e.hyperlinks;if(this.type=t,this.imageId=i,"image"===t)if("string"==typeof n){var s=a.decode(n);this.range={tl:new r(this.worksheet,{col:s.left,row:s.top},-1),br:new r(this.worksheet,{col:s.right,row:s.bottom},0),editAs:"oneCell"}}else this.range={tl:new r(this.worksheet,n.tl,0),br:n.br&&new r(this.worksheet,n.br,0),ext:n.ext,editAs:n.editAs,hyperlinks:o||n.hyperlinks}}}])&&n(t.prototype,i),o&&n(t,o),e}();t.exports=o},{"../utils/col-cache":19,"./anchor":2}],9:[function(e,t,i){"use strict";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 a(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var r=e("../utils/under-dash"),o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.note=t}var t,i,o;return t=e,o=[{key:"fromModel",value:function(t){var i=new e;return i.model=t,i}}],(i=[{key:"model",get:function(){var t=null;switch(n(this.note)){case"string":t={type:"note",note:{texts:[{text:this.note}]}};break;default:t={type:"note",note:this.note}}return r.deepMerge({},e.DEFAULT_CONFIGS,t)},set:function(e){var t=e.note,i=t.texts;1===i.length&&1===Object.keys(i[0]).length?this.note=i[0].text:this.note=t}}])&&a(t.prototype,i),o&&a(t,o),e}();o.DEFAULT_CONFIGS={note:{margins:{insetmode:"auto",inset:[.13,.13,.25,.25]},protection:{locked:"True",lockText:"True"},editAs:"absolute"}},t.exports=o},{"../utils/under-dash":25}],10:[function(e,t,i){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var r=e("../utils/col-cache"),o=function(){function e(){n(this,e),this.decode(arguments)}var t,i,o;return t=e,(i=[{key:"setTLBR",value:function(e,t,i,n,a){if(arguments.length<4){var o=r.decodeAddress(e),s=r.decodeAddress(t);this.model={top:Math.min(o.row,s.row),left:Math.min(o.col,s.col),bottom:Math.max(o.row,s.row),right:Math.max(o.col,s.col),sheetName:i},this.setTLBR(o.row,o.col,s.row,s.col,a)}else this.model={top:Math.min(e,i),left:Math.min(t,n),bottom:Math.max(e,i),right:Math.max(t,n),sheetName:a}}},{key:"decode",value:function(t){switch(t.length){case 5:this.setTLBR(t[0],t[1],t[2],t[3],t[4]);break;case 4:this.setTLBR(t[0],t[1],t[2],t[3]);break;case 3:this.setTLBR(t[0],t[1],t[2]);break;case 2:this.setTLBR(t[0],t[1]);break;case 1:var i=t[0];if(i instanceof e)this.model={top:i.model.top,left:i.model.left,bottom:i.model.bottom,right:i.model.right,sheetName:i.sheetName};else if(i instanceof Array)this.decode(i);else if(i.top&&i.left&&i.bottom&&i.right)this.model={top:i.top,left:i.left,bottom:i.bottom,right:i.right,sheetName:i.sheetName};else{var n=r.decodeEx(i);n.top?this.model={top:n.top,left:n.left,bottom:n.bottom,right:n.right,sheetName:n.sheetName}:this.model={top:n.row,left:n.col,bottom:n.row,right:n.col,sheetName:n.sheetName}}break;case 0:this.model={top:0,left:0,bottom:0,right:0};break;default:throw new Error("Invalid number of arguments to _getDimensions() - ".concat(t.length))}}},{key:"expand",value:function(e,t,i,n){(!this.model.top||e<this.top)&&(this.top=e),(!this.model.left||t<this.left)&&(this.left=t),(!this.model.bottom||i>this.bottom)&&(this.bottom=i),(!this.model.right||n>this.right)&&(this.right=n)}},{key:"expandRow",value:function(e){if(e){var t=e.dimensions,i=e.number;t&&this.expand(i,t.min,i,t.max)}}},{key:"expandToAddress",value:function(e){var t=r.decodeEx(e);this.expand(t.row,t.col,t.row,t.col)}},{key:"toString",value:function(){return this.range}},{key:"intersects",value:function(e){return!(e.sheetName&&this.sheetName&&e.sheetName!==this.sheetName||e.bottom<this.top||e.top>this.bottom||e.right<this.left||e.left>this.right)}},{key:"contains",value:function(e){var t=r.decodeEx(e);return this.containsEx(t)}},{key:"containsEx",value:function(e){return(!e.sheetName||!this.sheetName||e.sheetName===this.sheetName)&&e.row>=this.top&&e.row<=this.bottom&&e.col>=this.left&&e.col<=this.right}},{key:"forEachAddress",value:function(e){for(var t=this.left;t<=this.right;t++)for(var i=this.top;i<=this.bottom;i++)e(r.encodeAddress(i,t),i,t)}},{key:"top",get:function(){return this.model.top||1},set:function(e){this.model.top=e}},{key:"left",get:function(){return this.model.left||1},set:function(e){this.model.left=e}},{key:"bottom",get:function(){return this.model.bottom||1},set:function(e){this.model.bottom=e}},{key:"right",get:function(){return this.model.right||1},set:function(e){this.model.right=e}},{key:"sheetName",get:function(){return this.model.sheetName},set:function(e){this.model.sheetName=e}},{key:"_serialisedSheetName",get:function(){var e=this.model.sheetName;return e?/^[a-zA-Z0-9]*$/.test(e)?"".concat(e,"!"):"'".concat(e,"'!"):""}},{key:"tl",get:function(){return r.n2l(this.left)+this.top}},{key:"$t$l",get:function(){return"$".concat(r.n2l(this.left),"$").concat(this.top)}},{key:"br",get:function(){return r.n2l(this.right)+this.bottom}},{key:"$b$r",get:function(){return"$".concat(r.n2l(this.right),"$").concat(this.bottom)}},{key:"range",get:function(){return"".concat(this._serialisedSheetName+this.tl,":").concat(this.br)}},{key:"$range",get:function(){return"".concat(this._serialisedSheetName+this.$t$l,":").concat(this.$b$r)}},{key:"shortRange",get:function(){return this.count>1?this.range:this._serialisedSheetName+this.tl}},{key:"$shortRange",get:function(){return this.count>1?this.$range:this._serialisedSheetName+this.$t$l}},{key:"count",get:function(){return(1+this.bottom-this.top)*(1+this.right-this.left)}}])&&a(t.prototype,i),o&&a(t,o),e}();t.exports=o},{"../utils/col-cache":19}],11:[function(e,t,i){"use strict";function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var a=e("../utils/under-dash"),r=e("./enums"),o=e("../utils/col-cache"),s=e("./cell"),l=function(){function e(t,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._worksheet=t,this._number=i,this._cells=[],this.style={},this.outlineLevel=0}var t,i,l;return t=e,(i=[{key:"commit",value:function(){this._worksheet._commitRow(this)}},{key:"destroy",value:function(){delete this._worksheet,delete this._cells,delete this.style}},{key:"findCell",value:function(e){return this._cells[e-1]}},{key:"getCellEx",value:function(e){var t=this._cells[e.col-1];if(!t){var i=this._worksheet.getColumn(e.col);t=new s(this,i,e.address),this._cells[e.col-1]=t}return t}},{key:"getCell",value:function(e){if("string"==typeof e){var t=this._worksheet.getColumnKey(e);e=t?t.number:o.l2n(e)}return this._cells[e-1]||this.getCellEx({address:o.encodeAddress(this._number,e),row:this._number,col:e})}},{key:"splice",value:function(e,t){for(var i=e+t,n=arguments.length,a=new Array(n>2?n-2:0),r=2;r<n;r++)a[r-2]=arguments[r];var o,s,l,c=a.length-t,u=this._cells.length;if(c<0)for(o=e+a.length;o<=u;o++)l=this._cells[o-1],(s=this._cells[o-c-1])?((l=this.getCell(o)).value=s.value,l.style=s.style,l._comment=s._comment):l&&(l.value=null,l.style={},l._comment=void 0);else if(c>0)for(o=u;o>=i;o--)(s=this._cells[o-1])?((l=this.getCell(o+c)).value=s.value,l.style=s.style,l._comment=s._comment):this._cells[o+c-1]=void 0;for(o=0;o<a.length;o++)(l=this.getCell(e+o)).value=a[o],l.style={},l._comment=void 0}},{key:"eachCell",value:function(e,t){if(t||(t=e,e=null),e&&e.includeEmpty)for(var i=this._cells.length,n=1;n<=i;n++)t(this.getCell(n),n);else this._cells.forEach((function(e,i){e&&e.type!==r.ValueType.Null&&t(e,i+1)}))}},{key:"addPageBreak",value:function(e,t){var i=this._worksheet,n=Math.max(0,e-1)||0,a=Math.max(0,t-1)||16838,r={id:this._number,max:a,man:1};n&&(r.min=n),i.rowBreaks.push(r)}},{key:"_applyStyle",value:function(e,t){return this.style[e]=t,this._cells.forEach((function(i){i&&(i[e]=t)})),t}},{key:"number",get:function(){return this._number}},{key:"worksheet",get:function(){return this._worksheet}},{key:"values",get:function(){var e=[];return this._cells.forEach((function(t){t&&t.type!==r.ValueType.Null&&(e[t.col]=t.value)})),e},set:function(e){var t=this;if(this._cells=[],e)if(e instanceof Array){var i=0;e.hasOwnProperty("0")&&(i=1),e.forEach((function(e,n){void 0!==e&&(t.getCellEx({address:o.encodeAddress(t._number,n+i),row:t._number,col:n+i}).value=e)}))}else this._worksheet.eachColumnKey((function(i,n){void 0!==e[n]&&(t.getCellEx({address:o.encodeAddress(t._number,i.number),row:t._number,col:i.number}).value=e[n])}))}},{key:"hasValues",get:function(){return a.some(this._cells,(function(e){return e&&e.type!==r.ValueType.Null}))}},{key:"cellCount",get:function(){return this._cells.length}},{key:"actualCellCount",get:function(){var e=0;return this.eachCell((function(){e++})),e}},{key:"dimensions",get:function(){var e=0,t=0;return this._cells.forEach((function(i){i&&i.type!==r.ValueType.Null&&((!e||e>i.col)&&(e=i.col),t<i.col&&(t=i.col))})),e>0?{min:e,max:t}:null}},{key:"numFmt",get:function(){return this.style.numFmt},set:function(e){this._applyStyle("numFmt",e)}},{key:"font",get:function(){return this.style.font},set:function(e){this._applyStyle("font",e)}},{key:"alignment",get:function(){return this.style.alignment},set:function(e){this._applyStyle("alignment",e)}},{key:"protection",get:function(){return this.style.protection},set:function(e){this._applyStyle("protection",e)}},{key:"border",get:function(){return this.style.border},set:function(e){this._applyStyle("border",e)}},{key:"fill",get:function(){return this.style.fill},set:function(e){this._applyStyle("fill",e)}},{key:"hidden",get:function(){return!!this._hidden},set:function(e){this._hidden=e}},{key:"outlineLevel",get:function(){return this._outlineLevel||0},set:function(e){this._outlineLevel=e}},{key:"collapsed",get:function(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelRow)}},{key:"model",get:function(){var e=[],t=0,i=0;return this._cells.forEach((function(n){if(n){var a=n.model;a&&((!t||t>n.col)&&(t=n.col),i<n.col&&(i=n.col),e.push(a))}})),this.height||e.length?{cells:e,number:this.number,min:t,max:i,height:this.height,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel,collapsed:this.collapsed}:null},set:function(e){var t,i=this;if(e.number!==this._number)throw new Error("Invalid row number in model");this._cells=[],e.cells.forEach((function(e){switch(e.type){case s.Types.Merge:break;default:var n;if(e.address)n=o.decodeAddress(e.address);else if(t){var a=t.row,r=t.col+1;n={row:a,col:r,address:o.encodeAddress(a,r),$col$row:"$".concat(o.n2l(r),"$").concat(a)}}t=n,i.getCellEx(n).model=e}})),e.height?this.height=e.height:delete this.height,this.hidden=e.hidden,this.outlineLevel=e.outlineLevel||0,this.style=e.style&&JSON.parse(JSON.stringify(e.style))||{}}}])&&n(t.prototype,i),l&&n(t,l),e}();t.exports=l},{"../utils/col-cache":19,"../utils/under-dash":25,"./cell":3,"./enums":7}],12:[function(e,t,i){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,t,i){return t&&a(e.prototype,t),i&&a(e,i),e}var o=e("../utils/col-cache"),s=function(){function e(t,i,a){n(this,e),this.table=t,this.column=i,this.index=a}return r(e,[{key:"_set",value:function(e,t){this.table.cacheState(),this.column[e]=t}},{key:"name",get:function(){return this.column.name},set:function(e){this._set("name",e)}},{key:"filterButton",get:function(){return this.column.filterButton},set:function(e){this.column.filterButton=e}},{key:"style",get:function(){return this.column.style},set:function(e){this.column.style=e}},{key:"totalsRowLabel",get:function(){return this.column.totalsRowLabel},set:function(e){this._set("totalsRowLabel",e)}},{key:"totalsRowFunction",get:function(){return this.column.totalsRowFunction},set:function(e){this._set("totalsRowFunction",e)}},{key:"totalsRowResult",get:function(){return this.column.totalsRowResult},set:function(e){this._set("totalsRowResult",e)}},{key:"totalsRowFormula",get:function(){return this.column.totalsRowFormula},set:function(e){this._set("totalsRowFormula",e)}}]),e}(),l=function(){function e(t,i){n(this,e),this.worksheet=t,i&&(this.table=i,this.validate(),this.store())}return r(e,[{key:"getFormula",value:function(e){switch(e.totalsRowFunction){case"none":return null;case"average":return"SUBTOTAL(101,".concat(this.table.name,"[").concat(e.name,"])");case"countNums":return"SUBTOTAL(102,".concat(this.table.name,"[").concat(e.name,"])");case"count":return"SUBTOTAL(103,".concat(this.table.name,"[").concat(e.name,"])");case"max":return"SUBTOTAL(104,".concat(this.table.name,"[").concat(e.name,"])");case"min":return"SUBTOTAL(105,".concat(this.table.name,"[").concat(e.name,"])");case"stdDev":return"SUBTOTAL(106,".concat(this.table.name,"[").concat(e.name,"])");case"var":return"SUBTOTAL(107,".concat(this.table.name,"[").concat(e.name,"])");case"sum":return"SUBTOTAL(109,".concat(this.table.name,"[").concat(e.name,"])");case"custom":return e.totalsRowFormula;default:throw new Error("Invalid Totals Row Function: ".concat(e.totalsRowFunction))}}},{key:"validate",value:function(){var e=this,t=this.table,i=function(e,t,i){void 0===e[t]&&(e[t]=i)};i(t,"headerRow",!0),i(t,"totalsRow",!1),i(t,"style",{}),i(t.style,"theme","TableStyleMedium2"),i(t.style,"showFirstColumn",!1),i(t.style,"showLastColumn",!1),i(t.style,"showRowStripes",!1),i(t.style,"showColumnStripes",!1);var n=function(e,t){if(!e)throw new Error(t)};n(t.ref,"Table must have ref"),n(t.columns,"Table must have column definitions"),n(t.rows,"Table must have row definitions"),t.tl=o.decodeAddress(t.ref);var a=t.tl,r=a.row,s=a.col;n(r>0,"Table must be on valid row"),n(s>0,"Table must be on valid col");var l=this.width,c=this.filterHeight,u=this.tableHeight;t.autoFilterRef=o.encode(r,s,r+c-1,s+l-1),t.tableRef=o.encode(r,s,r+u-1,s+l-1),t.columns.forEach((function(t,a){n(t.name,"Column ".concat(a," must have a name")),0===a?i(t,"totalsRowLabel","Total"):(i(t,"totalsRowFunction","none"),t.totalsRowFormula=e.getFormula(t))}))}},{key:"store",value:function(){var e=this,t=function(e,t){t&&Object.keys(t).forEach((function(i){e[i]=t[i]}))},i=this.worksheet,n=this.table,a=n.tl,r=a.row,o=a.col,s=0;if(n.headerRow){var l=i.getRow(r+s++);n.columns.forEach((function(e,i){var n=e.style,a=e.name,r=l.getCell(o+i);r.value=a,t(r,n)}))}if(n.rows.forEach((function(e){var a=i.getRow(r+s++);e.forEach((function(e,i){var r=a.getCell(o+i);r.value=e,t(r,n.columns[i].style)}))})),n.totalsRow){var c=i.getRow(r+s++);n.columns.forEach((function(i,n){var a=c.getCell(o+n);if(0===n)a.value=i.totalsRowLabel;else{var r=e.getFormula(i);a.value=r?{formula:i.totalsRowFormula,result:i.totalsRowResult}:null}t(a,i.style)}))}}},{key:"load",value:function(e){var t=this,i=this.table,n=i.tl,a=n.row,r=n.col,o=0;if(i.headerRow){var s=e.getRow(a+o++);i.columns.forEach((function(e,t){s.getCell(r+t).value=e.name}))}if(i.rows.forEach((function(t){var i=e.getRow(a+o++);t.forEach((function(e,t){i.getCell(r+t).value=e}))})),i.totalsRow){var l=e.getRow(a+o++);i.columns.forEach((function(e,i){var n=l.getCell(r+i);0===i?n.value=e.totalsRowLabel:t.getFormula(e)&&(n.value={formula:e.totalsRowFormula,result:e.totalsRowResult})}))}}},{key:"cacheState",value:function(){this._cache||(this._cache={ref:this.ref,width:this.width,tableHeight:this.tableHeight})}},{key:"commit",value:function(){if(this._cache){this.validate();var e=o.decodeAddress(this._cache.ref);if(this.ref!==this._cache.ref)for(var t=0;t<this._cache.tableHeight;t++)for(var i=this.worksheet.getRow(e.row+t),n=0;n<this._cache.width;n++)i.getCell(e.col+n).value=null;else{for(var a=this.tableHeight;a<this._cache.tableHeight;a++)for(var r=this.worksheet.getRow(e.row+a),s=0;s<this._cache.width;s++)r.getCell(e.col+s).value=null;for(var l=0;l<this.tableHeight;l++)for(var c=this.worksheet.getRow(e.row+l),u=this.width;u<this._cache.width;u++)c.getCell(e.col+u).value=null}this.store()}}},{key:"addRow",value:function(e,t){this.cacheState(),void 0===t?this.table.rows.push(e):this.table.rows.splice(t,0,e)}},{key:"removeRows",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cacheState(),this.table.rows.splice(e,t)}},{key:"getColumn",value:function(e){var t=this.table.columns[e];return new s(this,t,e)}},{key:"addColumn",value:function(e,t,i){this.cacheState(),void 0===i?(this.table.columns.push(e),this.table.rows.forEach((function(e,i){e.push(t[i])}))):(this.table.columns.splice(i,0,e),this.table.rows.forEach((function(e,n){e.splice(i,0,t[n])})))}},{key:"removeColumns",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cacheState(),this.table.columns.splice(e,t),this.table.rows.forEach((function(i){i.splice(e,t)}))}},{key:"_assign",value:function(e,t,i){this.cacheState(),e[t]=i}},{key:"width",get:function(){return this.table.columns.length}},{key:"height",get:function(){return this.table.rows.length}},{key:"filterHeight",get:function(){return this.height+(this.table.headerRow?1:0)}},{key:"tableHeight",get:function(){return this.filterHeight+(this.table.totalsRow?1:0)}},{key:"model",get:function(){return this.table},set:function(e){this.table=e}},{key:"ref",get:function(){return this.table.ref},set:function(e){this._assign(this.table,"ref",e)}},{key:"name",get:function(){return this.table.name},set:function(e){this.table.name=e}},{key:"displayName",get:function(){return this.table.displyName||this.table.name}},{key:"displayNamename",set:function(e){this.table.displayName=e}},{key:"headerRow",get:function(){return this.table.headerRow},set:function(e){this._assign(this.table,"headerRow",e)}},{key:"totalsRow",get:function(){return this.table.totalsRow},set:function(e){this._assign(this.table,"totalsRow",e)}},{key:"theme",get:function(){return this.table.style.name},set:function(e){this.table.style.name=e}},{key:"showFirstColumn",get:function(){return this.table.style.showFirstColumn},set:function(e){this.table.style.showFirstColumn=e}},{key:"showLastColumn",get:function(){return this.table.style.showLastColumn},set:function(e){this.table.style.showLastColumn=e}},{key:"showRowStripes",get:function(){return this.table.style.showRowStripes},set:function(e){this.table.style.showRowStripes=e}},{key:"showColumnStripes",get:function(){return this.table.style.showColumnStripes},set:function(e){this.table.style.showColumnStripes=e}}]),e}();t.exports=l},{"../utils/col-cache":19}],13:[function(e,t,i){"use strict";function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var a=e("./worksheet"),r=e("./defined-names"),o=e("../xlsx/xlsx"),s=e("../csv/csv"),l=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.category="",this.company="",this.created=new Date,this.description="",this.keywords="",this.manager="",this.modified=this.created,this.properties={},this.calcProperties={},this._worksheets=[],this.subject="",this.title="",this.views=[],this.media=[],this._definedNames=new r}var t,i,l;return t=e,(i=[{key:"addWorksheet",value:function(e,t){var i=this.nextId;if(e&&e.length>31&&console.warn("Worksheet name ".concat(e," exceeds 31 chars. This will be truncated")),/[*?:/\\[\]]/.test(e))throw new Error("Worksheet name ".concat(e," cannot include any of the following characters: * ? : \\ / [ ]"));if(/(^')|('$)/.test(e))throw new Error("The first or last character of worksheet name cannot be a single quotation mark: ".concat(e));if(e=(e||"sheet".concat(i)).substring(0,31),this._worksheets.find((function(t){return t&&t.name.toLowerCase()===e.toLowerCase()})))throw new Error("Worksheet name already exists: ".concat(e));t&&("string"==typeof t?(console.trace('tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { argb: "rbg value" } }'),t={properties:{tabColor:{argb:t}}}):(t.argb||t.theme||t.indexed)&&(console.trace("tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { ... } }"),t={properties:{tabColor:t}}));var n=this._worksheets.reduce((function(e,t){return(t&&t.orderNo)>e?t.orderNo:e}),0),r=Object.assign({},t,{id:i,name:e,orderNo:n+1,workbook:this}),o=new a(r);return this._worksheets[i]=o,o}},{key:"removeWorksheetEx",value:function(e){delete this._worksheets[e.id]}},{key:"removeWorksheet",value:function(e){var t=this.getWorksheet(e);t&&t.destroy()}},{key:"getWorksheet",value:function(e){return void 0===e?this._worksheets.find(Boolean):"number"==typeof e?this._worksheets[e]:"string"==typeof e?this._worksheets.find((function(t){return t&&t.name===e})):void 0}},{key:"eachSheet",value:function(e){this.worksheets.forEach((function(t){e(t,t.id)}))}},{key:"clearThemes",value:function(){this._themes=void 0}},{key:"addImage",value:function(e){var t=this.media.length;return this.media.push(Object.assign({},e,{type:"image"})),t}},{key:"getImage",value:function(e){return this.media[e]}},{key:"xlsx",get:function(){return this._xlsx||(this._xlsx=new o(this)),this._xlsx}},{key:"csv",get:function(){return this._csv||(this._csv=new s(this)),this._csv}},{key:"nextId",get:function(){for(var e=1;e<this._worksheets.length;e++)if(!this._worksheets[e])return e;return this._worksheets.length||1}},{key:"worksheets",get:function(){return this._worksheets.slice(1).sort((function(e,t){return e.orderNo-t.orderNo})).filter(Boolean)}},{key:"definedNames",get:function(){return this._definedNames}},{key:"model",get:function(){return{creator:this.creator||"Unknown",lastModifiedBy:this.lastModifiedBy||"Unknown",lastPrinted:this.lastPrinted,created:this.created,modified:this.modified,properties:this.properties,worksheets:this.worksheets.map((function(e){return e.model})),sheets:this.worksheets.map((function(e){return e.model})).filter(Boolean),definedNames:this._definedNames.model,views:this.views,company:this.company,manager:this.manager,title:this.title,subject:this.subject,keywords:this.keywords,category:this.category,description:this.description,language:this.language,revision:this.revision,contentStatus:this.contentStatus,themes:this._themes,media:this.media,calcProperties:this.calcProperties}},set:function(e){var t=this;this.creator=e.creator,this.lastModifiedBy=e.lastModifiedBy,this.lastPrinted=e.lastPrinted,this.created=e.created,this.modified=e.modified,this.company=e.company,this.manager=e.manager,this.title=e.title,this.subject=e.subject,this.keywords=e.keywords,this.category=e.category,this.description=e.description,this.language=e.language,this.revision=e.revision,this.contentStatus=e.contentStatus,this.properties=e.properties,this.calcProperties=e.calcProperties,this._worksheets=[],e.worksheets.forEach((function(i){var n=i.id,r=i.name,o=i.state,s=e.sheets&&e.sheets.findIndex((function(e){return e.id===n}));(t._worksheets[n]=new a({id:n,name:r,orderNo:s,state:o,workbook:t})).model=i})),this._definedNames.model=e.definedNames,this.views=e.views,this._themes=e.themes,this.media=e.media||[]}}])&&n(t.prototype,i),l&&n(t,l),e}();t.exports=l},{"../csv/csv":1,"../xlsx/xlsx":141,"./defined-names":6,"./worksheet":14}],14:[function(e,t,i){"use strict";function n(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function a(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?n(Object(i),!0).forEach((function(t){r(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):n(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function r(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function o(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?s(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 s(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function l(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var c=e("../utils/under-dash"),u=e("../utils/col-cache"),d=e("./range"),f=e("./row"),h=e("./column"),p=e("./enums"),m=e("./image"),g=e("./table"),v=e("./data-validations"),b=e("../utils/encryptor"),y=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=t||{},this.id=t.id,this.orderNo=t.orderNo,this.name=t.name||"Sheet".concat(this.id),this.state=t.state||"visible",this._rows=[],this._columns=null,this._keys={},this._merges={},this.rowBreaks=[],this._workbook=t.workbook,this.properties=Object.assign({},{defaultRowHeight:15,dyDescent:55,outlineLevelCol:0,outlineLevelRow:0},t.properties),this.pageSetup=Object.assign({},{margins:{left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},orientation:"portrait",horizontalDpi:4294967295,verticalDpi:4294967295,fitToPage:!(!t.pageSetup||!t.pageSetup.fitToWidth&&!t.pageSetup.fitToHeight||t.pageSetup.scale),pageOrder:"downThenOver",blackAndWhite:!1,draft:!1,cellComments:"None",errors:"displayed",scale:100,fitToWidth:1,fitToHeight:1,paperSize:void 0,showRowColHeaders:!1,showGridLines:!1,firstPageNumber:void 0,horizontalCentered:!1,verticalCentered:!1,rowBreaks:null,colBreaks:null},t.pageSetup),this.headerFooter=Object.assign({},{differentFirst:!1,differentOddEven:!1,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},t.headerFooter),this.dataValidations=new v,this.views=t.views||[],this.autoFilter=t.autoFilter||null,this._media=[],this.sheetProtection=null,this.tables={},this.conditionalFormattings=[]}var t,i,n;return t=e,(i=[{key:"destroy",value:function(){this._workbook.removeWorksheetEx(this)}},{key:"getColumnKey",value:function(e){return this._keys[e]}},{key:"setColumnKey",value:function(e,t){this._keys[e]=t}},{key:"deleteColumnKey",value:function(e){delete this._keys[e]}},{key:"eachColumnKey",value:function(e){c.each(this._keys,e)}},{key:"getColumn",value:function(e){if("string"==typeof e){var t=this._keys[e];if(t)return t;e=u.l2n(e)}if(this._columns||(this._columns=[]),e>this._columns.length)for(var i=this._columns.length+1;i<=e;)this._columns.push(new h(this,i++));return this._columns[e-1]}},{key:"spliceColumns",value:function(e,t){for(var i=this,n=this._rows,a=n.length,r=arguments.length,o=new Array(r>2?r-2:0),s=2;s<r;s++)o[s-2]=arguments[s];if(o.length>0)for(var l=function(n){var a=[e,t];o.forEach((function(e){a.push(e[n]||null)}));var r=i.getRow(n+1);r.splice.apply(r,a)},c=0;c<a;c++)l(c);else this._rows.forEach((function(i){i&&i.splice(e,t)}));var u=o.length-t,d=e+t,f=this._columns.length;if(u<0)for(var h=e+o.length;h<=f;h++)this.getColumn(h).defn=this.getColumn(h-u).defn;else if(u>0)for(var p=f;p>=d;p--)this.getColumn(p+u).defn=this.getColumn(p).defn;for(var m=e;m<e+o.length;m++)this.getColumn(m).defn=null;this.workbook.definedNames.spliceColumns(this.name,e,t,o.length)}},{key:"_commitRow",value:function(){}},{key:"findRow",value:function(e){return this._rows[e-1]}},{key:"findRows",value:function(e,t){return this._rows.slice(e-1,e-1+t)}},{key:"getRow",value:function(e){var t=this._rows[e-1];return t||(t=this._rows[e-1]=new f(this,e)),t}},{key:"getRows",value:function(e,t){if(!(t<1)){for(var i=[],n=e;n<e+t;n++)i.push(this.getRow(n));return i}}},{key:"addRow",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"n",i=this._nextRow,n=this.getRow(i);return n.values=e,this._setStyleOption(i,"i"===t[0]?t:"n"),n}},{key:"addRows",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"n",n=[];return e.forEach((function(e){n.push(t.addRow(e,i))})),n}},{key:"insertRow",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"n";return this.spliceRows(e,0,t),this._setStyleOption(e,i),this.getRow(e)}},{key:"insertRows",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"n";if(this.spliceRows.apply(this,[e,0].concat(o(t))),"n"!==i)for(var n=0;n<t.length;n++)"o"===i[0]&&void 0!==this.findRow(t.length+e+n)?this._copyStyle(t.length+e+n,e+n,"+"===i[1]):"i"===i[0]&&void 0!==this.findRow(e-1)&&this._copyStyle(e-1,e+n,"+"===i[1]);return this.getRows(e,t.length)}},{key:"_setStyleOption",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"n";"o"===t[0]&&void 0!==this.findRow(e+1)?this._copyStyle(e+1,e,"+"===t[1]):"i"===t[0]&&void 0!==this.findRow(e-1)&&this._copyStyle(e-1,e,"+"===t[1])}},{key:"_copyStyle",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=this.getRow(e),r=this.getRow(t);r.style=Object.freeze(a({},n.style)),n.eachCell({includeEmpty:i},(function(e,t){r.getCell(t).style=Object.freeze(a({},e.style))})),r.height=n.height}},{key:"duplicateRow",value:function(e,t){var i=this,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=this._rows[e-1],r=new Array(t).fill(a.values);this.spliceRows.apply(this,[e+1,n?0:t].concat(o(r)));for(var s=function(t){var n=i._rows[e+t];n.style=a.style,n.height=a.height,a.eachCell({includeEmpty:!0},(function(e,t){n.getCell(t).style=e.style}))},l=0;l<t;l++)s(l)}},{key:"spliceRows",value:function(e,t){for(var i=this,n=e+t,a=arguments.length,r=new Array(a>2?a-2:0),o=2;o<a;o++)r[o-2]=arguments[o];var s,l,c=r.length,u=c-t,d=this._rows.length;if(u<0)for(s=n;s<=d;s++)(l=this._rows[s-1])?function(){var e=i.getRow(s+u);e.values=l.values,e.style=l.style,e.height=l.height,l.eachCell({includeEmpty:!0},(function(t,i){e.getCell(i).style=t.style})),i._rows[s-1]=void 0}():this._rows[s+u-1]=void 0;else if(u>0)for(s=d;s>=n;s--)(l=this._rows[s-1])?function(){var e=i.getRow(s+u);e.values=l.values,e.style=l.style,e.height=l.height,l.eachCell({includeEmpty:!0},(function(t,n){if(e.getCell(n).style=t.style,"MergeValue"===t._value.constructor.name){var a=i.getRow(t._row._number+c).getCell(n),r=t._value._master,o=i.getRow(r._row._number+c).getCell(r._column._number);a.merge(o)}}))}():this._rows[s+u-1]=void 0;for(s=0;s<c;s++){var f=this.getRow(e+s);f.style={},f.values=r[s]}this.workbook.definedNames.spliceRows(this.name,e,t,c)}},{key:"eachRow",value:function(e,t){if(t||(t=e,e=void 0),e&&e.includeEmpty)for(var i=this._rows.length,n=1;n<=i;n++)t(this.getRow(n),n);else this._rows.forEach((function(e){e&&e.hasValues&&t(e,e.number)}))}},{key:"getSheetValues",value:function(){var e=[];return this._rows.forEach((function(t){t&&(e[t.number]=t.values)})),e}},{key:"findCell",value:function(e,t){var i=u.getAddress(e,t),n=this._rows[i.row-1];return n?n.findCell(i.col):void 0}},{key:"getCell",value:function(e,t){var i=u.getAddress(e,t);return this.getRow(i.row).getCellEx(i)}},{key:"mergeCells",value:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var n=new d(t);this._mergeCellsInternal(n)}},{key:"mergeCellsWithoutStyle",value:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var n=new d(t);this._mergeCellsInternal(n,!0)}},{key:"_mergeCellsInternal",value:function(e,t){c.each(this._merges,(function(t){if(t.intersects(e))throw new Error("Cannot merge already merged cells")}));for(var i=this.getCell(e.top,e.left),n=e.top;n<=e.bottom;n++)for(var a=e.left;a<=e.right;a++)(n>e.top||a>e.left)&&this.getCell(n,a).merge(i,t);this._merges[i.address]=e}},{key:"_unMergeMaster",value:function(e){var t=this._merges[e.address];if(t){for(var i=t.top;i<=t.bottom;i++)for(var n=t.left;n<=t.right;n++)this.getCell(i,n).unmerge();delete this._merges[e.address]}}},{key:"unMergeCells",value:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];for(var n=new d(t),a=n.top;a<=n.bottom;a++)for(var r=n.left;r<=n.right;r++){var o=this.findCell(a,r);o&&(o.type===p.ValueType.Merge?this._unMergeMaster(o.master):this._merges[o.address]&&this._unMergeMaster(o))}}},{key:"fillFormula",value:function(e,t,i){var n,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"shared",r=u.decode(e),o=r.top,s=r.left,l=r.bottom,c=r.right,d=c-s+1,f=u.encodeAddress(o,s),h="shared"===a;n="function"==typeof i?i:Array.isArray(i)?Array.isArray(i[0])?function(e,t){return i[e-o][t-s]}:function(e,t){return i[(e-o)*d+(t-s)]}:function(){};for(var p=!0,m=o;m<=l;m++)for(var g=s;g<=c;g++)p?(this.getCell(m,g).value={shareType:a,formula:t,ref:e,result:n(m,g)},p=!1):this.getCell(m,g).value=h?{sharedFormula:f,result:n(m,g)}:n(m,g)}},{key:"addImage",value:function(e,t){var i={type:"image",imageId:e,range:t};this._media.push(new m(this,i))}},{key:"getImages",value:function(){return this._media.filter((function(e){return"image"===e.type}))}},{key:"addBackgroundImage",value:function(e){var t={type:"background",imageId:e};this._media.push(new m(this,t))}},{key:"getBackgroundImageId",value:function(){var e=this._media.find((function(e){return"background"===e.type}));return e&&e.imageId}},{key:"protect",value:function(e,t){var i=this;return new Promise((function(n){i.sheetProtection={sheet:!0},t&&"spinCount"in t&&(t.spinCount=Number.isFinite(t.spinCount)?Math.round(Math.max(0,t.spinCount)):1e5),e&&(i.sheetProtection.algorithmName="SHA-512",i.sheetProtection.saltValue=b.randomBytes(16).toString("base64"),i.sheetProtection.spinCount=t&&"spinCount"in t?t.spinCount:1e5,i.sheetProtection.hashValue=b.convertPasswordToHash(e,"SHA512",i.sheetProtection.saltValue,i.sheetProtection.spinCount)),t&&(i.sheetProtection=Object.assign(i.sheetProtection,t),!e&&"spinCount"in t&&delete i.sheetProtection.spinCount),n()}))}},{key:"unprotect",value:function(){this.sheetProtection=null}},{key:"addTable",value:function(e){var t=new g(this,e);return this.tables[e.name]=t,t}},{key:"getTable",value:function(e){return this.tables[e]}},{key:"removeTable",value:function(e){delete this.tables[e]}},{key:"getTables",value:function(){return Object.values(this.tables)}},{key:"addConditionalFormatting",value:function(e){this.conditionalFormattings.push(e)}},{key:"removeConditionalFormatting",value:function(e){"number"==typeof e?this.conditionalFormattings.splice(e,1):this.conditionalFormattings=e instanceof Function?this.conditionalFormattings.filter(e):[]}},{key:"_parseRows",value:function(e){var t=this;this._rows=[],e.rows.forEach((function(e){var i=new f(t,e.number);t._rows[i.number-1]=i,i.model=e}))}},{key:"_parseMergeCells",value:function(e){var t=this;c.each(e.mergeCells,(function(e){t.mergeCellsWithoutStyle(e)}))}},{key:"workbook",get:function(){return this._workbook}},{key:"dimensions",get:function(){var e=new d;return this._rows.forEach((function(t){if(t){var i=t.dimensions;i&&e.expand(t.number,i.min,t.number,i.max)}})),e}},{key:"columns",get:function(){return this._columns},set:function(e){var t=this;this._headerRowCount=e.reduce((function(e,t){var i=(t.header?1:t.headers&&t.headers.length)||0;return Math.max(e,i)}),0);var i=1,n=this._columns=[];e.forEach((function(e){var a=new h(t,i++,!1);n.push(a),a.defn=e}))}},{key:"lastColumn",get:function(){return this.getColumn(this.columnCount)}},{key:"columnCount",get:function(){var e=0;return this.eachRow((function(t){e=Math.max(e,t.cellCount)})),e}},{key:"actualColumnCount",get:function(){var e=[],t=0;return this.eachRow((function(i){i.eachCell((function(i){var n=i.col;e[n]||(e[n]=!0,t++)}))})),t}},{key:"_lastRowNumber",get:function(){for(var e=this._rows,t=e.length;t>0&&void 0===e[t-1];)t--;return t}},{key:"_nextRow",get:function(){return this._lastRowNumber+1}},{key:"lastRow",get:function(){if(this._rows.length)return this._rows[this._rows.length-1]}},{key:"rowCount",get:function(){return this._lastRowNumber}},{key:"actualRowCount",get:function(){var e=0;return this.eachRow((function(){e++})),e}},{key:"hasMerges",get:function(){return c.some(this._merges,Boolean)}},{key:"tabColor",get:function(){return console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor},set:function(e){console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor=e}},{key:"model",get:function(){var e={id:this.id,name:this.name,dataValidations:this.dataValidations.model,properties:this.properties,state:this.state,pageSetup:this.pageSetup,headerFooter:this.headerFooter,rowBreaks:this.rowBreaks,views:this.views,autoFilter:this.autoFilter,media:this._media.map((function(e){return e.model})),sheetProtection:this.sheetProtection,tables:Object.values(this.tables).map((function(e){return e.model})),conditionalFormattings:this.conditionalFormattings};e.cols=h.toModel(this.columns);var t=e.rows=[],i=e.dimensions=new d;return this._rows.forEach((function(e){var n=e&&e.model;n&&(i.expand(n.number,n.min,n.number,n.max),t.push(n))})),e.merges=[],c.each(this._merges,(function(t){e.merges.push(t.range)})),e},set:function(e){var t=this;this.name=e.name,this._columns=h.fromModel(this,e.cols),this._parseRows(e),this._parseMergeCells(e),this.dataValidations=new v(e.dataValidations),this.properties=e.properties,this.pageSetup=e.pageSetup,this.headerFooter=e.headerFooter,this.views=e.views,this.autoFilter=e.autoFilter,this._media=e.media.map((function(e){return new m(t,e)})),this.sheetProtection=e.sheetProtection,this.tables=e.tables.reduce((function(e,t){var i=new g;return i.model=t,e[t.name]=i,e}),{}),this.conditionalFormattings=e.conditionalFormattings}}])&&l(t.prototype,i),n&&l(t,n),e}();t.exports=y},{"../utils/col-cache":19,"../utils/encryptor":20,"../utils/under-dash":25,"./column":4,"./data-validations":5,"./enums":7,"./image":8,"./range":10,"./row":11,"./table":12}],15:[function(e,t,i){"use strict";e("core-js/modules/es.promise"),e("core-js/modules/es.object.assign"),e("core-js/modules/es.object.keys"),e("core-js/modules/es.object.values"),e("core-js/modules/es.symbol"),e("core-js/modules/es.symbol.async-iterator"),e("core-js/modules/es.array.iterator"),e("core-js/modules/es.array.includes"),e("core-js/modules/es.array.find-index"),e("core-js/modules/es.array.find"),e("core-js/modules/es.string.from-code-point"),e("core-js/modules/es.string.includes"),e("core-js/modules/es.number.is-nan"),e("regenerator-runtime/runtime");var n={Workbook:e("./doc/workbook")},a=e("./doc/enums");Object.keys(a).forEach((function(e){n[e]=a[e]})),t.exports=n},{"./doc/enums":7,"./doc/workbook":13,"core-js/modules/es.array.find":316,"core-js/modules/es.array.find-index":315,"core-js/modules/es.array.includes":317,"core-js/modules/es.array.iterator":318,"core-js/modules/es.number.is-nan":319,"core-js/modules/es.object.assign":320,"core-js/modules/es.object.keys":321,"core-js/modules/es.object.values":322,"core-js/modules/es.promise":323,"core-js/modules/es.string.from-code-point":324,"core-js/modules/es.string.includes":325,"core-js/modules/es.symbol":327,"core-js/modules/es.symbol.async-iterator":326,"regenerator-runtime/runtime":492}],16:[function(e,t,i){"use strict";var n="undefined"==typeof TextDecoder?null:new TextDecoder("utf-8");i.bufferToString=function(e){return"string"==typeof e?e:n?n.decode(e):e.toString()}},{}],17:[function(e,t,i){"use strict";var n="undefined"==typeof TextEncoder?null:new TextEncoder("utf-8"),a=e("buffer").Buffer;i.stringToBuffer=function(e){return"string"!=typeof e?e:n?a.from(n.encode(e).buffer):a.from(e)}},{buffer:216}],18:[function(e,t,i){"use strict";function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var a=e("./under-dash"),r=e("./col-cache"),o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.template=t,this.sheets={}}var t,i,o;return t=e,(i=[{key:"addCell",value:function(e){this.addCellEx(r.decodeEx(e))}},{key:"getCell",value:function(e){return this.findCellEx(r.decodeEx(e),!0)}},{key:"findCell",value:function(e){return this.findCellEx(r.decodeEx(e),!1)}},{key:"findCellAt",value:function(e,t,i){var n=this.sheets[e],a=n&&n[t];return a&&a[i]}},{key:"addCellEx",value:function(e){if(e.top)for(var t=e.top;t<=e.bottom;t++)for(var i=e.left;i<=e.right;i++)this.getCellAt(e.sheetName,t,i);else this.findCellEx(e,!0)}},{key:"getCellEx",value:function(e){return this.findCellEx(e,!0)}},{key:"findCellEx",value:function(e,t){var i=this.findSheet(e,t),n=this.findSheetRow(i,e,t);return this.findRowCell(n,e,t)}},{key:"getCellAt",value:function(e,t,i){var n=this.sheets[e]||(this.sheets[e]=[]),a=n[t]||(n[t]=[]);return a[i]||(a[i]={sheetName:e,address:r.n2l(i)+t,row:t,col:i})}},{key:"removeCellEx",value:function(e){var t=this.findSheet(e);if(t){var i=this.findSheetRow(t,e);i&&delete i[e.col]}}},{key:"forEachInSheet",value:function(e,t){var i=this.sheets[e];i&&i.forEach((function(e,i){e&&e.forEach((function(e,n){e&&t(e,i,n)}))}))}},{key:"forEach",value:function(e){var t=this;a.each(this.sheets,(function(i,n){t.forEachInSheet(n,e)}))}},{key:"map",value:function(e){var t=[];return this.forEach((function(i){t.push(e(i))})),t}},{key:"findSheet",value:function(e,t){var i=e.sheetName;return this.sheets[i]?this.sheets[i]:t?this.sheets[i]=[]:void 0}},{key:"findSheetRow",value:function(e,t,i){var n=t.row;return e&&e[n]?e[n]:i?e[n]=[]:void 0}},{key:"findRowCell",value:function(e,t,i){var n=t.col;return e&&e[n]?e[n]:i?e[n]=this.template?Object.assign(t,JSON.parse(JSON.stringify(this.template))):t:void 0}},{key:"spliceRows",value:function(e,t,i,n){var a=this.sheets[e];if(a){for(var r=[],o=0;o<n;o++)r.push([]);a.splice.apply(a,[t,i].concat(r))}}},{key:"spliceColumns",value:function(e,t,i,n){var r=this.sheets[e];if(r){for(var o=[],s=0;s<n;s++)o.push(null);a.each(r,(function(e){e.splice.apply(e,[t,i].concat(o))}))}}}])&&n(t.prototype,i),o&&n(t,o),e}();t.exports=o},{"./col-cache":19,"./under-dash":25}],19:[function(e,t,i){"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var i=[],n=!0,a=!1,r=void 0;try{for(var o,s=e[Symbol.iterator]();!(n=(o=s.next()).done)&&(i.push(o.value),!t||i.length!==t);n=!0);}catch(e){a=!0,r=e}finally{try{n||null==s.return||s.return()}finally{if(a)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?a(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function r(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function o(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var s=/^[A-Z]+\d+$/,l={_dictionary:["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],_l2nFill:0,_l2n:{},_n2l:[],_level:function(e){return e<=26?1:e<=676?2:3},_fill:function(e){var t,i,n,a,r,o=1;if(e>=4)throw new Error("Out of bounds. Excel supports columns from 1 to 16384");if(this._l2nFill<1&&e>=1){for(;o<=26;)t=this._dictionary[o-1],this._n2l[o]=t,this._l2n[t]=o,o++;this._l2nFill=1}if(this._l2nFill<2&&e>=2){for(o=27;o<=702;)n=(i=o-27)%26,a=Math.floor(i/26),t=this._dictionary[a]+this._dictionary[n],this._n2l[o]=t,this._l2n[t]=o,o++;this._l2nFill=2}if(this._l2nFill<3&&e>=3){for(o=703;o<=16384;)n=(i=o-703)%26,a=Math.floor(i/26)%26,r=Math.floor(i/676),t=this._dictionary[r]+this._dictionary[a]+this._dictionary[n],this._n2l[o]=t,this._l2n[t]=o,o++;this._l2nFill=3}},l2n:function(e){if(this._l2n[e]||this._fill(e.length),!this._l2n[e])throw new Error("Out of bounds. Invalid column letter: ".concat(e));return this._l2n[e]},n2l:function(e){if(e<1||e>16384)throw new Error("".concat(e," is out of bounds. Excel supports columns from 1 to 16384"));return this._n2l[e]||this._fill(this._level(e)),this._n2l[e]},_hash:{},validateAddress:function(e){if(!s.test(e))throw new Error("Invalid Address: ".concat(e));return!0},decodeAddress:function(e){var t=e.length<5&&this._hash[e];if(t)return t;for(var i,n=!1,a="",r=0,o=!1,s="",l=0,c=0;c<e.length;c++)if(i=e.charCodeAt(c),!o&&i>=65&&i<=90)n=!0,a+=e[c],r=26*r+i-64;else if(i>=48&&i<=57)o=!0,s+=e[c],l=10*l+i-48;else if(o&&n&&36!==i)break;if(n){if(r>16384)throw new Error("Out of bounds. Invalid column letter: ".concat(a))}else r=void 0;o||(l=void 0);var u={address:e=a+s,col:r,row:l,$col$row:"$".concat(a,"$").concat(s)};return r<=100&&l<=100&&(this._hash[e]=u,this._hash[u.$col$row]=u),u},getAddress:function(e,t){if(t){var i=this.n2l(t)+e;return this.decodeAddress(i)}return this.decodeAddress(e)},decode:function(e){var t=e.split(":");if(2===t.length){var i=this.decodeAddress(t[0]),n=this.decodeAddress(t[1]),a={top:Math.min(i.row,n.row),left:Math.min(i.col,n.col),bottom:Math.max(i.row,n.row),right:Math.max(i.col,n.col)};return a.tl=this.n2l(a.left)+a.top,a.br=this.n2l(a.right)+a.bottom,a.dimensions="".concat(a.tl,":").concat(a.br),a}return this.decodeAddress(e)},decodeEx:function(e){var t=e.match(/(?:(?:(?:'((?:[^']|'')*)')|([^'^ !]*))!)?(.*)/),i=t[1]||t[2],n=t[3],a=n.split(":");if(a.length>1){var s=this.decodeAddress(a[0]),l=this.decodeAddress(a[1]),c=Math.min(s.row,l.row),u=Math.min(s.col,l.col),d=Math.max(s.row,l.row),f=Math.max(s.col,l.col);return s=this.n2l(u)+c,l=this.n2l(f)+d,{top:c,left:u,bottom:d,right:f,sheetName:i,tl:{address:s,col:u,row:c,$col$row:"$".concat(this.n2l(u),"$").concat(c),sheetName:i},br:{address:l,col:f,row:d,$col$row:"$".concat(this.n2l(f),"$").concat(d),sheetName:i},dimensions:"".concat(s,":").concat(l)}}if(n.startsWith("#"))return i?{sheetName:i,error:n}:{error:n};var h=this.decodeAddress(n);return i?function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?r(Object(i),!0).forEach((function(t){o(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}({sheetName:i},h):h},encodeAddress:function(e,t){return l.n2l(t)+e},encode:function(){switch(arguments.length){case 2:return l.encodeAddress(arguments[0],arguments[1]);case 4:return"".concat(l.encodeAddress(arguments[0],arguments[1]),":").concat(l.encodeAddress(arguments[2],arguments[3]));default:throw new Error("Can only encode with 2 or 4 arguments")}},inRange:function(e,t){var i=n(e,5),a=i[0],r=i[1],o=i[3],s=i[4],l=n(t,2),c=l[0],u=l[1];return c>=a&&c<=o&&u>=r&&u<=s}};t.exports=l},{}],20:[function(e,t,i){(function(i){"use strict";var n=e("crypto"),a={hash:function(e){for(var t=n.createHash(e),a=arguments.length,r=new Array(a>1?a-1:0),o=1;o<a;o++)r[o-1]=arguments[o];return t.update(i.concat(r)),t.digest()},convertPasswordToHash:function(e,t,a,r){if(t=t.toLowerCase(),n.getHashes().indexOf(t)<0)throw new Error("Hash algorithm '".concat(t,"' not supported!"));for(var o=i.from(e,"utf16le"),s=this.hash(t,i.from(a,"base64"),o),l=0;l<r;l++){var c=i.alloc(4);c.writeUInt32LE(l,0),s=this.hash(t,s,c)}return s.toString("base64")},randomBytes:function(e){return n.randomBytes(e)}};t.exports=a}).call(this,e("buffer").Buffer)},{buffer:216,crypto:335}],21:[function(e,t,i){"use strict";function n(e){return new r(e)}function a(e){var t,i;function n(t,i){try{var o=e[t](i),s=o.value,l=s instanceof r;Promise.resolve(l?s.wrapped:s).then((function(e){l?n("return"===t?"return":"next",e):a(o.done?"return":"normal",e)}),(function(e){n("throw",e)}))}catch(e){a("throw",e)}}function a(e,a){switch(e){case"return":t.resolve({value:a,done:!0});break;case"throw":t.reject(a);break;default:t.resolve({value:a,done:!1})}(t=t.next)?n(t.key,t.arg):i=null}this._invoke=function(e,a){return new Promise((function(r,o){var s={key:e,arg:a,resolve:r,reject:o,next:null};i?i=i.next=s:(t=i=s,n(e,a))}))},"function"!=typeof e.return&&(this.return=void 0)}function r(e){this.wrapped=e}function o(e){var t;if("undefined"!=typeof Symbol){if(Symbol.asyncIterator&&null!=(t=e[Symbol.asyncIterator]))return t.call(e);if(Symbol.iterator&&null!=(t=e[Symbol.iterator]))return t.call(e)}throw new TypeError("Object is not async iterable")}"function"==typeof Symbol&&Symbol.asyncIterator&&(a.prototype[Symbol.asyncIterator]=function(){return this}),a.prototype.next=function(e){return this._invoke("next",e)},a.prototype.throw=function(e){return this._invoke("throw",e)},a.prototype.return=function(e){return this._invoke("return",e)};var s=e("saxes").SaxesParser,l=e("readable-stream").PassThrough,c=e("./browser-buffer-decode").bufferToString;t.exports=function(){var e,t=(e=regeneratorRuntime.mark((function e(t){var i,a,r,u,d,f,h,p,m,g;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.pipe&&!t[Symbol.asyncIterator]&&(t=t.pipe(new l)),(i=new s).on("error",(function(e){a=e})),r=[],i.on("opentag",(function(e){return r.push({eventType:"opentag",value:e})})),i.on("text",(function(e){return r.push({eventType:"text",value:e})})),i.on("closetag",(function(e){return r.push({eventType:"closetag",value:e})})),u=!0,d=!1,e.prev=9,h=o(t);case 11:return e.next=13,n(h.next());case 13:return p=e.sent,u=p.done,e.next=17,n(p.value);case 17:if(m=e.sent,u){e.next=29;break}if(g=m,i.write(c(g)),!a){e.next=23;break}throw a;case 23:return e.next=25,r;case 25:r=[];case 26:u=!0,e.next=11;break;case 29:e.next=35;break;case 31:e.prev=31,e.t0=e.catch(9),d=!0,f=e.t0;case 35:if(e.prev=35,e.prev=36,u||null==h.return){e.next=40;break}return e.next=40,n(h.return());case 40:if(e.prev=40,!d){e.next=43;break}throw f;case 43:return e.finish(40);case 44:return e.finish(35);case 45:case"end":return e.stop()}}),e,null,[[9,31,35,45],[36,,40,44]])})),function(){return new a(e.apply(this,arguments))});return function(e){return t.apply(this,arguments)}}()},{"./browser-buffer-decode":16,"readable-stream":491,saxes:496}],22:[function(e,t,i){"use strict";var n=e("./col-cache"),a=/(([a-z_\-0-9]*)!)?([a-z0-9_$]{2,})([(])?/gi,r=/^([$])?([a-z]+)([$])?([1-9][0-9]*)$/i;t.exports={slideFormula:function(e,t,i){var o=n.decode(t),s=n.decode(i);return e.replace(a,(function(e,t,i,a,l){if(l)return e;var c=r.exec(a);if(c){var u=c[1],d=c[2].toUpperCase(),f=c[3],h=c[4];if(d.length>3||3===d.length&&d>"XFD")return e;var p=n.l2n(d),m=parseInt(h,10);return u||(p+=s.col-o.col),f||(m+=s.row-o.row),(t||"")+(u||"")+n.n2l(p)+(f||"")+m}return e}))}}},{"./col-cache":19}],23:[function(e,t,i){(function(i,n){"use strict";function a(e,t,i,n,a,r,o){try{var s=e[r](o),l=s.value}catch(e){return void i(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function r(e){return function(){var t=this,i=arguments;return new Promise((function(n,r){var o=e.apply(t,i);function s(e){a(o,n,r,s,l,"next",e)}function l(e){a(o,n,r,s,l,"throw",e)}s(void 0)}))}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e,t,i){return t&&s(e.prototype,t),i&&s(e,i),e}var c=e("readable-stream"),u=e("./utils"),d=e("./string-buf"),f=function(){function e(t,i){o(this,e),this._data=t,this._encoding=i}return l(e,[{key:"copy",value:function(e,t,i,n){return this.toBuffer().copy(e,t,i,n)}},{key:"toBuffer",value:function(){return this._buffer||(this._buffer=n.from(this._data,this._encoding)),this._buffer}},{key:"length",get:function(){return this.toBuffer().length}}]),e}(),h=function(){function e(t){o(this,e),this._data=t}return l(e,[{key:"copy",value:function(e,t,i,n){return this._data._buf.copy(e,t,i,n)}},{key:"toBuffer",value:function(){return this._data.toBuffer()}},{key:"length",get:function(){return this._data.length}}]),e}(),p=function(){function e(t){o(this,e),this._data=t}return l(e,[{key:"copy",value:function(e,t,i,n){this._data.copy(e,t,i,n)}},{key:"toBuffer",value:function(){return this._data}},{key:"length",get:function(){return this._data.length}}]),e}(),m=function(){function e(t){o(this,e),this.size=t,this.buffer=n.alloc(t),this.iRead=0,this.iWrite=0}return l(e,[{key:"toBuffer",value:function(){if(0===this.iRead&&this.iWrite===this.size)return this.buffer;var e=n.alloc(this.iWrite-this.iRead);return this.buffer.copy(e,0,this.iRead,this.iWrite),e}},{key:"read",value:function(e){var t;return 0===e?null:void 0===e||e>=this.length?(t=this.toBuffer(),this.iRead=this.iWrite,t):(t=n.alloc(e),this.buffer.copy(t,0,this.iRead,e),this.iRead+=e,t)}},{key:"write",value:function(e,t,i){var n=Math.min(i,this.size-this.iWrite);return e.copy(this.buffer,this.iWrite,t,t+n),this.iWrite+=n,n}},{key:"length",get:function(){return this.iWrite-this.iRead}},{key:"eod",get:function(){return this.iRead===this.iWrite}},{key:"full",get:function(){return this.iWrite===this.size}}]),e}(),g=function(e){e=e||{},this.bufSize=e.bufSize||1048576,this.buffers=[],this.batch=e.batch||!1,this.corked=!1,this.inPos=0,this.outPos=0,this.pipes=[],this.paused=!1,this.encoding=null};u.inherits(g,c.Duplex,{toBuffer:function(){switch(this.buffers.length){case 0:return null;case 1:return this.buffers[0].toBuffer();default:return n.concat(this.buffers.map((function(e){return e.toBuffer()})))}},_getWritableBuffer:function(){if(this.buffers.length){var e=this.buffers[this.buffers.length-1];if(!e.full)return e}var t=new m(this.bufSize);return this.buffers.push(t),t},_pipe:function(e){var t=this;return r(regeneratorRuntime.mark((function i(){var n;return regeneratorRuntime.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return n=function(t){return new Promise((function(i){t.write(e.toBuffer(),(function(){i()}))}))},i.next=3,Promise.all(t.pipes.map(n));case 3:case"end":return i.stop()}}),i)})))()},_writeToBuffers:function(e){for(var t=0,i=e.length;t<i;)t+=this._getWritableBuffer().write(e,t,i-t)},write:function(e,t,a){var o=this;return r(regeneratorRuntime.mark((function r(){var s;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t instanceof Function&&(a=t,t="utf8"),a=a||u.nop,!(e instanceof d)){r.next=6;break}s=new h(e),r.next=15;break;case 6:if(!(e instanceof n)){r.next=10;break}s=new p(e),r.next=15;break;case 10:if(!("string"==typeof e||e instanceof String||e instanceof ArrayBuffer)){r.next=14;break}s=new f(e,t),r.next=15;break;case 14:throw new Error("Chunk must be one of type String, Buffer or StringBuf.");case 15:if(!o.pipes.length){r.next=31;break}if(!o.batch){r.next=21;break}for(o._writeToBuffers(s);!o.corked&&o.buffers.length>1;)o._pipe(o.buffers.shift());r.next=29;break;case 21:if(o.corked){r.next=27;break}return r.next=24,o._pipe(s);case 24:a(),r.next=29;break;case 27:o._writeToBuffers(s),i.nextTick(a);case 29:r.next=34;break;case 31:o.paused||o.emit("data",s.toBuffer()),o._writeToBuffers(s),o.emit("readable");case 34:return r.abrupt("return",!0);case 35:case"end":return r.stop()}}),r)})))()},cork:function(){this.corked=!0},_flush:function(){if(this.pipes.length)for(;this.buffers.length;)this._pipe(this.buffers.shift())},uncork:function(){this.corked=!1,this._flush()},end:function(e,t,i){var n=this,a=function(e){e?i(e):(n._flush(),n.pipes.forEach((function(e){e.end()})),n.emit("finish"))};e?this.write(e,t,a):a()},read:function(e){var t;if(e){for(t=[];e&&this.buffers.length&&!this.buffers[0].eod;){var i=this.buffers[0],a=i.read(e);e-=a.length,t.push(a),i.eod&&i.full&&this.buffers.shift()}return n.concat(t)}return t=this.buffers.map((function(e){return e.toBuffer()})).filter(Boolean),this.buffers=[],n.concat(t)},setEncoding:function(e){this.encoding=e},pause:function(){this.paused=!0},resume:function(){this.paused=!1},isPaused:function(){return!!this.paused},pipe:function(e){this.pipes.push(e),!this.paused&&this.buffers.length&&this.end()},unpipe:function(e){this.pipes=this.pipes.filter((function(t){return t!==e}))},unshift:function(){throw new Error("Not Implemented")},wrap:function(){throw new Error("Not Implemented")}}),t.exports=g}).call(this,e("_process"),e("buffer").Buffer)},{"./string-buf":24,"./utils":26,_process:467,buffer:216,"readable-stream":491}],24:[function(e,t,i){(function(e){"use strict";function i(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var n=function(){function t(i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this._buf=e.alloc(i&&i.size||16384),this._encoding=i&&i.encoding||"utf8",this._inPos=0,this._buffer=void 0}var n,a,r;return n=t,(a=[{key:"toBuffer",value:function(){return this._buffer||(this._buffer=e.alloc(this.length),this._buf.copy(this._buffer,0,0,this.length)),this._buffer}},{key:"reset",value:function(e){e=e||0,this._buffer=void 0,this._inPos=e}},{key:"_grow",value:function(t){for(var i=2*this._buf.length;i<t;)i*=2;var n=e.alloc(i);this._buf.copy(n,0),this._buf=n}},{key:"addText",value:function(e){this._buffer=void 0;for(var t=this._inPos+this._buf.write(e,this._inPos,this._encoding);t>=this._buf.length-4;)this._grow(this._inPos+e.length),t=this._inPos+this._buf.write(e,this._inPos,this._encoding);this._inPos=t}},{key:"addStringBuf",value:function(e){e.length&&(this._buffer=void 0,this.length+e.length>this.capacity&&this._grow(this.length+e.length),e._buf.copy(this._buf,this._inPos,0,e.length),this._inPos+=e.length)}},{key:"length",get:function(){return this._inPos}},{key:"capacity",get:function(){return this._buf.length}},{key:"buffer",get:function(){return this._buf}}])&&i(n.prototype,a),r&&i(n,r),t}();t.exports=n}).call(this,e("buffer").Buffer)},{buffer:216}],25:[function(e,t,i){"use strict";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)}var a=Object.prototype.toString,r=/["&<>]/,o={each:function(e,t){e&&(Array.isArray(e)?e.forEach(t):Object.keys(e).forEach((function(i){t(e[i],i)})))},some:function(e,t){return!!e&&(Array.isArray(e)?e.some(t):Object.keys(e).some((function(i){return t(e[i],i)})))},every:function(e,t){return!e||(Array.isArray(e)?e.every(t):Object.keys(e).every((function(i){return t(e[i],i)})))},map:function(e,t){return e?Array.isArray(e)?e.map(t):Object.keys(e).map((function(i){return t(e[i],i)})):[]},keyBy:function(e,t){return e.reduce((function(e,i){return e[i[t]]=i,e}),{})},isEqual:function(e,t){var i=n(e),a=n(t),r=Array.isArray(e),s=Array.isArray(t);if(i!==a)return!1;switch(n(e)){case"object":return r||s?!(!r||!s)&&e.length===t.length&&e.every((function(e,i){var n=t[i];return o.isEqual(e,n)})):o.every(e,(function(e,i){var n=t[i];return o.isEqual(e,n)}));default:return e===t}},escapeHtml:function(e){var t=r.exec(e);if(!t)return e;for(var i="",n="",a=0,o=t.index;o<e.length;o++){switch(e.charAt(o)){case'"':n="&quot;";break;case"&":n="&amp;";break;case"'":n="&apos;";break;case"<":n="&lt;";break;case">":n="&gt;";break;default:continue}a!==o&&(i+=e.substring(a,o)),a=o+1,i+=n}return a!==o?i+e.substring(a,o):i},strcmp:function(e,t){return e<t?-1:e>t?1:0},isUndefined:function(e){return"[object Undefined]"===a.call(e)},isObject:function(e){return"[object Object]"===a.call(e)},deepMerge:function(){var e,t,i,n=arguments[0]||{},a=arguments.length;function r(a,r){e=n[r],i=Array.isArray(a),o.isObject(a)||i?(i?(i=!1,t=e&&Array.isArray(e)?e:[]):t=e&&o.isObject(e)?e:{},n[r]=o.deepMerge(t,a)):o.isUndefined(a)||(n[r]=a)}for(var s=0;s<a;s++)o.each(arguments[s],r);return n}};t.exports=o},{}],26:[function(e,i,n){(function(t,n){"use strict";var a=e("fs"),r=/[<>&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/,o={nop:function(){},promiseImmediate:function(e){return new Promise((function(i){t.setImmediate?n((function(){i(e)})):setTimeout((function(){i(e)}),1)}))},inherits:function(e,t,i,n){e.super_=t,n||(n=i,i=null),i&&Object.keys(i).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}));var a={constructor:{value:e,enumerable:!1,writable:!1,configurable:!0}};n&&Object.keys(n).forEach((function(e){a[e]=Object.getOwnPropertyDescriptor(n,e)})),e.prototype=Object.create(t.prototype,a)},dateToExcel:function(e,t){return 25569+e.getTime()/864e5-(t?1462:0)},excelToDate:function(e,t){var i=Math.round(24*(e-25569+(t?1462:0))*3600*1e3);return new Date(i)},parsePath:function(e){var t=e.lastIndexOf("/");return{path:e.substring(0,t),name:e.substring(t+1)}},getRelsPath:function(e){var t=o.parsePath(e);return"".concat(t.path,"/_rels/").concat(t.name,".rels")},xmlEncode:function(e){var t=r.exec(e);if(!t)return e;for(var i="",n="",a=0,o=t.index;o<e.length;o++){var s=e.charCodeAt(o);switch(s){case 34:n="&quot;";break;case 38:n="&amp;";break;case 39:n="&apos;";break;case 60:n="&lt;";break;case 62:n="&gt;";break;case 127:n="";break;default:if(s<=31&&(s<=8||s>=11&&13!==s)){n="";break}continue}a!==o&&(i+=e.substring(a,o)),a=o+1,n&&(i+=n)}return a!==o?i+e.substring(a,o):i},xmlDecode:function(e){return e.replace(/&([a-z]*);/g,(function(e){switch(e){case"&lt;":return"<";case"&gt;":return">";case"&amp;":return"&";case"&apos;":return"'";case"&quot;":return'"';default:return e}}))},validInt:function(e){var t=parseInt(e,10);return Number.isNaN(t)?0:t},isDateFmt:function(e){return!!e&&null!==(e=(e=e.replace(/\[[^\]]*]/g,"")).replace(/"[^"]*"/g,"")).match(/[ymdhMsb]+/)},fs:{exists:function(e){return new Promise((function(t){a.access(e,a.constants.F_OK,(function(e){t(!e)}))}))}},toIsoDateString:function(e){return e.toIsoString().subsstr(0,10)}};i.exports=o}).call(this,"undefined"!=typeof t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("timers").setImmediate)},{fs:215,timers:521}],27:[function(e,t,i){"use strict";function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var a=e("./under-dash"),r=e("./utils");function o(e,t,i){e.push(" "),e.push(t),e.push('="'),e.push(r.xmlEncode(i.toString())),e.push('"')}function s(e,t){t&&a.each(t,(function(t,i){void 0!==t&&o(e,i,t)}))}var l=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._xml=[],this._stack=[],this._rollbacks=[]}var t,i,a;return t=e,(i=[{key:"openXml",value:function(e){var t=this._xml;t.push("<?xml"),s(t,e),t.push("?>\n")}},{key:"openNode",value:function(e,t){var i=this.tos,n=this._xml;i&&this.open&&n.push(">"),this._stack.push(e),n.push("<"),n.push(e),s(n,t),this.leaf=!0,this.open=!0}},{key:"addAttribute",value:function(e,t){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");void 0!==t&&o(this._xml,e,t)}},{key:"addAttributes",value:function(e){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");s(this._xml,e)}},{key:"writeText",value:function(e){var t=this._xml;this.open&&(t.push(">"),this.open=!1),this.leaf=!1,t.push(r.xmlEncode(e.toString()))}},{key:"writeXml",value:function(e){this.open&&(this._xml.push(">"),this.open=!1),this.leaf=!1,this._xml.push(e)}},{key:"closeNode",value:function(){var e=this._stack.pop(),t=this._xml;this.leaf?t.push("/>"):(t.push("</"),t.push(e),t.push(">")),this.open=!1,this.leaf=!1}},{key:"leafNode",value:function(e,t,i){this.openNode(e,t),void 0!==i&&this.writeText(i),this.closeNode()}},{key:"closeAll",value:function(){for(;this._stack.length;)this.closeNode()}},{key:"addRollback",value:function(){return this._rollbacks.push({xml:this._xml.length,stack:this._stack.length,leaf:this.leaf,open:this.open}),this.cursor}},{key:"commit",value:function(){this._rollbacks.pop()}},{key:"rollback",value:function(){var e=this._rollbacks.pop();this._xml.length>e.xml&&this._xml.splice(e.xml,this._xml.length-e.xml),this._stack.length>e.stack&&this._stack.splice(e.stack,this._stack.length-e.stack),this.leaf=e.leaf,this.open=e.open}},{key:"tos",get:function(){return this._stack.length?this._stack[this._stack.length-1]:void 0}},{key:"cursor",get:function(){return this._xml.length}},{key:"xml",get:function(){return this.closeAll(),this._xml.join("")}}])&&n(t.prototype,i),a&&n(t,a),e}();l.StdDocAttributes={version:"1.0",encoding:"UTF-8",standalone:"yes"},t.exports=l},{"./under-dash":25,"./utils":26}],28:[function(e,t,i){(function(i){"use strict";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 a(e,t,i,n,a,r,o){try{var s=e[r](o),l=s.value}catch(e){return void i(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=c(e);if(t){var a=c(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return l(this,i)}}function l(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=e("events"),d=e("jszip"),f=e("./stream-buf"),h=e("./browser-buffer-encode").stringToBuffer,p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(m,e);var t,n,l,c,u,p=s(m);function m(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,m),(t=p.call(this)).options=Object.assign({type:"nodebuffer",compression:"DEFLATE"},e),t.zip=new d,t.stream=new f,t}return t=m,(n=[{key:"append",value:function(e,t){t.hasOwnProperty("base64")&&t.base64?this.zip.file(t.name,e,{base64:!0}):(i.browser&&"string"==typeof e&&(e=h(e)),this.zip.file(t.name,e))}},{key:"finalize",value:(c=regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.zip.generateAsync(this.options);case 2:t=e.sent,this.stream.end(t),this.emit("finish");case 5:case"end":return e.stop()}}),e,this)})),u=function(){var e=this,t=arguments;return new Promise((function(i,n){var r=c.apply(e,t);function o(e){a(r,i,n,o,s,"next",e)}function s(e){a(r,i,n,o,s,"throw",e)}o(void 0)}))},function(){return u.apply(this,arguments)})},{key:"read",value:function(e){return this.stream.read(e)}},{key:"setEncoding",value:function(e){return this.stream.setEncoding(e)}},{key:"pause",value:function(){return this.stream.pause()}},{key:"resume",value:function(){return this.stream.resume()}},{key:"isPaused",value:function(){return this.stream.isPaused()}},{key:"pipe",value:function(e,t){return this.stream.pipe(e,t)}},{key:"unpipe",value:function(e){return this.stream.unpipe(e)}},{key:"unshift",value:function(e){return this.stream.unshift(e)}},{key:"wrap",value:function(e){return this.stream.wrap(e)}}])&&r(t.prototype,n),l&&r(t,l),m}(u.EventEmitter);t.exports={ZipWriter:p}}).call(this,e("_process"))},{"./browser-buffer-encode":17,"./stream-buf":23,_process:467,events:367,jszip:399}],29:[function(e,t,i){"use strict";t.exports={0:{f:"General"},1:{f:"0"},2:{f:"0.00"},3:{f:"#,##0"},4:{f:"#,##0.00"},9:{f:"0%"},10:{f:"0.00%"},11:{f:"0.00E+00"},12:{f:"# ?/?"},13:{f:"# ??/??"},14:{f:"mm-dd-yy"},15:{f:"d-mmm-yy"},16:{f:"d-mmm"},17:{f:"mmm-yy"},18:{f:"h:mm AM/PM"},19:{f:"h:mm:ss AM/PM"},20:{f:"h:mm"},21:{f:"h:mm:ss"},22:{f:'m/d/yy "h":mm'},27:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},28:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},29:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},30:{"zh-tw":"m/d/yy ","zh-cn":"m-d-yy","ja-jp":"m/d/yy","ko-kr":"mm-dd-yy"},31:{"zh-tw":'yyyy"年"m"月"d"日"',"zh-cn":'yyyy"年"m"月"d"日"',"ja-jp":'yyyy"年"m"月"d"日"',"ko-kr":'yyyy"년" mm"월" dd"일"'},32:{"zh-tw":'hh"時"mm"分"',"zh-cn":'h"时"mm"分"',"ja-jp":'h"時"mm"分"',"ko-kr":'h"시" mm"분"'},33:{"zh-tw":'hh"時"mm"分"ss"秒"',"zh-cn":'h"时"mm"分"ss"秒"',"ja-jp":'h"時"mm"分"ss"秒"',"ko-kr":'h"시" mm"분" ss"초"'},34:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'上午/下午 h"时"mm"分"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},35:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'上午/下午 h"时"mm"分"ss"秒"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},36:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},37:{f:"#,##0 ;(#,##0)"},38:{f:"#,##0 ;[Red](#,##0)"},39:{f:"#,##0.00 ;(#,##0.00)"},40:{f:"#,##0.00 ;[Red](#,##0.00)"},45:{f:"mm:ss"},46:{f:"[h]:mm:ss"},47:{f:"mmss.0"},48:{f:"##0.0E+0"},49:{f:"@"},50:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},51:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},52:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'yyyy"年"m"月"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},53:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'m"月"d"日"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},54:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},55:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'上午/下午 h"时"mm"分"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},56:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'上午/下午 h"时"mm"分"ss"秒"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},57:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},58:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},59:{"th-th":"t0"},60:{"th-th":"t0.00"},61:{"th-th":"t#,##0"},62:{"th-th":"t#,##0.00"},67:{"th-th":"t0%"},68:{"th-th":"t0.00%"},69:{"th-th":"t# ?/?"},70:{"th-th":"t# ??/??"},81:{"th-th":"d/m/bb"}}},{}],30:[function(e,t,i){"use strict";t.exports={OfficeDocument:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",Worksheet:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet",CalcChain:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/calcChain",SharedStrings:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",Styles:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",Theme:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",Hyperlink:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",Image:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",CoreProperties:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",ExtenderProperties:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",Comments:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",VmlDrawing:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",Table:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/table"}},{}],31:[function(e,t,i){"use strict";function n(e,t){var i;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(i=function(e,t){if(e){if("string"==typeof e)return a(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?a(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}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 o,s=!0,l=!1;return{s:function(){i=e[Symbol.iterator]()},n:function(){var e=i.next();return s=e.done,e},e:function(e){l=!0,o=e},f:function(){try{s||null==i.return||i.return()}finally{if(l)throw o}}}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function r(e,t,i,n,a,r,o){try{var s=e[r](o),l=s.value}catch(e){return void i(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function o(e){return function(){var t=this,i=arguments;return new Promise((function(n,a){var o=e.apply(t,i);function s(e){r(o,n,a,s,l,"next",e)}function l(e){r(o,n,a,s,l,"throw",e)}s(void 0)}))}}function s(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e){var t;if("undefined"!=typeof Symbol){if(Symbol.asyncIterator&&null!=(t=e[Symbol.asyncIterator]))return t.call(e);if(Symbol.iterator&&null!=(t=e[Symbol.iterator]))return t.call(e)}throw new TypeError("Object is not async iterable")}var c=e("../../utils/parse-sax"),u=e("../../utils/xml-stream"),d=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,i,a,r,d;return t=e,i=[{key:"prepare",value:function(){}},{key:"render",value:function(){}},{key:"parseOpen",value:function(e){}},{key:"parseText",value:function(e){}},{key:"parseClose",value:function(e){}},{key:"reconcile",value:function(e,t){}},{key:"reset",value:function(){this.model=null,this.map&&Object.values(this.map).forEach((function(t){t instanceof e?t.reset():t.xform&&t.xform.reset()}))}},{key:"mergeModel",value:function(e){this.model=Object.assign(this.model||{},e)}},{key:"parse",value:(d=o(regeneratorRuntime.mark((function e(t){var i,a,r,o,s,c,u,d,f,h,p;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=!0,a=!1,e.prev=2,o=l(t);case 4:return e.next=6,o.next();case 6:return s=e.sent,i=s.done,e.next=10,s.value;case 10:if(c=e.sent,i){e.next=42;break}u=n(c),e.prev=14,u.s();case 16:if((d=u.n()).done){e.next=31;break}if(f=d.value,h=f.eventType,p=f.value,"opentag"!==h){e.next=22;break}this.parseOpen(p),e.next=29;break;case 22:if("text"!==h){e.next=26;break}this.parseText(p),e.next=29;break;case 26:if("closetag"!==h){e.next=29;break}if(this.parseClose(p.name)){e.next=29;break}return e.abrupt("return",this.model);case 29:e.next=16;break;case 31:e.next=36;break;case 33:e.prev=33,e.t0=e.catch(14),u.e(e.t0);case 36:return e.prev=36,u.f(),e.finish(36);case 39:i=!0,e.next=4;break;case 42:e.next=48;break;case 44:e.prev=44,e.t1=e.catch(2),a=!0,r=e.t1;case 48:if(e.prev=48,e.prev=49,i||null==o.return){e.next=53;break}return e.next=53,o.return();case 53:if(e.prev=53,!a){e.next=56;break}throw r;case 56:return e.finish(53);case 57:return e.finish(48);case 58:return e.abrupt("return",this.model);case 59:case"end":return e.stop()}}),e,this,[[2,44,48,58],[14,33,36,39],[49,,53,57]])}))),function(e){return d.apply(this,arguments)})},{key:"parseStream",value:(r=o(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.parse(c(t)));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"toXml",value:function(e){var t=new u;return this.render(t,e),t.xml}},{key:"xml",get:function(){return this.toXml(this.model)}}],a=[{key:"toAttribute",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(void 0===e){if(i)return t}else if(i||e!==t)return e.toString()}},{key:"toStringAttribute",value:function(t,i){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e.toAttribute(t,i,n)}},{key:"toStringValue",value:function(e,t){return void 0===e?t:e}},{key:"toBoolAttribute",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(void 0===e){if(i)return t}else if(i||e!==t)return e?"1":"0"}},{key:"toBoolValue",value:function(e,t){return void 0===e?t:"1"===e}},{key:"toIntAttribute",value:function(t,i){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e.toAttribute(t,i,n)}},{key:"toIntValue",value:function(e,t){return void 0===e?t:parseInt(e,10)}},{key:"toFloatAttribute",value:function(t,i){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e.toAttribute(t,i,n)}},{key:"toFloatValue",value:function(e,t){return void 0===e?t:parseFloat(e)}}],i&&s(t.prototype,i),a&&s(t,a),e}();t.exports=d},{"../../utils/parse-sax":21,"../../utils/xml-stream":27}],32:[function(e,t,i){"use strict";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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=c(e);if(t){var a=c(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return l(this,i)}}function l(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=e("../base-xform"),d=e("../../../utils/col-cache"),f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(c,e);var t,i,n,l=s(c);function c(){return a(this,c),l.apply(this,arguments)}return t=c,(i=[{key:"render",value:function(e,t){e.openNode("definedName",{name:t.name,localSheetId:t.localSheetId}),e.writeText(t.ranges.join(",")),e.closeNode()}},{key:"parseOpen",value:function(e){switch(e.name){case"definedName":return this._parsedName=e.attributes.name,this._parsedLocalSheetId=e.attributes.localSheetId,this._parsedText=[],!0;default:return!1}}},{key:"parseText",value:function(e){this._parsedText.push(e)}},{key:"parseClose",value:function(){return this.model={name:this._parsedName,ranges:p(this._parsedText.join(""))},void 0!==this._parsedLocalSheetId&&(this.model.localSheetId=parseInt(this._parsedLocalSheetId,10)),!1}}])&&r(t.prototype,i),n&&r(t,n),c}(u);function h(e){try{return d.decodeEx(e),!0}catch(e){return!1}}function p(e){var t=[],i=!1,n="";return e.split(",").forEach((function(e){if(e){var a=(e.match(/'/g)||[]).length;if(a){var r=a%2==0;!i&&r&&h(e)?t.push(e):i&&!r?(i=!1,h(n+e)&&t.push(n+e),n=""):(i=!0,n+="".concat(e,","))}else i?n+="".concat(e,","):h(e)&&t.push(e)}})),t}t.exports=f},{"../../../utils/col-cache":19,"../base-xform":31}],33:[function(e,t,i){"use strict";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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=c(e);if(t){var a=c(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return l(this,i)}}function l(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=e("../../../utils/utils"),d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(c,e);var t,i,n,l=s(c);function c(){return a(this,c),l.apply(this,arguments)}return t=c,(i=[{key:"render",value:function(e,t){e.leafNode("sheet",{sheetId:t.id,name:t.name,state:t.state,"r:id":t.rId})}},{key:"parseOpen",value:function(e){return"sheet"===e.name&&(this.model={name:u.xmlDecode(e.attributes.name),id:parseInt(e.attributes.sheetId,10),state:e.attributes.state,rId:e.attributes["r:id"]},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])&&r(t.prototype,i),n&&r(t,n),c}(e("../base-xform"));t.exports=d},{"../../../utils/utils":26,"../base-xform":31}],34:[function(e,t,i){"use strict";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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=c(e);if(t){var a=c(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return l(this,i)}}function l(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(c,e);var t,i,n,l=s(c);function c(){return a(this,c),l.apply(this,arguments)}return t=c,(i=[{key:"render",value:function(e,t){e.leafNode("calcPr",{calcId:171027,fullCalcOnLoad:t.fullCalcOnLoad?1:void 0})}},{key:"parseOpen",value:function(e){return"calcPr"===e.name&&(this.model={},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])&&r(t.prototype,i),n&&r(t,n),c}(e("../base-xform"));t.exports=u},{"../base-xform":31}],35:[function(e,t,i){"use strict";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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=c(e);if(t){var a=c(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return l(this,i)}}function l(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(c,e);var t,i,n,l=s(c);function c(){return a(this,c),l.apply(this,arguments)}return t=c,(i=[{key:"render",value:function(e,t){e.leafNode("workbookPr",{date1904:t.date1904?1:void 0,defaultThemeVersion:164011,filterPrivacy:1})}},{key:"parseOpen",value:function(e){return"workbookPr"===e.name&&(this.model={date1904:"1"===e.attributes.date1904},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])&&r(t.prototype,i),n&&r(t,n),c}(e("../base-xform"));t.exports=u},{"../base-xform":31}],36:[function(e,t,i){"use strict";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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=c(e);if(t){var a=c(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return l(this,i)}}function l(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(c,e);var t,i,n,l=s(c);function c(){return a(this,c),l.apply(this,arguments)}return t=c,(i=[{key:"render",value:function(e,t){var i={xWindow:t.x||0,yWindow:t.y||0,windowWidth:t.width||12e3,windowHeight:t.height||24e3,firstSheet:t.firstSheet,activeTab:t.activeTab};t.visibility&&"visible"!==t.visibility&&(i.visibility=t.visibility),e.leafNode("workbookView",i)}},{key:"parseOpen",value:function(e){if("workbookView"===e.name){var t=this.model={},i=function(e,i,n){var a=void 0!==i?t[e]=parseInt(i,10):n;void 0!==a&&(t[e]=a)};return i("x",e.attributes.xWindow,0),i("y",e.attributes.yWindow,0),i("width",e.attributes.windowWidth,25e3),i("height",e.attributes.windowHeight,1e4),n="visibility",a=e.attributes.visibility,r="visible",void 0!==(o=void 0!==a?t[n]=a:r)&&(t[n]=o),i("activeTab",e.attributes.activeTab,void 0),i("firstSheet",e.attributes.firstSheet,void 0),!0}var n,a,r,o;return!1}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])&&r(t.prototype,i),n&&r(t,n),c}(e("../base-xform"));t.exports=u},{"../base-xform":31}],37:[function(e,t,i){"use strict";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 a(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=l(e);if(t){var a=l(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return s(this,i)}}function s(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=e("../../../utils/under-dash"),u=e("../../../utils/col-cache"),d=e("../../../utils/xml-stream"),f=e("../base-xform"),h=e("../static-xform"),p=e("../list-xform"),m=e("./defined-name-xform"),g=e("./sheet-xform"),v=e("./workbook-view-xform"),b=e("./workbook-properties-xform"),y=e("./workbook-calc-properties-xform"),w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(l,e);var t,i,n,s=o(l);function l(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(e=s.call(this)).map={fileVersion:l.STATIC_XFORMS.fileVersion,workbookPr:new b,bookViews:new p({tag:"bookViews",count:!1,childXform:new v}),sheets:new p({tag:"sheets",count:!1,childXform:new g}),definedNames:new p({tag:"definedNames",count:!1,childXform:new m}),calcPr:new y},e}return t=l,(i=[{key:"prepare",value:function(e){e.sheets=e.worksheets;var t=[],i=0;e.sheets.forEach((function(e){if(e.pageSetup&&e.pageSetup.printArea&&e.pageSetup.printArea.split("&&").forEach((function(n){var a=n.split(":"),r={name:"_xlnm.Print_Area",ranges:["'".concat(e.name,"'!$").concat(a[0],":$").concat(a[1])],localSheetId:i};t.push(r)})),e.pageSetup&&(e.pageSetup.printTitlesRow||e.pageSetup.printTitlesColumn)){var n=[];if(e.pageSetup.printTitlesColumn){var a=e.pageSetup.printTitlesColumn.split(":");n.push("'".concat(e.name,"'!$").concat(a[0],":$").concat(a[1]))}if(e.pageSetup.printTitlesRow){var r=e.pageSetup.printTitlesRow.split(":");n.push("'".concat(e.name,"'!$").concat(r[0],":$").concat(r[1]))}var o={name:"_xlnm.Print_Titles",ranges:n,localSheetId:i};t.push(o)}i++})),t.length&&(e.definedNames=e.definedNames.concat(t)),(e.media||[]).forEach((function(e,t){e.name=e.type+(t+1)}))}},{key:"render",value:function(e,t){e.openXml(d.StdDocAttributes),e.openNode("workbook",l.WORKBOOK_ATTRIBUTES),this.map.fileVersion.render(e),this.map.workbookPr.render(e,t.properties),this.map.bookViews.render(e,t.views),this.map.sheets.render(e,t.sheets),this.map.definedNames.render(e,t.definedNames),this.map.calcPr.render(e,t.calcProperties),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"workbook":return!0;default:return this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e),!0}}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case"workbook":return this.model={sheets:this.map.sheets.model,properties:this.map.workbookPr.model||{},views:this.map.bookViews.model,calcProperties:{}},this.map.definedNames.model&&(this.model.definedNames=this.map.definedNames.model),!1;default:return!0}}},{key:"reconcile",value:function(e){var t,i=(e.workbookRels||[]).reduce((function(e,t){return e[t.Id]=t,e}),{}),n=[],a=0;(e.sheets||[]).forEach((function(r){var o=i[r.rId];o&&(t=e.worksheetHash["xl/".concat(o.Target.replace(/^(\s|\/xl\/)+/,""))])&&(t.name=r.name,t.id=r.id,t.state=r.state,n[a++]=t)}));var r=[];c.each(e.definedNames,(function(e){if("_xlnm.Print_Area"===e.name){if(t=n[e.localSheetId]){t.pageSetup||(t.pageSetup={});var i=u.decodeEx(e.ranges[0]);t.pageSetup.printArea=t.pageSetup.printArea?"".concat(t.pageSetup.printArea,"&&").concat(i.dimensions):i.dimensions}}else if("_xlnm.Print_Titles"===e.name){if(t=n[e.localSheetId]){t.pageSetup||(t.pageSetup={});var a=e.ranges.join(","),o=/\$/g,s=a.match(/\$\d+:\$\d+/);if(s&&s.length){var l=s[0];t.pageSetup.printTitlesRow=l.replace(o,"")}var c=a.match(/\$[A-Z]+:\$[A-Z]+/);if(c&&c.length){var d=c[0];t.pageSetup.printTitlesColumn=d.replace(o,"")}}}else r.push(e)})),e.definedNames=r,e.media.forEach((function(e,t){e.index=t}))}}])&&a(t.prototype,i),n&&a(t,n),l}(f);w.WORKBOOK_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x15","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},w.STATIC_XFORMS={fileVersion:new h({tag:"fileVersion",$:{appName:"xl",lastEdited:5,lowestEdited:5,rupBuild:9303}})},t.exports=w},{"../../../utils/col-cache":19,"../../../utils/under-dash":25,"../../../utils/xml-stream":27,"../base-xform":31,"../list-xform":70,"../static-xform":119,"./defined-name-xform":32,"./sheet-xform":33,"./workbook-calc-properties-xform":34,"./workbook-properties-xform":35,"./workbook-view-xform":36}],38:[function(e,t,i){"use strict";function n(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function a(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var r=e("../strings/rich-text-xform"),o=e("../../../utils/utils"),s=e("../base-xform"),l=t.exports=function(e){this.model=e};o.inherits(l,s,{get tag(){return"r"},get richTextXform(){return this._richTextXform||(this._richTextXform=new r),this._richTextXform},render:function(e,t){var i=this;t=t||this.model,e.openNode("comment",{ref:t.ref,authorId:0}),e.openNode("text"),t&&t.note&&t.note.texts&&t.note.texts.forEach((function(t){i.richTextXform.render(e,t)})),e.closeNode(),e.closeNode()},parseOpen:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"comment":return this.model=function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?n(Object(i),!0).forEach((function(t){a(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):n(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}({type:"note",note:{texts:[]}},e.attributes),!0;case"r":return this.parser=this.richTextXform,this.parser.parseOpen(e),!0;default:return!1}},parseText:function(e){this.parser&&this.parser.parseText(e)},parseClose:function(e){switch(e){case"comment":return!1;case"r":return this.model.note.texts.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(e),!0}}})},{"../../../utils/utils":26,"../base-xform":31,"../strings/rich-text-xform":121}],39:[function(e,t,i){"use strict";var n=e("../../../utils/xml-stream"),a=e("../../../utils/utils"),r=e("../base-xform"),o=e("./comment-xform"),s=t.exports=function(){this.map={comment:new o}};a.inherits(s,r,{COMMENTS_ATTRIBUTES:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},{render:function(e,t){var i=this;t=t||this.model,e.openXml(n.StdDocAttributes),e.openNode("comments",s.COMMENTS_ATTRIBUTES),e.openNode("authors"),e.leafNode("author",null,"Author"),e.closeNode(),e.openNode("commentList"),t.comments.forEach((function(t){i.map.comment.render(e,t)})),e.closeNode(),e.closeNode()},parseOpen:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"commentList":return this.model={comments:[]},!0;case"comment":return this.parser=this.map.comment,this.parser.parseOpen(e),!0;default:return!1}},parseText:function(e){this.parser&&this.parser.parseText(e)},parseClose:function(e){switch(e){case"commentList":return!1;case"comment":return this.model.comments.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(e),!0}}})},{"../../../utils/utils":26,"../../../utils/xml-stream":27,"../base-xform":31,"./comment-xform":38}],40:[function(e,t,i){"use strict";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 a(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=l(e);if(t){var a=l(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return s(this,i)}}function s(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(l,e);var t,i,n,s=o(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=s.call(this))._model=e,t}return t=l,(i=[{key:"render",value:function(e,t,i){(t===i[2]||"x:SizeWithCells"===this.tag&&t===i[1])&&e.leafNode(this.tag)}},{key:"parseOpen",value:function(e){switch(e.name){case this.tag:return this.model={},this.model[this.tag]=!0,!0;default:return!1}}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return this._model&&this._model.tag}}])&&a(t.prototype,i),n&&a(t,n),l}(e("../../base-xform"));t.exports=c},{"../../base-xform":31}],41:[function(e,t,i){"use strict";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 a(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=l(e);if(t){var a=l(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return s(this,i)}}function s(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(l,e);var t,i,n,s=o(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=s.call(this))._model=e,t}return t=l,(i=[{key:"render",value:function(e,t){e.leafNode(this.tag,null,t)}},{key:"parseOpen",value:function(e){switch(e.name){case this.tag:return this.text="",!0;default:return!1}}},{key:"parseText",value:function(e){this.text=e}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return this._model&&this._model.tag}}])&&a(t.prototype,i),n&&a(t,n),l}(e("../../base-xform"));t.exports=c},{"../../base-xform":31}],42:[function(e,t,i){"use strict";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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=c(e);if(t){var a=c(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return l(this,i)}}function l(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(c,e);var t,i,n,l=s(c);function c(){return a(this,c),l.apply(this,arguments)}return t=c,(i=[{key:"getAnchorRect",value:function(e){var t=Math.floor(e.left),i=Math.floor(68*(e.left-t)),n=Math.floor(e.top),a=Math.floor(18*(e.top-n)),r=Math.floor(e.right),o=Math.floor(68*(e.right-r)),s=Math.floor(e.bottom);return[t,i,n,a,r,o,s,Math.floor(18*(e.bottom-s))]}},{key:"getDefaultRect",value:function(e){var t=e.col,i=Math.max(e.row-2,0);return[t,6,i,14,t+2,2,i+4,16]}},{key:"render",value:function(e,t){var i=t.anchor?this.getAnchorRect(t.anchor):this.getDefaultRect(t.refAddress);e.leafNode("x:Anchor",null,i.join(", "))}},{key:"parseOpen",value:function(e){switch(e.name){case this.tag:return this.text="",!0;default:return!1}}},{key:"parseText",value:function(e){this.text=e}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"x:Anchor"}}])&&r(t.prototype,i),n&&r(t,n),c}(e("../base-xform"));t.exports=u},{"../base-xform":31}],43:[function(e,t,i){"use strict";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 a(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=l(e);if(t){var a=l(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return s(this,i)}}function s(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=e("../base-xform"),u=e("./vml-anchor-xform"),d=e("./style/vml-protection-xform"),f=e("./style/vml-position-xform"),h=["twoCells","oneCells","absolute"],p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(l,e);var t,i,n,s=o(l);function l(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(e=s.call(this)).map={"x:Anchor":new u,"x:Locked":new d({tag:"x:Locked"}),"x:LockText":new d({tag:"x:LockText"}),"x:SizeWithCells":new f({tag:"x:SizeWithCells"}),"x:MoveWithCells":new f({tag:"x:MoveWithCells"})},e}return t=l,(i=[{key:"render",value:function(e,t){var i=t.note,n=i.protection,a=i.editAs;e.openNode(this.tag,{ObjectType:"Note"}),this.map["x:MoveWithCells"].render(e,a,h),this.map["x:SizeWithCells"].render(e,a,h),this.map["x:Anchor"].render(e,t),this.map["x:Locked"].render(e,n.locked),e.leafNode("x:AutoFill",null,"False"),this.map["x:LockText"].render(e,n.lockText),e.leafNode("x:Row",null,t.refAddress.row-1),e.leafNode("x:Column",null,t.refAddress.col-1),e.closeNode()}},{key:"parseOpen",value:function(e){switch(e.name){case this.tag:this.reset(),this.model={anchor:[],protection:{},editAs:""};break;default:this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)}return!0}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case this.tag:return this.normalizeModel(),!1;default:return!0}}},{key:"normalizeModel",value:function(){var e=Object.assign({},this.map["x:MoveWithCells"].model,this.map["x:SizeWithCells"].model),t=Object.keys(e).length;this.model.editAs=h[t],this.model.anchor=this.map["x:Anchor"].text,this.model.protection.locked=this.map["x:Locked"].text,this.model.protection.lockText=this.map["x:LockText"].text}},{key:"tag",get:function(){return"x:ClientData"}}])&&a(t.prototype,i),n&&a(t,n),l}(c);t.exports=p},{"../base-xform":31,"./style/vml-position-xform":40,"./style/vml-protection-xform":41,"./vml-anchor-xform":42}],44:[function(e,t,i){"use strict";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 a(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=l(e);if(t){var a=l(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return s(this,i)}}function s(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=e("../../../utils/xml-stream"),u=e("../base-xform"),d=e("./vml-shape-xform"),f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(l,e);var t,i,n,s=o(l);function l(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(e=s.call(this)).map={"v:shape":new d},e}return t=l,(i=[{key:"render",value:function(e,t){var i=this;e.openXml(c.StdDocAttributes),e.openNode(this.tag,l.DRAWING_ATTRIBUTES),e.openNode("o:shapelayout",{"v:ext":"edit"}),e.leafNode("o:idmap",{"v:ext":"edit",data:1}),e.closeNode(),e.openNode("v:shapetype",{id:"_x0000_t202",coordsize:"21600,21600","o:spt":202,path:"m,l,21600r21600,l21600,xe"}),e.leafNode("v:stroke",{joinstyle:"miter"}),e.leafNode("v:path",{gradientshapeok:"t","o:connecttype":"rect"}),e.closeNode(),t.comments.forEach((function(t,n){i.map["v:shape"].render(e,t,n)})),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.tag:this.reset(),this.model={comments:[]};break;default:this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)}return!0}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){if(this.parser)return this.parser.parseClose(e)||(this.model.comments.push(this.parser.model),this.parser=void 0),!0;switch(e){case this.tag:return!1;default:return!0}}},{key:"reconcile",value:function(e,t){var i=this;e.anchors.forEach((function(e){e.br?i.map["xdr:twoCellAnchor"].reconcile(e,t):i.map["xdr:oneCellAnchor"].reconcile(e,t)}))}},{key:"tag",get:function(){return"xml"}}])&&a(t.prototype,i),n&&a(t,n),l}(u);f.DRAWING_ATTRIBUTES={"xmlns:v":"urn:schemas-microsoft-com:vml","xmlns:o":"urn:schemas-microsoft-com:office:office","xmlns:x":"urn:schemas-microsoft-com:office:excel"},t.exports=f},{"../../../utils/xml-stream":27,"../base-xform":31,"./vml-shape-xform":45}],45:[function(e,t,i){"use strict";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 a(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=l(e);if(t){var a=l(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return s(this,i)}}function s(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=e("../base-xform"),u=e("./vml-textbox-xform"),d=e("./vml-client-data-xform"),f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(l,e);var t,i,n,s=o(l);function l(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(e=s.call(this)).map={"v:textbox":new u,"x:ClientData":new d},e}return t=l,(i=[{key:"render",value:function(e,t,i){e.openNode("v:shape",l.V_SHAPE_ATTRIBUTES(t,i)),e.leafNode("v:fill",{color2:"infoBackground [80]"}),e.leafNode("v:shadow",{color:"none [81]",obscured:"t"}),e.leafNode("v:path",{"o:connecttype":"none"}),this.map["v:textbox"].render(e,t),this.map["x:ClientData"].render(e,t),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.tag:this.reset(),this.model={margins:{insetmode:e.attributes["o:insetmode"]},anchor:"",editAs:"",protection:{}};break;default:this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)}return!0}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case this.tag:return this.model.margins.inset=this.map["v:textbox"].model&&this.map["v:textbox"].model.inset,this.model.protection=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.protection,this.model.anchor=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.anchor,this.model.editAs=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.editAs,!1;default:return!0}}},{key:"tag",get:function(){return"v:shape"}}])&&a(t.prototype,i),n&&a(t,n),l}(c);f.V_SHAPE_ATTRIBUTES=function(e,t){return{id:"_x0000_s".concat(1025+t),type:"#_x0000_t202",style:"position:absolute; margin-left:105.3pt;margin-top:10.5pt;width:97.8pt;height:59.1pt;z-index:1;visibility:hidden",fillcolor:"infoBackground [80]",strokecolor:"none [81]","o:insetmode":e.note.margins&&e.note.margins.insetmode}},t.exports=f},{"../base-xform":31,"./vml-client-data-xform":43,"./vml-textbox-xform":46}],46:[function(e,t,i){"use strict";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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=c(e);if(t){var a=c(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return l(this,i)}}function l(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(c,e);var t,i,n,l=s(c);function c(){return a(this,c),l.apply(this,arguments)}return t=c,(i=[{key:"conversionUnit",value:function(e,t,i){return"".concat(parseFloat(e)*t.toFixed(2)).concat(i)}},{key:"reverseConversionUnit",value:function(e){var t=this;return(e||"").split(",").map((function(e){return Number(parseFloat(t.conversionUnit(parseFloat(e),.1,"")).toFixed(2))}))}},{key:"render",value:function(e,t){var i=this,n={style:"mso-direction-alt:auto"};if(t&&t.note){var a=(t.note&&t.note.margins).inset;Array.isArray(a)&&(a=a.map((function(e){return i.conversionUnit(e,10,"mm")})).join(",")),a&&(n.inset=a)}e.openNode("v:textbox",n),e.leafNode("div",{style:"text-align:left"}),e.closeNode()}},{key:"parseOpen",value:function(e){switch(e.name){case this.tag:return this.model={inset:this.reverseConversionUnit(e.attributes.inset)},!0;default:return!0}}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(e){switch(e){case this.tag:return!1;default:return!0}}},{key:"tag",get:function(){return"v:textbox"}}])&&r(t.prototype,i),n&&r(t,n),c}(e("../base-xform"));t.exports=u},{"../base-xform":31}],47:[function(e,t,i){"use strict";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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=c(e);if(t){var a=c(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return l(this,i)}}function l(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(c,e);var t,i,n,l=s(c);function c(){return a(this,c),l.apply(this,arguments)}return t=c,(i=[{key:"createNewModel",value:function(e){return{}}},{key:"parseOpen",value:function(e){return this.parser=this.parser||this.map[e.name],this.parser?(this.parser.parseOpen(e),!0):e.name===this.tag&&(this.model=this.createNewModel(e),!0)}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"onParserClose",value:function(e,t){this.model[e]=t.model}},{key:"parseClose",value:function(e){return this.parser?(this.parser.parseClose(e)||(this.onParserClose(e,this.parser),this.parser=void 0),!0):e!==this.tag}}])&&r(t.prototype,i),n&&r(t,n),c}(e("./base-xform"));t.exports=u},{"./base-xform":31}],48:[function(e,t,i){"use strict";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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=c(e);if(t){var a=c(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return l(this,i)}}function l(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(c,e);var t,i,n,l=s(c);function c(){return a(this,c),l.apply(this,arguments)}return t=c,(i=[{key:"render",value:function(e,t){e.openNode("HeadingPairs"),e.openNode("vt:vector",{size:2,baseType:"variant"}),e.openNode("vt:variant"),e.leafNode("vt:lpstr",void 0,"Worksheets"),e.closeNode(),e.openNode("vt:variant"),e.leafNode("vt:i4",void 0,t.length),e.closeNode(),e.closeNode(),e.closeNode()}},{key:"parseOpen",value:function(e){return"HeadingPairs"===e.name}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(e){return"HeadingPairs"!==e}}])&&r(t.prototype,i),n&&r(t,n),c}(e("../base-xform"));t.exports=u},{"../base-xform":31}],49:[function(e,t,i){"use strict";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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=c(e);if(t){var a=c(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return l(this,i)}}function l(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(c,e);var t,i,n,l=s(c);function c(){return a(this,c),l.apply(this,arguments)}return t=c,(i=[{key:"render",value:function(e,t){e.openNode("TitlesOfParts"),e.openNode("vt:vector",{size:t.length,baseType:"lpstr"}),t.forEach((function(t){e.leafNode("vt:lpstr",void 0,t.name)})),e.closeNode(),e.closeNode()}},{key:"parseOpen",value:function(e){return"TitlesOfParts"===e.name}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(e){return"TitlesOfParts"!==e}}])&&r(t.prototype,i),n&&r(t,n),c}(e("../base-xform"));t.exports=u},{"../base-xform":31}],50:[function(e,t,i){"use strict";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 a(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=l(e);if(t){var a=l(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return s(this,i)}}function s(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=e("../../../utils/xml-stream"),u=e("../base-xform"),d=e("../simple/string-xform"),f=e("./app-heading-pairs-xform"),h=e("./app-titles-of-parts-xform"),p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(l,e);var t,i,n,s=o(l);function l(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(e=s.call(this)).map={Company:new d({tag:"Company"}),Manager:new d({tag:"Manager"}),HeadingPairs:new f,TitleOfParts:new h},e}return t=l,(i=[{key:"render",value:function(e,t){e.openXml(c.StdDocAttributes),e.openNode("Properties",l.PROPERTY_ATTRIBUTES),e.leafNode("Application",void 0,"Microsoft Excel"),e.leafNode("DocSecurity",void 0,"0"),e.leafNode("ScaleCrop",void 0,"false"),this.map.HeadingPairs.render(e,t.worksheets),this.map.TitleOfParts.render(e,t.worksheets),this.map.Company.render(e,t.company||""),this.map.Manager.render(e,t.manager),e.leafNode("LinksUpToDate",void 0,"false"),e.leafNode("SharedDoc",void 0,"false"),e.leafNode("HyperlinksChanged",void 0,"false"),e.leafNode("AppVersion",void 0,"16.0300"),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"Properties":return!0;default:return this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0)}}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case"Properties":return this.model={worksheets:this.map.TitleOfParts.model,company:this.map.Company.model,manager:this.map.Manager.model},!1;default:return!0}}}])&&a(t.prototype,i),n&&a(t,n),l}(u);p.DateFormat=function(e){return e.toISOString().replace(/[.]\d{3,6}/,"")},p.DateAttrs={"xsi:type":"dcterms:W3CDTF"},p.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties","xmlns:vt":"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"},t.exports=p},{"../../../utils/xml-stream":27,"../base-xform":31,"../simple/string-xform":118,"./app-heading-pairs-xform":48,"./app-titles-of-parts-xform":49}],51:[function(e,t,i){"use strict";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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=c(e);if(t){var a=c(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return l(this,i)}}function l(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=e("../../../utils/xml-stream"),d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(c,e);var t,i,n,l=s(c);function c(){return a(this,c),l.apply(this,arguments)}return t=c,(i=[{key:"render",value:function(e,t){e.openXml(u.StdDocAttributes),e.openNode("Types",c.PROPERTY_ATTRIBUTES);var i={};(t.media||[]).forEach((function(t){if("image"===t.type){var n=t.extension;i[n]||(i[n]=!0,e.leafNode("Default",{Extension:n,ContentType:"image/".concat(n)}))}})),e.leafNode("Default",{Extension:"rels",ContentType:"application/vnd.openxmlformats-package.relationships+xml"}),e.leafNode("Default",{Extension:"xml",ContentType:"application/xml"}),e.leafNode("Override",{PartName:"/xl/workbook.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"}),t.worksheets.forEach((function(t){var i="/xl/worksheets/sheet".concat(t.id,".xml");e.leafNode("Override",{PartName:i,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"})})),e.leafNode("Override",{PartName:"/xl/theme/theme1.xml",ContentType:"application/vnd.openxmlformats-officedocument.theme+xml"}),e.leafNode("Override",{PartName:"/xl/styles.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"}),t.sharedStrings&&t.sharedStrings.count&&e.leafNode("Override",{PartName:"/xl/sharedStrings.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"}),t.tables&&t.tables.forEach((function(t){e.leafNode("Override",{PartName:"/xl/tables/".concat(t.target),ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml"})})),t.drawings&&t.drawings.forEach((function(t){e.leafNode("Override",{PartName:"/xl/drawings/".concat(t.name,".xml"),ContentType:"application/vnd.openxmlformats-officedocument.drawing+xml"})})),t.commentRefs&&(e.leafNode("Default",{Extension:"vml",ContentType:"application/vnd.openxmlformats-officedocument.vmlDrawing"}),t.commentRefs.forEach((function(t){var i=t.commentName;e.leafNode("Override",{PartName:"/xl/".concat(i,".xml"),ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml"})}))),e.leafNode("Override",{PartName:"/docProps/core.xml",ContentType:"application/vnd.openxmlformats-package.core-properties+xml"}),e.leafNode("Override",{PartName:"/docProps/app.xml",ContentType:"application/vnd.openxmlformats-officedocument.extended-properties+xml"}),e.closeNode()}},{key:"parseOpen",value:function(){return!1}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])&&r(t.prototype,i),n&&r(t,n),c}(e("../base-xform"));d.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"},t.exports=d},{"../../../utils/xml-stream":27,"../base-xform":31}],52:[function(e,t,i){"use strict";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 a(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=l(e);if(t){var a=l(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return s(this,i)}}function s(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=e("../../../utils/xml-stream"),u=e("../base-xform"),d=e("../simple/date-xform"),f=e("../simple/string-xform"),h=e("../simple/integer-xform"),p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(l,e);var t,i,n,s=o(l);function l(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(e=s.call(this)).map={"dc:creator":new f({tag:"dc:creator"}),"dc:title":new f({tag:"dc:title"}),"dc:subject":new f({tag:"dc:subject"}),"dc:description":new f({tag:"dc:description"}),"dc:identifier":new f({tag:"dc:identifier"}),"dc:language":new f({tag:"dc:language"}),"cp:keywords":new f({tag:"cp:keywords"}),"cp:category":new f({tag:"cp:category"}),"cp:lastModifiedBy":new f({tag:"cp:lastModifiedBy"}),"cp:lastPrinted":new d({tag:"cp:lastPrinted",format:l.DateFormat}),"cp:revision":new h({tag:"cp:revision"}),"cp:version":new f({tag:"cp:version"}),"cp:contentStatus":new f({tag:"cp:contentStatus"}),"cp:contentType":new f({tag:"cp:contentType"}),"dcterms:created":new d({tag:"dcterms:created",attrs:l.DateAttrs,format:l.DateFormat}),"dcterms:modified":new d({tag:"dcterms:modified",attrs:l.DateAttrs,format:l.DateFormat})},e}return t=l,(i=[{key:"render",value:function(e,t){e.openXml(c.StdDocAttributes),e.openNode("cp:coreProperties",l.CORE_PROPERTY_ATTRIBUTES),this.map["dc:creator"].render(e,t.creator),this.map["dc:title"].render(e,t.title),this.map["dc:subject"].render(e,t.subject),this.map["dc:description"].render(e,t.description),this.map["dc:identifier"].render(e,t.identifier),this.map["dc:language"].render(e,t.language),this.map["cp:keywords"].render(e,t.keywords),this.map["cp:category"].render(e,t.category),this.map["cp:lastModifiedBy"].render(e,t.lastModifiedBy),this.map["cp:lastPrinted"].render(e,t.lastPrinted),this.map["cp:revision"].render(e,t.revision),this.map["cp:version"].render(e,t.version),this.map["cp:contentStatus"].render(e,t.contentStatus),this.map["cp:contentType"].render(e,t.contentType),this.map["dcterms:created"].render(e,t.created),this.map["dcterms:modified"].render(e,t.modified),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"cp:coreProperties":case"coreProperties":return!0;default:if(this.parser=this.map[e.name],this.parser)return this.parser.parseOpen(e),!0;throw new Error("Unexpected xml node in parseOpen: ".concat(JSON.stringify(e)))}}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case"cp:coreProperties":case"coreProperties":return this.model={creator:this.map["dc:creator"].model,title:this.map["dc:title"].model,subject:this.map["dc:subject"].model,description:this.map["dc:description"].model,identifier:this.map["dc:identifier"].model,language:this.map["dc:language"].model,keywords:this.map["cp:keywords"].model,category:this.map["cp:category"].model,lastModifiedBy:this.map["cp:lastModifiedBy"].model,lastPrinted:this.map["cp:lastPrinted"].model,revision:this.map["cp:revision"].model,contentStatus:this.map["cp:contentStatus"].model,contentType:this.map["cp:contentType"].model,created:this.map["dcterms:created"].model,modified:this.map["dcterms:modified"].model},!1;default:throw new Error("Unexpected xml node in parseClose: ".concat(e))}}}])&&a(t.prototype,i),n&&a(t,n),l}(u);p.DateFormat=function(e){return e.toISOString().replace(/[.]\d{3}/,"")},p.DateAttrs={"xsi:type":"dcterms:W3CDTF"},p.CORE_PROPERTY_ATTRIBUTES={"xmlns:cp":"http://schemas.openxmlformats.org/package/2006/metadata/core-properties","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:dcterms":"http://purl.org/dc/terms/","xmlns:dcmitype":"http://purl.org/dc/dcmitype/","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance"},t.exports=p},{"../../../utils/xml-stream":27,"../base-xform":31,"../simple/date-xform":116,"../simple/integer-xform":117,"../simple/string-xform":118}],53:[function(e,t,i){"use strict";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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=c(e);if(t){var a=c(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return l(this,i)}}function l(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(c,e);var t,i,n,l=s(c);function c(){return a(this,c),l.apply(this,arguments)}return t=c,(i=[{key:"render",value:function(e,t){e.leafNode("Relationship",t)}},{key:"parseOpen",value:function(e){switch(e.name){case"Relationship":return this.model=e.attributes,!0;default:return!1}}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])&&r(t.prototype,i),n&&r(t,n),c}(e("../base-xform"));t.exports=u},{"../base-xform":31}],54:[function(e,t,i){"use strict";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 a(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=l(e);if(t){var a=l(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return s(this,i)}}function s(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=e("../../../utils/xml-stream"),u=e("../base-xform"),d=e("./relationship-xform"),f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(l,e);var t,i,n,s=o(l);function l(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(e=s.call(this)).map={Relationship:new d},e}return t=l,(i=[{key:"render",value:function(e,t){var i=this;t=t||this._values,e.openXml(c.StdDocAttributes),e.openNode("Relationships",l.RELATIONSHIPS_ATTRIBUTES),t.forEach((function(t){i.map.Relationship.render(e,t)})),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"Relationships":return this.model=[],!0;default:if(this.parser=this.map[e.name],this.parser)return this.parser.parseOpen(e),!0;throw new Error("Unexpected xml node in parseOpen: ".concat(JSON.stringify(e)))}}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){if(this.parser)return this.parser.parseClose(e)||(this.model.push(this.parser.model),this.parser=void 0),!0;switch(e){case"Relationships":return!1;default:throw new Error("Unexpected xml node in parseClose: ".concat(e))}}}])&&a(t.prototype,i),n&&a(t,n),l}(u);f.RELATIONSHIPS_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"},t.exports=f},{"../../../utils/xml-stream":27,"../base-xform":31,"./relationship-xform":53}],55:[function(e,t,i){"use strict";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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=c(e);if(t){var a=c(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return l(this,i)}}function l(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(c,e);var t,i,n,l=s(c);function c(){return a(this,c),l.apply(this,arguments)}return t=c,(i=[{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.tag:this.reset(),this.model={range:{editAs:e.attributes.editAs||"oneCell"}};break;default:this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)}return!0}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"reconcilePicture",value:function(e,t){if(e&&e.rId){var i=t.rels[e.rId].Target.match(/.*\/media\/(.+[.][a-zA-Z]{3,4})/);if(i){var n=i[1],a=t.mediaIndex[n];return t.media[a]}}}}])&&r(t.prototype,i),n&&r(t,n),c}(e("../base-xform"));t.exports=u},{"../base-xform":31}],56:[function(e,t,i){"use strict";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 a(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=l(e);if(t){var a=l(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return s(this,i)}}function s(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=e("../base-xform"),u=e("./blip-xform"),d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(l,e);var t,i,n,s=o(l);function l(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(e=s.call(this)).map={"a:blip":new u},e}return t=l,(i=[{key:"render",value:function(e,t){e.openNode(this.tag),this.map["a:blip"].render(e,t),e.openNode("a:stretch"),e.leafNode("a:fillRect"),e.closeNode(),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.tag:this.reset();break;default:this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)}return!0}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case this.tag:return this.model=this.map["a:blip"].model,!1;default:return!0}}},{key:"tag",get:function(){return"xdr:blipFill"}}])&&a(t.prototype,i),n&&a(t,n),l}(c);t.exports=d},{"../base-xform":31,"./blip-xform":57}],57:[function(e,t,i){"use strict";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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=c(e);if(t){var a=c(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return l(this,i)}}function l(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(c,e);var t,i,n,l=s(c);function c(){return a(this,c),l.apply(this,arguments)}return t=c,(i=[{key:"render",value:function(e,t){e.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:embed":t.rId,cstate:"print"})}},{key:"parseOpen",value:function(e){switch(e.name){case this.tag:return this.model={rId:e.attributes["r:embed"]},!0;default:return!0}}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(e){switch(e){case this.tag:return!1;default:return!0}}},{key:"tag",get:function(){return"a:blip"}}])&&r(t.prototype,i),n&&r(t,n),c}(e("../base-xform"));t.exports=u},{"../base-xform":31}],58:[function(e,t,i){"use strict";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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=c(e);if(t){var a=c(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return l(this,i)}}function l(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(c,e);var t,i,n,l=s(c);function c(){return a(this,c),l.apply(this,arguments)}return t=c,(i=[{key:"render",value:function(e){e.openNode(this.tag),e.leafNode("a:picLocks",{noChangeAspect:"1"}),e.closeNode()}},{key:"parseOpen",value:function(e){switch(e.name){case this.tag:default:return!0}}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(e){switch(e){case this.tag:return!1;default:return!0}}},{key:"tag",get:function(){return"xdr:cNvPicPr"}}])&&r(t.prototype,i),n&&r(t,n),c}(e("../base-xform"));t.exports=u},{"../base-xform":31}],59:[function(e,t,i){"use strict";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 a(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=l(e);if(t){var a=l(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return s(this,i)}}function s(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=e("../base-xform"),u=e("./hlink-click-xform"),d=e("./ext-lst-xform"),f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(l,e);var t,i,n,s=o(l);function l(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(e=s.call(this)).map={"a:hlinkClick":new u,"a:extLst":new d},e}return t=l,(i=[{key:"render",value:function(e,t){e.openNode(this.tag,{id:t.index,name:"Picture ".concat(t.index)}),this.map["a:hlinkClick"].render(e,t),this.map["a:extLst"].render(e,t),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.tag:this.reset();break;default:this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)}return!0}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case this.tag:return this.model=this.map["a:hlinkClick"].model,!1;default:return!0}}},{key:"tag",get:function(){return"xdr:cNvPr"}}])&&a(t.prototype,i),n&&a(t,n),l}(c);t.exports=f},{"../base-xform":31,"./ext-lst-xform":62,"./hlink-click-xform":64}],60:[function(e,t,i){"use strict";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 a(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=l(e);if(t){var a=l(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return s(this,i)}}function s(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=e("../base-xform"),u=e("../simple/integer-xform"),d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(l,e);var t,i,n,s=o(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=s.call(this)).tag=e.tag,t.map={"xdr:col":new u({tag:"xdr:col",zero:!0}),"xdr:colOff":new u({tag:"xdr:colOff",zero:!0}),"xdr:row":new u({tag:"xdr:row",zero:!0}),"xdr:rowOff":new u({tag:"xdr:rowOff",zero:!0})},t}return t=l,(i=[{key:"render",value:function(e,t){e.openNode(this.tag),this.map["xdr:col"].render(e,t.nativeCol),this.map["xdr:colOff"].render(e,t.nativeColOff),this.map["xdr:row"].render(e,t.nativeRow),this.map["xdr:rowOff"].render(e,t.nativeRowOff),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.tag:this.reset();break;default:this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)}return!0}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case this.tag:return this.model={nativeCol:this.map["xdr:col"].model,nativeColOff:this.map["xdr:colOff"].model,nativeRow:this.map["xdr:row"].model,nativeRowOff:this.map["xdr:rowOff"].model},!1;default:return!0}}}])&&a(t.prototype,i),n&&a(t,n),l}(c);t.exports=d},{"../base-xform":31,"../simple/integer-xform":117}],61:[function(e,t,i){"use strict";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 a(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=l(e);if(t){var a=l(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return s(this,i)}}function s(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=e("../../../utils/col-cache"),u=e("../../../utils/xml-stream"),d=e("../base-xform"),f=e("./two-cell-anchor-xform"),h=e("./one-cell-anchor-xform"),p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(l,e);var t,i,n,s=o(l);function l(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(e=s.call(this)).map={"xdr:twoCellAnchor":new f,"xdr:oneCellAnchor":new h},e}return t=l,(i=[{key:"prepare",value:function(e){var t=this;e.anchors.forEach((function(e,i){e.anchorType=function(e){return("string"==typeof e.range?c.decode(e.range):e.range).br?"xdr:twoCellAnchor":"xdr:oneCellAnchor"}(e),t.map[e.anchorType].prepare(e,{index:i})}))}},{key:"render",value:function(e,t){var i=this;e.openXml(u.StdDocAttributes),e.openNode(this.tag,l.DRAWING_ATTRIBUTES),t.anchors.forEach((function(t){i.map[t.anchorType].render(e,t)})),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.tag:this.reset(),this.model={anchors:[]};break;default:this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)}return!0}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){if(this.parser)return this.parser.parseClose(e)||(this.model.anchors.push(this.parser.model),this.parser=void 0),!0;switch(e){case this.tag:return!1;default:return!0}}},{key:"reconcile",value:function(e,t){var i=this;e.anchors.forEach((function(e){e.br?i.map["xdr:twoCellAnchor"].reconcile(e,t):i.map["xdr:oneCellAnchor"].reconcile(e,t)}))}},{key:"tag",get:function(){return"xdr:wsDr"}}])&&a(t.prototype,i),n&&a(t,n),l}(d);p.DRAWING_ATTRIBUTES={"xmlns:xdr":"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing","xmlns:a":"http://schemas.openxmlformats.org/drawingml/2006/main"},t.exports=p},{"../../../utils/col-cache":19,"../../../utils/xml-stream":27,"../base-xform":31,"./one-cell-anchor-xform":66,"./two-cell-anchor-xform":69}],62:[function(e,t,i){"use strict";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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=c(e);if(t){var a=c(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return l(this,i)}}function l(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(c,e);var t,i,n,l=s(c);function c(){return a(this,c),l.apply(this,arguments)}return t=c,(i=[{key:"render",value:function(e){e.openNode(this.tag),e.openNode("a:ext",{uri:"{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}"}),e.leafNode("a16:creationId",{"xmlns:a16":"http://schemas.microsoft.com/office/drawing/2014/main",id:"{00000000-0008-0000-0000-000002000000}"}),e.closeNode(),e.closeNode()}},{key:"parseOpen",value:function(e){switch(e.name){case this.tag:default:return!0}}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(e){switch(e){case this.tag:return!1;default:return!0}}},{key:"tag",get:function(){return"a:extLst"}}])&&r(t.prototype,i),n&&r(t,n),c}(e("../base-xform"));t.exports=u},{"../base-xform":31}],63:[function(e,t,i){"use strict";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 a(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=l(e);if(t){var a=l(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return s(this,i)}}function s(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=e("../base-xform"),u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(l,e);var t,i,n,s=o(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=s.call(this)).tag=e.tag,t.map={},t}return t=l,(i=[{key:"render",value:function(e,t){e.openNode(this.tag);var i=Math.floor(9525*t.width),n=Math.floor(9525*t.height);e.addAttribute("cx",i),e.addAttribute("cy",n),e.closeNode()}},{key:"parseOpen",value:function(e){return e.name===this.tag&&(this.model={width:parseInt(e.attributes.cx||"0",10)/9525,height:parseInt(e.attributes.cy||"0",10)/9525},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])&&a(t.prototype,i),n&&a(t,n),l}(c);t.exports=u},{"../base-xform":31}],64:[function(e,t,i){"use strict";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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=c(e);if(t){var a=c(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return l(this,i)}}function l(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(c,e);var t,i,n,l=s(c);function c(){return a(this,c),l.apply(this,arguments)}return t=c,(i=[{key:"render",value:function(e,t){t.hyperlinks&&t.hyperlinks.rId&&e.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:id":t.hyperlinks.rId,tooltip:t.hyperlinks.tooltip})}},{key:"parseOpen",value:function(e){switch(e.name){case this.tag:return this.model={hyperlinks:{rId:e.attributes["r:id"],tooltip:e.attributes.tooltip}},!0;default:return!0}}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"a:hlinkClick"}}])&&r(t.prototype,i),n&&r(t,n),c}(e("../base-xform"));t.exports=u},{"../base-xform":31}],65:[function(e,t,i){"use strict";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 a(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=l(e);if(t){var a=l(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return s(this,i)}}function s(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=e("../base-xform"),u=e("./c-nv-pr-xform"),d=e("./c-nv-pic-pr-xform"),f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(l,e);var t,i,n,s=o(l);function l(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(e=s.call(this)).map={"xdr:cNvPr":new u,"xdr:cNvPicPr":new d},e}return t=l,(i=[{key:"render",value:function(e,t){e.openNode(this.tag),this.map["xdr:cNvPr"].render(e,t),this.map["xdr:cNvPicPr"].render(e,t),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.tag:this.reset();break;default:this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)}return!0}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case this.tag:return this.model=this.map["xdr:cNvPr"].model,!1;default:return!0}}},{key:"tag",get:function(){return"xdr:nvPicPr"}}])&&a(t.prototype,i),n&&a(t,n),l}(c);t.exports=f},{"../base-xform":31,"./c-nv-pic-pr-xform":58,"./c-nv-pr-xform":59}],66:[function(e,t,i){"use strict";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 a(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=l(e);if(t){var a=l(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return s(this,i)}}function s(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=e("./base-cell-anchor-xform"),u=e("../static-xform"),d=e("./cell-position-xform"),f=e("./ext-xform"),h=e("./pic-xform"),p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(l,e);var t,i,n,s=o(l);function l(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(e=s.call(this)).map={"xdr:from":new d({tag:"xdr:from"}),"xdr:ext":new f({tag:"xdr:ext"}),"xdr:pic":new h,"xdr:clientData":new u({tag:"xdr:clientData"})},e}return t=l,(i=[{key:"prepare",value:function(e,t){this.map["xdr:pic"].prepare(e.picture,t)}},{key:"render",value:function(e,t){e.openNode(this.tag,{editAs:t.range.editAs||"oneCell"}),this.map["xdr:from"].render(e,t.range.tl),this.map["xdr:ext"].render(e,t.range.ext),this.map["xdr:pic"].render(e,t.picture),this.map["xdr:clientData"].render(e,{}),e.closeNode()}},{key:"parseClose",value:function(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case this.tag:return this.model.range.tl=this.map["xdr:from"].model,this.model.range.ext=this.map["xdr:ext"].model,this.model.picture=this.map["xdr:pic"].model,!1;default:return!0}}},{key:"reconcile",value:function(e,t){e.medium=this.reconcilePicture(e.picture,t)}},{key:"tag",get:function(){return"xdr:oneCellAnchor"}}])&&a(t.prototype,i),n&&a(t,n),l}(c);t.exports=p},{"../static-xform":119,"./base-cell-anchor-xform":55,"./cell-position-xform":60,"./ext-xform":63,"./pic-xform":67}],67:[function(e,t,i){"use strict";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 a(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=l(e);if(t){var a=l(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return s(this,i)}}function s(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=e("../base-xform"),u=e("../static-xform"),d=e("./blip-fill-xform"),f=e("./nv-pic-pr-xform"),h=e("./sp-pr"),p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(l,e);var t,i,n,s=o(l);function l(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(e=s.call(this)).map={"xdr:nvPicPr":new f,"xdr:blipFill":new d,"xdr:spPr":new u(h)},e}return t=l,(i=[{key:"prepare",value:function(e,t){e.index=t.index+1}},{key:"render",value:function(e,t){e.openNode(this.tag),this.map["xdr:nvPicPr"].render(e,t),this.map["xdr:blipFill"].render(e,t),this.map["xdr:spPr"].render(e,t),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.tag:this.reset();break;default:this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)}return!0}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(e){if(this.parser)return this.parser.parseClose(e)||(this.mergeModel(this.parser.model),this.parser=void 0),!0;switch(e){case this.tag:return!1;default:return!0}}},{key:"tag",get:function(){return"xdr:pic"}}])&&a(t.prototype,i),n&&a(t,n),l}(c);t.exports=p},{"../base-xform":31,"../static-xform":119,"./blip-fill-xform":56,"./nv-pic-pr-xform":65,"./sp-pr":68}],68:[function(e,t,i){"use strict";t.exports={tag:"xdr:spPr",c:[{tag:"a:xfrm",c:[{tag:"a:off",$:{x:"0",y:"0"}},{tag:"a:ext",$:{cx:"0",cy:"0"}}]},{tag:"a:prstGeom",$:{prst:"rect"},c:[{tag:"a:avLst"}]}]}},{}],69:[function(e,t,i){"use strict";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 a(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=l(e);if(t){var a=l(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return s(this,i)}}function s(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=e("./base-cell-anchor-xform"),u=e("../static-xform"),d=e("./cell-position-xform"),f=e("./pic-xform"),h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(l,e);var t,i,n,s=o(l);function l(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(e=s.call(this)).map={"xdr:from":new d({tag:"xdr:from"}),"xdr:to":new d({tag:"xdr:to"}),"xdr:pic":new f,"xdr:clientData":new u({tag:"xdr:clientData"})},e}return t=l,(i=[{key:"prepare",value:function(e,t){this.map["xdr:pic"].prepare(e.picture,t)}},{key:"render",value:function(e,t){e.openNode(this.tag,{editAs:t.range.editAs||"oneCell"}),this.map["xdr:from"].render(e,t.range.tl),this.map["xdr:to"].render(e,t.range.br),this.map["xdr:pic"].render(e,t.picture),this.map["xdr:clientData"].render(e,{}),e.closeNode()}},{key:"parseClose",value:function(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case this.tag:return this.model.range.tl=this.map["xdr:from"].model,this.model.range.br=this.map["xdr:to"].model,this.model.picture=this.map["xdr:pic"].model,!1;default:return!0}}},{key:"reconcile",value:function(e,t){e.medium=this.reconcilePicture(e.picture,t)}},{key:"tag",get:function(){return"xdr:twoCellAnchor"}}])&&a(t.prototype,i),n&&a(t,n),l}(c);t.exports=h},{"../static-xform":119,"./base-cell-anchor-xform":55,"./cell-position-xform":60,"./pic-xform":67}],70:[function(e,t,i){"use strict";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 a(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=l(e);if(t){var a=l(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return s(this,i)}}function s(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(l,e);var t,i,n,s=o(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=s.call(this)).tag=e.tag,t.always=!!e.always,t.count=e.count,t.empty=e.empty,t.$count=e.$count||"count",t.$=e.$,t.childXform=e.childXform,t.maxItems=e.maxItems,t}return t=l,(i=[{key:"prepare",value:function(e,t){var i=this.childXform;e&&e.forEach((function(e,n){t.index=n,i.prepare(e,t)}))}},{key:"render",value:function(e,t){if(this.always||t&&t.length){e.openNode(this.tag,this.$),this.count&&e.addAttribute(this.$count,t&&t.length||0);var i=this.childXform;(t||[]).forEach((function(t,n){i.render(e,t,n)})),e.closeNode()}else this.empty&&e.leafNode(this.tag)}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.tag:return this.model=[],!0;default:return!!this.childXform.parseOpen(e)&&(this.parser=this.childXform,!0)}}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){if(this.parser){if(!this.parser.parseClose(e)&&(this.model.push(this.parser.model),this.parser=void 0,this.maxItems&&this.model.length>this.maxItems))throw new Error("Max ".concat(this.childXform.tag," count (").concat(this.maxItems,") exceeded"));return!0}return!1}},{key:"reconcile",value:function(e,t){if(e){var i=this.childXform;e.forEach((function(e){i.reconcile(e,t)}))}}}])&&a(t.prototype,i),n&&a(t,n),l}(e("./base-xform"));t.exports=c},{"./base-xform":31}],71:[function(e,t,i){"use strict";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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=c(e);if(t){var a=c(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return l(this,i)}}function l(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=e("../../../utils/col-cache"),d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(c,e);var t,i,n,l=s(c);function c(){return a(this,c),l.apply(this,arguments)}return t=c,(i=[{key:"render",value:function(e,t){if(t)if("string"==typeof t)e.leafNode("autoFilter",{ref:t});else{var i=function(e){return"string"==typeof e?e:u.getAddress(e.row,e.column).address},n=i(t.from),a=i(t.to);n&&a&&e.leafNode("autoFilter",{ref:"".concat(n,":").concat(a)})}}},{key:"parseOpen",value:function(e){"autoFilter"===e.name&&(this.model=e.attributes.ref)}},{key:"tag",get:function(){return"autoFilter"}}])&&r(t.prototype,i),n&&r(t,n),c}(e("../base-xform"));t.exports=d},{"../../../utils/col-cache":19,"../base-xform":31}],72:[function(e,t,i){"use strict";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 a(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function r(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?a(Object(i),!0).forEach((function(t){o(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):a(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function o(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function s(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=d(e);if(t){var a=d(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return u(this,i)}}function u(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=e("../../../utils/utils"),h=e("../base-xform"),p=e("../../../doc/range"),m=e("../../../doc/enums"),g=e("../strings/rich-text-xform");function v(e){if(null==e)return m.ValueType.Null;if(e instanceof String||"string"==typeof e)return m.ValueType.String;if("number"==typeof e)return m.ValueType.Number;if("boolean"==typeof e)return m.ValueType.Boolean;if(e instanceof Date)return m.ValueType.Date;if(e.text&&e.hyperlink)return m.ValueType.Hyperlink;if(e.formula)return m.ValueType.Formula;if(e.error)return m.ValueType.Error;throw new Error("I could not understand type of value")}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(o,e);var t,i,n,a=c(o);function o(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(e=a.call(this)).richTextXForm=new g,e}return t=o,(i=[{key:"prepare",value:function(e,t){var i=t.styles.addStyleModel(e.style||{},function(e){switch(e.type){case m.ValueType.Formula:return v(e.result);default:return e.type}}(e));switch(i&&(e.styleId=i),e.comment&&t.comments.push(r(r({},e.comment),{},{ref:e.address})),e.type){case m.ValueType.String:case m.ValueType.RichText:t.sharedStrings&&(e.ssId=t.sharedStrings.add(e.value));break;case m.ValueType.Date:t.date1904&&(e.date1904=!0);break;case m.ValueType.Hyperlink:t.sharedStrings&&void 0!==e.text&&null!==e.text&&(e.ssId=t.sharedStrings.add(e.text)),t.hyperlinks.push({address:e.address,target:e.hyperlink,tooltip:e.tooltip});break;case m.ValueType.Merge:t.merges.add(e);break;case m.ValueType.Formula:if(t.date1904&&(e.date1904=!0),"shared"===e.shareType&&(e.si=t.siFormulae++),e.formula)t.formulae[e.address]=e;else if(e.sharedFormula){var n=t.formulae[e.sharedFormula];if(!n)throw new Error("Shared Formula master must exist above and or left of clone for cell ".concat(e.address));void 0===n.si?(n.shareType="shared",n.si=t.siFormulae++,n.range=new p(n.address,e.address)):n.range&&n.range.expandToAddress(e.address),e.si=n.si}}}},{key:"renderFormula",value:function(e,t){var i=null;switch(t.shareType){case"shared":i={t:"shared",ref:t.ref||t.range.range,si:t.si};break;case"array":i={t:"array",ref:t.ref};break;default:void 0!==t.si&&(i={t:"shared",si:t.si})}switch(v(t.result)){case m.ValueType.Null:e.leafNode("f",i,t.formula);break;case m.ValueType.String:e.addAttribute("t","str"),e.leafNode("f",i,t.formula),e.leafNode("v",null,t.result);break;case m.ValueType.Number:e.leafNode("f",i,t.formula),e.leafNode("v",null,t.result);break;case m.ValueType.Boolean:e.addAttribute("t","b"),e.leafNode("f",i,t.formula),e.leafNode("v",null,t.result?1:0);break;case m.ValueType.Error:e.addAttribute("t","e"),e.leafNode("f",i,t.formula),e.leafNode("v",null,t.result.error);break;case m.ValueType.Date:e.leafNode("f",i,t.formula),e.leafNode("v",null,f.dateToExcel(t.result,t.date1904));break;default:throw new Error("I could not understand type of value")}}},{key:"render",value:function(e,t){var i=this;if(t.type!==m.ValueType.Null||t.styleId){switch(e.openNode("c"),e.addAttribute("r",t.address),t.styleId&&e.addAttribute("s",t.styleId),t.type){case m.ValueType.Null:break;case m.ValueType.Number:e.leafNode("v",null,t.value);break;case m.ValueType.Boolean:e.addAttribute("t","b"),e.leafNode("v",null,t.value?"1":"0");break;case m.ValueType.Error:e.addAttribute("t","e"),e.leafNode("v",null,t.value.error);break;case m.ValueType.String:case m.ValueType.RichText:void 0!==t.ssId?(e.addAttribute("t","s"),e.leafNode("v",null,t.ssId)):t.value&&t.value.richText?(e.addAttribute("t","inlineStr"),e.openNode("is"),t.value.richText.forEach((function(t){i.richTextXForm.render(e,t)})),e.closeNode("is")):(e.addAttribute("t","str"),e.leafNode("v",null,t.value));break;case m.ValueType.Date:e.leafNode("v",null,f.dateToExcel(t.value,t.date1904));break;case m.ValueType.Hyperlink:void 0!==t.ssId?(e.addAttribute("t","s"),e.leafNode("v",null,t.ssId)):(e.addAttribute("t","str"),e.leafNode("v",null,t.text));break;case m.ValueType.Formula:this.renderFormula(e,t);break;case m.ValueType.Merge:}e.closeNode()}}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"c":return this.model={address:e.attributes.r},this.t=e.attributes.t,e.attributes.s&&(this.model.styleId=parseInt(e.attributes.s,10)),!0;case"f":return this.currentNode="f",this.model.si=e.attributes.si,this.model.shareType=e.attributes.t,this.model.ref=e.attributes.ref,!0;case"v":return this.currentNode="v",!0;case"t":return this.currentNode="t",!0;case"r":return this.parser=this.richTextXForm,this.parser.parseOpen(e),!0;default:return!1}}},{key:"parseText",value:function(e){if(this.parser)this.parser.parseText(e);else switch(this.currentNode){case"f":this.model.formula=this.model.formula?this.model.formula+e:e;break;case"v":case"t":this.model.value&&this.model.value.richText?this.model.value.richText.text=this.model.value.richText.text?this.model.value.richText.text+e:e:this.model.value=this.model.value?this.model.value+e:e}}},{key:"parseClose",value:function(e){switch(e){case"c":var t=this.model;if(t.formula||t.shareType)t.type=m.ValueType.Formula,t.value&&("str"===this.t?t.result=f.xmlDecode(t.value):"b"===this.t?t.result=0!==parseInt(t.value,10):"e"===this.t?t.result={error:t.value}:t.result=parseFloat(t.value),t.value=void 0);else if(void 0!==t.value)switch(this.t){case"s":t.type=m.ValueType.String,t.value=parseInt(t.value,10);break;case"str":t.type=m.ValueType.String,t.value=f.xmlDecode(t.value);break;case"inlineStr":t.type=m.ValueType.String;break;case"b":t.type=m.ValueType.Boolean,t.value=0!==parseInt(t.value,10);break;case"e":t.type=m.ValueType.Error,t.value={error:t.value};break;default:t.type=m.ValueType.Number,t.value=parseFloat(t.value)}else t.styleId?t.type=m.ValueType.Null:t.type=m.ValueType.Merge;return!1;case"f":case"v":case"is":return this.currentNode=void 0,!0;case"t":return this.parser?(this.parser.parseClose(e),!0):(this.currentNode=void 0,!0);case"r":return this.model.value=this.model.value||{},this.model.value.richText=this.model.value.richText||[],this.model.value.richText.push(this.parser.model),this.parser=void 0,this.currentNode=void 0,!0;default:return!!this.parser&&(this.parser.parseClose(e),!0)}}},{key:"reconcile",value:function(e,t){var i=e.styleId&&t.styles&&t.styles.getStyleModel(e.styleId);switch(i&&(e.style=i),void 0!==e.styleId&&(e.styleId=void 0),e.type){case m.ValueType.String:"number"==typeof e.value&&t.sharedStrings&&(e.value=t.sharedStrings.getString(e.value)),e.value.richText&&(e.type=m.ValueType.RichText);break;case m.ValueType.Number:i&&f.isDateFmt(i.numFmt)&&(e.type=m.ValueType.Date,e.value=f.excelToDate(e.value,t.date1904));break;case m.ValueType.Formula:void 0!==e.result&&i&&f.isDateFmt(i.numFmt)&&(e.result=f.excelToDate(e.result,t.date1904)),"shared"===e.shareType&&(e.ref?t.formulae[e.si]=e.address:(e.sharedFormula=t.formulae[e.si],delete e.shareType),delete e.si)}var n=t.hyperlinkMap[e.address];n&&(e.type===m.ValueType.Formula?(e.text=e.result,e.result=void 0):(e.text=e.value,e.value=void 0),e.type=m.ValueType.Hyperlink,e.hyperlink=n);var a=t.commentsMap&&t.commentsMap[e.address];a&&(e.comment=a)}},{key:"tag",get:function(){return"c"}}])&&s(t.prototype,i),n&&s(t,n),o}(h);t.exports=b},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/utils":26,"../base-xform":31,"../strings/rich-text-xform":121}],73:[function(e,t,i){"use strict";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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=c(e);if(t){var a=c(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return l(this,i)}}function l(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=e("../../base-xform"),d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(c,e);var t,i,n,l=s(c);function c(){return a(this,c),l.apply(this,arguments)}return t=c,(i=[{key:"render",value:function(e,t){e.leafNode(this.tag,{iconSet:t.iconSet,iconId:t.iconId})}},{key:"parseOpen",value:function(e){var t=e.attributes;this.model={iconSet:t.iconSet,iconId:u.toIntValue(t.iconId)}}},{key:"parseClose",value:function(e){return e!==this.tag}},{key:"tag",get:function(){return"x14:cfIcon"}}])&&r(t.prototype,i),n&&r(t,n),c}(u);t.exports=d},{"../../base-xform":31}],74:[function(e,t,i){"use strict";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 a(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=l(e);if(t){var a=l(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return s(this,i)}}function s(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=e("uuid").v4,u=e("../../base-xform"),d=e("../../composite-xform"),f=e("./databar-ext-xform"),h=e("./icon-set-ext-xform"),p={"3Triangles":!0,"3Stars":!0,"5Boxes":!0},m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(l,e);var t,i,n,s=o(l);function l(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(e=s.call(this)).map={"x14:dataBar":e.databarXform=new f,"x14:iconSet":e.iconSetXform=new h},e}return t=l,n=[{key:"isExt",value:function(e){return"dataBar"===e.type?f.isExt(e):!("iconSet"!==e.type||!e.custom&&!p[e.iconSet])}}],(i=[{key:"prepare",value:function(e){l.isExt(e)&&(e.x14Id="{".concat(c(),"}").toUpperCase())}},{key:"render",value:function(e,t){if(l.isExt(t))switch(t.type){case"dataBar":this.renderDataBar(e,t);break;case"iconSet":this.renderIconSet(e,t)}}},{key:"renderDataBar",value:function(e,t){e.openNode(this.tag,{type:"dataBar",id:t.x14Id}),this.databarXform.render(e,t),e.closeNode()}},{key:"renderIconSet",value:function(e,t){e.openNode(this.tag,{type:"iconSet",priority:t.priority,id:t.x14Id||"{".concat(c(),"}")}),this.iconSetXform.render(e,t),e.closeNode()}},{key:"createNewModel",value:function(e){var t=e.attributes;return{type:t.type,x14Id:t.id,priority:u.toIntValue(t.priority)}}},{key:"onParserClose",value:function(e,t){Object.assign(this.model,t.model)}},{key:"tag",get:function(){return"x14:cfRule"}}])&&a(t.prototype,i),n&&a(t,n),l}(d);t.exports=m},{"../../base-xform":31,"../../composite-xform":47,"./databar-ext-xform":78,"./icon-set-ext-xform":80,uuid:526}],75:[function(e,t,i){"use strict";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 a(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=l(e);if(t){var a=l(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return s(this,i)}}function s(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=e("../../composite-xform"),u=e("./f-ext-xform"),d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(l,e);var t,i,n,s=o(l);function l(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(e=s.call(this)).map={"xm:f":e.fExtXform=new u},e}return t=l,(i=[{key:"render",value:function(e,t){e.openNode(this.tag,{type:t.type}),void 0!==t.value&&this.fExtXform.render(e,t.value),e.closeNode()}},{key:"createNewModel",value:function(e){return{type:e.attributes.type}}},{key:"onParserClose",value:function(e,t){switch(e){case"xm:f":this.model.value=t.model?parseFloat(t.model):0}}},{key:"tag",get:function(){return"x14:cfvo"}}])&&a(t.prototype,i),n&&a(t,n),l}(c);t.exports=d},{"../../composite-xform":47,"./f-ext-xform":79}],76:[function(e,t,i){"use strict";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 a(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=l(e);if(t){var a=l(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return s(this,i)}}function s(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=e("../../composite-xform"),u=e("./sqref-ext-xform"),d=e("./cf-rule-ext-xform"),f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(l,e);var t,i,n,s=o(l);function l(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(e=s.call(this)).map={"xm:sqref":e.sqRef=new u,"x14:cfRule":e.cfRule=new d},e}return t=l,(i=[{key:"prepare",value:function(e,t){var i=this;e.rules.forEach((function(e){i.cfRule.prepare(e,t)}))}},{key:"render",value:function(e,t){var i=this;t.rules.some(d.isExt)&&(e.openNode(this.tag,{"xmlns:xm":"http://schemas.microsoft.com/office/excel/2006/main"}),t.rules.filter(d.isExt).forEach((function(t){return i.cfRule.render(e,t)})),this.sqRef.render(e,t.ref),e.closeNode())}},{key:"createNewModel",value:function(){return{rules:[]}}},{key:"onParserClose",value:function(e,t){switch(e){case"xm:sqref":this.model.ref=t.model;break;case"x14:cfRule":this.model.rules.push(t.model)}}},{key:"tag",get:function(){return"x14:conditionalFormatting"}}])&&a(t.prototype,i),n&&a(t,n),l}(c);t.exports=f},{"../../composite-xform":47,"./cf-rule-ext-xform":74,"./sqref-ext-xform":81}],77:[function(e,t,i){"use strict";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 a(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=l(e);if(t){var a=l(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return s(this,i)}}function s(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=e("../../composite-xform"),u=e("./cf-rule-ext-xform"),d=e("./conditional-formatting-ext-xform"),f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(l,e);var t,i,n,s=o(l);function l(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(e=s.call(this)).map={"x14:conditionalFormatting":e.cfXform=new d},e}return t=l,(i=[{key:"hasContent",value:function(e){return void 0===e.hasExtContent&&(e.hasExtContent=e.some((function(e){return e.rules.some(u.isExt)}))),e.hasExtContent}},{key:"prepare",value:function(e,t){var i=this;e.forEach((function(e){i.cfXform.prepare(e,t)}))}},{key:"render",value:function(e,t){var i=this;this.hasContent(t)&&(e.openNode(this.tag),t.forEach((function(t){return i.cfXform.render(e,t)})),e.closeNode())}},{key:"createNewModel",value:function(){return[]}},{key:"onParserClose",value:function(e,t){this.model.push(t.model)}},{key:"tag",get:function(){return"x14:conditionalFormattings"}}])&&a(t.prototype,i),n&&a(t,n),l}(c);t.exports=f},{"../../composite-xform":47,"./cf-rule-ext-xform":74,"./conditional-formatting-ext-xform":76}],78:[function(e,t,i){"use strict";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 a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var i=[],n=!0,a=!1,r=void 0;try{for(var o,s=e[Symbol.iterator]();!(n=(o=s.next()).done)&&(i.push(o.value),!t||i.length!==t);n=!0);}catch(e){a=!0,r=e}finally{try{n||null==s.return||s.return()}finally{if(a)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?r(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function o(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=u(e);if(t){var a=u(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return c(this,i)}}function c(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=e("../../base-xform"),f=e("../../composite-xform"),h=e("../../style/color-xform"),p=e("./cfvo-ext-xform"),m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(c,e);var t,i,n,r=l(c);function c(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(e=r.call(this)).map={"x14:cfvo":e.cfvoXform=new p,"x14:borderColor":e.borderColorXform=new h("x14:borderColor"),"x14:negativeBorderColor":e.negativeBorderColorXform=new h("x14:negativeBorderColor"),"x14:negativeFillColor":e.negativeFillColorXform=new h("x14:negativeFillColor"),"x14:axisColor":e.axisColorXform=new h("x14:axisColor")},e}return t=c,n=[{key:"isExt",value:function(e){return!e.gradient}}],(i=[{key:"render",value:function(e,t){var i=this;e.openNode(this.tag,{minLength:d.toIntAttribute(t.minLength,0,!0),maxLength:d.toIntAttribute(t.maxLength,100,!0),border:d.toBoolAttribute(t.border,!1),gradient:d.toBoolAttribute(t.gradient,!0),negativeBarColorSameAsPositive:d.toBoolAttribute(t.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:d.toBoolAttribute(t.negativeBarBorderColorSameAsPositive,!0),axisPosition:d.toAttribute(t.axisPosition,"auto"),direction:d.toAttribute(t.direction,"leftToRight")}),t.cfvo.forEach((function(t){i.cfvoXform.render(e,t)})),this.borderColorXform.render(e,t.borderColor),this.negativeBorderColorXform.render(e,t.negativeBorderColor),this.negativeFillColorXform.render(e,t.negativeFillColor),this.axisColorXform.render(e,t.axisColor),e.closeNode()}},{key:"createNewModel",value:function(e){var t=e.attributes;return{cfvo:[],minLength:d.toIntValue(t.minLength,0),maxLength:d.toIntValue(t.maxLength,100),border:d.toBoolValue(t.border,!1),gradient:d.toBoolValue(t.gradient,!0),negativeBarColorSameAsPositive:d.toBoolValue(t.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:d.toBoolValue(t.negativeBarBorderColorSameAsPositive,!0),axisPosition:d.toStringValue(t.axisPosition,"auto"),direction:d.toStringValue(t.direction,"leftToRight")}}},{key:"onParserClose",value:function(e,t){var i=a(e.split(":"),2)[1];switch(i){case"cfvo":this.model.cfvo.push(t.model);break;default:this.model[i]=t.model}}},{key:"tag",get:function(){return"x14:dataBar"}}])&&o(t.prototype,i),n&&o(t,n),c}(f);t.exports=m},{"../../base-xform":31,"../../composite-xform":47,"../../style/color-xform":127,"./cfvo-ext-xform":75}],79:[function(e,t,i){"use strict";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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=c(e);if(t){var a=c(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return l(this,i)}}function l(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(c,e);var t,i,n,l=s(c);function c(){return a(this,c),l.apply(this,arguments)}return t=c,(i=[{key:"render",value:function(e,t){e.leafNode(this.tag,null,t)}},{key:"parseOpen",value:function(){this.model=""}},{key:"parseText",value:function(e){this.model+=e}},{key:"parseClose",value:function(e){return e!==this.tag}},{key:"tag",get:function(){return"xm:f"}}])&&r(t.prototype,i),n&&r(t,n),c}(e("../../base-xform"));t.exports=u},{"../../base-xform":31}],80:[function(e,t,i){"use strict";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 a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var i=[],n=!0,a=!1,r=void 0;try{for(var o,s=e[Symbol.iterator]();!(n=(o=s.next()).done)&&(i.push(o.value),!t||i.length!==t);n=!0);}catch(e){a=!0,r=e}finally{try{n||null==s.return||s.return()}finally{if(a)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?r(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function o(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=u(e);if(t){var a=u(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return c(this,i)}}function c(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=e("../../base-xform"),f=e("../../composite-xform"),h=e("./cfvo-ext-xform"),p=e("./cf-icon-ext-xform"),m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(c,e);var t,i,n,r=l(c);function c(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(e=r.call(this)).map={"x14:cfvo":e.cfvoXform=new h,"x14:cfIcon":e.cfIconXform=new p},e}return t=c,(i=[{key:"render",value:function(e,t){var i=this;e.openNode(this.tag,{iconSet:d.toStringAttribute(t.iconSet),reverse:d.toBoolAttribute(t.reverse,!1),showValue:d.toBoolAttribute(t.showValue,!0),custom:d.toBoolAttribute(t.icons,!1)}),t.cfvo.forEach((function(t){i.cfvoXform.render(e,t)})),t.icons&&t.icons.forEach((function(t,n){t.iconId=n,i.cfIconXform.render(e,t)})),e.closeNode()}},{key:"createNewModel",value:function(e){var t=e.attributes;return{cfvo:[],iconSet:d.toStringValue(t.iconSet,"3TrafficLights"),reverse:d.toBoolValue(t.reverse,!1),showValue:d.toBoolValue(t.showValue,!0)}}},{key:"onParserClose",value:function(e,t){var i=a(e.split(":"),2)[1];switch(i){case"cfvo":this.model.cfvo.push(t.model);break;case"cfIcon":this.model.icons||(this.model.icons=[]),this.model.icons.push(t.model);break;default:this.model[i]=t.model}}},{key:"tag",get:function(){return"x14:iconSet"}}])&&o(t.prototype,i),n&&o(t,n),c}(f);t.exports=m},{"../../base-xform":31,"../../composite-xform":47,"./cf-icon-ext-xform":73,"./cfvo-ext-xform":75}],81:[function(e,t,i){"use strict";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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=c(e);if(t){var a=c(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return l(this,i)}}function l(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(c,e);var t,i,n,l=s(c);function c(){return a(this,c),l.apply(this,arguments)}return t=c,(i=[{key:"render",value:function(e,t){e.leafNode(this.tag,null,t)}},{key:"parseOpen",value:function(){this.model=""}},{key:"parseText",value:function(e){this.model+=e}},{key:"parseClose",value:function(e){return e!==this.tag}},{key:"tag",get:function(){return"xm:sqref"}}])&&r(t.prototype,i),n&&r(t,n),c}(e("../../base-xform"));t.exports=u},{"../../base-xform":31}],82:[function(e,t,i){"use strict";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 a(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function r(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?a(Object(i),!0).forEach((function(t){o(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):a(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function o(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function s(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=d(e);if(t){var a=d(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return u(this,i)}}function u(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=e("../../base-xform"),h=e("../../composite-xform"),p=e("../../../../doc/range"),m=e("./databar-xform"),g=e("./ext-lst-ref-xform"),v=e("./formula-xform"),b=e("./color-scale-xform"),y=e("./icon-set-xform"),w={"3Triangles":!0,"3Stars":!0,"5Boxes":!0},_=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(o,e);var t,i,n,a=c(o);function o(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(e=a.call(this)).map={dataBar:e.databarXform=new m,extLst:e.extLstRefXform=new g,formula:e.formulaXform=new v,colorScale:e.colorScaleXform=new b,iconSet:e.iconSetXform=new y},e}return t=o,n=[{key:"isPrimitive",value:function(e){return"iconSet"!==e.type||!e.custom&&!w[e.iconSet]}}],(i=[{key:"render",value:function(e,t){switch(t.type){case"expression":this.renderExpression(e,t);break;case"cellIs":this.renderCellIs(e,t);break;case"top10":this.renderTop10(e,t);break;case"aboveAverage":this.renderAboveAverage(e,t);break;case"dataBar":this.renderDataBar(e,t);break;case"colorScale":this.renderColorScale(e,t);break;case"iconSet":this.renderIconSet(e,t);break;case"containsText":this.renderText(e,t);break;case"timePeriod":this.renderTimePeriod(e,t)}}},{key:"renderExpression",value:function(e,t){e.openNode(this.tag,{type:"expression",dxfId:t.dxfId,priority:t.priority}),this.formulaXform.render(e,t.formulae[0]),e.closeNode()}},{key:"renderCellIs",value:function(e,t){var i=this;e.openNode(this.tag,{type:"cellIs",dxfId:t.dxfId,priority:t.priority,operator:t.operator}),t.formulae.forEach((function(t){i.formulaXform.render(e,t)})),e.closeNode()}},{key:"renderTop10",value:function(e,t){e.leafNode(this.tag,{type:"top10",dxfId:t.dxfId,priority:t.priority,percent:f.toBoolAttribute(t.percent,!1),bottom:f.toBoolAttribute(t.bottom,!1),rank:f.toIntValue(t.rank,10,!0)})}},{key:"renderAboveAverage",value:function(e,t){e.leafNode(this.tag,{type:"aboveAverage",dxfId:t.dxfId,priority:t.priority,aboveAverage:f.toBoolAttribute(t.aboveAverage,!0)})}},{key:"renderDataBar",value:function(e,t){e.openNode(this.tag,{type:"dataBar",priority:t.priority}),this.databarXform.render(e,t),this.extLstRefXform.render(e,t),e.closeNode()}},{key:"renderColorScale",value:function(e,t){e.openNode(this.tag,{type:"colorScale",priority:t.priority}),this.colorScaleXform.render(e,t),e.closeNode()}},{key:"renderIconSet",value:function(e,t){o.isPrimitive(t)&&(e.openNode(this.tag,{type:"iconSet",priority:t.priority}),this.iconSetXform.render(e,t),e.closeNode())}},{key:"renderText",value:function(e,t){e.openNode(this.tag,{type:t.operator,dxfId:t.dxfId,priority:t.priority,operator:f.toStringAttribute(t.operator,"containsText")});var i=function(e){if(e.formulae&&e.formulae[0])return e.formulae[0];var t=new p(e.ref).tl;switch(e.operator){case"containsText":return'NOT(ISERROR(SEARCH("'.concat(e.text,'",').concat(t,")))");case"containsBlanks":return"LEN(TRIM(".concat(t,"))=0");case"notContainsBlanks":return"LEN(TRIM(".concat(t,"))>0");case"containsErrors":return"ISERROR(".concat(t,")");case"notContainsErrors":return"NOT(ISERROR(".concat(t,"))");default:return}}(t);i&&this.formulaXform.render(e,i),e.closeNode()}},{key:"renderTimePeriod",value:function(e,t){e.openNode(this.tag,{type:"timePeriod",dxfId:t.dxfId,priority:t.priority,timePeriod:t.timePeriod});var i=function(e){if(e.formulae&&e.formulae[0])return e.formulae[0];var t=new p(e.ref).tl;switch(e.timePeriod){case"thisWeek":return"AND(TODAY()-ROUNDDOWN(".concat(t,",0)<=WEEKDAY(TODAY())-1,ROUNDDOWN(").concat(t,",0)-TODAY()<=7-WEEKDAY(TODAY()))");case"lastWeek":return"AND(TODAY()-ROUNDDOWN(".concat(t,",0)>=(WEEKDAY(TODAY())),TODAY()-ROUNDDOWN(").concat(t,",0)<(WEEKDAY(TODAY())+7))");case"nextWeek":return"AND(ROUNDDOWN(".concat(t,",0)-TODAY()>(7-WEEKDAY(TODAY())),ROUNDDOWN(").concat(t,",0)-TODAY()<(15-WEEKDAY(TODAY())))");case"yesterday":return"FLOOR(".concat(t,",1)=TODAY()-1");case"today":return"FLOOR(".concat(t,",1)=TODAY()");case"tomorrow":return"FLOOR(".concat(t,",1)=TODAY()+1");case"last7Days":return"AND(TODAY()-FLOOR(".concat(t,",1)<=6,FLOOR(").concat(t,",1)<=TODAY())");case"lastMonth":return"AND(MONTH(".concat(t,")=MONTH(EDATE(TODAY(),0-1)),YEAR(").concat(t,")=YEAR(EDATE(TODAY(),0-1)))");case"thisMonth":return"AND(MONTH(".concat(t,")=MONTH(TODAY()),YEAR(").concat(t,")=YEAR(TODAY()))");case"nextMonth":return"AND(MONTH(".concat(t,")=MONTH(EDATE(TODAY(),0+1)),YEAR(").concat(t,")=YEAR(EDATE(TODAY(),0+1)))");default:return}}(t);i&&this.formulaXform.render(e,i),e.closeNode()}},{key:"createNewModel",value:function(e){var t=e.attributes;return r(r({},function(e){var t=e.type,i=e.operator;switch(t){case"containsText":case"containsBlanks":case"notContainsBlanks":case"containsErrors":case"notContainsErrors":return{type:"containsText",operator:t};default:return{type:t,operator:i}}}(t)),{},{dxfId:f.toIntValue(t.dxfId),priority:f.toIntValue(t.priority),timePeriod:t.timePeriod,percent:f.toBoolValue(t.percent),bottom:f.toBoolValue(t.bottom),rank:f.toIntValue(t.rank),aboveAverage:f.toBoolValue(t.aboveAverage)})}},{key:"onParserClose",value:function(e,t){switch(e){case"dataBar":case"extLst":case"colorScale":case"iconSet":Object.assign(this.model,t.model);break;case"formula":this.model.formulae=this.model.formulae||[],this.model.formulae.push(t.model)}}},{key:"tag",get:function(){return"cfRule"}}])&&s(t.prototype,i),n&&s(t,n),o}(h);t.exports=_},{"../../../../doc/range":10,"../../base-xform":31,"../../composite-xform":47,"./color-scale-xform":84,"./databar-xform":87,"./ext-lst-ref-xform":88,"./formula-xform":89,"./icon-set-xform":90}],83:[function(e,t,i){"use strict";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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=c(e);if(t){var a=c(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return l(this,i)}}function l(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=e("../../base-xform"),d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(c,e);var t,i,n,l=s(c);function c(){return a(this,c),l.apply(this,arguments)}return t=c,(i=[{key:"render",value:function(e,t){e.leafNode(this.tag,{type:t.type,val:t.value})}},{key:"parseOpen",value:function(e){this.model={type:e.attributes.type,value:u.toFloatValue(e.attributes.val)}}},{key:"parseClose",value:function(e){return e!==this.tag}},{key:"tag",get:function(){return"cfvo"}}])&&r(t.prototype,i),n&&r(t,n),c}(u);t.exports=d},{"../../base-xform":31}],84:[function(e,t,i){"use strict";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 a(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=l(e);if(t){var a=l(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return s(this,i)}}function s(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=e("../../composite-xform"),u=e("../../style/color-xform"),d=e("./cfvo-xform"),f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(l,e);var t,i,n,s=o(l);function l(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(e=s.call(this)).map={cfvo:e.cfvoXform=new d,color:e.colorXform=new u},e}return t=l,(i=[{key:"render",value:function(e,t){var i=this;e.openNode(this.tag),t.cfvo.forEach((function(t){i.cfvoXform.render(e,t)})),t.color.forEach((function(t){i.colorXform.render(e,t)})),e.closeNode()}},{key:"createNewModel",value:function(e){return{cfvo:[],color:[]}}},{key:"onParserClose",value:function(e,t){this.model[e].push(t.model)}},{key:"tag",get:function(){return"colorScale"}}])&&a(t.prototype,i),n&&a(t,n),l}(c);t.exports=f},{"../../composite-xform":47,"../../style/color-xform":127,"./cfvo-xform":83}],85:[function(e,t,i){"use strict";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 a(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=l(e);if(t){var a=l(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return s(this,i)}}function s(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=e("../../composite-xform"),u=e("./cf-rule-xform"),d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(l,e);var t,i,n,s=o(l);function l(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(e=s.call(this)).map={cfRule:new u},e}return t=l,(i=[{key:"render",value:function(e,t){var i=this;t.rules.some(u.isPrimitive)&&(e.openNode(this.tag,{sqref:t.ref}),t.rules.forEach((function(n){u.isPrimitive(n)&&(n.ref=t.ref,i.map.cfRule.render(e,n))})),e.closeNode())}},{key:"createNewModel",value:function(e){return{ref:e.attributes.sqref,rules:[]}}},{key:"onParserClose",value:function(e,t){this.model.rules.push(t.model)}},{key:"tag",get:function(){return"conditionalFormatting"}}])&&a(t.prototype,i),n&&a(t,n),l}(c);t.exports=d},{"../../composite-xform":47,"./cf-rule-xform":82}],86:[function(e,t,i){"use strict";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 a(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?r(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 r(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function o(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=u(e);if(t){var a=u(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return c(this,i)}}function c(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=e("../../base-xform"),f=e("./conditional-formatting-xform"),h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(c,e);var t,i,n,r=l(c);function c(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(e=r.call(this)).cfXform=new f,e}return t=c,(i=[{key:"reset",value:function(){this.model=[]}},{key:"prepare",value:function(e,t){var i=e.reduce((function(e,t){return Math.max.apply(Math,[e].concat(a(t.rules.map((function(e){return e.priority||0})))))}),1);e.forEach((function(e){e.rules.forEach((function(e){e.priority||(e.priority=i++),e.style&&(e.dxfId=t.styles.addDxfStyle(e.style))}))}))}},{key:"render",value:function(e,t){var i=this;t.forEach((function(t){i.cfXform.render(e,t)}))}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"conditionalFormatting":return this.parser=this.cfXform,this.parser.parseOpen(e),!0;default:return!1}}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){return!(!this.parser||!this.parser.parseClose(e)&&(this.model.push(this.parser.model),this.parser=void 0,1))}},{key:"reconcile",value:function(e,t){e.forEach((function(e){e.rules.forEach((function(e){void 0!==e.dxfId&&(e.style=t.styles.getDxfStyle(e.dxfId),delete e.dxfId)}))}))}},{key:"tag",get:function(){return"conditionalFormatting"}}])&&o(t.prototype,i),n&&o(t,n),c}(d);t.exports=h},{"../../base-xform":31,"./conditional-formatting-xform":85}],87:[function(e,t,i){"use strict";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 a(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=l(e);if(t){var a=l(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return s(this,i)}}function s(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=e("../../composite-xform"),u=e("../../style/color-xform"),d=e("./cfvo-xform"),f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(l,e);var t,i,n,s=o(l);function l(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(e=s.call(this)).map={cfvo:e.cfvoXform=new d,color:e.colorXform=new u},e}return t=l,(i=[{key:"render",value:function(e,t){var i=this;e.openNode(this.tag),t.cfvo.forEach((function(t){i.cfvoXform.render(e,t)})),this.colorXform.render(e,t.color),e.closeNode()}},{key:"createNewModel",value:function(){return{cfvo:[]}}},{key:"onParserClose",value:function(e,t){switch(e){case"cfvo":this.model.cfvo.push(t.model);break;case"color":this.model.color=t.model}}},{key:"tag",get:function(){return"dataBar"}}])&&a(t.prototype,i),n&&a(t,n),l}(c);t.exports=f},{"../../composite-xform":47,"../../style/color-xform":127,"./cfvo-xform":83}],88:[function(e,t,i){"use strict";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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t,i){return t&&r(e.prototype,t),i&&r(e,i),e}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=d(e);if(t){var a=d(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return u(this,i)}}function u(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=e("../../base-xform"),h=e("../../composite-xform"),p=function(e){s(i,e);var t=c(i);function i(){return a(this,i),t.apply(this,arguments)}return o(i,[{key:"render",value:function(e,t){e.leafNode(this.tag,null,t)}},{key:"parseOpen",value:function(){this.model=""}},{key:"parseText",value:function(e){this.model+=e}},{key:"parseClose",value:function(e){return e!==this.tag}},{key:"tag",get:function(){return"x14:id"}}]),i}(f),m=function(e){s(i,e);var t=c(i);function i(){var e;return a(this,i),(e=t.call(this)).map={"x14:id":e.idXform=new p},e}return o(i,[{key:"render",value:function(e,t){e.openNode(this.tag,{uri:"{B025F937-C7B1-47D3-B67F-A62EFF666E3E}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.idXform.render(e,t.x14Id),e.closeNode()}},{key:"createNewModel",value:function(){return{}}},{key:"onParserClose",value:function(e,t){this.model.x14Id=t.model}},{key:"tag",get:function(){return"ext"}}]),i}(h),g=function(e){s(i,e);var t=c(i);function i(){var e;return a(this,i),(e=t.call(this)).map={ext:new m},e}return o(i,[{key:"render",value:function(e,t){e.openNode(this.tag),this.map.ext.render(e,t),e.closeNode()}},{key:"createNewModel",value:function(){return{}}},{key:"onParserClose",value:function(e,t){Object.assign(this.model,t.model)}},{key:"tag",get:function(){return"extLst"}}]),i}(h);t.exports=g},{"../../base-xform":31,"../../composite-xform":47}],89:[function(e,t,i){"use strict";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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=c(e);if(t){var a=c(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return l(this,i)}}function l(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(c,e);var t,i,n,l=s(c);function c(){return a(this,c),l.apply(this,arguments)}return t=c,(i=[{key:"render",value:function(e,t){e.leafNode(this.tag,null,t)}},{key:"parseOpen",value:function(){this.model=""}},{key:"parseText",value:function(e){this.model+=e}},{key:"parseClose",value:function(e){return e!==this.tag}},{key:"tag",get:function(){return"formula"}}])&&r(t.prototype,i),n&&r(t,n),c}(e("../../base-xform"));t.exports=u},{"../../base-xform":31}],90:[function(e,t,i){"use strict";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 a(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=l(e);if(t){var a=l(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return s(this,i)}}function s(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=e("../../base-xform"),u=e("../../composite-xform"),d=e("./cfvo-xform"),f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(l,e);var t,i,n,s=o(l);function l(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(e=s.call(this)).map={cfvo:e.cfvoXform=new d},e}return t=l,(i=[{key:"render",value:function(e,t){var i=this;e.openNode(this.tag,{iconSet:c.toStringAttribute(t.iconSet,"3TrafficLights"),reverse:c.toBoolAttribute(t.reverse,!1),showValue:c.toBoolAttribute(t.showValue,!0)}),t.cfvo.forEach((function(t){i.cfvoXform.render(e,t)})),e.closeNode()}},{key:"createNewModel",value:function(e){var t=e.attributes;return{iconSet:c.toStringValue(t.iconSet,"3TrafficLights"),reverse:c.toBoolValue(t.reverse),showValue:c.toBoolValue(t.showValue),cfvo:[]}}},{key:"onParserClose",value:function(e,t){this.model[e].push(t.model)}},{key:"tag",get:function(){return"iconSet"}}])&&a(t.prototype,i),n&&a(t,n),l}(u);t.exports=f},{"../../base-xform":31,"../../composite-xform":47,"./cfvo-xform":83}],91:[function(e,t,i){"use strict";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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=c(e);if(t){var a=c(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return l(this,i)}}function l(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(c,e);var t,i,n,l=s(c);function c(){return a(this,c),l.apply(this,arguments)}return t=c,(i=[{key:"prepare",value:function(e,t){var i=t.styles.addStyleModel(e.style||{});i&&(e.styleId=i)}},{key:"render",value:function(e,t){e.openNode("col"),e.addAttribute("min",t.min),e.addAttribute("max",t.max),t.width&&e.addAttribute("width",t.width),t.styleId&&e.addAttribute("style",t.styleId),t.hidden&&e.addAttribute("hidden","1"),t.bestFit&&e.addAttribute("bestFit","1"),t.outlineLevel&&e.addAttribute("outlineLevel",t.outlineLevel),t.collapsed&&e.addAttribute("collapsed","1"),e.addAttribute("customWidth","1"),e.closeNode()}},{key:"parseOpen",value:function(e){if("col"===e.name){var t=this.model={min:parseInt(e.attributes.min||"0",10),max:parseInt(e.attributes.max||"0",10),width:void 0===e.attributes.width?void 0:parseFloat(e.attributes.width||"0")};return e.attributes.style&&(t.styleId=parseInt(e.attributes.style,10)),!0!==e.attributes.hidden&&"true"!==e.attributes.hidden&&1!==e.attributes.hidden&&"1"!==e.attributes.hidden||(t.hidden=!0),e.attributes.bestFit&&(t.bestFit=!0),e.attributes.outlineLevel&&(t.outlineLevel=parseInt(e.attributes.outlineLevel,10)),e.attributes.collapsed&&(t.collapsed=!0),!0}return!1}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"reconcile",value:function(e,t){e.styleId&&(e.style=t.styles.getStyleModel(e.styleId))}},{key:"tag",get:function(){return"col"}}])&&r(t.prototype,i),n&&r(t,n),c}(e("../base-xform"));t.exports=u},{"../base-xform":31}],92:[function(e,t,i){"use strict";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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=c(e);if(t){var a=c(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return l(this,i)}}function l(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function d(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?u(Object(i),!0).forEach((function(t){f(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):u(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function f(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var h=e("../../../utils/under-dash"),p=e("../../../utils/utils"),m=e("../../../utils/col-cache"),g=e("../base-xform"),v=e("../../../doc/range");function b(e,t,i,n){var a=t[i];void 0!==a?e[i]=a:void 0!==n&&(e[i]=n)}function y(e,t,i,n){var a=t[i];void 0!==a?e[i]=function(e){switch(e){case"1":case"true":return!0;default:return!1}}(a):void 0!==n&&(e[i]=n)}var w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(c,e);var t,i,n,l=s(c);function c(){return a(this,c),l.apply(this,arguments)}return t=c,(i=[{key:"render",value:function(e,t){var i=function(e){var t=h.map(e,(function(e,t){return{address:t,dataValidation:e,marked:!1}})).sort((function(e,t){return h.strcmp(e.address,t.address)})),i=h.keyBy(t,"address"),n=function(t,i,n){for(var a=0;a<i;a++){var r=m.encodeAddress(t.row+a,n);if(!e[r]||!h.isEqual(e[t.address],e[r]))return!1}return!0};return t.map((function(t){if(!t.marked){var a=m.decodeEx(t.address);if(a.dimensions)return i[a.dimensions].marked=!0,d(d({},t.dataValidation),{},{sqref:t.address});for(var r=1,o=m.encodeAddress(a.row+r,a.col);e[o]&&h.isEqual(t.dataValidation,e[o]);)r++,o=m.encodeAddress(a.row+r,a.col);for(var s=1;n(a,r,a.col+s);)s++;for(var l=0;l<r;l++)for(var c=0;c<s;c++)o=m.encodeAddress(a.row+l,a.col+c),i[o].marked=!0;if(r>1||s>1){var u=a.row+(r-1),f=a.col+(s-1);return d(d({},t.dataValidation),{},{sqref:"".concat(t.address,":").concat(m.encodeAddress(u,f))})}return d(d({},t.dataValidation),{},{sqref:t.address})}return null})).filter(Boolean)}(t);i.length&&(e.openNode("dataValidations",{count:i.length}),i.forEach((function(t){e.openNode("dataValidation"),"any"!==t.type&&(e.addAttribute("type",t.type),t.operator&&"list"!==t.type&&"between"!==t.operator&&e.addAttribute("operator",t.operator),t.allowBlank&&e.addAttribute("allowBlank","1")),t.showInputMessage&&e.addAttribute("showInputMessage","1"),t.promptTitle&&e.addAttribute("promptTitle",t.promptTitle),t.prompt&&e.addAttribute("prompt",t.prompt),t.showErrorMessage&&e.addAttribute("showErrorMessage","1"),t.errorStyle&&e.addAttribute("errorStyle",t.errorStyle),t.errorTitle&&e.addAttribute("errorTitle",t.errorTitle),t.error&&e.addAttribute("error",t.error),e.addAttribute("sqref",t.sqref),(t.formulae||[]).forEach((function(i,n){e.openNode("formula".concat(n+1)),"date"===t.type?e.writeText(p.dateToExcel(new Date(i))):e.writeText(i),e.closeNode()})),e.closeNode()})),e.closeNode())}},{key:"parseOpen",value:function(e){switch(e.name){case"dataValidations":return this.model={},!0;case"dataValidation":this._address=e.attributes.sqref;var t={type:e.attributes.type||"any",formulae:[]};switch(e.attributes.type&&y(t,e.attributes,"allowBlank"),y(t,e.attributes,"showInputMessage"),y(t,e.attributes,"showErrorMessage"),t.type){case"any":case"list":case"custom":break;default:b(t,e.attributes,"operator","between")}return b(t,e.attributes,"promptTitle"),b(t,e.attributes,"prompt"),b(t,e.attributes,"errorStyle"),b(t,e.attributes,"errorTitle"),b(t,e.attributes,"error"),this._dataValidation=t,!0;case"formula1":case"formula2":return this._formula=[],!0;default:return!1}}},{key:"parseText",value:function(e){this._formula&&this._formula.push(e)}},{key:"parseClose",value:function(e){var t=this;switch(e){case"dataValidations":return!1;case"dataValidation":return this._dataValidation.formulae&&this._dataValidation.formulae.length||(delete this._dataValidation.formulae,delete this._dataValidation.operator),(this._address.split(/\s+/g)||[]).forEach((function(e){e.includes(":")?new v(e).forEachAddress((function(e){t.model[e]=t._dataValidation})):t.model[e]=t._dataValidation})),!0;case"formula1":case"formula2":var i=this._formula.join("");switch(this._dataValidation.type){case"whole":case"textLength":i=parseInt(i,10);break;case"decimal":i=parseFloat(i);break;case"date":i=p.excelToDate(parseFloat(i))}return this._dataValidation.formulae.push(i),this._formula=void 0,!0;default:return!0}}},{key:"tag",get:function(){return"dataValidations"}}])&&r(t.prototype,i),n&&r(t,n),c}(g);t.exports=w},{"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":25,"../../../utils/utils":26,"../base-xform":31}],93:[function(e,t,i){"use strict";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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=c(e);if(t){var a=c(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return l(this,i)}}function l(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(c,e);var t,i,n,l=s(c);function c(){return a(this,c),l.apply(this,arguments)}return t=c,(i=[{key:"render",value:function(e,t){t&&e.leafNode("dimension",{ref:t})}},{key:"parseOpen",value:function(e){return"dimension"===e.name&&(this.model=e.attributes.ref,!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"dimension"}}])&&r(t.prototype,i),n&&r(t,n),c}(e("../base-xform"));t.exports=u},{"../base-xform":31}],94:[function(e,t,i){"use strict";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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=c(e);if(t){var a=c(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return l(this,i)}}function l(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(c,e);var t,i,n,l=s(c);function c(){return a(this,c),l.apply(this,arguments)}return t=c,(i=[{key:"render",value:function(e,t){t&&e.leafNode(this.tag,{"r:id":t.rId})}},{key:"parseOpen",value:function(e){switch(e.name){case this.tag:return this.model={rId:e.attributes["r:id"]},!0;default:return!1}}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"drawing"}}])&&r(t.prototype,i),n&&r(t,n),c}(e("../base-xform"));t.exports=u},{"../base-xform":31}],95:[function(e,t,i){"use strict";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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t,i){return t&&r(e.prototype,t),i&&r(e,i),e}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=d(e);if(t){var a=d(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return u(this,i)}}function u(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=e("../composite-xform"),h=e("./cf-ext/conditional-formattings-ext-xform"),p=function(e){s(i,e);var t=c(i);function i(){var e;return a(this,i),(e=t.call(this)).map={"x14:conditionalFormattings":e.conditionalFormattings=new h},e}return o(i,[{key:"hasContent",value:function(e){return this.conditionalFormattings.hasContent(e.conditionalFormattings)}},{key:"prepare",value:function(e,t){this.conditionalFormattings.prepare(e.conditionalFormattings,t)}},{key:"render",value:function(e,t){e.openNode("ext",{uri:"{78C0D931-6437-407d-A8EE-F0AAD7539E65}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.conditionalFormattings.render(e,t.conditionalFormattings),e.closeNode()}},{key:"createNewModel",value:function(){return{}}},{key:"onParserClose",value:function(e,t){this.model[e]=t.model}},{key:"tag",get:function(){return"ext"}}]),i}(f),m=function(e){s(i,e);var t=c(i);function i(){var e;return a(this,i),(e=t.call(this)).map={ext:e.ext=new p},e}return o(i,[{key:"prepare",value:function(e,t){this.ext.prepare(e,t)}},{key:"hasContent",value:function(e){return this.ext.hasContent(e)}},{key:"render",value:function(e,t){this.hasContent(t)&&(e.openNode("extLst"),this.ext.render(e,t),e.closeNode())}},{key:"createNewModel",value:function(){return{}}},{key:"onParserClose",value:function(e,t){Object.assign(this.model,t.model)}},{key:"tag",get:function(){return"extLst"}}]),i}(f);t.exports=m},{"../composite-xform":47,"./cf-ext/conditional-formattings-ext-xform":77}],96:[function(e,t,i){"use strict";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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=c(e);if(t){var a=c(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return l(this,i)}}function l(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(c,e);var t,i,n,l=s(c);function c(){return a(this,c),l.apply(this,arguments)}return t=c,(i=[{key:"render",value:function(e,t){if(t){e.addRollback();var i=!1;e.openNode("headerFooter"),t.differentFirst&&(e.addAttribute("differentFirst","1"),i=!0),t.differentOddEven&&(e.addAttribute("differentOddEven","1"),i=!0),t.oddHeader&&"string"==typeof t.oddHeader&&(e.leafNode("oddHeader",null,t.oddHeader),i=!0),t.oddFooter&&"string"==typeof t.oddFooter&&(e.leafNode("oddFooter",null,t.oddFooter),i=!0),t.evenHeader&&"string"==typeof t.evenHeader&&(e.leafNode("evenHeader",null,t.evenHeader),i=!0),t.evenFooter&&"string"==typeof t.evenFooter&&(e.leafNode("evenFooter",null,t.evenFooter),i=!0),t.firstHeader&&"string"==typeof t.firstHeader&&(e.leafNode("firstHeader",null,t.firstHeader),i=!0),t.firstFooter&&"string"==typeof t.firstFooter&&(e.leafNode("firstFooter",null,t.firstFooter),i=!0),i?(e.closeNode(),e.commit()):e.rollback()}}},{key:"parseOpen",value:function(e){switch(e.name){case"headerFooter":return this.model={},e.attributes.differentFirst&&(this.model.differentFirst=1===parseInt(e.attributes.differentFirst,0)),e.attributes.differentOddEven&&(this.model.differentOddEven=1===parseInt(e.attributes.differentOddEven,0)),!0;case"oddHeader":return this.currentNode="oddHeader",!0;case"oddFooter":return this.currentNode="oddFooter",!0;case"evenHeader":return this.currentNode="evenHeader",!0;case"evenFooter":return this.currentNode="evenFooter",!0;case"firstHeader":return this.currentNode="firstHeader",!0;case"firstFooter":return this.currentNode="firstFooter",!0;default:return!1}}},{key:"parseText",value:function(e){switch(this.currentNode){case"oddHeader":this.model.oddHeader=e;break;case"oddFooter":this.model.oddFooter=e;break;case"evenHeader":this.model.evenHeader=e;break;case"evenFooter":this.model.evenFooter=e;break;case"firstHeader":this.model.firstHeader=e;break;case"firstFooter":this.model.firstFooter=e}}},{key:"parseClose",value:function(){switch(this.currentNode){case"oddHeader":case"oddFooter":case"evenHeader":case"evenFooter":case"firstHeader":case"firstFooter":return this.currentNode=void 0,!0;default:return!1}}},{key:"tag",get:function(){return"headerFooter"}}])&&r(t.prototype,i),n&&r(t,n),c}(e("../base-xform"));t.exports=u},{"../base-xform":31}],97:[function(e,t,i){"use strict";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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=c(e);if(t){var a=c(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return l(this,i)}}function l(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(c,e);var t,i,n,l=s(c);function c(){return a(this,c),l.apply(this,arguments)}return t=c,(i=[{key:"render",value:function(e,t){e.leafNode("hyperlink",{ref:t.address,"r:id":t.rId,tooltip:t.tooltip})}},{key:"parseOpen",value:function(e){return"hyperlink"===e.name&&(this.model={address:e.attributes.ref,rId:e.attributes["r:id"],tooltip:e.attributes.tooltip},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"hyperlink"}}])&&r(t.prototype,i),n&&r(t,n),c}(e("../base-xform"));t.exports=u},{"../base-xform":31}],98:[function(e,t,i){"use strict";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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=c(e);if(t){var a=c(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return l(this,i)}}function l(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(c,e);var t,i,n,l=s(c);function c(){return a(this,c),l.apply(this,arguments)}return t=c,(i=[{key:"render",value:function(e,t){e.leafNode("mergeCell",{ref:t})}},{key:"parseOpen",value:function(e){return"mergeCell"===e.name&&(this.model=e.attributes.ref,!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"mergeCell"}}])&&r(t.prototype,i),n&&r(t,n),c}(e("../base-xform"));t.exports=u},{"../base-xform":31}],99:[function(e,t,i){"use strict";function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var a=e("../../../utils/under-dash"),r=e("../../../doc/range"),o=e("../../../utils/col-cache"),s=e("../../../doc/enums"),l=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.merges={}}var t,i,l;return t=e,(i=[{key:"add",value:function(e){if(this.merges[e.master])this.merges[e.master].expandToAddress(e.address);else{var t="".concat(e.master,":").concat(e.address);this.merges[e.master]=new r(t)}}},{key:"reconcile",value:function(e,t){a.each(e,(function(e){for(var i=o.decode(e),n=i.top;n<=i.bottom;n++)for(var a=t[n-1],r=i.left;r<=i.right;r++){var l=a.cells[r-1];l?l.type===s.ValueType.Merge&&(l.master=i.tl):a.cells[r]={type:s.ValueType.Null,address:o.encodeAddress(n,r)}}}))}},{key:"getMasterAddress",value:function(e){var t=this.hash[e];return t&&t.tl}},{key:"mergeCells",get:function(){return a.map(this.merges,(function(e){return e.range}))}}])&&n(t.prototype,i),l&&n(t,l),e}();t.exports=l},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":25}],100:[function(e,t,i){"use strict";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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=c(e);if(t){var a=c(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return l(this,i)}}function l(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=e("../base-xform"),d=function(e){return void 0!==e},f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(c,e);var t,i,n,l=s(c);function c(){return a(this,c),l.apply(this,arguments)}return t=c,(i=[{key:"render",value:function(e,t){return!(!t||!d(t.summaryBelow)&&!d(t.summaryRight)||(e.leafNode(this.tag,{summaryBelow:d(t.summaryBelow)?Number(t.summaryBelow):void 0,summaryRight:d(t.summaryRight)?Number(t.summaryRight):void 0}),0))}},{key:"parseOpen",value:function(e){return e.name===this.tag&&(this.model={summaryBelow:d(e.attributes.summaryBelow)?Boolean(Number(e.attributes.summaryBelow)):void 0,summaryRight:d(e.attributes.summaryRight)?Boolean(Number(e.attributes.summaryRight)):void 0},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"outlinePr"}}])&&r(t.prototype,i),n&&r(t,n),c}(u);t.exports=f},{"../base-xform":31}],101:[function(e,t,i){"use strict";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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=c(e);if(t){var a=c(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return l(this,i)}}function l(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(c,e);var t,i,n,l=s(c);function c(){return a(this,c),l.apply(this,arguments)}return t=c,(i=[{key:"render",value:function(e,t){e.leafNode("brk",t)}},{key:"parseOpen",value:function(e){return"brk"===e.name&&(this.model=e.attributes.ref,!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"brk"}}])&&r(t.prototype,i),n&&r(t,n),c}(e("../base-xform"));t.exports=u},{"../base-xform":31}],102:[function(e,t,i){"use strict";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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=c(e);if(t){var a=c(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return l(this,i)}}function l(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=e("../../../utils/under-dash"),d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(c,e);var t,i,n,l=s(c);function c(){return a(this,c),l.apply(this,arguments)}return t=c,(i=[{key:"render",value:function(e,t){if(t){var i={left:t.left,right:t.right,top:t.top,bottom:t.bottom,header:t.header,footer:t.footer};u.some(i,(function(e){return void 0!==e}))&&e.leafNode(this.tag,i)}}},{key:"parseOpen",value:function(e){switch(e.name){case this.tag:return this.model={left:parseFloat(e.attributes.left||.7),right:parseFloat(e.attributes.right||.7),top:parseFloat(e.attributes.top||.75),bottom:parseFloat(e.attributes.bottom||.75),header:parseFloat(e.attributes.header||.3),footer:parseFloat(e.attributes.footer||.3)},!0;default:return!1}}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"pageMargins"}}])&&r(t.prototype,i),n&&r(t,n),c}(e("../base-xform"));t.exports=d},{"../../../utils/under-dash":25,"../base-xform":31}],103:[function(e,t,i){"use strict";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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=c(e);if(t){var a=c(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return l(this,i)}}function l(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(c,e);var t,i,n,l=s(c);function c(){return a(this,c),l.apply(this,arguments)}return t=c,(i=[{key:"render",value:function(e,t){return!(!t||!t.fitToPage||(e.leafNode(this.tag,{fitToPage:t.fitToPage?"1":void 0}),0))}},{key:"parseOpen",value:function(e){return e.name===this.tag&&(this.model={fitToPage:"1"===e.attributes.fitToPage},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"pageSetUpPr"}}])&&r(t.prototype,i),n&&r(t,n),c}(e("../base-xform"));t.exports=u},{"../base-xform":31}],104:[function(e,t,i){"use strict";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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=c(e);if(t){var a=c(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return l(this,i)}}function l(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=e("../../../utils/under-dash");function d(e){return e?"1":void 0}function f(e){switch(e){case"overThenDown":return e;default:return}}function h(e){switch(e){case"atEnd":case"asDisplyed":return e;default:return}}function p(e){switch(e){case"dash":case"blank":case"NA":return e;default:return}}var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(c,e);var t,i,n,l=s(c);function c(){return a(this,c),l.apply(this,arguments)}return t=c,(i=[{key:"render",value:function(e,t){if(t){var i={paperSize:t.paperSize,orientation:t.orientation,horizontalDpi:t.horizontalDpi,verticalDpi:t.verticalDpi,pageOrder:f(t.pageOrder),blackAndWhite:d(t.blackAndWhite),draft:d(t.draft),cellComments:h(t.cellComments),errors:p(t.errors),scale:t.scale,fitToWidth:t.fitToWidth,fitToHeight:t.fitToHeight,firstPageNumber:t.firstPageNumber,useFirstPageNumber:d(t.firstPageNumber),usePrinterDefaults:d(t.usePrinterDefaults),copies:t.copies};u.some(i,(function(e){return void 0!==e}))&&e.leafNode(this.tag,i)}}},{key:"parseOpen",value:function(e){switch(e.name){case this.tag:return this.model={paperSize:(t=e.attributes.paperSize,void 0!==t?parseInt(t,10):void 0),orientation:e.attributes.orientation||"portrait",horizontalDpi:parseInt(e.attributes.horizontalDpi||"4294967295",10),verticalDpi:parseInt(e.attributes.verticalDpi||"4294967295",10),pageOrder:e.attributes.pageOrder||"downThenOver",blackAndWhite:"1"===e.attributes.blackAndWhite,draft:"1"===e.attributes.draft,cellComments:e.attributes.cellComments||"None",errors:e.attributes.errors||"displayed",scale:parseInt(e.attributes.scale||"100",10),fitToWidth:parseInt(e.attributes.fitToWidth||"1",10),fitToHeight:parseInt(e.attributes.fitToHeight||"1",10),firstPageNumber:parseInt(e.attributes.firstPageNumber||"1",10),useFirstPageNumber:"1"===e.attributes.useFirstPageNumber,usePrinterDefaults:"1"===e.attributes.usePrinterDefaults,copies:parseInt(e.attributes.copies||"1",10)},!0;default:return!1}var t}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"pageSetup"}}])&&r(t.prototype,i),n&&r(t,n),c}(e("../base-xform"));t.exports=m},{"../../../utils/under-dash":25,"../base-xform":31}],105:[function(e,t,i){"use strict";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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=c(e);if(t){var a=c(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return l(this,i)}}function l(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(c,e);var t,i,n,l=s(c);function c(){return a(this,c),l.apply(this,arguments)}return t=c,(i=[{key:"render",value:function(e,t){t&&e.leafNode(this.tag,{"r:id":t.rId})}},{key:"parseOpen",value:function(e){switch(e.name){case this.tag:return this.model={rId:e.attributes["r:id"]},!0;default:return!1}}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"picture"}}])&&r(t.prototype,i),n&&r(t,n),c}(e("../base-xform"));t.exports=u},{"../base-xform":31}],106:[function(e,t,i){"use strict";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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=c(e);if(t){var a=c(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return l(this,i)}}function l(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=e("../../../utils/under-dash");function d(e){return e?"1":void 0}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(c,e);var t,i,n,l=s(c);function c(){return a(this,c),l.apply(this,arguments)}return t=c,(i=[{key:"render",value:function(e,t){if(t){var i={headings:d(t.showRowColHeaders),gridLines:d(t.showGridLines),horizontalCentered:d(t.horizontalCentered),verticalCentered:d(t.verticalCentered)};u.some(i,(function(e){return void 0!==e}))&&e.leafNode(this.tag,i)}}},{key:"parseOpen",value:function(e){switch(e.name){case this.tag:return this.model={showRowColHeaders:"1"===e.attributes.headings,showGridLines:"1"===e.attributes.gridLines,horizontalCentered:"1"===e.attributes.horizontalCentered,verticalCentered:"1"===e.attributes.verticalCentered},!0;default:return!1}}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"printOptions"}}])&&r(t.prototype,i),n&&r(t,n),c}(e("../base-xform"));t.exports=f},{"../../../utils/under-dash":25,"../base-xform":31}],107:[function(e,t,i){"use strict";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 a(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=l(e);if(t){var a=l(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return s(this,i)}}function s(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=e("./page-breaks-xform"),u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(l,e);var t,i,n,s=o(l);function l(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l);var e={tag:"rowBreaks",count:!0,childXform:new c};return s.call(this,e)}return t=l,(i=[{key:"render",value:function(e,t){if(t&&t.length){e.openNode(this.tag,this.$),this.count&&(e.addAttribute(this.$count,t.length),e.addAttribute("manualBreakCount",t.length));var i=this.childXform;t.forEach((function(t){i.render(e,t)})),e.closeNode()}else this.empty&&e.leafNode(this.tag)}}])&&a(t.prototype,i),n&&a(t,n),l}(e("../list-xform"));t.exports=u},{"../list-xform":70,"./page-breaks-xform":101}],108:[function(e,t,i){"use strict";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 a(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=l(e);if(t){var a=l(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return s(this,i)}}function s(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=e("../base-xform"),u=e("./cell-xform"),d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(l,e);var t,i,n,s=o(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=s.call(this)).maxItems=e&&e.maxItems,t.map={c:new u},t}return t=l,(i=[{key:"prepare",value:function(e,t){var i=t.styles.addStyleModel(e.style);i&&(e.styleId=i);var n=this.map.c;e.cells.forEach((function(e){n.prepare(e,t)}))}},{key:"render",value:function(e,t,i){e.openNode("row"),e.addAttribute("r",t.number),t.height&&(e.addAttribute("ht",t.height),e.addAttribute("customHeight","1")),t.hidden&&e.addAttribute("hidden","1"),t.min>0&&t.max>0&&t.min<=t.max&&e.addAttribute("spans","".concat(t.min,":").concat(t.max)),t.styleId&&(e.addAttribute("s",t.styleId),e.addAttribute("customFormat","1")),e.addAttribute("x14ac:dyDescent","0.25"),t.outlineLevel&&e.addAttribute("outlineLevel",t.outlineLevel),t.collapsed&&e.addAttribute("collapsed","1");var n=this.map.c;t.cells.forEach((function(t){n.render(e,t,i)})),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;if("row"===e.name){this.numRowsSeen+=1;var t=e.attributes.spans?e.attributes.spans.split(":").map((function(e){return parseInt(e,10)})):[void 0,void 0],i=this.model={number:parseInt(e.attributes.r,10),min:t[0],max:t[1],cells:[]};return e.attributes.s&&(i.styleId=parseInt(e.attributes.s,10)),!0!==e.attributes.hidden&&"true"!==e.attributes.hidden&&1!==e.attributes.hidden&&"1"!==e.attributes.hidden||(i.hidden=!0),e.attributes.bestFit&&(i.bestFit=!0),e.attributes.ht&&(i.height=parseFloat(e.attributes.ht)),e.attributes.outlineLevel&&(i.outlineLevel=parseInt(e.attributes.outlineLevel,10)),e.attributes.collapsed&&(i.collapsed=!0),!0}return this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0)}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){if(this.parser){if(!this.parser.parseClose(e)){if(this.model.cells.push(this.parser.model),this.maxItems&&this.model.cells.length>this.maxItems)throw new Error("Max column count (".concat(this.maxItems,") exceeded"));this.parser=void 0}return!0}return!1}},{key:"reconcile",value:function(e,t){e.style=e.styleId?t.styles.getStyleModel(e.styleId):{},void 0!==e.styleId&&(e.styleId=void 0);var i=this.map.c;e.cells.forEach((function(e){i.reconcile(e,t)}))}},{key:"tag",get:function(){return"row"}}])&&a(t.prototype,i),n&&a(t,n),l}(c);t.exports=d},{"../base-xform":31,"./cell-xform":72}],109:[function(e,t,i){"use strict";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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=c(e);if(t){var a=c(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return l(this,i)}}function l(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=e("../../../utils/under-dash"),d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(c,e);var t,i,n,l=s(c);function c(){return a(this,c),l.apply(this,arguments)}return t=c,(i=[{key:"render",value:function(e,t){if(t){var i={defaultRowHeight:t.defaultRowHeight,outlineLevelRow:t.outlineLevelRow,outlineLevelCol:t.outlineLevelCol,"x14ac:dyDescent":t.dyDescent};t.defaultColWidth&&(i.defaultColWidth=t.defaultColWidth),t.defaultRowHeight&&15===t.defaultRowHeight||(i.customHeight="1"),u.some(i,(function(e){return void 0!==e}))&&e.leafNode("sheetFormatPr",i)}}},{key:"parseOpen",value:function(e){return"sheetFormatPr"===e.name&&(this.model={defaultRowHeight:parseFloat(e.attributes.defaultRowHeight||"0"),dyDescent:parseFloat(e.attributes["x14ac:dyDescent"]||"0"),outlineLevelRow:parseInt(e.attributes.outlineLevelRow||"0",10),outlineLevelCol:parseInt(e.attributes.outlineLevelCol||"0",10)},e.attributes.defaultColWidth&&(this.model.defaultColWidth=parseFloat(e.attributes.defaultColWidth)),!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"sheetFormatPr"}}])&&r(t.prototype,i),n&&r(t,n),c}(e("../base-xform"));t.exports=d},{"../../../utils/under-dash":25,"../base-xform":31}],110:[function(e,t,i){"use strict";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 a(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=l(e);if(t){var a=l(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return s(this,i)}}function s(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=e("../base-xform"),u=e("../style/color-xform"),d=e("./page-setup-properties-xform"),f=e("./outline-properties-xform"),h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(l,e);var t,i,n,s=o(l);function l(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(e=s.call(this)).map={tabColor:new u("tabColor"),pageSetUpPr:new d,outlinePr:new f},e}return t=l,(i=[{key:"render",value:function(e,t){if(t){e.addRollback(),e.openNode("sheetPr");var i=!1;i=this.map.tabColor.render(e,t.tabColor)||i,i=this.map.pageSetUpPr.render(e,t.pageSetup)||i,(i=this.map.outlinePr.render(e,t.outlineProperties)||i)?(e.closeNode(),e.commit()):e.rollback()}}},{key:"parseOpen",value:function(e){return this.parser?(this.parser.parseOpen(e),!0):e.name===this.tag?(this.reset(),!0):!!this.map[e.name]&&(this.parser=this.map[e.name],this.parser.parseOpen(e),!0)}},{key:"parseText",value:function(e){return!!this.parser&&(this.parser.parseText(e),!0)}},{key:"parseClose",value:function(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):(this.map.tabColor.model||this.map.pageSetUpPr.model||this.map.outlinePr.model?(this.model={},this.map.tabColor.model&&(this.model.tabColor=this.map.tabColor.model),this.map.pageSetUpPr.model&&(this.model.pageSetup=this.map.pageSetUpPr.model),this.map.outlinePr.model&&(this.model.outlineProperties=this.map.outlinePr.model)):this.model=null,!1)}},{key:"tag",get:function(){return"sheetPr"}}])&&a(t.prototype,i),n&&a(t,n),l}(c);t.exports=h},{"../base-xform":31,"../style/color-xform":127,"./outline-properties-xform":100,"./page-setup-properties-xform":103}],111:[function(e,t,i){"use strict";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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=c(e);if(t){var a=c(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return l(this,i)}}function l(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=e("../../../utils/under-dash");function d(e,t){return e?t:void 0}function f(e,t){return e===t||void 0}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(c,e);var t,i,n,l=s(c);function c(){return a(this,c),l.apply(this,arguments)}return t=c,(i=[{key:"render",value:function(e,t){if(t){var i={sheet:d(t.sheet,"1"),selectLockedCells:!1===t.selectLockedCells?"1":void 0,selectUnlockedCells:!1===t.selectUnlockedCells?"1":void 0,formatCells:d(t.formatCells,"0"),formatColumns:d(t.formatColumns,"0"),formatRows:d(t.formatRows,"0"),insertColumns:d(t.insertColumns,"0"),insertRows:d(t.insertRows,"0"),insertHyperlinks:d(t.insertHyperlinks,"0"),deleteColumns:d(t.deleteColumns,"0"),deleteRows:d(t.deleteRows,"0"),sort:d(t.sort,"0"),autoFilter:d(t.autoFilter,"0"),pivotTables:d(t.pivotTables,"0")};t.sheet&&(i.algorithmName=t.algorithmName,i.hashValue=t.hashValue,i.saltValue=t.saltValue,i.spinCount=t.spinCount,i.objects=d(!1===t.objects,"1"),i.scenarios=d(!1===t.scenarios,"1")),u.some(i,(function(e){return void 0!==e}))&&e.leafNode(this.tag,i)}}},{key:"parseOpen",value:function(e){switch(e.name){case this.tag:return this.model={sheet:f(e.attributes.sheet,"1"),objects:"1"!==e.attributes.objects&&void 0,scenarios:"1"!==e.attributes.scenarios&&void 0,selectLockedCells:"1"!==e.attributes.selectLockedCells&&void 0,selectUnlockedCells:"1"!==e.attributes.selectUnlockedCells&&void 0,formatCells:f(e.attributes.formatCells,"0"),formatColumns:f(e.attributes.formatColumns,"0"),formatRows:f(e.attributes.formatRows,"0"),insertColumns:f(e.attributes.insertColumns,"0"),insertRows:f(e.attributes.insertRows,"0"),insertHyperlinks:f(e.attributes.insertHyperlinks,"0"),deleteColumns:f(e.attributes.deleteColumns,"0"),deleteRows:f(e.attributes.deleteRows,"0"),sort:f(e.attributes.sort,"0"),autoFilter:f(e.attributes.autoFilter,"0"),pivotTables:f(e.attributes.pivotTables,"0")},e.attributes.algorithmName&&(this.model.algorithmName=e.attributes.algorithmName,this.model.hashValue=e.attributes.hashValue,this.model.saltValue=e.attributes.saltValue,this.model.spinCount=parseInt(e.attributes.spinCount,10)),!0;default:return!1}}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"sheetProtection"}}])&&r(t.prototype,i),n&&r(t,n),c}(e("../base-xform"));t.exports=h},{"../../../utils/under-dash":25,"../base-xform":31}],112:[function(e,t,i){"use strict";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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=c(e);if(t){var a=c(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return l(this,i)}}function l(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=e("../../../utils/col-cache"),d=e("../base-xform"),f={frozen:"frozen",frozenSplit:"frozen",split:"split"},h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(c,e);var t,i,n,l=s(c);function c(){return a(this,c),l.apply(this,arguments)}return t=c,(i=[{key:"prepare",value:function(e){switch(e.state){case"frozen":case"split":break;default:e.state="normal"}}},{key:"render",value:function(e,t){e.openNode("sheetView",{workbookViewId:t.workbookViewId||0});var i,n,a,r,o=function(t,i,n){n&&e.addAttribute(t,i)};switch(o("rightToLeft","1",!0===t.rightToLeft),o("tabSelected","1",t.tabSelected),o("showRuler","0",!1===t.showRuler),o("showRowColHeaders","0",!1===t.showRowColHeaders),o("showGridLines","0",!1===t.showGridLines),o("zoomScale",t.zoomScale,t.zoomScale),o("zoomScaleNormal",t.zoomScaleNormal,t.zoomScaleNormal),o("view",t.style,t.style),t.state){case"frozen":n=t.xSplit||0,a=t.ySplit||0,i=t.topLeftCell||u.getAddress(a+1,n+1).address,r=(t.xSplit&&t.ySplit?"bottomRight":t.xSplit&&"topRight")||"bottomLeft",e.leafNode("pane",{xSplit:t.xSplit||void 0,ySplit:t.ySplit||void 0,topLeftCell:i,activePane:r,state:"frozen"}),e.leafNode("selection",{pane:r,activeCell:t.activeCell,sqref:t.activeCell});break;case"split":"topLeft"===t.activePane&&(t.activePane=void 0),e.leafNode("pane",{xSplit:t.xSplit||void 0,ySplit:t.ySplit||void 0,topLeftCell:t.topLeftCell,activePane:t.activePane}),e.leafNode("selection",{pane:t.activePane,activeCell:t.activeCell,sqref:t.activeCell});break;case"normal":t.activeCell&&e.leafNode("selection",{activeCell:t.activeCell,sqref:t.activeCell})}e.closeNode()}},{key:"parseOpen",value:function(e){switch(e.name){case"sheetView":return this.sheetView={workbookViewId:parseInt(e.attributes.workbookViewId,10),rightToLeft:"1"===e.attributes.rightToLeft,tabSelected:"1"===e.attributes.tabSelected,showRuler:!("0"===e.attributes.showRuler),showRowColHeaders:!("0"===e.attributes.showRowColHeaders),showGridLines:!("0"===e.attributes.showGridLines),zoomScale:parseInt(e.attributes.zoomScale||"100",10),zoomScaleNormal:parseInt(e.attributes.zoomScaleNormal||"100",10),style:e.attributes.view},this.pane=void 0,this.selections={},!0;case"pane":return this.pane={xSplit:parseInt(e.attributes.xSplit||"0",10),ySplit:parseInt(e.attributes.ySplit||"0",10),topLeftCell:e.attributes.topLeftCell,activePane:e.attributes.activePane||"topLeft",state:e.attributes.state},!0;case"selection":var t=e.attributes.pane||"topLeft";return this.selections[t]={pane:t,activeCell:e.attributes.activeCell},!0;default:return!1}}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(e){var t,i;switch(e){case"sheetView":return this.sheetView&&this.pane?(t=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:f[this.pane.state]||"split",xSplit:this.pane.xSplit,ySplit:this.pane.ySplit,topLeftCell:this.pane.topLeftCell,showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},"split"===this.model.state&&(t.activePane=this.pane.activePane),(i=this.selections[this.pane.activePane])&&i.activeCell&&(t.activeCell=i.activeCell),this.sheetView.style&&(t.style=this.sheetView.style)):(t=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:"normal",showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},(i=this.selections.topLeft)&&i.activeCell&&(t.activeCell=i.activeCell),this.sheetView.style&&(t.style=this.sheetView.style)),!1;default:return!0}}},{key:"reconcile",value:function(){}},{key:"tag",get:function(){return"sheetView"}}])&&r(t.prototype,i),n&&r(t,n),c}(d);t.exports=h},{"../../../utils/col-cache":19,"../base-xform":31}],113:[function(e,t,i){"use strict";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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=c(e);if(t){var a=c(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return l(this,i)}}function l(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(c,e);var t,i,n,l=s(c);function c(){return a(this,c),l.apply(this,arguments)}return t=c,(i=[{key:"render",value:function(e,t){t&&e.leafNode(this.tag,{"r:id":t.rId})}},{key:"parseOpen",value:function(e){switch(e.name){case this.tag:return this.model={rId:e.attributes["r:id"]},!0;default:return!1}}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"tablePart"}}])&&r(t.prototype,i),n&&r(t,n),c}(e("../base-xform"));t.exports=u},{"../base-xform":31}],114:[function(e,t,i){"use strict";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 a(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=l(e);if(t){var a=l(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return s(this,i)}}function s(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=e("../../../utils/under-dash"),u=e("../../../utils/col-cache"),d=e("../../../utils/xml-stream"),f=e("../../rel-type"),h=e("./merges"),p=e("../base-xform"),m=e("../list-xform"),g=e("./row-xform"),v=e("./col-xform"),b=e("./dimension-xform"),y=e("./hyperlink-xform"),w=e("./merge-cell-xform"),_=e("./data-validations-xform"),I=e("./sheet-properties-xform"),x=e("./sheet-format-properties-xform"),S=e("./sheet-view-xform"),T=e("./sheet-protection-xform"),C=e("./page-margins-xform"),k=e("./page-setup-xform"),R=e("./print-options-xform"),D=e("./auto-filter-xform"),L=e("./picture-xform"),O=e("./drawing-xform"),$=e("./table-part-xform"),N=e("./row-breaks-xform"),A=e("./header-footer-xform"),P=e("./cf/conditional-formattings-xform"),E=e("./ext-lst-xform"),M=function(e,t){if(!t||!t.length)return e;if(!e||!e.length)return t;var i={},n={};return e.forEach((function(e){i[e.ref]=e,e.rules.forEach((function(e){var t=e.x14Id;t&&(n[t]=e)}))})),t.forEach((function(t){t.rules.forEach((function(a){var r=n[a.x14Id];r?function(e,t){Object.keys(t).forEach((function(i){var n=e[i],a=t[i];void 0===n&&void 0!==a&&(e[i]=a)}))}(r,a):i[t.ref]?i[t.ref].rules.push(a):e.push({ref:t.ref,rules:[a]})}))})),e},F=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(l,e);var t,i,n,s=o(l);function l(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),t=s.call(this);var i=e||{},n=i.maxRows,a=i.maxCols;return t.map={sheetPr:new I,dimension:new b,sheetViews:new m({tag:"sheetViews",count:!1,childXform:new S}),sheetFormatPr:new x,cols:new m({tag:"cols",count:!1,childXform:new v}),sheetData:new m({tag:"sheetData",count:!1,empty:!0,childXform:new g({maxItems:a}),maxItems:n}),autoFilter:new D,mergeCells:new m({tag:"mergeCells",count:!0,childXform:new w}),rowBreaks:new N,hyperlinks:new m({tag:"hyperlinks",count:!1,childXform:new y}),pageMargins:new C,dataValidations:new _,pageSetup:new k,headerFooter:new A,printOptions:new R,picture:new L,drawing:new O,sheetProtection:new T,tableParts:new m({tag:"tableParts",count:!0,childXform:new $}),conditionalFormatting:new P,extLst:new E},t}return t=l,(i=[{key:"prepare",value:function(e,t){var i=this;t.merges=new h,e.hyperlinks=t.hyperlinks=[],e.comments=t.comments=[],t.formulae={},t.siFormulae=0,this.map.cols.prepare(e.cols,t),this.map.sheetData.prepare(e.rows,t),this.map.conditionalFormatting.prepare(e.conditionalFormattings,t),e.mergeCells=t.merges.mergeCells;var n=e.rels=[];function a(e){return"rId".concat(e.length+1)}if(e.hyperlinks.forEach((function(e){var t=a(n);e.rId=t,n.push({Id:t,Type:f.Hyperlink,Target:e.target,TargetMode:"External"})})),e.comments.length>0){var r={Id:a(n),Type:f.Comments,Target:"../comments".concat(e.id,".xml")};n.push(r);var o={Id:a(n),Type:f.VmlDrawing,Target:"../drawings/vmlDrawing".concat(e.id,".vml")};n.push(o),e.comments.forEach((function(e){e.refAddress=u.decodeAddress(e.ref)})),t.commentRefs.push({commentName:"comments".concat(e.id),vmlDrawing:"vmlDrawing".concat(e.id)})}var s,l=[];e.media.forEach((function(r){if("background"===r.type){var o=a(n);s=t.media[r.imageId],n.push({Id:o,Type:f.Image,Target:"../media/".concat(s.name,".").concat(s.extension)}),e.background={rId:o},e.image=t.media[r.imageId]}else if("image"===r.type){var c=e.drawing;s=t.media[r.imageId],c||(c=e.drawing={rId:a(n),name:"drawing".concat(++t.drawingsCount),anchors:[],rels:[]},t.drawings.push(c),n.push({Id:c.rId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",Target:"../drawings/".concat(c.name,".xml")}));var u=i.preImageId===r.imageId?l[r.imageId]:l[c.rels.length];u||(u=a(c.rels),l[c.rels.length]=u,c.rels.push({Id:u,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Target:"../media/".concat(s.name,".").concat(s.extension)}));var d={picture:{rId:u},range:r.range};if(r.hyperlinks&&r.hyperlinks.hyperlink){var h=a(c.rels);l[c.rels.length]=h,d.picture.hyperlinks={tooltip:r.hyperlinks.tooltip,rId:h},c.rels.push({Id:h,Type:f.Hyperlink,Target:r.hyperlinks.hyperlink,TargetMode:"External"})}i.preImageId=r.imageId,c.anchors.push(d)}})),e.tables.forEach((function(e){var i=a(n);e.rId=i,n.push({Id:i,Type:f.Table,Target:"../tables/".concat(e.target)}),e.columns.forEach((function(e){var i=e.style;i&&(e.dxfId=t.styles.addDxfStyle(i))}))})),this.map.extLst.prepare(e,t)}},{key:"render",value:function(e,t){e.openXml(d.StdDocAttributes),e.openNode("worksheet",l.WORKSHEET_ATTRIBUTES);var i=t.properties?{defaultRowHeight:t.properties.defaultRowHeight,dyDescent:t.properties.dyDescent,outlineLevelCol:t.properties.outlineLevelCol,outlineLevelRow:t.properties.outlineLevelRow}:void 0;t.properties&&t.properties.defaultColWidth&&(i.defaultColWidth=t.properties.defaultColWidth);var n={outlineProperties:t.properties&&t.properties.outlineProperties,tabColor:t.properties&&t.properties.tabColor,pageSetup:t.pageSetup&&t.pageSetup.fitToPage?{fitToPage:t.pageSetup.fitToPage}:void 0},a=t.pageSetup&&t.pageSetup.margins,r={showRowColHeaders:t.pageSetup&&t.pageSetup.showRowColHeaders,showGridLines:t.pageSetup&&t.pageSetup.showGridLines,horizontalCentered:t.pageSetup&&t.pageSetup.horizontalCentered,verticalCentered:t.pageSetup&&t.pageSetup.verticalCentered},o=t.sheetProtection;this.map.sheetPr.render(e,n),this.map.dimension.render(e,t.dimensions),this.map.sheetViews.render(e,t.views),this.map.sheetFormatPr.render(e,i),this.map.cols.render(e,t.cols),this.map.sheetData.render(e,t.rows),this.map.sheetProtection.render(e,o),this.map.autoFilter.render(e,t.autoFilter),this.map.mergeCells.render(e,t.mergeCells),this.map.conditionalFormatting.render(e,t.conditionalFormattings),this.map.dataValidations.render(e,t.dataValidations),this.map.hyperlinks.render(e,t.hyperlinks),this.map.printOptions.render(e,r),this.map.pageMargins.render(e,a),this.map.pageSetup.render(e,t.pageSetup),this.map.headerFooter.render(e,t.headerFooter),this.map.rowBreaks.render(e,t.rowBreaks),this.map.drawing.render(e,t.drawing),this.map.picture.render(e,t.background),this.map.tableParts.render(e,t.tables),this.map.extLst.render(e,t),t.rels&&t.rels.forEach((function(t){t.Type===f.VmlDrawing&&e.leafNode("legacyDrawing",{"r:id":t.Id})})),e.closeNode()}},{key:"parseOpen",value:function(e){return this.parser?(this.parser.parseOpen(e),!0):"worksheet"===e.name?(c.each(this.map,(function(e){e.reset()})),!0):(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e),!0)}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case"worksheet":var t=this.map.sheetFormatPr.model||{};this.map.sheetPr.model&&this.map.sheetPr.model.tabColor&&(t.tabColor=this.map.sheetPr.model.tabColor),this.map.sheetPr.model&&this.map.sheetPr.model.outlineProperties&&(t.outlineProperties=this.map.sheetPr.model.outlineProperties);var i={fitToPage:this.map.sheetPr.model&&this.map.sheetPr.model.pageSetup&&this.map.sheetPr.model.pageSetup.fitToPage||!1,margins:this.map.pageMargins.model},n=Object.assign(i,this.map.pageSetup.model,this.map.printOptions.model),a=M(this.map.conditionalFormatting.model,this.map.extLst.model&&this.map.extLst.model["x14:conditionalFormattings"]);return this.model={dimensions:this.map.dimension.model,cols:this.map.cols.model,rows:this.map.sheetData.model,mergeCells:this.map.mergeCells.model,hyperlinks:this.map.hyperlinks.model,dataValidations:this.map.dataValidations.model,properties:t,views:this.map.sheetViews.model,pageSetup:n,headerFooter:this.map.headerFooter.model,background:this.map.picture.model,drawing:this.map.drawing.model,tables:this.map.tableParts.model,conditionalFormattings:a},this.map.autoFilter.model&&(this.model.autoFilter=this.map.autoFilter.model),this.map.sheetProtection.model&&(this.model.sheetProtection=this.map.sheetProtection.model),!1;default:return!0}}},{key:"reconcile",value:function(e,t){var i=(e.relationships||[]).reduce((function(i,n){if(i[n.Id]=n,n.Type===f.Comments&&(e.comments=t.comments[n.Target].comments),n.Type===f.VmlDrawing&&e.comments&&e.comments.length){var a=t.vmlDrawings[n.Target].comments;e.comments.forEach((function(e,t){e.note=Object.assign({},e.note,a[t])}))}return i}),{});if(t.commentsMap=(e.comments||[]).reduce((function(e,t){return t.ref&&(e[t.ref]=t),e}),{}),t.hyperlinkMap=(e.hyperlinks||[]).reduce((function(e,t){return t.rId&&(e[t.address]=i[t.rId].Target),e}),{}),t.formulae={},e.rows=e.rows&&e.rows.filter(Boolean)||[],e.rows.forEach((function(e){e.cells=e.cells&&e.cells.filter(Boolean)||[]})),this.map.cols.reconcile(e.cols,t),this.map.sheetData.reconcile(e.rows,t),this.map.conditionalFormatting.reconcile(e.conditionalFormattings,t),e.media=[],e.drawing){var n=i[e.drawing.rId].Target.match(/\/drawings\/([a-zA-Z0-9]+)[.][a-zA-Z]{3,4}$/);if(n){var a=n[1];t.drawings[a].anchors.forEach((function(t){if(t.medium){var i={type:"image",imageId:t.medium.index,range:t.range,hyperlinks:t.picture.hyperlinks};e.media.push(i)}}))}}var r=e.background&&i[e.background.rId];if(r){var o=r.Target.split("/media/")[1],s=t.mediaIndex&&t.mediaIndex[o];void 0!==s&&e.media.push({type:"background",imageId:s})}e.tables=(e.tables||[]).map((function(e){var n=i[e.rId];return t.tables[n.Target]})),delete e.relationships,delete e.hyperlinks,delete e.comments}}])&&a(t.prototype,i),n&&a(t,n),l}(p);F.WORKSHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"},t.exports=F},{"../../../utils/col-cache":19,"../../../utils/under-dash":25,"../../../utils/xml-stream":27,"../../rel-type":30,"../base-xform":31,"../list-xform":70,"./auto-filter-xform":71,"./cf/conditional-formattings-xform":86,"./col-xform":91,"./data-validations-xform":92,"./dimension-xform":93,"./drawing-xform":94,"./ext-lst-xform":95,"./header-footer-xform":96,"./hyperlink-xform":97,"./merge-cell-xform":98,"./merges":99,"./page-margins-xform":102,"./page-setup-xform":104,"./picture-xform":105,"./print-options-xform":106,"./row-breaks-xform":107,"./row-xform":108,"./sheet-format-properties-xform":109,"./sheet-properties-xform":110,"./sheet-protection-xform":111,"./sheet-view-xform":112,"./table-part-xform":113}],115:[function(e,t,i){"use strict";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 a(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=l(e);if(t){var a=l(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return s(this,i)}}function s(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(l,e);var t,i,n,s=o(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=s.call(this)).tag=e.tag,t.attr=e.attr,t}return t=l,(i=[{key:"render",value:function(e,t){t&&(e.openNode(this.tag),e.closeNode())}},{key:"parseOpen",value:function(e){e.name===this.tag&&(this.model=!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])&&a(t.prototype,i),n&&a(t,n),l}(e("../base-xform"));t.exports=c},{"../base-xform":31}],116:[function(e,t,i){"use strict";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 a(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=l(e);if(t){var a=l(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return s(this,i)}}function s(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(l,e);var t,i,n,s=o(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=s.call(this)).tag=e.tag,t.attr=e.attr,t.attrs=e.attrs,t._format=e.format||function(e){try{return Number.isNaN(e.getTime())?"":e.toISOString()}catch(e){return""}},t._parse=e.parse||function(e){return new Date(e)},t}return t=l,(i=[{key:"render",value:function(e,t){t&&(e.openNode(this.tag),this.attrs&&e.addAttributes(this.attrs),this.attr?e.addAttribute(this.attr,this._format(t)):e.writeText(this._format(t)),e.closeNode())}},{key:"parseOpen",value:function(e){e.name===this.tag&&(this.attr?this.model=this._parse(e.attributes[this.attr]):this.text=[])}},{key:"parseText",value:function(e){this.attr||this.text.push(e)}},{key:"parseClose",value:function(){return this.attr||(this.model=this._parse(this.text.join(""))),!1}}])&&a(t.prototype,i),n&&a(t,n),l}(e("../base-xform"));t.exports=c},{"../base-xform":31}],117:[function(e,t,i){"use strict";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 a(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=l(e);if(t){var a=l(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return s(this,i)}}function s(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(l,e);var t,i,n,s=o(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=s.call(this)).tag=e.tag,t.attr=e.attr,t.attrs=e.attrs,t.zero=e.zero,t}return t=l,(i=[{key:"render",value:function(e,t){(t||this.zero)&&(e.openNode(this.tag),this.attrs&&e.addAttributes(this.attrs),this.attr?e.addAttribute(this.attr,t):e.writeText(t),e.closeNode())}},{key:"parseOpen",value:function(e){return e.name===this.tag&&(this.attr?this.model=parseInt(e.attributes[this.attr],10):this.text=[],!0)}},{key:"parseText",value:function(e){this.attr||this.text.push(e)}},{key:"parseClose",value:function(){return this.attr||(this.model=parseInt(this.text.join("")||0,10)),!1}}])&&a(t.prototype,i),n&&a(t,n),l}(e("../base-xform"));t.exports=c},{"../base-xform":31}],118:[function(e,t,i){"use strict";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 a(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=l(e);if(t){var a=l(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return s(this,i)}}function s(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(l,e);var t,i,n,s=o(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=s.call(this)).tag=e.tag,t.attr=e.attr,t.attrs=e.attrs,t}return t=l,(i=[{key:"render",value:function(e,t){void 0!==t&&(e.openNode(this.tag),this.attrs&&e.addAttributes(this.attrs),this.attr?e.addAttribute(this.attr,t):e.writeText(t),e.closeNode())}},{key:"parseOpen",value:function(e){e.name===this.tag&&(this.attr?this.model=e.attributes[this.attr]:this.text=[])}},{key:"parseText",value:function(e){this.attr||this.text.push(e)}},{key:"parseClose",value:function(){return this.attr||(this.model=this.text.join("")),!1}}])&&a(t.prototype,i),n&&a(t,n),l}(e("../base-xform"));t.exports=c},{"../base-xform":31}],119:[function(e,t,i){"use strict";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 a(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=l(e);if(t){var a=l(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return s(this,i)}}function s(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=e("./base-xform"),u=e("../../utils/xml-stream"),d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(l,e);var t,i,n,s=o(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=s.call(this))._model=e,t}return t=l,(i=[{key:"render",value:function(e){if(!this._xml){var t=new u;!function e(t,i){t.openNode(i.tag,i.$),i.c&&i.c.forEach((function(i){e(t,i)})),i.t&&t.writeText(i.t),t.closeNode()}(t,this._model),this._xml=t.xml}e.writeXml(this._xml)}},{key:"parseOpen",value:function(){return!0}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(e){switch(e){case this._model.tag:return!1;default:return!0}}}])&&a(t.prototype,i),n&&a(t,n),l}(c);t.exports=d},{"../../utils/xml-stream":27,"./base-xform":31}],120:[function(e,t,i){"use strict";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 a(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=l(e);if(t){var a=l(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return s(this,i)}}function s(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=e("./text-xform"),u=e("./rich-text-xform"),d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(l,e);var t,i,n,s=o(l);function l(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(e=s.call(this)).map={r:new u,t:new c},e}return t=l,(i=[{key:"render",value:function(e,t){if(e.openNode(this.tag,{sb:t.sb||0,eb:t.eb||0}),t&&t.hasOwnProperty("richText")&&t.richText){var i=this.map.r;t.richText.forEach((function(t){i.render(e,t)}))}else t&&this.map.t.render(e,t.text);e.closeNode()}},{key:"parseOpen",value:function(e){var t=e.name;return this.parser?(this.parser.parseOpen(e),!0):t===this.tag?(this.model={sb:parseInt(e.attributes.sb,10),eb:parseInt(e.attributes.eb,10)},!0):(this.parser=this.map[t],!!this.parser&&(this.parser.parseOpen(e),!0))}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){if(this.parser){if(!this.parser.parseClose(e)){switch(e){case"r":var t=this.model.richText;t||(t=this.model.richText=[]),t.push(this.parser.model);break;case"t":this.model.text=this.parser.model}this.parser=void 0}return!0}switch(e){case this.tag:return!1;default:return!0}}},{key:"tag",get:function(){return"rPh"}}])&&a(t.prototype,i),n&&a(t,n),l}(e("../base-xform"));t.exports=d},{"../base-xform":31,"./rich-text-xform":121,"./text-xform":124}],121:[function(e,t,i){"use strict";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 a(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=l(e);if(t){var a=l(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return s(this,i)}}function s(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=e("./text-xform"),u=e("../style/font-xform"),d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(l,e);var t,i,n,s=o(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=s.call(this)).model=e,t}return t=l,(i=[{key:"render",value:function(e,t){t=t||this.model,e.openNode("r"),t.font&&this.fontXform.render(e,t.font),this.textXform.render(e,t.text),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"r":return this.model={},!0;case"t":return this.parser=this.textXform,this.parser.parseOpen(e),!0;case"rPr":return this.parser=this.fontXform,this.parser.parseOpen(e),!0;default:return!1}}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){switch(e){case"r":return!1;case"t":return this.model.text=this.parser.model,this.parser=void 0,!0;case"rPr":return this.model.font=this.parser.model,this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(e),!0}}},{key:"tag",get:function(){return"r"}},{key:"textXform",get:function(){return this._textXform||(this._textXform=new c)}},{key:"fontXform",get:function(){return this._fontXform||(this._fontXform=new u(l.FONT_OPTIONS))}}])&&a(t.prototype,i),n&&a(t,n),l}(e("../base-xform"));d.FONT_OPTIONS={tagName:"rPr",fontNameTag:"rFont"},t.exports=d},{"../base-xform":31,"../style/font-xform":130,"./text-xform":124}],122:[function(e,t,i){"use strict";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 a(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=l(e);if(t){var a=l(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return s(this,i)}}function s(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=e("./text-xform"),u=e("./rich-text-xform"),d=e("./phonetic-text-xform"),f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(l,e);var t,i,n,s=o(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=s.call(this)).model=e,t.map={r:new u,t:new c,rPh:new d},t}return t=l,(i=[{key:"render",value:function(e,t){var i=this;e.openNode(this.tag),t&&t.hasOwnProperty("richText")&&t.richText?t.richText.length?t.richText.forEach((function(t){i.map.r.render(e,t)})):this.map.t.render(e,""):null!=t&&this.map.t.render(e,t),e.closeNode()}},{key:"parseOpen",value:function(e){var t=e.name;return this.parser?(this.parser.parseOpen(e),!0):t===this.tag?(this.model={},!0):(this.parser=this.map[t],!!this.parser&&(this.parser.parseOpen(e),!0))}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){if(this.parser){if(!this.parser.parseClose(e)){switch(e){case"r":var t=this.model.richText;t||(t=this.model.richText=[]),t.push(this.parser.model);break;case"t":this.model=this.parser.model}this.parser=void 0}return!0}switch(e){case this.tag:return!1;default:return!0}}},{key:"tag",get:function(){return"si"}}])&&a(t.prototype,i),n&&a(t,n),l}(e("../base-xform"));t.exports=f},{"../base-xform":31,"./phonetic-text-xform":120,"./rich-text-xform":121,"./text-xform":124}],123:[function(e,t,i){"use strict";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 a(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=l(e);if(t){var a=l(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return s(this,i)}}function s(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=e("../../../utils/xml-stream"),u=e("../base-xform"),d=e("./shared-string-xform"),f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(l,e);var t,i,n,s=o(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=s.call(this)).model=e||{values:[],count:0},t.hash=Object.create(null),t.rich=Object.create(null),t}return t=l,(i=[{key:"getString",value:function(e){return this.model.values[e]}},{key:"add",value:function(e){return e.richText?this.addRichText(e):this.addText(e)}},{key:"addText",value:function(e){var t=this.hash[e];return void 0===t&&(t=this.hash[e]=this.model.values.length,this.model.values.push(e)),this.model.count++,t}},{key:"addRichText",value:function(e){var t=this.sharedStringXform.toXml(e),i=this.rich[t];return void 0===i&&(i=this.rich[t]=this.model.values.length,this.model.values.push(e)),this.model.count++,i}},{key:"render",value:function(e,t){t=t||this._values,e.openXml(c.StdDocAttributes),e.openNode("sst",{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main",count:t.count,uniqueCount:t.values.length});var i=this.sharedStringXform;t.values.forEach((function(t){i.render(e,t)})),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"sst":return!0;case"si":return this.parser=this.sharedStringXform,this.parser.parseOpen(e),!0;default:throw new Error("Unexpected xml node in parseOpen: ".concat(JSON.stringify(e)))}}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){if(this.parser)return this.parser.parseClose(e)||(this.model.values.push(this.parser.model),this.model.count++,this.parser=void 0),!0;switch(e){case"sst":return!1;default:throw new Error("Unexpected xml node in parseClose: ".concat(e))}}},{key:"sharedStringXform",get:function(){return this._sharedStringXform||(this._sharedStringXform=new d)}},{key:"values",get:function(){return this.model.values}},{key:"uniqueCount",get:function(){return this.model.values.length}},{key:"count",get:function(){return this.model.count}}])&&a(t.prototype,i),n&&a(t,n),l}(u);t.exports=f},{"../../../utils/xml-stream":27,"../base-xform":31,"./shared-string-xform":122}],124:[function(e,t,i){"use strict";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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=c(e);if(t){var a=c(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return l(this,i)}}function l(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(c,e);var t,i,n,l=s(c);function c(){return a(this,c),l.apply(this,arguments)}return t=c,(i=[{key:"render",value:function(e,t){e.openNode("t"),/^\s|\n|\s$/.test(t)&&e.addAttribute("xml:space","preserve"),e.writeText(t),e.closeNode()}},{key:"parseOpen",value:function(e){switch(e.name){case"t":return this._text=[],!0;default:return!1}}},{key:"parseText",value:function(e){this._text.push(e)}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"t"}},{key:"model",get:function(){return this._text.join("").replace(/_x([0-9A-F]{4})_/g,(function(e,t){return String.fromCharCode(parseInt(t,16))}))}}])&&r(t.prototype,i),n&&r(t,n),c}(e("../base-xform"));t.exports=u},{"../base-xform":31}],125:[function(e,t,i){"use strict";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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=c(e);if(t){var a=c(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return l(this,i)}}function l(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=e("../../../doc/enums"),d=e("../../../utils/utils"),f=e("../base-xform"),h={horizontalValues:["left","center","right","fill","centerContinuous","distributed","justify"].reduce((function(e,t){return e[t]=!0,e}),{}),horizontal:function(e){return this.horizontalValues[e]?e:void 0},verticalValues:["top","middle","bottom","distributed","justify"].reduce((function(e,t){return e[t]=!0,e}),{}),vertical:function(e){return"middle"===e?"center":this.verticalValues[e]?e:void 0},wrapText:function(e){return!!e||void 0},shrinkToFit:function(e){return!!e||void 0},textRotation:function(e){switch(e){case"vertical":return e;default:return(e=d.validInt(e))>=-90&&e<=90?e:void 0}},indent:function(e){return e=d.validInt(e),Math.max(0,e)},readingOrder:function(e){switch(e){case"ltr":return u.ReadingOrder.LeftToRight;case"rtl":return u.ReadingOrder.RightToLeft;default:return}}},p=function(e){if(e=h.textRotation(e)){if("vertical"===e)return 255;var t=Math.round(e);if(t>=0&&t<=90)return t;if(t<0&&t>=-90)return 90-t}},m=function(e){var t=d.validInt(e);if(void 0!==t){if(255===t)return"vertical";if(t>=0&&t<=90)return t;if(t>90&&t<=180)return 90-t}},g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(c,e);var t,i,n,l=s(c);function c(){return a(this,c),l.apply(this,arguments)}return t=c,(i=[{key:"render",value:function(e,t){e.addRollback(),e.openNode("alignment");var i=!1;function n(t,n){n&&(e.addAttribute(t,n),i=!0)}n("horizontal",h.horizontal(t.horizontal)),n("vertical",h.vertical(t.vertical)),n("wrapText",!!h.wrapText(t.wrapText)&&"1"),n("shrinkToFit",!!h.shrinkToFit(t.shrinkToFit)&&"1"),n("indent",h.indent(t.indent)),n("textRotation",p(t.textRotation)),n("readingOrder",h.readingOrder(t.readingOrder)),e.closeNode(),i?e.commit():e.rollback()}},{key:"parseOpen",value:function(e){var t={},i=!1;function n(e,n,a){e&&(t[n]=a,i=!0)}n(e.attributes.horizontal,"horizontal",e.attributes.horizontal),n(e.attributes.vertical,"vertical","center"===e.attributes.vertical?"middle":e.attributes.vertical),n(e.attributes.wrapText,"wrapText",!!e.attributes.wrapText),n(e.attributes.shrinkToFit,"shrinkToFit",!!e.attributes.shrinkToFit),n(e.attributes.indent,"indent",parseInt(e.attributes.indent,10)),n(e.attributes.textRotation,"textRotation",m(e.attributes.textRotation)),n(e.attributes.readingOrder,"readingOrder","2"===e.attributes.readingOrder?"rtl":"ltr"),this.model=i?t:null}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"alignment"}}])&&r(t.prototype,i),n&&r(t,n),c}(f);t.exports=g},{"../../../doc/enums":7,"../../../utils/utils":26,"../base-xform":31}],126:[function(e,t,i){"use strict";function n(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function a(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?n(Object(i),!0).forEach((function(t){r(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):n(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function r(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function o(e){return(o="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 s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function c(e,t,i){return t&&l(e.prototype,t),i&&l(e,i),e}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var a=p(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return h(this,i)}}function h(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var m=e("../base-xform"),g=e("./color-xform"),v=function(e){u(i,e);var t=f(i);function i(e){var n;return s(this,i),(n=t.call(this)).name=e,n.map={color:new g},n}return c(i,[{key:"render",value:function(e,t,i){var n=t&&t.color||i||this.defaultColor;e.openNode(this.name),t&&t.style&&(e.addAttribute("style",t.style),n&&this.map.color.render(e,n)),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.name:var t=e.attributes.style;return this.model=t?{style:t}:void 0,!0;case"color":return this.parser=this.map.color,this.parser.parseOpen(e),!0;default:return!1}}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):(e===this.name&&this.map.color.model&&(this.model||(this.model={}),this.model.color=this.map.color.model),!1)}},{key:"validStyle",value:function(e){return i.validStyleValues[e]}},{key:"tag",get:function(){return this.name}}]),i}(m);v.validStyleValues=["thin","dotted","dashDot","hair","dashDotDot","slantDashDot","mediumDashed","mediumDashDotDot","mediumDashDot","medium","double","thick"].reduce((function(e,t){return e[t]=!0,e}),{});var b=function(e){u(i,e);var t=f(i);function i(){var e;return s(this,i),(e=t.call(this)).map={top:new v("top"),left:new v("left"),bottom:new v("bottom"),right:new v("right"),diagonal:new v("diagonal")},e}return c(i,[{key:"render",value:function(e,t){var i=t.color;function n(n,r){n&&!n.color&&t.color&&(n=a(a({},n),{},{color:t.color})),r.render(e,n,i)}e.openNode("border"),t.diagonal&&t.diagonal.style&&(t.diagonal.up&&e.addAttribute("diagonalUp","1"),t.diagonal.down&&e.addAttribute("diagonalDown","1")),n(t.left,this.map.left),n(t.right,this.map.right),n(t.top,this.map.top),n(t.bottom,this.map.bottom),n(t.diagonal,this.map.diagonal),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"border":return this.reset(),this.diagonalUp=!!e.attributes.diagonalUp,this.diagonalDown=!!e.attributes.diagonalDown,!0;default:return this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0)}}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;if("border"===e){var t=this.model={},i=function(e,i,n){i&&(n&&Object.assign(i,n),t[e]=i)};i("left",this.map.left.model),i("right",this.map.right.model),i("top",this.map.top.model),i("bottom",this.map.bottom.model),i("diagonal",this.map.diagonal.model,{up:this.diagonalUp,down:this.diagonalDown})}return!1}}]),i}(m);t.exports=b},{"../base-xform":31,"./color-xform":127}],127:[function(e,t,i){"use strict";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 a(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=l(e);if(t){var a=l(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return s(this,i)}}function s(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(l,e);var t,i,n,s=o(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=s.call(this)).name=e||"color",t}return t=l,(i=[{key:"render",value:function(e,t){return!!t&&(e.openNode(this.name),t.argb?e.addAttribute("rgb",t.argb):void 0!==t.theme?(e.addAttribute("theme",t.theme),void 0!==t.tint&&e.addAttribute("tint",t.tint)):void 0!==t.indexed?e.addAttribute("indexed",t.indexed):e.addAttribute("auto","1"),e.closeNode(),!0)}},{key:"parseOpen",value:function(e){return e.name===this.name&&(e.attributes.rgb?this.model={argb:e.attributes.rgb}:e.attributes.theme?(this.model={theme:parseInt(e.attributes.theme,10)},e.attributes.tint&&(this.model.tint=parseFloat(e.attributes.tint))):e.attributes.indexed?this.model={indexed:parseInt(e.attributes.indexed,10)}:this.model=void 0,!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return this.name}}])&&a(t.prototype,i),n&&a(t,n),l}(e("../base-xform"));t.exports=c},{"../base-xform":31}],128:[function(e,t,i){"use strict";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 a(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=l(e);if(t){var a=l(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return s(this,i)}}function s(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=e("../base-xform"),u=e("./alignment-xform"),d=e("./border-xform"),f=e("./fill-xform"),h=e("./font-xform"),p=e("./numfmt-xform"),m=e("./protection-xform"),g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(l,e);var t,i,n,s=o(l);function l(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(e=s.call(this)).map={alignment:new u,border:new d,fill:new f,font:new h,numFmt:new p,protection:new m},e}return t=l,(i=[{key:"render",value:function(e,t){e.openNode(this.tag),t.font&&this.map.font.render(e,t.font),t.numFmt&&this.map.numFmt.render(e,t.numFmt),t.fill&&this.map.fill.render(e,t.fill),t.alignment&&this.map.alignment.render(e,t.alignment),t.border&&this.map.border.render(e,t.border),t.protection&&this.map.protection.render(e,t.protection),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.tag:return this.reset(),!0;default:return this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e),!0}}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model={alignment:this.map.alignment.model,border:this.map.border.model,fill:this.map.fill.model,font:this.map.font.model,numFmt:this.map.numFmt.model,protection:this.map.protection.model},!1)}},{key:"tag",get:function(){return"dxf"}}])&&a(t.prototype,i),n&&a(t,n),l}(c);t.exports=g},{"../base-xform":31,"./alignment-xform":125,"./border-xform":126,"./fill-xform":129,"./font-xform":130,"./numfmt-xform":131,"./protection-xform":132}],129:[function(e,t,i){"use strict";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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t,i){return t&&r(e.prototype,t),i&&r(e,i),e}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=d(e);if(t){var a=d(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return u(this,i)}}function u(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=e("../base-xform"),h=e("./color-xform"),p=function(e){s(i,e);var t=c(i);function i(){var e;return a(this,i),(e=t.call(this)).map={color:new h},e}return o(i,[{key:"render",value:function(e,t){e.openNode("stop"),e.addAttribute("position",t.position),this.map.color.render(e,t.color),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"stop":return this.model={position:parseFloat(e.attributes.position)},!0;case"color":return this.parser=this.map.color,this.parser.parseOpen(e),!0;default:return!1}}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(e){return!!this.parser&&(this.parser.parseClose(e)||(this.model.color=this.parser.model,this.parser=void 0),!0)}},{key:"tag",get:function(){return"stop"}}]),i}(f),m=function(e){s(i,e);var t=c(i);function i(){var e;return a(this,i),(e=t.call(this)).map={fgColor:new h("fgColor"),bgColor:new h("bgColor")},e}return o(i,[{key:"render",value:function(e,t){e.openNode("patternFill"),e.addAttribute("patternType",t.pattern),t.fgColor&&this.map.fgColor.render(e,t.fgColor),t.bgColor&&this.map.bgColor.render(e,t.bgColor),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"patternFill":return this.model={type:"pattern",pattern:e.attributes.patternType},!0;default:return this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0)}}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){return!!this.parser&&(this.parser.parseClose(e)||(this.parser.model&&(this.model[e]=this.parser.model),this.parser=void 0),!0)}},{key:"name",get:function(){return"pattern"}},{key:"tag",get:function(){return"patternFill"}}]),i}(f),g=function(e){s(i,e);var t=c(i);function i(){var e;return a(this,i),(e=t.call(this)).map={stop:new p},e}return o(i,[{key:"render",value:function(e,t){switch(e.openNode("gradientFill"),t.gradient){case"angle":e.addAttribute("degree",t.degree);break;case"path":e.addAttribute("type","path"),t.center.left&&(e.addAttribute("left",t.center.left),void 0===t.center.right&&e.addAttribute("right",t.center.left)),t.center.right&&e.addAttribute("right",t.center.right),t.center.top&&(e.addAttribute("top",t.center.top),void 0===t.center.bottom&&e.addAttribute("bottom",t.center.top)),t.center.bottom&&e.addAttribute("bottom",t.center.bottom)}var i=this.map.stop;t.stops.forEach((function(t){i.render(e,t)})),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"gradientFill":var t=this.model={stops:[]};return e.attributes.degree?(t.gradient="angle",t.degree=parseInt(e.attributes.degree,10)):"path"===e.attributes.type&&(t.gradient="path",t.center={left:e.attributes.left?parseFloat(e.attributes.left):0,top:e.attributes.top?parseFloat(e.attributes.top):0},e.attributes.right!==e.attributes.left&&(t.center.right=e.attributes.right?parseFloat(e.attributes.right):0),e.attributes.bottom!==e.attributes.top&&(t.center.bottom=e.attributes.bottom?parseFloat(e.attributes.bottom):0)),!0;case"stop":return this.parser=this.map.stop,this.parser.parseOpen(e),!0;default:return!1}}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){return!!this.parser&&(this.parser.parseClose(e)||(this.model.stops.push(this.parser.model),this.parser=void 0),!0)}},{key:"name",get:function(){return"gradient"}},{key:"tag",get:function(){return"gradientFill"}}]),i}(f),v=function(e){s(i,e);var t=c(i);function i(){var e;return a(this,i),(e=t.call(this)).map={patternFill:new m,gradientFill:new g},e}return o(i,[{key:"render",value:function(e,t){switch(e.addRollback(),e.openNode("fill"),t.type){case"pattern":this.map.patternFill.render(e,t);break;case"gradient":this.map.gradientFill.render(e,t);break;default:return void e.rollback()}e.closeNode(),e.commit()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"fill":return this.model={},!0;default:return this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0)}}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){return!!this.parser&&(this.parser.parseClose(e)||(this.model=this.parser.model,this.model.type=this.parser.name,this.parser=void 0),!0)}},{key:"validStyle",value:function(e){return i.validPatternValues[e]}},{key:"tag",get:function(){return"fill"}}]),i}(f);v.validPatternValues=["none","solid","darkVertical","darkGray","mediumGray","lightGray","gray125","gray0625","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","lightGrid"].reduce((function(e,t){return e[t]=!0,e}),{}),v.StopXform=p,v.PatternFillXform=m,v.GradientFillXform=g,t.exports=v},{"../base-xform":31,"./color-xform":127}],130:[function(e,t,i){"use strict";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 a(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=l(e);if(t){var a=l(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return s(this,i)}}function s(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=e("./color-xform"),u=e("../simple/boolean-xform"),d=e("../simple/integer-xform"),f=e("../simple/string-xform"),h=e("./underline-xform"),p=e("../../../utils/under-dash"),m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(l,e);var t,i,n,s=o(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=s.call(this)).options=e||l.OPTIONS,t.map={b:{prop:"bold",xform:new u({tag:"b",attr:"val"})},i:{prop:"italic",xform:new u({tag:"i",attr:"val"})},u:{prop:"underline",xform:new h},charset:{prop:"charset",xform:new d({tag:"charset",attr:"val"})},color:{prop:"color",xform:new c},condense:{prop:"condense",xform:new u({tag:"condense",attr:"val"})},extend:{prop:"extend",xform:new u({tag:"extend",attr:"val"})},family:{prop:"family",xform:new d({tag:"family",attr:"val"})},outline:{prop:"outline",xform:new u({tag:"outline",attr:"val"})},vertAlign:{prop:"vertAlign",xform:new f({tag:"vertAlign",attr:"val"})},scheme:{prop:"scheme",xform:new f({tag:"scheme",attr:"val"})},shadow:{prop:"shadow",xform:new u({tag:"shadow",attr:"val"})},strike:{prop:"strike",xform:new u({tag:"strike",attr:"val"})},sz:{prop:"size",xform:new d({tag:"sz",attr:"val"})}},t.map[t.options.fontNameTag]={prop:"name",xform:new f({tag:t.options.fontNameTag,attr:"val"})},t}return t=l,(i=[{key:"render",value:function(e,t){var i=this.map;e.openNode(this.options.tagName),p.each(this.map,(function(n,a){i[a].xform.render(e,t[n.prop])})),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;if(this.map[e.name])return this.parser=this.map[e.name].xform,this.parser.parseOpen(e);switch(e.name){case this.options.tagName:return this.model={},!0;default:return!1}}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){if(this.parser&&!this.parser.parseClose(e)){var t=this.map[e];return this.parser.model&&(this.model[t.prop]=this.parser.model),this.parser=void 0,!0}switch(e){case this.options.tagName:return!1;default:return!0}}},{key:"tag",get:function(){return this.options.tagName}}])&&a(t.prototype,i),n&&a(t,n),l}(e("../base-xform"));m.OPTIONS={tagName:"font",fontNameTag:"name"},t.exports=m},{"../../../utils/under-dash":25,"../base-xform":31,"../simple/boolean-xform":115,"../simple/integer-xform":117,"../simple/string-xform":118,"./color-xform":127,"./underline-xform":135}],131:[function(e,t,i){"use strict";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 a(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=l(e);if(t){var a=l(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return s(this,i)}}function s(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c,u=e("../../../utils/under-dash"),d=e("../../defaultnumformats"),f=e("../base-xform"),h=(c={},u.each(d,(function(e,t){e.f&&(c[e.f]=parseInt(t,10))})),c),p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(l,e);var t,i,n,s=o(l);function l(e,t){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(i=s.call(this)).id=e,i.formatCode=t,i}return t=l,(i=[{key:"render",value:function(e,t){e.leafNode("numFmt",{numFmtId:t.id,formatCode:t.formatCode})}},{key:"parseOpen",value:function(e){switch(e.name){case"numFmt":return this.model={id:parseInt(e.attributes.numFmtId,10),formatCode:e.attributes.formatCode.replace(/[\\](.)/g,"$1")},!0;default:return!1}}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"numFmt"}}])&&a(t.prototype,i),n&&a(t,n),l}(f);p.getDefaultFmtId=function(e){return h[e]},p.getDefaultFmtCode=function(e){return d[e]&&d[e].f},t.exports=p},{"../../../utils/under-dash":25,"../../defaultnumformats":29,"../base-xform":31}],132:[function(e,t,i){"use strict";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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=c(e);if(t){var a=c(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return l(this,i)}}function l(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=e("../base-xform"),d=function(e,t){return void 0===e?t:e},f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(c,e);var t,i,n,l=s(c);function c(){return a(this,c),l.apply(this,arguments)}return t=c,(i=[{key:"render",value:function(e,t){e.addRollback(),e.openNode("protection");var i=!1;function n(t,n){void 0!==n&&(e.addAttribute(t,n),i=!0)}n("locked",d(t.locked,!0)?void 0:"0"),n("hidden",d(t.hidden,!1)?"1":void 0),e.closeNode(),i?e.commit():e.rollback()}},{key:"parseOpen",value:function(e){var t={locked:!("0"===e.attributes.locked),hidden:"1"===e.attributes.hidden},i=!t.locked||t.hidden;this.model=i?t:null}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"protection"}}])&&r(t.prototype,i),n&&r(t,n),c}(u);t.exports=f},{"../base-xform":31}],133:[function(e,t,i){"use strict";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 a(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=l(e);if(t){var a=l(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return s(this,i)}}function s(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=e("../base-xform"),u=e("./alignment-xform"),d=e("./protection-xform"),f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(l,e);var t,i,n,s=o(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=s.call(this)).xfId=!(!e||!e.xfId),t.map={alignment:new u,protection:new d},t}return t=l,(i=[{key:"render",value:function(e,t){e.openNode("xf",{numFmtId:t.numFmtId||0,fontId:t.fontId||0,fillId:t.fillId||0,borderId:t.borderId||0}),this.xfId&&e.addAttribute("xfId",t.xfId||0),t.numFmtId&&e.addAttribute("applyNumberFormat","1"),t.fontId&&e.addAttribute("applyFont","1"),t.fillId&&e.addAttribute("applyFill","1"),t.borderId&&e.addAttribute("applyBorder","1"),t.alignment&&e.addAttribute("applyAlignment","1"),t.protection&&e.addAttribute("applyProtection","1"),t.alignment&&this.map.alignment.render(e,t.alignment),t.protection&&this.map.protection.render(e,t.protection),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"xf":return this.model={numFmtId:parseInt(e.attributes.numFmtId,10),fontId:parseInt(e.attributes.fontId,10),fillId:parseInt(e.attributes.fillId,10),borderId:parseInt(e.attributes.borderId,10)},this.xfId&&(this.model.xfId=parseInt(e.attributes.xfId,10)),!0;case"alignment":return this.parser=this.map.alignment,this.parser.parseOpen(e),!0;case"protection":return this.parser=this.map.protection,this.parser.parseOpen(e),!0;default:return!1}}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){return this.parser?(this.parser.parseClose(e)||(this.map.protection===this.parser?this.model.protection=this.parser.model:this.model.alignment=this.parser.model,this.parser=void 0),!0):"xf"!==e}},{key:"tag",get:function(){return"xf"}}])&&a(t.prototype,i),n&&a(t,n),l}(c);t.exports=f},{"../base-xform":31,"./alignment-xform":125,"./protection-xform":132}],134:[function(e,t,i){"use strict";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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t,i){return t&&r(e.prototype,t),i&&r(e,i),e}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=d(e);if(t){var a=d(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return u(this,i)}}function u(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=e("../../../doc/enums"),h=e("../../../utils/xml-stream"),p=e("../base-xform"),m=e("../static-xform"),g=e("../list-xform"),v=e("./font-xform"),b=e("./fill-xform"),y=e("./border-xform"),w=e("./numfmt-xform"),_=e("./style-xform"),I=e("./dxf-xform"),x=function(e){s(i,e);var t=c(i);function i(e){var n;return a(this,i),(n=t.call(this)).map={numFmts:new g({tag:"numFmts",count:!0,childXform:new w}),fonts:new g({tag:"fonts",count:!0,childXform:new v,$:{"x14ac:knownFonts":1}}),fills:new g({tag:"fills",count:!0,childXform:new b}),borders:new g({tag:"borders",count:!0,childXform:new y}),cellStyleXfs:new g({tag:"cellStyleXfs",count:!0,childXform:new _}),cellXfs:new g({tag:"cellXfs",count:!0,childXform:new _({xfId:!0})}),dxfs:new g({tag:"dxfs",always:!0,count:!0,childXform:new I}),numFmt:new w,font:new v,fill:new b,border:new y,style:new _({xfId:!0}),cellStyles:i.STATIC_XFORMS.cellStyles,tableStyles:i.STATIC_XFORMS.tableStyles,extLst:i.STATIC_XFORMS.extLst},e&&n.init(),n}return o(i,[{key:"initIndex",value:function(){this.index={style:{},numFmt:{},numFmtNextId:164,font:{},border:{},fill:{}}}},{key:"init",value:function(){this.model={styles:[],numFmts:[],fonts:[],borders:[],fills:[],dxfs:[]},this.initIndex(),this._addBorder({}),this._addStyle({numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}),this._addFill({type:"pattern",pattern:"none"}),this._addFill({type:"pattern",pattern:"gray125"}),this.weakMap=new WeakMap}},{key:"render",value:function(e,t){t=t||this.model,e.openXml(h.StdDocAttributes),e.openNode("styleSheet",i.STYLESHEET_ATTRIBUTES),this.index?(t.numFmts&&t.numFmts.length&&(e.openNode("numFmts",{count:t.numFmts.length}),t.numFmts.forEach((function(t){e.writeXml(t)})),e.closeNode()),t.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),e.openNode("fonts",{count:t.fonts.length,"x14ac:knownFonts":1}),t.fonts.forEach((function(t){e.writeXml(t)})),e.closeNode(),e.openNode("fills",{count:t.fills.length}),t.fills.forEach((function(t){e.writeXml(t)})),e.closeNode(),e.openNode("borders",{count:t.borders.length}),t.borders.forEach((function(t){e.writeXml(t)})),e.closeNode(),this.map.cellStyleXfs.render(e,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),e.openNode("cellXfs",{count:t.styles.length}),t.styles.forEach((function(t){e.writeXml(t)})),e.closeNode()):(this.map.numFmts.render(e,t.numFmts),this.map.fonts.render(e,t.fonts),this.map.fills.render(e,t.fills),this.map.borders.render(e,t.borders),this.map.cellStyleXfs.render(e,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),this.map.cellXfs.render(e,t.styles)),i.STATIC_XFORMS.cellStyles.render(e),this.map.dxfs.render(e,t.dxfs),i.STATIC_XFORMS.tableStyles.render(e),i.STATIC_XFORMS.extLst.render(e),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"styleSheet":return this.initIndex(),!0;default:return this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e),!0}}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){var t=this;if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case"styleSheet":this.model={};var i=function(e,i){i.model&&i.model.length&&(t.model[e]=i.model)};if(i("numFmts",this.map.numFmts),i("fonts",this.map.fonts),i("fills",this.map.fills),i("borders",this.map.borders),i("styles",this.map.cellXfs),i("dxfs",this.map.dxfs),this.index={model:[],numFmt:[]},this.model.numFmts){var n=this.index.numFmt;this.model.numFmts.forEach((function(e){n[e.id]=e.formatCode}))}return!1;default:return!0}}},{key:"addStyleModel",value:function(e,t){if(!e)return 0;if(this.model.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),this.weakMap&&this.weakMap.has(e))return this.weakMap.get(e);var i={};if(t=t||f.ValueType.Number,e.numFmt)i.numFmtId=this._addNumFmtStr(e.numFmt);else switch(t){case f.ValueType.Number:i.numFmtId=this._addNumFmtStr("General");break;case f.ValueType.Date:i.numFmtId=this._addNumFmtStr("mm-dd-yy")}e.font&&(i.fontId=this._addFont(e.font)),e.border&&(i.borderId=this._addBorder(e.border)),e.fill&&(i.fillId=this._addFill(e.fill)),e.alignment&&(i.alignment=e.alignment),e.protection&&(i.protection=e.protection);var n=this._addStyle(i);return this.weakMap&&this.weakMap.set(e,n),n}},{key:"getStyleModel",value:function(e){var t=this.model.styles[e];if(!t)return null;var i=this.index.model[e];if(i)return i;if(i=this.index.model[e]={},t.numFmtId){var n=this.index.numFmt[t.numFmtId]||w.getDefaultFmtCode(t.numFmtId);n&&(i.numFmt=n)}function a(e,t,n){if(n||0===n){var a=t[n];a&&(i[e]=a)}}return a("font",this.model.fonts,t.fontId),a("border",this.model.borders,t.borderId),a("fill",this.model.fills,t.fillId),t.alignment&&(i.alignment=t.alignment),t.protection&&(i.protection=t.protection),i}},{key:"addDxfStyle",value:function(e){return this.model.dxfs.push(e),this.model.dxfs.length-1}},{key:"getDxfStyle",value:function(e){return this.model.dxfs[e]}},{key:"_addStyle",value:function(e){var t=this.map.style.toXml(e),i=this.index.style[t];return void 0===i&&(i=this.index.style[t]=this.model.styles.length,this.model.styles.push(t)),i}},{key:"_addNumFmtStr",value:function(e){var t=w.getDefaultFmtId(e);if(void 0!==t)return t;if(void 0!==(t=this.index.numFmt[e]))return t;t=this.index.numFmt[e]=164+this.model.numFmts.length;var i=this.map.numFmt.toXml({id:t,formatCode:e});return this.model.numFmts.push(i),t}},{key:"_addFont",value:function(e){var t=this.map.font.toXml(e),i=this.index.font[t];return void 0===i&&(i=this.index.font[t]=this.model.fonts.length,this.model.fonts.push(t)),i}},{key:"_addBorder",value:function(e){var t=this.map.border.toXml(e),i=this.index.border[t];return void 0===i&&(i=this.index.border[t]=this.model.borders.length,this.model.borders.push(t)),i}},{key:"_addFill",value:function(e){var t=this.map.fill.toXml(e),i=this.index.fill[t];return void 0===i&&(i=this.index.fill[t]=this.model.fills.length,this.model.fills.push(t)),i}}]),i}(p);x.STYLESHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac x16r2","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac","xmlns:x16r2":"http://schemas.microsoft.com/office/spreadsheetml/2015/02/main"},x.STATIC_XFORMS={cellStyles:new m({tag:"cellStyles",$:{count:1},c:[{tag:"cellStyle",$:{name:"Normal",xfId:0,builtinId:0}}]}),dxfs:new m({tag:"dxfs",$:{count:0}}),tableStyles:new m({tag:"tableStyles",$:{count:0,defaultTableStyle:"TableStyleMedium2",defaultPivotStyle:"PivotStyleLight16"}}),extLst:new m({tag:"extLst",c:[{tag:"ext",$:{uri:"{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"},c:[{tag:"x14:slicerStyles",$:{defaultSlicerStyle:"SlicerStyleLight1"}}]},{tag:"ext",$:{uri:"{9260A510-F301-46a8-8635-F512D64BE5F5}","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},c:[{tag:"x15:timelineStyles",$:{defaultTimelineStyle:"TimeSlicerStyleLight1"}}]}]})};var S=function(e){s(i,e);var t=c(i);function i(){var e;return a(this,i),(e=t.call(this)).model={styles:[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}],numFmts:[],fonts:[{size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}],borders:[{}],fills:[{type:"pattern",pattern:"none"},{type:"pattern",pattern:"gray125"}]},e}return o(i,[{key:"parseStream",value:function(e){return e.autodrain(),Promise.resolve()}},{key:"addStyleModel",value:function(e,t){switch(t){case f.ValueType.Date:return this.dateStyleId;default:return 0}}},{key:"getStyleModel",value:function(){return{}}},{key:"dateStyleId",get:function(){if(!this._dateStyleId){var e={numFmtId:w.getDefaultFmtId("mm-dd-yy")};this._dateStyleId=this.model.styles.length,this.model.styles.push(e)}return this._dateStyleId}}]),i}(x);x.Mock=S,t.exports=x},{"../../../doc/enums":7,"../../../utils/xml-stream":27,"../base-xform":31,"../list-xform":70,"../static-xform":119,"./border-xform":126,"./dxf-xform":128,"./fill-xform":129,"./font-xform":130,"./numfmt-xform":131,"./style-xform":133}],135:[function(e,t,i){"use strict";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 a(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=l(e);if(t){var a=l(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return s(this,i)}}function s(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(l,e);var t,i,n,s=o(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=s.call(this)).model=e,t}return t=l,(i=[{key:"render",value:function(e,t){if(!0===(t=t||this.model))e.leafNode("u");else{var i=l.Attributes[t];i&&e.leafNode("u",i)}}},{key:"parseOpen",value:function(e){"u"===e.name&&(this.model=e.attributes.val||!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"u"}}])&&a(t.prototype,i),n&&a(t,n),l}(e("../base-xform"));c.Attributes={single:{},double:{val:"double"},singleAccounting:{val:"singleAccounting"},doubleAccounting:{val:"doubleAccounting"}},t.exports=c},{"../base-xform":31}],136:[function(e,t,i){"use strict";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 a(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=l(e);if(t){var a=l(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return s(this,i)}}function s(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var c=e("../base-xform"),u=e("./filter-column-xform"),d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(l,e);var t,i,n,s=o(l);function l(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(e=s.call(this)).map={filterColumn:new u},e}return t=l,(i=[{key:"prepare",value:function(e){var t=this;e.columns.forEach((function(e,i){t.map.filterColumn.prepare(e,{index:i})}))}},{key:"render",value:function(e,t){var i=this;return e.openNode(this.tag,{ref:t.autoFilterRef}),t.columns.forEach((function(t){i.map.filterColumn.render(e,t)})),e.closeNode(),!0}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.tag:return this.model={autoFilterRef:e.attributes.ref,columns:[]},!0;default:if(this.parser=this.map[e.name],this.parser)return this.parseOpen(e),!0;throw new Error("Unexpected xml node in parseOpen: ".concat(JSON.stringify(e)))}}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){if(this.parser)return this.parser.parseClose(e)||(this.model.columns.push(this.parser.model),this.parser=void 0),!0;switch(e){case this.tag:return!1;default:throw new Error("Unexpected xml node in parseClose: ".concat(e))}}},{key:"tag",get:function(){return"autoFilter"}}])&&a(t.prototype,i),n&&a(t,n),l}(c);t.exports=d},{"../base-xform":31,"./filter-column-xform":137}],137:[function(e,t,i){"use strict";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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=c(e);if(t){var a=c(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return l(this,i)}}function l(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(c,e);var t,i,n,l=s(c);function c(){return a(this,c),l.apply(this,arguments)}return t=c,(i=[{key:"prepare",value:function(e,t){e.colId=t.index.toString()}},{key:"render",value:function(e,t){return e.leafNode(this.tag,{colId:t.colId,hiddenButton:t.filterButton?"0":"1"}),!0}},{key:"parseOpen",value:function(e){if(e.name===this.tag){var t=e.attributes;return this.model={filterButton:"0"===t.hiddenButton},!0}return!1}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"filterColumn"}}])&&r(t.prototype,i),n&&r(t,n),c}(e("../base-xform"));t.exports=u},{"../base-xform":31}],138:[function(e,t,i){"use strict";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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=c(e);if(t){var a=c(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return l(this,i)}}function l(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(c,e);var t,i,n,l=s(c);function c(){return a(this,c),l.apply(this,arguments)}return t=c,(i=[{key:"prepare",value:function(e,t){e.id=t.index+1}},{key:"render",value:function(e,t){return e.leafNode(this.tag,{id:t.id.toString(),name:t.name,totalsRowLabel:t.totalsRowLabel,totalsRowFunction:t.totalsRowFunction,dxfId:t.dxfId}),!0}},{key:"parseOpen",value:function(e){if(e.name===this.tag){var t=e.attributes;return this.model={name:t.name,totalsRowLabel:t.totalsRowLabel,totalsRowFunction:t.totalsRowFunction,dxfId:t.dxfId},!0}return!1}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"tableColumn"}}])&&r(t.prototype,i),n&&r(t,n),c}(e("../base-xform"));t.exports=u},{"../base-xform":31}],139:[function(e,t,i){"use strict";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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=c(e);if(t){var a=c(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return l(this,i)}}function l(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(c,e);var t,i,n,l=s(c);function c(){return a(this,c),l.apply(this,arguments)}return t=c,(i=[{key:"render",value:function(e,t){return e.leafNode(this.tag,{name:t.theme?t.theme:void 0,showFirstColumn:t.showFirstColumn?"1":"0",showLastColumn:t.showLastColumn?"1":"0",showRowStripes:t.showRowStripes?"1":"0",showColumnStripes:t.showColumnStripes?"1":"0"}),!0}},{key:"parseOpen",value:function(e){if(e.name===this.tag){var t=e.attributes;return this.model={theme:t.name?t.name:null,showFirstColumn:"1"===t.showFirstColumn,showLastColumn:"1"===t.showLastColumn,showRowStripes:"1"===t.showRowStripes,showColumnStripes:"1"===t.showColumnStripes},!0}return!1}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"tag",get:function(){return"tableStyleInfo"}}])&&r(t.prototype,i),n&&r(t,n),c}(e("../base-xform"));t.exports=u},{"../base-xform":31}],140:[function(e,t,i){"use strict";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 a(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function r(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?a(Object(i),!0).forEach((function(t){o(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):a(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function o(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function s(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=d(e);if(t){var a=d(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return u(this,i)}}function u(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=e("../../../utils/xml-stream"),h=e("../base-xform"),p=e("../list-xform"),m=e("./auto-filter-xform"),g=e("./table-column-xform"),v=e("./table-style-info-xform"),b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(o,e);var t,i,n,a=c(o);function o(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(e=a.call(this)).map={autoFilter:new m,tableColumns:new p({tag:"tableColumns",count:!0,empty:!0,childXform:new g}),tableStyleInfo:new v},e}return t=o,(i=[{key:"prepare",value:function(e,t){this.map.autoFilter.prepare(e),this.map.tableColumns.prepare(e.columns,t)}},{key:"render",value:function(e,t){e.openXml(f.StdDocAttributes),e.openNode(this.tag,r(r({},o.TABLE_ATTRIBUTES),{},{id:t.id,name:t.name,displayName:t.displayName||t.name,ref:t.tableRef,totalsRowCount:t.totalsRow?"1":void 0,totalsRowShown:t.totalsRow?void 0:"1",headerRowCount:t.headerRow?"1":"0"})),this.map.autoFilter.render(e,t),this.map.tableColumns.render(e,t.columns),this.map.tableStyleInfo.render(e,t.style),e.closeNode()}},{key:"parseOpen",value:function(e){if(this.parser)return this.parser.parseOpen(e),!0;var t=e.name,i=e.attributes;switch(t){case this.tag:this.reset(),this.model={name:i.name,displayName:i.displayName||i.name,tableRef:i.ref,totalsRow:"1"===i.totalsRowCount,headerRow:"1"===i.headerRowCount};break;default:this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)}return!0}},{key:"parseText",value:function(e){this.parser&&this.parser.parseText(e)}},{key:"parseClose",value:function(e){var t=this;if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case this.tag:return this.model.columns=this.map.tableColumns.model,this.map.autoFilter.model&&(this.model.autoFilterRef=this.map.autoFilter.model.autoFilterRef,this.map.autoFilter.model.columns.forEach((function(e,i){t.model.columns[i].filterButton=e.filterButton}))),this.model.style=this.map.tableStyleInfo.model,!1;default:return!0}}},{key:"reconcile",value:function(e,t){e.columns.forEach((function(e){void 0!==e.dxfId&&(e.style=t.styles.getDxfStyle(e.dxfId))}))}},{key:"tag",get:function(){return"table"}}])&&s(t.prototype,i),n&&s(t,n),o}(h);b.TABLE_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"xr xr3","xmlns:xr":"http://schemas.microsoft.com/office/spreadsheetml/2014/revision","xmlns:xr3":"http://schemas.microsoft.com/office/spreadsheetml/2016/revision3"},t.exports=b},{"../../../utils/xml-stream":27,"../base-xform":31,"../list-xform":70,"./auto-filter-xform":136,"./table-column-xform":138,"./table-style-info-xform":139}],141:[function(e,t,i){(function(i,n){"use strict";function a(e,t,i,n,a,r,o){try{var s=e[r](o),l=s.value}catch(e){return void i(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function r(e){return function(){var t=this,i=arguments;return new Promise((function(n,r){var o=e.apply(t,i);function s(e){a(o,n,r,s,l,"next",e)}function l(e){a(o,n,r,s,l,"throw",e)}s(void 0)}))}}function o(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function s(e){var t;if("undefined"!=typeof Symbol){if(Symbol.asyncIterator&&null!=(t=e[Symbol.asyncIterator]))return t.call(e);if(Symbol.iterator&&null!=(t=e[Symbol.iterator]))return t.call(e)}throw new TypeError("Object is not async iterable")}var l=e("fs"),c=e("jszip"),u=e("readable-stream").PassThrough,d=e("../utils/zip-stream"),f=e("../utils/stream-buf"),h=e("../utils/utils"),p=e("../utils/xml-stream"),m=e("../utils/browser-buffer-decode").bufferToString,g=e("./xform/style/styles-xform"),v=e("./xform/core/core-xform"),b=e("./xform/strings/shared-strings-xform"),y=e("./xform/core/relationships-xform"),w=e("./xform/core/content-types-xform"),_=e("./xform/core/app-xform"),I=e("./xform/book/workbook-xform"),x=e("./xform/sheet/worksheet-xform"),S=e("./xform/drawing/drawing-xform"),T=e("./xform/table/table-xform"),C=e("./xform/comment/comments-xform"),k=e("./xform/comment/vml-notes-xform"),R=e("./xml/theme1.js");function D(e,t){return new Promise((function(i,n){l.readFile(e,t,(function(e,t){e?n(e):i(t)}))}))}var L=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.workbook=t}var t,a,L,O,$,N,A,P,E,M,F,j,V,q,z,B,U,Q,H,G,W,Y,K,Z,X,J,ee,te;return t=e,(a=[{key:"readFile",value:(te=r(regeneratorRuntime.mark((function e(t,i){var n,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,h.fs.exists(t);case 2:if(e.sent){e.next=4;break}throw new Error("File not found: ".concat(t));case 4:return n=l.createReadStream(t),e.prev=5,e.next=8,this.read(n,i);case 8:return a=e.sent,n.close(),e.abrupt("return",a);case 13:throw e.prev=13,e.t0=e.catch(5),n.close(),e.t0;case 17:case"end":return e.stop()}}),e,this,[[5,13]])}))),function(e,t){return te.apply(this,arguments)})},{key:"parseRels",value:function(e){return(new y).parseStream(e)}},{key:"parseWorkbook",value:function(e){return(new I).parseStream(e)}},{key:"parseSharedStrings",value:function(e){return(new b).parseStream(e)}},{key:"reconcile",value:function(e,t){var i=new I,n=new x(t),a=new S,r=new T;i.reconcile(e);var o={media:e.media,mediaIndex:e.mediaIndex};Object.keys(e.drawings).forEach((function(t){var i=e.drawings[t],n=e.drawingRels[t];n&&(o.rels=n.reduce((function(e,t){return e[t.Id]=t,e}),{}),(i.anchors||[]).forEach((function(e){var t=e.picture&&e.picture.hyperlinks;t&&o.rels[t.rId]&&(t.hyperlink=o.rels[t.rId].Target,delete t.rId)})),a.reconcile(i,o))}));var s={styles:e.styles};Object.values(e.tables).forEach((function(e){r.reconcile(e,s)}));var l={styles:e.styles,sharedStrings:e.sharedStrings,media:e.media,mediaIndex:e.mediaIndex,date1904:e.properties&&e.properties.date1904,drawings:e.drawings,comments:e.comments,tables:e.tables,vmlDrawings:e.vmlDrawings};e.worksheets.forEach((function(t){t.relationships=e.worksheetRels[t.sheetNo],n.reconcile(t,l)})),delete e.worksheetHash,delete e.worksheetRels,delete e.globalRels,delete e.sharedStrings,delete e.workbookRels,delete e.sheetDefs,delete e.styles,delete e.mediaIndex,delete e.drawings,delete e.drawingRels,delete e.vmlDrawings}},{key:"_processWorksheetEntry",value:(ee=r(regeneratorRuntime.mark((function e(t,i,n,a,r){var o,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=new x(a),e.next=3,o.parseStream(t);case 3:(s=e.sent).sheetNo=n,i.worksheetHash[r]=s,i.worksheets.push(s);case 7:case"end":return e.stop()}}),e)}))),function(e,t,i,n,a){return ee.apply(this,arguments)})},{key:"_processCommentEntry",value:(J=r(regeneratorRuntime.mark((function e(t,i,n){var a,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=new C,e.next=3,a.parseStream(t);case 3:r=e.sent,i.comments["../".concat(n,".xml")]=r;case 5:case"end":return e.stop()}}),e)}))),function(e,t,i){return J.apply(this,arguments)})},{key:"_processTableEntry",value:(X=r(regeneratorRuntime.mark((function e(t,i,n){var a,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=new T,e.next=3,a.parseStream(t);case 3:r=e.sent,i.tables["../tables/".concat(n,".xml")]=r;case 5:case"end":return e.stop()}}),e)}))),function(e,t,i){return X.apply(this,arguments)})},{key:"_processWorksheetRelsEntry",value:(Z=r(regeneratorRuntime.mark((function e(t,i,n){var a,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=new y,e.next=3,a.parseStream(t);case 3:r=e.sent,i.worksheetRels[n]=r;case 5:case"end":return e.stop()}}),e)}))),function(e,t,i){return Z.apply(this,arguments)})},{key:"_processMediaEntry",value:(K=r(regeneratorRuntime.mark((function e(t,i,n){var a,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!((a=n.lastIndexOf("."))>=1)){e.next=6;break}return r=n.substr(a+1),o=n.substr(0,a),e.next=6,new Promise((function(e,a){var s=new f;s.on("finish",(function(){i.mediaIndex[n]=i.media.length,i.mediaIndex[o]=i.media.length;var t={type:"image",name:o,extension:r,buffer:s.toBuffer()};i.media.push(t),e()})),t.on("error",(function(e){a(e)})),t.pipe(s)}));case 6:case"end":return e.stop()}}),e)}))),function(e,t,i){return K.apply(this,arguments)})},{key:"_processDrawingEntry",value:(Y=r(regeneratorRuntime.mark((function e(t,i,n){var a,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=new S,e.next=3,a.parseStream(t);case 3:r=e.sent,i.drawings[n]=r;case 5:case"end":return e.stop()}}),e)}))),function(e,t,i){return Y.apply(this,arguments)})},{key:"_processDrawingRelsEntry",value:(W=r(regeneratorRuntime.mark((function e(t,i,n){var a,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=new y,e.next=3,a.parseStream(t);case 3:r=e.sent,i.drawingRels[n]=r;case 5:case"end":return e.stop()}}),e)}))),function(e,t,i){return W.apply(this,arguments)})},{key:"_processVmlDrawingEntry",value:(G=r(regeneratorRuntime.mark((function e(t,i,n){var a,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=new k,e.next=3,a.parseStream(t);case 3:r=e.sent,i.vmlDrawings["../drawings/".concat(n,".vml")]=r;case 5:case"end":return e.stop()}}),e)}))),function(e,t,i){return G.apply(this,arguments)})},{key:"_processThemeEntry",value:(H=r(regeneratorRuntime.mark((function e(t,i,n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,new Promise((function(e,a){var r=new f;t.on("error",a),r.on("error",a),r.on("finish",(function(){i.themes[n]=r.read().toString(),e()})),t.pipe(r)}));case 2:case"end":return e.stop()}}),e)}))),function(e,t,i){return H.apply(this,arguments)})},{key:"createInputStream",value:function(){throw new Error("`XLSX#createInputStream` is deprecated. You should use `XLSX#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}},{key:"read",value:(Q=r(regeneratorRuntime.mark((function e(t,i){var a,r,o,l,c,d,f,h;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:!t[Symbol.asyncIterator]&&t.pipe&&(t=t.pipe(new u)),a=[],r=!0,o=!1,e.prev=4,c=s(t);case 6:return e.next=8,c.next();case 8:return d=e.sent,r=d.done,e.next=12,d.value;case 12:if(f=e.sent,r){e.next=19;break}h=f,a.push(h);case 16:r=!0,e.next=6;break;case 19:e.next=25;break;case 21:e.prev=21,e.t0=e.catch(4),o=!0,l=e.t0;case 25:if(e.prev=25,e.prev=26,r||null==c.return){e.next=30;break}return e.next=30,c.return();case 30:if(e.prev=30,!o){e.next=33;break}throw l;case 33:return e.finish(30);case 34:return e.finish(25);case 35:return e.abrupt("return",this.load(n.concat(a),i));case 36:case"end":return e.stop()}}),e,this,[[4,21,25,35],[26,,30,34]])}))),function(e,t){return Q.apply(this,arguments)})},{key:"load",value:(U=r(regeneratorRuntime.mark((function e(t,a){var r,o,s,l,d,f,h,p,y,w,I,x,S,T,C,k;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=a&&a.base64?n.from(t.toString(),"base64"):t,o={worksheets:[],worksheetHash:{},worksheetRels:[],themes:{},media:[],mediaIndex:{},drawings:{},drawingRels:{},comments:{},tables:{},vmlDrawings:{}},e.next=4,c.loadAsync(r);case 4:s=e.sent,l=0,d=Object.values(s.files);case 6:if(!(l<d.length)){e.next=126;break}if((f=d[l]).dir){e.next=123;break}if("/"===(h=f.name)[0]&&(h=h.substr(1)),p=void 0,!h.match(/xl\/media\//)&&!h.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/)){e.next=21;break}return p=new u,e.t0=p,e.next=17,f.async("nodebuffer");case 17:e.t1=e.sent,e.t0.write.call(e.t0,e.t1),e.next=36;break;case 21:if(p=new u({writableObjectMode:!0,readableObjectMode:!0}),y=void 0,!i.browser){e.next=31;break}return e.t2=m,e.next=27,f.async("nodebuffer");case 27:e.t3=e.sent,y=(0,e.t2)(e.t3),e.next=34;break;case 31:return e.next=33,f.async("string");case 33:y=e.sent;case 34:for(w=0;w<y.length;w+=16384)p.write(y.substring(w,w+16384));case 36:p.end(),e.t4=h,e.next="_rels/.rels"===e.t4?40:"xl/workbook.xml"===e.t4?44:"xl/_rels/workbook.xml.rels"===e.t4?53:"xl/sharedStrings.xml"===e.t4?57:"xl/styles.xml"===e.t4?61:"docProps/app.xml"===e.t4?65:"docProps/core.xml"===e.t4?72:78;break;case 40:return e.next=42,this.parseRels(p);case 42:return o.globalRels=e.sent,e.abrupt("break",123);case 44:return e.next=46,this.parseWorkbook(p);case 46:return I=e.sent,o.sheets=I.sheets,o.definedNames=I.definedNames,o.views=I.views,o.properties=I.properties,o.calcProperties=I.calcProperties,e.abrupt("break",123);case 53:return e.next=55,this.parseRels(p);case 55:return o.workbookRels=e.sent,e.abrupt("break",123);case 57:return o.sharedStrings=new b,e.next=60,o.sharedStrings.parseStream(p);case 60:return e.abrupt("break",123);case 61:return o.styles=new g,e.next=64,o.styles.parseStream(p);case 64:return e.abrupt("break",123);case 65:return x=new _,e.next=68,x.parseStream(p);case 68:return S=e.sent,o.company=S.company,o.manager=S.manager,e.abrupt("break",123);case 72:return T=new v,e.next=75,T.parseStream(p);case 75:return C=e.sent,Object.assign(o,C),e.abrupt("break",123);case 78:if(!(k=h.match(/xl\/worksheets\/sheet(\d+)[.]xml/))){e.next=83;break}return e.next=82,this._processWorksheetEntry(p,o,k[1],a,h);case 82:return e.abrupt("break",123);case 83:if(!(k=h.match(/xl\/worksheets\/_rels\/sheet(\d+)[.]xml.rels/))){e.next=88;break}return e.next=87,this._processWorksheetRelsEntry(p,o,k[1]);case 87:return e.abrupt("break",123);case 88:if(!(k=h.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/))){e.next=93;break}return e.next=92,this._processThemeEntry(p,o,k[1]);case 92:return e.abrupt("break",123);case 93:if(!(k=h.match(/xl\/media\/([a-zA-Z0-9]+[.][a-zA-Z0-9]{3,4})$/))){e.next=98;break}return e.next=97,this._processMediaEntry(p,o,k[1]);case 97:return e.abrupt("break",123);case 98:if(!(k=h.match(/xl\/drawings\/([a-zA-Z0-9]+)[.]xml/))){e.next=103;break}return e.next=102,this._processDrawingEntry(p,o,k[1]);case 102:return e.abrupt("break",123);case 103:if(!(k=h.match(/xl\/(comments\d+)[.]xml/))){e.next=108;break}return e.next=107,this._processCommentEntry(p,o,k[1]);case 107:return e.abrupt("break",123);case 108:if(!(k=h.match(/xl\/tables\/(table\d+)[.]xml/))){e.next=113;break}return e.next=112,this._processTableEntry(p,o,k[1]);case 112:return e.abrupt("break",123);case 113:if(!(k=h.match(/xl\/drawings\/_rels\/([a-zA-Z0-9]+)[.]xml[.]rels/))){e.next=118;break}return e.next=117,this._processDrawingRelsEntry(p,o,k[1]);case 117:return e.abrupt("break",123);case 118:if(!(k=h.match(/xl\/drawings\/(vmlDrawing\d+)[.]vml/))){e.next=123;break}return e.next=122,this._processVmlDrawingEntry(p,o,k[1]);case 122:return e.abrupt("break",123);case 123:l++,e.next=6;break;case 126:return this.reconcile(o,a),this.workbook.model=o,e.abrupt("return",this.workbook);case 129:case"end":return e.stop()}}),e,this)}))),function(e,t){return U.apply(this,arguments)})},{key:"addMedia",value:(B=r(regeneratorRuntime.mark((function e(t,i){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all(i.media.map(function(){var e=r(regeneratorRuntime.mark((function e(i){var n,a,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("image"!==i.type){e.next=13;break}if(n="xl/media/".concat(i.name,".").concat(i.extension),!i.filename){e.next=7;break}return e.next=5,D(i.filename);case 5:return a=e.sent,e.abrupt("return",t.append(a,{name:n}));case 7:if(!i.buffer){e.next=9;break}return e.abrupt("return",t.append(i.buffer,{name:n}));case 9:if(!i.base64){e.next=13;break}return r=i.base64,o=r.substring(r.indexOf(",")+1),e.abrupt("return",t.append(o,{name:n,base64:!0}));case 13:throw new Error("Unsupported media");case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 2:case"end":return e.stop()}}),e)}))),function(e,t){return B.apply(this,arguments)})},{key:"addDrawings",value:function(e,t){var i=new S,n=new y;t.worksheets.forEach((function(t){var a=t.drawing;if(a){i.prepare(a,{});var r=i.toXml(a);e.append(r,{name:"xl/drawings/".concat(a.name,".xml")}),r=n.toXml(a.rels),e.append(r,{name:"xl/drawings/_rels/".concat(a.name,".xml.rels")})}}))}},{key:"addTables",value:function(e,t){var i=new T;t.worksheets.forEach((function(t){t.tables.forEach((function(t){i.prepare(t,{});var n=i.toXml(t);e.append(n,{name:"xl/tables/".concat(t.target)})}))}))}},{key:"addContentTypes",value:(z=r(regeneratorRuntime.mark((function e(t,i){var n,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=new w,a=n.toXml(i),t.append(a,{name:"[Content_Types].xml"});case 3:case"end":return e.stop()}}),e)}))),function(e,t){return z.apply(this,arguments)})},{key:"addApp",value:(q=r(regeneratorRuntime.mark((function e(t,i){var n,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=new _,a=n.toXml(i),t.append(a,{name:"docProps/app.xml"});case 3:case"end":return e.stop()}}),e)}))),function(e,t){return q.apply(this,arguments)})},{key:"addCore",value:(V=r(regeneratorRuntime.mark((function e(t,i){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=new v,t.append(n.toXml(i),{name:"docProps/core.xml"});case 2:case"end":return e.stop()}}),e)}))),function(e,t){return V.apply(this,arguments)})},{key:"addThemes",value:(j=r(regeneratorRuntime.mark((function e(t,i){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=i.themes||{theme1:R},Object.keys(n).forEach((function(e){var i=n[e],a="xl/theme/".concat(e,".xml");t.append(i,{name:a})}));case 2:case"end":return e.stop()}}),e)}))),function(e,t){return j.apply(this,arguments)})},{key:"addOfficeRels",value:(F=r(regeneratorRuntime.mark((function t(i){var n,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=new y,a=n.toXml([{Id:"rId1",Type:e.RelType.OfficeDocument,Target:"xl/workbook.xml"},{Id:"rId2",Type:e.RelType.CoreProperties,Target:"docProps/core.xml"},{Id:"rId3",Type:e.RelType.ExtenderProperties,Target:"docProps/app.xml"}]),i.append(a,{name:"_rels/.rels"});case 3:case"end":return t.stop()}}),t)}))),function(e){return F.apply(this,arguments)})},{key:"addWorkbookRels",value:(M=r(regeneratorRuntime.mark((function t(i,n){var a,r,o,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:a=1,r=[{Id:"rId".concat(a++),Type:e.RelType.Styles,Target:"styles.xml"},{Id:"rId".concat(a++),Type:e.RelType.Theme,Target:"theme/theme1.xml"}],n.sharedStrings.count&&r.push({Id:"rId".concat(a++),Type:e.RelType.SharedStrings,Target:"sharedStrings.xml"}),n.worksheets.forEach((function(t){t.rId="rId".concat(a++),r.push({Id:t.rId,Type:e.RelType.Worksheet,Target:"worksheets/sheet".concat(t.id,".xml")})})),o=new y,s=o.toXml(r),i.append(s,{name:"xl/_rels/workbook.xml.rels"});case 7:case"end":return t.stop()}}),t)}))),function(e,t){return M.apply(this,arguments)})},{key:"addSharedStrings",value:(E=r(regeneratorRuntime.mark((function e(t,i){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i.sharedStrings&&i.sharedStrings.count&&t.append(i.sharedStrings.xml,{name:"xl/sharedStrings.xml"});case 1:case"end":return e.stop()}}),e)}))),function(e,t){return E.apply(this,arguments)})},{key:"addStyles",value:(P=r(regeneratorRuntime.mark((function e(t,i){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(n=i.styles.xml)&&t.append(n,{name:"xl/styles.xml"});case 2:case"end":return e.stop()}}),e)}))),function(e,t){return P.apply(this,arguments)})},{key:"addWorkbook",value:(A=r(regeneratorRuntime.mark((function e(t,i){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=new I,t.append(n.toXml(i),{name:"xl/workbook.xml"});case 2:case"end":return e.stop()}}),e)}))),function(e,t){return A.apply(this,arguments)})},{key:"addWorksheets",value:(N=r(regeneratorRuntime.mark((function e(t,i){var n,a,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=new x,a=new y,r=new C,o=new k,i.worksheets.forEach((function(e){var i=new p;n.render(i,e),t.append(i.xml,{name:"xl/worksheets/sheet".concat(e.id,".xml")}),e.rels&&e.rels.length&&(i=new p,a.render(i,e.rels),t.append(i.xml,{name:"xl/worksheets/_rels/sheet".concat(e.id,".xml.rels")})),e.comments.length>0&&(i=new p,r.render(i,e),t.append(i.xml,{name:"xl/comments".concat(e.id,".xml")}),i=new p,o.render(i,e),t.append(i.xml,{name:"xl/drawings/vmlDrawing".concat(e.id,".vml")}))}));case 5:case"end":return e.stop()}}),e)}))),function(e,t){return N.apply(this,arguments)})},{key:"_finalize",value:function(e){var t=this;return new Promise((function(i,n){e.on("finish",(function(){i(t)})),e.on("error",n),e.finalize()}))}},{key:"prepareModel",value:function(e,t){e.creator=e.creator||"ExcelJS",e.lastModifiedBy=e.lastModifiedBy||"ExcelJS",e.created=e.created||new Date,e.modified=e.modified||new Date,e.useSharedStrings=void 0===t.useSharedStrings||t.useSharedStrings,e.useStyles=void 0===t.useStyles||t.useStyles,e.sharedStrings=new b,e.styles=e.useStyles?new g(!0):new g.Mock;var i=new I,n=new x;i.prepare(e);var a={sharedStrings:e.sharedStrings,styles:e.styles,date1904:e.properties.date1904,drawingsCount:0,media:e.media};a.drawings=e.drawings=[],a.commentRefs=e.commentRefs=[];var r=0;e.tables=[],e.worksheets.forEach((function(t){t.tables.forEach((function(t){r++,t.target="table".concat(r,".xml"),t.id=r,e.tables.push(t)})),n.prepare(t,a)}))}},{key:"write",value:($=r(regeneratorRuntime.mark((function e(t,i){var n,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=i||{},n=this.workbook.model,(a=new d.ZipWriter(i.zip)).pipe(t),this.prepareModel(n,i),e.next=7,this.addContentTypes(a,n);case 7:return e.next=9,this.addOfficeRels(a,n);case 9:return e.next=11,this.addWorkbookRels(a,n);case 11:return e.next=13,this.addWorksheets(a,n);case 13:return e.next=15,this.addSharedStrings(a,n);case 15:return e.next=17,this.addDrawings(a,n);case 17:return e.next=19,this.addTables(a,n);case 19:return e.next=21,Promise.all([this.addThemes(a,n),this.addStyles(a,n)]);case 21:return e.next=23,this.addMedia(a,n);case 23:return e.next=25,Promise.all([this.addApp(a,n),this.addCore(a,n)]);case 25:return e.next=27,this.addWorkbook(a,n);case 27:return e.abrupt("return",this._finalize(a));case 28:case"end":return e.stop()}}),e,this)}))),function(e,t){return $.apply(this,arguments)})},{key:"writeFile",value:function(e,t){var i=this,n=l.createWriteStream(e);return new Promise((function(e,a){n.on("finish",(function(){e()})),n.on("error",(function(e){a(e)})),i.write(n,t).then((function(){n.end()}))}))}},{key:"writeBuffer",value:(O=r(regeneratorRuntime.mark((function e(t){var i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=new f,e.next=3,this.write(i,t);case 3:return e.abrupt("return",i.read());case 4:case"end":return e.stop()}}),e,this)}))),function(e){return O.apply(this,arguments)})}])&&o(t.prototype,a),L&&o(t,L),e}();L.RelType=e("./rel-type"),t.exports=L}).call(this,e("_process"),e("buffer").Buffer)},{"../utils/browser-buffer-decode":16,"../utils/stream-buf":23,"../utils/utils":26,"../utils/xml-stream":27,"../utils/zip-stream":28,"./rel-type":30,"./xform/book/workbook-xform":37,"./xform/comment/comments-xform":39,"./xform/comment/vml-notes-xform":44,"./xform/core/app-xform":50,"./xform/core/content-types-xform":51,"./xform/core/core-xform":52,"./xform/core/relationships-xform":54,"./xform/drawing/drawing-xform":61,"./xform/sheet/worksheet-xform":114,"./xform/strings/shared-strings-xform":123,"./xform/style/styles-xform":134,"./xform/table/table-xform":140,"./xml/theme1.js":142,_process:467,buffer:216,fs:215,jszip:399,"readable-stream":491}],142:[function(e,t,i){"use strict";t.exports='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"> <a:themeElements> <a:clrScheme name="Office"> <a:dk1> <a:sysClr val="windowText" lastClr="000000"/> </a:dk1> <a:lt1> <a:sysClr val="window" lastClr="FFFFFF"/> </a:lt1> <a:dk2> <a:srgbClr val="1F497D"/> </a:dk2> <a:lt2> <a:srgbClr val="EEECE1"/> </a:lt2> <a:accent1> <a:srgbClr val="4F81BD"/> </a:accent1> <a:accent2> <a:srgbClr val="C0504D"/> </a:accent2> <a:accent3> <a:srgbClr val="9BBB59"/> </a:accent3> <a:accent4> <a:srgbClr val="8064A2"/> </a:accent4> <a:accent5> <a:srgbClr val="4BACC6"/> </a:accent5> <a:accent6> <a:srgbClr val="F79646"/> </a:accent6> <a:hlink> <a:srgbClr val="0000FF"/> </a:hlink> <a:folHlink> <a:srgbClr val="800080"/> </a:folHlink> </a:clrScheme> <a:fontScheme name="Office"> <a:majorFont> <a:latin typeface="Cambria"/> <a:ea typeface=""/> <a:cs typeface=""/> <a:font script="Jpan" typeface=" Pゴシック"/> <a:font script="Hang" typeface="맑은 고딕"/> <a:font script="Hans" typeface="宋体"/> <a:font script="Hant" typeface="新細明體"/> <a:font script="Arab" typeface="Times New Roman"/> <a:font script="Hebr" typeface="Times New Roman"/> <a:font script="Thai" typeface="Tahoma"/> <a:font script="Ethi" typeface="Nyala"/> <a:font script="Beng" typeface="Vrinda"/> <a:font script="Gujr" typeface="Shruti"/> <a:font script="Khmr" typeface="MoolBoran"/> <a:font script="Knda" typeface="Tunga"/> <a:font script="Guru" typeface="Raavi"/> <a:font script="Cans" typeface="Euphemia"/> <a:font script="Cher" typeface="Plantagenet Cherokee"/> <a:font script="Yiii" typeface="Microsoft Yi Baiti"/> <a:font script="Tibt" typeface="Microsoft Himalaya"/> <a:font script="Thaa" typeface="MV Boli"/> <a:font script="Deva" typeface="Mangal"/> <a:font script="Telu" typeface="Gautami"/> <a:font script="Taml" typeface="Latha"/> <a:font script="Syrc" typeface="Estrangelo Edessa"/> <a:font script="Orya" typeface="Kalinga"/> <a:font script="Mlym" typeface="Kartika"/> <a:font script="Laoo" typeface="DokChampa"/> <a:font script="Sinh" typeface="Iskoola Pota"/> <a:font script="Mong" typeface="Mongolian Baiti"/> <a:font script="Viet" typeface="Times New Roman"/> <a:font script="Uigh" typeface="Microsoft Uighur"/> <a:font script="Geor" typeface="Sylfaen"/> </a:majorFont> <a:minorFont> <a:latin typeface="Calibri"/> <a:ea typeface=""/> <a:cs typeface=""/> <a:font script="Jpan" typeface=" Pゴシック"/> <a:font script="Hang" typeface="맑은 고딕"/> <a:font script="Hans" typeface="宋体"/> <a:font script="Hant" typeface="新細明體"/> <a:font script="Arab" typeface="Arial"/> <a:font script="Hebr" typeface="Arial"/> <a:font script="Thai" typeface="Tahoma"/> <a:font script="Ethi" typeface="Nyala"/> <a:font script="Beng" typeface="Vrinda"/> <a:font script="Gujr" typeface="Shruti"/> <a:font script="Khmr" typeface="DaunPenh"/> <a:font script="Knda" typeface="Tunga"/> <a:font script="Guru" typeface="Raavi"/> <a:font script="Cans" typeface="Euphemia"/> <a:font script="Cher" typeface="Plantagenet Cherokee"/> <a:font script="Yiii" typeface="Microsoft Yi Baiti"/> <a:font script="Tibt" typeface="Microsoft Himalaya"/> <a:font script="Thaa" typeface="MV Boli"/> <a:font script="Deva" typeface="Mangal"/> <a:font script="Telu" typeface="Gautami"/> <a:font script="Taml" typeface="Latha"/> <a:font script="Syrc" typeface="Estrangelo Edessa"/> <a:font script="Orya" typeface="Kalinga"/> <a:font script="Mlym" typeface="Kartika"/> <a:font script="Laoo" typeface="DokChampa"/> <a:font script="Sinh" typeface="Iskoola Pota"/> <a:font script="Mong" typeface="Mongolian Baiti"/> <a:font script="Viet" typeface="Arial"/> <a:font script="Uigh" typeface="Microsoft Uighur"/> <a:font script="Geor" typeface="Sylfaen"/> </a:minorFont> </a:fontScheme> <a:fmtScheme name="Office"> <a:fillStyleLst> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="50000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="35000"> <a:schemeClr val="phClr"> <a:tint val="37000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:tint val="15000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:lin ang="16200000" scaled="1"/> </a:gradFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="100000"/> <a:shade val="100000"/> <a:satMod val="130000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:tint val="50000"/> <a:shade val="100000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:lin ang="16200000" scaled="0"/> </a:gradFill> </a:fillStyleLst> <a:lnStyleLst> <a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"> <a:shade val="95000"/> <a:satMod val="105000"/> </a:schemeClr> </a:solidFill> <a:prstDash val="solid"/> </a:ln> <a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:prstDash val="solid"/> </a:ln> <a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:prstDash val="solid"/> </a:ln> </a:lnStyleLst> <a:effectStyleLst> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="38000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> </a:effectStyle> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="35000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> </a:effectStyle> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="35000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> <a:scene3d> <a:camera prst="orthographicFront"> <a:rot lat="0" lon="0" rev="0"/> </a:camera> <a:lightRig rig="threePt" dir="t"> <a:rot lat="0" lon="0" rev="1200000"/> </a:lightRig> </a:scene3d> <a:sp3d> <a:bevelT w="63500" h="25400"/> </a:sp3d> </a:effectStyle> </a:effectStyleLst> <a:bgFillStyleLst> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="40000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> <a:gs pos="40000"> <a:schemeClr val="phClr"> <a:tint val="45000"/> <a:shade val="99000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:shade val="20000"/> <a:satMod val="255000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:path path="circle"> <a:fillToRect l="50000" t="-80000" r="50000" b="180000"/> </a:path> </a:gradFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="80000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:shade val="30000"/> <a:satMod val="200000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:path path="circle"> <a:fillToRect l="50000" t="50000" r="50000" b="50000"/> </a:path> </a:gradFill> </a:bgFillStyleLst> </a:fmtScheme> </a:themeElements> <a:objectDefaults> <a:spDef> <a:spPr/> <a:bodyPr/> <a:lstStyle/> <a:style> <a:lnRef idx="1"> <a:schemeClr val="accent1"/> </a:lnRef> <a:fillRef idx="3"> <a:schemeClr val="accent1"/> </a:fillRef> <a:effectRef idx="2"> <a:schemeClr val="accent1"/> </a:effectRef> <a:fontRef idx="minor"> <a:schemeClr val="lt1"/> </a:fontRef> </a:style> </a:spDef> <a:lnDef> <a:spPr/> <a:bodyPr/> <a:lstStyle/> <a:style> <a:lnRef idx="2"> <a:schemeClr val="accent1"/> </a:lnRef> <a:fillRef idx="0"> <a:schemeClr val="accent1"/> </a:fillRef> <a:effectRef idx="1"> <a:schemeClr val="accent1"/> </a:effectRef> <a:fontRef idx="minor"> <a:schemeClr val="tx1"/> </a:fontRef> </a:style> </a:lnDef> </a:objectDefaults> <a:extraClrSchemeLst/> </a:theme>'},{}],143:[function(e,t,i){(function(t){"use strict";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 a(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=l(e);if(t){var a=l(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return s(this,i)}}function s(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(i,"__esModule",{value:!0}),i.CsvFormatterStream=void 0;var c=e("stream"),u=e("./formatter"),d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}(c,e);var i,n,s,l=o(c);function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=l.call(this,{writableObjectMode:e.objectMode})).hasWrittenBOM=!1,t.formatterOptions=e,t.rowFormatter=new u.RowFormatter(e),t.hasWrittenBOM=!e.writeBOM,t}return i=c,(n=[{key:"transform",value:function(e){return this.rowFormatter.rowTransform=e,this}},{key:"_transform",value:function(e,i,n){var a=this,r=!1;try{this.hasWrittenBOM||(this.push(this.formatterOptions.BOM),this.hasWrittenBOM=!0),this.rowFormatter.format(e,(function(e,i){return e?(r=!0,n(e)):(i&&i.forEach((function(e){a.push(t.from(e,"utf8"))})),r=!0,n())}))}catch(e){if(r)throw e;n(e)}}},{key:"_flush",value:function(e){var i=this;this.rowFormatter.finish((function(n,a){return n?e(n):(a&&a.forEach((function(e){i.push(t.from(e,"utf8"))})),e())}))}}])&&a(i.prototype,n),s&&a(i,s),c}(c.Transform);i.CsvFormatterStream=d}).call(this,e("buffer").Buffer)},{"./formatter":147,buffer:216,stream:506}],144:[function(e,t,i){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(i,"__esModule",{value:!0}),i.FormatterOptions=void 0,i.FormatterOptions=function e(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(this,e),this.objectMode=!0,this.delimiter=",",this.rowDelimiter="\n",this.quote='"',this.escape=this.quote,this.quoteColumns=!1,this.quoteHeaders=this.quoteColumns,this.headers=null,this.includeEndRowDelimiter=!1,this.writeBOM=!1,this.BOM="\ufeff",this.alwaysWriteHeaders=!1,Object.assign(this,i||{}),void 0===(null==i?void 0:i.quoteHeaders)&&(this.quoteHeaders=this.quoteColumns),!0===(null==i?void 0:i.quote)?this.quote='"':!1===(null==i?void 0:i.quote)&&(this.quote=""),"string"!=typeof(null==i?void 0:i.escape)&&(this.escape=this.quote),this.shouldWriteHeaders=!!this.headers&&(null===(t=i.writeHeaders)||void 0===t||t),this.headers=Array.isArray(this.headers)?this.headers:null,this.escapedQuote="".concat(this.escape).concat(this.quote)}},{}],145:[function(e,t,i){"use strict";function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var a=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(i,"__esModule",{value:!0}),i.FieldFormatter=void 0;var r=a(e("lodash.isboolean")),o=a(e("lodash.isnil")),s=a(e("lodash.escaperegexp")),l=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._headers=null,this.formatterOptions=t,null!==t.headers&&(this.headers=t.headers),this.REPLACE_REGEXP=new RegExp(t.quote,"g");var i="[".concat(t.delimiter).concat(s.default(t.rowDelimiter),"|\r|\n']");this.ESCAPE_REGEXP=new RegExp(i)}var t,i,a;return t=e,(i=[{key:"shouldQuote",value:function(e,t){var i=t?this.formatterOptions.quoteHeaders:this.formatterOptions.quoteColumns;return r.default(i)?i:Array.isArray(i)?i[e]:null!==this._headers&&i[this._headers[e]]}},{key:"format",value:function(e,t,i){var n="".concat(o.default(e)?"":e).replace(/\0/g,""),a=this.formatterOptions;return""!==a.quote&&-1!==n.indexOf(a.quote)?this.quoteField(n.replace(this.REPLACE_REGEXP,a.escapedQuote)):-1!==n.search(this.ESCAPE_REGEXP)||this.shouldQuote(t,i)?this.quoteField(n):n}},{key:"quoteField",value:function(e){var t=this.formatterOptions.quote;return"".concat(t).concat(e).concat(t)}},{key:"headers",set:function(e){this._headers=e}}])&&n(t.prototype,i),a&&n(t,a),e}();i.FieldFormatter=l},{"lodash.escaperegexp":426,"lodash.isboolean":428,"lodash.isnil":431}],146:[function(e,t,i){"use strict";function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var a=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(i,"__esModule",{value:!0}),i.RowFormatter=void 0;var r=a(e("lodash.isfunction")),o=a(e("lodash.isequal")),s=e("./FieldFormatter"),l=e("../types"),c=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.rowCount=0,this.formatterOptions=t,this.fieldFormatter=new s.FieldFormatter(t),this.headers=t.headers,this.shouldWriteHeaders=t.shouldWriteHeaders,this.hasWrittenHeaders=!1,null!==this.headers&&(this.fieldFormatter.headers=this.headers),t.transform&&(this.rowTransform=t.transform)}var t,i,a;return t=e,a=[{key:"isHashArray",value:function(e){return!!Array.isArray(e)&&Array.isArray(e[0])&&2===e[0].length}},{key:"gatherHeaders",value:function(t){return e.isHashArray(t)?t.map((function(e){return e[0]})):Array.isArray(t)?t:Object.keys(t)}},{key:"createTransform",value:function(e){return l.isSyncTransform(e)?function(t,i){var n=null;try{n=e(t)}catch(e){return i(e)}return i(null,n)}:function(t,i){e(t,i)}}}],(i=[{key:"format",value:function(e,t){var i=this;this.callTransformer(e,(function(n,a){if(n)return t(n);if(!e)return t(null);var r=[];if(a){var o=i.checkHeaders(a),s=o.shouldFormatColumns,l=o.headers;if(i.shouldWriteHeaders&&l&&!i.hasWrittenHeaders&&(r.push(i.formatColumns(l,!0)),i.hasWrittenHeaders=!0),s){var c=i.gatherColumns(a);r.push(i.formatColumns(c,!1))}}return t(null,r)}))}},{key:"finish",value:function(e){var t=[];if(this.formatterOptions.alwaysWriteHeaders&&0===this.rowCount){if(!this.headers)return e(new Error("`alwaysWriteHeaders` option is set to true but `headers` option not provided."));t.push(this.formatColumns(this.headers,!0))}return this.formatterOptions.includeEndRowDelimiter&&t.push(this.formatterOptions.rowDelimiter),e(null,t)}},{key:"checkHeaders",value:function(t){if(this.headers)return{shouldFormatColumns:!0,headers:this.headers};var i=e.gatherHeaders(t);return this.headers=i,this.fieldFormatter.headers=i,this.shouldWriteHeaders?{shouldFormatColumns:!o.default(i,t),headers:i}:{shouldFormatColumns:!0,headers:null}}},{key:"gatherColumns",value:function(t){if(null===this.headers)throw new Error("Headers is currently null");return Array.isArray(t)?e.isHashArray(t)?this.headers.map((function(e,i){var n=t[i];return n?n[1]:""})):this.headers.map((function(e,i){return t[i]})):this.headers.map((function(e){return t[e]}))}},{key:"callTransformer",value:function(e,t){return this._rowTransform?this._rowTransform(e,t):t(null,e)}},{key:"formatColumns",value:function(e,t){var i=this,n=e.map((function(e,n){return i.fieldFormatter.format(e,n,t)})).join(this.formatterOptions.delimiter),a=this.rowCount;return this.rowCount+=1,a?[this.formatterOptions.rowDelimiter,n].join(""):n}},{key:"rowTransform",set:function(t){if(!r.default(t))throw new TypeError("The transform should be a function");this._rowTransform=e.createTransform(t)}}])&&n(t.prototype,i),a&&n(t,a),e}();i.RowFormatter=c},{"../types":149,"./FieldFormatter":145,"lodash.isequal":429,"lodash.isfunction":430}],147:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=e("./RowFormatter");Object.defineProperty(i,"RowFormatter",{enumerable:!0,get:function(){return n.RowFormatter}});var a=e("./FieldFormatter");Object.defineProperty(i,"FieldFormatter",{enumerable:!0,get:function(){return a.FieldFormatter}})},{"./FieldFormatter":145,"./RowFormatter":146}],148:[function(e,t,i){(function(t){"use strict";var n=Object.create?function(e,t,i,n){void 0===n&&(n=i),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[i]}})}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]},a=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&n(t,e,i);return a(t,e),t},o=function(e,t){for(var i in e)"default"===i||t.hasOwnProperty(i)||n(t,e,i)};Object.defineProperty(i,"__esModule",{value:!0}),i.writeToPath=i.writeToString=i.writeToBuffer=i.writeToStream=i.write=i.format=void 0;var s=e("util"),l=e("stream"),c=r(e("fs")),u=e("./FormatterOptions"),d=e("./CsvFormatterStream");o(e("./types"),i);var f=e("./CsvFormatterStream");Object.defineProperty(i,"CsvFormatterStream",{enumerable:!0,get:function(){return f.CsvFormatterStream}});var h=e("./FormatterOptions");Object.defineProperty(i,"FormatterOptions",{enumerable:!0,get:function(){return h.FormatterOptions}}),i.format=function(e){return new d.CsvFormatterStream(new u.FormatterOptions(e))},i.write=function(e,t){var n=i.format(t),a=s.promisify((function(e,t){n.write(e,void 0,t)}));return e.reduce((function(e,t){return e.then((function(){return a(t)}))}),Promise.resolve()).then((function(){return n.end()})).catch((function(e){n.emit("error",e)})),n},i.writeToStream=function(e,t,n){return i.write(t,n).pipe(e)},i.writeToBuffer=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=[],r=new l.Writable({write:function(e,t,i){a.push(e),i()}});return new Promise((function(o,s){r.on("error",s).on("finish",(function(){return o(t.concat(a))})),i.write(e,n).pipe(r)}))},i.writeToString=function(e,t){return i.writeToBuffer(e,t).then((function(e){return e.toString()}))},i.writeToPath=function(e,t,n){var a=c.createWriteStream(e,{encoding:"utf8"});return i.write(t,n).pipe(a)}}).call(this,e("buffer").Buffer)},{"./CsvFormatterStream":143,"./FormatterOptions":144,"./types":149,buffer:216,fs:215,stream:506,util:525}],149:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.isSyncTransform=void 0,i.isSyncTransform=function(e){return 1===e.length}},{}],150:[function(e,t,i){(function(t){"use strict";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 a(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function r(e,t,i){return(r="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,i){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=c(e)););return e}(e,t);if(n){var a=Object.getOwnPropertyDescriptor(n,t);return a.get?a.get.call(i):a.value}})(e,t,i||e)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=c(e);if(t){var a=c(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return l(this,i)}}function l(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Object.defineProperty(i,"__esModule",{value:!0}),i.CsvParserStream=void 0;var u=e("string_decoder"),d=e("stream"),f=e("./transforms"),h=e("./parser"),p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(p,e);var i,n,l,d=s(p);function p(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),(t=d.call(this,{objectMode:e.objectMode})).lines="",t.rowCount=0,t.parsedRowCount=0,t.parsedLineCount=0,t.endEmitted=!1,t.headersEmitted=!1,t.parserOptions=e,t.parser=new h.Parser(e),t.headerTransformer=new f.HeaderTransformer(e),t.decoder=new u.StringDecoder(e.encoding),t.rowTransformerValidator=new f.RowTransformerValidator,t}return i=p,(n=[{key:"transform",value:function(e){return this.rowTransformerValidator.rowTransform=e,this}},{key:"validate",value:function(e){return this.rowTransformerValidator.rowValidator=e,this}},{key:"emit",value:function(e){var t;if("end"===e)return this.endEmitted||(this.endEmitted=!0,r(c(p.prototype),"emit",this).call(this,"end",this.rowCount)),!1;for(var i=arguments.length,n=new Array(i>1?i-1:0),a=1;a<i;a++)n[a-1]=arguments[a];return(t=r(c(p.prototype),"emit",this)).call.apply(t,[this,e].concat(n))}},{key:"_transform",value:function(e,t,i){if(this.hasHitRowLimit)return i();try{var n=this.lines+this.decoder.write(e),a=this.parse(n,!0);return this.processRows(a,i)}catch(e){return i(e)}}},{key:"_flush",value:function(e){if(this.hasHitRowLimit)return e();try{var t=this.lines+this.decoder.end(),i=this.parse(t,!1);return this.processRows(i,e)}catch(t){return e(t)}}},{key:"parse",value:function(e,t){if(!e)return[];var i=this.parser.parse(e,t),n=i.line,a=i.rows;return this.lines=n,a}},{key:"processRows",value:function(e,i){var n=this,a=e.length;!function r(o){var s=function(e){return e?i(e):o%100!=0?r(o+1):void t((function(){return r(o+1)}))};if(n.checkAndEmitHeaders(),o>=a||n.hasHitRowLimit)return i();if(n.parsedLineCount+=1,n.shouldSkipLine)return s();var l=e[o];n.rowCount+=1,n.parsedRowCount+=1;var c=n.rowCount;return n.transformRow(l,(function(e,t){if(e)return n.rowCount-=1,s(e);if(!t)return s(new Error("expected transform result"));if(t.isValid){if(t.row)return n.pushRow(t.row,s)}else n.emit("data-invalid",t.row,c,t.reason);return s()}))}(0)}},{key:"transformRow",value:function(e,t){var i=this;try{this.headerTransformer.transform(e,(function(n,a){return n?t(n):a?a.isValid?a.row?i.shouldEmitRows?i.rowTransformerValidator.transformAndValidate(a.row,t):i.skipRow(t):(i.rowCount-=1,i.parsedRowCount-=1,t(null,{row:null,isValid:!0})):i.shouldEmitRows?t(null,{isValid:!1,row:e}):i.skipRow(t):t(new Error("Expected result from header transform"))}))}catch(e){t(e)}}},{key:"checkAndEmitHeaders",value:function(){!this.headersEmitted&&this.headerTransformer.headers&&(this.headersEmitted=!0,this.emit("headers",this.headerTransformer.headers))}},{key:"skipRow",value:function(e){return this.rowCount-=1,e(null,{row:null,isValid:!0})}},{key:"pushRow",value:function(e,t){try{this.parserOptions.objectMode?this.push(e):this.push(JSON.stringify(e)),t()}catch(e){t(e)}}},{key:"hasHitRowLimit",get:function(){return this.parserOptions.limitRows&&this.rowCount>=this.parserOptions.maxRows}},{key:"shouldEmitRows",get:function(){return this.parsedRowCount>this.parserOptions.skipRows}},{key:"shouldSkipLine",get:function(){return this.parsedLineCount<=this.parserOptions.skipLines}}])&&a(i.prototype,n),l&&a(i,l),p}(d.Transform);i.CsvParserStream=p}).call(this,e("timers").setImmediate)},{"./parser":162,"./transforms":165,stream:506,string_decoder:520,timers:521}],151:[function(e,t,i){"use strict";var n=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(i,"__esModule",{value:!0}),i.ParserOptions=void 0;var a=n(e("lodash.escaperegexp")),r=n(e("lodash.isnil"));i.ParserOptions=function e(t){var i;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.objectMode=!0,this.delimiter=",",this.ignoreEmpty=!1,this.quote='"',this.escape=null,this.escapeChar=this.quote,this.comment=null,this.supportsComments=!1,this.ltrim=!1,this.rtrim=!1,this.trim=!1,this.headers=null,this.renameHeaders=!1,this.strictColumnHandling=!1,this.discardUnmappedColumns=!1,this.carriageReturn="\r",this.encoding="utf8",this.limitRows=!1,this.maxRows=0,this.skipLines=0,this.skipRows=0,Object.assign(this,t||{}),this.delimiter.length>1)throw new Error("delimiter option must be one character long");this.escapedDelimiter=a.default(this.delimiter),this.escapeChar=null!==(i=this.escape)&&void 0!==i?i:this.quote,this.supportsComments=!r.default(this.comment),this.NEXT_TOKEN_REGEXP=new RegExp("([^\\s]|\\r\\n|\\n|\\r|".concat(this.escapedDelimiter,")")),this.maxRows>0&&(this.limitRows=!0)}},{"lodash.escaperegexp":426,"lodash.isnil":431}],152:[function(e,t,i){"use strict";var n=Object.create?function(e,t,i,n){void 0===n&&(n=i),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[i]}})}:function(e,t,i,n){void 0===n&&(n=i),e[n]=t[i]},a=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&n(t,e,i);return a(t,e),t},o=function(e,t){for(var i in e)"default"===i||t.hasOwnProperty(i)||n(t,e,i)};Object.defineProperty(i,"__esModule",{value:!0}),i.parseString=i.parseFile=i.parseStream=i.parse=void 0;var s=r(e("fs")),l=e("stream"),c=e("./ParserOptions"),u=e("./CsvParserStream");o(e("./types"),i);var d=e("./CsvParserStream");Object.defineProperty(i,"CsvParserStream",{enumerable:!0,get:function(){return d.CsvParserStream}});var f=e("./ParserOptions");Object.defineProperty(i,"ParserOptions",{enumerable:!0,get:function(){return f.ParserOptions}}),i.parse=function(e){return new u.CsvParserStream(new c.ParserOptions(e))},i.parseStream=function(e,t){return e.pipe(new u.CsvParserStream(new c.ParserOptions(t)))},i.parseFile=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return s.createReadStream(e).pipe(new u.CsvParserStream(new c.ParserOptions(t)))},i.parseString=function(e,t){var i=new l.Readable;return i.push(e),i.push(null),i.pipe(new u.CsvParserStream(new c.ParserOptions(t)))}},{"./CsvParserStream":150,"./ParserOptions":151,"./types":166,fs:215,stream:506}],153:[function(e,t,i){"use strict";function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}Object.defineProperty(i,"__esModule",{value:!0}),i.Parser=void 0;var a=e("./Scanner"),r=e("./RowParser"),o=e("./Token"),s=/^\s*(?:''|"")?\s*(?:,\s*(?:''|"")?\s*)*$/,l=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.parserOptions=t,this.rowParser=new r.RowParser(this.parserOptions)}var t,i,l;return t=e,l=[{key:"removeBOM",value:function(e){return e&&65279===e.charCodeAt(0)?e.slice(1):e}}],(i=[{key:"parse",value:function(t,i){var n=new a.Scanner({line:e.removeBOM(t),parserOptions:this.parserOptions,hasMoreData:i});return this.parserOptions.supportsComments?this.parseWithComments(n):this.parseWithoutComments(n)}},{key:"parseWithoutComments",value:function(e){for(var t=[],i=!0;i;)i=this.parseRow(e,t);return{line:e.line,rows:t}}},{key:"parseWithComments",value:function(e){for(var t=this.parserOptions,i=[],n=e.nextCharacterToken;null!==n;n=e.nextCharacterToken)if(o.Token.isTokenComment(n,t)){if(null===e.advancePastLine())return{line:e.lineFromCursor,rows:i};if(!e.hasMoreCharacters)return{line:e.lineFromCursor,rows:i};e.truncateToCursor()}else if(!this.parseRow(e,i))break;return{line:e.line,rows:i}}},{key:"parseRow",value:function(e,t){if(!e.nextNonSpaceToken)return!1;var i=this.rowParser.parse(e);return null!==i&&(this.parserOptions.ignoreEmpty&&s.test(i.join(""))||t.push(i),!0)}}])&&n(t.prototype,i),l&&n(t,l),e}();i.Parser=l},{"./RowParser":154,"./Scanner":155,"./Token":156}],154:[function(e,t,i){"use strict";function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}Object.defineProperty(i,"__esModule",{value:!0}),i.RowParser=void 0;var a=e("./column"),r=e("./Token").Token,o=r.isTokenRowDelimiter,s=r.isTokenCarriageReturn,l=r.isTokenDelimiter,c=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.parserOptions=t,this.columnParser=new a.ColumnParser(t)}var t,i,r;return t=e,(i=[{key:"parse",value:function(e){for(var t=this.parserOptions,i=e.hasMoreData,n=e,a=[],r=this.getStartToken(n,a);r;){if(o(r))return n.advancePastToken(r),!n.hasMoreCharacters&&s(r,t)&&i?null:(n.truncateToCursor(),a);if(!this.shouldSkipColumnParse(n,r,a)){var l=this.columnParser.parse(n);if(null===l)return null;a.push(l)}r=n.nextNonSpaceToken}return i?null:(n.truncateToCursor(),a)}},{key:"getStartToken",value:function(e,t){var i=e.nextNonSpaceToken;return null!==i&&l(i,this.parserOptions)?(t.push(""),e.nextNonSpaceToken):i}},{key:"shouldSkipColumnParse",value:function(e,t,i){var n=this.parserOptions;if(l(t,n)){e.advancePastToken(t);var a=e.nextCharacterToken;if(!e.hasMoreCharacters||null!==a&&o(a))return i.push(""),!0;if(null!==a&&l(a,n))return i.push(""),!0}return!1}}])&&n(t.prototype,i),r&&n(t,r),e}();i.RowParser=c},{"./Token":156,"./column":161}],155:[function(e,t,i){"use strict";function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}Object.defineProperty(i,"__esModule",{value:!0}),i.Scanner=void 0;var a=e("./Token"),r=/((?:\r\n)|\n|\r)/,o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.cursor=0,this.line=t.line,this.lineLength=this.line.length,this.parserOptions=t.parserOptions,this.hasMoreData=t.hasMoreData,this.cursor=t.cursor||0}var t,i,o;return t=e,(i=[{key:"advancePastLine",value:function(){var e=r.exec(this.lineFromCursor);return e?(this.cursor+=(e.index||0)+e[0].length,this):this.hasMoreData?null:(this.cursor=this.lineLength,this)}},{key:"advanceTo",value:function(e){return this.cursor=e,this}},{key:"advanceToToken",value:function(e){return this.cursor=e.startCursor,this}},{key:"advancePastToken",value:function(e){return this.cursor=e.endCursor+1,this}},{key:"truncateToCursor",value:function(){return this.line=this.lineFromCursor,this.lineLength=this.line.length,this.cursor=0,this}},{key:"hasMoreCharacters",get:function(){return this.lineLength>this.cursor}},{key:"nextNonSpaceToken",get:function(){var e=this.lineFromCursor,t=this.parserOptions.NEXT_TOKEN_REGEXP;if(-1===e.search(t))return null;var i=t.exec(e);if(null==i)return null;var n=i[1],r=this.cursor+(i.index||0);return new a.Token({token:n,startCursor:r,endCursor:r+n.length-1})}},{key:"nextCharacterToken",get:function(){var e=this.cursor;return this.lineLength<=e?null:new a.Token({token:this.line[e],startCursor:e,endCursor:e})}},{key:"lineFromCursor",get:function(){return this.line.substr(this.cursor)}}])&&n(t.prototype,i),o&&n(t,o),e}();i.Scanner=o},{"./Token":156}],156:[function(e,t,i){"use strict";function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}Object.defineProperty(i,"__esModule",{value:!0}),i.Token=void 0;var a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.token=t.token,this.startCursor=t.startCursor,this.endCursor=t.endCursor}var t,i,a;return t=e,a=[{key:"isTokenRowDelimiter",value:function(e){var t=e.token;return"\r"===t||"\n"===t||"\r\n"===t}},{key:"isTokenCarriageReturn",value:function(e,t){return e.token===t.carriageReturn}},{key:"isTokenComment",value:function(e,t){return t.supportsComments&&!!e&&e.token===t.comment}},{key:"isTokenEscapeCharacter",value:function(e,t){return e.token===t.escapeChar}},{key:"isTokenQuote",value:function(e,t){return e.token===t.quote}},{key:"isTokenDelimiter",value:function(e,t){return e.token===t.delimiter}}],(i=null)&&n(t.prototype,i),a&&n(t,a),e}();i.Token=a},{}],157:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.ColumnFormatter=void 0,i.ColumnFormatter=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t.trim?this.format=function(e){return e.trim()}:t.ltrim?this.format=function(e){return e.trimLeft()}:t.rtrim?this.format=function(e){return e.trimRight()}:this.format=function(e){return e}}},{}],158:[function(e,t,i){"use strict";function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}Object.defineProperty(i,"__esModule",{value:!0}),i.ColumnParser=void 0;var a=e("./NonQuotedColumnParser"),r=e("./QuotedColumnParser"),o=e("../Token"),s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.parserOptions=t,this.quotedColumnParser=new r.QuotedColumnParser(t),this.nonQuotedColumnParser=new a.NonQuotedColumnParser(t)}var t,i,s;return t=e,(i=[{key:"parse",value:function(e){var t=e.nextNonSpaceToken;return null!==t&&o.Token.isTokenQuote(t,this.parserOptions)?(e.advanceToToken(t),this.quotedColumnParser.parse(e)):this.nonQuotedColumnParser.parse(e)}}])&&n(t.prototype,i),s&&n(t,s),e}();i.ColumnParser=s},{"../Token":156,"./NonQuotedColumnParser":159,"./QuotedColumnParser":160}],159:[function(e,t,i){"use strict";function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}Object.defineProperty(i,"__esModule",{value:!0}),i.NonQuotedColumnParser=void 0;var a=e("./ColumnFormatter"),r=e("../Token").Token,o=r.isTokenDelimiter,s=r.isTokenRowDelimiter,l=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.parserOptions=t,this.columnFormatter=new a.ColumnFormatter(t)}var t,i,r;return t=e,(i=[{key:"parse",value:function(e){if(!e.hasMoreCharacters)return null;for(var t=this.parserOptions,i=[],n=e.nextCharacterToken;n&&!o(n,t)&&!s(n);n=e.nextCharacterToken)i.push(n.token),e.advancePastToken(n);return this.columnFormatter.format(i.join(""))}}])&&n(t.prototype,i),r&&n(t,r),e}();i.NonQuotedColumnParser=l},{"../Token":156,"./ColumnFormatter":157}],160:[function(e,t,i){"use strict";function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}Object.defineProperty(i,"__esModule",{value:!0}),i.QuotedColumnParser=void 0;var a=e("./ColumnFormatter"),r=e("../Token").Token,o=r.isTokenDelimiter,s=r.isTokenRowDelimiter,l=r.isTokenEscapeCharacter,c=r.isTokenQuote,u=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.parserOptions=t,this.columnFormatter=new a.ColumnFormatter(t)}var t,i,r;return t=e,(i=[{key:"parse",value:function(e){if(!e.hasMoreCharacters)return null;var t=e.cursor,i=this.gatherDataBetweenQuotes(e),n=i.foundClosingQuote,a=i.col;if(!n){if(e.advanceTo(t),!e.hasMoreData)throw new Error("Parse Error: missing closing: '".concat(this.parserOptions.quote||"","' in line: at '").concat(e.lineFromCursor.replace(/[\r\n]/g,"\\n'"),"'"));return null}return this.checkForMalformedColumn(e),a}},{key:"gatherDataBetweenQuotes",value:function(e){for(var t=this.parserOptions,i=!1,n=!1,a=[],r=e.nextCharacterToken;!n&&null!==r;r=e.nextCharacterToken){var o=c(r,t);if(!i&&o)i=!0;else if(i)if(l(r,t)){e.advancePastToken(r);var s=e.nextCharacterToken;null!==s&&(c(s,t)||l(s,t))?(a.push(s.token),r=s):o?n=!0:a.push(r.token)}else o?n=!0:a.push(r.token);e.advancePastToken(r)}return{col:this.columnFormatter.format(a.join("")),foundClosingQuote:n}}},{key:"checkForMalformedColumn",value:function(e){var t=this.parserOptions,i=e.nextNonSpaceToken;if(i){var n=o(i,t),a=s(i);if(!n&&!a){var r=e.lineFromCursor.substr(0,10).replace(/[\r\n]/g,"\\n'");throw new Error("Parse Error: expected: '".concat(t.escapedDelimiter,"' OR new line got: '").concat(i.token,"'. at '").concat(r))}e.advanceToToken(i)}else e.hasMoreData||e.advancePastLine()}}])&&n(t.prototype,i),r&&n(t,r),e}();i.QuotedColumnParser=u},{"../Token":156,"./ColumnFormatter":157}],161:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=e("./ColumnParser");Object.defineProperty(i,"ColumnParser",{enumerable:!0,get:function(){return n.ColumnParser}});var a=e("./NonQuotedColumnParser");Object.defineProperty(i,"NonQuotedColumnParser",{enumerable:!0,get:function(){return a.NonQuotedColumnParser}});var r=e("./QuotedColumnParser");Object.defineProperty(i,"QuotedColumnParser",{enumerable:!0,get:function(){return r.QuotedColumnParser}});var o=e("./ColumnFormatter");Object.defineProperty(i,"ColumnFormatter",{enumerable:!0,get:function(){return o.ColumnFormatter}})},{"./ColumnFormatter":157,"./ColumnParser":158,"./NonQuotedColumnParser":159,"./QuotedColumnParser":160}],162:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=e("./Parser");Object.defineProperty(i,"Parser",{enumerable:!0,get:function(){return n.Parser}});var a=e("./RowParser");Object.defineProperty(i,"RowParser",{enumerable:!0,get:function(){return a.RowParser}});var r=e("./Scanner");Object.defineProperty(i,"Scanner",{enumerable:!0,get:function(){return r.Scanner}});var o=e("./Token");Object.defineProperty(i,"Token",{enumerable:!0,get:function(){return o.Token}});var s=e("./column");Object.defineProperty(i,"ColumnParser",{enumerable:!0,get:function(){return s.ColumnParser}}),Object.defineProperty(i,"NonQuotedColumnParser",{enumerable:!0,get:function(){return s.NonQuotedColumnParser}}),Object.defineProperty(i,"QuotedColumnParser",{enumerable:!0,get:function(){return s.QuotedColumnParser}})},{"./Parser":153,"./RowParser":154,"./Scanner":155,"./Token":156,"./column":161}],163:[function(e,t,i){"use strict";function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var a=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(i,"__esModule",{value:!0}),i.HeaderTransformer=void 0;var r=a(e("lodash.isundefined")),o=a(e("lodash.isfunction")),s=a(e("lodash.uniq")),l=a(e("lodash.groupby")),c=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.headers=null,this.receivedHeaders=!1,this.shouldUseFirstRow=!1,this.processedFirstRow=!1,this.headersLength=0,this.parserOptions=t,!0===t.headers?this.shouldUseFirstRow=!0:Array.isArray(t.headers)?this.setHeaders(t.headers):o.default(t.headers)&&(this.headersTransform=t.headers)}var t,i,a;return t=e,(i=[{key:"transform",value:function(e,t){return this.shouldMapRow(e)?t(null,this.processRow(e)):t(null,{row:null,isValid:!0})}},{key:"shouldMapRow",value:function(e){var t=this.parserOptions;if(!this.headersTransform&&t.renameHeaders&&!this.processedFirstRow){if(!this.receivedHeaders)throw new Error("Error renaming headers: new headers must be provided in an array");return this.processedFirstRow=!0,!1}if(!this.receivedHeaders&&Array.isArray(e)){if(this.headersTransform)this.setHeaders(this.headersTransform(e));else{if(!this.shouldUseFirstRow)return!0;this.setHeaders(e)}return!1}return!0}},{key:"processRow",value:function(e){if(!this.headers)return{row:e,isValid:!0};var t=this.parserOptions;if(!t.discardUnmappedColumns&&e.length>this.headersLength){if(!t.strictColumnHandling)throw new Error("Unexpected Error: column header mismatch expected: ".concat(this.headersLength," columns got: ").concat(e.length));return{row:e,isValid:!1,reason:"Column header mismatch expected: ".concat(this.headersLength," columns got: ").concat(e.length)}}return t.strictColumnHandling&&e.length<this.headersLength?{row:e,isValid:!1,reason:"Column header mismatch expected: ".concat(this.headersLength," columns got: ").concat(e.length)}:{row:this.mapHeaders(e),isValid:!0}}},{key:"mapHeaders",value:function(e){for(var t={},i=this.headers,n=this.headersLength,a=0;a<n;a+=1){var o=i[a];if(!r.default(o)){var s=e[a];r.default(s)?t[o]="":t[o]=s}}return t}},{key:"setHeaders",value:function(e){var t,i=e.filter((function(e){return!!e}));if(s.default(i).length!==i.length){var n=l.default(i),a=Object.keys(n).filter((function(e){return n[e].length>1}));throw new Error("Duplicate headers found ".concat(JSON.stringify(a)))}this.headers=e,this.receivedHeaders=!0,this.headersLength=(null===(t=this.headers)||void 0===t?void 0:t.length)||0}}])&&n(t.prototype,i),a&&n(t,a),e}();i.HeaderTransformer=c},{"lodash.groupby":427,"lodash.isfunction":430,"lodash.isundefined":432,"lodash.uniq":433}],164:[function(e,t,i){"use strict";function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var a=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(i,"__esModule",{value:!0}),i.RowTransformerValidator=void 0;var r=a(e("lodash.isfunction")),o=e("../types"),s=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._rowTransform=null,this._rowValidator=null}var t,i,a;return t=e,a=[{key:"createTransform",value:function(e){return o.isSyncTransform(e)?function(t,i){var n=null;try{n=e(t)}catch(e){return i(e)}return i(null,n)}:e}},{key:"createValidator",value:function(e){return o.isSyncValidate(e)?function(t,i){i(null,{row:t,isValid:e(t)})}:function(t,i){e(t,(function(e,n,a){return e?i(e):i(null,n?{row:t,isValid:n,reason:a}:{row:t,isValid:!1,reason:a})}))}}}],(i=[{key:"transformAndValidate",value:function(e,t){var i=this;return this.callTransformer(e,(function(e,n){return e?t(e):n?i.callValidator(n,(function(e,i){return e?t(e):i&&!i.isValid?t(null,{row:n,isValid:!1,reason:i.reason}):t(null,{row:n,isValid:!0})})):t(null,{row:null,isValid:!0})}))}},{key:"callTransformer",value:function(e,t){return this._rowTransform?this._rowTransform(e,t):t(null,e)}},{key:"callValidator",value:function(e,t){return this._rowValidator?this._rowValidator(e,t):t(null,{row:e,isValid:!0})}},{key:"rowTransform",set:function(t){if(!r.default(t))throw new TypeError("The transform should be a function");this._rowTransform=e.createTransform(t)}},{key:"rowValidator",set:function(t){if(!r.default(t))throw new TypeError("The validate should be a function");this._rowValidator=e.createValidator(t)}}])&&n(t.prototype,i),a&&n(t,a),e}();i.RowTransformerValidator=s},{"../types":166,"lodash.isfunction":430}],165:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=e("./RowTransformerValidator");Object.defineProperty(i,"RowTransformerValidator",{enumerable:!0,get:function(){return n.RowTransformerValidator}});var a=e("./HeaderTransformer");Object.defineProperty(i,"HeaderTransformer",{enumerable:!0,get:function(){return a.HeaderTransformer}})},{"./HeaderTransformer":163,"./RowTransformerValidator":164}],166:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.isSyncValidate=i.isSyncTransform=void 0,i.isSyncTransform=function(e){return 1===e.length},i.isSyncValidate=function(e){return 1===e.length}},{}],167:[function(e,t,i){"use strict";var n=i;n.bignum=e("bn.js"),n.define=e("./asn1/api").define,n.base=e("./asn1/base"),n.constants=e("./asn1/constants"),n.decoders=e("./asn1/decoders"),n.encoders=e("./asn1/encoders")},{"./asn1/api":168,"./asn1/base":170,"./asn1/constants":174,"./asn1/decoders":176,"./asn1/encoders":179,"bn.js":181}],168:[function(e,t,i){"use strict";var n=e("./encoders"),a=e("./decoders"),r=e("inherits");function o(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}i.define=function(e,t){return new o(e,t)},o.prototype._createNamed=function(e){var t=this.name;function i(e){this._initNamed(e,t)}return r(i,e),i.prototype._initNamed=function(t,i){e.call(this,t,i)},new i(this)},o.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(a[e])),this.decoders[e]},o.prototype.decode=function(e,t,i){return this._getDecoder(t).decode(e,i)},o.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(n[e])),this.encoders[e]},o.prototype.encode=function(e,t,i){return this._getEncoder(t).encode(e,i)}},{"./decoders":176,"./encoders":179,inherits:387}],169:[function(e,t,i){"use strict";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)}var a=e("inherits"),r=e("../base/reporter").Reporter,o=e("safer-buffer").Buffer;function s(e,t){r.call(this,t),o.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function l(e,t){if(Array.isArray(e))this.length=0,this.value=e.map((function(e){return l.isEncoderBuffer(e)||(e=new l(e,t)),this.length+=e.length,e}),this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=o.byteLength(e);else{if(!o.isBuffer(e))return t.error("Unsupported type: "+n(e));this.value=e,this.length=e.length}}a(s,r),i.DecoderBuffer=s,s.isDecoderBuffer=function(e){return e instanceof s||"object"===n(e)&&o.isBuffer(e.base)&&"DecoderBuffer"===e.constructor.name&&"number"==typeof e.offset&&"number"==typeof e.length&&"function"==typeof e.save&&"function"==typeof e.restore&&"function"==typeof e.isEmpty&&"function"==typeof e.readUInt8&&"function"==typeof e.skip&&"function"==typeof e.raw},s.prototype.save=function(){return{offset:this.offset,reporter:r.prototype.save.call(this)}},s.prototype.restore=function(e){var t=new s(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,r.prototype.restore.call(this,e.reporter),t},s.prototype.isEmpty=function(){return this.offset===this.length},s.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},s.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");var i=new s(this.base);return i._reporterState=this._reporterState,i.offset=this.offset,i.length=this.offset+e,this.offset+=e,i},s.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},i.EncoderBuffer=l,l.isEncoderBuffer=function(e){return e instanceof l||"object"===n(e)&&"EncoderBuffer"===e.constructor.name&&"number"==typeof e.length&&"function"==typeof e.join},l.prototype.join=function(e,t){return e||(e=o.alloc(this.length)),t||(t=0),0===this.length||(Array.isArray(this.value)?this.value.forEach((function(i){i.join(e,t),t+=i.length})):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):o.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}},{"../base/reporter":172,inherits:387,"safer-buffer":495}],170:[function(e,t,i){"use strict";var n=i;n.Reporter=e("./reporter").Reporter,n.DecoderBuffer=e("./buffer").DecoderBuffer,n.EncoderBuffer=e("./buffer").EncoderBuffer,n.Node=e("./node")},{"./buffer":169,"./node":171,"./reporter":172}],171:[function(e,t,i){"use strict";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)}var a=e("../base/reporter").Reporter,r=e("../base/buffer").EncoderBuffer,o=e("../base/buffer").DecoderBuffer,s=e("minimalistic-assert"),l=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],c=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(l);function u(e,t,i){var n={};this._baseState=n,n.name=i,n.enc=e,n.parent=t||null,n.children=null,n.tag=null,n.args=null,n.reverseArgs=null,n.choice=null,n.optional=!1,n.any=!1,n.obj=!1,n.use=null,n.useDecoder=null,n.key=null,n.default=null,n.explicit=null,n.implicit=null,n.contains=null,n.parent||(n.children=[],this._wrap())}t.exports=u;var d=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];u.prototype.clone=function(){var e=this._baseState,t={};d.forEach((function(i){t[i]=e[i]}));var i=new this.constructor(t.parent);return i._baseState=t,i},u.prototype._wrap=function(){var e=this._baseState;c.forEach((function(t){this[t]=function(){var i=new this.constructor(this);return e.children.push(i),i[t].apply(i,arguments)}}),this)},u.prototype._init=function(e){var t=this._baseState;s(null===t.parent),e.call(this),t.children=t.children.filter((function(e){return e._baseState.parent===this}),this),s.equal(t.children.length,1,"Root node can have only one child")},u.prototype._useArgs=function(e){var t=this._baseState,i=e.filter((function(e){return e instanceof this.constructor}),this);e=e.filter((function(e){return!(e instanceof this.constructor)}),this),0!==i.length&&(s(null===t.children),t.children=i,i.forEach((function(e){e._baseState.parent=this}),this)),0!==e.length&&(s(null===t.args),t.args=e,t.reverseArgs=e.map((function(e){if("object"!==n(e)||e.constructor!==Object)return e;var t={};return Object.keys(e).forEach((function(i){i==(0|i)&&(i|=0);var n=e[i];t[n]=i})),t})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(e){u.prototype[e]=function(){var t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}})),l.forEach((function(e){u.prototype[e]=function(){var t=this._baseState,i=Array.prototype.slice.call(arguments);return s(null===t.tag),t.tag=e,this._useArgs(i),this}})),u.prototype.use=function(e){s(e);var t=this._baseState;return s(null===t.use),t.use=e,this},u.prototype.optional=function(){return this._baseState.optional=!0,this},u.prototype.def=function(e){var t=this._baseState;return s(null===t.default),t.default=e,t.optional=!0,this},u.prototype.explicit=function(e){var t=this._baseState;return s(null===t.explicit&&null===t.implicit),t.explicit=e,this},u.prototype.implicit=function(e){var t=this._baseState;return s(null===t.explicit&&null===t.implicit),t.implicit=e,this},u.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},u.prototype.key=function(e){var t=this._baseState;return s(null===t.key),t.key=e,this},u.prototype.any=function(){return this._baseState.any=!0,this},u.prototype.choice=function(e){var t=this._baseState;return s(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map((function(t){return e[t]}))),this},u.prototype.contains=function(e){var t=this._baseState;return s(null===t.use),t.contains=e,this},u.prototype._decode=function(e,t){var i=this._baseState;if(null===i.parent)return e.wrapResult(i.children[0]._decode(e,t));var n,a=i.default,r=!0,s=null;if(null!==i.key&&(s=e.enterKey(i.key)),i.optional){var l=null;if(null!==i.explicit?l=i.explicit:null!==i.implicit?l=i.implicit:null!==i.tag&&(l=i.tag),null!==l||i.any){if(r=this._peekTag(e,l,i.any),e.isError(r))return r}else{var c=e.save();try{null===i.choice?this._decodeGeneric(i.tag,e,t):this._decodeChoice(e,t),r=!0}catch(e){r=!1}e.restore(c)}}if(i.obj&&r&&(n=e.enterObject()),r){if(null!==i.explicit){var u=this._decodeTag(e,i.explicit);if(e.isError(u))return u;e=u}var d=e.offset;if(null===i.use&&null===i.choice){var f;i.any&&(f=e.save());var h=this._decodeTag(e,null!==i.implicit?i.implicit:i.tag,i.any);if(e.isError(h))return h;i.any?a=e.raw(f):e=h}if(t&&t.track&&null!==i.tag&&t.track(e.path(),d,e.length,"tagged"),t&&t.track&&null!==i.tag&&t.track(e.path(),e.offset,e.length,"content"),i.any||(a=null===i.choice?this._decodeGeneric(i.tag,e,t):this._decodeChoice(e,t)),e.isError(a))return a;if(i.any||null!==i.choice||null===i.children||i.children.forEach((function(i){i._decode(e,t)})),i.contains&&("octstr"===i.tag||"bitstr"===i.tag)){var p=new o(a);a=this._getUse(i.contains,e._reporterState.obj)._decode(p,t)}}return i.obj&&r&&(a=e.leaveObject(n)),null===i.key||null===a&&!0!==r?null!==s&&e.exitKey(s):e.leaveKey(s,i.key,a),a},u.prototype._decodeGeneric=function(e,t,i){var n=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,n.args[0],i):/str$/.test(e)?this._decodeStr(t,e,i):"objid"===e&&n.args?this._decodeObjid(t,n.args[0],n.args[1],i):"objid"===e?this._decodeObjid(t,null,null,i):"gentime"===e||"utctime"===e?this._decodeTime(t,e,i):"null_"===e?this._decodeNull(t,i):"bool"===e?this._decodeBool(t,i):"objDesc"===e?this._decodeStr(t,e,i):"int"===e||"enum"===e?this._decodeInt(t,n.args&&n.args[0],i):null!==n.use?this._getUse(n.use,t._reporterState.obj)._decode(t,i):t.error("unknown tag: "+e)},u.prototype._getUse=function(e,t){var i=this._baseState;return i.useDecoder=this._use(e,t),s(null===i.useDecoder._baseState.parent),i.useDecoder=i.useDecoder._baseState.children[0],i.implicit!==i.useDecoder._baseState.implicit&&(i.useDecoder=i.useDecoder.clone(),i.useDecoder._baseState.implicit=i.implicit),i.useDecoder},u.prototype._decodeChoice=function(e,t){var i=this._baseState,n=null,a=!1;return Object.keys(i.choice).some((function(r){var o=e.save(),s=i.choice[r];try{var l=s._decode(e,t);if(e.isError(l))return!1;n={type:r,value:l},a=!0}catch(t){return e.restore(o),!1}return!0}),this),a?n:e.error("Choice not matched")},u.prototype._createEncoderBuffer=function(e){return new r(e,this.reporter)},u.prototype._encode=function(e,t,i){var n=this._baseState;if(null===n.default||n.default!==e){var a=this._encodeValue(e,t,i);if(void 0!==a&&!this._skipDefault(a,t,i))return a}},u.prototype._encodeValue=function(e,t,i){var r=this._baseState;if(null===r.parent)return r.children[0]._encode(e,t||new a);var o=null;if(this.reporter=t,r.optional&&void 0===e){if(null===r.default)return;e=r.default}var s=null,l=!1;if(r.any)o=this._createEncoderBuffer(e);else if(r.choice)o=this._encodeChoice(e,t);else if(r.contains)s=this._getUse(r.contains,i)._encode(e,t),l=!0;else if(r.children)s=r.children.map((function(i){if("null_"===i._baseState.tag)return i._encode(null,t,e);if(null===i._baseState.key)return t.error("Child should have a key");var a=t.enterKey(i._baseState.key);if("object"!==n(e))return t.error("Child expected, but input is not object");var r=i._encode(e[i._baseState.key],t,e);return t.leaveKey(a),r}),this).filter((function(e){return e})),s=this._createEncoderBuffer(s);else if("seqof"===r.tag||"setof"===r.tag){if(!r.args||1!==r.args.length)return t.error("Too many args for : "+r.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");var c=this.clone();c._baseState.implicit=null,s=this._createEncoderBuffer(e.map((function(i){var n=this._baseState;return this._getUse(n.args[0],e)._encode(i,t)}),c))}else null!==r.use?o=this._getUse(r.use,i)._encode(e,t):(s=this._encodePrimitive(r.tag,e),l=!0);if(!r.any&&null===r.choice){var u=null!==r.implicit?r.implicit:r.tag,d=null===r.implicit?"universal":"context";null===u?null===r.use&&t.error("Tag could be omitted only for .use()"):null===r.use&&(o=this._encodeComposite(u,l,d,s))}return null!==r.explicit&&(o=this._encodeComposite(r.explicit,!1,"context",o)),o},u.prototype._encodeChoice=function(e,t){var i=this._baseState,n=i.choice[e.type];return n||s(!1,e.type+" not found in "+JSON.stringify(Object.keys(i.choice))),n._encode(e.value,t)},u.prototype._encodePrimitive=function(e,t){var i=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&i.args)return this._encodeObjid(t,i.reverseArgs[0],i.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,i.args&&i.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},u.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},u.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(e)}},{"../base/buffer":169,"../base/reporter":172,"minimalistic-assert":437}],172:[function(e,t,i){"use strict";var n=e("inherits");function a(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function r(e,t){this.path=e,this.rethrow(t)}i.Reporter=a,a.prototype.isError=function(e){return e instanceof r},a.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},a.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},a.prototype.enterKey=function(e){return this._reporterState.path.push(e)},a.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)},a.prototype.leaveKey=function(e,t,i){var n=this._reporterState;this.exitKey(e),null!==n.obj&&(n.obj[t]=i)},a.prototype.path=function(){return this._reporterState.path.join("/")},a.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t},a.prototype.leaveObject=function(e){var t=this._reporterState,i=t.obj;return t.obj=e,i},a.prototype.error=function(e){var t,i=this._reporterState,n=e instanceof r;if(t=n?e:new r(i.path.map((function(e){return"["+JSON.stringify(e)+"]"})).join(""),e.message||e,e.stack),!i.options.partial)throw t;return n||i.errors.push(t),t},a.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},n(r,Error),r.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,r),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},{inherits:387}],173:[function(e,t,i){"use strict";function n(e){var t={};return Object.keys(e).forEach((function(i){(0|i)==i&&(i|=0);var n=e[i];t[n]=i})),t}i.tagClass={0:"universal",1:"application",2:"context",3:"private"},i.tagClassByName=n(i.tagClass),i.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},i.tagByName=n(i.tag)},{}],174:[function(e,t,i){"use strict";var n=i;n._reverse=function(e){var t={};return Object.keys(e).forEach((function(i){(0|i)==i&&(i|=0);var n=e[i];t[n]=i})),t},n.der=e("./der")},{"./der":173}],175:[function(e,t,i){"use strict";var n=e("inherits"),a=e("bn.js"),r=e("../base/buffer").DecoderBuffer,o=e("../base/node"),s=e("../constants/der");function l(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new c,this.tree._init(e.body)}function c(e){o.call(this,"der",e)}function u(e,t){var i=e.readUInt8(t);if(e.isError(i))return i;var n=s.tagClass[i>>6],a=0==(32&i);if(31==(31&i)){var r=i;for(i=0;128==(128&r);){if(r=e.readUInt8(t),e.isError(r))return r;i<<=7,i|=127&r}}else i&=31;return{cls:n,primitive:a,tag:i,tagStr:s.tag[i]}}function d(e,t,i){var n=e.readUInt8(i);if(e.isError(n))return n;if(!t&&128===n)return null;if(0==(128&n))return n;var a=127&n;if(a>4)return e.error("length octect is too long");n=0;for(var r=0;r<a;r++){n<<=8;var o=e.readUInt8(i);if(e.isError(o))return o;n|=o}return n}t.exports=l,l.prototype.decode=function(e,t){return r.isDecoderBuffer(e)||(e=new r(e,t)),this.tree._decode(e,t)},n(c,o),c.prototype._peekTag=function(e,t,i){if(e.isEmpty())return!1;var n=e.save(),a=u(e,'Failed to peek tag: "'+t+'"');return e.isError(a)?a:(e.restore(n),a.tag===t||a.tagStr===t||a.tagStr+"of"===t||i)},c.prototype._decodeTag=function(e,t,i){var n=u(e,'Failed to decode tag of "'+t+'"');if(e.isError(n))return n;var a=d(e,n.primitive,'Failed to get length of "'+t+'"');if(e.isError(a))return a;if(!i&&n.tag!==t&&n.tagStr!==t&&n.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(n.primitive||null!==a)return e.skip(a,'Failed to match body of: "'+t+'"');var r=e.save(),o=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(o)?o:(a=e.offset-r.offset,e.restore(r),e.skip(a,'Failed to match body of: "'+t+'"'))},c.prototype._skipUntilEnd=function(e,t){for(;;){var i=u(e,t);if(e.isError(i))return i;var n=d(e,i.primitive,t);if(e.isError(n))return n;var a=void 0;if(a=i.primitive||null!==n?e.skip(n):this._skipUntilEnd(e,t),e.isError(a))return a;if("end"===i.tagStr)break}},c.prototype._decodeList=function(e,t,i,n){for(var a=[];!e.isEmpty();){var r=this._peekTag(e,"end");if(e.isError(r))return r;var o=i.decode(e,"der",n);if(e.isError(o)&&r)break;a.push(o)}return a},c.prototype._decodeStr=function(e,t){if("bitstr"===t){var i=e.readUInt8();return e.isError(i)?i:{unused:i,data:e.raw()}}if("bmpstr"===t){var n=e.raw();if(n.length%2==1)return e.error("Decoding of string type: bmpstr length mismatch");for(var a="",r=0;r<n.length/2;r++)a+=String.fromCharCode(n.readUInt16BE(2*r));return a}if("numstr"===t){var o=e.raw().toString("ascii");return this._isNumstr(o)?o:e.error("Decoding of string type: numstr unsupported characters")}if("octstr"===t)return e.raw();if("objDesc"===t)return e.raw();if("printstr"===t){var s=e.raw().toString("ascii");return this._isPrintstr(s)?s:e.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(t)?e.raw().toString():e.error("Decoding of string type: "+t+" unsupported")},c.prototype._decodeObjid=function(e,t,i){for(var n,a=[],r=0,o=0;!e.isEmpty();)r<<=7,r|=127&(o=e.readUInt8()),0==(128&o)&&(a.push(r),r=0);128&o&&a.push(r);var s=a[0]/40|0,l=a[0]%40;if(n=i?a:[s,l].concat(a.slice(1)),t){var c=t[n.join(" ")];void 0===c&&(c=t[n.join(".")]),void 0!==c&&(n=c)}return n},c.prototype._decodeTime=function(e,t){var i,n,a,r,o,s,l=e.raw().toString();if("gentime"===t)i=0|l.slice(0,4),n=0|l.slice(4,6),a=0|l.slice(6,8),r=0|l.slice(8,10),o=0|l.slice(10,12),s=0|l.slice(12,14);else{if("utctime"!==t)return e.error("Decoding "+t+" time is not supported yet");i=0|l.slice(0,2),n=0|l.slice(2,4),a=0|l.slice(4,6),r=0|l.slice(6,8),o=0|l.slice(8,10),s=0|l.slice(10,12),i=i<70?2e3+i:1900+i}return Date.UTC(i,n-1,a,r,o,s,0)},c.prototype._decodeNull=function(){return null},c.prototype._decodeBool=function(e){var t=e.readUInt8();return e.isError(t)?t:0!==t},c.prototype._decodeInt=function(e,t){var i=e.raw(),n=new a(i);return t&&(n=t[n.toString(10)]||n),n},c.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getDecoder("der").tree}},{"../base/buffer":169,"../base/node":171,"../constants/der":173,"bn.js":181,inherits:387}],176:[function(e,t,i){"use strict";var n=i;n.der=e("./der"),n.pem=e("./pem")},{"./der":175,"./pem":177}],177:[function(e,t,i){"use strict";var n=e("inherits"),a=e("safer-buffer").Buffer,r=e("./der");function o(e){r.call(this,e),this.enc="pem"}n(o,r),t.exports=o,o.prototype.decode=function(e,t){for(var i=e.toString().split(/[\r\n]+/g),n=t.label.toUpperCase(),o=/^-----(BEGIN|END) ([^-]+)-----$/,s=-1,l=-1,c=0;c<i.length;c++){var u=i[c].match(o);if(null!==u&&u[2]===n){if(-1!==s){if("END"!==u[1])break;l=c;break}if("BEGIN"!==u[1])break;s=c}}if(-1===s||-1===l)throw new Error("PEM section not found for: "+n);var d=i.slice(s+1,l).join("");d.replace(/[^a-z0-9+/=]+/gi,"");var f=a.from(d,"base64");return r.prototype.decode.call(this,f,t)}},{"./der":175,inherits:387,"safer-buffer":495}],178:[function(e,t,i){"use strict";var n=e("inherits"),a=e("safer-buffer").Buffer,r=e("../base/node"),o=e("../constants/der");function s(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new l,this.tree._init(e.body)}function l(e){r.call(this,"der",e)}function c(e){return e<10?"0"+e:e}t.exports=s,s.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},n(l,r),l.prototype._encodeComposite=function(e,t,i,n){var r=function(e,t,i,n){var a;if("seqof"===e?e="seq":"setof"===e&&(e="set"),o.tagByName.hasOwnProperty(e))a=o.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return n.error("Unknown tag: "+e);a=e}return a>=31?n.error("Multi-octet tag encoding unsupported"):(t||(a|=32),a|o.tagClassByName[i||"universal"]<<6)}(e,t,i,this.reporter);if(n.length<128){var s=a.alloc(2);return s[0]=r,s[1]=n.length,this._createEncoderBuffer([s,n])}for(var l=1,c=n.length;c>=256;c>>=8)l++;var u=a.alloc(2+l);u[0]=r,u[1]=128|l;for(var d=1+l,f=n.length;f>0;d--,f>>=8)u[d]=255&f;return this._createEncoderBuffer([u,n])},l.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var i=a.alloc(2*e.length),n=0;n<e.length;n++)i.writeUInt16BE(e.charCodeAt(n),2*n);return this._createEncoderBuffer(i)}return"numstr"===t?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===t?this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(t)||"objDesc"===t?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+t+" unsupported")},l.prototype._encodeObjid=function(e,t,i){if("string"==typeof e){if(!t)return this.reporter.error("string objid given, but no values map found");if(!t.hasOwnProperty(e))return this.reporter.error("objid not found in values map");e=t[e].split(/[\s.]+/g);for(var n=0;n<e.length;n++)e[n]|=0}else if(Array.isArray(e)){e=e.slice();for(var r=0;r<e.length;r++)e[r]|=0}if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!i){if(e[1]>=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}for(var o=0,s=0;s<e.length;s++){var l=e[s];for(o++;l>=128;l>>=7)o++}for(var c=a.alloc(o),u=c.length-1,d=e.length-1;d>=0;d--){var f=e[d];for(c[u--]=127&f;(f>>=7)>0;)c[u--]=128|127&f}return this._createEncoderBuffer(c)},l.prototype._encodeTime=function(e,t){var i,n=new Date(e);return"gentime"===t?i=[c(n.getUTCFullYear()),c(n.getUTCMonth()+1),c(n.getUTCDate()),c(n.getUTCHours()),c(n.getUTCMinutes()),c(n.getUTCSeconds()),"Z"].join(""):"utctime"===t?i=[c(n.getUTCFullYear()%100),c(n.getUTCMonth()+1),c(n.getUTCDate()),c(n.getUTCHours()),c(n.getUTCMinutes()),c(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(i,"octstr")},l.prototype._encodeNull=function(){return this._createEncoderBuffer("")},l.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!a.isBuffer(e)){var i=e.toArray();!e.sign&&128&i[0]&&i.unshift(0),e=a.from(i)}if(a.isBuffer(e)){var n=e.length;0===e.length&&n++;var r=a.alloc(n);return e.copy(r),0===e.length&&(r[0]=0),this._createEncoderBuffer(r)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);for(var o=1,s=e;s>=256;s>>=8)o++;for(var l=new Array(o),c=l.length-1;c>=0;c--)l[c]=255&e,e>>=8;return 128&l[0]&&l.unshift(0),this._createEncoderBuffer(a.from(l))},l.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},l.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},l.prototype._skipDefault=function(e,t,i){var n,a=this._baseState;if(null===a.default)return!1;var r=e.join();if(void 0===a.defaultBuffer&&(a.defaultBuffer=this._encodeValue(a.default,t,i).join()),r.length!==a.defaultBuffer.length)return!1;for(n=0;n<r.length;n++)if(r[n]!==a.defaultBuffer[n])return!1;return!0}},{"../base/node":171,"../constants/der":173,inherits:387,"safer-buffer":495}],179:[function(e,t,i){"use strict";var n=i;n.der=e("./der"),n.pem=e("./pem")},{"./der":178,"./pem":180}],180:[function(e,t,i){"use strict";var n=e("inherits"),a=e("./der");function r(e){a.call(this,e),this.enc="pem"}n(r,a),t.exports=r,r.prototype.encode=function(e,t){for(var i=a.prototype.encode.call(this,e).toString("base64"),n=["-----BEGIN "+t.label+"-----"],r=0;r<i.length;r+=64)n.push(i.slice(r,r+64));return n.push("-----END "+t.label+"-----"),n.join("\n")}},{"./der":178,inherits:387}],181:[function(e,t,i){"use strict";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(t,i){function a(e,t){if(!e)throw new Error(t||"Assertion failed")}function r(e,t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e}function o(e,t,i){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(i=t,t=10),this._init(e||0,t||10,i||"be"))}var s;"object"===n(t)?t.exports=o:(void 0).BN=o,o.BN=o,o.wordSize=26;try{s=e("buffer").Buffer}catch(e){}function l(e,t,i){for(var n=0,a=Math.min(e.length,i),r=t;r<a;r++){var o=e.charCodeAt(r)-48;n<<=4,n|=o>=49&&o<=54?o-49+10:o>=17&&o<=22?o-17+10:15&o}return n}function c(e,t,i,n){for(var a=0,r=Math.min(e.length,i),o=t;o<r;o++){var s=e.charCodeAt(o)-48;a*=n,a+=s>=49?s-49+10:s>=17?s-17+10:s}return a}o.isBN=function(e){return e instanceof o||null!==e&&"object"===n(e)&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,i){if("number"==typeof e)return this._initNumber(e,t,i);if("object"===n(e))return this._initArray(e,t,i);"hex"===t&&(t=16),a(t===(0|t)&&t>=2&&t<=36);var r=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&r++,16===t?this._parseHex(e,r):this._parseBase(e,t,r),"-"===e[0]&&(this.negative=1),this.strip(),"le"===i&&this._initArray(this.toArray(),t,i)},o.prototype._initNumber=function(e,t,i){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(a(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),t,i)},o.prototype._initArray=function(e,t,i){if(a("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,o,s=0;if("be"===i)for(n=e.length-1,r=0;n>=0;n-=3)o=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[r]|=o<<s&67108863,this.words[r+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,r++);else if("le"===i)for(n=0,r=0;n<e.length;n+=3)o=e[n]|e[n+1]<<8|e[n+2]<<16,this.words[r]|=o<<s&67108863,this.words[r+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,r++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var n,a,r=0;for(i=e.length-6,n=0;i>=t;i-=6)a=l(e,i,i+6),this.words[n]|=a<<r&67108863,this.words[n+1]|=a>>>26-r&4194303,(r+=24)>=26&&(r-=26,n++);i+6!==t&&(a=l(e,t,i+6),this.words[n]|=a<<r&67108863,this.words[n+1]|=a>>>26-r&4194303),this.strip()},o.prototype._parseBase=function(e,t,i){this.words=[0],this.length=1;for(var n=0,a=1;a<=67108863;a*=t)n++;n--,a=a/t|0;for(var r=e.length-i,o=r%n,s=Math.min(r,r-o)+i,l=0,u=i;u<s;u+=n)l=c(e,u,u+n,t),this.imuln(a),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==o){var d=1;for(l=c(e,u,e.length,t),u=0;u<o;u++)d*=t;this.imuln(d),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}},o.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e,t,i){i.negative=t.negative^e.negative;var n=e.length+t.length|0;i.length=n,n=n-1|0;var a=0|e.words[0],r=0|t.words[0],o=a*r,s=67108863&o,l=o/67108864|0;i.words[0]=s;for(var c=1;c<n;c++){for(var u=l>>>26,d=67108863&l,f=Math.min(c,t.length-1),h=Math.max(0,c-e.length+1);h<=f;h++){var p=c-h|0;u+=(o=(a=0|e.words[p])*(r=0|t.words[h])+d)/67108864|0,d=67108863&o}i.words[c]=0|d,l=0|u}return 0!==l?i.words[c]=0|l:i.length--,i.strip()}o.prototype.toString=function(e,t){var i;if(t=0|t||1,16===(e=e||10)||"hex"===e){i="";for(var n=0,r=0,o=0;o<this.length;o++){var s=this.words[o],l=(16777215&(s<<n|r)).toString(16);i=0!==(r=s>>>24-n&16777215)||o!==this.length-1?u[6-l.length]+l+i:l+i,(n+=2)>=26&&(n-=26,o--)}for(0!==r&&(i=r.toString(16)+i);i.length%t!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(e===(0|e)&&e>=2&&e<=36){var c=d[e],h=f[e];i="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(h).toString(e);i=(p=p.idivn(h)).isZero()?m+i:u[c-m.length]+m+i}for(this.isZero()&&(i="0"+i);i.length%t!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}a(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&a(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return a(void 0!==s),this.toArrayLike(s,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,i){var n=this.byteLength(),r=i||Math.max(1,n);a(n<=r,"byte array longer than desired length"),a(r>0,"Requested array length <= 0"),this.strip();var o,s,l="le"===t,c=new e(r),u=this.clone();if(l){for(s=0;!u.isZero();s++)o=u.andln(255),u.iushrn(8),c[s]=o;for(;s<r;s++)c[s]=0}else{for(s=0;s<r-n;s++)c[s]=0;for(s=0;!u.isZero();s++)o=u.andln(255),u.iushrn(8),c[r-s-1]=o}return c},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,i=0;return t>=4096&&(i+=13,t>>>=13),t>=64&&(i+=7,t>>>=7),t>=8&&(i+=4,t>>>=4),t>=2&&(i+=2,t>>>=2),i+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,i=0;return 0==(8191&t)&&(i+=13,t>>>=13),0==(127&t)&&(i+=7,t>>>=7),0==(15&t)&&(i+=4,t>>>=4),0==(3&t)&&(i+=2,t>>>=2),0==(1&t)&&i++,i},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var i=this._zeroBits(this.words[t]);if(e+=i,26!==i)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},o.prototype.ior=function(e){return a(0==(this.negative|e.negative)),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var i=0;i<t.length;i++)this.words[i]=this.words[i]&e.words[i];return this.length=t.length,this.strip()},o.prototype.iand=function(e){return a(0==(this.negative|e.negative)),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,i;this.length>e.length?(t=this,i=e):(t=e,i=this);for(var n=0;n<i.length;n++)this.words[n]=t.words[n]^i.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this.strip()},o.prototype.ixor=function(e){return a(0==(this.negative|e.negative)),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){a("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),i=e%26;this._expand(t),i>0&&t--;for(var n=0;n<t;n++)this.words[n]=67108863&~this.words[n];return i>0&&(this.words[n]=~this.words[n]&67108863>>26-i),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){a("number"==typeof e&&e>=0);var i=e/26|0,n=e%26;return this._expand(i+1),this.words[i]=t?this.words[i]|1<<n:this.words[i]&~(1<<n),this.strip()},o.prototype.iadd=function(e){var t,i,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(i=this,n=e):(i=e,n=this);for(var a=0,r=0;r<n.length;r++)t=(0|i.words[r])+(0|n.words[r])+a,this.words[r]=67108863&t,a=t>>>26;for(;0!==a&&r<i.length;r++)t=(0|i.words[r])+a,this.words[r]=67108863&t,a=t>>>26;if(this.length=i.length,0!==a)this.words[this.length]=a,this.length++;else if(i!==this)for(;r<i.length;r++)this.words[r]=i.words[r];return this},o.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i,n,a=this.cmp(e);if(0===a)return this.negative=0,this.length=1,this.words[0]=0,this;a>0?(i=this,n=e):(i=e,n=this);for(var r=0,o=0;o<n.length;o++)r=(t=(0|i.words[o])-(0|n.words[o])+r)>>26,this.words[o]=67108863&t;for(;0!==r&&o<i.length;o++)r=(t=(0|i.words[o])+r)>>26,this.words[o]=67108863&t;if(0===r&&o<i.length&&i!==this)for(;o<i.length;o++)this.words[o]=i.words[o];return this.length=Math.max(this.length,o),i!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var p=function(e,t,i){var n,a,r,o=e.words,s=t.words,l=i.words,c=0,u=0|o[0],d=8191&u,f=u>>>13,h=0|o[1],p=8191&h,m=h>>>13,g=0|o[2],v=8191&g,b=g>>>13,y=0|o[3],w=8191&y,_=y>>>13,I=0|o[4],x=8191&I,S=I>>>13,T=0|o[5],C=8191&T,k=T>>>13,R=0|o[6],D=8191&R,L=R>>>13,O=0|o[7],$=8191&O,N=O>>>13,A=0|o[8],P=8191&A,E=A>>>13,M=0|o[9],F=8191&M,j=M>>>13,V=0|s[0],q=8191&V,z=V>>>13,B=0|s[1],U=8191&B,Q=B>>>13,H=0|s[2],G=8191&H,W=H>>>13,Y=0|s[3],K=8191&Y,Z=Y>>>13,X=0|s[4],J=8191&X,ee=X>>>13,te=0|s[5],ie=8191&te,ne=te>>>13,ae=0|s[6],re=8191&ae,oe=ae>>>13,se=0|s[7],le=8191&se,ce=se>>>13,ue=0|s[8],de=8191&ue,fe=ue>>>13,he=0|s[9],pe=8191&he,me=he>>>13;i.negative=e.negative^t.negative,i.length=19;var ge=(c+(n=Math.imul(d,q))|0)+((8191&(a=(a=Math.imul(d,z))+Math.imul(f,q)|0))<<13)|0;c=((r=Math.imul(f,z))+(a>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(p,q),a=(a=Math.imul(p,z))+Math.imul(m,q)|0,r=Math.imul(m,z);var ve=(c+(n=n+Math.imul(d,U)|0)|0)+((8191&(a=(a=a+Math.imul(d,Q)|0)+Math.imul(f,U)|0))<<13)|0;c=((r=r+Math.imul(f,Q)|0)+(a>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(v,q),a=(a=Math.imul(v,z))+Math.imul(b,q)|0,r=Math.imul(b,z),n=n+Math.imul(p,U)|0,a=(a=a+Math.imul(p,Q)|0)+Math.imul(m,U)|0,r=r+Math.imul(m,Q)|0;var be=(c+(n=n+Math.imul(d,G)|0)|0)+((8191&(a=(a=a+Math.imul(d,W)|0)+Math.imul(f,G)|0))<<13)|0;c=((r=r+Math.imul(f,W)|0)+(a>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(w,q),a=(a=Math.imul(w,z))+Math.imul(_,q)|0,r=Math.imul(_,z),n=n+Math.imul(v,U)|0,a=(a=a+Math.imul(v,Q)|0)+Math.imul(b,U)|0,r=r+Math.imul(b,Q)|0,n=n+Math.imul(p,G)|0,a=(a=a+Math.imul(p,W)|0)+Math.imul(m,G)|0,r=r+Math.imul(m,W)|0;var ye=(c+(n=n+Math.imul(d,K)|0)|0)+((8191&(a=(a=a+Math.imul(d,Z)|0)+Math.imul(f,K)|0))<<13)|0;c=((r=r+Math.imul(f,Z)|0)+(a>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(x,q),a=(a=Math.imul(x,z))+Math.imul(S,q)|0,r=Math.imul(S,z),n=n+Math.imul(w,U)|0,a=(a=a+Math.imul(w,Q)|0)+Math.imul(_,U)|0,r=r+Math.imul(_,Q)|0,n=n+Math.imul(v,G)|0,a=(a=a+Math.imul(v,W)|0)+Math.imul(b,G)|0,r=r+Math.imul(b,W)|0,n=n+Math.imul(p,K)|0,a=(a=a+Math.imul(p,Z)|0)+Math.imul(m,K)|0,r=r+Math.imul(m,Z)|0;var we=(c+(n=n+Math.imul(d,J)|0)|0)+((8191&(a=(a=a+Math.imul(d,ee)|0)+Math.imul(f,J)|0))<<13)|0;c=((r=r+Math.imul(f,ee)|0)+(a>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(C,q),a=(a=Math.imul(C,z))+Math.imul(k,q)|0,r=Math.imul(k,z),n=n+Math.imul(x,U)|0,a=(a=a+Math.imul(x,Q)|0)+Math.imul(S,U)|0,r=r+Math.imul(S,Q)|0,n=n+Math.imul(w,G)|0,a=(a=a+Math.imul(w,W)|0)+Math.imul(_,G)|0,r=r+Math.imul(_,W)|0,n=n+Math.imul(v,K)|0,a=(a=a+Math.imul(v,Z)|0)+Math.imul(b,K)|0,r=r+Math.imul(b,Z)|0,n=n+Math.imul(p,J)|0,a=(a=a+Math.imul(p,ee)|0)+Math.imul(m,J)|0,r=r+Math.imul(m,ee)|0;var _e=(c+(n=n+Math.imul(d,ie)|0)|0)+((8191&(a=(a=a+Math.imul(d,ne)|0)+Math.imul(f,ie)|0))<<13)|0;c=((r=r+Math.imul(f,ne)|0)+(a>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(D,q),a=(a=Math.imul(D,z))+Math.imul(L,q)|0,r=Math.imul(L,z),n=n+Math.imul(C,U)|0,a=(a=a+Math.imul(C,Q)|0)+Math.imul(k,U)|0,r=r+Math.imul(k,Q)|0,n=n+Math.imul(x,G)|0,a=(a=a+Math.imul(x,W)|0)+Math.imul(S,G)|0,r=r+Math.imul(S,W)|0,n=n+Math.imul(w,K)|0,a=(a=a+Math.imul(w,Z)|0)+Math.imul(_,K)|0,r=r+Math.imul(_,Z)|0,n=n+Math.imul(v,J)|0,a=(a=a+Math.imul(v,ee)|0)+Math.imul(b,J)|0,r=r+Math.imul(b,ee)|0,n=n+Math.imul(p,ie)|0,a=(a=a+Math.imul(p,ne)|0)+Math.imul(m,ie)|0,r=r+Math.imul(m,ne)|0;var Ie=(c+(n=n+Math.imul(d,re)|0)|0)+((8191&(a=(a=a+Math.imul(d,oe)|0)+Math.imul(f,re)|0))<<13)|0;c=((r=r+Math.imul(f,oe)|0)+(a>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul($,q),a=(a=Math.imul($,z))+Math.imul(N,q)|0,r=Math.imul(N,z),n=n+Math.imul(D,U)|0,a=(a=a+Math.imul(D,Q)|0)+Math.imul(L,U)|0,r=r+Math.imul(L,Q)|0,n=n+Math.imul(C,G)|0,a=(a=a+Math.imul(C,W)|0)+Math.imul(k,G)|0,r=r+Math.imul(k,W)|0,n=n+Math.imul(x,K)|0,a=(a=a+Math.imul(x,Z)|0)+Math.imul(S,K)|0,r=r+Math.imul(S,Z)|0,n=n+Math.imul(w,J)|0,a=(a=a+Math.imul(w,ee)|0)+Math.imul(_,J)|0,r=r+Math.imul(_,ee)|0,n=n+Math.imul(v,ie)|0,a=(a=a+Math.imul(v,ne)|0)+Math.imul(b,ie)|0,r=r+Math.imul(b,ne)|0,n=n+Math.imul(p,re)|0,a=(a=a+Math.imul(p,oe)|0)+Math.imul(m,re)|0,r=r+Math.imul(m,oe)|0;var xe=(c+(n=n+Math.imul(d,le)|0)|0)+((8191&(a=(a=a+Math.imul(d,ce)|0)+Math.imul(f,le)|0))<<13)|0;c=((r=r+Math.imul(f,ce)|0)+(a>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(P,q),a=(a=Math.imul(P,z))+Math.imul(E,q)|0,r=Math.imul(E,z),n=n+Math.imul($,U)|0,a=(a=a+Math.imul($,Q)|0)+Math.imul(N,U)|0,r=r+Math.imul(N,Q)|0,n=n+Math.imul(D,G)|0,a=(a=a+Math.imul(D,W)|0)+Math.imul(L,G)|0,r=r+Math.imul(L,W)|0,n=n+Math.imul(C,K)|0,a=(a=a+Math.imul(C,Z)|0)+Math.imul(k,K)|0,r=r+Math.imul(k,Z)|0,n=n+Math.imul(x,J)|0,a=(a=a+Math.imul(x,ee)|0)+Math.imul(S,J)|0,r=r+Math.imul(S,ee)|0,n=n+Math.imul(w,ie)|0,a=(a=a+Math.imul(w,ne)|0)+Math.imul(_,ie)|0,r=r+Math.imul(_,ne)|0,n=n+Math.imul(v,re)|0,a=(a=a+Math.imul(v,oe)|0)+Math.imul(b,re)|0,r=r+Math.imul(b,oe)|0,n=n+Math.imul(p,le)|0,a=(a=a+Math.imul(p,ce)|0)+Math.imul(m,le)|0,r=r+Math.imul(m,ce)|0;var Se=(c+(n=n+Math.imul(d,de)|0)|0)+((8191&(a=(a=a+Math.imul(d,fe)|0)+Math.imul(f,de)|0))<<13)|0;c=((r=r+Math.imul(f,fe)|0)+(a>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(F,q),a=(a=Math.imul(F,z))+Math.imul(j,q)|0,r=Math.imul(j,z),n=n+Math.imul(P,U)|0,a=(a=a+Math.imul(P,Q)|0)+Math.imul(E,U)|0,r=r+Math.imul(E,Q)|0,n=n+Math.imul($,G)|0,a=(a=a+Math.imul($,W)|0)+Math.imul(N,G)|0,r=r+Math.imul(N,W)|0,n=n+Math.imul(D,K)|0,a=(a=a+Math.imul(D,Z)|0)+Math.imul(L,K)|0,r=r+Math.imul(L,Z)|0,n=n+Math.imul(C,J)|0,a=(a=a+Math.imul(C,ee)|0)+Math.imul(k,J)|0,r=r+Math.imul(k,ee)|0,n=n+Math.imul(x,ie)|0,a=(a=a+Math.imul(x,ne)|0)+Math.imul(S,ie)|0,r=r+Math.imul(S,ne)|0,n=n+Math.imul(w,re)|0,a=(a=a+Math.imul(w,oe)|0)+Math.imul(_,re)|0,r=r+Math.imul(_,oe)|0,n=n+Math.imul(v,le)|0,a=(a=a+Math.imul(v,ce)|0)+Math.imul(b,le)|0,r=r+Math.imul(b,ce)|0,n=n+Math.imul(p,de)|0,a=(a=a+Math.imul(p,fe)|0)+Math.imul(m,de)|0,r=r+Math.imul(m,fe)|0;var Te=(c+(n=n+Math.imul(d,pe)|0)|0)+((8191&(a=(a=a+Math.imul(d,me)|0)+Math.imul(f,pe)|0))<<13)|0;c=((r=r+Math.imul(f,me)|0)+(a>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(F,U),a=(a=Math.imul(F,Q))+Math.imul(j,U)|0,r=Math.imul(j,Q),n=n+Math.imul(P,G)|0,a=(a=a+Math.imul(P,W)|0)+Math.imul(E,G)|0,r=r+Math.imul(E,W)|0,n=n+Math.imul($,K)|0,a=(a=a+Math.imul($,Z)|0)+Math.imul(N,K)|0,r=r+Math.imul(N,Z)|0,n=n+Math.imul(D,J)|0,a=(a=a+Math.imul(D,ee)|0)+Math.imul(L,J)|0,r=r+Math.imul(L,ee)|0,n=n+Math.imul(C,ie)|0,a=(a=a+Math.imul(C,ne)|0)+Math.imul(k,ie)|0,r=r+Math.imul(k,ne)|0,n=n+Math.imul(x,re)|0,a=(a=a+Math.imul(x,oe)|0)+Math.imul(S,re)|0,r=r+Math.imul(S,oe)|0,n=n+Math.imul(w,le)|0,a=(a=a+Math.imul(w,ce)|0)+Math.imul(_,le)|0,r=r+Math.imul(_,ce)|0,n=n+Math.imul(v,de)|0,a=(a=a+Math.imul(v,fe)|0)+Math.imul(b,de)|0,r=r+Math.imul(b,fe)|0;var Ce=(c+(n=n+Math.imul(p,pe)|0)|0)+((8191&(a=(a=a+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;c=((r=r+Math.imul(m,me)|0)+(a>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(F,G),a=(a=Math.imul(F,W))+Math.imul(j,G)|0,r=Math.imul(j,W),n=n+Math.imul(P,K)|0,a=(a=a+Math.imul(P,Z)|0)+Math.imul(E,K)|0,r=r+Math.imul(E,Z)|0,n=n+Math.imul($,J)|0,a=(a=a+Math.imul($,ee)|0)+Math.imul(N,J)|0,r=r+Math.imul(N,ee)|0,n=n+Math.imul(D,ie)|0,a=(a=a+Math.imul(D,ne)|0)+Math.imul(L,ie)|0,r=r+Math.imul(L,ne)|0,n=n+Math.imul(C,re)|0,a=(a=a+Math.imul(C,oe)|0)+Math.imul(k,re)|0,r=r+Math.imul(k,oe)|0,n=n+Math.imul(x,le)|0,a=(a=a+Math.imul(x,ce)|0)+Math.imul(S,le)|0,r=r+Math.imul(S,ce)|0,n=n+Math.imul(w,de)|0,a=(a=a+Math.imul(w,fe)|0)+Math.imul(_,de)|0,r=r+Math.imul(_,fe)|0;var ke=(c+(n=n+Math.imul(v,pe)|0)|0)+((8191&(a=(a=a+Math.imul(v,me)|0)+Math.imul(b,pe)|0))<<13)|0;c=((r=r+Math.imul(b,me)|0)+(a>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(F,K),a=(a=Math.imul(F,Z))+Math.imul(j,K)|0,r=Math.imul(j,Z),n=n+Math.imul(P,J)|0,a=(a=a+Math.imul(P,ee)|0)+Math.imul(E,J)|0,r=r+Math.imul(E,ee)|0,n=n+Math.imul($,ie)|0,a=(a=a+Math.imul($,ne)|0)+Math.imul(N,ie)|0,r=r+Math.imul(N,ne)|0,n=n+Math.imul(D,re)|0,a=(a=a+Math.imul(D,oe)|0)+Math.imul(L,re)|0,r=r+Math.imul(L,oe)|0,n=n+Math.imul(C,le)|0,a=(a=a+Math.imul(C,ce)|0)+Math.imul(k,le)|0,r=r+Math.imul(k,ce)|0,n=n+Math.imul(x,de)|0,a=(a=a+Math.imul(x,fe)|0)+Math.imul(S,de)|0,r=r+Math.imul(S,fe)|0;var Re=(c+(n=n+Math.imul(w,pe)|0)|0)+((8191&(a=(a=a+Math.imul(w,me)|0)+Math.imul(_,pe)|0))<<13)|0;c=((r=r+Math.imul(_,me)|0)+(a>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(F,J),a=(a=Math.imul(F,ee))+Math.imul(j,J)|0,r=Math.imul(j,ee),n=n+Math.imul(P,ie)|0,a=(a=a+Math.imul(P,ne)|0)+Math.imul(E,ie)|0,r=r+Math.imul(E,ne)|0,n=n+Math.imul($,re)|0,a=(a=a+Math.imul($,oe)|0)+Math.imul(N,re)|0,r=r+Math.imul(N,oe)|0,n=n+Math.imul(D,le)|0,a=(a=a+Math.imul(D,ce)|0)+Math.imul(L,le)|0,r=r+Math.imul(L,ce)|0,n=n+Math.imul(C,de)|0,a=(a=a+Math.imul(C,fe)|0)+Math.imul(k,de)|0,r=r+Math.imul(k,fe)|0;var De=(c+(n=n+Math.imul(x,pe)|0)|0)+((8191&(a=(a=a+Math.imul(x,me)|0)+Math.imul(S,pe)|0))<<13)|0;c=((r=r+Math.imul(S,me)|0)+(a>>>13)|0)+(De>>>26)|0,De&=67108863,n=Math.imul(F,ie),a=(a=Math.imul(F,ne))+Math.imul(j,ie)|0,r=Math.imul(j,ne),n=n+Math.imul(P,re)|0,a=(a=a+Math.imul(P,oe)|0)+Math.imul(E,re)|0,r=r+Math.imul(E,oe)|0,n=n+Math.imul($,le)|0,a=(a=a+Math.imul($,ce)|0)+Math.imul(N,le)|0,r=r+Math.imul(N,ce)|0,n=n+Math.imul(D,de)|0,a=(a=a+Math.imul(D,fe)|0)+Math.imul(L,de)|0,r=r+Math.imul(L,fe)|0;var Le=(c+(n=n+Math.imul(C,pe)|0)|0)+((8191&(a=(a=a+Math.imul(C,me)|0)+Math.imul(k,pe)|0))<<13)|0;c=((r=r+Math.imul(k,me)|0)+(a>>>13)|0)+(Le>>>26)|0,Le&=67108863,n=Math.imul(F,re),a=(a=Math.imul(F,oe))+Math.imul(j,re)|0,r=Math.imul(j,oe),n=n+Math.imul(P,le)|0,a=(a=a+Math.imul(P,ce)|0)+Math.imul(E,le)|0,r=r+Math.imul(E,ce)|0,n=n+Math.imul($,de)|0,a=(a=a+Math.imul($,fe)|0)+Math.imul(N,de)|0,r=r+Math.imul(N,fe)|0;var Oe=(c+(n=n+Math.imul(D,pe)|0)|0)+((8191&(a=(a=a+Math.imul(D,me)|0)+Math.imul(L,pe)|0))<<13)|0;c=((r=r+Math.imul(L,me)|0)+(a>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(F,le),a=(a=Math.imul(F,ce))+Math.imul(j,le)|0,r=Math.imul(j,ce),n=n+Math.imul(P,de)|0,a=(a=a+Math.imul(P,fe)|0)+Math.imul(E,de)|0,r=r+Math.imul(E,fe)|0;var $e=(c+(n=n+Math.imul($,pe)|0)|0)+((8191&(a=(a=a+Math.imul($,me)|0)+Math.imul(N,pe)|0))<<13)|0;c=((r=r+Math.imul(N,me)|0)+(a>>>13)|0)+($e>>>26)|0,$e&=67108863,n=Math.imul(F,de),a=(a=Math.imul(F,fe))+Math.imul(j,de)|0,r=Math.imul(j,fe);var Ne=(c+(n=n+Math.imul(P,pe)|0)|0)+((8191&(a=(a=a+Math.imul(P,me)|0)+Math.imul(E,pe)|0))<<13)|0;c=((r=r+Math.imul(E,me)|0)+(a>>>13)|0)+(Ne>>>26)|0,Ne&=67108863;var Ae=(c+(n=Math.imul(F,pe))|0)+((8191&(a=(a=Math.imul(F,me))+Math.imul(j,pe)|0))<<13)|0;return c=((r=Math.imul(j,me))+(a>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,l[0]=ge,l[1]=ve,l[2]=be,l[3]=ye,l[4]=we,l[5]=_e,l[6]=Ie,l[7]=xe,l[8]=Se,l[9]=Te,l[10]=Ce,l[11]=ke,l[12]=Re,l[13]=De,l[14]=Le,l[15]=Oe,l[16]=$e,l[17]=Ne,l[18]=Ae,0!==c&&(l[19]=c,i.length++),i};function m(e,t,i){return(new g).mulp(e,t,i)}function g(e,t){this.x=e,this.y=t}Math.imul||(p=h),o.prototype.mulTo=function(e,t){var i=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):i<63?h(this,e,t):i<1024?function(e,t,i){i.negative=t.negative^e.negative,i.length=e.length+t.length;for(var n=0,a=0,r=0;r<i.length-1;r++){var o=a;a=0;for(var s=67108863&n,l=Math.min(r,t.length-1),c=Math.max(0,r-e.length+1);c<=l;c++){var u=r-c,d=(0|e.words[u])*(0|t.words[c]),f=67108863&d;s=67108863&(f=f+s|0),a+=(o=(o=o+(d/67108864|0)|0)+(f>>>26)|0)>>>26,o&=67108863}i.words[r]=s,n=o,o=a}return 0!==n?i.words[r]=n:i.length--,i.strip()}(this,e,t):m(this,e,t)},g.prototype.makeRBT=function(e){for(var t=new Array(e),i=o.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,i,e);return t},g.prototype.revBin=function(e,t,i){if(0===e||e===i-1)return e;for(var n=0,a=0;a<t;a++)n|=(1&e)<<t-a-1,e>>=1;return n},g.prototype.permute=function(e,t,i,n,a,r){for(var o=0;o<r;o++)n[o]=t[e[o]],a[o]=i[e[o]]},g.prototype.transform=function(e,t,i,n,a,r){this.permute(r,e,t,i,n,a);for(var o=1;o<a;o<<=1)for(var s=o<<1,l=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),u=0;u<a;u+=s)for(var d=l,f=c,h=0;h<o;h++){var p=i[u+h],m=n[u+h],g=i[u+h+o],v=n[u+h+o],b=d*g-f*v;v=d*v+f*g,g=b,i[u+h]=p+g,n[u+h]=m+v,i[u+h+o]=p-g,n[u+h+o]=m-v,h!==s&&(b=l*d-c*f,f=l*f+c*d,d=b)}},g.prototype.guessLen13b=function(e,t){var i=1|Math.max(t,e),n=1&i,a=0;for(i=i/2|0;i;i>>>=1)a++;return 1<<a+1+n},g.prototype.conjugate=function(e,t,i){if(!(i<=1))for(var n=0;n<i/2;n++){var a=e[n];e[n]=e[i-n-1],e[i-n-1]=a,a=t[n],t[n]=-t[i-n-1],t[i-n-1]=-a}},g.prototype.normalize13b=function(e,t){for(var i=0,n=0;n<t/2;n++){var a=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+i;e[n]=67108863&a,i=a<67108864?0:a/67108864|0}return e},g.prototype.convert13b=function(e,t,i,n){for(var r=0,o=0;o<t;o++)r+=0|e[o],i[2*o]=8191&r,r>>>=13,i[2*o+1]=8191&r,r>>>=13;for(o=2*t;o<n;++o)i[o]=0;a(0===r),a(0==(-8192&r))},g.prototype.stub=function(e){for(var t=new Array(e),i=0;i<e;i++)t[i]=0;return t},g.prototype.mulp=function(e,t,i){var n=2*this.guessLen13b(e.length,t.length),a=this.makeRBT(n),r=this.stub(n),o=new Array(n),s=new Array(n),l=new Array(n),c=new Array(n),u=new Array(n),d=new Array(n),f=i.words;f.length=n,this.convert13b(e.words,e.length,o,n),this.convert13b(t.words,t.length,c,n),this.transform(o,r,s,l,n,a),this.transform(c,r,u,d,n,a);for(var h=0;h<n;h++){var p=s[h]*u[h]-l[h]*d[h];l[h]=s[h]*d[h]+l[h]*u[h],s[h]=p}return this.conjugate(s,l,n),this.transform(s,l,f,r,n,a),this.conjugate(f,r,n),this.normalize13b(f,n),i.negative=e.negative^t.negative,i.length=e.length+t.length,i.strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),m(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){a("number"==typeof e),a(e<67108864);for(var t=0,i=0;i<this.length;i++){var n=(0|this.words[i])*e,r=(67108863&n)+(67108863&t);t>>=26,t+=n/67108864|0,t+=r>>>26,this.words[i]=67108863&r}return 0!==t&&(this.words[i]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),i=0;i<t.length;i++){var n=i/26|0,a=i%26;t[i]=(e.words[n]&1<<a)>>>a}return t}(e);if(0===t.length)return new o(1);for(var i=this,n=0;n<t.length&&0===t[n];n++,i=i.sqr());if(++n<t.length)for(var a=i.sqr();n<t.length;n++,a=a.sqr())0!==t[n]&&(i=i.mul(a));return i},o.prototype.iushln=function(e){a("number"==typeof e&&e>=0);var t,i=e%26,n=(e-i)/26,r=67108863>>>26-i<<26-i;if(0!==i){var o=0;for(t=0;t<this.length;t++){var s=this.words[t]&r,l=(0|this.words[t])-s<<i;this.words[t]=l|o,o=s>>>26-i}o&&(this.words[t]=o,this.length++)}if(0!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t<n;t++)this.words[t]=0;this.length+=n}return this.strip()},o.prototype.ishln=function(e){return a(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,i){var n;a("number"==typeof e&&e>=0),n=t?(t-t%26)/26:0;var r=e%26,o=Math.min((e-r)/26,this.length),s=67108863^67108863>>>r<<r,l=i;if(n-=o,n=Math.max(0,n),l){for(var c=0;c<o;c++)l.words[c]=this.words[c];l.length=o}if(0===o);else if(this.length>o)for(this.length-=o,c=0;c<this.length;c++)this.words[c]=this.words[c+o];else this.words[0]=0,this.length=1;var u=0;for(c=this.length-1;c>=0&&(0!==u||c>=n);c--){var d=0|this.words[c];this.words[c]=u<<26-r|d>>>r,u=d&s}return l&&0!==u&&(l.words[l.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,i){return a(0===this.negative),this.iushrn(e,t,i)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){a("number"==typeof e&&e>=0);var t=e%26,i=(e-t)/26,n=1<<t;return!(this.length<=i)&&!!(this.words[i]&n)},o.prototype.imaskn=function(e){a("number"==typeof e&&e>=0);var t=e%26,i=(e-t)/26;if(a(0===this.negative,"imaskn works only with positive numbers"),this.length<=i)return this;if(0!==t&&i++,this.length=Math.min(i,this.length),0!==t){var n=67108863^67108863>>>t<<t;this.words[this.length-1]&=n}return this.strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return a("number"==typeof e),a(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},o.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(a("number"==typeof e),a(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,i){var n,r,o=e.length+i;this._expand(o);var s=0;for(n=0;n<e.length;n++){r=(0|this.words[n+i])+s;var l=(0|e.words[n])*t;s=((r-=67108863&l)>>26)-(l/67108864|0),this.words[n+i]=67108863&r}for(;n<this.length-i;n++)s=(r=(0|this.words[n+i])+s)>>26,this.words[n+i]=67108863&r;if(0===s)return this.strip();for(a(-1===s),s=0,n=0;n<this.length;n++)s=(r=-(0|this.words[n])+s)>>26,this.words[n]=67108863&r;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var i=(this.length,e.length),n=this.clone(),a=e,r=0|a.words[a.length-1];0!==(i=26-this._countBits(r))&&(a=a.ushln(i),n.iushln(i),r=0|a.words[a.length-1]);var s,l=n.length-a.length;if("mod"!==t){(s=new o(null)).length=l+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var u=n.clone()._ishlnsubmul(a,1,l);0===u.negative&&(n=u,s&&(s.words[l]=1));for(var d=l-1;d>=0;d--){var f=67108864*(0|n.words[a.length+d])+(0|n.words[a.length+d-1]);for(f=Math.min(f/r|0,67108863),n._ishlnsubmul(a,f,d);0!==n.negative;)f--,n.negative=0,n._ishlnsubmul(a,1,d),n.isZero()||(n.negative^=1);s&&(s.words[d]=f)}return s&&s.strip(),n.strip(),"div"!==t&&0!==i&&n.iushrn(i),{div:s||null,mod:n}},o.prototype.divmod=function(e,t,i){return a(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(n=s.div.neg()),"div"!==t&&(r=s.mod.neg(),i&&0!==r.negative&&r.iadd(e)),{div:n,mod:r}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(n=s.div.neg()),{div:n,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(r=s.mod.neg(),i&&0!==r.negative&&r.isub(e)),{div:s.div,mod:r}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var n,r,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var i=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),a=e.andln(1),r=i.cmp(n);return r<0||1===a&&0===r?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){a(e<=67108863);for(var t=(1<<26)%e,i=0,n=this.length-1;n>=0;n--)i=(t*i+(0|this.words[n]))%e;return i},o.prototype.idivn=function(e){a(e<=67108863);for(var t=0,i=this.length-1;i>=0;i--){var n=(0|this.words[i])+67108864*t;this.words[i]=n/e|0,t=n%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){a(0===e.negative),a(!e.isZero());var t=this,i=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new o(1),r=new o(0),s=new o(0),l=new o(1),c=0;t.isEven()&&i.isEven();)t.iushrn(1),i.iushrn(1),++c;for(var u=i.clone(),d=t.clone();!t.isZero();){for(var f=0,h=1;0==(t.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(n.isOdd()||r.isOdd())&&(n.iadd(u),r.isub(d)),n.iushrn(1),r.iushrn(1);for(var p=0,m=1;0==(i.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(i.iushrn(p);p-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(u),l.isub(d)),s.iushrn(1),l.iushrn(1);t.cmp(i)>=0?(t.isub(i),n.isub(s),r.isub(l)):(i.isub(t),s.isub(n),l.isub(r))}return{a:s,b:l,gcd:i.iushln(c)}},o.prototype._invmp=function(e){a(0===e.negative),a(!e.isZero());var t=this,i=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n,r=new o(1),s=new o(0),l=i.clone();t.cmpn(1)>0&&i.cmpn(1)>0;){for(var c=0,u=1;0==(t.words[0]&u)&&c<26;++c,u<<=1);if(c>0)for(t.iushrn(c);c-- >0;)r.isOdd()&&r.iadd(l),r.iushrn(1);for(var d=0,f=1;0==(i.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(i.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);t.cmp(i)>=0?(t.isub(i),r.isub(s)):(i.isub(t),s.isub(r))}return(n=0===t.cmpn(1)?r:s).cmpn(0)<0&&n.iadd(e),n},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),i=e.clone();t.negative=0,i.negative=0;for(var n=0;t.isEven()&&i.isEven();n++)t.iushrn(1),i.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;i.isEven();)i.iushrn(1);var a=t.cmp(i);if(a<0){var r=t;t=i,i=r}else if(0===a||0===i.cmpn(1))break;t.isub(i)}return i.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){a("number"==typeof e);var t=e%26,i=(e-t)/26,n=1<<t;if(this.length<=i)return this._expand(i+1),this.words[i]|=n,this;for(var r=n,o=i;0!==r&&o<this.length;o++){var s=0|this.words[o];r=(s+=r)>>>26,s&=67108863,this.words[o]=s}return 0!==r&&(this.words[o]=r,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,i=e<0;if(0!==this.negative&&!i)return-1;if(0===this.negative&&i)return 1;if(this.strip(),this.length>1)t=1;else{i&&(e=-e),a(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:n<e?-1:1}return 0!==this.negative?0|-t:t},o.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,i=this.length-1;i>=0;i--){var n=0|this.words[i],a=0|e.words[i];if(n!==a){n<a?t=-1:n>a&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new x(e)},o.prototype.toRed=function(e){return a(!this.red,"Already a number in reduction context"),a(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return a(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return a(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return a(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return a(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return a(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return a(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return a(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return a(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return a(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return a(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return a(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return a(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return a(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var v={k256:null,p224:null,p192:null,p25519:null};function b(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function I(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else a(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function S(e){x.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},b.prototype.ireduce=function(e){var t,i=e;do{this.split(i,this.tmp),t=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t<this.n?-1:i.ucmp(this.p);return 0===n?(i.words[0]=0,i.length=1):n>0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},b.prototype.split=function(e,t){e.iushrn(this.n,0,t)},b.prototype.imulK=function(e){return e.imul(this.k)},r(y,b),y.prototype.split=function(e,t){for(var i=Math.min(e.length,9),n=0;n<i;n++)t.words[n]=e.words[n];if(t.length=i,e.length<=9)return e.words[0]=0,void(e.length=1);var a=e.words[9];for(t.words[t.length++]=4194303&a,n=10;n<e.length;n++){var r=0|e.words[n];e.words[n-10]=(4194303&r)<<4|a>>>22,a=r}a>>>=22,e.words[n-10]=a,0===a&&e.length>10?e.length-=10:e.length-=9},y.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,i=0;i<e.length;i++){var n=0|e.words[i];t+=977*n,e.words[i]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},r(w,b),r(_,b),r(I,b),I.prototype.imulK=function(e){for(var t=0,i=0;i<e.length;i++){var n=19*(0|e.words[i])+t,a=67108863&n;n>>>=26,e.words[i]=a,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(v[e])return v[e];var t;if("k256"===e)t=new y;else if("p224"===e)t=new w;else if("p192"===e)t=new _;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new I}return v[e]=t,t},x.prototype._verify1=function(e){a(0===e.negative,"red works only with positives"),a(e.red,"red works only with red numbers")},x.prototype._verify2=function(e,t){a(0==(e.negative|t.negative),"red works only with positives"),a(e.red&&e.red===t.red,"red works only with red numbers")},x.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},x.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},x.prototype.add=function(e,t){this._verify2(e,t);var i=e.add(t);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},x.prototype.iadd=function(e,t){this._verify2(e,t);var i=e.iadd(t);return i.cmp(this.m)>=0&&i.isub(this.m),i},x.prototype.sub=function(e,t){this._verify2(e,t);var i=e.sub(t);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},x.prototype.isub=function(e,t){this._verify2(e,t);var i=e.isub(t);return i.cmpn(0)<0&&i.iadd(this.m),i},x.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},x.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},x.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},x.prototype.isqr=function(e){return this.imul(e,e.clone())},x.prototype.sqr=function(e){return this.mul(e,e)},x.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(a(t%2==1),3===t){var i=this.m.add(new o(1)).iushrn(2);return this.pow(e,i)}for(var n=this.m.subn(1),r=0;!n.isZero()&&0===n.andln(1);)r++,n.iushrn(1);a(!n.isZero());var s=new o(1).toRed(this),l=s.redNeg(),c=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new o(2*u*u).toRed(this);0!==this.pow(u,c).cmp(l);)u.redIAdd(l);for(var d=this.pow(u,n),f=this.pow(e,n.addn(1).iushrn(1)),h=this.pow(e,n),p=r;0!==h.cmp(s);){for(var m=h,g=0;0!==m.cmp(s);g++)m=m.redSqr();a(g<p);var v=this.pow(d,new o(1).iushln(p-g-1));f=f.redMul(v),d=v.redSqr(),h=h.redMul(d),p=g}return f},x.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},x.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var i=new Array(16);i[0]=new o(1).toRed(this),i[1]=e;for(var n=2;n<i.length;n++)i[n]=this.mul(i[n-1],e);var a=i[0],r=0,s=0,l=t.bitLength()%26;for(0===l&&(l=26),n=t.length-1;n>=0;n--){for(var c=t.words[n],u=l-1;u>=0;u--){var d=c>>u&1;a!==i[0]&&(a=this.sqr(a)),0!==d||0!==r?(r<<=1,r|=d,(4===++s||0===n&&0===u)&&(a=this.mul(a,i[r]),s=0,r=0)):s=0}l=26}return a},x.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},x.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new S(e)},r(S,x),S.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},S.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},S.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var i=e.imul(t),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=i.isub(n).iushrn(this.shift),r=a;return a.cmp(this.m)>=0?r=a.isub(this.m):a.cmpn(0)<0&&(r=a.iadd(this.m)),r._forceRed(this)},S.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var i=e.mul(t),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=i.isub(n).iushrn(this.shift),r=a;return a.cmp(this.m)>=0?r=a.isub(this.m):a.cmpn(0)<0&&(r=a.iadd(this.m)),r._forceRed(this)},S.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===t||t)},{buffer:185}],182:[function(e,t,i){"use strict";i.byteLength=function(e){var t=c(e),i=t[0],n=t[1];return 3*(i+n)/4-n},i.toByteArray=function(e){var t,i,n=c(e),o=n[0],s=n[1],l=new r(function(e,t,i){return 3*(t+i)/4-i}(0,o,s)),u=0,d=s>0?o-4:o;for(i=0;i<d;i+=4)t=a[e.charCodeAt(i)]<<18|a[e.charCodeAt(i+1)]<<12|a[e.charCodeAt(i+2)]<<6|a[e.charCodeAt(i+3)],l[u++]=t>>16&255,l[u++]=t>>8&255,l[u++]=255&t;return 2===s&&(t=a[e.charCodeAt(i)]<<2|a[e.charCodeAt(i+1)]>>4,l[u++]=255&t),1===s&&(t=a[e.charCodeAt(i)]<<10|a[e.charCodeAt(i+1)]<<4|a[e.charCodeAt(i+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t),l},i.fromByteArray=function(e){for(var t,i=e.length,a=i%3,r=[],o=0,s=i-a;o<s;o+=16383)r.push(u(e,o,o+16383>s?s:o+16383));return 1===a?(t=e[i-1],r.push(n[t>>2]+n[t<<4&63]+"==")):2===a&&(t=(e[i-2]<<8)+e[i-1],r.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),r.join("")};for(var n=[],a=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=o.length;s<l;++s)n[s]=o[s],a[o.charCodeAt(s)]=s;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=e.indexOf("=");return-1===i&&(i=t),[i,i===t?0:4-i%4]}function u(e,t,i){for(var a,r,o=[],s=t;s<i;s+=3)a=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),o.push(n[(r=a)>>18&63]+n[r>>12&63]+n[r>>6&63]+n[63&r]);return o.join("")}a["-".charCodeAt(0)]=62,a["_".charCodeAt(0)]=63},{}],183:[function(e,t,i){"use strict";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(t,i){function a(e,t){if(!e)throw new Error(t||"Assertion failed")}function r(e,t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e}function o(e,t,i){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(i=t,t=10),this._init(e||0,t||10,i||"be"))}var s;"object"===n(t)?t.exports=o:(void 0).BN=o,o.BN=o,o.wordSize=26;try{s=e("buffer").Buffer}catch(e){}function l(e,t,i){for(var n=0,r=Math.min(e.length,i),o=0,s=t;s<r;s++){var l,c=e.charCodeAt(s)-48;n<<=4,n|=l=c>=49&&c<=54?c-49+10:c>=17&&c<=22?c-17+10:c,o|=l}return a(!(240&o),"Invalid character in "+e),n}function c(e,t,i,n){for(var r=0,o=0,s=Math.min(e.length,i),l=t;l<s;l++){var c=e.charCodeAt(l)-48;r*=n,o=c>=49?c-49+10:c>=17?c-17+10:c,a(c>=0&&o<n,"Invalid character"),r+=o}return r}function u(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}if(o.isBN=function(e){return e instanceof o||null!==e&&"object"===n(e)&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,i){if("number"==typeof e)return this._initNumber(e,t,i);if("object"===n(e))return this._initArray(e,t,i);"hex"===t&&(t=16),a(t===(0|t)&&t>=2&&t<=36);var r=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&r++,16===t?this._parseHex(e,r):this._parseBase(e,t,r),"-"===e[0]&&(this.negative=1),this._strip(),"le"===i&&this._initArray(this.toArray(),t,i)},o.prototype._initNumber=function(e,t,i){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(a(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),t,i)},o.prototype._initArray=function(e,t,i){if(a("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,o,s=0;if("be"===i)for(n=e.length-1,r=0;n>=0;n-=3)o=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[r]|=o<<s&67108863,this.words[r+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,r++);else if("le"===i)for(n=0,r=0;n<e.length;n+=3)o=e[n]|e[n+1]<<8|e[n+2]<<16,this.words[r]|=o<<s&67108863,this.words[r+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,r++);return this._strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var n,a,r=0;for(i=e.length-6,n=0;i>=t;i-=6)a=l(e,i,i+6),this.words[n]|=a<<r&67108863,this.words[n+1]|=a>>>26-r&4194303,(r+=24)>=26&&(r-=26,n++);i+6!==t&&(a=l(e,t,i+6),this.words[n]|=a<<r&67108863,this.words[n+1]|=a>>>26-r&4194303),this._strip()},o.prototype._parseBase=function(e,t,i){this.words=[0],this.length=1;for(var n=0,a=1;a<=67108863;a*=t)n++;n--,a=a/t|0;for(var r=e.length-i,o=r%n,s=Math.min(r,r-o)+i,l=0,u=i;u<s;u+=n)l=c(e,u,u+n,t),this.imuln(a),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==o){var d=1;for(l=c(e,u,e.length,t),u=0;u<o;u++)d*=t;this.imuln(d),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}},o.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},o.prototype._move=function(e){u(e,this)},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=d}catch(e){o.prototype.inspect=d}else o.prototype.inspect=d;function d(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function m(e,t,i){i.negative=t.negative^e.negative;var n=e.length+t.length|0;i.length=n,n=n-1|0;var a=0|e.words[0],r=0|t.words[0],o=a*r,s=67108863&o,l=o/67108864|0;i.words[0]=s;for(var c=1;c<n;c++){for(var u=l>>>26,d=67108863&l,f=Math.min(c,t.length-1),h=Math.max(0,c-e.length+1);h<=f;h++){var p=c-h|0;u+=(o=(a=0|e.words[p])*(r=0|t.words[h])+d)/67108864|0,d=67108863&o}i.words[c]=0|d,l=0|u}return 0!==l?i.words[c]=0|l:i.length--,i._strip()}o.prototype.toString=function(e,t){var i;if(t=0|t||1,16===(e=e||10)||"hex"===e){i="";for(var n=0,r=0,o=0;o<this.length;o++){var s=this.words[o],l=(16777215&(s<<n|r)).toString(16);i=0!==(r=s>>>24-n&16777215)||o!==this.length-1?f[6-l.length]+l+i:l+i,(n+=2)>=26&&(n-=26,o--)}for(0!==r&&(i=r.toString(16)+i);i.length%t!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(e===(0|e)&&e>=2&&e<=36){var c=h[e],u=p[e];i="";var d=this.clone();for(d.negative=0;!d.isZero();){var m=d.modrn(u).toString(e);i=(d=d.idivn(u)).isZero()?m+i:f[c-m.length]+m+i}for(this.isZero()&&(i="0"+i);i.length%t!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}a(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&a(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16,2)},s&&(o.prototype.toBuffer=function(e,t){return this.toArrayLike(s,e,t)}),o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,i){this._strip();var n=this.byteLength(),r=i||Math.max(1,n);a(n<=r,"byte array longer than desired length"),a(r>0,"Requested array length <= 0");var o=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,r);return this["_toArrayLike"+("le"===t?"LE":"BE")](o,n),o},o.prototype._toArrayLikeLE=function(e,t){for(var i=0,n=0,a=0,r=0;a<this.length;a++){var o=this.words[a]<<r|n;e[i++]=255&o,i<e.length&&(e[i++]=o>>8&255),i<e.length&&(e[i++]=o>>16&255),6===r?(i<e.length&&(e[i++]=o>>24&255),n=0,r=0):(n=o>>>24,r+=2)}if(i<e.length)for(e[i++]=n;i<e.length;)e[i++]=0},o.prototype._toArrayLikeBE=function(e,t){for(var i=e.length-1,n=0,a=0,r=0;a<this.length;a++){var o=this.words[a]<<r|n;e[i--]=255&o,i>=0&&(e[i--]=o>>8&255),i>=0&&(e[i--]=o>>16&255),6===r?(i>=0&&(e[i--]=o>>24&255),n=0,r=0):(n=o>>>24,r+=2)}if(i>=0)for(e[i--]=n;i>=0;)e[i--]=0},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,i=0;return t>=4096&&(i+=13,t>>>=13),t>=64&&(i+=7,t>>>=7),t>=8&&(i+=4,t>>>=4),t>=2&&(i+=2,t>>>=2),i+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,i=0;return 0==(8191&t)&&(i+=13,t>>>=13),0==(127&t)&&(i+=7,t>>>=7),0==(15&t)&&(i+=4,t>>>=4),0==(3&t)&&(i+=2,t>>>=2),0==(1&t)&&i++,i},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var i=this._zeroBits(this.words[t]);if(e+=i,26!==i)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this._strip()},o.prototype.ior=function(e){return a(0==(this.negative|e.negative)),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var i=0;i<t.length;i++)this.words[i]=this.words[i]&e.words[i];return this.length=t.length,this._strip()},o.prototype.iand=function(e){return a(0==(this.negative|e.negative)),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,i;this.length>e.length?(t=this,i=e):(t=e,i=this);for(var n=0;n<i.length;n++)this.words[n]=t.words[n]^i.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this._strip()},o.prototype.ixor=function(e){return a(0==(this.negative|e.negative)),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){a("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),i=e%26;this._expand(t),i>0&&t--;for(var n=0;n<t;n++)this.words[n]=67108863&~this.words[n];return i>0&&(this.words[n]=~this.words[n]&67108863>>26-i),this._strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){a("number"==typeof e&&e>=0);var i=e/26|0,n=e%26;return this._expand(i+1),this.words[i]=t?this.words[i]|1<<n:this.words[i]&~(1<<n),this._strip()},o.prototype.iadd=function(e){var t,i,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(i=this,n=e):(i=e,n=this);for(var a=0,r=0;r<n.length;r++)t=(0|i.words[r])+(0|n.words[r])+a,this.words[r]=67108863&t,a=t>>>26;for(;0!==a&&r<i.length;r++)t=(0|i.words[r])+a,this.words[r]=67108863&t,a=t>>>26;if(this.length=i.length,0!==a)this.words[this.length]=a,this.length++;else if(i!==this)for(;r<i.length;r++)this.words[r]=i.words[r];return this},o.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i,n,a=this.cmp(e);if(0===a)return this.negative=0,this.length=1,this.words[0]=0,this;a>0?(i=this,n=e):(i=e,n=this);for(var r=0,o=0;o<n.length;o++)r=(t=(0|i.words[o])-(0|n.words[o])+r)>>26,this.words[o]=67108863&t;for(;0!==r&&o<i.length;o++)r=(t=(0|i.words[o])+r)>>26,this.words[o]=67108863&t;if(0===r&&o<i.length&&i!==this)for(;o<i.length;o++)this.words[o]=i.words[o];return this.length=Math.max(this.length,o),i!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var g=function(e,t,i){var n,a,r,o=e.words,s=t.words,l=i.words,c=0,u=0|o[0],d=8191&u,f=u>>>13,h=0|o[1],p=8191&h,m=h>>>13,g=0|o[2],v=8191&g,b=g>>>13,y=0|o[3],w=8191&y,_=y>>>13,I=0|o[4],x=8191&I,S=I>>>13,T=0|o[5],C=8191&T,k=T>>>13,R=0|o[6],D=8191&R,L=R>>>13,O=0|o[7],$=8191&O,N=O>>>13,A=0|o[8],P=8191&A,E=A>>>13,M=0|o[9],F=8191&M,j=M>>>13,V=0|s[0],q=8191&V,z=V>>>13,B=0|s[1],U=8191&B,Q=B>>>13,H=0|s[2],G=8191&H,W=H>>>13,Y=0|s[3],K=8191&Y,Z=Y>>>13,X=0|s[4],J=8191&X,ee=X>>>13,te=0|s[5],ie=8191&te,ne=te>>>13,ae=0|s[6],re=8191&ae,oe=ae>>>13,se=0|s[7],le=8191&se,ce=se>>>13,ue=0|s[8],de=8191&ue,fe=ue>>>13,he=0|s[9],pe=8191&he,me=he>>>13;i.negative=e.negative^t.negative,i.length=19;var ge=(c+(n=Math.imul(d,q))|0)+((8191&(a=(a=Math.imul(d,z))+Math.imul(f,q)|0))<<13)|0;c=((r=Math.imul(f,z))+(a>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(p,q),a=(a=Math.imul(p,z))+Math.imul(m,q)|0,r=Math.imul(m,z);var ve=(c+(n=n+Math.imul(d,U)|0)|0)+((8191&(a=(a=a+Math.imul(d,Q)|0)+Math.imul(f,U)|0))<<13)|0;c=((r=r+Math.imul(f,Q)|0)+(a>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(v,q),a=(a=Math.imul(v,z))+Math.imul(b,q)|0,r=Math.imul(b,z),n=n+Math.imul(p,U)|0,a=(a=a+Math.imul(p,Q)|0)+Math.imul(m,U)|0,r=r+Math.imul(m,Q)|0;var be=(c+(n=n+Math.imul(d,G)|0)|0)+((8191&(a=(a=a+Math.imul(d,W)|0)+Math.imul(f,G)|0))<<13)|0;c=((r=r+Math.imul(f,W)|0)+(a>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(w,q),a=(a=Math.imul(w,z))+Math.imul(_,q)|0,r=Math.imul(_,z),n=n+Math.imul(v,U)|0,a=(a=a+Math.imul(v,Q)|0)+Math.imul(b,U)|0,r=r+Math.imul(b,Q)|0,n=n+Math.imul(p,G)|0,a=(a=a+Math.imul(p,W)|0)+Math.imul(m,G)|0,r=r+Math.imul(m,W)|0;var ye=(c+(n=n+Math.imul(d,K)|0)|0)+((8191&(a=(a=a+Math.imul(d,Z)|0)+Math.imul(f,K)|0))<<13)|0;c=((r=r+Math.imul(f,Z)|0)+(a>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(x,q),a=(a=Math.imul(x,z))+Math.imul(S,q)|0,r=Math.imul(S,z),n=n+Math.imul(w,U)|0,a=(a=a+Math.imul(w,Q)|0)+Math.imul(_,U)|0,r=r+Math.imul(_,Q)|0,n=n+Math.imul(v,G)|0,a=(a=a+Math.imul(v,W)|0)+Math.imul(b,G)|0,r=r+Math.imul(b,W)|0,n=n+Math.imul(p,K)|0,a=(a=a+Math.imul(p,Z)|0)+Math.imul(m,K)|0,r=r+Math.imul(m,Z)|0;var we=(c+(n=n+Math.imul(d,J)|0)|0)+((8191&(a=(a=a+Math.imul(d,ee)|0)+Math.imul(f,J)|0))<<13)|0;c=((r=r+Math.imul(f,ee)|0)+(a>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(C,q),a=(a=Math.imul(C,z))+Math.imul(k,q)|0,r=Math.imul(k,z),n=n+Math.imul(x,U)|0,a=(a=a+Math.imul(x,Q)|0)+Math.imul(S,U)|0,r=r+Math.imul(S,Q)|0,n=n+Math.imul(w,G)|0,a=(a=a+Math.imul(w,W)|0)+Math.imul(_,G)|0,r=r+Math.imul(_,W)|0,n=n+Math.imul(v,K)|0,a=(a=a+Math.imul(v,Z)|0)+Math.imul(b,K)|0,r=r+Math.imul(b,Z)|0,n=n+Math.imul(p,J)|0,a=(a=a+Math.imul(p,ee)|0)+Math.imul(m,J)|0,r=r+Math.imul(m,ee)|0;var _e=(c+(n=n+Math.imul(d,ie)|0)|0)+((8191&(a=(a=a+Math.imul(d,ne)|0)+Math.imul(f,ie)|0))<<13)|0;c=((r=r+Math.imul(f,ne)|0)+(a>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(D,q),a=(a=Math.imul(D,z))+Math.imul(L,q)|0,r=Math.imul(L,z),n=n+Math.imul(C,U)|0,a=(a=a+Math.imul(C,Q)|0)+Math.imul(k,U)|0,r=r+Math.imul(k,Q)|0,n=n+Math.imul(x,G)|0,a=(a=a+Math.imul(x,W)|0)+Math.imul(S,G)|0,r=r+Math.imul(S,W)|0,n=n+Math.imul(w,K)|0,a=(a=a+Math.imul(w,Z)|0)+Math.imul(_,K)|0,r=r+Math.imul(_,Z)|0,n=n+Math.imul(v,J)|0,a=(a=a+Math.imul(v,ee)|0)+Math.imul(b,J)|0,r=r+Math.imul(b,ee)|0,n=n+Math.imul(p,ie)|0,a=(a=a+Math.imul(p,ne)|0)+Math.imul(m,ie)|0,r=r+Math.imul(m,ne)|0;var Ie=(c+(n=n+Math.imul(d,re)|0)|0)+((8191&(a=(a=a+Math.imul(d,oe)|0)+Math.imul(f,re)|0))<<13)|0;c=((r=r+Math.imul(f,oe)|0)+(a>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul($,q),a=(a=Math.imul($,z))+Math.imul(N,q)|0,r=Math.imul(N,z),n=n+Math.imul(D,U)|0,a=(a=a+Math.imul(D,Q)|0)+Math.imul(L,U)|0,r=r+Math.imul(L,Q)|0,n=n+Math.imul(C,G)|0,a=(a=a+Math.imul(C,W)|0)+Math.imul(k,G)|0,r=r+Math.imul(k,W)|0,n=n+Math.imul(x,K)|0,a=(a=a+Math.imul(x,Z)|0)+Math.imul(S,K)|0,r=r+Math.imul(S,Z)|0,n=n+Math.imul(w,J)|0,a=(a=a+Math.imul(w,ee)|0)+Math.imul(_,J)|0,r=r+Math.imul(_,ee)|0,n=n+Math.imul(v,ie)|0,a=(a=a+Math.imul(v,ne)|0)+Math.imul(b,ie)|0,r=r+Math.imul(b,ne)|0,n=n+Math.imul(p,re)|0,a=(a=a+Math.imul(p,oe)|0)+Math.imul(m,re)|0,r=r+Math.imul(m,oe)|0;var xe=(c+(n=n+Math.imul(d,le)|0)|0)+((8191&(a=(a=a+Math.imul(d,ce)|0)+Math.imul(f,le)|0))<<13)|0;c=((r=r+Math.imul(f,ce)|0)+(a>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(P,q),a=(a=Math.imul(P,z))+Math.imul(E,q)|0,r=Math.imul(E,z),n=n+Math.imul($,U)|0,a=(a=a+Math.imul($,Q)|0)+Math.imul(N,U)|0,r=r+Math.imul(N,Q)|0,n=n+Math.imul(D,G)|0,a=(a=a+Math.imul(D,W)|0)+Math.imul(L,G)|0,r=r+Math.imul(L,W)|0,n=n+Math.imul(C,K)|0,a=(a=a+Math.imul(C,Z)|0)+Math.imul(k,K)|0,r=r+Math.imul(k,Z)|0,n=n+Math.imul(x,J)|0,a=(a=a+Math.imul(x,ee)|0)+Math.imul(S,J)|0,r=r+Math.imul(S,ee)|0,n=n+Math.imul(w,ie)|0,a=(a=a+Math.imul(w,ne)|0)+Math.imul(_,ie)|0,r=r+Math.imul(_,ne)|0,n=n+Math.imul(v,re)|0,a=(a=a+Math.imul(v,oe)|0)+Math.imul(b,re)|0,r=r+Math.imul(b,oe)|0,n=n+Math.imul(p,le)|0,a=(a=a+Math.imul(p,ce)|0)+Math.imul(m,le)|0,r=r+Math.imul(m,ce)|0;var Se=(c+(n=n+Math.imul(d,de)|0)|0)+((8191&(a=(a=a+Math.imul(d,fe)|0)+Math.imul(f,de)|0))<<13)|0;c=((r=r+Math.imul(f,fe)|0)+(a>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(F,q),a=(a=Math.imul(F,z))+Math.imul(j,q)|0,r=Math.imul(j,z),n=n+Math.imul(P,U)|0,a=(a=a+Math.imul(P,Q)|0)+Math.imul(E,U)|0,r=r+Math.imul(E,Q)|0,n=n+Math.imul($,G)|0,a=(a=a+Math.imul($,W)|0)+Math.imul(N,G)|0,r=r+Math.imul(N,W)|0,n=n+Math.imul(D,K)|0,a=(a=a+Math.imul(D,Z)|0)+Math.imul(L,K)|0,r=r+Math.imul(L,Z)|0,n=n+Math.imul(C,J)|0,a=(a=a+Math.imul(C,ee)|0)+Math.imul(k,J)|0,r=r+Math.imul(k,ee)|0,n=n+Math.imul(x,ie)|0,a=(a=a+Math.imul(x,ne)|0)+Math.imul(S,ie)|0,r=r+Math.imul(S,ne)|0,n=n+Math.imul(w,re)|0,a=(a=a+Math.imul(w,oe)|0)+Math.imul(_,re)|0,r=r+Math.imul(_,oe)|0,n=n+Math.imul(v,le)|0,a=(a=a+Math.imul(v,ce)|0)+Math.imul(b,le)|0,r=r+Math.imul(b,ce)|0,n=n+Math.imul(p,de)|0,a=(a=a+Math.imul(p,fe)|0)+Math.imul(m,de)|0,r=r+Math.imul(m,fe)|0;var Te=(c+(n=n+Math.imul(d,pe)|0)|0)+((8191&(a=(a=a+Math.imul(d,me)|0)+Math.imul(f,pe)|0))<<13)|0;c=((r=r+Math.imul(f,me)|0)+(a>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(F,U),a=(a=Math.imul(F,Q))+Math.imul(j,U)|0,r=Math.imul(j,Q),n=n+Math.imul(P,G)|0,a=(a=a+Math.imul(P,W)|0)+Math.imul(E,G)|0,r=r+Math.imul(E,W)|0,n=n+Math.imul($,K)|0,a=(a=a+Math.imul($,Z)|0)+Math.imul(N,K)|0,r=r+Math.imul(N,Z)|0,n=n+Math.imul(D,J)|0,a=(a=a+Math.imul(D,ee)|0)+Math.imul(L,J)|0,r=r+Math.imul(L,ee)|0,n=n+Math.imul(C,ie)|0,a=(a=a+Math.imul(C,ne)|0)+Math.imul(k,ie)|0,r=r+Math.imul(k,ne)|0,n=n+Math.imul(x,re)|0,a=(a=a+Math.imul(x,oe)|0)+Math.imul(S,re)|0,r=r+Math.imul(S,oe)|0,n=n+Math.imul(w,le)|0,a=(a=a+Math.imul(w,ce)|0)+Math.imul(_,le)|0,r=r+Math.imul(_,ce)|0,n=n+Math.imul(v,de)|0,a=(a=a+Math.imul(v,fe)|0)+Math.imul(b,de)|0,r=r+Math.imul(b,fe)|0;var Ce=(c+(n=n+Math.imul(p,pe)|0)|0)+((8191&(a=(a=a+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;c=((r=r+Math.imul(m,me)|0)+(a>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(F,G),a=(a=Math.imul(F,W))+Math.imul(j,G)|0,r=Math.imul(j,W),n=n+Math.imul(P,K)|0,a=(a=a+Math.imul(P,Z)|0)+Math.imul(E,K)|0,r=r+Math.imul(E,Z)|0,n=n+Math.imul($,J)|0,a=(a=a+Math.imul($,ee)|0)+Math.imul(N,J)|0,r=r+Math.imul(N,ee)|0,n=n+Math.imul(D,ie)|0,a=(a=a+Math.imul(D,ne)|0)+Math.imul(L,ie)|0,r=r+Math.imul(L,ne)|0,n=n+Math.imul(C,re)|0,a=(a=a+Math.imul(C,oe)|0)+Math.imul(k,re)|0,r=r+Math.imul(k,oe)|0,n=n+Math.imul(x,le)|0,a=(a=a+Math.imul(x,ce)|0)+Math.imul(S,le)|0,r=r+Math.imul(S,ce)|0,n=n+Math.imul(w,de)|0,a=(a=a+Math.imul(w,fe)|0)+Math.imul(_,de)|0,r=r+Math.imul(_,fe)|0;var ke=(c+(n=n+Math.imul(v,pe)|0)|0)+((8191&(a=(a=a+Math.imul(v,me)|0)+Math.imul(b,pe)|0))<<13)|0;c=((r=r+Math.imul(b,me)|0)+(a>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(F,K),a=(a=Math.imul(F,Z))+Math.imul(j,K)|0,r=Math.imul(j,Z),n=n+Math.imul(P,J)|0,a=(a=a+Math.imul(P,ee)|0)+Math.imul(E,J)|0,r=r+Math.imul(E,ee)|0,n=n+Math.imul($,ie)|0,a=(a=a+Math.imul($,ne)|0)+Math.imul(N,ie)|0,r=r+Math.imul(N,ne)|0,n=n+Math.imul(D,re)|0,a=(a=a+Math.imul(D,oe)|0)+Math.imul(L,re)|0,r=r+Math.imul(L,oe)|0,n=n+Math.imul(C,le)|0,a=(a=a+Math.imul(C,ce)|0)+Math.imul(k,le)|0,r=r+Math.imul(k,ce)|0,n=n+Math.imul(x,de)|0,a=(a=a+Math.imul(x,fe)|0)+Math.imul(S,de)|0,r=r+Math.imul(S,fe)|0;var Re=(c+(n=n+Math.imul(w,pe)|0)|0)+((8191&(a=(a=a+Math.imul(w,me)|0)+Math.imul(_,pe)|0))<<13)|0;c=((r=r+Math.imul(_,me)|0)+(a>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(F,J),a=(a=Math.imul(F,ee))+Math.imul(j,J)|0,r=Math.imul(j,ee),n=n+Math.imul(P,ie)|0,a=(a=a+Math.imul(P,ne)|0)+Math.imul(E,ie)|0,r=r+Math.imul(E,ne)|0,n=n+Math.imul($,re)|0,a=(a=a+Math.imul($,oe)|0)+Math.imul(N,re)|0,r=r+Math.imul(N,oe)|0,n=n+Math.imul(D,le)|0,a=(a=a+Math.imul(D,ce)|0)+Math.imul(L,le)|0,r=r+Math.imul(L,ce)|0,n=n+Math.imul(C,de)|0,a=(a=a+Math.imul(C,fe)|0)+Math.imul(k,de)|0,r=r+Math.imul(k,fe)|0;var De=(c+(n=n+Math.imul(x,pe)|0)|0)+((8191&(a=(a=a+Math.imul(x,me)|0)+Math.imul(S,pe)|0))<<13)|0;c=((r=r+Math.imul(S,me)|0)+(a>>>13)|0)+(De>>>26)|0,De&=67108863,n=Math.imul(F,ie),a=(a=Math.imul(F,ne))+Math.imul(j,ie)|0,r=Math.imul(j,ne),n=n+Math.imul(P,re)|0,a=(a=a+Math.imul(P,oe)|0)+Math.imul(E,re)|0,r=r+Math.imul(E,oe)|0,n=n+Math.imul($,le)|0,a=(a=a+Math.imul($,ce)|0)+Math.imul(N,le)|0,r=r+Math.imul(N,ce)|0,n=n+Math.imul(D,de)|0,a=(a=a+Math.imul(D,fe)|0)+Math.imul(L,de)|0,r=r+Math.imul(L,fe)|0;var Le=(c+(n=n+Math.imul(C,pe)|0)|0)+((8191&(a=(a=a+Math.imul(C,me)|0)+Math.imul(k,pe)|0))<<13)|0;c=((r=r+Math.imul(k,me)|0)+(a>>>13)|0)+(Le>>>26)|0,Le&=67108863,n=Math.imul(F,re),a=(a=Math.imul(F,oe))+Math.imul(j,re)|0,r=Math.imul(j,oe),n=n+Math.imul(P,le)|0,a=(a=a+Math.imul(P,ce)|0)+Math.imul(E,le)|0,r=r+Math.imul(E,ce)|0,n=n+Math.imul($,de)|0,a=(a=a+Math.imul($,fe)|0)+Math.imul(N,de)|0,r=r+Math.imul(N,fe)|0;var Oe=(c+(n=n+Math.imul(D,pe)|0)|0)+((8191&(a=(a=a+Math.imul(D,me)|0)+Math.imul(L,pe)|0))<<13)|0;c=((r=r+Math.imul(L,me)|0)+(a>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(F,le),a=(a=Math.imul(F,ce))+Math.imul(j,le)|0,r=Math.imul(j,ce),n=n+Math.imul(P,de)|0,a=(a=a+Math.imul(P,fe)|0)+Math.imul(E,de)|0,r=r+Math.imul(E,fe)|0;var $e=(c+(n=n+Math.imul($,pe)|0)|0)+((8191&(a=(a=a+Math.imul($,me)|0)+Math.imul(N,pe)|0))<<13)|0;c=((r=r+Math.imul(N,me)|0)+(a>>>13)|0)+($e>>>26)|0,$e&=67108863,n=Math.imul(F,de),a=(a=Math.imul(F,fe))+Math.imul(j,de)|0,r=Math.imul(j,fe);var Ne=(c+(n=n+Math.imul(P,pe)|0)|0)+((8191&(a=(a=a+Math.imul(P,me)|0)+Math.imul(E,pe)|0))<<13)|0;c=((r=r+Math.imul(E,me)|0)+(a>>>13)|0)+(Ne>>>26)|0,Ne&=67108863;var Ae=(c+(n=Math.imul(F,pe))|0)+((8191&(a=(a=Math.imul(F,me))+Math.imul(j,pe)|0))<<13)|0;return c=((r=Math.imul(j,me))+(a>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,l[0]=ge,l[1]=ve,l[2]=be,l[3]=ye,l[4]=we,l[5]=_e,l[6]=Ie,l[7]=xe,l[8]=Se,l[9]=Te,l[10]=Ce,l[11]=ke,l[12]=Re,l[13]=De,l[14]=Le,l[15]=Oe,l[16]=$e,l[17]=Ne,l[18]=Ae,0!==c&&(l[19]=c,i.length++),i};function v(e,t,i){i.negative=t.negative^e.negative,i.length=e.length+t.length;for(var n=0,a=0,r=0;r<i.length-1;r++){var o=a;a=0;for(var s=67108863&n,l=Math.min(r,t.length-1),c=Math.max(0,r-e.length+1);c<=l;c++){var u=r-c,d=(0|e.words[u])*(0|t.words[c]),f=67108863&d;s=67108863&(f=f+s|0),a+=(o=(o=o+(d/67108864|0)|0)+(f>>>26)|0)>>>26,o&=67108863}i.words[r]=s,n=o,o=a}return 0!==n?i.words[r]=n:i.length--,i._strip()}function b(e,t,i){return v(e,t,i)}function y(e,t){this.x=e,this.y=t}Math.imul||(g=m),o.prototype.mulTo=function(e,t){var i=this.length+e.length;return 10===this.length&&10===e.length?g(this,e,t):i<63?m(this,e,t):i<1024?v(this,e,t):b(this,e,t)},y.prototype.makeRBT=function(e){for(var t=new Array(e),i=o.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,i,e);return t},y.prototype.revBin=function(e,t,i){if(0===e||e===i-1)return e;for(var n=0,a=0;a<t;a++)n|=(1&e)<<t-a-1,e>>=1;return n},y.prototype.permute=function(e,t,i,n,a,r){for(var o=0;o<r;o++)n[o]=t[e[o]],a[o]=i[e[o]]},y.prototype.transform=function(e,t,i,n,a,r){this.permute(r,e,t,i,n,a);for(var o=1;o<a;o<<=1)for(var s=o<<1,l=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),u=0;u<a;u+=s)for(var d=l,f=c,h=0;h<o;h++){var p=i[u+h],m=n[u+h],g=i[u+h+o],v=n[u+h+o],b=d*g-f*v;v=d*v+f*g,g=b,i[u+h]=p+g,n[u+h]=m+v,i[u+h+o]=p-g,n[u+h+o]=m-v,h!==s&&(b=l*d-c*f,f=l*f+c*d,d=b)}},y.prototype.guessLen13b=function(e,t){var i=1|Math.max(t,e),n=1&i,a=0;for(i=i/2|0;i;i>>>=1)a++;return 1<<a+1+n},y.prototype.conjugate=function(e,t,i){if(!(i<=1))for(var n=0;n<i/2;n++){var a=e[n];e[n]=e[i-n-1],e[i-n-1]=a,a=t[n],t[n]=-t[i-n-1],t[i-n-1]=-a}},y.prototype.normalize13b=function(e,t){for(var i=0,n=0;n<t/2;n++){var a=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+i;e[n]=67108863&a,i=a<67108864?0:a/67108864|0}return e},y.prototype.convert13b=function(e,t,i,n){for(var r=0,o=0;o<t;o++)r+=0|e[o],i[2*o]=8191&r,r>>>=13,i[2*o+1]=8191&r,r>>>=13;for(o=2*t;o<n;++o)i[o]=0;a(0===r),a(0==(-8192&r))},y.prototype.stub=function(e){for(var t=new Array(e),i=0;i<e;i++)t[i]=0;return t},y.prototype.mulp=function(e,t,i){var n=2*this.guessLen13b(e.length,t.length),a=this.makeRBT(n),r=this.stub(n),o=new Array(n),s=new Array(n),l=new Array(n),c=new Array(n),u=new Array(n),d=new Array(n),f=i.words;f.length=n,this.convert13b(e.words,e.length,o,n),this.convert13b(t.words,t.length,c,n),this.transform(o,r,s,l,n,a),this.transform(c,r,u,d,n,a);for(var h=0;h<n;h++){var p=s[h]*u[h]-l[h]*d[h];l[h]=s[h]*d[h]+l[h]*u[h],s[h]=p}return this.conjugate(s,l,n),this.transform(s,l,f,r,n,a),this.conjugate(f,r,n),this.normalize13b(f,n),i.negative=e.negative^t.negative,i.length=e.length+t.length,i._strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),b(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){var t=e<0;t&&(e=-e),a("number"==typeof e),a(e<67108864);for(var i=0,n=0;n<this.length;n++){var r=(0|this.words[n])*e,o=(67108863&r)+(67108863&i);i>>=26,i+=r/67108864|0,i+=o>>>26,this.words[n]=67108863&o}return 0!==i&&(this.words[n]=i,this.length++),t?this.ineg():this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),i=0;i<t.length;i++){var n=i/26|0,a=i%26;t[i]=e.words[n]>>>a&1}return t}(e);if(0===t.length)return new o(1);for(var i=this,n=0;n<t.length&&0===t[n];n++,i=i.sqr());if(++n<t.length)for(var a=i.sqr();n<t.length;n++,a=a.sqr())0!==t[n]&&(i=i.mul(a));return i},o.prototype.iushln=function(e){a("number"==typeof e&&e>=0);var t,i=e%26,n=(e-i)/26,r=67108863>>>26-i<<26-i;if(0!==i){var o=0;for(t=0;t<this.length;t++){var s=this.words[t]&r,l=(0|this.words[t])-s<<i;this.words[t]=l|o,o=s>>>26-i}o&&(this.words[t]=o,this.length++)}if(0!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t<n;t++)this.words[t]=0;this.length+=n}return this._strip()},o.prototype.ishln=function(e){return a(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,i){var n;a("number"==typeof e&&e>=0),n=t?(t-t%26)/26:0;var r=e%26,o=Math.min((e-r)/26,this.length),s=67108863^67108863>>>r<<r,l=i;if(n-=o,n=Math.max(0,n),l){for(var c=0;c<o;c++)l.words[c]=this.words[c];l.length=o}if(0===o);else if(this.length>o)for(this.length-=o,c=0;c<this.length;c++)this.words[c]=this.words[c+o];else this.words[0]=0,this.length=1;var u=0;for(c=this.length-1;c>=0&&(0!==u||c>=n);c--){var d=0|this.words[c];this.words[c]=u<<26-r|d>>>r,u=d&s}return l&&0!==u&&(l.words[l.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(e,t,i){return a(0===this.negative),this.iushrn(e,t,i)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){a("number"==typeof e&&e>=0);var t=e%26,i=(e-t)/26,n=1<<t;return!(this.length<=i)&&!!(this.words[i]&n)},o.prototype.imaskn=function(e){a("number"==typeof e&&e>=0);var t=e%26,i=(e-t)/26;if(a(0===this.negative,"imaskn works only with positive numbers"),this.length<=i)return this;if(0!==t&&i++,this.length=Math.min(i,this.length),0!==t){var n=67108863^67108863>>>t<<t;this.words[this.length-1]&=n}return this._strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return a("number"==typeof e),a(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<=e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},o.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(a("number"==typeof e),a(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this._strip()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,i){var n,r,o=e.length+i;this._expand(o);var s=0;for(n=0;n<e.length;n++){r=(0|this.words[n+i])+s;var l=(0|e.words[n])*t;s=((r-=67108863&l)>>26)-(l/67108864|0),this.words[n+i]=67108863&r}for(;n<this.length-i;n++)s=(r=(0|this.words[n+i])+s)>>26,this.words[n+i]=67108863&r;if(0===s)return this._strip();for(a(-1===s),s=0,n=0;n<this.length;n++)s=(r=-(0|this.words[n])+s)>>26,this.words[n]=67108863&r;return this.negative=1,this._strip()},o.prototype._wordDiv=function(e,t){var i=(this.length,e.length),n=this.clone(),a=e,r=0|a.words[a.length-1];0!==(i=26-this._countBits(r))&&(a=a.ushln(i),n.iushln(i),r=0|a.words[a.length-1]);var s,l=n.length-a.length;if("mod"!==t){(s=new o(null)).length=l+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var u=n.clone()._ishlnsubmul(a,1,l);0===u.negative&&(n=u,s&&(s.words[l]=1));for(var d=l-1;d>=0;d--){var f=67108864*(0|n.words[a.length+d])+(0|n.words[a.length+d-1]);for(f=Math.min(f/r|0,67108863),n._ishlnsubmul(a,f,d);0!==n.negative;)f--,n.negative=0,n._ishlnsubmul(a,1,d),n.isZero()||(n.negative^=1);s&&(s.words[d]=f)}return s&&s._strip(),n._strip(),"div"!==t&&0!==i&&n.iushrn(i),{div:s||null,mod:n}},o.prototype.divmod=function(e,t,i){return a(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(n=s.div.neg()),"div"!==t&&(r=s.mod.neg(),i&&0!==r.negative&&r.iadd(e)),{div:n,mod:r}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(n=s.div.neg()),{div:n,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(r=s.mod.neg(),i&&0!==r.negative&&r.isub(e)),{div:s.div,mod:r}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modrn(e.words[0]))}:this._wordDiv(e,t);var n,r,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var i=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),a=e.andln(1),r=i.cmp(n);return r<0||1===a&&0===r?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modrn=function(e){var t=e<0;t&&(e=-e),a(e<=67108863);for(var i=(1<<26)%e,n=0,r=this.length-1;r>=0;r--)n=(i*n+(0|this.words[r]))%e;return t?-n:n},o.prototype.modn=function(e){return this.modrn(e)},o.prototype.idivn=function(e){var t=e<0;t&&(e=-e),a(e<=67108863);for(var i=0,n=this.length-1;n>=0;n--){var r=(0|this.words[n])+67108864*i;this.words[n]=r/e|0,i=r%e}return this._strip(),t?this.ineg():this},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){a(0===e.negative),a(!e.isZero());var t=this,i=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new o(1),r=new o(0),s=new o(0),l=new o(1),c=0;t.isEven()&&i.isEven();)t.iushrn(1),i.iushrn(1),++c;for(var u=i.clone(),d=t.clone();!t.isZero();){for(var f=0,h=1;0==(t.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(n.isOdd()||r.isOdd())&&(n.iadd(u),r.isub(d)),n.iushrn(1),r.iushrn(1);for(var p=0,m=1;0==(i.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(i.iushrn(p);p-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(u),l.isub(d)),s.iushrn(1),l.iushrn(1);t.cmp(i)>=0?(t.isub(i),n.isub(s),r.isub(l)):(i.isub(t),s.isub(n),l.isub(r))}return{a:s,b:l,gcd:i.iushln(c)}},o.prototype._invmp=function(e){a(0===e.negative),a(!e.isZero());var t=this,i=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n,r=new o(1),s=new o(0),l=i.clone();t.cmpn(1)>0&&i.cmpn(1)>0;){for(var c=0,u=1;0==(t.words[0]&u)&&c<26;++c,u<<=1);if(c>0)for(t.iushrn(c);c-- >0;)r.isOdd()&&r.iadd(l),r.iushrn(1);for(var d=0,f=1;0==(i.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(i.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);t.cmp(i)>=0?(t.isub(i),r.isub(s)):(i.isub(t),s.isub(r))}return(n=0===t.cmpn(1)?r:s).cmpn(0)<0&&n.iadd(e),n},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),i=e.clone();t.negative=0,i.negative=0;for(var n=0;t.isEven()&&i.isEven();n++)t.iushrn(1),i.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;i.isEven();)i.iushrn(1);var a=t.cmp(i);if(a<0){var r=t;t=i,i=r}else if(0===a||0===i.cmpn(1))break;t.isub(i)}return i.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){a("number"==typeof e);var t=e%26,i=(e-t)/26,n=1<<t;if(this.length<=i)return this._expand(i+1),this.words[i]|=n,this;for(var r=n,o=i;0!==r&&o<this.length;o++){var s=0|this.words[o];r=(s+=r)>>>26,s&=67108863,this.words[o]=s}return 0!==r&&(this.words[o]=r,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,i=e<0;if(0!==this.negative&&!i)return-1;if(0===this.negative&&i)return 1;if(this._strip(),this.length>1)t=1;else{i&&(e=-e),a(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:n<e?-1:1}return 0!==this.negative?0|-t:t},o.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,i=this.length-1;i>=0;i--){var n=0|this.words[i],a=0|e.words[i];if(n!==a){n<a?t=-1:n>a&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new C(e)},o.prototype.toRed=function(e){return a(!this.red,"Already a number in reduction context"),a(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return a(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return a(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return a(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return a(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return a(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return a(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return a(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return a(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return a(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return a(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return a(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return a(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return a(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var w={k256:null,p224:null,p192:null,p25519:null};function _(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function I(){_.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function x(){_.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function S(){_.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function T(){_.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function C(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else a(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){C.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}_.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},_.prototype.ireduce=function(e){var t,i=e;do{this.split(i,this.tmp),t=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t<this.n?-1:i.ucmp(this.p);return 0===n?(i.words[0]=0,i.length=1):n>0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},_.prototype.split=function(e,t){e.iushrn(this.n,0,t)},_.prototype.imulK=function(e){return e.imul(this.k)},r(I,_),I.prototype.split=function(e,t){for(var i=Math.min(e.length,9),n=0;n<i;n++)t.words[n]=e.words[n];if(t.length=i,e.length<=9)return e.words[0]=0,void(e.length=1);var a=e.words[9];for(t.words[t.length++]=4194303&a,n=10;n<e.length;n++){var r=0|e.words[n];e.words[n-10]=(4194303&r)<<4|a>>>22,a=r}a>>>=22,e.words[n-10]=a,0===a&&e.length>10?e.length-=10:e.length-=9},I.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,i=0;i<e.length;i++){var n=0|e.words[i];t+=977*n,e.words[i]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},r(x,_),r(S,_),r(T,_),T.prototype.imulK=function(e){for(var t=0,i=0;i<e.length;i++){var n=19*(0|e.words[i])+t,a=67108863&n;n>>>=26,e.words[i]=a,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(w[e])return w[e];var t;if("k256"===e)t=new I;else if("p224"===e)t=new x;else if("p192"===e)t=new S;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new T}return w[e]=t,t},C.prototype._verify1=function(e){a(0===e.negative,"red works only with positives"),a(e.red,"red works only with red numbers")},C.prototype._verify2=function(e,t){a(0==(e.negative|t.negative),"red works only with positives"),a(e.red&&e.red===t.red,"red works only with red numbers")},C.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(u(e,e.umod(this.m)._forceRed(this)),e)},C.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},C.prototype.add=function(e,t){this._verify2(e,t);var i=e.add(t);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},C.prototype.iadd=function(e,t){this._verify2(e,t);var i=e.iadd(t);return i.cmp(this.m)>=0&&i.isub(this.m),i},C.prototype.sub=function(e,t){this._verify2(e,t);var i=e.sub(t);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},C.prototype.isub=function(e,t){this._verify2(e,t);var i=e.isub(t);return i.cmpn(0)<0&&i.iadd(this.m),i},C.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},C.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},C.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},C.prototype.isqr=function(e){return this.imul(e,e.clone())},C.prototype.sqr=function(e){return this.mul(e,e)},C.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(a(t%2==1),3===t){var i=this.m.add(new o(1)).iushrn(2);return this.pow(e,i)}for(var n=this.m.subn(1),r=0;!n.isZero()&&0===n.andln(1);)r++,n.iushrn(1);a(!n.isZero());var s=new o(1).toRed(this),l=s.redNeg(),c=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new o(2*u*u).toRed(this);0!==this.pow(u,c).cmp(l);)u.redIAdd(l);for(var d=this.pow(u,n),f=this.pow(e,n.addn(1).iushrn(1)),h=this.pow(e,n),p=r;0!==h.cmp(s);){for(var m=h,g=0;0!==m.cmp(s);g++)m=m.redSqr();a(g<p);var v=this.pow(d,new o(1).iushln(p-g-1));f=f.redMul(v),d=v.redSqr(),h=h.redMul(d),p=g}return f},C.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},C.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var i=new Array(16);i[0]=new o(1).toRed(this),i[1]=e;for(var n=2;n<i.length;n++)i[n]=this.mul(i[n-1],e);var a=i[0],r=0,s=0,l=t.bitLength()%26;for(0===l&&(l=26),n=t.length-1;n>=0;n--){for(var c=t.words[n],u=l-1;u>=0;u--){var d=c>>u&1;a!==i[0]&&(a=this.sqr(a)),0!==d||0!==r?(r<<=1,r|=d,(4===++s||0===n&&0===u)&&(a=this.mul(a,i[r]),s=0,r=0)):s=0}l=26}return a},C.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},C.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new k(e)},r(k,C),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var i=e.imul(t),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=i.isub(n).iushrn(this.shift),r=a;return a.cmp(this.m)>=0?r=a.isub(this.m):a.cmpn(0)<0&&(r=a.iadd(this.m)),r._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var i=e.mul(t),n=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=i.isub(n).iushrn(this.shift),r=a;return a.cmp(this.m)>=0?r=a.isub(this.m):a.cmpn(0)<0&&(r=a.iadd(this.m)),r._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===t||t)},{buffer:185}],184:[function(e,t,i){"use strict";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)}var a;function r(e){this.rand=e}if(t.exports=function(e){return a||(a=new r(null)),a.generate(e)},t.exports.Rand=r,r.prototype.generate=function(e){return this._rand(e)},r.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),i=0;i<t.length;i++)t[i]=this.rand.getByte();return t},"object"===("undefined"==typeof self?"undefined":n(self)))self.crypto&&self.crypto.getRandomValues?r.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?r.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"===("undefined"==typeof window?"undefined":n(window))&&(r.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var o=e("crypto");if("function"!=typeof o.randomBytes)throw new Error("Not supported");r.prototype._rand=function(e){return o.randomBytes(e)}}catch(e){}},{crypto:185}],185:[function(e,t,i){},{}],186:[function(e,t,i){"use strict";var n=e("safe-buffer").Buffer;function a(e){n.isBuffer(e)||(e=n.from(e));for(var t=e.length/4|0,i=new Array(t),a=0;a<t;a++)i[a]=e.readUInt32BE(4*a);return i}function r(e){for(;0<e.length;e++)e[0]=0}function o(e,t,i,n,a){for(var r,o,s,l,c=i[0],u=i[1],d=i[2],f=i[3],h=e[0]^t[0],p=e[1]^t[1],m=e[2]^t[2],g=e[3]^t[3],v=4,b=1;b<a;b++)r=c[h>>>24]^u[p>>>16&255]^d[m>>>8&255]^f[255&g]^t[v++],o=c[p>>>24]^u[m>>>16&255]^d[g>>>8&255]^f[255&h]^t[v++],s=c[m>>>24]^u[g>>>16&255]^d[h>>>8&255]^f[255&p]^t[v++],l=c[g>>>24]^u[h>>>16&255]^d[p>>>8&255]^f[255&m]^t[v++],h=r,p=o,m=s,g=l;return r=(n[h>>>24]<<24|n[p>>>16&255]<<16|n[m>>>8&255]<<8|n[255&g])^t[v++],o=(n[p>>>24]<<24|n[m>>>16&255]<<16|n[g>>>8&255]<<8|n[255&h])^t[v++],s=(n[m>>>24]<<24|n[g>>>16&255]<<16|n[h>>>8&255]<<8|n[255&p])^t[v++],l=(n[g>>>24]<<24|n[h>>>16&255]<<16|n[p>>>8&255]<<8|n[255&m])^t[v++],[r>>>=0,o>>>=0,s>>>=0,l>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],l=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var i=[],n=[],a=[[],[],[],[]],r=[[],[],[],[]],o=0,s=0,l=0;l<256;++l){var c=s^s<<1^s<<2^s<<3^s<<4;c=c>>>8^255&c^99,i[o]=c,n[c]=o;var u=e[o],d=e[u],f=e[d],h=257*e[c]^16843008*c;a[0][o]=h<<24|h>>>8,a[1][o]=h<<16|h>>>16,a[2][o]=h<<8|h>>>24,a[3][o]=h,h=16843009*f^65537*d^257*u^16843008*o,r[0][c]=h<<24|h>>>8,r[1][c]=h<<16|h>>>16,r[2][c]=h<<8|h>>>24,r[3][c]=h,0===o?o=s=1:(o=u^e[e[e[f^u]]],s^=e[e[s]])}return{SBOX:i,INV_SBOX:n,SUB_MIX:a,INV_SUB_MIX:r}}();function c(e){this._key=a(e),this._reset()}c.blockSize=16,c.keySize=32,c.prototype.blockSize=c.blockSize,c.prototype.keySize=c.keySize,c.prototype._reset=function(){for(var e=this._key,t=e.length,i=t+6,n=4*(i+1),a=[],r=0;r<t;r++)a[r]=e[r];for(r=t;r<n;r++){var o=a[r-1];r%t==0?(o=o<<8|o>>>24,o=l.SBOX[o>>>24]<<24|l.SBOX[o>>>16&255]<<16|l.SBOX[o>>>8&255]<<8|l.SBOX[255&o],o^=s[r/t|0]<<24):t>6&&r%t==4&&(o=l.SBOX[o>>>24]<<24|l.SBOX[o>>>16&255]<<16|l.SBOX[o>>>8&255]<<8|l.SBOX[255&o]),a[r]=a[r-t]^o}for(var c=[],u=0;u<n;u++){var d=n-u,f=a[d-(u%4?0:4)];c[u]=u<4||d<=4?f:l.INV_SUB_MIX[0][l.SBOX[f>>>24]]^l.INV_SUB_MIX[1][l.SBOX[f>>>16&255]]^l.INV_SUB_MIX[2][l.SBOX[f>>>8&255]]^l.INV_SUB_MIX[3][l.SBOX[255&f]]}this._nRounds=i,this._keySchedule=a,this._invKeySchedule=c},c.prototype.encryptBlockRaw=function(e){return o(e=a(e),this._keySchedule,l.SUB_MIX,l.SBOX,this._nRounds)},c.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),i=n.allocUnsafe(16);return i.writeUInt32BE(t[0],0),i.writeUInt32BE(t[1],4),i.writeUInt32BE(t[2],8),i.writeUInt32BE(t[3],12),i},c.prototype.decryptBlock=function(e){var t=(e=a(e))[1];e[1]=e[3],e[3]=t;var i=o(e,this._invKeySchedule,l.INV_SUB_MIX,l.INV_SBOX,this._nRounds),r=n.allocUnsafe(16);return r.writeUInt32BE(i[0],0),r.writeUInt32BE(i[3],4),r.writeUInt32BE(i[2],8),r.writeUInt32BE(i[1],12),r},c.prototype.scrub=function(){r(this._keySchedule),r(this._invKeySchedule),r(this._key)},t.exports.AES=c},{"safe-buffer":494}],187:[function(e,t,i){"use strict";var n=e("./aes"),a=e("safe-buffer").Buffer,r=e("cipher-base"),o=e("inherits"),s=e("./ghash"),l=e("buffer-xor"),c=e("./incr32");function u(e,t,i,o){r.call(this);var l=a.alloc(4,0);this._cipher=new n.AES(t);var u=this._cipher.encryptBlock(l);this._ghash=new s(u),i=function(e,t,i){if(12===t.length)return e._finID=a.concat([t,a.from([0,0,0,1])]),a.concat([t,a.from([0,0,0,2])]);var n=new s(i),r=t.length,o=r%16;n.update(t),o&&(o=16-o,n.update(a.alloc(o,0))),n.update(a.alloc(8,0));var l=8*r,u=a.alloc(8);u.writeUIntBE(l,0,8),n.update(u),e._finID=n.state;var d=a.from(e._finID);return c(d),d}(this,i,u),this._prev=a.from(i),this._cache=a.allocUnsafe(0),this._secCache=a.allocUnsafe(0),this._decrypt=o,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}o(u,r),u.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=a.alloc(t,0),this._ghash.update(t))}this._called=!0;var i=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(i),this._len+=e.length,i},u.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=l(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(e,t){var i=0;e.length!==t.length&&i++;for(var n=Math.min(e.length,t.length),a=0;a<n;++a)i+=e[a]^t[a];return i}(e,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()},u.prototype.getAuthTag=function(){if(this._decrypt||!a.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},u.prototype.setAuthTag=function(e){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=e},u.prototype.setAAD=function(e){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(e),this._alen+=e.length},t.exports=u},{"./aes":186,"./ghash":191,"./incr32":192,"buffer-xor":217,"cipher-base":218,inherits:387,"safe-buffer":494}],188:[function(e,t,i){"use strict";var n=e("./encrypter"),a=e("./decrypter"),r=e("./modes/list.json");i.createCipher=i.Cipher=n.createCipher,i.createCipheriv=i.Cipheriv=n.createCipheriv,i.createDecipher=i.Decipher=a.createDecipher,i.createDecipheriv=i.Decipheriv=a.createDecipheriv,i.listCiphers=i.getCiphers=function(){return Object.keys(r)}},{"./decrypter":189,"./encrypter":190,"./modes/list.json":200}],189:[function(e,t,i){"use strict";var n=e("./authCipher"),a=e("safe-buffer").Buffer,r=e("./modes"),o=e("./streamCipher"),s=e("cipher-base"),l=e("./aes"),c=e("evp_bytestokey");function u(e,t,i){s.call(this),this._cache=new d,this._last=void 0,this._cipher=new l.AES(t),this._prev=a.from(i),this._mode=e,this._autopadding=!0}function d(){this.cache=a.allocUnsafe(0)}function f(e,t,i){var s=r[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof i&&(i=a.from(i)),"GCM"!==s.mode&&i.length!==s.iv)throw new TypeError("invalid iv length "+i.length);if("string"==typeof t&&(t=a.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===s.type?new o(s.module,t,i,!0):"auth"===s.type?new n(s.module,t,i,!0):new u(s.module,t,i)}e("inherits")(u,s),u.prototype._update=function(e){var t,i;this._cache.add(e);for(var n=[];t=this._cache.get(this._autopadding);)i=this._mode.decrypt(this,t),n.push(i);return a.concat(n)},u.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");for(var i=-1;++i<t;)if(e[i+(16-t)]!==t)throw new Error("unable to decrypt data");if(16!==t)return e.slice(0,16-t)}(this._mode.decrypt(this,e));if(e)throw new Error("data not multiple of block length")},u.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},d.prototype.add=function(e){this.cache=a.concat([this.cache,e])},d.prototype.get=function(e){var t;if(e){if(this.cache.length>16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},d.prototype.flush=function(){if(this.cache.length)return this.cache},i.createDecipher=function(e,t){var i=r[e.toLowerCase()];if(!i)throw new TypeError("invalid suite type");var n=c(t,!1,i.key,i.iv);return f(e,n.key,n.iv)},i.createDecipheriv=f},{"./aes":186,"./authCipher":187,"./modes":199,"./streamCipher":202,"cipher-base":218,evp_bytestokey:368,inherits:387,"safe-buffer":494}],190:[function(e,t,i){"use strict";var n=e("./modes"),a=e("./authCipher"),r=e("safe-buffer").Buffer,o=e("./streamCipher"),s=e("cipher-base"),l=e("./aes"),c=e("evp_bytestokey");function u(e,t,i){s.call(this),this._cache=new f,this._cipher=new l.AES(t),this._prev=r.from(i),this._mode=e,this._autopadding=!0}e("inherits")(u,s),u.prototype._update=function(e){var t,i;this._cache.add(e);for(var n=[];t=this._cache.get();)i=this._mode.encrypt(this,t),n.push(i);return r.concat(n)};var d=r.alloc(16,16);function f(){this.cache=r.allocUnsafe(0)}function h(e,t,i){var s=n[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof t&&(t=r.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);if("string"==typeof i&&(i=r.from(i)),"GCM"!==s.mode&&i.length!==s.iv)throw new TypeError("invalid iv length "+i.length);return"stream"===s.type?new o(s.module,t,i):"auth"===s.type?new a(s.module,t,i):new u(s.module,t,i)}u.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(d))throw this._cipher.scrub(),new Error("data not multiple of block length")},u.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},f.prototype.add=function(e){this.cache=r.concat([this.cache,e])},f.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},f.prototype.flush=function(){for(var e=16-this.cache.length,t=r.allocUnsafe(e),i=-1;++i<e;)t.writeUInt8(e,i);return r.concat([this.cache,t])},i.createCipheriv=h,i.createCipher=function(e,t){var i=n[e.toLowerCase()];if(!i)throw new TypeError("invalid suite type");var a=c(t,!1,i.key,i.iv);return h(e,a.key,a.iv)}},{"./aes":186,"./authCipher":187,"./modes":199,"./streamCipher":202,"cipher-base":218,evp_bytestokey:368,inherits:387,"safe-buffer":494}],191:[function(e,t,i){"use strict";var n=e("safe-buffer").Buffer,a=n.alloc(16,0);function r(e){var t=n.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function o(e){this.h=e,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}o.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()},o.prototype._multiply=function(){for(var e,t,i,n=[(e=this.h).readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)],a=[0,0,0,0],o=-1;++o<128;){for(0!=(this.state[~~(o/8)]&1<<7-o%8)&&(a[0]^=n[0],a[1]^=n[1],a[2]^=n[2],a[3]^=n[3]),i=0!=(1&n[3]),t=3;t>0;t--)n[t]=n[t]>>>1|(1&n[t-1])<<31;n[0]=n[0]>>>1,i&&(n[0]=n[0]^225<<24)}this.state=r(a)},o.prototype.update=function(e){var t;for(this.cache=n.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},o.prototype.final=function(e,t){return this.cache.length&&this.ghash(n.concat([this.cache,a],16)),this.ghash(r([0,e,0,t])),this.state},t.exports=o},{"safe-buffer":494}],192:[function(e,t,i){"use strict";t.exports=function(e){for(var t,i=e.length;i--;){if(255!==(t=e.readUInt8(i))){t++,e.writeUInt8(t,i);break}e.writeUInt8(0,i)}}},{}],193:[function(e,t,i){"use strict";var n=e("buffer-xor");i.encrypt=function(e,t){var i=n(t,e._prev);return e._prev=e._cipher.encryptBlock(i),e._prev},i.decrypt=function(e,t){var i=e._prev;e._prev=t;var a=e._cipher.decryptBlock(t);return n(a,i)}},{"buffer-xor":217}],194:[function(e,t,i){"use strict";var n=e("safe-buffer").Buffer,a=e("buffer-xor");function r(e,t,i){var r=t.length,o=a(t,e._cache);return e._cache=e._cache.slice(r),e._prev=n.concat([e._prev,i?t:o]),o}i.encrypt=function(e,t,i){for(var a,o=n.allocUnsafe(0);t.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=n.allocUnsafe(0)),!(e._cache.length<=t.length)){o=n.concat([o,r(e,t,i)]);break}a=e._cache.length,o=n.concat([o,r(e,t.slice(0,a),i)]),t=t.slice(a)}return o}},{"buffer-xor":217,"safe-buffer":494}],195:[function(e,t,i){"use strict";var n=e("safe-buffer").Buffer;function a(e,t,i){for(var n,a,o=-1,s=0;++o<8;)n=t&1<<7-o?128:0,s+=(128&(a=e._cipher.encryptBlock(e._prev)[0]^n))>>o%8,e._prev=r(e._prev,i?n:a);return s}function r(e,t){var i=e.length,a=-1,r=n.allocUnsafe(e.length);for(e=n.concat([e,n.from([t])]);++a<i;)r[a]=e[a]<<1|e[a+1]>>7;return r}i.encrypt=function(e,t,i){for(var r=t.length,o=n.allocUnsafe(r),s=-1;++s<r;)o[s]=a(e,t[s],i);return o}},{"safe-buffer":494}],196:[function(e,t,i){"use strict";var n=e("safe-buffer").Buffer;function a(e,t,i){var a=e._cipher.encryptBlock(e._prev)[0]^t;return e._prev=n.concat([e._prev.slice(1),n.from([i?t:a])]),a}i.encrypt=function(e,t,i){for(var r=t.length,o=n.allocUnsafe(r),s=-1;++s<r;)o[s]=a(e,t[s],i);return o}},{"safe-buffer":494}],197:[function(e,t,i){"use strict";var n=e("buffer-xor"),a=e("safe-buffer").Buffer,r=e("../incr32");function o(e){var t=e._cipher.encryptBlockRaw(e._prev);return r(e._prev),t}i.encrypt=function(e,t){var i=Math.ceil(t.length/16),r=e._cache.length;e._cache=a.concat([e._cache,a.allocUnsafe(16*i)]);for(var s=0;s<i;s++){var l=o(e),c=r+16*s;e._cache.writeUInt32BE(l[0],c+0),e._cache.writeUInt32BE(l[1],c+4),e._cache.writeUInt32BE(l[2],c+8),e._cache.writeUInt32BE(l[3],c+12)}var u=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),n(t,u)}},{"../incr32":192,"buffer-xor":217,"safe-buffer":494}],198:[function(e,t,i){"use strict";i.encrypt=function(e,t){return e._cipher.encryptBlock(t)},i.decrypt=function(e,t){return e._cipher.decryptBlock(t)}},{}],199:[function(e,t,i){"use strict";var n={ECB:e("./ecb"),CBC:e("./cbc"),CFB:e("./cfb"),CFB8:e("./cfb8"),CFB1:e("./cfb1"),OFB:e("./ofb"),CTR:e("./ctr"),GCM:e("./ctr")},a=e("./list.json");for(var r in a)a[r].module=n[a[r].mode];t.exports=a},{"./cbc":193,"./cfb":194,"./cfb1":195,"./cfb8":196,"./ctr":197,"./ecb":198,"./list.json":200,"./ofb":201}],200:[function(e,t,i){t.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}},{}],201:[function(e,t,i){(function(t){"use strict";var n=e("buffer-xor");function a(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}i.encrypt=function(e,i){for(;e._cache.length<i.length;)e._cache=t.concat([e._cache,a(e)]);var r=e._cache.slice(0,i.length);return e._cache=e._cache.slice(i.length),n(i,r)}}).call(this,e("buffer").Buffer)},{buffer:216,"buffer-xor":217}],202:[function(e,t,i){"use strict";var n=e("./aes"),a=e("safe-buffer").Buffer,r=e("cipher-base");function o(e,t,i,o){r.call(this),this._cipher=new n.AES(t),this._prev=a.from(i),this._cache=a.allocUnsafe(0),this._secCache=a.allocUnsafe(0),this._decrypt=o,this._mode=e}e("inherits")(o,r),o.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},o.prototype._final=function(){this._cipher.scrub()},t.exports=o},{"./aes":186,"cipher-base":218,inherits:387,"safe-buffer":494}],203:[function(e,t,i){"use strict";var n=e("browserify-des"),a=e("browserify-aes/browser"),r=e("browserify-aes/modes"),o=e("browserify-des/modes"),s=e("evp_bytestokey");function l(e,t,i){if(e=e.toLowerCase(),r[e])return a.createCipheriv(e,t,i);if(o[e])return new n({key:t,iv:i,mode:e});throw new TypeError("invalid suite type")}function c(e,t,i){if(e=e.toLowerCase(),r[e])return a.createDecipheriv(e,t,i);if(o[e])return new n({key:t,iv:i,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}i.createCipher=i.Cipher=function(e,t){var i,n;if(e=e.toLowerCase(),r[e])i=r[e].key,n=r[e].iv;else{if(!o[e])throw new TypeError("invalid suite type");i=8*o[e].key,n=o[e].iv}var a=s(t,!1,i,n);return l(e,a.key,a.iv)},i.createCipheriv=i.Cipheriv=l,i.createDecipher=i.Decipher=function(e,t){var i,n;if(e=e.toLowerCase(),r[e])i=r[e].key,n=r[e].iv;else{if(!o[e])throw new TypeError("invalid suite type");i=8*o[e].key,n=o[e].iv}var a=s(t,!1,i,n);return c(e,a.key,a.iv)},i.createDecipheriv=i.Decipheriv=c,i.listCiphers=i.getCiphers=function(){return Object.keys(o).concat(a.getCiphers())}},{"browserify-aes/browser":188,"browserify-aes/modes":199,"browserify-des":204,"browserify-des/modes":205,evp_bytestokey:368}],204:[function(e,t,i){"use strict";var n=e("cipher-base"),a=e("des.js"),r=e("inherits"),o=e("safe-buffer").Buffer,s={"des-ede3-cbc":a.CBC.instantiate(a.EDE),"des-ede3":a.EDE,"des-ede-cbc":a.CBC.instantiate(a.EDE),"des-ede":a.EDE,"des-cbc":a.CBC.instantiate(a.DES),"des-ecb":a.DES};function l(e){n.call(this);var t,i=e.mode.toLowerCase(),a=s[i];t=e.decrypt?"decrypt":"encrypt";var r=e.key;o.isBuffer(r)||(r=o.from(r)),"des-ede"!==i&&"des-ede-cbc"!==i||(r=o.concat([r,r.slice(0,8)]));var l=e.iv;o.isBuffer(l)||(l=o.from(l)),this._des=a.create({key:r,iv:l,type:t})}s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],t.exports=l,r(l,n),l.prototype._update=function(e){return o.from(this._des.update(e))},l.prototype._final=function(){return o.from(this._des.final())}},{"cipher-base":218,"des.js":339,inherits:387,"safe-buffer":494}],205:[function(e,t,i){"use strict";i["des-ecb"]={key:8,iv:0},i["des-cbc"]=i.des={key:8,iv:8},i["des-ede3-cbc"]=i.des3={key:24,iv:8},i["des-ede3"]={key:24,iv:0},i["des-ede-cbc"]={key:16,iv:8},i["des-ede"]={key:16,iv:0}},{}],206:[function(e,t,i){(function(i){"use strict";var n=e("bn.js"),a=e("randombytes");function r(e,t){var a=function(e){var t=o(e);return{blinder:t.toRed(n.mont(e.modulus)).redPow(new n(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(t),r=t.modulus.byteLength(),s=(n.mont(t.modulus),new n(e).mul(a.blinder).umod(t.modulus)),l=s.toRed(n.mont(t.prime1)),c=s.toRed(n.mont(t.prime2)),u=t.coefficient,d=t.prime1,f=t.prime2,h=l.redPow(t.exponent1),p=c.redPow(t.exponent2);h=h.fromRed(),p=p.fromRed();var m=h.isub(p).imul(u).umod(d);return m.imul(f),p.iadd(m),new i(p.imul(a.unblinder).umod(t.modulus).toArray(!1,r))}function o(e){for(var t=e.modulus.byteLength(),i=new n(a(t));i.cmp(e.modulus)>=0||!i.umod(e.prime1)||!i.umod(e.prime2);)i=new n(a(t));return i}t.exports=r,r.getr=o}).call(this,e("buffer").Buffer)},{"bn.js":207,buffer:216,randombytes:475}],207:[function(e,t,i){arguments[4][181][0].apply(i,arguments)},{buffer:185,dup:181}],208:[function(e,t,i){"use strict";t.exports=e("./browser/algorithms.json")},{"./browser/algorithms.json":209}],209:[function(e,t,i){t.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}},{}],210:[function(e,t,i){t.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}},{}],211:[function(e,t,i){"use strict";var n=e("safe-buffer").Buffer,a=e("create-hash"),r=e("readable-stream"),o=e("inherits"),s=e("./sign"),l=e("./verify"),c=e("./algorithms.json");function u(e){r.Writable.call(this);var t=c[e];if(!t)throw new Error("Unknown message digest");this._hashType=t.hash,this._hash=a(t.hash),this._tag=t.id,this._signType=t.sign}function d(e){r.Writable.call(this);var t=c[e];if(!t)throw new Error("Unknown message digest");this._hash=a(t.hash),this._tag=t.id,this._signType=t.sign}function f(e){return new u(e)}function h(e){return new d(e)}Object.keys(c).forEach((function(e){c[e].id=n.from(c[e].id,"hex"),c[e.toLowerCase()]=c[e]})),o(u,r.Writable),u.prototype._write=function(e,t,i){this._hash.update(e),i()},u.prototype.update=function(e,t){return"string"==typeof e&&(e=n.from(e,t)),this._hash.update(e),this},u.prototype.sign=function(e,t){this.end();var i=this._hash.digest(),n=s(i,e,this._hashType,this._signType,this._tag);return t?n.toString(t):n},o(d,r.Writable),d.prototype._write=function(e,t,i){this._hash.update(e),i()},d.prototype.update=function(e,t){return"string"==typeof e&&(e=n.from(e,t)),this._hash.update(e),this},d.prototype.verify=function(e,t,i){"string"==typeof t&&(t=n.from(t,i)),this.end();var a=this._hash.digest();return l(t,a,e,this._signType,this._tag)},t.exports={Sign:f,Verify:h,createSign:f,createVerify:h}},{"./algorithms.json":209,"./sign":212,"./verify":213,"create-hash":331,inherits:387,"readable-stream":491,"safe-buffer":214}],212:[function(e,t,i){"use strict";var n=e("safe-buffer").Buffer,a=e("create-hmac"),r=e("browserify-rsa"),o=e("elliptic").ec,s=e("bn.js"),l=e("parse-asn1"),c=e("./curves.json");function u(e,t,i,r){if((e=n.from(e.toArray())).length<t.byteLength()){var o=n.alloc(t.byteLength()-e.length);e=n.concat([o,e])}var s=i.length,l=function(e,t){e=(e=d(e,t)).mod(t);var i=n.from(e.toArray());if(i.length<t.byteLength()){var a=n.alloc(t.byteLength()-i.length);i=n.concat([a,i])}return i}(i,t),c=n.alloc(s);c.fill(1);var u=n.alloc(s);return u=a(r,u).update(c).update(n.from([0])).update(e).update(l).digest(),c=a(r,u).update(c).digest(),{k:u=a(r,u).update(c).update(n.from([1])).update(e).update(l).digest(),v:c=a(r,u).update(c).digest()}}function d(e,t){var i=new s(e),n=(e.length<<3)-t.bitLength();return n>0&&i.ishrn(n),i}function f(e,t,i){var r,o;do{for(r=n.alloc(0);8*r.length<e.bitLength();)t.v=a(i,t.k).update(t.v).digest(),r=n.concat([r,t.v]);o=d(r,e),t.k=a(i,t.k).update(t.v).update(n.from([0])).digest(),t.v=a(i,t.k).update(t.v).digest()}while(-1!==o.cmp(e));return o}function h(e,t,i,n){return e.toRed(s.mont(i)).redPow(t).fromRed().mod(n)}t.exports=function(e,t,i,a,p){var m=l(t);if(m.curve){if("ecdsa"!==a&&"ecdsa/rsa"!==a)throw new Error("wrong private key type");return function(e,t){var i=c[t.curve.join(".")];if(!i)throw new Error("unknown curve "+t.curve.join("."));var a=new o(i).keyFromPrivate(t.privateKey).sign(e);return n.from(a.toDER())}(e,m)}if("dsa"===m.type){if("dsa"!==a)throw new Error("wrong private key type");return function(e,t,i){for(var a,r=t.params.priv_key,o=t.params.p,l=t.params.q,c=t.params.g,p=new s(0),m=d(e,l).mod(l),g=!1,v=u(r,l,e,i);!1===g;)a=f(l,v,i),p=h(c,a,o,l),0===(g=a.invm(l).imul(m.add(r.mul(p))).mod(l)).cmpn(0)&&(g=!1,p=new s(0));return function(e,t){e=e.toArray(),t=t.toArray(),128&e[0]&&(e=[0].concat(e)),128&t[0]&&(t=[0].concat(t));var i=[48,e.length+t.length+4,2,e.length];return i=i.concat(e,[2,t.length],t),n.from(i)}(p,g)}(e,m,i)}if("rsa"!==a&&"ecdsa/rsa"!==a)throw new Error("wrong private key type");e=n.concat([p,e]);for(var g=m.modulus.byteLength(),v=[0,1];e.length+v.length+1<g;)v.push(255);v.push(0);for(var b=-1;++b<e.length;)v.push(e[b]);return r(v,m)},t.exports.getKey=u,t.exports.makeKey=f},{"./curves.json":210,"bn.js":183,"browserify-rsa":206,"create-hmac":333,elliptic:350,"parse-asn1":459,"safe-buffer":214}],213:[function(e,t,i){"use strict";var n=e("safe-buffer").Buffer,a=e("bn.js"),r=e("elliptic").ec,o=e("parse-asn1"),s=e("./curves.json");function l(e,t){if(e.cmpn(0)<=0)throw new Error("invalid sig");if(e.cmp(t)>=t)throw new Error("invalid sig")}t.exports=function(e,t,i,c,u){var d=o(i);if("ec"===d.type){if("ecdsa"!==c&&"ecdsa/rsa"!==c)throw new Error("wrong public key type");return function(e,t,i){var n=s[i.data.algorithm.curve.join(".")];if(!n)throw new Error("unknown curve "+i.data.algorithm.curve.join("."));var a=new r(n),o=i.data.subjectPrivateKey.data;return a.verify(t,e,o)}(e,t,d)}if("dsa"===d.type){if("dsa"!==c)throw new Error("wrong public key type");return function(e,t,i){var n=i.data.p,r=i.data.q,s=i.data.g,c=i.data.pub_key,u=o.signature.decode(e,"der"),d=u.s,f=u.r;l(d,r),l(f,r);var h=a.mont(n),p=d.invm(r);return 0===s.toRed(h).redPow(new a(t).mul(p).mod(r)).fromRed().mul(c.toRed(h).redPow(f.mul(p).mod(r)).fromRed()).mod(n).mod(r).cmp(f)}(e,t,d)}if("rsa"!==c&&"ecdsa/rsa"!==c)throw new Error("wrong public key type");t=n.concat([u,t]);for(var f=d.modulus.byteLength(),h=[1],p=0;t.length+h.length+2<f;)h.push(255),p++;h.push(0);for(var m=-1;++m<t.length;)h.push(t[m]);h=n.from(h);var g=a.mont(d.modulus);e=(e=new a(e).toRed(g)).redPow(new a(d.publicExponent)),e=n.from(e.fromRed().toArray());var v=p<8?1:0;for(f=Math.min(e.length,h.length),e.length!==h.length&&(v=1),m=-1;++m<f;)v|=e[m]^h[m];return 0===v}},{"./curves.json":210,"bn.js":183,elliptic:350,"parse-asn1":459,"safe-buffer":214}],214:[function(e,t,i){"use strict";
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var n=e("buffer"),a=n.Buffer;function r(e,t){for(var i in e)t[i]=e[i]}function o(e,t,i){return a(e,t,i)}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?t.exports=n:(r(n,i),i.Buffer=o),o.prototype=Object.create(a.prototype),r(a,o),o.from=function(e,t,i){if("number"==typeof e)throw new TypeError("Argument must not be a number");return a(e,t,i)},o.alloc=function(e,t,i){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=a(e);return void 0!==t?"string"==typeof i?n.fill(t,i):n.fill(t):n.fill(0),n},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return a(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},{buffer:216}],215:[function(e,t,i){arguments[4][185][0].apply(i,arguments)},{dup:185}],216:[function(e,t,i){(function(t){
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/
"use strict";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)}var a=e("base64-js"),r=e("ieee754");function o(e){if(e>2147483647)throw new RangeError('The value "'+e+'" is invalid for option "size"');var i=new Uint8Array(e);return i.__proto__=t.prototype,i}function t(e,t,i){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return c(e)}return s(e,t,i)}function s(e,i,a){if("string"==typeof e)return function(e,i){if("string"==typeof i&&""!==i||(i="utf8"),!t.isEncoding(i))throw new TypeError("Unknown encoding: "+i);var n=0|f(e,i),a=o(n),r=a.write(e,i);return r!==n&&(a=a.slice(0,r)),a}(e,i);if(ArrayBuffer.isView(e))return u(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+n(e));if(j(e,ArrayBuffer)||e&&j(e.buffer,ArrayBuffer))return function(e,i,n){if(i<0||e.byteLength<i)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<i+(n||0))throw new RangeError('"length" is outside of buffer bounds');var a;return a=void 0===i&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,i):new Uint8Array(e,i,n),a.__proto__=t.prototype,a}(e,i,a);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return t.from(r,i,a);var s=function(e){if(t.isBuffer(e)){var i=0|d(e.length),n=o(i);return 0===n.length||e.copy(n,0,0,i),n}return void 0!==e.length?"number"!=typeof e.length||V(e.length)?o(0):u(e):"Buffer"===e.type&&Array.isArray(e.data)?u(e.data):void 0}(e);if(s)return s;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return t.from(e[Symbol.toPrimitive]("string"),i,a);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+n(e))}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return l(e),o(e<0?0:0|d(e))}function u(e){for(var t=e.length<0?0:0|d(e.length),i=o(t),n=0;n<t;n+=1)i[n]=255&e[n];return i}function d(e){if(e>=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+2147483647..toString(16)+" bytes");return 0|e}function f(e,i){if(t.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||j(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+n(e));var a=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===a)return 0;for(var o=!1;;)switch(i){case"ascii":case"latin1":case"binary":return a;case"utf8":case"utf-8":return E(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*a;case"hex":return a>>>1;case"base64":return M(e).length;default:if(o)return r?-1:E(e).length;i=(""+i).toLowerCase(),o=!0}}function h(e,t,i){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if((i>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return k(this,t,i);case"utf8":case"utf-8":return S(this,t,i);case"ascii":return T(this,t,i);case"latin1":case"binary":return C(this,t,i);case"base64":return x(this,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,i);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function p(e,t,i){var n=e[t];e[t]=e[i],e[i]=n}function m(e,i,n,a,r){if(0===e.length)return-1;if("string"==typeof n?(a=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),V(n=+n)&&(n=r?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(r)return-1;n=e.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof i&&(i=t.from(i,a)),t.isBuffer(i))return 0===i.length?-1:g(e,i,n,a,r);if("number"==typeof i)return i&=255,"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,i,n):Uint8Array.prototype.lastIndexOf.call(e,i,n):g(e,[i],n,a,r);throw new TypeError("val must be string, number or Buffer")}function g(e,t,i,n,a){var r,o=1,s=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;o=2,s/=2,l/=2,i/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(a){var u=-1;for(r=i;r<s;r++)if(c(e,r)===c(t,-1===u?0:r-u)){if(-1===u&&(u=r),r-u+1===l)return u*o}else-1!==u&&(r-=r-u),u=-1}else for(i+l>s&&(i=s-l),r=i;r>=0;r--){for(var d=!0,f=0;f<l;f++)if(c(e,r+f)!==c(t,f)){d=!1;break}if(d)return r}return-1}function v(e,t,i,n){i=Number(i)||0;var a=e.length-i;n?(n=Number(n))>a&&(n=a):n=a;var r=t.length;n>r/2&&(n=r/2);for(var o=0;o<n;++o){var s=parseInt(t.substr(2*o,2),16);if(V(s))return o;e[i+o]=s}return o}function b(e,t,i,n){return F(E(t,e.length-i),e,i,n)}function y(e,t,i,n){return F(function(e){for(var t=[],i=0;i<e.length;++i)t.push(255&e.charCodeAt(i));return t}(t),e,i,n)}function w(e,t,i,n){return y(e,t,i,n)}function _(e,t,i,n){return F(M(t),e,i,n)}function I(e,t,i,n){return F(function(e,t){for(var i,n,a,r=[],o=0;o<e.length&&!((t-=2)<0);++o)i=e.charCodeAt(o),n=i>>8,a=i%256,r.push(a),r.push(n);return r}(t,e.length-i),e,i,n)}function x(e,t,i){return 0===t&&i===e.length?a.fromByteArray(e):a.fromByteArray(e.slice(t,i))}function S(e,t,i){i=Math.min(e.length,i);for(var n=[],a=t;a<i;){var r,o,s,l,c=e[a],u=null,d=c>239?4:c>223?3:c>191?2:1;if(a+d<=i)switch(d){case 1:c<128&&(u=c);break;case 2:128==(192&(r=e[a+1]))&&(l=(31&c)<<6|63&r)>127&&(u=l);break;case 3:r=e[a+1],o=e[a+2],128==(192&r)&&128==(192&o)&&(l=(15&c)<<12|(63&r)<<6|63&o)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:r=e[a+1],o=e[a+2],s=e[a+3],128==(192&r)&&128==(192&o)&&128==(192&s)&&(l=(15&c)<<18|(63&r)<<12|(63&o)<<6|63&s)>65535&&l<1114112&&(u=l)}null===u?(u=65533,d=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),a+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var i="",n=0;n<t;)i+=String.fromCharCode.apply(String,e.slice(n,n+=4096));return i}(n)}function T(e,t,i){var n="";i=Math.min(e.length,i);for(var a=t;a<i;++a)n+=String.fromCharCode(127&e[a]);return n}function C(e,t,i){var n="";i=Math.min(e.length,i);for(var a=t;a<i;++a)n+=String.fromCharCode(e[a]);return n}function k(e,t,i){var n=e.length;(!t||t<0)&&(t=0),(!i||i<0||i>n)&&(i=n);for(var a="",r=t;r<i;++r)a+=P(e[r]);return a}function R(e,t,i){for(var n=e.slice(t,i),a="",r=0;r<n.length;r+=2)a+=String.fromCharCode(n[r]+256*n[r+1]);return a}function D(e,t,i){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>i)throw new RangeError("Trying to access beyond buffer length")}function L(e,i,n,a,r,o){if(!t.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(i>r||i<o)throw new RangeError('"value" argument is out of bounds');if(n+a>e.length)throw new RangeError("Index out of range")}function O(e,t,i,n,a,r){if(i+n>e.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function $(e,t,i,n,a){return t=+t,i>>>=0,a||O(e,0,i,4),r.write(e,t,i,n,23,4),i+4}function N(e,t,i,n,a){return t=+t,i>>>=0,a||O(e,0,i,8),r.write(e,t,i,n,52,8),i+8}i.Buffer=t,i.SlowBuffer=function(e){return+e!=e&&(e=0),t.alloc(+e)},i.INSPECT_MAX_BYTES=50,i.kMaxLength=2147483647,t.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(e){return!1}}(),t.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(t.prototype,"parent",{enumerable:!0,get:function(){if(t.isBuffer(this))return this.buffer}}),Object.defineProperty(t.prototype,"offset",{enumerable:!0,get:function(){if(t.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&t[Symbol.species]===t&&Object.defineProperty(t,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),t.poolSize=8192,t.from=function(e,t,i){return s(e,t,i)},t.prototype.__proto__=Uint8Array.prototype,t.__proto__=Uint8Array,t.alloc=function(e,t,i){return function(e,t,i){return l(e),e<=0?o(e):void 0!==t?"string"==typeof i?o(e).fill(t,i):o(e).fill(t):o(e)}(e,t,i)},t.allocUnsafe=function(e){return c(e)},t.allocUnsafeSlow=function(e){return c(e)},t.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==t.prototype},t.compare=function(e,i){if(j(e,Uint8Array)&&(e=t.from(e,e.offset,e.byteLength)),j(i,Uint8Array)&&(i=t.from(i,i.offset,i.byteLength)),!t.isBuffer(e)||!t.isBuffer(i))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===i)return 0;for(var n=e.length,a=i.length,r=0,o=Math.min(n,a);r<o;++r)if(e[r]!==i[r]){n=e[r],a=i[r];break}return n<a?-1:a<n?1:0},t.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},t.concat=function(e,i){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return t.alloc(0);var n;if(void 0===i)for(i=0,n=0;n<e.length;++n)i+=e[n].length;var a=t.allocUnsafe(i),r=0;for(n=0;n<e.length;++n){var o=e[n];if(j(o,Uint8Array)&&(o=t.from(o)),!t.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(a,r),r+=o.length}return a},t.byteLength=f,t.prototype._isBuffer=!0,t.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)p(this,t,t+1);return this},t.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)p(this,t,t+3),p(this,t+1,t+2);return this},t.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)p(this,t,t+7),p(this,t+1,t+6),p(this,t+2,t+5),p(this,t+3,t+4);return this},t.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?S(this,0,e):h.apply(this,arguments)},t.prototype.toLocaleString=t.prototype.toString,t.prototype.equals=function(e){if(!t.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===t.compare(this,e)},t.prototype.inspect=function(){var e="",t=i.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},t.prototype.compare=function(e,i,a,r,o){if(j(e,Uint8Array)&&(e=t.from(e,e.offset,e.byteLength)),!t.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+n(e));if(void 0===i&&(i=0),void 0===a&&(a=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),i<0||a>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&i>=a)return 0;if(r>=o)return-1;if(i>=a)return 1;if(this===e)return 0;for(var s=(o>>>=0)-(r>>>=0),l=(a>>>=0)-(i>>>=0),c=Math.min(s,l),u=this.slice(r,o),d=e.slice(i,a),f=0;f<c;++f)if(u[f]!==d[f]){s=u[f],l=d[f];break}return s<l?-1:l<s?1:0},t.prototype.includes=function(e,t,i){return-1!==this.indexOf(e,t,i)},t.prototype.indexOf=function(e,t,i){return m(this,e,t,i,!0)},t.prototype.lastIndexOf=function(e,t,i){return m(this,e,t,i,!1)},t.prototype.write=function(e,t,i,n){if(void 0===t)n="utf8",i=this.length,t=0;else if(void 0===i&&"string"==typeof t)n=t,i=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(i)?(i>>>=0,void 0===n&&(n="utf8")):(n=i,i=void 0)}var a=this.length-t;if((void 0===i||i>a)&&(i=a),e.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var r=!1;;)switch(n){case"hex":return v(this,e,t,i);case"utf8":case"utf-8":return b(this,e,t,i);case"ascii":return y(this,e,t,i);case"latin1":case"binary":return w(this,e,t,i);case"base64":return _(this,e,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,e,t,i);default:if(r)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),r=!0}},t.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},t.prototype.slice=function(e,i){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(i=void 0===i?n:~~i)<0?(i+=n)<0&&(i=0):i>n&&(i=n),i<e&&(i=e);var a=this.subarray(e,i);return a.__proto__=t.prototype,a},t.prototype.readUIntLE=function(e,t,i){e>>>=0,t>>>=0,i||D(e,t,this.length);for(var n=this[e],a=1,r=0;++r<t&&(a*=256);)n+=this[e+r]*a;return n},t.prototype.readUIntBE=function(e,t,i){e>>>=0,t>>>=0,i||D(e,t,this.length);for(var n=this[e+--t],a=1;t>0&&(a*=256);)n+=this[e+--t]*a;return n},t.prototype.readUInt8=function(e,t){return e>>>=0,t||D(e,1,this.length),this[e]},t.prototype.readUInt16LE=function(e,t){return e>>>=0,t||D(e,2,this.length),this[e]|this[e+1]<<8},t.prototype.readUInt16BE=function(e,t){return e>>>=0,t||D(e,2,this.length),this[e]<<8|this[e+1]},t.prototype.readUInt32LE=function(e,t){return e>>>=0,t||D(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},t.prototype.readUInt32BE=function(e,t){return e>>>=0,t||D(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},t.prototype.readIntLE=function(e,t,i){e>>>=0,t>>>=0,i||D(e,t,this.length);for(var n=this[e],a=1,r=0;++r<t&&(a*=256);)n+=this[e+r]*a;return n>=(a*=128)&&(n-=Math.pow(2,8*t)),n},t.prototype.readIntBE=function(e,t,i){e>>>=0,t>>>=0,i||D(e,t,this.length);for(var n=t,a=1,r=this[e+--n];n>0&&(a*=256);)r+=this[e+--n]*a;return r>=(a*=128)&&(r-=Math.pow(2,8*t)),r},t.prototype.readInt8=function(e,t){return e>>>=0,t||D(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},t.prototype.readInt16LE=function(e,t){e>>>=0,t||D(e,2,this.length);var i=this[e]|this[e+1]<<8;return 32768&i?4294901760|i:i},t.prototype.readInt16BE=function(e,t){e>>>=0,t||D(e,2,this.length);var i=this[e+1]|this[e]<<8;return 32768&i?4294901760|i:i},t.prototype.readInt32LE=function(e,t){return e>>>=0,t||D(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},t.prototype.readInt32BE=function(e,t){return e>>>=0,t||D(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},t.prototype.readFloatLE=function(e,t){return e>>>=0,t||D(e,4,this.length),r.read(this,e,!0,23,4)},t.prototype.readFloatBE=function(e,t){return e>>>=0,t||D(e,4,this.length),r.read(this,e,!1,23,4)},t.prototype.readDoubleLE=function(e,t){return e>>>=0,t||D(e,8,this.length),r.read(this,e,!0,52,8)},t.prototype.readDoubleBE=function(e,t){return e>>>=0,t||D(e,8,this.length),r.read(this,e,!1,52,8)},t.prototype.writeUIntLE=function(e,t,i,n){e=+e,t>>>=0,i>>>=0,n||L(this,e,t,i,Math.pow(2,8*i)-1,0);var a=1,r=0;for(this[t]=255&e;++r<i&&(a*=256);)this[t+r]=e/a&255;return t+i},t.prototype.writeUIntBE=function(e,t,i,n){e=+e,t>>>=0,i>>>=0,n||L(this,e,t,i,Math.pow(2,8*i)-1,0);var a=i-1,r=1;for(this[t+a]=255&e;--a>=0&&(r*=256);)this[t+a]=e/r&255;return t+i},t.prototype.writeUInt8=function(e,t,i){return e=+e,t>>>=0,i||L(this,e,t,1,255,0),this[t]=255&e,t+1},t.prototype.writeUInt16LE=function(e,t,i){return e=+e,t>>>=0,i||L(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},t.prototype.writeUInt16BE=function(e,t,i){return e=+e,t>>>=0,i||L(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},t.prototype.writeUInt32LE=function(e,t,i){return e=+e,t>>>=0,i||L(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},t.prototype.writeUInt32BE=function(e,t,i){return e=+e,t>>>=0,i||L(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},t.prototype.writeIntLE=function(e,t,i,n){if(e=+e,t>>>=0,!n){var a=Math.pow(2,8*i-1);L(this,e,t,i,a-1,-a)}var r=0,o=1,s=0;for(this[t]=255&e;++r<i&&(o*=256);)e<0&&0===s&&0!==this[t+r-1]&&(s=1),this[t+r]=(e/o>>0)-s&255;return t+i},t.prototype.writeIntBE=function(e,t,i,n){if(e=+e,t>>>=0,!n){var a=Math.pow(2,8*i-1);L(this,e,t,i,a-1,-a)}var r=i-1,o=1,s=0;for(this[t+r]=255&e;--r>=0&&(o*=256);)e<0&&0===s&&0!==this[t+r+1]&&(s=1),this[t+r]=(e/o>>0)-s&255;return t+i},t.prototype.writeInt8=function(e,t,i){return e=+e,t>>>=0,i||L(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},t.prototype.writeInt16LE=function(e,t,i){return e=+e,t>>>=0,i||L(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},t.prototype.writeInt16BE=function(e,t,i){return e=+e,t>>>=0,i||L(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},t.prototype.writeInt32LE=function(e,t,i){return e=+e,t>>>=0,i||L(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},t.prototype.writeInt32BE=function(e,t,i){return e=+e,t>>>=0,i||L(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},t.prototype.writeFloatLE=function(e,t,i){return $(this,e,t,!0,i)},t.prototype.writeFloatBE=function(e,t,i){return $(this,e,t,!1,i)},t.prototype.writeDoubleLE=function(e,t,i){return N(this,e,t,!0,i)},t.prototype.writeDoubleBE=function(e,t,i){return N(this,e,t,!1,i)},t.prototype.copy=function(e,i,n,a){if(!t.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),a||0===a||(a=this.length),i>=e.length&&(i=e.length),i||(i=0),a>0&&a<n&&(a=n),a===n)return 0;if(0===e.length||0===this.length)return 0;if(i<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(a<0)throw new RangeError("sourceEnd out of bounds");a>this.length&&(a=this.length),e.length-i<a-n&&(a=e.length-i+n);var r=a-n;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(i,n,a);else if(this===e&&n<i&&i<a)for(var o=r-1;o>=0;--o)e[o+i]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,a),i);return r},t.prototype.fill=function(e,i,n,a){if("string"==typeof e){if("string"==typeof i?(a=i,i=0,n=this.length):"string"==typeof n&&(a=n,n=this.length),void 0!==a&&"string"!=typeof a)throw new TypeError("encoding must be a string");if("string"==typeof a&&!t.isEncoding(a))throw new TypeError("Unknown encoding: "+a);if(1===e.length){var r=e.charCodeAt(0);("utf8"===a&&r<128||"latin1"===a)&&(e=r)}}else"number"==typeof e&&(e&=255);if(i<0||this.length<i||this.length<n)throw new RangeError("Out of range index");if(n<=i)return this;var o;if(i>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=i;o<n;++o)this[o]=e;else{var s=t.isBuffer(e)?e:t.from(e,a),l=s.length;if(0===l)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-i;++o)this[o+i]=s[o%l]}return this};var A=/[^+/0-9A-Za-z-_]/g;function P(e){return e<16?"0"+e.toString(16):e.toString(16)}function E(e,t){var i;t=t||1/0;for(var n=e.length,a=null,r=[],o=0;o<n;++o){if((i=e.charCodeAt(o))>55295&&i<57344){if(!a){if(i>56319){(t-=3)>-1&&r.push(239,191,189);continue}if(o+1===n){(t-=3)>-1&&r.push(239,191,189);continue}a=i;continue}if(i<56320){(t-=3)>-1&&r.push(239,191,189),a=i;continue}i=65536+(a-55296<<10|i-56320)}else a&&(t-=3)>-1&&r.push(239,191,189);if(a=null,i<128){if((t-=1)<0)break;r.push(i)}else if(i<2048){if((t-=2)<0)break;r.push(i>>6|192,63&i|128)}else if(i<65536){if((t-=3)<0)break;r.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;r.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return r}function M(e){return a.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(A,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function F(e,t,i,n){for(var a=0;a<n&&!(a+i>=t.length||a>=e.length);++a)t[a+i]=e[a];return a}function j(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function V(e){return e!=e}}).call(this,e("buffer").Buffer)},{"base64-js":182,buffer:216,ieee754:385}],217:[function(e,t,i){(function(e){"use strict";t.exports=function(t,i){for(var n=Math.min(t.length,i.length),a=new e(n),r=0;r<n;++r)a[r]=t[r]^i[r];return a}}).call(this,e("buffer").Buffer)},{buffer:216}],218:[function(e,t,i){"use strict";var n=e("safe-buffer").Buffer,a=e("stream").Transform,r=e("string_decoder").StringDecoder;function o(e){a.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}e("inherits")(o,a),o.prototype.update=function(e,t,i){"string"==typeof e&&(e=n.from(e,t));var a=this._update(e);return this.hashMode?this:(i&&(a=this._toString(a,i)),a)},o.prototype.setAutoPadding=function(){},o.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},o.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},o.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},o.prototype._transform=function(e,t,i){var n;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){n=e}finally{i(n)}},o.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},o.prototype._finalOrDigest=function(e){var t=this.__final()||n.alloc(0);return e&&(t=this._toString(t,e,!0)),t},o.prototype._toString=function(e,t,i){if(this._decoder||(this._decoder=new r(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var n=this._decoder.write(e);return i&&(n+=this._decoder.end()),n},t.exports=o},{inherits:387,"safe-buffer":494,stream:506,string_decoder:520}],219:[function(e,t,i){t.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},{}],220:[function(e,t,i){var n=e("../internals/is-object");t.exports=function(e){if(!n(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},{"../internals/is-object":263}],221:[function(e,t,i){var n=e("../internals/well-known-symbol"),a=e("../internals/object-create"),r=e("../internals/object-define-property"),o=n("unscopables"),s=Array.prototype;null==s[o]&&r.f(s,o,{configurable:!0,value:a(null)}),t.exports=function(e){s[o][e]=!0}},{"../internals/object-create":276,"../internals/object-define-property":278,"../internals/well-known-symbol":314}],222:[function(e,t,i){t.exports=function(e,t,i){if(!(e instanceof t))throw TypeError("Incorrect "+(i?i+" ":"")+"invocation");return e}},{}],223:[function(e,t,i){var n=e("../internals/is-object");t.exports=function(e){if(!n(e))throw TypeError(String(e)+" is not an object");return e}},{"../internals/is-object":263}],224:[function(e,t,i){var n=e("../internals/to-indexed-object"),a=e("../internals/to-length"),r=e("../internals/to-absolute-index"),o=function(e){return function(t,i,o){var s,l=n(t),c=a(l.length),u=r(o,c);if(e&&i!=i){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===i)return e||u||0;return!e&&-1}};t.exports={includes:o(!0),indexOf:o(!1)}},{"../internals/to-absolute-index":304,"../internals/to-indexed-object":305,"../internals/to-length":307}],225:[function(e,t,i){var n=e("../internals/function-bind-context"),a=e("../internals/indexed-object"),r=e("../internals/to-object"),o=e("../internals/to-length"),s=e("../internals/array-species-create"),l=[].push,c=function(e){var t=1==e,i=2==e,c=3==e,u=4==e,d=6==e,f=5==e||d;return function(h,p,m,g){for(var v,b,y=r(h),w=a(y),_=n(p,m,3),I=o(w.length),x=0,S=g||s,T=t?S(h,I):i?S(h,0):void 0;I>x;x++)if((f||x in w)&&(b=_(v=w[x],x,y),e))if(t)T[x]=b;else if(b)switch(e){case 3:return!0;case 5:return v;case 6:return x;case 2:l.call(T,v)}else if(u)return!1;return d?-1:c||u?u:T}};t.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6)}},{"../internals/array-species-create":227,"../internals/function-bind-context":248,"../internals/indexed-object":257,"../internals/to-length":307,"../internals/to-object":308}],226:[function(e,t,i){var n=e("../internals/descriptors"),a=e("../internals/fails"),r=e("../internals/has"),o=Object.defineProperty,s={},l=function(e){throw e};t.exports=function(e,t){if(r(s,e))return s[e];t||(t={});var i=[][e],c=!!r(t,"ACCESSORS")&&t.ACCESSORS,u=r(t,0)?t[0]:l,d=r(t,1)?t[1]:void 0;return s[e]=!!i&&!a((function(){if(c&&!n)return!0;var e={length:-1};c?o(e,1,{enumerable:!0,get:l}):e[1]=1,i.call(e,u,d)}))}},{"../internals/descriptors":240,"../internals/fails":247,"../internals/has":252}],227:[function(e,t,i){var n=e("../internals/is-object"),a=e("../internals/is-array"),r=e("../internals/well-known-symbol")("species");t.exports=function(e,t){var i;return a(e)&&("function"!=typeof(i=e.constructor)||i!==Array&&!a(i.prototype)?n(i)&&null===(i=i[r])&&(i=void 0):i=void 0),new(void 0===i?Array:i)(0===t?0:t)}},{"../internals/is-array":261,"../internals/is-object":263,"../internals/well-known-symbol":314}],228:[function(e,t,i){var n=e("../internals/an-object");t.exports=function(e,t,i,a){try{return a?t(n(i)[0],i[1]):t(i)}catch(t){var r=e.return;throw void 0!==r&&n(r.call(e)),t}}},{"../internals/an-object":223}],229:[function(e,t,i){var n=e("../internals/well-known-symbol")("iterator"),a=!1;try{var r=0,o={next:function(){return{done:!!r++}},return:function(){a=!0}};o[n]=function(){return this},Array.from(o,(function(){throw 2}))}catch(e){}t.exports=function(e,t){if(!t&&!a)return!1;var i=!1;try{var r={};r[n]=function(){return{next:function(){return{done:i=!0}}}},e(r)}catch(e){}return i}},{"../internals/well-known-symbol":314}],230:[function(e,t,i){var n={}.toString;t.exports=function(e){return n.call(e).slice(8,-1)}},{}],231:[function(e,t,i){var n=e("../internals/to-string-tag-support"),a=e("../internals/classof-raw"),r=e("../internals/well-known-symbol")("toStringTag"),o="Arguments"==a(function(){return arguments}());t.exports=n?a:function(e){var t,i,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(i=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),r))?i:o?a(t):"Object"==(n=a(t))&&"function"==typeof t.callee?"Arguments":n}},{"../internals/classof-raw":230,"../internals/to-string-tag-support":310,"../internals/well-known-symbol":314}],232:[function(e,t,i){var n=e("../internals/has"),a=e("../internals/own-keys"),r=e("../internals/object-get-own-property-descriptor"),o=e("../internals/object-define-property");t.exports=function(e,t){for(var i=a(t),s=o.f,l=r.f,c=0;c<i.length;c++){var u=i[c];n(e,u)||s(e,u,l(t,u))}}},{"../internals/has":252,"../internals/object-define-property":278,"../internals/object-get-own-property-descriptor":279,"../internals/own-keys":289}],233:[function(e,t,i){var n=e("../internals/well-known-symbol")("match");t.exports=function(e){var t=/./;try{"/./"[e](t)}catch(i){try{return t[n]=!1,"/./"[e](t)}catch(e){}}return!1}},{"../internals/well-known-symbol":314}],234:[function(e,t,i){var n=e("../internals/fails");t.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},{"../internals/fails":247}],235:[function(e,t,i){"use strict";var n=e("../internals/iterators-core").IteratorPrototype,a=e("../internals/object-create"),r=e("../internals/create-property-descriptor"),o=e("../internals/set-to-string-tag"),s=e("../internals/iterators"),l=function(){return this};t.exports=function(e,t,i){var c=t+" Iterator";return e.prototype=a(n,{next:r(1,i)}),o(e,c,!1,!0),s[c]=l,e}},{"../internals/create-property-descriptor":237,"../internals/iterators":268,"../internals/iterators-core":267,"../internals/object-create":276,"../internals/set-to-string-tag":298}],236:[function(e,t,i){var n=e("../internals/descriptors"),a=e("../internals/object-define-property"),r=e("../internals/create-property-descriptor");t.exports=n?function(e,t,i){return a.f(e,t,r(1,i))}:function(e,t,i){return e[t]=i,e}},{"../internals/create-property-descriptor":237,"../internals/descriptors":240,"../internals/object-define-property":278}],237:[function(e,t,i){t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},{}],238:[function(e,t,i){"use strict";var n=e("../internals/export"),a=e("../internals/create-iterator-constructor"),r=e("../internals/object-get-prototype-of"),o=e("../internals/object-set-prototype-of"),s=e("../internals/set-to-string-tag"),l=e("../internals/create-non-enumerable-property"),c=e("../internals/redefine"),u=e("../internals/well-known-symbol"),d=e("../internals/is-pure"),f=e("../internals/iterators"),h=e("../internals/iterators-core"),p=h.IteratorPrototype,m=h.BUGGY_SAFARI_ITERATORS,g=u("iterator"),v=function(){return this};t.exports=function(e,t,i,u,h,b,y){a(i,t,u);var w,_,I,x=function(e){if(e===h&&R)return R;if(!m&&e in C)return C[e];switch(e){case"keys":case"values":case"entries":return function(){return new i(this,e)}}return function(){return new i(this)}},S=t+" Iterator",T=!1,C=e.prototype,k=C[g]||C["@@iterator"]||h&&C[h],R=!m&&k||x(h),D="Array"==t&&C.entries||k;if(D&&(w=r(D.call(new e)),p!==Object.prototype&&w.next&&(d||r(w)===p||(o?o(w,p):"function"!=typeof w[g]&&l(w,g,v)),s(w,S,!0,!0),d&&(f[S]=v))),"values"==h&&k&&"values"!==k.name&&(T=!0,R=function(){return k.call(this)}),d&&!y||C[g]===R||l(C,g,R),f[t]=R,h)if(_={values:x("values"),keys:b?R:x("keys"),entries:x("entries")},y)for(I in _)(m||T||!(I in C))&&c(C,I,_[I]);else n({target:t,proto:!0,forced:m||T},_);return _}},{"../internals/create-iterator-constructor":235,"../internals/create-non-enumerable-property":236,"../internals/export":246,"../internals/is-pure":264,"../internals/iterators":268,"../internals/iterators-core":267,"../internals/object-get-prototype-of":283,"../internals/object-set-prototype-of":287,"../internals/redefine":294,"../internals/set-to-string-tag":298,"../internals/well-known-symbol":314}],239:[function(e,t,i){var n=e("../internals/path"),a=e("../internals/has"),r=e("../internals/well-known-symbol-wrapped"),o=e("../internals/object-define-property").f;t.exports=function(e){var t=n.Symbol||(n.Symbol={});a(t,e)||o(t,e,{value:r.f(e)})}},{"../internals/has":252,"../internals/object-define-property":278,"../internals/path":290,"../internals/well-known-symbol-wrapped":313}],240:[function(e,t,i){var n=e("../internals/fails");t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},{"../internals/fails":247}],241:[function(e,t,i){var n=e("../internals/global"),a=e("../internals/is-object"),r=n.document,o=a(r)&&a(r.createElement);t.exports=function(e){return o?r.createElement(e):{}}},{"../internals/global":251,"../internals/is-object":263}],242:[function(e,t,i){var n=e("../internals/engine-user-agent");t.exports=/(iphone|ipod|ipad).*applewebkit/i.test(n)},{"../internals/engine-user-agent":243}],243:[function(e,t,i){var n=e("../internals/get-built-in");t.exports=n("navigator","userAgent")||""},{"../internals/get-built-in":249}],244:[function(e,t,i){var n,a,r=e("../internals/global"),o=e("../internals/engine-user-agent"),s=r.process,l=s&&s.versions,c=l&&l.v8;c?a=(n=c.split("."))[0]+n[1]:o&&(!(n=o.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=o.match(/Chrome\/(\d+)/))&&(a=n[1]),t.exports=a&&+a},{"../internals/engine-user-agent":243,"../internals/global":251}],245:[function(e,t,i){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],246:[function(e,t,i){var n=e("../internals/global"),a=e("../internals/object-get-own-property-descriptor").f,r=e("../internals/create-non-enumerable-property"),o=e("../internals/redefine"),s=e("../internals/set-global"),l=e("../internals/copy-constructor-properties"),c=e("../internals/is-forced");t.exports=function(e,t){var i,u,d,f,h,p=e.target,m=e.global,g=e.stat;if(i=m?n:g?n[p]||s(p,{}):(n[p]||{}).prototype)for(u in t){if(f=t[u],d=e.noTargetGet?(h=a(i,u))&&h.value:i[u],!c(m?u:p+(g?".":"#")+u,e.forced)&&void 0!==d){if(typeof f==typeof d)continue;l(f,d)}(e.sham||d&&d.sham)&&r(f,"sham",!0),o(i,u,f,e)}}},{"../internals/copy-constructor-properties":232,"../internals/create-non-enumerable-property":236,"../internals/global":251,"../internals/is-forced":262,"../internals/object-get-own-property-descriptor":279,"../internals/redefine":294,"../internals/set-global":296}],247:[function(e,t,i){t.exports=function(e){try{return!!e()}catch(e){return!0}}},{}],248:[function(e,t,i){var n=e("../internals/a-function");t.exports=function(e,t,i){if(n(e),void 0===t)return e;switch(i){case 0:return function(){return e.call(t)};case 1:return function(i){return e.call(t,i)};case 2:return function(i,n){return e.call(t,i,n)};case 3:return function(i,n,a){return e.call(t,i,n,a)}}return function(){return e.apply(t,arguments)}}},{"../internals/a-function":219}],249:[function(e,t,i){var n=e("../internals/path"),a=e("../internals/global"),r=function(e){return"function"==typeof e?e:void 0};t.exports=function(e,t){return arguments.length<2?r(n[e])||r(a[e]):n[e]&&n[e][t]||a[e]&&a[e][t]}},{"../internals/global":251,"../internals/path":290}],250:[function(e,t,i){var n=e("../internals/classof"),a=e("../internals/iterators"),r=e("../internals/well-known-symbol")("iterator");t.exports=function(e){if(null!=e)return e[r]||e["@@iterator"]||a[n(e)]}},{"../internals/classof":231,"../internals/iterators":268,"../internals/well-known-symbol":314}],251:[function(e,i,n){(function(e){var t=function(e){return e&&e.Math==Math&&e};i.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof e&&e)||Function("return this")()}).call(this,"undefined"!=typeof t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],252:[function(e,t,i){var n={}.hasOwnProperty;t.exports=function(e,t){return n.call(e,t)}},{}],253:[function(e,t,i){t.exports={}},{}],254:[function(e,t,i){var n=e("../internals/global");t.exports=function(e,t){var i=n.console;i&&i.error&&(1===arguments.length?i.error(e):i.error(e,t))}},{"../internals/global":251}],255:[function(e,t,i){var n=e("../internals/get-built-in");t.exports=n("document","documentElement")},{"../internals/get-built-in":249}],256:[function(e,t,i){var n=e("../internals/descriptors"),a=e("../internals/fails"),r=e("../internals/document-create-element");t.exports=!n&&!a((function(){return 7!=Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a}))},{"../internals/descriptors":240,"../internals/document-create-element":241,"../internals/fails":247}],257:[function(e,t,i){var n=e("../internals/fails"),a=e("../internals/classof-raw"),r="".split;t.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==a(e)?r.call(e,""):Object(e)}:Object},{"../internals/classof-raw":230,"../internals/fails":247}],258:[function(e,t,i){var n=e("../internals/shared-store"),a=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(e){return a.call(e)}),t.exports=n.inspectSource},{"../internals/shared-store":300}],259:[function(e,t,i){var n,a,r,o=e("../internals/native-weak-map"),s=e("../internals/global"),l=e("../internals/is-object"),c=e("../internals/create-non-enumerable-property"),u=e("../internals/has"),d=e("../internals/shared-key"),f=e("../internals/hidden-keys"),h=s.WeakMap;if(o){var p=new h,m=p.get,g=p.has,v=p.set;n=function(e,t){return v.call(p,e,t),t},a=function(e){return m.call(p,e)||{}},r=function(e){return g.call(p,e)}}else{var b=d("state");f[b]=!0,n=function(e,t){return c(e,b,t),t},a=function(e){return u(e,b)?e[b]:{}},r=function(e){return u(e,b)}}t.exports={set:n,get:a,has:r,enforce:function(e){return r(e)?a(e):n(e,{})},getterFor:function(e){return function(t){var i;if(!l(t)||(i=a(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return i}}}},{"../internals/create-non-enumerable-property":236,"../internals/global":251,"../internals/has":252,"../internals/hidden-keys":253,"../internals/is-object":263,"../internals/native-weak-map":272,"../internals/shared-key":299}],260:[function(e,t,i){var n=e("../internals/well-known-symbol"),a=e("../internals/iterators"),r=n("iterator"),o=Array.prototype;t.exports=function(e){return void 0!==e&&(a.Array===e||o[r]===e)}},{"../internals/iterators":268,"../internals/well-known-symbol":314}],261:[function(e,t,i){var n=e("../internals/classof-raw");t.exports=Array.isArray||function(e){return"Array"==n(e)}},{"../internals/classof-raw":230}],262:[function(e,t,i){var n=e("../internals/fails"),a=/#|\.prototype\./,r=function(e,t){var i=s[o(e)];return i==c||i!=l&&("function"==typeof t?n(t):!!t)},o=r.normalize=function(e){return String(e).replace(a,".").toLowerCase()},s=r.data={},l=r.NATIVE="N",c=r.POLYFILL="P";t.exports=r},{"../internals/fails":247}],263:[function(e,t,i){t.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},{}],264:[function(e,t,i){t.exports=!1},{}],265:[function(e,t,i){var n=e("../internals/is-object"),a=e("../internals/classof-raw"),r=e("../internals/well-known-symbol")("match");t.exports=function(e){var t;return n(e)&&(void 0!==(t=e[r])?!!t:"RegExp"==a(e))}},{"../internals/classof-raw":230,"../internals/is-object":263,"../internals/well-known-symbol":314}],266:[function(e,t,i){var n=e("../internals/an-object"),a=e("../internals/is-array-iterator-method"),r=e("../internals/to-length"),o=e("../internals/function-bind-context"),s=e("../internals/get-iterator-method"),l=e("../internals/call-with-safe-iteration-closing"),c=function(e,t){this.stopped=e,this.result=t};(t.exports=function(e,t,i,u,d){var f,h,p,m,g,v,b,y=o(t,i,u?2:1);if(d)f=e;else{if("function"!=typeof(h=s(e)))throw TypeError("Target is not iterable");if(a(h)){for(p=0,m=r(e.length);m>p;p++)if((g=u?y(n(b=e[p])[0],b[1]):y(e[p]))&&g instanceof c)return g;return new c(!1)}f=h.call(e)}for(v=f.next;!(b=v.call(f)).done;)if("object"==typeof(g=l(f,y,b.value,u))&&g&&g instanceof c)return g;return new c(!1)}).stop=function(e){return new c(!0,e)}},{"../internals/an-object":223,"../internals/call-with-safe-iteration-closing":228,"../internals/function-bind-context":248,"../internals/get-iterator-method":250,"../internals/is-array-iterator-method":260,"../internals/to-length":307}],267:[function(e,t,i){"use strict";var n,a,r,o=e("../internals/object-get-prototype-of"),s=e("../internals/create-non-enumerable-property"),l=e("../internals/has"),c=e("../internals/well-known-symbol"),u=e("../internals/is-pure"),d=c("iterator"),f=!1;[].keys&&("next"in(r=[].keys())?(a=o(o(r)))!==Object.prototype&&(n=a):f=!0),null==n&&(n={}),u||l(n,d)||s(n,d,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:f}},{"../internals/create-non-enumerable-property":236,"../internals/has":252,"../internals/is-pure":264,"../internals/object-get-prototype-of":283,"../internals/well-known-symbol":314}],268:[function(e,t,i){arguments[4][253][0].apply(i,arguments)},{dup:253}],269:[function(e,t,i){var n,a,r,o,s,l,c,u,d=e("../internals/global"),f=e("../internals/object-get-own-property-descriptor").f,h=e("../internals/classof-raw"),p=e("../internals/task").set,m=e("../internals/engine-is-ios"),g=d.MutationObserver||d.WebKitMutationObserver,v=d.process,b=d.Promise,y="process"==h(v),w=f(d,"queueMicrotask"),_=w&&w.value;_||(n=function(){var e,t;for(y&&(e=v.domain)&&e.exit();a;){t=a.fn,a=a.next;try{t()}catch(e){throw a?o():r=void 0,e}}r=void 0,e&&e.enter()},y?o=function(){v.nextTick(n)}:g&&!m?(s=!0,l=document.createTextNode(""),new g(n).observe(l,{characterData:!0}),o=function(){l.data=s=!s}):b&&b.resolve?(c=b.resolve(void 0),u=c.then,o=function(){u.call(c,n)}):o=function(){p.call(d,n)}),t.exports=_||function(e){var t={fn:e,next:void 0};r&&(r.next=t),a||(a=t,o()),r=t}},{"../internals/classof-raw":230,"../internals/engine-is-ios":242,"../internals/global":251,"../internals/object-get-own-property-descriptor":279,"../internals/task":303}],270:[function(e,t,i){var n=e("../internals/global");t.exports=n.Promise},{"../internals/global":251}],271:[function(e,t,i){var n=e("../internals/fails");t.exports=!!Object.getOwnPropertySymbols&&!n((function(){return!String(Symbol())}))},{"../internals/fails":247}],272:[function(e,t,i){var n=e("../internals/global"),a=e("../internals/inspect-source"),r=n.WeakMap;t.exports="function"==typeof r&&/native code/.test(a(r))},{"../internals/global":251,"../internals/inspect-source":258}],273:[function(e,t,i){"use strict";var n=e("../internals/a-function"),a=function(e){var t,i;this.promise=new e((function(e,n){if(void 0!==t||void 0!==i)throw TypeError("Bad Promise constructor");t=e,i=n})),this.resolve=n(t),this.reject=n(i)};t.exports.f=function(e){return new a(e)}},{"../internals/a-function":219}],274:[function(e,t,i){var n=e("../internals/is-regexp");t.exports=function(e){if(n(e))throw TypeError("The method doesn't accept regular expressions");return e}},{"../internals/is-regexp":265}],275:[function(e,t,i){"use strict";var n=e("../internals/descriptors"),a=e("../internals/fails"),r=e("../internals/object-keys"),o=e("../internals/object-get-own-property-symbols"),s=e("../internals/object-property-is-enumerable"),l=e("../internals/to-object"),c=e("../internals/indexed-object"),u=Object.assign,d=Object.defineProperty;t.exports=!u||a((function(){if(n&&1!==u({b:1},u(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},i=Symbol();return e[i]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!=u({},e)[i]||"abcdefghijklmnopqrst"!=r(u({},t)).join("")}))?function(e,t){for(var i=l(e),a=arguments.length,u=1,d=o.f,f=s.f;a>u;)for(var h,p=c(arguments[u++]),m=d?r(p).concat(d(p)):r(p),g=m.length,v=0;g>v;)h=m[v++],n&&!f.call(p,h)||(i[h]=p[h]);return i}:u},{"../internals/descriptors":240,"../internals/fails":247,"../internals/indexed-object":257,"../internals/object-get-own-property-symbols":282,"../internals/object-keys":285,"../internals/object-property-is-enumerable":286,"../internals/to-object":308}],276:[function(e,t,i){var n,a=e("../internals/an-object"),r=e("../internals/object-define-properties"),o=e("../internals/enum-bug-keys"),s=e("../internals/hidden-keys"),l=e("../internals/html"),c=e("../internals/document-create-element"),u=e("../internals/shared-key"),d=u("IE_PROTO"),f=function(){},h=function(e){return"<script>"+e+"<\/script>"},p=function(){try{n=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;p=n?function(e){e.write(h("")),e.close();var t=e.parentWindow.Object;return e=null,t}(n):((t=c("iframe")).style.display="none",l.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(h("document.F=Object")),e.close(),e.F);for(var i=o.length;i--;)delete p.prototype[o[i]];return p()};s[d]=!0,t.exports=Object.create||function(e,t){var i;return null!==e?(f.prototype=a(e),i=new f,f.prototype=null,i[d]=e):i=p(),void 0===t?i:r(i,t)}},{"../internals/an-object":223,"../internals/document-create-element":241,"../internals/enum-bug-keys":245,"../internals/hidden-keys":253,"../internals/html":255,"../internals/object-define-properties":277,"../internals/shared-key":299}],277:[function(e,t,i){var n=e("../internals/descriptors"),a=e("../internals/object-define-property"),r=e("../internals/an-object"),o=e("../internals/object-keys");t.exports=n?Object.defineProperties:function(e,t){r(e);for(var i,n=o(t),s=n.length,l=0;s>l;)a.f(e,i=n[l++],t[i]);return e}},{"../internals/an-object":223,"../internals/descriptors":240,"../internals/object-define-property":278,"../internals/object-keys":285}],278:[function(e,t,i){var n=e("../internals/descriptors"),a=e("../internals/ie8-dom-define"),r=e("../internals/an-object"),o=e("../internals/to-primitive"),s=Object.defineProperty;i.f=n?s:function(e,t,i){if(r(e),t=o(t,!0),r(i),a)try{return s(e,t,i)}catch(e){}if("get"in i||"set"in i)throw TypeError("Accessors not supported");return"value"in i&&(e[t]=i.value),e}},{"../internals/an-object":223,"../internals/descriptors":240,"../internals/ie8-dom-define":256,"../internals/to-primitive":309}],279:[function(e,t,i){var n=e("../internals/descriptors"),a=e("../internals/object-property-is-enumerable"),r=e("../internals/create-property-descriptor"),o=e("../internals/to-indexed-object"),s=e("../internals/to-primitive"),l=e("../internals/has"),c=e("../internals/ie8-dom-define"),u=Object.getOwnPropertyDescriptor;i.f=n?u:function(e,t){if(e=o(e),t=s(t,!0),c)try{return u(e,t)}catch(e){}if(l(e,t))return r(!a.f.call(e,t),e[t])}},{"../internals/create-property-descriptor":237,"../internals/descriptors":240,"../internals/has":252,"../internals/ie8-dom-define":256,"../internals/object-property-is-enumerable":286,"../internals/to-indexed-object":305,"../internals/to-primitive":309}],280:[function(e,t,i){var n=e("../internals/to-indexed-object"),a=e("../internals/object-get-own-property-names").f,r={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(e){return o&&"[object Window]"==r.call(e)?function(e){try{return a(e)}catch(e){return o.slice()}}(e):a(n(e))}},{"../internals/object-get-own-property-names":281,"../internals/to-indexed-object":305}],281:[function(e,t,i){var n=e("../internals/object-keys-internal"),a=e("../internals/enum-bug-keys").concat("length","prototype");i.f=Object.getOwnPropertyNames||function(e){return n(e,a)}},{"../internals/enum-bug-keys":245,"../internals/object-keys-internal":284}],282:[function(e,t,i){i.f=Object.getOwnPropertySymbols},{}],283:[function(e,t,i){var n=e("../internals/has"),a=e("../internals/to-object"),r=e("../internals/shared-key"),o=e("../internals/correct-prototype-getter"),s=r("IE_PROTO"),l=Object.prototype;t.exports=o?Object.getPrototypeOf:function(e){return e=a(e),n(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?l:null}},{"../internals/correct-prototype-getter":234,"../internals/has":252,"../internals/shared-key":299,"../internals/to-object":308}],284:[function(e,t,i){var n=e("../internals/has"),a=e("../internals/to-indexed-object"),r=e("../internals/array-includes").indexOf,o=e("../internals/hidden-keys");t.exports=function(e,t){var i,s=a(e),l=0,c=[];for(i in s)!n(o,i)&&n(s,i)&&c.push(i);for(;t.length>l;)n(s,i=t[l++])&&(~r(c,i)||c.push(i));return c}},{"../internals/array-includes":224,"../internals/has":252,"../internals/hidden-keys":253,"../internals/to-indexed-object":305}],285:[function(e,t,i){var n=e("../internals/object-keys-internal"),a=e("../internals/enum-bug-keys");t.exports=Object.keys||function(e){return n(e,a)}},{"../internals/enum-bug-keys":245,"../internals/object-keys-internal":284}],286:[function(e,t,i){"use strict";var n={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,r=a&&!n.call({1:2},1);i.f=r?function(e){var t=a(this,e);return!!t&&t.enumerable}:n},{}],287:[function(e,t,i){var n=e("../internals/an-object"),a=e("../internals/a-possible-prototype");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,i={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(i,[]),t=i instanceof Array}catch(e){}return function(i,r){return n(i),a(r),t?e.call(i,r):i.__proto__=r,i}}():void 0)},{"../internals/a-possible-prototype":220,"../internals/an-object":223}],288:[function(e,t,i){var n=e("../internals/descriptors"),a=e("../internals/object-keys"),r=e("../internals/to-indexed-object"),o=e("../internals/object-property-is-enumerable").f,s=function(e){return function(t){for(var i,s=r(t),l=a(s),c=l.length,u=0,d=[];c>u;)i=l[u++],n&&!o.call(s,i)||d.push(e?[i,s[i]]:s[i]);return d}};t.exports={entries:s(!0),values:s(!1)}},{"../internals/descriptors":240,"../internals/object-keys":285,"../internals/object-property-is-enumerable":286,"../internals/to-indexed-object":305}],289:[function(e,t,i){var n=e("../internals/get-built-in"),a=e("../internals/object-get-own-property-names"),r=e("../internals/object-get-own-property-symbols"),o=e("../internals/an-object");t.exports=n("Reflect","ownKeys")||function(e){var t=a.f(o(e)),i=r.f;return i?t.concat(i(e)):t}},{"../internals/an-object":223,"../internals/get-built-in":249,"../internals/object-get-own-property-names":281,"../internals/object-get-own-property-symbols":282}],290:[function(e,t,i){var n=e("../internals/global");t.exports=n},{"../internals/global":251}],291:[function(e,t,i){t.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},{}],292:[function(e,t,i){var n=e("../internals/an-object"),a=e("../internals/is-object"),r=e("../internals/new-promise-capability");t.exports=function(e,t){if(n(e),a(t)&&t.constructor===e)return t;var i=r.f(e);return(0,i.resolve)(t),i.promise}},{"../internals/an-object":223,"../internals/is-object":263,"../internals/new-promise-capability":273}],293:[function(e,t,i){var n=e("../internals/redefine");t.exports=function(e,t,i){for(var a in t)n(e,a,t[a],i);return e}},{"../internals/redefine":294}],294:[function(e,t,i){var n=e("../internals/global"),a=e("../internals/create-non-enumerable-property"),r=e("../internals/has"),o=e("../internals/set-global"),s=e("../internals/inspect-source"),l=e("../internals/internal-state"),c=l.get,u=l.enforce,d=String(String).split("String");(t.exports=function(e,t,i,s){var l=!!s&&!!s.unsafe,c=!!s&&!!s.enumerable,f=!!s&&!!s.noTargetGet;"function"==typeof i&&("string"!=typeof t||r(i,"name")||a(i,"name",t),u(i).source=d.join("string"==typeof t?t:"")),e!==n?(l?!f&&e[t]&&(c=!0):delete e[t],c?e[t]=i:a(e,t,i)):c?e[t]=i:o(t,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||s(this)}))},{"../internals/create-non-enumerable-property":236,"../internals/global":251,"../internals/has":252,"../internals/inspect-source":258,"../internals/internal-state":259,"../internals/set-global":296}],295:[function(e,t,i){t.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},{}],296:[function(e,t,i){var n=e("../internals/global"),a=e("../internals/create-non-enumerable-property");t.exports=function(e,t){try{a(n,e,t)}catch(i){n[e]=t}return t}},{"../internals/create-non-enumerable-property":236,"../internals/global":251}],297:[function(e,t,i){"use strict";var n=e("../internals/get-built-in"),a=e("../internals/object-define-property"),r=e("../internals/well-known-symbol"),o=e("../internals/descriptors"),s=r("species");t.exports=function(e){var t=n(e),i=a.f;o&&t&&!t[s]&&i(t,s,{configurable:!0,get:function(){return this}})}},{"../internals/descriptors":240,"../internals/get-built-in":249,"../internals/object-define-property":278,"../internals/well-known-symbol":314}],298:[function(e,t,i){var n=e("../internals/object-define-property").f,a=e("../internals/has"),r=e("../internals/well-known-symbol")("toStringTag");t.exports=function(e,t,i){e&&!a(e=i?e:e.prototype,r)&&n(e,r,{configurable:!0,value:t})}},{"../internals/has":252,"../internals/object-define-property":278,"../internals/well-known-symbol":314}],299:[function(e,t,i){var n=e("../internals/shared"),a=e("../internals/uid"),r=n("keys");t.exports=function(e){return r[e]||(r[e]=a(e))}},{"../internals/shared":301,"../internals/uid":311}],300:[function(e,t,i){var n=e("../internals/global"),a=e("../internals/set-global"),r=n["__core-js_shared__"]||a("__core-js_shared__",{});t.exports=r},{"../internals/global":251,"../internals/set-global":296}],301:[function(e,t,i){var n=e("../internals/is-pure"),a=e("../internals/shared-store");(t.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:n?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},{"../internals/is-pure":264,"../internals/shared-store":300}],302:[function(e,t,i){var n=e("../internals/an-object"),a=e("../internals/a-function"),r=e("../internals/well-known-symbol")("species");t.exports=function(e,t){var i,o=n(e).constructor;return void 0===o||null==(i=n(o)[r])?t:a(i)}},{"../internals/a-function":219,"../internals/an-object":223,"../internals/well-known-symbol":314}],303:[function(e,t,i){var n,a,r,o=e("../internals/global"),s=e("../internals/fails"),l=e("../internals/classof-raw"),c=e("../internals/function-bind-context"),u=e("../internals/html"),d=e("../internals/document-create-element"),f=e("../internals/engine-is-ios"),h=o.location,p=o.setImmediate,m=o.clearImmediate,g=o.process,v=o.MessageChannel,b=o.Dispatch,y=0,w={},_=function(e){if(w.hasOwnProperty(e)){var t=w[e];delete w[e],t()}},I=function(e){return function(){_(e)}},x=function(e){_(e.data)},S=function(e){o.postMessage(e+"",h.protocol+"//"+h.host)};p&&m||(p=function(e){for(var t=[],i=1;arguments.length>i;)t.push(arguments[i++]);return w[++y]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},n(y),y},m=function(e){delete w[e]},"process"==l(g)?n=function(e){g.nextTick(I(e))}:b&&b.now?n=function(e){b.now(I(e))}:v&&!f?(r=(a=new v).port2,a.port1.onmessage=x,n=c(r.postMessage,r,1)):!o.addEventListener||"function"!=typeof postMessage||o.importScripts||s(S)||"file:"===h.protocol?n="onreadystatechange"in d("script")?function(e){u.appendChild(d("script")).onreadystatechange=function(){u.removeChild(this),_(e)}}:function(e){setTimeout(I(e),0)}:(n=S,o.addEventListener("message",x,!1))),t.exports={set:p,clear:m}},{"../internals/classof-raw":230,"../internals/document-create-element":241,"../internals/engine-is-ios":242,"../internals/fails":247,"../internals/function-bind-context":248,"../internals/global":251,"../internals/html":255}],304:[function(e,t,i){var n=e("../internals/to-integer"),a=Math.max,r=Math.min;t.exports=function(e,t){var i=n(e);return i<0?a(i+t,0):r(i,t)}},{"../internals/to-integer":306}],305:[function(e,t,i){var n=e("../internals/indexed-object"),a=e("../internals/require-object-coercible");t.exports=function(e){return n(a(e))}},{"../internals/indexed-object":257,"../internals/require-object-coercible":295}],306:[function(e,t,i){var n=Math.ceil,a=Math.floor;t.exports=function(e){return isNaN(e=+e)?0:(e>0?a:n)(e)}},{}],307:[function(e,t,i){var n=e("../internals/to-integer"),a=Math.min;t.exports=function(e){return e>0?a(n(e),9007199254740991):0}},{"../internals/to-integer":306}],308:[function(e,t,i){var n=e("../internals/require-object-coercible");t.exports=function(e){return Object(n(e))}},{"../internals/require-object-coercible":295}],309:[function(e,t,i){var n=e("../internals/is-object");t.exports=function(e,t){if(!n(e))return e;var i,a;if(t&&"function"==typeof(i=e.toString)&&!n(a=i.call(e)))return a;if("function"==typeof(i=e.valueOf)&&!n(a=i.call(e)))return a;if(!t&&"function"==typeof(i=e.toString)&&!n(a=i.call(e)))return a;throw TypeError("Can't convert object to primitive value")}},{"../internals/is-object":263}],310:[function(e,t,i){var n={};n[e("../internals/well-known-symbol")("toStringTag")]="z",t.exports="[object z]"===String(n)},{"../internals/well-known-symbol":314}],311:[function(e,t,i){var n=0,a=Math.random();t.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+a).toString(36)}},{}],312:[function(e,t,i){var n=e("../internals/native-symbol");t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},{"../internals/native-symbol":271}],313:[function(e,t,i){var n=e("../internals/well-known-symbol");i.f=n},{"../internals/well-known-symbol":314}],314:[function(e,t,i){var n=e("../internals/global"),a=e("../internals/shared"),r=e("../internals/has"),o=e("../internals/uid"),s=e("../internals/native-symbol"),l=e("../internals/use-symbol-as-uid"),c=a("wks"),u=n.Symbol,d=l?u:u&&u.withoutSetter||o;t.exports=function(e){return r(c,e)||(s&&r(u,e)?c[e]=u[e]:c[e]=d("Symbol."+e)),c[e]}},{"../internals/global":251,"../internals/has":252,"../internals/native-symbol":271,"../internals/shared":301,"../internals/uid":311,"../internals/use-symbol-as-uid":312}],315:[function(e,t,i){"use strict";var n=e("../internals/export"),a=e("../internals/array-iteration").findIndex,r=e("../internals/add-to-unscopables"),o=e("../internals/array-method-uses-to-length"),s=!0,l=o("findIndex");"findIndex"in[]&&Array(1).findIndex((function(){s=!1})),n({target:"Array",proto:!0,forced:s||!l},{findIndex:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),r("findIndex")},{"../internals/add-to-unscopables":221,"../internals/array-iteration":225,"../internals/array-method-uses-to-length":226,"../internals/export":246}],316:[function(e,t,i){"use strict";var n=e("../internals/export"),a=e("../internals/array-iteration").find,r=e("../internals/add-to-unscopables"),o=e("../internals/array-method-uses-to-length"),s=!0,l=o("find");"find"in[]&&Array(1).find((function(){s=!1})),n({target:"Array",proto:!0,forced:s||!l},{find:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),r("find")},{"../internals/add-to-unscopables":221,"../internals/array-iteration":225,"../internals/array-method-uses-to-length":226,"../internals/export":246}],317:[function(e,t,i){"use strict";var n=e("../internals/export"),a=e("../internals/array-includes").includes,r=e("../internals/add-to-unscopables");n({target:"Array",proto:!0,forced:!e("../internals/array-method-uses-to-length")("indexOf",{ACCESSORS:!0,1:0})},{includes:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),r("includes")},{"../internals/add-to-unscopables":221,"../internals/array-includes":224,"../internals/array-method-uses-to-length":226,"../internals/export":246}],318:[function(e,t,i){"use strict";var n=e("../internals/to-indexed-object"),a=e("../internals/add-to-unscopables"),r=e("../internals/iterators"),o=e("../internals/internal-state"),s=e("../internals/define-iterator"),l=o.set,c=o.getterFor("Array Iterator");t.exports=s(Array,"Array",(function(e,t){l(this,{type:"Array Iterator",target:n(e),index:0,kind:t})}),(function(){var e=c(this),t=e.target,i=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==i?{value:n,done:!1}:"values"==i?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values"),r.Arguments=r.Array,a("keys"),a("values"),a("entries")},{"../internals/add-to-unscopables":221,"../internals/define-iterator":238,"../internals/internal-state":259,"../internals/iterators":268,"../internals/to-indexed-object":305}],319:[function(e,t,i){e("../internals/export")({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},{"../internals/export":246}],320:[function(e,t,i){var n=e("../internals/export"),a=e("../internals/object-assign");n({target:"Object",stat:!0,forced:Object.assign!==a},{assign:a})},{"../internals/export":246,"../internals/object-assign":275}],321:[function(e,t,i){var n=e("../internals/export"),a=e("../internals/to-object"),r=e("../internals/object-keys");n({target:"Object",stat:!0,forced:e("../internals/fails")((function(){r(1)}))},{keys:function(e){return r(a(e))}})},{"../internals/export":246,"../internals/fails":247,"../internals/object-keys":285,"../internals/to-object":308}],322:[function(e,t,i){var n=e("../internals/export"),a=e("../internals/object-to-array").values;n({target:"Object",stat:!0},{values:function(e){return a(e)}})},{"../internals/export":246,"../internals/object-to-array":288}],323:[function(e,t,i){"use strict";var n,a,r,o,s=e("../internals/export"),l=e("../internals/is-pure"),c=e("../internals/global"),u=e("../internals/get-built-in"),d=e("../internals/native-promise-constructor"),f=e("../internals/redefine"),h=e("../internals/redefine-all"),p=e("../internals/set-to-string-tag"),m=e("../internals/set-species"),g=e("../internals/is-object"),v=e("../internals/a-function"),b=e("../internals/an-instance"),y=e("../internals/classof-raw"),w=e("../internals/inspect-source"),_=e("../internals/iterate"),I=e("../internals/check-correctness-of-iteration"),x=e("../internals/species-constructor"),S=e("../internals/task").set,T=e("../internals/microtask"),C=e("../internals/promise-resolve"),k=e("../internals/host-report-errors"),R=e("../internals/new-promise-capability"),D=e("../internals/perform"),L=e("../internals/internal-state"),O=e("../internals/is-forced"),$=e("../internals/well-known-symbol"),N=e("../internals/engine-v8-version"),A=$("species"),P="Promise",E=L.get,M=L.set,F=L.getterFor(P),j=d,V=c.TypeError,q=c.document,z=c.process,B=u("fetch"),U=R.f,Q=U,H="process"==y(z),G=!!(q&&q.createEvent&&c.dispatchEvent),W=O(P,(function(){if(w(j)===String(j)){if(66===N)return!0;if(!H&&"function"!=typeof PromiseRejectionEvent)return!0}if(l&&!j.prototype.finally)return!0;if(N>=51&&/native code/.test(j))return!1;var e=j.resolve(1),t=function(e){e((function(){}),(function(){}))};return(e.constructor={})[A]=t,!(e.then((function(){}))instanceof t)})),Y=W||!I((function(e){j.all(e).catch((function(){}))})),K=function(e){var t;return!(!g(e)||"function"!=typeof(t=e.then))&&t},Z=function(e,t,i){if(!t.notified){t.notified=!0;var n=t.reactions;T((function(){for(var a=t.value,r=1==t.state,o=0;n.length>o;){var s,l,c,u=n[o++],d=r?u.ok:u.fail,f=u.resolve,h=u.reject,p=u.domain;try{d?(r||(2===t.rejection&&te(e,t),t.rejection=1),!0===d?s=a:(p&&p.enter(),s=d(a),p&&(p.exit(),c=!0)),s===u.promise?h(V("Promise-chain cycle")):(l=K(s))?l.call(s,f,h):f(s)):h(a)}catch(e){p&&!c&&p.exit(),h(e)}}t.reactions=[],t.notified=!1,i&&!t.rejection&&J(e,t)}))}},X=function(e,t,i){var n,a;G?((n=q.createEvent("Event")).promise=t,n.reason=i,n.initEvent(e,!1,!0),c.dispatchEvent(n)):n={promise:t,reason:i},(a=c["on"+e])?a(n):"unhandledrejection"===e&&k("Unhandled promise rejection",i)},J=function(e,t){S.call(c,(function(){var i,n=t.value;if(ee(t)&&(i=D((function(){H?z.emit("unhandledRejection",n,e):X("unhandledrejection",e,n)})),t.rejection=H||ee(t)?2:1,i.error))throw i.value}))},ee=function(e){return 1!==e.rejection&&!e.parent},te=function(e,t){S.call(c,(function(){H?z.emit("rejectionHandled",e):X("rejectionhandled",e,t.value)}))},ie=function(e,t,i,n){return function(a){e(t,i,a,n)}},ne=function(e,t,i,n){t.done||(t.done=!0,n&&(t=n),t.value=i,t.state=2,Z(e,t,!0))},ae=function(e,t,i,n){if(!t.done){t.done=!0,n&&(t=n);try{if(e===i)throw V("Promise can't be resolved itself");var a=K(i);a?T((function(){var n={done:!1};try{a.call(i,ie(ae,e,n,t),ie(ne,e,n,t))}catch(i){ne(e,n,i,t)}})):(t.value=i,t.state=1,Z(e,t,!1))}catch(i){ne(e,{done:!1},i,t)}}};W&&(j=function(e){b(this,j,P),v(e),n.call(this);var t=E(this);try{e(ie(ae,this,t),ie(ne,this,t))}catch(e){ne(this,t,e)}},(n=function(e){M(this,{type:P,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=h(j.prototype,{then:function(e,t){var i=F(this),n=U(x(this,j));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=H?z.domain:void 0,i.parent=!0,i.reactions.push(n),0!=i.state&&Z(this,i,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),a=function(){var e=new n,t=E(e);this.promise=e,this.resolve=ie(ae,e,t),this.reject=ie(ne,e,t)},R.f=U=function(e){return e===j||e===r?new a(e):Q(e)},l||"function"!=typeof d||(o=d.prototype.then,f(d.prototype,"then",(function(e,t){var i=this;return new j((function(e,t){o.call(i,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof B&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return C(j,B.apply(c,arguments))}}))),s({global:!0,wrap:!0,forced:W},{Promise:j}),p(j,P,!1,!0),m(P),r=u(P),s({target:P,stat:!0,forced:W},{reject:function(e){var t=U(this);return t.reject.call(void 0,e),t.promise}}),s({target:P,stat:!0,forced:l||W},{resolve:function(e){return C(l&&this===r?j:this,e)}}),s({target:P,stat:!0,forced:Y},{all:function(e){var t=this,i=U(t),n=i.resolve,a=i.reject,r=D((function(){var i=v(t.resolve),r=[],o=0,s=1;_(e,(function(e){var l=o++,c=!1;r.push(void 0),s++,i.call(t,e).then((function(e){c||(c=!0,r[l]=e,--s||n(r))}),a)})),--s||n(r)}));return r.error&&a(r.value),i.promise},race:function(e){var t=this,i=U(t),n=i.reject,a=D((function(){var a=v(t.resolve);_(e,(function(e){a.call(t,e).then(i.resolve,n)}))}));return a.error&&n(a.value),i.promise}})},{"../internals/a-function":219,"../internals/an-instance":222,"../internals/check-correctness-of-iteration":229,"../internals/classof-raw":230,"../internals/engine-v8-version":244,"../internals/export":246,"../internals/get-built-in":249,"../internals/global":251,"../internals/host-report-errors":254,"../internals/inspect-source":258,"../internals/internal-state":259,"../internals/is-forced":262,"../internals/is-object":263,"../internals/is-pure":264,"../internals/iterate":266,"../internals/microtask":269,"../internals/native-promise-constructor":270,"../internals/new-promise-capability":273,"../internals/perform":291,"../internals/promise-resolve":292,"../internals/redefine":294,"../internals/redefine-all":293,"../internals/set-species":297,"../internals/set-to-string-tag":298,"../internals/species-constructor":302,"../internals/task":303,"../internals/well-known-symbol":314}],324:[function(e,t,i){var n=e("../internals/export"),a=e("../internals/to-absolute-index"),r=String.fromCharCode,o=String.fromCodePoint;n({target:"String",stat:!0,forced:!!o&&1!=o.length},{fromCodePoint:function(e){for(var t,i=[],n=arguments.length,o=0;n>o;){if(t=+arguments[o++],a(t,1114111)!==t)throw RangeError(t+" is not a valid code point");i.push(t<65536?r(t):r(55296+((t-=65536)>>10),t%1024+56320))}return i.join("")}})},{"../internals/export":246,"../internals/to-absolute-index":304}],325:[function(e,t,i){"use strict";var n=e("../internals/export"),a=e("../internals/not-a-regexp"),r=e("../internals/require-object-coercible");n({target:"String",proto:!0,forced:!e("../internals/correct-is-regexp-logic")("includes")},{includes:function(e){return!!~String(r(this)).indexOf(a(e),arguments.length>1?arguments[1]:void 0)}})},{"../internals/correct-is-regexp-logic":233,"../internals/export":246,"../internals/not-a-regexp":274,"../internals/require-object-coercible":295}],326:[function(e,t,i){e("../internals/define-well-known-symbol")("asyncIterator")},{"../internals/define-well-known-symbol":239}],327:[function(e,t,i){"use strict";var n=e("../internals/export"),a=e("../internals/global"),r=e("../internals/get-built-in"),o=e("../internals/is-pure"),s=e("../internals/descriptors"),l=e("../internals/native-symbol"),c=e("../internals/use-symbol-as-uid"),u=e("../internals/fails"),d=e("../internals/has"),f=e("../internals/is-array"),h=e("../internals/is-object"),p=e("../internals/an-object"),m=e("../internals/to-object"),g=e("../internals/to-indexed-object"),v=e("../internals/to-primitive"),b=e("../internals/create-property-descriptor"),y=e("../internals/object-create"),w=e("../internals/object-keys"),_=e("../internals/object-get-own-property-names"),I=e("../internals/object-get-own-property-names-external"),x=e("../internals/object-get-own-property-symbols"),S=e("../internals/object-get-own-property-descriptor"),T=e("../internals/object-define-property"),C=e("../internals/object-property-is-enumerable"),k=e("../internals/create-non-enumerable-property"),R=e("../internals/redefine"),D=e("../internals/shared"),L=e("../internals/shared-key"),O=e("../internals/hidden-keys"),$=e("../internals/uid"),N=e("../internals/well-known-symbol"),A=e("../internals/well-known-symbol-wrapped"),P=e("../internals/define-well-known-symbol"),E=e("../internals/set-to-string-tag"),M=e("../internals/internal-state"),F=e("../internals/array-iteration").forEach,j=L("hidden"),V=N("toPrimitive"),q=M.set,z=M.getterFor("Symbol"),B=Object.prototype,U=a.Symbol,Q=r("JSON","stringify"),H=S.f,G=T.f,W=I.f,Y=C.f,K=D("symbols"),Z=D("op-symbols"),X=D("string-to-symbol-registry"),J=D("symbol-to-string-registry"),ee=D("wks"),te=a.QObject,ie=!te||!te.prototype||!te.prototype.findChild,ne=s&&u((function(){return 7!=y(G({},"a",{get:function(){return G(this,"a",{value:7}).a}})).a}))?function(e,t,i){var n=H(B,t);n&&delete B[t],G(e,t,i),n&&e!==B&&G(B,t,n)}:G,ae=function(e,t){var i=K[e]=y(U.prototype);return q(i,{type:"Symbol",tag:e,description:t}),s||(i.description=t),i},re=c?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof U},oe=function(e,t,i){e===B&&oe(Z,t,i),p(e);var n=v(t,!0);return p(i),d(K,n)?(i.enumerable?(d(e,j)&&e[j][n]&&(e[j][n]=!1),i=y(i,{enumerable:b(0,!1)})):(d(e,j)||G(e,j,b(1,{})),e[j][n]=!0),ne(e,n,i)):G(e,n,i)},se=function(e,t){p(e);var i=g(t),n=w(i).concat(de(i));return F(n,(function(t){s&&!le.call(i,t)||oe(e,t,i[t])})),e},le=function(e){var t=v(e,!0),i=Y.call(this,t);return!(this===B&&d(K,t)&&!d(Z,t))&&(!(i||!d(this,t)||!d(K,t)||d(this,j)&&this[j][t])||i)},ce=function(e,t){var i=g(e),n=v(t,!0);if(i!==B||!d(K,n)||d(Z,n)){var a=H(i,n);return!a||!d(K,n)||d(i,j)&&i[j][n]||(a.enumerable=!0),a}},ue=function(e){var t=W(g(e)),i=[];return F(t,(function(e){d(K,e)||d(O,e)||i.push(e)})),i},de=function(e){var t=e===B,i=W(t?Z:g(e)),n=[];return F(i,(function(e){!d(K,e)||t&&!d(B,e)||n.push(K[e])})),n};l||(R((U=function(){if(this instanceof U)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=$(e),i=function(e){this===B&&i.call(Z,e),d(this,j)&&d(this[j],t)&&(this[j][t]=!1),ne(this,t,b(1,e))};return s&&ie&&ne(B,t,{configurable:!0,set:i}),ae(t,e)}).prototype,"toString",(function(){return z(this).tag})),R(U,"withoutSetter",(function(e){return ae($(e),e)})),C.f=le,T.f=oe,S.f=ce,_.f=I.f=ue,x.f=de,A.f=function(e){return ae(N(e),e)},s&&(G(U.prototype,"description",{configurable:!0,get:function(){return z(this).description}}),o||R(B,"propertyIsEnumerable",le,{unsafe:!0}))),n({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:U}),F(w(ee),(function(e){P(e)})),n({target:"Symbol",stat:!0,forced:!l},{for:function(e){var t=String(e);if(d(X,t))return X[t];var i=U(t);return X[t]=i,J[i]=t,i},keyFor:function(e){if(!re(e))throw TypeError(e+" is not a symbol");if(d(J,e))return J[e]},useSetter:function(){ie=!0},useSimple:function(){ie=!1}}),n({target:"Object",stat:!0,forced:!l,sham:!s},{create:function(e,t){return void 0===t?y(e):se(y(e),t)},defineProperty:oe,defineProperties:se,getOwnPropertyDescriptor:ce}),n({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:ue,getOwnPropertySymbols:de}),n({target:"Object",stat:!0,forced:u((function(){x.f(1)}))},{getOwnPropertySymbols:function(e){return x.f(m(e))}}),Q&&n({target:"JSON",stat:!0,forced:!l||u((function(){var e=U();return"[null]"!=Q([e])||"{}"!=Q({a:e})||"{}"!=Q(Object(e))}))},{stringify:function(e,t,i){for(var n,a=[e],r=1;arguments.length>r;)a.push(arguments[r++]);if(n=t,(h(t)||void 0!==e)&&!re(e))return f(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!re(t))return t}),a[1]=t,Q.apply(null,a)}}),U.prototype[V]||k(U.prototype,V,U.prototype.valueOf),E(U,"Symbol"),O[j]=!0},{"../internals/an-object":223,"../internals/array-iteration":225,"../internals/create-non-enumerable-property":236,"../internals/create-property-descriptor":237,"../internals/define-well-known-symbol":239,"../internals/descriptors":240,"../internals/export":246,"../internals/fails":247,"../internals/get-built-in":249,"../internals/global":251,"../internals/has":252,"../internals/hidden-keys":253,"../internals/internal-state":259,"../internals/is-array":261,"../internals/is-object":263,"../internals/is-pure":264,"../internals/native-symbol":271,"../internals/object-create":276,"../internals/object-define-property":278,"../internals/object-get-own-property-descriptor":279,"../internals/object-get-own-property-names":281,"../internals/object-get-own-property-names-external":280,"../internals/object-get-own-property-symbols":282,"../internals/object-keys":285,"../internals/object-property-is-enumerable":286,"../internals/redefine":294,"../internals/set-to-string-tag":298,"../internals/shared":301,"../internals/shared-key":299,"../internals/to-indexed-object":305,"../internals/to-object":308,"../internals/to-primitive":309,"../internals/uid":311,"../internals/use-symbol-as-uid":312,"../internals/well-known-symbol":314,"../internals/well-known-symbol-wrapped":313}],328:[function(e,t,i){(function(e){"use strict";function t(e){return(t="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 n(e){return Object.prototype.toString.call(e)}i.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===n(e)},i.isBoolean=function(e){return"boolean"==typeof e},i.isNull=function(e){return null===e},i.isNullOrUndefined=function(e){return null==e},i.isNumber=function(e){return"number"==typeof e},i.isString=function(e){return"string"==typeof e},i.isSymbol=function(e){return"symbol"===t(e)},i.isUndefined=function(e){return void 0===e},i.isRegExp=function(e){return"[object RegExp]"===n(e)},i.isObject=function(e){return"object"===t(e)&&null!==e},i.isDate=function(e){return"[object Date]"===n(e)},i.isError=function(e){return"[object Error]"===n(e)||e instanceof Error},i.isFunction=function(e){return"function"==typeof e},i.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"===t(e)||void 0===e},i.isBuffer=e.isBuffer}).call(this,{isBuffer:e("../../is-buffer/index.js")})},{"../../is-buffer/index.js":388}],329:[function(e,t,i){(function(i){"use strict";var n=e("elliptic"),a=e("bn.js");t.exports=function(e){return new o(e)};var r={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function o(e){this.curveType=r[e],this.curveType||(this.curveType={name:e}),this.curve=new n.ec(this.curveType.name),this.keys=void 0}function s(e,t,n){Array.isArray(e)||(e=e.toArray());var a=new i(e);if(n&&a.length<n){var r=new i(n-a.length);r.fill(0),a=i.concat([r,a])}return t?a.toString(t):a}r.p224=r.secp224r1,r.p256=r.secp256r1=r.prime256v1,r.p192=r.secp192r1=r.prime192v1,r.p384=r.secp384r1,r.p521=r.secp521r1,o.prototype.generateKeys=function(e,t){return this.keys=this.curve.genKeyPair(),this.getPublicKey(e,t)},o.prototype.computeSecret=function(e,t,n){return t=t||"utf8",i.isBuffer(e)||(e=new i(e,t)),s(this.curve.keyFromPublic(e).getPublic().mul(this.keys.getPrivate()).getX(),n,this.curveType.byteLength)},o.prototype.getPublicKey=function(e,t){var i=this.keys.getPublic("compressed"===t,!0);return"hybrid"===t&&(i[i.length-1]%2?i[0]=7:i[0]=6),s(i,e)},o.prototype.getPrivateKey=function(e){return s(this.keys.getPrivate(),e)},o.prototype.setPublicKey=function(e,t){return t=t||"utf8",i.isBuffer(e)||(e=new i(e,t)),this.keys._importPublic(e),this},o.prototype.setPrivateKey=function(e,t){t=t||"utf8",i.isBuffer(e)||(e=new i(e,t));var n=new a(e);return n=n.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(n),this}}).call(this,e("buffer").Buffer)},{"bn.js":330,buffer:216,elliptic:350}],330:[function(e,t,i){arguments[4][181][0].apply(i,arguments)},{buffer:185,dup:181}],331:[function(e,t,i){"use strict";var n=e("inherits"),a=e("md5.js"),r=e("ripemd160"),o=e("sha.js"),s=e("cipher-base");function l(e){s.call(this,"digest"),this._hash=e}n(l,s),l.prototype._update=function(e){this._hash.update(e)},l.prototype._final=function(){return this._hash.digest()},t.exports=function(e){return"md5"===(e=e.toLowerCase())?new a:"rmd160"===e||"ripemd160"===e?new r:new l(o(e))}},{"cipher-base":218,inherits:387,"md5.js":434,ripemd160:493,"sha.js":499}],332:[function(e,t,i){"use strict";var n=e("md5.js");t.exports=function(e){return(new n).update(e).digest()}},{"md5.js":434}],333:[function(e,t,i){"use strict";var n=e("inherits"),a=e("./legacy"),r=e("cipher-base"),o=e("safe-buffer").Buffer,s=e("create-hash/md5"),l=e("ripemd160"),c=e("sha.js"),u=o.alloc(128);function d(e,t){r.call(this,"digest"),"string"==typeof t&&(t=o.from(t));var i="sha512"===e||"sha384"===e?128:64;this._alg=e,this._key=t,t.length>i?t=("rmd160"===e?new l:c(e)).update(t).digest():t.length<i&&(t=o.concat([t,u],i));for(var n=this._ipad=o.allocUnsafe(i),a=this._opad=o.allocUnsafe(i),s=0;s<i;s++)n[s]=54^t[s],a[s]=92^t[s];this._hash="rmd160"===e?new l:c(e),this._hash.update(n)}n(d,r),d.prototype._update=function(e){this._hash.update(e)},d.prototype._final=function(){var e=this._hash.digest();return("rmd160"===this._alg?new l:c(this._alg)).update(this._opad).update(e).digest()},t.exports=function(e,t){return"rmd160"===(e=e.toLowerCase())||"ripemd160"===e?new d("rmd160",t):"md5"===e?new a(s,t):new d(e,t)}},{"./legacy":334,"cipher-base":218,"create-hash/md5":332,inherits:387,ripemd160:493,"safe-buffer":494,"sha.js":499}],334:[function(e,t,i){"use strict";var n=e("inherits"),a=e("safe-buffer").Buffer,r=e("cipher-base"),o=a.alloc(128);function s(e,t){r.call(this,"digest"),"string"==typeof t&&(t=a.from(t)),this._alg=e,this._key=t,t.length>64?t=e(t):t.length<64&&(t=a.concat([t,o],64));for(var i=this._ipad=a.allocUnsafe(64),n=this._opad=a.allocUnsafe(64),s=0;s<64;s++)i[s]=54^t[s],n[s]=92^t[s];this._hash=[i]}n(s,r),s.prototype._update=function(e){this._hash.push(e)},s.prototype._final=function(){var e=this._alg(a.concat(this._hash));return this._alg(a.concat([this._opad,e]))},t.exports=s},{"cipher-base":218,inherits:387,"safe-buffer":494}],335:[function(e,t,i){"use strict";i.randomBytes=i.rng=i.pseudoRandomBytes=i.prng=e("randombytes"),i.createHash=i.Hash=e("create-hash"),i.createHmac=i.Hmac=e("create-hmac");var n=e("browserify-sign/algos"),a=Object.keys(n),r=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(a);i.getHashes=function(){return r};var o=e("pbkdf2");i.pbkdf2=o.pbkdf2,i.pbkdf2Sync=o.pbkdf2Sync;var s=e("browserify-cipher");i.Cipher=s.Cipher,i.createCipher=s.createCipher,i.Cipheriv=s.Cipheriv,i.createCipheriv=s.createCipheriv,i.Decipher=s.Decipher,i.createDecipher=s.createDecipher,i.Decipheriv=s.Decipheriv,i.createDecipheriv=s.createDecipheriv,i.getCiphers=s.getCiphers,i.listCiphers=s.listCiphers;var l=e("diffie-hellman");i.DiffieHellmanGroup=l.DiffieHellmanGroup,i.createDiffieHellmanGroup=l.createDiffieHellmanGroup,i.getDiffieHellman=l.getDiffieHellman,i.createDiffieHellman=l.createDiffieHellman,i.DiffieHellman=l.DiffieHellman;var c=e("browserify-sign");i.createSign=c.createSign,i.Sign=c.Sign,i.createVerify=c.createVerify,i.Verify=c.Verify,i.createECDH=e("create-ecdh");var u=e("public-encrypt");i.publicEncrypt=u.publicEncrypt,i.privateEncrypt=u.privateEncrypt,i.publicDecrypt=u.publicDecrypt,i.privateDecrypt=u.privateDecrypt;var d=e("randomfill");i.randomFill=d.randomFill,i.randomFillSync=d.randomFillSync,i.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},i.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},{"browserify-cipher":203,"browserify-sign":211,"browserify-sign/algos":208,"create-ecdh":329,"create-hash":331,"create-hmac":333,"diffie-hellman":345,pbkdf2:460,"public-encrypt":468,randombytes:475,randomfill:476}],336:[function(e,t,i){"use strict";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(e,a){"object"==(void 0===i?"undefined":n(i))&&void 0!==t?t.exports=a():(void 0).dayjs=a()}(0,(function(){var e="millisecond",t="second",i="minute",a="hour",r="day",o="week",s="month",l="quarter",c="year",u="date",d=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d+)?$/,f=/\[([^\]]+)]|Y{2,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,h=function(e,t,i){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(i)+e},p={s:h,z:function(e){var t=-e.utcOffset(),i=Math.abs(t),n=Math.floor(i/60),a=i%60;return(t<=0?"+":"-")+h(n,2,"0")+":"+h(a,2,"0")},m:function e(t,i){if(t.date()<i.date())return-e(i,t);var n=12*(i.year()-t.year())+(i.month()-t.month()),a=t.add(n,s),r=i-a<0,o=t.add(n+(r?-1:1),s);return+(-(n+(i-a)/(r?a-o:o-a))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(n){return{M:s,y:c,w:o,d:r,D:u,h:a,m:i,s:t,ms:e,Q:l}[n]||String(n||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},g="en",v={};v[g]=m;var b=function(e){return e instanceof I},y=function(e,t,i){var n;if(!e)return g;if("string"==typeof e)v[e]&&(n=e),t&&(v[e]=t,n=e);else{var a=e.name;v[a]=e,n=a}return!i&&n&&(g=n),n||!i&&g},w=function(e,t){if(b(e))return e.clone();var i="object"==n(t)?t:{};return i.date=e,i.args=arguments,new I(i)},_=p;_.l=y,_.i=b,_.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,$offset:t.$offset})};var I=function(){function n(e){this.$L=this.$L||y(e.locale,null,!0),this.parse(e)}var h=n.prototype;return h.parse=function(e){this.$d=function(e){var t=e.date,i=e.utc;if(null===t)return new Date(NaN);if(_.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(d);if(n){var a=n[2]-1||0,r=(n[7]||"0").substring(0,3);return i?new Date(Date.UTC(n[1],a,n[3]||1,n[4]||0,n[5]||0,n[6]||0,r)):new Date(n[1],a,n[3]||1,n[4]||0,n[5]||0,n[6]||0,r)}}return new Date(t)}(e),this.init()},h.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},h.$utils=function(){return _},h.isValid=function(){return!("Invalid Date"===this.$d.toString())},h.isSame=function(e,t){var i=w(e);return this.startOf(t)<=i&&i<=this.endOf(t)},h.isAfter=function(e,t){return w(e)<this.startOf(t)},h.isBefore=function(e,t){return this.endOf(t)<w(e)},h.$g=function(e,t,i){return _.u(e)?this[t]:this.set(i,e)},h.unix=function(){return Math.floor(this.valueOf()/1e3)},h.valueOf=function(){return this.$d.getTime()},h.startOf=function(e,n){var l=this,d=!!_.u(n)||n,f=_.p(e),h=function(e,t){var i=_.w(l.$u?Date.UTC(l.$y,t,e):new Date(l.$y,t,e),l);return d?i:i.endOf(r)},p=function(e,t){return _.w(l.toDate()[e].apply(l.toDate("s"),(d?[0,0,0,0]:[23,59,59,999]).slice(t)),l)},m=this.$W,g=this.$M,v=this.$D,b="set"+(this.$u?"UTC":"");switch(f){case c:return d?h(1,0):h(31,11);case s:return d?h(1,g):h(0,g+1);case o:var y=this.$locale().weekStart||0,w=(m<y?m+7:m)-y;return h(d?v-w:v+(6-w),g);case r:case u:return p(b+"Hours",0);case a:return p(b+"Minutes",1);case i:return p(b+"Seconds",2);case t:return p(b+"Milliseconds",3);default:return this.clone()}},h.endOf=function(e){return this.startOf(e,!1)},h.$set=function(n,o){var l,d=_.p(n),f="set"+(this.$u?"UTC":""),h=(l={},l[r]=f+"Date",l[u]=f+"Date",l[s]=f+"Month",l[c]=f+"FullYear",l[a]=f+"Hours",l[i]=f+"Minutes",l[t]=f+"Seconds",l[e]=f+"Milliseconds",l)[d],p=d===r?this.$D+(o-this.$W):o;if(d===s||d===c){var m=this.clone().set(u,1);m.$d[h](p),m.init(),this.$d=m.set(u,Math.min(this.$D,m.daysInMonth())).$d}else h&&this.$d[h](p);return this.init(),this},h.set=function(e,t){return this.clone().$set(e,t)},h.get=function(e){return this[_.p(e)]()},h.add=function(e,n){var l,u=this;e=Number(e);var d=_.p(n),f=function(t){var i=w(u);return _.w(i.date(i.date()+Math.round(t*e)),u)};if(d===s)return this.set(s,this.$M+e);if(d===c)return this.set(c,this.$y+e);if(d===r)return f(1);if(d===o)return f(7);var h=(l={},l[i]=6e4,l[a]=36e5,l[t]=1e3,l)[d]||1,p=this.$d.getTime()+e*h;return _.w(p,this)},h.subtract=function(e,t){return this.add(-1*e,t)},h.format=function(e){var t=this;if(!this.isValid())return"Invalid Date";var i=e||"YYYY-MM-DDTHH:mm:ssZ",n=_.z(this),a=this.$locale(),r=this.$H,o=this.$m,s=this.$M,l=a.weekdays,c=a.months,u=function(e,n,a,r){return e&&(e[n]||e(t,i))||a[n].substr(0,r)},d=function(e){return _.s(r%12||12,e,"0")},h=a.meridiem||function(e,t,i){var n=e<12?"AM":"PM";return i?n.toLowerCase():n},p={YY:String(this.$y).slice(-2),YYYY:this.$y,M:s+1,MM:_.s(s+1,2,"0"),MMM:u(a.monthsShort,s,c,3),MMMM:u(c,s),D:this.$D,DD:_.s(this.$D,2,"0"),d:String(this.$W),dd:u(a.weekdaysMin,this.$W,l,2),ddd:u(a.weekdaysShort,this.$W,l,3),dddd:l[this.$W],H:String(r),HH:_.s(r,2,"0"),h:d(1),hh:d(2),a:h(r,o,!0),A:h(r,o,!1),m:String(o),mm:_.s(o,2,"0"),s:String(this.$s),ss:_.s(this.$s,2,"0"),SSS:_.s(this.$ms,3,"0"),Z:n};return i.replace(f,(function(e,t){return t||p[e]||n.replace(":","")}))},h.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},h.diff=function(e,n,u){var d,f=_.p(n),h=w(e),p=6e4*(h.utcOffset()-this.utcOffset()),m=this-h,g=_.m(this,h);return g=(d={},d[c]=g/12,d[s]=g,d[l]=g/3,d[o]=(m-p)/6048e5,d[r]=(m-p)/864e5,d[a]=m/36e5,d[i]=m/6e4,d[t]=m/1e3,d)[f]||m,u?g:_.a(g)},h.daysInMonth=function(){return this.endOf(s).$D},h.$locale=function(){return v[this.$L]},h.locale=function(e,t){if(!e)return this.$L;var i=this.clone(),n=y(e,t,!0);return n&&(i.$L=n),i},h.clone=function(){return _.w(this.$d,this)},h.toDate=function(){return new Date(this.valueOf())},h.toJSON=function(){return this.isValid()?this.toISOString():null},h.toISOString=function(){return this.$d.toISOString()},h.toString=function(){return this.$d.toUTCString()},n}(),x=I.prototype;return w.prototype=x,[["$ms",e],["$s",t],["$m",i],["$H",a],["$W",r],["$M",s],["$y",c],["$D",u]].forEach((function(e){x[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e(t,I,w),w},w.locale=y,w.isDayjs=b,w.unix=function(e){return w(1e3*e)},w.en=v[g],w.Ls=v,w}))},{}],337:[function(e,t,i){"use strict";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(e,a){"object"==(void 0===i?"undefined":n(i))&&void 0!==t?t.exports=a():(void 0).dayjs_plugin_customParseFormat=a()}(0,(function(){var e,t=/(\[[^[]*\])|([-:/.()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d\d/,n=/\d\d?/,a=/\d*[^\s\d-:/()]+/,r=function(e){return function(t){this[e]=+t}},o=[/[+-]\d\d:?\d\d/,function(e){var t,i;(this.zone||(this.zone={})).offset=0==(i=60*(t=e.match(/([+-]|\d\d)/g))[1]+ +t[2])?0:"+"===t[0]?-i:i}],s=function(t){var i=e[t];return i&&(i.indexOf?i:i.s.concat(i.f))},l={A:[/[AP]M/,function(e){this.afternoon="PM"===e}],a:[/[ap]m/,function(e){this.afternoon="pm"===e}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[i,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[n,r("seconds")],ss:[n,r("seconds")],m:[n,r("minutes")],mm:[n,r("minutes")],H:[n,r("hours")],h:[n,r("hours")],HH:[n,r("hours")],hh:[n,r("hours")],D:[n,r("day")],DD:[i,r("day")],Do:[a,function(t){var i=e.ordinal,n=t.match(/\d+/);if(this.day=n[0],i)for(var a=1;a<=31;a+=1)i(a).replace(/\[|\]/g,"")===t&&(this.day=a)}],M:[n,r("month")],MM:[i,r("month")],MMM:[a,function(e){var t=s("months"),i=(s("monthsShort")||t.map((function(e){return e.substr(0,3)}))).indexOf(e)+1;if(i<1)throw new Error;this.month=i%12||i}],MMMM:[a,function(e){var t=s("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,r("year")],YY:[i,function(e){e=+e,this.year=e+(e>68?1900:2e3)}],YYYY:[/\d{4}/,r("year")],Z:o,ZZ:o},c=function(e,i,n){try{var a=function(e){for(var i=e.match(t),n=i.length,a=0;a<n;a+=1){var r=i[a],o=l[r],s=o&&o[0],c=o&&o[1];i[a]=c?{regex:s,parser:c}:r.replace(/^\[|\]$/g,"")}return function(e){for(var t={},a=0,r=0;a<n;a+=1){var o=i[a];if("string"==typeof o)r+=o.length;else{var s=o.regex,l=o.parser,c=e.substr(r),u=s.exec(c)[0];l.call(t,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var i=e.hours;t?i<12&&(e.hours+=12):12===i&&(e.hours=0),delete e.afternoon}}(t),t}}(i)(e),r=a.year,o=a.month,s=a.day,c=a.hours,u=a.minutes,d=a.seconds,f=a.milliseconds,h=a.zone,p=new Date,m=s||(r||o?1:p.getDate()),g=r||p.getFullYear(),v=0;r&&!o||(v=o>0?o-1:p.getMonth());var b=c||0,y=u||0,w=d||0,_=f||0;return h?new Date(Date.UTC(g,v,m,b,y,w,_+60*h.offset*1e3)):n?new Date(Date.UTC(g,v,m,b,y,w,_)):new Date(g,v,m,b,y,w,_)}catch(e){return new Date("")}};return function(t,i,n){var a=i.prototype,r=a.parse;a.parse=function(t){var i=t.date,a=t.utc,o=t.args;this.$u=a;var s=o[1];if("string"==typeof s){var l=!0===o[2],u=!0===o[3],d=l||u,f=o[2];u&&(f=o[2]),l||(e=f?n.Ls[f]:this.$locale()),this.$d=c(i,s,a),this.init(),f&&!0!==f&&(this.$L=this.locale(f).$L),d&&i!==this.format(s)&&(this.$d=new Date(""))}else if(s instanceof Array)for(var h=s.length,p=1;p<=h;p+=1){o[1]=s[p-1];var m=n.apply(this,o);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}p===h&&(this.$d=new Date(""))}else r.call(this,t)}}}))},{}],338:[function(e,t,i){"use strict";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)}var a;a=function(){return function(e,t,i){var n=(new Date).getTimezoneOffset(),a=t.prototype;i.utc=function(e){return new t({date:e,utc:!0,args:arguments})},a.utc=function(){return i(this.toDate(),{locale:this.$L,utc:!0})},a.local=function(){return i(this.toDate(),{locale:this.$L,utc:!1})};var r=a.parse;a.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),r.call(this,e)};var o=a.init;a.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else o.call(this)};var s=a.utcOffset;a.utcOffset=function(e,t){var i=this.$utils().u;if(i(e))return this.$u?0:i(this.$offset)?s.call(this):this.$offset;var a=Math.abs(e)<=16?60*e:e,r=this;return t?(r.$offset=a,r.$u=0===e,r):(0!==e?(r=this.local().add(a+n,"minute")).$offset=a:r=this.utc(),r)};var l=a.format;a.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return l.call(this,t)},a.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+n;return this.$d.valueOf()-6e4*e},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()};var c=a.toDate;a.toDate=function(e){return"s"===e&&this.$offset?i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():c.call(this)};var u=a.diff;a.diff=function(e,t,n){var a=this.local(),r=i(e).local();return u.call(a,r,t,n)}}},"object"==(void 0===i?"undefined":n(i))&&void 0!==t?t.exports=a():(void 0).dayjs_plugin_utc=a()},{}],339:[function(e,t,i){"use strict";i.utils=e("./des/utils"),i.Cipher=e("./des/cipher"),i.DES=e("./des/des"),i.CBC=e("./des/cbc"),i.EDE=e("./des/ede")},{"./des/cbc":340,"./des/cipher":341,"./des/des":342,"./des/ede":343,"./des/utils":344}],340:[function(e,t,i){"use strict";var n=e("minimalistic-assert"),a=e("inherits"),r={};function o(e){n.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t<this.iv.length;t++)this.iv[t]=e[t]}i.instantiate=function(e){function t(t){e.call(this,t),this._cbcInit()}a(t,e);for(var i=Object.keys(r),n=0;n<i.length;n++){var o=i[n];t.prototype[o]=r[o]}return t.create=function(e){return new t(e)},t},r._cbcInit=function(){var e=new o(this.options.iv);this._cbcState=e},r._update=function(e,t,i,n){var a=this._cbcState,r=this.constructor.super_.prototype,o=a.iv;if("encrypt"===this.type){for(var s=0;s<this.blockSize;s++)o[s]^=e[t+s];for(r._update.call(this,o,0,i,n),s=0;s<this.blockSize;s++)o[s]=i[n+s]}else{for(r._update.call(this,e,t,i,n),s=0;s<this.blockSize;s++)i[n+s]^=o[s];for(s=0;s<this.blockSize;s++)o[s]=e[t+s]}}},{inherits:387,"minimalistic-assert":437}],341:[function(e,t,i){"use strict";var n=e("minimalistic-assert");function a(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}t.exports=a,a.prototype._init=function(){},a.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},a.prototype._buffer=function(e,t){for(var i=Math.min(this.buffer.length-this.bufferOff,e.length-t),n=0;n<i;n++)this.buffer[this.bufferOff+n]=e[t+n];return this.bufferOff+=i,i},a.prototype._flushBuffer=function(e,t){return this._update(this.buffer,0,e,t),this.bufferOff=0,this.blockSize},a.prototype._updateEncrypt=function(e){var t=0,i=0,n=(this.bufferOff+e.length)/this.blockSize|0,a=new Array(n*this.blockSize);0!==this.bufferOff&&(t+=this._buffer(e,t),this.bufferOff===this.buffer.length&&(i+=this._flushBuffer(a,i)));for(var r=e.length-(e.length-t)%this.blockSize;t<r;t+=this.blockSize)this._update(e,t,a,i),i+=this.blockSize;for(;t<e.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=e[t];return a},a.prototype._updateDecrypt=function(e){for(var t=0,i=0,n=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,a=new Array(n*this.blockSize);n>0;n--)t+=this._buffer(e,t),i+=this._flushBuffer(a,i);return t+=this._buffer(e,t),a},a.prototype.final=function(e){var t,i;return e&&(t=this.update(e)),i="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(i):i},a.prototype._pad=function(e,t){if(0===t)return!1;for(;t<e.length;)e[t++]=0;return!0},a.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=new Array(this.blockSize);return this._update(this.buffer,0,e,0),e},a.prototype._unpad=function(e){return e},a.prototype._finalDecrypt=function(){n.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var e=new Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)}},{"minimalistic-assert":437}],342:[function(e,t,i){"use strict";var n=e("minimalistic-assert"),a=e("inherits"),r=e("./utils"),o=e("./cipher");function s(){this.tmp=new Array(2),this.keys=null}function l(e){o.call(this,e);var t=new s;this._desState=t,this.deriveKeys(t,e.key)}a(l,o),t.exports=l,l.create=function(e){return new l(e)};var c=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];l.prototype.deriveKeys=function(e,t){e.keys=new Array(32),n.equal(t.length,this.blockSize,"Invalid key length");var i=r.readUInt32BE(t,0),a=r.readUInt32BE(t,4);r.pc1(i,a,e.tmp,0),i=e.tmp[0],a=e.tmp[1];for(var o=0;o<e.keys.length;o+=2){var s=c[o>>>1];i=r.r28shl(i,s),a=r.r28shl(a,s),r.pc2(i,a,e.keys,o)}},l.prototype._update=function(e,t,i,n){var a=this._desState,o=r.readUInt32BE(e,t),s=r.readUInt32BE(e,t+4);r.ip(o,s,a.tmp,0),o=a.tmp[0],s=a.tmp[1],"encrypt"===this.type?this._encrypt(a,o,s,a.tmp,0):this._decrypt(a,o,s,a.tmp,0),o=a.tmp[0],s=a.tmp[1],r.writeUInt32BE(i,o,n),r.writeUInt32BE(i,s,n+4)},l.prototype._pad=function(e,t){for(var i=e.length-t,n=t;n<e.length;n++)e[n]=i;return!0},l.prototype._unpad=function(e){for(var t=e[e.length-1],i=e.length-t;i<e.length;i++)n.equal(e[i],t);return e.slice(0,e.length-t)},l.prototype._encrypt=function(e,t,i,n,a){for(var o=t,s=i,l=0;l<e.keys.length;l+=2){var c=e.keys[l],u=e.keys[l+1];r.expand(s,e.tmp,0),c^=e.tmp[0],u^=e.tmp[1];var d=r.substitute(c,u),f=s;s=(o^r.permute(d))>>>0,o=f}r.rip(s,o,n,a)},l.prototype._decrypt=function(e,t,i,n,a){for(var o=i,s=t,l=e.keys.length-2;l>=0;l-=2){var c=e.keys[l],u=e.keys[l+1];r.expand(o,e.tmp,0),c^=e.tmp[0],u^=e.tmp[1];var d=r.substitute(c,u),f=o;o=(s^r.permute(d))>>>0,s=f}r.rip(o,s,n,a)}},{"./cipher":341,"./utils":344,inherits:387,"minimalistic-assert":437}],343:[function(e,t,i){"use strict";var n=e("minimalistic-assert"),a=e("inherits"),r=e("./cipher"),o=e("./des");function s(e,t){n.equal(t.length,24,"Invalid key length");var i=t.slice(0,8),a=t.slice(8,16),r=t.slice(16,24);this.ciphers="encrypt"===e?[o.create({type:"encrypt",key:i}),o.create({type:"decrypt",key:a}),o.create({type:"encrypt",key:r})]:[o.create({type:"decrypt",key:r}),o.create({type:"encrypt",key:a}),o.create({type:"decrypt",key:i})]}function l(e){r.call(this,e);var t=new s(this.type,this.options.key);this._edeState=t}a(l,r),t.exports=l,l.create=function(e){return new l(e)},l.prototype._update=function(e,t,i,n){var a=this._edeState;a.ciphers[0]._update(e,t,i,n),a.ciphers[1]._update(i,n,i,n),a.ciphers[2]._update(i,n,i,n)},l.prototype._pad=o.prototype._pad,l.prototype._unpad=o.prototype._unpad},{"./cipher":341,"./des":342,inherits:387,"minimalistic-assert":437}],344:[function(e,t,i){"use strict";i.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},i.writeUInt32BE=function(e,t,i){e[0+i]=t>>>24,e[1+i]=t>>>16&255,e[2+i]=t>>>8&255,e[3+i]=255&t},i.ip=function(e,t,i,n){for(var a=0,r=0,o=6;o>=0;o-=2){for(var s=0;s<=24;s+=8)a<<=1,a|=t>>>s+o&1;for(s=0;s<=24;s+=8)a<<=1,a|=e>>>s+o&1}for(o=6;o>=0;o-=2){for(s=1;s<=25;s+=8)r<<=1,r|=t>>>s+o&1;for(s=1;s<=25;s+=8)r<<=1,r|=e>>>s+o&1}i[n+0]=a>>>0,i[n+1]=r>>>0},i.rip=function(e,t,i,n){for(var a=0,r=0,o=0;o<4;o++)for(var s=24;s>=0;s-=8)a<<=1,a|=t>>>s+o&1,a<<=1,a|=e>>>s+o&1;for(o=4;o<8;o++)for(s=24;s>=0;s-=8)r<<=1,r|=t>>>s+o&1,r<<=1,r|=e>>>s+o&1;i[n+0]=a>>>0,i[n+1]=r>>>0},i.pc1=function(e,t,i,n){for(var a=0,r=0,o=7;o>=5;o--){for(var s=0;s<=24;s+=8)a<<=1,a|=t>>s+o&1;for(s=0;s<=24;s+=8)a<<=1,a|=e>>s+o&1}for(s=0;s<=24;s+=8)a<<=1,a|=t>>s+o&1;for(o=1;o<=3;o++){for(s=0;s<=24;s+=8)r<<=1,r|=t>>s+o&1;for(s=0;s<=24;s+=8)r<<=1,r|=e>>s+o&1}for(s=0;s<=24;s+=8)r<<=1,r|=e>>s+o&1;i[n+0]=a>>>0,i[n+1]=r>>>0},i.r28shl=function(e,t){return e<<t&268435455|e>>>28-t};var n=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];i.pc2=function(e,t,i,a){for(var r=0,o=0,s=n.length>>>1,l=0;l<s;l++)r<<=1,r|=e>>>n[l]&1;for(l=s;l<n.length;l++)o<<=1,o|=t>>>n[l]&1;i[a+0]=r>>>0,i[a+1]=o>>>0},i.expand=function(e,t,i){var n=0,a=0;n=(1&e)<<5|e>>>27;for(var r=23;r>=15;r-=4)n<<=6,n|=e>>>r&63;for(r=11;r>=3;r-=4)a|=e>>>r&63,a<<=6;a|=(31&e)<<1|e>>>31,t[i+0]=n>>>0,t[i+1]=a>>>0};var a=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];i.substitute=function(e,t){for(var i=0,n=0;n<4;n++)i<<=4,i|=a[64*n+(e>>>18-6*n&63)];for(n=0;n<4;n++)i<<=4,i|=a[256+64*n+(t>>>18-6*n&63)];return i>>>0};var r=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];i.permute=function(e){for(var t=0,i=0;i<r.length;i++)t<<=1,t|=e>>>r[i]&1;return t>>>0},i.padSplit=function(e,t,i){for(var n=e.toString(2);n.length<t;)n="0"+n;for(var a=[],r=0;r<t;r+=i)a.push(n.slice(r,r+i));return a.join(" ")}},{}],345:[function(e,t,i){(function(t){"use strict";var n=e("./lib/generatePrime"),a=e("./lib/primes.json"),r=e("./lib/dh"),o={binary:!0,hex:!0,base64:!0};i.DiffieHellmanGroup=i.createDiffieHellmanGroup=i.getDiffieHellman=function(e){var i=new t(a[e].prime,"hex"),n=new t(a[e].gen,"hex");return new r(i,n)},i.createDiffieHellman=i.DiffieHellman=function e(i,a,s,l){return t.isBuffer(a)||void 0===o[a]?e(i,"binary",a,s):(a=a||"binary",l=l||"binary",s=s||new t([2]),t.isBuffer(s)||(s=new t(s,l)),"number"==typeof i?new r(n(i,s),s,!0):(t.isBuffer(i)||(i=new t(i,a)),new r(i,s,!0)))}}).call(this,e("buffer").Buffer)},{"./lib/dh":346,"./lib/generatePrime":347,"./lib/primes.json":348,buffer:216}],346:[function(e,t,i){(function(i){"use strict";var n=e("bn.js"),a=new(e("miller-rabin")),r=new n(24),o=new n(11),s=new n(10),l=new n(3),c=new n(7),u=e("./generatePrime"),d=e("randombytes");function f(e,t){return t=t||"utf8",i.isBuffer(e)||(e=new i(e,t)),this._pub=new n(e),this}function h(e,t){return t=t||"utf8",i.isBuffer(e)||(e=new i(e,t)),this._priv=new n(e),this}t.exports=m;var p={};function m(e,t,i){this.setGenerator(t),this.__prime=new n(e),this._prime=n.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,i?(this.setPublicKey=f,this.setPrivateKey=h):this._primeCode=8}function g(e,t){var n=new i(e.toArray());return t?n.toString(t):n}Object.defineProperty(m.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,t){var i=t.toString("hex"),n=[i,e.toString(16)].join("_");if(n in p)return p[n];var d,f=0;if(e.isEven()||!u.simpleSieve||!u.fermatTest(e)||!a.test(e))return f+=1,f+="02"===i||"05"===i?8:4,p[n]=f,f;switch(a.test(e.shrn(1))||(f+=2),i){case"02":e.mod(r).cmp(o)&&(f+=8);break;case"05":(d=e.mod(s)).cmp(l)&&d.cmp(c)&&(f+=8);break;default:f+=4}return p[n]=f,f}(this.__prime,this.__gen)),this._primeCode}}),m.prototype.generateKeys=function(){return this._priv||(this._priv=new n(d(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},m.prototype.computeSecret=function(e){var t=(e=(e=new n(e)).toRed(this._prime)).redPow(this._priv).fromRed(),a=new i(t.toArray()),r=this.getPrime();if(a.length<r.length){var o=new i(r.length-a.length);o.fill(0),a=i.concat([o,a])}return a},m.prototype.getPublicKey=function(e){return g(this._pub,e)},m.prototype.getPrivateKey=function(e){return g(this._priv,e)},m.prototype.getPrime=function(e){return g(this.__prime,e)},m.prototype.getGenerator=function(e){return g(this._gen,e)},m.prototype.setGenerator=function(e,t){return t=t||"utf8",i.isBuffer(e)||(e=new i(e,t)),this.__gen=e,this._gen=new n(e),this}}).call(this,e("buffer").Buffer)},{"./generatePrime":347,"bn.js":349,buffer:216,"miller-rabin":435,randombytes:475}],347:[function(e,t,i){"use strict";var n=e("randombytes");t.exports=b,b.simpleSieve=g,b.fermatTest=v;var a=e("bn.js"),r=new a(24),o=new(e("miller-rabin")),s=new a(1),l=new a(2),c=new a(5),u=(new a(16),new a(8),new a(10)),d=new a(3),f=(new a(7),new a(11)),h=new a(4),p=(new a(12),null);function m(){if(null!==p)return p;var e=[];e[0]=2;for(var t=1,i=3;i<1048576;i+=2){for(var n=Math.ceil(Math.sqrt(i)),a=0;a<t&&e[a]<=n&&i%e[a]!=0;a++);t!==a&&e[a]<=n||(e[t++]=i)}return p=e,e}function g(e){for(var t=m(),i=0;i<t.length;i++)if(0===e.modn(t[i]))return 0===e.cmpn(t[i]);return!0}function v(e){var t=a.mont(e);return 0===l.toRed(t).redPow(e.subn(1)).fromRed().cmpn(1)}function b(e,t){if(e<16)return new a(2===t||5===t?[140,123]:[140,39]);var i,p;for(t=new a(t);;){for(i=new a(n(Math.ceil(e/8)));i.bitLength()>e;)i.ishrn(1);if(i.isEven()&&i.iadd(s),i.testn(1)||i.iadd(l),t.cmp(l)){if(!t.cmp(c))for(;i.mod(u).cmp(d);)i.iadd(h)}else for(;i.mod(r).cmp(f);)i.iadd(h);if(g(p=i.shrn(1))&&g(i)&&v(p)&&v(i)&&o.test(p)&&o.test(i))return i}}},{"bn.js":349,"miller-rabin":435,randombytes:475}],348:[function(e,t,i){t.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}},{}],349:[function(e,t,i){arguments[4][181][0].apply(i,arguments)},{buffer:185,dup:181}],350:[function(e,t,i){"use strict";var n=i;n.version=e("../package.json").version,n.utils=e("./elliptic/utils"),n.rand=e("brorand"),n.curve=e("./elliptic/curve"),n.curves=e("./elliptic/curves"),n.ec=e("./elliptic/ec"),n.eddsa=e("./elliptic/eddsa")},{"../package.json":366,"./elliptic/curve":353,"./elliptic/curves":356,"./elliptic/ec":357,"./elliptic/eddsa":360,"./elliptic/utils":364,brorand:184}],351:[function(e,t,i){"use strict";var n=e("bn.js"),a=e("../utils"),r=a.getNAF,o=a.getJSF,s=a.assert;function l(e,t){this.type=e,this.p=new n(t.p,16),this.red=t.prime?n.red(t.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=t.n&&new n(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var i=this.n&&this.p.div(this.n);!i||i.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function c(e,t){this.curve=e,this.type=t,this.precomputed=null}t.exports=l,l.prototype.point=function(){throw new Error("Not implemented")},l.prototype.validate=function(){throw new Error("Not implemented")},l.prototype._fixedNafMul=function(e,t){s(e.precomputed);var i=e._getDoubles(),n=r(t,1,this._bitLength),a=(1<<i.step+1)-(i.step%2==0?2:1);a/=3;for(var o=[],l=0;l<n.length;l+=i.step){var c=0;for(t=l+i.step-1;t>=l;t--)c=(c<<1)+n[t];o.push(c)}for(var u=this.jpoint(null,null,null),d=this.jpoint(null,null,null),f=a;f>0;f--){for(l=0;l<o.length;l++)(c=o[l])===f?d=d.mixedAdd(i.points[l]):c===-f&&(d=d.mixedAdd(i.points[l].neg()));u=u.add(d)}return u.toP()},l.prototype._wnafMul=function(e,t){var i=4,n=e._getNAFPoints(i);i=n.wnd;for(var a=n.points,o=r(t,i,this._bitLength),l=this.jpoint(null,null,null),c=o.length-1;c>=0;c--){for(t=0;c>=0&&0===o[c];c--)t++;if(c>=0&&t++,l=l.dblp(t),c<0)break;var u=o[c];s(0!==u),l="affine"===e.type?u>0?l.mixedAdd(a[u-1>>1]):l.mixedAdd(a[-u-1>>1].neg()):u>0?l.add(a[u-1>>1]):l.add(a[-u-1>>1].neg())}return"affine"===e.type?l.toP():l},l.prototype._wnafMulAdd=function(e,t,i,n,a){for(var s=this._wnafT1,l=this._wnafT2,c=this._wnafT3,u=0,d=0;d<n;d++){var f=(T=t[d])._getNAFPoints(e);s[d]=f.wnd,l[d]=f.points}for(d=n-1;d>=1;d-=2){var h=d-1,p=d;if(1===s[h]&&1===s[p]){var m=[t[h],null,null,t[p]];0===t[h].y.cmp(t[p].y)?(m[1]=t[h].add(t[p]),m[2]=t[h].toJ().mixedAdd(t[p].neg())):0===t[h].y.cmp(t[p].y.redNeg())?(m[1]=t[h].toJ().mixedAdd(t[p]),m[2]=t[h].add(t[p].neg())):(m[1]=t[h].toJ().mixedAdd(t[p]),m[2]=t[h].toJ().mixedAdd(t[p].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],v=o(i[h],i[p]);u=Math.max(v[0].length,u),c[h]=new Array(u),c[p]=new Array(u);for(var b=0;b<u;b++){var y=0|v[0][b],w=0|v[1][b];c[h][b]=g[3*(y+1)+(w+1)],c[p][b]=0,l[h]=m}}else c[h]=r(i[h],s[h],this._bitLength),c[p]=r(i[p],s[p],this._bitLength),u=Math.max(c[h].length,u),u=Math.max(c[p].length,u)}var _=this.jpoint(null,null,null),I=this._wnafT4;for(d=u;d>=0;d--){for(var x=0;d>=0;){var S=!0;for(b=0;b<n;b++)I[b]=0|c[b][d],0!==I[b]&&(S=!1);if(!S)break;x++,d--}if(d>=0&&x++,_=_.dblp(x),d<0)break;for(b=0;b<n;b++){var T,C=I[b];0!==C&&(C>0?T=l[b][C-1>>1]:C<0&&(T=l[b][-C-1>>1].neg()),_="affine"===T.type?_.mixedAdd(T):_.add(T))}}for(d=0;d<n;d++)l[d]=null;return a?_:_.toP()},l.BasePoint=c,c.prototype.eq=function(){throw new Error("Not implemented")},c.prototype.validate=function(){return this.curve.validate(this)},l.prototype.decodePoint=function(e,t){e=a.toArray(e,t);var i=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*i)return 6===e[0]?s(e[e.length-1]%2==0):7===e[0]&&s(e[e.length-1]%2==1),this.point(e.slice(1,1+i),e.slice(1+i,1+2*i));if((2===e[0]||3===e[0])&&e.length-1===i)return this.pointFromX(e.slice(1,1+i),3===e[0]);throw new Error("Unknown point format")},c.prototype.encodeCompressed=function(e){return this.encode(e,!0)},c.prototype._encode=function(e){var t=this.curve.p.byteLength(),i=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(i):[4].concat(i,this.getY().toArray("be",t))},c.prototype.encode=function(e,t){return a.encode(this._encode(t),e)},c.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},c.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},c.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var i=[this],n=this,a=0;a<t;a+=e){for(var r=0;r<e;r++)n=n.dbl();i.push(n)}return{step:e,points:i}},c.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],i=(1<<e)-1,n=1===i?null:this.dbl(),a=1;a<i;a++)t[a]=t[a-1].add(n);return{wnd:e,points:t}},c.prototype._getBeta=function(){return null},c.prototype.dblp=function(e){for(var t=this,i=0;i<e;i++)t=t.dbl();return t}},{"../utils":364,"bn.js":365}],352:[function(e,t,i){"use strict";var n=e("../utils"),a=e("bn.js"),r=e("inherits"),o=e("./base"),s=n.assert;function l(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,o.call(this,"edwards",e),this.a=new a(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new a(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new a(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function c(e,t,i,n,r){o.BasePoint.call(this,e,"projective"),null===t&&null===i&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new a(t,16),this.y=new a(i,16),this.z=n?new a(n,16):this.curve.one,this.t=r&&new a(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}r(l,o),t.exports=l,l.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},l.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},l.prototype.jpoint=function(e,t,i,n){return this.point(e,t,i,n)},l.prototype.pointFromX=function(e,t){(e=new a(e,16)).red||(e=e.toRed(this.red));var i=e.redSqr(),n=this.c2.redSub(this.a.redMul(i)),r=this.one.redSub(this.c2.redMul(this.d).redMul(i)),o=n.redMul(r.redInvm()),s=o.redSqrt();if(0!==s.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");var l=s.fromRed().isOdd();return(t&&!l||!t&&l)&&(s=s.redNeg()),this.point(e,s)},l.prototype.pointFromY=function(e,t){(e=new a(e,16)).red||(e=e.toRed(this.red));var i=e.redSqr(),n=i.redSub(this.c2),r=i.redMul(this.d).redMul(this.c2).redSub(this.a),o=n.redMul(r.redInvm());if(0===o.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var s=o.redSqrt();if(0!==s.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");return s.fromRed().isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},l.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),i=e.y.redSqr(),n=t.redMul(this.a).redAdd(i),a=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(i)));return 0===n.cmp(a)},r(c,o.BasePoint),l.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},l.prototype.point=function(e,t,i,n){return new c(this,e,t,i,n)},c.fromJSON=function(e,t){return new c(e,t[0],t[1],t[2])},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},c.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),i=this.z.redSqr();i=i.redIAdd(i);var n=this.curve._mulA(e),a=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),r=n.redAdd(t),o=r.redSub(i),s=n.redSub(t),l=a.redMul(o),c=r.redMul(s),u=a.redMul(s),d=o.redMul(r);return this.curve.point(l,c,d,u)},c.prototype._projDbl=function(){var e,t,i,n=this.x.redAdd(this.y).redSqr(),a=this.x.redSqr(),r=this.y.redSqr();if(this.curve.twisted){var o=(c=this.curve._mulA(a)).redAdd(r);if(this.zOne)e=n.redSub(a).redSub(r).redMul(o.redSub(this.curve.two)),t=o.redMul(c.redSub(r)),i=o.redSqr().redSub(o).redSub(o);else{var s=this.z.redSqr(),l=o.redSub(s).redISub(s);e=n.redSub(a).redISub(r).redMul(l),t=o.redMul(c.redSub(r)),i=o.redMul(l)}}else{var c=a.redAdd(r);s=this.curve._mulC(this.z).redSqr(),l=c.redSub(s).redSub(s),e=this.curve._mulC(n.redISub(c)).redMul(l),t=this.curve._mulC(c).redMul(a.redISub(r)),i=c.redMul(l)}return this.curve.point(e,t,i)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),i=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),a=this.z.redMul(e.z.redAdd(e.z)),r=i.redSub(t),o=a.redSub(n),s=a.redAdd(n),l=i.redAdd(t),c=r.redMul(o),u=s.redMul(l),d=r.redMul(l),f=o.redMul(s);return this.curve.point(c,u,f,d)},c.prototype._projAdd=function(e){var t,i,n=this.z.redMul(e.z),a=n.redSqr(),r=this.x.redMul(e.x),o=this.y.redMul(e.y),s=this.curve.d.redMul(r).redMul(o),l=a.redSub(s),c=a.redAdd(s),u=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(r).redISub(o),d=n.redMul(l).redMul(u);return this.curve.twisted?(t=n.redMul(c).redMul(o.redSub(this.curve._mulA(r))),i=l.redMul(c)):(t=n.redMul(c).redMul(o.redSub(r)),i=this.curve._mulC(l).redMul(c)),this.curve.point(d,t,i)},c.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},c.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,i){return this.curve._wnafMulAdd(1,[this,t],[e,i],2,!1)},c.prototype.jmulAdd=function(e,t,i){return this.curve._wnafMulAdd(1,[this,t],[e,i],2,!0)},c.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},c.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var i=e.clone(),n=this.curve.redN.redMul(this.z);;){if(i.iadd(this.curve.n),i.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},{"../utils":364,"./base":351,"bn.js":365,inherits:387}],353:[function(e,t,i){"use strict";var n=i;n.base=e("./base"),n.short=e("./short"),n.mont=e("./mont"),n.edwards=e("./edwards")},{"./base":351,"./edwards":352,"./mont":354,"./short":355}],354:[function(e,t,i){"use strict";var n=e("bn.js"),a=e("inherits"),r=e("./base"),o=e("../utils");function s(e){r.call(this,"mont",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function l(e,t,i){r.BasePoint.call(this,e,"projective"),null===t&&null===i?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(t,16),this.z=new n(i,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}a(s,r),t.exports=s,s.prototype.validate=function(e){var t=e.normalize().x,i=t.redSqr(),n=i.redMul(t).redAdd(i.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},a(l,r.BasePoint),s.prototype.decodePoint=function(e,t){return this.point(o.toArray(e,t),1)},s.prototype.point=function(e,t){return new l(this,e,t)},s.prototype.pointFromJSON=function(e){return l.fromJSON(this,e)},l.prototype.precompute=function(){},l.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},l.fromJSON=function(e,t){return new l(e,t[0],t[1]||e.one)},l.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},l.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},l.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),i=e.redSub(t),n=e.redMul(t),a=i.redMul(t.redAdd(this.curve.a24.redMul(i)));return this.curve.point(n,a)},l.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},l.prototype.diffAdd=function(e,t){var i=this.x.redAdd(this.z),n=this.x.redSub(this.z),a=e.x.redAdd(e.z),r=e.x.redSub(e.z).redMul(i),o=a.redMul(n),s=t.z.redMul(r.redAdd(o).redSqr()),l=t.x.redMul(r.redISub(o).redSqr());return this.curve.point(s,l)},l.prototype.mul=function(e){for(var t=e.clone(),i=this,n=this.curve.point(null,null),a=[];0!==t.cmpn(0);t.iushrn(1))a.push(t.andln(1));for(var r=a.length-1;r>=0;r--)0===a[r]?(i=i.diffAdd(n,this),n=n.dbl()):(n=i.diffAdd(n,this),i=i.dbl());return n},l.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},l.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},l.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},l.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},l.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},{"../utils":364,"./base":351,"bn.js":365,inherits:387}],355:[function(e,t,i){"use strict";var n=e("../utils"),a=e("bn.js"),r=e("inherits"),o=e("./base"),s=n.assert;function l(e){o.call(this,"short",e),this.a=new a(e.a,16).toRed(this.red),this.b=new a(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function c(e,t,i,n){o.BasePoint.call(this,e,"affine"),null===t&&null===i?(this.x=null,this.y=null,this.inf=!0):(this.x=new a(t,16),this.y=new a(i,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function u(e,t,i,n){o.BasePoint.call(this,e,"jacobian"),null===t&&null===i&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new a(0)):(this.x=new a(t,16),this.y=new a(i,16),this.z=new a(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}r(l,o),t.exports=l,l.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,i;if(e.beta)t=new a(e.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);t=(t=n[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red)}if(e.lambda)i=new a(e.lambda,16);else{var r=this._getEndoRoots(this.n);0===this.g.mul(r[0]).x.cmp(this.g.x.redMul(t))?i=r[0]:(i=r[1],s(0===this.g.mul(i).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:i,basis:e.basis?e.basis.map((function(e){return{a:new a(e.a,16),b:new a(e.b,16)}})):this._getEndoBasis(i)}}},l.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:a.mont(e),i=new a(2).toRed(t).redInvm(),n=i.redNeg(),r=new a(3).toRed(t).redNeg().redSqrt().redMul(i);return[n.redAdd(r).fromRed(),n.redSub(r).fromRed()]},l.prototype._getEndoBasis=function(e){for(var t,i,n,r,o,s,l,c,u,d=this.n.ushrn(Math.floor(this.n.bitLength()/2)),f=e,h=this.n.clone(),p=new a(1),m=new a(0),g=new a(0),v=new a(1),b=0;0!==f.cmpn(0);){var y=h.div(f);c=h.sub(y.mul(f)),u=g.sub(y.mul(p));var w=v.sub(y.mul(m));if(!n&&c.cmp(d)<0)t=l.neg(),i=p,n=c.neg(),r=u;else if(n&&2==++b)break;l=c,h=f,f=c,g=p,p=u,v=m,m=w}o=c.neg(),s=u;var _=n.sqr().add(r.sqr());return o.sqr().add(s.sqr()).cmp(_)>=0&&(o=t,s=i),n.negative&&(n=n.neg(),r=r.neg()),o.negative&&(o=o.neg(),s=s.neg()),[{a:n,b:r},{a:o,b:s}]},l.prototype._endoSplit=function(e){var t=this.endo.basis,i=t[0],n=t[1],a=n.b.mul(e).divRound(this.n),r=i.b.neg().mul(e).divRound(this.n),o=a.mul(i.a),s=r.mul(n.a),l=a.mul(i.b),c=r.mul(n.b);return{k1:e.sub(o).sub(s),k2:l.add(c).neg()}},l.prototype.pointFromX=function(e,t){(e=new a(e,16)).red||(e=e.toRed(this.red));var i=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=i.redSqrt();if(0!==n.redSqr().redSub(i).cmp(this.zero))throw new Error("invalid point");var r=n.fromRed().isOdd();return(t&&!r||!t&&r)&&(n=n.redNeg()),this.point(e,n)},l.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,i=e.y,n=this.a.redMul(t),a=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===i.redSqr().redISub(a).cmpn(0)},l.prototype._endoWnafMulAdd=function(e,t,i){for(var n=this._endoWnafT1,a=this._endoWnafT2,r=0;r<e.length;r++){var o=this._endoSplit(t[r]),s=e[r],l=s._getBeta();o.k1.negative&&(o.k1.ineg(),s=s.neg(!0)),o.k2.negative&&(o.k2.ineg(),l=l.neg(!0)),n[2*r]=s,n[2*r+1]=l,a[2*r]=o.k1,a[2*r+1]=o.k2}for(var c=this._wnafMulAdd(1,n,a,2*r,i),u=0;u<2*r;u++)n[u]=null,a[u]=null;return c},r(c,o.BasePoint),l.prototype.point=function(e,t,i){return new c(this,e,t,i)},l.prototype.pointFromJSON=function(e,t){return c.fromJSON(this,e,t)},c.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var i=this.curve,n=function(e){return i.point(e.x.redMul(i.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(n)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(n)}}}return t}},c.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},c.fromJSON=function(e,t,i){"string"==typeof t&&(t=JSON.parse(t));var n=e.point(t[0],t[1],i);if(!t[2])return n;function a(t){return e.point(t[0],t[1],i)}var r=t[2];return n.precomputed={beta:null,doubles:r.doubles&&{step:r.doubles.step,points:[n].concat(r.doubles.points.map(a))},naf:r.naf&&{wnd:r.naf.wnd,points:[n].concat(r.naf.points.map(a))}},n},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return this.inf},c.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var i=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(i)).redISub(this.y);return this.curve.point(i,n)},c.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,i=this.x.redSqr(),n=e.redInvm(),a=i.redAdd(i).redIAdd(i).redIAdd(t).redMul(n),r=a.redSqr().redISub(this.x.redAdd(this.x)),o=a.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,o)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(e){return e=new a(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,i){var n=[this,t],a=[e,i];return this.curve.endo?this.curve._endoWnafMulAdd(n,a):this.curve._wnafMulAdd(1,n,a,2)},c.prototype.jmulAdd=function(e,t,i){var n=[this,t],a=[e,i];return this.curve.endo?this.curve._endoWnafMulAdd(n,a,!0):this.curve._wnafMulAdd(1,n,a,2,!0)},c.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},c.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var i=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:i.naf&&{wnd:i.naf.wnd,points:i.naf.points.map(n)},doubles:i.doubles&&{step:i.doubles.step,points:i.doubles.points.map(n)}}}return t},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},r(u,o.BasePoint),l.prototype.jpoint=function(e,t,i){return new u(this,e,t,i)},u.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),i=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(i,n)},u.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},u.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),i=this.z.redSqr(),n=this.x.redMul(t),a=e.x.redMul(i),r=this.y.redMul(t.redMul(e.z)),o=e.y.redMul(i.redMul(this.z)),s=n.redSub(a),l=r.redSub(o);if(0===s.cmpn(0))return 0!==l.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),u=c.redMul(s),d=n.redMul(c),f=l.redSqr().redIAdd(u).redISub(d).redISub(d),h=l.redMul(d.redISub(f)).redISub(r.redMul(u)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(f,h,p)},u.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),i=this.x,n=e.x.redMul(t),a=this.y,r=e.y.redMul(t).redMul(this.z),o=i.redSub(n),s=a.redSub(r);if(0===o.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=o.redSqr(),c=l.redMul(o),u=i.redMul(l),d=s.redSqr().redIAdd(c).redISub(u).redISub(u),f=s.redMul(u.redISub(d)).redISub(a.redMul(c)),h=this.z.redMul(o);return this.curve.jpoint(d,f,h)},u.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,i=0;i<e;i++)t=t.dbl();return t}var n=this.curve.a,a=this.curve.tinv,r=this.x,o=this.y,s=this.z,l=s.redSqr().redSqr(),c=o.redAdd(o);for(i=0;i<e;i++){var u=r.redSqr(),d=c.redSqr(),f=d.redSqr(),h=u.redAdd(u).redIAdd(u).redIAdd(n.redMul(l)),p=r.redMul(d),m=h.redSqr().redISub(p.redAdd(p)),g=p.redISub(m),v=h.redMul(g);v=v.redIAdd(v).redISub(f);var b=c.redMul(s);i+1<e&&(l=l.redMul(f)),r=m,s=b,c=v}return this.curve.jpoint(r,c.redMul(a),s)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},u.prototype._zeroDbl=function(){var e,t,i;if(this.zOne){var n=this.x.redSqr(),a=this.y.redSqr(),r=a.redSqr(),o=this.x.redAdd(a).redSqr().redISub(n).redISub(r);o=o.redIAdd(o);var s=n.redAdd(n).redIAdd(n),l=s.redSqr().redISub(o).redISub(o),c=r.redIAdd(r);c=(c=c.redIAdd(c)).redIAdd(c),e=l,t=s.redMul(o.redISub(l)).redISub(c),i=this.y.redAdd(this.y)}else{var u=this.x.redSqr(),d=this.y.redSqr(),f=d.redSqr(),h=this.x.redAdd(d).redSqr().redISub(u).redISub(f);h=h.redIAdd(h);var p=u.redAdd(u).redIAdd(u),m=p.redSqr(),g=f.redIAdd(f);g=(g=g.redIAdd(g)).redIAdd(g),e=m.redISub(h).redISub(h),t=p.redMul(h.redISub(e)).redISub(g),i=(i=this.y.redMul(this.z)).redIAdd(i)}return this.curve.jpoint(e,t,i)},u.prototype._threeDbl=function(){var e,t,i;if(this.zOne){var n=this.x.redSqr(),a=this.y.redSqr(),r=a.redSqr(),o=this.x.redAdd(a).redSqr().redISub(n).redISub(r);o=o.redIAdd(o);var s=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),l=s.redSqr().redISub(o).redISub(o);e=l;var c=r.redIAdd(r);c=(c=c.redIAdd(c)).redIAdd(c),t=s.redMul(o.redISub(l)).redISub(c),i=this.y.redAdd(this.y)}else{var u=this.z.redSqr(),d=this.y.redSqr(),f=this.x.redMul(d),h=this.x.redSub(u).redMul(this.x.redAdd(u));h=h.redAdd(h).redIAdd(h);var p=f.redIAdd(f),m=(p=p.redIAdd(p)).redAdd(p);e=h.redSqr().redISub(m),i=this.y.redAdd(this.z).redSqr().redISub(d).redISub(u);var g=d.redSqr();g=(g=(g=g.redIAdd(g)).redIAdd(g)).redIAdd(g),t=h.redMul(p.redISub(e)).redISub(g)}return this.curve.jpoint(e,t,i)},u.prototype._dbl=function(){var e=this.curve.a,t=this.x,i=this.y,n=this.z,a=n.redSqr().redSqr(),r=t.redSqr(),o=i.redSqr(),s=r.redAdd(r).redIAdd(r).redIAdd(e.redMul(a)),l=t.redAdd(t),c=(l=l.redIAdd(l)).redMul(o),u=s.redSqr().redISub(c.redAdd(c)),d=c.redISub(u),f=o.redSqr();f=(f=(f=f.redIAdd(f)).redIAdd(f)).redIAdd(f);var h=s.redMul(d).redISub(f),p=i.redAdd(i).redMul(n);return this.curve.jpoint(u,h,p)},u.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),i=this.z.redSqr(),n=t.redSqr(),a=e.redAdd(e).redIAdd(e),r=a.redSqr(),o=this.x.redAdd(t).redSqr().redISub(e).redISub(n),s=(o=(o=(o=o.redIAdd(o)).redAdd(o).redIAdd(o)).redISub(r)).redSqr(),l=n.redIAdd(n);l=(l=(l=l.redIAdd(l)).redIAdd(l)).redIAdd(l);var c=a.redIAdd(o).redSqr().redISub(r).redISub(s).redISub(l),u=t.redMul(c);u=(u=u.redIAdd(u)).redIAdd(u);var d=this.x.redMul(s).redISub(u);d=(d=d.redIAdd(d)).redIAdd(d);var f=this.y.redMul(c.redMul(l.redISub(c)).redISub(o.redMul(s)));f=(f=(f=f.redIAdd(f)).redIAdd(f)).redIAdd(f);var h=this.z.redAdd(o).redSqr().redISub(i).redISub(s);return this.curve.jpoint(d,f,h)},u.prototype.mul=function(e,t){return e=new a(e,t),this.curve._wnafMul(this,e)},u.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),i=e.z.redSqr();if(0!==this.x.redMul(i).redISub(e.x.redMul(t)).cmpn(0))return!1;var n=t.redMul(this.z),a=i.redMul(e.z);return 0===this.y.redMul(a).redISub(e.y.redMul(n)).cmpn(0)},u.prototype.eqXToP=function(e){var t=this.z.redSqr(),i=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(i))return!0;for(var n=e.clone(),a=this.curve.redN.redMul(t);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(i.redIAdd(a),0===this.x.cmp(i))return!0}},u.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},{"../utils":364,"./base":351,"bn.js":365,inherits:387}],356:[function(e,t,i){"use strict";var n,a=i,r=e("hash.js"),o=e("./curve"),s=e("./utils").assert;function l(e){"short"===e.type?this.curve=new o.short(e):"edwards"===e.type?this.curve=new o.edwards(e):this.curve=new o.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(e,t){Object.defineProperty(a,e,{configurable:!0,enumerable:!0,get:function(){var i=new l(t);return Object.defineProperty(a,e,{configurable:!0,enumerable:!0,value:i}),i}})}a.PresetCurve=l,c("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:r.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:r.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:r.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:r.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),c("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:r.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:r.sha256,gRed:!1,g:["9"]}),c("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:r.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=e("./precomputed/secp256k1")}catch(e){n=void 0}c("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:r.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},{"./curve":353,"./precomputed/secp256k1":363,"./utils":364,"hash.js":372}],357:[function(e,t,i){"use strict";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)}var a=e("bn.js"),r=e("hmac-drbg"),o=e("../utils"),s=e("../curves"),l=e("brorand"),c=o.assert,u=e("./key"),d=e("./signature");function f(e){if(!(this instanceof f))return new f(e);"string"==typeof e&&(c(s.hasOwnProperty(e),"Unknown curve "+e),e=s[e]),e instanceof s.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}t.exports=f,f.prototype.keyPair=function(e){return new u(this,e)},f.prototype.keyFromPrivate=function(e,t){return u.fromPrivate(this,e,t)},f.prototype.keyFromPublic=function(e,t){return u.fromPublic(this,e,t)},f.prototype.genKeyPair=function(e){e||(e={});for(var t=new r({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||l(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),i=this.n.byteLength(),n=this.n.sub(new a(2));;){var o=new a(t.generate(i));if(!(o.cmp(n)>0))return o.iaddn(1),this.keyFromPrivate(o)}},f.prototype._truncateToN=function(e,t){var i=8*e.byteLength()-this.n.bitLength();return i>0&&(e=e.ushrn(i)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},f.prototype.sign=function(e,t,i,o){"object"===n(i)&&(o=i,i=null),o||(o={}),t=this.keyFromPrivate(t,i),e=this._truncateToN(new a(e,16));for(var s=this.n.byteLength(),l=t.getPrivate().toArray("be",s),c=e.toArray("be",s),u=new r({hash:this.hash,entropy:l,nonce:c,pers:o.pers,persEnc:o.persEnc||"utf8"}),f=this.n.sub(new a(1)),h=0;;h++){var p=o.k?o.k(h):new a(u.generate(this.n.byteLength()));if(!((p=this._truncateToN(p,!0)).cmpn(1)<=0||p.cmp(f)>=0)){var m=this.g.mul(p);if(!m.isInfinity()){var g=m.getX(),v=g.umod(this.n);if(0!==v.cmpn(0)){var b=p.invm(this.n).mul(v.mul(t.getPrivate()).iadd(e));if(0!==(b=b.umod(this.n)).cmpn(0)){var y=(m.getY().isOdd()?1:0)|(0!==g.cmp(v)?2:0);return o.canonical&&b.cmp(this.nh)>0&&(b=this.n.sub(b),y^=1),new d({r:v,s:b,recoveryParam:y})}}}}}},f.prototype.verify=function(e,t,i,n){e=this._truncateToN(new a(e,16)),i=this.keyFromPublic(i,n);var r=(t=new d(t,"hex")).r,o=t.s;if(r.cmpn(1)<0||r.cmp(this.n)>=0)return!1;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;var s,l=o.invm(this.n),c=l.mul(e).umod(this.n),u=l.mul(r).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(c,i.getPublic(),u)).isInfinity()&&s.eqXToP(r):!(s=this.g.mulAdd(c,i.getPublic(),u)).isInfinity()&&0===s.getX().umod(this.n).cmp(r)},f.prototype.recoverPubKey=function(e,t,i,n){c((3&i)===i,"The recovery param is more than two bits"),t=new d(t,n);var r=this.n,o=new a(e),s=t.r,l=t.s,u=1&i,f=i>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&f)throw new Error("Unable to find sencond key candinate");s=f?this.curve.pointFromX(s.add(this.curve.n),u):this.curve.pointFromX(s,u);var h=t.r.invm(r),p=r.sub(o).mul(h).umod(r),m=l.mul(h).umod(r);return this.g.mulAdd(p,s,m)},f.prototype.getKeyRecoveryParam=function(e,t,i,n){if(null!==(t=new d(t,n)).recoveryParam)return t.recoveryParam;for(var a=0;a<4;a++){var r;try{r=this.recoverPubKey(e,t,a)}catch(e){continue}if(r.eq(i))return a}throw new Error("Unable to find valid recovery factor")}},{"../curves":356,"../utils":364,"./key":358,"./signature":359,"bn.js":365,brorand:184,"hmac-drbg":384}],358:[function(e,t,i){"use strict";var n=e("bn.js"),a=e("../utils").assert;function r(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}t.exports=r,r.fromPublic=function(e,t,i){return t instanceof r?t:new r(e,{pub:t,pubEnc:i})},r.fromPrivate=function(e,t,i){return t instanceof r?t:new r(e,{priv:t,privEnc:i})},r.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},r.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},r.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},r.prototype._importPrivate=function(e,t){this.priv=new n(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},r.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?a(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||a(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},r.prototype.derive=function(e){return e.mul(this.priv).getX()},r.prototype.sign=function(e,t,i){return this.ec.sign(e,this,t,i)},r.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},r.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},{"../utils":364,"bn.js":365}],359:[function(e,t,i){"use strict";var n=e("bn.js"),a=e("../utils"),r=a.assert;function o(e,t){if(e instanceof o)return e;this._importDER(e,t)||(r(e.r&&e.s,"Signature without r or s"),this.r=new n(e.r,16),this.s=new n(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function l(e,t){var i=e[t.place++];if(!(128&i))return i;var n=15&i;if(0===n||n>4)return!1;for(var a=0,r=0,o=t.place;r<n;r++,o++)a<<=8,a|=e[o],a>>>=0;return!(a<=127)&&(t.place=o,a)}function c(e){for(var t=0,i=e.length-1;!e[t]&&!(128&e[t+1])&&t<i;)t++;return 0===t?e:e.slice(t)}function u(e,t){if(t<128)e.push(t);else{var i=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|i);--i;)e.push(t>>>(i<<3)&255);e.push(t)}}t.exports=o,o.prototype._importDER=function(e,t){e=a.toArray(e,t);var i=new s;if(48!==e[i.place++])return!1;var r=l(e,i);if(!1===r)return!1;if(r+i.place!==e.length)return!1;if(2!==e[i.place++])return!1;var o=l(e,i);if(!1===o)return!1;var c=e.slice(i.place,o+i.place);if(i.place+=o,2!==e[i.place++])return!1;var u=l(e,i);if(!1===u)return!1;if(e.length!==u+i.place)return!1;var d=e.slice(i.place,u+i.place);if(0===c[0]){if(!(128&c[1]))return!1;c=c.slice(1)}if(0===d[0]){if(!(128&d[1]))return!1;d=d.slice(1)}return this.r=new n(c),this.s=new n(d),this.recoveryParam=null,!0},o.prototype.toDER=function(e){var t=this.r.toArray(),i=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&i[0]&&(i=[0].concat(i)),t=c(t),i=c(i);!(i[0]||128&i[1]);)i=i.slice(1);var n=[2];u(n,t.length),(n=n.concat(t)).push(2),u(n,i.length);var r=n.concat(i),o=[48];return u(o,r.length),o=o.concat(r),a.encode(o,e)}},{"../utils":364,"bn.js":365}],360:[function(e,t,i){"use strict";var n=e("hash.js"),a=e("../curves"),r=e("../utils"),o=r.assert,s=r.parseBytes,l=e("./key"),c=e("./signature");function u(e){if(o("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof u))return new u(e);e=a[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=n.sha512}t.exports=u,u.prototype.sign=function(e,t){e=s(e);var i=this.keyFromSecret(t),n=this.hashInt(i.messagePrefix(),e),a=this.g.mul(n),r=this.encodePoint(a),o=this.hashInt(r,i.pubBytes(),e).mul(i.priv()),l=n.add(o).umod(this.curve.n);return this.makeSignature({R:a,S:l,Rencoded:r})},u.prototype.verify=function(e,t,i){e=s(e),t=this.makeSignature(t);var n=this.keyFromPublic(i),a=this.hashInt(t.Rencoded(),n.pubBytes(),e),r=this.g.mul(t.S());return t.R().add(n.pub().mul(a)).eq(r)},u.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return r.intFromLE(e.digest()).umod(this.curve.n)},u.prototype.keyFromPublic=function(e){return l.fromPublic(this,e)},u.prototype.keyFromSecret=function(e){return l.fromSecret(this,e)},u.prototype.makeSignature=function(e){return e instanceof c?e:new c(this,e)},u.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},u.prototype.decodePoint=function(e){var t=(e=r.parseBytes(e)).length-1,i=e.slice(0,t).concat(-129&e[t]),n=0!=(128&e[t]),a=r.intFromLE(i);return this.curve.pointFromY(a,n)},u.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},u.prototype.decodeInt=function(e){return r.intFromLE(e)},u.prototype.isPoint=function(e){return e instanceof this.pointClass}},{"../curves":356,"../utils":364,"./key":361,"./signature":362,"hash.js":372}],361:[function(e,t,i){"use strict";var n=e("../utils"),a=n.assert,r=n.parseBytes,o=n.cachedProperty;function s(e,t){this.eddsa=e,this._secret=r(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=r(t.pub)}s.fromPublic=function(e,t){return t instanceof s?t:new s(e,{pub:t})},s.fromSecret=function(e,t){return t instanceof s?t:new s(e,{secret:t})},s.prototype.secret=function(){return this._secret},o(s,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),o(s,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),o(s,"privBytes",(function(){var e=this.eddsa,t=this.hash(),i=e.encodingLength-1,n=t.slice(0,e.encodingLength);return n[0]&=248,n[i]&=127,n[i]|=64,n})),o(s,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),o(s,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),o(s,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),s.prototype.sign=function(e){return a(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},s.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},s.prototype.getSecret=function(e){return a(this._secret,"KeyPair is public only"),n.encode(this.secret(),e)},s.prototype.getPublic=function(e){return n.encode(this.pubBytes(),e)},t.exports=s},{"../utils":364}],362:[function(e,t,i){"use strict";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)}var a=e("bn.js"),r=e("../utils"),o=r.assert,s=r.cachedProperty,l=r.parseBytes;function c(e,t){this.eddsa=e,"object"!==n(t)&&(t=l(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),o(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof a&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}s(c,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),s(c,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),s(c,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),s(c,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),c.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},c.prototype.toHex=function(){return r.encode(this.toBytes(),"hex").toUpperCase()},t.exports=c},{"../utils":364,"bn.js":365}],363:[function(e,t,i){"use strict";t.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},{}],364:[function(e,t,i){"use strict";var n=i,a=e("bn.js"),r=e("minimalistic-assert"),o=e("minimalistic-crypto-utils");n.assert=r,n.toArray=o.toArray,n.zero2=o.zero2,n.toHex=o.toHex,n.encode=o.encode,n.getNAF=function(e,t,i){var n=new Array(Math.max(e.bitLength(),i)+1);n.fill(0);for(var a=1<<t+1,r=e.clone(),o=0;o<n.length;o++){var s,l=r.andln(a-1);r.isOdd()?(s=l>(a>>1)-1?(a>>1)-l:l,r.isubn(s)):s=0,n[o]=s,r.iushrn(1)}return n},n.getJSF=function(e,t){var i=[[],[]];e=e.clone(),t=t.clone();for(var n=0,a=0;e.cmpn(-n)>0||t.cmpn(-a)>0;){var r,o,s,l=e.andln(3)+n&3,c=t.andln(3)+a&3;3===l&&(l=-1),3===c&&(c=-1),r=0==(1&l)?0:3!==(s=e.andln(7)+n&7)&&5!==s||2!==c?l:-l,i[0].push(r),o=0==(1&c)?0:3!==(s=t.andln(7)+a&7)&&5!==s||2!==l?c:-c,i[1].push(o),2*n===r+1&&(n=1-n),2*a===o+1&&(a=1-a),e.iushrn(1),t.iushrn(1)}return i},n.cachedProperty=function(e,t,i){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=i.call(this)}},n.parseBytes=function(e){return"string"==typeof e?n.toArray(e,"hex"):e},n.intFromLE=function(e){return new a(e,"hex","le")}},{"bn.js":365,"minimalistic-assert":437,"minimalistic-crypto-utils":438}],365:[function(e,t,i){arguments[4][181][0].apply(i,arguments)},{buffer:185,dup:181}],366:[function(e,t,i){t.exports={_from:"elliptic@^6.5.3",_id:"elliptic@6.5.3",_inBundle:!1,_integrity:"sha512-IMqzv5wNQf+E6aHeIqATs0tOLeOTwj1QKbRcS3jBbYkl5oLAserA8yJTT7/VyHUYG91PRmPyeQDObKLPpeS4dw==",_location:"/elliptic",_phantomChildren:{},_requested:{type:"range",registry:!0,raw:"elliptic@^6.5.3",name:"elliptic",escapedName:"elliptic",rawSpec:"^6.5.3",saveSpec:null,fetchSpec:"^6.5.3"},_requiredBy:["/browserify-sign","/create-ecdh"],_resolved:"https://registry.npmjs.org/elliptic/-/elliptic-6.5.3.tgz",_shasum:"cb59eb2efdaf73a0bd78ccd7015a62ad6e0f93d6",_spec:"elliptic@^6.5.3",_where:"/mnt/d/dev/git/exceljs/node_modules/browserify-sign",author:{name:"Fedor Indutny",email:"fedor@indutny.com"},bugs:{url:"https://github.com/indutny/elliptic/issues"},bundleDependencies:!1,dependencies:{"bn.js":"^4.4.0",brorand:"^1.0.1","hash.js":"^1.0.0","hmac-drbg":"^1.0.0",inherits:"^2.0.1","minimalistic-assert":"^1.0.0","minimalistic-crypto-utils":"^1.0.0"},deprecated:!1,description:"EC cryptography",devDependencies:{brfs:"^1.4.3",coveralls:"^3.0.8",grunt:"^1.0.4","grunt-browserify":"^5.0.0","grunt-cli":"^1.2.0","grunt-contrib-connect":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^1.0.1","grunt-mocha-istanbul":"^3.0.1","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.2",jscs:"^3.0.7",jshint:"^2.10.3",mocha:"^6.2.2"},files:["lib"],homepage:"https://github.com/indutny/elliptic",keywords:["EC","Elliptic","curve","Cryptography"],license:"MIT",main:"lib/elliptic.js",name:"elliptic",repository:{type:"git",url:"git+ssh://git@github.com/indutny/elliptic.git"},scripts:{jscs:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",jshint:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",lint:"npm run jscs && npm run jshint",test:"npm run lint && npm run unit",unit:"istanbul test _mocha --reporter=spec test/index.js",version:"grunt dist && git add dist/"},version:"6.5.3"}},{}],367:[function(e,t,i){"use strict";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)}var a=Object.create||function(e){var t=function(){};return t.prototype=e,new t},r=Object.keys||function(e){var t=[];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.push(i);return i},o=Function.prototype.bind||function(e){var t=this;return function(){return t.apply(e,arguments)}};function s(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=a(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}t.exports=s,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._maxListeners=void 0;var l,c=10;try{var u={};Object.defineProperty&&Object.defineProperty(u,"x",{value:0}),l=0===u.x}catch(e){l=!1}function d(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function f(e,t,i){if(t)e.call(i);else for(var n=e.length,a=I(e,n),r=0;r<n;++r)a[r].call(i)}function h(e,t,i,n){if(t)e.call(i,n);else for(var a=e.length,r=I(e,a),o=0;o<a;++o)r[o].call(i,n)}function p(e,t,i,n,a){if(t)e.call(i,n,a);else for(var r=e.length,o=I(e,r),s=0;s<r;++s)o[s].call(i,n,a)}function m(e,t,i,n,a,r){if(t)e.call(i,n,a,r);else for(var o=e.length,s=I(e,o),l=0;l<o;++l)s[l].call(i,n,a,r)}function g(e,t,i,n){if(t)e.apply(i,n);else for(var a=e.length,r=I(e,a),o=0;o<a;++o)r[o].apply(i,n)}function v(e,t,i,r){var o,s,l;if("function"!=typeof i)throw new TypeError('"listener" argument must be a function');if((s=e._events)?(s.newListener&&(e.emit("newListener",t,i.listener?i.listener:i),s=e._events),l=s[t]):(s=e._events=a(null),e._eventsCount=0),l){if("function"==typeof l?l=s[t]=r?[i,l]:[l,i]:r?l.unshift(i):l.push(i),!l.warned&&(o=d(e))&&o>0&&l.length>o){l.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+l.length+' "'+String(t)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=l.length,"object"===("undefined"==typeof console?"undefined":n(console))&&console.warn&&console.warn("%s: %s",c.name,c.message)}}else l=s[t]=i,++e._eventsCount;return e}function b(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var e=new Array(arguments.length),t=0;t<e.length;++t)e[t]=arguments[t];this.listener.apply(this.target,e)}}function y(e,t,i){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:i},a=o.call(b,n);return a.listener=i,n.wrapFn=a,a}function w(e,t,i){var n=e._events;if(!n)return[];var a=n[t];return a?"function"==typeof a?i?[a.listener||a]:[a]:i?function(e){for(var t=new Array(e.length),i=0;i<t.length;++i)t[i]=e[i].listener||e[i];return t}(a):I(a,a.length):[]}function _(e){var t=this._events;if(t){var i=t[e];if("function"==typeof i)return 1;if(i)return i.length}return 0}function I(e,t){for(var i=new Array(t),n=0;n<t;++n)i[n]=e[n];return i}l?Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(e){if("number"!=typeof e||e<0||e!=e)throw new TypeError('"defaultMaxListeners" must be a positive number');c=e}}):s.defaultMaxListeners=c,s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return d(this)},s.prototype.emit=function(e){var t,i,n,a,r,o,s="error"===e;if(o=this._events)s=s&&null==o.error;else if(!s)return!1;if(s){if(arguments.length>1&&(t=arguments[1]),t instanceof Error)throw t;var l=new Error('Unhandled "error" event. ('+t+")");throw l.context=t,l}if(!(i=o[e]))return!1;var c="function"==typeof i;switch(n=arguments.length){case 1:f(i,c,this);break;case 2:h(i,c,this,arguments[1]);break;case 3:p(i,c,this,arguments[1],arguments[2]);break;case 4:m(i,c,this,arguments[1],arguments[2],arguments[3]);break;default:for(a=new Array(n-1),r=1;r<n;r++)a[r-1]=arguments[r];g(i,c,this,a)}return!0},s.prototype.addListener=function(e,t){return v(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return v(this,e,t,!0)},s.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,y(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,y(this,e,t)),this},s.prototype.removeListener=function(e,t){var i,n,r,o,s;if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');if(!(n=this._events))return this;if(!(i=n[e]))return this;if(i===t||i.listener===t)0==--this._eventsCount?this._events=a(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,i.listener||t));else if("function"!=typeof i){for(r=-1,o=i.length-1;o>=0;o--)if(i[o]===t||i[o].listener===t){s=i[o].listener,r=o;break}if(r<0)return this;0===r?i.shift():function(e,t){for(var i=t,n=i+1,a=e.length;n<a;i+=1,n+=1)e[i]=e[n];e.pop()}(i,r),1===i.length&&(n[e]=i[0]),n.removeListener&&this.emit("removeListener",e,s||t)}return this},s.prototype.removeAllListeners=function(e){var t,i,n;if(!(i=this._events))return this;if(!i.removeListener)return 0===arguments.length?(this._events=a(null),this._eventsCount=0):i[e]&&(0==--this._eventsCount?this._events=a(null):delete i[e]),this;if(0===arguments.length){var o,s=r(i);for(n=0;n<s.length;++n)"removeListener"!==(o=s[n])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=a(null),this._eventsCount=0,this}if("function"==typeof(t=i[e]))this.removeListener(e,t);else if(t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},s.prototype.listeners=function(e){return w(this,e,!0)},s.prototype.rawListeners=function(e){return w(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):_.call(e,t)},s.prototype.listenerCount=_,s.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]}},{}],368:[function(e,t,i){"use strict";var n=e("safe-buffer").Buffer,a=e("md5.js");t.exports=function(e,t,i,r){if(n.isBuffer(e)||(e=n.from(e,"binary")),t&&(n.isBuffer(t)||(t=n.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var o=i/8,s=n.alloc(o),l=n.alloc(r||0),c=n.alloc(0);o>0||r>0;){var u=new a;u.update(c),u.update(e),t&&u.update(t),c=u.digest();var d=0;if(o>0){var f=s.length-o;d=Math.min(o,c.length),c.copy(s,f,0,d),o-=d}if(d<c.length&&r>0){var h=l.length-r,p=Math.min(r,c.length-d);c.copy(l,h,d,d+p),r-=p}}return c.fill(0),{key:s,iv:l}}},{"md5.js":434,"safe-buffer":494}],369:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=e("@fast-csv/format");Object.defineProperty(i,"format",{enumerable:!0,get:function(){return n.format}}),Object.defineProperty(i,"write",{enumerable:!0,get:function(){return n.write}}),Object.defineProperty(i,"writeToStream",{enumerable:!0,get:function(){return n.writeToStream}}),Object.defineProperty(i,"writeToBuffer",{enumerable:!0,get:function(){return n.writeToBuffer}}),Object.defineProperty(i,"writeToString",{enumerable:!0,get:function(){return n.writeToString}}),Object.defineProperty(i,"writeToPath",{enumerable:!0,get:function(){return n.writeToPath}}),Object.defineProperty(i,"CsvFormatterStream",{enumerable:!0,get:function(){return n.CsvFormatterStream}}),Object.defineProperty(i,"FormatterOptions",{enumerable:!0,get:function(){return n.FormatterOptions}});var a=e("@fast-csv/parse");Object.defineProperty(i,"parse",{enumerable:!0,get:function(){return a.parse}}),Object.defineProperty(i,"parseString",{enumerable:!0,get:function(){return a.parseString}}),Object.defineProperty(i,"parseStream",{enumerable:!0,get:function(){return a.parseStream}}),Object.defineProperty(i,"parseFile",{enumerable:!0,get:function(){return a.parseFile}}),Object.defineProperty(i,"ParserOptions",{enumerable:!0,get:function(){return a.ParserOptions}}),Object.defineProperty(i,"CsvParserStream",{enumerable:!0,get:function(){return a.CsvParserStream}})},{"@fast-csv/format":148,"@fast-csv/parse":152}],370:[function(e,t,i){"use strict";var n=e("safe-buffer").Buffer,a=e("readable-stream").Transform;function r(e){a.call(this),this._block=n.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}e("inherits")(r,a),r.prototype._transform=function(e,t,i){var n=null;try{this.update(e,t)}catch(e){n=e}i(n)},r.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},r.prototype.update=function(e,t){if(function(e,t){if(!n.isBuffer(e)&&"string"!=typeof e)throw new TypeError(t+" must be a string or a buffer")}(e,"Data"),this._finalized)throw new Error("Digest already called");n.isBuffer(e)||(e=n.from(e,t));for(var i=this._block,a=0;this._blockOffset+e.length-a>=this._blockSize;){for(var r=this._blockOffset;r<this._blockSize;)i[r++]=e[a++];this._update(),this._blockOffset=0}for(;a<e.length;)i[this._blockOffset++]=e[a++];for(var o=0,s=8*e.length;s>0;++o)this._length[o]+=s,(s=this._length[o]/4294967296|0)>0&&(this._length[o]-=4294967296*s);return this},r.prototype._update=function(){throw new Error("_update is not implemented")},r.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var i=0;i<4;++i)this._length[i]=0;return t},r.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=r},{inherits:387,"readable-stream":491,"safe-buffer":371}],371:[function(e,t,i){arguments[4][214][0].apply(i,arguments)},{buffer:216,dup:214}],372:[function(e,t,i){"use strict";var n=i;n.utils=e("./hash/utils"),n.common=e("./hash/common"),n.sha=e("./hash/sha"),n.ripemd=e("./hash/ripemd"),n.hmac=e("./hash/hmac"),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},{"./hash/common":373,"./hash/hmac":374,"./hash/ripemd":375,"./hash/sha":376,"./hash/utils":383}],373:[function(e,t,i){"use strict";var n=e("./utils"),a=e("minimalistic-assert");function r(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}i.BlockHash=r,r.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var i=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-i,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-i,this.endian);for(var a=0;a<e.length;a+=this._delta32)this._update(e,a,a+this._delta32)}return this},r.prototype.digest=function(e){return this.update(this._pad()),a(null===this.pending),this._digest(e)},r.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,i=t-(e+this.padLength)%t,n=new Array(i+this.padLength);n[0]=128;for(var a=1;a<i;a++)n[a]=0;if(e<<=3,"big"===this.endian){for(var r=8;r<this.padLength;r++)n[a++]=0;n[a++]=0,n[a++]=0,n[a++]=0,n[a++]=0,n[a++]=e>>>24&255,n[a++]=e>>>16&255,n[a++]=e>>>8&255,n[a++]=255&e}else for(n[a++]=255&e,n[a++]=e>>>8&255,n[a++]=e>>>16&255,n[a++]=e>>>24&255,n[a++]=0,n[a++]=0,n[a++]=0,n[a++]=0,r=8;r<this.padLength;r++)n[a++]=0;return n}},{"./utils":383,"minimalistic-assert":437}],374:[function(e,t,i){"use strict";var n=e("./utils"),a=e("minimalistic-assert");function r(e,t,i){if(!(this instanceof r))return new r(e,t,i);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(t,i))}t.exports=r,r.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),a(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=(new this.Hash).update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},r.prototype.update=function(e,t){return this.inner.update(e,t),this},r.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},{"./utils":383,"minimalistic-assert":437}],375:[function(e,t,i){"use strict";var n=e("./utils"),a=e("./common"),r=n.rotl32,o=n.sum32,s=n.sum32_3,l=n.sum32_4,c=a.BlockHash;function u(){if(!(this instanceof u))return new u;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function d(e,t,i,n){return e<=15?t^i^n:e<=31?t&i|~t&n:e<=47?(t|~i)^n:e<=63?t&n|i&~n:t^(i|~n)}function f(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function h(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}n.inherits(u,c),i.ripemd160=u,u.blockSize=512,u.outSize=160,u.hmacStrength=192,u.padLength=64,u.prototype._update=function(e,t){for(var i=this.h[0],n=this.h[1],a=this.h[2],c=this.h[3],u=this.h[4],b=i,y=n,w=a,_=c,I=u,x=0;x<80;x++){var S=o(r(l(i,d(x,n,a,c),e[p[x]+t],f(x)),g[x]),u);i=u,u=c,c=r(a,10),a=n,n=S,S=o(r(l(b,d(79-x,y,w,_),e[m[x]+t],h(x)),v[x]),I),b=I,I=_,_=r(w,10),w=y,y=S}S=s(this.h[1],a,_),this.h[1]=s(this.h[2],c,I),this.h[2]=s(this.h[3],u,b),this.h[3]=s(this.h[4],i,y),this.h[4]=s(this.h[0],n,w),this.h[0]=S},u.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"little"):n.split32(this.h,"little")};var p=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],m=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],g=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],v=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},{"./common":373,"./utils":383}],376:[function(e,t,i){"use strict";i.sha1=e("./sha/1"),i.sha224=e("./sha/224"),i.sha256=e("./sha/256"),i.sha384=e("./sha/384"),i.sha512=e("./sha/512")},{"./sha/1":377,"./sha/224":378,"./sha/256":379,"./sha/384":380,"./sha/512":381}],377:[function(e,t,i){"use strict";var n=e("../utils"),a=e("../common"),r=e("./common"),o=n.rotl32,s=n.sum32,l=n.sum32_5,c=r.ft_1,u=a.BlockHash,d=[1518500249,1859775393,2400959708,3395469782];function f(){if(!(this instanceof f))return new f;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(f,u),t.exports=f,f.blockSize=512,f.outSize=160,f.hmacStrength=80,f.padLength=64,f.prototype._update=function(e,t){for(var i=this.W,n=0;n<16;n++)i[n]=e[t+n];for(;n<i.length;n++)i[n]=o(i[n-3]^i[n-8]^i[n-14]^i[n-16],1);var a=this.h[0],r=this.h[1],u=this.h[2],f=this.h[3],h=this.h[4];for(n=0;n<i.length;n++){var p=~~(n/20),m=l(o(a,5),c(p,r,u,f),h,i[n],d[p]);h=f,f=u,u=o(r,30),r=a,a=m}this.h[0]=s(this.h[0],a),this.h[1]=s(this.h[1],r),this.h[2]=s(this.h[2],u),this.h[3]=s(this.h[3],f),this.h[4]=s(this.h[4],h)},f.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},{"../common":373,"../utils":383,"./common":382}],378:[function(e,t,i){"use strict";var n=e("../utils"),a=e("./256");function r(){if(!(this instanceof r))return new r;a.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(r,a),t.exports=r,r.blockSize=512,r.outSize=224,r.hmacStrength=192,r.padLength=64,r.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},{"../utils":383,"./256":379}],379:[function(e,t,i){"use strict";var n=e("../utils"),a=e("../common"),r=e("./common"),o=e("minimalistic-assert"),s=n.sum32,l=n.sum32_4,c=n.sum32_5,u=r.ch32,d=r.maj32,f=r.s0_256,h=r.s1_256,p=r.g0_256,m=r.g1_256,g=a.BlockHash,v=[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];function b(){if(!(this instanceof b))return new b;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=v,this.W=new Array(64)}n.inherits(b,g),t.exports=b,b.blockSize=512,b.outSize=256,b.hmacStrength=192,b.padLength=64,b.prototype._update=function(e,t){for(var i=this.W,n=0;n<16;n++)i[n]=e[t+n];for(;n<i.length;n++)i[n]=l(m(i[n-2]),i[n-7],p(i[n-15]),i[n-16]);var a=this.h[0],r=this.h[1],g=this.h[2],v=this.h[3],b=this.h[4],y=this.h[5],w=this.h[6],_=this.h[7];for(o(this.k.length===i.length),n=0;n<i.length;n++){var I=c(_,h(b),u(b,y,w),this.k[n],i[n]),x=s(f(a),d(a,r,g));_=w,w=y,y=b,b=s(v,I),v=g,g=r,r=a,a=s(I,x)}this.h[0]=s(this.h[0],a),this.h[1]=s(this.h[1],r),this.h[2]=s(this.h[2],g),this.h[3]=s(this.h[3],v),this.h[4]=s(this.h[4],b),this.h[5]=s(this.h[5],y),this.h[6]=s(this.h[6],w),this.h[7]=s(this.h[7],_)},b.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},{"../common":373,"../utils":383,"./common":382,"minimalistic-assert":437}],380:[function(e,t,i){"use strict";var n=e("../utils"),a=e("./512");function r(){if(!(this instanceof r))return new r;a.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}n.inherits(r,a),t.exports=r,r.blockSize=1024,r.outSize=384,r.hmacStrength=192,r.padLength=128,r.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},{"../utils":383,"./512":381}],381:[function(e,t,i){"use strict";var n=e("../utils"),a=e("../common"),r=e("minimalistic-assert"),o=n.rotr64_hi,s=n.rotr64_lo,l=n.shr64_hi,c=n.shr64_lo,u=n.sum64,d=n.sum64_hi,f=n.sum64_lo,h=n.sum64_4_hi,p=n.sum64_4_lo,m=n.sum64_5_hi,g=n.sum64_5_lo,v=a.BlockHash,b=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function y(){if(!(this instanceof y))return new y;v.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=b,this.W=new Array(160)}function w(e,t,i,n,a){var r=e&i^~e&a;return r<0&&(r+=4294967296),r}function _(e,t,i,n,a,r){var o=t&n^~t&r;return o<0&&(o+=4294967296),o}function I(e,t,i,n,a){var r=e&i^e&a^i&a;return r<0&&(r+=4294967296),r}function x(e,t,i,n,a,r){var o=t&n^t&r^n&r;return o<0&&(o+=4294967296),o}function S(e,t){var i=o(e,t,28)^o(t,e,2)^o(t,e,7);return i<0&&(i+=4294967296),i}function T(e,t){var i=s(e,t,28)^s(t,e,2)^s(t,e,7);return i<0&&(i+=4294967296),i}function C(e,t){var i=o(e,t,14)^o(e,t,18)^o(t,e,9);return i<0&&(i+=4294967296),i}function k(e,t){var i=s(e,t,14)^s(e,t,18)^s(t,e,9);return i<0&&(i+=4294967296),i}function R(e,t){var i=o(e,t,1)^o(e,t,8)^l(e,t,7);return i<0&&(i+=4294967296),i}function D(e,t){var i=s(e,t,1)^s(e,t,8)^c(e,t,7);return i<0&&(i+=4294967296),i}function L(e,t){var i=o(e,t,19)^o(t,e,29)^l(e,t,6);return i<0&&(i+=4294967296),i}function O(e,t){var i=s(e,t,19)^s(t,e,29)^c(e,t,6);return i<0&&(i+=4294967296),i}n.inherits(y,v),t.exports=y,y.blockSize=1024,y.outSize=512,y.hmacStrength=192,y.padLength=128,y.prototype._prepareBlock=function(e,t){for(var i=this.W,n=0;n<32;n++)i[n]=e[t+n];for(;n<i.length;n+=2){var a=L(i[n-4],i[n-3]),r=O(i[n-4],i[n-3]),o=i[n-14],s=i[n-13],l=R(i[n-30],i[n-29]),c=D(i[n-30],i[n-29]),u=i[n-32],d=i[n-31];i[n]=h(a,r,o,s,l,c,u,d),i[n+1]=p(a,r,o,s,l,c,u,d)}},y.prototype._update=function(e,t){this._prepareBlock(e,t);var i=this.W,n=this.h[0],a=this.h[1],o=this.h[2],s=this.h[3],l=this.h[4],c=this.h[5],h=this.h[6],p=this.h[7],v=this.h[8],b=this.h[9],y=this.h[10],R=this.h[11],D=this.h[12],L=this.h[13],O=this.h[14],$=this.h[15];r(this.k.length===i.length);for(var N=0;N<i.length;N+=2){var A=O,P=$,E=C(v,b),M=k(v,b),F=w(v,b,y,R,D),j=_(v,b,y,R,D,L),V=this.k[N],q=this.k[N+1],z=i[N],B=i[N+1],U=m(A,P,E,M,F,j,V,q,z,B),Q=g(A,P,E,M,F,j,V,q,z,B);A=S(n,a),P=T(n,a),E=I(n,a,o,s,l),M=x(n,a,o,s,l,c);var H=d(A,P,E,M),G=f(A,P,E,M);O=D,$=L,D=y,L=R,y=v,R=b,v=d(h,p,U,Q),b=f(p,p,U,Q),h=l,p=c,l=o,c=s,o=n,s=a,n=d(U,Q,H,G),a=f(U,Q,H,G)}u(this.h,0,n,a),u(this.h,2,o,s),u(this.h,4,l,c),u(this.h,6,h,p),u(this.h,8,v,b),u(this.h,10,y,R),u(this.h,12,D,L),u(this.h,14,O,$)},y.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},{"../common":373,"../utils":383,"minimalistic-assert":437}],382:[function(e,t,i){"use strict";var n=e("../utils").rotr32;function a(e,t,i){return e&t^~e&i}function r(e,t,i){return e&t^e&i^t&i}function o(e,t,i){return e^t^i}i.ft_1=function(e,t,i,n){return 0===e?a(t,i,n):1===e||3===e?o(t,i,n):2===e?r(t,i,n):void 0},i.ch32=a,i.maj32=r,i.p32=o,i.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},i.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},i.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},i.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},{"../utils":383}],383:[function(e,t,i){"use strict";var n=e("minimalistic-assert"),a=e("inherits");function r(e,t){return 55296==(64512&e.charCodeAt(t))&&!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1))}function o(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function s(e){return 1===e.length?"0"+e:e}function l(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}i.inherits=a,i.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var i=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),a=0;a<e.length;a+=2)i.push(parseInt(e[a]+e[a+1],16))}else for(var n=0,a=0;a<e.length;a++){var o=e.charCodeAt(a);o<128?i[n++]=o:o<2048?(i[n++]=o>>6|192,i[n++]=63&o|128):r(e,a)?(o=65536+((1023&o)<<10)+(1023&e.charCodeAt(++a)),i[n++]=o>>18|240,i[n++]=o>>12&63|128,i[n++]=o>>6&63|128,i[n++]=63&o|128):(i[n++]=o>>12|224,i[n++]=o>>6&63|128,i[n++]=63&o|128)}else for(a=0;a<e.length;a++)i[a]=0|e[a];return i},i.toHex=function(e){for(var t="",i=0;i<e.length;i++)t+=s(e[i].toString(16));return t},i.htonl=o,i.toHex32=function(e,t){for(var i="",n=0;n<e.length;n++){var a=e[n];"little"===t&&(a=o(a)),i+=l(a.toString(16))}return i},i.zero2=s,i.zero8=l,i.join32=function(e,t,i,a){var r=i-t;n(r%4==0);for(var o=new Array(r/4),s=0,l=t;s<o.length;s++,l+=4){var c;c="big"===a?e[l]<<24|e[l+1]<<16|e[l+2]<<8|e[l+3]:e[l+3]<<24|e[l+2]<<16|e[l+1]<<8|e[l],o[s]=c>>>0}return o},i.split32=function(e,t){for(var i=new Array(4*e.length),n=0,a=0;n<e.length;n++,a+=4){var r=e[n];"big"===t?(i[a]=r>>>24,i[a+1]=r>>>16&255,i[a+2]=r>>>8&255,i[a+3]=255&r):(i[a+3]=r>>>24,i[a+2]=r>>>16&255,i[a+1]=r>>>8&255,i[a]=255&r)}return i},i.rotr32=function(e,t){return e>>>t|e<<32-t},i.rotl32=function(e,t){return e<<t|e>>>32-t},i.sum32=function(e,t){return e+t>>>0},i.sum32_3=function(e,t,i){return e+t+i>>>0},i.sum32_4=function(e,t,i,n){return e+t+i+n>>>0},i.sum32_5=function(e,t,i,n,a){return e+t+i+n+a>>>0},i.sum64=function(e,t,i,n){var a=e[t],r=n+e[t+1]>>>0,o=(r<n?1:0)+i+a;e[t]=o>>>0,e[t+1]=r},i.sum64_hi=function(e,t,i,n){return(t+n>>>0<t?1:0)+e+i>>>0},i.sum64_lo=function(e,t,i,n){return t+n>>>0},i.sum64_4_hi=function(e,t,i,n,a,r,o,s){var l=0,c=t;return l+=(c=c+n>>>0)<t?1:0,l+=(c=c+r>>>0)<r?1:0,e+i+a+o+(l+=(c=c+s>>>0)<s?1:0)>>>0},i.sum64_4_lo=function(e,t,i,n,a,r,o,s){return t+n+r+s>>>0},i.sum64_5_hi=function(e,t,i,n,a,r,o,s,l,c){var u=0,d=t;return u+=(d=d+n>>>0)<t?1:0,u+=(d=d+r>>>0)<r?1:0,u+=(d=d+s>>>0)<s?1:0,e+i+a+o+l+(u+=(d=d+c>>>0)<c?1:0)>>>0},i.sum64_5_lo=function(e,t,i,n,a,r,o,s,l,c){return t+n+r+s+c>>>0},i.rotr64_hi=function(e,t,i){return(t<<32-i|e>>>i)>>>0},i.rotr64_lo=function(e,t,i){return(e<<32-i|t>>>i)>>>0},i.shr64_hi=function(e,t,i){return e>>>i},i.shr64_lo=function(e,t,i){return(e<<32-i|t>>>i)>>>0}},{inherits:387,"minimalistic-assert":437}],384:[function(e,t,i){"use strict";var n=e("hash.js"),a=e("minimalistic-crypto-utils"),r=e("minimalistic-assert");function o(e){if(!(this instanceof o))return new o(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=a.toArray(e.entropy,e.entropyEnc||"hex"),i=a.toArray(e.nonce,e.nonceEnc||"hex"),n=a.toArray(e.pers,e.persEnc||"hex");r(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,i,n)}t.exports=o,o.prototype._init=function(e,t,i){var n=e.concat(t).concat(i);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var a=0;a<this.V.length;a++)this.K[a]=0,this.V[a]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},o.prototype._hmac=function(){return new n.hmac(this.hash,this.K)},o.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},o.prototype.reseed=function(e,t,i,n){"string"!=typeof t&&(n=i,i=t,t=null),e=a.toArray(e,t),i=a.toArray(i,n),r(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(i||[])),this._reseed=1},o.prototype.generate=function(e,t,i,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(n=i,i=t,t=null),i&&(i=a.toArray(i,n||"hex"),this._update(i));for(var r=[];r.length<e;)this.V=this._hmac().update(this.V).digest(),r=r.concat(this.V);var o=r.slice(0,e);return this._update(i),this._reseed++,a.encode(o,t)}},{"hash.js":372,"minimalistic-assert":437,"minimalistic-crypto-utils":438}],385:[function(e,t,i){"use strict";i.read=function(e,t,i,n,a){var r,o,s=8*a-n-1,l=(1<<s)-1,c=l>>1,u=-7,d=i?a-1:0,f=i?-1:1,h=e[t+d];for(d+=f,r=h&(1<<-u)-1,h>>=-u,u+=s;u>0;r=256*r+e[t+d],d+=f,u-=8);for(o=r&(1<<-u)-1,r>>=-u,u+=n;u>0;o=256*o+e[t+d],d+=f,u-=8);if(0===r)r=1-c;else{if(r===l)return o?NaN:1/0*(h?-1:1);o+=Math.pow(2,n),r-=c}return(h?-1:1)*o*Math.pow(2,r-n)},i.write=function(e,t,i,n,a,r){var o,s,l,c=8*r-a-1,u=(1<<c)-1,d=u>>1,f=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:r-1,p=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),(t+=o+d>=1?f/l:f*Math.pow(2,1-d))*l>=2&&(o++,l/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(t*l-1)*Math.pow(2,a),o+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,a),o=0));a>=8;e[i+h]=255&s,h+=p,s/=256,a-=8);for(o=o<<a|s,c+=a;c>0;e[i+h]=255&o,h+=p,o/=256,c-=8);e[i+h-p]|=128*m}},{}],386:[function(e,i,n){(function(e){"use strict";var t,n,a=e.MutationObserver||e.WebKitMutationObserver;if(a){var r=0,o=new a(u),s=e.document.createTextNode("");o.observe(s,{characterData:!0}),t=function(){s.data=r=++r%2}}else if(e.setImmediate||void 0===e.MessageChannel)t="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){u(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(u,0)};else{var l=new e.MessageChannel;l.port1.onmessage=u,t=function(){l.port2.postMessage(0)}}var c=[];function u(){var e,t;n=!0;for(var i=c.length;i;){for(t=c,c=[],e=-1;++e<i;)t[e]();i=c.length}n=!1}i.exports=function(e){1!==c.push(e)||n||t()}}).call(this,"undefined"!=typeof t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],387:[function(e,t,i){"use strict";"function"==typeof Object.create?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e}}},{}],388:[function(e,t,i){"use strict";
/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/function n(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}t.exports=function(e){return null!=e&&(n(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&n(e.slice(0,0))}(e)||!!e._isBuffer)}},{}],389:[function(e,t,i){"use strict";var n={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},{}],390:[function(e,t,i){"use strict";var n=e("./utils"),a=e("./support"),r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";i.encode=function(e){for(var t,i,a,o,s,l,c,u=[],d=0,f=e.length,h=f,p="string"!==n.getTypeOf(e);d<e.length;)h=f-d,p?(t=e[d++],i=d<f?e[d++]:0,a=d<f?e[d++]:0):(t=e.charCodeAt(d++),i=d<f?e.charCodeAt(d++):0,a=d<f?e.charCodeAt(d++):0),o=t>>2,s=(3&t)<<4|i>>4,l=h>1?(15&i)<<2|a>>6:64,c=h>2?63&a:64,u.push(r.charAt(o)+r.charAt(s)+r.charAt(l)+r.charAt(c));return u.join("")},i.decode=function(e){var t,i,n,o,s,l,c=0,u=0;if("data:"===e.substr(0,"data:".length))throw new Error("Invalid base64 input, it looks like a data url.");var d,f=3*(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"")).length/4;if(e.charAt(e.length-1)===r.charAt(64)&&f--,e.charAt(e.length-2)===r.charAt(64)&&f--,f%1!=0)throw new Error("Invalid base64 input, bad content length.");for(d=a.uint8array?new Uint8Array(0|f):new Array(0|f);c<e.length;)t=r.indexOf(e.charAt(c++))<<2|(o=r.indexOf(e.charAt(c++)))>>4,i=(15&o)<<4|(s=r.indexOf(e.charAt(c++)))>>2,n=(3&s)<<6|(l=r.indexOf(e.charAt(c++))),d[u++]=t,64!==s&&(d[u++]=i),64!==l&&(d[u++]=n);return d}},{"./support":419,"./utils":421}],391:[function(e,t,i){"use strict";var n=e("./external"),a=e("./stream/DataWorker"),r=e("./stream/DataLengthProbe"),o=e("./stream/Crc32Probe");function s(e,t,i,n,a){this.compressedSize=e,this.uncompressedSize=t,this.crc32=i,this.compression=n,this.compressedContent=a}r=e("./stream/DataLengthProbe"),s.prototype={getContentWorker:function(){var e=new a(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new r("data_length")),t=this;return e.on("end",(function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),e},getCompressedWorker:function(){return new a(n.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(e,t,i){return e.pipe(new o).pipe(new r("uncompressedSize")).pipe(t.compressWorker(i)).pipe(new r("compressedSize")).withStreamInfo("compression",t)},t.exports=s},{"./external":395,"./stream/Crc32Probe":414,"./stream/DataLengthProbe":415,"./stream/DataWorker":416}],392:[function(e,t,i){"use strict";var n=e("./stream/GenericWorker");i.STORE={magic:"\0\0",compressWorker:function(e){return new n("STORE compression")},uncompressWorker:function(){return new n("STORE decompression")}},i.DEFLATE=e("./flate")},{"./flate":396,"./stream/GenericWorker":417}],393:[function(e,t,i){"use strict";var n=e("./utils"),a=function(){for(var e,t=[],i=0;i<256;i++){e=i;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[i]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==n.getTypeOf(e)?function(e,t,i,n){var r=a,o=n+i;e^=-1;for(var s=n;s<o;s++)e=e>>>8^r[255&(e^t[s])];return-1^e}(0|t,e,e.length,0):function(e,t,i,n){var r=a,o=n+i;e^=-1;for(var s=n;s<o;s++)e=e>>>8^r[255&(e^t.charCodeAt(s))];return-1^e}(0|t,e,e.length,0):0}},{"./utils":421}],394:[function(e,t,i){"use strict";i.base64=!1,i.binary=!1,i.dir=!1,i.createFolders=!0,i.date=null,i.compression=null,i.compressionOptions=null,i.comment=null,i.unixPermissions=null,i.dosPermissions=null},{}],395:[function(e,t,i){"use strict";var n=null;n="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:n}},{lie:425}],396:[function(e,t,i){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,a=e("pako"),r=e("./utils"),o=e("./stream/GenericWorker"),s=n?"uint8array":"array";function l(e,t){o.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}i.magic="\b\0",r.inherits(l,o),l.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(r.transformTo(s,e.data),!1)},l.prototype.flush=function(){o.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new a[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},i.compressWorker=function(e){return new l("Deflate",e)},i.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":417,"./utils":421,pako:439}],397:[function(e,t,i){"use strict";var n=e("../utils"),a=e("../stream/GenericWorker"),r=e("../utf8"),o=e("../crc32"),s=e("../signature"),l=function(e,t){var i,n="";for(i=0;i<t;i++)n+=String.fromCharCode(255&e),e>>>=8;return n},c=function(e,t,i,a,c,u){var d,f,h=e.file,p=e.compression,m=u!==r.utf8encode,g=n.transformTo("string",u(h.name)),v=n.transformTo("string",r.utf8encode(h.name)),b=h.comment,y=n.transformTo("string",u(b)),w=n.transformTo("string",r.utf8encode(b)),_=v.length!==h.name.length,I=w.length!==b.length,x="",S="",T="",C=h.dir,k=h.date,R={crc32:0,compressedSize:0,uncompressedSize:0};t&&!i||(R.crc32=e.crc32,R.compressedSize=e.compressedSize,R.uncompressedSize=e.uncompressedSize);var D=0;t&&(D|=8),m||!_&&!I||(D|=2048);var L,O,$,N=0,A=0;C&&(N|=16),"UNIX"===c?(A=798,N|=(L=h.unixPermissions,O=C,$=L,L||($=O?16893:33204),(65535&$)<<16)):(A=20,N|=63&(h.dosPermissions||0)),d=k.getUTCHours(),d<<=6,d|=k.getUTCMinutes(),d<<=5,d|=k.getUTCSeconds()/2,f=k.getUTCFullYear()-1980,f<<=4,f|=k.getUTCMonth()+1,f<<=5,f|=k.getUTCDate(),_&&(S=l(1,1)+l(o(g),4)+v,x+="up"+l(S.length,2)+S),I&&(T=l(1,1)+l(o(y),4)+w,x+="uc"+l(T.length,2)+T);var P="";return P+="\n\0",P+=l(D,2),P+=p.magic,P+=l(d,2),P+=l(f,2),P+=l(R.crc32,4),P+=l(R.compressedSize,4),P+=l(R.uncompressedSize,4),P+=l(g.length,2),P+=l(x.length,2),{fileRecord:s.LOCAL_FILE_HEADER+P+g+x,dirRecord:s.CENTRAL_FILE_HEADER+l(A,2)+P+l(y.length,2)+"\0\0\0\0"+l(N,4)+l(a,4)+g+x+y}},u=function(e){return s.DATA_DESCRIPTOR+l(e.crc32,4)+l(e.compressedSize,4)+l(e.uncompressedSize,4)};function d(e,t,i,n){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=i,this.encodeFileName=n,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}n.inherits(d,a),d.prototype.push=function(e){var t=e.meta.percent||0,i=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,a.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:i?(t+100*(i-n-1))/i:100}}))},d.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var i=c(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:i.fileRecord,meta:{percent:0}})}else this.accumulate=!0},d.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,i=c(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(i.dirRecord),t)this.push({data:u(e),meta:{percent:100}});else for(this.push({data:i.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},d.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var i=this.bytesWritten-e,a=function(e,t,i,a,r){var o=n.transformTo("string",r(a));return s.CENTRAL_DIRECTORY_END+"\0\0\0\0"+l(e,2)+l(e,2)+l(t,4)+l(i,4)+l(o.length,2)+o}(this.dirRecords.length,i,e,this.zipComment,this.encodeFileName);this.push({data:a,meta:{percent:100}})},d.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},d.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()})),e.on("error",(function(e){t.error(e)})),this},d.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},d.prototype.error=function(e){var t=this._sources;if(!a.prototype.error.call(this,e))return!1;for(var i=0;i<t.length;i++)try{t[i].error(e)}catch(e){}return!0},d.prototype.lock=function(){a.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},t.exports=d},{"../crc32":393,"../signature":412,"../stream/GenericWorker":417,"../utf8":420,"../utils":421}],398:[function(e,t,i){"use strict";var n=e("../compressions"),a=e("./ZipFileWorker");i.generateWorker=function(e,t,i){var r=new a(t.streamFiles,i,t.platform,t.encodeFileName),o=0;try{e.forEach((function(e,i){o++;var a=function(e,t){var i=e||t,a=n[i];if(!a)throw new Error(i+" is not a valid compression method !");return a}(i.options.compression,t.compression),s=i.options.compressionOptions||t.compressionOptions||{},l=i.dir,c=i.date;i._compressWorker(a,s).withStreamInfo("file",{name:e,dir:l,date:c,comment:i.comment||"",unixPermissions:i.unixPermissions,dosPermissions:i.dosPermissions}).pipe(r)})),r.entriesCount=o}catch(e){r.error(e)}return r}},{"../compressions":392,"./ZipFileWorker":397}],399:[function(e,t,i){"use strict";function n(){if(!(this instanceof n))return new n;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files={},this.comment=null,this.root="",this.clone=function(){var e=new n;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}n.prototype=e("./object"),n.prototype.loadAsync=e("./load"),n.support=e("./support"),n.defaults=e("./defaults"),n.version="3.5.0",n.loadAsync=function(e,t){return(new n).loadAsync(e,t)},n.external=e("./external"),t.exports=n},{"./defaults":394,"./external":395,"./load":400,"./object":404,"./support":419}],400:[function(e,t,i){"use strict";var n=e("./utils"),a=e("./external"),r=e("./utf8"),o=(n=e("./utils"),e("./zipEntries")),s=e("./stream/Crc32Probe"),l=e("./nodejsUtils");function c(e){return new a.Promise((function(t,i){var n=e.decompressed.getContentWorker().pipe(new s);n.on("error",(function(e){i(e)})).on("end",(function(){n.streamInfo.crc32!==e.decompressed.crc32?i(new Error("Corrupted zip : CRC32 mismatch")):t()})).resume()}))}t.exports=function(e,t){var i=this;return t=n.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:r.utf8decode}),l.isNode&&l.isStream(e)?a.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):n.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then((function(e){var i=new o(t);return i.load(e),i})).then((function(e){var i=[a.Promise.resolve(e)],n=e.files;if(t.checkCRC32)for(var r=0;r<n.length;r++)i.push(c(n[r]));return a.Promise.all(i)})).then((function(e){for(var n=e.shift(),a=n.files,r=0;r<a.length;r++){var o=a[r];i.file(o.fileNameStr,o.decompressed,{binary:!0,optimizedBinaryString:!0,date:o.date,dir:o.dir,comment:o.fileCommentStr.length?o.fileCommentStr:null,unixPermissions:o.unixPermissions,dosPermissions:o.dosPermissions,createFolders:t.createFolders})}return n.zipComment.length&&(i.comment=n.zipComment),i}))}},{"./external":395,"./nodejsUtils":403,"./stream/Crc32Probe":414,"./utf8":420,"./utils":421,"./zipEntries":422}],401:[function(e,t,i){"use strict";var n=e("../utils"),a=e("../stream/GenericWorker");function r(e,t){a.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}n.inherits(r,a),r.prototype._bindStream=function(e){var t=this;this._stream=e,e.pause(),e.on("data",(function(e){t.push({data:e,meta:{percent:0}})})).on("error",(function(e){t.isPaused?this.generatedError=e:t.error(e)})).on("end",(function(){t.isPaused?t._upstreamEnded=!0:t.end()}))},r.prototype.pause=function(){return!!a.prototype.pause.call(this)&&(this._stream.pause(),!0)},r.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=r},{"../stream/GenericWorker":417,"../utils":421}],402:[function(e,t,i){"use strict";var n=e("readable-stream").Readable;function a(e,t,i){n.call(this,t),this._helper=e;var a=this;e.on("data",(function(e,t){a.push(e)||a._helper.pause(),i&&i(t)})).on("error",(function(e){a.emit("error",e)})).on("end",(function(){a.push(null)}))}e("../utils").inherits(a,n),a.prototype._read=function(){this._helper.resume()},t.exports=a},{"../utils":421,"readable-stream":405}],403:[function(e,t,i){(function(e){"use strict";t.exports={isNode:void 0!==e,newBufferFrom:function(t,i){if(e.from&&e.from!==Uint8Array.from)return e.from(t,i);if("number"==typeof t)throw new Error('The "data" argument must not be a number');return new e(t,i)},allocBuffer:function(t){if(e.alloc)return e.alloc(t);var i=new e(t);return i.fill(0),i},isBuffer:function(t){return e.isBuffer(t)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}}).call(this,e("buffer").Buffer)},{buffer:216}],404:[function(e,t,i){"use strict";var n=e("./utf8"),a=e("./utils"),r=e("./stream/GenericWorker"),o=e("./stream/StreamHelper"),s=e("./defaults"),l=e("./compressedObject"),c=e("./zipObject"),u=e("./generate"),d=e("./nodejsUtils"),f=e("./nodejs/NodejsStreamInputAdapter"),h=function(e,t,i){var n,o=a.getTypeOf(t),u=a.extend(i||{},s);u.date=u.date||new Date,null!==u.compression&&(u.compression=u.compression.toUpperCase()),"string"==typeof u.unixPermissions&&(u.unixPermissions=parseInt(u.unixPermissions,8)),u.unixPermissions&&16384&u.unixPermissions&&(u.dir=!0),u.dosPermissions&&16&u.dosPermissions&&(u.dir=!0),u.dir&&(e=m(e)),u.createFolders&&(n=p(e))&&g.call(this,n,!0);var h="string"===o&&!1===u.binary&&!1===u.base64;i&&void 0!==i.binary||(u.binary=!h),(t instanceof l&&0===t.uncompressedSize||u.dir||!t||0===t.length)&&(u.base64=!1,u.binary=!0,t="",u.compression="STORE",o="string");var v=null;v=t instanceof l||t instanceof r?t:d.isNode&&d.isStream(t)?new f(e,t):a.prepareContent(e,t,u.binary,u.optimizedBinaryString,u.base64);var b=new c(e,v,u);this.files[e]=b},p=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return t>0?e.substring(0,t):""},m=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},g=function(e,t){return t=void 0!==t?t:s.createFolders,e=m(e),this.files[e]||h.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function v(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var b={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,i,n;for(t in this.files)this.files.hasOwnProperty(t)&&(n=this.files[t],(i=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(i,n))},filter:function(e){var t=[];return this.forEach((function(i,n){e(i,n)&&t.push(n)})),t},file:function(e,t,i){if(1===arguments.length){if(v(e)){var n=e;return this.filter((function(e,t){return!t.dir&&n.test(e)}))}var a=this.files[this.root+e];return a&&!a.dir?a:null}return e=this.root+e,h.call(this,e,t,i),this},folder:function(e){if(!e)return this;if(v(e))return this.filter((function(t,i){return i.dir&&e.test(t)}));var t=this.root+e,i=g.call(this,t),n=this.clone();return n.root=i.name,n},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var i=this.filter((function(t,i){return i.name.slice(0,e.length)===e})),n=0;n<i.length;n++)delete this.files[i[n].name];return this},generate:function(e){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){var t,i={};try{if((i=a.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:n.utf8encode})).type=i.type.toLowerCase(),i.compression=i.compression.toUpperCase(),"binarystring"===i.type&&(i.type="string"),!i.type)throw new Error("No output type specified.");a.checkSupport(i.type),"darwin"!==i.platform&&"freebsd"!==i.platform&&"linux"!==i.platform&&"sunos"!==i.platform||(i.platform="UNIX"),"win32"===i.platform&&(i.platform="DOS");var s=i.comment||this.comment||"";t=u.generateWorker(this,i,s)}catch(e){(t=new r("error")).error(e)}return new o(t,i.type||"string",i.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e=e||{}).type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}};t.exports=b},{"./compressedObject":391,"./defaults":394,"./generate":398,"./nodejs/NodejsStreamInputAdapter":401,"./nodejsUtils":403,"./stream/GenericWorker":417,"./stream/StreamHelper":418,"./utf8":420,"./utils":421,"./zipObject":424}],405:[function(e,t,i){"use strict";t.exports=e("stream")},{stream:506}],406:[function(e,t,i){"use strict";var n=e("./DataReader");function a(e){n.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e("../utils").inherits(a,n),a.prototype.byteAt=function(e){return this.data[this.zero+e]},a.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),i=e.charCodeAt(1),n=e.charCodeAt(2),a=e.charCodeAt(3),r=this.length-4;r>=0;--r)if(this.data[r]===t&&this.data[r+1]===i&&this.data[r+2]===n&&this.data[r+3]===a)return r-this.zero;return-1},a.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),i=e.charCodeAt(1),n=e.charCodeAt(2),a=e.charCodeAt(3),r=this.readData(4);return t===r[0]&&i===r[1]&&n===r[2]&&a===r[3]},a.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=a},{"../utils":421,"./DataReader":407}],407:[function(e,t,i){"use strict";var n=e("../utils");function a(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}a.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(e){},readInt:function(e){var t,i=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)i=(i<<8)+this.byteAt(t);return this.index+=e,i},readString:function(e){return n.transformTo("string",this.readData(e))},readData:function(e){},lastIndexOfSignature:function(e){},readAndCheckSignature:function(e){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=a},{"../utils":421}],408:[function(e,t,i){"use strict";var n=e("./Uint8ArrayReader");function a(e){n.call(this,e)}e("../utils").inherits(a,n),a.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=a},{"../utils":421,"./Uint8ArrayReader":410}],409:[function(e,t,i){"use strict";var n=e("./DataReader");function a(e){n.call(this,e)}e("../utils").inherits(a,n),a.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},a.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},a.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},a.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=a},{"../utils":421,"./DataReader":407}],410:[function(e,t,i){"use strict";var n=e("./ArrayReader");function a(e){n.call(this,e)}e("../utils").inherits(a,n),a.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=a},{"../utils":421,"./ArrayReader":406}],411:[function(e,t,i){"use strict";var n=e("../utils"),a=e("../support"),r=e("./ArrayReader"),o=e("./StringReader"),s=e("./NodeBufferReader"),l=e("./Uint8ArrayReader");t.exports=function(e){var t=n.getTypeOf(e);return n.checkSupport(t),"string"!==t||a.uint8array?"nodebuffer"===t?new s(e):a.uint8array?new l(n.transformTo("uint8array",e)):new r(n.transformTo("array",e)):new o(e)}},{"../support":419,"../utils":421,"./ArrayReader":406,"./NodeBufferReader":408,"./StringReader":409,"./Uint8ArrayReader":410}],412:[function(e,t,i){"use strict";i.LOCAL_FILE_HEADER="PK",i.CENTRAL_FILE_HEADER="PK",i.CENTRAL_DIRECTORY_END="PK",i.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",i.ZIP64_CENTRAL_DIRECTORY_END="PK",i.DATA_DESCRIPTOR="PK\b"},{}],413:[function(e,t,i){"use strict";var n=e("./GenericWorker"),a=e("../utils");function r(e){n.call(this,"ConvertWorker to "+e),this.destType=e}a.inherits(r,n),r.prototype.processChunk=function(e){this.push({data:a.transformTo(this.destType,e.data),meta:e.meta})},t.exports=r},{"../utils":421,"./GenericWorker":417}],414:[function(e,t,i){"use strict";var n=e("./GenericWorker"),a=e("../crc32");function r(){n.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(r,n),r.prototype.processChunk=function(e){this.streamInfo.crc32=a(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=r},{"../crc32":393,"../utils":421,"./GenericWorker":417}],415:[function(e,t,i){"use strict";var n=e("../utils"),a=e("./GenericWorker");function r(e){a.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}n.inherits(r,a),r.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}a.prototype.processChunk.call(this,e)},t.exports=r},{"../utils":421,"./GenericWorker":417}],416:[function(e,t,i){"use strict";var n=e("../utils"),a=e("./GenericWorker");function r(e){a.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then((function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=n.getTypeOf(e),t.isPaused||t._tickAndRepeat()}),(function(e){t.error(e)}))}n.inherits(r,a),r.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this.data=null},r.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},r.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},r.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=r},{"../utils":421,"./GenericWorker":417}],417:[function(e,t,i){"use strict";function n(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}n.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var i=0;i<this._listeners[e].length;i++)this._listeners[e][i].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.end()})),e.on("error",(function(e){t.error(e)})),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;this.isPaused=!1;var e=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)this.extraStreamInfo.hasOwnProperty(e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}},t.exports=n},{}],418:[function(e,t,i){(function(i){"use strict";var n=e("../utils"),a=e("./ConvertWorker"),r=e("./GenericWorker"),o=e("../base64"),s=e("../support"),l=e("../external"),c=null;if(s.nodestream)try{c=e("../nodejs/NodejsStreamOutputAdapter")}catch(e){}function u(e,t){return new l.Promise((function(a,r){var s=[],l=e._internalType,c=e._outputType,u=e._mimeType;e.on("data",(function(e,i){s.push(e),t&&t(i)})).on("error",(function(e){s=[],r(e)})).on("end",(function(){try{var e=function(e,t,i){switch(e){case"blob":return n.newBlob(n.transformTo("arraybuffer",t),i);case"base64":return o.encode(t);default:return n.transformTo(e,t)}}(c,function(e,t){var n,a=0,r=null,o=0;for(n=0;n<t.length;n++)o+=t[n].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(r=new Uint8Array(o),n=0;n<t.length;n++)r.set(t[n],a),a+=t[n].length;return r;case"nodebuffer":return i.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}(l,s),u);a(e)}catch(e){r(e)}s=[]})).resume()}))}function d(e,t,i){var o=t;switch(t){case"blob":case"arraybuffer":o="uint8array";break;case"base64":o="string"}try{this._internalType=o,this._outputType=t,this._mimeType=i,n.checkSupport(o),this._worker=e.pipe(new a(o)),e.lock()}catch(e){this._worker=new r("error"),this._worker.error(e)}}d.prototype={accumulate:function(e){return u(this,e)},on:function(e,t){var i=this;return"data"===e?this._worker.on(e,(function(e){t.call(i,e.data,e.meta)})):this._worker.on(e,(function(){n.delay(t,arguments,i)})),this},resume:function(){return n.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(n.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new c(this,{objectMode:"nodebuffer"!==this._outputType},e)}},t.exports=d}).call(this,e("buffer").Buffer)},{"../base64":390,"../external":395,"../nodejs/NodejsStreamOutputAdapter":402,"../support":419,"../utils":421,"./ConvertWorker":413,"./GenericWorker":417,buffer:216}],419:[function(e,t,i){(function(t){"use strict";if(i.base64=!0,i.array=!0,i.string=!0,i.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,i.nodebuffer=void 0!==t,i.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)i.blob=!1;else{var n=new ArrayBuffer(0);try{i.blob=0===new Blob([n],{type:"application/zip"}).size}catch(e){try{var a=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);a.append(n),i.blob=0===a.getBlob("application/zip").size}catch(e){i.blob=!1}}}try{i.nodestream=!!e("readable-stream").Readable}catch(e){i.nodestream=!1}}).call(this,e("buffer").Buffer)},{buffer:216,"readable-stream":405}],420:[function(e,t,i){"use strict";for(var n=e("./utils"),a=e("./support"),r=e("./nodejsUtils"),o=e("./stream/GenericWorker"),s=new Array(256),l=0;l<256;l++)s[l]=l>=252?6:l>=248?5:l>=240?4:l>=224?3:l>=192?2:1;function c(){o.call(this,"utf-8 decode"),this.leftOver=null}function u(){o.call(this,"utf-8 encode")}s[254]=s[254]=1,i.utf8encode=function(e){return a.nodebuffer?r.newBufferFrom(e,"utf-8"):function(e){var t,i,n,r,o,s=e.length,l=0;for(r=0;r<s;r++)55296==(64512&(i=e.charCodeAt(r)))&&r+1<s&&56320==(64512&(n=e.charCodeAt(r+1)))&&(i=65536+(i-55296<<10)+(n-56320),r++),l+=i<128?1:i<2048?2:i<65536?3:4;for(t=a.uint8array?new Uint8Array(l):new Array(l),o=0,r=0;o<l;r++)55296==(64512&(i=e.charCodeAt(r)))&&r+1<s&&56320==(64512&(n=e.charCodeAt(r+1)))&&(i=65536+(i-55296<<10)+(n-56320),r++),i<128?t[o++]=i:i<2048?(t[o++]=192|i>>>6,t[o++]=128|63&i):i<65536?(t[o++]=224|i>>>12,t[o++]=128|i>>>6&63,t[o++]=128|63&i):(t[o++]=240|i>>>18,t[o++]=128|i>>>12&63,t[o++]=128|i>>>6&63,t[o++]=128|63&i);return t}(e)},i.utf8decode=function(e){return a.nodebuffer?n.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,i,a,r,o=e.length,l=new Array(2*o);for(i=0,t=0;t<o;)if((a=e[t++])<128)l[i++]=a;else if((r=s[a])>4)l[i++]=65533,t+=r-1;else{for(a&=2===r?31:3===r?15:7;r>1&&t<o;)a=a<<6|63&e[t++],r--;r>1?l[i++]=65533:a<65536?l[i++]=a:(a-=65536,l[i++]=55296|a>>10&1023,l[i++]=56320|1023&a)}return l.length!==i&&(l.subarray?l=l.subarray(0,i):l.length=i),n.applyFromCharCode(l)}(e=n.transformTo(a.uint8array?"uint8array":"array",e))},n.inherits(c,o),c.prototype.processChunk=function(e){var t=n.transformTo(a.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(a.uint8array){var r=t;(t=new Uint8Array(r.length+this.leftOver.length)).set(this.leftOver,0),t.set(r,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var o=function(e,t){var i;for((t=t||e.length)>e.length&&(t=e.length),i=t-1;i>=0&&128==(192&e[i]);)i--;return i<0||0===i?t:i+s[e[i]]>t?i:t}(t),l=t;o!==t.length&&(a.uint8array?(l=t.subarray(0,o),this.leftOver=t.subarray(o,t.length)):(l=t.slice(0,o),this.leftOver=t.slice(o,t.length))),this.push({data:i.utf8decode(l),meta:e.meta})},c.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:i.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},i.Utf8DecodeWorker=c,n.inherits(u,o),u.prototype.processChunk=function(e){this.push({data:i.utf8encode(e.data),meta:e.meta})},i.Utf8EncodeWorker=u},{"./nodejsUtils":403,"./stream/GenericWorker":417,"./support":419,"./utils":421}],421:[function(e,t,i){"use strict";var n=e("./support"),a=e("./base64"),r=e("./nodejsUtils"),o=e("set-immediate-shim"),s=e("./external");function l(e){return e}function c(e,t){for(var i=0;i<e.length;++i)t[i]=255&e.charCodeAt(i);return t}i.newBlob=function(e,t){i.checkSupport("blob");try{return new Blob([e],{type:t})}catch(i){try{var n=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return n.append(e),n.getBlob(t)}catch(e){throw new Error("Bug : can't construct the Blob.")}}};var u={stringifyByChunk:function(e,t,i){var n=[],a=0,r=e.length;if(r<=i)return String.fromCharCode.apply(null,e);for(;a<r;)"array"===t||"nodebuffer"===t?n.push(String.fromCharCode.apply(null,e.slice(a,Math.min(a+i,r)))):n.push(String.fromCharCode.apply(null,e.subarray(a,Math.min(a+i,r)))),a+=i;return n.join("")},stringifyByChar:function(e){for(var t="",i=0;i<e.length;i++)t+=String.fromCharCode(e[i]);return t},applyCanBeUsed:{uint8array:function(){try{return n.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return n.nodebuffer&&1===String.fromCharCode.apply(null,r.allocBuffer(1)).length}catch(e){return!1}}()}};function d(e){var t=65536,n=i.getTypeOf(e),a=!0;if("uint8array"===n?a=u.applyCanBeUsed.uint8array:"nodebuffer"===n&&(a=u.applyCanBeUsed.nodebuffer),a)for(;t>1;)try{return u.stringifyByChunk(e,n,t)}catch(e){t=Math.floor(t/2)}return u.stringifyByChar(e)}function f(e,t){for(var i=0;i<e.length;i++)t[i]=e[i];return t}i.applyFromCharCode=d;var h={};h.string={string:l,array:function(e){return c(e,new Array(e.length))},arraybuffer:function(e){return h.string.uint8array(e).buffer},uint8array:function(e){return c(e,new Uint8Array(e.length))},nodebuffer:function(e){return c(e,r.allocBuffer(e.length))}},h.array={string:d,array:l,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return r.newBufferFrom(e)}},h.arraybuffer={string:function(e){return d(new Uint8Array(e))},array:function(e){return f(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:l,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return r.newBufferFrom(new Uint8Array(e))}},h.uint8array={string:d,array:function(e){return f(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:l,nodebuffer:function(e){return r.newBufferFrom(e)}},h.nodebuffer={string:d,array:function(e){return f(e,new Array(e.length))},arraybuffer:function(e){return h.nodebuffer.uint8array(e).buffer},uint8array:function(e){return f(e,new Uint8Array(e.length))},nodebuffer:l},i.transformTo=function(e,t){if(t||(t=""),!e)return t;i.checkSupport(e);var n=i.getTypeOf(t);return h[n][e](t)},i.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":n.nodebuffer&&r.isBuffer(e)?"nodebuffer":n.uint8array&&e instanceof Uint8Array?"uint8array":n.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},i.checkSupport=function(e){if(!n[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},i.MAX_VALUE_16BITS=65535,i.MAX_VALUE_32BITS=-1,i.pretty=function(e){var t,i,n="";for(i=0;i<(e||"").length;i++)n+="\\x"+((t=e.charCodeAt(i))<16?"0":"")+t.toString(16).toUpperCase();return n},i.delay=function(e,t,i){o((function(){e.apply(i||null,t||[])}))},i.inherits=function(e,t){var i=function(){};i.prototype=t.prototype,e.prototype=new i},i.extend=function(){var e,t,i={};for(e=0;e<arguments.length;e++)for(t in arguments[e])arguments[e].hasOwnProperty(t)&&void 0===i[t]&&(i[t]=arguments[e][t]);return i},i.prepareContent=function(e,t,r,o,l){return s.Promise.resolve(t).then((function(e){return n.blob&&(e instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(e)))&&"undefined"!=typeof FileReader?new s.Promise((function(t,i){var n=new FileReader;n.onload=function(e){t(e.target.result)},n.onerror=function(e){i(e.target.error)},n.readAsArrayBuffer(e)})):e})).then((function(t){var u,d=i.getTypeOf(t);return d?("arraybuffer"===d?t=i.transformTo("uint8array",t):"string"===d&&(l?t=a.decode(t):r&&!0!==o&&(t=c(u=t,n.uint8array?new Uint8Array(u.length):new Array(u.length)))),t):s.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":390,"./external":395,"./nodejsUtils":403,"./support":419,"set-immediate-shim":497}],422:[function(e,t,i){"use strict";var n=e("./reader/readerFor"),a=e("./utils"),r=e("./signature"),o=e("./zipEntry"),s=(e("./utf8"),e("./support"));function l(e){this.files=[],this.loadOptions=e}l.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+a.pretty(t)+", expected "+a.pretty(e)+")")}},isSignature:function(e,t){var i=this.reader.index;this.reader.setIndex(e);var n=this.reader.readString(4)===t;return this.reader.setIndex(i),n},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=s.uint8array?"uint8array":"array",i=a.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(i)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e,t,i,n=this.zip64EndOfCentralSize-44;0<n;)e=this.reader.readInt(2),t=this.reader.readInt(4),i=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:i}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(r.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(r.CENTRAL_FILE_HEADER);)(e=new o({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(r.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,r.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(e);var t=e;if(this.checkSignature(r.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===a.MAX_VALUE_16BITS||this.diskWithCentralDirStart===a.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===a.MAX_VALUE_16BITS||this.centralDirRecords===a.MAX_VALUE_16BITS||this.centralDirSize===a.MAX_VALUE_32BITS||this.centralDirOffset===a.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(r.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(r.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,r.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(r.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(r.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var i=this.centralDirOffset+this.centralDirSize;this.zip64&&(i+=20,i+=12+this.zip64EndOfCentralSize);var n=t-i;if(n>0)this.isSignature(t,r.CENTRAL_FILE_HEADER)||(this.reader.zero=n);else if(n<0)throw new Error("Corrupted zip: missing "+Math.abs(n)+" bytes.")},prepareReader:function(e){this.reader=n(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=l},{"./reader/readerFor":411,"./signature":412,"./support":419,"./utf8":420,"./utils":421,"./zipEntry":423}],423:[function(e,t,i){"use strict";var n=e("./reader/readerFor"),a=e("./utils"),r=e("./compressedObject"),o=e("./crc32"),s=e("./utf8"),l=e("./compressions"),c=e("./support");function u(e,t){this.options=e,this.loadOptions=t}u.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(e){var t,i;if(e.skip(22),this.fileNameLength=e.readInt(2),i=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(i),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=function(e){for(var t in l)if(l.hasOwnProperty(t)&&l[t].magic===e)return l[t];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+a.pretty(this.compressionMethod)+" unknown (inner file : "+a.transformTo("string",this.fileName)+")");this.decompressed=new r(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0===e&&(this.dosPermissions=63&this.externalFileAttributes),3===e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(e){if(this.extraFields[1]){var t=n(this.extraFields[1].value);this.uncompressedSize===a.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===a.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===a.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===a.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(e){var t,i,n,a=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<a;)t=e.readInt(2),i=e.readInt(2),n=e.readData(i),this.extraFields[t]={id:t,length:i,value:n};e.setIndex(a)},handleUTF8:function(){var e=c.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(null!==t)this.fileNameStr=t;else{var i=a.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(i)}var n=this.findExtraFieldUnicodeComment();if(null!==n)this.fileCommentStr=n;else{var r=a.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(r)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=n(e.value);return 1!==t.readInt(1)||o(this.fileName)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=n(e.value);return 1!==t.readInt(1)||o(this.fileComment)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null}},t.exports=u},{"./compressedObject":391,"./compressions":392,"./crc32":393,"./reader/readerFor":411,"./support":419,"./utf8":420,"./utils":421}],424:[function(e,t,i){"use strict";var n=e("./stream/StreamHelper"),a=e("./stream/DataWorker"),r=e("./utf8"),o=e("./compressedObject"),s=e("./stream/GenericWorker"),l=function(e,t,i){this.name=e,this.dir=i.dir,this.date=i.date,this.comment=i.comment,this.unixPermissions=i.unixPermissions,this.dosPermissions=i.dosPermissions,this._data=t,this._dataBinary=i.binary,this.options={compression:i.compression,compressionOptions:i.compressionOptions}};l.prototype={internalStream:function(e){var t=null,i="string";try{if(!e)throw new Error("No output type specified.");var a="string"===(i=e.toLowerCase())||"text"===i;"binarystring"!==i&&"text"!==i||(i="string"),t=this._decompressWorker();var o=!this._dataBinary;o&&!a&&(t=t.pipe(new r.Utf8EncodeWorker)),!o&&a&&(t=t.pipe(new r.Utf8DecodeWorker))}catch(e){(t=new s("error")).error(e)}return new n(t,i,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof o&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var i=this._decompressWorker();return this._dataBinary||(i=i.pipe(new r.Utf8EncodeWorker)),o.createWorkerFrom(i,e,t)},_decompressWorker:function(){return this._data instanceof o?this._data.getContentWorker():this._data instanceof s?this._data:new a(this._data)}};for(var c=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],u=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},d=0;d<c.length;d++)l.prototype[c[d]]=u;t.exports=l},{"./compressedObject":391,"./stream/DataWorker":416,"./stream/GenericWorker":417,"./stream/StreamHelper":418,"./utf8":420}],425:[function(e,t,i){"use strict";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)}var a=e("immediate");function r(){}var o={},s=["REJECTED"],l=["FULFILLED"],c=["PENDING"];function u(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=c,this.queue=[],this.outcome=void 0,e!==r&&p(this,e)}function d(e,t,i){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof i&&(this.onRejected=i,this.callRejected=this.otherCallRejected)}function f(e,t,i){a((function(){var n;try{n=t(i)}catch(t){return o.reject(e,t)}n===e?o.reject(e,new TypeError("Cannot resolve promise with itself")):o.resolve(e,n)}))}function h(e){var t=e&&e.then;if(e&&("object"===n(e)||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function p(e,t){var i=!1;function n(t){i||(i=!0,o.reject(e,t))}function a(t){i||(i=!0,o.resolve(e,t))}var r=m((function(){t(a,n)}));"error"===r.status&&n(r.value)}function m(e,t){var i={};try{i.value=e(t),i.status="success"}catch(e){i.status="error",i.value=e}return i}t.exports=u,u.prototype.finally=function(e){if("function"!=typeof e)return this;var t=this.constructor;return this.then((function(i){return t.resolve(e()).then((function(){return i}))}),(function(i){return t.resolve(e()).then((function(){throw i}))}))},u.prototype.catch=function(e){return this.then(null,e)},u.prototype.then=function(e,t){if("function"!=typeof e&&this.state===l||"function"!=typeof t&&this.state===s)return this;var i=new this.constructor(r);return this.state!==c?f(i,this.state===l?e:t,this.outcome):this.queue.push(new d(i,e,t)),i},d.prototype.callFulfilled=function(e){o.resolve(this.promise,e)},d.prototype.otherCallFulfilled=function(e){f(this.promise,this.onFulfilled,e)},d.prototype.callRejected=function(e){o.reject(this.promise,e)},d.prototype.otherCallRejected=function(e){f(this.promise,this.onRejected,e)},o.resolve=function(e,t){var i=m(h,t);if("error"===i.status)return o.reject(e,i.value);var n=i.value;if(n)p(e,n);else{e.state=l,e.outcome=t;for(var a=-1,r=e.queue.length;++a<r;)e.queue[a].callFulfilled(t)}return e},o.reject=function(e,t){e.state=s,e.outcome=t;for(var i=-1,n=e.queue.length;++i<n;)e.queue[i].callRejected(t);return e},u.resolve=function(e){return e instanceof this?e:o.resolve(new this(r),e)},u.reject=function(e){var t=new this(r);return o.reject(t,e)},u.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var i=e.length,n=!1;if(!i)return this.resolve([]);for(var a=new Array(i),s=0,l=-1,c=new this(r);++l<i;)u(e[l],l);return c;function u(e,r){t.resolve(e).then((function(e){a[r]=e,++s!==i||n||(n=!0,o.resolve(c,a))}),(function(e){n||(n=!0,o.reject(c,e))}))}},u.race=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var i=e.length,n=!1;if(!i)return this.resolve([]);for(var a,s=-1,l=new this(r);++s<i;)a=e[s],t.resolve(a).then((function(e){n||(n=!0,o.resolve(l,e))}),(function(e){n||(n=!0,o.reject(l,e))}));return l}},{immediate:386}],426:[function(e,i,n){(function(e){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var n=/[\\^$.*+?()[\]{}|]/g,a=RegExp(n.source),r="object"==(void 0===e?"undefined":t(e))&&e&&e.Object===Object&&e,o="object"==("undefined"==typeof self?"undefined":t(self))&&self&&self.Object===Object&&self,s=r||o||Function("return this")(),l=Object.prototype.toString,c=s.Symbol,u=c?c.prototype:void 0,d=u?u.toString:void 0;function f(e){if("string"==typeof e)return e;if(function(e){return"symbol"==t(e)||function(e){return!!e&&"object"==t(e)}(e)&&"[object Symbol]"==l.call(e)}(e))return d?d.call(e):"";var i=e+"";return"0"==i&&1/e==-1/0?"-0":i}i.exports=function(e){var t;return(e=null==(t=e)?"":f(t))&&a.test(e)?e.replace(n,"\\$&"):e}}).call(this,"undefined"!=typeof t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],427:[function(e,i,n){(function(e){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a="[object Arguments]",r="[object Map]",o="[object Object]",s="[object Set]",l=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c=/^\w*$/,u=/^\./,d=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,f=/\\(\\)?/g,h=/^\[object .+?Constructor\]$/,p=/^(?:0|[1-9]\d*)$/,m={};m["[object Float32Array]"]=m["[object Float64Array]"]=m["[object Int8Array]"]=m["[object Int16Array]"]=m["[object Int32Array]"]=m["[object Uint8Array]"]=m["[object Uint8ClampedArray]"]=m["[object Uint16Array]"]=m["[object Uint32Array]"]=!0,m[a]=m["[object Array]"]=m["[object ArrayBuffer]"]=m["[object Boolean]"]=m["[object DataView]"]=m["[object Date]"]=m["[object Error]"]=m["[object Function]"]=m[r]=m["[object Number]"]=m[o]=m["[object RegExp]"]=m[s]=m["[object String]"]=m["[object WeakMap]"]=!1;var g="object"==(void 0===e?"undefined":t(e))&&e&&e.Object===Object&&e,v="object"==("undefined"==typeof self?"undefined":t(self))&&self&&self.Object===Object&&self,b=g||v||Function("return this")(),y="object"==(void 0===n?"undefined":t(n))&&n&&!n.nodeType&&n,w=y&&"object"==(void 0===i?"undefined":t(i))&&i&&!i.nodeType&&i,_=w&&w.exports===y&&g.process,I=function(){try{return _&&_.binding("util")}catch(e){}}(),x=I&&I.isTypedArray;function S(e,t,i,n){for(var a=-1,r=e?e.length:0;++a<r;){var o=e[a];t(n,o,i(o),e)}return n}function T(e,t){for(var i=-1,n=e?e.length:0;++i<n;)if(t(e[i],i,e))return!0;return!1}function C(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function k(e){var t=-1,i=Array(e.size);return e.forEach((function(e,n){i[++t]=[n,e]})),i}function R(e){var t=-1,i=Array(e.size);return e.forEach((function(e){i[++t]=e})),i}var D,L,O,$=Array.prototype,N=Function.prototype,A=Object.prototype,P=b["__core-js_shared__"],E=(D=/[^.]+$/.exec(P&&P.keys&&P.keys.IE_PROTO||""))?"Symbol(src)_1."+D:"",M=N.toString,F=A.hasOwnProperty,j=A.toString,V=RegExp("^"+M.call(F).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),q=b.Symbol,z=b.Uint8Array,B=A.propertyIsEnumerable,U=$.splice,Q=(L=Object.keys,O=Object,function(e){return L(O(e))}),H=ke(b,"DataView"),G=ke(b,"Map"),W=ke(b,"Promise"),Y=ke(b,"Set"),K=ke(b,"WeakMap"),Z=ke(Object,"create"),X=Pe(H),J=Pe(G),ee=Pe(W),te=Pe(Y),ie=Pe(K),ne=q?q.prototype:void 0,ae=ne?ne.valueOf:void 0,re=ne?ne.toString:void 0;function oe(e){var t=-1,i=e?e.length:0;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}function se(e){var t=-1,i=e?e.length:0;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}function le(e){var t=-1,i=e?e.length:0;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}function ce(e){var t=-1,i=e?e.length:0;for(this.__data__=new le;++t<i;)this.add(e[t])}function ue(e){this.__data__=new se(e)}function de(e,t){var i=ze(e)||qe(e)?function(e,t){for(var i=-1,n=Array(e);++i<e;)n[i]=t(i);return n}(e.length,String):[],n=i.length,a=!!n;for(var r in e)!t&&!F.call(e,r)||a&&("length"==r||De(r,n))||i.push(r);return i}function fe(e,t){for(var i=e.length;i--;)if(Ve(e[i][0],t))return i;return-1}function he(e,t,i,n){return ge(e,(function(e,a,r){t(n,e,i(e),r)})),n}oe.prototype.clear=function(){this.__data__=Z?Z(null):{}},oe.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},oe.prototype.get=function(e){var t=this.__data__;if(Z){var i=t[e];return"__lodash_hash_undefined__"===i?void 0:i}return F.call(t,e)?t[e]:void 0},oe.prototype.has=function(e){var t=this.__data__;return Z?void 0!==t[e]:F.call(t,e)},oe.prototype.set=function(e,t){return this.__data__[e]=Z&&void 0===t?"__lodash_hash_undefined__":t,this},se.prototype.clear=function(){this.__data__=[]},se.prototype.delete=function(e){var t=this.__data__,i=fe(t,e);return!(i<0)&&(i==t.length-1?t.pop():U.call(t,i,1),!0)},se.prototype.get=function(e){var t=this.__data__,i=fe(t,e);return i<0?void 0:t[i][1]},se.prototype.has=function(e){return fe(this.__data__,e)>-1},se.prototype.set=function(e,t){var i=this.__data__,n=fe(i,e);return n<0?i.push([e,t]):i[n][1]=t,this},le.prototype.clear=function(){this.__data__={hash:new oe,map:new(G||se),string:new oe}},le.prototype.delete=function(e){return Ce(this,e).delete(e)},le.prototype.get=function(e){return Ce(this,e).get(e)},le.prototype.has=function(e){return Ce(this,e).has(e)},le.prototype.set=function(e,t){return Ce(this,e).set(e,t),this},ce.prototype.add=ce.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},ce.prototype.has=function(e){return this.__data__.has(e)},ue.prototype.clear=function(){this.__data__=new se},ue.prototype.delete=function(e){return this.__data__.delete(e)},ue.prototype.get=function(e){return this.__data__.get(e)},ue.prototype.has=function(e){return this.__data__.has(e)},ue.prototype.set=function(e,t){var i=this.__data__;if(i instanceof se){var n=i.__data__;if(!G||n.length<199)return n.push([e,t]),this;i=this.__data__=new le(n)}return i.set(e,t),this};var pe,me,ge=(pe=function(e,t){return e&&ve(e,t,Ke)},function(e,t){if(null==e)return e;if(!Be(e))return pe(e,t);for(var i=e.length,n=me?i:-1,a=Object(e);(me?n--:++n<i)&&!1!==t(a[n],n,a););return e}),ve=function(e){return function(t,i,n){for(var a=-1,r=Object(t),o=n(t),s=o.length;s--;){var l=o[e?s:++a];if(!1===i(r[l],l,r))break}return t}}();function be(e,t){for(var i=0,n=(t=Le(t,e)?[t]:Se(t)).length;null!=e&&i<n;)e=e[Ae(t[i++])];return i&&i==n?e:void 0}function ye(e,t){return null!=e&&t in Object(e)}function we(e,t,i,n,l){return e===t||(null==e||null==t||!He(e)&&!Ge(t)?e!=e&&t!=t:function(e,t,i,n,l,c){var u=ze(e),d=ze(t),f="[object Array]",h="[object Array]";u||(f=(f=Re(e))==a?o:f),d||(h=(h=Re(t))==a?o:h);var p=f==o&&!C(e),m=h==o&&!C(t),g=f==h;if(g&&!p)return c||(c=new ue),u||Ye(e)?Te(e,t,i,n,l,c):function(e,t,i,n,a,o,l){switch(i){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!n(new z(e),new z(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Ve(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case r:var c=k;case s:var u=2&o;if(c||(c=R),e.size!=t.size&&!u)return!1;var d=l.get(e);if(d)return d==t;o|=1,l.set(e,t);var f=Te(c(e),c(t),n,a,o,l);return l.delete(e),f;case"[object Symbol]":if(ae)return ae.call(e)==ae.call(t)}return!1}(e,t,f,i,n,l,c);if(!(2&l)){var v=p&&F.call(e,"__wrapped__"),b=m&&F.call(t,"__wrapped__");if(v||b){var y=v?e.value():e,w=b?t.value():t;return c||(c=new ue),i(y,w,n,l,c)}}return!!g&&(c||(c=new ue),function(e,t,i,n,a,r){var o=2&a,s=Ke(e),l=s.length,c=Ke(t).length;if(l!=c&&!o)return!1;for(var u=l;u--;){var d=s[u];if(!(o?d in t:F.call(t,d)))return!1}var f=r.get(e);if(f&&r.get(t))return f==t;var h=!0;r.set(e,t),r.set(t,e);for(var p=o;++u<l;){d=s[u];var m=e[d],g=t[d];if(n)var v=o?n(g,m,d,t,e,r):n(m,g,d,e,t,r);if(!(void 0===v?m===g||i(m,g,n,a,r):v)){h=!1;break}p||(p="constructor"==d)}if(h&&!p){var b=e.constructor,y=t.constructor;b==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof y&&y instanceof y||(h=!1)}return r.delete(e),r.delete(t),h}(e,t,i,n,l,c))}(e,t,we,i,n,l))}function _e(e){return!(!He(e)||function(e){return!!E&&E in e}(e))&&(Ue(e)||C(e)?V:h).test(Pe(e))}function Ie(e){return"function"==typeof e?e:null==e?Ze:"object"==t(e)?ze(e)?function(e,t){return Le(e)&&Oe(t)?$e(Ae(e),t):function(i){var n=function(e,t,i){var n=null==e?void 0:be(e,t);return void 0===n?i:n}(i,e);return void 0===n&&n===t?function(e,t){return null!=e&&function(e,t,i){t=Le(t,e)?[t]:Se(t);for(var n,a=-1,r=t.length;++a<r;){var o=Ae(t[a]);if(!(n=null!=e&&i(e,o)))break;e=e[o]}return n||!!(r=e?e.length:0)&&Qe(r)&&De(o,r)&&(ze(e)||qe(e))}(e,t,ye)}(i,e):we(t,n,void 0,3)}}(e[0],e[1]):function(e){var t=function(e){for(var t=Ke(e),i=t.length;i--;){var n=t[i],a=e[n];t[i]=[n,a,Oe(a)]}return t}(e);return 1==t.length&&t[0][2]?$e(t[0][0],t[0][1]):function(i){return i===e||function(e,t,i,n){var a=i.length,r=a,o=!n;if(null==e)return!r;for(e=Object(e);a--;){var s=i[a];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a<r;){var l=(s=i[a])[0],c=e[l],u=s[1];if(o&&s[2]){if(void 0===c&&!(l in e))return!1}else{var d=new ue;if(n)var f=n(c,u,l,e,t,d);if(!(void 0===f?we(u,c,n,3,d):f))return!1}}return!0}(i,e,t)}}(e):Le(i=e)?(n=Ae(i),function(e){return null==e?void 0:e[n]}):function(e){return function(t){return be(t,e)}}(i);var i,n}function xe(e){if(i=(t=e)&&t.constructor,n="function"==typeof i&&i.prototype||A,t!==n)return Q(e);var t,i,n,a=[];for(var r in Object(e))F.call(e,r)&&"constructor"!=r&&a.push(r);return a}function Se(e){return ze(e)?e:Ne(e)}function Te(e,t,i,n,a,r){var o=2&a,s=e.length,l=t.length;if(s!=l&&!(o&&l>s))return!1;var c=r.get(e);if(c&&r.get(t))return c==t;var u=-1,d=!0,f=1&a?new ce:void 0;for(r.set(e,t),r.set(t,e);++u<s;){var h=e[u],p=t[u];if(n)var m=o?n(p,h,u,t,e,r):n(h,p,u,e,t,r);if(void 0!==m){if(m)continue;d=!1;break}if(f){if(!T(t,(function(e,t){if(!f.has(t)&&(h===e||i(h,e,n,a,r)))return f.add(t)}))){d=!1;break}}else if(h!==p&&!i(h,p,n,a,r)){d=!1;break}}return r.delete(e),r.delete(t),d}function Ce(e,i){var n,a,r=e.__data__;return("string"==(a=t(n=i))||"number"==a||"symbol"==a||"boolean"==a?"__proto__"!==n:null===n)?r["string"==typeof i?"string":"hash"]:r.map}function ke(e,t){var i=function(e,t){return null==e?void 0:e[t]}(e,t);return _e(i)?i:void 0}var Re=function(e){return j.call(e)};function De(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||p.test(e))&&e>-1&&e%1==0&&e<t}function Le(e,i){if(ze(e))return!1;var n=t(e);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!We(e))||c.test(e)||!l.test(e)||null!=i&&e in Object(i)}function Oe(e){return e==e&&!He(e)}function $e(e,t){return function(i){return null!=i&&i[e]===t&&(void 0!==t||e in Object(i))}}(H&&"[object DataView]"!=Re(new H(new ArrayBuffer(1)))||G&&Re(new G)!=r||W&&"[object Promise]"!=Re(W.resolve())||Y&&Re(new Y)!=s||K&&"[object WeakMap]"!=Re(new K))&&(Re=function(e){var t=j.call(e),i=t==o?e.constructor:void 0,n=i?Pe(i):void 0;if(n)switch(n){case X:return"[object DataView]";case J:return r;case ee:return"[object Promise]";case te:return s;case ie:return"[object WeakMap]"}return t});var Ne=je((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(We(e))return re?re.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var i=[];return u.test(e)&&i.push(""),e.replace(d,(function(e,t,n,a){i.push(n?a.replace(f,"$1"):t||e)})),i}));function Ae(e){if("string"==typeof e||We(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Pe(e){if(null!=e){try{return M.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var Ee,Me,Fe=(Ee=function(e,t,i){F.call(e,i)?e[i].push(t):e[i]=[t]},function(e,t){var i=ze(e)?S:he,n=Me?Me():{};return i(e,Ee,Ie(t),n)});function je(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var i=function i(){var n=arguments,a=t?t.apply(this,n):n[0],r=i.cache;if(r.has(a))return r.get(a);var o=e.apply(this,n);return i.cache=r.set(a,o),o};return i.cache=new(je.Cache||le),i}function Ve(e,t){return e===t||e!=e&&t!=t}function qe(e){return function(e){return Ge(e)&&Be(e)}(e)&&F.call(e,"callee")&&(!B.call(e,"callee")||j.call(e)==a)}je.Cache=le;var ze=Array.isArray;function Be(e){return null!=e&&Qe(e.length)&&!Ue(e)}function Ue(e){var t=He(e)?j.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function Qe(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function He(e){var i=t(e);return!!e&&("object"==i||"function"==i)}function Ge(e){return!!e&&"object"==t(e)}function We(e){return"symbol"==t(e)||Ge(e)&&"[object Symbol]"==j.call(e)}var Ye=x?function(e){return function(t){return e(t)}}(x):function(e){return Ge(e)&&Qe(e.length)&&!!m[j.call(e)]};function Ke(e){return Be(e)?de(e):xe(e)}function Ze(e){return e}i.exports=Fe}).call(this,"undefined"!=typeof t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],428:[function(e,t,i){"use strict";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)}var a=Object.prototype.toString;t.exports=function(e){return!0===e||!1===e||function(e){return!!e&&"object"==n(e)}(e)&&"[object Boolean]"==a.call(e)}},{}],429:[function(e,i,n){(function(e){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a="[object Arguments]",r="[object Map]",o="[object Object]",s="[object Set]",l=/^\[object .+?Constructor\]$/,c=/^(?:0|[1-9]\d*)$/,u={};u["[object Float32Array]"]=u["[object Float64Array]"]=u["[object Int8Array]"]=u["[object Int16Array]"]=u["[object Int32Array]"]=u["[object Uint8Array]"]=u["[object Uint8ClampedArray]"]=u["[object Uint16Array]"]=u["[object Uint32Array]"]=!0,u[a]=u["[object Array]"]=u["[object ArrayBuffer]"]=u["[object Boolean]"]=u["[object DataView]"]=u["[object Date]"]=u["[object Error]"]=u["[object Function]"]=u[r]=u["[object Number]"]=u[o]=u["[object RegExp]"]=u[s]=u["[object String]"]=u["[object WeakMap]"]=!1;var d="object"==(void 0===e?"undefined":t(e))&&e&&e.Object===Object&&e,f="object"==("undefined"==typeof self?"undefined":t(self))&&self&&self.Object===Object&&self,h=d||f||Function("return this")(),p="object"==(void 0===n?"undefined":t(n))&&n&&!n.nodeType&&n,m=p&&"object"==(void 0===i?"undefined":t(i))&&i&&!i.nodeType&&i,g=m&&m.exports===p,v=g&&d.process,b=function(){try{return v&&v.binding&&v.binding("util")}catch(e){}}(),y=b&&b.isTypedArray;function w(e,t){for(var i=-1,n=null==e?0:e.length;++i<n;)if(t(e[i],i,e))return!0;return!1}function _(e){var t=-1,i=Array(e.size);return e.forEach((function(e,n){i[++t]=[n,e]})),i}function I(e){var t=-1,i=Array(e.size);return e.forEach((function(e){i[++t]=e})),i}var x,S,T,C=Array.prototype,k=Function.prototype,R=Object.prototype,D=h["__core-js_shared__"],L=k.toString,O=R.hasOwnProperty,$=(x=/[^.]+$/.exec(D&&D.keys&&D.keys.IE_PROTO||""))?"Symbol(src)_1."+x:"",N=R.toString,A=RegExp("^"+L.call(O).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),P=g?h.Buffer:void 0,E=h.Symbol,M=h.Uint8Array,F=R.propertyIsEnumerable,j=C.splice,V=E?E.toStringTag:void 0,q=Object.getOwnPropertySymbols,z=P?P.isBuffer:void 0,B=(S=Object.keys,T=Object,function(e){return S(T(e))}),U=be(h,"DataView"),Q=be(h,"Map"),H=be(h,"Promise"),G=be(h,"Set"),W=be(h,"WeakMap"),Y=be(Object,"create"),K=Ie(U),Z=Ie(Q),X=Ie(H),J=Ie(G),ee=Ie(W),te=E?E.prototype:void 0,ie=te?te.valueOf:void 0;function ne(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}function ae(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}function re(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}function oe(e){var t=-1,i=null==e?0:e.length;for(this.__data__=new re;++t<i;)this.add(e[t])}function se(e){var t=this.__data__=new ae(e);this.size=t.size}function le(e,t){var i=Te(e),n=!i&&Se(e),a=!i&&!n&&Ce(e),r=!i&&!n&&!a&&Oe(e),o=i||n||a||r,s=o?function(e,t){for(var i=-1,n=Array(e);++i<e;)n[i]=t(i);return n}(e.length,String):[],l=s.length;for(var c in e)!t&&!O.call(e,c)||o&&("length"==c||a&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,l))||s.push(c);return s}function ce(e,t){for(var i=e.length;i--;)if(xe(e[i][0],t))return i;return-1}function ue(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":V&&V in Object(e)?function(e){var t=O.call(e,V),i=e[V];try{e[V]=void 0;var n=!0}catch(e){}var a=N.call(e);return n&&(t?e[V]=i:delete e[V]),a}(e):function(e){return N.call(e)}(e)}function de(e){return Le(e)&&ue(e)==a}function fe(e,t,i,n,l){return e===t||(null==e||null==t||!Le(e)&&!Le(t)?e!=e&&t!=t:function(e,t,i,n,l,c){var u=Te(e),d=Te(t),f=u?"[object Array]":we(e),h=d?"[object Array]":we(t),p=(f=f==a?o:f)==o,m=(h=h==a?o:h)==o,g=f==h;if(g&&Ce(e)){if(!Ce(t))return!1;u=!0,p=!1}if(g&&!p)return c||(c=new se),u||Oe(e)?me(e,t,i,n,l,c):function(e,t,i,n,a,o,l){switch(i){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!o(new M(e),new M(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return xe(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case r:var c=_;case s:var u=1&n;if(c||(c=I),e.size!=t.size&&!u)return!1;var d=l.get(e);if(d)return d==t;n|=2,l.set(e,t);var f=me(c(e),c(t),n,a,o,l);return l.delete(e),f;case"[object Symbol]":if(ie)return ie.call(e)==ie.call(t)}return!1}(e,t,f,i,n,l,c);if(!(1&i)){var v=p&&O.call(e,"__wrapped__"),b=m&&O.call(t,"__wrapped__");if(v||b){var y=v?e.value():e,w=b?t.value():t;return c||(c=new se),l(y,w,i,n,c)}}return!!g&&(c||(c=new se),function(e,t,i,n,a,r){var o=1&i,s=ge(e),l=s.length,c=ge(t).length;if(l!=c&&!o)return!1;for(var u=l;u--;){var d=s[u];if(!(o?d in t:O.call(t,d)))return!1}var f=r.get(e);if(f&&r.get(t))return f==t;var h=!0;r.set(e,t),r.set(t,e);for(var p=o;++u<l;){d=s[u];var m=e[d],g=t[d];if(n)var v=o?n(g,m,d,t,e,r):n(m,g,d,e,t,r);if(!(void 0===v?m===g||a(m,g,i,n,r):v)){h=!1;break}p||(p="constructor"==d)}if(h&&!p){var b=e.constructor,y=t.constructor;b==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof y&&y instanceof y||(h=!1)}return r.delete(e),r.delete(t),h}(e,t,i,n,l,c))}(e,t,i,n,fe,l))}function he(e){return!(!De(e)||function(e){return!!$&&$ in e}(e))&&(ke(e)?A:l).test(Ie(e))}function pe(e){if(i=(t=e)&&t.constructor,n="function"==typeof i&&i.prototype||R,t!==n)return B(e);var t,i,n,a=[];for(var r in Object(e))O.call(e,r)&&"constructor"!=r&&a.push(r);return a}function me(e,t,i,n,a,r){var o=1&i,s=e.length,l=t.length;if(s!=l&&!(o&&l>s))return!1;var c=r.get(e);if(c&&r.get(t))return c==t;var u=-1,d=!0,f=2&i?new oe:void 0;for(r.set(e,t),r.set(t,e);++u<s;){var h=e[u],p=t[u];if(n)var m=o?n(p,h,u,t,e,r):n(h,p,u,e,t,r);if(void 0!==m){if(m)continue;d=!1;break}if(f){if(!w(t,(function(e,t){if(o=t,!f.has(o)&&(h===e||a(h,e,i,n,r)))return f.push(t);var o}))){d=!1;break}}else if(h!==p&&!a(h,p,i,n,r)){d=!1;break}}return r.delete(e),r.delete(t),d}function ge(e){return function(e,t,i){var n=t(e);return Te(e)?n:function(e,t){for(var i=-1,n=t.length,a=e.length;++i<n;)e[a+i]=t[i];return e}(n,i(e))}(e,$e,ye)}function ve(e,i){var n,a,r=e.__data__;return("string"==(a=t(n=i))||"number"==a||"symbol"==a||"boolean"==a?"__proto__"!==n:null===n)?r["string"==typeof i?"string":"hash"]:r.map}function be(e,t){var i=function(e,t){return null==e?void 0:e[t]}(e,t);return he(i)?i:void 0}ne.prototype.clear=function(){this.__data__=Y?Y(null):{},this.size=0},ne.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ne.prototype.get=function(e){var t=this.__data__;if(Y){var i=t[e];return"__lodash_hash_undefined__"===i?void 0:i}return O.call(t,e)?t[e]:void 0},ne.prototype.has=function(e){var t=this.__data__;return Y?void 0!==t[e]:O.call(t,e)},ne.prototype.set=function(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=Y&&void 0===t?"__lodash_hash_undefined__":t,this},ae.prototype.clear=function(){this.__data__=[],this.size=0},ae.prototype.delete=function(e){var t=this.__data__,i=ce(t,e);return!(i<0)&&(i==t.length-1?t.pop():j.call(t,i,1),--this.size,!0)},ae.prototype.get=function(e){var t=this.__data__,i=ce(t,e);return i<0?void 0:t[i][1]},ae.prototype.has=function(e){return ce(this.__data__,e)>-1},ae.prototype.set=function(e,t){var i=this.__data__,n=ce(i,e);return n<0?(++this.size,i.push([e,t])):i[n][1]=t,this},re.prototype.clear=function(){this.size=0,this.__data__={hash:new ne,map:new(Q||ae),string:new ne}},re.prototype.delete=function(e){var t=ve(this,e).delete(e);return this.size-=t?1:0,t},re.prototype.get=function(e){return ve(this,e).get(e)},re.prototype.has=function(e){return ve(this,e).has(e)},re.prototype.set=function(e,t){var i=ve(this,e),n=i.size;return i.set(e,t),this.size+=i.size==n?0:1,this},oe.prototype.add=oe.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},oe.prototype.has=function(e){return this.__data__.has(e)},se.prototype.clear=function(){this.__data__=new ae,this.size=0},se.prototype.delete=function(e){var t=this.__data__,i=t.delete(e);return this.size=t.size,i},se.prototype.get=function(e){return this.__data__.get(e)},se.prototype.has=function(e){return this.__data__.has(e)},se.prototype.set=function(e,t){var i=this.__data__;if(i instanceof ae){var n=i.__data__;if(!Q||n.length<199)return n.push([e,t]),this.size=++i.size,this;i=this.__data__=new re(n)}return i.set(e,t),this.size=i.size,this};var ye=q?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var i=-1,n=null==e?0:e.length,a=0,r=[];++i<n;){var o=e[i];t(o,i,e)&&(r[a++]=o)}return r}(q(e),(function(t){return F.call(e,t)})))}:function(){return[]},we=ue;function _e(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||c.test(e))&&e>-1&&e%1==0&&e<t}function Ie(e){if(null!=e){try{return L.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function xe(e,t){return e===t||e!=e&&t!=t}(U&&"[object DataView]"!=we(new U(new ArrayBuffer(1)))||Q&&we(new Q)!=r||H&&"[object Promise]"!=we(H.resolve())||G&&we(new G)!=s||W&&"[object WeakMap]"!=we(new W))&&(we=function(e){var t=ue(e),i=t==o?e.constructor:void 0,n=i?Ie(i):"";if(n)switch(n){case K:return"[object DataView]";case Z:return r;case X:return"[object Promise]";case J:return s;case ee:return"[object WeakMap]"}return t});var Se=de(function(){return arguments}())?de:function(e){return Le(e)&&O.call(e,"callee")&&!F.call(e,"callee")},Te=Array.isArray,Ce=z||function(){return!1};function ke(e){if(!De(e))return!1;var t=ue(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Re(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function De(e){var i=t(e);return null!=e&&("object"==i||"function"==i)}function Le(e){return null!=e&&"object"==t(e)}var Oe=y?function(e){return function(t){return e(t)}}(y):function(e){return Le(e)&&Re(e.length)&&!!u[ue(e)]};function $e(e){return null!=(t=e)&&Re(t.length)&&!ke(t)?le(e):pe(e);var t}i.exports=function(e,t){return fe(e,t)}}).call(this,"undefined"!=typeof t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],430:[function(e,i,n){(function(e){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var n="object"==(void 0===e?"undefined":t(e))&&e&&e.Object===Object&&e,a="object"==("undefined"==typeof self?"undefined":t(self))&&self&&self.Object===Object&&self,r=n||a||Function("return this")(),o=Object.prototype,s=o.hasOwnProperty,l=o.toString,c=r.Symbol,u=c?c.toStringTag:void 0;function d(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":u&&u in Object(e)?function(e){var t=s.call(e,u),i=e[u];try{e[u]=void 0;var n=!0}catch(e){}var a=l.call(e);return n&&(t?e[u]=i:delete e[u]),a}(e):function(e){return l.call(e)}(e)}i.exports=function(e){if(!function(e){var i=t(e);return null!=e&&("object"==i||"function"==i)}(e))return!1;var i=d(e);return"[object Function]"==i||"[object GeneratorFunction]"==i||"[object AsyncFunction]"==i||"[object Proxy]"==i}}).call(this,"undefined"!=typeof t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],431:[function(e,t,i){"use strict";t.exports=function(e){return null==e}},{}],432:[function(e,t,i){"use strict";t.exports=function(e){return void 0===e}},{}],433:[function(e,i,n){(function(e){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var n=/^\[object .+?Constructor\]$/,a="object"==(void 0===e?"undefined":t(e))&&e&&e.Object===Object&&e,r="object"==("undefined"==typeof self?"undefined":t(self))&&self&&self.Object===Object&&self,o=a||r||Function("return this")();function s(e,t){return!(!e||!e.length)&&function(e,t,i){if(t!=t)return function(e,t,i,n){for(var a=e.length,r=i+(n?1:-1);n?r--:++r<a;)if(t(e[r],r,e))return r;return-1}(e,c,i);for(var n=i-1,a=e.length;++n<a;)if(e[n]===t)return n;return-1}(e,t,0)>-1}function l(e,t,i){for(var n=-1,a=e?e.length:0;++n<a;)if(i(t,e[n]))return!0;return!1}function c(e){return e!=e}function u(e,t){return e.has(t)}function d(e){var t=-1,i=Array(e.size);return e.forEach((function(e){i[++t]=e})),i}var f,h=Array.prototype,p=Function.prototype,m=Object.prototype,g=o["__core-js_shared__"],v=(f=/[^.]+$/.exec(g&&g.keys&&g.keys.IE_PROTO||""))?"Symbol(src)_1."+f:"",b=p.toString,y=m.hasOwnProperty,w=m.toString,_=RegExp("^"+b.call(y).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),I=h.splice,x=A(o,"Map"),S=A(o,"Set"),T=A(Object,"create");function C(e){var t=-1,i=e?e.length:0;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}function k(e){var t=-1,i=e?e.length:0;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}function R(e){var t=-1,i=e?e.length:0;for(this.clear();++t<i;){var n=e[t];this.set(n[0],n[1])}}function D(e){var t=-1,i=e?e.length:0;for(this.__data__=new R;++t<i;)this.add(e[t])}function L(e,t){for(var i,n,a=e.length;a--;)if((i=e[a][0])===(n=t)||i!=i&&n!=n)return a;return-1}function O(e){return!(!P(e)||(t=e,v&&v in t))&&(function(e){var t=P(e)?w.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?_:n).test(function(e){if(null!=e){try{return b.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var t}C.prototype.clear=function(){this.__data__=T?T(null):{}},C.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},C.prototype.get=function(e){var t=this.__data__;if(T){var i=t[e];return"__lodash_hash_undefined__"===i?void 0:i}return y.call(t,e)?t[e]:void 0},C.prototype.has=function(e){var t=this.__data__;return T?void 0!==t[e]:y.call(t,e)},C.prototype.set=function(e,t){return this.__data__[e]=T&&void 0===t?"__lodash_hash_undefined__":t,this},k.prototype.clear=function(){this.__data__=[]},k.prototype.delete=function(e){var t=this.__data__,i=L(t,e);return!(i<0)&&(i==t.length-1?t.pop():I.call(t,i,1),!0)},k.prototype.get=function(e){var t=this.__data__,i=L(t,e);return i<0?void 0:t[i][1]},k.prototype.has=function(e){return L(this.__data__,e)>-1},k.prototype.set=function(e,t){var i=this.__data__,n=L(i,e);return n<0?i.push([e,t]):i[n][1]=t,this},R.prototype.clear=function(){this.__data__={hash:new C,map:new(x||k),string:new C}},R.prototype.delete=function(e){return N(this,e).delete(e)},R.prototype.get=function(e){return N(this,e).get(e)},R.prototype.has=function(e){return N(this,e).has(e)},R.prototype.set=function(e,t){return N(this,e).set(e,t),this},D.prototype.add=D.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},D.prototype.has=function(e){return this.__data__.has(e)};var $=S&&1/d(new S([,-0]))[1]==1/0?function(e){return new S(e)}:function(){};function N(e,i){var n,a,r=e.__data__;return("string"==(a=t(n=i))||"number"==a||"symbol"==a||"boolean"==a?"__proto__"!==n:null===n)?r["string"==typeof i?"string":"hash"]:r.map}function A(e,t){var i=function(e,t){return null==e?void 0:e[t]}(e,t);return O(i)?i:void 0}function P(e){var i=t(e);return!!e&&("object"==i||"function"==i)}i.exports=function(e){return e&&e.length?function(e,t,i){var n=-1,a=s,r=e.length,o=!0,c=[],f=c;if(i)o=!1,a=l;else if(r>=200){var h=t?null:$(e);if(h)return d(h);o=!1,a=u,f=new D}else f=t?[]:c;e:for(;++n<r;){var p=e[n],m=t?t(p):p;if(p=i||0!==p?p:0,o&&m==m){for(var g=f.length;g--;)if(f[g]===m)continue e;t&&f.push(m),c.push(p)}else a(f,m,i)||(f!==c&&f.push(m),c.push(p))}return c}(e):[]}}).call(this,"undefined"!=typeof t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],434:[function(e,t,i){"use strict";var n=e("inherits"),a=e("hash-base"),r=e("safe-buffer").Buffer,o=new Array(16);function s(){a.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function l(e,t){return e<<t|e>>>32-t}function c(e,t,i,n,a,r,o){return l(e+(t&i|~t&n)+a+r|0,o)+t|0}function u(e,t,i,n,a,r,o){return l(e+(t&n|i&~n)+a+r|0,o)+t|0}function d(e,t,i,n,a,r,o){return l(e+(t^i^n)+a+r|0,o)+t|0}function f(e,t,i,n,a,r,o){return l(e+(i^(t|~n))+a+r|0,o)+t|0}n(s,a),s.prototype._update=function(){for(var e=o,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var i=this._a,n=this._b,a=this._c,r=this._d;i=c(i,n,a,r,e[0],3614090360,7),r=c(r,i,n,a,e[1],3905402710,12),a=c(a,r,i,n,e[2],606105819,17),n=c(n,a,r,i,e[3],3250441966,22),i=c(i,n,a,r,e[4],4118548399,7),r=c(r,i,n,a,e[5],1200080426,12),a=c(a,r,i,n,e[6],2821735955,17),n=c(n,a,r,i,e[7],4249261313,22),i=c(i,n,a,r,e[8],1770035416,7),r=c(r,i,n,a,e[9],2336552879,12),a=c(a,r,i,n,e[10],4294925233,17),n=c(n,a,r,i,e[11],2304563134,22),i=c(i,n,a,r,e[12],1804603682,7),r=c(r,i,n,a,e[13],4254626195,12),a=c(a,r,i,n,e[14],2792965006,17),i=u(i,n=c(n,a,r,i,e[15],1236535329,22),a,r,e[1],4129170786,5),r=u(r,i,n,a,e[6],3225465664,9),a=u(a,r,i,n,e[11],643717713,14),n=u(n,a,r,i,e[0],3921069994,20),i=u(i,n,a,r,e[5],3593408605,5),r=u(r,i,n,a,e[10],38016083,9),a=u(a,r,i,n,e[15],3634488961,14),n=u(n,a,r,i,e[4],3889429448,20),i=u(i,n,a,r,e[9],568446438,5),r=u(r,i,n,a,e[14],3275163606,9),a=u(a,r,i,n,e[3],4107603335,14),n=u(n,a,r,i,e[8],1163531501,20),i=u(i,n,a,r,e[13],2850285829,5),r=u(r,i,n,a,e[2],4243563512,9),a=u(a,r,i,n,e[7],1735328473,14),i=d(i,n=u(n,a,r,i,e[12],2368359562,20),a,r,e[5],4294588738,4),r=d(r,i,n,a,e[8],2272392833,11),a=d(a,r,i,n,e[11],1839030562,16),n=d(n,a,r,i,e[14],4259657740,23),i=d(i,n,a,r,e[1],2763975236,4),r=d(r,i,n,a,e[4],1272893353,11),a=d(a,r,i,n,e[7],4139469664,16),n=d(n,a,r,i,e[10],3200236656,23),i=d(i,n,a,r,e[13],681279174,4),r=d(r,i,n,a,e[0],3936430074,11),a=d(a,r,i,n,e[3],3572445317,16),n=d(n,a,r,i,e[6],76029189,23),i=d(i,n,a,r,e[9],3654602809,4),r=d(r,i,n,a,e[12],3873151461,11),a=d(a,r,i,n,e[15],530742520,16),i=f(i,n=d(n,a,r,i,e[2],3299628645,23),a,r,e[0],4096336452,6),r=f(r,i,n,a,e[7],1126891415,10),a=f(a,r,i,n,e[14],2878612391,15),n=f(n,a,r,i,e[5],4237533241,21),i=f(i,n,a,r,e[12],1700485571,6),r=f(r,i,n,a,e[3],2399980690,10),a=f(a,r,i,n,e[10],4293915773,15),n=f(n,a,r,i,e[1],2240044497,21),i=f(i,n,a,r,e[8],1873313359,6),r=f(r,i,n,a,e[15],4264355552,10),a=f(a,r,i,n,e[6],2734768916,15),n=f(n,a,r,i,e[13],1309151649,21),i=f(i,n,a,r,e[4],4149444226,6),r=f(r,i,n,a,e[11],3174756917,10),a=f(a,r,i,n,e[2],718787259,15),n=f(n,a,r,i,e[9],3951481745,21),this._a=this._a+i|0,this._b=this._b+n|0,this._c=this._c+a|0,this._d=this._d+r|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=r.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},t.exports=s},{"hash-base":370,inherits:387,"safe-buffer":494}],435:[function(e,t,i){"use strict";var n=e("bn.js"),a=e("brorand");function r(e){this.rand=e||new a.Rand}t.exports=r,r.create=function(e){return new r(e)},r.prototype._randbelow=function(e){var t=e.bitLength(),i=Math.ceil(t/8);do{var a=new n(this.rand.generate(i))}while(a.cmp(e)>=0);return a},r.prototype._randrange=function(e,t){var i=t.sub(e);return e.add(this._randbelow(i))},r.prototype.test=function(e,t,i){var a=e.bitLength(),r=n.mont(e),o=new n(1).toRed(r);t||(t=Math.max(1,a/48|0));for(var s=e.subn(1),l=0;!s.testn(l);l++);for(var c=e.shrn(l),u=s.toRed(r);t>0;t--){var d=this._randrange(new n(2),s);i&&i(d);var f=d.toRed(r).redPow(c);if(0!==f.cmp(o)&&0!==f.cmp(u)){for(var h=1;h<l;h++){if(0===(f=f.redSqr()).cmp(o))return!1;if(0===f.cmp(u))break}if(h===l)return!1}}return!0},r.prototype.getDivisor=function(e,t){var i=e.bitLength(),a=n.mont(e),r=new n(1).toRed(a);t||(t=Math.max(1,i/48|0));for(var o=e.subn(1),s=0;!o.testn(s);s++);for(var l=e.shrn(s),c=o.toRed(a);t>0;t--){var u=this._randrange(new n(2),o),d=e.gcd(u);if(0!==d.cmpn(1))return d;var f=u.toRed(a).redPow(l);if(0!==f.cmp(r)&&0!==f.cmp(c)){for(var h=1;h<s;h++){if(0===(f=f.redSqr()).cmp(r))return f.fromRed().subn(1).gcd(e);if(0===f.cmp(c))break}if(h===s)return(f=f.redSqr()).fromRed().subn(1).gcd(e)}}return!1}},{"bn.js":436,brorand:184}],436:[function(e,t,i){arguments[4][181][0].apply(i,arguments)},{buffer:185,dup:181}],437:[function(e,t,i){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}t.exports=n,n.equal=function(e,t,i){if(e!=t)throw new Error(i||"Assertion failed: "+e+" != "+t)}},{}],438:[function(e,t,i){"use strict";var n=i;function a(e){return 1===e.length?"0"+e:e}function r(e){for(var t="",i=0;i<e.length;i++)t+=a(e[i].toString(16));return t}n.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var i=[];if("string"!=typeof e){for(var n=0;n<e.length;n++)i[n]=0|e[n];return i}if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),n=0;n<e.length;n+=2)i.push(parseInt(e[n]+e[n+1],16));else for(n=0;n<e.length;n++){var a=e.charCodeAt(n),r=a>>8,o=255&a;r?i.push(r,o):i.push(o)}return i},n.zero2=a,n.toHex=r,n.encode=function(e,t){return"hex"===t?r(e):e}},{}],439:[function(e,t,i){"use strict";var n={};(0,e("./lib/utils/common").assign)(n,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=n},{"./lib/deflate":440,"./lib/inflate":441,"./lib/utils/common":442,"./lib/zlib/constants":445}],440:[function(e,t,i){"use strict";var n=e("./zlib/deflate"),a=e("./utils/common"),r=e("./utils/strings"),o=e("./zlib/messages"),s=e("./zlib/zstream"),l=Object.prototype.toString;function c(e){if(!(this instanceof c))return new c(e);this.options=a.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var i=n.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==i)throw new Error(o[i]);if(t.header&&n.deflateSetHeader(this.strm,t.header),t.dictionary){var u;if(u="string"==typeof t.dictionary?r.string2buf(t.dictionary):"[object ArrayBuffer]"===l.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,0!==(i=n.deflateSetDictionary(this.strm,u)))throw new Error(o[i]);this._dict_set=!0}}function u(e,t){var i=new c(t);if(i.push(e,!0),i.err)throw i.msg||o[i.err];return i.result}c.prototype.push=function(e,t){var i,o,s=this.strm,c=this.options.chunkSize;if(this.ended)return!1;o=t===~~t?t:!0===t?4:0,"string"==typeof e?s.input=r.string2buf(e):"[object ArrayBuffer]"===l.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new a.Buf8(c),s.next_out=0,s.avail_out=c),1!==(i=n.deflate(s,o))&&0!==i)return this.onEnd(i),this.ended=!0,!1;0!==s.avail_out&&(0!==s.avail_in||4!==o&&2!==o)||("string"===this.options.to?this.onData(r.buf2binstring(a.shrinkBuf(s.output,s.next_out))):this.onData(a.shrinkBuf(s.output,s.next_out)))}while((s.avail_in>0||0===s.avail_out)&&1!==i);return 4===o?(i=n.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,0===i):2!==o||(this.onEnd(0),s.avail_out=0,!0)},c.prototype.onData=function(e){this.chunks.push(e)},c.prototype.onEnd=function(e){0===e&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},i.Deflate=c,i.deflate=u,i.deflateRaw=function(e,t){return(t=t||{}).raw=!0,u(e,t)},i.gzip=function(e,t){return(t=t||{}).gzip=!0,u(e,t)}},{"./utils/common":442,"./utils/strings":443,"./zlib/deflate":447,"./zlib/messages":452,"./zlib/zstream":454}],441:[function(e,t,i){"use strict";var n=e("./zlib/inflate"),a=e("./utils/common"),r=e("./utils/strings"),o=e("./zlib/constants"),s=e("./zlib/messages"),l=e("./zlib/zstream"),c=e("./zlib/gzheader"),u=Object.prototype.toString;function d(e){if(!(this instanceof d))return new d(e);this.options=a.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var i=n.inflateInit2(this.strm,t.windowBits);if(i!==o.Z_OK)throw new Error(s[i]);if(this.header=new c,n.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=r.string2buf(t.dictionary):"[object ArrayBuffer]"===u.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(i=n.inflateSetDictionary(this.strm,t.dictionary))!==o.Z_OK))throw new Error(s[i])}function f(e,t){var i=new d(t);if(i.push(e,!0),i.err)throw i.msg||s[i.err];return i.result}d.prototype.push=function(e,t){var i,s,l,c,d,f=this.strm,h=this.options.chunkSize,p=this.options.dictionary,m=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?o.Z_FINISH:o.Z_NO_FLUSH,"string"==typeof e?f.input=r.binstring2buf(e):"[object ArrayBuffer]"===u.call(e)?f.input=new Uint8Array(e):f.input=e,f.next_in=0,f.avail_in=f.input.length;do{if(0===f.avail_out&&(f.output=new a.Buf8(h),f.next_out=0,f.avail_out=h),(i=n.inflate(f,o.Z_NO_FLUSH))===o.Z_NEED_DICT&&p&&(i=n.inflateSetDictionary(this.strm,p)),i===o.Z_BUF_ERROR&&!0===m&&(i=o.Z_OK,m=!1),i!==o.Z_STREAM_END&&i!==o.Z_OK)return this.onEnd(i),this.ended=!0,!1;f.next_out&&(0!==f.avail_out&&i!==o.Z_STREAM_END&&(0!==f.avail_in||s!==o.Z_FINISH&&s!==o.Z_SYNC_FLUSH)||("string"===this.options.to?(l=r.utf8border(f.output,f.next_out),c=f.next_out-l,d=r.buf2string(f.output,l),f.next_out=c,f.avail_out=h-c,c&&a.arraySet(f.output,f.output,l,c,0),this.onData(d)):this.onData(a.shrinkBuf(f.output,f.next_out)))),0===f.avail_in&&0===f.avail_out&&(m=!0)}while((f.avail_in>0||0===f.avail_out)&&i!==o.Z_STREAM_END);return i===o.Z_STREAM_END&&(s=o.Z_FINISH),s===o.Z_FINISH?(i=n.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===o.Z_OK):s!==o.Z_SYNC_FLUSH||(this.onEnd(o.Z_OK),f.avail_out=0,!0)},d.prototype.onData=function(e){this.chunks.push(e)},d.prototype.onEnd=function(e){e===o.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},i.Inflate=d,i.inflate=f,i.inflateRaw=function(e,t){return(t=t||{}).raw=!0,f(e,t)},i.ungzip=f},{"./utils/common":442,"./utils/strings":443,"./zlib/constants":445,"./zlib/gzheader":448,"./zlib/inflate":450,"./zlib/messages":452,"./zlib/zstream":454}],442:[function(e,t,i){"use strict";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)}var a="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}i.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var i=t.shift();if(i){if("object"!==n(i))throw new TypeError(i+"must be non-object");for(var a in i)r(i,a)&&(e[a]=i[a])}}return e},i.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var o={arraySet:function(e,t,i,n,a){if(t.subarray&&e.subarray)e.set(t.subarray(i,i+n),a);else for(var r=0;r<n;r++)e[a+r]=t[i+r]},flattenChunks:function(e){var t,i,n,a,r,o;for(n=0,t=0,i=e.length;t<i;t++)n+=e[t].length;for(o=new Uint8Array(n),a=0,t=0,i=e.length;t<i;t++)r=e[t],o.set(r,a),a+=r.length;return o}},s={arraySet:function(e,t,i,n,a){for(var r=0;r<n;r++)e[a+r]=t[i+r]},flattenChunks:function(e){return[].concat.apply([],e)}};i.setTyped=function(e){e?(i.Buf8=Uint8Array,i.Buf16=Uint16Array,i.Buf32=Int32Array,i.assign(i,o)):(i.Buf8=Array,i.Buf16=Array,i.Buf32=Array,i.assign(i,s))},i.setTyped(a)},{}],443:[function(e,t,i){"use strict";var n=e("./common"),a=!0,r=!0;try{String.fromCharCode.apply(null,[0])}catch(e){a=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){r=!1}for(var o=new n.Buf8(256),s=0;s<256;s++)o[s]=s>=252?6:s>=248?5:s>=240?4:s>=224?3:s>=192?2:1;function l(e,t){if(t<65534&&(e.subarray&&r||!e.subarray&&a))return String.fromCharCode.apply(null,n.shrinkBuf(e,t));for(var i="",o=0;o<t;o++)i+=String.fromCharCode(e[o]);return i}o[254]=o[254]=1,i.string2buf=function(e){var t,i,a,r,o,s=e.length,l=0;for(r=0;r<s;r++)55296==(64512&(i=e.charCodeAt(r)))&&r+1<s&&56320==(64512&(a=e.charCodeAt(r+1)))&&(i=65536+(i-55296<<10)+(a-56320),r++),l+=i<128?1:i<2048?2:i<65536?3:4;for(t=new n.Buf8(l),o=0,r=0;o<l;r++)55296==(64512&(i=e.charCodeAt(r)))&&r+1<s&&56320==(64512&(a=e.charCodeAt(r+1)))&&(i=65536+(i-55296<<10)+(a-56320),r++),i<128?t[o++]=i:i<2048?(t[o++]=192|i>>>6,t[o++]=128|63&i):i<65536?(t[o++]=224|i>>>12,t[o++]=128|i>>>6&63,t[o++]=128|63&i):(t[o++]=240|i>>>18,t[o++]=128|i>>>12&63,t[o++]=128|i>>>6&63,t[o++]=128|63&i);return t},i.buf2binstring=function(e){return l(e,e.length)},i.binstring2buf=function(e){for(var t=new n.Buf8(e.length),i=0,a=t.length;i<a;i++)t[i]=e.charCodeAt(i);return t},i.buf2string=function(e,t){var i,n,a,r,s=t||e.length,c=new Array(2*s);for(n=0,i=0;i<s;)if((a=e[i++])<128)c[n++]=a;else if((r=o[a])>4)c[n++]=65533,i+=r-1;else{for(a&=2===r?31:3===r?15:7;r>1&&i<s;)a=a<<6|63&e[i++],r--;r>1?c[n++]=65533:a<65536?c[n++]=a:(a-=65536,c[n++]=55296|a>>10&1023,c[n++]=56320|1023&a)}return l(c,n)},i.utf8border=function(e,t){var i;for((t=t||e.length)>e.length&&(t=e.length),i=t-1;i>=0&&128==(192&e[i]);)i--;return i<0||0===i?t:i+o[e[i]]>t?i:t}},{"./common":442}],444:[function(e,t,i){"use strict";t.exports=function(e,t,i,n){for(var a=65535&e|0,r=e>>>16&65535|0,o=0;0!==i;){i-=o=i>2e3?2e3:i;do{r=r+(a=a+t[n++]|0)|0}while(--o);a%=65521,r%=65521}return a|r<<16|0}},{}],445:[function(e,t,i){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],446:[function(e,t,i){"use strict";var n=function(){for(var e,t=[],i=0;i<256;i++){e=i;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[i]=e}return t}();t.exports=function(e,t,i,a){var r=n,o=a+i;e^=-1;for(var s=a;s<o;s++)e=e>>>8^r[255&(e^t[s])];return-1^e}},{}],447:[function(e,t,i){"use strict";var n,a=e("../utils/common"),r=e("./trees"),o=e("./adler32"),s=e("./crc32"),l=e("./messages");function c(e,t){return e.msg=l[t],t}function u(e){return(e<<1)-(e>4?9:0)}function d(e){for(var t=e.length;--t>=0;)e[t]=0}function f(e){var t=e.state,i=t.pending;i>e.avail_out&&(i=e.avail_out),0!==i&&(a.arraySet(e.output,t.pending_buf,t.pending_out,i,e.next_out),e.next_out+=i,t.pending_out+=i,e.total_out+=i,e.avail_out-=i,t.pending-=i,0===t.pending&&(t.pending_out=0))}function h(e,t){r._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,f(e.strm)}function p(e,t){e.pending_buf[e.pending++]=t}function m(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function g(e,t){var i,n,a=e.max_chain_length,r=e.strstart,o=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-262?e.strstart-(e.w_size-262):0,c=e.window,u=e.w_mask,d=e.prev,f=e.strstart+258,h=c[r+o-1],p=c[r+o];e.prev_length>=e.good_match&&(a>>=2),s>e.lookahead&&(s=e.lookahead);do{if(c[(i=t)+o]===p&&c[i+o-1]===h&&c[i]===c[r]&&c[++i]===c[r+1]){r+=2,i++;do{}while(c[++r]===c[++i]&&c[++r]===c[++i]&&c[++r]===c[++i]&&c[++r]===c[++i]&&c[++r]===c[++i]&&c[++r]===c[++i]&&c[++r]===c[++i]&&c[++r]===c[++i]&&r<f);if(n=258-(f-r),r=f-258,n>o){if(e.match_start=t,o=n,n>=s)break;h=c[r+o-1],p=c[r+o]}}}while((t=d[t&u])>l&&0!=--a);return o<=e.lookahead?o:e.lookahead}function v(e){var t,i,n,r,l,c,u,d,f,h,p=e.w_size;do{if(r=e.window_size-e.lookahead-e.strstart,e.strstart>=p+(p-262)){a.arraySet(e.window,e.window,p,p,0),e.match_start-=p,e.strstart-=p,e.block_start-=p,t=i=e.hash_size;do{n=e.head[--t],e.head[t]=n>=p?n-p:0}while(--i);t=i=p;do{n=e.prev[--t],e.prev[t]=n>=p?n-p:0}while(--i);r+=p}if(0===e.strm.avail_in)break;if(c=e.strm,u=e.window,d=e.strstart+e.lookahead,f=r,h=void 0,(h=c.avail_in)>f&&(h=f),i=0===h?0:(c.avail_in-=h,a.arraySet(u,c.input,c.next_in,h,d),1===c.state.wrap?c.adler=o(c.adler,u,h,d):2===c.state.wrap&&(c.adler=s(c.adler,u,h,d)),c.next_in+=h,c.total_in+=h,h),e.lookahead+=i,e.lookahead+e.insert>=3)for(l=e.strstart-e.insert,e.ins_h=e.window[l],e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+3-1])&e.hash_mask,e.prev[l&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=l,l++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<262&&0!==e.strm.avail_in)}function b(e,t){for(var i,n;;){if(e.lookahead<262){if(v(e),e.lookahead<262&&0===t)return 1;if(0===e.lookahead)break}if(i=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,i=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==i&&e.strstart-i<=e.w_size-262&&(e.match_length=g(e,i)),e.match_length>=3)if(n=r._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,i=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!=--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else n=r._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(h(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,4===t?(h(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(h(e,!1),0===e.strm.avail_out)?1:2}function y(e,t){for(var i,n,a;;){if(e.lookahead<262){if(v(e),e.lookahead<262&&0===t)return 1;if(0===e.lookahead)break}if(i=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,i=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==i&&e.prev_length<e.max_lazy_match&&e.strstart-i<=e.w_size-262&&(e.match_length=g(e,i),e.match_length<=5&&(1===e.strategy||3===e.match_length&&e.strstart-e.match_start>4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){a=e.strstart+e.lookahead-3,n=r._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=a&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,i=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!=--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,n&&(h(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((n=r._tr_tally(e,0,e.window[e.strstart-1]))&&h(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=r._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,4===t?(h(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(h(e,!1),0===e.strm.avail_out)?1:2}function w(e,t,i,n,a){this.good_length=e,this.max_lazy=t,this.nice_length=i,this.max_chain=n,this.func=a}function _(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new a.Buf16(1146),this.dyn_dtree=new a.Buf16(122),this.bl_tree=new a.Buf16(78),d(this.dyn_ltree),d(this.dyn_dtree),d(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new a.Buf16(16),this.heap=new a.Buf16(573),d(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new a.Buf16(573),d(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function I(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=2,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:113,e.adler=2===t.wrap?0:1,t.last_flush=0,r._tr_init(t),0):c(e,-2)}function x(e){var t,i=I(e);return 0===i&&((t=e.state).window_size=2*t.w_size,d(t.head),t.max_lazy_match=n[t.level].max_lazy,t.good_match=n[t.level].good_length,t.nice_match=n[t.level].nice_length,t.max_chain_length=n[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0),i}function S(e,t,i,n,r,o){if(!e)return-2;var s=1;if(-1===t&&(t=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),r<1||r>9||8!==i||n<8||n>15||t<0||t>9||o<0||o>4)return c(e,-2);8===n&&(n=9);var l=new _;return e.state=l,l.strm=e,l.wrap=s,l.gzhead=null,l.w_bits=n,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=r+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+3-1)/3),l.window=new a.Buf8(2*l.w_size),l.head=new a.Buf16(l.hash_size),l.prev=new a.Buf16(l.w_size),l.lit_bufsize=1<<r+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new a.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=t,l.strategy=o,l.method=i,x(e)}n=[new w(0,0,0,0,(function(e,t){var i=65535;for(i>e.pending_buf_size-5&&(i=e.pending_buf_size-5);;){if(e.lookahead<=1){if(v(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+i;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,h(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-262&&(h(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(h(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(h(e,!1),e.strm.avail_out),1)})),new w(4,4,8,4,b),new w(4,5,16,8,b),new w(4,6,32,32,b),new w(4,4,16,16,y),new w(8,16,32,32,y),new w(8,16,128,128,y),new w(8,32,128,256,y),new w(32,128,258,1024,y),new w(32,258,258,4096,y)],i.deflateInit=function(e,t){return S(e,t,8,15,8,0)},i.deflateInit2=S,i.deflateReset=x,i.deflateResetKeep=I,i.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?-2:(e.state.gzhead=t,0):-2},i.deflate=function(e,t){var i,a,o,l;if(!e||!e.state||t>5||t<0)return e?c(e,-2):-2;if(a=e.state,!e.output||!e.input&&0!==e.avail_in||666===a.status&&4!==t)return c(e,0===e.avail_out?-5:-2);if(a.strm=e,i=a.last_flush,a.last_flush=t,42===a.status)if(2===a.wrap)e.adler=0,p(a,31),p(a,139),p(a,8),a.gzhead?(p(a,(a.gzhead.text?1:0)+(a.gzhead.hcrc?2:0)+(a.gzhead.extra?4:0)+(a.gzhead.name?8:0)+(a.gzhead.comment?16:0)),p(a,255&a.gzhead.time),p(a,a.gzhead.time>>8&255),p(a,a.gzhead.time>>16&255),p(a,a.gzhead.time>>24&255),p(a,9===a.level?2:a.strategy>=2||a.level<2?4:0),p(a,255&a.gzhead.os),a.gzhead.extra&&a.gzhead.extra.length&&(p(a,255&a.gzhead.extra.length),p(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(e.adler=s(e.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=69):(p(a,0),p(a,0),p(a,0),p(a,0),p(a,0),p(a,9===a.level?2:a.strategy>=2||a.level<2?4:0),p(a,3),a.status=113);else{var g=8+(a.w_bits-8<<4)<<8;g|=(a.strategy>=2||a.level<2?0:a.level<6?1:6===a.level?2:3)<<6,0!==a.strstart&&(g|=32),g+=31-g%31,a.status=113,m(a,g),0!==a.strstart&&(m(a,e.adler>>>16),m(a,65535&e.adler)),e.adler=1}if(69===a.status)if(a.gzhead.extra){for(o=a.pending;a.gzindex<(65535&a.gzhead.extra.length)&&(a.pending!==a.pending_buf_size||(a.gzhead.hcrc&&a.pending>o&&(e.adler=s(e.adler,a.pending_buf,a.pending-o,o)),f(e),o=a.pending,a.pending!==a.pending_buf_size));)p(a,255&a.gzhead.extra[a.gzindex]),a.gzindex++;a.gzhead.hcrc&&a.pending>o&&(e.adler=s(e.adler,a.pending_buf,a.pending-o,o)),a.gzindex===a.gzhead.extra.length&&(a.gzindex=0,a.status=73)}else a.status=73;if(73===a.status)if(a.gzhead.name){o=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>o&&(e.adler=s(e.adler,a.pending_buf,a.pending-o,o)),f(e),o=a.pending,a.pending===a.pending_buf_size)){l=1;break}l=a.gzindex<a.gzhead.name.length?255&a.gzhead.name.charCodeAt(a.gzindex++):0,p(a,l)}while(0!==l);a.gzhead.hcrc&&a.pending>o&&(e.adler=s(e.adler,a.pending_buf,a.pending-o,o)),0===l&&(a.gzindex=0,a.status=91)}else a.status=91;if(91===a.status)if(a.gzhead.comment){o=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>o&&(e.adler=s(e.adler,a.pending_buf,a.pending-o,o)),f(e),o=a.pending,a.pending===a.pending_buf_size)){l=1;break}l=a.gzindex<a.gzhead.comment.length?255&a.gzhead.comment.charCodeAt(a.gzindex++):0,p(a,l)}while(0!==l);a.gzhead.hcrc&&a.pending>o&&(e.adler=s(e.adler,a.pending_buf,a.pending-o,o)),0===l&&(a.status=103)}else a.status=103;if(103===a.status&&(a.gzhead.hcrc?(a.pending+2>a.pending_buf_size&&f(e),a.pending+2<=a.pending_buf_size&&(p(a,255&e.adler),p(a,e.adler>>8&255),e.adler=0,a.status=113)):a.status=113),0!==a.pending){if(f(e),0===e.avail_out)return a.last_flush=-1,0}else if(0===e.avail_in&&u(t)<=u(i)&&4!==t)return c(e,-5);if(666===a.status&&0!==e.avail_in)return c(e,-5);if(0!==e.avail_in||0!==a.lookahead||0!==t&&666!==a.status){var b=2===a.strategy?function(e,t){for(var i;;){if(0===e.lookahead&&(v(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,i=r._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,i&&(h(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(h(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(h(e,!1),0===e.strm.avail_out)?1:2}(a,t):3===a.strategy?function(e,t){for(var i,n,a,o,s=e.window;;){if(e.lookahead<=258){if(v(e),e.lookahead<=258&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(n=s[a=e.strstart-1])===s[++a]&&n===s[++a]&&n===s[++a]){o=e.strstart+258;do{}while(n===s[++a]&&n===s[++a]&&n===s[++a]&&n===s[++a]&&n===s[++a]&&n===s[++a]&&n===s[++a]&&n===s[++a]&&a<o);e.match_length=258-(o-a),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(i=r._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(i=r._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),i&&(h(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(h(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(h(e,!1),0===e.strm.avail_out)?1:2}(a,t):n[a.level].func(a,t);if(3!==b&&4!==b||(a.status=666),1===b||3===b)return 0===e.avail_out&&(a.last_flush=-1),0;if(2===b&&(1===t?r._tr_align(a):5!==t&&(r._tr_stored_block(a,0,0,!1),3===t&&(d(a.head),0===a.lookahead&&(a.strstart=0,a.block_start=0,a.insert=0))),f(e),0===e.avail_out))return a.last_flush=-1,0}return 4!==t?0:a.wrap<=0?1:(2===a.wrap?(p(a,255&e.adler),p(a,e.adler>>8&255),p(a,e.adler>>16&255),p(a,e.adler>>24&255),p(a,255&e.total_in),p(a,e.total_in>>8&255),p(a,e.total_in>>16&255),p(a,e.total_in>>24&255)):(m(a,e.adler>>>16),m(a,65535&e.adler)),f(e),a.wrap>0&&(a.wrap=-a.wrap),0!==a.pending?0:1)},i.deflateEnd=function(e){var t;return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&103!==t&&113!==t&&666!==t?c(e,-2):(e.state=null,113===t?c(e,-3):0):-2},i.deflateSetDictionary=function(e,t){var i,n,r,s,l,c,u,f,h=t.length;if(!e||!e.state)return-2;if(2===(s=(i=e.state).wrap)||1===s&&42!==i.status||i.lookahead)return-2;for(1===s&&(e.adler=o(e.adler,t,h,0)),i.wrap=0,h>=i.w_size&&(0===s&&(d(i.head),i.strstart=0,i.block_start=0,i.insert=0),f=new a.Buf8(i.w_size),a.arraySet(f,t,h-i.w_size,i.w_size,0),t=f,h=i.w_size),l=e.avail_in,c=e.next_in,u=e.input,e.avail_in=h,e.next_in=0,e.input=t,v(i);i.lookahead>=3;){n=i.strstart,r=i.lookahead-2;do{i.ins_h=(i.ins_h<<i.hash_shift^i.window[n+3-1])&i.hash_mask,i.prev[n&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=n,n++}while(--r);i.strstart=n,i.lookahead=2,v(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=2,i.match_available=0,e.next_in=c,e.input=u,e.avail_in=l,i.wrap=s,0},i.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":442,"./adler32":444,"./crc32":446,"./messages":452,"./trees":453}],448:[function(e,t,i){"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],449:[function(e,t,i){"use strict";t.exports=function(e,t){var i,n,a,r,o,s,l,c,u,d,f,h,p,m,g,v,b,y,w,_,I,x,S,T,C;i=e.state,n=e.next_in,T=e.input,a=n+(e.avail_in-5),r=e.next_out,C=e.output,o=r-(t-e.avail_out),s=r+(e.avail_out-257),l=i.dmax,c=i.wsize,u=i.whave,d=i.wnext,f=i.window,h=i.hold,p=i.bits,m=i.lencode,g=i.distcode,v=(1<<i.lenbits)-1,b=(1<<i.distbits)-1;e:do{p<15&&(h+=T[n++]<<p,p+=8,h+=T[n++]<<p,p+=8),y=m[h&v];t:for(;;){if(h>>>=w=y>>>24,p-=w,0===(w=y>>>16&255))C[r++]=65535&y;else{if(!(16&w)){if(0==(64&w)){y=m[(65535&y)+(h&(1<<w)-1)];continue t}if(32&w){i.mode=12;break e}e.msg="invalid literal/length code",i.mode=30;break e}_=65535&y,(w&=15)&&(p<w&&(h+=T[n++]<<p,p+=8),_+=h&(1<<w)-1,h>>>=w,p-=w),p<15&&(h+=T[n++]<<p,p+=8,h+=T[n++]<<p,p+=8),y=g[h&b];i:for(;;){if(h>>>=w=y>>>24,p-=w,!(16&(w=y>>>16&255))){if(0==(64&w)){y=g[(65535&y)+(h&(1<<w)-1)];continue i}e.msg="invalid distance code",i.mode=30;break e}if(I=65535&y,p<(w&=15)&&(h+=T[n++]<<p,(p+=8)<w&&(h+=T[n++]<<p,p+=8)),(I+=h&(1<<w)-1)>l){e.msg="invalid distance too far back",i.mode=30;break e}if(h>>>=w,p-=w,I>(w=r-o)){if((w=I-w)>u&&i.sane){e.msg="invalid distance too far back",i.mode=30;break e}if(x=0,S=f,0===d){if(x+=c-w,w<_){_-=w;do{C[r++]=f[x++]}while(--w);x=r-I,S=C}}else if(d<w){if(x+=c+d-w,(w-=d)<_){_-=w;do{C[r++]=f[x++]}while(--w);if(x=0,d<_){_-=w=d;do{C[r++]=f[x++]}while(--w);x=r-I,S=C}}}else if(x+=d-w,w<_){_-=w;do{C[r++]=f[x++]}while(--w);x=r-I,S=C}for(;_>2;)C[r++]=S[x++],C[r++]=S[x++],C[r++]=S[x++],_-=3;_&&(C[r++]=S[x++],_>1&&(C[r++]=S[x++]))}else{x=r-I;do{C[r++]=C[x++],C[r++]=C[x++],C[r++]=C[x++],_-=3}while(_>2);_&&(C[r++]=C[x++],_>1&&(C[r++]=C[x++]))}break}}break}}while(n<a&&r<s);n-=_=p>>3,h&=(1<<(p-=_<<3))-1,e.next_in=n,e.next_out=r,e.avail_in=n<a?a-n+5:5-(n-a),e.avail_out=r<s?s-r+257:257-(r-s),i.hold=h,i.bits=p}},{}],450:[function(e,t,i){"use strict";var n=e("../utils/common"),a=e("./adler32"),r=e("./crc32"),o=e("./inffast"),s=e("./inftrees");function l(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function c(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function u(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new n.Buf32(852),t.distcode=t.distdyn=new n.Buf32(592),t.sane=1,t.back=-1,0):-2}function d(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,u(e)):-2}function f(e,t){var i,n;return e&&e.state?(n=e.state,t<0?(i=0,t=-t):(i=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?-2:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=i,n.wbits=t,d(e))):-2}function h(e,t){var i,n;return e?(n=new c,e.state=n,n.window=null,0!==(i=f(e,t))&&(e.state=null),i):-2}var p,m,g=!0;function v(e){if(g){var t;for(p=new n.Buf32(512),m=new n.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(1,e.lens,0,288,p,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(2,e.lens,0,32,m,0,e.work,{bits:5}),g=!1}e.lencode=p,e.lenbits=9,e.distcode=m,e.distbits=5}function b(e,t,i,a){var r,o=e.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new n.Buf8(o.wsize)),a>=o.wsize?(n.arraySet(o.window,t,i-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):((r=o.wsize-o.wnext)>a&&(r=a),n.arraySet(o.window,t,i-a,r,o.wnext),(a-=r)?(n.arraySet(o.window,t,i-a,a,0),o.wnext=a,o.whave=o.wsize):(o.wnext+=r,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=r))),0}i.inflateReset=d,i.inflateReset2=f,i.inflateResetKeep=u,i.inflateInit=function(e){return h(e,15)},i.inflateInit2=h,i.inflate=function(e,t){var i,c,u,d,f,h,p,m,g,y,w,_,I,x,S,T,C,k,R,D,L,O,$,N,A=0,P=new n.Buf8(4),E=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return-2;12===(i=e.state).mode&&(i.mode=13),f=e.next_out,u=e.output,p=e.avail_out,d=e.next_in,c=e.input,h=e.avail_in,m=i.hold,g=i.bits,y=h,w=p,O=0;e:for(;;)switch(i.mode){case 1:if(0===i.wrap){i.mode=13;break}for(;g<16;){if(0===h)break e;h--,m+=c[d++]<<g,g+=8}if(2&i.wrap&&35615===m){i.check=0,P[0]=255&m,P[1]=m>>>8&255,i.check=r(i.check,P,2,0),m=0,g=0,i.mode=2;break}if(i.flags=0,i.head&&(i.head.done=!1),!(1&i.wrap)||(((255&m)<<8)+(m>>8))%31){e.msg="incorrect header check",i.mode=30;break}if(8!=(15&m)){e.msg="unknown compression method",i.mode=30;break}if(g-=4,L=8+(15&(m>>>=4)),0===i.wbits)i.wbits=L;else if(L>i.wbits){e.msg="invalid window size",i.mode=30;break}i.dmax=1<<L,e.adler=i.check=1,i.mode=512&m?10:12,m=0,g=0;break;case 2:for(;g<16;){if(0===h)break e;h--,m+=c[d++]<<g,g+=8}if(i.flags=m,8!=(255&i.flags)){e.msg="unknown compression method",i.mode=30;break}if(57344&i.flags){e.msg="unknown header flags set",i.mode=30;break}i.head&&(i.head.text=m>>8&1),512&i.flags&&(P[0]=255&m,P[1]=m>>>8&255,i.check=r(i.check,P,2,0)),m=0,g=0,i.mode=3;case 3:for(;g<32;){if(0===h)break e;h--,m+=c[d++]<<g,g+=8}i.head&&(i.head.time=m),512&i.flags&&(P[0]=255&m,P[1]=m>>>8&255,P[2]=m>>>16&255,P[3]=m>>>24&255,i.check=r(i.check,P,4,0)),m=0,g=0,i.mode=4;case 4:for(;g<16;){if(0===h)break e;h--,m+=c[d++]<<g,g+=8}i.head&&(i.head.xflags=255&m,i.head.os=m>>8),512&i.flags&&(P[0]=255&m,P[1]=m>>>8&255,i.check=r(i.check,P,2,0)),m=0,g=0,i.mode=5;case 5:if(1024&i.flags){for(;g<16;){if(0===h)break e;h--,m+=c[d++]<<g,g+=8}i.length=m,i.head&&(i.head.extra_len=m),512&i.flags&&(P[0]=255&m,P[1]=m>>>8&255,i.check=r(i.check,P,2,0)),m=0,g=0}else i.head&&(i.head.extra=null);i.mode=6;case 6:if(1024&i.flags&&((_=i.length)>h&&(_=h),_&&(i.head&&(L=i.head.extra_len-i.length,i.head.extra||(i.head.extra=new Array(i.head.extra_len)),n.arraySet(i.head.extra,c,d,_,L)),512&i.flags&&(i.check=r(i.check,c,_,d)),h-=_,d+=_,i.length-=_),i.length))break e;i.length=0,i.mode=7;case 7:if(2048&i.flags){if(0===h)break e;_=0;do{L=c[d+_++],i.head&&L&&i.length<65536&&(i.head.name+=String.fromCharCode(L))}while(L&&_<h);if(512&i.flags&&(i.check=r(i.check,c,_,d)),h-=_,d+=_,L)break e}else i.head&&(i.head.name=null);i.length=0,i.mode=8;case 8:if(4096&i.flags){if(0===h)break e;_=0;do{L=c[d+_++],i.head&&L&&i.length<65536&&(i.head.comment+=String.fromCharCode(L))}while(L&&_<h);if(512&i.flags&&(i.check=r(i.check,c,_,d)),h-=_,d+=_,L)break e}else i.head&&(i.head.comment=null);i.mode=9;case 9:if(512&i.flags){for(;g<16;){if(0===h)break e;h--,m+=c[d++]<<g,g+=8}if(m!==(65535&i.check)){e.msg="header crc mismatch",i.mode=30;break}m=0,g=0}i.head&&(i.head.hcrc=i.flags>>9&1,i.head.done=!0),e.adler=i.check=0,i.mode=12;break;case 10:for(;g<32;){if(0===h)break e;h--,m+=c[d++]<<g,g+=8}e.adler=i.check=l(m),m=0,g=0,i.mode=11;case 11:if(0===i.havedict)return e.next_out=f,e.avail_out=p,e.next_in=d,e.avail_in=h,i.hold=m,i.bits=g,2;e.adler=i.check=1,i.mode=12;case 12:if(5===t||6===t)break e;case 13:if(i.last){m>>>=7&g,g-=7&g,i.mode=27;break}for(;g<3;){if(0===h)break e;h--,m+=c[d++]<<g,g+=8}switch(i.last=1&m,g-=1,3&(m>>>=1)){case 0:i.mode=14;break;case 1:if(v(i),i.mode=20,6===t){m>>>=2,g-=2;break e}break;case 2:i.mode=17;break;case 3:e.msg="invalid block type",i.mode=30}m>>>=2,g-=2;break;case 14:for(m>>>=7&g,g-=7&g;g<32;){if(0===h)break e;h--,m+=c[d++]<<g,g+=8}if((65535&m)!=(m>>>16^65535)){e.msg="invalid stored block lengths",i.mode=30;break}if(i.length=65535&m,m=0,g=0,i.mode=15,6===t)break e;case 15:i.mode=16;case 16:if(_=i.length){if(_>h&&(_=h),_>p&&(_=p),0===_)break e;n.arraySet(u,c,d,_,f),h-=_,d+=_,p-=_,f+=_,i.length-=_;break}i.mode=12;break;case 17:for(;g<14;){if(0===h)break e;h--,m+=c[d++]<<g,g+=8}if(i.nlen=257+(31&m),m>>>=5,g-=5,i.ndist=1+(31&m),m>>>=5,g-=5,i.ncode=4+(15&m),m>>>=4,g-=4,i.nlen>286||i.ndist>30){e.msg="too many length or distance symbols",i.mode=30;break}i.have=0,i.mode=18;case 18:for(;i.have<i.ncode;){for(;g<3;){if(0===h)break e;h--,m+=c[d++]<<g,g+=8}i.lens[E[i.have++]]=7&m,m>>>=3,g-=3}for(;i.have<19;)i.lens[E[i.have++]]=0;if(i.lencode=i.lendyn,i.lenbits=7,$={bits:i.lenbits},O=s(0,i.lens,0,19,i.lencode,0,i.work,$),i.lenbits=$.bits,O){e.msg="invalid code lengths set",i.mode=30;break}i.have=0,i.mode=19;case 19:for(;i.have<i.nlen+i.ndist;){for(;T=(A=i.lencode[m&(1<<i.lenbits)-1])>>>16&255,C=65535&A,!((S=A>>>24)<=g);){if(0===h)break e;h--,m+=c[d++]<<g,g+=8}if(C<16)m>>>=S,g-=S,i.lens[i.have++]=C;else{if(16===C){for(N=S+2;g<N;){if(0===h)break e;h--,m+=c[d++]<<g,g+=8}if(m>>>=S,g-=S,0===i.have){e.msg="invalid bit length repeat",i.mode=30;break}L=i.lens[i.have-1],_=3+(3&m),m>>>=2,g-=2}else if(17===C){for(N=S+3;g<N;){if(0===h)break e;h--,m+=c[d++]<<g,g+=8}g-=S,L=0,_=3+(7&(m>>>=S)),m>>>=3,g-=3}else{for(N=S+7;g<N;){if(0===h)break e;h--,m+=c[d++]<<g,g+=8}g-=S,L=0,_=11+(127&(m>>>=S)),m>>>=7,g-=7}if(i.have+_>i.nlen+i.ndist){e.msg="invalid bit length repeat",i.mode=30;break}for(;_--;)i.lens[i.have++]=L}}if(30===i.mode)break;if(0===i.lens[256]){e.msg="invalid code -- missing end-of-block",i.mode=30;break}if(i.lenbits=9,$={bits:i.lenbits},O=s(1,i.lens,0,i.nlen,i.lencode,0,i.work,$),i.lenbits=$.bits,O){e.msg="invalid literal/lengths set",i.mode=30;break}if(i.distbits=6,i.distcode=i.distdyn,$={bits:i.distbits},O=s(2,i.lens,i.nlen,i.ndist,i.distcode,0,i.work,$),i.distbits=$.bits,O){e.msg="invalid distances set",i.mode=30;break}if(i.mode=20,6===t)break e;case 20:i.mode=21;case 21:if(h>=6&&p>=258){e.next_out=f,e.avail_out=p,e.next_in=d,e.avail_in=h,i.hold=m,i.bits=g,o(e,w),f=e.next_out,u=e.output,p=e.avail_out,d=e.next_in,c=e.input,h=e.avail_in,m=i.hold,g=i.bits,12===i.mode&&(i.back=-1);break}for(i.back=0;T=(A=i.lencode[m&(1<<i.lenbits)-1])>>>16&255,C=65535&A,!((S=A>>>24)<=g);){if(0===h)break e;h--,m+=c[d++]<<g,g+=8}if(T&&0==(240&T)){for(k=S,R=T,D=C;T=(A=i.lencode[D+((m&(1<<k+R)-1)>>k)])>>>16&255,C=65535&A,!(k+(S=A>>>24)<=g);){if(0===h)break e;h--,m+=c[d++]<<g,g+=8}m>>>=k,g-=k,i.back+=k}if(m>>>=S,g-=S,i.back+=S,i.length=C,0===T){i.mode=26;break}if(32&T){i.back=-1,i.mode=12;break}if(64&T){e.msg="invalid literal/length code",i.mode=30;break}i.extra=15&T,i.mode=22;case 22:if(i.extra){for(N=i.extra;g<N;){if(0===h)break e;h--,m+=c[d++]<<g,g+=8}i.length+=m&(1<<i.extra)-1,m>>>=i.extra,g-=i.extra,i.back+=i.extra}i.was=i.length,i.mode=23;case 23:for(;T=(A=i.distcode[m&(1<<i.distbits)-1])>>>16&255,C=65535&A,!((S=A>>>24)<=g);){if(0===h)break e;h--,m+=c[d++]<<g,g+=8}if(0==(240&T)){for(k=S,R=T,D=C;T=(A=i.distcode[D+((m&(1<<k+R)-1)>>k)])>>>16&255,C=65535&A,!(k+(S=A>>>24)<=g);){if(0===h)break e;h--,m+=c[d++]<<g,g+=8}m>>>=k,g-=k,i.back+=k}if(m>>>=S,g-=S,i.back+=S,64&T){e.msg="invalid distance code",i.mode=30;break}i.offset=C,i.extra=15&T,i.mode=24;case 24:if(i.extra){for(N=i.extra;g<N;){if(0===h)break e;h--,m+=c[d++]<<g,g+=8}i.offset+=m&(1<<i.extra)-1,m>>>=i.extra,g-=i.extra,i.back+=i.extra}if(i.offset>i.dmax){e.msg="invalid distance too far back",i.mode=30;break}i.mode=25;case 25:if(0===p)break e;if(_=w-p,i.offset>_){if((_=i.offset-_)>i.whave&&i.sane){e.msg="invalid distance too far back",i.mode=30;break}_>i.wnext?(_-=i.wnext,I=i.wsize-_):I=i.wnext-_,_>i.length&&(_=i.length),x=i.window}else x=u,I=f-i.offset,_=i.length;_>p&&(_=p),p-=_,i.length-=_;do{u[f++]=x[I++]}while(--_);0===i.length&&(i.mode=21);break;case 26:if(0===p)break e;u[f++]=i.length,p--,i.mode=21;break;case 27:if(i.wrap){for(;g<32;){if(0===h)break e;h--,m|=c[d++]<<g,g+=8}if(w-=p,e.total_out+=w,i.total+=w,w&&(e.adler=i.check=i.flags?r(i.check,u,w,f-w):a(i.check,u,w,f-w)),w=p,(i.flags?m:l(m))!==i.check){e.msg="incorrect data check",i.mode=30;break}m=0,g=0}i.mode=28;case 28:if(i.wrap&&i.flags){for(;g<32;){if(0===h)break e;h--,m+=c[d++]<<g,g+=8}if(m!==(4294967295&i.total)){e.msg="incorrect length check",i.mode=30;break}m=0,g=0}i.mode=29;case 29:O=1;break e;case 30:O=-3;break e;case 31:return-4;case 32:default:return-2}return e.next_out=f,e.avail_out=p,e.next_in=d,e.avail_in=h,i.hold=m,i.bits=g,(i.wsize||w!==e.avail_out&&i.mode<30&&(i.mode<27||4!==t))&&b(e,e.output,e.next_out,w-e.avail_out)?(i.mode=31,-4):(y-=e.avail_in,w-=e.avail_out,e.total_in+=y,e.total_out+=w,i.total+=w,i.wrap&&w&&(e.adler=i.check=i.flags?r(i.check,u,w,e.next_out-w):a(i.check,u,w,e.next_out-w)),e.data_type=i.bits+(i.last?64:0)+(12===i.mode?128:0)+(20===i.mode||15===i.mode?256:0),(0===y&&0===w||4===t)&&0===O&&(O=-5),O)},i.inflateEnd=function(e){if(!e||!e.state)return-2;var t=e.state;return t.window&&(t.window=null),e.state=null,0},i.inflateGetHeader=function(e,t){var i;return e&&e.state?0==(2&(i=e.state).wrap)?-2:(i.head=t,t.done=!1,0):-2},i.inflateSetDictionary=function(e,t){var i,n=t.length;return e&&e.state?0!==(i=e.state).wrap&&11!==i.mode?-2:11===i.mode&&a(1,t,n,0)!==i.check?-3:b(e,t,n,n)?(i.mode=31,-4):(i.havedict=1,0):-2},i.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":442,"./adler32":444,"./crc32":446,"./inffast":449,"./inftrees":451}],451:[function(e,t,i){"use strict";var n=e("../utils/common"),a=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],r=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],o=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,i,l,c,u,d,f){var h,p,m,g,v,b,y,w,_,I=f.bits,x=0,S=0,T=0,C=0,k=0,R=0,D=0,L=0,O=0,$=0,N=null,A=0,P=new n.Buf16(16),E=new n.Buf16(16),M=null,F=0;for(x=0;x<=15;x++)P[x]=0;for(S=0;S<l;S++)P[t[i+S]]++;for(k=I,C=15;C>=1&&0===P[C];C--);if(k>C&&(k=C),0===C)return c[u++]=20971520,c[u++]=20971520,f.bits=1,0;for(T=1;T<C&&0===P[T];T++);for(k<T&&(k=T),L=1,x=1;x<=15;x++)if(L<<=1,(L-=P[x])<0)return-1;if(L>0&&(0===e||1!==C))return-1;for(E[1]=0,x=1;x<15;x++)E[x+1]=E[x]+P[x];for(S=0;S<l;S++)0!==t[i+S]&&(d[E[t[i+S]]++]=S);if(0===e?(N=M=d,b=19):1===e?(N=a,A-=257,M=r,F-=257,b=256):(N=o,M=s,b=-1),$=0,S=0,x=T,v=u,R=k,D=0,m=-1,g=(O=1<<k)-1,1===e&&O>852||2===e&&O>592)return 1;for(;;){y=x-D,d[S]<b?(w=0,_=d[S]):d[S]>b?(w=M[F+d[S]],_=N[A+d[S]]):(w=96,_=0),h=1<<x-D,T=p=1<<R;do{c[v+($>>D)+(p-=h)]=y<<24|w<<16|_|0}while(0!==p);for(h=1<<x-1;$&h;)h>>=1;if(0!==h?($&=h-1,$+=h):$=0,S++,0==--P[x]){if(x===C)break;x=t[i+d[S]]}if(x>k&&($&g)!==m){for(0===D&&(D=k),v+=T,L=1<<(R=x-D);R+D<C&&!((L-=P[R+D])<=0);)R++,L<<=1;if(O+=1<<R,1===e&&O>852||2===e&&O>592)return 1;c[m=$&g]=k<<24|R<<16|v-u|0}}return 0!==$&&(c[v+$]=x-D<<24|64<<16|0),f.bits=k,0}},{"../utils/common":442}],452:[function(e,t,i){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],453:[function(e,t,i){"use strict";var n=e("../utils/common");function a(e){for(var t=e.length;--t>=0;)e[t]=0}var r=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],o=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],l=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],c=new Array(576);a(c);var u=new Array(60);a(u);var d=new Array(512);a(d);var f=new Array(256);a(f);var h=new Array(29);a(h);var p,m,g,v=new Array(30);function b(e,t,i,n,a){this.static_tree=e,this.extra_bits=t,this.extra_base=i,this.elems=n,this.max_length=a,this.has_stree=e&&e.length}function y(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function w(e){return e<256?d[e]:d[256+(e>>>7)]}function _(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function I(e,t,i){e.bi_valid>16-i?(e.bi_buf|=t<<e.bi_valid&65535,_(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=i-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=i)}function x(e,t,i){I(e,i[2*t],i[2*t+1])}function S(e,t){var i=0;do{i|=1&e,e>>>=1,i<<=1}while(--t>0);return i>>>1}function T(e,t,i){var n,a,r=new Array(16),o=0;for(n=1;n<=15;n++)r[n]=o=o+i[n-1]<<1;for(a=0;a<=t;a++){var s=e[2*a+1];0!==s&&(e[2*a]=S(r[s]++,s))}}function C(e){var t;for(t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function k(e){e.bi_valid>8?_(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function R(e,t,i,n){var a=2*t,r=2*i;return e[a]<e[r]||e[a]===e[r]&&n[t]<=n[i]}function D(e,t,i){for(var n=e.heap[i],a=i<<1;a<=e.heap_len&&(a<e.heap_len&&R(t,e.heap[a+1],e.heap[a],e.depth)&&a++,!R(t,n,e.heap[a],e.depth));)e.heap[i]=e.heap[a],i=a,a<<=1;e.heap[i]=n}function L(e,t,i){var n,a,s,l,c=0;if(0!==e.last_lit)do{n=e.pending_buf[e.d_buf+2*c]<<8|e.pending_buf[e.d_buf+2*c+1],a=e.pending_buf[e.l_buf+c],c++,0===n?x(e,a,t):(x(e,(s=f[a])+256+1,t),0!==(l=r[s])&&I(e,a-=h[s],l),x(e,s=w(--n),i),0!==(l=o[s])&&I(e,n-=v[s],l))}while(c<e.last_lit);x(e,256,t)}function O(e,t){var i,n,a,r=t.dyn_tree,o=t.stat_desc.static_tree,s=t.stat_desc.has_stree,l=t.stat_desc.elems,c=-1;for(e.heap_len=0,e.heap_max=573,i=0;i<l;i++)0!==r[2*i]?(e.heap[++e.heap_len]=c=i,e.depth[i]=0):r[2*i+1]=0;for(;e.heap_len<2;)r[2*(a=e.heap[++e.heap_len]=c<2?++c:0)]=1,e.depth[a]=0,e.opt_len--,s&&(e.static_len-=o[2*a+1]);for(t.max_code=c,i=e.heap_len>>1;i>=1;i--)D(e,r,i);a=l;do{i=e.heap[1],e.heap[1]=e.heap[e.heap_len--],D(e,r,1),n=e.heap[1],e.heap[--e.heap_max]=i,e.heap[--e.heap_max]=n,r[2*a]=r[2*i]+r[2*n],e.depth[a]=(e.depth[i]>=e.depth[n]?e.depth[i]:e.depth[n])+1,r[2*i+1]=r[2*n+1]=a,e.heap[1]=a++,D(e,r,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var i,n,a,r,o,s,l=t.dyn_tree,c=t.max_code,u=t.stat_desc.static_tree,d=t.stat_desc.has_stree,f=t.stat_desc.extra_bits,h=t.stat_desc.extra_base,p=t.stat_desc.max_length,m=0;for(r=0;r<=15;r++)e.bl_count[r]=0;for(l[2*e.heap[e.heap_max]+1]=0,i=e.heap_max+1;i<573;i++)(r=l[2*l[2*(n=e.heap[i])+1]+1]+1)>p&&(r=p,m++),l[2*n+1]=r,n>c||(e.bl_count[r]++,o=0,n>=h&&(o=f[n-h]),s=l[2*n],e.opt_len+=s*(r+o),d&&(e.static_len+=s*(u[2*n+1]+o)));if(0!==m){do{for(r=p-1;0===e.bl_count[r];)r--;e.bl_count[r]--,e.bl_count[r+1]+=2,e.bl_count[p]--,m-=2}while(m>0);for(r=p;0!==r;r--)for(n=e.bl_count[r];0!==n;)(a=e.heap[--i])>c||(l[2*a+1]!==r&&(e.opt_len+=(r-l[2*a+1])*l[2*a],l[2*a+1]=r),n--)}}(e,t),T(r,c,e.bl_count)}function $(e,t,i){var n,a,r=-1,o=t[1],s=0,l=7,c=4;for(0===o&&(l=138,c=3),t[2*(i+1)+1]=65535,n=0;n<=i;n++)a=o,o=t[2*(n+1)+1],++s<l&&a===o||(s<c?e.bl_tree[2*a]+=s:0!==a?(a!==r&&e.bl_tree[2*a]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,s=0,r=a,0===o?(l=138,c=3):a===o?(l=6,c=3):(l=7,c=4))}function N(e,t,i){var n,a,r=-1,o=t[1],s=0,l=7,c=4;for(0===o&&(l=138,c=3),n=0;n<=i;n++)if(a=o,o=t[2*(n+1)+1],!(++s<l&&a===o)){if(s<c)do{x(e,a,e.bl_tree)}while(0!=--s);else 0!==a?(a!==r&&(x(e,a,e.bl_tree),s--),x(e,16,e.bl_tree),I(e,s-3,2)):s<=10?(x(e,17,e.bl_tree),I(e,s-3,3)):(x(e,18,e.bl_tree),I(e,s-11,7));s=0,r=a,0===o?(l=138,c=3):a===o?(l=6,c=3):(l=7,c=4)}}a(v);var A=!1;function P(e,t,i,a){I(e,0+(a?1:0),3),function(e,t,i,a){k(e),a&&(_(e,i),_(e,~i)),n.arraySet(e.pending_buf,e.window,t,i,e.pending),e.pending+=i}(e,t,i,!0)}i._tr_init=function(e){A||(function(){var e,t,i,n,a,l=new Array(16);for(i=0,n=0;n<28;n++)for(h[n]=i,e=0;e<1<<r[n];e++)f[i++]=n;for(f[i-1]=n,a=0,n=0;n<16;n++)for(v[n]=a,e=0;e<1<<o[n];e++)d[a++]=n;for(a>>=7;n<30;n++)for(v[n]=a<<7,e=0;e<1<<o[n]-7;e++)d[256+a++]=n;for(t=0;t<=15;t++)l[t]=0;for(e=0;e<=143;)c[2*e+1]=8,e++,l[8]++;for(;e<=255;)c[2*e+1]=9,e++,l[9]++;for(;e<=279;)c[2*e+1]=7,e++,l[7]++;for(;e<=287;)c[2*e+1]=8,e++,l[8]++;for(T(c,287,l),e=0;e<30;e++)u[2*e+1]=5,u[2*e]=S(e,5);p=new b(c,r,257,286,15),m=new b(u,o,0,30,15),g=new b(new Array(0),s,0,19,7)}(),A=!0),e.l_desc=new y(e.dyn_ltree,p),e.d_desc=new y(e.dyn_dtree,m),e.bl_desc=new y(e.bl_tree,g),e.bi_buf=0,e.bi_valid=0,C(e)},i._tr_stored_block=P,i._tr_flush_block=function(e,t,i,n){var a,r,o=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,i=4093624447;for(t=0;t<=31;t++,i>>>=1)if(1&i&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<256;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),O(e,e.l_desc),O(e,e.d_desc),o=function(e){var t;for($(e,e.dyn_ltree,e.l_desc.max_code),$(e,e.dyn_dtree,e.d_desc.max_code),O(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*l[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),a=e.opt_len+3+7>>>3,(r=e.static_len+3+7>>>3)<=a&&(a=r)):a=r=i+5,i+4<=a&&-1!==t?P(e,t,i,n):4===e.strategy||r===a?(I(e,2+(n?1:0),3),L(e,c,u)):(I(e,4+(n?1:0),3),function(e,t,i,n){var a;for(I(e,t-257,5),I(e,i-1,5),I(e,n-4,4),a=0;a<n;a++)I(e,e.bl_tree[2*l[a]+1],3);N(e,e.dyn_ltree,t-1),N(e,e.dyn_dtree,i-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),L(e,e.dyn_ltree,e.dyn_dtree)),C(e),n&&k(e)},i._tr_tally=function(e,t,i){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&i,e.last_lit++,0===t?e.dyn_ltree[2*i]++:(e.matches++,t--,e.dyn_ltree[2*(f[i]+256+1)]++,e.dyn_dtree[2*w(t)]++),e.last_lit===e.lit_bufsize-1},i._tr_align=function(e){I(e,2,3),x(e,256,c),function(e){16===e.bi_valid?(_(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},{"../utils/common":442}],454:[function(e,t,i){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],455:[function(e,t,i){t.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}},{}],456:[function(e,t,i){"use strict";var n=e("asn1.js");i.certificate=e("./certificate");var a=n.define("RSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}));i.RSAPrivateKey=a;var r=n.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));i.RSAPublicKey=r;var o=n.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())}));i.PublicKey=o;var s=n.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())})),l=n.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(s),this.key("subjectPrivateKey").octstr())}));i.PrivateKey=l;var c=n.define("EncryptedPrivateKeyInfo",(function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}));i.EncryptedPrivateKey=c;var u=n.define("DSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}));i.DSAPrivateKey=u,i.DSAparam=n.define("DSAparam",(function(){this.int()}));var d=n.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(f),this.key("publicKey").optional().explicit(1).bitstr())}));i.ECPrivateKey=d;var f=n.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})}));i.signature=n.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))},{"./certificate":457,"asn1.js":167}],457:[function(e,t,i){"use strict";var n=e("asn1.js"),a=n.define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),r=n.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),o=n.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),s=n.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(o),this.key("subjectPublicKey").bitstr())})),l=n.define("RelativeDistinguishedName",(function(){this.setof(r)})),c=n.define("RDNSequence",(function(){this.seqof(l)})),u=n.define("Name",(function(){this.choice({rdnSequence:this.use(c)})})),d=n.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(a),this.key("notAfter").use(a))})),f=n.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),h=n.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(o),this.key("issuer").use(u),this.key("validity").use(d),this.key("subject").use(u),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(f).optional())})),p=n.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(h),this.key("signatureAlgorithm").use(o),this.key("signatureValue").bitstr())}));t.exports=p},{"asn1.js":167}],458:[function(e,t,i){"use strict";var n=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,a=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,r=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,o=e("evp_bytestokey"),s=e("browserify-aes"),l=e("safe-buffer").Buffer;t.exports=function(e,t){var i,c=e.toString(),u=c.match(n);if(u){var d="aes"+u[1],f=l.from(u[2],"hex"),h=l.from(u[3].replace(/[\r\n]/g,""),"base64"),p=o(t,f.slice(0,8),parseInt(u[1],10)).key,m=[],g=s.createDecipheriv(d,p,f);m.push(g.update(h)),m.push(g.final()),i=l.concat(m)}else{var v=c.match(r);i=l.from(v[2].replace(/[\r\n]/g,""),"base64")}return{tag:c.match(a)[1],data:i}}},{"browserify-aes":188,evp_bytestokey:368,"safe-buffer":494}],459:[function(e,t,i){"use strict";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)}var a=e("./asn1"),r=e("./aesid.json"),o=e("./fixProc"),s=e("browserify-aes"),l=e("pbkdf2"),c=e("safe-buffer").Buffer;function u(e){var t;"object"!==n(e)||c.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=c.from(e));var i,u,d=o(e,t),f=d.tag,h=d.data;switch(f){case"CERTIFICATE":u=a.certificate.decode(h,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(u||(u=a.PublicKey.decode(h,"der")),i=u.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return a.RSAPublicKey.decode(u.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return u.subjectPrivateKey=u.subjectPublicKey,{type:"ec",data:u};case"1.2.840.10040.4.1":return u.algorithm.params.pub_key=a.DSAparam.decode(u.subjectPublicKey.data,"der"),{type:"dsa",data:u.algorithm.params};default:throw new Error("unknown key id "+i)}case"ENCRYPTED PRIVATE KEY":h=function(e,t){var i=e.algorithm.decrypt.kde.kdeparams.salt,n=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),a=r[e.algorithm.decrypt.cipher.algo.join(".")],o=e.algorithm.decrypt.cipher.iv,u=e.subjectPrivateKey,d=parseInt(a.split("-")[1],10)/8,f=l.pbkdf2Sync(t,i,n,d,"sha1"),h=s.createDecipheriv(a,f,o),p=[];return p.push(h.update(u)),p.push(h.final()),c.concat(p)}(h=a.EncryptedPrivateKey.decode(h,"der"),t);case"PRIVATE KEY":switch(i=(u=a.PrivateKey.decode(h,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return a.RSAPrivateKey.decode(u.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:u.algorithm.curve,privateKey:a.ECPrivateKey.decode(u.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return u.algorithm.params.priv_key=a.DSAparam.decode(u.subjectPrivateKey,"der"),{type:"dsa",params:u.algorithm.params};default:throw new Error("unknown key id "+i)}case"RSA PUBLIC KEY":return a.RSAPublicKey.decode(h,"der");case"RSA PRIVATE KEY":return a.RSAPrivateKey.decode(h,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:a.DSAPrivateKey.decode(h,"der")};case"EC PRIVATE KEY":return{curve:(h=a.ECPrivateKey.decode(h,"der")).parameters.value,privateKey:h.privateKey};default:throw new Error("unknown key type "+f)}}t.exports=u,u.signature=a.signature},{"./aesid.json":455,"./asn1":456,"./fixProc":458,"browserify-aes":188,pbkdf2:460,"safe-buffer":494}],460:[function(e,t,i){"use strict";i.pbkdf2=e("./lib/async"),i.pbkdf2Sync=e("./lib/sync")},{"./lib/async":461,"./lib/sync":464}],461:[function(e,i,n){(function(t,n){"use strict";var a,r=e("safe-buffer").Buffer,o=e("./precondition"),s=e("./default-encoding"),l=e("./sync"),c=e("./to-buffer"),u=n.crypto&&n.crypto.subtle,d={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},f=[];function h(e,t,i,n,a){return u.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then((function(e){return u.deriveBits({name:"PBKDF2",salt:t,iterations:i,hash:{name:a}},e,n<<3)})).then((function(e){return r.from(e)}))}i.exports=function(e,i,p,m,g,v){"function"==typeof g&&(v=g,g=void 0);var b=d[(g=g||"sha1").toLowerCase()];if(!b||"function"!=typeof n.Promise)return t.nextTick((function(){var t;try{t=l(e,i,p,m,g)}catch(e){return v(e)}v(null,t)}));if(o(p,m),e=c(e,s,"Password"),i=c(i,s,"Salt"),"function"!=typeof v)throw new Error("No callback provided to pbkdf2");!function(e,i){e.then((function(e){t.nextTick((function(){i(null,e)}))}),(function(e){t.nextTick((function(){i(e)}))}))}(function(e){if(n.process&&!n.process.browser)return Promise.resolve(!1);if(!u||!u.importKey||!u.deriveBits)return Promise.resolve(!1);if(void 0!==f[e])return f[e];var t=h(a=a||r.alloc(8),a,10,128,e).then((function(){return!0})).catch((function(){return!1}));return f[e]=t,t}(b).then((function(t){return t?h(e,i,p,m,b):l(e,i,p,m,g)})),v)}}).call(this,e("_process"),"undefined"!=typeof t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./default-encoding":462,"./precondition":463,"./sync":464,"./to-buffer":465,_process:467,"safe-buffer":494}],462:[function(e,t,i){(function(e){"use strict";var i;i=e.browser?"utf-8":e.version?parseInt(e.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":"utf-8",t.exports=i}).call(this,e("_process"))},{_process:467}],463:[function(e,t,i){"use strict";var n=Math.pow(2,30)-1;t.exports=function(e,t){if("number"!=typeof e)throw new TypeError("Iterations not a number");if(e<0)throw new TypeError("Bad iterations");if("number"!=typeof t)throw new TypeError("Key length not a number");if(t<0||t>n||t!=t)throw new TypeError("Bad key length")}},{}],464:[function(e,t,i){"use strict";var n=e("create-hash/md5"),a=e("ripemd160"),r=e("sha.js"),o=e("safe-buffer").Buffer,s=e("./precondition"),l=e("./default-encoding"),c=e("./to-buffer"),u=o.alloc(128),d={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function f(e,t,i){var s=function(e){function t(t){return r(e).update(t).digest()}return"rmd160"===e||"ripemd160"===e?function(e){return(new a).update(e).digest()}:"md5"===e?n:t}(e),l="sha512"===e||"sha384"===e?128:64;t.length>l?t=s(t):t.length<l&&(t=o.concat([t,u],l));for(var c=o.allocUnsafe(l+d[e]),f=o.allocUnsafe(l+d[e]),h=0;h<l;h++)c[h]=54^t[h],f[h]=92^t[h];var p=o.allocUnsafe(l+i+4);c.copy(p,0,0,l),this.ipad1=p,this.ipad2=c,this.opad=f,this.alg=e,this.blocksize=l,this.hash=s,this.size=d[e]}f.prototype.run=function(e,t){return e.copy(t,this.blocksize),this.hash(t).copy(this.opad,this.blocksize),this.hash(this.opad)},t.exports=function(e,t,i,n,a){s(i,n);var r=new f(a=a||"sha1",e=c(e,l,"Password"),(t=c(t,l,"Salt")).length),u=o.allocUnsafe(n),h=o.allocUnsafe(t.length+4);t.copy(h,0,0,t.length);for(var p=0,m=d[a],g=Math.ceil(n/m),v=1;v<=g;v++){h.writeUInt32BE(v,t.length);for(var b=r.run(h,r.ipad1),y=b,w=1;w<i;w++){y=r.run(y,r.ipad2);for(var _=0;_<m;_++)b[_]^=y[_]}b.copy(u,p),p+=m}return u}},{"./default-encoding":462,"./precondition":463,"./to-buffer":465,"create-hash/md5":332,ripemd160:493,"safe-buffer":494,"sha.js":499}],465:[function(e,t,i){"use strict";var n=e("safe-buffer").Buffer;t.exports=function(e,t,i){if(n.isBuffer(e))return e;if("string"==typeof e)return n.from(e,t);if(ArrayBuffer.isView(e))return n.from(e.buffer);throw new TypeError(i+" must be a string, a Buffer, a typed array or a DataView")}},{"safe-buffer":494}],466:[function(e,t,i){(function(e){"use strict";void 0===e||!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports={nextTick:function(t,i,n,a){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var r,o,s=arguments.length;switch(s){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick((function(){t.call(null,i)}));case 3:return e.nextTick((function(){t.call(null,i,n)}));case 4:return e.nextTick((function(){t.call(null,i,n,a)}));default:for(r=new Array(s-1),o=0;o<r.length;)r[o++]=arguments[o];return e.nextTick((function(){t.apply(null,r)}))}}}:t.exports=e}).call(this,e("_process"))},{_process:467}],467:[function(e,t,i){"use strict";var n,a,r=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function l(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{a="function"==typeof clearTimeout?clearTimeout:s}catch(e){a=s}}();var c,u=[],d=!1,f=-1;function h(){d&&c&&(d=!1,c.length?u=c.concat(u):f=-1,u.length&&p())}function p(){if(!d){var e=l(h);d=!0;for(var t=u.length;t;){for(c=u,u=[];++f<t;)c&&c[f].run();f=-1,t=u.length}c=null,d=!1,function(e){if(a===clearTimeout)return clearTimeout(e);if((a===s||!a)&&clearTimeout)return a=clearTimeout,clearTimeout(e);try{a(e)}catch(t){try{return a.call(null,e)}catch(t){return a.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function g(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)t[i-1]=arguments[i];u.push(new m(e,t)),1!==u.length||d||l(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=g,r.addListener=g,r.once=g,r.off=g,r.removeListener=g,r.removeAllListeners=g,r.emit=g,r.prependListener=g,r.prependOnceListener=g,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},{}],468:[function(e,t,i){"use strict";i.publicEncrypt=e("./publicEncrypt"),i.privateDecrypt=e("./privateDecrypt"),i.privateEncrypt=function(e,t){return i.publicEncrypt(e,t,!0)},i.publicDecrypt=function(e,t){return i.privateDecrypt(e,t,!0)}},{"./privateDecrypt":471,"./publicEncrypt":472}],469:[function(e,t,i){"use strict";var n=e("create-hash"),a=e("safe-buffer").Buffer;function r(e){var t=a.allocUnsafe(4);return t.writeUInt32BE(e,0),t}t.exports=function(e,t){for(var i,o=a.alloc(0),s=0;o.length<t;)i=r(s++),o=a.concat([o,n("sha1").update(e).update(i).digest()]);return o.slice(0,t)}},{"create-hash":331,"safe-buffer":494}],470:[function(e,t,i){arguments[4][181][0].apply(i,arguments)},{buffer:185,dup:181}],471:[function(e,t,i){"use strict";var n=e("parse-asn1"),a=e("./mgf"),r=e("./xor"),o=e("bn.js"),s=e("browserify-rsa"),l=e("create-hash"),c=e("./withPublic"),u=e("safe-buffer").Buffer;t.exports=function(e,t,i){var d;d=e.padding?e.padding:i?1:4;var f,h=n(e),p=h.modulus.byteLength();if(t.length>p||new o(t).cmp(h.modulus)>=0)throw new Error("decryption error");f=i?c(new o(t),h):s(t,h);var m=u.alloc(p-f.length);if(f=u.concat([m,f],p),4===d)return function(e,t){var i=e.modulus.byteLength(),n=l("sha1").update(u.alloc(0)).digest(),o=n.length;if(0!==t[0])throw new Error("decryption error");var s=t.slice(1,o+1),c=t.slice(o+1),d=r(s,a(c,o)),f=r(c,a(d,i-o-1));if(function(e,t){e=u.from(e),t=u.from(t);var i=0,n=e.length;e.length!==t.length&&(i++,n=Math.min(e.length,t.length));for(var a=-1;++a<n;)i+=e[a]^t[a];return i}(n,f.slice(0,o)))throw new Error("decryption error");for(var h=o;0===f[h];)h++;if(1!==f[h++])throw new Error("decryption error");return f.slice(h)}(h,f);if(1===d)return function(e,t,i){for(var n=t.slice(0,2),a=2,r=0;0!==t[a++];)if(a>=t.length){r++;break}var o=t.slice(2,a-1);if(("0002"!==n.toString("hex")&&!i||"0001"!==n.toString("hex")&&i)&&r++,o.length<8&&r++,r)throw new Error("decryption error");return t.slice(a)}(0,f,i);if(3===d)return f;throw new Error("unknown padding")}},{"./mgf":469,"./withPublic":473,"./xor":474,"bn.js":470,"browserify-rsa":206,"create-hash":331,"parse-asn1":459,"safe-buffer":494}],472:[function(e,t,i){"use strict";var n=e("parse-asn1"),a=e("randombytes"),r=e("create-hash"),o=e("./mgf"),s=e("./xor"),l=e("bn.js"),c=e("./withPublic"),u=e("browserify-rsa"),d=e("safe-buffer").Buffer;t.exports=function(e,t,i){var f;f=e.padding?e.padding:i?1:4;var h,p=n(e);if(4===f)h=function(e,t){var i=e.modulus.byteLength(),n=t.length,c=r("sha1").update(d.alloc(0)).digest(),u=c.length,f=2*u;if(n>i-f-2)throw new Error("message too long");var h=d.alloc(i-n-f-2),p=i-u-1,m=a(u),g=s(d.concat([c,h,d.alloc(1,1),t],p),o(m,p)),v=s(m,o(g,u));return new l(d.concat([d.alloc(1),v,g],i))}(p,t);else if(1===f)h=function(e,t,i){var n,r=t.length,o=e.modulus.byteLength();if(r>o-11)throw new Error("message too long");return n=i?d.alloc(o-r-3,255):function(e){for(var t,i=d.allocUnsafe(e),n=0,r=a(2*e),o=0;n<e;)o===r.length&&(r=a(2*e),o=0),(t=r[o++])&&(i[n++]=t);return i}(o-r-3),new l(d.concat([d.from([0,i?1:2]),n,d.alloc(1),t],o))}(p,t,i);else{if(3!==f)throw new Error("unknown padding");if((h=new l(t)).cmp(p.modulus)>=0)throw new Error("data too long for modulus")}return i?u(h,p):c(h,p)}},{"./mgf":469,"./withPublic":473,"./xor":474,"bn.js":470,"browserify-rsa":206,"create-hash":331,"parse-asn1":459,randombytes:475,"safe-buffer":494}],473:[function(e,t,i){"use strict";var n=e("bn.js"),a=e("safe-buffer").Buffer;t.exports=function(e,t){return a.from(e.toRed(n.mont(t.modulus)).redPow(new n(t.publicExponent)).fromRed().toArray())}},{"bn.js":470,"safe-buffer":494}],474:[function(e,t,i){"use strict";t.exports=function(e,t){for(var i=e.length,n=-1;++n<i;)e[n]^=t[n];return e}},{}],475:[function(e,i,n){(function(t,n){"use strict";var a=e("safe-buffer").Buffer,r=n.crypto||n.msCrypto;r&&r.getRandomValues?i.exports=function(e,i){if(e>4294967295)throw new RangeError("requested too many random bytes");var n=a.allocUnsafe(e);if(e>0)if(e>65536)for(var o=0;o<e;o+=65536)r.getRandomValues(n.slice(o,o+65536));else r.getRandomValues(n);return"function"==typeof i?t.nextTick((function(){i(null,n)})):n}:i.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}}).call(this,e("_process"),"undefined"!=typeof t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:467,"safe-buffer":494}],476:[function(e,i,n){(function(t,i){"use strict";function a(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var r=e("safe-buffer"),o=e("randombytes"),s=r.Buffer,l=r.kMaxLength,c=i.crypto||i.msCrypto,u=Math.pow(2,32)-1;function d(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(e>u||e<0)throw new TypeError("offset must be a uint32");if(e>l||e>t)throw new RangeError("offset out of range")}function f(e,t,i){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(e>u||e<0)throw new TypeError("size must be a uint32");if(e+t>i||e>l)throw new RangeError("buffer too small")}function h(e,i,n,a){if(t.browser){var r=e.buffer,s=new Uint8Array(r,i,n);return c.getRandomValues(s),a?void t.nextTick((function(){a(null,e)})):e}if(!a)return o(n).copy(e,i),e;o(n,(function(t,n){if(t)return a(t);n.copy(e,i),a(null,e)}))}c&&c.getRandomValues||!t.browser?(n.randomFill=function(e,t,n,a){if(!(s.isBuffer(e)||e instanceof i.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof t)a=t,t=0,n=e.length;else if("function"==typeof n)a=n,n=e.length-t;else if("function"!=typeof a)throw new TypeError('"cb" argument must be a function');return d(t,e.length),f(n,t,e.length),h(e,t,n,a)},n.randomFillSync=function(e,t,n){if(void 0===t&&(t=0),!(s.isBuffer(e)||e instanceof i.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return d(t,e.length),void 0===n&&(n=e.length-t),f(n,t,e.length),h(e,t,n)}):(n.randomFill=a,n.randomFillSync=a)}).call(this,e("_process"),"undefined"!=typeof t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:467,randombytes:475,"safe-buffer":494}],477:[function(e,t,i){"use strict";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)}var a={};function r(e,t,i){i||(i=Error);var n=function(e){var i,n;function a(i,n,a){return e.call(this,function(e,i,n){return"string"==typeof t?t:t(e,i,n)}(i,n,a))||this}return n=e,(i=a).prototype=Object.create(n.prototype),i.prototype.constructor=i,i.__proto__=n,a}(i);n.prototype.name=i.name,n.prototype.code=e,a[e]=n}function o(e,t){if(Array.isArray(e)){var i=e.length;return e=e.map((function(e){return String(e)})),i>2?"one of ".concat(t," ").concat(e.slice(0,i-1).join(", "),", or ")+e[i-1]:2===i?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}r("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),r("ERR_INVALID_ARG_TYPE",(function(e,t,i){var a,r,s,l;if("string"==typeof t&&(r="not ",t.substr(!s||s<0?0:+s,r.length)===r)?(a="must not be",t=t.replace(/^not /,"")):a="must be",function(e,t,i){return(void 0===i||i>e.length)&&(i=e.length),e.substring(i-t.length,i)===t}(e," argument"))l="The ".concat(e," ").concat(a," ").concat(o(t,"type"));else{var c=function(e,t,i){return"number"!=typeof i&&(i=0),!(i+t.length>e.length)&&-1!==e.indexOf(t,i)}(e,".")?"property":"argument";l='The "'.concat(e,'" ').concat(c," ").concat(a," ").concat(o(t,"type"))}return l+". Received type ".concat(n(i))}),TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=a},{}],478:[function(e,t,i){(function(i){"use strict";var n=Object.keys||function(e){var t=[];for(var i in e)t.push(i);return t};t.exports=c;var a=e("./_stream_readable"),r=e("./_stream_writable");e("inherits")(c,a);for(var o=n(r.prototype),s=0;s<o.length;s++){var l=o[s];c.prototype[l]||(c.prototype[l]=r.prototype[l])}function c(e){if(!(this instanceof c))return new c(e);a.call(this,e),r.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",u)))}function u(){this._writableState.ended||i.nextTick(d,this)}function d(e){e.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})}).call(this,e("_process"))},{"./_stream_readable":480,"./_stream_writable":482,_process:467,inherits:387}],479:[function(e,t,i){"use strict";t.exports=a;var n=e("./_stream_transform");function a(e){if(!(this instanceof a))return new a(e);n.call(this,e)}e("inherits")(a,n),a.prototype._transform=function(e,t,i){i(null,e)}},{"./_stream_transform":481,inherits:387}],480:[function(e,i,n){(function(t,n){"use strict";var a;i.exports=T,T.ReadableState=S,e("events").EventEmitter;var r,o=function(e,t){return e.listeners(t).length},s=e("./internal/streams/stream"),l=e("buffer").Buffer,c=n.Uint8Array||function(){},u=e("util");r=u&&u.debuglog?u.debuglog("stream"):function(){};var d,f,h,p=e("./internal/streams/buffer_list"),m=e("./internal/streams/destroy"),g=e("./internal/streams/state").getHighWaterMark,v=e("../errors").codes,b=v.ERR_INVALID_ARG_TYPE,y=v.ERR_STREAM_PUSH_AFTER_EOF,w=v.ERR_METHOD_NOT_IMPLEMENTED,_=v.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;e("inherits")(T,s);var I=m.errorOrDestroy,x=["error","close","destroy","pause","resume"];function S(t,i,n){a=a||e("./_stream_duplex"),t=t||{},"boolean"!=typeof n&&(n=i instanceof a),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=g(this,t,"readableHighWaterMark",n),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(d||(d=e("string_decoder/").StringDecoder),this.decoder=new d(t.encoding),this.encoding=t.encoding)}function T(t){if(a=a||e("./_stream_duplex"),!(this instanceof T))return new T(t);var i=this instanceof a;this._readableState=new S(t,this,i),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),s.call(this)}function C(e,t,i,n,a){r("readableAddChunk",t);var o,s=e._readableState;if(null===t)s.reading=!1,function(e,t){if(r("onEofChunk"),!t.ended){if(t.decoder){var i=t.decoder.end();i&&i.length&&(t.buffer.push(i),t.length+=t.objectMode?1:i.length)}t.ended=!0,t.sync?D(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,L(e)))}}(e,s);else if(a||(o=function(e,t){var i,n;return n=t,l.isBuffer(n)||n instanceof c||"string"==typeof t||void 0===t||e.objectMode||(i=new b("chunk",["string","Buffer","Uint8Array"],t)),i}(s,t)),o)I(e,o);else if(s.objectMode||t&&t.length>0)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===l.prototype||(t=function(e){return l.from(e)}(t)),n)s.endEmitted?I(e,new _):k(e,s,t,!0);else if(s.ended)I(e,new y);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!i?(t=s.decoder.write(t),s.objectMode||0!==t.length?k(e,s,t,!1):O(e,s)):k(e,s,t,!1)}else n||(s.reading=!1,O(e,s));return!s.ended&&(s.length<s.highWaterMark||0===s.length)}function k(e,t,i,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",i)):(t.length+=t.objectMode?1:i.length,n?t.buffer.unshift(i):t.buffer.push(i),t.needReadable&&D(e)),O(e,t)}function R(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=1073741824?e=1073741824:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function D(e){var i=e._readableState;r("emitReadable",i.needReadable,i.emittedReadable),i.needReadable=!1,i.emittedReadable||(r("emitReadable",i.flowing),i.emittedReadable=!0,t.nextTick(L,e))}function L(e){var t=e._readableState;r("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,E(e)}function O(e,i){i.readingMore||(i.readingMore=!0,t.nextTick($,e,i))}function $(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var i=t.length;if(r("maybeReadMore read 0"),e.read(0),i===t.length)break}t.readingMore=!1}function N(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function A(e){r("readable nexttick read 0"),e.read(0)}function P(e,t){r("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),E(e),t.flowing&&!t.reading&&e.read(0)}function E(e){var t=e._readableState;for(r("flow",t.flowing);t.flowing&&null!==e.read(););}function M(e,t){return 0===t.length?null:(t.objectMode?i=t.buffer.shift():!e||e>=t.length?(i=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):i=t.buffer.consume(e,t.decoder),i);var i}function F(e){var i=e._readableState;r("endReadable",i.endEmitted),i.endEmitted||(i.ended=!0,t.nextTick(j,i,e))}function j(e,t){if(r("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var i=t._writableState;(!i||i.autoDestroy&&i.finished)&&t.destroy()}}function V(e,t){for(var i=0,n=e.length;i<n;i++)if(e[i]===t)return i;return-1}Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),T.prototype.destroy=m.destroy,T.prototype._undestroy=m.undestroy,T.prototype._destroy=function(e,t){t(e)},T.prototype.push=function(e,t){var i,n=this._readableState;return n.objectMode?i=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=l.from(e,t),t=""),i=!0),C(this,e,t,!1,i)},T.prototype.unshift=function(e){return C(this,e,null,!0,!1)},T.prototype.isPaused=function(){return!1===this._readableState.flowing},T.prototype.setEncoding=function(t){d||(d=e("string_decoder/").StringDecoder);var i=new d(t);this._readableState.decoder=i,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,a="";null!==n;)a+=i.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==a&&this._readableState.buffer.push(a),this._readableState.length=a.length,this},T.prototype.read=function(e){r("read",e),e=parseInt(e,10);var t=this._readableState,i=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return r("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?F(this):D(this),null;if(0===(e=R(e,t))&&t.ended)return 0===t.length&&F(this),null;var n,a=t.needReadable;return r("need readable",a),(0===t.length||t.length-e<t.highWaterMark)&&r("length less than watermark",a=!0),t.ended||t.reading?r("reading or ended",a=!1):a&&(r("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=R(i,t))),null===(n=e>0?M(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),i!==e&&t.ended&&F(this)),null!==n&&this.emit("data",n),n},T.prototype._read=function(e){I(this,new w("_read()"))},T.prototype.pipe=function(e,i){var n=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=e;break;case 1:a.pipes=[a.pipes,e];break;default:a.pipes.push(e)}a.pipesCount+=1,r("pipe count=%d opts=%j",a.pipesCount,i);var s=i&&!1===i.end||e===t.stdout||e===t.stderr?g:c;function l(t,i){r("onunpipe"),t===n&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,r("cleanup"),e.removeListener("close",p),e.removeListener("finish",m),e.removeListener("drain",u),e.removeListener("error",h),e.removeListener("unpipe",l),n.removeListener("end",c),n.removeListener("end",g),n.removeListener("data",f),d=!0,!a.awaitDrain||e._writableState&&!e._writableState.needDrain||u())}function c(){r("onend"),e.end()}a.endEmitted?t.nextTick(s):n.once("end",s),e.on("unpipe",l);var u=function(e){return function(){var t=e._readableState;r("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,"data")&&(t.flowing=!0,E(e))}}(n);e.on("drain",u);var d=!1;function f(t){r("ondata");var i=e.write(t);r("dest.write",i),!1===i&&((1===a.pipesCount&&a.pipes===e||a.pipesCount>1&&-1!==V(a.pipes,e))&&!d&&(r("false write response, pause",a.awaitDrain),a.awaitDrain++),n.pause())}function h(t){r("onerror",t),g(),e.removeListener("error",h),0===o(e,"error")&&I(e,t)}function p(){e.removeListener("finish",m),g()}function m(){r("onfinish"),e.removeListener("close",p),g()}function g(){r("unpipe"),n.unpipe(e)}return n.on("data",f),function(e,t,i){if("function"==typeof e.prependListener)return e.prependListener(t,i);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(i):e._events[t]=[i,e._events[t]]:e.on(t,i)}(e,"error",h),e.once("close",p),e.once("finish",m),e.emit("pipe",n),a.flowing||(r("pipe resume"),n.resume()),e},T.prototype.unpipe=function(e){var t=this._readableState,i={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,i)),this;if(!e){var n=t.pipes,a=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var r=0;r<a;r++)n[r].emit("unpipe",this,{hasUnpiped:!1});return this}var o=V(t.pipes,e);return-1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,i)),this},T.prototype.on=function(e,i){var n=s.prototype.on.call(this,e,i),a=this._readableState;return"data"===e?(a.readableListening=this.listenerCount("readable")>0,!1!==a.flowing&&this.resume()):"readable"===e&&(a.endEmitted||a.readableListening||(a.readableListening=a.needReadable=!0,a.flowing=!1,a.emittedReadable=!1,r("on readable",a.length,a.reading),a.length?D(this):a.reading||t.nextTick(A,this))),n},T.prototype.addListener=T.prototype.on,T.prototype.removeListener=function(e,i){var n=s.prototype.removeListener.call(this,e,i);return"readable"===e&&t.nextTick(N,this),n},T.prototype.removeAllListeners=function(e){var i=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||t.nextTick(N,this),i},T.prototype.resume=function(){var e=this._readableState;return e.flowing||(r("resume"),e.flowing=!e.readableListening,function(e,i){i.resumeScheduled||(i.resumeScheduled=!0,t.nextTick(P,e,i))}(this,e)),e.paused=!1,this},T.prototype.pause=function(){return r("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(r("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},T.prototype.wrap=function(e){var t=this,i=this._readableState,n=!1;for(var a in e.on("end",(function(){if(r("wrapped end"),i.decoder&&!i.ended){var e=i.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(a){r("wrapped data"),i.decoder&&(a=i.decoder.write(a)),i.objectMode&&null==a||(i.objectMode||a&&a.length)&&(t.push(a)||(n=!0,e.pause()))})),e)void 0===this[a]&&"function"==typeof e[a]&&(this[a]=function(t){return function(){return e[t].apply(e,arguments)}}(a));for(var o=0;o<x.length;o++)e.on(x[o],this.emit.bind(this,x[o]));return this._read=function(t){r("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(T.prototype[Symbol.asyncIterator]=function(){return void 0===f&&(f=e("./internal/streams/async_iterator")),f(this)}),Object.defineProperty(T.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(T.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(T.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),T._fromList=M,Object.defineProperty(T.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(T.from=function(t,i){return void 0===h&&(h=e("./internal/streams/from")),h(T,t,i)})}).call(this,e("_process"),"undefined"!=typeof t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../errors":477,"./_stream_duplex":478,"./internal/streams/async_iterator":483,"./internal/streams/buffer_list":484,"./internal/streams/destroy":485,"./internal/streams/from":487,"./internal/streams/state":489,"./internal/streams/stream":490,_process:467,buffer:216,events:367,inherits:387,"string_decoder/":520,util:185}],481:[function(e,t,i){"use strict";t.exports=u;var n=e("../errors").codes,a=n.ERR_METHOD_NOT_IMPLEMENTED,r=n.ERR_MULTIPLE_CALLBACK,o=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,l=e("./_stream_duplex");function c(e,t){var i=this._transformState;i.transforming=!1;var n=i.writecb;if(null===n)return this.emit("error",new r);i.writechunk=null,i.writecb=null,null!=t&&this.push(t),n(e);var a=this._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}function u(e){if(!(this instanceof u))return new u(e);l.call(this,e),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",d)}function d(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?f(this,null,null):this._flush((function(t,i){f(e,t,i)}))}function f(e,t,i){if(t)return e.emit("error",t);if(null!=i&&e.push(i),e._writableState.length)throw new s;if(e._transformState.transforming)throw new o;return e.push(null)}e("inherits")(u,l),u.prototype.push=function(e,t){return this._transformState.needTransform=!1,l.prototype.push.call(this,e,t)},u.prototype._transform=function(e,t,i){i(new a("_transform()"))},u.prototype._write=function(e,t,i){var n=this._transformState;if(n.writecb=i,n.writechunk=e,n.writeencoding=t,!n.transforming){var a=this._readableState;(n.needTransform||a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}},u.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},u.prototype._destroy=function(e,t){l.prototype._destroy.call(this,e,(function(e){t(e)}))}},{"../errors":477,"./_stream_duplex":478,inherits:387}],482:[function(e,i,n){(function(t,n){"use strict";function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,i){var n=e.entry;for(e.entry=null;n;){var a=n.callback;t.pendingcb--,a(i),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}var r;i.exports=T,T.WritableState=S;var o,s={deprecate:e("util-deprecate")},l=e("./internal/streams/stream"),c=e("buffer").Buffer,u=n.Uint8Array||function(){},d=e("./internal/streams/destroy"),f=e("./internal/streams/state").getHighWaterMark,h=e("../errors").codes,p=h.ERR_INVALID_ARG_TYPE,m=h.ERR_METHOD_NOT_IMPLEMENTED,g=h.ERR_MULTIPLE_CALLBACK,v=h.ERR_STREAM_CANNOT_PIPE,b=h.ERR_STREAM_DESTROYED,y=h.ERR_STREAM_NULL_VALUES,w=h.ERR_STREAM_WRITE_AFTER_END,_=h.ERR_UNKNOWN_ENCODING,I=d.errorOrDestroy;function x(){}function S(i,n,o){r=r||e("./_stream_duplex"),i=i||{},"boolean"!=typeof o&&(o=n instanceof r),this.objectMode=!!i.objectMode,o&&(this.objectMode=this.objectMode||!!i.writableObjectMode),this.highWaterMark=f(this,i,"writableHighWaterMark",o),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===i.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=i.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,i){var n=e._writableState,a=n.sync,r=n.writecb;if("function"!=typeof r)throw new g;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),i)!function(e,i,n,a,r){--i.pendingcb,n?(t.nextTick(r,a),t.nextTick(O,e,i),e._writableState.errorEmitted=!0,I(e,a)):(r(a),e._writableState.errorEmitted=!0,I(e,a),O(e,i))}(e,n,a,i,r);else{var o=D(n)||e.destroyed;o||n.corked||n.bufferProcessing||!n.bufferedRequest||R(e,n),a?t.nextTick(k,e,n,o,r):k(e,n,o,r)}}(n,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==i.emitClose,this.autoDestroy=!!i.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function T(t){var i=this instanceof(r=r||e("./_stream_duplex"));if(!i&&!o.call(T,this))return new T(t);this._writableState=new S(t,this,i),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),l.call(this)}function C(e,t,i,n,a,r,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new b("write")):i?e._writev(a,t.onwrite):e._write(a,r,t.onwrite),t.sync=!1}function k(e,t,i,n){i||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),O(e,t)}function R(e,t){t.bufferProcessing=!0;var i=t.bufferedRequest;if(e._writev&&i&&i.next){var n=t.bufferedRequestCount,r=new Array(n),o=t.corkedRequestsFree;o.entry=i;for(var s=0,l=!0;i;)r[s]=i,i.isBuf||(l=!1),i=i.next,s+=1;r.allBuffers=l,C(e,t,!0,t.length,r,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;i;){var c=i.chunk,u=i.encoding,d=i.callback;if(C(e,t,!1,t.objectMode?1:c.length,c,u,d),i=i.next,t.bufferedRequestCount--,t.writing)break}null===i&&(t.lastBufferedRequest=null)}t.bufferedRequest=i,t.bufferProcessing=!1}function D(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function L(e,t){e._final((function(i){t.pendingcb--,i&&I(e,i),t.prefinished=!0,e.emit("prefinish"),O(e,t)}))}function O(e,i){var n=D(i);if(n&&(function(e,i){i.prefinished||i.finalCalled||("function"!=typeof e._final||i.destroyed?(i.prefinished=!0,e.emit("prefinish")):(i.pendingcb++,i.finalCalled=!0,t.nextTick(L,e,i)))}(e,i),0===i.pendingcb&&(i.finished=!0,e.emit("finish"),i.autoDestroy))){var a=e._readableState;(!a||a.autoDestroy&&a.endEmitted)&&e.destroy()}return n}e("inherits")(T,l),S.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(S.prototype,"buffer",{get:s.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(o=Function.prototype[Symbol.hasInstance],Object.defineProperty(T,Symbol.hasInstance,{value:function(e){return!!o.call(this,e)||this===T&&e&&e._writableState instanceof S}})):o=function(e){return e instanceof this},T.prototype.pipe=function(){I(this,new v)},T.prototype.write=function(e,i,n){var a,r=this._writableState,o=!1,s=!r.objectMode&&(a=e,c.isBuffer(a)||a instanceof u);return s&&!c.isBuffer(e)&&(e=function(e){return c.from(e)}(e)),"function"==typeof i&&(n=i,i=null),s?i="buffer":i||(i=r.defaultEncoding),"function"!=typeof n&&(n=x),r.ending?function(e,i){var n=new w;I(e,n),t.nextTick(i,n)}(this,n):(s||function(e,i,n,a){var r;return null===n?r=new y:"string"==typeof n||i.objectMode||(r=new p("chunk",["string","Buffer"],n)),!r||(I(e,r),t.nextTick(a,r),!1)}(this,r,e,n))&&(r.pendingcb++,o=function(e,t,i,n,a,r){if(!i){var o=function(e,t,i){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=c.from(t,i)),t}(t,n,a);n!==o&&(i=!0,a="buffer",n=o)}var s=t.objectMode?1:n.length;t.length+=s;var l=t.length<t.highWaterMark;if(l||(t.needDrain=!0),t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:a,isBuf:i,callback:r,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else C(e,t,!1,s,n,a,r);return l}(this,r,s,e,i,n)),o},T.prototype.cork=function(){this._writableState.corked++},T.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||R(this,e))},T.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new _(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(T.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(T.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),T.prototype._write=function(e,t,i){i(new m("_write()"))},T.prototype._writev=null,T.prototype.end=function(e,i,n){var a=this._writableState;return"function"==typeof e?(n=e,e=null,i=null):"function"==typeof i&&(n=i,i=null),null!=e&&this.write(e,i),a.corked&&(a.corked=1,this.uncork()),a.ending||function(e,i,n){i.ending=!0,O(e,i),n&&(i.finished?t.nextTick(n):e.once("finish",n)),i.ended=!0,e.writable=!1}(this,a,n),this},Object.defineProperty(T.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),T.prototype.destroy=d.destroy,T.prototype._undestroy=d.undestroy,T.prototype._destroy=function(e,t){t(e)}}).call(this,e("_process"),"undefined"!=typeof t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../errors":477,"./_stream_duplex":478,"./internal/streams/destroy":485,"./internal/streams/state":489,"./internal/streams/stream":490,_process:467,buffer:216,inherits:387,"util-deprecate":522}],483:[function(e,t,i){(function(i){"use strict";var n;function a(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var r=e("./end-of-stream"),o=Symbol("lastResolve"),s=Symbol("lastReject"),l=Symbol("error"),c=Symbol("ended"),u=Symbol("lastPromise"),d=Symbol("handlePromise"),f=Symbol("stream");function h(e,t){return{value:e,done:t}}function p(e){var t=e[o];if(null!==t){var i=e[f].read();null!==i&&(e[u]=null,e[o]=null,e[s]=null,t(h(i,!1)))}}function m(e){i.nextTick(p,e)}var g=Object.getPrototypeOf((function(){})),v=Object.setPrototypeOf((a(n={get stream(){return this[f]},next:function(){var e=this,t=this[l];if(null!==t)return Promise.reject(t);if(this[c])return Promise.resolve(h(void 0,!0));if(this[f].destroyed)return new Promise((function(t,n){i.nextTick((function(){e[l]?n(e[l]):t(h(void 0,!0))}))}));var n,a=this[u];if(a)n=new Promise(function(e,t){return function(i,n){e.then((function(){t[c]?i(h(void 0,!0)):t[d](i,n)}),n)}}(a,this));else{var r=this[f].read();if(null!==r)return Promise.resolve(h(r,!1));n=new Promise(this[d])}return this[u]=n,n}},Symbol.asyncIterator,(function(){return this})),a(n,"return",(function(){var e=this;return new Promise((function(t,i){e[f].destroy(null,(function(e){e?i(e):t(h(void 0,!0))}))}))})),n),g);t.exports=function(e){var t,i=Object.create(v,(a(t={},f,{value:e,writable:!0}),a(t,o,{value:null,writable:!0}),a(t,s,{value:null,writable:!0}),a(t,l,{value:null,writable:!0}),a(t,c,{value:e._readableState.endEmitted,writable:!0}),a(t,d,{value:function(e,t){var n=i[f].read();n?(i[u]=null,i[o]=null,i[s]=null,e(h(n,!1))):(i[o]=e,i[s]=t)},writable:!0}),t));return i[u]=null,r(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=i[s];return null!==t&&(i[u]=null,i[o]=null,i[s]=null,t(e)),void(i[l]=e)}var n=i[o];null!==n&&(i[u]=null,i[o]=null,i[s]=null,n(h(void 0,!0))),i[c]=!0})),e.on("readable",m.bind(null,i)),i}}).call(this,e("_process"))},{"./end-of-stream":486,_process:467}],484:[function(e,t,i){"use strict";function n(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function a(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var o=e("buffer").Buffer,s=e("util").inspect,l=s&&s.custom||"inspect";t.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,i,c;return t=e,(i=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,i=""+t.data;t=t.next;)i+=e+t.data;return i}},{key:"concat",value:function(e){if(0===this.length)return o.alloc(0);for(var t,i,n,a=o.allocUnsafe(e>>>0),r=this.head,s=0;r;)t=r.data,i=a,n=s,o.prototype.copy.call(t,i,n),s+=r.data.length,r=r.next;return a}},{key:"consume",value:function(e,t){var i;return e<this.head.data.length?(i=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):i=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),i}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,i=1,n=t.data;for(e-=n.length;t=t.next;){var a=t.data,r=e>a.length?a.length:e;if(r===a.length?n+=a:n+=a.slice(0,e),0==(e-=r)){r===a.length?(++i,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=a.slice(r));break}++i}return this.length-=i,n}},{key:"_getBuffer",value:function(e){var t=o.allocUnsafe(e),i=this.head,n=1;for(i.data.copy(t),e-=i.data.length;i=i.next;){var a=i.data,r=e>a.length?a.length:e;if(a.copy(t,t.length-e,0,r),0==(e-=r)){r===a.length?(++n,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=a.slice(r));break}++n}return this.length-=n,t}},{key:l,value:function(e,t){return s(this,function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?n(Object(i),!0).forEach((function(t){a(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):n(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}({},t,{depth:0,customInspect:!1}))}}])&&r(t.prototype,i),c&&r(t,c),e}()},{buffer:216,util:185}],485:[function(e,t,i){(function(e){"use strict";function i(e,t){a(e,t),n(e)}function n(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function a(e,t){e.emit("error",t)}t.exports={destroy:function(t,r){var o=this,s=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return s||l?(r?r(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(a,this,t)):e.nextTick(a,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!r&&t?o._writableState?o._writableState.errorEmitted?e.nextTick(n,o):(o._writableState.errorEmitted=!0,e.nextTick(i,o,t)):e.nextTick(i,o,t):r?(e.nextTick(n,o),r(t)):e.nextTick(n,o)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var i=e._readableState,n=e._writableState;i&&i.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}}).call(this,e("_process"))},{_process:467}],486:[function(e,t,i){"use strict";var n=e("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function a(){}t.exports=function e(t,i,r){if("function"==typeof i)return e(t,null,i);i||(i={}),r=function(e){var t=!1;return function(){if(!t){t=!0;for(var i=arguments.length,n=new Array(i),a=0;a<i;a++)n[a]=arguments[a];e.apply(this,n)}}}(r||a);var o=i.readable||!1!==i.readable&&t.readable,s=i.writable||!1!==i.writable&&t.writable,l=function(){t.writable||u()},c=t._writableState&&t._writableState.finished,u=function(){s=!1,c=!0,o||r.call(t)},d=t._readableState&&t._readableState.endEmitted,f=function(){o=!1,d=!0,s||r.call(t)},h=function(e){r.call(t,e)},p=function(){var e;return o&&!d?(t._readableState&&t._readableState.ended||(e=new n),r.call(t,e)):s&&!c?(t._writableState&&t._writableState.ended||(e=new n),r.call(t,e)):void 0},m=function(){t.req.on("finish",u)};return function(e){return e.setHeader&&"function"==typeof e.abort}(t)?(t.on("complete",u),t.on("abort",p),t.req?m():t.on("request",m)):s&&!t._writableState&&(t.on("end",l),t.on("close",l)),t.on("end",f),t.on("finish",u),!1!==i.error&&t.on("error",h),t.on("close",p),function(){t.removeListener("complete",u),t.removeListener("abort",p),t.removeListener("request",m),t.req&&t.req.removeListener("finish",u),t.removeListener("end",l),t.removeListener("close",l),t.removeListener("finish",u),t.removeListener("end",f),t.removeListener("error",h),t.removeListener("close",p)}}},{"../../../errors":477}],487:[function(e,t,i){"use strict";t.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],488:[function(e,t,i){"use strict";var n,a=e("../../../errors").codes,r=a.ERR_MISSING_ARGS,o=a.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function l(t,i,a,r){r=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(r);var s=!1;t.on("close",(function(){s=!0})),void 0===n&&(n=e("./end-of-stream")),n(t,{readable:i,writable:a},(function(e){if(e)return r(e);s=!0,r()}));var l=!1;return function(e){if(!s&&!l)return l=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(t)?t.abort():"function"==typeof t.destroy?t.destroy():void r(e||new o("pipe"))}}function c(e){e()}function u(e,t){return e.pipe(t)}function d(e){return e.length?"function"!=typeof e[e.length-1]?s:e.pop():s}t.exports=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var n,a=d(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new r("streams");var o=t.map((function(e,i){var r=i<t.length-1;return l(e,r,i>0,(function(e){n||(n=e),e&&o.forEach(c),r||(o.forEach(c),a(n))}))}));return t.reduce(u)}},{"../../../errors":477,"./end-of-stream":486}],489:[function(e,t,i){"use strict";var n=e("../../../errors").codes.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(e,t,i,a){var r=function(e,t,i){return null!=e.highWaterMark?e.highWaterMark:t?e[i]:null}(t,a,i);if(null!=r){if(!isFinite(r)||Math.floor(r)!==r||r<0)throw new n(a?i:"highWaterMark",r);return Math.floor(r)}return e.objectMode?16:16384}}},{"../../../errors":477}],490:[function(e,t,i){"use strict";t.exports=e("events").EventEmitter},{events:367}],491:[function(e,t,i){"use strict";(i=t.exports=e("./lib/_stream_readable.js")).Stream=i,i.Readable=i,i.Writable=e("./lib/_stream_writable.js"),i.Duplex=e("./lib/_stream_duplex.js"),i.Transform=e("./lib/_stream_transform.js"),i.PassThrough=e("./lib/_stream_passthrough.js"),i.finished=e("./lib/internal/streams/end-of-stream.js"),i.pipeline=e("./lib/internal/streams/pipeline.js")},{"./lib/_stream_duplex.js":478,"./lib/_stream_passthrough.js":479,"./lib/_stream_readable.js":480,"./lib/_stream_transform.js":481,"./lib/_stream_writable.js":482,"./lib/internal/streams/end-of-stream.js":486,"./lib/internal/streams/pipeline.js":488}],492:[function(e,t,i){"use strict";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)}var a=function(e){var t=Object.prototype,i=t.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},r=a.iterator||"@@iterator",o=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function l(e,t,i){return Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,i){return e[t]=i}}function c(e,t,i,n){var a=t&&t.prototype instanceof f?t:f,r=Object.create(a.prototype),o=new S(n||[]);return r._invoke=function(e,t,i){var n="suspendedStart";return function(a,r){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===a)throw r;return C()}for(i.method=a,i.arg=r;;){var o=i.delegate;if(o){var s=_(o,i);if(s){if(s===d)continue;return s}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if("suspendedStart"===n)throw n="completed",i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);n="executing";var l=u(e,t,i);if("normal"===l.type){if(n=i.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(n="completed",i.method="throw",i.arg=l.arg)}}}(e,i,o),r}function u(e,t,i){try{return{type:"normal",arg:e.call(t,i)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d={};function f(){}function h(){}function p(){}var m={};m[r]=function(){return this};var g=Object.getPrototypeOf,v=g&&g(g(T([])));v&&v!==t&&i.call(v,r)&&(m=v);var b=p.prototype=f.prototype=Object.create(m);function y(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){var a;this._invoke=function(r,o){function s(){return new t((function(a,s){!function a(r,o,s,l){var c=u(e[r],e,o);if("throw"!==c.type){var d=c.arg,f=d.value;return f&&"object"===n(f)&&i.call(f,"__await")?t.resolve(f.__await).then((function(e){a("next",e,s,l)}),(function(e){a("throw",e,s,l)})):t.resolve(f).then((function(e){d.value=e,s(d)}),(function(e){return a("throw",e,s,l)}))}l(c.arg)}(r,o,a,s)}))}return a=a?a.then(s,s):s()}}function _(e,t){var i=e.iterator[t.method];if(void 0===i){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=u(i,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,d;var a=n.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function I(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 x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function T(e){if(e){var t=e[r];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,a=function t(){for(;++n<e.length;)if(i.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:C}}function C(){return{value:void 0,done:!0}}return h.prototype=b.constructor=p,p.constructor=h,h.displayName=l(p,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,s,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},y(w.prototype),w.prototype[o]=function(){return this},e.AsyncIterator=w,e.async=function(t,i,n,a,r){void 0===r&&(r=Promise);var o=new w(c(t,i,n,a),r);return e.isGeneratorFunction(i)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},y(b),l(b,s,"Generator"),b[r]=function(){return this},b.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var i in e)t.push(i);return t.reverse(),function i(){for(;t.length;){var n=t.pop();if(n in e)return i.value=n,i.done=!1,i}return i.done=!0,i}},e.values=T,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(i,n){return o.type="throw",o.arg=e,t.next=i,n&&(t.method="next",t.arg=void 0),!!n}for(var a=this.tryEntries.length-1;a>=0;--a){var r=this.tryEntries[a],o=r.completion;if("root"===r.tryLoc)return n("end");if(r.tryLoc<=this.prev){var s=i.call(r,"catchLoc"),l=i.call(r,"finallyLoc");if(s&&l){if(this.prev<r.catchLoc)return n(r.catchLoc,!0);if(this.prev<r.finallyLoc)return n(r.finallyLoc)}else if(s){if(this.prev<r.catchLoc)return n(r.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return n(r.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&i.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var r=a;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var o=r?r.completion:{};return o.type=e,o.arg=t,r?(this.method="next",this.next=r.finallyLoc,d):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.finallyLoc===e)return this.complete(i.completion,i.afterLoc),x(i),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.tryLoc===e){var n=i.completion;if("throw"===n.type){var a=n.arg;x(i)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,i){return this.delegate={iterator:T(e),resultName:t,nextLoc:i},"next"===this.method&&(this.arg=void 0),d}},e}("object"===(void 0===t?"undefined":n(t))?t.exports:{});try{regeneratorRuntime=a}catch(e){Function("r","regeneratorRuntime = r")(a)}},{}],493:[function(e,t,i){"use strict";var n=e("buffer").Buffer,a=e("inherits"),r=e("hash-base"),o=new Array(16),s=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],l=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],c=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],u=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],d=[0,1518500249,1859775393,2400959708,2840853838],f=[1352829926,1548603684,1836072691,2053994217,0];function h(){r.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(e,t){return e<<t|e>>>32-t}function m(e,t,i,n,a,r,o,s){return p(e+(t^i^n)+r+o|0,s)+a|0}function g(e,t,i,n,a,r,o,s){return p(e+(t&i|~t&n)+r+o|0,s)+a|0}function v(e,t,i,n,a,r,o,s){return p(e+((t|~i)^n)+r+o|0,s)+a|0}function b(e,t,i,n,a,r,o,s){return p(e+(t&n|i&~n)+r+o|0,s)+a|0}function y(e,t,i,n,a,r,o,s){return p(e+(t^(i|~n))+r+o|0,s)+a|0}a(h,r),h.prototype._update=function(){for(var e=o,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var i=0|this._a,n=0|this._b,a=0|this._c,r=0|this._d,h=0|this._e,w=0|this._a,_=0|this._b,I=0|this._c,x=0|this._d,S=0|this._e,T=0;T<80;T+=1){var C,k;T<16?(C=m(i,n,a,r,h,e[s[T]],d[0],c[T]),k=y(w,_,I,x,S,e[l[T]],f[0],u[T])):T<32?(C=g(i,n,a,r,h,e[s[T]],d[1],c[T]),k=b(w,_,I,x,S,e[l[T]],f[1],u[T])):T<48?(C=v(i,n,a,r,h,e[s[T]],d[2],c[T]),k=v(w,_,I,x,S,e[l[T]],f[2],u[T])):T<64?(C=b(i,n,a,r,h,e[s[T]],d[3],c[T]),k=g(w,_,I,x,S,e[l[T]],f[3],u[T])):(C=y(i,n,a,r,h,e[s[T]],d[4],c[T]),k=m(w,_,I,x,S,e[l[T]],f[4],u[T])),i=h,h=r,r=p(a,10),a=n,n=C,w=S,S=x,x=p(I,10),I=_,_=k}var R=this._b+a+x|0;this._b=this._c+r+S|0,this._c=this._d+h+w|0,this._d=this._e+i+_|0,this._e=this._a+n+I|0,this._a=R},h.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=n.alloc?n.alloc(20):new n(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},t.exports=h},{buffer:216,"hash-base":370,inherits:387}],494:[function(e,t,i){"use strict";var n=e("buffer"),a=n.Buffer;function r(e,t){for(var i in e)t[i]=e[i]}function o(e,t,i){return a(e,t,i)}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?t.exports=n:(r(n,i),i.Buffer=o),r(a,o),o.from=function(e,t,i){if("number"==typeof e)throw new TypeError("Argument must not be a number");return a(e,t,i)},o.alloc=function(e,t,i){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=a(e);return void 0!==t?"string"==typeof i?n.fill(t,i):n.fill(t):n.fill(0),n},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return a(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},{buffer:216}],495:[function(e,t,i){(function(i){"use strict";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)}var a,r=e("buffer"),o=r.Buffer,s={};for(a in r)r.hasOwnProperty(a)&&"SlowBuffer"!==a&&"Buffer"!==a&&(s[a]=r[a]);var l=s.Buffer={};for(a in o)o.hasOwnProperty(a)&&"allocUnsafe"!==a&&"allocUnsafeSlow"!==a&&(l[a]=o[a]);if(s.Buffer.prototype=o.prototype,l.from&&l.from!==Uint8Array.from||(l.from=function(e,t,i){if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type '+n(e));if(e&&void 0===e.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+n(e));return o(e,t,i)}),l.alloc||(l.alloc=function(e,t,i){if("number"!=typeof e)throw new TypeError('The "size" argument must be of type number. Received type '+n(e));if(e<0||e>=2*(1<<30))throw new RangeError('The value "'+e+'" is invalid for option "size"');var a=o(e);return t&&0!==t.length?"string"==typeof i?a.fill(t,i):a.fill(t):a.fill(0),a}),!s.kStringMaxLength)try{s.kStringMaxLength=i.binding("buffer").kStringMaxLength}catch(e){}s.constants||(s.constants={MAX_LENGTH:s.kMaxLength},s.kStringMaxLength&&(s.constants.MAX_STRING_LENGTH=s.kStringMaxLength)),t.exports=s}).call(this,e("_process"))},{_process:467,buffer:216}],496:[function(e,t,i){"use strict";function n(e,t){var i;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(i=s(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},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 r,o=!0,l=!1;return{s:function(){i=e[Symbol.iterator]()},n:function(){var e=i.next();return o=e.done,e},e:function(e){l=!0,r=e},f:function(){try{o||null==i.return||i.return()}finally{if(l)throw r}}}}function a(e){return(a="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 r(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||s(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 s(e,t){if(e){if("string"==typeof e)return l(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}Object.defineProperty(i,"__esModule",{value:!0});var c=e("xmlchars/xml/1.0/ed5"),u=e("xmlchars/xml/1.1/ed2"),d=e("xmlchars/xmlns/1.0/ed3"),f=c.isS,h=c.isChar,p=c.isNameStartChar,m=c.isNameChar,g=c.S_LIST,v=c.NAME_RE,b=u.isChar,y=d.isNCNameStartChar,w=d.isNCNameChar,_=d.NC_NAME_RE,I="http://www.w3.org/XML/1998/namespace",x="http://www.w3.org/2000/xmlns/",S={__proto__:null,xml:I,xmlns:x},T={__proto__:null,amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},C=61,k=63,R=function(e){return 34===e||39===e},D=[34,39],L=[].concat(D,[91,62]),O=[].concat(D,[60,93]),$=[C,k].concat(o(g)),N=[].concat(o(g),[62,38,60]);function A(e,t,i){switch(t){case"xml":i!==I&&e.fail("xml prefix must be bound to ".concat(I,"."));break;case"xmlns":i!==x&&e.fail("xmlns prefix must be bound to ".concat(x,"."))}switch(i){case x:e.fail(""===t?"the default namespace may not be set to ".concat(i,"."):'may not assign a prefix (even "xmlns") to the URI '.concat(x,"."));break;case I:switch(t){case"xml":break;case"":e.fail("the default namespace may not be set to ".concat(i,"."));break;default:e.fail("may not assign the xml namespace to another prefix.")}}}var P=function(e){return _.test(e)},E=function(e){return v.test(e)};i.EVENTS=["xmldecl","text","processinginstruction","doctype","comment","opentagstart","attribute","opentag","closetag","cdata","error","end","ready"];var M={xmldecl:"xmldeclHandler",text:"textHandler",processinginstruction:"piHandler",doctype:"doctypeHandler",comment:"commentHandler",opentagstart:"openTagStartHandler",attribute:"attributeHandler",opentag:"openTagHandler",closetag:"closeTagHandler",cdata:"cdataHandler",error:"errorHandler",end:"endHandler",ready:"readyHandler"},F=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.opt=null!=t?t:{},this.fragmentOpt=!!this.opt.fragment;var i=this.xmlnsOpt=!!this.opt.xmlns;if(this.trackPosition=!1!==this.opt.position,this.fileName=this.opt.fileName,i){this.nameStartCheck=y,this.nameCheck=w,this.isName=P,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns=Object.assign({__proto__:null},S);var n=this.opt.additionalNamespaces;null!=n&&(function(e,t){for(var i=0,n=Object.keys(t);i<n.length;i++){var a=n[i];A(e,a,t[a])}}(this,n),Object.assign(this.ns,n))}else this.nameStartCheck=p,this.nameCheck=m,this.isName=E,this.processAttribs=this.processAttribsPlain,this.pushAttrib=this.pushAttribPlain;this.stateTable=[this.sBegin,this.sBeginWhitespace,this.sDoctype,this.sDoctypeQuote,this.sDTD,this.sDTDQuoted,this.sDTDOpenWaka,this.sDTDOpenWakaBang,this.sDTDComment,this.sDTDCommentEnding,this.sDTDCommentEnded,this.sDTDPI,this.sDTDPIEnding,this.sText,this.sEntity,this.sOpenWaka,this.sOpenWakaBang,this.sComment,this.sCommentEnding,this.sCommentEnded,this.sCData,this.sCDataEnding,this.sCDataEnding2,this.sPIFirstChar,this.sPIRest,this.sPIBody,this.sPIEnding,this.sXMLDeclNameStart,this.sXMLDeclName,this.sXMLDeclEq,this.sXMLDeclValueStart,this.sXMLDeclValue,this.sXMLDeclSeparator,this.sXMLDeclEnding,this.sOpenTag,this.sOpenTagSlash,this.sAttrib,this.sAttribName,this.sAttribNameSawWhite,this.sAttribValue,this.sAttribValueQuoted,this.sAttribValueClosed,this.sAttribValueUnquoted,this.sCloseTag,this.sCloseTagSawWhite],this._init()}var t,i,o;return t=e,(i=[{key:"_init",value:function(){var e;this.openWakaBang="",this.text="",this.name="",this.piTarget="",this.entity="",this.q=null,this.tags=[],this.tag=null,this.topNS=null,this.chunk="",this.chunkPosition=0,this.i=0,this.prevI=0,this.carriedFromPrevious=void 0,this.forbiddenState=0,this.attribList=[];var t=this.fragmentOpt;this.state=t?13:0,this.reportedTextBeforeRoot=this.reportedTextAfterRoot=this.closedRoot=this.sawRoot=t,this.xmlDeclPossible=!t,this.xmlDeclExpects=["version"],this.entityReturnState=void 0;var i=this.opt.defaultXMLVersion;if(void 0===i){if(!0===this.opt.forceXMLVersion)throw new Error("forceXMLVersion set but defaultXMLVersion is not set");i="1.0"}this.setXMLVersion(i),this.positionAtNewLine=0,this.doctype=!1,this._closed=!1,this.xmlDecl={version:void 0,encoding:void 0,standalone:void 0},this.line=1,this.column=0,this.ENTITIES=Object.create(T),null===(e=this.readyHandler)||void 0===e||e.call(this)}},{key:"on",value:function(e,t){this[M[e]]=t}},{key:"off",value:function(e){this[M[e]]=void 0}},{key:"makeError",value:function(e){var t,i=null!==(t=this.fileName)&&void 0!==t?t:"";return this.trackPosition&&(i.length>0&&(i+=":"),i+="".concat(this.line,":").concat(this.column)),i.length>0&&(i+=": "),new Error(i+e)}},{key:"fail",value:function(e){var t=this.makeError(e),i=this.errorHandler;if(void 0===i)throw t;return i(t),this}},{key:"write",value:function(e){if(this.closed)return this.fail("cannot write after close; assign an onready handler.");var t=!1;null===e?(t=!0,e=""):"object"===a(e)&&(e=e.toString()),void 0!==this.carriedFromPrevious&&(e="".concat(this.carriedFromPrevious).concat(e),this.carriedFromPrevious=void 0);var i=e.length,n=e.charCodeAt(i-1);!t&&(13===n||n>=55296&&n<=56319)&&(this.carriedFromPrevious=e[i-1],i--,e=e.slice(0,i));var r=this.stateTable;for(this.chunk=e,this.i=0;this.i<i;)r[this.state].call(this);return this.chunkPosition+=i,t?this.end():this}},{key:"close",value:function(){return this.write(null)}},{key:"getCode10",value:function(){var e=this.chunk,t=this.i;if(this.prevI=t,this.i=t+1,t>=e.length)return-1;var i=e.charCodeAt(t);if(this.column++,i<55296){if(i>=32||9===i)return i;switch(i){case 10:return this.line++,this.column=0,this.positionAtNewLine=this.position,10;case 13:return 10===e.charCodeAt(t+1)&&(this.i=t+2),this.line++,this.column=0,this.positionAtNewLine=this.position,-2;default:return this.fail("disallowed character."),i}}if(i>56319)return i>=57344&&i<=65533||this.fail("disallowed character."),i;var n=65536+1024*(i-55296)+(e.charCodeAt(t+1)-56320);return this.i=t+2,n>1114111&&this.fail("disallowed character."),n}},{key:"getCode11",value:function(){var e=this.chunk,t=this.i;if(this.prevI=t,this.i=t+1,t>=e.length)return-1;var i=e.charCodeAt(t);if(this.column++,i<55296){if(i>31&&i<127||i>159&&8232!==i||9===i)return i;switch(i){case 10:return this.line++,this.column=0,this.positionAtNewLine=this.position,10;case 13:var n=e.charCodeAt(t+1);10!==n&&133!==n||(this.i=t+2);case 133:case 8232:return this.line++,this.column=0,this.positionAtNewLine=this.position,-2;default:return this.fail("disallowed character."),i}}if(i>56319)return i>=57344&&i<=65533||this.fail("disallowed character."),i;var a=65536+1024*(i-55296)+(e.charCodeAt(t+1)-56320);return this.i=t+2,a>1114111&&this.fail("disallowed character."),a}},{key:"getCodeNorm",value:function(){var e=this.getCode();return-2===e?10:e}},{key:"unget",value:function(){this.i=this.prevI,this.column--}},{key:"captureTo",value:function(e){for(var t=this.i,i=this.chunk;;){var n=this.getCode(),a=-2===n,r=a?10:n;if(-1===r||e.includes(r))return this.text+=i.slice(t,this.prevI),r;a&&(this.text+="".concat(i.slice(t,this.prevI),"\n"),t=this.i)}}},{key:"captureToChar",value:function(e){for(var t=this.i,i=this.chunk;;){var n=this.getCode();switch(n){case-2:this.text+="".concat(i.slice(t,this.prevI),"\n"),t=this.i,n=10;break;case-1:return this.text+=i.slice(t),!1}if(n===e)return this.text+=i.slice(t,this.prevI),!0}}},{key:"captureNameChars",value:function(){for(var e=this.chunk,t=this.i;;){var i=this.getCode();if(-1===i)return this.name+=e.slice(t),-1;if(!m(i))return this.name+=e.slice(t,this.prevI),-2===i?10:i}}},{key:"skipSpaces",value:function(){for(;;){var e=this.getCodeNorm();if(-1===e||!f(e))return e}}},{key:"setXMLVersion",value:function(e){this.currentXMLVersion=e,"1.0"===e?(this.isChar=h,this.getCode=this.getCode10):(this.isChar=b,this.getCode=this.getCode11)}},{key:"sBegin",value:function(){65279===this.chunk.charCodeAt(0)&&(this.i++,this.column++),this.state=1}},{key:"sBeginWhitespace",value:function(){var e=this.i,t=this.skipSpaces();switch(this.prevI!==e&&(this.xmlDeclPossible=!1),t){case 60:if(this.state=15,0!==this.text.length)throw new Error("no-empty text at start");break;case-1:break;default:this.unget(),this.state=13,this.xmlDeclPossible=!1}}},{key:"sDoctype",value:function(){var e,t=this.captureTo(L);switch(t){case 62:null===(e=this.doctypeHandler)||void 0===e||e.call(this,this.text),this.text="",this.state=13,this.doctype=!0;break;case-1:break;default:this.text+=String.fromCodePoint(t),91===t?this.state=4:R(t)&&(this.state=3,this.q=t)}}},{key:"sDoctypeQuote",value:function(){var e=this.q;this.captureToChar(e)&&(this.text+=String.fromCodePoint(e),this.q=null,this.state=2)}},{key:"sDTD",value:function(){var e=this.captureTo(O);-1!==e&&(this.text+=String.fromCodePoint(e),93===e?this.state=2:60===e?this.state=6:R(e)&&(this.state=5,this.q=e))}},{key:"sDTDQuoted",value:function(){var e=this.q;this.captureToChar(e)&&(this.text+=String.fromCodePoint(e),this.state=4,this.q=null)}},{key:"sDTDOpenWaka",value:function(){var e=this.getCodeNorm();switch(this.text+=String.fromCodePoint(e),e){case 33:this.state=7,this.openWakaBang="";break;case k:this.state=11;break;default:this.state=4}}},{key:"sDTDOpenWakaBang",value:function(){var e=String.fromCodePoint(this.getCodeNorm()),t=this.openWakaBang+=e;this.text+=e,"-"!==t&&(this.state="--"===t?8:4,this.openWakaBang="")}},{key:"sDTDComment",value:function(){this.captureToChar(45)&&(this.text+="-",this.state=9)}},{key:"sDTDCommentEnding",value:function(){var e=this.getCodeNorm();this.text+=String.fromCodePoint(e),this.state=45===e?10:8}},{key:"sDTDCommentEnded",value:function(){var e=this.getCodeNorm();this.text+=String.fromCodePoint(e),62===e?this.state=4:(this.fail("malformed comment."),this.state=8)}},{key:"sDTDPI",value:function(){this.captureToChar(k)&&(this.text+="?",this.state=12)}},{key:"sDTDPIEnding",value:function(){var e=this.getCodeNorm();this.text+=String.fromCodePoint(e),62===e&&(this.state=4)}},{key:"sText",value:function(){0!==this.tags.length?this.handleTextInRoot():this.handleTextOutsideRoot()}},{key:"sEntity",value:function(){var e=this.i,t=this.chunk;e:for(;;)switch(this.getCode()){case-2:this.entity+="".concat(t.slice(e,this.prevI),"\n"),e=this.i;break;case 59:var i=this.entityReturnState,n=this.entity+t.slice(e,this.prevI);this.state=i;var a=void 0;""===n?(this.fail("empty entity name."),a="&;"):(a=this.parseEntity(n),this.entity=""),13===i&&void 0===this.textHandler||(this.text+=a);break e;case-1:this.entity+=t.slice(e);break e}}},{key:"sOpenWaka",value:function(){var e=this.getCode();if(p(e))this.state=34,this.unget(),this.xmlDeclPossible=!1;else switch(e){case 47:this.state=43,this.xmlDeclPossible=!1;break;case 33:this.state=16,this.openWakaBang="",this.xmlDeclPossible=!1;break;case k:this.state=23;break;default:this.fail("disallowed character in tag name"),this.state=13,this.xmlDeclPossible=!1}}},{key:"sOpenWakaBang",value:function(){switch(this.openWakaBang+=String.fromCodePoint(this.getCodeNorm()),this.openWakaBang){case"[CDATA[":this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0),this.state=20,this.openWakaBang="";break;case"--":this.state=17,this.openWakaBang="";break;case"DOCTYPE":this.state=2,(this.doctype||this.sawRoot)&&this.fail("inappropriately located doctype declaration."),this.openWakaBang="";break;default:this.openWakaBang.length>=7&&this.fail("incorrect syntax.")}}},{key:"sComment",value:function(){this.captureToChar(45)&&(this.state=18)}},{key:"sCommentEnding",value:function(){var e,t=this.getCodeNorm();45===t?(this.state=19,null===(e=this.commentHandler)||void 0===e||e.call(this,this.text),this.text=""):(this.text+="-".concat(String.fromCodePoint(t)),this.state=17)}},{key:"sCommentEnded",value:function(){var e=this.getCodeNorm();62!==e?(this.fail("malformed comment."),this.text+="--".concat(String.fromCodePoint(e)),this.state=17):this.state=13}},{key:"sCData",value:function(){this.captureToChar(93)&&(this.state=21)}},{key:"sCDataEnding",value:function(){var e=this.getCodeNorm();93===e?this.state=22:(this.text+="]".concat(String.fromCodePoint(e)),this.state=20)}},{key:"sCDataEnding2",value:function(){var e,t=this.getCodeNorm();switch(t){case 62:null===(e=this.cdataHandler)||void 0===e||e.call(this,this.text),this.text="",this.state=13;break;case 93:this.text+="]";break;default:this.text+="]]".concat(String.fromCodePoint(t)),this.state=20}}},{key:"sPIFirstChar",value:function(){var e=this.getCodeNorm();this.nameStartCheck(e)?(this.piTarget+=String.fromCodePoint(e),this.state=24):e===k||f(e)?(this.fail("processing instruction without a target."),this.state=e===k?26:25):(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(e),this.state=24)}},{key:"sPIRest",value:function(){for(var e=this.chunk,t=this.i;;){var i=this.getCodeNorm();if(-1===i)return void(this.piTarget+=e.slice(t));if(!this.nameCheck(i)){this.piTarget+=e.slice(t,this.prevI);var n=i===k;n||f(i)?"xml"===this.piTarget?(this.xmlDeclPossible||this.fail("an XML declaration must be at the start of the document."),this.state=n?33:27):this.state=n?26:25:(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(i));break}}}},{key:"sPIBody",value:function(){if(0===this.text.length){var e=this.getCodeNorm();e===k?this.state=26:f(e)||(this.text=String.fromCodePoint(e))}else this.captureToChar(k)&&(this.state=26)}},{key:"sPIEnding",value:function(){var e,t=this.getCodeNorm();if(62===t){var i=this.piTarget;"xml"===i.toLowerCase()&&this.fail("the XML declaration must appear at the start of the document."),null===(e=this.piHandler)||void 0===e||e.call(this,{target:i,body:this.text}),this.piTarget=this.text="",this.state=13}else t===k?this.text+="?":(this.text+="?".concat(String.fromCodePoint(t)),this.state=25);this.xmlDeclPossible=!1}},{key:"sXMLDeclNameStart",value:function(){var e=this.skipSpaces();e!==k?-1!==e&&(this.state=28,this.name=String.fromCodePoint(e)):this.state=33}},{key:"sXMLDeclName",value:function(){var e=this.captureTo($);if(e===k)return this.state=33,this.name+=this.text,this.text="",void this.fail("XML declaration is incomplete.");if(f(e)||e===C){if(this.name+=this.text,this.text="",!this.xmlDeclExpects.includes(this.name))switch(this.name.length){case 0:this.fail("did not expect any more name/value pairs.");break;case 1:this.fail("expected the name ".concat(this.xmlDeclExpects[0],"."));break;default:this.fail("expected one of ".concat(this.xmlDeclExpects.join(", ")))}this.state=e===C?30:29}}},{key:"sXMLDeclEq",value:function(){var e=this.getCodeNorm();if(e===k)return this.state=33,void this.fail("XML declaration is incomplete.");f(e)||(e!==C&&this.fail("value required."),this.state=30)}},{key:"sXMLDeclValueStart",value:function(){var e=this.getCodeNorm();if(e===k)return this.state=33,void this.fail("XML declaration is incomplete.");f(e)||(R(e)?this.q=e:(this.fail("value must be quoted."),this.q=32),this.state=31)}},{key:"sXMLDeclValue",value:function(){var e=this.captureTo([this.q,k]);if(e===k)return this.state=33,this.text="",void this.fail("XML declaration is incomplete.");if(-1!==e){var t=this.text;switch(this.text="",this.name){case"version":this.xmlDeclExpects=["encoding","standalone"];var i=t;this.xmlDecl.version=i,/^1\.[0-9]+$/.test(i)?this.opt.forceXMLVersion||this.setXMLVersion(i):this.fail("version number must match /^1\\.[0-9]+$/.");break;case"encoding":/^[A-Za-z][A-Za-z0-9._-]*$/.test(t)||this.fail("encoding value must match /^[A-Za-z0-9][A-Za-z0-9._-]*$/."),this.xmlDeclExpects=["standalone"],this.xmlDecl.encoding=t;break;case"standalone":"yes"!==t&&"no"!==t&&this.fail('standalone value must match "yes" or "no".'),this.xmlDeclExpects=[],this.xmlDecl.standalone=t}this.name="",this.state=32}}},{key:"sXMLDeclSeparator",value:function(){var e=this.getCodeNorm();e!==k?(f(e)||(this.fail("whitespace required."),this.unget()),this.state=27):this.state=33}},{key:"sXMLDeclEnding",value:function(){var e;62===this.getCodeNorm()?("xml"!==this.piTarget?this.fail("processing instructions are not allowed before root."):"version"!==this.name&&this.xmlDeclExpects.includes("version")&&this.fail("XML declaration must contain a version."),null===(e=this.xmldeclHandler)||void 0===e||e.call(this,this.xmlDecl),this.name="",this.piTarget=this.text="",this.state=13):this.fail("The character ? is disallowed anywhere in XML declarations."),this.xmlDeclPossible=!1}},{key:"sOpenTag",value:function(){var e,t=this.captureNameChars();if(-1!==t){var i=this.tag={name:this.name,attributes:Object.create(null)};switch(this.name="",this.xmlnsOpt&&(this.topNS=i.ns=Object.create(null)),null===(e=this.openTagStartHandler)||void 0===e||e.call(this,i),this.sawRoot=!0,!this.fragmentOpt&&this.closedRoot&&this.fail("documents may contain only one root."),t){case 62:this.openTag();break;case 47:this.state=35;break;default:f(t)||this.fail("disallowed character in tag name."),this.state=36}}}},{key:"sOpenTagSlash",value:function(){62===this.getCode()?this.openSelfClosingTag():(this.fail("forward-slash in opening tag not followed by >."),this.state=36)}},{key:"sAttrib",value:function(){var e=this.skipSpaces();-1!==e&&(p(e)?(this.unget(),this.state=37):62===e?this.openTag():47===e?this.state=35:this.fail("disallowed character in attribute name."))}},{key:"sAttribName",value:function(){var e=this.captureNameChars();e===C?this.state=39:f(e)?this.state=38:62===e?(this.fail("attribute without value."),this.pushAttrib(this.name,this.name),this.name=this.text="",this.openTag()):-1!==e&&this.fail("disallowed character in attribute name.")}},{key:"sAttribNameSawWhite",value:function(){var e=this.skipSpaces();switch(e){case-1:return;case C:this.state=39;break;default:this.fail("attribute without value."),this.text="",this.name="",62===e?this.openTag():p(e)?(this.unget(),this.state=37):(this.fail("disallowed character in attribute name."),this.state=36)}}},{key:"sAttribValue",value:function(){var e=this.getCodeNorm();R(e)?(this.q=e,this.state=40):f(e)||(this.fail("unquoted attribute value."),this.state=42,this.unget())}},{key:"sAttribValueQuoted",value:function(){for(var e=this.q,t=this.chunk,i=this.i;;)switch(this.getCode()){case e:return this.pushAttrib(this.name,this.text+t.slice(i,this.prevI)),this.name=this.text="",this.q=null,void(this.state=41);case 38:return this.text+=t.slice(i,this.prevI),this.state=14,void(this.entityReturnState=40);case 10:case-2:case 9:this.text+="".concat(t.slice(i,this.prevI)," "),i=this.i;break;case 60:return this.text+=t.slice(i,this.prevI),void this.fail("disallowed character.");case-1:return void(this.text+=t.slice(i))}}},{key:"sAttribValueClosed",value:function(){var e=this.getCodeNorm();f(e)?this.state=36:62===e?this.openTag():47===e?this.state=35:p(e)?(this.fail("no whitespace between attributes."),this.unget(),this.state=37):this.fail("disallowed character in attribute name.")}},{key:"sAttribValueUnquoted",value:function(){var e=this.captureTo(N);switch(e){case 38:this.state=14,this.entityReturnState=42;break;case 60:this.fail("disallowed character.");break;case-1:break;default:this.text.includes("]]>")&&this.fail('the string "]]>" is disallowed in char data.'),this.pushAttrib(this.name,this.text),this.name=this.text="",62===e?this.openTag():this.state=36}}},{key:"sCloseTag",value:function(){var e=this.captureNameChars();62===e?this.closeTag():f(e)?this.state=44:-1!==e&&this.fail("disallowed character in closing tag.")}},{key:"sCloseTagSawWhite",value:function(){switch(this.skipSpaces()){case 62:this.closeTag();break;case-1:break;default:this.fail("disallowed character in closing tag.")}}},{key:"handleTextInRoot",value:function(){var e=this.i,t=this.forbiddenState,i=this.chunk,n=this.textHandler;e:for(;;)switch(this.getCode()){case 60:if(this.state=15,void 0!==n){var a=this.text,r=i.slice(e,this.prevI);0!==a.length?(n(a+r),this.text=""):0!==r.length&&n(r)}t=0;break e;case 38:this.state=14,this.entityReturnState=13,void 0!==n&&(this.text+=i.slice(e,this.prevI)),t=0;break e;case 93:switch(t){case 0:t=1;break;case 1:t=2;break;case 2:break;default:throw new Error("impossible state")}break;case 62:2===t&&this.fail('the string "]]>" is disallowed in char data.'),t=0;break;case-2:void 0!==n&&(this.text+="".concat(i.slice(e,this.prevI),"\n")),e=this.i,t=0;break;case-1:void 0!==n&&(this.text+=i.slice(e));break e;default:t=0}this.forbiddenState=t}},{key:"handleTextOutsideRoot",value:function(){var e=this.i,t=this.chunk,i=this.textHandler,n=!1;e:for(;;){var a=this.getCode();switch(a){case 60:if(this.state=15,void 0!==i){var r=this.text,o=t.slice(e,this.prevI);0!==r.length?(i(r+o),this.text=""):0!==o.length&&i(o)}break e;case 38:this.state=14,this.entityReturnState=13,void 0!==i&&(this.text+=t.slice(e,this.prevI)),n=!0;break e;case-2:void 0!==i&&(this.text+="".concat(t.slice(e,this.prevI),"\n")),e=this.i;break;case-1:void 0!==i&&(this.text+=t.slice(e));break e;default:f(a)||(n=!0)}}n&&(this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0))}},{key:"pushAttribNS",value:function(e,t){var i,n=this.qname(e),a=n.prefix,r=n.local,o={name:e,prefix:a,local:r,value:t};if(this.attribList.push(o),null===(i=this.attributeHandler)||void 0===i||i.call(this,o),"xmlns"===a){var s=t.trim();"1.0"===this.currentXMLVersion&&""===s&&this.fail("invalid attempt to undefine prefix in XML 1.0"),this.topNS[r]=s,A(this,r,s)}else if("xmlns"===e){var l=t.trim();this.topNS[""]=l,A(this,"",l)}}},{key:"pushAttribPlain",value:function(e,t){var i,n={name:e,value:t};this.attribList.push(n),null===(i=this.attributeHandler)||void 0===i||i.call(this,n)}},{key:"end",value:function(){var e,t;this.sawRoot||this.fail("document must contain a root element.");for(var i=this.tags;i.length>0;){var n=i.pop();this.fail("unclosed tag: ".concat(n.name))}0!==this.state&&13!==this.state&&this.fail("unexpected end.");var a=this.text;return 0!==a.length&&(null===(e=this.textHandler)||void 0===e||e.call(this,a),this.text=""),this._closed=!0,null===(t=this.endHandler)||void 0===t||t.call(this),this._init(),this}},{key:"resolve",value:function(e){var t,i,n=this.topNS[e];if(void 0!==n)return n;for(var a=this.tags,r=a.length-1;r>=0;r--)if(void 0!==(n=a[r].ns[e]))return n;return void 0!==(n=this.ns[e])?n:null===(i=(t=this.opt).resolvePrefix)||void 0===i?void 0:i.call(t,e)}},{key:"qname",value:function(e){var t=e.indexOf(":");if(-1===t)return{prefix:"",local:e};var i=e.slice(t+1),n=e.slice(0,t);return(""===n||""===i||i.includes(":"))&&this.fail("malformed name: ".concat(e,".")),{prefix:n,local:i}}},{key:"processAttribsNS",value:function(){var e,t=this.attribList,i=this.tag,a=this.qname(i.name),r=a.prefix,o=a.local;i.prefix=r,i.local=o;var s=i.uri=null!==(e=this.resolve(r))&&void 0!==e?e:"";if(""!==r&&("xmlns"===r&&this.fail('tags may not have "xmlns" as prefix.'),""===s&&(this.fail("unbound namespace prefix: ".concat(JSON.stringify(r),".")),i.uri=r)),0!==t.length){var l,c=i.attributes,u=new Set,d=n(t);try{for(d.s();!(l=d.n()).done;){var f=l.value,h=f.name,p=f.prefix,m=f.local,g=void 0,v=void 0;""===p?(g="xmlns"===h?x:"",v=h):(void 0===(g=this.resolve(p))&&(this.fail("unbound namespace prefix: ".concat(JSON.stringify(p),".")),g=p),v="{".concat(g,"}").concat(m)),u.has(v)&&this.fail("duplicate attribute: ".concat(v,".")),u.add(v),f.uri=g,c[h]=f}}catch(e){d.e(e)}finally{d.f()}this.attribList=[]}}},{key:"processAttribsPlain",value:function(){var e,t=this.attribList,i=this.tag.attributes,a=n(t);try{for(a.s();!(e=a.n()).done;){var r=e.value,o=r.name,s=r.value;void 0!==i[o]&&this.fail("duplicate attribute: ".concat(o,".")),i[o]=s}}catch(e){a.e(e)}finally{a.f()}this.attribList=[]}},{key:"openTag",value:function(){var e;this.processAttribs();var t=this.tags,i=this.tag;i.isSelfClosing=!1,null===(e=this.openTagHandler)||void 0===e||e.call(this,i),t.push(i),this.state=13,this.name=""}},{key:"openSelfClosingTag",value:function(){var e,t,i;this.processAttribs();var n=this.tags,a=this.tag;a.isSelfClosing=!0,null===(e=this.openTagHandler)||void 0===e||e.call(this,a),null===(t=this.closeTagHandler)||void 0===t||t.call(this,a),null===(this.tag=null!==(i=n[n.length-1])&&void 0!==i?i:null)&&(this.closedRoot=!0),this.state=13,this.name=""}},{key:"closeTag",value:function(){var e=this.tags,t=this.name;if(this.state=13,this.name="",""===t)return this.fail("weird empty close tag."),void(this.text+="</>");for(var i=this.closeTagHandler,n=e.length;n-- >0;){var a=this.tag=e.pop();if(this.topNS=a.ns,null==i||i(a),a.name===t)break;this.fail("unexpected close tag.")}0===n?this.closedRoot=!0:n<0&&(this.fail("unmatched closing tag: ".concat(t,".")),this.text+="</".concat(t,">"))}},{key:"parseEntity",value:function(e){if("#"!==e[0]){var t=this.ENTITIES[e];return void 0!==t?t:(this.fail(this.isName(e)?"undefined entity.":"disallowed character in entity name."),"&".concat(e,";"))}var i=NaN;return"x"===e[1]&&/^#x[0-9a-f]+$/i.test(e)?i=parseInt(e.slice(2),16):/^#[0-9]+$/.test(e)&&(i=parseInt(e.slice(1),10)),this.isChar(i)?String.fromCodePoint(i):(this.fail("malformed character entity."),"&".concat(e,";"))}},{key:"closed",get:function(){return this._closed}},{key:"position",get:function(){return this.chunkPosition+this.i}},{key:"columnIndex",get:function(){return this.position-this.positionAtNewLine}}])&&r(t.prototype,i),o&&r(t,o),e}();i.SaxesParser=F},{"xmlchars/xml/1.0/ed5":541,"xmlchars/xml/1.1/ed2":542,"xmlchars/xmlns/1.0/ed3":543}],497:[function(e,t,i){(function(e){"use strict";t.exports="function"==typeof e?e:function(){var e=[].slice.apply(arguments);e.splice(1,0,0),setTimeout.apply(null,e)}}).call(this,e("timers").setImmediate)},{timers:521}],498:[function(e,t,i){"use strict";var n=e("safe-buffer").Buffer;function a(e,t){this._block=n.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}a.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=n.from(e,t));for(var i=this._block,a=this._blockSize,r=e.length,o=this._len,s=0;s<r;){for(var l=o%a,c=Math.min(r-s,a-l),u=0;u<c;u++)i[l+u]=e[s+u];s+=c,(o+=c)%a==0&&this._update(i)}return this._len+=r,this},a.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var i=8*this._len;if(i<=4294967295)this._block.writeUInt32BE(i,this._blockSize-4);else{var n=(4294967295&i)>>>0,a=(i-n)/4294967296;this._block.writeUInt32BE(a,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var r=this._hash();return e?r.toString(e):r},a.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=a},{"safe-buffer":494}],499:[function(e,t,i){"use strict";var n=t.exports=function(e){e=e.toLowerCase();var t=n[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t};n.sha=e("./sha"),n.sha1=e("./sha1"),n.sha224=e("./sha224"),n.sha256=e("./sha256"),n.sha384=e("./sha384"),n.sha512=e("./sha512")},{"./sha":500,"./sha1":501,"./sha224":502,"./sha256":503,"./sha384":504,"./sha512":505}],500:[function(e,t,i){"use strict";var n=e("inherits"),a=e("./hash"),r=e("safe-buffer").Buffer,o=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function l(){this.init(),this._w=s,a.call(this,64,56)}function c(e){return e<<30|e>>>2}function u(e,t,i,n){return 0===e?t&i|~t&n:2===e?t&i|t&n|i&n:t^i^n}n(l,a),l.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},l.prototype._update=function(e){for(var t,i=this._w,n=0|this._a,a=0|this._b,r=0|this._c,s=0|this._d,l=0|this._e,d=0;d<16;++d)i[d]=e.readInt32BE(4*d);for(;d<80;++d)i[d]=i[d-3]^i[d-8]^i[d-14]^i[d-16];for(var f=0;f<80;++f){var h=~~(f/20),p=0|((t=n)<<5|t>>>27)+u(h,a,r,s)+l+i[f]+o[h];l=s,s=r,r=c(a),a=n,n=p}this._a=n+this._a|0,this._b=a+this._b|0,this._c=r+this._c|0,this._d=s+this._d|0,this._e=l+this._e|0},l.prototype._hash=function(){var e=r.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},t.exports=l},{"./hash":498,inherits:387,"safe-buffer":494}],501:[function(e,t,i){"use strict";var n=e("inherits"),a=e("./hash"),r=e("safe-buffer").Buffer,o=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function l(){this.init(),this._w=s,a.call(this,64,56)}function c(e){return e<<5|e>>>27}function u(e){return e<<30|e>>>2}function d(e,t,i,n){return 0===e?t&i|~t&n:2===e?t&i|t&n|i&n:t^i^n}n(l,a),l.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},l.prototype._update=function(e){for(var t,i=this._w,n=0|this._a,a=0|this._b,r=0|this._c,s=0|this._d,l=0|this._e,f=0;f<16;++f)i[f]=e.readInt32BE(4*f);for(;f<80;++f)i[f]=(t=i[f-3]^i[f-8]^i[f-14]^i[f-16])<<1|t>>>31;for(var h=0;h<80;++h){var p=~~(h/20),m=c(n)+d(p,a,r,s)+l+i[h]+o[p]|0;l=s,s=r,r=u(a),a=n,n=m}this._a=n+this._a|0,this._b=a+this._b|0,this._c=r+this._c|0,this._d=s+this._d|0,this._e=l+this._e|0},l.prototype._hash=function(){var e=r.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},t.exports=l},{"./hash":498,inherits:387,"safe-buffer":494}],502:[function(e,t,i){"use strict";var n=e("inherits"),a=e("./sha256"),r=e("./hash"),o=e("safe-buffer").Buffer,s=new Array(64);function l(){this.init(),this._w=s,r.call(this,64,56)}n(l,a),l.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},l.prototype._hash=function(){var e=o.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},t.exports=l},{"./hash":498,"./sha256":503,inherits:387,"safe-buffer":494}],503:[function(e,t,i){"use strict";var n=e("inherits"),a=e("./hash"),r=e("safe-buffer").Buffer,o=[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],s=new Array(64);function l(){this.init(),this._w=s,a.call(this,64,56)}function c(e,t,i){return i^e&(t^i)}function u(e,t,i){return e&t|i&(e|t)}function d(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function f(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function h(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}n(l,a),l.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},l.prototype._update=function(e){for(var t,i=this._w,n=0|this._a,a=0|this._b,r=0|this._c,s=0|this._d,l=0|this._e,p=0|this._f,m=0|this._g,g=0|this._h,v=0;v<16;++v)i[v]=e.readInt32BE(4*v);for(;v<64;++v)i[v]=0|(((t=i[v-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+i[v-7]+h(i[v-15])+i[v-16];for(var b=0;b<64;++b){var y=g+f(l)+c(l,p,m)+o[b]+i[b]|0,w=d(n)+u(n,a,r)|0;g=m,m=p,p=l,l=s+y|0,s=r,r=a,a=n,n=y+w|0}this._a=n+this._a|0,this._b=a+this._b|0,this._c=r+this._c|0,this._d=s+this._d|0,this._e=l+this._e|0,this._f=p+this._f|0,this._g=m+this._g|0,this._h=g+this._h|0},l.prototype._hash=function(){var e=r.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},t.exports=l},{"./hash":498,inherits:387,"safe-buffer":494}],504:[function(e,t,i){"use strict";var n=e("inherits"),a=e("./sha512"),r=e("./hash"),o=e("safe-buffer").Buffer,s=new Array(160);function l(){this.init(),this._w=s,r.call(this,128,112)}n(l,a),l.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},l.prototype._hash=function(){var e=o.allocUnsafe(48);function t(t,i,n){e.writeInt32BE(t,n),e.writeInt32BE(i,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},t.exports=l},{"./hash":498,"./sha512":505,inherits:387,"safe-buffer":494}],505:[function(e,t,i){"use strict";var n=e("inherits"),a=e("./hash"),r=e("safe-buffer").Buffer,o=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160);function l(){this.init(),this._w=s,a.call(this,128,112)}function c(e,t,i){return i^e&(t^i)}function u(e,t,i){return e&t|i&(e|t)}function d(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function f(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function h(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function g(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function v(e,t){return e>>>0<t>>>0?1:0}n(l,a),l.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},l.prototype._update=function(e){for(var t=this._w,i=0|this._ah,n=0|this._bh,a=0|this._ch,r=0|this._dh,s=0|this._eh,l=0|this._fh,b=0|this._gh,y=0|this._hh,w=0|this._al,_=0|this._bl,I=0|this._cl,x=0|this._dl,S=0|this._el,T=0|this._fl,C=0|this._gl,k=0|this._hl,R=0;R<32;R+=2)t[R]=e.readInt32BE(4*R),t[R+1]=e.readInt32BE(4*R+4);for(;R<160;R+=2){var D=t[R-30],L=t[R-30+1],O=h(D,L),$=p(L,D),N=m(D=t[R-4],L=t[R-4+1]),A=g(L,D),P=t[R-14],E=t[R-14+1],M=t[R-32],F=t[R-32+1],j=$+E|0,V=O+P+v(j,$)|0;V=(V=V+N+v(j=j+A|0,A)|0)+M+v(j=j+F|0,F)|0,t[R]=V,t[R+1]=j}for(var q=0;q<160;q+=2){V=t[q],j=t[q+1];var z=u(i,n,a),B=u(w,_,I),U=d(i,w),Q=d(w,i),H=f(s,S),G=f(S,s),W=o[q],Y=o[q+1],K=c(s,l,b),Z=c(S,T,C),X=k+G|0,J=y+H+v(X,k)|0;J=(J=(J=J+K+v(X=X+Z|0,Z)|0)+W+v(X=X+Y|0,Y)|0)+V+v(X=X+j|0,j)|0;var ee=Q+B|0,te=U+z+v(ee,Q)|0;y=b,k=C,b=l,C=T,l=s,T=S,s=r+J+v(S=x+X|0,x)|0,r=a,x=I,a=n,I=_,n=i,_=w,i=J+te+v(w=X+ee|0,X)|0}this._al=this._al+w|0,this._bl=this._bl+_|0,this._cl=this._cl+I|0,this._dl=this._dl+x|0,this._el=this._el+S|0,this._fl=this._fl+T|0,this._gl=this._gl+C|0,this._hl=this._hl+k|0,this._ah=this._ah+i+v(this._al,w)|0,this._bh=this._bh+n+v(this._bl,_)|0,this._ch=this._ch+a+v(this._cl,I)|0,this._dh=this._dh+r+v(this._dl,x)|0,this._eh=this._eh+s+v(this._el,S)|0,this._fh=this._fh+l+v(this._fl,T)|0,this._gh=this._gh+b+v(this._gl,C)|0,this._hh=this._hh+y+v(this._hl,k)|0},l.prototype._hash=function(){var e=r.allocUnsafe(64);function t(t,i,n){e.writeInt32BE(t,n),e.writeInt32BE(i,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},t.exports=l},{"./hash":498,inherits:387,"safe-buffer":494}],506:[function(e,t,i){"use strict";t.exports=a;var n=e("events").EventEmitter;function a(){n.call(this)}e("inherits")(a,n),a.Readable=e("readable-stream/readable.js"),a.Writable=e("readable-stream/writable.js"),a.Duplex=e("readable-stream/duplex.js"),a.Transform=e("readable-stream/transform.js"),a.PassThrough=e("readable-stream/passthrough.js"),a.Stream=a,a.prototype.pipe=function(e,t){var i=this;function a(t){e.writable&&!1===e.write(t)&&i.pause&&i.pause()}function r(){i.readable&&i.resume&&i.resume()}i.on("data",a),e.on("drain",r),e._isStdio||t&&!1===t.end||(i.on("end",s),i.on("close",l));var o=!1;function s(){o||(o=!0,e.end())}function l(){o||(o=!0,"function"==typeof e.destroy&&e.destroy())}function c(e){if(u(),0===n.listenerCount(this,"error"))throw e}function u(){i.removeListener("data",a),e.removeListener("drain",r),i.removeListener("end",s),i.removeListener("close",l),i.removeListener("error",c),e.removeListener("error",c),i.removeListener("end",u),i.removeListener("close",u),e.removeListener("close",u)}return i.on("error",c),e.on("error",c),i.on("end",u),i.on("close",u),e.on("close",u),e.emit("pipe",i),e}},{events:367,inherits:387,"readable-stream/duplex.js":507,"readable-stream/passthrough.js":516,"readable-stream/readable.js":517,"readable-stream/transform.js":518,"readable-stream/writable.js":519}],507:[function(e,t,i){"use strict";t.exports=e("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":508}],508:[function(e,t,i){"use strict";var n=e("process-nextick-args"),a=Object.keys||function(e){var t=[];for(var i in e)t.push(i);return t};t.exports=d;var r=Object.create(e("core-util-is"));r.inherits=e("inherits");var o=e("./_stream_readable"),s=e("./_stream_writable");r.inherits(d,o);for(var l=a(s.prototype),c=0;c<l.length;c++){var u=l[c];d.prototype[u]||(d.prototype[u]=s.prototype[u])}function d(e){if(!(this instanceof d))return new d(e);o.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",f)}function f(){this.allowHalfOpen||this._writableState.ended||n.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(d.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(d.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),d.prototype._destroy=function(e,t){this.push(null),this.end(),n.nextTick(t,e)}},{"./_stream_readable":510,"./_stream_writable":512,"core-util-is":328,inherits:387,"process-nextick-args":466}],509:[function(e,t,i){"use strict";t.exports=r;var n=e("./_stream_transform"),a=Object.create(e("core-util-is"));function r(e){if(!(this instanceof r))return new r(e);n.call(this,e)}a.inherits=e("inherits"),a.inherits(r,n),r.prototype._transform=function(e,t,i){i(null,e)}},{"./_stream_transform":511,"core-util-is":328,inherits:387}],510:[function(e,i,n){(function(t,n){"use strict";var a=e("process-nextick-args");i.exports=y;var r,o=e("isarray");y.ReadableState=b,e("events").EventEmitter;var s=function(e,t){return e.listeners(t).length},l=e("./internal/streams/stream"),c=e("safe-buffer").Buffer,u=n.Uint8Array||function(){},d=Object.create(e("core-util-is"));d.inherits=e("inherits");var f=e("util"),h=void 0;h=f&&f.debuglog?f.debuglog("stream"):function(){};var p,m=e("./internal/streams/BufferList"),g=e("./internal/streams/destroy");d.inherits(y,l);var v=["error","close","destroy","pause","resume"];function b(t,i){t=t||{};var n=i instanceof(r=r||e("./_stream_duplex"));this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var a=t.highWaterMark,o=t.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=a||0===a?a:n&&(o||0===o)?o:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(p||(p=e("string_decoder/").StringDecoder),this.decoder=new p(t.encoding),this.encoding=t.encoding)}function y(t){if(r=r||e("./_stream_duplex"),!(this instanceof y))return new y(t);this._readableState=new b(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),l.call(this)}function w(e,t,i,n,a){var r,o=e._readableState;return null===t?(o.reading=!1,function(e,t){if(!t.ended){if(t.decoder){var i=t.decoder.end();i&&i.length&&(t.buffer.push(i),t.length+=t.objectMode?1:i.length)}t.ended=!0,x(e)}}(e,o)):(a||(r=function(e,t){var i,n;return n=t,c.isBuffer(n)||n instanceof u||"string"==typeof t||void 0===t||e.objectMode||(i=new TypeError("Invalid non-string/buffer chunk")),i}(o,t)),r?e.emit("error",r):o.objectMode||t&&t.length>0?("string"==typeof t||o.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),n?o.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):_(e,o,t,!0):o.ended?e.emit("error",new Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!i?(t=o.decoder.write(t),o.objectMode||0!==t.length?_(e,o,t,!1):T(e,o)):_(e,o,t,!1))):n||(o.reading=!1)),function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(o)}function _(e,t,i,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",i),e.read(0)):(t.length+=t.objectMode?1:i.length,n?t.buffer.unshift(i):t.buffer.push(i),t.needReadable&&x(e)),T(e,t)}function I(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=8388608?e=8388608:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function x(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(h("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?a.nextTick(S,e):S(e))}function S(e){h("emit readable"),e.emit("readable"),D(e)}function T(e,t){t.readingMore||(t.readingMore=!0,a.nextTick(C,e,t))}function C(e,t){for(var i=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(h("maybeReadMore read 0"),e.read(0),i!==t.length);)i=t.length;t.readingMore=!1}function k(e){h("readable nexttick read 0"),e.read(0)}function R(e,t){t.reading||(h("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),D(e),t.flowing&&!t.reading&&e.read(0)}function D(e){var t=e._readableState;for(h("flow",t.flowing);t.flowing&&null!==e.read(););}function L(e,t){return 0===t.length?null:(t.objectMode?i=t.buffer.shift():!e||e>=t.length?(i=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):i=function(e,t,i){var n;return e<t.head.data.length?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):n=e===t.head.data.length?t.shift():i?function(e,t){var i=t.head,n=1,a=i.data;for(e-=a.length;i=i.next;){var r=i.data,o=e>r.length?r.length:e;if(o===r.length?a+=r:a+=r.slice(0,e),0===(e-=o)){o===r.length?(++n,i.next?t.head=i.next:t.head=t.tail=null):(t.head=i,i.data=r.slice(o));break}++n}return t.length-=n,a}(e,t):function(e,t){var i=c.allocUnsafe(e),n=t.head,a=1;for(n.data.copy(i),e-=n.data.length;n=n.next;){var r=n.data,o=e>r.length?r.length:e;if(r.copy(i,i.length-e,0,o),0===(e-=o)){o===r.length?(++a,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=r.slice(o));break}++a}return t.length-=a,i}(e,t),n}(e,t.buffer,t.decoder),i);var i}function O(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,a.nextTick($,t,e))}function $(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function N(e,t){for(var i=0,n=e.length;i<n;i++)if(e[i]===t)return i;return-1}Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),y.prototype.destroy=g.destroy,y.prototype._undestroy=g.undestroy,y.prototype._destroy=function(e,t){this.push(null),t(e)},y.prototype.push=function(e,t){var i,n=this._readableState;return n.objectMode?i=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=c.from(e,t),t=""),i=!0),w(this,e,t,!1,i)},y.prototype.unshift=function(e){return w(this,e,null,!0,!1)},y.prototype.isPaused=function(){return!1===this._readableState.flowing},y.prototype.setEncoding=function(t){return p||(p=e("string_decoder/").StringDecoder),this._readableState.decoder=new p(t),this._readableState.encoding=t,this},y.prototype.read=function(e){h("read",e),e=parseInt(e,10);var t=this._readableState,i=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return h("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?O(this):x(this),null;if(0===(e=I(e,t))&&t.ended)return 0===t.length&&O(this),null;var n,a=t.needReadable;return h("need readable",a),(0===t.length||t.length-e<t.highWaterMark)&&h("length less than watermark",a=!0),t.ended||t.reading?h("reading or ended",a=!1):a&&(h("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=I(i,t))),null===(n=e>0?L(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),i!==e&&t.ended&&O(this)),null!==n&&this.emit("data",n),n},y.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},y.prototype.pipe=function(e,i){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e)}r.pipesCount+=1,h("pipe count=%d opts=%j",r.pipesCount,i);var l=i&&!1===i.end||e===t.stdout||e===t.stderr?y:u;function c(t,i){h("onunpipe"),t===n&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,h("cleanup"),e.removeListener("close",v),e.removeListener("finish",b),e.removeListener("drain",d),e.removeListener("error",g),e.removeListener("unpipe",c),n.removeListener("end",u),n.removeListener("end",y),n.removeListener("data",m),f=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||d())}function u(){h("onend"),e.end()}r.endEmitted?a.nextTick(l):n.once("end",l),e.on("unpipe",c);var d=function(e){return function(){var t=e._readableState;h("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,D(e))}}(n);e.on("drain",d);var f=!1,p=!1;function m(t){h("ondata"),p=!1,!1!==e.write(t)||p||((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==N(r.pipes,e))&&!f&&(h("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,p=!0),n.pause())}function g(t){h("onerror",t),y(),e.removeListener("error",g),0===s(e,"error")&&e.emit("error",t)}function v(){e.removeListener("finish",b),y()}function b(){h("onfinish"),e.removeListener("close",v),y()}function y(){h("unpipe"),n.unpipe(e)}return n.on("data",m),function(e,t,i){if("function"==typeof e.prependListener)return e.prependListener(t,i);e._events&&e._events[t]?o(e._events[t])?e._events[t].unshift(i):e._events[t]=[i,e._events[t]]:e.on(t,i)}(e,"error",g),e.once("close",v),e.once("finish",b),e.emit("pipe",n),r.flowing||(h("pipe resume"),n.resume()),e},y.prototype.unpipe=function(e){var t=this._readableState,i={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,i)),this;if(!e){var n=t.pipes,a=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var r=0;r<a;r++)n[r].emit("unpipe",this,i);return this}var o=N(t.pipes,e);return-1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,i)),this},y.prototype.on=function(e,t){var i=l.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&x(this):a.nextTick(k,this))}return i},y.prototype.addListener=y.prototype.on,y.prototype.resume=function(){var e=this._readableState;return e.flowing||(h("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,a.nextTick(R,e,t))}(this,e)),this},y.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this},y.prototype.wrap=function(e){var t=this,i=this._readableState,n=!1;for(var a in e.on("end",(function(){if(h("wrapped end"),i.decoder&&!i.ended){var e=i.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(a){h("wrapped data"),i.decoder&&(a=i.decoder.write(a)),i.objectMode&&null==a||(i.objectMode||a&&a.length)&&(t.push(a)||(n=!0,e.pause()))})),e)void 0===this[a]&&"function"==typeof e[a]&&(this[a]=function(t){return function(){return e[t].apply(e,arguments)}}(a));for(var r=0;r<v.length;r++)e.on(v[r],this.emit.bind(this,v[r]));return this._read=function(t){h("wrapped _read",t),n&&(n=!1,e.resume())},this},Object.defineProperty(y.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),y._fromList=L}).call(this,e("_process"),"undefined"!=typeof t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./_stream_duplex":508,"./internal/streams/BufferList":513,"./internal/streams/destroy":514,"./internal/streams/stream":515,_process:467,"core-util-is":328,events:367,inherits:387,isarray:389,"process-nextick-args":466,"safe-buffer":494,"string_decoder/":520,util:185}],511:[function(e,t,i){"use strict";t.exports=o;var n=e("./_stream_duplex"),a=Object.create(e("core-util-is"));function r(e,t){var i=this._transformState;i.transforming=!1;var n=i.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));i.writechunk=null,i.writecb=null,null!=t&&this.push(t),n(e);var a=this._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}function o(e){if(!(this instanceof o))return new o(e);n.call(this,e),this._transformState={afterTransform:r.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",s)}function s(){var e=this;"function"==typeof this._flush?this._flush((function(t,i){l(e,t,i)})):l(this,null,null)}function l(e,t,i){if(t)return e.emit("error",t);if(null!=i&&e.push(i),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}a.inherits=e("inherits"),a.inherits(o,n),o.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},o.prototype._transform=function(e,t,i){throw new Error("_transform() is not implemented")},o.prototype._write=function(e,t,i){var n=this._transformState;if(n.writecb=i,n.writechunk=e,n.writeencoding=t,!n.transforming){var a=this._readableState;(n.needTransform||a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}},o.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},o.prototype._destroy=function(e,t){var i=this;n.prototype._destroy.call(this,e,(function(e){t(e),i.emit("close")}))}},{"./_stream_duplex":508,"core-util-is":328,inherits:387}],512:[function(e,i,n){(function(t,n,a){"use strict";var r=e("process-nextick-args");function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,i){var n=e.entry;for(e.entry=null;n;){var a=n.callback;t.pendingcb--,a(i),n=n.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}i.exports=b;var s,l=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?a:r.nextTick;b.WritableState=v;var c=Object.create(e("core-util-is"));c.inherits=e("inherits");var u,d={deprecate:e("util-deprecate")},f=e("./internal/streams/stream"),h=e("safe-buffer").Buffer,p=n.Uint8Array||function(){},m=e("./internal/streams/destroy");function g(){}function v(t,i){s=s||e("./_stream_duplex"),t=t||{};var n=i instanceof s;this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var a=t.highWaterMark,c=t.writableHighWaterMark,u=this.objectMode?16:16384;this.highWaterMark=a||0===a?a:n&&(c||0===c)?c:u,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var d=!1===t.decodeStrings;this.decodeStrings=!d,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var i=e._writableState,n=i.sync,a=i.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(i),t)!function(e,t,i,n,a){--t.pendingcb,i?(r.nextTick(a,n),r.nextTick(S,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(a(n),e._writableState.errorEmitted=!0,e.emit("error",n),S(e,t))}(e,i,n,t,a);else{var o=I(i);o||i.corked||i.bufferProcessing||!i.bufferedRequest||_(e,i),n?l(w,e,i,o,a):w(e,i,o,a)}}(i,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function b(t){if(s=s||e("./_stream_duplex"),!(u.call(b,this)||this instanceof s))return new b(t);this._writableState=new v(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),f.call(this)}function y(e,t,i,n,a,r,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,i?e._writev(a,t.onwrite):e._write(a,r,t.onwrite),t.sync=!1}function w(e,t,i,n){i||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),S(e,t)}function _(e,t){t.bufferProcessing=!0;var i=t.bufferedRequest;if(e._writev&&i&&i.next){var n=t.bufferedRequestCount,a=new Array(n),r=t.corkedRequestsFree;r.entry=i;for(var s=0,l=!0;i;)a[s]=i,i.isBuf||(l=!1),i=i.next,s+=1;a.allBuffers=l,y(e,t,!0,t.length,a,"",r.finish),t.pendingcb++,t.lastBufferedRequest=null,r.next?(t.corkedRequestsFree=r.next,r.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;i;){var c=i.chunk,u=i.encoding,d=i.callback;if(y(e,t,!1,t.objectMode?1:c.length,c,u,d),i=i.next,t.bufferedRequestCount--,t.writing)break}null===i&&(t.lastBufferedRequest=null)}t.bufferedRequest=i,t.bufferProcessing=!1}function I(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function x(e,t){e._final((function(i){t.pendingcb--,i&&e.emit("error",i),t.prefinished=!0,e.emit("prefinish"),S(e,t)}))}function S(e,t){var i=I(t);return i&&(function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,r.nextTick(x,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),i}c.inherits(b,f),v.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(v.prototype,"buffer",{get:d.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(u=Function.prototype[Symbol.hasInstance],Object.defineProperty(b,Symbol.hasInstance,{value:function(e){return!!u.call(this,e)||this===b&&e&&e._writableState instanceof v}})):u=function(e){return e instanceof this},b.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},b.prototype.write=function(e,t,i){var n,a=this._writableState,o=!1,s=!a.objectMode&&(n=e,h.isBuffer(n)||n instanceof p);return s&&!h.isBuffer(e)&&(e=function(e){return h.from(e)}(e)),"function"==typeof t&&(i=t,t=null),s?t="buffer":t||(t=a.defaultEncoding),"function"!=typeof i&&(i=g),a.ended?function(e,t){var i=new Error("write after end");e.emit("error",i),r.nextTick(t,i)}(this,i):(s||function(e,t,i,n){var a=!0,o=!1;return null===i?o=new TypeError("May not write null values to stream"):"string"==typeof i||void 0===i||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),r.nextTick(n,o),a=!1),a}(this,a,e,i))&&(a.pendingcb++,o=function(e,t,i,n,a,r){if(!i){var o=function(e,t,i){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=h.from(t,i)),t}(t,n,a);n!==o&&(i=!0,a="buffer",n=o)}var s=t.objectMode?1:n.length;t.length+=s;var l=t.length<t.highWaterMark;if(l||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:a,isBuf:i,callback:r,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else y(e,t,!1,s,n,a,r);return l}(this,a,s,e,t,i)),o},b.prototype.cork=function(){this._writableState.corked++},b.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||_(this,e))},b.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(b.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),b.prototype._write=function(e,t,i){i(new Error("_write() is not implemented"))},b.prototype._writev=null,b.prototype.end=function(e,t,i){var n=this._writableState;"function"==typeof e?(i=e,e=null,t=null):"function"==typeof t&&(i=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||function(e,t,i){t.ending=!0,S(e,t),i&&(t.finished?r.nextTick(i):e.once("finish",i)),t.ended=!0,e.writable=!1}(this,n,i)},Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),b.prototype.destroy=m.destroy,b.prototype._undestroy=m.undestroy,b.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,e("_process"),"undefined"!=typeof t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("timers").setImmediate)},{"./_stream_duplex":508,"./internal/streams/destroy":514,"./internal/streams/stream":515,_process:467,"core-util-is":328,inherits:387,"process-nextick-args":466,"safe-buffer":494,timers:521,"util-deprecate":522}],513:[function(e,t,i){"use strict";var n=e("safe-buffer").Buffer,a=e("util");t.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,i=""+t.data;t=t.next;)i+=e+t.data;return i},e.prototype.concat=function(e){if(0===this.length)return n.alloc(0);if(1===this.length)return this.head.data;for(var t,i,a,r=n.allocUnsafe(e>>>0),o=this.head,s=0;o;)t=o.data,i=r,a=s,t.copy(i,a),s+=o.data.length,o=o.next;return r},e}(),a&&a.inspect&&a.inspect.custom&&(t.exports.prototype[a.inspect.custom]=function(){var e=a.inspect({length:this.length});return this.constructor.name+" "+e})},{"safe-buffer":494,util:185}],514:[function(e,t,i){"use strict";var n=e("process-nextick-args");function a(e,t){e.emit("error",t)}t.exports={destroy:function(e,t){var i=this,r=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return r||o?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||n.nextTick(a,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?(n.nextTick(a,i,e),i._writableState&&(i._writableState.errorEmitted=!0)):t&&t(e)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},{"process-nextick-args":466}],515:[function(e,t,i){arguments[4][490][0].apply(i,arguments)},{dup:490,events:367}],516:[function(e,t,i){"use strict";t.exports=e("./readable").PassThrough},{"./readable":517}],517:[function(e,t,i){"use strict";(i=t.exports=e("./lib/_stream_readable.js")).Stream=i,i.Readable=i,i.Writable=e("./lib/_stream_writable.js"),i.Duplex=e("./lib/_stream_duplex.js"),i.Transform=e("./lib/_stream_transform.js"),i.PassThrough=e("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":508,"./lib/_stream_passthrough.js":509,"./lib/_stream_readable.js":510,"./lib/_stream_transform.js":511,"./lib/_stream_writable.js":512}],518:[function(e,t,i){"use strict";t.exports=e("./readable").Transform},{"./readable":517}],519:[function(e,t,i){"use strict";t.exports=e("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":512}],520:[function(e,t,i){"use strict";var n=e("safe-buffer").Buffer,a=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function r(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===a||!a(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=l,this.end=c,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=u,this.end=d,t=3;break;default:return this.write=f,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,i=function(e,t,i){if(128!=(192&t[0]))return e.lastNeed=0,"<22>";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"<22>";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"<22>"}}(this,e);return void 0!==i?i:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function l(e,t){if((e.length-t)%2==0){var i=e.toString("utf16le",t);if(i){var n=i.charCodeAt(i.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],i.slice(0,-1)}return i}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var i=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,i)}return t}function u(e,t){var i=(e.length-t)%3;return 0===i?e.toString("base64",t):(this.lastNeed=3-i,this.lastTotal=3,1===i?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-i))}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function f(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}i.StringDecoder=r,r.prototype.write=function(e){if(0===e.length)return"";var t,i;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";i=this.lastNeed,this.lastNeed=0}else i=0;return i<e.length?t?t+this.text(e,i):this.text(e,i):t||""},r.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"<22>":t},r.prototype.text=function(e,t){var i=function(e,t,i){var n=t.length-1;if(n<i)return 0;var a=o(t[n]);return a>=0?(a>0&&(e.lastNeed=a-1),a):--n<i||-2===a?0:(a=o(t[n]))>=0?(a>0&&(e.lastNeed=a-2),a):--n<i||-2===a?0:(a=o(t[n]))>=0?(a>0&&(2===a?a=0:e.lastNeed=a-3),a):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=i;var n=e.length-(i-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},r.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},{"safe-buffer":494}],521:[function(e,t,i){(function(t,n){"use strict";var a=e("process/browser.js").nextTick,r=Function.prototype.apply,o=Array.prototype.slice,s={},l=0;function c(e,t){this._id=e,this._clearFn=t}i.setTimeout=function(){return new c(r.call(setTimeout,window,arguments),clearTimeout)},i.setInterval=function(){return new c(r.call(setInterval,window,arguments),clearInterval)},i.clearTimeout=i.clearInterval=function(e){e.close()},c.prototype.unref=c.prototype.ref=function(){},c.prototype.close=function(){this._clearFn.call(window,this._id)},i.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},i.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},i._unrefActive=i.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},i.setImmediate="function"==typeof t?t:function(e){var t=l++,n=!(arguments.length<2)&&o.call(arguments,1);return s[t]=!0,a((function(){s[t]&&(n?e.apply(null,n):e.call(null),i.clearImmediate(t))})),t},i.clearImmediate="function"==typeof n?n:function(e){delete s[e]}}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":467,timers:521}],522:[function(e,i,n){(function(e){"use strict";function t(t){try{if(!e.localStorage)return!1}catch(e){return!1}var i=e.localStorage[t];return null!=i&&"true"===String(i).toLowerCase()}i.exports=function(e,i){if(t("noDeprecation"))return e;var n=!1;return function(){if(!n){if(t("throwDeprecation"))throw new Error(i);t("traceDeprecation")?console.trace(i):console.warn(i),n=!0}return e.apply(this,arguments)}}}).call(this,"undefined"!=typeof t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],523:[function(e,t,i){"use strict";"function"==typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e}},{}],524:[function(e,t,i){"use strict";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)}t.exports=function(e){return e&&"object"===n(e)&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},{}],525:[function(e,i,n){(function(t,i){"use strict";function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r=/%[sdj%]/g;n.format=function(e){if(!b(e)){for(var t=[],i=0;i<arguments.length;i++)t.push(l(arguments[i]));return t.join(" ")}i=1;for(var n=arguments,a=n.length,o=String(e).replace(r,(function(e){if("%%"===e)return"%";if(i>=a)return e;switch(e){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch(e){return"[Circular]"}default:return e}})),s=n[i];i<a;s=n[++i])g(s)||!_(s)?o+=" "+s:o+=" "+l(s);return o},n.deprecate=function(e,a){if(y(i.process))return function(){return n.deprecate(e,a).apply(this,arguments)};if(!0===t.noDeprecation)return e;var r=!1;return function(){if(!r){if(t.throwDeprecation)throw new Error(a);t.traceDeprecation?console.trace(a):console.error(a),r=!0}return e.apply(this,arguments)}};var o,s={};function l(e,t){var i={seen:[],stylize:u};return arguments.length>=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),m(t)?i.showHidden=t:t&&n._extend(i,t),y(i.showHidden)&&(i.showHidden=!1),y(i.depth)&&(i.depth=2),y(i.colors)&&(i.colors=!1),y(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=c),d(i,e,i.depth)}function c(e,t){var i=l.styles[t];return i?"["+l.colors[i][0]+"m"+e+"["+l.colors[i][1]+"m":e}function u(e,t){return e}function d(e,t,i){if(e.customInspect&&t&&S(t.inspect)&&t.inspect!==n.inspect&&(!t.constructor||t.constructor.prototype!==t)){var a=t.inspect(i,e);return b(a)||(a=d(e,a,i)),a}var r=function(e,t){if(y(t))return e.stylize("undefined","undefined");if(b(t)){var i="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(i,"string")}return v(t)?e.stylize(""+t,"number"):m(t)?e.stylize(""+t,"boolean"):g(t)?e.stylize("null","null"):void 0}(e,t);if(r)return r;var o=Object.keys(t),s=function(e){var t={};return e.forEach((function(e,i){t[e]=!0})),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),x(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return f(t);if(0===o.length){if(S(t)){var l=t.name?": "+t.name:"";return e.stylize("[Function"+l+"]","special")}if(w(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(I(t))return e.stylize(Date.prototype.toString.call(t),"date");if(x(t))return f(t)}var c,u="",_=!1,T=["{","}"];return p(t)&&(_=!0,T=["[","]"]),S(t)&&(u=" [Function"+(t.name?": "+t.name:"")+"]"),w(t)&&(u=" "+RegExp.prototype.toString.call(t)),I(t)&&(u=" "+Date.prototype.toUTCString.call(t)),x(t)&&(u=" "+f(t)),0!==o.length||_&&0!=t.length?i<0?w(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),c=_?function(e,t,i,n,a){for(var r=[],o=0,s=t.length;o<s;++o)D(t,String(o))?r.push(h(e,t,i,n,String(o),!0)):r.push("");return a.forEach((function(a){a.match(/^\d+$/)||r.push(h(e,t,i,n,a,!0))})),r}(e,t,i,s,o):o.map((function(n){return h(e,t,i,s,n,_)})),e.seen.pop(),function(e,t,i){return e.reduce((function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?i[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+i[1]:i[0]+t+" "+e.join(", ")+" "+i[1]}(c,u,T)):T[0]+u+T[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,i,n,a,r){var o,s,l;if((l=Object.getOwnPropertyDescriptor(t,a)||{value:t[a]}).get?s=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),D(n,a)||(o="["+a+"]"),s||(e.seen.indexOf(l.value)<0?(s=g(i)?d(e,l.value,null):d(e,l.value,i-1)).indexOf("\n")>-1&&(s=r?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),y(o)){if(r&&a.match(/^\d+$/))return s;(o=JSON.stringify(""+a)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function p(e){return Array.isArray(e)}function m(e){return"boolean"==typeof e}function g(e){return null===e}function v(e){return"number"==typeof e}function b(e){return"string"==typeof e}function y(e){return void 0===e}function w(e){return _(e)&&"[object RegExp]"===T(e)}function _(e){return"object"===a(e)&&null!==e}function I(e){return _(e)&&"[object Date]"===T(e)}function x(e){return _(e)&&("[object Error]"===T(e)||e instanceof Error)}function S(e){return"function"==typeof e}function T(e){return Object.prototype.toString.call(e)}function C(e){return e<10?"0"+e.toString(10):e.toString(10)}n.debuglog=function(e){if(y(o)&&(o=t.env.NODE_DEBUG||""),e=e.toUpperCase(),!s[e])if(new RegExp("\\b"+e+"\\b","i").test(o)){var i=t.pid;s[e]=function(){var t=n.format.apply(n,arguments);console.error("%s %d: %s",e,i,t)}}else s[e]=function(){};return s[e]},n.inspect=l,l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},n.isArray=p,n.isBoolean=m,n.isNull=g,n.isNullOrUndefined=function(e){return null==e},n.isNumber=v,n.isString=b,n.isSymbol=function(e){return"symbol"===a(e)},n.isUndefined=y,n.isRegExp=w,n.isObject=_,n.isDate=I,n.isError=x,n.isFunction=S,n.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"===a(e)||void 0===e},n.isBuffer=e("./support/isBuffer");var k=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function R(){var e=new Date,t=[C(e.getHours()),C(e.getMinutes()),C(e.getSeconds())].join(":");return[e.getDate(),k[e.getMonth()],t].join(" ")}function D(e,t){return Object.prototype.hasOwnProperty.call(e,t)}n.log=function(){console.log("%s - %s",R(),n.format.apply(n,arguments))},n.inherits=e("inherits"),n._extend=function(e,t){if(!t||!_(t))return e;for(var i=Object.keys(t),n=i.length;n--;)e[i[n]]=t[i[n]];return e}}).call(this,e("_process"),"undefined"!=typeof t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":524,_process:467,inherits:523}],526:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"v1",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(i,"v3",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(i,"v4",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(i,"v5",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(i,"NIL",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(i,"version",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(i,"validate",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(i,"stringify",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(i,"parse",{enumerable:!0,get:function(){return d.default}});var n=f(e("./v1.js")),a=f(e("./v3.js")),r=f(e("./v4.js")),o=f(e("./v5.js")),s=f(e("./nil.js")),l=f(e("./version.js")),c=f(e("./validate.js")),u=f(e("./stringify.js")),d=f(e("./parse.js"));function f(e){return e&&e.__esModule?e:{default:e}}},{"./nil.js":528,"./parse.js":529,"./stringify.js":533,"./v1.js":534,"./v3.js":535,"./v4.js":537,"./v5.js":538,"./validate.js":539,"./version.js":540}],527:[function(e,t,i){"use strict";function n(e){return 14+(e+64>>>9<<4)+1}function a(e,t){var i=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(i>>16)<<16|65535&i}function r(e,t,i,n,r,o){return a((s=a(a(t,e),a(n,o)))<<(l=r)|s>>>32-l,i);var s,l}function o(e,t,i,n,a,o,s){return r(t&i|~t&n,e,t,a,o,s)}function s(e,t,i,n,a,o,s){return r(t&n|i&~n,e,t,a,o,s)}function l(e,t,i,n,a,o,s){return r(t^i^n,e,t,a,o,s)}function c(e,t,i,n,a,o,s){return r(i^(t|~n),e,t,a,o,s)}Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var u=function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var i=0;i<t.length;++i)e[i]=t.charCodeAt(i)}return function(e){for(var t=[],i=32*e.length,n=0;n<i;n+=8){var a=e[n>>5]>>>n%32&255,r=parseInt("0123456789abcdef".charAt(a>>>4&15)+"0123456789abcdef".charAt(15&a),16);t.push(r)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[n(t)-1]=t;for(var i=1732584193,r=-271733879,u=-1732584194,d=271733878,f=0;f<e.length;f+=16){var h=i,p=r,m=u,g=d;i=o(i,r,u,d,e[f],7,-680876936),d=o(d,i,r,u,e[f+1],12,-389564586),u=o(u,d,i,r,e[f+2],17,606105819),r=o(r,u,d,i,e[f+3],22,-1044525330),i=o(i,r,u,d,e[f+4],7,-176418897),d=o(d,i,r,u,e[f+5],12,1200080426),u=o(u,d,i,r,e[f+6],17,-1473231341),r=o(r,u,d,i,e[f+7],22,-45705983),i=o(i,r,u,d,e[f+8],7,1770035416),d=o(d,i,r,u,e[f+9],12,-1958414417),u=o(u,d,i,r,e[f+10],17,-42063),r=o(r,u,d,i,e[f+11],22,-1990404162),i=o(i,r,u,d,e[f+12],7,1804603682),d=o(d,i,r,u,e[f+13],12,-40341101),u=o(u,d,i,r,e[f+14],17,-1502002290),r=o(r,u,d,i,e[f+15],22,1236535329),i=s(i,r,u,d,e[f+1],5,-165796510),d=s(d,i,r,u,e[f+6],9,-1069501632),u=s(u,d,i,r,e[f+11],14,643717713),r=s(r,u,d,i,e[f],20,-373897302),i=s(i,r,u,d,e[f+5],5,-701558691),d=s(d,i,r,u,e[f+10],9,38016083),u=s(u,d,i,r,e[f+15],14,-660478335),r=s(r,u,d,i,e[f+4],20,-405537848),i=s(i,r,u,d,e[f+9],5,568446438),d=s(d,i,r,u,e[f+14],9,-1019803690),u=s(u,d,i,r,e[f+3],14,-187363961),r=s(r,u,d,i,e[f+8],20,1163531501),i=s(i,r,u,d,e[f+13],5,-1444681467),d=s(d,i,r,u,e[f+2],9,-51403784),u=s(u,d,i,r,e[f+7],14,1735328473),r=s(r,u,d,i,e[f+12],20,-1926607734),i=l(i,r,u,d,e[f+5],4,-378558),d=l(d,i,r,u,e[f+8],11,-2022574463),u=l(u,d,i,r,e[f+11],16,1839030562),r=l(r,u,d,i,e[f+14],23,-35309556),i=l(i,r,u,d,e[f+1],4,-1530992060),d=l(d,i,r,u,e[f+4],11,1272893353),u=l(u,d,i,r,e[f+7],16,-155497632),r=l(r,u,d,i,e[f+10],23,-1094730640),i=l(i,r,u,d,e[f+13],4,681279174),d=l(d,i,r,u,e[f],11,-358537222),u=l(u,d,i,r,e[f+3],16,-722521979),r=l(r,u,d,i,e[f+6],23,76029189),i=l(i,r,u,d,e[f+9],4,-640364487),d=l(d,i,r,u,e[f+12],11,-421815835),u=l(u,d,i,r,e[f+15],16,530742520),r=l(r,u,d,i,e[f+2],23,-995338651),i=c(i,r,u,d,e[f],6,-198630844),d=c(d,i,r,u,e[f+7],10,1126891415),u=c(u,d,i,r,e[f+14],15,-1416354905),r=c(r,u,d,i,e[f+5],21,-57434055),i=c(i,r,u,d,e[f+12],6,1700485571),d=c(d,i,r,u,e[f+3],10,-1894986606),u=c(u,d,i,r,e[f+10],15,-1051523),r=c(r,u,d,i,e[f+1],21,-2054922799),i=c(i,r,u,d,e[f+8],6,1873313359),d=c(d,i,r,u,e[f+15],10,-30611744),u=c(u,d,i,r,e[f+6],15,-1560198380),r=c(r,u,d,i,e[f+13],21,1309151649),i=c(i,r,u,d,e[f+4],6,-145523070),d=c(d,i,r,u,e[f+11],10,-1120210379),u=c(u,d,i,r,e[f+2],15,718787259),r=c(r,u,d,i,e[f+9],21,-343485551),i=a(i,h),r=a(r,p),u=a(u,m),d=a(d,g)}return[i,r,u,d]}(function(e){if(0===e.length)return[];for(var t=8*e.length,i=new Uint32Array(n(t)),a=0;a<t;a+=8)i[a>>5]|=(255&e[a/8])<<a%32;return i}(e),8*e.length))};i.default=u},{}],528:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,i.default="00000000-0000-0000-0000-000000000000"},{}],529:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n,a=(n=e("./validate.js"))&&n.__esModule?n:{default:n},r=function(e){if(!(0,a.default)(e))throw TypeError("Invalid UUID");var t,i=new Uint8Array(16);return i[0]=(t=parseInt(e.slice(0,8),16))>>>24,i[1]=t>>>16&255,i[2]=t>>>8&255,i[3]=255&t,i[4]=(t=parseInt(e.slice(9,13),16))>>>8,i[5]=255&t,i[6]=(t=parseInt(e.slice(14,18),16))>>>8,i[7]=255&t,i[8]=(t=parseInt(e.slice(19,23),16))>>>8,i[9]=255&t,i[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,i[11]=t/4294967296&255,i[12]=t>>>24&255,i[13]=t>>>16&255,i[14]=t>>>8&255,i[15]=255&t,i};i.default=r},{"./validate.js":539}],530:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,i.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},{}],531:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(){if(!n)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(a)};var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),a=new Uint8Array(16)},{}],532:[function(e,t,i){"use strict";function n(e,t,i,n){switch(e){case 0:return t&i^~t&n;case 1:return t^i^n;case 2:return t&i^t&n^i&n;case 3:return t^i^n}}function a(e,t){return e<<t|e>>>32-t}Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var r=function(e){var t=[1518500249,1859775393,2400959708,3395469782],i=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var r=unescape(encodeURIComponent(e));e=[];for(var o=0;o<r.length;++o)e.push(r.charCodeAt(o))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var s=e.length/4+2,l=Math.ceil(s/16),c=new Array(l),u=0;u<l;++u){for(var d=new Uint32Array(16),f=0;f<16;++f)d[f]=e[64*u+4*f]<<24|e[64*u+4*f+1]<<16|e[64*u+4*f+2]<<8|e[64*u+4*f+3];c[u]=d}c[l-1][14]=8*(e.length-1)/Math.pow(2,32),c[l-1][14]=Math.floor(c[l-1][14]),c[l-1][15]=8*(e.length-1)&4294967295;for(var h=0;h<l;++h){for(var p=new Uint32Array(80),m=0;m<16;++m)p[m]=c[h][m];for(var g=16;g<80;++g)p[g]=a(p[g-3]^p[g-8]^p[g-14]^p[g-16],1);for(var v=i[0],b=i[1],y=i[2],w=i[3],_=i[4],I=0;I<80;++I){var x=Math.floor(I/20),S=a(v,5)+n(x,b,y,w)+_+t[x]+p[I]>>>0;_=w,w=y,y=a(b,30)>>>0,b=v,v=S}i[0]=i[0]+v>>>0,i[1]=i[1]+b>>>0,i[2]=i[2]+y>>>0,i[3]=i[3]+w>>>0,i[4]=i[4]+_>>>0}return[i[0]>>24&255,i[0]>>16&255,i[0]>>8&255,255&i[0],i[1]>>24&255,i[1]>>16&255,i[1]>>8&255,255&i[1],i[2]>>24&255,i[2]>>16&255,i[2]>>8&255,255&i[2],i[3]>>24&255,i[3]>>16&255,i[3]>>8&255,255&i[3],i[4]>>24&255,i[4]>>16&255,i[4]>>8&255,255&i[4]]};i.default=r},{}],533:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;for(var n,a=(n=e("./validate.js"))&&n.__esModule?n:{default:n},r=[],o=0;o<256;++o)r.push((o+256).toString(16).substr(1));var s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=(r[e[t+0]]+r[e[t+1]]+r[e[t+2]]+r[e[t+3]]+"-"+r[e[t+4]]+r[e[t+5]]+"-"+r[e[t+6]]+r[e[t+7]]+"-"+r[e[t+8]]+r[e[t+9]]+"-"+r[e[t+10]]+r[e[t+11]]+r[e[t+12]]+r[e[t+13]]+r[e[t+14]]+r[e[t+15]]).toLowerCase();if(!(0,a.default)(i))throw TypeError("Stringified UUID is invalid");return i};i.default=s},{"./validate.js":539}],534:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n,a,r=s(e("./rng.js")),o=s(e("./stringify.js"));function s(e){return e&&e.__esModule?e:{default:e}}var l=0,c=0,u=function(e,t,i){var s=t&&i||0,u=t||new Array(16),d=(e=e||{}).node||n,f=void 0!==e.clockseq?e.clockseq:a;if(null==d||null==f){var h=e.random||(e.rng||r.default)();null==d&&(d=n=[1|h[0],h[1],h[2],h[3],h[4],h[5]]),null==f&&(f=a=16383&(h[6]<<8|h[7]))}var p=void 0!==e.msecs?e.msecs:Date.now(),m=void 0!==e.nsecs?e.nsecs:c+1,g=p-l+(m-c)/1e4;if(g<0&&void 0===e.clockseq&&(f=f+1&16383),(g<0||p>l)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");l=p,c=m,a=f;var v=(1e4*(268435455&(p+=122192928e5))+m)%4294967296;u[s++]=v>>>24&255,u[s++]=v>>>16&255,u[s++]=v>>>8&255,u[s++]=255&v;var b=p/4294967296*1e4&268435455;u[s++]=b>>>8&255,u[s++]=255&b,u[s++]=b>>>24&15|16,u[s++]=b>>>16&255,u[s++]=f>>>8|128,u[s++]=255&f;for(var y=0;y<6;++y)u[s+y]=d[y];return t||(0,o.default)(u)};i.default=u},{"./rng.js":531,"./stringify.js":533}],535:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n=r(e("./v35.js")),a=r(e("./md5.js"));function r(e){return e&&e.__esModule?e:{default:e}}var o=(0,n.default)("v3",48,a.default);i.default=o},{"./md5.js":527,"./v35.js":536}],536:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t,i){function r(e,r,o,s){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],i=0;i<e.length;++i)t.push(e.charCodeAt(i));return t}(e)),"string"==typeof r&&(r=(0,a.default)(r)),16!==r.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var l=new Uint8Array(16+e.length);if(l.set(r),l.set(e,r.length),(l=i(l))[6]=15&l[6]|t,l[8]=63&l[8]|128,o){s=s||0;for(var c=0;c<16;++c)o[s+c]=l[c];return o}return(0,n.default)(l)}try{r.name=e}catch(e){}return r.DNS=o,r.URL=s,r},i.URL=i.DNS=void 0;var n=r(e("./stringify.js")),a=r(e("./parse.js"));function r(e){return e&&e.__esModule?e:{default:e}}var o="6ba7b810-9dad-11d1-80b4-00c04fd430c8";i.DNS=o;var s="6ba7b811-9dad-11d1-80b4-00c04fd430c8";i.URL=s},{"./parse.js":529,"./stringify.js":533}],537:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n=r(e("./rng.js")),a=r(e("./stringify.js"));function r(e){return e&&e.__esModule?e:{default:e}}var o=function(e,t,i){var r=(e=e||{}).random||(e.rng||n.default)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){i=i||0;for(var o=0;o<16;++o)t[i+o]=r[o];return t}return(0,a.default)(r)};i.default=o},{"./rng.js":531,"./stringify.js":533}],538:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n=r(e("./v35.js")),a=r(e("./sha1.js"));function r(e){return e&&e.__esModule?e:{default:e}}var o=(0,n.default)("v5",80,a.default);i.default=o},{"./sha1.js":532,"./v35.js":536}],539:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n,a=(n=e("./regex.js"))&&n.__esModule?n:{default:n},r=function(e){return"string"==typeof e&&a.default.test(e)};i.default=r},{"./regex.js":530}],540:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n,a=(n=e("./validate.js"))&&n.__esModule?n:{default:n},r=function(e){if(!(0,a.default)(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)};i.default=r},{"./validate.js":539}],541:[function(e,t,i){"use strict";
/**
* Character classes and associated utilities for the 5th edition of XML 1.0.
*
* @author Louis-Dominique Dubeau
* @license MIT
* @copyright Louis-Dominique Dubeau
*/function n(e){return e>=65&&e<=90||e>=97&&e<=122||58===e||95===e||8204===e||8205===e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}Object.defineProperty(i,"__esModule",{value:!0}),i.CHAR="\t\n\r -퟿-<2D>𐀀-􏿿",i.S=" \t\r\n",i.NAME_START_CHAR=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-<2D>𐀀-󯿿",i.NAME_CHAR="-"+i.NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",i.CHAR_RE=new RegExp("^["+i.CHAR+"]$","u"),i.S_RE=new RegExp("^["+i.S+"]+$","u"),i.NAME_START_CHAR_RE=new RegExp("^["+i.NAME_START_CHAR+"]$","u"),i.NAME_CHAR_RE=new RegExp("^["+i.NAME_CHAR+"]$","u"),i.NAME_RE=new RegExp("^["+i.NAME_START_CHAR+"]["+i.NAME_CHAR+"]*$","u"),i.NMTOKEN_RE=new RegExp("^["+i.NAME_CHAR+"]+$","u"),i.S_LIST=[32,10,13,9],i.isChar=function(e){return e>=32&&e<=55295||10===e||13===e||9===e||e>=57344&&e<=65533||e>=65536&&e<=1114111},i.isS=function(e){return 32===e||10===e||13===e||9===e},i.isNameStartChar=n,i.isNameChar=function(e){return n(e)||e>=48&&e<=57||45===e||46===e||183===e||e>=768&&e<=879||e>=8255&&e<=8256}},{}],542:[function(e,t,i){"use strict";
/**
* Character classes and associated utilities for the 2nd edition of XML 1.1.
*
* @author Louis-Dominique Dubeau
* @license MIT
* @copyright Louis-Dominique Dubeau
*/function n(e){return e>=65&&e<=90||e>=97&&e<=122||58===e||95===e||8204===e||8205===e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}Object.defineProperty(i,"__esModule",{value:!0}),i.CHAR="-퟿-<2D>𐀀-􏿿",i.RESTRICTED_CHAR="-\b\v\f--„†-Ÿ",i.S=" \t\r\n",i.NAME_START_CHAR=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-<2D>𐀀-󯿿",i.NAME_CHAR="-"+i.NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",i.CHAR_RE=new RegExp("^["+i.CHAR+"]$","u"),i.RESTRICTED_CHAR_RE=new RegExp("^["+i.RESTRICTED_CHAR+"]$","u"),i.S_RE=new RegExp("^["+i.S+"]+$","u"),i.NAME_START_CHAR_RE=new RegExp("^["+i.NAME_START_CHAR+"]$","u"),i.NAME_CHAR_RE=new RegExp("^["+i.NAME_CHAR+"]$","u"),i.NAME_RE=new RegExp("^["+i.NAME_START_CHAR+"]["+i.NAME_CHAR+"]*$","u"),i.NMTOKEN_RE=new RegExp("^["+i.NAME_CHAR+"]+$","u"),i.S_LIST=[32,10,13,9],i.isChar=function(e){return e>=1&&e<=55295||e>=57344&&e<=65533||e>=65536&&e<=1114111},i.isRestrictedChar=function(e){return e>=1&&e<=8||11===e||12===e||e>=14&&e<=31||e>=127&&e<=132||e>=134&&e<=159},i.isCharAndNotRestricted=function(e){return 9===e||10===e||13===e||e>31&&e<127||133===e||e>159&&e<=55295||e>=57344&&e<=65533||e>=65536&&e<=1114111},i.isS=function(e){return 32===e||10===e||13===e||9===e},i.isNameStartChar=n,i.isNameChar=function(e){return n(e)||e>=48&&e<=57||45===e||46===e||183===e||e>=768&&e<=879||e>=8255&&e<=8256}},{}],543:[function(e,t,i){"use strict";
/**
* Character class utilities for XML NS 1.0 edition 3.
*
* @author Louis-Dominique Dubeau
* @license MIT
* @copyright Louis-Dominique Dubeau
*/function n(e){return e>=65&&e<=90||95===e||e>=97&&e<=122||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}Object.defineProperty(i,"__esModule",{value:!0}),i.NC_NAME_START_CHAR="A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-<2D>𐀀-󯿿",i.NC_NAME_CHAR="-"+i.NC_NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",i.NC_NAME_START_CHAR_RE=new RegExp("^["+i.NC_NAME_START_CHAR+"]$","u"),i.NC_NAME_CHAR_RE=new RegExp("^["+i.NC_NAME_CHAR+"]$","u"),i.NC_NAME_RE=new RegExp("^["+i.NC_NAME_START_CHAR+"]["+i.NC_NAME_CHAR+"]*$","u"),i.isNCNameStartChar=n,i.isNCNameChar=function(e){return n(e)||45===e||46===e||e>=48&&e<=57||183===e||e>=768&&e<=879||e>=8255&&e<=8256}},{}]},{},[15])(15)}))}).call(this,i("c8ba"))},e93e:function(e,t,i){"use strict";i("641d")},e9c5:function(e,t,i){},e9f9:function(e,t,i){var n=i("4942"),a=i("d3a4"),r=i("6d8b"),o=r.each;function s(e){return parseInt(e,10)}function l(e,t){a.initVML(),this.root=e,this.storage=t;var i=document.createElement("div"),n=document.createElement("div");i.style.cssText="display:inline-block;overflow:hidden;position:relative;width:300px;height:150px;",n.style.cssText="position:absolute;left:0;top:0;",e.appendChild(i),this._vmlRoot=n,this._vmlViewport=i,this.resize();var r=t.delFromStorage,o=t.addToStorage;t.delFromStorage=function(e){r.call(t,e),e&&e.onRemove&&e.onRemove(n)},t.addToStorage=function(e){e.onAdd&&e.onAdd(n),o.call(t,e)},this._firstPaint=!0}function c(e){return function(){n('In IE8.0 VML mode painter not support method "'+e+'"')}}l.prototype={constructor:l,getType:function(){return"vml"},getViewportRoot:function(){return this._vmlViewport},getViewportRootOffset:function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},refresh:function(){var e=this.storage.getDisplayList(!0,!0);this._paintList(e)},_paintList:function(e){for(var t=this._vmlRoot,i=0;i<e.length;i++){var n=e[i];n.invisible||n.ignore?(n.__alreadyNotVisible||n.onRemove(t),n.__alreadyNotVisible=!0):(n.__alreadyNotVisible&&n.onAdd(t),n.__alreadyNotVisible=!1,n.__dirty&&(n.beforeBrush&&n.beforeBrush(),(n.brushVML||n.brush).call(n,t),n.afterBrush&&n.afterBrush())),n.__dirty=!1}this._firstPaint&&(this._vmlViewport.appendChild(t),this._firstPaint=!1)},resize:function(e,t){e=null==e?this._getWidth():e,t=null==t?this._getHeight():t;if(this._width!==e||this._height!==t){this._width=e,this._height=t;var i=this._vmlViewport.style;i.width=e+"px",i.height=t+"px"}},dispose:function(){this.root.innerHTML="",this._vmlRoot=this._vmlViewport=this.storage=null},getWidth:function(){return this._width},getHeight:function(){return this._height},clear:function(){this._vmlViewport&&this.root.removeChild(this._vmlViewport)},_getWidth:function(){var e=this.root,t=e.currentStyle;return(e.clientWidth||s(t.width))-s(t.paddingLeft)-s(t.paddingRight)|0},_getHeight:function(){var e=this.root,t=e.currentStyle;return(e.clientHeight||s(t.height))-s(t.paddingTop)-s(t.paddingBottom)|0}},o(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],(function(e){l.prototype[e]=c(e)}));var u=l;e.exports=u},ea20:function(e,t,i){},ea33:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"chat-wrapper"},[i("div",{staticClass:"chat-content"},e._l(e.recordContent,(function(t,n){return i("div",{key:n},[i("div",{class:[t.IsCurrentUser?"word-my":"word"]},[1*t.UserTypeEnumInt===14?i("img",{staticClass:"avatar",attrs:{src:e.mimAvatar,alt:"MIM"}}):i("img",{staticClass:"avatar",attrs:{src:e.irAvatar,alt:"IR"}}),e._v(" "),i("div",{staticClass:"info"},[i("p",{staticClass:"user-info"},[i("span",{staticStyle:{"font-weight":"700"}},[e._v(e._s(t.CreateUserName)+" ")]),e._v(" "),i("span",[e._v("("+e._s(t.CreateTime)+") ")])]),e._v(" "),i("div",{staticClass:"info-content"},[14===t.UserTypeEnumInt&&null!==t.MedicalDialogCloseEnum?[i("div",[e._v(e._s(e.$t("trials:medicalFeedback:title:closeReasonEnum"))+e._s(e.$fd("MedicalDialogCloseEnum",t.MedicalDialogCloseEnum)))]),e._v(" "),t.Content?i("div",[e._v(e._s(e.$t("trials:medicalFeedback:title:closereasonRemarks"))+e._s(t.Content))]):e._e()]:14!==t.UserTypeEnumInt||t.Content?14===t.UserTypeEnumInt&&t.Content?[i("div",[e._v(e._s(t.Content))])]:[i("div",[e._v("\n "+e._s(e.$t("trials:medicalFeedback:title:isEndorse"))+e._s(e.$fd("MedicalReviewDoctorUserIdea",t.DoctorUserIdeaEnum))+"\n ")]),e._v(" "),2===t.DoctorUserIdeaEnum?i("div",[e._v("\n "+e._s(e.$t("trials:medicalFeedback:title:reason"))+e._s(t.DisagreeReason)+"\n ")]):e._e(),e._v(" "),null!==t.IsApplyHeavyReading?i("div",[e._v("\n "+e._s(e.$t("trials:medicalFeedback:title:isRequestReread"))+e._s(e.$fd("YesOrNo",t.IsApplyHeavyReading))+"\n ")]):e._e(),e._v(" "),t.FileList&&t.FileList.length>0?i("div",{staticStyle:{"margin-top":"5px"}},[e._v("\n "+e._s(e.$t("trials:medicalFeedback:message:msg5"))+"\n "),i("ol",e._l(t.FileList,(function(t){return i("li",{key:t.ImagePath,staticStyle:{"list-style":"none"}},[i("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(i){return e.previewImage(t.ImagePath)}}},[e._v(e._s(t.FileName))])],1)})),0)]):e._e()]:[i("div",[e._v("\n "+e._s(e.$t("trials:medicalFeedback:message:msg1"))+"\n "),i("ol",[e._v("\n "+e._s(t.Questioning)+"\n ")])]),e._v(" "),t.FileList&&t.FileList.length>0?i("div",{staticStyle:{"margin-top":"5px"}},[e._v("\n "+e._s(e.$t("trials:medicalFeedback:message:msg2"))+"\n "),i("ol",e._l(t.FileList,(function(t){return i("li",{key:t.ImagePath,staticStyle:{"list-style":"none"}},[i("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(i){return e.previewImage(t.ImagePath)}}},[e._v(e._s(t.FileName))])],1)})),0)]):e._e(),e._v(" "),i("div",{staticStyle:{"margin-top":"5px"}},[e._v("\n "+e._s(e.$t("trials:medicalFeedback:message:msg3"))+"\n "),i("ol",[i("span",{staticStyle:{color:"red"}},[e._v(e._s(e.$fd("AuditAdvice",t.AuditAdviceEnum)))])])]),e._v(" "),i("div",{staticStyle:{"margin-top":"5px"}},[e._v("\n "+e._s(e.$t("trials:medicalFeedback:message:msg4"))+"\n ")])]],2)])])])})),0),e._v(" "),13!==e.userTypeEnumInt||e.otherInfo.IsClosedDialog?e._e():i("div",{staticClass:"chat-message"},[i("div",{staticClass:"function"},[i("el-button",{attrs:{type:"primary",loading:e.btnLoading},on:{click:e.handleIRReply}},[e._v("\n "+e._s(e.$t("trials:medicalFeedback:table:reply"))+"\n ")])],1)]),e._v(" "),e.previewDialog?i("el-dialog",{attrs:{"append-to-body":"","close-on-click-modal":!1,visible:e.previewDialog,width:"600px"},on:{"update:visible":function(t){e.previewDialog=t}}},[i("el-image",{attrs:{src:e.imagePath,width:"100%"}},[i("div",{staticClass:"image-slot",attrs:{slot:"placeholder"},slot:"placeholder"},[e._v("\n "+e._s(e.$t("trials:medicalFeedback:message:loading"))),i("span",{staticClass:"dot"},[e._v("...")])])])],1):e._e(),e._v(" "),e.irFeedbackForm.visible?i("el-dialog",{attrs:{visible:e.irFeedbackForm.visible,"close-on-click-modal":!1,"custom-class":"base-dialog-wrapper",title:e.irFeedbackForm.title,width:"1200px","append-to-body":""},on:{"update:visible":function(t){return e.$set(e.irFeedbackForm,"visible",t)}}},[i("FeedbackForm",{attrs:{"task-medical-review-id":e.taskMedicalReviewId,"visit-task-id":e.visitTaskId},on:{getList:e.getMessageList,close:function(t){e.irFeedbackForm.visible=!1}}})],1):e._e()],1)},a=[],r=i("3e42"),o=i("a7ea"),s=i("f0da"),l=i.n(s),c=i("cc27"),u=i.n(c),d={name:"ChatForm",components:{FeedbackForm:o["default"]},props:{taskMedicalReviewId:{type:String,required:!0},visitTaskId:{type:String,required:!0}},data:function(){return{recordContent:[],newMessage:"",showNewMessage:!1,loading:!1,btnLoading:!1,mimAvatar:l.a,irAvatar:u.a,userTypeEnumInt:1*zzSessionStorage.getItem("userTypeEnumInt"),ReuploadEnum:0,trialId:this.$route.query.trialId,currentUserId:zzSessionStorage.getItem("userId"),otherInfo:{},irFeedbackForm:{visible:!1,title:""},imagePath:"",previewDialog:!1}},mounted:function(){this.getMessageList()},methods:{getMessageList:function(){var e=this;this.loading=!0;var t={taskMedicalReviewId:this.taskMedicalReviewId};Object(r["qc"])(t).then((function(t){e.otherInfo=t.OtherInfo,e.recordContent=t.Result,e.setScrollHeight(),e.loading=!1})).catch((function(){e.loading=!1}))},setScrollHeight:function(){setTimeout((function(){var e=document.querySelectorAll(".chat-content")[0];e.scrollTop=e.scrollHeight}),200)},handleIRReply:function(){this.irFeedbackForm.title=this.$t("trials:medicalFeedback:title:feedback"),this.irFeedbackForm.visible=!0},previewImage:function(e){this.imagePath="/api/".concat(e),this.previewDialog=!0}}},f=d,h=(i("9474"),i("2877")),p=Object(h["a"])(f,n,a,!1,null,"04dad1b2",null);t["default"]=p.exports},eabf:function(e,t,i){var n=i("6d8b");function a(e){e&&n.isArray(e.series)&&n.each(e.series,(function(e){n.isObject(e)&&"k"===e.type&&(e.type="candlestick")}))}e.exports=a},eaea:function(e,t,i){var n=i("3eba"),a=i("6d8b"),r=i("22d1"),o=i("60e3"),s=i("5f14"),l=i("2b8c"),c=i("e0d3"),u=i("3842"),d=s.mapVisual,f=s.eachVisual,h=a.isArray,p=a.each,m=u.asc,g=u.linearMap,v=a.noop,b=n.extendComponentModel({type:"visualMap",dependencies:["series"],stateList:["inRange","outOfRange"],replacableOptionKeys:["inRange","outOfRange","target","controller","color"],dataBound:[-1/0,1/0],layoutMode:{type:"box",ignoreSize:!0},defaultOption:{show:!0,zlevel:0,z:4,seriesIndex:"all",min:0,max:200,dimension:null,inRange:null,outOfRange:null,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,color:null,formatter:null,text:null,textStyle:{color:"#333"}},init:function(e,t,i){this._dataExtent,this.targetVisuals={},this.controllerVisuals={},this.textStyleModel,this.itemSize,this.mergeDefaultAndTheme(e,i)},optionUpdated:function(e,t){var i=this.option;r.canvasSupported||(i.realtime=!1),!t&&l.replaceVisualOption(i,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},resetVisual:function(e){var t=this.stateList;e=a.bind(e,this),this.controllerVisuals=l.createVisualMappings(this.option.controller,t,e),this.targetVisuals=l.createVisualMappings(this.option.target,t,e)},getTargetSeriesIndices:function(){var e=this.option.seriesIndex,t=[];return null==e||"all"===e?this.ecModel.eachSeries((function(e,i){t.push(i)})):t=c.normalizeToArray(e),t},eachTargetSeries:function(e,t){a.each(this.getTargetSeriesIndices(),(function(i){e.call(t,this.ecModel.getSeriesByIndex(i))}),this)},isTargetSeries:function(e){var t=!1;return this.eachTargetSeries((function(i){i===e&&(t=!0)})),t},formatValueText:function(e,t,i){var n,r,o=this.option,s=o.precision,l=this.dataBound,c=o.formatter;return i=i||["<",">"],a.isArray(e)&&(e=e.slice(),n=!0),r=t?e:n?[u(e[0]),u(e[1])]:u(e),a.isString(c)?c.replace("{value}",n?r[0]:r).replace("{value2}",n?r[1]:r):a.isFunction(c)?n?c(e[0],e[1]):c(e):n?e[0]===l[0]?i[0]+" "+r[1]:e[1]===l[1]?i[1]+" "+r[0]:r[0]+" - "+r[1]:r;function u(e){return e===l[0]?"min":e===l[1]?"max":(+e).toFixed(Math.min(s,20))}},resetExtent:function(){var e=this.option,t=m([e.min,e.max]);this._dataExtent=t},getDataDimension:function(e){var t=this.option.dimension,i=e.dimensions;if(null!=t||i.length){if(null!=t)return e.getDimension(t);for(var n=e.dimensions,a=n.length-1;a>=0;a--){var r=n[a],o=e.getDimensionInfo(r);if(!o.isCalculationCoord)return r}}},getExtent:function(){return this._dataExtent.slice()},completeVisualOption:function(){var e=this.ecModel,t=this.option,i={inRange:t.inRange,outOfRange:t.outOfRange},n=t.target||(t.target={}),r=t.controller||(t.controller={});a.merge(n,i),a.merge(r,i);var l=this.isCategory();function c(i){h(t.color)&&!i.inRange&&(i.inRange={color:t.color.slice().reverse()}),i.inRange=i.inRange||{color:e.get("gradientColor")},p(this.stateList,(function(e){var t=i[e];if(a.isString(t)){var n=o.get(t,"active",l);n?(i[e]={},i[e][t]=n):delete i[e]}}),this)}function u(e,t,i){var n=e[t],a=e[i];n&&!a&&(a=e[i]={},p(n,(function(e,t){if(s.isValidType(t)){var i=o.get(t,"inactive",l);null!=i&&(a[t]=i,"color"!==t||a.hasOwnProperty("opacity")||a.hasOwnProperty("colorAlpha")||(a.opacity=[0,0]))}})))}function m(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,i=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,n=this.get("inactiveColor");p(this.stateList,(function(r){var o=this.itemSize,s=e[r];s||(s=e[r]={color:l?n:[n]}),null==s.symbol&&(s.symbol=t&&a.clone(t)||(l?"roundRect":["roundRect"])),null==s.symbolSize&&(s.symbolSize=i&&a.clone(i)||(l?o[0]:[o[0],o[0]])),s.symbol=d(s.symbol,(function(e){return"none"===e||"square"===e?"roundRect":e}));var c=s.symbolSize;if(null!=c){var u=-1/0;f(c,(function(e){e>u&&(u=e)})),s.symbolSize=d(c,(function(e){return g(e,[0,u],[0,o[0]],!0)}))}}),this)}c.call(this,n),c.call(this,r),u.call(this,n,"inRange","outOfRange"),m.call(this,r)},resetItemSize:function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},isCategory:function(){return!!this.option.categories},setSelected:v,getValueState:v,getVisualMeta:v}),y=b;e.exports=y},eaeb:function(e,t,i){var n=i("6d8b");function a(e,t){return n.map(["Radius","Angle"],(function(i,n){var a=this["get"+i+"Axis"](),r=t[n],o=e[n]/2,s="dataTo"+i,l="category"===a.type?a.getBandWidth():Math.abs(a[s](r-o)-a[s](r+o));return"Angle"===i&&(l=l*Math.PI/180),l}),this)}function r(e){var t=e.getRadiusAxis(),i=e.getAngleAxis(),r=t.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:r[1],r0:r[0]},api:{coord:n.bind((function(n){var a=t.dataToRadius(n[0]),r=i.dataToAngle(n[1]),o=e.coordToPoint([a,r]);return o.push(a,r*Math.PI/180),o})),size:n.bind(a,e)}}}e.exports=r},eb0a:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"trial-information"},[i("el-descriptions",{staticStyle:{width:"1000px"},attrs:{column:2,border:""}},[i("el-descriptions-item",{attrs:{label:e.$t("trials:trials-list:form:trialId")}},[e._v("\n "+e._s(e.trialInfo.TrialCode)+"\n "),i("el-tag",{directives:[{name:"show",rawName:"v-show",value:e.trialInfo.TrialStatusStr,expression:"trialInfo.TrialStatusStr"}],staticStyle:{"margin-left":"10px"},attrs:{size:"small"}},[e._v("\n ( "+e._s(e.$fd("TrialStatusEnum",e.trialInfo.TrialStatusStr))+" )\n ")])],1),e._v(" "),i("el-descriptions-item",{attrs:{label:e.$t("trials:trials-list:form:trialType")}},[e._v("\n "+e._s(e.$fd("TrialType",e.trialInfo.TrialType))+"\n ")]),e._v(" "),i("el-descriptions-item",{attrs:{label:e.$t("trials:trials-list:form:experimentName")}},[e._v("\n "+e._s(e.trialInfo.ExperimentName)+"\n ")]),e._v(" "),i("el-descriptions-item",{attrs:{label:e.$t("trials:trials-list:form:researchNumber")}},[e._v("\n "+e._s(e.trialInfo.ResearchProgramNo)+"\n ")]),e._v(" "),i("el-descriptions-item",{attrs:{label:e.$t("trials:trials-list:form:researchUnit")}},[e._v("\n "+e._s(e.trialInfo.MainResearchUnit)+"\n ")]),e._v(" "),i("el-descriptions-item",{attrs:{label:e.$t("trials:trials-list:form:pi")}},[e._v("\n "+e._s(e.trialInfo.HeadPI)+"\n ")]),e._v(" "),i("el-descriptions-item",{attrs:{label:e.$t("trials:trials-list:form:sponsor")}},[e._v("\n "+e._s(e.trialInfo.Sponsor)+"\n ")]),e._v(" "),i("el-descriptions-item",{attrs:{label:e.$t("trials:trials-list:form:cro")}},[e._v("\n "+e._s(e.trialInfo.CRO)+"\n ")]),e._v(" "),i("el-descriptions-item",{attrs:{label:e.$t("trials:trials-list:form:declarationType")}},[e._v("\n "+e._s(e.trialInfo.DeclarationType)+"\n ")]),e._v(" "),i("el-descriptions-item",{attrs:{label:e.$t("trials:trials-list:form:phase")}},[e._v("\n "+e._s(e.trialInfo.Phase)+"\n ")]),e._v(" "),i("el-descriptions-item",{attrs:{label:e.$t("trials:trials-list:form:indicationType")}},[e._v("\n "+e._s(e.trialInfo.IndicationType)+"\n ")]),e._v(" "),i("el-descriptions-item",{attrs:{label:e.$t("trials:trials-list:form:indication")}},[e._v("\n "+e._s(e.trialInfo.Indication)+"\n ")]),e._v(" "),i("el-descriptions-item",{attrs:{label:e.$t("trials:trials-list:form:modality")}},[e._v("\n "+e._s(e.trialInfo.ModalityList)+"\n ")]),e._v(" "),i("el-descriptions-item",{attrs:{label:e.$t("trials:trials-list:form:siteCount")}},[e._v("\n "+e._s(e.trialInfo.PlanSiteCount)+"\n ")]),e._v(" "),i("el-descriptions-item",{attrs:{label:e.$t("trials:trials-list:form:patientsNum")}},[e._v("\n "+e._s(e.trialInfo.ExpectedPatients)+"\n ")]),e._v(" "),i("el-descriptions-item",{attrs:{label:e.$t("trials:trials-list:form:timePointsPerPatient")}},[e._v("\n "+e._s(e.trialInfo.TimePointsPerPatient)+"\n ")]),e._v(" "),i("el-descriptions-item",{attrs:{span:2,label:e.$t("trials:trials-list:form:visitCount")}},[e._v("\n "+e._s(e.trialInfo.PlanVisitCount)+"\n ")]),e._v(" "),i("el-descriptions-item",{attrs:{span:2,label:e.$t("trials:trials-list:form:criterion")}},[e._v("\n "+e._s(e.trialInfo.Criterion)+"\n ")]),e._v(" "),i("el-descriptions-item",{attrs:{label:e.$t("trials:trials-list:form:expedited")}},[e._v("\n "+e._s(e.$fd("YesOrNoForInt",e.trialInfo.Expedited))+"\n ")]),e._v(" "),i("el-descriptions-item",{attrs:{label:e.$t("trials:trials-list:form:projectCycle")}},[e._v("\n "+e._s(e.trialInfo.ProjectCycle)+"\n ")]),e._v(" "),i("el-descriptions-item",{attrs:{label:e.$t("trials:trials-list:form:totalReviewers")}},[e._v("\n "+e._s(e.trialInfo.TotalReviewers)+"\n ")]),e._v(" "),i("el-descriptions-item",{attrs:{label:e.$t("trials:trials-list:form:typeofReviewers")}},[e._v("\n "+e._s(e.$fd("AttendedReviewerType",e.trialInfo.AttendedReviewerType))+"\n ")])],1)],1)},a=[],r=i("3e42"),o={data:function(){return{trialInfo:{},trialId:"",trialStatus:"",formLoading:!1}},mounted:function(){this.trialId=this.$route.query.trialId,this.initForm()},methods:{initForm:function(){var e=this;this.formLoading=!0,Object(r["Od"])(this.trialId).then((function(t){e.formLoading=!1,e.trialInfo=t.Result,e.trialInfo.ReviewTypeList=e.trialInfo.ReviewTypeList.length>0?e.trialInfo.ReviewTypeList.join(", "):"";var i=[];t.Result.ModalityIds.map((function(t){i.push(e.$fd("Modality",t,"id"))})),e.trialInfo.ModalityList=i.join(", "),e.trialInfo.Criterion=t.Result.CriterionList&&t.Result.CriterionList.length>0?t.Result.CriterionList.join(", "):""})).catch((function(){e.formLoading=!1}))}}},s=o,l=(i("e27f"),i("2877")),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},eb17:function(e,t,i){},eb6b:function(e,t,i){var n=i("6d8b"),a=i("e0d3"),r=a.makeInner,o=i("cd33"),s=i("133d"),l=n.each,c=n.curry,u=r();function d(e,t,i){var a=e.currTrigger,r=[e.x,e.y],o=e,u=e.dispatchAction||n.bind(i.dispatchAction,i),d=t.getComponent("axisPointer").coordSysAxesInfo;if(d){_(r)&&(r=s({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},t).point);var h=_(r),I=o.axesInfo,x=d.axesInfo,S="leave"===a||_(r),T={},C={},k={list:[],map:{}},R={showPointer:c(p,C),showTooltip:c(m,k)};l(d.coordSysMap,(function(e,t){var i=h||e.containPoint(r);l(d.coordSysAxesInfo[t],(function(e,t){var n=e.axis,a=y(I,e);if(!S&&i&&(!I||a)){var o=a&&a.value;null!=o||h||(o=n.pointToData(r)),null!=o&&f(e,o,R,!1,T)}}))}));var D={};return l(x,(function(e,t){var i=e.linkGroup;i&&!C[t]&&l(i.axesInfo,(function(t,n){var a=C[n];if(t!==e&&a){var r=a.value;i.mapper&&(r=e.axis.scale.parse(i.mapper(r,w(t),w(e)))),D[e.key]=r}}))})),l(D,(function(e,t){f(x[t],e,R,!0,T)})),g(C,x,T),v(k,r,e,u),b(x,u,i),T}}function f(e,t,i,a,r){var o=e.axis;if(!o.scale.isBlank()&&o.containData(t))if(e.involveSeries){var s=h(t,e),l=s.payloadBatch,c=s.snapToValue;l[0]&&null==r.seriesIndex&&n.extend(r,l[0]),!a&&e.snap&&o.containData(c)&&null!=c&&(t=c),i.showPointer(e,t,l,r),i.showTooltip(e,s,c)}else i.showPointer(e,t)}function h(e,t){var i=t.axis,n=i.dim,a=e,r=[],o=Number.MAX_VALUE,s=-1;return l(t.seriesModels,(function(t,c){var u,d,f=t.getData().mapDimension(n,!0);if(t.getAxisTooltipData){var h=t.getAxisTooltipData(f,e,i);d=h.dataIndices,u=h.nestestValue}else{if(d=t.getData().indicesOfNearest(f[0],e,"category"===i.type?.5:null),!d.length)return;u=t.getData().get(f[0],d[0])}if(null!=u&&isFinite(u)){var p=e-u,m=Math.abs(p);m<=o&&((m<o||p>=0&&s<0)&&(o=m,s=p,a=u,r.length=0),l(d,(function(e){r.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})})))}})),{payloadBatch:r,snapToValue:a}}function p(e,t,i,n){e[t.key]={value:i,payloadBatch:n}}function m(e,t,i,n){var a=i.payloadBatch,r=t.axis,s=r.model,l=t.axisPointerModel;if(t.triggerTooltip&&a.length){var c=t.coordSys.model,u=o.makeKey(c),d=e.map[u];d||(d=e.map[u]={coordSysId:c.id,coordSysIndex:c.componentIndex,coordSysType:c.type,coordSysMainType:c.mainType,dataByAxis:[]},e.list.push(d)),d.dataByAxis.push({axisDim:r.dim,axisIndex:s.componentIndex,axisType:s.type,axisId:s.id,value:n,valueLabelOpt:{precision:l.get("label.precision"),formatter:l.get("label.formatter")},seriesDataIndices:a.slice()})}}function g(e,t,i){var n=i.axesInfo=[];l(t,(function(t,i){var a=t.axisPointerModel.option,r=e[i];r?(!t.useHandle&&(a.status="show"),a.value=r.value,a.seriesDataIndices=(r.payloadBatch||[]).slice()):!t.useHandle&&(a.status="hide"),"show"===a.status&&n.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:a.value})}))}function v(e,t,i,n){if(!_(t)&&e.list.length){var a=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:i.tooltipOption,position:i.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:e.list})}else n({type:"hideTip"})}function b(e,t,i){var a=i.getZr(),r="axisPointerLastHighlights",o=u(a)[r]||{},s=u(a)[r]={};l(e,(function(e,t){var i=e.axisPointerModel.option;"show"===i.status&&l(i.seriesDataIndices,(function(e){var t=e.seriesIndex+" | "+e.dataIndex;s[t]=e}))}));var c=[],d=[];n.each(o,(function(e,t){!s[t]&&d.push(e)})),n.each(s,(function(e,t){!o[t]&&c.push(e)})),d.length&&i.dispatchAction({type:"downplay",escapeConnect:!0,batch:d}),c.length&&i.dispatchAction({type:"highlight",escapeConnect:!0,batch:c})}function y(e,t){for(var i=0;i<(e||[]).length;i++){var n=e[i];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function w(e){var t=e.axis.model,i={},n=i.axisDim=e.axis.dim;return i.axisIndex=i[n+"AxisIndex"]=t.componentIndex,i.axisName=i[n+"AxisName"]=t.name,i.axisId=i[n+"AxisId"]=t.id,i}function _(e){return!e||null==e[0]||isNaN(e[0])||null==e[1]||isNaN(e[1])}e.exports=d},ebaf:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"subjectForm",attrs:{model:e.form,rules:e.rules,size:"small","label-width":"200px"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:e.$t("trials:subject:table:subjectId"),prop:"Code"}},[i("el-input",{attrs:{disabled:e.form.StudyCount>0||e.isEdit},model:{value:e.form.Code,callback:function(t){e.$set(e.form,"Code",t)},expression:"form.Code"}})],1),e._v(" "),e.otherInfo.IsSubjectSecondCodeView?i("el-form-item",{attrs:{label:e.$t("trials:subject:table:medicalNo"),prop:"MedicalNo"}},[i("el-input",{attrs:{disabled:e.form.StudyCount>0||e.isEdit},model:{value:e.form.MedicalNo,callback:function(t){e.$set(e.form,"MedicalNo",t)},expression:"form.MedicalNo"}})],1):e._e(),e._v(" "),i("el-form-item",{directives:[{name:"show",rawName:"v-show",value:e.otherInfo.IsHaveFirstGiveMedicineDate,expression:"otherInfo.IsHaveFirstGiveMedicineDate"}],attrs:{label:e.$t("trials:subject:table:firstGiveMedicineTime")}},[i("el-date-picker",{attrs:{type:"date","picker-options":e.pickerOption,"value-format":"yyyy-MM-dd",format:"yyyy-MM-dd"},model:{value:e.form.FirstGiveMedicineTime,callback:function(t){e.$set(e.form,"FirstGiveMedicineTime",t)},expression:"form.FirstGiveMedicineTime"}})],1),e._v(" "),e.otherInfo.IsHaveSubjectAge?i("el-form-item",{attrs:{label:e.$t("trials:subject:table:age"),prop:"Age"}},[i("el-input-number",{attrs:{"controls-position":"right",min:0},model:{value:e.form.Age,callback:function(t){e.$set(e.form,"Age",t)},expression:"form.Age"}})],1):e._e(),e._v(" "),e.otherInfo.IsSubjectSexView?i("el-form-item",{attrs:{label:e.$t("trials:subject:table:gender")}},[i("el-radio-group",{model:{value:e.form.Sex,callback:function(t){e.$set(e.form,"Sex",t)},expression:"form.Sex"}},e._l(e.$d.Sex,(function(t){return i("el-radio",{attrs:{label:t.label}},[e._v(e._s(t.label))])})),1)],1):e._e(),e._v(" "),e.otherInfo.IsSubjectExpeditedView?i("el-form-item",{attrs:{label:e.$t("trials:subject:table:isUrgent")}},[i("el-radio-group",{model:{value:e.form.IsUrgent,callback:function(t){e.$set(e.form,"IsUrgent",t)},expression:"form.IsUrgent"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1):e._e()],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.handleCancel}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])},a=[],r=(i("ac6a"),i("456d"),i("96cf"),i("3b8d")),o=i("3e42"),s={name:"SubjectForm",props:{data:{type:Object,default:function(){return{}}},otherInfo:{type:Object,default:function(){return{}}}},data:function(){return{form:{Id:"",Code:"",ShortName:"",Height:"",Weight:"",Age:"",Sex:"",BirthDate:"",SiteId:"",MedicalNo:"",Status:1,FirstGiveMedicineTime:"",OutEnrollmentTime:"",VisitOverTime:"",Reason:"",StudyCount:"",SignDate:"",IsUrgent:!1},isHaveSubjectAge:!1,rules:{Code:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"},{max:50,message:"".concat(this.$t("common:ruleMessage:maxLength")," 50")}],Age:[{required:this.otherInfo.IsHaveSubjectAge||!1,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}],SiteId:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}],Reason:[{max:500,message:"".concat(this.$t("common:ruleMessage:maxLength")," 500")}]},pickerOption:{disabledDate:function(e){return e.getTime()>Date.now()}},btnLoading:!1,siteOptions:[],loading:!1,trialId:""}},computed:{isEdit:function(){return!!this.form.Id&&this.hasPermi(["role:crc"])}},mounted:function(){this.trialId=this.$route.query.trialId,this.initForm()},methods:{initForm:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.loading=!0,e.next=3,Object(o["Zd"])(this.trialId);case 3:if(t=e.sent,this.loading=!1,this.siteOptions=t.Result,this.form.SiteId=this.siteOptions[0].SiteId,Object.keys(this.data).length>0)for(i in this.form)this.data.hasOwnProperty(i)&&(this.form[i]=this.data[i]);this.form.TrialId=this.trialId;case 9:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),handleSave:function(){var e=this;this.$refs.subjectForm.validate((function(t){t&&(e.btnLoading=!0,Object(o["y"])(e.form).then((function(t){e.btnLoading=!1,e.$emit("getList"),e.$emit("close"),e.$message.success(e.$t("common:message:savedSuccessfully"))})).catch((function(){e.btnLoading=!1})))}))},handleCancel:function(){this.$emit("close")},getSite:function(){var e=this;Object(o["Zd"])(this.trialId).then((function(t){e.siteList=t.Result}))}}},l=s,c=i("2877"),u=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},ebc9:function(e,t,i){"use strict";i("2b6c")},ebd0:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container payment-detail"},[i("div",{staticClass:"el-form-item el-form-item--small"},[i("label",{staticClass:"el-form-item__label"},[e._v("Name:")]),e._v(" "),i("el-input",{staticStyle:{width:"160px"},attrs:{size:"small",readonly:""},model:{value:e.name,callback:function(t){e.name=t},expression:"name"}})],1),e._v(" "),i("div",{ref:"listContainer",staticClass:"list-container"},[e.tableHeight?i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],attrs:{size:"small",stripe:"",data:e.list,height:"99%","show-summary":"","summary-method":e.getSummaries},on:{"sort-change":e.sortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Month",sortable:"custom",label:"Month","min-width":"80","show-overflow-tooltip":"",formatter:e.monthFormatter}}),e._v(" "),i("el-table-column",{attrs:{label:"Trial ID",align:"center"}},e._l(e.configHeader,(function(t,n){return i("el-table-column",{key:n,attrs:{label:t.TrialCode},scopedSlots:e._u([{key:"default",fn:function(i){return[e._v(e._s(i.row.TrialPaymentList?null==i.row.TrialPaymentList.filter((function(e){return e.TrialCode==t.TrialCode}))[0]?0:i.row.TrialPaymentList.filter((function(e){return e.TrialCode==t.TrialCode}))[0].TrialPayment:0))]}}],null,!0)})})),1),e._v(" "),i("el-table-column",{attrs:{prop:"VolumeReward",label:"Volume Reward($)","min-width":"80","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.VolumeReward)))])]}}],null,!1,1826617186)}),e._v(" "),i("el-table-column",{attrs:{prop:"AdjustmentUSD",label:"Adjustment($)","min-width":"80","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.AdjustmentUSD)))])]}}],null,!1,1229133744)}),e._v(" "),i("el-table-column",{attrs:{prop:"TotalUSD",label:"Total($)","min-width":"80","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.TotalUSD)))])]}}],null,!1,1785397309)}),e._v(" "),i("el-table-column",{attrs:{prop:"ExchangeRate",label:"Exchange Rate","min-width":"80","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"TotalCNY",label:"Total(¥)","min-width":"80","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(t.row.TotalCNY))])]}}],null,!1,2492220848)})],1):e._e()],1),e._v(" "),i("div",{staticClass:"pagination"},[i("pagination",{attrs:{total:e.total,page:e.listQuery.PageIndex,limit:e.listQuery.PageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"PageIndex",t)},"update:limit":function(t){return e.$set(e.listQuery,"PageSize",t)},pagination:e.getList}})],1)])},a=[],r=(i("386d"),i("5df3"),i("f400"),i("ac6a"),i("7f7f"),i("c5f6"),i("333d")),o=i("6b95"),s=i("7878"),l={components:{Pagination:r["default"]},filters:{rounding:function(e){return e?Number(e).toFixed(2):e}},data:function(){return{list:[],listQuery:{},listLoading:!1,total:0,name:"",configHeader:[],tableHeight:0}},mounted:function(){this.tableHeight=this.$refs.listContainer.clientHeight-50+"px",this.name=this.$router.currentRoute.query.name,this.listQuery.BeginMonth=this.$router.currentRoute.query.beginMonth,this.listQuery.EndMonth=this.$router.currentRoute.query.endMonth,this.listQuery.ReviewerId=this.$router.currentRoute.query.reviewerId,this.getList()},methods:{getList:function(){var e=this;this.listLoading=!0,Object(o["s"])(this.listQuery).then((function(t){e.listLoading=!1,e.list=t.Result,e.total=t.Result.length,e.handelColumnHeader()})).catch((function(){e.listLoading=!1}))},handelColumnHeader:function(e){var t=[];this.list.forEach((function(e){return t.push.apply(t,e.TrialPaymentList)}));var i=new Map;this.configHeader=t.filter((function(e){return!i.has(e.TrialCode)&&i.set(e.TrialCode,1)}))},sortByColumn:function(e){"ascending"===e.order?this.search.Asc=!0:this.search.Asc=!1,this.listQuery.SortField=e.prop,this.listQuery.PageIndex=1,this.getList()},getSummaries:function(e){var t=e.columns,i=e.data,n=[];return t.forEach((function(e,t){if(1!==t){if("ExchangeRate"!==e.property&&"TotalCNY"!==e.property){var a=i.map((function(t){return Number(t[e.property])}));a.every((function(e){return isNaN(e)}))||(n[t]=a.reduce((function(e,t){var i=Number(t);return isNaN(i)?e:e+t}),0).toFixed(2))}if("TotalCNY"===e.property){var r=i.map((function(t){return Number(t[e.property])}));r.every((function(e){return isNaN(e)}))||(n[t]=r.reduce((function(e,t){var i=Number(t);return isNaN(i)?e:e+t}),0))}}else n[t]="Total (Current Page)"})),n},monthFormatter:function(e){return e.Month?Object(s["FormatTime"])(new Date(e.Month),"yyyy-MM"):""}}},c=l,u=(i("e4a3"),i("2877")),d=Object(u["a"])(c,n,a,!1,null,"2c8db7f9",null);t["default"]=d.exports},ebd6c:function(e,t,i){},ebf9:function(e,t,i){var n=i("3eba");n.registerAction("legendScroll","legendscroll",(function(e,t){var i=e.scrollDataIndex;null!=i&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},(function(e){e.setScrollDataIndex(i)}))}))},ec02:function(e,t,i){var n=i("6d8b"),a=i("84ce"),r=function(e,t,i,n,r){a.call(this,e,t,i),this.type=n||"value",this.position=r||"bottom"};r.prototype={constructor:r,index:0,getAxesOnZeroOf:null,model:null,isHorizontal:function(){var e=this.position;return"top"===e||"bottom"===e},getGlobalExtent:function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},getOtherAxis:function(){this.grid.getOtherAxis()},pointToData:function(e,t){return this.coordToData(this.toLocalCoord(e["x"===this.dim?0:1]),t)},toLocalCoord:null,toGlobalCoord:null},n.inherits(r,a);var o=r;e.exports=o},ec1b:function(e,t,i){!function(t,i){e.exports=i()}(0,(function(){return function(e){function t(n){if(i[n])return i[n].exports;var a=i[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,t),a.l=!0,a.exports}var i={};return t.m=e,t.c=i,t.i=function(e){return e},t.d=function(e,i,n){t.o(e,i)||Object.defineProperty(e,i,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/dist/",t(t.s=2)}([function(e,t,i){var n=i(4)(i(1),i(5),null,null);e.exports=n.exports},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(3);t.default={props:{startVal:{type:Number,required:!1,default:0},endVal:{type:Number,required:!1,default:2017},duration:{type:Number,required:!1,default:3e3},autoplay:{type:Boolean,required:!1,default:!0},decimals:{type:Number,required:!1,default:0,validator:function(e){return e>=0}},decimal:{type:String,required:!1,default:"."},separator:{type:String,required:!1,default:","},prefix:{type:String,required:!1,default:""},suffix:{type:String,required:!1,default:""},useEasing:{type:Boolean,required:!1,default:!0},easingFn:{type:Function,default:function(e,t,i,n){return i*(1-Math.pow(2,-10*e/n))*1024/1023+t}}},data:function(){return{localStartVal:this.startVal,displayValue:this.formatNumber(this.startVal),printVal:null,paused:!1,localDuration:this.duration,startTime:null,timestamp:null,remaining:null,rAF:null}},computed:{countDown:function(){return this.startVal>this.endVal}},watch:{startVal:function(){this.autoplay&&this.start()},endVal:function(){this.autoplay&&this.start()}},mounted:function(){this.autoplay&&this.start(),this.$emit("mountedCallback")},methods:{start:function(){this.localStartVal=this.startVal,this.startTime=null,this.localDuration=this.duration,this.paused=!1,this.rAF=(0,n.requestAnimationFrame)(this.count)},pauseResume:function(){this.paused?(this.resume(),this.paused=!1):(this.pause(),this.paused=!0)},pause:function(){(0,n.cancelAnimationFrame)(this.rAF)},resume:function(){this.startTime=null,this.localDuration=+this.remaining,this.localStartVal=+this.printVal,(0,n.requestAnimationFrame)(this.count)},reset:function(){this.startTime=null,(0,n.cancelAnimationFrame)(this.rAF),this.displayValue=this.formatNumber(this.startVal)},count:function(e){this.startTime||(this.startTime=e),this.timestamp=e;var t=e-this.startTime;this.remaining=this.localDuration-t,this.useEasing?this.countDown?this.printVal=this.localStartVal-this.easingFn(t,0,this.localStartVal-this.endVal,this.localDuration):this.printVal=this.easingFn(t,this.localStartVal,this.endVal-this.localStartVal,this.localDuration):this.countDown?this.printVal=this.localStartVal-(this.localStartVal-this.endVal)*(t/this.localDuration):this.printVal=this.localStartVal+(this.localStartVal-this.startVal)*(t/this.localDuration),this.countDown?this.printVal=this.printVal<this.endVal?this.endVal:this.printVal:this.printVal=this.printVal>this.endVal?this.endVal:this.printVal,this.displayValue=this.formatNumber(this.printVal),t<this.localDuration?this.rAF=(0,n.requestAnimationFrame)(this.count):this.$emit("callback")},isNumber:function(e){return!isNaN(parseFloat(e))},formatNumber:function(e){e=e.toFixed(this.decimals),e+="";var t=e.split("."),i=t[0],n=t.length>1?this.decimal+t[1]:"",a=/(\d+)(\d{3})/;if(this.separator&&!this.isNumber(this.separator))for(;a.test(i);)i=i.replace(a,"$1"+this.separator+"$2");return this.prefix+i+n+this.suffix}},destroyed:function(){(0,n.cancelAnimationFrame)(this.rAF)}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(0),a=function(e){return e&&e.__esModule?e:{default:e}}(n);t.default=a.default,"undefined"!=typeof window&&window.Vue&&window.Vue.component("count-to",a.default)},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=0,a="webkit moz ms o".split(" "),r=void 0,o=void 0;if("undefined"==typeof window)t.requestAnimationFrame=r=function(){},t.cancelAnimationFrame=o=function(){};else{t.requestAnimationFrame=r=window.requestAnimationFrame,t.cancelAnimationFrame=o=window.cancelAnimationFrame;for(var s=void 0,l=0;l<a.length&&(!r||!o);l++)s=a[l],t.requestAnimationFrame=r=r||window[s+"RequestAnimationFrame"],t.cancelAnimationFrame=o=o||window[s+"CancelAnimationFrame"]||window[s+"CancelRequestAnimationFrame"];r&&o||(t.requestAnimationFrame=r=function(e){var t=(new Date).getTime(),i=Math.max(0,16-(t-n)),a=window.setTimeout((function(){e(t+i)}),i);return n=t+i,a},t.cancelAnimationFrame=o=function(e){window.clearTimeout(e)})}t.requestAnimationFrame=r,t.cancelAnimationFrame=o},function(e,t){e.exports=function(e,t,i,n){var a,r=e=e||{},o=typeof e.default;"object"!==o&&"function"!==o||(a=e,r=e.default);var s="function"==typeof r?r.options:r;if(t&&(s.render=t.render,s.staticRenderFns=t.staticRenderFns),i&&(s._scopeId=i),n){var l=Object.create(s.computed||null);Object.keys(n).forEach((function(e){var t=n[e];l[e]=function(){return t}})),s.computed=l}return{esModule:a,exports:r,options:s}}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("span",[e._v("\n "+e._s(e.displayValue)+"\n")])},staticRenderFns:[]}}])}))},ec30:function(e,t,i){"use strict";if(i("9e1e")){var n=i("2d00"),a=i("7726"),r=i("79e5"),o=i("5ca1"),s=i("0f88"),l=i("ed0b"),c=i("9b43"),u=i("f605"),d=i("4630"),f=i("32e9"),h=i("dcbc"),p=i("4588"),m=i("9def"),g=i("09fa"),v=i("77f1"),b=i("6a99"),y=i("69a8"),w=i("23c6"),_=i("d3f4"),I=i("4bf8"),x=i("33a4"),S=i("2aeb"),T=i("38fd"),C=i("9093").f,k=i("27ee"),R=i("ca5a"),D=i("2b4c"),L=i("0a49"),O=i("c366"),$=i("ebd6"),N=i("cadf"),A=i("84f2"),P=i("5cc5"),E=i("7a56"),M=i("36bd"),F=i("ba92"),j=i("86cc"),V=i("11e9"),q=j.f,z=V.f,B=a.RangeError,U=a.TypeError,Q=a.Uint8Array,H="ArrayBuffer",G="Shared"+H,W="BYTES_PER_ELEMENT",Y="prototype",K=Array[Y],Z=l.ArrayBuffer,X=l.DataView,J=L(0),ee=L(2),te=L(3),ie=L(4),ne=L(5),ae=L(6),re=O(!0),oe=O(!1),se=N.values,le=N.keys,ce=N.entries,ue=K.lastIndexOf,de=K.reduce,fe=K.reduceRight,he=K.join,pe=K.sort,me=K.slice,ge=K.toString,ve=K.toLocaleString,be=D("iterator"),ye=D("toStringTag"),we=R("typed_constructor"),_e=R("def_constructor"),Ie=s.CONSTR,xe=s.TYPED,Se=s.VIEW,Te="Wrong length!",Ce=L(1,(function(e,t){return Oe($(e,e[_e]),t)})),ke=r((function(){return 1===new Q(new Uint16Array([1]).buffer)[0]})),Re=!!Q&&!!Q[Y].set&&r((function(){new Q(1).set({})})),De=function(e,t){var i=p(e);if(i<0||i%t)throw B("Wrong offset!");return i},Le=function(e){if(_(e)&&xe in e)return e;throw U(e+" is not a typed array!")},Oe=function(e,t){if(!_(e)||!(we in e))throw U("It is not a typed array constructor!");return new e(t)},$e=function(e,t){return Ne($(e,e[_e]),t)},Ne=function(e,t){var i=0,n=t.length,a=Oe(e,n);while(n>i)a[i]=t[i++];return a},Ae=function(e,t,i){q(e,t,{get:function(){return this._d[i]}})},Pe=function(e){var t,i,n,a,r,o,s=I(e),l=arguments.length,u=l>1?arguments[1]:void 0,d=void 0!==u,f=k(s);if(void 0!=f&&!x(f)){for(o=f.call(s),n=[],t=0;!(r=o.next()).done;t++)n.push(r.value);s=n}for(d&&l>2&&(u=c(u,arguments[2],2)),t=0,i=m(s.length),a=Oe(this,i);i>t;t++)a[t]=d?u(s[t],t):s[t];return a},Ee=function(){var e=0,t=arguments.length,i=Oe(this,t);while(t>e)i[e]=arguments[e++];return i},Me=!!Q&&r((function(){ve.call(new Q(1))})),Fe=function(){return ve.apply(Me?me.call(Le(this)):Le(this),arguments)},je={copyWithin:function(e,t){return F.call(Le(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return ie(Le(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return M.apply(Le(this),arguments)},filter:function(e){return $e(this,ee(Le(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return ne(Le(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return ae(Le(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){J(Le(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return oe(Le(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return re(Le(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return he.apply(Le(this),arguments)},lastIndexOf:function(e){return ue.apply(Le(this),arguments)},map:function(e){return Ce(Le(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return de.apply(Le(this),arguments)},reduceRight:function(e){return fe.apply(Le(this),arguments)},reverse:function(){var e,t=this,i=Le(t).length,n=Math.floor(i/2),a=0;while(a<n)e=t[a],t[a++]=t[--i],t[i]=e;return t},some:function(e){return te(Le(this),e,arguments.length>1?arguments[1]:void 0)},sort:function(e){return pe.call(Le(this),e)},subarray:function(e,t){var i=Le(this),n=i.length,a=v(e,n);return new($(i,i[_e]))(i.buffer,i.byteOffset+a*i.BYTES_PER_ELEMENT,m((void 0===t?n:v(t,n))-a))}},Ve=function(e,t){return $e(this,me.call(Le(this),e,t))},qe=function(e){Le(this);var t=De(arguments[1],1),i=this.length,n=I(e),a=m(n.length),r=0;if(a+t>i)throw B(Te);while(r<a)this[t+r]=n[r++]},ze={entries:function(){return ce.call(Le(this))},keys:function(){return le.call(Le(this))},values:function(){return se.call(Le(this))}},Be=function(e,t){return _(e)&&e[xe]&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},Ue=function(e,t){return Be(e,t=b(t,!0))?d(2,e[t]):z(e,t)},Qe=function(e,t,i){return!(Be(e,t=b(t,!0))&&_(i)&&y(i,"value"))||y(i,"get")||y(i,"set")||i.configurable||y(i,"writable")&&!i.writable||y(i,"enumerable")&&!i.enumerable?q(e,t,i):(e[t]=i.value,e)};Ie||(V.f=Ue,j.f=Qe),o(o.S+o.F*!Ie,"Object",{getOwnPropertyDescriptor:Ue,defineProperty:Qe}),r((function(){ge.call({})}))&&(ge=ve=function(){return he.call(this)});var He=h({},je);h(He,ze),f(He,be,ze.values),h(He,{slice:Ve,set:qe,constructor:function(){},toString:ge,toLocaleString:Fe}),Ae(He,"buffer","b"),Ae(He,"byteOffset","o"),Ae(He,"byteLength","l"),Ae(He,"length","e"),q(He,ye,{get:function(){return this[xe]}}),e.exports=function(e,t,i,l){l=!!l;var c=e+(l?"Clamped":"")+"Array",d="get"+e,h="set"+e,p=a[c],v=p||{},b=p&&T(p),y=!p||!s.ABV,I={},x=p&&p[Y],k=function(e,i){var n=e._d;return n.v[d](i*t+n.o,ke)},R=function(e,i,n){var a=e._d;l&&(n=(n=Math.round(n))<0?0:n>255?255:255&n),a.v[h](i*t+a.o,n,ke)},D=function(e,t){q(e,t,{get:function(){return k(this,t)},set:function(e){return R(this,t,e)},enumerable:!0})};y?(p=i((function(e,i,n,a){u(e,p,c,"_d");var r,o,s,l,d=0,h=0;if(_(i)){if(!(i instanceof Z||(l=w(i))==H||l==G))return xe in i?Ne(p,i):Pe.call(p,i);r=i,h=De(n,t);var v=i.byteLength;if(void 0===a){if(v%t)throw B(Te);if(o=v-h,o<0)throw B(Te)}else if(o=m(a)*t,o+h>v)throw B(Te);s=o/t}else s=g(i),o=s*t,r=new Z(o);f(e,"_d",{b:r,o:h,l:o,e:s,v:new X(r)});while(d<s)D(e,d++)})),x=p[Y]=S(He),f(x,"constructor",p)):r((function(){p(1)}))&&r((function(){new p(-1)}))&&P((function(e){new p,new p(null),new p(1.5),new p(e)}),!0)||(p=i((function(e,i,n,a){var r;return u(e,p,c),_(i)?i instanceof Z||(r=w(i))==H||r==G?void 0!==a?new v(i,De(n,t),a):void 0!==n?new v(i,De(n,t)):new v(i):xe in i?Ne(p,i):Pe.call(p,i):new v(g(i))})),J(b!==Function.prototype?C(v).concat(C(b)):C(v),(function(e){e in p||f(p,e,v[e])})),p[Y]=x,n||(x.constructor=p));var L=x[be],O=!!L&&("values"==L.name||void 0==L.name),$=ze.values;f(p,we,!0),f(x,xe,c),f(x,Se,!0),f(x,_e,p),(l?new p(1)[ye]==c:ye in x)||q(x,ye,{get:function(){return c}}),I[c]=p,o(o.G+o.W+o.F*(p!=v),I),o(o.S,c,{BYTES_PER_ELEMENT:t}),o(o.S+o.F*r((function(){v.of.call(p,1)})),c,{from:Pe,of:Ee}),W in x||f(x,W,t),o(o.P,c,je),E(c),o(o.P+o.F*Re,c,{set:qe}),o(o.P+o.F*!O,c,ze),n||x.toString==ge||(x.toString=ge),o(o.P+o.F*r((function(){new p(1).slice()})),c,{slice:Ve}),o(o.P+o.F*(r((function(){return[1,2].toLocaleString()!=new p([1,2]).toLocaleString()}))||!r((function(){x.toLocaleString.call([1,2])}))),c,{toLocaleString:Fe}),A[c]=O?L:$,n||O||f(x,be,$)}}else e.exports=function(){}},ec34:function(e,t,i){var n=i("4e08"),a=(n.__DEV__,i("6d8b")),r=a.createHashMap,o=a.isString,s=a.isArray,l=a.each,c=(a.assert,i("3041")),u=c.parseXML,d=r(),f={registerMap:function(e,t,i){var n;return s(t)?n=t:t.svg?n=[{type:"svg",source:t.svg,specialAreas:t.specialAreas}]:(t.geoJson&&!t.features&&(i=t.specialAreas,t=t.geoJson),n=[{type:"geoJSON",source:t,specialAreas:i}]),l(n,(function(e){var t=e.type;"geoJson"===t&&(t=e.type="geoJSON");var i=h[t];i(e)})),d.set(e,n)},retrieveMap:function(e){return d.get(e)}},h={geoJSON:function(e){var t=e.source;e.geoJSON=o(t)?"undefined"!==typeof JSON&&JSON.parse?JSON.parse(t):new Function("return ("+t+");")():t},svg:function(e){e.svgXML=u(e.source)}};e.exports=f},ec44:function(e,t,i){},ec47:function(e,t,i){"use strict";i("7e87")},ec6f:function(e,t,i){var n=i("6d8b"),a=n.createHashMap,r=n.isTypedArray,o=i("625e"),s=o.enableClassCheck,l=i("93d0"),c=l.SOURCE_FORMAT_ORIGINAL,u=l.SERIES_LAYOUT_BY_COLUMN,d=l.SOURCE_FORMAT_UNKNOWN,f=l.SOURCE_FORMAT_TYPED_ARRAY,h=l.SOURCE_FORMAT_KEYED_COLUMNS;function p(e){this.fromDataset=e.fromDataset,this.data=e.data||(e.sourceFormat===h?{}:[]),this.sourceFormat=e.sourceFormat||d,this.seriesLayoutBy=e.seriesLayoutBy||u,this.dimensionsDefine=e.dimensionsDefine,this.encodeDefine=e.encodeDefine&&a(e.encodeDefine),this.startIndex=e.startIndex||0,this.dimensionsDetectCount=e.dimensionsDetectCount}p.seriesDataToSource=function(e){return new p({data:e,sourceFormat:r(e)?f:c,fromDataset:!1})},s(p);var m=p;e.exports=m},ec74:function(e,t,i){},eca8:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"taskAllocationRuleDataForm",attrs:{model:e.form,size:"small",rules:e.rules,"label-width":"110px"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:"阅片人",prop:"DoctorUserId"}},[i("el-select",{attrs:{disabled:e.form.Id,clearable:""},model:{value:e.form.DoctorUserId,callback:function(t){e.$set(e.form,"DoctorUserId",t)},expression:"form.DoctorUserId"}},e._l(e.doctorUserList,(function(e){return i("el-option",{attrs:{label:e.UserName+"("+e.FullName+")",value:e.DoctorUserId}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"受试者比例",prop:"PlanReadingRatio"}},[i("div",{staticStyle:{display:"flex","justify-content":"left","align-items":"center"}},[i("el-input-number",{attrs:{min:0,max:100,"controls-position":"right"},model:{value:e.form.PlanReadingRatio,callback:function(t){e.$set(e.form,"PlanReadingRatio",t)},expression:"form.PlanReadingRatio"}}),e._v(" "),i("span",{staticStyle:{"margin-left":"10px"}},[e._v("%")])],1)]),e._v(" "),i("el-form-item",{attrs:{label:"状态"}},[i("el-radio-group",{model:{value:e.form.IsEnable,callback:function(t){e.$set(e.form,"IsEnable",t)},expression:"form.IsEnable"}},e._l(e.$d.IsEnable,(function(t){return i("el-radio",{key:"form.IsEnable"+t.value,attrs:{label:t.value}},[e._v(e._s(t.label))])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"备注"}},[i("el-input",{attrs:{type:"textarea",maxlength:"100","show-word-limit":""},model:{value:e.form.Note,callback:function(t){e.$set(e.form,"Note",t)},expression:"form.Note"}})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.close}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.save}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])},a=[],r=i("db72"),o=(i("ac6a"),i("456d"),i("958c")),s={name:"AddOrUpdateTaskAllocationRuleData",props:{data:{type:Object,default:function(){return{}}},doctorUserList:{type:Array,default:function(){return[]}}},data:function(){return{form:{Id:null,TrialId:null,PlanReadingRatio:50,DoctorUserId:null,IsEnable:!0,Note:""},rules:{DoctorUserId:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}],PlanReadingRatio:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:"blur"}]},loading:!1,btnLoading:!1}},mounted:function(){this.form.TrialId=this.$route.query.trialId,Object.keys(this.data).length&&this.data.Id&&(this.form=Object(r["a"])({},this.data))},methods:{save:function(){var e=this;this.$refs.taskAllocationRuleDataForm.validate((function(t){console.log(t),t&&(e.btnLoading=!0,e.loading=!0,e.form.IsJudgeDoctor=!0,Object(o["b"])(e.form).then((function(t){e.loading=!1,e.btnLoading=!1,e.$message.success("保存成功"),e.$emit("getList")})).catch((function(){e.loading=!1,e.btnLoading=!1})))}))},close:function(){this.$emit("close")}}},l=s,c=i("2877"),u=Object(c["a"])(l,n,a,!1,null,"59812d1d",null);t["default"]=u.exports},ecf8:function(e,t,i){var n=i("6d8b"),a=i("3842"),r=a.parsePercent,o=n.each;function s(e){var t=l(e);o(t,(function(e){var t=e.seriesModels;t.length&&(c(e),o(t,(function(t,i){u(t,e.boxOffsetList[i],e.boxWidthList[i])})))}))}function l(e){var t=[],i=[];return e.eachSeriesByType("boxplot",(function(e){var a=e.getBaseAxis(),r=n.indexOf(i,a);r<0&&(r=i.length,i[r]=a,t[r]={axis:a,seriesModels:[]}),t[r].seriesModels.push(e)})),t}function c(e){var t,i,a=e.axis,s=e.seriesModels,l=s.length,c=e.boxWidthList=[],u=e.boxOffsetList=[],d=[];if("category"===a.type)i=a.getBandWidth();else{var f=0;o(s,(function(e){f=Math.max(f,e.getData().count())})),t=a.getExtent(),Math.abs(t[1]-t[0])}o(s,(function(e){var t=e.get("boxWidth");n.isArray(t)||(t=[t,t]),d.push([r(t[0],i)||0,r(t[1],i)||0])}));var h=.8*i-2,p=h/l*.3,m=(h-p*(l-1))/l,g=m/2-h/2;o(s,(function(e,t){u.push(g),g+=p+m,c.push(Math.min(Math.max(m,d[t][0]),d[t][1]))}))}function u(e,t,i){var n=e.coordinateSystem,a=e.getData(),r=i/2,o="horizontal"===e.get("layout")?0:1,s=1-o,l=["x","y"],c=a.mapDimension(l[o]),u=a.mapDimension(l[s],!0);if(!(null==c||u.length<5))for(var d=0;d<a.count();d++){var f=a.get(c,d),h=y(f,u[2],d),p=y(f,u[0],d),m=y(f,u[1],d),g=y(f,u[3],d),v=y(f,u[4],d),b=[];w(b,m,0),w(b,g,1),b.push(p,m,v,g),_(b,p),_(b,v),_(b,h),a.setItemLayout(d,{initBaseline:h[s],ends:b})}function y(e,i,r){var l,c=a.get(i,r),u=[];return u[o]=e,u[s]=c,isNaN(e)||isNaN(c)?l=[NaN,NaN]:(l=n.dataToPoint(u),l[o]+=t),l}function w(e,t,i){var n=t.slice(),a=t.slice();n[o]+=r,a[o]-=r,i?e.push(n,a):e.push(a,n)}function _(e,t){var i=t.slice(),n=t.slice();i[o]-=r,n[o]+=r,e.push(i,n)}}e.exports=s},ed00:function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-documentation",use:"icon-documentation-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-documentation"><path d="M71.984 44.815H115.9L71.984 9.642v35.173zM16.094.05h63.875l47.906 38.37v76.74c0 3.392-1.682 6.645-4.677 9.044-2.995 2.399-7.056 3.746-11.292 3.746H16.094c-4.236 0-8.297-1.347-11.292-3.746-2.995-2.399-4.677-5.652-4.677-9.044V12.84C.125 5.742 7.23.05 16.094.05zm71.86 102.32V89.58h-71.86v12.79h71.86zm23.952-25.58V64H16.094v12.79h95.812z" /></symbol>'});o.a.add(s);t["default"]=s},ed0b:function(e,t,i){"use strict";var n=i("7726"),a=i("9e1e"),r=i("2d00"),o=i("0f88"),s=i("32e9"),l=i("dcbc"),c=i("79e5"),u=i("f605"),d=i("4588"),f=i("9def"),h=i("09fa"),p=i("9093").f,m=i("86cc").f,g=i("36bd"),v=i("7f20"),b="ArrayBuffer",y="DataView",w="prototype",_="Wrong length!",I="Wrong index!",x=n[b],S=n[y],T=n.Math,C=n.RangeError,k=n.Infinity,R=x,D=T.abs,L=T.pow,O=T.floor,$=T.log,N=T.LN2,A="buffer",P="byteLength",E="byteOffset",M=a?"_b":A,F=a?"_l":P,j=a?"_o":E;function V(e,t,i){var n,a,r,o=new Array(i),s=8*i-t-1,l=(1<<s)-1,c=l>>1,u=23===t?L(2,-24)-L(2,-77):0,d=0,f=e<0||0===e&&1/e<0?1:0;for(e=D(e),e!=e||e===k?(a=e!=e?1:0,n=l):(n=O($(e)/N),e*(r=L(2,-n))<1&&(n--,r*=2),e+=n+c>=1?u/r:u*L(2,1-c),e*r>=2&&(n++,r/=2),n+c>=l?(a=0,n=l):n+c>=1?(a=(e*r-1)*L(2,t),n+=c):(a=e*L(2,c-1)*L(2,t),n=0));t>=8;o[d++]=255&a,a/=256,t-=8);for(n=n<<t|a,s+=t;s>0;o[d++]=255&n,n/=256,s-=8);return o[--d]|=128*f,o}function q(e,t,i){var n,a=8*i-t-1,r=(1<<a)-1,o=r>>1,s=a-7,l=i-1,c=e[l--],u=127&c;for(c>>=7;s>0;u=256*u+e[l],l--,s-=8);for(n=u&(1<<-s)-1,u>>=-s,s+=t;s>0;n=256*n+e[l],l--,s-=8);if(0===u)u=1-o;else{if(u===r)return n?NaN:c?-k:k;n+=L(2,t),u-=o}return(c?-1:1)*n*L(2,u-t)}function z(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function B(e){return[255&e]}function U(e){return[255&e,e>>8&255]}function Q(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function H(e){return V(e,52,8)}function G(e){return V(e,23,4)}function W(e,t,i){m(e[w],t,{get:function(){return this[i]}})}function Y(e,t,i,n){var a=+i,r=h(a);if(r+t>e[F])throw C(I);var o=e[M]._b,s=r+e[j],l=o.slice(s,s+t);return n?l:l.reverse()}function K(e,t,i,n,a,r){var o=+i,s=h(o);if(s+t>e[F])throw C(I);for(var l=e[M]._b,c=s+e[j],u=n(+a),d=0;d<t;d++)l[c+d]=u[r?d:t-d-1]}if(o.ABV){if(!c((function(){x(1)}))||!c((function(){new x(-1)}))||c((function(){return new x,new x(1.5),new x(NaN),x.name!=b}))){x=function(e){return u(this,x),new R(h(e))};for(var Z,X=x[w]=R[w],J=p(R),ee=0;J.length>ee;)(Z=J[ee++])in x||s(x,Z,R[Z]);r||(X.constructor=x)}var te=new S(new x(2)),ie=S[w].setInt8;te.setInt8(0,2147483648),te.setInt8(1,2147483649),!te.getInt8(0)&&te.getInt8(1)||l(S[w],{setInt8:function(e,t){ie.call(this,e,t<<24>>24)},setUint8:function(e,t){ie.call(this,e,t<<24>>24)}},!0)}else x=function(e){u(this,x,b);var t=h(e);this._b=g.call(new Array(t),0),this[F]=t},S=function(e,t,i){u(this,S,y),u(e,x,y);var n=e[F],a=d(t);if(a<0||a>n)throw C("Wrong offset!");if(i=void 0===i?n-a:f(i),a+i>n)throw C(_);this[M]=e,this[j]=a,this[F]=i},a&&(W(x,P,"_l"),W(S,A,"_b"),W(S,P,"_l"),W(S,E,"_o")),l(S[w],{getInt8:function(e){return Y(this,1,e)[0]<<24>>24},getUint8:function(e){return Y(this,1,e)[0]},getInt16:function(e){var t=Y(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=Y(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return z(Y(this,4,e,arguments[1]))},getUint32:function(e){return z(Y(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return q(Y(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return q(Y(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){K(this,1,e,B,t)},setUint8:function(e,t){K(this,1,e,B,t)},setInt16:function(e,t){K(this,2,e,U,t,arguments[2])},setUint16:function(e,t){K(this,2,e,U,t,arguments[2])},setInt32:function(e,t){K(this,4,e,Q,t,arguments[2])},setUint32:function(e,t){K(this,4,e,Q,t,arguments[2])},setFloat32:function(e,t){K(this,4,e,G,t,arguments[2])},setFloat64:function(e,t){K(this,8,e,H,t,arguments[2])}});v(x,b),v(S,y),s(S[w],o.VIEW,!0),t[b]=x,t[y]=S},ed21:function(e,t,i){var n=i("2cf4"),a=n.devicePixelRatio,r=i("6d8b"),o=i("4942"),s=i("9850"),l=i("04f6"),c=i("5e68"),u=i("98b7"),d=i("0da8"),f=i("22d1"),h=1e5,p=314159,m=.01,g=.001;function v(e){return parseInt(e,10)}function b(e){return!!e&&(!!e.__builtin__||"function"===typeof e.resize&&"function"===typeof e.refresh)}var y=new s(0,0,0,0),w=new s(0,0,0,0);function _(e,t,i){return y.copy(e.getBoundingRect()),e.transform&&y.applyTransform(e.transform),w.width=t,w.height=i,!y.intersect(w)}function I(e,t){if(e===t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var i=0;i<e.length;i++)if(e[i]!==t[i])return!0;return!1}function x(e,t){for(var i=0;i<e.length;i++){var n=e[i];n.setTransform(t),t.beginPath(),n.buildPath(t,n.shape),t.clip(),n.restoreTransform(t)}}function S(e,t){var i=document.createElement("div");return i.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",i}var T=function(e,t,i){this.type="canvas";var n=!e.nodeName||"CANVAS"===e.nodeName.toUpperCase();this._opts=i=r.extend({},i||{}),this.dpr=i.devicePixelRatio||a,this._singleCanvas=n,this.root=e;var o=e.style;o&&(o["-webkit-tap-highlight-color"]="transparent",o["-webkit-user-select"]=o["user-select"]=o["-webkit-touch-callout"]="none",e.innerHTML=""),this.storage=t;var s=this._zlevelList=[],l=this._layers={};if(this._layerConfig={},this._needsManuallyCompositing=!1,n){var u=e.width,d=e.height;null!=i.width&&(u=i.width),null!=i.height&&(d=i.height),this.dpr=i.devicePixelRatio||1,e.width=u*this.dpr,e.height=d*this.dpr,this._width=u,this._height=d;var f=new c(e,this,this.dpr);f.__builtin__=!0,f.initContext(),l[p]=f,f.zlevel=p,s.push(p),this._domRoot=e}else{this._width=this._getSize(0),this._height=this._getSize(1);var h=this._domRoot=S(this._width,this._height);e.appendChild(h)}this._hoverlayer=null,this._hoverElements=[]};T.prototype={constructor:T,getType:function(){return"canvas"},isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._domRoot},getViewportRootOffset:function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},refresh:function(e){var t=this.storage.getDisplayList(!0),i=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,e,this._redrawId);for(var n=0;n<i.length;n++){var a=i[n],r=this._layers[a];if(!r.__builtin__&&r.refresh){var o=0===n?this._backgroundColor:null;r.refresh(o)}}return this.refreshHover(),this},addHover:function(e,t){if(!e.__hoverMir){var i=new e.constructor({style:e.style,shape:e.shape,z:e.z,z2:e.z2,silent:e.silent});return i.__from=e,e.__hoverMir=i,t&&i.setStyle(t),this._hoverElements.push(i),i}},removeHover:function(e){var t=e.__hoverMir,i=this._hoverElements,n=r.indexOf(i,t);n>=0&&i.splice(n,1),e.__hoverMir=null},clearHover:function(e){for(var t=this._hoverElements,i=0;i<t.length;i++){var n=t[i].__from;n&&(n.__hoverMir=null)}t.length=0},refreshHover:function(){var e=this._hoverElements,t=e.length,i=this._hoverlayer;if(i&&i.clear(),t){l(e,this.storage.displayableSortFunc),i||(i=this._hoverlayer=this.getLayer(h));var n={};i.ctx.save();for(var a=0;a<t;){var r=e[a],o=r.__from;o&&o.__zr?(a++,o.invisible||(r.transform=o.transform,r.invTransform=o.invTransform,r.__clipPaths=o.__clipPaths,this._doPaintEl(r,i,!0,n))):(e.splice(a,1),o.__hoverMir=null,t--)}i.ctx.restore()}},getHoverLayer:function(){return this.getLayer(h)},_paintList:function(e,t,i){if(this._redrawId===i){t=t||!1,this._updateLayerStatus(e);var n=this._doPaintList(e,t);if(this._needsManuallyCompositing&&this._compositeManually(),!n){var a=this;u((function(){a._paintList(e,t,i)}))}}},_compositeManually:function(){var e=this.getLayer(p).ctx,t=this._domRoot.width,i=this._domRoot.height;e.clearRect(0,0,t,i),this.eachBuiltinLayer((function(n){n.virtual&&e.drawImage(n.dom,0,0,t,i)}))},_doPaintList:function(e,t){for(var i=[],n=0;n<this._zlevelList.length;n++){var a=this._zlevelList[n],o=this._layers[a];o.__builtin__&&o!==this._hoverlayer&&(o.__dirty||t)&&i.push(o)}for(var s=!0,l=0;l<i.length;l++){o=i[l];var c=o.ctx,u={};c.save();var d=t?o.__startIndex:o.__drawIndex,h=!t&&o.incremental&&Date.now,p=h&&Date.now(),m=o.zlevel===this._zlevelList[0]?this._backgroundColor:null;if(o.__startIndex===o.__endIndex)o.clear(!1,m);else if(d===o.__startIndex){var g=e[d];g.incremental&&g.notClear&&!t||o.clear(!1,m)}-1===d&&(console.error("For some unknown reason. drawIndex is -1"),d=o.__startIndex);for(var v=d;v<o.__endIndex;v++){var b=e[v];if(this._doPaintEl(b,o,t,u),b.__dirty=b.__dirtyText=!1,h){var y=Date.now()-p;if(y>15)break}}o.__drawIndex=v,o.__drawIndex<o.__endIndex&&(s=!1),u.prevElClipPaths&&c.restore(),c.restore()}return f.wxa&&r.each(this._layers,(function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()})),s},_doPaintEl:function(e,t,i,n){var a=t.ctx,r=e.transform;if((t.__dirty||i)&&!e.invisible&&0!==e.style.opacity&&(!r||r[0]||r[3])&&(!e.culling||!_(e,this._width,this._height))){var o=e.__clipPaths,s=n.prevElClipPaths;s&&!I(o,s)||(s&&(a.restore(),n.prevElClipPaths=null,n.prevEl=null),o&&(a.save(),x(o,a),n.prevElClipPaths=o)),e.beforeBrush&&e.beforeBrush(a),e.brush(a,n.prevEl||null),n.prevEl=e,e.afterBrush&&e.afterBrush(a)}},getLayer:function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=p);var i=this._layers[e];return i||(i=new c("zr_"+e,this,this.dpr),i.zlevel=e,i.__builtin__=!0,this._layerConfig[e]?r.merge(i,this._layerConfig[e],!0):this._layerConfig[e-m]&&r.merge(i,this._layerConfig[e-m],!0),t&&(i.virtual=t),this.insertLayer(e,i),i.initContext()),i},insertLayer:function(e,t){var i=this._layers,n=this._zlevelList,a=n.length,r=null,s=-1,l=this._domRoot;if(i[e])o("ZLevel "+e+" has been used already");else if(b(t)){if(a>0&&e>n[0]){for(s=0;s<a-1;s++)if(n[s]<e&&n[s+1]>e)break;r=i[n[s]]}if(n.splice(s+1,0,e),i[e]=t,!t.virtual)if(r){var c=r.dom;c.nextSibling?l.insertBefore(t.dom,c.nextSibling):l.appendChild(t.dom)}else l.firstChild?l.insertBefore(t.dom,l.firstChild):l.appendChild(t.dom)}else o("Layer of zlevel "+e+" is not valid")},eachLayer:function(e,t){var i,n,a=this._zlevelList;for(n=0;n<a.length;n++)i=a[n],e.call(t,this._layers[i],i)},eachBuiltinLayer:function(e,t){var i,n,a,r=this._zlevelList;for(a=0;a<r.length;a++)n=r[a],i=this._layers[n],i.__builtin__&&e.call(t,i,n)},eachOtherLayer:function(e,t){var i,n,a,r=this._zlevelList;for(a=0;a<r.length;a++)n=r[a],i=this._layers[n],i.__builtin__||e.call(t,i,n)},getLayers:function(){return this._layers},_updateLayerStatus:function(e){function t(e){r&&(r.__endIndex!==e&&(r.__dirty=!0),r.__endIndex=e)}if(this.eachBuiltinLayer((function(e,t){e.__dirty=e.__used=!1})),this._singleCanvas)for(var i=1;i<e.length;i++){var n=e[i];if(n.zlevel!==e[i-1].zlevel||n.incremental){this._needsManuallyCompositing=!0;break}}var a,r=null,s=0;for(i=0;i<e.length;i++){n=e[i];var l,c=n.zlevel;a!==c&&(a=c,s=0),n.incremental?(l=this.getLayer(c+g,this._needsManuallyCompositing),l.incremental=!0,s=1):l=this.getLayer(c+(s>0?m:0),this._needsManuallyCompositing),l.__builtin__||o("ZLevel "+c+" has been used by unkown layer "+l.id),l!==r&&(l.__used=!0,l.__startIndex!==i&&(l.__dirty=!0),l.__startIndex=i,l.incremental?l.__drawIndex=-1:l.__drawIndex=i,t(i),r=l),n.__dirty&&(l.__dirty=!0,l.incremental&&l.__drawIndex<0&&(l.__drawIndex=i))}t(i),this.eachBuiltinLayer((function(e,t){!e.__used&&e.getElementCount()>0&&(e.__dirty=!0,e.__startIndex=e.__endIndex=e.__drawIndex=0),e.__dirty&&e.__drawIndex<0&&(e.__drawIndex=e.__startIndex)}))},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(e){e.clear()},setBackgroundColor:function(e){this._backgroundColor=e},configLayer:function(e,t){if(t){var i=this._layerConfig;i[e]?r.merge(i[e],t,!0):i[e]=t;for(var n=0;n<this._zlevelList.length;n++){var a=this._zlevelList[n];if(a===e||a===e+m){var o=this._layers[a];r.merge(o,i[e],!0)}}}},delLayer:function(e){var t=this._layers,i=this._zlevelList,n=t[e];n&&(n.dom.parentNode.removeChild(n.dom),delete t[e],i.splice(r.indexOf(i,e),1))},resize:function(e,t){if(this._domRoot.style){var i=this._domRoot;i.style.display="none";var n=this._opts;if(null!=e&&(n.width=e),null!=t&&(n.height=t),e=this._getSize(0),t=this._getSize(1),i.style.display="",this._width!==e||t!==this._height){for(var a in i.style.width=e+"px",i.style.height=t+"px",this._layers)this._layers.hasOwnProperty(a)&&this._layers[a].resize(e,t);r.each(this._progressiveLayers,(function(i){i.resize(e,t)})),this.refresh(!0)}this._width=e,this._height=t}else{if(null==e||null==t)return;this._width=e,this._height=t,this.getLayer(p).resize(e,t)}return this},clearLayer:function(e){var t=this._layers[e];t&&t.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[p].dom;var t=new c("image",this,e.pixelRatio||this.dpr);if(t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor),e.pixelRatio<=this.dpr){this.refresh();var i=t.dom.width,n=t.dom.height,a=t.ctx;this.eachLayer((function(e){e.__builtin__?a.drawImage(e.dom,0,0,i,n):e.renderToCanvas&&(t.ctx.save(),e.renderToCanvas(t.ctx),t.ctx.restore())}))}else for(var r={},o=this.storage.getDisplayList(!0),s=0;s<o.length;s++){var l=o[s];this._doPaintEl(l,t,!0,r)}return t.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(e){var t=this._opts,i=["width","height"][e],n=["clientWidth","clientHeight"][e],a=["paddingLeft","paddingTop"][e],r=["paddingRight","paddingBottom"][e];if(null!=t[i]&&"auto"!==t[i])return parseFloat(t[i]);var o=this.root,s=document.defaultView.getComputedStyle(o);return(o[n]||v(s[i])||v(o.style[i]))-(v(s[a])||0)-(v(s[r])||0)|0},pathToImage:function(e,t){t=t||this.dpr;var i=document.createElement("canvas"),n=i.getContext("2d"),a=e.getBoundingRect(),r=e.style,o=r.shadowBlur*t,s=r.shadowOffsetX*t,l=r.shadowOffsetY*t,c=r.hasStroke()?r.lineWidth:0,u=Math.max(c/2,-s+o),f=Math.max(c/2,s+o),h=Math.max(c/2,-l+o),p=Math.max(c/2,l+o),m=a.width+u+f,g=a.height+h+p;i.width=m*t,i.height=g*t,n.scale(t,t),n.clearRect(0,0,m,g),n.dpr=t;var v={position:e.position,rotation:e.rotation,scale:e.scale};e.position=[u-a.x,h-a.y],e.rotation=0,e.scale=[1,1],e.updateTransform(),e&&e.brush(n);var b=d,y=new b({style:{x:0,y:0,image:i}});return null!=v.position&&(y.position=e.position=v.position),null!=v.rotation&&(y.rotation=e.rotation=v.rotation),null!=v.scale&&(y.scale=e.scale=v.scale),y}};var C=T;e.exports=C},ed4c:function(e,t,i){"use strict";i("b6c6")},ed90:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"viewerContainer"},[i("div",{staticClass:"viewerContentWrapper"},[i("div",{staticClass:"viewerLeftSidePanel"},[i("div",{staticClass:"sidePanelBody",attrs:{id:"listWrapper"}},[i("div",{staticClass:"sidePanelThumbs"},[i("el-tabs",{attrs:{type:"border-card"},on:{"tab-click":e.handleTabClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[i("el-tab-pane",{attrs:{label:"当前序列",name:"current-study"}},[i("div",{staticClass:"text-desc"},[e._v("\n "+e._s(e.studyCode)+"\n ")]),e._v(" "),i("div",{staticClass:"text-desc"},[e._v("\n "+e._s(e.description)+"\n ")]),e._v(" "),e.seriesCount?i("div",{staticClass:"text-desc"},[e._v("\n "+e._s(e.modality)+" : "+e._s(e.seriesCount)+" Series\n ")]):e._e(),e._v(" "),i("div",{staticClass:"viewerSidethumbs ps",staticStyle:{position:"relative"}},[i("div",{staticClass:"viewerSidethumbinner"},e._l(e.seriesList,(function(t,n){return i("div",{key:n,staticClass:"viewernavigatorwrapper",class:{viewerSideActive:0==n},staticStyle:{position:"relative"},attrs:{"series-type":"current"},on:{click:function(t){return e.showSeriesImage(t,n)}}},[i("el-image",{staticClass:"image-preview",staticStyle:{height:"72px",width:"72px"},attrs:{src:t.previewImageUrl,fit:"fill"}}),e._v(" "),i("div",{staticClass:"viewernavitextwrapper"},[i("div",{staticStyle:{padding:"1px"}},[e._v("\n #"+e._s(t.seriesNumber)+"\n ")]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.instanceCount,expression:"item.instanceCount"}],staticStyle:{padding:"1px"}},[e._v("\n "+e._s(t.modality)+": "+e._s(t.instanceCount)+" image\n ")]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.sliceThickness,expression:" item.sliceThickness"}],staticStyle:{padding:"1px"}},[e._v("\n T: "+e._s(t.sliceThickness)+"\n ")]),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.description,expression:"item.description"}],staticStyle:{width:"150px","white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis",padding:"1x"}},[e._v("\n "+e._s(t.description)+"\n ")]),e._v(" "),i("div",{staticStyle:{padding:"1px"}},[e._v("\n "+e._s(t.prefetchInstanceCount)+"/"+e._s(t.instanceCount)+"\n ")])]),e._v(" "),i("div",{staticStyle:{position:"absolute",bottom:"-10px",left:"0",width:"100%"}},[t.prefetchInstanceCount>0&&t.prefetchInstanceCount<t.instanceCount?i("el-progress",{attrs:{percentage:100*Number(t.prefetchInstanceCount/t.instanceCount)}}):e._e()],1)],1)})),0)])])],1)],1)])]),e._v(" "),i("div",{staticClass:"viewerContent"},[i("dicom-viewer",{ref:"dicomViewer",staticStyle:{height:"100%"},attrs:{id:"dicomViewer"}})],1)])])},a=[],r=(i("20d6"),i("db72")),o=(i("5df3"),i("1c4c"),i("ac6a"),i("acd4")),s=i("81d9"),l=i("344d"),c=i("cc73"),u=i("f5c4"),d=i("4360");l["external"].dicomParser=o,l["external"].cornerstone=s;var f={name:"DicomsOfSeries",components:{"dicom-viewer":c["default"]},data:function(){return{studyCode:"",modality:"",seriesCount:0,description:"",seriesList:[],cachedImages:[],isStartLoad:!1,firstInstanceId:""}},created:function(){d["a"].dispatch("user/setToken",this.$router.currentRoute.query.token),s["events"].addEventListener("cornerstoneimageloaded",this.cornerstoneImageLoaded),this.initStudy()},beforeDestroy:function(){u["a"].stopTaskTimer()},methods:{initStudy:function(){var e=this;if(this.studyCode=this.$router.currentRoute.query.studyCode,this.modality=this.$router.currentRoute.query.modality,this.seriesCount=1,this.description=this.$router.currentRoute.query.description,this.$router.currentRoute.query.series){var t=JSON.parse(this.$router.currentRoute.query.series),i=[],n=[];t.InstancePathList.forEach((function(e){n.push("wadouri:".concat("USA"!==localStorage.getItem("location")?"https://zyypacs-mdc.oss-cn-shanghai.aliyuncs.com":"https://zyypacs-usa.oss-us-west-1.aliyuncs.com").concat(e))})),i.push({imageIds:n,seriesId:t.Id,seriesUid:t.SeriesInstanceUid,seriesNumber:t.SeriesNumber,sliceThickness:t.SliceThickness,modality:t.Modality,description:t.Description,previewImageUrl:"/api/series/preview/".concat(t.Id),instanceCount:t.InstanceCount,prefetchInstanceCount:0,loadStatus:!1,imageloadedArr:[]}),this.seriesList=i,this.seriesList.length>0&&this.$nextTick((function(){e.$refs.dicomViewer.loadImageStack(e.seriesList[0])}))}},showSeriesImage:function(e,t){var i=e.currentTarget,n=document.querySelectorAll("[series-type]");Array.from(n).forEach((function(e){e.classList.remove("viewerSideActive")})),i.classList.add("viewerSideActive"),this.currentSeriesIndex=t,this.$refs.dicomViewer.loadImageStack(this.seriesList[t])},loadAllImages:function(){var e=this;this.seriesList.forEach((function(t){t.imageIds.forEach((function(i){e.load(i,t.seriesId)}))}))},load:function(e,t){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:999;return new Promise((function(a,r){u["a"].loadAndCacheImagePlus(e,t,n).then((function(t){t&&(i.imageLoaded(e,t.data.string("x0020000e")),a(t))})).catch((function(e){r(e)}))}))},imageLoaded:function(e,t){for(var i=-1,n=0;n<this.seriesList.length;++n)if(this.seriesList[n].seriesUid===t){i=n;break}if(!(i<0)){var a=this.seriesList[i].imageIds.indexOf(e);a<0||this.seriesList[i].imageloadedArr.indexOf(e)<0&&(++this.seriesList[i].prefetchInstanceCount,this.seriesList[i].imageloadedArr.push(e),this.seriesList[i].prefetchInstanceCount>=this.seriesList[i].instanceCount&&(this.seriesList[i].prefetchInstanceCount=this.seriesList[i].instanceCount,this.seriesList[i].loadStatus=!0))}},buildImageRequestTask:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(r["a"])(Object(r["a"])({key:e},t),{},{execute:function(){return s["loadAndCacheImage"](e)}})},datasetsCacheChanged:function(e){var t=e.detail.cacheInfo;t.cacheSizeInBytes},cornerstoneImageLoaded:function(e){this.firstInstanceId!==e.detail.image.imageId||this.isStartLoad||(this.loadAllImages(),this.isStartLoad=!0,u["a"].executeTask());var t=e.detail.image.sharedCacheKey,i=this.cachedImages.findIndex((function(e){return e.uri===t}));-1===i?this.cachedImages.push({uri:t,timestamp:(new Date).getTime()}):this.cachedImages[i].timestamp=(new Date).getTime();for(var n=e.detail.image.imageId,a=e.detail.image.data.string("x0020000e"),r=-1,o=0;o<this.seriesList.length;++o)if(this.seriesList[o].seriesUid===a){r=o;break}if(!(r<0)){var s=this.seriesList[r].imageIds.indexOf(n);s<0||this.seriesList[r].imageloadedArr.indexOf(n)<0&&(++this.seriesList[r].prefetchInstanceCount,this.seriesList[r].imageloadedArr.push(n),this.seriesList[r].prefetchInstanceCount>=this.seriesList[r].instanceCount&&(this.seriesList[r].prefetchInstanceCount=this.seriesList[r].instanceCount,this.seriesList[r].loadStatus=!0))}}}},h=f,p=(i("85a8"),i("2877")),m=Object(p["a"])(h,n,a,!1,null,null,null);t["default"]=m.exports},eda2:function(e,t,i){var n=i("6d8b"),a=i("e86a"),r=i("3842");function o(e){return isNaN(e)?"-":(e=(e+"").split("."),e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:""))}function s(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()})),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var l=n.normalizeCssArray,c=/([&<>"'])/g,u={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function d(e){return null==e?"":(e+"").replace(c,(function(e,t){return u[t]}))}var f=["a","b","c","d","e","f","g"],h=function(e,t){return"{"+e+(null==t?"":t)+"}"};function p(e,t,i){n.isArray(t)||(t=[t]);var a=t.length;if(!a)return"";for(var r=t[0].$vars||[],o=0;o<r.length;o++){var s=f[o];e=e.replace(h(s),h(s,0))}for(var l=0;l<a;l++)for(var c=0;c<r.length;c++){var u=t[l][r[c]];e=e.replace(h(f[c],l),i?d(u):u)}return e}function m(e,t,i){return n.each(t,(function(t,n){e=e.replace("{"+n+"}",i?d(t):t)})),e}function g(e,t){e=n.isString(e)?{color:e,extraCssText:t}:e||{};var i=e.color,a=e.type,r=(t=e.extraCssText,e.renderMode||"html"),o=e.markerId||"X";return i?"html"===r?"subItem"===a?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+d(i)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:'+d(i)+";"+(t||"")+'"></span>':{renderMode:r,content:"{marker"+o+"|} ",style:{color:i}}:""}function v(e,t){return e+="","0000".substr(0,t-e.length)+e}function b(e,t,i){"week"!==e&&"month"!==e&&"quarter"!==e&&"half-year"!==e&&"year"!==e||(e="MM-dd\nyyyy");var n=r.parseDate(t),a=i?"UTC":"",o=n["get"+a+"FullYear"](),s=n["get"+a+"Month"]()+1,l=n["get"+a+"Date"](),c=n["get"+a+"Hours"](),u=n["get"+a+"Minutes"](),d=n["get"+a+"Seconds"](),f=n["get"+a+"Milliseconds"]();return e=e.replace("MM",v(s,2)).replace("M",s).replace("yyyy",o).replace("yy",o%100).replace("dd",v(l,2)).replace("d",l).replace("hh",v(c,2)).replace("h",c).replace("mm",v(u,2)).replace("m",u).replace("ss",v(d,2)).replace("s",d).replace("SSS",v(f,3)),e}function y(e){return e?e.charAt(0).toUpperCase()+e.substr(1):e}var w=a.truncateText;function _(e){return a.getBoundingRect(e.text,e.font,e.textAlign,e.textVerticalAlign,e.textPadding,e.textLineHeight,e.rich,e.truncate)}function I(e,t,i,n,r,o,s,l){return a.getBoundingRect(e,t,i,n,r,l,o,s)}function x(e,t){if("_blank"===t||"blank"===t){var i=window.open();i.opener=null,i.location=e}else window.open(e,t)}t.addCommas=o,t.toCamelCase=s,t.normalizeCssArray=l,t.encodeHTML=d,t.formatTpl=p,t.formatTplSimple=m,t.getTooltipMarker=g,t.formatTime=b,t.capitalFirst=y,t.truncateText=w,t.getTextBoundingRect=_,t.getTextRect=I,t.windowOpen=x},edaf:function(e,t,i){var n=i("6d8b"),a=i("6cb7"),r=i("6179"),o=i("e0d3"),s=a.extend({type:"timeline",layoutMode:"box",defaultOption:{zlevel:0,z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},init:function(e,t,i){this._data,this._names,this.mergeDefaultAndTheme(e,i),this._initData()},mergeOption:function(e){s.superApply(this,"mergeOption",arguments),this._initData()},setCurrentIndex:function(e){null==e&&(e=this.option.currentIndex);var t=this._data.count();this.option.loop?e=(e%t+t)%t:(e>=t&&(e=t-1),e<0&&(e=0)),this.option.currentIndex=e},getCurrentIndex:function(){return this.option.currentIndex},isIndexMax:function(){return this.getCurrentIndex()>=this._data.count()-1},setPlayState:function(e){this.option.autoPlay=!!e},getPlayState:function(){return!!this.option.autoPlay},_initData:function(){var e=this.option,t=e.data||[],i=e.axisType,a=this._names=[];if("category"===i){var s=[];n.each(t,(function(e,t){var i,r=o.getDataItemValue(e);n.isObject(e)?(i=n.clone(e),i.value=t):i=t,s.push(i),n.isString(r)||null!=r&&!isNaN(r)||(r=""),a.push(r+"")})),t=s}var l={category:"ordinal",time:"time"}[i]||"number",c=this._data=new r([{name:"value",type:l}],this);c.initData(t,a)},getData:function(){return this._data},getCategories:function(){if("category"===this.get("axisType"))return this._names.slice()}}),l=s;e.exports=l},edb9:function(e,t,i){var n=i("6d8b");function a(e,t){t=t||{};var i=e.coordinateSystem,a=e.axis,r={},o=a.position,s=a.orient,l=i.getRect(),c=[l.x,l.x+l.width,l.y,l.y+l.height],u={horizontal:{top:c[2],bottom:c[3]},vertical:{left:c[0],right:c[1]}};r.position=["vertical"===s?u.vertical[o]:c[0],"horizontal"===s?u.horizontal[o]:c[3]];var d={horizontal:0,vertical:1};r.rotation=Math.PI/2*d[s];var f={top:-1,bottom:1,right:1,left:-1};r.labelDirection=r.tickDirection=r.nameDirection=f[o],e.get("axisTick.inside")&&(r.tickDirection=-r.tickDirection),n.retrieve(t.labelInside,e.get("axisLabel.inside"))&&(r.labelDirection=-r.labelDirection);var h=t.rotate;return null==h&&(h=e.get("axisLabel.rotate")),r.labelRotation="top"===o?-h:h,r.z2=1,r}t.layout=a},ee0c:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"role-menu-wrapper"},[i("div",{staticClass:"left"},[i("el-tree",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"menuTree",attrs:{data:e.treeData,"show-checkbox":"","node-key":"Id","highlight-current":"",props:e.defaultProps,"expand-on-click-node":!1,"default-expanded-keys":e.expandedKeys},on:{check:e.handleCheck,"node-click":e.handleNodeClick}})],1),e._v(" "),i("div",{staticClass:"right"},[i("RoleFunction",{ref:"roleFunction"})],1)])},a=[],r=(i("ac6a"),i("50fc")),o=i("9090"),s={name:"RoleMenu",components:{RoleFunction:o["default"]},data:function(){return{defaultProps:{label:"MenuName",children:"Children"},treeData:[],loading:!1,expandedKeys:[]}},methods:{getMenus:function(e){var t=this;this.roleId=e,this.expandedKeys=[],this.treeData=[],this.loading=!0,this.$refs["roleFunction"].resetTable(),Object(r["k"])(e).then((function(e){t.loading=!1,t.treeData=e.Result,t.expandedKeys.push(e.Result[0].Id),t.selectedArr=[],t.$nextTick((function(){var e=this,t=this.setNodeChecked(this.treeData);t.forEach((function(t){e.$refs.menuTree.setChecked(t,!0,!1),e.expandedKeys.push(t)}))}))})).catch((function(){t.loading=!1}))},handleCheck:function(e,t){var i=this,n=[],a=t.checkedNodes,o=t.halfCheckedNodes;o.forEach((function(e){n.push(e.Id)})),a.forEach((function(e){n.push(e.Id)}));var s={roleId:this.roleId,menuFunctionId:n};Object(r["u"])(s).then((function(e){e.IsSuccess&&i.$message.success("Updated successfully")}))},handleNodeClick:function(e){this.$refs["roleFunction"].getFunctions(this.roleId,e.Id)},setNodeChecked:function(e){for(var t in e)e[t].IsSelect&&this.selectedArr.push(e[t].Id),e[t].Children&&e[t].Children.length&&this.setNodeChecked(e[t].Children);return this.selectedArr}}},l=s,c=(i("4713"),i("2877")),u=Object(c["a"])(l,n,a,!1,null,"473b4cbe",null);t["default"]=u.exports},ee1a:function(e,t,i){var n=i("6d8b"),a=n.each,r=n.isString;function o(e,t,i){i=i||{};var n,o,s,l,c=i.byIndex,u=i.stackedCoordDimension,d=!(!e||!e.get("stack"));if(a(t,(function(e,i){r(e)&&(t[i]=e={name:e}),d&&!e.isExtraCoord&&(c||n||!e.ordinalMeta||(n=e),o||"ordinal"===e.type||"time"===e.type||u&&u!==e.coordDim||(o=e))})),!o||c||n||(c=!0),o){s="__\0ecstackresult",l="__\0ecstackedover",n&&(n.createInvertedIndices=!0);var f=o.coordDim,h=o.type,p=0;a(t,(function(e){e.coordDim===f&&p++})),t.push({name:s,coordDim:f,coordDimIndex:p,type:h,isExtraCoord:!0,isCalculationCoord:!0}),p++,t.push({name:l,coordDim:l,coordDimIndex:p,type:h,isExtraCoord:!0,isCalculationCoord:!0})}return{stackedDimension:o&&o.name,stackedByDimension:n&&n.name,isStackedByIndex:c,stackedOverDimension:l,stackResultDimension:s}}function s(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function l(e,t){return s(e,t)?e.getCalculationInfo("stackResultDimension"):t}t.enableDataStack=o,t.isDimensionStacked=s,t.getStackedDimension=l},ee49:function(e,t,i){"use strict";i("fcaa")},ee66:function(e,t,i){var n=i("3eba"),a=i("6d8b"),r=i("2306"),o=i("eda2"),s=i("3842"),l={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},c={EN:["S","M","T","W","T","F","S"],CN:["日","一","二","三","四","五","六"]},u=n.extendComponentView({type:"calendar",_tlpoints:null,_blpoints:null,_firstDayOfMonth:null,_firstDayPoints:null,render:function(e,t,i){var n=this.group;n.removeAll();var a=e.coordinateSystem,r=a.getRangeInfo(),o=a.getOrient();this._renderDayRect(e,r,n),this._renderLines(e,r,o,n),this._renderYearText(e,r,o,n),this._renderMonthText(e,o,n),this._renderWeekText(e,r,o,n)},_renderDayRect:function(e,t,i){for(var n=e.coordinateSystem,a=e.getModel("itemStyle").getItemStyle(),o=n.getCellWidth(),s=n.getCellHeight(),l=t.start.time;l<=t.end.time;l=n.getNextNDay(l,1).time){var c=n.dataToRect([l],!1).tl,u=new r.Rect({shape:{x:c[0],y:c[1],width:o,height:s},cursor:"default",style:a});i.add(u)}},_renderLines:function(e,t,i,n){var a=this,r=e.coordinateSystem,o=e.getModel("splitLine.lineStyle").getLineStyle(),s=e.get("splitLine.show"),l=o.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var c=t.start,u=0;c.time<=t.end.time;u++){f(c.formatedDate),0===u&&(c=r.getDateInfo(t.start.y+"-"+t.start.m));var d=c.date;d.setMonth(d.getMonth()+1),c=r.getDateInfo(d)}function f(t){a._firstDayOfMonth.push(r.getDateInfo(t)),a._firstDayPoints.push(r.dataToRect([t],!1).tl);var l=a._getLinePointsOfOneWeek(e,t,i);a._tlpoints.push(l[0]),a._blpoints.push(l[l.length-1]),s&&a._drawSplitline(l,o,n)}f(r.getNextNDay(t.end.time,1).formatedDate),s&&this._drawSplitline(a._getEdgesPoints(a._tlpoints,l,i),o,n),s&&this._drawSplitline(a._getEdgesPoints(a._blpoints,l,i),o,n)},_getEdgesPoints:function(e,t,i){var n=[e[0].slice(),e[e.length-1].slice()],a="horizontal"===i?0:1;return n[0][a]=n[0][a]-t/2,n[1][a]=n[1][a]+t/2,n},_drawSplitline:function(e,t,i){var n=new r.Polyline({z2:20,shape:{points:e},style:t});i.add(n)},_getLinePointsOfOneWeek:function(e,t,i){var n=e.coordinateSystem;t=n.getDateInfo(t);for(var a=[],r=0;r<7;r++){var o=n.getNextNDay(t.time,r),s=n.dataToRect([o.time],!1);a[2*o.day]=s.tl,a[2*o.day+1]=s["horizontal"===i?"bl":"tr"]}return a},_formatterLabel:function(e,t){return"string"===typeof e&&e?o.formatTplSimple(e,t):"function"===typeof e?e(t):t.nameMap},_yearTextPositionControl:function(e,t,i,n,a){t=t.slice();var r=["center","bottom"];"bottom"===n?(t[1]+=a,r=["center","top"]):"left"===n?t[0]-=a:"right"===n?(t[0]+=a,r=["center","top"]):t[1]-=a;var o=0;return"left"!==n&&"right"!==n||(o=Math.PI/2),{rotation:o,position:t,style:{textAlign:r[0],textVerticalAlign:r[1]}}},_renderYearText:function(e,t,i,n){var a=e.getModel("yearLabel");if(a.get("show")){var o=a.get("margin"),s=a.get("position");s||(s="horizontal"!==i?"top":"left");var l=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(l[0][0]+l[1][0])/2,u=(l[0][1]+l[1][1])/2,d="horizontal"===i?0:1,f={top:[c,l[d][1]],bottom:[c,l[1-d][1]],left:[l[1-d][0],u],right:[l[d][0],u]},h=t.start.y;+t.end.y>+t.start.y&&(h=h+"-"+t.end.y);var p=a.get("formatter"),m={start:t.start.y,end:t.end.y,nameMap:h},g=this._formatterLabel(p,m),v=new r.Text({z2:30});r.setTextStyle(v.style,a,{text:g}),v.attr(this._yearTextPositionControl(v,f[s],i,s,o)),n.add(v)}},_monthTextPositionControl:function(e,t,i,n,a){var r="left",o="top",s=e[0],l=e[1];return"horizontal"===i?(l+=a,t&&(r="center"),"start"===n&&(o="bottom")):(s+=a,t&&(o="middle"),"start"===n&&(r="right")),{x:s,y:l,textAlign:r,textVerticalAlign:o}},_renderMonthText:function(e,t,i){var n=e.getModel("monthLabel");if(n.get("show")){var o=n.get("nameMap"),s=n.get("margin"),c=n.get("position"),u=n.get("align"),d=[this._tlpoints,this._blpoints];a.isString(o)&&(o=l[o.toUpperCase()]||[]);var f="start"===c?0:1,h="horizontal"===t?0:1;s="start"===c?-s:s;for(var p="center"===u,m=0;m<d[f].length-1;m++){var g=d[f][m].slice(),v=this._firstDayOfMonth[m];if(p){var b=this._firstDayPoints[m];g[h]=(b[h]+d[0][m+1][h])/2}var y=n.get("formatter"),w=o[+v.m-1],_={yyyy:v.y,yy:(v.y+"").slice(2),MM:v.m,M:+v.m,nameMap:w},I=this._formatterLabel(y,_),x=new r.Text({z2:30});a.extend(r.setTextStyle(x.style,n,{text:I}),this._monthTextPositionControl(g,p,t,c,s)),i.add(x)}}},_weekTextPositionControl:function(e,t,i,n,a){var r="center",o="middle",s=e[0],l=e[1],c="start"===i;return"horizontal"===t?(s=s+n+(c?1:-1)*a[0]/2,r=c?"right":"left"):(l=l+n+(c?1:-1)*a[1]/2,o=c?"bottom":"top"),{x:s,y:l,textAlign:r,textVerticalAlign:o}},_renderWeekText:function(e,t,i,n){var o=e.getModel("dayLabel");if(o.get("show")){var l=e.coordinateSystem,u=o.get("position"),d=o.get("nameMap"),f=o.get("margin"),h=l.getFirstDayOfWeek();a.isString(d)&&(d=c[d.toUpperCase()]||[]);var p=l.getNextNDay(t.end.time,7-t.lweek).time,m=[l.getCellWidth(),l.getCellHeight()];f=s.parsePercent(f,m["horizontal"===i?0:1]),"start"===u&&(p=l.getNextNDay(t.start.time,-(7+t.fweek)).time,f=-f);for(var g=0;g<7;g++){var v=l.getNextNDay(p,g),b=l.dataToRect([v.time],!1).center,y=g;y=Math.abs((g+h)%7);var w=new r.Text({z2:30});a.extend(r.setTextStyle(w.style,o,{text:d[y]}),this._weekTextPositionControl(b,i,u,f,m)),n.add(w)}}}});e.exports=u},ee84:function(e,t,i){var n=i("20c8"),a=i("401b"),r=a.applyTransform,o=n.CMD,s=[[],[],[]],l=Math.sqrt,c=Math.atan2;function u(e,t){var i,n,a,u,d,f=e.data,h=o.M,p=o.C,m=o.L,g=o.R,v=o.A,b=o.Q;for(a=0,u=0;a<f.length;){switch(i=f[a++],u=a,n=0,i){case h:n=1;break;case m:n=1;break;case p:n=3;break;case b:n=2;break;case v:var y=t[4],w=t[5],_=l(t[0]*t[0]+t[1]*t[1]),I=l(t[2]*t[2]+t[3]*t[3]),x=c(-t[1]/I,t[0]/_);f[a]*=_,f[a++]+=y,f[a]*=I,f[a++]+=w,f[a++]*=_,f[a++]*=I,f[a++]+=x,f[a++]+=x,a+=2,u=a;break;case g:S[0]=f[a++],S[1]=f[a++],r(S,S,t),f[u++]=S[0],f[u++]=S[1],S[0]+=f[a++],S[1]+=f[a++],r(S,S,t),f[u++]=S[0],f[u++]=S[1]}for(d=0;d<n;d++){var S=s[d];S[0]=f[a++],S[1]=f[a++],r(S,S,t),f[u++]=S[0],f[u++]=S[1]}}}e.exports=u},ee95:function(e,t,i){var n=i("3eba"),a=i("66a4");i("a04ed"),i("3942"),i("dd7e"),i("347f"),n.registerPreprocessor(a)},ee98:function(e,t){function i(e){return e instanceof Array||(e=[e,e]),e}var n="lineStyle.opacity".split("."),a={seriesType:"lines",reset:function(e,t,a){var r=i(e.get("symbol")),o=i(e.get("symbolSize")),s=e.getData();function l(e,t){var a=e.getItemModel(t),r=i(a.getShallow("symbol",!0)),o=i(a.getShallow("symbolSize",!0)),s=a.get(n);r[0]&&e.setItemVisual(t,"fromSymbol",r[0]),r[1]&&e.setItemVisual(t,"toSymbol",r[1]),o[0]&&e.setItemVisual(t,"fromSymbolSize",o[0]),o[1]&&e.setItemVisual(t,"toSymbolSize",o[1]),e.setItemVisual(t,"opacity",s)}return s.setVisual("fromSymbol",r&&r[0]),s.setVisual("toSymbol",r&&r[1]),s.setVisual("fromSymbolSize",o&&o[0]),s.setVisual("toSymbolSize",o&&o[1]),s.setVisual("opacity",e.get(n)),{dataEach:s.hasItemOption?l:null}}};e.exports=a},eee5:function(e,t,i){"use strict";i("9f49")},eeea:function(e,t,i){var n=i("4e08"),a=(n.__DEV__,i("3eba")),r=i("6d8b"),o=i("0141"),s=i("f934"),l=i("3842"),c=i("5b87"),u=i("ec34");function d(e,t){var i=e.get("boundingCoords");if(null!=i){var n=i[0],a=i[1];isNaN(n[0])||isNaN(n[1])||isNaN(a[0])||isNaN(a[1])||this.setBoundingRect(n[0],n[1],a[0]-n[0],a[1]-n[1])}var r,o=this.getBoundingRect(),c=e.get("layoutCenter"),u=e.get("layoutSize"),d=t.getWidth(),f=t.getHeight(),h=o.width/o.height*this.aspectScale,p=!1;if(c&&u&&(c=[l.parsePercent(c[0],d),l.parsePercent(c[1],f)],u=l.parsePercent(u,Math.min(d,f)),isNaN(c[0])||isNaN(c[1])||isNaN(u)||(p=!0)),p){var m={};h>1?(m.width=u,m.height=u/h):(m.height=u,m.width=u*h),m.y=c[1]-m.height/2,m.x=c[0]-m.width/2}else r=e.getBoxLayoutParams(),r.aspect=h,m=s.getLayoutRect(r,{width:d,height:f});this.setViewRect(m.x,m.y,m.width,m.height),this.setCenter(e.get("center")),this.setZoom(e.get("zoom"))}function f(e,t){r.each(t.get("geoCoord"),(function(t,i){e.addGeoCoord(i,t)}))}var h={dimensions:o.prototype.dimensions,create:function(e,t){var i=[];e.eachComponent("geo",(function(e,n){var a=e.get("map"),r=e.get("aspectScale"),s=!0,l=u.retrieveMap(a);l&&l[0]&&"svg"===l[0].type?(null==r&&(r=1),s=!1):null==r&&(r=.75);var c=new o(a+n,a,e.get("nameMap"),s);c.aspectScale=r,c.zoomLimit=e.get("scaleLimit"),i.push(c),f(c,e),e.coordinateSystem=c,c.model=e,c.resize=d,c.resize(e,t)})),e.eachSeries((function(e){var t=e.get("coordinateSystem");if("geo"===t){var n=e.get("geoIndex")||0;e.coordinateSystem=i[n]}}));var n={};return e.eachSeriesByType("map",(function(e){if(!e.getHostGeoModel()){var t=e.getMapType();n[t]=n[t]||[],n[t].push(e)}})),r.each(n,(function(e,n){var a=r.map(e,(function(e){return e.get("nameMap")})),s=new o(n,n,r.mergeAll(a));s.zoomLimit=r.retrieve.apply(null,r.map(e,(function(e){return e.get("scaleLimit")}))),i.push(s),s.resize=d,s.aspectScale=e[0].get("aspectScale"),s.resize(e[0],t),r.each(e,(function(e){e.coordinateSystem=s,f(s,e)}))})),i},getFilledRegions:function(e,t,i){for(var n=(e||[]).slice(),a=r.createHashMap(),o=0;o<n.length;o++)a.set(n[o].name,n[o]);var s=c.load(t,i);return r.each(s.regions,(function(e){var t=e.name;!a.get(t)&&n.push({name:t})})),n}};a.registerCoordinateSystem("geo",h);var p=h;e.exports=p},eeec:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("base-model",{attrs:{config:e.model_cfg}},[i("template",{slot:"dialog-body"},[i("el-form",{ref:"DictionaryTypeConfigForm",attrs:{model:e.form,rules:e.rules,"label-width":"120px",size:"small"}},[i("el-form-item",{attrs:{label:"ConfigTypeId: ",prop:"Code"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{filterable:""},model:{value:e.form.ConfigTypeId,callback:function(t){e.$set(e.form,"ConfigTypeId",t)},expression:"form.ConfigTypeId"}},e._l(e.basicDicList,(function(e,t){return i("el-option",{key:t,attrs:{label:e.Code+" ("+e.Description+")",value:e.Id}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"DataTypeEnum: ",prop:"DataTypeEnum"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{filterable:""},model:{value:e.form.DataTypeEnum,callback:function(t){e.$set(e.form,"DataTypeEnum",t)},expression:"form.DataTypeEnum"}},[i("el-option",{attrs:{label:"config",value:0}}),e._v(" "),i("el-option",{attrs:{label:"select",value:1}}),e._v(" "),i("el-option",{attrs:{label:"enum",value:2}}),e._v(" "),i("el-option",{attrs:{label:"bool",value:3}})],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Code: ",prop:"Code"}},[i("el-input",{model:{value:e.form.Code,callback:function(t){e.$set(e.form,"Code",t)},expression:"form.Code"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"ShowOrder: ",prop:"Code"}},[i("el-input-number",{attrs:{min:0},model:{value:e.form.ShowOrder,callback:function(t){e.$set(e.form,"ShowOrder",t)},expression:"form.ShowOrder"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Description: ",prop:"Code"}},[i("el-input",{model:{value:e.form.Description,callback:function(t){e.$set(e.form,"Description",t)},expression:"form.Description"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Is Enable: "}},[i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},model:{value:e.form.IsEnable,callback:function(t){e.$set(e.form,"IsEnable",t)},expression:"form.IsEnable"}})],1)],1)],1),e._v(" "),i("template",{slot:"dialog-footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.handleCancle}},[e._v("Cancel")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleSave}},[e._v("Save")])],1)],2)},a=[],r=i("db72"),o=(i("ac6a"),i("456d"),i("e56e")),s=i("7eeb"),l=function(){return{Id:"",ConfigTypeId:null,Code:"",KeyName:"",Description:"",Value:"",ValueCN:"",IsEnable:!0,DataTypeEnum:null}},c={name:"AnonymizationFrom",components:{BaseModel:s["default"]},props:{basicDicList:{type:Array,default:function(){return[]}}},data:function(){return{btnLoading:!1,form:l(),rules:{Code:[{required:!0,message:"Please specify",trigger:"blur"}],DataTypeEnum:[{required:!0,message:"Please specify",trigger:"blur"}]},model_cfg:{visible:!1,showClose:!0,width:"600px",title:"",appendToBody:!0}}},mounted:function(){},methods:{openDialog:function(e,t){this.model_cfg.visible=!0,this.model_cfg.title=e,Object.keys(t).length?this.form=Object(r["a"])({},t):this.form=l()},handleSave:function(){var e=this;this.$refs.DictionaryTypeConfigForm.validate((function(t){t&&(e.btnLoading=!0,Object(o["c"])(e.form).then((function(t){e.btnLoading=!1,e.$message.success("Saved successfully!"),e.model_cfg.visible=!1,e.$emit("getList")})).catch((function(){e.btnLoading=!1})))}))},handleCancle:function(){this.model_cfg.visible=!1}}},u=c,d=i("2877"),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},eef3:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container reviewers-data data-list"},[i("div",{staticClass:"filter-container"},[i("el-input",{staticStyle:{width:"160px","margin-right":"5px"},attrs:{size:"small",placeholder:"Name or Name CN"},model:{value:e.listQuery.SearchName,callback:function(t){e.$set(e.listQuery,"SearchName",t)},expression:"listQuery.SearchName"}}),e._v(" "),e.hospitalList?i("el-select",{staticStyle:{width:"150px"},attrs:{placeholder:"Hospital",clearable:"",size:"small"},model:{value:e.listQuery.HospitalId,callback:function(t){e.$set(e.listQuery,"HospitalId",t)},expression:"listQuery.HospitalId"}},e._l(e.hospitalList,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.HospitalName,value:e.Id}})})),1):e._e(),e._v(" "),i("el-button",{attrs:{size:"small",type:"text"},on:{click:e.handleReset}},[e._v("Reset")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.handleSearch}},[e._v("Search")])],1),e._v(" "),i("div",{staticClass:"list-container"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticClass:"table",attrs:{height:"100%",data:e.list,stripe:"",size:"small"},on:{"sort-change":e.sortByColumn}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"LastName",label:"Name","show-overflow-tooltip":"","min-width":"100",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.LastName+" / "+t.row.FirstName))]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"DoctorNameInBank",label:"Name CN","show-overflow-tooltip":"","min-width":"100",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",[e._v(e._s(t.row.DoctorNameInBank?t.row.DoctorNameInBank:t.row.ChineseName))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Code",label:"ID","show-overflow-tooltip":"","min-width":"90",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Hospital",label:"Hospital","show-overflow-tooltip":"","min-width":"100",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"RankName",label:"Rank","show-overflow-tooltip":"","min-width":"100"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Additional",label:"Personal Adjustment ($) ","show-overflow-tooltip":"","min-width":"200",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.Additional)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IDCard",label:"Resident ID ","show-overflow-tooltip":"","min-width":"120",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"BankName",label:"Bank","show-overflow-tooltip":"","min-width":"110",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"BankCardNumber",label:"Account Number","show-overflow-tooltip":"","min-width":"160",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:"Date Created","min-width":"140","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{fixed:"right",label:"Action","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{size:"small",type:"text"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("Edit")])]}}])})],1)],1),e._v(" "),i("div",{staticClass:"pagination"},[i("pagination",{attrs:{total:e.total,page:e.listQuery.PageIndex,limit:e.listQuery.PageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"PageIndex",t)},"update:limit":function(t){return e.$set(e.listQuery,"PageSize",t)},pagination:e.getList}})],1),e._v(" "),i("el-dialog",{key:e.form.DoctorId,attrs:{title:"Edit",visible:e.dialogVisible,width:"500px","close-on-click-modal":!1,size:"small"},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("el-form",{ref:"reviewerDataForm",attrs:{"label-width":"170px",rules:e.rules,model:e.form,size:"small"}},[i("el-form-item",{attrs:{label:"Name: "}},[i("el-input",{attrs:{readonly:""},model:{value:e.form.DoctorName,callback:function(t){e.$set(e.form,"DoctorName",t)},expression:"form.DoctorName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Name CN: ",prop:"DoctorNameInBank"}},[i("el-input",{model:{value:e.form.DoctorNameInBank,callback:function(t){e.$set(e.form,"DoctorNameInBank",t)},expression:"form.DoctorNameInBank"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"ID: ",prop:"Code"}},[i("el-input",{attrs:{readonly:""},model:{value:e.form.Code,callback:function(t){e.$set(e.form,"Code",t)},expression:"form.Code"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Rank: ",prop:"RankId"}},[i("el-select",{staticStyle:{width:"100%"},model:{value:e.form.RankId,callback:function(t){e.$set(e.form,"RankId",t)},expression:"form.RankId"}},e._l(e.rankList,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.RankName,value:e.Id}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Personal Adjustment ($): ",prop:"Additional"}},[i("el-input",{attrs:{type:"number"},model:{value:e.form.Additional,callback:function(t){e.$set(e.form,"Additional",t)},expression:"form.Additional"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Resident ID: ",prop:"IDCard"}},[i("el-input",{model:{value:e.form.IDCard,callback:function(t){e.$set(e.form,"IDCard",t)},expression:"form.IDCard"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Bank: ",prop:"BankName"}},[i("el-input",{model:{value:e.form.BankName,callback:function(t){e.$set(e.form,"BankName",t)},expression:"form.BankName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Account Number: ",prop:"BankCardNumber"}},[i("el-input",{model:{value:e.form.BankCardNumber,callback:function(t){e.$set(e.form,"BankCardNumber",t)},expression:"form.BankCardNumber"}})],1)],1),e._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{size:"small"},on:{click:function(t){e.dialogVisible=!1}}},[e._v("Cancel")]),e._v(" "),i("el-button",{attrs:{type:"primary",disabled:e.btnDisabled,size:"small"},on:{click:e.handleSave}},[e._v("Ok")])],1)],1)],1)},a=[],r=(i("7514"),i("db72")),o=(i("c5f6"),i("333d")),s=i("6b95"),l=i("7878"),c=i("4360"),u=i("2f62"),d=function(){return{SearchName:"",PageIndex:1,PageSize:20,Asc:!1,SortField:""}},f={name:"ReviewersData",filters:{rounding:function(e){return e?Number(e).toFixed(2):e}},components:{Pagination:o["default"]},data:function(){return{listQuery:d(),list:[],total:0,listLoading:!1,dialogVisible:!1,btnDisabled:!1,rankOption:[],form:{},rules:{DoctorNameInBank:[{required:!0,message:"Please specify",trigger:"blur"},{max:50,message:"The maximum length is 50"}],BankName:[{required:!0,message:"Please specify",trigger:"blur"},{max:50,message:"The maximum length is 50"}],BankCardNumber:[{required:!0,message:"Please specify",trigger:"blur"},{max:50,message:"The maximum length is 50"}],IDCard:[{required:!0,message:"Please specify",trigger:"blur"},{pattern:/(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/,message:"Incorrect ID card format"}],RankId:[{required:!0,message:"Please select",trigger:["blur","change"]}]}}},computed:Object(r["a"])({},Object(u["b"])(["hospitalList","rankList"])),mounted:function(){c["a"].dispatch("global/getHospital"),c["a"].dispatch("financials/getRank"),this.getList()},methods:{getList:function(){var e=this;this.listLoading=!0,Object(s["A"])(this.listQuery).then((function(t){e.listLoading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.listLoading=!1}))},handleEdit:function(e){this.form=function(e){var t=e.DoctorId,i=e.DoctorNameInBank,n=e.IDCard,a=e.BankCardNumber,r=e.BankName,o=e.RankId,s=e.Additional,l=e.Code;return{DoctorId:t,DoctorNameInBank:i,IDCard:n,BankCardNumber:a,BankName:r,RankId:o,Additional:s,Code:l}}(e),this.form.DoctorName=e.LastName+" / "+e.FirstName,this.form.DoctorNameInBank=e.DoctorNameInBank?e.DoctorNameInBank:e.ChineseName,this.dialogVisible=!0},handleSave:function(){var e=this;this.$refs.reviewerDataForm.validate((function(t){if(t){e.btnDisabled=!0;var i=function(e){var t=e.DoctorId,i=e.DoctorNameInBank,n=e.IDCard,a=e.BankCardNumber,r=e.BankName,o=e.RankId,s=e.Additional;return{DoctorId:t,DoctorNameInBank:i,IDCard:n,BankCardNumber:a,BankName:r,RankId:o,Additional:s}}(e.form);Object(s["e"])(i).then((function(t){e.btnDisabled=!1,e.dialogVisible=!1,e.getList(),e.$message.success("Updated successfully")})).catch((function(){e.btnDisabled=!1}))}}))},handleSearch:function(){this.listQuery.PageIndex=1,this.getList()},handleReset:function(){Object.assign(this.listQuery,d()),this.getList()},onSelected:function(e){var t=this.rankOption.find((function(t){return t.Id===e}));this.form.Rank=t.RankName},sortByColumn:function(e){"ascending"===e.order?this.listQuery.Asc=!0:this.listQuery.Asc=!1,this.listQuery.SortField=e.prop,this.listQuery.PageIndex=1,this.getList()},timeFormatter:function(e){if(e.CreateTime)return Object(l["formatUTCTime"])(e.CreateTime)}}},h=f,p=(i("45f0"),i("2877")),m=Object(p["a"])(h,n,a,!1,null,"0cf9be31",null);t["default"]=m.exports},ef2b:function(e,t,i){var n=i("401b"),a=n.scaleAndAdd;function r(e,t,i){for(var r=i.rect,o=r.width,s=r.height,l=[r.x+o/2,r.y+s/2],c=null==i.gravity?.1:i.gravity,u=0;u<e.length;u++){var d=e[u];d.p||(d.p=n.create(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),d.pp=n.clone(d.p),d.edges=null}var f=null==i.friction?.6:i.friction,h=f;return{warmUp:function(){h=.8*f},setFixed:function(t){e[t].fixed=!0},setUnfixed:function(t){e[t].fixed=!1},step:function(i){for(var r=[],o=e.length,s=0;s<t.length;s++){var u=t[s];if(!u.ignoreForceLayout){var d=u.n1,f=u.n2;n.sub(r,f.p,d.p);var p=n.len(r)-u.d,m=f.w/(d.w+f.w);isNaN(m)&&(m=0),n.normalize(r,r),!d.fixed&&a(d.p,d.p,r,m*p*h),!f.fixed&&a(f.p,f.p,r,-(1-m)*p*h)}}for(s=0;s<o;s++){var g=e[s];g.fixed||(n.sub(r,l,g.p),a(g.p,g.p,r,c*h))}for(s=0;s<o;s++){d=e[s];for(var v=s+1;v<o;v++){f=e[v];n.sub(r,f.p,d.p);p=n.len(r);0===p&&(n.set(r,Math.random()-.5,Math.random()-.5),p=1);var b=(d.rep+f.rep)/p/p;!d.fixed&&a(d.pp,d.pp,r,b),!f.fixed&&a(f.pp,f.pp,r,-b)}}var y=[];for(s=0;s<o;s++){g=e[s];g.fixed||(n.sub(y,g.p,g.pp),a(g.p,g.p,y,h),n.copy(g.pp,g.p))}h*=.992,i&&i(e,t,h<.01)}}}t.forceLayout=r},ef3c:function(e,t,i){"use strict";i.r(t);i("a481");var n,a,r=i("4360"),o={created:function(){var e=this.$route,t=e.params,i=e.query,n=t.path;i.token&&r["a"].dispatch("user/setToken",i.token),this.$router.replace({path:"/"+n,query:i})},render:function(e){return e()}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},ef49:function(e,t,i){},ef4a:function(e,t,i){},ef6a:function(e,t){function i(e,t,i,r,o,s){e=e||0;var l=i[1]-i[0];if(null!=o&&(o=a(o,[0,l])),null!=s&&(s=Math.max(s,null!=o?o:0)),"all"===r){var c=Math.abs(t[1]-t[0]);c=a(c,[0,l]),o=s=a(c,[o,s]),r=0}t[0]=a(t[0],i),t[1]=a(t[1],i);var u=n(t,r);t[r]+=e;var d=o||0,f=i.slice();u.sign<0?f[0]+=d:f[1]-=d,t[r]=a(t[r],f);var h=n(t,r);null!=o&&(h.sign!==u.sign||h.span<o)&&(t[1-r]=t[r]+u.sign*o);h=n(t,r);return null!=s&&h.span>s&&(t[1-r]=t[r]+h.sign*s),t}function n(e,t){var i=e[t]-e[1-t];return{span:Math.abs(i),sign:i>0?-1:i<0?1:t?-1:1}}function a(e,t){return Math.min(null!=t[1]?t[1]:1/0,Math.max(null!=t[0]?t[0]:-1/0,e))}e.exports=i},ef97:function(e,t,i){var n=i("3eba");i("217b"),i("f17f");var a=i("7f96"),r=i("87c3"),o=i("fdde");i("01ed"),n.registerVisual(a("line","circle","line")),n.registerLayout(r("line")),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,o("line"))},ef97a:function(e,t,i){var n=i("3eba");i("2163"),i("6cd8"),i("bf9b");var a=i("7f96"),r=i("ca29");n.registerVisual(a("tree","circle")),n.registerLayout(r)},efa6:function(e,t,i){},efe6:function(e,t,i){},f026:function(e,t,i){},f027:function(e,t,i){"use strict";i("5524")},f0da:function(e,t,i){e.exports=i.p+"static/img/MIM.3031a34e.png"},f0e0:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"clinicalDataForm",attrs:{model:e.form,size:"small",rules:e.rules,"label-width":"110px"}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:e.$t("trials:processCfg:title:clinicalDataName"),prop:"ClinicalDataSetName"}},[i("el-input",{attrs:{disabled:!0===e.data.IsFromSystemData},model:{value:e.form.ClinicalDataSetName,callback:function(t){e.$set(e.form,"ClinicalDataSetName",t)},expression:"form.ClinicalDataSetName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:processCfg:title:uploader"),prop:"UploadRole"}},[i("el-select",{staticStyle:{width:"100%"},on:{change:e.handleUploadRoleChange},model:{value:e.form.UploadRole,callback:function(t){e.$set(e.form,"UploadRole",t)},expression:"form.UploadRole"}},e._l(e.$d.ClinicalDataUploadRole,(function(e,t){return i("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:processCfg:title:dataLevel"),prop:"ClinicalDataLevel"}},[i("el-select",{staticStyle:{width:"100%"},model:{value:e.form.ClinicalDataLevel,callback:function(t){e.$set(e.form,"ClinicalDataLevel",t)},expression:"form.ClinicalDataLevel"}},e._l(e.$d.ClinicalLevel,(function(t,n){return i("el-option",{key:n,attrs:{label:t.label,value:t.value,disabled:0===e.form.UploadRole&&2===t.value||0===e.form.UploadRole&&3===t.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:processCfg:title:transferType"),prop:"ClinicalUploadType"}},[i("el-select",{staticStyle:{width:"100%"},model:{value:e.form.ClinicalUploadType,callback:function(t){e.$set(e.form,"ClinicalUploadType",t)},expression:"form.ClinicalUploadType"}},e._l(e.$d.ClinicalUploadType,(function(t,n){return i("el-option",{key:n,attrs:{label:t.label,value:t.value,disabled:1===e.form.UploadRole&&0===t.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:processCfg:title:criterion"),prop:"CriterionEnumList"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{multiple:""},model:{value:e.form.TrialCriterionIdList,callback:function(t){e.$set(e.form,"TrialCriterionIdList",t)},expression:"form.TrialCriterionIdList"}},e._l(e.criterionList,(function(e,t){return i("el-option",{key:t,attrs:{label:e.CriterionName,value:e.Id}})})),1)],1),e._v(" "),1===e.form.ClinicalUploadType?i("el-form-item",{attrs:{label:e.$t("trials:processCfg:title:module")}},[i("div",{staticClass:"upload-container"},[i("el-upload",{staticClass:"upload-demo",attrs:{action:"",accept:".doc,.docx","before-upload":e.beforeUpload,"http-request":e.handleUploadFile,"on-preview":e.handlePreview,"on-remove":e.handleRemoveFile,"show-file-list":!0,"file-list":e.fileList,limit:1,"on-exceed":e.handleExceed,disabled:""===e.form.Type}},[i("el-button",{attrs:{size:"small",type:"primary"}},[e._v(e._s(e.$t("trials:processCfg:button:select")))]),e._v(" "),i("span",{staticClass:"el-upload__tip",staticStyle:{"margin-left":"10px"},attrs:{slot:"tip"},slot:"tip"},[e._v("\n "+e._s(e.$t("trials:processCfg:title:docFormat"))+"\n ")])],1)],1)]):e._e()],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.close}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.save}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)])},a=[],r=(i("7f7f"),i("ac6a"),i("456d"),i("3e42")),o={name:"AddOrUpdateClinicalData",props:{data:{type:Object,default:function(){return{}}},trialId:{type:String,required:!0}},data:function(){return{form:{TrialId:"",Id:"",ClinicalDataSetName:"",ClinicalDataLevel:null,ClinicalUploadType:null,UploadRole:null,FileName:"",Path:"",TrialCriterionIdList:[]},rules:{ClinicalDataSetName:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:["blur","change"]}],ClinicalDataLevel:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}],ClinicalUploadType:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}],UploadRole:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}],TrialCriterionIdList:[{required:!0,message:this.$t("common:ruleMessage:select"),trigger:["blur","change"]}]},loading:!1,btnLoading:!1,fileList:[],trialCriterionSelectList:[],criterionList:[]}},mounted:function(){this.initForm(),this.getCriterionList()},methods:{getCriterionList:function(){var e=this;Object(r["Wc"])({TrialId:this.trialId,PageIndex:1,PageSize:500}).then((function(t){e.criterionList=t.Result.CurrentPageData})).catch((function(){e.listLoading=!1}))},getTrialCriterionSelectList:function(){var e=this;Object(r["Ed"])({TrialId:this.trialId}).then((function(t){e.trialCriterionSelectList=t.Result}))},initForm:function(){if(Object.keys(this.data).length>0){for(var e in this.form)this.data.hasOwnProperty(e)&&(this.form[e]=this.data[e]);if(!this.data.Path)return;this.fileList=[{name:this.data.FileName,path:this.data.Path}]}},save:function(){var e=this;this.$refs.clinicalDataForm.validate((function(t){t&&(e.btnLoading=!0,e.form.TrialId=e.trialId,Object(r["j"])(e.form).then((function(t){e.btnLoading=!1,e.$emit("getList",!0),e.$emit("close"),e.$message.success(e.$t("common:message:savedSuccessfully"))})).catch((function(){e.btnLoading=!1})))}))},handleUploadFile:function(e){var t=this;this.loading=!0,Object(r["xf"])(e.file,this.trialId).then((function(e){if(t.loading=!1,e.IsSuccess){t.form.Path=e.Result[0].Path,t.form.FileName=e.Result[0].FileName;var i={name:t.form.FileName,path:t.form.Path};t.fileList.push(i)}})).catch((function(){t.loading=!1}))},beforeUpload:function(e){return this.checkFileSuffix(e.name)?(this.fileList=[],!0):(this.$message.error(this.$t("trials:processCfg:title:docFormat")),!1)},handleRemoveFile:function(){this.fileList=[],this.form.Path="",this.form.FileName=""},handlePreview:function(e){e.fullPath&&window.open(e.fullPath,"_blank")},handleExceed:function(e,t){this.$message.warning(this.$t("trials:processCfg:title:onlyOneFile"))},checkFileSuffix:function(e){var t=["doc","docx"],i=e.substring(e.lastIndexOf(".")+1).toLocaleLowerCase();return-1!==t.indexOf(i)},handleUploadRoleChange:function(e){this.form.ClinicalDataLevel=null,this.form.ClinicalUploadType=null},close:function(){this.$emit("close")}}},s=o,l=(i("ca2f"),i("2877")),c=Object(l["a"])(s,n,a,!1,null,"5c39d84b",null);t["default"]=c.exports},f106:function(e,t,i){"use strict";i("9183")},f123:function(e,t,i){var n=i("9f82"),a=n.prepareDataCoordInfo,r=n.getStackedOnPoint;function o(e,t){var i=[];return t.diff(e).add((function(e){i.push({cmd:"+",idx:e})})).update((function(e,t){i.push({cmd:"=",idx:t,idx1:e})})).remove((function(e){i.push({cmd:"-",idx:e})})).execute(),i}function s(e,t,i,n,s,l,c,u){for(var d=o(e,t),f=[],h=[],p=[],m=[],g=[],v=[],b=[],y=a(s,t,c),w=a(l,e,u),_=0;_<d.length;_++){var I=d[_],x=!0;switch(I.cmd){case"=":var S=e.getItemLayout(I.idx),T=t.getItemLayout(I.idx1);(isNaN(S[0])||isNaN(S[1]))&&(S=T.slice()),f.push(S),h.push(T),p.push(i[I.idx]),m.push(n[I.idx1]),b.push(t.getRawIndex(I.idx1));break;case"+":var C=I.idx;f.push(s.dataToPoint([t.get(y.dataDimsForPoint[0],C),t.get(y.dataDimsForPoint[1],C)])),h.push(t.getItemLayout(C).slice()),p.push(r(y,s,t,C)),m.push(n[C]),b.push(t.getRawIndex(C));break;case"-":C=I.idx;var k=e.getRawIndex(C);k!==C?(f.push(e.getItemLayout(C)),h.push(l.dataToPoint([e.get(w.dataDimsForPoint[0],C),e.get(w.dataDimsForPoint[1],C)])),p.push(i[C]),m.push(r(w,l,e,C)),b.push(k)):x=!1}x&&(g.push(I),v.push(v.length))}v.sort((function(e,t){return b[e]-b[t]}));var R=[],D=[],L=[],O=[],$=[];for(_=0;_<v.length;_++){C=v[_];R[_]=f[C],D[_]=h[C],L[_]=p[C],O[_]=m[C],$[_]=g[C]}return{current:R,next:D,stackedOnCurrent:L,stackedOnNext:O,status:$}}e.exports=s},f138:function(e,t,i){var n=i("dcb3"),a=i("ff2e"),r=i("edb9"),o=i("6679"),s=["x","y"],l=["width","height"],c=n.extend({makeElOption:function(e,t,i,n,o){var s=i.axis,l=s.coordinateSystem,c=f(l,1-d(s)),h=l.dataToPoint(t)[0],p=n.get("type");if(p&&"none"!==p){var m=a.buildElStyle(n),g=u[p](s,h,c);g.style=m,e.graphicKey=g.type,e.pointer=g}var v=r.layout(i);a.buildCartesianSingleLabelElOption(t,e,v,i,n,o)},getHandleTransform:function(e,t,i){var n=r.layout(t,{labelInside:!1});return n.labelMargin=i.get("handle.margin"),{position:a.getTransformedPosition(t.axis,e,n),rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(e,t,i,n){var a=i.axis,r=a.coordinateSystem,o=d(a),s=f(r,o),l=e.position;l[o]+=t[o],l[o]=Math.min(s[1],l[o]),l[o]=Math.max(s[0],l[o]);var c=f(r,1-o),u=(c[1]+c[0])/2,h=[u,u];return h[o]=l[o],{position:l,rotation:e.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}}}),u={line:function(e,t,i){var n=a.makeLineShape([t,i[0]],[t,i[1]],d(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,i){var n=e.getBandWidth(),r=i[1]-i[0];return{type:"Rect",shape:a.makeRectShape([t-n/2,i[0]],[n,r],d(e))}}};function d(e){return e.isHorizontal()?0:1}function f(e,t){var i=e.getRect();return[i[s[t]],i[s[t]]+i[l[t]]]}o.registerAxisPointerClass("SingleAxisPointer",c);var h=c;e.exports=h},f142:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{staticClass:"search-form",staticStyle:{display:"flex","justify-content":"space-between"}},[i("div"),e._v(" "),i("div",[i("el-button",{staticStyle:{"margin-right":"10px"},attrs:{size:"mini",type:"primary"},on:{click:e.handleAdd}},[e._v("\n 配置\n ")])],1)]),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.list,stripe:""}},[i("el-table-column",{attrs:{prop:"",label:"序号",width:"50"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.$index+1)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Code",label:"字典表名","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Description",label:"描述","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Count",label:"子项数量","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ShowOrder",label:"排序","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Description",label:"操作","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(i){return e.openChildren(t.row)}}},[e._v("\n 配置\n ")]),e._v(" "),i("el-button",{attrs:{type:"danger",size:"small"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("\n 删除\n ")])]}}])})],1),e._v(" "),i("el-drawer",{attrs:{title:e.drawer_cfg.title,"append-to-body":!0,"modal-append-to-body":!1,visible:e.drawer_cfg.drawerChild,direction:"rtl",size:"80%"},on:{"update:visible":function(t){return e.$set(e.drawer_cfg,"drawerChild",t)}}},[e.drawer_cfg.drawerChild?i("CriterionDictionaryConfig",{attrs:{criterionId:e.criterionId,parentCode:e.drawer_cfg.title},on:{getList:e.getList}}):e._e()],1),e._v(" "),i("el-drawer",{attrs:{title:e.drawer_cfg2.title,"append-to-body":!0,"modal-append-to-body":!1,visible:e.drawer_cfg2.drawerChild,direction:"rtl",size:"80%"},on:{"update:visible":function(t){return e.$set(e.drawer_cfg2,"drawerChild",t)}}},[i("div",{staticStyle:{"text-align":"right"}},[i("el-button",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{size:"mini",type:"primary"},on:{click:e.handleSave}},[e._v("\n 保存\n ")])],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:0},expression:"{bottomOffset:0}"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{height:"100",data:e.dicList,stripe:""},on:{"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),i("el-table-column",{attrs:{width:"55"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.$index+1)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Code",label:"字典表名","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Description",label:"描述","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ShowOrder",label:"排序","show-overflow-tooltip":""}})],1)],1)],1)},a=[],r=(i("7514"),i("ac6a"),i("e56e")),o=i("6680"),s={props:{criterionId:{type:String,required:!0}},components:{CriterionDictionaryConfig:o["default"]},data:function(){return{list:[],total:0,loading:!1,rowData:{},activeName:"0",addOrEdit:{visible:!1,title:""},preview:{visible:!1,title:"eCRF预览"},config:{visible:!1,title:"全局配置"},drawer_cfg:{drawerChild:!1,parentId:"",title:""},drawer_cfg2:{drawerChild:!1,parentId:"",title:""},selectedList:[],dicList:[]}},mounted:function(){this.getList(),this.getBasicConfigSelect()},methods:{getBasicConfigSelect:function(){var e=this;Object(r["U"])("Reading_eCRF_Criterion").then((function(t){e.dicList=t.Result}))},openChildren:function(e){this.drawer_cfg={drawerChild:!0,title:e.Code,parent:e}},toggleSelection:function(e){var t=this;console.log(this.$refs.multipleTable),this.$refs.multipleTable.clearSelection(),e&&e.forEach((function(e){t.$refs.multipleTable.toggleRowSelection(e)}))},handleSelectionChange:function(e){this.selectedList=e},getList:function(){var e=this;this.loading=!0,Object(r["cb"])({CriterionId:this.criterionId,SystemCriterionId:this.criterionId}).then((function(t){e.loading=!1,e.list=t.Result,console.log(e.$d.GlobalAssessType)}))},handleAdd:function(){var e=this;this.drawer_cfg2={drawerChild:!0,title:"选择标准字典"},this.config.visible=!0,this.$nextTick((function(){var t=e.dicList.filter((function(t){return!!e.list.find((function(e){return e.Code===t.Code}))}));console.log(t),e.toggleSelection(t)}))},handleSave:function(){var e=this;this.loading=!0;var t={SystemCriterionId:this.criterionId,CodeList:this.selectedList.map((function(e){return e.Code}))?this.selectedList.map((function(e){return e.Code})):null};Object(r["x"])(t).then((function(t){e.$message.success("保存成功"),e.drawer_cfg2.drawerChild=!1,e.loading=!1,e.getList()}))},handleDelete:function(e){var t=this;this.loading=!0,this.$confirm("确定要删除该系统标准字典吗?").then((function(){Object(r["Q"])({Id:e.Id}).then((function(e){t.$message.success("删除成功"),t.loading=!1,t.getList()})).catch((function(){t.loading=!1}))}))}}},l=s,c=(i("144c"),i("2877")),u=Object(c["a"])(l,n,a,!1,null,"00bc1756",null);t["default"]=u.exports},f14c:function(e,t,i){var n=i("84d5"),a=i("f934"),r=a.mergeLayoutParam,o=a.getLayoutParams,s=n.extend({type:"legend.scroll",setScrollDataIndex:function(e){this.option.scrollDataIndex=e},defaultOption:{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800},init:function(e,t,i,n){var a=o(e);s.superCall(this,"init",e,t,i,n),l(this,e,a)},mergeOption:function(e,t){s.superCall(this,"mergeOption",e,t),l(this,this.option,e)}});function l(e,t,i){var n=e.getOrient(),a=[1,1];a[n.index]=0,r(t,i,{type:"box",ignoreSize:a})}var c=s;e.exports=c},f170:function(e,t,i){i("a87d");var n=i("697e7"),a=n.registerPainter,r=i("e9f9");a("vml",r)},f17f:function(e,t,i){var n=i("4e08"),a=(n.__DEV__,i("6d8b")),r=i("e263"),o=r.fromPoints,s=i("f706"),l=i("1418"),c=i("f123"),u=i("2306"),d=i("e0d3"),f=i("d4d1"),h=f.Polyline,p=f.Polygon,m=i("e887"),g=i("9f82"),v=g.prepareDataCoordInfo,b=g.getStackedOnPoint,y=i("b0af"),w=y.createGridClipPath,_=y.createPolarClipPath;function I(e,t){if(e.length===t.length){for(var i=0;i<e.length;i++){var n=e[i],a=t[i];if(n[0]!==a[0]||n[1]!==a[1])return}return!0}}function x(e,t){var i=[],n=[],a=[],r=[];return o(e,i,n),o(t,a,r),Math.max(Math.abs(i[0]-a[0]),Math.abs(i[1]-a[1]),Math.abs(n[0]-r[0]),Math.abs(n[1]-r[1]))}function S(e){return"number"===typeof e?e:e?.5:0}function T(e,t,i){if(!i.valueDim)return[];for(var n=[],a=0,r=t.count();a<r;a++)n.push(b(i,e,t,a));return n}function C(e,t,i){for(var n=t.getBaseAxis(),a="x"===n.dim||"radius"===n.dim?0:1,r=[],o=0;o<e.length-1;o++){var s=e[o+1],l=e[o];r.push(l);var c=[];switch(i){case"end":c[a]=s[a],c[1-a]=l[1-a],r.push(c);break;case"middle":var u=(l[a]+s[a])/2,d=[];c[a]=d[a]=u,c[1-a]=l[1-a],d[1-a]=s[1-a],r.push(c),r.push(d);break;default:c[a]=l[a],c[1-a]=s[1-a],r.push(c)}}return e[o]&&r.push(e[o]),r}function k(e,t){var i=e.getVisual("visualMeta");if(i&&i.length&&e.count()&&"cartesian2d"===t.type){for(var n,r,o=i.length-1;o>=0;o--){var s=i[o].dimension,l=e.dimensions[s],c=e.getDimensionInfo(l);if(n=c&&c.coordDim,"x"===n||"y"===n){r=i[o];break}}if(r){var d=t.getAxis(n),f=a.map(r.stops,(function(e){return{coord:d.toGlobalCoord(d.dataToCoord(e.value)),color:e.color}})),h=f.length,p=r.outerColors.slice();h&&f[0].coord>f[h-1].coord&&(f.reverse(),p.reverse());var m=10,g=f[0].coord-m,v=f[h-1].coord+m,b=v-g;if(b<.001)return"transparent";a.each(f,(function(e){e.offset=(e.coord-g)/b})),f.push({offset:h?f[h-1].offset:.5,color:p[1]||"transparent"}),f.unshift({offset:h?f[0].offset:.5,color:p[0]||"transparent"});var y=new u.LinearGradient(0,0,0,0,f,!0);return y[n]=g,y[n+"2"]=v,y}}}function R(e,t,i){var n=e.get("showAllSymbol"),r="auto"===n;if(!n||r){var o=i.getAxesByScale("ordinal")[0];if(o&&(!r||!D(o,t))){var s=t.mapDimension(o.dim),l={};return a.each(o.getViewLabels(),(function(e){l[e.tickValue]=1})),function(e){return!l.hasOwnProperty(t.get(s,e))}}}}function D(e,t){var i=e.getExtent(),n=Math.abs(i[1]-i[0])/e.scale.count();isNaN(n)&&(n=0);for(var a=t.count(),r=Math.max(1,Math.round(a/5)),o=0;o<a;o+=r)if(1.5*l.getSymbolSize(t,o)[e.isHorizontal()?1:0]>n)return!1;return!0}function L(e,t,i){if("cartesian2d"===e.type){var n=e.getBaseAxis().isHorizontal(),a=w(e,t,i);if(!i.get("clip",!0)){var r=a.shape,o=Math.max(r.width,r.height);n?(r.y-=o,r.height+=2*o):(r.x-=o,r.width+=2*o)}return a}return _(e,t,i)}var O=m.extend({type:"line",init:function(){var e=new u.Group,t=new s;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e},render:function(e,t,i){var n=e.coordinateSystem,r=this.group,o=e.getData(),s=e.getModel("lineStyle"),l=e.getModel("areaStyle"),c=o.mapArray(o.getItemLayout),u="polar"===n.type,d=this._coordSys,f=this._symbolDraw,h=this._polyline,p=this._polygon,m=this._lineGroup,g=e.get("animation"),b=!l.isEmpty(),y=l.get("origin"),w=v(n,o,y),_=T(n,o,w),x=e.get("showSymbol"),D=x&&!u&&R(e,o,n),O=this._data;O&&O.eachItemGraphicEl((function(e,t){e.__temp&&(r.remove(e),O.setItemGraphicEl(t,null))})),x||f.remove(),r.add(m);var $,N=!u&&e.get("step");n&&n.getArea&&e.get("clip",!0)&&($=n.getArea(),null!=$.width?($.x-=.1,$.y-=.1,$.width+=.2,$.height+=.2):$.r0&&($.r0-=.5,$.r1+=.5)),this._clipShapeForSymbol=$,h&&d.type===n.type&&N===this._step?(b&&!p?p=this._newPolygon(c,_,n,g):p&&!b&&(m.remove(p),p=this._polygon=null),m.setClipPath(L(n,!1,e)),x&&f.updateData(o,{isIgnore:D,clipShape:$}),o.eachItemGraphicEl((function(e){e.stopAnimation(!0)})),I(this._stackedOnPoints,_)&&I(this._points,c)||(g?this._updateAnimation(o,_,n,i,N,y):(N&&(c=C(c,n,N),_=C(_,n,N)),h.setShape({points:c}),p&&p.setShape({points:c,stackedOnPoints:_})))):(x&&f.updateData(o,{isIgnore:D,clipShape:$}),N&&(c=C(c,n,N),_=C(_,n,N)),h=this._newPolyline(c,n,g),b&&(p=this._newPolygon(c,_,n,g)),m.setClipPath(L(n,!0,e)));var A=k(o,n)||o.getVisual("color");h.useStyle(a.defaults(s.getLineStyle(),{fill:"none",stroke:A,lineJoin:"bevel"}));var P=e.get("smooth");if(P=S(e.get("smooth")),h.setShape({smooth:P,smoothMonotone:e.get("smoothMonotone"),connectNulls:e.get("connectNulls")}),p){var E=o.getCalculationInfo("stackedOnSeries"),M=0;p.useStyle(a.defaults(l.getAreaStyle(),{fill:A,opacity:.7,lineJoin:"bevel"})),E&&(M=S(E.get("smooth"))),p.setShape({smooth:P,stackedOnSmooth:M,smoothMonotone:e.get("smoothMonotone"),connectNulls:e.get("connectNulls")})}this._data=o,this._coordSys=n,this._stackedOnPoints=_,this._points=c,this._step=N,this._valueOrigin=y},dispose:function(){},highlight:function(e,t,i,n){var a=e.getData(),r=d.queryDataIndex(a,n);if(!(r instanceof Array)&&null!=r&&r>=0){var o=a.getItemGraphicEl(r);if(!o){var s=a.getItemLayout(r);if(!s)return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(s[0],s[1]))return;o=new l(a,r),o.position=s,o.setZ(e.get("zlevel"),e.get("z")),o.ignore=isNaN(s[0])||isNaN(s[1]),o.__temp=!0,a.setItemGraphicEl(r,o),o.stopSymbolAnimation(!0),this.group.add(o)}o.highlight()}else m.prototype.highlight.call(this,e,t,i,n)},downplay:function(e,t,i,n){var a=e.getData(),r=d.queryDataIndex(a,n);if(null!=r&&r>=0){var o=a.getItemGraphicEl(r);o&&(o.__temp?(a.setItemGraphicEl(r,null),this.group.remove(o)):o.downplay())}else m.prototype.downplay.call(this,e,t,i,n)},_newPolyline:function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new h({shape:{points:e},silent:!0,z2:10}),this._lineGroup.add(t),this._polyline=t,t},_newPolygon:function(e,t){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new p({shape:{points:e,stackedOnPoints:t},silent:!0}),this._lineGroup.add(i),this._polygon=i,i},_updateAnimation:function(e,t,i,n,a,r){var o=this._polyline,s=this._polygon,l=e.hostModel,d=c(this._data,e,this._stackedOnPoints,t,this._coordSys,i,this._valueOrigin,r),f=d.current,h=d.stackedOnCurrent,p=d.next,m=d.stackedOnNext;if(a&&(f=C(d.current,i,a),h=C(d.stackedOnCurrent,i,a),p=C(d.next,i,a),m=C(d.stackedOnNext,i,a)),x(f,p)>3e3||s&&x(h,m)>3e3)return o.setShape({points:p}),void(s&&s.setShape({points:p,stackedOnPoints:m}));o.shape.__points=d.current,o.shape.points=f,u.updateProps(o,{shape:{points:p}},l),s&&(s.setShape({points:f,stackedOnPoints:h}),u.updateProps(s,{shape:{points:p,stackedOnPoints:m}},l));for(var g=[],v=d.status,b=0;b<v.length;b++){var y=v[b].cmd;if("="===y){var w=e.getItemGraphicEl(v[b].idx1);w&&g.push({el:w,ptIdx:b})}}o.animators&&o.animators.length&&o.animators[0].during((function(){for(var e=0;e<g.length;e++){var t=g[e].el;t.attr("position",o.shape.__points[g[e].ptIdx])}}))},remove:function(e){var t=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl((function(e,n){e.__temp&&(t.remove(e),i.setItemGraphicEl(n,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._data=null}});e.exports=O},f1c3:function(e,t){let i=0,n=0;const a=e=>{const[t,i,n]=e.split(":");return 60*parseFloat(t)*60+60*parseFloat(i)+parseFloat(n)};e.exports=(e,t)=>{if("string"===typeof e)if(e.startsWith(" Duration")){const r=e.split(", ")[0].split(": ")[1],o=a(r);t({duration:o,ratio:n}),(0===i||i>o)&&(i=o)}else if(e.startsWith("frame")||e.startsWith("size")){const r=e.split("time=")[1].split(" ")[0],o=a(r);n=o/i,t({ratio:n,time:o})}else e.startsWith("video:")&&(t({ratio:1}),i=0)}},f205:function(e,t,i){"use strict";i("ec44")},f219:function(e,t){var i="#eee",n=function(){return{axisLine:{lineStyle:{color:i}},axisTick:{lineStyle:{color:i}},axisLabel:{textStyle:{color:i}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:i}}}},a=["#dd6b66","#759aa0","#e69d87","#8dc1a9","#ea7e53","#eedd78","#73a373","#73b9bc","#7289ab","#91ca8c","#f49f42"],r={color:a,backgroundColor:"#333",tooltip:{axisPointer:{lineStyle:{color:i},crossStyle:{color:i},label:{color:"#000"}}},legend:{textStyle:{color:i}},textStyle:{color:i},title:{textStyle:{color:i}},toolbox:{iconStyle:{normal:{borderColor:i}}},dataZoom:{textStyle:{color:i}},visualMap:{textStyle:{color:i}},timeline:{lineStyle:{color:i},itemStyle:{normal:{color:a[1]}},label:{normal:{textStyle:{color:i}}},controlStyle:{normal:{color:i,borderColor:i}}},timeAxis:n(),logAxis:n(),valueAxis:n(),categoryAxis:n(),line:{symbol:"circle"},graph:{color:a},gauge:{title:{textStyle:{color:i}}},candlestick:{itemStyle:{normal:{color:"#FD1050",color0:"#0CF49B",borderColor:"#FD1050",borderColor0:"#0CF49B"}}}};r.categoryAxis.splitLine.show=!1;var o=r;e.exports=o},f22e:function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-exit-fullscreen",use:"icon-exit-fullscreen-usage",viewBox:"0 0 128 128",content:'<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" id="icon-exit-fullscreen"><path d="M49.217 41.329l-.136-35.24c-.06-2.715-2.302-4.345-5.022-4.405h-3.65c-2.712-.06-4.866 2.303-4.806 5.016l.152 19.164-24.151-23.79a6.698 6.698 0 0 0-9.499 0 6.76 6.76 0 0 0 0 9.526l23.93 23.713-18.345.074c-2.712-.069-5.228 1.813-5.64 5.02v3.462c.069 2.721 2.31 4.97 5.022 5.03l35.028-.207c.052.005.087.025.133.025l2.457.054a4.626 4.626 0 0 0 3.436-1.38c.88-.874 1.205-2.096 1.169-3.462l-.262-2.465c0-.048.182-.081.182-.136h.002zm52.523 51.212l18.32-.073c2.713.06 5.224-1.609 5.64-4.815v-3.462c-.068-2.722-2.317-4.97-5.021-5.04l-34.58.21c-.053 0-.086-.021-.138-.021l-2.451-.06a4.64 4.64 0 0 0-3.445 1.381c-.885.868-1.201 2.094-1.174 3.46l.27 2.46c.005.06-.177.095-.177.141l.141 34.697c.069 2.713 2.31 4.338 5.022 4.397l3.45.006c2.705.062 4.867-2.31 4.8-5.026l-.153-18.752 24.151 23.946a6.69 6.69 0 0 0 9.494 0 6.747 6.747 0 0 0 0-9.523L101.74 92.54v.001zM48.125 80.662a4.636 4.636 0 0 0-3.437-1.382l-2.457.06c-.05 0-.082.022-.137.022l-35.025-.21c-2.712.07-4.957 2.318-5.022 5.04v3.462c.409 3.206 2.925 4.874 5.633 4.814l18.554.06-24.132 23.928c-2.62 2.626-2.62 6.89 0 9.524a6.694 6.694 0 0 0 9.496 0l24.155-23.79-.155 18.866c-.06 2.722 2.094 5.093 4.801 5.025h3.65c2.72-.069 4.962-1.685 5.022-4.406l.141-34.956c0-.05-.182-.082-.182-.136l.262-2.46c.03-1.366-.286-2.592-1.166-3.46h-.001zM80.08 47.397a4.62 4.62 0 0 0 3.443 1.374l2.45-.054c.055 0 .088-.02.143-.028l35.08.21c2.712-.062 4.953-2.312 5.021-5.033l.009-3.463c-.417-3.211-2.937-5.084-5.64-5.025l-18.615-.073 23.917-23.715c2.63-2.623 2.63-6.879.008-9.513a6.691 6.691 0 0 0-9.494 0L92.251 26.016l.155-19.312c.065-2.713-2.097-5.085-4.802-5.025h-3.45c-2.713.069-4.954 1.693-5.022 4.406l-.139 35.247c0 .054.18.088.18.136l-.267 2.465c-.028 1.366.288 2.588 1.174 3.463v.001z" /></symbol>'});o.a.add(s);t["default"]=s},f23a:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",[i("div",{staticClass:"search"},[i("SearchForm",{attrs:{size:"mini",that:this,"search-data":e.searchData,"search-form":e.searchForm,"search-handle":e.searchHandle},on:{search:e.handleSearch,reset:e.handleReset}}),e._v(" "),i("el-button",{staticStyle:{"margin-left":"auto"},attrs:{type:"primary",size:"mini"},on:{click:e.handleAddUser}},[e._v("New")])],1),e._v(" "),i("base-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{columns:e.columns,list:e.users,"search-data":e.searchData,total:e.total},on:{getList:e.getList,editCb:e.handleEditUser,deleteCb:e.handleDeleteUser,sortByColumn:e.sortByColumn},scopedSlots:e._u([{key:"genderSlot",fn:function(t){var i=t.scope;return[e._v("\n "+e._s(i.row.Sex?"Male":"Female")+"\n ")]}},{key:"roleSlot",fn:function(t){var i=t.scope;return[e._v("\n "+e._s(i.row.RoleNameList.map((function(e){return e.RoleName})).join(","))+"\n ")]}},{key:"statusSlot",fn:function(t){var i=t.scope;return[e._v("\n "+e._s(i.row.Status?"Enable":"Disable")+"\n ")]}}])})],1)},a=[],r=(i("96cf"),i("3b8d")),o=(i("20d6"),i("50fc")),s=[{type:"index"},{prop:"UserCode",label:"S/N",width:100,sortable:"custom",showOverflowTooltip:!0},{prop:"UserName",label:"User ID",minWidth:100,sortable:"custom",showOverflowTooltip:!0},{prop:"RealName",label:"Name",minWidth:120,sortable:"custom",showOverflowTooltip:!0},{prop:"Sex",label:"Gender",hidden:!0,slot:"genderSlot",minWidth:100,sortable:"custom",showOverflowTooltip:!0},{prop:"Phone",label:"Phone",minWidth:120,sortable:"custom",showOverflowTooltip:!0},{prop:"EMail",label:"EMail",minWidth:150,sortable:"custom",showOverflowTooltip:!0},{prop:"OrganizationName",label:"Organization",minWidth:130,showOverflowTooltip:!0},{prop:"UserType",label:"User Type",minWidth:100,sortable:"custom",showOverflowTooltip:!0},{prop:"Status",label:"Status",hidden:!0,slot:"statusSlot",minWidth:100,sortable:"custom",showOverflowTooltip:!0},{type:"operate",label:"Action",minWidth:200,operates:[{name:"Edit",type:"primary",emitKey:"editCb"},{name:"Delete",type:"danger",emitKey:"deleteCb"}]}],l=[{type:"Input",label:"User ID:",prop:"UserName",width:"120px",placeholder:""},{type:"Input",label:"Phone:",prop:"Phone",width:"120px",placeholder:""},{type:"Input",label:"Organization:",prop:"OrganizationName",width:"120px",placeholder:""},{type:"Select",label:"Status:",prop:"UserState",width:"100px",options:[{label:"Enable",value:1},{label:"Disable",value:0}],props:{label:"label",value:"value"},change:function(e){return""},placeholder:""},{type:"Select",label:"User Type:",prop:"UserType",width:"160px",options:[],props:{label:"UserType",value:"Id"},placeholder:""}],c=[{label:"Reset",type:"primary",emitKey:"reset"},{label:"Search",type:"primary",emitKey:"search"}],u=i("f36a"),d=i("d13d"),f=i("c0ee"),h=i("fab6"),p=function(){return{UserName:null,Phone:null,OrganizationName:null,UserState:null,UserType:null,PageIndex:1,PageSize:20,Asc:!0,SortField:""}},m={name:"UserList",components:{BoxContent:u["default"],SearchForm:d["default"],BaseTable:f["default"]},mixins:[h["a"]],data:function(){return{searchData:p(),searchForm:l,searchHandle:c,columns:s,userTypeOptions:[],loading:!1,total:0,users:[]}},created:function(){this.getList(),this.getInfo()},methods:{getList:function(){var e=this;this.loading=!0,Object(o["m"])(this.searchData).then((function(t){e.loading=!1,e.users=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},findItemIndex:function(e){return this.searchForm.findIndex((function(t){return t.prop&&t.prop===e}))},getInfo:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(o["n"])();case 2:t=e.sent,i=this.findItemIndex("UserType"),this.$set(this.searchForm[i],"options",t.Result);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),handleAddUser:function(){this.$router.push({path:"/system/user/add"})},handleEditUser:function(e){this.$router.push({path:"/system/user/edit",query:{Id:e.Id}})},handleDeleteUser:function(e){var t=this;this.$confirm("Sure to delete?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){Object(o["e"])(e.Id).then((function(i){i.IsSuccess&&(t.users.splice(t.users.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success("Deleted successfully!"))}))}))},handleReset:function(){this.searchData=p(),this.getList()}}},g=m,v=i("2877"),b=Object(v["a"])(g,n,a,!1,null,null,null);t["default"]=b.exports},f266:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("box-content",{staticClass:"reviewers-list"},[i("div",{staticClass:"search"},[i("div",{staticClass:"base-search-form"},[i("el-form",{attrs:{size:"small",inline:!0}},[i("el-form-item",{attrs:{label:"Name:"}},[i("el-input",{staticStyle:{width:"100px"},attrs:{clearable:""},model:{value:e.searchData.Name,callback:function(t){e.$set(e.searchData,"Name",t)},expression:"searchData.Name"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Modality:"}},[i("el-select",{staticStyle:{width:"150px"},attrs:{clearable:"",multiple:"","collapse-tags":""},model:{value:e.searchData.ReadingTypeIdList,callback:function(t){e.$set(e.searchData,"ReadingTypeIdList",t)},expression:"searchData.ReadingTypeIdList"}},e._l(e.dict.type.ReadingType,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Subspeciality:"}},[i("el-select",{staticStyle:{width:"180px"},attrs:{multiple:"","collapse-tags":"",clearable:""},model:{value:e.searchData.SubspecialityIdList,callback:function(t){e.$set(e.searchData,"SubspecialityIdList",t)},expression:"searchData.SubspecialityIdList"}},e._l(e.dict.type.Subspeciality,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("Search")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("Reset")]),e._v(" "),i("el-button",{attrs:{icon:"el-icon-download",type:"primary",disabled:!(e.selectArr.length>0)},on:{click:e.handleDownLoadOffical}},[e._v("Download CV")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-link"},on:{click:e.showResearchLink}},[e._v("\n 采集链接\n ")])],1)],1)],1),e._v(" "),i("span",{staticStyle:{"margin-left":"auto"}},[i("el-switch",{staticStyle:{"margin-right":"10px"},attrs:{"active-text":"EN","inactive-text":"中文"},on:{change:e.handleIsEnChange},model:{value:e.isEN,callback:function(t){e.isEN=t},expression:"isEN"}}),e._v(" "),i("el-button",{attrs:{size:"small",icon:"el-icon-plus",type:"primary"},on:{click:e.handleNew}},[e._v("New")])],1)]),e._v(" "),i("el-drawer",{attrs:{visible:e.isShow,"with-header":!1,size:"410px"},on:{"update:visible":function(t){e.isShow=t}}},[i("div",{staticStyle:{padding:"10px"}},[i("el-form",{attrs:{"label-width":"160px",size:"mini"}},[i("el-form-item",{attrs:{label:"Name"}},[i("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"Name",clearable:""},model:{value:e.searchData.Name,callback:function(t){e.$set(e.searchData,"Name",t)},expression:"searchData.Name"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Modality"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"Modality",clearable:"",multiple:""},model:{value:e.searchData.ReadingTypeIdList,callback:function(t){e.$set(e.searchData,"ReadingTypeIdList",t)},expression:"searchData.ReadingTypeIdList"}},e._l(e.dict.type.ReadingType,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Subspeciality"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"Subspeciality",multiple:"",clearable:""},model:{value:e.searchData.SubspecialityIdList,callback:function(t){e.$set(e.searchData,"SubspecialityIdList",t)},expression:"searchData.SubspecialityIdList"}},e._l(e.dict.type.Subspeciality,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Department"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"Department",clearable:""},model:{value:e.searchData.DepartmentId,callback:function(t){e.$set(e.searchData,"DepartmentId",t)},expression:"searchData.DepartmentId"}},e._l(e.dict.type.Department,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Rank"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"Rank",clearable:""},model:{value:e.searchData.RankId,callback:function(t){e.$set(e.searchData,"RankId",t)},expression:"searchData.RankId"}},e._l(e.dict.type.Rank,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Position"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"Position",clearable:""},model:{value:e.searchData.PositionId,callback:function(t){e.$set(e.searchData,"PositionId",t)},expression:"searchData.PositionId"}},e._l(e.dict.type.Position,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Institution"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"Institution",clearable:""},model:{value:e.searchData.HospitalId,callback:function(t){e.$set(e.searchData,"HospitalId",t)},expression:"searchData.HospitalId"}},e._l(e.hospitalList,(function(e,t){return i("el-option",{key:t,attrs:{label:e.HospitalName,value:e.Id}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Review Criteria"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"Please select",clearable:"",multiple:""},model:{value:e.searchData.EvaluationCriteriaIdList,callback:function(t){e.$set(e.searchData,"EvaluationCriteriaIdList",t)},expression:"searchData.EvaluationCriteriaIdList"}},e._l(e.dict.type.ReadingStandard,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Enrollment"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"Enrollment",clearable:""},model:{value:e.searchData.EnrollStatus,callback:function(t){e.$set(e.searchData,"EnrollStatus",t)},expression:"searchData.EnrollStatus"}},[i("el-option",{key:"2",attrs:{label:"Yes",value:2}}),e._v(" "),i("el-option",{key:"1",attrs:{label:"No",value:1}})],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Information Confirmed"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"Information Confirmed",clearable:""},model:{value:e.searchData.InformationConfirmed,callback:function(t){e.$set(e.searchData,"InformationConfirmed",t)},expression:"searchData.InformationConfirmed"}},[i("el-option",{key:"1",attrs:{label:"Yes",value:1}}),e._v(" "),i("el-option",{key:"2",attrs:{label:"No",value:2}})],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Contractor Status"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"Contractor Status",clearable:""},model:{value:e.searchData.ContractorStatus,callback:function(t){e.$set(e.searchData,"ContractorStatus",t)},expression:"searchData.ContractorStatus"}},[i("el-option",{key:"1",attrs:{label:"Yes",value:1}}),e._v(" "),i("el-option",{key:"2",attrs:{label:"No",value:2}})],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Accepting New Trials"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"Accepting New Trials",clearable:""},model:{value:e.searchData.AcceptingNewTrial,callback:function(t){e.$set(e.searchData,"AcceptingNewTrial",t)},expression:"searchData.AcceptingNewTrial"}},[i("el-option",{key:"2",attrs:{label:"Yes",value:!0}}),e._v(" "),i("el-option",{key:"1",attrs:{label:"No",value:!1}})],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Actively Reading"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"Actively Reading",clearable:""},model:{value:e.searchData.ActivelyReading,callback:function(t){e.$set(e.searchData,"ActivelyReading",t)},expression:"searchData.ActivelyReading"}},[i("el-option",{key:"2",attrs:{label:"Yes",value:!0}}),e._v(" "),i("el-option",{key:"1",attrs:{label:"No",value:!1}})],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Payment Type: "}},[i("el-select",{staticStyle:{width:"100%"},attrs:{clearable:""},model:{value:e.searchData.Nation,callback:function(t){e.$set(e.searchData,"Nation",t)},expression:"searchData.Nation"}},[i("el-option",{attrs:{value:0,label:"CN"}}),e._v(" "),i("el-option",{attrs:{value:1,label:"Abroad"}})],1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:e.handleSelectSearch}},[e._v("Search")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.handleReset}},[e._v("Reset")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:function(t){e.isShow=!1}}},[e._v("Back")])],1)],1)],1)]),e._v(" "),i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:55},expression:"{bottomOffset:55}"},{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],attrs:{stripe:"",height:"100",data:e.list},on:{"sort-change":e.sortByColumn,"selection-change":e.handleSelectChange}},[i("el-table-column",{attrs:{type:"selection",align:"left",width:"45",selectable:e.hasResume}}),e._v(" "),i("el-table-column",{attrs:{type:"index",width:"40",align:"left"}}),e._v(" "),i("el-table-column",{attrs:{align:"left",prop:"LastName",label:"Name","show-overflow-tooltip":"",width:"130",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.LastName+" / "+t.row.FirstName)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ChineseName",label:"Name CN","show-overflow-tooltip":"",width:"90",align:"left"}}),e._v(" "),i("el-table-column",{attrs:{prop:"ReviewerCode",label:"ID",width:"80","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"AccountUserName",label:"User Name",width:"140","show-overflow-tooltip":"",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{label:"Reading",width:"100","show-overflow-tooltip":"",sortable:"custom",align:"left",prop:"Reading"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.Reading?i("span",{staticStyle:{color:"#00d1b2"}},[i("router-link",{attrs:{tag:"a",to:{path:"/trialStats?name="+t.row.FirstName+" "+t.row.LastName+"&doctorId="+t.row.Id+"&status=10&TokenKey="+e.tokenKey},target:"_blank"}},[e._v(e._s(t.row.Reading))])],1):i("span",[e._v(e._s(t.row.Reading))])]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"Finished",width:"100","show-overflow-tooltip":"",sortable:"custom",align:"left",prop:"Finished"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.Finished?i("span",{staticStyle:{color:"#00d1b2"}},[i("router-link",{attrs:{tag:"a",to:{path:"/trialStats?name="+t.row.FirstName+" "+t.row.LastName+"&doctorId="+t.row.Id+"&status=14&TokenKey="+e.tokenKey},target:"_blank"}},[e._v(e._s(t.row.Finished))])],1):i("span",[e._v(e._s(t.row.Finished))])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"left",prop:"SpecialityId",label:"Specialty",sortable:"custom","show-overflow-tooltip":"",width:"130"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v("\n "+e._s(t.row.SpecialityId===e.otherId?t.row.SpecialityOther:e.isEnglish?t.row.Speciality:t.row.SpecialityCN)+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{align:"left",prop:"Subspeciality",label:"Subspecialty","show-overflow-tooltip":"","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.isEnglish?i("span",[e._v("\n "+e._s(t.row.SubspecialityList.length>0?t.row.SubspecialityList.join(", "):"")+"\n ")]):i("span",[e._v("\n "+e._s(t.row.SubspecialityCNList.length>0?t.row.SubspecialityCNList.join(", "):"")+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"HospitalName",label:"Institution","min-width":"110",align:"left",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v("\n "+e._s(e.isEnglish?t.row.HospitalName:t.row.HospitalNameCN)+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"City",label:"Location",width:"110",align:"left",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v("\n "+e._s(e.isEnglish?t.row.City:t.row.CityCN)+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsVirtual",label:"Virtual","min-width":"80",align:"left",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v("\n "+e._s(t.row.IsVirtual?"Yes":"No")+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ReviewStatus",label:"Confirmed","min-width":"80",align:"left",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v("\n "+e._s(1===t.row.ReviewStatus?"Yes":"No")+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"Action","min-width":"100",align:"left",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{size:"mini",circle:"",icon:"el-icon-info",title:"Detail"},on:{click:function(i){return e.handleDetail(t.row)}}}),e._v(" "),i("el-button",{attrs:{circle:"",icon:"el-icon-edit-outline",title:"Edit"},on:{click:function(i){return e.handleEdit(t.row)}}}),e._v(" "),i("el-button",{attrs:{icon:"el-icon-view",circle:"",title:"盲态简历"},on:{click:function(i){return e.lookResumeInfo(t.row)}}})]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}}),e._v(" "),i("base-model",{attrs:{config:e.share_model}},[i("template",{slot:"dialog-body"},[i("div",[i("i",{staticClass:"el-icon-success",staticStyle:{color:"#00d1b2"}}),e._v(" "),i("span",[e._v("成功创建分享链接")])]),e._v(" "),i("div",{staticStyle:{margin:"10px 0"}},[i("span",{},[e._v("个人简历填写链接:")]),i("el-input",{staticStyle:{width:"100%","margin-top":"10px"},attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},readonly:""},model:{value:e.shareLink,callback:function(t){e.shareLink=t},expression:"shareLink"}})],1),e._v(" "),i("div",[i("el-button",{attrs:{type:"primary",round:""},on:{click:e.copyCode}},[e._v("复制链接")])],1)])],2),e._v(" "),i("base-model",{attrs:{config:e.model_cfg}},[i("template",{slot:"dialog-body"},[i("label",[e._v("Language: ")]),e._v(" "),i("el-radio-group",{model:{value:e.language,callback:function(t){e.language=t},expression:"language"}},[i("el-radio",{attrs:{label:2}},[e._v("English")]),e._v(" "),i("el-radio",{attrs:{label:1}},[e._v("中文")])],1)],1),e._v(" "),i("template",{slot:"dialog-footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){e.model_cfg.visible=!1}}},[e._v("Cancel")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleDownloadResumes}},[e._v("Ok")])],1)],2)],1)},a=[],r=(i("ac6a"),i("db72")),o=i("33ba"),s=i("4360"),l=i("2f62"),c=i("333d"),u=i("f36a"),d=i("7eeb"),f=i("5f87"),h=function(){return{Name:"",ReadingTypeIdList:[],SubspecialityIdList:[],DepartmentId:"",SpecialityId:"",PositionId:"",RankId:"",HospitalId:"",ContractorStatus:"",InformationConfirmed:"",EnrollStatus:"",AcceptingNewTrial:"",ActivelyReading:"",EvaluationCriteriaIdList:[],Nation:"",PageIndex:1,PageSize:20,Asc:!1,SortField:""}},p="ef84e9cb-f1a6-49d7-b6da-34be2c12abd5",m={name:"Reviewers",components:{BoxContent:u["default"],BaseModel:d["default"],Pagination:c["default"]},data:function(){return{otherId:p,searchData:h(),list:null,total:0,listLoading:!1,selectArr:[],isShow:!1,dialogVisible:!1,language:2,isEN:!0,btnLoading:!1,token:s["a"].getters.token,model_cfg:{visible:!1,title:"",width:"500px",showClose:!0},tokenKey:Object(f["a"])(),share_model:{visible:!1,title:"",width:"500px"},shareLink:null}},dicts:["ReadingType","Subspeciality","Department","Rank","Position","ReadingStandard"],computed:Object(r["a"])({},Object(l["b"])(["hospitalList","reviewersQuery","isEnglish"])),created:function(){this.isEN=this.isEnglish,this.reviewersQuery&&(this.listQuery=this.reviewersQuery),this.initPage()},methods:Object(r["a"])(Object(r["a"])({copyCode:function(){var e=this;this.$copyText("链接: ".concat(this.shareLink)).then((function(t){e.$message.success("复制成功")})).catch((function(){e.$message.error("复制失败")}))},copyLink:function(){var e=this;this.$copyText("".concat(this.$t("trials:researchRecord:message:researchFormLink"),": ").concat(this.shareLink)).then((function(t){e.$message.success(e.$t("trials:researchRecord:message:copySuccessfully"))})).catch((function(){e.$message.error(e.$t("trials:researchRecord:message:copyFailed"))}))},showResearchLink:function(){this.trialId;this.shareLink="".concat(location.protocol,"//").concat(location.host,"/ReviewersResearch"),this.share_model.visible=!0},lookResumeInfo:function(e){console.log(e),window.open("/blindResumeInfo?doctorId=".concat(e.Id,"&token=").concat(this.token))},initPage:function(){s["a"].dispatch("global/getHospital"),this.getList()},getList:function(){var e=this;this.setQueryParam(this.searchData),this.listLoading=!0,Object(o["s"])(this.searchData).then((function(t){e.listLoading=!1,e.list=t.Result.CurrentPageData,e.list.forEach((function(e){e.SubspecialityOther&&e.SubspecialityList.push(e.SubspecialityOther),e.SubspecialityOtherCN&&e.SubspecialityCNList.push(e.SubspecialityOtherCN)})),e.total=t.Result.TotalCount})).catch((function(){e.listLoading=!1}))},handleNew:function(){this.$router.push({path:"/reviewers/reviewers-add?Id=&isEnglish=".concat(this.isEnglish,"&tabActive=BasicInfo")})},handleMore:function(){this.isShow=!this.isShow},handleReset:function(){this.searchData=h(),this.getList()},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleDetail:function(e){this.$router.push({path:"/reviewers/reviewers-detail?doctorId=".concat(e.Id,"&isEnglish=").concat(this.isEnglish)})},handleEdit:function(e){this.$router.push({path:"/reviewers/reviewers-edit?Id=".concat(e.Id,"&isEnglish=").concat(this.isEnglish,"&tabActive=BasicInfo")})},handleDownloadResumes:function(){var e=this;this.btnLoading=!0,this.model_cfg.showClose=!1,Object(o["n"])(this.selectArr,parseInt(this.language)).then((function(t){e.btnLoading=!1,e.model_cfg.visible=!1,e.model_cfg.showClose=!0,window.open(t.Result.FullFilePath)})).catch((function(){e.btnLoading=!1,e.model_cfg.showClose=!0}))},handleSelectSearch:function(){this.searchData.PageIndex=1,this.isShow=!1,this.getList()},handleIsEnChange:function(e){this.setIsEnglish(e)},handleDownLoadOffical:function(){this.language=2,this.model_cfg.title=this.$t("trials:seletctedReviews:title:language"),this.model_cfg.visible=!0},sortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()},handleSelectChange:function(e){for(var t=[],i=0;i<e.length;i++)t.push(e[i].Id);this.selectArr=t}},Object(l["c"])({setQueryParam:"reviewer/SET_QUERYPARAM",setIsEnglish:"reviewer/SET_ISENGLISH"})),{},{hasResume:function(e){return!!e.HasResume}})},g=m,v=(i("2791"),i("2877")),b=Object(v["a"])(g,n,a,!1,null,"2a3f1ed0",null);t["default"]=b.exports},f273:function(e,t,i){var n=i("6d8b"),a=i("2306"),r=i("fab22"),o=i("6679"),s=i("0156"),l=i("58df"),c=l.rectCoordAxisBuildSplitArea,u=l.rectCoordAxisHandleRemove,d=["axisLine","axisTickLabel","axisName"],f=["splitArea","splitLine","minorSplitLine"],h=o.extend({type:"cartesianAxis",axisPointerClass:"CartesianAxisPointer",render:function(e,t,i,o){this.group.removeAll();var l=this._axisGroup;if(this._axisGroup=new a.Group,this.group.add(this._axisGroup),e.get("show")){var c=e.getCoordSysModel(),u=s.layout(c,e),p=new r(e,u);n.each(d,p.add,p),this._axisGroup.add(p.getGroup()),n.each(f,(function(t){e.get(t+".show")&&this["_"+t](e,c)}),this),a.groupTransition(l,this._axisGroup,e),h.superCall(this,"render",e,t,i,o)}},remove:function(){u(this)},_splitLine:function(e,t){var i=e.axis;if(!i.scale.isBlank()){var r=e.getModel("splitLine"),o=r.getModel("lineStyle"),s=o.get("color");s=n.isArray(s)?s:[s];for(var l=t.coordinateSystem.getRect(),c=i.isHorizontal(),u=0,d=i.getTicksCoords({tickModel:r}),f=[],h=[],p=o.getLineStyle(),m=0;m<d.length;m++){var g=i.toGlobalCoord(d[m].coord);c?(f[0]=g,f[1]=l.y,h[0]=g,h[1]=l.y+l.height):(f[0]=l.x,f[1]=g,h[0]=l.x+l.width,h[1]=g);var v=u++%s.length,b=d[m].tickValue;this._axisGroup.add(new a.Line({anid:null!=b?"line_"+d[m].tickValue:null,subPixelOptimize:!0,shape:{x1:f[0],y1:f[1],x2:h[0],y2:h[1]},style:n.defaults({stroke:s[v]},p),silent:!0}))}}},_minorSplitLine:function(e,t){var i=e.axis,n=e.getModel("minorSplitLine"),r=n.getModel("lineStyle"),o=t.coordinateSystem.getRect(),s=i.isHorizontal(),l=i.getMinorTicksCoords();if(l.length)for(var c=[],u=[],d=r.getLineStyle(),f=0;f<l.length;f++)for(var h=0;h<l[f].length;h++){var p=i.toGlobalCoord(l[f][h].coord);s?(c[0]=p,c[1]=o.y,u[0]=p,u[1]=o.y+o.height):(c[0]=o.x,c[1]=p,u[0]=o.x+o.width,u[1]=p),this._axisGroup.add(new a.Line({anid:"minor_line_"+l[f][h].tickValue,subPixelOptimize:!0,shape:{x1:c[0],y1:c[1],x2:u[0],y2:u[1]},style:d,silent:!0}))}},_splitArea:function(e,t){c(this,this._axisGroup,e,t)}});h.extend({type:"xAxis"}),h.extend({type:"yAxis"})},f279:function(e,t,i){var n=i("9850"),a=i("e263"),r=i("401b"),o=i("0655");function s(e,t,i){if(this.name=e,this.geometries=t,i)i=[i[0],i[1]];else{var n=this.getBoundingRect();i=[n.x+n.width/2,n.y+n.height/2]}this.center=i}s.prototype={constructor:s,properties:null,getBoundingRect:function(){var e=this._rect;if(e)return e;for(var t=Number.MAX_VALUE,i=[t,t],o=[-t,-t],s=[],l=[],c=this.geometries,u=0;u<c.length;u++)if("polygon"===c[u].type){var d=c[u].exterior;a.fromPoints(d,s,l),r.min(i,i,s),r.max(o,o,l)}return 0===u&&(i[0]=i[1]=o[0]=o[1]=0),this._rect=new n(i[0],i[1],o[0]-i[0],o[1]-i[1])},contain:function(e){var t=this.getBoundingRect(),i=this.geometries;if(!t.contain(e[0],e[1]))return!1;e:for(var n=0,a=i.length;n<a;n++)if("polygon"===i[n].type){var r=i[n].exterior,s=i[n].interiors;if(o.contain(r,e[0],e[1])){for(var l=0;l<(s?s.length:0);l++)if(o.contain(s[l]))continue e;return!0}}return!1},transformTo:function(e,t,i,a){var o=this.getBoundingRect(),s=o.width/o.height;i?a||(a=i/s):i=s*a;for(var l=new n(e,t,i,a),c=o.calculateTransform(l),u=this.geometries,d=0;d<u.length;d++)if("polygon"===u[d].type){for(var f=u[d].exterior,h=u[d].interiors,p=0;p<f.length;p++)r.applyTransform(f[p],f[p],c);for(var m=0;m<(h?h.length:0);m++)for(p=0;p<h[m].length;p++)r.applyTransform(h[m][p],h[m][p],c)}o=this._rect,o.copy(l),this.center=[o.x+o.width/2,o.y+o.height/2]},cloneShallow:function(e){null==e&&(e=this.name);var t=new s(e,this.geometries,this.center);return t._rect=this._rect,t.transformTo=null,t}};var l=s;e.exports=l},f2af:function(e,t,i){},f2f9:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{ref:"monthly_reading_stats",staticStyle:{width:"100%",height:"100%"}})},a=[],r=i("313e"),o=i.n(r),s=i("5fd4"),l=i("6331"),c=6,u={props:{area:{type:String,default:""}},data:function(){return{myChart:""}},watch:{area:function(){var e=this;this.$nextTick((function(){e.myChart&&e.myChart.resize()}))}},mounted:function(){this.getData()},methods:{initChart:function(e,t,i,n,a){var r={title:{text:"Workload of Past 6 Months",x:"4%",top:5,textStyle:{color:"#fff",fontSize:Object(l["a"])(.16)}},tooltip:{trigger:"axis",axisPointer:{type:"shadow",textStyle:{color:"#999"}}},grid:{top:"33%",left:80,bottom:25,textStyle:{color:"#999"}},legend:{x:"4%",top:"13%",icon:"circle",itemWidth:Object(l["a"])(.1),textStyle:{color:"#fff",fontSize:Object(l["a"])(.14)},data:["TP","AD","GL","Total"]},xAxis:[{axisLine:{show:!0,lineStyle:{color:"rgba(255,255,255,.1)",type:"solid"}},axisTick:{show:!1},axisLabel:{interval:1,show:!0,textStyle:{color:"#fff",fontSize:Object(l["a"])(.14)}},data:e}],yAxis:[{type:"value",axisLabel:{show:!0,textStyle:{color:"#fff",fontSize:Object(l["a"])(.14)}},axisTick:{show:!1},axisLine:{show:!0,lineStyle:{color:"rgba(255,255,255,.1\t)",type:"solid"}},splitLine:{lineStyle:{color:"rgba(255,255,255,.1)"}}}],series:[{name:"TP",type:"bar",stack:"Total",barMaxWidth:Object(l["a"])(.4),itemStyle:{normal:{color:"#2fA2FF",label:{show:!0,textStyle:{color:"#fff",fontSize:Object(l["a"])(.14)},position:"inside",formatter:function(e){return e.value>0?e.value:""}}}},data:t},{name:"AD",type:"bar",stack:"Total",itemStyle:{normal:{color:"#27d08a",barBorderRadius:0,label:{show:!0,position:"inside",textStyle:{color:"#fff",fontSize:Object(l["a"])(.14)},formatter:function(e){return e.value>0?e.value:""}}}},data:i},{name:"GL",type:"bar",stack:"Total",itemStyle:{normal:{color:"#2f89cf",barBorderRadius:0,textStyle:{color:"#fff",fontSize:Object(l["a"])(.14)},label:{show:!0,position:"inside",formatter:function(e){return e.value>0?e.value:""}}}},data:n},{name:"Total",type:"line",smooth:!0,symbolSize:10,symbol:"circle",itemStyle:{normal:{color:"rgba(252,230,48,1)",label:{textStyle:{color:"#fff",fontSize:Object(l["a"])(.14)},show:!0,position:"top",formatter:function(e){return e.value>0?e.value:""}}}},data:a}],animationEasing:"elasticOut",animationDelayUpdate:function(e){return 5*e}};this.$refs.monthly_reading_stats&&(this.myChart=o.a.init(this.$refs.monthly_reading_stats),this.myChart.setOption(r))},getData:function(){var e=this;Object(s["c"])(c).then((function(t){if(t.IsSuccess){if(t.Result){for(var i=[],n=[],a=[],r=[],o=[],s=t.Result.reverse(),l=0;l<s.length;l++){i.push(s[l].Month),n.push(s[l].Timepoint),a.push(s[l].Adjudication),r.push(s[l].Global);var c=s[l].Timepoint+s[l].Adjudication+s[l].Global;o.push(c)}e.initChart(i,n,a,r,o)}}else e.$message({message:t.ErrorMessage,type:"error"})}))}}},d=u,f=i("2877"),h=Object(f["a"])(d,n,a,!1,null,null,null);t["default"]=h.exports},f306:function(e,t,i){var n=i("3eba"),a=i("6d8b"),r=i("88b3"),o=i("6569");i("849b"),i("217c8"),i("c515");var s=5;n.extendComponentView({type:"parallel",render:function(e,t,i){this._model=e,this._api=i,this._handlers||(this._handlers={},a.each(l,(function(e,t){i.getZr().on(t,this._handlers[t]=a.bind(e,this))}),this)),r.createOrUpdate(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},dispose:function(e,t){a.each(this._handlers,(function(e,i){t.getZr().off(i,e)})),this._handlers=null},_throttledDispatchExpand:function(e){this._dispatchExpand(e)},_dispatchExpand:function(e){e&&this._api.dispatchAction(a.extend({type:"parallelAxisExpand"},e))}});var l={mousedown:function(e){c(this,"click")&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(c(this,"click")&&t){var i=[e.offsetX,e.offsetY],n=Math.pow(t[0]-i[0],2)+Math.pow(t[1]-i[1],2);if(n>s)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);"none"!==a.behavior&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!this._mouseDownPoint&&c(this,"mousemove")){var t=this._model,i=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),n=i.behavior;"jump"===n&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===n?null:{axisExpandWindow:i.axisExpandWindow,animation:"jump"===n&&null})}}};function c(e,t){var i=e._model;return i.get("axisExpandable")&&i.get("axisExpandTriggerOn")===t}n.registerPreprocessor(o)},f31f:function(e,t,i){var n=i("4e08"),a=(n.__DEV__,i("3eba")),r=i("6d8b"),o=i("2b8c"),s=i("4319"),l=["#ddd"],c=a.extendComponentModel({type:"brush",dependencies:["geo","grid","xAxis","yAxis","parallel","series"],defaultOption:{toolbox:null,brushLink:null,seriesIndex:"all",geoIndex:null,xAxisIndex:null,yAxisIndex:null,brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(120,140,180,0.3)",borderColor:"rgba(120,140,180,0.8)"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},areas:[],brushType:null,brushOption:{},coordInfoList:[],optionUpdated:function(e,t){var i=this.option;!t&&o.replaceVisualOption(i,e,["inBrush","outOfBrush"]);var n=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:l},n.hasOwnProperty("liftZ")||(n.liftZ=5)},setAreas:function(e){e&&(this.areas=r.map(e,(function(e){return u(this.option,e)}),this))},setBrushOption:function(e){this.brushOption=u(this.option,e),this.brushType=this.brushOption.brushType}});function u(e,t){return r.merge({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new s(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var d=c;e.exports=d},f33a:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{"min-height":"500px"}},[e.isRender?i("el-form",{ref:"questions",attrs:{size:"small",model:e.questionForm,disabled:e.readingTaskState>=2}},[e._l(e.questions,(function(t){return i("QuestionFormItem",{key:t.Id,attrs:{visitTaskId:e.visitTaskId,question:t,"question-form":e.questionForm,"reading-task-state":e.readingTaskState,"criterion-id":e.criterionId,CalculationList:e.CalculationList,IsBaseline:e.IsBaseline},on:{resetFormItemData:e.resetFormItemData,setFormItemData:e.setFormItemData}})}))],2):e._e()],1)},r=[],o=(n("ac6a"),n("6b54"),n("3e42")),s=n("b572"),l=n("9b92"),c={name:"QuestionsPreview",components:{QuestionFormItem:s["default"]},props:{criterionId:{type:String,required:!0},visitTaskId:{type:String,required:!0}},data:function(){return{loading:!1,questions:[],questionForm:{},publicQuestions:[],isRender:!1,readingTaskState:0,activeName:0,CalculationList:[],IsBaseline:!0}},mounted:function(){var e=this;this.getQuestionCalculateRelation(),this.getCustomTableQuestionAnswer(),l["a"].$on("reGetQuestionAnswer",(function(){e.getCustomTableQuestionAnswer()}))},beforeDestroy:function(){l["a"].$off("reGetQuestionAnswer")},methods:{handleSave:function(e){var t=this;return new Promise((function(i){t.$refs["questions"].validate((function(n){if(n){t.loading=!0;var a=[];for(var r in t.questionForm)t.questionForm[r]instanceof Array||a.push({id:r,answer:t.questionForm[r].toString()});var s={visitTaskId:t.visitTaskId,answers:a};Object(o["V"])(s).then((function(n){e&&t.$message.success(t.$t("common:message:savedSuccessfully")),t.loading=!1,i(!0)})).catch((function(){t.loading=!1,i(!1)}))}else i(!1)}))}))},getQuestionCalculateRelation:function(){var e=this;Object(o["Jc"])({TrialReadingCriterionId:this.criterionId}).then((function(t){e.CalculationList=t.Result}))},getCustomTableQuestionAnswer:function(e){var t=this;console.log("getCustomTableQuestionAnswer"),this.isRender=!1,this.loading=!0,Object(o["Xb"])({VisitTaskId:e||this.visitTaskId}).then((function(e){t.IsBaseline=e.OtherInfo.IsBaseline,t.readingTaskState=e.OtherInfo.ReadingTaskState,l["a"].$emit("setReadingState",e.OtherInfo.ReadingTaskState),e.Result.SinglePage.map((function(e){"group"===e.Type&&0===e.Childrens.length||(e.IsPage||"group"===e.Type||"summary"===e.Type||"table"===e.Type||"number"===e.Type||t.$set(t.questionForm,e.Id,e.Answer),"table"===e.Type&&t.$set(t.questionForm,e.Id,e.TableQuestions.Answers),"number"===e.Type&&t.$set(t.questionForm,e.Id,""===e.Answer?"":parseFloat(e.Answer).toFixed(localStorage.getItem("digitPlaces"))),e.Childrens.length>0&&t.setChild(e.Childrens))})),t.questions=e.Result.SinglePage,t.isRender=!0,t.loading=!1}))},getQuestions:function(){var e=this;this.loading=!0;var t={readingQuestionCriterionTrialId:this.criterionId,FormType:1};Object(o["Vd"])(t).then((function(t){2===t.OtherInfo.FormType?(t.Result.MultiPage.length>0&&(t.Result.MultiPage.map((function(t){"group"===t.Type&&0===t.Childrens.length&&"table"!==i.Type||(t.IsPage||"group"===t.Type||"summary"===t.Type||"table"===i.Type||e.$set(e.questionForm,t.Id,""),t.Childrens.length>0&&e.setChild(t.Childrens))})),e.questions=t.Result.MultiPage,e.activeName=t.Result.MultiPage[0].PageName),t.Result.PublicPage.length>0&&(t.Result.PublicPage.map((function(t){"group"===t.Type&&0===t.Childrens.length&&"table"!==i.Type||(t.IsPage||"group"===t.Type||"summary"===t.Type||"table"===i.Type||e.$set(e.questionForm,t.Id,""),t.Childrens.length>0&&e.setChild(t.Childrens))})),e.publicQuestions=t.Result.PublicPage)):(t.Result.SinglePage.map((function(t){"group"===t.Type&&0===t.Childrens.length&&"table"!==t.Type||(t.IsPage||"group"===t.Type||"summary"===t.Type||"table"===t.Type||"number"===t.Type||e.$set(e.questionForm,t.Id,t.Answer),"table"===t.Type&&e.$set(e.questionForm,t.Id,t.TableQuestions.Answers),"number"===t.Type&&e.$set(e.questionForm,t.Id,""===t.Answer?"":parseFloat(t.Answer).toFixed(localStorage.getItem("digitPlaces"))),t.Childrens.length>0&&e.setChild(t.Childrens))})),e.questions=t.Result.SinglePage),e.isRender=!0,e.loading=!1})).catch((function(){e.loading=!1}))},setChild:function(e){var t=this;e.forEach((function(e){"group"!==e.Type&&"summary"!==e.Type&&e.Id&&"table"!==e.Type&&t.$set(t.questionForm,e.Id,e.Answer),"table"===e.Type&&(e.TableQuestions.Questions.forEach((function(i){"number"===i.Type&&e.TableQuestions.Answers.forEach((function(n,a){t.$set(e.TableQuestions.Answers[a],i.Id,e.TableQuestions.Answers[a][i.Id]?parseFloat(e.TableQuestions.Answers[a][i.Id]).toFixed(localStorage.getItem("digitPlaces")):null)}))})),t.$set(t.questionForm,e.Id,e.TableQuestions.Answers)),"number"===e.Type&&t.$set(t.questionForm,e.Id,""===e.Answer?"":parseFloat(e.Answer).toFixed(localStorage.getItem("digitPlaces"))),e.Childrens&&e.Childrens.length>0&&t.setChild(e.Childrens)}))},resetFormItemData:function(e){this.questionForm[e]=""},setFormItemData:function(e){this.$set(this.questionForm,e.key,JSON.parse(JSON.stringify(e.val)))}}},u=c,d=(n("6634"),n("2877")),f=Object(d["a"])(u,a,r,!1,null,"3e2de0aa",null);t["default"]=f.exports},f35c:function(e,t,i){"use strict";i("b278")},f36a:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"container-fluid",class:[e.contentClass]},[i("el-row",[i("el-col",{attrs:{span:24}},[i("div",{staticClass:"box"},[i("div",{staticClass:"box-body"},[e._t("default")],2)])])],1)],1)},a=[],r={name:"BoxContent",props:{noTitle:{type:Boolean,default:!1}},computed:{contentClass:function(){return this.noTitle?"content-notitle":"content"}}},o=r,s=(i("8bd95"),i("2877")),l=Object(s["a"])(o,n,a,!1,null,null,null);t["default"]=l.exports},f380:function(e,t,i){},f3ce:function(e,t,i){},f400:function(e,t,i){"use strict";var n=i("c26b"),a=i("b39a"),r="Map";e.exports=i("e0b8")(r,(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(e){var t=n.getEntry(a(this,r),e);return t&&t.v},set:function(e,t){return n.def(a(this,r),0===e?0:e,t)}},n,!0)},f4001:function(e,t,i){},f40c:function(e,t,i){"use strict";i("cf62")},f462:function(e,t,i){},f47d:function(e,t,i){var n=i("6d8b"),a=(n.assert,n.isArray),r=i("4e08");r.__DEV__;function o(e){return new s(e)}function s(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0,this.context}var l=s.prototype;l.perform=function(e){var t,i=this._upstream,n=e&&e.skip;if(this._dirty&&i){var r=this.context;r.data=r.outputData=i.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!n&&(t=this._plan(this.context));var o,s=h(this._modBy),l=this._modDataCount||0,c=h(e&&e.modBy),f=e&&e.modDataCount||0;function h(e){return!(e>=1)&&(e=1),e}s===c&&l===f||(t="reset"),(this._dirty||"reset"===t)&&(this._dirty=!1,o=d(this,n)),this._modBy=c,this._modDataCount=f;var p=e&&e.step;if(this._dueEnd=i?i._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var m=this._dueIndex,g=Math.min(null!=p?this._dueIndex+p:1/0,this._dueEnd);if(!n&&(o||m<g)){var v=this._progress;if(a(v))for(var b=0;b<v.length;b++)u(this,v[b],m,g,c,f);else u(this,v,m,g,c,f)}this._dueIndex=g;var y=null!=this._settedOutputEnd?this._settedOutputEnd:g;this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()};var c=function(){var e,t,i,n,a,r={reset:function(l,c,u,d){t=l,e=c,i=u,n=d,a=Math.ceil(n/i),r.next=i>1&&n>0?s:o}};return r;function o(){return t<e?t++:null}function s(){var r=t%a*i+Math.ceil(t/a),o=t>=e?null:r<n?r:t;return t++,o}}();function u(e,t,i,n,a,r){c.reset(i,n,a,r),e._callingProgress=t,e._callingProgress({start:i,end:n,count:n-i,next:c.next},e.context)}function d(e,t){var i,n;e._dueIndex=e._outputDueEnd=e._dueEnd=0,e._settedOutputEnd=null,!t&&e._reset&&(i=e._reset(e.context),i&&i.progress&&(n=i.forceFirstProgress,i=i.progress),a(i)&&!i.length&&(i=null)),e._progress=i,e._modBy=e._modDataCount=null;var r=e._downstream;return r&&r.dirty(),n}l.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},l.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},l.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},l.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},l.getUpstream=function(){return this._upstream},l.getDownstream=function(){return this._downstream},l.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},t.createTask=o},f4a2:function(e,t,i){var n=i("9850"),a=i("c526"),r=a.onIrrelevantElement,o=i("2306");function s(e){return e=u(e),function(t,i){return o.clipPointsByRect(t,e)}}function l(e,t){return e=u(e),function(i){var n=null!=t?t:i,a=n?e.width:e.height,r=n?e.x:e.y;return[r,r+(a||0)]}}function c(e,t,i){return e=u(e),function(n,a,o){return e.contain(a[0],a[1])&&!r(n,t,i)}}function u(e){return n.create(e)}t.makeRectPanelClipPath=s,t.makeLinearBrushOtherExtent=l,t.makeRectIsTargetByCursor=c},f4bc:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"page-break-list-wrapper"},[i("div",{staticStyle:{"text-align":"left"}},[!e.isConfirm&&e.hasPermi(["trials:trials-panel:setting:reading-unit:edit"])?i("el-button",{attrs:{size:"mini",type:"primary"},on:{click:e.handleAdd}},[e._v("\n 新增\n ")]):e._e(),e._v(" "),i("el-button",{attrs:{disabled:0===e.tblList.length,size:"mini",type:"primary"},on:{click:e.handlePreview}},[e._v("\n 预览\n ")])],1),e._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tblList,size:"small"}},[i("el-table-column",{attrs:{prop:"ShowOrder",label:"序号",width:"70"}}),e._v(" "),i("el-table-column",{attrs:{prop:"PageName",label:"分页名称","show-overflow-tooltip":"",width:"180"}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsPublicPage",label:"是否公共分页","show-overflow-tooltip":"",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsPublicPage?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsPublicPage)))]):i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsPublicPage)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsEnable","show-overflow-tooltip":"",width:"180",label:"是否启用"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsEnable?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsEnable)))]):i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsEnable)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime","show-overflow-tooltip":"",label:"创建时间",width:"200"}}),e._v(" "),i("el-table-column",{attrs:{prop:"",label:"操作","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(i){return e.handleCfgQuestions(t.row)}}},[e._v("\n 问题表单\n ")]),e._v(" "),!e.isConfirm&&e.hasPermi(["trials:trials-panel:setting:reading-unit:edit"])?i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("\n 编辑\n ")]):e._e(),e._v(" "),!e.isConfirm&&e.hasPermi(["trials:trials-panel:setting:reading-unit:edit"])?i("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("\n 删除\n ")]):e._e()]}}])})],1),e._v(" "),e.addOrEdit.visible?i("el-dialog",{attrs:{visible:e.addOrEdit.visible,"close-on-click-modal":!1,title:e.addOrEdit.title,width:"500px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){return e.$set(e.addOrEdit,"visible",t)}}},[i("PageBreakForm",{attrs:{data:e.rowData},on:{close:function(t){e.addOrEdit.visible=!1},getList:e.getList}})],1):e._e(),e._v(" "),e.questions.visible?i("el-dialog",{attrs:{visible:e.questions.visible,"close-on-click-modal":!1,title:e.questions.title,width:"1500px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){return e.$set(e.questions,"visible",t)}}},[i("QuestionsList",{ref:"questions",attrs:{"trial-criterion-id":e.trialCriterionId,"reading-criterion-page-id":e.rowData.Id,"is-confirm":e.isConfirm,"is-preview":!1,"is-from-system":e.isFromSystem},on:{reloadArbitrationRules:e.reloadArbitrationRules}})],1):e._e(),e._v(" "),e.preview.visible?i("el-dialog",{attrs:{visible:e.preview.visible,"close-on-click-modal":!1,title:e.preview.title,width:"1000px","append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){return e.$set(e.preview,"visible",t)}}},[i("div",{staticClass:"base-dialog-body"},[i("QuestionsPreview",{attrs:{"criterion-id":e.trialCriterionId,"form-type":2}})],1)]):e._e()],1)},a=[],r=i("db72"),o=i("3e42"),s=i("3ba1"),l=i("b147"),c=i("0b82"),u={name:"PageBreakList",components:{PageBreakForm:s["default"],QuestionsList:l["default"],QuestionsPreview:c["default"]},props:{trialReadingCriterionId:{type:String,default:""},list:{type:Array,default:function(){return[]}},trialCriterionId:{type:String,required:!0},isConfirm:{type:Boolean,default:!0},isFromSystem:{type:Boolean,default:!0}},data:function(){return{loading:!1,addOrEdit:{visible:!1,title:""},questions:{visible:!1,title:"阅片问题"},preview:{visible:!1,title:"eCRF预览"},rowData:{},tblList:[]}},mounted:function(){this.tblList=this.list},methods:{getList:function(){var e=this;this.loading=!0;var t=this.$route.query.trialId;Object(o["Nc"])({trialId:t,TrialReadingCriterionId:this.trialReadingCriterionId}).then((function(t){e.loading=!1,e.tblList=t.Result})).catch((function(){e.loading=!1}))},handleAdd:function(){this.rowData={ReadingQuestionCriterionTrialId:this.trialCriterionId},this.addOrEdit.title="添加",this.addOrEdit.visible=!0},handleEdit:function(e){this.rowData=Object(r["a"])({},e),this.rowData.ReadingQuestionCriterionTrialId=this.trialCriterionId,this.addOrEdit.title="编辑",this.addOrEdit.visible=!0},handleCfgQuestions:function(e){var t=this;this.rowData=Object(r["a"])({},e),this.questions.visible=!0,this.$nextTick((function(){t.$refs["questions"].getList()}))},handleDelete:function(e){var t=this;this.$confirm("是否确认删除?",{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.loading=!0,Object(o["ob"])(e.Id).then((function(e){t.loading=!1,e.IsSuccess&&(t.getList(),t.$message.success("删除成功!"))})).catch((function(){t.loading=!1}))}))},handlePreview:function(){this.preview.visible=!0},reloadArbitrationRules:function(){this.$emit("reloadArbitrationRules")}}},d=u,f=i("2877"),h=Object(f["a"])(d,n,a,!1,null,"3a040099",null);t["default"]=h.exports},f576:function(e,t,i){"use strict";var n=i("5ca1"),a=i("2e08"),r=i("a25f"),o=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(r);n(n.P+n.F*o,"String",{padStart:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0,!0)}})},f5c3:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"basic-info"},[i("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0,model:e.basicInfo,size:"small"}},[i("el-row",[i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"Name:"}},[i("span",[e._v(e._s(e.basicInfo.BlindName))])])],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"Name CN:"}},[i("span",[e._v(e._s(e.basicInfo.BlindNameCN))])])],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"Gender:"}},[e.isEnglish?i("span",[e._v(e._s(0===e.basicInfo.Sex?"Male":"Female"))]):i("span",[e._v(e._s(0===e.basicInfo.Sex?"男":"女"))])])],1),e._v(" "),i("el-col",{attrs:{span:6}},[i("el-form-item",{attrs:{label:"Title:"}},[e.isEnglish?i("span",[e._v("\n "+e._s(Array.isArray(e.basicInfo.Title)&&e.basicInfo.Title.length>0?e.basicInfo.TitleList.join(", "):"")+"\n ")]):i("span",[e._v("\n "+e._s(Array.isArray(e.basicInfo.TitleCNList)&&e.basicInfo.TitleCNList.length>0?e.basicInfo.TitleCNList.join(", "):"")+"\n ")])])],1)],1)],1)],1)},a=[],r={props:{basicInfo:{type:Object,default:function(){return{}}},isEnglish:{type:Boolean}}},o=r,s=(i("d5ee"),i("2877")),l=Object(s["a"])(o,n,a,!1,null,null,null);t["default"]=l.exports},f5e2:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"stats-trial"},[i("div",{ref:"listContainer",staticClass:"list-container"},[e.tableHeight?i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],attrs:{size:"small",stripe:"",height:"97%",data:e.list,"show-summary":"","summary-method":e.getSummaries},on:{"sort-change":e.sortByColumn,"selection-change":e.handleSelectChange}},[i("el-table-column",{attrs:{type:"selection"}}),e._v(" "),i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialCode",sortable:"custom",label:"Trial ID","min-width":"130","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Expedited","min-width":"110",label:"Expedited","show-overflow-tooltip":"",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(0==t.row.Expedited?"No":1==t.row.Expedited?"24H":"48H"))]}}],null,!1,603645623)}),e._v(" "),i("el-table-column",{attrs:{prop:"Indication",label:"Indication","min-width":"120",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Cro",label:"CRO","min-width":"120",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ReviewerNameList",label:"Reviewer Name","min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.ReviewerNameList))]}}],null,!1,115981013)}),e._v(" "),i("el-table-column",{attrs:{prop:"ReviewerNameCNList",label:"Reviewer Name CN","min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.ReviewerNameCNList))]}}],null,!1,882442264)}),e._v(" "),i("el-table-column",{attrs:{prop:"EnrollCount",label:"Entry Count","min-width":"90",sortable:"custom","show-overflow-tooltip":""}})],1):e._e()],1),e._v(" "),i("div",{staticClass:"pagination"},[i("pagination",{attrs:{total:e.total,page:e.listQuery.PageIndex,limit:e.listQuery.PageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"PageIndex",t)},"update:limit":function(t){return e.$set(e.listQuery,"PageSize",t)},pagination:e.getList}})],1)])},a=[],r=(i("c5f6"),i("ac6a"),i("48fb")),o=i("333d"),s=i("0340"),l={components:{Pagination:o["default"]},props:{param:{type:Object,default:function(){return{}}}},data:function(){return{list:[],listQuery:{},total:0,listLoading:!1,tableHeight:0,arrID:[]}},watch:{param:{handler:function(e,t){this.listQuery.TrialCode=e.TrialCode,this.listQuery.Indication=e.Indication,this.listQuery.CroId=e.CroId,this.listQuery.BeginDate=e.BeginDate,this.listQuery.EndDate=e.EndDate},deep:!0}},mounted:function(){this.tableHeight=this.$refs.listContainer.clientHeight+"px",this.listQuery.TrialCode=this.param.TrialCode,this.listQuery.Indication=this.param.Indication,this.listQuery.CroId=this.param.CroId,this.listQuery.BeginDate=this.param.BeginDate,this.listQuery.EndDate=this.param.EndDate,this.listQuery.PageIndex=1,this.listQuery.PageSize=20,this.getList()},methods:{getList:function(){var e=this;this.listLoading=!0,Object(r["b"])(this.listQuery).then((function(t){e.listLoading=!1,e.list=t.Result.CurrentPageData,e.list.forEach((function(e){e.ReviewerNameList=e.ReviewerNameList.join(", "),e.ReviewerNameCNList=e.ReviewerNameCNList.join(", ")})),e.total=t.Result.TotalCount})).catch((function(){e.listLoading=!1}))},handleSelectChange:function(e){for(var t=[],i=0;i<e.length;i++)t.push(e[i].Id);this.arrID=t,this.arrID.length>0?this.$emit("selectMore",!1):this.$emit("selectMore",!0)},getSummaries:function(e){var t=e.columns,i=e.data,n=[];return t.forEach((function(e,t){if(2!==t){var a=i.map((function(t){return Number(t[e.property])}));a.every((function(e){return isNaN(e)}))||(n[t]=a.reduce((function(e,t){var i=Number(t);return isNaN(i)?e:e+t}),0))}else n[t]="Total (Current Page)"})),n},sortByColumn:function(e){"ascending"===e.order?this.listQuery.Asc=!0:this.listQuery.Asc=!1,this.listQuery.SortField=e.prop,this.listQuery.PageIndex=1,this.getList()},resetList:function(){this.getList()},export:function(){var e=this,t="".concat(this.listQuery.BeginDate,"~").concat(this.listQuery.EndDate),i=[{key:"Index",width:5},{key:"TrialCode",width:15},{key:"Expedited",width:15},{key:"Indication",width:15},{key:"Cro",width:15},{key:"ReviewerNameList",width:25},{key:"ReviewerNameCNList",width:25},{key:"EnrollCount",width:15}],n="Beginning Month:".concat(this.listQuery.BeginDate," End Month:").concat(this.listQuery.EndDate),a=["","Trial ID","Expedited","Indication","CRO","Reviewer Name","Reviewer Name CN","Enroll Count"],r=0,o=1,l=this.list.filter((function(t){return e.arrID.indexOf(t.Id)>-1}));l.forEach((function(e){e.Index=o++,e.Expedited=0===e.Expedited?"No":1===e.Expedited?"24H":"48H",r+=e.EnrollCount}));var c=["","Total","","","","","",r];Object(s["a"])(t,i,"Enrollments Statistics",n,a,l,c,[])}}},c=l,u=(i("cfed"),i("2877")),d=Object(u["a"])(c,n,a,!1,null,"4c9bf6f0",null);t["default"]=d.exports},f5e6:function(e,t,i){i("1ccf"),i("b419")},f5f3:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"search-container"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:qcQuality:table:siteId")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:"",filterable:""},model:{value:e.searchData.SiteId,callback:function(t){e.$set(e.searchData,"SiteId",t)},expression:"searchData.SiteId"}},e._l(e.siteOptions,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.TrialSiteCode,value:e.SiteId}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:qcQuality:table:subjectId")}},[i("el-input",{staticStyle:{width:"100px"},model:{value:e.searchData.SubjectCode,callback:function(t){e.$set(e.searchData,"SubjectCode",t)},expression:"searchData.SubjectCode"}})],1),e._v(" "),i("el-form-item",{staticClass:"my_multiple",attrs:{label:e.$t("trials:qcQuality:table:visitName")}},[i("el-select",{staticStyle:{width:"140px"},attrs:{clearable:"",multiple:""},model:{value:e.searchData.VisitPlanArray,callback:function(t){e.$set(e.searchData,"VisitPlanArray",t)},expression:"searchData.VisitPlanArray"}},[e._l(e.visitPlanOptions,(function(t,n){return i("el-option",{key:n,attrs:{label:t.VisitName,value:t.VisitNum}},[i("span",{staticStyle:{float:"left"}},[e._v(e._s(t.VisitName))])])})),e._v(" "),i("el-option",{key:"Other",attrs:{label:"OutPlan",value:"1.11"}})],2)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:qcQuality:table:organizer")}},[i("el-select",{staticStyle:{width:"150px"},attrs:{clearable:"",filterable:""},model:{value:e.searchData.CreateUserId,callback:function(t){e.$set(e.searchData,"CreateUserId",t)},expression:"searchData.CreateUserId"}},e._l(e.creatorOptions,(function(t,n){return i("el-option",{key:n,attrs:{label:t.Creator,value:t.CreateUserId}},[i("span",{staticStyle:{float:"left"}},[e._v(e._s(t.Creator))]),e._v(" "),i("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px","margin-left":"5px"}},[e._v("\n "+e._s(t.CreatorRealName)+"\n ")])])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:qcQuality:table:isReupload")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.NeedReUpload,callback:function(t){e.$set(e.searchData,"NeedReUpload",t)},expression:"searchData.NeedReUpload"}},e._l(e.$d.YesOrNo,(function(e){return i("el-option",{attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:qcQuality:table:isOverTime")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.IsOverTime,callback:function(t){e.$set(e.searchData,"IsOverTime",t)},expression:"searchData.IsOverTime"}},e._l(e.$d.YesOrNo,(function(e){return i("el-option",{attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:qcQuality:table:isClosed")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.IsClosed,callback:function(t){e.$set(e.searchData,"IsClosed",t)},expression:"searchData.IsClosed"}},e._l(e.$d.YesOrNo,(function(e){return i("el-option",{attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-download"},on:{click:e.handleExport}},[e._v("\n "+e._s(e.$t("common:button:export"))+"\n ")])],1)],1),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"},{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"}],ref:"qcQsTable",attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortByColumn}},[i("el-table-column",{attrs:{prop:"ChallengeCode",label:e.$t("trials:qcQuality:table:challengeCode"),"show-overflow-tooltip":"",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{style:{color:t.row.IsClosed?"":"red"},attrs:{type:"text"},on:{click:function(i){return e.handleReply(t.row,t.$index)}}},[e._v("\n "+e._s(t.row.ChallengeCode)+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialSiteCode",label:e.$t("trials:qcQuality:table:siteId"),"show-overflow-tooltip":"","min-width":"100",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode",label:e.$t("trials:qcQuality:table:subjectId"),"show-overflow-tooltip":"","min-width":"120",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitName",label:e.$t("trials:qcQuality:table:visitName"),"show-overflow-tooltip":"","min-width":"100",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"QCProcessEnum",label:e.$t("trials:qcQuality:table:qCProcessEnum"),"show-overflow-tooltip":"","min-width":"100",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[1===e.otherInfo.QCProcessEnum?i("div",[1===t.row.CurrentQCEnum?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("CurrentQCType",0)))]):i("span",[e._v("--")])],1):2===e.otherInfo.QCProcessEnum?i("div",[1===t.row.CurrentQCEnum?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("CurrentQCType",t.row.CurrentQCEnum)))]):2===t.row.CurrentQCEnum?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("CurrentQCType",t.row.CurrentQCEnum)))]):i("span",[e._v("--")])],1):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:e.$t("trials:qcQuality:table:createTime"),"show-overflow-tooltip":"","min-width":"150",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateUserName",label:e.$t("trials:qcQuality:table:organizer"),"show-overflow-tooltip":"","min-width":"120",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"CurrentActionUserName",label:e.$t("trials:qcCheck:table:crrentUser"),"show-overflow-tooltip":"","min-width":"120",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"LatestReplyUserName",label:e.$t("trials:qcQuality:table:latestReplyer"),"show-overflow-tooltip":"","min-width":"120",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"LatestMsgTime",label:e.$t("trials:qcQuality:table:latestReplyTime"),"show-overflow-tooltip":"","min-width":"150",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"ReuploadEnum",label:e.$t("trials:qcQuality:table:reUploadStatus"),"show-overflow-tooltip":"","min-width":"120",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.ReuploadEnum?i("span",[e._v("--")]):1===t.row.ReuploadEnum?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ReuploadEnum",t.row.ReuploadEnum)))]):2===t.row.ReuploadEnum?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("ReuploadEnum",t.row.ReuploadEnum)))]):3===t.row.ReuploadEnum?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ReuploadEnum",t.row.ReuploadEnum)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ReUploadedTime",label:e.$t("trials:qcQuality:table:reUploadTime"),"show-overflow-tooltip":"","min-width":"150",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"DeadlineTime",label:e.$t("trials:qcQuality:table:deadline"),"show-overflow-tooltip":"","min-width":"150",sortable:"custom"}}),e._v(" "),i("el-table-column",{attrs:{prop:"ChallengeDuration",label:e.$t("trials:qcQuality:table:qsDuration"),"show-overflow-tooltip":"","min-width":"130"}}),e._v(" "),i("el-table-column",{attrs:{prop:"IsOverTime",label:e.$t("trials:qcQuality:table:isOverTime"),"show-overflow-tooltip":"","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsOverTime?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsOverTime)))]):i("el-tag",[e._v(e._s(e.$fd("YesOrNo",t.row.IsOverTime)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsClosed",label:e.$t("trials:qcQuality:table:isClosed"),"show-overflow-tooltip":"","min-width":"100",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsClosed?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsClosed)))]):i("el-tag",[e._v(e._s(e.$fd("YesOrNo",t.row.IsClosed)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ClosedTime",label:e.$t("trials:qcQuality:table:closingTime"),"show-overflow-tooltip":"","min-width":"150",sortable:"custom"}}),e._v(" "),e.hasPermi(["trials:trials-panel:visit:qc-question:send","trials:trials-panel:visit:qc-question:close"])?i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"200",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:qc-question:send"],expression:"['trials:trials-panel:visit:qc-question:send']"}],attrs:{circle:"",title:e.$t("trials:qcQuality:action:reply"),icon:"el-icon-chat-dot-square",disabled:t.row.IsClosed},on:{click:function(i){return e.handleReply(t.row)}}}),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:qc-question:close"],expression:"['trials:trials-panel:visit:qc-question:close']"}],attrs:{icon:"el-icon-error",circle:"",title:e.$t("trials:qcQuality:action:close"),disabled:t.row.IsClosed||e.currentUserId!==t.row.CurrentActionUserId},on:{click:function(i){return e.handleCloseQC(t.row)}}})]}}],null,!1,1104418821)}):e._e()],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1),e._v(" "),e.chatVisible?i("el-dialog",{attrs:{visible:e.chatVisible,"close-on-click-modal":!1,width:"800px",title:e.$t("trials:qcQuality:dialogTitle:reply")+"("+e.currentQCRow.SubjectCode+" "+e.currentQCRow.VisitName+")"},on:{"update:visible":function(t){e.chatVisible=t},getList:e.getList}},[i("chat-form",{attrs:{data:e.currentQCRow,"user-type":"qc","sign-text":e.otherInfo.ImageQCSignText},on:{close:function(t){e.chatVisible=!1},getDialogList:e.getDialogList}})],1):e._e(),e._v(" "),e.closeQuestionVisible?i("el-dialog",{attrs:{visible:e.closeQuestionVisible,"close-on-click-modal":!1,"append-to-body":"","custom-class":"base-dialog-wrapper",width:"600px",title:e.$t("trials:qcQuality:dialogTitle:closeQuestion")},on:{"update:visible":function(t){e.closeQuestionVisible=t}}},[i("div",{staticStyle:{padding:"10px",border:"1px solid #e0e0e0","max-height":"650px","overflow-y":"auto"}},[i("el-form",{ref:"closeQuestionForm",attrs:{model:e.closeQuestionForm,size:"small","label-width":"120px"}},[i("el-form-item",{attrs:{label:e.$t("trials:qcQuality:label:closeReason"),prop:"Type",rules:[{required:!0,message:e.$t("common:ruleMessage:select")}]}},[i("el-radio-group",{model:{value:e.closeQuestionForm.Type,callback:function(t){e.$set(e.closeQuestionForm,"Type",t)},expression:"closeQuestionForm.Type"}},[i("el-radio",{attrs:{label:1}},[e._v(e._s(e.$t("trials:qcQuality:radio:reason1")))]),e._v(" "),i("el-radio",{attrs:{label:2}},[e._v(e._s(e.$t("trials:qcQuality:radio:reason2")))])],1)],1),e._v(" "),2===e.closeQuestionForm.Type?i("el-form-item",{attrs:{label:e.$t("trials:consistencyCheck:label:closereason"),prop:"Remake",rules:[{required:!0,message:e.$t("common:ruleMessage:specify")}]}},[i("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:e.$t("common:ruleMessage:specify")},model:{value:e.closeQuestionForm.Remake,callback:function(t){e.$set(e.closeQuestionForm,"Remake",t)},expression:"closeQuestionForm.Remake"}})],1):e._e()],1)],1),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{disabled:e.closeBtnLoading,size:"small",type:"primary"},on:{click:function(t){e.closeQuestionVisible=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{loading:e.closeBtnLoading,size:"small",type:"primary"},on:{click:e.handleCloseQuestion}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)]):e._e()],2)},a=[],r=(i("20d6"),i("db72")),o=i("3e42"),s=i("3f2a"),l=i("6071"),c=i("901f"),u=i("333d"),d=i("a599"),f=function(){return{SiteId:"",SubjectCode:"",NeedReUpload:null,IsOverTime:null,CreateUserId:"",VisitPlanArray:[],IsClosed:null,PageIndex:1,PageSize:20}},h={name:"QcQuestion",components:{BaseContainer:l["default"],Pagination:u["default"],ChatForm:c["default"]},data:function(){return{searchData:f(),total:0,list:[],loading:!1,chatVisible:!1,currentQCRow:{},userTypeEnumInt:1*zzSessionStorage.getItem("userTypeEnumInt"),siteOptions:[],visitPlanOptions:[],creatorOptions:[],otherInfo:{},closeQuestionVisible:!1,closeQuestionForm:{Id:"",SubjectVisitId:"",Type:null,Reason:"",Remake:""},closeBtnLoading:!1,trialId:this.$route.query.trialId,currentUserId:zzSessionStorage.getItem("userId")}},mounted:function(){this.$route.query.challengeState&&1*this.$route.query.challengeState===1&&(this.searchData.IsClosed=!0),this.$route.query.challengeState&&1*this.$route.query.challengeState===2&&(this.searchData.IsClosed=!1),this.$route.query.subjectCode&&(this.searchData.SubjectCode=this.$route.query.subjectCode),Object(d["a"])("subjectCode",""),Object(d["a"])("challengeState",""),this.getList(),this.getSite(),this.getVisitPlanOptions(),this.getCreatorOptions()},methods:{getList:function(){var e=this;this.loading=!0,this.searchData.TrialId=this.trialId,Object(o["Ec"])(this.searchData).then((function(t){e.loading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount,e.otherInfo=t.OtherInfo})).catch((function(){e.loading=!1}))},handleExport:function(){Object(s["i"])(this.searchData).then((function(e){})).catch((function(){}))},handleReply:function(e){var t=this;this.loading=!0,Object(o["Dc"])(e.Id).then((function(i){t.loading=!1,i.IsSuccess&&(i.Result.length>0&&Object.assign(e,i.Result[0]),t.currentQCRow=Object(r["a"])({},e),t.chatVisible=!0)})).catch((function(){t.loading=!1}))},getDialogList:function(){var e=this;this.loading=!0,Object(o["Dc"])(this.currentQCRow.Id).then((function(t){if(e.loading=!1,t.IsSuccess&&t.Result.length>0){var i=e.list.findIndex((function(t){return t.Id===e.currentQCRow.Id}));i>-1&&(e.currentQCRow=Object.assign(e.list[i],t.Result[0]))}})).catch((function(){e.loading=!1}))},handleCloseQC:function(e){this.closeQuestionForm=Object.assign(this.closeQuestionForm,e),this.closeQuestionForm.Type=null,this.closeQuestionForm.Reason="",this.closeQuestionForm.Remake="",this.closeQuestionVisible=!0},handleCloseQuestion:function(){var e=this;this.$refs["closeQuestionForm"].validate((function(t){if(t){e.closeBtnLoading=!0,1===e.closeQuestionForm.Type?e.closeQuestionForm.Reason=e.$t("trials:qcQuality:message:problemSolved"):2===e.closeQuestionForm.Type&&(e.closeQuestionForm.Reason="".concat(e.$t("trials:qcQuality:message:problemNotSolved"),"<br/><br/>").concat(e.$t("trials:consistencyCheck:label:closereason"),":").concat(e.closeQuestionForm.Remake));var i={TrialId:e.trialId,QcChallengeId:e.closeQuestionForm.Id,SubjectVisitId:e.closeQuestionForm.SubjectVisitId,CloseEnum:e.closeQuestionForm.Type,CloseReason:e.closeQuestionForm.Reason};Object(o["X"])(i).then((function(t){e.closeBtnLoading=!1,t.IsSuccess&&(e.getList(),e.$message.success(e.$t("trials:qcQuality:message:closedSuccessfully")),e.closeQuestionVisible=!1)})).catch((function(){e.closeBtnLoading=!1}))}}))},handleReset:function(){var e=this;this.searchData=f(),this.getList(),this.$nextTick((function(){e.$refs.qcQsTable.clearSort()}))},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleSortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()},getSite:function(){var e=this;Object(o["Zd"])(this.trialId).then((function(t){e.siteOptions=t.Result}))},getVisitPlanOptions:function(){var e=this;Object(o["ee"])(this.trialId).then((function(t){e.visitPlanOptions=t.Result}))},getCreatorOptions:function(){var e=this;Object(o["Cc"])(this.trialId).then((function(t){e.creatorOptions=t.Result}))}}},p=h,m=i("2877"),g=Object(m["a"])(p,n,a,!1,null,null,null);t["default"]=g.exports},f610:function(e,t,i){var n=i("2306"),a=i("f934"),r=i("6d8b"),o=i("55ac"),s=o.wrapTreePathInfo,l=8,c=8,u=5;function d(e){this.group=new n.Group,e.add(this.group)}function f(e,t,i,n,a,r){var o=[[a?e:e-u,t],[e+i,t],[e+i,t+n],[a?e:e-u,t+n]];return!r&&o.splice(2,0,[e+i+u,t+n/2]),!a&&o.push([e,t+n/2]),o}function h(e,t,i){e.eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.componentIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:i&&i.dataIndex,name:i&&i.name},treePathInfo:i&&s(i,t)}}d.prototype={constructor:d,render:function(e,t,i,n){var r=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),r.get("show")&&i){var s=r.getModel("itemStyle"),l=s.getModel("textStyle"),c={pos:{left:r.get("left"),right:r.get("right"),top:r.get("top"),bottom:r.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:r.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(i,c,l),this._renderContent(e,c,s,l,n),a.positionElement(o,c.pos,c.box)}},_prepare:function(e,t,i){for(var n=e;n;n=n.parentNode){var a=n.getModel().get("name"),r=i.getTextRect(a),o=Math.max(r.width+2*l,t.emptyItemWidth);t.totalWidth+=o+c,t.renderList.push({node:n,text:a,width:o})}},_renderContent:function(e,t,i,o,s){for(var l=0,u=t.emptyItemWidth,d=e.get("breadcrumb.height"),p=a.getAvailableSize(t.pos,t.box),m=t.totalWidth,g=t.renderList,v=g.length-1;v>=0;v--){var b=g[v],y=b.node,w=b.width,_=b.text;m>p.width&&(m-=w-u,w=u,_=null);var I=new n.Polygon({shape:{points:f(l,0,w,d,v===g.length-1,0===v)},style:r.defaults(i.getItemStyle(),{lineJoin:"bevel",text:_,textFill:o.getTextColor(),textFont:o.getFont()}),z:10,onclick:r.curry(s,y)});this.group.add(I),h(I,e,y),l+=w+c}},remove:function(){this.group.removeAll()}};var p=d;e.exports=p},f6ed:function(e,t,i){var n=i("6d8b");function a(e,t){var i={};return n.each(e,(function(e){e.each(e.mapDimension("value"),(function(t,n){var a="ec-"+e.getName(n);i[a]=i[a]||[],isNaN(t)||i[a].push(t)}))})),e[0].map(e[0].mapDimension("value"),(function(n,a){for(var r,o="ec-"+e[0].getName(a),s=0,l=1/0,c=-1/0,u=i[o].length,d=0;d<u;d++)l=Math.min(l,i[o][d]),c=Math.max(c,i[o][d]),s+=i[o][d];return r="min"===t?l:"max"===t?c:"average"===t?s/u:s,0===u?NaN:r}))}function r(e){var t={};e.eachSeriesByType("map",(function(e){var i=e.getHostGeoModel(),n=i?"o"+i.id:"i"+e.getMapType();(t[n]=t[n]||[]).push(e)})),n.each(t,(function(e,t){for(var i=a(n.map(e,(function(e){return e.getData()})),e[0].get("mapValueCalculation")),r=0;r<e.length;r++)e[r].originalData=e[r].getData();for(r=0;r<e.length;r++)e[r].seriesGroup=e,e[r].needsDrawMap=0===r&&!e[r].getHostGeoModel(),e[r].setData(i.cloneShallow()),e[r].mainSeries=e[0]}))}e.exports=r},f706:function(e,t,i){var n=i("2306"),a=i("1418"),r=i("6d8b"),o=r.isObject;function s(e){this.group=new n.Group,this._symbolCtor=e||a}var l=s.prototype;function c(e,t,i,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(i))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&"none"!==e.getItemVisual(i,"symbol")}function u(e){return null==e||o(e)||(e={isIgnore:e}),e||{}}function d(e){var t=e.hostModel;return{itemStyle:t.getModel("itemStyle").getItemStyle(["color"]),hoverItemStyle:t.getModel("emphasis.itemStyle").getItemStyle(),symbolRotate:t.get("symbolRotate"),symbolOffset:t.get("symbolOffset"),hoverAnimation:t.get("hoverAnimation"),labelModel:t.getModel("label"),hoverLabelModel:t.getModel("emphasis.label"),cursorStyle:t.get("cursor")}}l.updateData=function(e,t){t=u(t);var i=this.group,a=e.hostModel,r=this._data,o=this._symbolCtor,s=d(e);r||i.removeAll(),e.diff(r).add((function(n){var a=e.getItemLayout(n);if(c(e,a,n,t)){var r=new o(e,n,s);r.attr("position",a),e.setItemGraphicEl(n,r),i.add(r)}})).update((function(l,u){var d=r.getItemGraphicEl(u),f=e.getItemLayout(l);c(e,f,l,t)?(d?(d.updateData(e,l,s),n.updateProps(d,{position:f},a)):(d=new o(e,l),d.attr("position",f)),i.add(d),e.setItemGraphicEl(l,d)):i.remove(d)})).remove((function(e){var t=r.getItemGraphicEl(e);t&&t.fadeOut((function(){i.remove(t)}))})).execute(),this._data=e},l.isPersistent=function(){return!0},l.updateLayout=function(){var e=this._data;e&&e.eachItemGraphicEl((function(t,i){var n=e.getItemLayout(i);t.attr("position",n)}))},l.incrementalPrepareUpdate=function(e){this._seriesScope=d(e),this._data=null,this.group.removeAll()},l.incrementalUpdate=function(e,t,i){function n(e){e.isGroup||(e.incremental=e.useHoverLayer=!0)}i=u(i);for(var a=e.start;a<e.end;a++){var r=t.getItemLayout(a);if(c(t,r,a,i)){var o=new this._symbolCtor(t,a,this._seriesScope);o.traverse(n),o.attr("position",r),this.group.add(o),t.setItemGraphicEl(a,o)}}},l.remove=function(e){var t=this.group,i=this._data;i&&e?i.eachItemGraphicEl((function(e){e.fadeOut((function(){t.remove(e)}))})):t.removeAll()};var f=s;e.exports=f},f71f:function(e,t,i){"use strict";i.r(t);var n=i("e017"),a=i.n(n),r=i("21a1"),o=i.n(r),s=new a.a({id:"icon-monitor",use:"icon-monitor-usage",viewBox:"0 0 1024 1024",content:'<symbol class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="icon-monitor"><defs><style type="text/css">@font-face { font-family: rbicon; src: url("chrome-extension://dipiagiiohfljcicegpgffpbnjmgjcnf/fonts/rbicon.woff2") format("woff2"); font-weight: normal; font-style: normal; }\r\n</style></defs><path d="M64 64V640H896V64H64zM0 0h960v704H0V0z" p-id="4696" /><path d="M192 896H768v64H192zM448 640H512v256h-64z" p-id="4697" /><path d="M479.232 561.604267l309.9904-348.330667-47.803733-42.5472-259.566934 291.669333L303.957333 240.008533 163.208533 438.6048l52.224 37.009067 91.6224-129.28z" p-id="4698" /></symbol>'});o.a.add(s);t["default"]=s},f76e:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"sceneConfigForm",attrs:{model:e.form,"label-width":"160px",size:"small",rules:e.rules}},[i("div",{staticClass:"base-dialog-body"},[i("el-form-item",{attrs:{label:"编号: ",prop:"Code"}},[i("el-input",{model:{value:e.form.Code,callback:function(t){e.$set(e.form,"Code",t)},expression:"form.Code"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"场景类型: ",prop:"Name"}},[i("el-input",{model:{value:e.form.Name,callback:function(t){e.$set(e.form,"Name",t)},expression:"form.Name"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"签名内容(EN): ",prop:"Value"}},[i("el-input",{attrs:{type:"textarea",rows:"5"},model:{value:e.form.Value,callback:function(t){e.$set(e.form,"Value",t)},expression:"form.Value"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"签名内容(CN): ",prop:"ValueCN"}},[i("el-input",{attrs:{type:"textarea",rows:"5"},model:{value:e.form.ValueCN,callback:function(t){e.$set(e.form,"ValueCN",t)},expression:"form.ValueCN"}})],1)],1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{size:"small",type:"primary",disabled:""===e.form.Type||""===e.form.Name,loading:e.saveBtnLoading},on:{click:e.handleSave}},[e._v("Save")])],1)],1)])},a=[],r=(i("96cf"),i("3b8d")),o=i("e56e"),s={props:{data:{type:Object,default:function(){return{}}},parentId:{type:String,required:!0}},data:function(){return{form:{Id:"",Code:"",Name:"",Value:"",ValueCN:"",ParentId:""},rules:{Code:[{required:!0,message:"Please specify",trigger:["blur"]}],Name:[{required:!0,message:"Please specify",trigger:["blur"]}],Value:[{required:!0,message:"Please specify",trigger:["blur"]}],ValueCN:[{required:!0,message:"Please specify",trigger:["blur"]}]},scenarioOption:[],saveBtnLoading:!1,loading:!1}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:for(t in this.loading=!0,this.form)this.data.hasOwnProperty(t)&&(this.form[t]=this.data[t]);this.loading=!1;case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),handleSave:function(){var e=this;this.$refs.sceneConfigForm.validate((function(t){t&&(e.saveBtnLoading=!0,e.form.ParentId=e.parentId,Object(o["u"])(e.form).then((function(t){e.saveBtnLoading=!1,e.$emit("closeDialog"),e.$emit("getList"),e.$message.success("Saved successfully")})).catch((function(){e.saveBtnLoading=!1})))}))}}},l=s,c=i("2877"),u=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},f77f:function(e,t,i){},f794:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container my_menu"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:"菜单名称"}},[i("el-input",{attrs:{placeholder:"请输入菜单名称",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.menuName,callback:function(t){e.$set(e.queryParams,"menuName",t)},expression:"queryParams.menuName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"状态"}},[i("el-select",{attrs:{placeholder:"菜单状态",clearable:"",size:"small"},model:{value:e.queryParams.visible,callback:function(t){e.$set(e.queryParams,"visible",t)},expression:"queryParams.visible"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:e.handleQuery}},[e._v("搜索")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-plus",size:"mini"},on:{click:e.handleAdd}},[e._v("新增")])],1)],1),e._v(" "),i("div",[i("el-button",{attrs:{type:"info",plain:"",icon:"el-icon-sort",size:"mini"},on:{click:e.toggleExpandAll}},[e._v("展开/折叠")])],1),e._v(" "),e.refreshTable?i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.menuList,"default-expand-all":e.isExpandAll,"row-key":"MenuId","tree-props":{children:"Children",hasChildren:"hasChildren"}}},[i("el-table-column",{attrs:{prop:"MenuName",label:"菜单名称","show-overflow-tooltip":!0,"min-width":"130px"}}),e._v(" "),i("el-table-column",{attrs:{prop:"icon",label:"图标",align:"center","min-width":"100px"},scopedSlots:e._u([{key:"default",fn:function(e){return[i("svg-icon",{attrs:{"icon-class":e.row.MenuIcon}})]}}],null,!1,2377868445)}),e._v(" "),i("el-table-column",{attrs:{prop:"ShowOrder",label:"排序","min-width":"60px"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Path",label:"路由","min-width":"120px","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ApiPath",label:"接口名","min-width":"180px","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"Component",label:"组件路径","min-width":"180px","show-overflow-tooltip":!0}}),e._v(" "),i("el-table-column",{attrs:{prop:"PermissionStr",label:"权限标识","min-width":"130px","show-overflow-tooltip":!0}}),e._v(" "),i("el-table-column",{attrs:{prop:"PermissionStr",label:"类型","min-width":"80px","show-overflow-tooltip":!0},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s("M"===t.row.MenuType?"目录":"C"===t.row.MenuType?"菜单":"权限点")+"\n ")]}}],null,!1,3147047883)}),e._v(" "),i("el-table-column",{attrs:{label:"显影",align:"center",prop:"CreateTime","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsDisplay?i("el-tag",{attrs:{size:"warning"}},[e._v("隐藏")]):i("el-tag",{attrs:{size:"medium"}},[e._v("显示")])]}}],null,!1,3975032753)}),e._v(" "),i("el-table-column",{attrs:{label:"启用",align:"center",prop:"CreateTime","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsEnable?i("el-tag",{attrs:{size:"success"}},[e._v("启用")]):i("el-tag",{attrs:{size:"danger"}},[e._v("禁用")])]}}],null,!1,3408094289)}),e._v(" "),i("el-table-column",{attrs:{label:"操作",align:"center","min-width":"180","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:menu:edit"],expression:"['system:menu:edit']"}],attrs:{size:"mini",type:"text",icon:"el-icon-edit"},on:{click:function(i){return e.handleUpdate(t.row)}}},[e._v("修改")]),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:menu:add"],expression:"['system:menu:add']"}],attrs:{size:"mini",type:"text",icon:"el-icon-plus"},on:{click:function(i){return e.handleAdd(t.row)}}},[e._v("新增")]),e._v(" "),i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:menu:delete"],expression:"['system:menu:delete']"}],attrs:{size:"mini",type:"text",icon:"el-icon-delete"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("删除")])]}}],null,!1,1804662470)})],1):e._e(),e._v(" "),i("el-dialog",{attrs:{title:e.title,"close-on-click-modal":!1,visible:e.open,width:"680px","append-to-body":""},on:{"update:visible":function(t){e.open=t}}},[i("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"100px"}},[i("el-row",[i("el-col",{attrs:{span:24}},[i("el-form-item",{attrs:{label:"上级菜单"}},[i("treeselect",{attrs:{options:e.menuOptions,normalizer:e.normalizer,"show-count":!0,placeholder:"选择上级菜单"},model:{value:e.form.ParentId,callback:function(t){e.$set(e.form,"ParentId",t)},expression:"form.ParentId"}})],1)],1),e._v(" "),i("el-col",{attrs:{span:24}},[i("el-form-item",{attrs:{label:"菜单类型",prop:"menuType"}},[i("el-radio-group",{model:{value:e.form.MenuType,callback:function(t){e.$set(e.form,"MenuType",t)},expression:"form.MenuType"}},[i("el-radio",{attrs:{label:"M"}},[e._v("目录")]),e._v(" "),i("el-radio",{attrs:{label:"C"}},[e._v("菜单")]),e._v(" "),i("el-radio",{attrs:{label:"F"}},[e._v("权限点")])],1)],1)],1),e._v(" "),i("el-col",{attrs:{span:24}},["F"!=e.form.MenuType?i("el-form-item",{attrs:{label:"菜单图标"}},[i("el-popover",{attrs:{placement:"bottom-start",width:"460",trigger:"click"},on:{show:function(t){return e.$refs["iconSelect"].reset()}}},[i("IconSelect",{ref:"iconSelect",on:{selected:e.selected}}),e._v(" "),i("el-input",{attrs:{slot:"reference",placeholder:"点击选择图标",readonly:""},slot:"reference",model:{value:e.form.MenuIcon,callback:function(t){e.$set(e.form,"MenuIcon",t)},expression:"form.MenuIcon"}},[e.form.MenuIcon?i("svg-icon",{staticClass:"el-input__icon",staticStyle:{height:"28px",width:"16px","margin-left":"6px"},attrs:{slot:"prefix","icon-class":e.form.MenuIcon},slot:"prefix"}):i("i",{staticClass:"el-icon-search el-input__icon",attrs:{slot:"prefix"},slot:"prefix"})],1)],1)],1):e._e()],1),e._v(" "),i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{label:"菜单名称",prop:"MenuName"}},[i("el-input",{attrs:{placeholder:"请输入菜单名称"},model:{value:e.form.MenuName,callback:function(t){e.$set(e.form,"MenuName",t)},expression:"form.MenuName"}})],1)],1),e._v(" "),i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{label:"显示排序",prop:"ShowOrder"}},[i("el-input-number",{attrs:{"controls-position":"right",min:0},model:{value:e.form.ShowOrder,callback:function(t){e.$set(e.form,"ShowOrder",t)},expression:"form.ShowOrder"}})],1)],1),e._v(" "),i("el-col",{attrs:{span:12}},["F"!=e.form.MenuType?i("el-form-item",[i("span",{attrs:{slot:"label"},slot:"label"},[i("el-tooltip",{attrs:{content:"选择是外链则路由地址需要以`http(s)://`开头",placement:"top"}},[i("i",{staticClass:"el-icon-question"})]),e._v("\n 是否外链\n ")],1),e._v(" "),i("el-radio-group",{model:{value:e.form.IsExternalLink,callback:function(t){e.$set(e.form,"IsExternalLink",t)},expression:"form.IsExternalLink"}},[i("el-radio",{attrs:{label:!0}},[e._v("是")]),e._v(" "),i("el-radio",{attrs:{label:!1}},[e._v("否")])],1)],1):e._e()],1),e._v(" "),i("el-col",{attrs:{span:12}},["F"!=e.form.MenuType?i("el-form-item",{attrs:{prop:"path"}},[i("span",{attrs:{slot:"label"},slot:"label"},[i("el-tooltip",{attrs:{content:"访问的路由地址,如:`user`,如外网地址需内链访问则以`http(s)://`开头",placement:"top"}},[i("i",{staticClass:"el-icon-question"})]),e._v("\n 路由地址\n ")],1),e._v(" "),i("el-input",{attrs:{placeholder:"请输入路由地址"},model:{value:e.form.Path,callback:function(t){e.$set(e.form,"Path",t)},expression:"form.Path"}})],1):e._e()],1),e._v(" "),"C"==e.form.MenuType?i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{prop:"component"}},[i("span",{attrs:{slot:"label"},slot:"label"},[i("el-tooltip",{attrs:{content:"访问的组件路径,如:`system/user/index`,默认在`views`目录下",placement:"top"}},[i("i",{staticClass:"el-icon-question"})]),e._v("\n 组件路径\n ")],1),e._v(" "),i("el-input",{attrs:{placeholder:"请输入组件路径"},model:{value:e.form.Component,callback:function(t){e.$set(e.form,"Component",t)},expression:"form.Component"}})],1)],1):e._e(),e._v(" "),"F"!=e.form.MenuType?i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{prop:"Redirect Path"}},[i("span",{attrs:{slot:"label"},slot:"label"},[i("el-tooltip",{attrs:{content:"重定向路由,如:`/system/user/index`",placement:"top"}},[i("i",{staticClass:"el-icon-question"})]),e._v("\n 重定向\n ")],1),e._v(" "),i("el-input",{attrs:{placeholder:"请输入重定向路由"},model:{value:e.form.Redirect,callback:function(t){e.$set(e.form,"Redirect",t)},expression:"form.Redirect"}})],1)],1):e._e(),e._v(" "),i("el-col",{attrs:{span:12}},["M"!=e.form.MenuType?i("el-form-item",[i("el-input",{attrs:{placeholder:"请输入权限标识",maxlength:"100"},model:{value:e.form.PermissionStr,callback:function(t){e.$set(e.form,"PermissionStr",t)},expression:"form.PermissionStr"}}),e._v(" "),i("span",{attrs:{slot:"label"},slot:"label"},[i("el-tooltip",{attrs:{content:"控制器中定义的权限字符,如:@PreAuthorize(`@ss.hasPermi('system:user:list')`)",placement:"top"}},[i("i",{staticClass:"el-icon-question"})]),e._v("\n 权限字符\n ")],1)],1):e._e()],1),e._v(" "),i("el-col",{attrs:{span:12}},["M"!=e.form.MenuType?i("el-form-item",[i("el-input",{attrs:{placeholder:"接口名"},model:{value:e.form.ApiPath,callback:function(t){e.$set(e.form,"ApiPath",t)},expression:"form.ApiPath"}}),e._v(" "),i("span",{attrs:{slot:"label"},slot:"label"},[i("el-tooltip",{attrs:{content:"接口名",placement:"top"}},[i("i",{staticClass:"el-icon-question"})]),e._v("\n 接口名\n ")],1)],1):e._e()],1),e._v(" "),i("el-col",{attrs:{span:12}},["C"==e.form.MenuType?i("el-form-item",[i("span",{attrs:{slot:"label"},slot:"label"},[i("el-tooltip",{attrs:{content:"选择是则会被`keep-alive`缓存,需要匹配组件的`name`和地址保持一致",placement:"top"}},[i("i",{staticClass:"el-icon-question"})]),e._v("\n 是否缓存\n ")],1),e._v(" "),i("el-radio-group",{model:{value:e.form.IsCache,callback:function(t){e.$set(e.form,"IsCache",t)},expression:"form.IsCache"}},[i("el-radio",{attrs:{label:!0}},[e._v("缓存")]),e._v(" "),i("el-radio",{attrs:{label:!1}},[e._v("不缓存")])],1)],1):e._e()],1),e._v(" "),i("el-col",{attrs:{span:12}},["F"!=e.form.MenuType?i("el-form-item",[i("span",{attrs:{slot:"label"},slot:"label"},[i("el-tooltip",{attrs:{content:"选择隐藏则路由将不会出现在侧边栏,但仍然可以访问",placement:"top"}},[i("i",{staticClass:"el-icon-question"})]),e._v("\n 是否隐藏\n ")],1),e._v(" "),i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},model:{value:e.form.IsDisplay,callback:function(t){e.$set(e.form,"IsDisplay",t)},expression:"form.IsDisplay"}})],1):e._e()],1),e._v(" "),i("el-col",{attrs:{span:12}},["F"!=e.form.MenuType?i("el-form-item",[i("span",{attrs:{slot:"label"},slot:"label"},[i("el-tooltip",{attrs:{content:"选择隐藏则不会在trials模块的TAB中显示但仍然可以访问",placement:"top"}},[i("i",{staticClass:"el-icon-question"})]),e._v("\n Tab显隐\n ")],1),e._v(" "),i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},model:{value:e.form.IsInTabDisplay,callback:function(t){e.$set(e.form,"IsInTabDisplay",t)},expression:"form.IsInTabDisplay"}})],1):e._e()],1),e._v(" "),i("el-col",{attrs:{span:12}},["F"!=e.form.MenuType?i("el-form-item",[i("span",{attrs:{slot:"label"},slot:"label"},[i("el-tooltip",{attrs:{content:"选择停用则路由将不会出现在侧边栏,也不能被访问",placement:"top"}},[i("i",{staticClass:"el-icon-question"})]),e._v("\n 菜单状态\n ")],1),e._v(" "),i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},model:{value:e.form.IsEnable,callback:function(t){e.$set(e.form,"IsEnable",t)},expression:"form.IsEnable"}})],1):e._e()],1),e._v(" "),"F"!=e.form.MenuType?i("el-col",{attrs:{span:24}},[i("el-form-item",{attrs:{label:"LangMark"}},[i("el-input",{attrs:{placeholder:"LangMark"},model:{value:e.form.LanguageMark,callback:function(t){e.$set(e.form,"LanguageMark",t)},expression:"form.LanguageMark"}})],1)],1):e._e(),e._v(" "),"F"!=e.form.MenuType?i("el-col",{attrs:{span:24}},[i("el-form-item",{attrs:{label:"mate"}},[i("el-input",{attrs:{type:"textarea",placeholder:"{ title: 'Setting', breadcrumb: false, role: [8, 1, 2, 3, 10] }"},model:{value:e.form.Meta,callback:function(t){e.$set(e.form,"Meta",t)},expression:"form.Meta"}})],1)],1):e._e()],1)],1),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("确 定")]),e._v(" "),i("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1)],1)],1)},a=[],r=i("a6dc"),o=i("ca17"),s=i.n(o),l=(i("542c"),i("5aee")),c={name:"Menu",components:{Treeselect:s.a,IconSelect:l["default"]},data:function(){return{loading:!0,menuList:[],menuOptions:[],title:"",open:!1,visibleOptions:[],queryParams:{menuName:void 0,visible:void 0},isExpandAll:!1,refreshTable:!0,form:{},rules:{MenuName:[{required:!0,message:"菜单名称不能为空",trigger:"blur"}],ShowOrder:[{required:!0,message:"菜单顺序不能为空",trigger:"blur"}]}}},created:function(){console.log(this.hasPermi(["trials:trials-list:new","trials:trials-list:export1"],"&&")),this.getList()},methods:{toggleExpandAll:function(){var e=this;this.refreshTable=!1,this.isExpandAll=!this.isExpandAll,this.$nextTick((function(){e.refreshTable=!0}))},normalizer:function(e){return e.Children&&!e.Children.length&&delete e.Children,{id:e.MenuId,label:e.MenuName,children:e.Children}},toTree:function(e,t){function i(t){for(var n=[],a=0;a<e.length;a++){var r=e[a];r.hasChildren=!1,r.ParentId===t&&(r.Children=i(r.MenuId),n.push(r))}return n}return i(t)},selected:function(e){this.form.MenuIcon=e},getList:function(){var e=this;this.loading=!0,Object(r["c"])(this.queryParams).then((function(t){e.menuList=e.toTree(t.Result,"00000000-0000-0000-0000-000000000000");var i={MenuId:"00000000-0000-0000-0000-000000000000",MenuName:"主类目",Children:[]};i.Children=e.menuList,e.menuOptions=Object.assign([],[i]),e.loading=!1})).catch((function(){}))},getTreeselect:function(){var e=this;this.loading=!0,Object(r["c"])({}).then((function(t){var i={MenuId:"00000000-0000-0000-0000-000000000000",MenuName:"主类目",Children:[]};i.Children=e.toTree(t.Result,"00000000-0000-0000-0000-000000000000"),e.menuOptions=Object.assign([],[i]),e.loading=!1})).catch((function(){}))},visibleFormat:function(e,t){return"F"===e.MenuType?"":this.selectDictLabel(this.visibleOptions,e.visible)},cancel:function(){this.open=!1,this.reset()},reset:function(){this.form={MenuId:null,ParentId:null,MenuType:"M",MenuIcon:"",MenuName:"",Path:"",Component:"",ShowOrder:null,IsEnable:!0,IsCache:!1,IsDisplay:!1,IsInTabDisplay:!1,IsExternalLink:!1,PermissionStr:"",Note:"",CreateTime:"",LanguageMark:null,Apipath:null},this.resetForm("form")},handleQuery:function(){this.getList()},handleAdd:function(e){this.reset(),this.getTreeselect(),null!=e&&(this.form.ParentId=e.MenuId),this.open=!0,this.title="添加菜单"},handleUpdate:function(e){this.reset(),this.getTreeselect(),this.form=Object.assign({},e),this.open=!0,this.title="修改菜单"},submitForm:function(){var e=this;this.$refs["form"].validate((function(t){t&&Object(r["a"])(e.form).then((function(t){e.$message.success("保存成功"),e.open=!1,e.getList()}))}))},handleDelete:function(e){var t=this;this.$confirm('是否确认删除名称为"'+e.MenuName+'"的数据项?',"警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){return Object(r["b"])(e.MenuId)})).then((function(){t.getList(),t.$message.success("删除成功")})).catch((function(){}))}}},u=c,d=(i("bb8c"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},f7c6:function(e,t,i){var n=i("3eba"),a=i("e46b"),r=i("6d8b"),o=i("e0d3"),s=i("3842"),l=s.getPercentWithPrecision,c=i("7023"),u=i("2b17"),d=u.retrieveRawAttr,f=i("0f99"),h=f.makeSeriesEncodeForNameBased,p=i("c4a3"),m=n.extendSeriesModel({type:"series.pie",init:function(e){m.superApply(this,"init",arguments),this.legendVisualProvider=new p(r.bind(this.getData,this),r.bind(this.getRawData,this)),this.updateSelectedMap(this._createSelectableList()),this._defaultLabelLine(e)},mergeOption:function(e){m.superCall(this,"mergeOption",e),this.updateSelectedMap(this._createSelectableList())},getInitialData:function(e,t){return a(this,{coordDimensions:["value"],encodeDefaulter:r.curry(h,this)})},_createSelectableList:function(){for(var e=this.getRawData(),t=e.mapDimension("value"),i=[],n=0,a=e.count();n<a;n++)i.push({name:e.getName(n),value:e.get(t,n),selected:d(e,n,"selected")});return i},getDataParams:function(e){var t=this.getData(),i=m.superCall(this,"getDataParams",e),n=[];return t.each(t.mapDimension("value"),(function(e){n.push(e)})),i.percent=l(n,e,t.hostModel.get("percentPrecision")),i.$vars.push("percent"),i},_defaultLabelLine:function(e){o.defaultEmphasis(e,"labelLine",["show"]);var t=e.labelLine,i=e.emphasis.labelLine;t.show=t.show&&e.label.show,i.show=i.show&&e.emphasis.label.show},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,hoverOffset:10,avoidLabelOverlap:!0,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:!1,show:!0,position:"outer",alignTo:"none",margin:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1},animationType:"expansion",animationTypeUpdate:"transition",animationEasing:"cubicOut"}});r.mixin(m,c);var g=m;e.exports=g},f818:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"dicom-viewer-wrapper"},[i("div",{staticClass:"dicom-viewer-container"},[i("div",{staticClass:"dicom-tools"},[i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:""+e.$t("trials:reading:button:layout"),placement:"bottom"}},[i("div",{staticClass:"tool-wrapper",on:{click:function(t){return t.stopPropagation(),e.showPanel(t)},mouseleave:e.handleMouseout}},[i("div",{staticClass:"dropdown"},[i("div",{staticClass:"icon"},[i("svg-icon",{staticClass:"svg-icon",attrs:{"icon-class":"layout"}}),e._v(" "),i("i",{staticClass:"el-icon-arrow-down",staticStyle:{color:"#fff"}})],1),e._v(" "),i("div",{staticClass:"dropdown-content layout-content"},[i("ul",{staticStyle:{width:"50px"}},[i("li",{staticClass:"flex_row",on:{click:function(t){return t.stopPropagation(),e.changeLayout("A")}}},[i("div",{staticClass:"layout_box_1_1"},[e._v("\n A\n ")])]),e._v(" "),i("li",{staticClass:"flex_row",on:{click:function(t){return t.stopPropagation(),e.changeLayout("A|A")}}},[i("div",{staticClass:"layout_box_1_1"},[e._v("\n A\n ")]),e._v(" "),i("div",{staticClass:"layout_box_1_1"},[e._v("\n A\n ")])]),e._v(" "),e.isReadingTaskViewInOrder?i("li",{staticClass:"flex_row",on:{click:function(t){return t.stopPropagation(),e.changeLayout("A|B")}}},[i("div",{staticClass:"layout_box_1_1"},[e._v("\n A\n ")]),e._v(" "),i("div",{staticClass:"layout_box_1_1"},[e._v("\n B\n ")])]):e._e(),e._v(" "),i("li",{staticClass:"flex_column",on:{click:function(t){return t.stopPropagation(),e.changeLayout("A|A|A|A")}}},[i("div",{staticStyle:{flex:"1",display:"flex",width:"100%"}},[i("div",{staticClass:"layout_box_1_2"},[e._v("\n A\n ")]),e._v(" "),i("div",{staticClass:"layout_box_1_2"},[e._v("\n A\n ")])]),e._v(" "),i("div",{staticStyle:{flex:"1",display:"flex",width:"100%"}},[i("div",{staticClass:"layout_box_1_2"},[e._v("\n A\n ")]),e._v(" "),i("div",{staticClass:"layout_box_1_2"},[e._v("\n A\n ")])])])])])])])]),e._v(" "),i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:""+e.$t("trials:reading:button:wwwc"),placement:"bottom"}},[i("div",{staticClass:"tool-wrapper",on:{click:function(t){return t.stopPropagation(),e.showPanel(t)},mouseleave:e.handleMouseout}},[i("div",{staticClass:"dropdown"},[i("div",{staticClass:"icon",class:["Wwwc"===e.activeTool?"tool_active":""],attrs:{"data-tool":"Wwwc"},on:{click:function(t){return t.preventDefault(),e.setToolActive("Wwwc",!1)}}},[i("svg-icon",{staticClass:"svg-icon",attrs:{"icon-class":"reverse"}}),e._v(" "),i("i",{staticClass:"el-icon-arrow-down",staticStyle:{color:"#fff"}})],1),e._v(" "),i("div",{staticClass:"dropdown-content"},[i("ul",{staticStyle:{width:"165px",padding:"0 10px"}},e._l(e.wwwcArr,(function(t){return i("li",{key:t.label},[i("a",{attrs:{href:"#"},on:{click:function(i){return i.preventDefault(),e.setDicomCanvasWwwc(t)}}},[t.wc?i("div",{staticStyle:{display:"flex","flex-direction":"row","justify-content":"space-between"}},[i("div",[e._v(e._s(t.label))]),e._v(" "),i("div",[e._v(e._s(t.ww)+"/"+e._s(t.wc))])]):i("div",{staticStyle:{"text-align":"left"}},[e._v("\n "+e._s(t.label)+"\n ")])]),e._v(" "),1===t.val?i("el-divider",{staticClass:"divider",attrs:{"content-position":"center"}},[e._v(e._s(" "+e.$t("trials:reading:title:preset")))]):e._e()],1)})),0)])])])]),e._v(" "),i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:""+e.$t("trials:reading:button:reverseColor"),placement:"bottom"}},[i("div",{staticClass:"tool-wrapper"},[i("div",{staticClass:"icon",class:["reversecolor"===e.activeTool?"tool_active":""],on:{click:function(t){return t.preventDefault(),e.toggleInvert(t)}}},[i("svg-icon",{staticClass:"svg-icon",attrs:{"icon-class":"reversecolor"}})],1)])]),e._v(" "),i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:""+e.$t("trials:reading:button:zoom"),placement:"bottom"}},[i("div",{staticClass:"tool-wrapper"},[i("div",{staticClass:"icon",class:["Zoom"===e.activeTool?"tool_active":""],attrs:{"data-tool":"Zoom"},on:{click:function(t){return t.preventDefault(),e.setToolActive("Zoom",!1)}}},[i("svg-icon",{staticClass:"svg-icon",attrs:{"icon-class":"magnifier"}})],1),e._v(" "),i("div",{staticClass:"text"},[e._v(e._s(e.$t("trials:reading:button:zoom")))])])]),e._v(" "),i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:""+e.$t("trials:reading:button:move"),placement:"bottom"}},[i("div",{staticClass:"tool-wrapper"},[i("div",{staticClass:"icon",class:["Pan"===e.activeTool?"tool_active":""],attrs:{"data-tool":"Pan"},on:{click:function(t){return t.preventDefault(),e.setToolActive("Pan",!1)}}},[i("svg-icon",{staticClass:"svg-icon",attrs:{"icon-class":"move"}})],1),e._v(" "),i("div",{staticClass:"text"},[e._v(e._s(e.$t("trials:reading:button:move")))])])]),e._v(" "),i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:""+e.$t("trials:reading:button:rotate"),placement:"bottom"}},[i("div",{staticClass:"tool-wrapper",on:{click:function(t){return t.stopPropagation(),e.showPanel(t)},mouseleave:e.handleMouseout}},[i("div",{staticClass:"dropdown"},[i("div",{staticClass:"icon",class:["Rotate"===e.activeTool?"tool_active":""],attrs:{"data-tool":"Rotate"}},[i("svg-icon",{staticClass:"svg-icon",attrs:{"icon-class":"rotate"}}),e._v(" "),i("i",{staticClass:"el-icon-arrow-down",staticStyle:{color:"#fff"}})],1),e._v(" "),i("div",{staticClass:"text"},[e._v(e._s(e.$t("trials:reading:button:rotate"))),i("i",{staticClass:"el-icon-caret-bottom"})]),e._v(" "),i("div",{staticClass:"dropdown-content"},[i("ul",{staticStyle:{width:"100px",padding:"0 10px"}},e._l(e.rotateArr,(function(t){return i("li",{key:t.label,staticStyle:{"text-align":"left"}},[i("a",{attrs:{href:"#"},on:{click:function(i){return i.preventDefault(),e.setDicomCanvasRotate(t.val)}}},[e._v(e._s(t.label))])])})),0)])])])]),e._v(" "),i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:1===e.fitType?""+e.$t("trials:reading:button:fitWindow"):""+e.$t("trials:reading:button:fitImage"),placement:"bottom"}},[i("div",{staticClass:"tool-wrapper"},[i("div",{staticClass:"icon",on:{click:function(t){return t.preventDefault(),e.fitToType(1===e.fitType?"fitToWindow":"fitToImage")}}},[1===e.fitType?i("svg-icon",{staticClass:"svg-icon",attrs:{"icon-class":"fitToWindow"}}):i("svg-icon",{staticClass:"svg-icon",attrs:{"icon-class":"fitToImage"}})],1),e._v(" "),i("div",{staticClass:"text"},[e._v(e._s(1===e.fitType?e.$t("trials:reading:button:fitWindow"):e.$t("trials:reading:button:fitImage")))])])]),e._v(" "),i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:""+e.$t("trials:reading:button:imageIndexSync"),placement:"bottom"}},[i("div",{staticClass:"tool-wrapper"},[i("div",{staticClass:"icon",class:[e.isScrollSync?"tool_active":""],on:{click:function(t){return t.preventDefault(),e.setImageIndexSync(t)}}},[e.isScrollSync?i("i",{staticClass:"el-icon-lock svg-icon"}):i("i",{staticClass:"el-icon-unlock svg-icon"})]),e._v(" "),i("div",{staticClass:"text"},[e._v(e._s(e.$t("trials:reading:button:imageIndexSync")))])])]),e._v(" "),i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:""+e.$t("trials:reading:button:screenShot"),placement:"bottom"}},[i("div",{staticClass:"tool-wrapper"},[i("div",{staticClass:"icon",on:{click:function(t){return t.preventDefault(),e.saveImage(t)}}},[i("svg-icon",{staticClass:"svg-icon",attrs:{"icon-class":"image"}})],1),e._v(" "),i("div",{staticClass:"text"},[e._v(e._s(e.$t("trials:reading:button:screenShot")))])])]),e._v(" "),e._l(e.measuredTools,(function(t){return i("div",{key:t.toolName},[i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"bottom"}},[i("div",{attrs:{slot:"content"},slot:"content"},[t.disabledReason?i("div",[i("h4",{staticStyle:{margin:"0","padding-bottom":"2px"}},[e._v(e._s(t.text))]),e._v(" "),i("br"),e._v(e._s(t.disabledReason)+"\n ")]):i("div",[e._v(e._s(t.text))])]),e._v(" "),i("div",{staticClass:"tool-wrapper"},[i("div",{staticClass:"icon",class:[e.activeTool===t.toolName?"tool_active":""],style:{cursor:t.isDisabled?"not-allowed":"pointer"},attrs:{"data-tool":t.toolName},on:{click:function(i){return i.preventDefault(),e.setToolActive(t.toolName,!0,i)},mouseenter:function(i){return e.enter(i,t.toolName)}}},[i("svg-icon",{staticClass:"svg-icon",attrs:{"icon-class":t.icon}})],1),e._v(" "),i("div",{staticClass:"text"},[e._v(e._s(t.text))])])])],1)})),e._v(" "),i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$t("trials:reading:button:reset"),placement:"bottom"}},[i("div",{staticClass:"tool-wrapper"},[i("div",{staticClass:"icon",on:{click:function(t){return t.preventDefault(),e.resetViewport(t)}}},[i("svg-icon",{staticClass:"svg-icon",attrs:{"icon-class":"refresh"}})],1),e._v(" "),i("div",{staticClass:"text"},[e._v(e._s(e.$t("trials:reading:button:reset")))])])]),e._v(" "),i("div",{staticStyle:{"margin-left":"auto"}},[i("div",{staticStyle:{padding:"5px"}},[e.isExistsClinicalData?i("el-button",{attrs:{type:"text"},on:{click:e.previewCD}},[e._v(e._s(e.$t("trials:reading:button:clinicalData")))]):e._e(),e._v(" "),i("el-button",{attrs:{type:"text"},on:{click:e.previewHotkeys}},[e._v(e._s(e.$t("trials:hotkeys:title:hotkey")))])],1)])],2),e._v(" "),i("div",{staticClass:"dicom-viewers"},[i("div",{ref:"container",staticClass:"viewer-container",class:["box","box_"+e.layoutRow+"_"+e.layoutCol]},e._l(e.maxCanvas,(function(t){return i("div",{key:t,class:["item",t-1===e.currentDicomCanvasIndex?"item_active":""],style:t-1===e.currentDicomCanvasIndex?e.cornerstoneStyle:{},attrs:{"data-index":t-1},on:{click:function(i){return e.activateDicomCanvas(t-1)}}},[e.canvasW?i("dicom-canvas",{ref:"dicomCanvas"+(t-1),refInFor:!0,style:{width:e.canvasW,height:e.canvasH},attrs:{"canvas-index":t-1,"is-active":t-1===e.currentDicomCanvasIndex,"is-scroll-sync":e.isScrollSync,"is-reading-show-subject-info":e.isReadingShowSubjectInfo,"is-reading-task-view-in-order":e.isReadingTaskViewInOrder,"current-dicom-canvas-index":e.currentDicomCanvasIndex,"hot-key-list":e.hotKeyList},on:{setCornerstoneStyle:function(i){return e.setCornerstoneStyle(t-1)},setMeasureData:e.setMeasureData,modifyMeasureData:e.modifyMeasureData,scrollSync:e.scrollSync,selectViewCanvas:e.selectViewCanvas}}):e._e()],1)})),0),e._v(" "),i("div",{ref:"form-container",staticClass:"form-container"},[10===e.CriterionType?i("PCWGQuestionList",{ref:"measurementList",attrs:{"question-form-change-state":e.questionFormChangeState,"question-form-change-num":e.questionFormChangeNum,"is-show":e.isShow,"is-reading-show-subject-info":e.isReadingShowSubjectInfo}}):17!==e.CriterionType?i("RecistQuestionList",{ref:"measurementList",attrs:{"question-form-change-state":e.questionFormChangeState,"question-form-change-num":e.questionFormChangeNum,"is-show":e.isShow,"is-reading-show-subject-info":e.isReadingShowSubjectInfo}}):e._e()],1)])]),e._v(" "),e.customWwc.visible?i("el-dialog",{attrs:{visible:e.customWwc.visible,"close-on-click-modal":!1,title:e.customWwc.title,width:"400px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){return e.$set(e.customWwc,"visible",t)}}},[i("CustomWwwcForm",{on:{close:function(t){e.customWwc.visible=!1},setWwwc:e.setWwwc}})],1):e._e(),e._v(" "),e.hotkeysDialog.visible?i("el-dialog",{attrs:{visible:e.hotkeysDialog.visible,"close-on-click-modal":!1,title:e.hotkeysDialog.title,width:"600px"},on:{"update:visible":function(t){return e.$set(e.hotkeysDialog,"visible",t)}}},[i("Hotkeys",{attrs:{"reading-tool":0},on:{reset:e.resetHotkeyList,close:function(t){e.hotkeysDialog.visible=!1}}})],1):e._e()],1)},a=[],r=(i("7514"),i("55dd"),i("96cf"),i("3b8d")),o=(i("5df3"),i("1c4c"),i("7f7f"),i("20d6"),i("ac6a"),i("db72")),s=(i("c5f6"),i("81d9")),l=i("6e43"),c=i("e6ad"),u=i("c8b5"),d=i.n(u),f=i("4663"),h=i("8bd9"),p=i("bfd8"),m=i("4303"),g=i("abff"),v=i("9b92"),b=i("2f62"),y=i("4360"),w=i("c24f");c["external"].cornerstone=s,c["external"].Hammer=d.a,c["external"].cornerstoneMath=l;var _={name:"DicomViewer",components:{DicomCanvas:f["default"],CustomWwwcForm:m["default"],Hotkeys:g["default"],RecistQuestionList:h["default"],PCWGQuestionList:p["default"]},props:{isShow:{type:Boolean,required:!0},isExistsClinicalData:{type:Boolean,default:!1},isExistsNoDicomFile:{type:Boolean,default:!1},isReadingShowSubjectInfo:{type:Boolean,required:!0},isReadingTaskViewInOrder:{type:Boolean,required:!0},questionFormChangeState:{type:Boolean,default:function(){return!1}},questionFormChangeNum:{type:Number,default:function(){return 0}}},data:function(){return{cornerstoneStyle:{},layouts:[{index:0,row:1,col:1,name:"A"},{index:1,row:1,col:2,name:"A|A"},{index:2,row:1,col:2,name:"A|B"},{index:3,row:2,col:2,name:"A|A|A|A"}],rotateArr:[{label:this.$t("trials:reading:button:rotateDefault"),val:1},{label:this.$t("trials:reading:button:rotateVertical"),val:2},{label:this.$t("trials:reading:button:rotateHorizontal"),val:3},{label:this.$t("trials:reading:button:rotateTurnLeft"),val:4},{label:this.$t("trials:reading:button:rotateTurnRight"),val:5}],maxCanvas:1,layoutRow:1,layoutCol:1,currentDicomCanvasIndex:0,currentDicomCanvas:{toolState:{clipPlaying:!1}},colormapsList:[],rotateList:[],colorList:[],wwwcList:[],canvasW:null,canvasH:null,activeTool:"",CriterionType:0,measuredTools:[{toolName:"Length",text:this.$t("trials:reading:button:length"),icon:"length",isDisabled:!1,disabledReason:""},{toolName:"Bidirectional",text:this.$t("trials:reading:button:bidirectional"),icon:"bidirection",isDisabled:!1,disabledReason:""},{toolName:"RectangleRoi",text:this.$t("trials:reading:button:rectangle"),icon:"rectangle",isDisabled:!1,disabledReason:""},{toolName:"ArrowAnnotate",text:this.$t("trials:reading:button:arrowAnnotate"),icon:"arrow",isDisabled:!1,disabledReason:""}],fitType:0,isDisabledTool:!1,canvasObj:{},wwwcArr:[{label:this.$t("trials:reading:button:wwwcDefault"),val:-1,ww:null,wc:null},{label:this.$t("trials:reading:button:wwwcCustom"),val:0,ww:null,wc:null},{label:this.$t("trials:reading:button:wwwcRegion"),val:1,ww:null,wc:null},{label:"CT Brain",val:5,wc:40,ww:80},{label:"CT Lungs",val:7,wc:-400,ww:1500},{label:"CT Abdomen",val:2,wc:60,ww:400},{label:"CT Liver",val:2,wc:40,ww:400},{label:"CT Bone",val:4,wc:300,ww:1500}],activeSeries:{},seriesStack:[],trialId:"",isScrollSync:!1,imageIndexSync:{sourceCanvas:"",targetCanvas:[]},isFirstRender:!1,customWwc:{visible:!1,title:null},hotkeysDialog:{visible:!1,title:this.$t("trials:hotkeys:title:hotkey")},layout:"",isFirstNotLinked:!1,hotKeyList:[]}},computed:Object(o["a"])({},Object(b["b"])(["visitTaskList","currentReadingTaskState"])),watch:{currentReadingTaskState:{immediate:!0,handler:function(e){e&&this.currentDicomCanvasIndex&&this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)]&&(this.canvasObj[this.currentDicomCanvasIndex].readingTaskState=e,this.activeTool&&(this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].setToolEnabled(this.activeTool),this.activeTool=""))}}},mounted:function(){var e=this;this.getHotKeys();var t=1073741824;s["imageCache"].setMaximumSizeBytes(t),this.customWwc={visible:!1,title:this.$t("trials:reading:dagTitle:wwwcCustom")},this.CriterionType=parseInt(localStorage.getItem("CriterionType")),10===this.CriterionType?this.measuredTools=[{toolName:"ArrowAnnotate",text:this.$t("trials:reading:button:arrowAnnotate"),icon:"arrow",isDisabled:!1,disabledReason:""},{toolName:"RectangleRoi",text:this.$t("trials:reading:button:rectangle"),icon:"rectangle",isDisabled:!1,disabledReason:""}]:17===this.CriterionType&&(this.measuredTools=[{toolName:"Length",text:this.$t("trials:reading:button:length"),icon:"length",isDisabled:!1,disabledReason:""},{toolName:"RectangleRoi",text:this.$t("trials:reading:button:rectangle"),icon:"rectangle",isDisabled:!1,disabledReason:""},{toolName:"ArrowAnnotate",text:this.$t("trials:reading:button:arrowAnnotate"),icon:"arrow",isDisabled:!1,disabledReason:""}]),this.rotateList[0]="1",this.colorList[0]="",this.wwwcList[0]="1",this.colormapsList=s["colors"].getColormapsList(),this.currentDicomCanvas=this.$refs["dicomCanvas0"]?this.$refs["dicomCanvas0"][0]:"",this.trialId=this.$router.currentRoute.query.trialId,this.setCanvasStyle(),window.addEventListener("resize",this.setCanvasStyle),v["a"].$on("updateImage",(function(t){for(var i=0;i<e.maxCanvas;i++){var n=e.$refs["dicomCanvas".concat(e.currentDicomCanvasIndex)][0].stack;n.studyId&&e.$refs["dicomCanvas".concat(e.currentDicomCanvasIndex)][0].updateImage(t)}})),v["a"].$on("getMeasureData",(function(){for(var t=0;t<e.maxCanvas;t++){var i=e.$refs["dicomCanvas".concat(t)][0].stack;i.visitTaskId&&e.$refs["dicomCanvas".concat(t)][0].getMeasureData()}console.log("getMeasureData")})),v["a"].$on("getScreenshots",(function(t){var i=e.$refs["dicomCanvas".concat(e.currentDicomCanvasIndex)][0].getScreenshots();t(i),console.log("getScreenshots")})),v["a"].$on("imageLocation",(function(t){t&&(e.imageLocation(t),console.log("imageLocation"))})),v["a"].$on("setReadingState",(function(t){e.canvasObj[e.currentDicomCanvasIndex].readingTaskState=t,e.activeTool&&(e.$refs["dicomCanvas".concat(e.currentDicomCanvasIndex)][0].setToolEnabled(e.activeTool),e.activeTool="")})),v["a"].$on("PGWC3Active",(function(t){e.setToolActive("ArrowAnnotate",!0,null,"open")})),v["a"].$on("loadImageStacks",(function(t){e.loadImageStacks(t),console.log("loadImageStacks")})),v["a"].$on("loadLinkedImageStack",(function(t){e.loadLinkedImageStack(t),console.log("loadLinkedImageStack")}))},beforeDestroy:function(){v["a"].$off("updateImage"),v["a"].$off("getMeasureData"),v["a"].$off("imageLocation"),v["a"].$off("setReadingState"),v["a"].$off("loadImageStacks"),v["a"].$off("loadLinkedImageStack")},methods:{getHotKeys:function(){var e=this,t=this.$loading({fullscreen:!0});Object(w["c"])({imageToolType:0}).then((function(i){i.Result.map((function(t){e.hotKeyList.push({id:t.Id,altKey:t.AltKey,ctrlKey:t.CtrlKey,shiftKey:t.ShiftKey,metaKey:t.MetaKey,key:t.Keyboardkey,code:t.Code,text:t.Text,shortcutKeyEnum:t.ShortcutKeyEnum})})),e.bindHotKey(),t.close()})).catch((function(){t.close()}))},resetHotkeyList:function(e){var t=this;this.hotKeyList=[],e.map((function(e){t.hotKeyList.push({id:e.id,altKey:e.keys.controlKey.altKey,ctrlKey:e.keys.controlKey.ctrlKey,shiftKey:e.keys.controlKey.shiftKey,metaKey:e.keys.controlKey.metaKey,key:e.keys.controlKey.key,code:e.keys.controlKey.code,text:e.keys.text,shortcutKeyEnum:e.label})}))},bindHotKey:function(){var e=this,t=this.$refs["container"];t.addEventListener("keydown",(function(t){console.log(t),t.preventDefault();var i=e.hotKeyList.findIndex((function(e){return e.code===t.code&&e.ctrlKey===t.ctrlKey&&e.shiftKey===t.shiftKey&&e.altKey===t.altKey}));if(-1!==i){var n=e.hotKeyList[i].shortcutKeyEnum;if(1===n)e.selectViewCanvas(-1);else if(2===n)e.selectViewCanvas(1);else if(3===n){var a=e.$refs["dicomCanvas".concat(e.currentDicomCanvasIndex)][0].series;v["a"].$emit("selectSeries",{seriesId:a.seriesId,studyId:a.studyId,offset:-1})}else if(4===n){var r=e.$refs["dicomCanvas".concat(e.currentDicomCanvasIndex)][0].series;v["a"].$emit("selectSeries",{seriesId:r.seriesId,studyId:r.studyId,offset:1})}else if(5===n)e.$refs["dicomCanvas".concat(e.currentDicomCanvasIndex)][0].scrollPage(-1);else if(6===n)e.$refs["dicomCanvas".concat(e.currentDicomCanvasIndex)][0].scrollPage(1);else if(7===n)e.$refs["dicomCanvas".concat(e.currentDicomCanvasIndex)][0].setRotate(!1,!1,-90,4);else if(8===n)e.$refs["dicomCanvas".concat(e.currentDicomCanvasIndex)][0].setRotate(!1,!1,90,5);else if(9===n)e.$refs["dicomCanvas".concat(e.currentDicomCanvasIndex)][0].setRotate(!0,!1,0,3);else if(10===n)e.$refs["dicomCanvas".concat(e.currentDicomCanvasIndex)][0].setRotate(!1,!0,0,2);else if(11===n)e.$refs["dicomCanvas".concat(e.currentDicomCanvasIndex)][0].setZoomScale(1);else if(12===n)e.$refs["dicomCanvas".concat(e.currentDicomCanvasIndex)][0].setZoomScale(0);else if(13===n)e.$refs["dicomCanvas".concat(e.currentDicomCanvasIndex)][0].fitToImage();else if(14===n)e.$refs["dicomCanvas".concat(e.currentDicomCanvasIndex)][0].fitToWindow();else if(15===n)e.$refs["dicomCanvas".concat(e.currentDicomCanvasIndex)][0].saveImage();else if(16===n)e.$refs["dicomCanvas".concat(e.currentDicomCanvasIndex)][0].toggleInvert();else if(17===n){var o=e.$refs["dicomCanvas".concat(e.currentDicomCanvasIndex)][0].wwwcArrIdx,s=e.$refs["dicomCanvas".concat(e.currentDicomCanvasIndex)][0].wwwcArr;o+1===s.length?e.$refs["dicomCanvas".concat(e.currentDicomCanvasIndex)][0].wwwcArrIdx=0:++e.$refs["dicomCanvas".concat(e.currentDicomCanvasIndex)][0].wwwcArrIdx,e.$refs["dicomCanvas".concat(e.currentDicomCanvasIndex)][0].setWwwc(s[o].ww,s[o].wc)}else 18===n&&e.$refs["dicomCanvas".concat(e.currentDicomCanvasIndex)][0].resetViewport()}}))},resetViewport:function(){this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].resetViewport()},previewHotkeys:function(){this.hotkeysDialog.visible=!0},setCornerstoneStyle:function(e){var t=this;this.cornerstoneStyle.position?(this.cornerstoneStyle={},this.setCanvasStyle()):(this.cornerstoneStyle={position:"absolute",top:"72px",left:"205px",right:"350px",zIndex:10},this.canvasW=window.innerWidth-570+"px",this.canvasH=window.innerHeight-130+"px"),this.$nextTick((function(){for(var e=0;e<t.maxCanvas;e++)t.$refs["dicomCanvas".concat(e)][0].reloadCanvas()}))},loadImageStacks:function(e){var t=this;if(0!==e.length){var i=e.length>1?"A|B":"A";this.layout=i;var n=this.layouts.findIndex((function(e){return e.name===i})),a=this.layouts[n];this.layoutRow=a.row,this.layoutCol=a.col,this.setCanvasStyle(),this.maxCanvas=a.row*a.col,this.$nextTick((function(){var i=document.querySelectorAll(".cornerstone-element");Array.from(i).forEach((function(e){s["enable"](e),s["resize"](e)})),e.map((function(e,i){t.canvasObj[i]=e,e.isCurrentTask&&(t.currentDicomCanvasIndex=i,t.activeSeries=e,y["a"].dispatch("reading/setActiveSeries",e),y["a"].dispatch("reading/setLastCanvasTaskId",e.visitTaskId)),t.$refs["dicomCanvas".concat(i)][0].loadImageStack(e),t.activeTool&&(e.isCurrentTask&&e.readingTaskState<2?t.$nextTick((function(){t.$refs["dicomCanvas".concat(i)][0].setToolPassive(t.activeTool)})):t.$nextTick((function(){t.$refs["dicomCanvas".concat(i)][0].setToolEnabled(t.activeTool)})),t.activeTool="")}))}))}},loadImageStack:function(e){var t=this;this.canvasObj[this.currentDicomCanvasIndex]=e,this.activeTool&&(e.isCurrentTask&&e.readingTaskState<2?this.$nextTick((function(){t.$refs["dicomCanvas".concat(t.currentDicomCanvasIndex)][0].setToolPassive(t.activeTool)})):this.$nextTick((function(){t.$refs["dicomCanvas".concat(t.currentDicomCanvasIndex)][0].setToolEnabled(t.activeTool)})),this.activeTool=""),this.$nextTick((function(){t.activeSeries=e,t.$refs["dicomCanvas".concat(t.currentDicomCanvasIndex)][0].loadImageStack(e),y["a"].dispatch("reading/setActiveSeries",e),t.currentDicomCanvasIndex===t.maxCanvas-1&&y["a"].dispatch("reading/setLastCanvasTaskId",e.visitTaskId)}))},loadLinkedImageStack:function(e){var t=this;this.currentDicomCanvasIndex=e.canvasIndex;var i=e.canvasIndex;this.canvasObj[i]=e,this.activeTool&&(e.isCurrentTask&&e.readingTaskState<2?this.$nextTick((function(){t.$refs["dicomCanvas".concat(i)][0].setToolPassive(t.activeTool)})):this.$nextTick((function(){t.$refs["dicomCanvas".concat(i)][0].setToolEnabled(t.activeTool)})),this.activeTool=""),this.$nextTick((function(){t.activeSeries=e,t.$refs["dicomCanvas".concat(i)][0].loadImageStack(e),y["a"].dispatch("reading/setActiveSeries",e),t.currentDicomCanvasIndex===t.maxCanvas-1&&y["a"].dispatch("reading/setLastCanvasTaskId",e.visitTaskId)}))},getSeriesShowInCanvas:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){var i,n,a,o,s,l,c,u=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=Object.assign({},this.activeSeries),n=this.$loading({fullscreen:!0}),"A"!==t.name){e.next=12;break}if(!i){e.next=10;break}return this.seriesStack=[i],this.currentDicomCanvasIndex=0,y["a"].dispatch("reading/setLastCanvasTaskId",i.visitTaskId),e.next=9,this.setCanvas(this.seriesStack);case 9:n.close();case 10:e.next=48;break;case 12:if("A|A"!==t.name){e.next=22;break}if(!i){e.next=20;break}return this.seriesStack=[i,i],this.currentDicomCanvasIndex=1,y["a"].dispatch("reading/setLastCanvasTaskId",i.visitTaskId),e.next=19,this.setCanvas(this.seriesStack);case 19:n.close();case 20:e.next=48;break;case 22:if("A|B"!==t.name){e.next=40;break}if(!i){e.next=38;break}if(a=this.visitTaskList.findIndex((function(e){return e.VisitTaskId===i.visitTaskId})),o=a>-1?this.visitTaskList[a].VisitTaskNum:-1,!(o>0&&this.visitTaskList.length>1)){e.next=32;break}s="",10===this.CriterionType?(l=this.visitTaskList.findIndex((function(e){return e.VisitTaskNum===o-1})),s=this.visitTaskList[l].VisitTaskId):(c=this.visitTaskList.findIndex((function(e){return e.IsBaseLineTask})),s=this.visitTaskList[c].VisitTaskId),this.getFirstSeries(i,s).then(function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return console.log(i),u.seriesStack=[t,i],u.currentDicomCanvasIndex=1,y["a"].dispatch("reading/setLastCanvasTaskId",i.visitTaskId),e.next=6,u.setCanvas(u.seriesStack);case 6:n.close();case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),e.next=38;break;case 32:return this.seriesStack=[i,i],this.currentDicomCanvasIndex=1,y["a"].dispatch("reading/setLastCanvasTaskId",i.visitTaskId),e.next=37,this.setCanvas(this.seriesStack);case 37:n.close();case 38:e.next=48;break;case 40:if("A|A|A|A"!==t.name){e.next=48;break}if(!i){e.next=48;break}return this.seriesStack=[i,i,i,i],this.currentDicomCanvasIndex=3,y["a"].dispatch("reading/setLastCanvasTaskId",i.visitTaskId),e.next=47,this.setCanvas(this.seriesStack);case 47:n.close();case 48:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),setCanvas:function(e){var t=this;return new Promise((function(i){for(var n=[],a=0;a<t.maxCanvas&&a<e.length;a++)t.canvasObj[a]=e[a],n.push(t.$refs["dicomCanvas".concat(a)][0].loadImageStack(e[a]));Promise.all(n).then((function(){i()})).catch((function(){i()}))}))},imageLocation:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){var i,n,a,r,o,s,l,c,u,d,f,h=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=null,n=[],a=this.isScrollSync,this.isScrollSync&&(this.isScrollSync=!1),r=t.visitTaskId,o=this.visitTaskList.findIndex((function(e){return e.VisitTaskId===r})),-1!==o){e.next=8;break}return e.abrupt("return");case 8:if(s=null,l=null,!this.isReadingTaskViewInOrder){e.next=45;break}if(c=null,u=this.visitTaskList[o].MeasureData.findIndex((function(e){return e.OrderMarkName===t.lesionName})),u>-1&&(c=this.visitTaskList[o].MeasureData[u].FristAddTaskId),!c){e.next=33;break}if(d=this.visitTaskList.findIndex((function(e){return e.VisitTaskId===c})),!(d>-1)||this.visitTaskList[d].IsInit){e.next=32;break}if(i=this.$loading({fullscreen:!0}),this.visitTaskList[d].measureDataInit){e.next=21;break}return e.next=21,y["a"].dispatch("reading/getMeasuredData",this.visitTaskList[d].VisitTaskId);case 21:if(this.visitTaskList[d].studyListInit){e.next=24;break}return e.next=24,y["a"].dispatch("reading/getStudyInfo",{trialId:this.trialId,subjectVisitId:this.visitTaskList[d].VisitId,visitTaskId:this.visitTaskList[d].VisitTaskId,taskBlindName:this.visitTaskList[d].TaskBlindName});case 24:if(this.visitTaskList[d].readingQuestionsInit){e.next=27;break}return e.next=27,y["a"].dispatch("reading/getReadingQuestionAndAnswer",{trialId:this.trialId,visitTaskId:this.visitTaskList[d].VisitTaskId});case 27:if(this.visitTaskList[d].questionsInit){e.next=30;break}return e.next=30,y["a"].dispatch("reading/getDicomReadingQuestionAnswer",{trialId:this.trialId,visitTaskId:this.visitTaskList[d].VisitTaskId});case 30:return e.next=32,y["a"].dispatch("reading/setStatus",{visitTaskId:this.visitTaskList[d].VisitTaskId});case 32:s=this.getSeriesInfoByMark(c,t);case 33:if(l=this.getSeriesInfoByMark(r,t),s||!l){e.next=38;break}s=l,e.next=43;break;case 38:if(s||l){e.next=42;break}return e.abrupt("return");case 42:s&&!l&&(l=this.getLinkedSeries(s,r),l||(l=this.$refs["dicomCanvas".concat(this.maxCanvas-1)][0].series));case 43:e.next=48;break;case 45:l=this.getSeriesInfoByMark(r,t),l||(l=this.$refs["dicomCanvas".concat(this.maxCanvas-1)][0].series),s=l;case 48:for(f=0;f<this.maxCanvas;f++)f===this.maxCanvas-1?(n.push(this.$refs["dicomCanvas".concat(f)][0].loadImageStack(l)),this.currentDicomCanvasIndex=f,this.activeSeries=l,y["a"].dispatch("reading/setActiveSeries",l)):n.push(this.$refs["dicomCanvas".concat(f)][0].loadImageStack(s));Promise.all(n).then((function(){h.isScrollSync=a})),i&&i.close();case 51:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),selectViewCanvas:function(e){var t=this.currentDicomCanvasIndex+e;t<0||t>=this.maxCanvas||this.activateDicomCanvas(t)},getSeriesInfoByMark:function(e,t){var i=null,n=this.visitTaskList.findIndex((function(t){return t.VisitTaskId===e}));if(n>-1){var a=-1;if(a=10===this.CriterionType?this.visitTaskList[n].MeasureData.findIndex((function(e){return e.OrderMarkName===t.lesionName})):this.visitTaskList[n].MeasureData.findIndex((function(e){return e.QuestionId===t.questionId&&e.RowIndex===t.rowIndex})),a>-1&&this.visitTaskList[n].MeasureData[a].MeasureData){var r=this.visitTaskList[n].StudyList,o=this.visitTaskList[n].MeasureData[a].StudyId,s=this.visitTaskList[n].MeasureData[a].SeriesId,l=this.visitTaskList[n].MeasureData[a].InstanceId,c=r.findIndex((function(e){return e.StudyId===o}));if(c>-1){var u=r[c].SeriesList.findIndex((function(e){return e.seriesId===s}));if(u>-1){var d=r[c].SeriesList[u],f=d.instanceList.findIndex((function(e){return!!~e.indexOf(l)}));f>-1&&(d.imageIdIndex=f,i=d)}}}}return i},getLinkedSeries:function(e,t){var i=this,n=this.visitTaskList.findIndex((function(e){return e.VisitTaskId===t})),a=this.visitTaskList[n],r=null,o=a.StudyList,s=o.map((function(e){return e.SeriesList})).flat(),l=s.map((function(t,n){return{similar:i.strSimilarity2Percent(t.description,e.description),index:n}}));l=l.sort((function(e,t){return t.similar-e.similar}));var c=l[0]&&l[0].similar>.85?l[0].index:-1;if(c>-1&&(r=s[c]),!r){var u=s.findIndex((function(t){return t.sliceThickness===e.sliceThickness}));u>-1&&(r=s[u])}if(!r){var d=s.findIndex((function(t){return t.instanceCount===e.instanceCount}));d>-1&&(r=s[d])}return r&&(r.imageIdIndex=Math.floor(r.imageIds.length*(e.imageIdIndex/e.instanceCount))),r},strSimilarity2Number:function(e,t){var i,n,a,r,o,s=e.length,l=t.length,c=[];if(0===s)return l;if(0===l)return s;for(i=0;i<=s;i++)c[i]=[],c[i][0]=i;for(n=0;n<=l;n++)c[0][n]=n;for(i=1;i<=s;i++)for(a=e.charAt(i-1),n=1;n<=l;n++)r=t.charAt(n-1),o=a===r?0:1,c[i][n]=this.Minimum(c[i-1][n]+1,c[i][n-1]+1,c[i-1][n-1]+o);return c[s][l]},strSimilarity2Percent:function(e,t){var i=e.length>t.length?e.length:t.length,n=this.strSimilarity2Number(e,t);return Number((1-n/i).toFixed(4))},Minimum:function(e,t,i){return e<t?e<i?e:i:t<i?t:i},getFirstSeries:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t,i){var n,a,r,o,s,l,c,u,d,f,h=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=this.visitTaskList.findIndex((function(e){return e.VisitTaskId===i})),this.visitTaskList[n].studyListInit){e.next=6;break}return e.next=4,y["a"].dispatch("reading/getStudyInfo",{trialId:this.trialId,subjectVisitId:this.visitTaskList[n].VisitId,visitTaskId:this.visitTaskList[n].VisitTaskId,taskBlindName:this.visitTaskList[n].TaskBlindName});case 4:return e.next=6,y["a"].dispatch("reading/getMeasuredData",this.visitTaskList[n].VisitTaskId);case 6:return a=this.visitTaskList[n],r=null,o=a.StudyList,s=o.map((function(e){return e.SeriesList})).flat(),l=s.map((function(e,i){return{similar:h.strSimilarity2Percent(e.description,t.description),index:i}})),l=l.sort((function(e,t){return t.similar-e.similar})),c=l[0]&&l[0].similar>.85?l[0].index:-1,c>-1&&(r=s[c]),r||(u=s.findIndex((function(e){return e.sliceThickness===t.sliceThickness})),u>-1&&(r=s[u])),r||(d=s.findIndex((function(e){return e.instanceCount===t.instanceCount})),d>-1&&(r=s[d])),r||(f=s.findIndex((function(e){return e.isDicom&&5===parseInt(e.instanceCount)})),r=f>-1?s[f]:s[0]),r&&(r.imageIdIndex=Math.floor(r.imageIds.length*(t.imageIdIndex/t.instanceCount))),e.abrupt("return",r);case 19:case"end":return e.stop()}}),e,this)})));function t(t,i){return e.apply(this,arguments)}return t}(),getFirstSeries2:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){var i,n,a,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t||t.studyListInit){e.next=5;break}return e.next=3,y["a"].dispatch("reading/getStudyInfo",{trialId:this.trialId,subjectVisitId:t.VisitId,visitTaskId:t.VisitTaskId,taskBlindName:t.TaskBlindName});case 3:return e.next=5,y["a"].dispatch("reading/getMeasuredData",t.VisitTaskId);case 5:if(i=this.visitTaskList.findIndex((function(e){return e.VisitTaskId===t.VisitTaskId})),n=this.visitTaskList[i].StudyList,a=n.findIndex((function(e){return e.SeriesList.length>0})),!(a>-1)){e.next=13;break}return r=n[a].SeriesList.findIndex((function(e){return e.isDicom})),e.abrupt("return",r>-1?n[a].SeriesList[r]:"");case 13:return e.abrupt("return","");case 14:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),setCanvasStyle:function(){this.canvasW=(window.innerWidth-570)/this.layoutCol+"px",this.canvasH=(window.innerHeight-130)/this.layoutRow+"px"},changeLayout:function(e){var t=this;this.activeSeries=this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].stack,this.layout=e;var i=this.layouts.findIndex((function(t){return t.name===e})),n=this.layouts[i];this.layoutRow=n.row,this.layoutCol=n.col,this.setCanvasStyle(),this.maxCanvas=n.row*n.col,this.$nextTick((function(){var e=document.querySelectorAll(".cornerstone-element");Array.from(e).forEach((function(e){s["enable"](e),s["resize"](e)})),t.getSeriesShowInCanvas(n),t.cornerstoneStyle={},t.setCanvasStyle()}))},updateCanvas:function(e){for(var t=0;t<this.maxCanvas;t++){var i=this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].stack;i.studyId&&this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].removeToolState(e)}},setDicomCanvasRotate:function(e){var t=parseInt(e);1===t?this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].resetRotate():2===t?this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].setRotate(!1,!0,0,t):3===t?this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].setRotate(!0,!1,0,t):4===t?this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].setRotate(!1,!1,-90,t):5===t&&this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].setRotate(!1,!1,90,t)},activateDicomCanvas:function(e){if(console.log("激活画布"),e!==this.currentDicomCanvasIndex){this.currentDicomCanvasIndex=e;var t=this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].stack;this.activeSeries=t,this.activeTool&&(t.isCurrentTask&&t.readingTaskState<2?this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].setToolPassive(this.activeTool):this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].setToolEnabled(this.activeTool),this.activeTool=""),this.currentDicomCanvasIndex=e,this.currentDicomCanvas=this.$refs["dicomCanvas".concat(e)],this.currentDicomCanvas.tabIndex=0,this.rotateList[this.currentDicomCanvasIndex]||(this.rotateList[this.currentDicomCanvasIndex]="1"),this.colorList[this.currentDicomCanvasIndex]||(this.colorList[this.currentDicomCanvasIndex]=""),this.wwwcList[this.currentDicomCanvasIndex]||(this.wwwcList[this.currentDicomCanvasIndex]="1"),this.$refs["container"].focus(),y["a"].dispatch("reading/setActiveSeries",t)}},enter:function(e,t){var i=this.measuredTools.findIndex((function(e){return e.toolName===t}));if(-1!==i){var n=this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].isCurrentTask,a=this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].readingTaskState;if(!n||a>=2)this.measuredTools[i].isDisabled=!0,e.target.style.cursor="not-allowed",this.activeTool&&(this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].setToolEnabled(t),this.activeTool="");else{var r=this.$refs["measurementList"].isCanActiveTool(t,!0);this.measuredTools[i].disabledReason=r.reason,r.isCanActiveTool?(this.measuredTools[i].isDisabled=!1,e.target.style.cursor="pointer"):(this.activeTool&&(this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].setToolPassive(t),this.activeTool=""),this.measuredTools[i].isDisabled=!0,e.target.style.cursor="not-allowed")}}},setToolActive:function(e,t,i,n){var a=this;if(t){var r=this.measuredTools.find((function(t){return t.toolName===e}));if(!r||r.isDisabled)return;var o=this.canvasObj[this.currentDicomCanvasIndex];if(o.isCurrentTask&&t&&o.readingTaskState<2)this.activeTool&&!n?(this.measuredTools.forEach((function(e){a.$refs["dicomCanvas".concat(a.currentDicomCanvasIndex)][0].setToolPassive(e.toolName)})),this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].setToolPassive(e),this.activeTool=e,this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].setToolActive(e)):(this.measuredTools.forEach((function(e){a.$refs["dicomCanvas".concat(a.currentDicomCanvasIndex)][0].setToolPassive(e.toolName)})),this.activeTool=e,this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].setToolActive(e));else{if(!this.activeTool)return;this.measuredTools.forEach((function(e){a.$refs["dicomCanvas".concat(a.currentDicomCanvasIndex)][0].setToolEnabled(e.toolName)})),this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].setToolEnabled(e),this.activeTool=""}}else this.activeTool===e?(this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].setToolEnabled(e),this.activeTool=""):(this.activeTool=e,this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].setToolActive(e))},setToolEnabled:function(){var e=this.canvasObj[this.currentDicomCanvasIndex];if(!e.isCurrentTask)return this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].setToolEnabled(this.activeTool),void(this.activeTool="");this.activeTool&&(this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].setToolEnabled(this.activeTool),this.activeTool="")},fitToType:function(e){"fitToWindow"!==this.activeTool&&"fitToImage"!==this.activeTool&&this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].setToolPassive(this.activeTool),"fitToWindow"===e?(this.fitType=0,this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].fitToWindow()):"fitToImage"===e&&(this.fitType=1,this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].fitToImage()),this.activeTool=e},setMeasureData:function(e){this.$refs["measurementList"].setMeasuredData(e),this.activeTool=""},modifyMeasureData:function(e){this.$refs["measurementList"].modifyMeasuredData(e),this.activeTool=""},saveImage:function(){this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].saveImage()},setDicomCanvasWwwc:function(e){-1===e.val?this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].resetWwwc():0===e.val?this.setCustomWwwc():1===e.val?this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].setToolActive("WwwcRegion"):8===e.val?this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].toggleInvert():this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].setWwwc(e.ww,e.wc)},setCustomWwwc:function(){this.customWwc.visible=!0},setWwwc:function(e){this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].setWwwc(e.ww,e.wc),this.customWwc.visible=!1},toggleInvert:function(){"reversecolor"===this.activeTool?(this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].resetWwwc(),this.activeTool=""):(this.activeTool="reversecolor",this.$refs["dicomCanvas".concat(this.currentDicomCanvasIndex)][0].toggleInvert())},setImageIndexSync:function(){this.isScrollSync=!this.isScrollSync},scrollSync:function(e){for(var t=0;t<this.maxCanvas;t++)t!==e.canvasIndex&&this.$refs["dicomCanvas".concat(t)][0].scrollPage(e.direction)},showPanel:function(e){e.currentTarget.firstChild.lastChild.style.display="block"},handleMouseout:function(e){e.currentTarget.firstChild.lastChild.style.display="none"},previewCD:function(){this.$emit("previewCD")},previewNoneDicoms:function(){this.$emit("previewNoneDicoms")}}},I=_,x=(i("f8be"),i("2877")),S=Object(x["a"])(I,n,a,!1,null,"98720326",null);t["default"]=S.exports},f843:function(e,t,i){"use strict";i("1186")},f860:function(e,t,i){},f870:function(e,t,i){},f89d:function(e,t,i){},f8be:function(e,t,i){"use strict";i("1159")},f914:function(e,t,i){"use strict";i("367f")},f930:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"app-container enrollment-stats data-list"},[i("div",{staticClass:"filter-container"},[i("el-select",{staticClass:"mr",attrs:{size:"small"},on:{change:e.handleTypeChange},model:{value:e.type,callback:function(t){e.type=t},expression:"type"}},e._l(e.types,(function(e){return i("el-option",{key:e,attrs:{label:e,value:e}})})),1),e._v(" "),i("el-select",{directives:[{name:"show",rawName:"v-show",value:"Trial"==e.type,expression:"type=='Trial'"}],ref:"croSelection",staticClass:"mr",attrs:{size:"small",placeholder:"CRO",clearable:""},model:{value:e.listQuery.CroId,callback:function(t){e.$set(e.listQuery,"CroId",t)},expression:"listQuery.CroId"}},e._l(e.croList,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.CROName,value:e.Id}})})),1),e._v(" "),i("el-input",{directives:[{name:"show",rawName:"v-show",value:"Trial"==e.type,expression:"type=='Trial'"}],staticClass:"mr",staticStyle:{width:"160px"},attrs:{size:"small",placeholder:"Trial ID",clearable:""},model:{value:e.listQuery.TrialCode,callback:function(t){e.$set(e.listQuery,"TrialCode",t)},expression:"listQuery.TrialCode"}}),e._v(" "),i("el-input",{directives:[{name:"show",rawName:"v-show",value:"Trial"==e.type,expression:"type=='Trial'"}],staticClass:"mr",staticStyle:{width:"160px"},attrs:{size:"small",placeholder:"Indication",clearable:""},model:{value:e.listQuery.Indication,callback:function(t){e.$set(e.listQuery,"Indication",t)},expression:"listQuery.Indication"}}),e._v(" "),i("el-select",{directives:[{name:"show",rawName:"v-show",value:"Reviewer"==e.type,expression:"type=='Reviewer'"}],staticStyle:{width:"160px"},attrs:{placeholder:"Hospital",size:"small",clearable:""},model:{value:e.listQuery.HospitalId,callback:function(t){e.$set(e.listQuery,"HospitalId",t)},expression:"listQuery.HospitalId"}},e._l(e.hospitalList,(function(e,t){return i("el-option",{key:t,attrs:{label:e.HospitalName,value:e.Id}})})),1),e._v(" "),i("el-input",{directives:[{name:"show",rawName:"v-show",value:"Reviewer"==e.type,expression:"type=='Reviewer'"}],staticClass:"mr",staticStyle:{width:"160px"},attrs:{size:"small",placeholder:"Reviewer ID",clearable:""},model:{value:e.listQuery.Reviewer,callback:function(t){e.$set(e.listQuery,"Reviewer",t)},expression:"listQuery.Reviewer"}}),e._v(" "),i("el-date-picker",{staticStyle:{width:"160px","margin-right":"5px"},attrs:{size:"small",placeholder:"Beginning Month","value-format":"yyyy-MM",format:"yyyy-MM",type:"month","picker-options":e.beginPickerOption,clearable:!1},model:{value:e.listQuery.BeginDate,callback:function(t){e.$set(e.listQuery,"BeginDate",t)},expression:"listQuery.BeginDate"}}),e._v("To\n "),i("el-date-picker",{staticStyle:{width:"160px",margin:"0 5px"},attrs:{size:"small",placeholder:"End Month","value-format":"yyyy-MM",format:"yyyy-MM",type:"month","picker-options":e.endpickerOption,clearable:!1},model:{value:e.listQuery.EndDate,callback:function(t){e.$set(e.listQuery,"EndDate",t)},expression:"listQuery.EndDate"}}),e._v(" "),i("el-button",{attrs:{type:"text",size:"small"},on:{click:e.handleReset}},[e._v("Reset")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.handleSearch}},[e._v("Search")]),e._v(" "),i("el-button",{attrs:{type:"primary",size:"small",disabled:e.exportDisabled},on:{click:e.handleExport}},[e._v("Export Excel")])],1),e._v(" "),i("div",{ref:"listContainer",staticClass:"data-table clearfix"},["Reviewer"==e.type?i("by-reviewer",{ref:"Reviewer",attrs:{param:e.listQuery},on:{selectMore:e.selectMore}}):e._e(),e._v(" "),"Trial"==e.type?i("by-trial",{ref:"Trial",attrs:{param:e.listQuery},on:{selectMore:e.selectMore}}):e._e()],1)])},a=[],r=i("db72"),o=i("9b06"),s=i("f5e2"),l=(i("7878"),i("4360")),c=i("2f62"),u={components:{ByReviewer:o["default"],ByTrial:s["default"]},data:function(){var e=this;return{listQuery:{HospitalId:"",Reviewer:"",CroId:"",TrialCode:"",Indication:"",BeginDate:new Date((new Date).setMonth((new Date).getMonth()-5)).format("yyyy-MM"),EndDate:(new Date).format("yyyy-MM")},types:["Reviewer","Trial"],type:"Reviewer",exportDisabled:!0,beginPickerOption:{disabledDate:function(t){return e.listQuery.EndDate?t.getTime()>new Date(e.listQuery.EndDate).getTime():t.getTime()>Date.now()}},endpickerOption:{disabledDate:function(t){return e.listQuery.BeginDate?t.getTime()>Date.now()||t.getTime()<=new Date(e.listQuery.BeginDate).getTime():t.getTime()>Date.now()}}}},computed:Object(r["a"])({},Object(c["b"])(["croList","hospitalList"])),created:function(){l["a"].dispatch("global/getCROList"),l["a"].dispatch("global/getHospital")},methods:{handleSearch:function(){this.$refs[this.type].getList()},handleReset:function(){this.listQuery.HospitalId="",this.listQuery.Reviewer="",this.listQuery.CroId="",this.listQuery.TrialCode="",this.listQuery.Indication="",this.listQuery.EndDate=(new Date).format("yyyy-MM"),this.listQuery.BeginDate=new Date((new Date).setMonth((new Date).getMonth()-5)).format("yyyy-MM"),this.$refs[this.type].resetList()},handleTypeChange:function(){this.exportDisabled=!0,this.listQuery.HospitalId="",this.listQuery.Reviewer="",this.listQuery.CroId="",this.listQuery.TrialCode="",this.listQuery.Indication="",this.listQuery.EndDate=(new Date).format("yyyy-MM"),this.listQuery.BeginDate=new Date((new Date).setMonth((new Date).getMonth()-5)).format("yyyy-MM")},handleExport:function(){this.$refs[this.type].export()},selectMore:function(e){this.exportDisabled=e}}},d=u,f=(i("fa28"),i("2877")),h=Object(f["a"])(d,n,a,!1,null,"a78cfd74",null);t["default"]=h.exports},f934:function(e,t,i){var n=i("6d8b"),a=i("9850"),r=i("3842"),o=r.parsePercent,s=i("eda2"),l=n.each,c=["left","right","top","bottom","width","height"],u=[["width","left","right"],["height","top","bottom"]];function d(e,t,i,n,a){var r=0,o=0;null==n&&(n=1/0),null==a&&(a=1/0);var s=0;t.eachChild((function(l,c){var u,d,f=l.position,h=l.getBoundingRect(),p=t.childAt(c+1),m=p&&p.getBoundingRect();if("horizontal"===e){var g=h.width+(m?-m.x+h.x:0);u=r+g,u>n||l.newline?(r=0,u=g,o+=s+i,s=h.height):s=Math.max(s,h.height)}else{var v=h.height+(m?-m.y+h.y:0);d=o+v,d>a||l.newline?(r+=s+i,o=0,d=v,s=h.width):s=Math.max(s,h.width)}l.newline||(f[0]=r,f[1]=o,"horizontal"===e?r=u+i:o=d+i)}))}var f=d,h=n.curry(d,"vertical"),p=n.curry(d,"horizontal");function m(e,t,i){var n=t.width,a=t.height,r=o(e.x,n),l=o(e.y,a),c=o(e.x2,n),u=o(e.y2,a);return(isNaN(r)||isNaN(parseFloat(e.x)))&&(r=0),(isNaN(c)||isNaN(parseFloat(e.x2)))&&(c=n),(isNaN(l)||isNaN(parseFloat(e.y)))&&(l=0),(isNaN(u)||isNaN(parseFloat(e.y2)))&&(u=a),i=s.normalizeCssArray(i||0),{width:Math.max(c-r-i[1]-i[3],0),height:Math.max(u-l-i[0]-i[2],0)}}function g(e,t,i){i=s.normalizeCssArray(i||0);var n=t.width,r=t.height,l=o(e.left,n),c=o(e.top,r),u=o(e.right,n),d=o(e.bottom,r),f=o(e.width,n),h=o(e.height,r),p=i[2]+i[0],m=i[1]+i[3],g=e.aspect;switch(isNaN(f)&&(f=n-u-m-l),isNaN(h)&&(h=r-d-p-c),null!=g&&(isNaN(f)&&isNaN(h)&&(g>n/r?f=.8*n:h=.8*r),isNaN(f)&&(f=g*h),isNaN(h)&&(h=f/g)),isNaN(l)&&(l=n-u-f-m),isNaN(c)&&(c=r-d-h-p),e.left||e.right){case"center":l=n/2-f/2-i[3];break;case"right":l=n-f-m;break}switch(e.top||e.bottom){case"middle":case"center":c=r/2-h/2-i[0];break;case"bottom":c=r-h-p;break}l=l||0,c=c||0,isNaN(f)&&(f=n-m-l-(u||0)),isNaN(h)&&(h=r-p-c-(d||0));var v=new a(l+i[3],c+i[0],f,h);return v.margin=i,v}function v(e,t,i,r,o){var s=!o||!o.hv||o.hv[0],l=!o||!o.hv||o.hv[1],c=o&&o.boundingMode||"all";if(s||l){var u;if("raw"===c)u="group"===e.type?new a(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(u=e.getBoundingRect(),e.needLocalTransform()){var d=e.getLocalTransform();u=u.clone(),u.applyTransform(d)}t=g(n.defaults({width:u.width,height:u.height},t),i,r);var f=e.position,h=s?t.x-u.x:0,p=l?t.y-u.y:0;e.attr("position","raw"===c?[h,p]:[f[0]+h,f[1]+p])}}function b(e,t){return null!=e[u[t][0]]||null!=e[u[t][1]]&&null!=e[u[t][2]]}function y(e,t,i){!n.isObject(i)&&(i={});var a=i.ignoreSize;!n.isArray(a)&&(a=[a,a]);var r=s(u[0],0),o=s(u[1],1);function s(i,n){var r={},o=0,s={},u=0,f=2;if(l(i,(function(t){s[t]=e[t]})),l(i,(function(e){c(t,e)&&(r[e]=s[e]=t[e]),d(r,e)&&o++,d(s,e)&&u++})),a[n])return d(t,i[1])?s[i[2]]=null:d(t,i[2])&&(s[i[1]]=null),s;if(u!==f&&o){if(o>=f)return r;for(var h=0;h<i.length;h++){var p=i[h];if(!c(r,p)&&c(e,p)){r[p]=e[p];break}}return r}return s}function c(e,t){return e.hasOwnProperty(t)}function d(e,t){return null!=e[t]&&"auto"!==e[t]}function f(e,t,i){l(e,(function(e){t[e]=i[e]}))}f(u[0],e,r),f(u[1],e,o)}function w(e){return _({},e)}function _(e,t){return t&&e&&l(c,(function(i){t.hasOwnProperty(i)&&(e[i]=t[i])})),e}t.LOCATION_PARAMS=c,t.HV_NAMES=u,t.box=f,t.vbox=h,t.hbox=p,t.getAvailableSize=m,t.getLayoutRect=g,t.positionElement=v,t.sizeCalculable=b,t.mergeLayoutParam=y,t.getLayoutParams=w,t.copyLayoutParams=_},f939:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"reading-period"},[i("div",{staticClass:"top-wrapper"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:rpManage:table:readingName")}},[i("el-input",{staticStyle:{width:"100px"},attrs:{clearable:""},model:{value:e.searchData.ReadingPeriodName,callback:function(t){e.$set(e.searchData,"ReadingPeriodName",t)},expression:"searchData.ReadingPeriodName"}})],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")]),e._v(" "),e.isGlobalReading?i("el-button",{attrs:{type:"primary",icon:"el-icon-plus",size:"small"},on:{click:function(t){return e.handleAdd(0)}}},[e._v("\n "+e._s(e.$t("trials:rpManage:button:addImageReading"))+"\n ")]):e._e(),e._v(" "),e.isClinicalReading?i("el-button",{attrs:{type:"primary",icon:"el-icon-plus",size:"small"},on:{click:function(t){return e.handleAdd(1)}}},[e._v("\n "+e._s(e.$t("trials:rpManage:button:addOncologyReading"))+"\n ")]):e._e()],1)],1)],1),e._v(" "),i("div",{staticClass:"main-wrapper"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.list,stripe:"",height:"500"},on:{"sort-change":e.handleSortChange}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"ReadingSetType",label:e.$t("trials:rpManage:table:readingType"),sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("ReadingSetType",t.row.ReadingSetType))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ReadingPeriodName",label:e.$t("trials:rpManage:table:readingName"),sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ReadingScope",label:e.$t("trials:rpManage:table:subjectRange"),sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("ReadingScopeEnum",t.row.ReadingScope))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"SiteCodes",label:e.$t("trials:rpManage:table:designatedSite"),"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.SiteCodes.length>0?t.row.SiteCodes.join(", "):"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ExpirationDate",label:e.$t("trials:rpManage:table:expirationDate"),sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.ExpirationDate?e.moment(t.row.ExpirationDate).format("YYYY-MM-DD"):"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectVisitName",label:e.$t("trials:rpManage:table:expirationVisit")}}),e._v(" "),i("el-table-column",{attrs:{prop:"PlanCount",label:e.$t("trials:rpManage:table:linkedVisits"),sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text",disabled:0===t.row.PlanCount},on:{click:function(i){return e.handleRelationPR(t.row)}}},[e._v("\n "+e._s(t.row.PlanCount)+"\n ")])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsTakeEffect",label:e.$t("trials:rpManage:table:readingStatus"),sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.IsTakeEffect?i("el-tag",{attrs:{type:"info"}},[e._v("\n "+e._s(e.$fd("TakeEffect",t.row.IsTakeEffect))+"\n ")]):1===t.row.IsTakeEffect?i("el-tag",{attrs:{type:"primary"}},[e._v("\n "+e._s(e.$fd("TakeEffect",t.row.IsTakeEffect))+"\n ")]):2===t.row.IsTakeEffect?i("el-tag",{attrs:{type:"danger"}},[e._v("\n "+e._s(e.$fd("TakeEffect",t.row.IsTakeEffect))+"\n ")]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"EffectOfTime",label:e.$t("trials:rpManage:table:effectiveTime"),sortable:"custom","show-overflow-tooltip":"",width:"120"}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action"),width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{circle:"",title:e.$t("trials:rpManage:action:edit"),icon:"el-icon-edit-outline",disabled:1===t.row.IsTakeEffect||t.row.IsGlobal},on:{click:function(i){return e.handleEdit(t.row)}}}),e._v(" "),i("el-button",{attrs:{circle:"",title:e.$t("trials:rpManage:action:status"),icon:"el-icon-edit",disabled:t.row.IsGlobal},on:{click:function(i){return e.handleEditStatus(t.row)}}}),e._v(" "),i("el-button",{attrs:{circle:"",title:e.$t("trials:rpManage:action:delete"),icon:"el-icon-delete",disabled:1===t.row.IsTakeEffect||t.row.IsGlobal},on:{click:function(i){return e.handleDelete(t.row)}}})]}}])})],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}})],1),e._v(" "),e.addOrEditPR.visible?i("el-dialog",{attrs:{visible:e.addOrEditPR.visible,"close-on-click-modal":!1,"before-close":e.beforePRClose,title:e.addOrEditPR.title,width:"80%","append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){return e.$set(e.addOrEditPR,"visible",t)}}},[i("AddOrEditPR",{ref:"addOrEditPR",attrs:{"trial-reading-criterion-id":e.trialReadingCriterionId,data:e.currentRow},on:{close:function(t){e.addOrEditPR.visible=!1},getList:e.getList}})],1):e._e(),e._v(" "),e.editStatus.visible?i("el-dialog",{attrs:{visible:e.editStatus.visible,"close-on-click-modal":!1,title:e.editStatus.title,width:"500px","append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){return e.$set(e.editStatus,"visible",t)}}},[i("EditPRStatus",{attrs:{"trial-reading-criterion-id":e.trialReadingCriterionId,data:e.currentRow},on:{close:function(t){e.editStatus.visible=!1},getList:e.refresh}})],1):e._e(),e._v(" "),e.relationPR.visible?i("el-dialog",{attrs:{visible:e.relationPR.visible,"close-on-click-modal":!1,title:e.$t("trials:rpManage:dialogTitle:linkedRP"),width:"1000px","append-to-body":"","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){return e.$set(e.relationPR,"visible",t)}}},[i("RelationPRList",{attrs:{"trial-reading-criterion-id":e.trialReadingCriterionId,data:e.currentRow},on:{close:function(t){e.relationPR.visible=!1},getList:e.getList}})],1):e._e()],1)},a=[],r=i("db72"),o=i("3e42"),s=i("3f2a"),l=i("333d"),c=i("8288"),u=i("e5a3"),d=i("607a"),f=i("c1df"),h=i.n(f),p=function(){return{ReadingPeriodName:"",PageIndex:1,PageSize:20}},m={name:"SetReadingPeriod",components:{Pagination:l["default"],AddOrEditPR:c["default"],EditPRStatus:u["default"],RelationPRList:d["default"]},props:{trialReadingCriterionId:{type:String,default:""},isClinicalReading:{type:Boolean,required:!0},isGlobalReading:{type:Boolean,required:!0}},data:function(){return{searchData:p(),list:[],total:0,loading:!1,addOrEditPR:{title:"",visible:!1},editStatus:{title:this.$t("trials:rpManage:dialogTitle:statusChange"),visible:!1},relationPR:{visible:!1},trialId:this.$route.query.trialId,currentRow:{},moment:h.a}},mounted:function(){this.getList()},methods:{handleExport:function(){var e=this;Object(s["k"])(this.searchData).then((function(e){})).catch((function(){e.loading=!1}))},getList:function(){var e=this;this.searchData.TrialId=this.$route.query.trialId,this.loading=!0,this.searchData.TrialReadingCriterionId=this.trialReadingCriterionId,Object(o["Uc"])(this.searchData).then((function(t){e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount,e.loading=!1})).catch((function(){e.loading=!1}))},handleAdd:function(e){this.currentType=e,this.currentRow={ReadingSetType:e},this.currentRow.Operate=0,this.addOrEditPR.title=this.$t("trials:rpManage:dialogTitle:addRP"),this.addOrEditPR.visible=!0},handleEdit:function(e){this.currentRow=Object(r["a"])({},e),this.currentRow.Operate=1,this.addOrEditPR.title=this.$t("trials:rpManage:dialogTitle:editRP"),this.addOrEditPR.visible=!0},handleDelete:function(e){var t=this;this.$confirm(this.$t("trials:rpManage:message:delete"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.loading=!0,Object(o["qb"])(e.Id).then((function(e){t.loading=!1,e.IsSuccess&&(t.getList(),t.$message.success(t.$t("common:message:deletedSuccessfully")))})).catch((function(){t.loading=!1}))}))},handleRelationPR:function(e){this.currentRow=Object(r["a"])({},e),this.relationPR.visible=!0},handleEditStatus:function(e){this.currentRow=Object(r["a"])({},e),this.editStatus.visible=!0},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=p(),this.getList()},handleSortChange:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()},beforePRClose:function(e){if(!(this.$refs["addOrEditPR"].list.length>0&&0===this.$refs["addOrEditPR"].selectArr.length))return e();this.$confirm(this.$t("trials:rpManage:message:closeDialog"),{type:"warning"}).then((function(){return e()})).catch((function(){}))},refresh:function(){this.getList(),this.$emit("getList")}}},g=m,v=i("2877"),b=Object(v["a"])(g,n,a,!1,null,"0c2b1035",null);t["default"]=b.exports},f9b9:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{ref:"trials_stats",staticStyle:{width:"100%",height:"100%"}})},a=[],r=i("313e"),o=i.n(r),s=i("5fd4"),l=i("6331"),c=5,u={props:{area:{type:String,default:""}},data:function(){return{myChart:"",data:[]}},watch:{area:function(){this.myChart&&this.myChart.resize()}},mounted:function(){this.getData()},methods:{initChart:function(e,t){var i={title:{text:"Enrollments of Top 5 Reviewers",x:"4%",top:5,textStyle:{color:"#fff",fontSize:Object(l["a"])(.16)}},grid:{top:"22%",left:40,bottom:25,textStyle:{color:"#999"}},tooltip:{trigger:"axis",axisPointer:{type:"shadow",textStyle:{color:"#999"}}},xAxis:[{axisLine:{show:!0,lineStyle:{color:"rgba(255,255,255,.1)",type:"solid"}},axisTick:{show:!1},axisLabel:{interval:0,show:!0,textStyle:{color:"#fff",fontSize:Object(l["a"])(.14)}},data:e}],yAxis:[{type:"value",axisLabel:{show:!0,textStyle:{color:"#fff",fontSize:Object(l["a"])(.14)}},minInterval:1,axisTick:{show:!1},axisLine:{show:!0,lineStyle:{color:"rgba(255,255,255,.1\t)",type:"solid"}},splitLine:{lineStyle:{color:"rgba(255,255,255,.1)"}}}],series:[{type:"bar",data:t,barMaxWidth:Object(l["a"])(.4),itemStyle:{normal:{color:"#27d08a",opacity:1}},label:{normal:{show:!0,textStyle:{color:"#fff",fontSize:Object(l["a"])(.14)}}}}]};this.$refs.trials_stats&&(this.myChart=o.a.init(this.$refs.trials_stats),this.myChart.setOption(i))},getData:function(){var e=this;Object(s["g"])(c).then((function(t){if(t.IsSuccess){if(t.Result){for(var i=[],n=[],a=0;a<t.Result.length;a++)i.push(t.Result[a].ReviewerCode),n.push(t.Result[a].TrialCount);e.initChart(i,n)}}else e.$message({message:t.ErrorMessage,type:"error"})}))}}},d=u,f=i("2877"),h=Object(f["a"])(d,n,a,!1,null,null,null);t["default"]=h.exports},f9d1:function(e,t,i){},f9dc:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"rates-container"},[i("div",{staticClass:"title"},[i("p",[e._v("Rank-Based Rates")]),e._v(" "),i("el-button",{staticClass:"addBtn",attrs:{type:"primary",size:"small"},on:{click:e.handleAdd}},[e._v("New")])],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticClass:"table",attrs:{size:"small",data:e.list,"max-height":"300",stripe:""}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"RankName",label:"Rank","show-overflow-tooltip":"","min-width":"100"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Training",label:"Training ($)","min-width":"90","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.Training)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"RefresherTraining",label:"Refresher Training ($)","min-width":"130","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.RefresherTraining)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{label:"Timepoint",align:"center"}},[i("el-table-column",{attrs:{prop:"Timepoint",label:"Regular ($)","min-width":"90","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.Timepoint)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TimepointIn48H",label:"48-hour ($)","min-width":"90","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.TimepointIn48H)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"TimepointIn24H",label:"24-hour ($)","min-width":"90","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.TimepointIn24H)))])]}}])})],1),e._v(" "),i("el-table-column",{attrs:{label:"Adjudication",align:"center"}},[i("el-table-column",{attrs:{prop:"Adjudication",label:"Regular ($)","min-width":"90","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.Adjudication)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"AdjudicationIn48H",label:"48-hour ($)","min-width":"90","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.AdjudicationIn48H)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"AdjudicationIn24H",label:"24-hour ($)","min-width":"90","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.AdjudicationIn24H)))])]}}])})],1),e._v(" "),i("el-table-column",{attrs:{prop:"Global",label:"Global ($)","min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.Global)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"Downtime",label:"Downtime ($)","min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",[e._v(e._s(e._f("rounding")(t.row.Downtime)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{fixed:"right",label:"Action","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{size:"small",type:"text"},on:{click:function(i){return e.handleEdit(t.row)}}},[e._v("Edit")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"text"},on:{click:function(i){return e.handleDelete(t.row)}}},[e._v("Delete")])]}}])})],1),e._v(" "),i("pagination",{staticStyle:{"text-align":"right","margin-top":"5px"},attrs:{total:e.total,page:e.listQuery.PageIndex,limit:e.listQuery.PageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"PageIndex",t)},"update:limit":function(t){return e.$set(e.listQuery,"PageSize",t)},pagination:e.getList}}),e._v(" "),i("el-dialog",{key:e.timer,attrs:{title:e.title,visible:e.dialogVisible,width:"500px","close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("el-form",{ref:"baseRateForm",attrs:{"label-width":"190px",rules:e.rules,model:e.baseRateForm,size:"small"}},[i("el-form-item",{attrs:{label:"Rank: ",prop:"RankName"}},[i("el-input",{model:{value:e.baseRateForm.RankName,callback:function(t){e.$set(e.baseRateForm,"RankName",t)},expression:"baseRateForm.RankName"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Training ($): ",prop:"Training"}},[i("el-input-number",{staticStyle:{width:"100%"},attrs:{min:0},model:{value:e.baseRateForm.Training,callback:function(t){e.$set(e.baseRateForm,"Training",t)},expression:"baseRateForm.Training"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Refresher Training ($): ",prop:"RefresherTraining"}},[i("el-input-number",{staticStyle:{width:"100%"},attrs:{min:0},model:{value:e.baseRateForm.RefresherTraining,callback:function(t){e.$set(e.baseRateForm,"RefresherTraining",t)},expression:"baseRateForm.RefresherTraining"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Timepoint ($): ",prop:"Timepoint"}},[i("el-input-number",{staticStyle:{width:"100%"},attrs:{min:0},on:{input:e.timepointChange},model:{value:e.baseRateForm.Timepoint,callback:function(t){e.$set(e.baseRateForm,"Timepoint",t)},expression:"baseRateForm.Timepoint"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Timepoint 48H ($): ",prop:"TimepointIn48H"}},[i("el-input-number",{staticStyle:{width:"100%"},attrs:{min:0},model:{value:e.baseRateForm.TimepointIn48H,callback:function(t){e.$set(e.baseRateForm,"TimepointIn48H",t)},expression:"baseRateForm.TimepointIn48H"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Timepoint 24H ($): ",prop:"TimepointIn24H"}},[i("el-input-number",{staticStyle:{width:"100%"},attrs:{min:0},model:{value:e.baseRateForm.TimepointIn24H,callback:function(t){e.$set(e.baseRateForm,"TimepointIn24H",t)},expression:"baseRateForm.TimepointIn24H"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Adjudication ($): ",prop:"Adjudication"}},[i("el-input-number",{staticStyle:{width:"100%"},attrs:{min:0},model:{value:e.baseRateForm.Adjudication,callback:function(t){e.$set(e.baseRateForm,"Adjudication",t)},expression:"baseRateForm.Adjudication"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Adjudication 48H ($): ",prop:"AdjudicationIn48H"}},[i("el-input-number",{staticStyle:{width:"100%"},attrs:{min:0},model:{value:e.baseRateForm.AdjudicationIn48H,callback:function(t){e.$set(e.baseRateForm,"AdjudicationIn48H",t)},expression:"baseRateForm.AdjudicationIn48H"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Adjudication 24H ($): ",prop:"AdjudicationIn24H"}},[i("el-input-number",{staticStyle:{width:"100%"},attrs:{min:0},model:{value:e.baseRateForm.AdjudicationIn24H,callback:function(t){e.$set(e.baseRateForm,"AdjudicationIn24H",t)},expression:"baseRateForm.AdjudicationIn24H"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Global ($): ",prop:"Global"}},[i("el-input",{attrs:{disabled:"",type:"number"},model:{value:e.baseRateForm.Global,callback:function(t){e.$set(e.baseRateForm,"Global",t)},expression:"baseRateForm.Global"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Downtime ($): ",prop:"Downtime"}},[i("el-input-number",{staticStyle:{width:"100%"},attrs:{min:0},model:{value:e.baseRateForm.Downtime,callback:function(t){e.$set(e.baseRateForm,"Downtime",t)},expression:"baseRateForm.Downtime"}})],1)],1),e._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{size:"small"},on:{click:function(t){e.dialogVisible=!1}}},[e._v("Cancel")]),e._v(" "),i("el-button",{attrs:{type:"primary",disabled:e.btnDisabled,size:"small"},on:{click:e.handleSave}},[e._v("Ok")])],1)],1)],1)},a=[],r=(i("20d6"),i("c5f6"),i("333d")),o=i("6b95"),s=function(){return{PageSize:20,PageIndex:1,Asc:!1,SortField:""}},l={name:"RankBasedRates",components:{Pagination:r["default"]},filters:{rounding:function(e){return e?Number(e).toFixed(2):e}},data:function(){return{listQuery:s(),list:[],listLoading:!1,total:0,baseRateForm:{},dialogVisible:!1,btnDisabled:!1,title:"",timer:"",rules:{RankName:[{required:!0,message:"Please specify",trigger:"blur"},{max:50,message:"The maximum length is 50"}],Training:[{required:!0,message:"Please specify",trigger:"blur"}],Timepoint:[{required:!0,message:"Please specify",trigger:"blur"}],TimepointIn24H:[{required:!0,message:"Please specify",trigger:"blur"}],TimepointIn48H:[{required:!0,message:"Please specify",trigger:"blur"}],Adjudication:[{required:!0,message:"Please specify",trigger:"blur"}],AdjudicationIn24H:[{required:!0,message:"Please specify",trigger:"blur"}],AdjudicationIn48H:[{required:!0,message:"Please specify",trigger:"blur"}],Global:[{required:!0,message:"Please specify",trigger:"blur"}],Downtime:[{required:!0,message:"Please specify",trigger:"blur"}],RefresherTraining:[{required:!0,message:"Please specify",trigger:"blur"}]}}},mounted:function(){this.getList()},methods:{getList:function(){var e=this;this.listLoading=!0,Object(o["v"])(this.listQuery).then((function(t){e.listLoading=!1,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.listLoading=!1}))},handleAdd:function(){this.baseRateForm={},this.timer=(new Date).getTime(),this.title="Add",this.dialogVisible=!0},handleEdit:function(e){this.title="Edit",this.timer=(new Date).getTime(),this.baseRateForm=JSON.parse(JSON.stringify(e)),this.dialogVisible=!0},handleDelete:function(e){var t=this;this.$confirm("Confirm to delete?",{type:"warning",distinguishCancelAndClose:!0,confirmButtonText:"Ok",cancelButtonText:"Cancel"}).then((function(){Object(o["l"])(e.Id).then((function(i){i.IsSuccess&&(t.list.splice(t.list.findIndex((function(t){return t.Id===e.Id})),1),t.$message.success("Deleted successfully!"))})).catch((function(e){console.log(e)}))}))},handleSave:function(){var e=this;this.$refs.baseRateForm.validate((function(t){t&&(e.btnDisabled=!0,Object(o["d"])(e.baseRateForm).then((function(t){e.getList(),e.btnDisabled=!1,e.$message.success("Saved successfully!"),e.dialogVisible=!1})).catch((function(){e.btnDisabled=!1})))}))},timepointChange:function(){this.baseRateForm.Global=this.baseRateForm.Timepoint/2}}},c=l,u=(i("92fe"),i("2877")),d=Object(u["a"])(c,n,a,!1,null,"0674e50a",null);t["default"]=d.exports},f9ec:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"upload-container"},[i("el-upload",{staticClass:"upload-demo",attrs:{action:"","http-request":e.uploadFile,"before-upload":e.beforeUpload,"file-list":e.fileList,"before-remove":e.beforeRemove,"on-remove":e.handleRemoveFile,"on-preview":e.handlePreview,limit:1,"on-exceed":e.handleExceed,accept:".pdf"}},[i("el-button",{attrs:{size:"small",type:"primary",disabled:e.btnDisabled}},[e._v("Upload")]),e._v(" "),i("span",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[e._v("(must be in pdf format)")])],1)],1)},a=[],r=(i("7f7f"),i("a796")),o=i("6b95"),s="Statement of Work",l={name:"UploadFile",props:{trialId:{type:String,required:!0}},data:function(){return{fileList:[],btnDisabled:!1}},methods:{initFileList:function(e){this.fileList=e},uploadFile:function(e){var t=this,i=e.file.name;this.btnDisabled=!0,Object(r["g"])(e.file,s).then((function(e){e.IsSuccess&&(t.fileList.push({name:i,FileName:i,Path:e.Result.FilePath,FullPath:e.Result.FullFilePath,Type:s}),t.saveFile())})).catch((function(e){console.log(e),t.btnDisabled=!1}))},saveFile:function(){var e=this,t=this.fileList[0],i=t.name,n=t.Path,a={SowPath:n,SowName:i,TrialId:this.trialId};Object(o["J"])(a).then((function(t){e.btnDisabled=!1,t.IsSuccess&&(e.$message.success("Uploaded successfully"),e.$emit("getFileList",e.fileList))})).catch((function(t){console.log(t),e.btnDisabled=!1}))},beforeUpload:function(e,t){var i=this.fileValid(e.name,"pdf");if(!i)return this.$message.error("must be in pdf format"),!1;this.fileList=[]},beforeRemove:function(e,t){if(e&&"success"===e.status)return this.$confirm("Sure to remove ".concat(e.name,"?"))},handleRemoveFile:function(e,t){var i=this;if(e&&"success"===e.status){var n=this.fileList[0].Path,a={SowPath:n,TrialId:this.trialId};Object(o["m"])(a).then((function(e){e.IsSuccess&&(i.fileList=[],i.$message({message:"Deleted successfully!",type:"success"}),i.$emit("getFileList",i.fileList))}))}},handlePreview:function(e){e.FullPath&&window.open(e.FullPath,"_blank")},handleExceed:function(e,t){this.$message.warning("Upload is currently limited to 1 file")},fileValid:function(e,t){var i=e.substring(e.lastIndexOf(".")+1).toLocaleLowerCase();return t.toLocaleLowerCase().indexOf(i)>-1}}},c=l,u=(i("8b98"),i("2877")),d=Object(u["a"])(c,n,a,!1,null,null,null);t["default"]=d.exports},fa28:function(e,t,i){"use strict";i("d725")},fa44:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"study-info"},[i("div",{staticClass:"functions",staticStyle:{"text-align":"right"}},[1*e.data.SubmitState<2||2===e.data.SubmitState&&e.data.IsQCConfirmedReupload?i("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["trials:trials-panel:visit:crc-upload:upload"],expression:"['trials:trials-panel:visit:crc-upload:upload']"}],attrs:{disabled:0===e.deleteArr.length,type:"primary",size:"small",icon:"el-icon-delete"},on:{click:e.handleBatchDelete}},[e._v("\n "+e._s(e.$t("trials:uploadedDicoms:action:delete"))+"\n ")]):e._e()],1),e._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.studyLoading,expression:"studyLoading"}],staticStyle:{width:"100%"},attrs:{data:e.studyList,height:"300","row-class-name":e.tableRowClassName},on:{"selection-change":e.handleSelectionChange}},[1*e.data.SubmitState!==2||e.data.IsQCConfirmedReupload?i("el-table-column",{attrs:{type:"selection",width:"55"}}):e._e(),e._v(" "),i("el-table-column",{attrs:{prop:"StudyCode",label:e.$t("trials:uploadedDicoms:table:studyId"),"min-width":"80","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"ModalityForEdit",label:e.$t("trials:audit:table:modality")}}),e._v(" "),i("el-table-column",{attrs:{prop:"Modalities",label:"检查设备"}}),e._v(" "),i("el-table-column",{attrs:{prop:"BodyPartForEdit",label:e.$t("trials:uploadedDicoms:table:bodyPart"),"min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"SeriesCount",label:e.$t("trials:uploadedDicoms:table:seriesCount"),"min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"InstanceCount",label:e.$t("trials:uploadedDicoms:table:instanceCount"),"min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"StudyTime",label:e.$t("trials:uploadedDicoms:table:studyDate"),"min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.moment(t.row.StudyTime).format("YYYY-MM-DD"))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"UploadedTime",label:e.$t("trials:uploadedDicoms:table:uploadedTime"),"min-width":"80","show-overflow-tooltip":""}})],1),e._v(" "),e.editStudyInfoVisible?i("el-dialog",{attrs:{title:e.$t("trials:audit:action:edit"),visible:e.editStudyInfoVisible,"close-on-click-modal":!1,"append-to-body":"","custom-class":"base-dialog-wrapper",width:"600px"},on:{"update:visible":function(t){e.editStudyInfoVisible=t}}},[i("div",{staticStyle:{padding:"10px",border:"1px solid #e0e0e0","max-height":"650px","overflow-y":"auto"}},[i("el-form",{ref:"studyForm",attrs:{model:e.studyForm,"label-width":"100px"}},[i("el-form-item",{attrs:{label:e.$t("trials:audit:table:studyId")}},[i("el-input",{attrs:{disabled:""},model:{value:e.studyForm.StudyCode,callback:function(t){e.$set(e.studyForm,"StudyCode",t)},expression:"studyForm.StudyCode"}})],1),e._v(" "),e.studyForm.IsDicomData?i("el-form-item",{attrs:{label:e.$t("trials:audit:table:modality")}},[i("el-input",{attrs:{disabled:""},model:{value:e.studyForm.Modalities,callback:function(t){e.$set(e.studyForm,"Modalities",t)},expression:"studyForm.Modalities"}})],1):i("el-form-item",{attrs:{label:e.$t("trials:audit:table:modality"),prop:"Modalities",rules:[{required:!0,message:e.$t("common:ruleMessage:specify"),trigger:"blur"}]}},[i("el-radio-group",{model:{value:e.studyForm.Modalities,callback:function(t){e.$set(e.studyForm,"Modalities",t)},expression:"studyForm.Modalities"}},e._l(e.trialModalitys,(function(t){return""!==t?i("el-radio",{key:t,staticStyle:{"margin-bottom":"15px"},attrs:{label:t}}):e._e()})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:audit:table:bodyPart"),prop:"BodyPartForEdit",rules:[{required:!0,message:e.$t("common:ruleMessage:specify"),trigger:"blur"}]}},[i("el-checkbox-group",{model:{value:e.studyForm.BodyPartForEdit,callback:function(t){e.$set(e.studyForm,"BodyPartForEdit",t)},expression:"studyForm.BodyPartForEdit"}},e._l(e.trialBodyPartTypes,(function(e){return i("el-checkbox",{key:e,attrs:{label:e}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:audit:table:seriesCount")}},[i("el-input",{attrs:{disabled:""},model:{value:e.studyForm.SeriesCount,callback:function(t){e.$set(e.studyForm,"SeriesCount",t)},expression:"studyForm.SeriesCount"}})],1),e._v(" "),e.studyForm.InstanceCount?i("el-form-item",{attrs:{label:e.$t("trials:audit:table:instanceCount")}},[i("el-input",{attrs:{disabled:""},model:{value:e.studyForm.InstanceCount,callback:function(t){e.$set(e.studyForm,"InstanceCount",t)},expression:"studyForm.InstanceCount"}})],1):e._e(),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:audit:table:studyDate")}},[i("el-date-picker",{staticStyle:{width:"100%"},attrs:{disabled:"",type:"date","value-format":"yyyy-MM-dd",format:"yyyy-MM-dd"},model:{value:e.studyForm.StudyTime,callback:function(t){e.$set(e.studyForm,"StudyTime",t)},expression:"studyForm.StudyTime"}})],1)],1)],1),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){e.editStudyInfoVisible=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{loading:e.btnLoading,size:"small",type:"primary"},on:{click:e.handleUpdateStudyInfo}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)]):e._e()],1)},a=[],r=(i("ac6a"),i("28a5"),i("db72")),o=i("3e42"),s=i("c1df"),l=i.n(s),c=i("5f87"),u={name:"StudyInfo",props:{data:{type:Object,default:function(){return{}}}},data:function(){return{editStudyInfoVisible:!1,studyForm:{StudyCode:"",IsDicomData:!0,Modalities:"",BodyPartForEdit:[],SeriesCount:null,StudyTime:""},deleteArr:[],studyLoading:!1,studyList:[],trialId:this.$route.query.trialId,moment:l.a,relationInfo:null,trialBodyPartTypes:[],trialModalitys:[],btnLoading:!1}},mounted:function(){this.getStudyInfo()},methods:{handleEditStudy:function(e){this.editStudyInfoVisible=!0,this.studyForm=Object(r["a"])({},e);var t=[];-1!==this.studyForm.BodyPartForEdit.indexOf("|")?t=this.studyForm.BodyPartForEdit.split("|"):""!==this.studyForm.BodyPartForEdit&&t.push(this.studyForm.BodyPartForEdit),this.studyForm.BodyPartForEdit=t},handleUpdateStudyInfo:function(){var e=this;this.$refs["studyForm"].validate((function(t){if(t){e.btnLoading=!0,e.studyForm.BodyPart=e.studyForm.BodyPartForEdit.join("|"),e.studyForm.Modality=e.studyForm.Modalities;var i={id:e.studyForm.StudyId,subjectVisitId:e.data.Id,type:1,modality:e.studyForm.Modality,bodyPart:e.studyForm.BodyPart};Object(o["qf"])(e.data.TrialId,i).then((function(t){e.btnLoading=!1,t.IsSuccess&&(e.getStudyInfo(),e.$message.success(e.$t("common:message:savedSuccessfully")),e.editStudyInfoVisible=!1)})).catch((function(){e.btnLoading=!1}))}}))},getStudyInfo:function(){var e=this;this.studyLoading=!0,Object(o["sd"])(this.data.Id).then((function(t){e.studyList=t.Result,e.studyLoading=!1,e.relationInfo=t.OtherInfo,console.log(e.relationInfo),e.trialBodyPartTypes=e.relationInfo.BodyPartTypes?e.relationInfo.BodyPartTypes.split("|"):[],e.trialModalitys=e.relationInfo.Modalitys?e.relationInfo.Modalitys.split("|"):[],console.log(e.trialBodyPartTypes),console.log(e.trialModalitys)})).catch((function(){e.studyLoading=!1}))},handleBatchDelete:function(){var e=this;this.$confirm(this.$t("trials:uploadedDicoms:message:deleteMes"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){e.studyLoading=!0,Object(o["yb"])(e.trialId,e.data.Id,e.deleteArr).then((function(t){t.IsSuccess&&(e.getStudyInfo(),e.$emit("getList"),e.$message.success(e.$t("trials:uploadedDicoms:message:deleteSuccessfully")))})).catch((function(){e.studyLoading=!0}))})).catch((function(){}))},handlePreviewAllFiles:function(){var e=Object(c["a"])(),t=this.$router.resolve({path:"/showvisitdicoms?trialId=".concat(this.data.TrialId,"&visitInfo=").concat(this.data.VisitName,"(").concat(this.data.VisitNum,")&subjectVisitId=").concat(this.data.Id,"&TokenKey=").concat(e)});window.open(t.href,"_blank")},handleViewStudy:function(e){var t=Object(c["a"])(),i=this.$router.resolve({path:"/showdicom?studyId=".concat(e.StudyId,"&TokenKey=").concat(t,"&type=Study")});window.open(i.href,"_blank")},handleDeleteStudy:function(e){var t=this;this.$confirm(this.$t("trials:uploadedDicoms:message:deleteMes"),{type:"warning",distinguishCancelAndClose:!0}).then((function(){t.studyLoading=!0,Object(o["yb"])(t.trialId,t.data.Id,[e.StudyId]).then((function(e){e.IsSuccess&&(t.getStudyInfo(),t.$emit("getList"),t.$message.success(t.$t("trials:uploadedDicoms:message:deleteSuccessfully")))})).catch((function(){t.studyLoading=!0}))})).catch((function(){}))},handleSelectionChange:function(e){var t=this;this.deleteArr=[],e.forEach((function(e){t.deleteArr.push(e.StudyId)}))},hasDeleted:function(e){return!e.IsDeleted},tableRowClassName:function(e){var t=e.row;e.rowIndex;return t.IsDeleted?"delete-row":""}}},d=u,f=(i("489f"),i("2877")),h=Object(f["a"])(d,n,a,!1,null,null,null);t["default"]=h.exports},fa52:function(e,t,i){var n=i("3eba");i("febc"),i("dcea");var a=i("2f91"),r=i("ecf8");n.registerVisual(a),n.registerLayout(r)},fa84:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"preview-wrapper"},[-1!==e.fileType.indexOf("jpg")||-1!==e.fileType.indexOf("png")?i("iframe",{staticStyle:{width:"100%",height:"100%"},attrs:{frameborder:"0",src:e.filePath,width:"100%"}}):-1!==e.fileType.indexOf("pdf")?i("iframe",{attrs:{src:"/static/pdfjs/web/viewer.html?file="+e.filePath,width:"100%",height:"100%",frameborder:"0"}}):i("div",[e._v("\n "+e._s(e.$t("common:message:downloadFile"))+"\n "),i("el-link",{attrs:{type:"primary"},on:{click:e.downLoadFile}},[e._v(e._s(e.$t("common:button:download")))])],1)])},a=[],r={name:"PreviewFile",props:{filePath:{type:String,required:!0},fileType:{type:String,required:!0}},data:function(){return{currentUser:zzSessionStorage.getItem("userName")}},methods:{downLoadFile:function(){this.filePath&&window.open(this.filePath,"_blank")}}},o=r,s=(i("4f63"),i("2877")),l=Object(s["a"])(o,n,a,!1,null,null,null);t["default"]=l.exports},faa2:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div")},a=[],r=i("4360"),o=i("a599"),s={name:"ReadPage",data:function(){return{readingTool:null,token:null}},mounted:function(){this.$router.currentRoute.query.TokenKey&&(this.token=this.$router.currentRoute.query.TokenKey,r["a"].dispatch("user/setToken",this.$router.currentRoute.query.TokenKey),Object(o["a"])("TokenKey","")),this.readingTool=this.$router.currentRoute.query.readingTool?JSON.parse(this.$router.currentRoute.query.readingTool):1,this.readingPage()},methods:{readingPage:function(){var e=this.$router.currentRoute.query.TrialReadingCriterionId,t=this.$router.currentRoute.query.trialId,i=this.$router.currentRoute.query.subjectCode,n=this.$router.currentRoute.query.subjectId,a=this.$router.currentRoute.query.visitTaskId,r=this.$router.currentRoute.query.isReadingTaskViewInOrder,o=this.$router.currentRoute.query.criterionType,s="";s=0===this.readingTool?"/readingDicoms?TrialReadingCriterionId=".concat(e,"&trialId=").concat(t,"&subjectCode=").concat(i,"&subjectId=").concat(n,"&visitTaskId=").concat(a,"&isReadingTaskViewInOrder=").concat(r,"&criterionType=").concat(o,"&readingTool=").concat(this.readingTool,"&TokenKey=").concat(this.token):"/noneDicomReading?TrialReadingCriterionId=".concat(e,"&trialId=").concat(t,"&subjectCode=").concat(i,"&subjectId=").concat(n,"&visitTaskId=").concat(a,"&isReadingTaskViewInOrder=").concat(r,"&criterionType=").concat(o,"&readingTool=").concat(this.readingTool,"&TokenKey=").concat(this.token),this.$router.push({path:s})}}},l=s,c=i("2877"),u=Object(c["a"])(l,n,a,!1,null,null,null);t["default"]=u.exports},fab22:function(e,t,i){var n=i("6d8b"),a=n.retrieve,r=n.defaults,o=n.extend,s=n.each,l=i("eda2"),c=i("2306"),u=i("4319"),d=i("3842"),f=d.isRadianAroundZero,h=d.remRadian,p=i("a15a"),m=p.createSymbol,g=i("1687"),v=i("401b"),b=v.applyTransform,y=i("697e"),w=y.shouldShowAllLabels,_=Math.PI,I=function(e,t){this.opt=t,this.axisModel=e,r(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new c.Group;var i=new c.Group({position:t.position.slice(),rotation:t.rotation});i.updateTransform(),this._transform=i.transform,this._dumbGroup=i};I.prototype={constructor:I,hasBuilder:function(e){return!!x[e]},add:function(e){x[e].call(this)},getGroup:function(){return this.group}};var x={axisLine:function(){var e=this.opt,t=this.axisModel;if(t.get("axisLine.show")){var i=this.axisModel.axis.getExtent(),n=this._transform,a=[i[0],0],r=[i[1],0];n&&(b(a,a,n),b(r,r,n));var l=o({lineCap:"round"},t.getModel("axisLine.lineStyle").getLineStyle());this.group.add(new c.Line({anid:"line",subPixelOptimize:!0,shape:{x1:a[0],y1:a[1],x2:r[0],y2:r[1]},style:l,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1}));var u=t.get("axisLine.symbol"),d=t.get("axisLine.symbolSize"),f=t.get("axisLine.symbolOffset")||0;if("number"===typeof f&&(f=[f,f]),null!=u){"string"===typeof u&&(u=[u,u]),"string"!==typeof d&&"number"!==typeof d||(d=[d,d]);var h=d[0],p=d[1];s([{rotate:e.rotation+Math.PI/2,offset:f[0],r:0},{rotate:e.rotation-Math.PI/2,offset:f[1],r:Math.sqrt((a[0]-r[0])*(a[0]-r[0])+(a[1]-r[1])*(a[1]-r[1]))}],(function(t,i){if("none"!==u[i]&&null!=u[i]){var n=m(u[i],-h/2,-p/2,h,p,l.stroke,!0),r=t.r+t.offset,o=[a[0]+r*Math.cos(e.rotation),a[1]-r*Math.sin(e.rotation)];n.attr({rotation:t.rotate,position:o,silent:!0,z2:11}),this.group.add(n)}}),this)}}},axisTickLabel:function(){var e=this.axisModel,t=this.opt,i=N(this,e,t),n=P(this,e,t);R(e,n,i),A(this,e,t)},axisName:function(){var e=this.opt,t=this.axisModel,i=a(e.axisName,t.get("name"));if(i){var n,r,s=t.get("nameLocation"),u=e.nameDirection,d=t.getModel("nameTextStyle"),f=t.get("nameGap")||0,h=this.axisModel.axis.getExtent(),p=h[0]>h[1]?-1:1,m=["start"===s?h[0]-p*f:"end"===s?h[1]+p*f:(h[0]+h[1])/2,O(s)?e.labelOffset+u*f:0],g=t.get("nameRotate");null!=g&&(g=g*_/180),O(s)?n=T(e.rotation,null!=g?g:e.rotation,u):(n=C(e,s,g||0,h),r=e.axisNameAvailableWidth,null!=r&&(r=Math.abs(r/Math.sin(n.rotation)),!isFinite(r)&&(r=null)));var v=d.getFont(),b=t.get("nameTruncate",!0)||{},y=b.ellipsis,w=a(e.nameTruncateMaxWidth,b.maxWidth,r),I=null!=y&&null!=w?l.truncateText(i,w,v,y,{minChar:2,placeholder:b.placeholder}):i,x=t.get("tooltip",!0),R=t.mainType,D={componentType:R,name:i,$vars:["name"]};D[R+"Index"]=t.componentIndex;var L=new c.Text({anid:"name",__fullText:i,__truncatedText:I,position:m,rotation:n.rotation,silent:k(t),z2:1,tooltip:x&&x.show?o({content:i,formatter:function(){return i},formatterParams:D},x):null});c.setTextStyle(L.style,d,{text:I,textFont:v,textFill:d.getTextColor()||t.get("axisLine.lineStyle.color"),textAlign:d.get("align")||n.textAlign,textVerticalAlign:d.get("verticalAlign")||n.textVerticalAlign}),t.get("triggerEvent")&&(L.eventData=S(t),L.eventData.targetType="axisName",L.eventData.name=i),this._dumbGroup.add(L),L.updateTransform(),this.group.add(L),L.decomposeTransform()}}},S=I.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},T=I.innerTextLayout=function(e,t,i){var n,a,r=h(t-e);return f(r)?(a=i>0?"top":"bottom",n="center"):f(r-_)?(a=i>0?"bottom":"top",n="center"):(a="middle",n=r>0&&r<_?i>0?"right":"left":i>0?"left":"right"),{rotation:r,textAlign:n,textVerticalAlign:a}};function C(e,t,i,n){var a,r,o=h(i-e.rotation),s=n[0]>n[1],l="start"===t&&!s||"start"!==t&&s;return f(o-_/2)?(r=l?"bottom":"top",a="center"):f(o-1.5*_)?(r=l?"top":"bottom",a="center"):(r="middle",a=o<1.5*_&&o>_/2?l?"left":"right":l?"right":"left"),{rotation:o,textAlign:a,textVerticalAlign:r}}var k=I.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)};function R(e,t,i){if(!w(e.axis)){var n=e.get("axisLabel.showMinLabel"),a=e.get("axisLabel.showMaxLabel");t=t||[],i=i||[];var r=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],c=i[0],u=i[1],d=i[i.length-1],f=i[i.length-2];!1===n?(D(r),D(c)):L(r,o)&&(n?(D(o),D(u)):(D(r),D(c))),!1===a?(D(s),D(d)):L(l,s)&&(a?(D(l),D(f)):(D(s),D(d)))}}function D(e){e&&(e.ignore=!0)}function L(e,t,i){var n=e&&e.getBoundingRect().clone(),a=t&&t.getBoundingRect().clone();if(n&&a){var r=g.identity([]);return g.rotate(r,r,-e.rotation),n.applyTransform(g.mul([],r,e.getLocalTransform())),a.applyTransform(g.mul([],r,t.getLocalTransform())),n.intersect(a)}}function O(e){return"middle"===e||"center"===e}function $(e,t,i,n,a){for(var r=[],o=[],s=[],l=0;l<e.length;l++){var u=e[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=i,t&&(b(o,o,t),b(s,s,t));var d=new c.Line({anid:a+"_"+e[l].tickValue,subPixelOptimize:!0,shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,silent:!0});r.push(d)}return r}function N(e,t,i){var n=t.axis,a=t.getModel("axisTick");if(a.get("show")&&!n.scale.isBlank()){for(var o=a.getModel("lineStyle"),s=i.tickDirection*a.get("length"),l=n.getTicksCoords(),c=$(l,e._transform,s,r(o.getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")}),"ticks"),u=0;u<c.length;u++)e.group.add(c[u]);return c}}function A(e,t,i){var n=t.axis,a=t.getModel("minorTick");if(a.get("show")&&!n.scale.isBlank()){var o=n.getMinorTicksCoords();if(o.length)for(var s=a.getModel("lineStyle"),l=i.tickDirection*a.get("length"),c=r(s.getLineStyle(),r(t.getModel("axisTick").getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")})),u=0;u<o.length;u++)for(var d=$(o[u],e._transform,l,c,"minorticks_"+u),f=0;f<d.length;f++)e.group.add(d[f])}}function P(e,t,i){var n=t.axis,r=a(i.axisLabelShow,t.get("axisLabel.show"));if(r&&!n.scale.isBlank()){var o=t.getModel("axisLabel"),l=o.get("margin"),d=n.getViewLabels(),f=(a(i.labelRotate,o.get("rotate"))||0)*_/180,h=T(i.rotation,f,i.labelDirection),p=t.getCategories&&t.getCategories(!0),m=[],g=k(t),v=t.get("triggerEvent");return s(d,(function(a,r){var s=a.tickValue,d=a.formattedLabel,f=a.rawLabel,b=o;p&&p[s]&&p[s].textStyle&&(b=new u(p[s].textStyle,o,t.ecModel));var y=b.getTextColor()||t.get("axisLine.lineStyle.color"),w=n.dataToCoord(s),_=[w,i.labelOffset+i.labelDirection*l],I=new c.Text({anid:"label_"+s,position:_,rotation:h.rotation,silent:g,z2:10});c.setTextStyle(I.style,b,{text:d,textAlign:b.getShallow("align",!0)||h.textAlign,textVerticalAlign:b.getShallow("verticalAlign",!0)||b.getShallow("baseline",!0)||h.textVerticalAlign,textFill:"function"===typeof y?y("category"===n.type?f:"value"===n.type?s+"":s,r):y}),v&&(I.eventData=S(t),I.eventData.targetType="axisLabel",I.eventData.value=f),e._dumbGroup.add(I),I.updateTransform(),m.push(I),e.group.add(I),I.decomposeTransform()})),m}}var E=I;e.exports=E},fab6:function(e,t,i){"use strict";var n={methods:{handleSearch:function(){this.searchData.PageIndex=1,this.getList()},sortByColumn:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()}}};t["a"]=n},fb05:function(e,t,i){var n=i("6d8b"),a=n.each,r=n.isArray,o=n.isObject,s=i("26e1"),l=i("e0d3"),c=l.normalizeToArray;function u(e,t){t=t.split(",");for(var i=e,n=0;n<t.length;n++)if(i=i&&i[t[n]],null==i)break;return i}function d(e,t,i,n){t=t.split(",");for(var a,r=e,o=0;o<t.length-1;o++)a=t[o],null==r[a]&&(r[a]={}),r=r[a];(n||null==r[t[o]])&&(r[t[o]]=i)}function f(e){a(h,(function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])}))}var h=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],p=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"];function m(e,t){s(e,t),e.series=c(e.series),a(e.series,(function(e){if(o(e)){var t=e.type;if("line"===t)null!=e.clipOverflow&&(e.clip=e.clipOverflow);else if("pie"===t||"gauge"===t)null!=e.clockWise&&(e.clockwise=e.clockWise);else if("gauge"===t){var i=u(e,"pointer.color");null!=i&&d(e,"itemStyle.color",i)}f(e)}})),e.dataRange&&(e.visualMap=e.dataRange),a(p,(function(t){var i=e[t];i&&(r(i)||(i=[i]),a(i,(function(e){f(e)})))}))}e.exports=m},fb37:function(e,t,i){},fb5b:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-collapse",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"setting-config",model:{value:e.activeCollapse,callback:function(t){e.activeCollapse=t},expression:"activeCollapse"}},[i("el-collapse-item",{attrs:{title:e.$t("trials:trialConfig:title:logincCfg"),name:"1"}},[i("LogicalConfig",{ref:"logicalConfig",on:{refresh:e.getConfigInfo}})],1),e._v(" "),i("el-collapse-item",{attrs:{title:e.$t("trials:trialCfg:title:processCfg"),name:"2"}},[i("ProcessConfig",{ref:"processConfig",on:{refresh:e.getConfigInfo}})],1),e._v(" "),i("el-collapse-item",{attrs:{title:e.$t("trials:trialCfg:title:urgentCfg"),name:"3"}},[i("UrgentConfig",{ref:"urgentConfig",on:{refresh:e.getConfigInfo}})],1)],1)},a=[],r=i("db72"),o=(i("ac6a"),i("456d"),i("3e42")),s=i("c993"),l=i("65d1"),c=i("b029"),u={name:"SubjectConfig",components:{LogicalConfig:s["default"],ProcessConfig:l["default"],UrgentConfig:c["default"]},data:function(){return{activeCollapse:["1","2","3"],form:{},loading:!1}},mounted:function(){this.getConfigInfo()},methods:{getConfigInfo:function(){var e=this;this.loading=!0;var t=this.$route.query.trialId;Object(o["Ad"])(t).then((function(t){e.loading=!1,Object.keys(t.Result).length&&(e.form=Object(r["a"])({},t.Result)),e.$refs["logicalConfig"].initForm(t.Result),e.$refs["processConfig"].initForm(t.Result),e.$refs["urgentConfig"].initForm(t.Result)})).catch((function(t){e.loading=!1}))}}},d=u,f=(i("56c1"),i("2877")),h=Object(f["a"])(d,n,a,!1,null,null,null);t["default"]=h.exports},fb6c:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"search-container"},[i("el-form",{attrs:{inline:!0,size:"small"}},[i("el-form-item",{attrs:{label:e.$t("trials:emailManageCfg:title:businessScenario")}},[i("el-select",{staticStyle:{width:"150px"},model:{value:e.searchData.BusinessScenarioEnum,callback:function(t){e.$set(e.searchData,"BusinessScenarioEnum",t)},expression:"searchData.BusinessScenarioEnum"}},e._l(e.$d.Common_File_BusinessScenario,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),e.isDistinguishCriteria?i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:reviewTrack:table:criterionName")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.TrialReadingCriterionId,callback:function(t){e.$set(e.searchData,"TrialReadingCriterionId",t)},expression:"searchData.TrialReadingCriterionId"}},e._l(e.trialCriterionList,(function(e){return i("el-option",{key:"TrialReadingCriterionId"+e.TrialReadingCriterionId,attrs:{value:e.TrialReadingCriterionId,label:e.TrialReadingCriterionName}})})),1)],1):e._e(),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")])],1)],1),e._v(" "),0===e.criterionType?i("el-button",{staticStyle:{"margin-left":"auto"},attrs:{type:"primary",icon:"el-icon-plus",size:"small",disabled:e.isEdit},on:{click:e.handleAdd}},[e._v("\n "+e._s(e.$t("common:button:new"))+"\n ")]):e._e()],1),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"emailList",attrs:{data:e.list,stripe:"",height:"720px"},on:{"sort-change":e.handleSortChange}},[i("el-table-column",{attrs:{type:"index",width:"40"}}),e._v(" "),i("el-table-column",{attrs:{prop:"Code",label:e.$t("trials:emailManageCfg:title:code"),sortable:"custom","show-overflow-tooltip":"",width:"100"}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialReadingCriterionId",label:e.$t("trials:reviewTrack:table:criterionName"),"show-overflow-tooltip":"",sortable:"custom",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.TrialCriterionName)+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"BusinessScenarioEnum",label:e.$t("trials:emailManageCfg:title:businessScenario"),"show-overflow-tooltip":"",sortable:"custom",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.$fd("Common_File_BusinessScenario",t.row.BusinessScenarioEnum))+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ToUserTypeList",label:e.$t("trials:emailManageCfg:title:toUserTypeList"),"show-overflow-tooltip":"",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.ToUserTypeNameList.length>0?t.row.ToUserTypeNameList.join("、"):"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"CopyUserTypeList",label:e.$t("trials:emailManageCfg:title:copyUserTypeList"),"show-overflow-tooltip":"",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.CopyUserTypeNameList.length>0?t.row.CopyUserTypeNameList.join("、"):"")+"\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"FileName",label:e.$t("trials:emailManageCfg:title:fileName"),"show-overflow-tooltip":"",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.FilePath?i("el-button",{attrs:{type:"text"},on:{click:function(i){return e.handlePreview(t.row.FilePath)}}},[e._v("\n "+e._s(t.row.FileName)+"\n ")]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsReturnRequired",label:e.$t("trials:emailManageCfg:title:isReturnRequired"),"show-overflow-tooltip":"",sortable:"custom",width:"140"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsReturnRequired?i("el-tag",{attrs:{type:"danger"}},[e._v("\n "+e._s(e.$fd("YesOrNo",t.row.IsReturnRequired))+"\n ")]):i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsReturnRequired)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsUrgent",label:e.$t("trials:emailManageCfg:title:isUrgent"),"show-overflow-tooltip":"",sortable:"custom",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsUrgent?i("el-tag",{attrs:{type:"danger"}},[e._v("\n "+e._s(e.$fd("YesOrNo",t.row.IsUrgent))+"\n ")]):i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsUrgent)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"IsAutoSend",label:e.$t("trials:emailManageCfg:title:isAutoSend"),"show-overflow-tooltip":"",sortable:"custom",width:"140"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.IsAutoSend?i("el-tag",{attrs:{type:"danger"}},[e._v("\n "+e._s(e.$fd("YesOrNo",t.row.IsAutoSend))+"\n ")]):i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.IsAutoSend)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"UpdateTime",label:e.$t("trials:emailManageCfg:title:updateTime"),"show-overflow-tooltip":"",sortable:"custom",width:"120"}}),e._v(" "),i("el-table-column",{attrs:{prop:"CreateTime",label:e.$t("trials:emailManageCfg:title:createTime"),"show-overflow-tooltip":"",sortable:"custom",width:"120"}}),e._v(" "),i("el-table-column",{attrs:{label:e.$t("common:action:action"),fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{icon:"el-icon-edit-outline",circle:"",disabled:e.isEdit,title:e.$t("common:button:edit")},on:{click:function(i){return e.handleEdit(t.row)}}})]}}])})],1),e._v(" "),e.editDialog.visible?i("el-dialog",{attrs:{visible:e.editDialog.visible,"close-on-click-modal":!1,title:e.editDialog.title,width:"600px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){return e.$set(e.editDialog,"visible",t)}}},[i("EmailForm",{attrs:{data:e.currentRow,"criterion-type":e.criterionType},on:{closeDialog:e.closeDialog,getList:e.getList}})],1):e._e()],1)],2)},a=[],r=i("db72"),o=(i("ac6a"),i("3e42")),s=i("958c"),l=i("6071"),c=i("2a0d"),u=function(){return{BusinessScenarioEnum:null,CriterionTypeEnum:null,TrialReadingCriterionId:null}},d={name:"EmailList",components:{BaseContainer:l["default"],EmailForm:c["default"]},props:{isDistinguishCriteria:{type:Boolean,default:function(){return!1}},isEdit:{type:Boolean,default:function(){return!1}}},data:function(){return{searchData:u(),list:[],total:0,currentRow:{},editDialog:{title:"",visible:!1},loading:!1,trialId:"",trialCriterionList:[],criterionType:null}},watch:{list:function(){var e=this;this.$nextTick((function(){e.$refs.emailList.doLayout()}))}},mounted:function(){this.trialId=this.$route.query.trialId,this.getList(),this.getTrialCriterionList()},methods:{getTrialCriterionList:function(){var e=this;this.loading=!0,Object(s["U"])(this.trialId).then((function(t){e.trialCriterionList=t.Result,e.loading=!1})).catch((function(){e.loading=!1}))},getList:function(){var e=this;this.loading=!0,this.searchData.TrialId=this.trialId,this.searchData.IsDistinguishCriteria=this.isDistinguishCriteria,Object(o["Jd"])(this.searchData).then((function(t){e.loading=!1,t.Result.forEach((function(t){t.ToUserTypeNameList=e.getUserTypeName(t.ToUserTypeList),t.CopyUserTypeNameList=e.getUserTypeName(t.CopyUserTypeList)})),e.list=t.Result})).catch((function(){e.loading=!1}))},getUserTypeName:function(e){var t=this,i=e.map((function(e){return t.$fd("UserType",e)}));return i},getUserList:function(e,t){return e.filter((function(e){return e.EmailUserType===t}))},getUsersByType:function(e,t){var i=e.filter((function(e){return e.EmailUserType===t})),n=i.map((function(e){return e.RealName}));return n.join("、")},handleAdd:function(){this.editDialog.title=this.$t("common:button:new"),this.currentRow={CriterionTypeEnum:this.criterionType},this.editDialog.visible=!0},handleEdit:function(e){this.editDialog.title=this.$t("common:button:edit"),this.currentRow=Object(r["a"])({},e),this.editDialog.visible=!0},handlePreview:function(e){e&&window.open(e,"_blank")},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=u(),this.getList()},closeDialog:function(){this.editDialog.visible=!1},handleSortChange:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()}}},f=d,h=i("2877"),p=Object(h["a"])(f,n,a,!1,null,null,null);t["default"]=p.exports},fbef:function(e,t,i){"use strict";i("1d5d")},fc05:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("base-model",{attrs:{config:e.model_cfg}},[i("template",{slot:"dialog-body"},[i("el-form",{ref:"DictionaryTypeConfigForm",attrs:{model:e.form,rules:e.rules,"label-width":"150px",size:"small"}},[i("el-form-item",{attrs:{label:"Dictionary Type: ",prop:"Code"}},[i("el-input",{model:{value:e.form.Code,callback:function(t){e.$set(e.form,"Code",t)},expression:"form.Code"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Description: ",prop:"Code"}},[i("el-input",{model:{value:e.form.Description,callback:function(t){e.$set(e.form,"Description",t)},expression:"form.Description"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Is Enable: "}},[i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},model:{value:e.form.IsEnable,callback:function(t){e.$set(e.form,"IsEnable",t)},expression:"form.IsEnable"}})],1)],1)],1),e._v(" "),i("template",{slot:"dialog-footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.handleCancle}},[e._v("Cancel")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleSave}},[e._v("Save")])],1)],2)},a=[],r=i("db72"),o=(i("ac6a"),i("456d"),i("e56e")),s=i("7eeb"),l=function(){return{Id:"",Code:"",KeyName:"",Description:"",Value:"",ValueCN:"",DataTypeEnum:0,IsEnable:!0}},c={name:"AnonymizationFrom",components:{BaseModel:s["default"]},data:function(){return{btnLoading:!1,form:l(),rules:{Code:[{required:!0,message:"Please specify",trigger:"blur"}]},model_cfg:{visible:!1,showClose:!0,width:"600px",title:""}}},mounted:function(){},methods:{openDialog:function(e,t){this.model_cfg.visible=!0,this.model_cfg.title=e,Object.keys(t).length?this.form=Object(r["a"])({},t):this.form=l()},handleSave:function(){var e=this;this.$refs.DictionaryTypeConfigForm.validate((function(t){t&&(e.btnLoading=!0,Object(o["c"])(e.form).then((function(t){e.btnLoading=!1,e.$message.success("Saved successfully!"),e.model_cfg.visible=!1,e.$emit("getList")})).catch((function(){e.btnLoading=!1})))}))},handleCancle:function(){this.model_cfg.visible=!1}}},u=c,d=i("2877"),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},fc4b:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("router-view",{key:e.$route.path+(new Date).getTime()})},a=[],r={},o=r,s=i("2877"),l=Object(s["a"])(o,n,a,!1,null,"0cb6dc0e",null);t["default"]=l.exports},fc57:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("base-model",{attrs:{config:e.model_cfg}},[i("template",{slot:"dialog-body"},[i("el-form",{ref:"DictionaryTypeConfigForm",attrs:{model:e.form,rules:e.rules,"label-width":"120px",size:"small"}},[i("el-form-item",{attrs:{label:"ConfigTypeId: ",prop:"Code"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{filterable:""},model:{value:e.form.ConfigTypeId,callback:function(t){e.$set(e.form,"ConfigTypeId",t)},expression:"form.ConfigTypeId"}},e._l(e.basicDicList,(function(e,t){return i("el-option",{key:t,attrs:{label:e.Code+" ("+e.Description+")",value:e.Id}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"TypeEnum: ",prop:"DataTypeEnum"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{filterable:""},model:{value:e.form.DataTypeEnum,callback:function(t){e.$set(e.form,"DataTypeEnum",t)},expression:"form.DataTypeEnum"}},[i("el-option",{attrs:{label:"config",value:0}}),e._v(" "),i("el-option",{attrs:{label:"select",value:1}}),e._v(" "),i("el-option",{attrs:{label:"enum",value:2}}),e._v(" "),i("el-option",{attrs:{label:"bool",value:3}})],1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Code: ",prop:"Code"}},[i("el-input",{model:{value:e.form.Code,callback:function(t){e.$set(e.form,"Code",t)},expression:"form.Code"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"ShowOrder: ",prop:"Code"}},[i("el-input-number",{attrs:{min:0},model:{value:e.form.ShowOrder,callback:function(t){e.$set(e.form,"ShowOrder",t)},expression:"form.ShowOrder"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Description: ",prop:"Code"}},[i("el-input",{model:{value:e.form.Description,callback:function(t){e.$set(e.form,"Description",t)},expression:"form.Description"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Is Enable: "}},[i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},model:{value:e.form.IsEnable,callback:function(t){e.$set(e.form,"IsEnable",t)},expression:"form.IsEnable"}})],1)],1)],1),e._v(" "),i("template",{slot:"dialog-footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.handleCancle}},[e._v("Cancel")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleSave}},[e._v("Save")])],1)],2)},a=[],r=i("db72"),o=(i("ac6a"),i("456d"),i("e56e")),s=i("7eeb"),l=function(){return{Id:"",ConfigTypeId:null,Code:"",KeyName:"",Description:"",Value:"",ValueCN:"",IsEnable:!0,DataTypeEnum:null}},c={name:"AnonymizationFrom",components:{BaseModel:s["default"]},props:{basicDicList:{type:Array,default:function(){return[]}}},data:function(){return{btnLoading:!1,form:l(),rules:{Code:[{required:!0,message:"Please specify",trigger:"blur"}],DataTypeEnum:[{required:!0,message:"Please specify",trigger:"blur"}]},model_cfg:{visible:!1,showClose:!0,width:"600px",title:"",appendToBody:!0}}},mounted:function(){},methods:{openDialog:function(e,t){this.model_cfg.visible=!0,this.model_cfg.title=e,console.log(t),Object.keys(t).length?this.form=Object(r["a"])({},t):this.form=l(),console.log(this.form)},handleSave:function(){var e=this;this.$refs.DictionaryTypeConfigForm.validate((function(t){t&&(e.btnLoading=!0,Object(o["c"])(e.form).then((function(t){e.btnLoading=!1,e.$message.success("Saved successfully!"),e.model_cfg.visible=!1,e.$emit("getList")})).catch((function(){e.btnLoading=!1})))}))},handleCancle:function(){this.model_cfg.visible=!1}}},u=c,d=i("2877"),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},fc82:function(e,t,i){var n=i("4e08"),a=(n.__DEV__,i("6d8b")),r=i("1fab"),o=i("2306"),s=i("a4fe"),l=i("80f0"),c=a.curry,u=a.each,d=a.map,f=Math.min,h=Math.max,p=Math.pow,m=1e4,g=6,v=6,b="globalPan",y={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},w={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},_={brushStyle:{lineWidth:2,stroke:"rgba(0,0,0,0.3)",fill:"rgba(0,0,0,0.1)"},transformable:!0,brushMode:"single",removeOnClick:!1},I=0;function x(e){r.call(this),this._zr=e,this.group=new o.Group,this._brushType,this._brushOption,this._panels,this._track=[],this._dragging,this._covers=[],this._creatingCover,this._creatingPanel,this._enableGlobalPan,this._uid="brushController_"+I++,this._handlers={},u(ae,(function(e,t){this._handlers[t]=a.bind(e,this)}),this)}function S(e,t){var i=e._zr;e._enableGlobalPan||s.take(i,b,e._uid),C(i,e._handlers),e._brushType=t.brushType,e._brushOption=a.merge(a.clone(_),t,!0)}function T(e){var t=e._zr;s.release(t,b,e._uid),k(t,e._handlers),e._brushType=e._brushOption=null}function C(e,t){u(t,(function(t,i){e.on(i,t)}))}function k(e,t){u(t,(function(t,i){e.off(i,t)}))}function R(e,t){var i=se[t.brushType].createCover(e,t);return i.__brushOption=t,O(i,t),e.group.add(i),i}function D(e,t){var i=N(t);return i.endCreating&&(i.endCreating(e,t),O(t,t.__brushOption)),t}function L(e,t){var i=t.__brushOption;N(t).updateCoverShape(e,t,i.range,i)}function O(e,t){var i=t.z;null==i&&(i=m),e.traverse((function(e){e.z=i,e.z2=i}))}function $(e,t){N(t).updateCommon(e,t),L(e,t)}function N(e){return se[e.__brushOption.brushType]}function A(e,t,i){var n,a=e._panels;if(!a)return!0;var r=e._transform;return u(a,(function(e){e.isTargetByCursor(t,i,r)&&(n=e)})),n}function P(e,t){var i=e._panels;if(!i)return!0;var n=t.__brushOption.panelId;return null==n||i[n]}function E(e){var t=e._covers,i=t.length;return u(t,(function(t){e.group.remove(t)}),e),t.length=0,!!i}function M(e,t){var i=d(e._covers,(function(e){var t=e.__brushOption,i=a.clone(t.range);return{brushType:t.brushType,panelId:t.panelId,range:i}}));e.trigger("brush",i,{isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function F(e){var t=e._track;if(!t.length)return!1;var i=t[t.length-1],n=t[0],a=i[0]-n[0],r=i[1]-n[1],o=p(a*a+r*r,.5);return o>g}function j(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function V(e,t,i,n){var a=new o.Group;return a.add(new o.Rect({name:"main",style:U(i),silent:!0,draggable:!0,cursor:"move",drift:c(e,t,a,"nswe"),ondragend:c(M,t,{isEnd:!0})})),u(n,(function(i){a.add(new o.Rect({name:i,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:c(e,t,a,i),ondragend:c(M,t,{isEnd:!0})}))})),a}function q(e,t,i,n){var a=n.brushStyle.lineWidth||0,r=h(a,v),o=i[0][0],s=i[1][0],l=o-a/2,c=s-a/2,u=i[0][1],d=i[1][1],f=u-r+a/2,p=d-r+a/2,m=u-o,g=d-s,b=m+a,y=g+a;B(e,t,"main",o,s,m,g),n.transformable&&(B(e,t,"w",l,c,r,y),B(e,t,"e",f,c,r,y),B(e,t,"n",l,c,b,r),B(e,t,"s",l,p,b,r),B(e,t,"nw",l,c,r,r),B(e,t,"ne",f,c,r,r),B(e,t,"sw",l,p,r,r),B(e,t,"se",f,p,r,r))}function z(e,t){var i=t.__brushOption,n=i.transformable,a=t.childAt(0);a.useStyle(U(i)),a.attr({silent:!n,cursor:n?"move":"default"}),u(["w","e","n","s","se","sw","ne","nw"],(function(i){var a=t.childOfName(i),r=G(e,i);a&&a.attr({silent:!n,invisible:!n,cursor:n?w[r]+"-resize":null})}))}function B(e,t,i,n,a,r,o){var s=t.childOfName(i);s&&s.setShape(X(Z(e,t,[[n,a],[n+r,a+o]])))}function U(e){return a.defaults({strokeNoScale:!0},e.brushStyle)}function Q(e,t,i,n){var a=[f(e,i),f(t,n)],r=[h(e,i),h(t,n)];return[[a[0],r[0]],[a[1],r[1]]]}function H(e){return o.getTransform(e.group)}function G(e,t){if(t.length>1){t=t.split("");var i=[G(e,t[0]),G(e,t[1])];return("e"===i[0]||"w"===i[0])&&i.reverse(),i.join("")}var n={w:"left",e:"right",n:"top",s:"bottom"},a={left:"w",right:"e",top:"n",bottom:"s"};i=o.transformDirection(n[t],H(e));return a[i]}function W(e,t,i,n,a,r,o,s){var l=n.__brushOption,c=e(l.range),d=K(i,r,o);u(a.split(""),(function(e){var t=y[e];c[t[0]][t[1]]+=d[t[0]]})),l.range=t(Q(c[0][0],c[1][0],c[0][1],c[1][1])),$(i,n),M(i,{isEnd:!1})}function Y(e,t,i,n,a){var r=t.__brushOption.range,o=K(e,i,n);u(r,(function(e){e[0]+=o[0],e[1]+=o[1]})),$(e,t),M(e,{isEnd:!1})}function K(e,t,i){var n=e.group,a=n.transformCoordToLocal(t,i),r=n.transformCoordToLocal(0,0);return[a[0]-r[0],a[1]-r[1]]}function Z(e,t,i){var n=P(e,t);return n&&!0!==n?n.clipPath(i,e._transform):a.clone(i)}function X(e){var t=f(e[0][0],e[1][0]),i=f(e[0][1],e[1][1]),n=h(e[0][0],e[1][0]),a=h(e[0][1],e[1][1]);return{x:t,y:i,width:n-t,height:a-i}}function J(e,t,i){if(e._brushType&&!oe(e,t)){var n=e._zr,a=e._covers,r=A(e,t,i);if(!e._dragging)for(var o=0;o<a.length;o++){var s=a[o].__brushOption;if(r&&(!0===r||s.panelId===r.panelId)&&se[s.brushType].contain(a[o],i[0],i[1]))return}r&&n.setCursorStyle("crosshair")}}function ee(e){var t=e.event;t.preventDefault&&t.preventDefault()}function te(e,t,i){return e.childOfName("main").contain(t,i)}function ie(e,t,i,n){var r,o=e._creatingCover,s=e._creatingPanel,l=e._brushOption;if(e._track.push(i.slice()),F(e)||o){if(s&&!o){"single"===l.brushMode&&E(e);var c=a.clone(l);c.brushType=ne(c.brushType,s),c.panelId=!0===s?null:s.panelId,o=e._creatingCover=R(e,c),e._covers.push(o)}if(o){var u=se[ne(e._brushType,s)],d=o.__brushOption;d.range=u.getCreatingRange(Z(e,o,e._track)),n&&(D(e,o),u.updateCommon(e,o)),L(e,o),r={isEnd:n}}}else n&&"single"===l.brushMode&&l.removeOnClick&&A(e,t,i)&&E(e)&&(r={isEnd:n,removeOnClick:!0});return r}function ne(e,t){return"auto"===e?t.defaultBrushType:e}x.prototype={constructor:x,enableBrush:function(e){return this._brushType&&T(this),e.brushType&&S(this,e),this},setPanels:function(e){if(e&&e.length){var t=this._panels={};a.each(e,(function(e){t[e.panelId]=a.clone(e)}))}else this._panels=null;return this},mount:function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var t=this.group;return this._zr.add(t),t.attr({position:e.position||[0,0],rotation:e.rotation||0,scale:e.scale||[1,1]}),this._transform=t.getLocalTransform(),this},eachCover:function(e,t){u(this._covers,e,t)},updateCovers:function(e){e=a.map(e,(function(e){return a.merge(a.clone(_),e,!0)}));var t="\0-brush-index-",i=this._covers,n=this._covers=[],r=this,o=this._creatingCover;return new l(i,e,c,s).add(u).update(u).remove(d).execute(),this;function s(e,i){return(null!=e.id?e.id:t+i)+"-"+e.brushType}function c(e,t){return s(e.__brushOption,t)}function u(t,a){var s=e[t];if(null!=a&&i[a]===o)n[t]=i[a];else{var l=n[t]=null!=a?(i[a].__brushOption=s,i[a]):D(r,R(r,s));$(r,l)}}function d(e){i[e]!==o&&r.group.remove(i[e])}},unmount:function(){return this.enableBrush(!1),E(this),this._zr.remove(this.group),this},dispose:function(){this.unmount(),this.off()}},a.mixin(x,r);var ae={mousedown:function(e){if(this._dragging)re(this,e);else if(!e.target||!e.target.draggable){ee(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null;var i=this._creatingPanel=A(this,e,t);i&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,i=e.offsetY,n=this.group.transformCoordToLocal(t,i);if(J(this,e,n),this._dragging){ee(e);var a=ie(this,e,n,!1);a&&M(this,a)}},mouseup:function(e){re(this,e)}};function re(e,t){if(e._dragging){ee(t);var i=t.offsetX,n=t.offsetY,a=e.group.transformCoordToLocal(i,n),r=ie(e,t,a,!0);e._dragging=!1,e._track=[],e._creatingCover=null,r&&M(e,r)}}function oe(e,t,i){var n=e._zr;return t<0||t>n.getWidth()||i<0||i>n.getHeight()}var se={lineX:le(0),lineY:le(1),rect:{createCover:function(e,t){return V(c(W,(function(e){return e}),(function(e){return e})),e,t,["w","e","n","s","se","sw","ne","nw"])},getCreatingRange:function(e){var t=j(e);return Q(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,i,n){q(e,t,i,n)},updateCommon:z,contain:te},polygon:{createCover:function(e,t){var i=new o.Group;return i.add(new o.Polyline({name:"main",style:U(t),silent:!0})),i},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new o.Polygon({name:"main",draggable:!0,drift:c(Y,e,t),ondragend:c(M,e,{isEnd:!0})}))},updateCoverShape:function(e,t,i,n){t.childAt(0).setShape({points:Z(e,t,i)})},updateCommon:z,contain:te}};function le(e){return{createCover:function(t,i){return V(c(W,(function(t){var i=[t,[0,100]];return e&&i.reverse(),i}),(function(t){return t[e]})),t,i,[["w","e"],["n","s"]][e])},getCreatingRange:function(t){var i=j(t),n=f(i[0][e],i[1][e]),a=h(i[0][e],i[1][e]);return[n,a]},updateCoverShape:function(t,i,n,a){var r,o=P(t,i);if(!0!==o&&o.getLinearBrushOtherExtent)r=o.getLinearBrushOtherExtent(e,t._transform);else{var s=t._zr;r=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[n,r];e&&l.reverse(),q(t,i,l,a)},updateCommon:z,contain:te}}var ce=x;e.exports=ce},fc88:function(e,t,i){"use strict";i("5d20")},fc99:function(e,t,i){},fcaa:function(e,t,i){},fccc:function(e,t,i){},fcf0:function(e,t,i){"use strict";i("5e9b")},fd1a:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.questions.length>0?i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"globalReviewForm",attrs:{model:e.form,size:"small"}},[i("div",{staticClass:"base-dialog-body"},e._l(e.questions,(function(t){return i("el-form-item",{key:""+t.QuestionId+t.QuestionName,attrs:{label:t.QuestionName}},["select"===t.Type?i("el-select",{model:{value:e.form[t.QuestionId?t.QuestionId:"Reason"],callback:function(i){e.$set(e.form,t.QuestionId?t.QuestionId:"Reason",i)},expression:"form[!qs.QuestionId?'Reason':qs.QuestionId]"}},e._l(t.TypeValue.split("|"),(function(n){return i("el-option",{key:n,attrs:{label:n,value:n,disabled:e.getBeforeAnswer(t.QuestionName)===n}})})),1):e._e(),e._v(" "),"radio"===t.Type?i("el-radio-group",{model:{value:e.form[t.QuestionId?t.QuestionId:"Reason"],callback:function(i){e.$set(e.form,t.QuestionId?t.QuestionId:"Reason",i)},expression:"form[!qs.QuestionId?'Reason':qs.QuestionId]"}},e._l(t.TypeValue.split("|"),(function(n){return i("el-radio",{key:n,attrs:{label:n,disabled:e.getBeforeAnswer(t.QuestionName)===n}},[e._v("\n "+e._s(n)+"\n ")])})),1):e._e(),e._v(" "),"input"===t.Type?i("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4}},model:{value:e.form[t.QuestionId?t.QuestionId:"Reason"],callback:function(i){e.$set(e.form,t.QuestionId?t.QuestionId:"Reason",i)},expression:"form[!qs.QuestionId?'Reason':qs.QuestionId]"}}):e._e()],1)})),1),e._v(" "),i("div",{staticClass:"base-dialog-footer",staticStyle:{"text-align":"right","margin-top":"10px"}},[i("el-form-item",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleClose}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.handleSave}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)],1)]):e._e()},a=[],r=(i("20d6"),i("3e42")),o={name:"EditGlobalForm",props:{globalTaskId:{type:String,required:!0},visitTaskId:{type:String,required:!0},questionList:{type:Array,default:function(){return[]}},subjectId:{type:String,required:!0},trialId:{type:String,required:!0},beforeQuestionList:{type:Array,default:function(){return[]}}},data:function(){return{questions:[],form:{},loading:!1}},mounted:function(){var e=this;this.questionList.map((function(t){t.QuestionId?e.$set(e.form,t.QuestionId,t.Answer):e.$set(e.form,"Reason",t.Answer)})),this.questions=this.questionList},methods:{handleSave:function(){var e=this;this.loading=!0;var t=[];for(var i in this.form)t.push({questionId:"Reason"===i?null:i,visitTaskId:this.visitTaskId,answer:this.form[i]});var n={globalTaskId:this.globalTaskId,subjectId:this.subjectId,trialId:this.trialId,questionList:t};Object(r["xe"])(n).then((function(t){e.loading=!1,e.$message.success(e.$t("common:message:savedSuccessfully")),e.$emit("getList"),e.$emit("close")})).catch((function(){e.loading=!1}))},handleClose:function(){this.$emit("close")},getBeforeAnswer:function(e){var t=this.beforeQuestionList.findIndex((function(t){return t.QuestionName===e}));return t>-1?this.beforeQuestionList[t].Answer:""}}},s=o,l=i("2877"),c=Object(l["a"])(s,n,a,!1,null,null,null);t["default"]=c.exports},fd27:function(e,t,i){var n=i("9273"),a=i("a991"),r=function(e){this.name=e||"",this.cx=0,this.cy=0,this._radiusAxis=new n,this._angleAxis=new a,this._radiusAxis.polar=this._angleAxis.polar=this};r.prototype={type:"polar",axisPointerEnabled:!0,constructor:r,dimensions:["radius","angle"],model:null,containPoint:function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},containData:function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},getAxis:function(e){return this["_"+e+"Axis"]},getAxes:function(){return[this._radiusAxis,this._angleAxis]},getAxesByScale:function(e){var t=[],i=this._angleAxis,n=this._radiusAxis;return i.scale.type===e&&t.push(i),n.scale.type===e&&t.push(n),t},getAngleAxis:function(){return this._angleAxis},getRadiusAxis:function(){return this._radiusAxis},getOtherAxis:function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},getTooltipAxes:function(e){var t=null!=e&&"auto"!==e?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},dataToPoint:function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},pointToData:function(e,t){var i=this.pointToCoord(e);return[this._radiusAxis.radiusToData(i[0],t),this._angleAxis.angleToData(i[1],t)]},pointToCoord:function(e){var t=e[0]-this.cx,i=e[1]-this.cy,n=this.getAngleAxis(),a=n.getExtent(),r=Math.min(a[0],a[1]),o=Math.max(a[0],a[1]);n.inverse?r=o-360:o=r+360;var s=Math.sqrt(t*t+i*i);t/=s,i/=s;var l=Math.atan2(-i,t)/Math.PI*180,c=l<r?1:-1;while(l<r||l>o)l+=360*c;return[s,l]},coordToPoint:function(e){var t=e[0],i=e[1]/180*Math.PI,n=Math.cos(i)*t+this.cx,a=-Math.sin(i)*t+this.cy;return[n,a]},getArea:function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),i=t.getExtent().slice();i[0]>i[1]&&i.reverse();var n=e.getExtent(),a=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:i[0],r:i[1],startAngle:-n[0]*a,endAngle:-n[1]*a,clockwise:e.inverse,contain:function(e,t){var i=e-this.cx,n=t-this.cy,a=i*i+n*n,r=this.r,o=this.r0;return a<=r*r&&a>=o*o}}}};var o=r;e.exports=o},fd63:function(e,t,i){var n=i("42e5"),a=i("6d8b"),r=a.isFunction,o={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var i=e.getData(),a=(e.visualColorAccessPath||"itemStyle.color").split("."),o=e.get(a),s=!r(o)||o instanceof n?null:o;o&&!s||(o=e.getColorFromPalette(e.name,null,t.getSeriesCount())),i.setVisual("color",o);var l=(e.visualBorderColorAccessPath||"itemStyle.borderColor").split("."),c=e.get(l);if(i.setVisual("borderColor",c),!t.isSeriesFiltered(e)){s&&i.each((function(t){i.setItemVisual(t,"color",s(e.getDataParams(t)))}));var u=function(e,t){var i=e.getItemModel(t),n=i.get(a,!0),r=i.get(l,!0);null!=n&&e.setItemVisual(t,"color",n),null!=r&&e.setItemVisual(t,"borderColor",r)};return{dataEach:i.hasItemOption?u:null}}}};e.exports=o},fdde:function(e,t){var i={average:function(e){for(var t=0,i=0,n=0;n<e.length;n++)isNaN(e[n])||(t+=e[n],i++);return 0===i?NaN:t/i},sum:function(e){for(var t=0,i=0;i<e.length;i++)t+=e[i]||0;return t},max:function(e){for(var t=-1/0,i=0;i<e.length;i++)e[i]>t&&(t=e[i]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,i=0;i<e.length;i++)e[i]<t&&(t=e[i]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},n=function(e,t){return Math.round(e.length/2)};function a(e){return{seriesType:e,modifyOutputEnd:!0,reset:function(e,t,a){var r=e.getData(),o=e.get("sampling"),s=e.coordinateSystem;if("cartesian2d"===s.type&&o){var l,c=s.getBaseAxis(),u=s.getOtherAxis(c),d=c.getExtent(),f=Math.abs(d[1]-d[0]),h=Math.round(r.count()/f);if(h>1)"string"===typeof o?l=i[o]:"function"===typeof o&&(l=o),l&&e.setData(r.downSample(r.mapDimension(u.dim),1/h,l,n))}}}}e.exports=a},fe09:function(e,t,i){"use strict";i.d(t,"g",(function(){return n})),i.d(t,"h",(function(){return a})),i.d(t,"a",(function(){return r})),i.d(t,"b",(function(){return o})),i.d(t,"e",(function(){return s})),i.d(t,"f",(function(){return l})),i.d(t,"c",(function(){return c})),i.d(t,"d",(function(){return u}));var n=[{type:"Custom",slot:"croSlot",label:"CRO:",prop:"CROId"},{type:"Input",label:"Trial ID:",prop:"TrialCode",width:"120px",placeholder:""},{type:"Custom",slot:"hospitalSlot",label:"Hospital:",prop:"HospitalId"},{type:"Input",label:"Reviewer ID:",prop:"Reviewer",width:"120px",placeholder:""},{type:"Custom",slot:"beginDateSlot",label:"Begin Date:",prop:"BeginDate"},{type:"Custom",slot:"endDateSlot",label:"End Date:",prop:"EndDate"}],a=[{label:"Reset",type:"primary",emitKey:"reset"},{label:"Search",type:"primary",emitKey:"search"},{label:"Export",type:"primary",emitKey:"export",slot:"exportSlot"}],r=[{type:"Custom",slot:"hospitalSlot",label:"Hospital:",prop:"HospitalId"},{type:"Input",label:"Reviewer ID:",prop:"Reviewer",width:"120px",placeholder:""},{type:"Custom",slot:"beginDateSlot",label:"Begin Date:",prop:"BeginDate"},{type:"Custom",slot:"endDateSlot",label:"End Date:",prop:"EndDate"}],o=[{label:"Reset",type:"primary",emitKey:"reset"},{label:"Search",type:"primary",emitKey:"search"},{label:"Export",type:"primary",emitKey:"export",slot:"exportSlot"}],s=[{type:"Custom",slot:"croSlot",label:"CRO:",prop:"CroId"},{type:"Input",label:"Trial ID:",prop:"TrialCode",width:"120px",placeholder:""},{type:"Input",label:"Indication:",prop:"Indication",width:"120px",placeholder:""},{type:"Custom",slot:"beginDateSlot",label:"Begin Date:",prop:"BeginDate"},{type:"Custom",slot:"endDateSlot",label:"End Date:",prop:"EndDate"}],l=[{label:"Reset",type:"primary",emitKey:"reset"},{label:"Search",type:"primary",emitKey:"search"},{label:"Export",type:"primary",emitKey:"export",slot:"exportSlot"}],c=[{type:"Input",label:"User Name:",prop:"UserInfo",width:"120px",placeholder:""},{type:"Input",label:"Organization:",prop:"OrganizationName",width:"120px",placeholder:""}],u=[{label:"Reset",type:"primary",emitKey:"reset"},{label:"Search",type:"primary",emitKey:"search"}]},fe0e:function(e,t,i){},fe21:function(e,t,i){var n=i("e86a"),a=i("2306"),r=["textStyle","color"],o={getTextColor:function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(r):null)},getFont:function(){return a.getFont({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},getTextRect:function(e){return n.getBoundingRect(e,this.getFont(),this.getShallow("align"),this.getShallow("verticalAlign")||this.getShallow("baseline"),this.getShallow("padding"),this.getShallow("lineHeight"),this.getShallow("rich"),this.getShallow("truncateText"))}};e.exports=o},febc:function(e,t,i){var n=i("6d8b"),a=i("4f85"),r=i("e468"),o=r.seriesModelMixin,s=a.extend({type:"series.boxplot",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:2,shadowOffsetY:2,shadowColor:"rgba(0,0,0,0.4)"}},animationEasing:"elasticOut",animationDuration:800}});n.mixin(s,o,!0);var l=s;e.exports=l},fec6:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"conclusions"},[i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"conclusionsForm",staticStyle:{width:"500px"},attrs:{model:e.form,"label-width":"100px"}},[i("el-form-item",{staticStyle:{"text-align":"right",width:"500px"}}),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:medicalFeedback:button:isQuestions"),prop:"IsHaveQuestion",rules:[{required:!0,message:e.$t("common:ruleMessage:select")}]}},[i("el-radio-group",{attrs:{disabled:e.isSendMessage||2===e.auditState||14!==e.userTypeEnumInt},model:{value:e.form.IsHaveQuestion,callback:function(t){e.$set(e.form,"IsHaveQuestion",t)},expression:"form.IsHaveQuestion"}},e._l(e.$d.YesOrNo,(function(t){return i("el-radio",{key:"IsHaveQuestion"+t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1),e._v(" "),!0===e.form.IsHaveQuestion?i("el-form-item",{attrs:{label:e.$t("trials:medicalFeedback:title:qcQuestions"),prop:"Questioning",maxlength:"500",autosize:"","show-word-limit":"",rules:[{required:!0,message:e.$t("common:ruleMessage:specify")}]}},[i("el-input",{attrs:{type:"textarea",disabled:e.isSendMessage||2===e.auditState||14!==e.userTypeEnumInt},model:{value:e.form.Questioning,callback:function(t){e.$set(e.form,"Questioning",t)},expression:"form.Questioning"}})],1):e._e(),e._v(" "),!0===e.form.IsHaveQuestion?i("el-form-item",{attrs:{label:e.$t("trials:medicalFeedback:title:auditAdviceEnum"),prop:"AuditAdviceEnum",rules:[{required:!0,message:e.$t("common:ruleMessage:select")}]}},[i("el-radio-group",{attrs:{disabled:e.isSendMessage||2===e.auditState||14!==e.userTypeEnumInt},model:{value:e.form.AuditAdviceEnum,callback:function(t){e.$set(e.form,"AuditAdviceEnum",t)},expression:"form.AuditAdviceEnum"}},e._l(e.$d.AuditAdvice,(function(t){return i("el-radio",{key:t.id,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])})),1)],1):e._e(),e._v(" "),!0===e.form.IsHaveQuestion?i("el-form-item",{attrs:{label:e.$t("trials:medicalFeedback:form:screenShot")}},[i("el-upload",{class:{disabled:e.isSendMessage},attrs:{action:e.accept,"on-preview":e.handlePictureCardPreview,"before-upload":e.handleBeforeUpload,"http-request":e.uploadScreenshot,"list-type":"picture-card","on-remove":e.handleRemove,"file-list":e.fileList,disabled:e.isSendMessage||2===e.auditState||14!==e.userTypeEnumInt},scopedSlots:e._u([{key:"file",fn:function(t){var n=t.file;return i("div",{},[i("img",{staticClass:"el-upload-list__item-thumbnail",attrs:{src:n.url,alt:""}}),e._v(" "),i("span",{staticClass:"el-upload-list__item-actions"},[i("span",{staticClass:"el-upload-list__item-preview",on:{click:function(t){return e.handlePictureCardPreview(n)}}},[i("i",{staticClass:"el-icon-zoom-in"})]),e._v(" "),e.isSendMessage||2===e.auditState?e._e():i("span",{staticClass:"el-upload-list__item-delete",on:{click:function(t){return e.handleRemove(n)}}},[i("i",{staticClass:"el-icon-delete"})])])])}}],null,!1,3140208198)},[i("i",{staticClass:"el-icon-plus",attrs:{slot:"default"},slot:"default"})]),e._v(" "),i("el-dialog",{attrs:{"append-to-body":"",visible:e.imgVisible,width:"600px"},on:{"update:visible":function(t){e.imgVisible=t}}},[i("el-image",{attrs:{src:e.imageUrl,width:"100%"}},[i("div",{staticClass:"image-slot",attrs:{slot:"placeholder"},slot:"placeholder"},[e._v("\n "+e._s(e.$t("trials:medicalFeedback:message:loading"))),i("span",{staticClass:"dot"},[e._v("...")])])])],1)],1):e._e()],1),e._v(" "),e.chatVisible?i("el-dialog",{attrs:{visible:e.chatVisible,"close-on-click-modal":!1,width:"800px",title:e.$t("trials:medicalFeedback:title:qaRecord")+" ("+e.subjectCode+" "+e.taskBlindName+")","append-to-body":""},on:{"update:visible":function(t){e.chatVisible=t}}},[i("ChatForm",{ref:"chatForm",attrs:{"visit-task-id":e.visitTaskId,"task-medical-review-id":e.form.TaskMedicalReviewId},on:{handleCloseReply:e.handleCloseReply}})],1):e._e(),e._v(" "),e.closeQuestionVisible?i("el-dialog",{attrs:{visible:e.closeQuestionVisible,"close-on-click-modal":!1,"append-to-body":"","custom-class":"base-dialog-wrapper",width:"600px",title:e.$t("trials:medicalFeedback:title:closeQc")},on:{"update:visible":function(t){e.closeQuestionVisible=t}}},[i("CloseQC",{attrs:{"task-medical-review-id":e.medicalReviewInfo.TaskMedicalReviewId},on:{close:function(t){e.closeQuestionVisible=!1},refresh:e.refresh}})],1):e._e()],1)},a=[],r=(i("20d6"),i("386d"),i("a481"),i("7f7f"),i("ac6a"),i("456d"),i("c5f6"),i("3e42")),o=i("3866"),s=i("0e69"),l={name:"AuditConclusions",components:{ChatForm:o["default"],CloseQC:s["default"]},props:{medicalReviewInfo:{type:Object,default:function(){return{}}},auditState:{type:Number,required:!0},visitTaskId:{type:String,required:!0},subjectCode:{type:String,required:!0},taskBlindName:{type:String,required:!0}},data:function(){return{form:{TaskMedicalReviewId:"",IsHaveQuestion:null,Questioning:"",AuditAdviceEnum:null,FileList:[]},loading:!1,accept:".png,.jpg,.jpeg",imgVisible:!1,imageUrl:"",uploadDisabled:!1,fileList:[],chatVisible:!1,userTypeEnumInt:1*zzSessionStorage.getItem("userTypeEnumInt"),isClosedDialog:!1,isSendMessage:!1,closeQuestionVisible:!1}},mounted:function(){this.initForm()},methods:{initForm:function(){var e=this;if(Object.keys(this.medicalReviewInfo).length>0){for(var t in this.form)this.medicalReviewInfo.hasOwnProperty(t)&&(this.form[t]=this.medicalReviewInfo[t]);this.fileList=[],this.form.FileList&&this.form.FileList.map((function(t){e.fileList.push({name:t.FileName,url:t.ImagePath})})),this.isClosedDialog=this.medicalReviewInfo.IsClosedDialog,this.isSendMessage=this.medicalReviewInfo.IsSendMessage}},handleSave:function(e){var t=this;return new Promise((function(i,n){t.$refs["conclusionsForm"].validate((function(a){if(a){t.loading=!0,t.form.IsSendDialog=t.form.IsHaveQuestion;var o=[];t.fileList.map((function(e){o.push({FileName:e.name,ImagePath:e.url})})),t.form.FileList=o,Object(r["Ae"])(t.form).then((function(n){e&&(t.$message.success(t.$t("common:message:savedSuccessfully")),t.$emit("getMedicalAuditList")),t.isSendMessage=t.form.IsHaveQuestion,t.loading=!1,i()})).catch((function(){t.loading=!1,n()}))}else n()}))}))},save:function(){var e=this;return new Promise((function(t,i){e.$refs["conclusionsForm"].validate((function(n){if(n){e.loading=!0,e.form.IsSendDialog=e.form.IsHaveQuestion;var a=[];e.fileList.map((function(e){a.push({FileName:e.name,ImagePath:e.url})})),e.form.FileList=a,Object(r["Ae"])(e.form).then((function(i){e.$emit("getMedicalAuditList"),e.isSendMessage=e.form.IsHaveQuestion,e.loading=!1,t(!0)})).catch((function(){e.loading=!1,i()}))}else t(!1)}))}))},handleReply:function(){this.chatVisible=!0},handleCloseReply:function(){this.closeQuestionVisible=!0},refresh:function(){this.isClosedDialog=!0,this.$emit("getMedicalAuditList"),this.$refs["chatForm"].getMessageList()},uploadScreenshot:function(e){var t=this;this.loading=!0;var i=new FormData;i.append("file",e.file),Object(r["d"])(this.$route.query.trialId,this.form.TaskMedicalReviewId,i).then((function(e){t.loading=!1,e.IsSuccess&&t.fileList.push({name:e.Result.FileName,url:e.Result.Path})})).catch((function(){t.loading=!1}))},handleBeforeUpload:function(e){if(this.checkFileSuffix(e.name))return!0;var t=this.$t("trials:medicalFeedback:message:format");return t=t.replace("xxx",this.accept),this.$message.error(t),!1},checkFileSuffix:function(e){var t=e.lastIndexOf("."),i=e.substring(t+1,e.length);return-1!==this.accept.toLocaleLowerCase().search(i.toLocaleLowerCase())},handlePictureCardPreview:function(e){this.imageUrl=e.url,this.imgVisible=!0},handleRemove:function(e,t){var i=this.fileList.findIndex((function(t){return t.url===e.url}));-1!==i&&this.fileList.splice(i,1)}}},c=l,u=(i("93ec"),i("2877")),d=Object(u["a"])(c,n,a,!1,null,"b346e552",null);t["default"]=d.exports},fecb:function(e,t,i){var n=i("6d8b"),a=i("2145"),r=i("29a8"),o=r.toolbox.brush;function s(e,t,i){this.model=e,this.ecModel=t,this.api=i,this._brushType,this._brushMode}s.defaultOption={show:!0,type:["rect","polygon","lineX","lineY","keep","clear"],icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:n.clone(o.title)};var l=s.prototype;l.render=l.updateView=function(e,t,i){var a,r,o;t.eachComponent({mainType:"brush"},(function(e){a=e.brushType,r=e.brushOption.brushMode||"single",o|=e.areas.length})),this._brushType=a,this._brushMode=r,n.each(e.get("type",!0),(function(t){e.setIconStatus(t,("keep"===t?"multiple"===r:"clear"===t?o:t===a)?"emphasis":"normal")}))},l.getIcons=function(){var e=this.model,t=e.get("icon",!0),i={};return n.each(e.get("type",!0),(function(e){t[e]&&(i[e]=t[e])})),i},l.onclick=function(e,t,i){var n=this._brushType,a=this._brushMode;"clear"===i?(t.dispatchAction({type:"axisAreaSelect",intervals:[]}),t.dispatchAction({type:"brush",command:"clear",areas:[]})):t.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===i?n:n!==i&&i,brushMode:"keep"===i?"multiple"===a?"single":"multiple":a}})},a.register("brush",s);var c=s;e.exports=c},fefd:function(e,t,i){"use strict";i("1371")},ff1e:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("base-model",{attrs:{config:e.setting_model}},[i("template",{slot:"dialog-body"},[i("el-form",{ref:"templateSettingForm",staticClass:"demo-ruleForm",attrs:{rules:e.rules,model:e.form,"label-width":"100px",size:"small"}},[i("el-form-item",{attrs:{label:"Item: ",prop:"Name"}},[i("el-input",{model:{value:e.form.Name,callback:function(t){e.$set(e.form,"Name",t)},expression:"form.Name"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Modality: ",prop:"ModalityIdList"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{multiple:""},model:{value:e.form.ModalityIdList,callback:function(t){e.$set(e.form,"ModalityIdList",t)},expression:"form.ModalityIdList"}},e._l(e.readingType,(function(e,t){return i("el-option",{key:e,attrs:{label:e,value:t}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"Description: ",prop:"Description"}},[i("el-input",{attrs:{type:"textarea",rows:5},model:{value:e.form.Description,callback:function(t){e.$set(e.form,"Description",t)},expression:"form.Description"}})],1)],1)],1),e._v(" "),i("template",{slot:"dialog-footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){e.setting_model.visible=!1}}},[e._v("Cancel")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleSave}},[e._v("Save")])],1)],2)},a=[],r=i("db72"),o=(i("ac6a"),i("456d"),i("96cf"),i("3b8d")),s=i("e56e"),l=i("86a6"),c=i("aaf3"),u=i("7eeb"),d={name:"TemplateSettingForm",components:{BaseModel:u["default"]},props:{data:{type:Object,default:function(){return{}}}},data:function(){return{setting_model:c["d"],form:{Name:"",ModalityIdList:[],Description:""},rules:{Name:[{required:!0,message:"Please specify",trigger:"blur"},{max:50,message:"The maximum length is 50"}],ModalityIdList:[{required:!0,message:"Please specify",trigger:"blur"}],Description:[{max:500,message:"The maximum length is 500"}]},readingType:{},btnLoading:!1}},mounted:function(){this.initForm()},methods:{handleSave:function(){var e=this;this.$refs.templateSettingForm.validate((function(t){t&&(e.btnLoading=!0,e.setting_model.showClose=!1,Object(s["m"])(e.form).then((function(t){e.$message.success("Saved successfully!"),e.btnLoading=!1,e.$refs["templateSettingForm"].resetFields(),e.$emit("close"),e.setting_model.showClose=!0})).catch((function(){e.btnLoading=!1,e.setting_model.showClose=!0})))}))},initForm:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getDicData();case 2:Object.keys(this.data).length&&this.data.Id&&(this.form=Object(r["a"])({},this.data));case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getDicData:function(){var e=this;Object(l["c"])(["ReadingType"]).then((function(t){var i=Object(r["a"])({},t.Result),n=i.ReadingType;e.readingType=n||{}})).catch((function(){}))}}},f=d,h=i("2877"),p=Object(h["a"])(f,n,a,!1,null,null,null);t["default"]=p.exports},ff2e:function(e,t,i){var n=i("6d8b"),a=i("2306"),r=i("e86a"),o=i("eda2"),s=i("1687"),l=i("697e"),c=i("fab22");function u(e){var t,i=e.get("type"),n=e.getModel(i+"Style");return"line"===i?(t=n.getLineStyle(),t.fill=null):"shadow"===i&&(t=n.getAreaStyle(),t.stroke=null),t}function d(e,t,i,n,a){var s=i.get("value"),l=h(s,t.axis,t.ecModel,i.get("seriesDataIndices"),{precision:i.get("label.precision"),formatter:i.get("label.formatter")}),c=i.getModel("label"),u=o.normalizeCssArray(c.get("padding")||0),d=c.getFont(),p=r.getBoundingRect(l,d),m=a.position,g=p.width+u[1]+u[3],v=p.height+u[0]+u[2],b=a.align;"right"===b&&(m[0]-=g),"center"===b&&(m[0]-=g/2);var y=a.verticalAlign;"bottom"===y&&(m[1]-=v),"middle"===y&&(m[1]-=v/2),f(m,g,v,n);var w=c.get("backgroundColor");w&&"auto"!==w||(w=t.get("axisLine.lineStyle.color")),e.label={shape:{x:0,y:0,width:g,height:v,r:c.get("borderRadius")},position:m.slice(),style:{text:l,textFont:d,textFill:c.getTextColor(),textPosition:"inside",textPadding:u,fill:w,stroke:c.get("borderColor")||"transparent",lineWidth:c.get("borderWidth")||0,shadowBlur:c.get("shadowBlur"),shadowColor:c.get("shadowColor"),shadowOffsetX:c.get("shadowOffsetX"),shadowOffsetY:c.get("shadowOffsetY")},z2:10}}function f(e,t,i,n){var a=n.getWidth(),r=n.getHeight();e[0]=Math.min(e[0]+t,a)-t,e[1]=Math.min(e[1]+i,r)-i,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function h(e,t,i,a,r){e=t.scale.parse(e);var o=t.scale.getLabel(e,{precision:r.precision}),s=r.formatter;if(s){var c={value:l.getAxisRawValue(t,e),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};n.each(a,(function(e){var t=i.getSeriesByIndex(e.seriesIndex),n=e.dataIndexInside,a=t&&t.getDataParams(n);a&&c.seriesData.push(a)})),n.isString(s)?o=s.replace("{value}",o):n.isFunction(s)&&(o=s(c))}return o}function p(e,t,i){var n=s.create();return s.rotate(n,n,i.rotation),s.translate(n,n,i.position),a.applyTransform([e.dataToCoord(t),(i.labelOffset||0)+(i.labelDirection||1)*(i.labelMargin||0)],n)}function m(e,t,i,n,a,r){var o=c.innerTextLayout(i.rotation,0,i.labelDirection);i.labelMargin=a.get("label.margin"),d(t,n,a,r,{position:p(n.axis,e,i),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function g(e,t,i){return i=i||0,{x1:e[i],y1:e[1-i],x2:t[i],y2:t[1-i]}}function v(e,t,i){return i=i||0,{x:e[i],y:e[1-i],width:t[i],height:t[1-i]}}function b(e,t,i,n,a,r){return{cx:e,cy:t,r0:i,r:n,startAngle:a,endAngle:r,clockwise:!0}}t.buildElStyle=u,t.buildLabelElOption=d,t.getValueLabel=h,t.getTransformedPosition=p,t.buildCartesianSingleLabelElOption=m,t.makeLineShape=g,t.makeRectShape=v,t.makeSectorShape=b},ff37:function(e,t,i){"use strict";i("cd6b")},ff7e:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"form-container"},[i("el-card",{staticClass:"box-card"},[i("div",{staticStyle:{width:"80%"}},[i("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"specialtyForm",staticClass:"demo-ruleForm",attrs:{rules:e.specialtyRules,model:e.specialtyForm,"label-width":"150px"}},[i("el-row",[i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{label:"Specialty: ",prop:"SpecialityId"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{disabled:"1"===e.$route.query.ReviewStatus,placeholder:"Please select",size:"small"},model:{value:e.specialtyForm.SpecialityId,callback:function(t){e.$set(e.specialtyForm,"SpecialityId",t)},expression:"specialtyForm.SpecialityId"}},[e._l(e.dictionaryList.Department,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.Value,value:e.Id}})})),e._v(" "),i("el-option",{attrs:{label:"Other",value:e.otherId}})],2)],1)],1),e._v(" "),i("el-col",{attrs:{span:6}},[e.specialtyForm.SpecialityId==e.otherId?i("el-form-item",{staticClass:"other-item",attrs:{prop:"SpecialityOther"}},[i("el-input",{attrs:{disabled:"1"===e.$route.query.ReviewStatus,placeholder:"Please specify (required)",size:"small"},model:{value:e.specialtyForm.SpecialityOther,callback:function(t){e.$set(e.specialtyForm,"SpecialityOther",t)},expression:"specialtyForm.SpecialityOther"}})],1):e._e()],1),e._v(" "),i("el-col",{attrs:{span:6}},[e.specialtyForm.SpecialityId==e.otherId?i("el-form-item",{staticClass:"other-item",attrs:{prop:"SpecialityOtherCN"}},[i("el-input",{attrs:{disabled:"1"===e.$route.query.ReviewStatus,placeholder:"请用中文注明",size:"small"},model:{value:e.specialtyForm.SpecialityOtherCN,callback:function(t){e.$set(e.specialtyForm,"SpecialityOtherCN",t)},expression:"specialtyForm.SpecialityOtherCN"}})],1):e._e()],1)],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{label:"Subspeciality: ",prop:"SubspecialityIds"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{disabled:"1"===e.$route.query.ReviewStatus,placeholder:"select",multiple:"",size:"small"},model:{value:e.specialtyForm.SubspecialityIds,callback:function(t){e.$set(e.specialtyForm,"SubspecialityIds",t)},expression:"specialtyForm.SubspecialityIds"}},[e._l(e.dictionaryList.Subspeciality,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.Value,value:e.Id}})})),e._v(" "),i("el-option",{attrs:{label:"Other",value:e.otherId}})],2)],1)],1),e._v(" "),i("el-col",{attrs:{span:6}},[e.specialtyForm.SubspecialityIds&&e.specialtyForm.SubspecialityIds.indexOf(e.otherId)>-1?i("el-form-item",{staticClass:"other-item",attrs:{prop:"SubspecialityOther"}},[i("el-input",{attrs:{disabled:"1"===e.$route.query.ReviewStatus,placeholder:"Please specify (required)",size:"small"},model:{value:e.specialtyForm.SubspecialityOther,callback:function(t){e.$set(e.specialtyForm,"SubspecialityOther",t)},expression:"specialtyForm.SubspecialityOther"}})],1):e._e()],1),e._v(" "),i("el-col",{attrs:{span:6}},[e.specialtyForm.SubspecialityIds&&e.specialtyForm.SubspecialityIds.indexOf(e.otherId)>-1?i("el-form-item",{staticClass:"other-item",attrs:{prop:"SubspecialityOtherCN"}},[i("el-input",{attrs:{disabled:"1"===e.$route.query.ReviewStatus,placeholder:"请用中文注明",size:"small"},model:{value:e.specialtyForm.SubspecialityOtherCN,callback:function(t){e.$set(e.specialtyForm,"SubspecialityOtherCN",t)},expression:"specialtyForm.SubspecialityOtherCN"}})],1):e._e()],1)],1),e._v(" "),i("el-row",[i("el-col",{attrs:{span:12}},[i("el-form-item",{attrs:{label:"Modality: ",prop:"ReadingTypeIds"}},[i("el-select",{staticStyle:{width:"100%"},attrs:{disabled:"1"===e.$route.query.ReviewStatus,placeholder:"Please select",multiple:"",size:"small"},model:{value:e.specialtyForm.ReadingTypeIds,callback:function(t){e.$set(e.specialtyForm,"ReadingTypeIds",t)},expression:"specialtyForm.ReadingTypeIds"}},[e._l(e.dictionaryList.ReadingType,(function(e){return i("el-option",{key:e.Id,attrs:{label:e.Value,value:e.Id}})})),e._v(" "),i("el-option",{attrs:{label:"Other",value:e.otherId}})],2)],1)],1),e._v(" "),i("el-col",{attrs:{span:6}},[e.specialtyForm.ReadingTypeIds&&e.specialtyForm.ReadingTypeIds.indexOf(e.otherId)>-1?i("el-form-item",{staticClass:"other-item",attrs:{prop:"ReadingTypeOther"}},[i("el-input",{attrs:{disabled:"1"===e.$route.query.ReviewStatus,placeholder:"Please specify (required)",size:"small"},model:{value:e.specialtyForm.ReadingTypeOther,callback:function(t){e.$set(e.specialtyForm,"ReadingTypeOther",t)},expression:"specialtyForm.ReadingTypeOther"}})],1):e._e()],1),e._v(" "),i("el-col",{attrs:{span:6}},[e.specialtyForm.ReadingTypeIds&&e.specialtyForm.ReadingTypeIds.indexOf(e.otherId)>-1?i("el-form-item",{staticClass:"other-item",attrs:{prop:"ReadingTypeOtherCN"}},[i("el-input",{attrs:{disabled:"1"===e.$route.query.ReviewStatus,placeholder:"请用中文注明",size:"small"},model:{value:e.specialtyForm.ReadingTypeOtherCN,callback:function(t){e.$set(e.specialtyForm,"ReadingTypeOtherCN",t)},expression:"specialtyForm.ReadingTypeOtherCN"}})],1):e._e()],1)],1),e._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",disabled:e.isDisabled||"1"===e.$route.query.ReviewStatus,size:"small"},on:{click:e.handleSave}},[e._v("Save")])],1)],1)],1)])],1)},a=[],r=i("db72"),o=(i("96cf"),i("3b8d")),s=i("33ba"),l=i("86a6"),c={name:"Specialty",data:function(){return{specialtyForm:{ReadingTypeIds:[],ReadingTypeOther:"",ReadingTypeOtherCN:"",SubspecialityIds:[],SubspecialityOther:"",SubspecialityOtherCN:"",SpecialityId:"",SpecialityOther:"",SpecialityOtherCN:""},specialtyRules:{SpecialityId:[{required:!0,message:"Please select speciality",trigger:"blur"}],SpecialityOther:[{required:!0,message:"Please specify",trigger:"blur"},{max:50,message:"The maximum length is 50"}],SpecialityOtherCN:[{max:50,message:"The maximum length is 50"}],ReadingTypeIds:[{required:!0,message:"Please select clinical reading type",trigger:"blur"}],ReadingTypeOther:[{required:!0,message:"Please specify",trigger:"blur"},{max:50,message:"The maximum length is 50"}],ReadingTypeOtherCN:[{max:50,message:"The maximum length is 50"}],SubspecialityIds:[{required:!0,message:"Please select subspecialty",trigger:"blur"}],SubspecialityOther:[{required:!0,message:"Please specify",trigger:"blur"},{max:50,message:"The maximum length is 50"}],SubspecialityOtherCN:[{max:50,message:"The maximum length is 50"}]},selectId:"00000000-0000-0000-0000-000000000000",otherId:"ef84e9cb-f1a6-49d7-b6da-34be2c12abd5",isDisabled:!1,loading:!1,dictionaryList:{}}},mounted:function(){this.initSpecialty()},methods:{handleSave:function(){var e=this;this.$refs.specialtyForm.validate((function(t){if(t){e.isDisabled=!0;var i={};i.ReadingTypeIds=e.specialtyForm.ReadingTypeIds,i.ReadingTypeOther=i.ReadingTypeIds.indexOf(e.otherId)>-1?e.specialtyForm.ReadingTypeOther:"",i.ReadingTypeOtherCN=i.ReadingTypeIds.indexOf(e.otherId)>-1?e.specialtyForm.ReadingTypeOtherCN:"",i.SubspecialityIds=e.specialtyForm.SubspecialityIds,i.SubspecialityOther=i.SubspecialityIds.indexOf(e.otherId)>-1?e.specialtyForm.SubspecialityOther:"",i.SubspecialityOtherCN=i.SubspecialityIds.indexOf(e.otherId)>-1?e.specialtyForm.SubspecialityOtherCN:"",i.SpecialityId=e.specialtyForm.SpecialityId,i.SpecialityOther=i.SpecialityId===e.otherId?e.specialtyForm.SpecialityOther:"",i.SpecialityOtherCN=i.SpecialityId===e.otherId?e.specialtyForm.SpecialityOtherCN:"",i.Id=e.$route.query.Id,Object(s["F"])(i).then((function(t){e.isDisabled=!1,e.$message.success("Saved successfully"),e.specialtyForm.Id=t.Result})).catch((function(){e.isDisabled=!1}))}}))},initForm:function(){var e=this;this.loading=!0;var t=this.$route.query.Id;t&&Object(s["x"])(t).then((function(t){e.specialtyForm.ReadingTypeIds=t.Result.ReadingTypeIds.length>0?t.Result.ReadingTypeIds:[],e.specialtyForm.ReadingTypeOther=t.Result.ReadingTypeOther,e.specialtyForm.ReadingTypeOtherCN=t.Result.ReadingTypeOtherCN,e.specialtyForm.SubspecialityIds=t.Result.SubspecialityIds,e.specialtyForm.SubspecialityOther=t.Result.SubspecialityOther,e.specialtyForm.SubspecialityOtherCN=t.Result.SubspecialityOtherCN,e.specialtyForm.SpecialityId=t.Result.SpecialityId===e.selectId?"":t.Result.SpecialityId,e.specialtyForm.SpecialityOther=t.Result.SpecialityOther,e.specialtyForm.SpecialityOtherCN=t.Result.SpecialityOtherCN,e.loading=!1})).catch((function(){e.loading=!1}))},initSpecialty:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getDicData();case 2:this.initForm();case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getDicData:function(){var e=this;Object(l["c"])(["Department","Subspeciality","ReadingType"]).then((function(t){e.dictionaryList=Object(r["a"])({},t.Result)}))}}},u=c,d=(i("8e8a"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},ff85:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("base-model",{attrs:{config:e.model_cfg}},[i("template",{slot:"dialog-body"},[i("el-form",{ref:"DictionaryTypeConfigForm",attrs:{model:e.form,rules:e.rules,"label-width":"120px",size:"small"}},[i("el-form-item",{attrs:{label:"Enum Value: ",prop:"Code"}},[i("el-input",{model:{value:e.form.Code,callback:function(t){e.$set(e.form,"Code",t)},expression:"form.Code"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Value: ",prop:"Code"}},[i("el-input",{model:{value:e.form.ValueCN,callback:function(t){e.$set(e.form,"ValueCN",t)},expression:"form.ValueCN"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Value EN: ",prop:"Code"}},[i("el-input",{model:{value:e.form.Value,callback:function(t){e.$set(e.form,"Value",t)},expression:"form.Value"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"ChildGroup: ",prop:"Code"}},[i("el-input",{model:{value:e.form.ChildGroup,callback:function(t){e.$set(e.form,"ChildGroup",t)},expression:"form.ChildGroup"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"ShowOrder: ",prop:"Code"}},[i("el-input-number",{attrs:{min:0},model:{value:e.form.ShowOrder,callback:function(t){e.$set(e.form,"ShowOrder",t)},expression:"form.ShowOrder"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Description: ",prop:"Code"}},[i("el-input",{model:{value:e.form.Description,callback:function(t){e.$set(e.form,"Description",t)},expression:"form.Description"}})],1),e._v(" "),i("el-form-item",{attrs:{label:"Is Enable: "}},[i("el-switch",{attrs:{"active-value":!0,"inactive-value":!1},model:{value:e.form.IsEnable,callback:function(t){e.$set(e.form,"IsEnable",t)},expression:"form.IsEnable"}})],1)],1)],1),e._v(" "),i("template",{slot:"dialog-footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:e.handleCancle}},[e._v("Cancel")]),e._v(" "),i("el-button",{attrs:{size:"small",type:"primary",loading:e.btnLoading},on:{click:e.handleSave}},[e._v("Save")])],1)],2)},a=[],r=i("db72"),o=(i("ac6a"),i("456d"),i("e56e")),s=i("7eeb"),l=function(){return{Id:"",Code:"",KeyName:"",Description:"",DataTypeEnum:0,Value:"",ValueCN:"",ShowOrder:0,IsEnable:!0}},c={name:"AnonymizationFrom",components:{BaseModel:s["default"]},data:function(){return{btnLoading:!1,form:l(),rules:{},model_cfg:{visible:!1,showClose:!0,width:"600px",title:"",appendToBody:!0}}},mounted:function(){},methods:{openDialog:function(e,t,i){this.model_cfg.visible=!0,this.model_cfg.title=e,Object.keys(t).length?this.form=Object(r["a"])({},t):this.form=l(),Object.keys(i).length&&(this.form=Object.assign(this.form,i))},handleSave:function(){var e=this;this.$refs.DictionaryTypeConfigForm.validate((function(t){t&&(e.btnLoading=!0,Object(o["c"])(e.form).then((function(t){e.btnLoading=!1,e.$message.success("Saved successfully!"),e.model_cfg.visible=!1,e.$emit("getList")})).catch((function(){e.btnLoading=!1})))}))},handleCancle:function(){this.model_cfg.visible=!1}}},u=c,d=i("2877"),f=Object(d["a"])(u,n,a,!1,null,null,null);t["default"]=f.exports},ffa5:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{"min-height":"400px"}},[e.isRender?i("el-card",{attrs:{shadow:"never","body-style":{padding:"10px"}}},[i("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[i("span",{staticStyle:{"font-weight":"bold"}},[e._v("历史评判结果")])]),e._v(" "),e._l(e.visitTaskInfoList,(function(t){return i("div",{key:t.visitTaskId},[i("el-form",{ref:"questions",refInFor:!0,attrs:{size:"small",model:t.questionForm}},e._l(t.questions,(function(n){return i("FormItem",{key:n.ReadingQuestionTrialId,attrs:{question:n,"question-form":t.questionForm,"reading-task-state":2},on:{resetFormItemData:e.resetFormItemData}})})),1)],1)}))],2):e._e(),e._v(" "),e.isRender?i("el-card",{staticClass:"box-mr",attrs:{shadow:"never","body-style":{padding:"10px"}}},[i("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[i("span",{staticStyle:{"font-weight":"bold"}},[e._v("裁判结果")])]),e._v(" "),i("el-form",{ref:"adForm",attrs:{model:e.adForm}},[i("el-form-item",{attrs:{label:"",prop:"judgeResultTaskId",rules:[{required:!0,message:"请选择"}]}},[i("el-radio-group",{attrs:{disabled:e.readingTaskState>=2},model:{value:e.adForm.judgeResultTaskId,callback:function(t){e.$set(e.adForm,"judgeResultTaskId",t)},expression:"adForm.judgeResultTaskId"}},e._l(e.visitTaskInfoList,(function(t){return i("el-radio",{key:t.visitTaskId,attrs:{label:t.visitTaskId}},[e._v(e._s(t.armEnum))])})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:"备注",prop:"judgeResultRemark",rules:[{required:!0,message:"请注明"}]}},[i("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},disabled:e.readingTaskState>=2},model:{value:e.adForm.judgeResultRemark,callback:function(t){e.$set(e.adForm,"judgeResultRemark",t)},expression:"adForm.judgeResultRemark"}})],1),e._v(" "),e.readingTaskState<2?i("el-form-item",[i("div",{staticStyle:{"text-align":"center"}},[i("el-button",{attrs:{type:"primary"},on:{click:e.handleSave}},[e._v("保存")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.handleSubmit}},[e._v("提交")])],1)]):e._e()],1)],1):e._e(),e._v(" "),e.signVisible?i("el-dialog",{attrs:{visible:e.signVisible,"close-on-click-modal":!1,width:"600px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.signVisible=t}}},[i("div",{attrs:{slot:"title"},slot:"title"},[i("span",{staticStyle:{"font-size":"18px"}},[e._v(e._s(e.$t("common:dialogTitle:sign")))]),e._v(" "),i("span",{staticStyle:{"font-size":"12px","margin-left":"5px"}},[e._v(e._s("("+e.$t("common:label:sign")+e.currentUser+")"))])]),e._v(" "),i("SignForm",{ref:"signForm",attrs:{"sign-code-enum":e.signCode},on:{closeDialog:e.closeSignDialog}})],1):e._e()],1)},a=[],r=(i("ac6a"),i("3e42")),o=i("7a9e"),s=i("0108"),l=i("179b"),c={name:"ECRF",components:{FormItem:s["default"],SignForm:l["default"]},props:{trialId:{type:String,required:!0},visitTaskId:{type:String,required:!0}},data:function(){return{loading:!1,isRender:!1,signVisible:!1,signCode:null,currentUser:zzSessionStorage.getItem("userName"),readingTaskState:0,visitTasks:[],adForm:{visitTaskId:"",judgeResultTaskId:"",judgeResultRemark:""},visitTaskInfoList:[]}},mounted:function(){this.getQuestions()},methods:{getQuestions:function(){var e=this;this.loading=!0;var t={visitTaskId:this.visitTaskId};Object(r["nc"])(t).then((function(t){e.adForm.judgeResultTaskId=t.Result.JudgeResultTaskId,e.adForm.judgeResultRemark=t.Result.JudgeResultRemark,e.readingTaskState=t.Result.ReadingTaskState,t.Result.VisitTaskInfoList.forEach((function(t){var i={visitTaskId:t.VisitTaskId,armEnum:e.$fd("ArmEnum",t.ArmEnum),questions:[],questionForm:{}};t.TaskReadingQuestionList.map((function(t){"group"===t.Type&&0===t.Childrens.length||(i.questions.push(t),"group"!==t.Type&&"summary"!==t.Type&&e.$set(i.questionForm,t.ReadingQuestionTrialId,t.Answer),t.Childrens.length>0&&e.setChild(i.questionForm,t.Childrens))})),e.visitTaskInfoList.push(i)})),e.isRender=!0,e.loading=!1})).catch((function(){e.loading=!1}))},setChild:function(e,t){var i=this;t.forEach((function(t){"group"!==t.Type&&"summary"!==t.Type&&i.$set(e,t.ReadingQuestionTrialId,t.Answer),t.Childrens&&t.Childrens.length>0&&i.setChild(e,t.Childrens)}))},handleSave:function(){var e=this;this.$refs["adForm"].validate((function(t){t&&(e.loading=!0,e.adForm.visitTaskId=e.visitTaskId,Object(r["ze"])(e.adForm).then((function(t){e.$message.success(e.$t("common:message:savedSuccessfully")),e.loading=!1})).catch((function(){e.loading=!1})))}))},handleSubmit:function(){var e=this;this.$refs["questions"].validate((function(t){if(t){var i=o["default"].processSignature.ImageAssessmentReportConfirmation;e.signCode=i,e.signVisible=!0}}))},closeSignDialog:function(e,t){e?this.signConfirm(t):this.signVisible=!1},signConfirm:function(e){var t=this;this.loading=!0;var i=[];for(var n in this.questionForm)i.push({readingQuestionTrialId:n,answer:this.questionForm[n]});var a={data:{visitTaskId:this.visitTaskId,judgeResultTaskId:this.adForm.judgeResultTaskId,judgeResultRemark:this.adForm.judgeResultRemark},signInfo:e};Object(r["bf"])(a).then((function(e){t.loading=!1,e.IsSuccess&&(t.$message.success(t.$t("common:message:savedSuccessfully")),t.isEdit=!1,t.$refs["signForm"].btnLoading=!1,t.signVisible=!1,window.location.reload(),window.opener.postMessage("refreshTaskList",window.location))})).catch((function(e){t.loading=!1,t.$refs["signForm"].btnLoading=!1}))},resetFormItemData:function(){}}},u=c,d=(i("673a"),i("2877")),f=Object(d["a"])(u,n,a,!1,null,"12a87dcf",null);t["default"]=f.exports},ffb2:function(e,t,i){},ffd6:function(e,t,i){var n=i("3729"),a=i("1310"),r="[object Symbol]";function o(e){return"symbol"==typeof e||a(e)&&n(e)==r}e.exports=o},ffe7:function(e,t,i){},fffb:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("BaseContainer",[i("template",{slot:"search-container"},[i("el-form",{attrs:{inline:!0}},[i("el-form-item",{attrs:{label:e.$t("trials:reviewAssign:readingTask:table:siteCode")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:"",filterable:""},model:{value:e.searchData.SiteId,callback:function(t){e.$set(e.searchData,"SiteId",t)},expression:"searchData.SiteId"}},e._l(e.siteOptions,(function(e,t){return i("el-option",{key:t,attrs:{label:e.TrialSiteCode,value:e.SiteId}})})),1)],1),e._v(" "),i("el-form-item",{attrs:{label:e.$t("trials:reviewAssign:readingTask:table:subjectCode")}},[i("el-input",{staticStyle:{width:"100px"},model:{value:e.searchData.SubjectCode,callback:function(t){e.$set(e.searchData,"SubjectCode",t)},expression:"searchData.SubjectCode"}})],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:reviewAssign:readingTask:table:visitName")}},[i("el-input",{staticStyle:{width:"100px"},attrs:{clearable:""},model:{value:e.searchData.TaskName,callback:function(t){e.$set(e.searchData,"TaskName",t)},expression:"searchData.TaskName"}})],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:reviewAssign:readingTask:table:reader")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.DoctorUserId,callback:function(t){e.$set(e.searchData,"DoctorUserId",t)},expression:"searchData.DoctorUserId"}},e._l(e.DoctorUserList,(function(e){return i("el-option",{key:"DoctorUserId"+e.DoctorUserId,attrs:{value:e.DoctorUserId,label:e.UserName}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:reviewAssign:readingTask:table:isUrgent")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.IsUrgent,callback:function(t){e.$set(e.searchData,"IsUrgent",t)},expression:"searchData.IsUrgent"}},e._l(e.$d.YesOrNo,(function(e){return i("el-option",{key:"IsUrgent"+e.label,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:reviewAssign:readingTask:table:taskStatus")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.TaskState,callback:function(t){e.$set(e.searchData,"TaskState",t)},expression:"searchData.TaskState"}},e._l(e.$d.TaskState,(function(e){return i("el-option",{key:"TaskState"+e.label,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:reviewAssign:readingTask:table:taskType")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.ReadingCategory,callback:function(t){e.$set(e.searchData,"ReadingCategory",t)},expression:"searchData.ReadingCategory"}},e._l(e.$d.ReadingCategory,(function(e){return i("el-option",{key:"ReadingCategory"+e.label,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:reviewAssign:readingTask:table:assignStatus")}},[i("el-select",{staticStyle:{width:"120px"},attrs:{clearable:""},model:{value:e.searchData.TaskAllocationState,callback:function(t){e.$set(e.searchData,"TaskAllocationState",t)},expression:"searchData.TaskAllocationState"}},e._l(e.$d.TaskAllocationState,(function(e){return i("el-option",{key:"TaskAllocationState"+e.label,attrs:{value:e.value,label:e.label}})})),1)],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:e.$t("trials:reviewAssign:readingTask:table:assignTime")}},[i("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd HH:mm:ss",type:"datetimerange"},on:{change:e.changeTimeList},model:{value:e.timeList,callback:function(t){e.timeList=t},expression:"timeList"}})],1),e._v(" "),i("el-form-item",{staticStyle:{"margin-bottom":"10px"}},[i("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleSearch}},[e._v("\n "+e._s(e.$t("common:button:search"))+"\n ")]),e._v(" "),i("el-button",{attrs:{type:"primary",icon:"el-icon-refresh-left"},on:{click:e.handleReset}},[e._v("\n "+e._s(e.$t("common:button:reset"))+"\n ")])],1)],1)],1),e._v(" "),i("template",{slot:"main-container"},[i("el-table",{directives:[{name:"adaptive",rawName:"v-adaptive",value:{bottomOffset:60},expression:"{bottomOffset:60}"},{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.list,stripe:"",height:"100"},on:{"sort-change":e.handleSortChange}},[i("el-table-column",{attrs:{prop:"OriginalReReadingTask.IsUrgent",label:e.$t("trials:consistencyCheck:table:isUrgent"),"show-overflow-tooltip":"","min-width":"100",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.OriginalReReadingTask.IsUrgent?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("YesOrNo",t.row.OriginalReReadingTask.IsUrgent)))]):i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("YesOrNo",t.row.OriginalReReadingTask.IsUrgent)))])]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"OriginalReReadingTask.TaskCode",label:e.$t("trials:readTask:table:taskCode"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"OriginalReReadingTask.TrialSiteCode",label:e.$t("trials:readTask:table:siteCode"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"OriginalReReadingTask.SubjectCode",label:e.$t("trials:readTask:table:subjectCode"),"min-width":"120",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"OriginalReReadingTask.TaskName",label:e.$t("trials:reviewAssign:readingTask:table:visitName"),"min-width":"160",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"OriginalReReadingTask.TaskBlindName",label:e.$t("trials:reviewAssign:readingTask:table:blindName"),"min-width":"140",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"OriginalReReadingTask.CreateTime",label:e.$t("trials:reviewAssign:readingTask:table:createTime"),"min-width":"140",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"OriginalReReadingTask.TaskState",label:e.$t("trials:reviewAssign:readingTask:table:taskStatus"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.OriginalReReadingTask.TaskState?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("TaskState",t.row.OriginalReReadingTask.TaskState)))]):e._e(),e._v(" "),1===t.row.OriginalReReadingTask.TaskState?i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("TaskState",t.row.OriginalReReadingTask.TaskState)))]):e._e(),e._v(" "),3===t.row.OriginalReReadingTask.TaskState?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("TaskState",t.row.OriginalReReadingTask.TaskState)))]):e._e(),e._v(" "),4===t.row.OriginalReReadingTask.TaskState?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("TaskState",t.row.OriginalReReadingTask.TaskState)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"OriginalReReadingTask.ReadingCategory",label:e.$t("trials:reviewAssign:readingTask:table:taskType"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.OriginalReReadingTask.ReadingCategory?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.OriginalReReadingTask.ReadingCategory)))]):e._e(),e._v(" "),2===t.row.OriginalReReadingTask.ReadingCategory?i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.OriginalReReadingTask.ReadingCategory)))]):e._e(),e._v(" "),4===t.row.OriginalReReadingTask.ReadingCategory?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.OriginalReReadingTask.ReadingCategory)))]):e._e(),e._v(" "),5===t.row.OriginalReReadingTask.ReadingCategory?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.OriginalReReadingTask.ReadingCategory)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"OriginalReReadingTask.ArmEnum",label:e.$t("trials:reviewAssign:readingTask:table:role"),"min-width":"80",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.OriginalReReadingTask.ArmEnum?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ArmEnum",t.row.OriginalReReadingTask.ArmEnum)))]):e._e(),e._v(" "),2===t.row.OriginalReReadingTask.ArmEnum?i("el-tag",{attrs:{type:"success"}},[e._v(e._s(e.$fd("ArmEnum",t.row.OriginalReReadingTask.ArmEnum)))]):e._e(),e._v(" "),3===t.row.OriginalReReadingTask.ArmEnum?i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("ArmEnum",t.row.OriginalReReadingTask.ArmEnum)))]):e._e(),e._v(" "),4===t.row.OriginalReReadingTask.ArmEnum?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ArmEnum",t.row.OriginalReReadingTask.ArmEnum)))]):e._e(),e._v(" "),5===t.row.OriginalReReadingTask.ArmEnum?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("ArmEnum",t.row.OriginalReReadingTask.ArmEnum)))]):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"OriginalReReadingTask.UserName",label:e.$t("trials:reviewAssign:readingTask:table:reader"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.OriginalReReadingTask.UserName)+"("+e._s(t.row.OriginalReReadingTask.FullName)+")\n ")]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"OriginalReReadingTask.SignTime",label:e.$t("trials:reviewTrack:table:signTime"),"min-width":"180",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"OriginalReReadingTask.RequestReReadingType",label:e.$t("trials:rereadTask:table:requestReReadingType"),"min-width":"140",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.RequestReReadingType?i("div",[2===t.row.RequestReReadingType?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("RequestReReadingType",t.row.RequestReReadingType)))]):i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("RequestReReadingType",t.row.RequestReReadingType)))])],1):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"RequestReReadingTime",label:e.$t("trials:rereadTask:table:requestReReadingTime"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"RequestReReadingReason",label:e.$t("trials:rereadTask:table:requestReReadingReason"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"AllocateTime",label:e.$t("trials:rereadTask:table:requestReReadingResultEnum"),"min-width":"100",sortable:"custom","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.RequestReReadingResultEnum||0===t.row.RequestReReadingResultEnum?i("div",[2===t.row.RequestReReadingResultEnum?i("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"top"}},[i("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n "+e._s(t.row.RequestReReadingRejectReason)+"\n ")]),e._v(" "),i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("RequestReReadingResult",t.row.RequestReReadingResultEnum)))])],1):e._e(),e._v(" "),1===t.row.RequestReReadingResultEnum?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("RequestReReadingResult",t.row.RequestReReadingResultEnum)))]):e._e(),e._v(" "),0===t.row.RequestReReadingResultEnum?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("RequestReReadingResult",t.row.RequestReReadingResultEnum)))]):e._e()],1):e._e()]}}])}),e._v(" "),i("el-table-column",{attrs:{prop:"ReReadingNewTaskCode",label:e.$t("trials:rereadTask:table:reReadingNewTaskCode"),"min-width":"120",sortable:"custom","show-overflow-tooltip":""}}),e._v(" "),e.hasPermi(["role:spm"])?i("el-table-column",{attrs:{fixed:"right",label:e.$t("common:action:action"),width:"210"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{disabled:!!t.row.RequestReReadingResultEnum||1===t.row.RequestReReadingType,icon:"el-icon-check",circle:"",title:e.$t("trials:spmAudit:button:agree")},on:{click:function(i){return e.openReReadingOrBackList(t.row,1)}}}),e._v(" "),i("el-button",{attrs:{disabled:!!t.row.RequestReReadingResultEnum||1===t.row.RequestReReadingType,icon:"el-icon-close",circle:"",title:e.$t("trials:spmAudit:button:reject")},on:{click:function(i){return e.confirmReReading(t.row,2,!0)}}}),e._v(" "),i("el-button",{attrs:{disabled:1!==t.row.RequestReReadingResultEnum,icon:"el-icon-document-copy",circle:"",title:e.$t("trials:spmAudit:button:influenceList")},on:{click:function(i){return e.getInfluencedTaskList(t.row)}}})]}}],null,!1,3033957826)}):e._e()],1),e._v(" "),i("pagination",{staticClass:"page",attrs:{total:e.total,page:e.searchData.PageIndex,limit:e.searchData.PageSize},on:{"update:page":function(t){return e.$set(e.searchData,"PageIndex",t)},"update:limit":function(t){return e.$set(e.searchData,"PageSize",t)},pagination:e.getList}}),e._v(" "),e.ConfirmReReadingVisible?i("el-dialog",{attrs:{title:e.$t("trials:spmAudit:title:rejected"),visible:e.ConfirmReReadingVisible,width:"600px","append-to-body":"","close-on-click-modal":!1,"custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.ConfirmReReadingVisible=t}}},[i("div",{staticStyle:{padding:"10px",border:"1px solid #e0e0e0","max-height":"650px","overflow-y":"auto"}},[i("el-form",{ref:"reasonForm",staticClass:"demo-ruleForm",attrs:{rules:e.rules,model:e.ConfirmReReadingForm,size:"small","label-width":"120px"}},[i("el-form-item",{attrs:{label:e.$t("trials:spmAudit:title:rejectedReason"),prop:"RequestReReadingRejectReason"}},[i("el-input",{attrs:{type:"textarea",autosize:{minRows:2,maxRows:4},placeholder:e.$t("common:ruleMessage:specify"),maxlength:"500","show-word-limit":""},model:{value:e.ConfirmReReadingForm.RequestReReadingRejectReason,callback:function(t){e.$set(e.ConfirmReReadingForm,"RequestReReadingRejectReason",t)},expression:"ConfirmReReadingForm.RequestReReadingRejectReason"}})],1)],1)],1),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){e.ConfirmReReadingVisible=!1,e.ConfirmReReadingForm={RequestReReadingRejectReason:null}}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{loading:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){return e.confirmSign(2)}}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1)]):e._e(),e._v(" "),e.ReReadingOrBackVisible?i("el-dialog",{attrs:{title:"read"===e.opentype?this.$t("trials:spmAudit:title:title1"):this.$t("trials:spmAudit:title:title2"),visible:e.ReReadingOrBackVisible,width:"1460px","append-to-body":"","close-on-click-modal":!1,"custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.ReReadingOrBackVisible=t}}},[i("div",{staticClass:"base-dialog-body"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{"min-height":"400px"},attrs:{data:e.InfluenceTaskList,stripe:"",height:"100"}},[i("el-table-column",{attrs:{prop:"TaskCode",label:e.$t("trials:readTask:table:taskCode"),"min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialSiteCode",label:e.$t("trials:readTask:table:siteCode"),"min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"SubjectCode",label:e.$t("trials:readTask:table:subjectCode"),"min-width":"120","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"VisitTaskNum",label:e.$t("trials:consistencyCheck:table:visitName"),"min-width":"140","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.TaskName)+"\n ")]}}],null,!1,2420443191)}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskBlindName",label:e.$t("trials:readTask:table:blindName"),"min-width":"120","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"TrialReadingCriterionName",label:e.$t("trials:readTask:table:criterionName"),"min-width":"100","show-overflow-tooltip":""}}),e._v(" "),i("el-table-column",{attrs:{prop:"TaskState",label:e.$t("trials:readTask:table:taskState"),"min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.TaskState?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e(),e._v(" "),1===t.row.TaskState?i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e(),e._v(" "),3===t.row.TaskState?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e(),e._v(" "),4===t.row.TaskState?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("TaskState",t.row.TaskState)))]):e._e()]}}],null,!1,3420009093)}),e._v(" "),i("el-table-column",{attrs:{prop:"ReadingCategory","min-width":"100",label:e.$t("trials:readTask:table:readingCategory"),"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[1===t.row.ReadingCategory?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e(),e._v(" "),2===t.row.ReadingCategory?i("el-tag",{attrs:{type:"info"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e(),e._v(" "),4===t.row.ReadingCategory?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e(),e._v(" "),5===t.row.ReadingCategory?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("ReadingCategory",t.row.ReadingCategory)))]):e._e()]}}],null,!1,3295727457)}),e._v(" "),i("el-table-column",{attrs:{prop:"ReadingTaskState",label:e.$t("trials:readTask:table:readingTaskState"),"min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[2===t.row.ReadingTaskState?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ReadingTaskState",t.row.ReadingTaskState)))]):i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ReadingTaskState",t.row.ReadingTaskState)))])]}}],null,!1,2667573932)}),e._v(" "),i("el-table-column",{attrs:{prop:"OptType",label:e.$t("trials:readTask:table:optType"),"min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.OptType?i("el-tag",{attrs:{type:"primary"}},[e._v(e._s(e.$fd("ReReadingOrBackOptType",t.row.OptType)))]):e._e(),e._v(" "),1===t.row.OptType?i("el-tag",{attrs:{type:"danger"}},[e._v(e._s(e.$fd("ReReadingOrBackOptType",t.row.OptType)))]):e._e(),e._v(" "),2===t.row.OptType?i("el-tag",{attrs:{type:"warning"}},[e._v(e._s(e.$fd("ReReadingOrBackOptType",t.row.OptType)))]):e._e()]}}],null,!1,2995316527)}),e._v(" "),i("el-table-column",{attrs:{prop:"UserName",label:e.$t("trials:readTask:table:reader"),"min-width":"160","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return t.row.DoctorUser?[e._v("\n "+e._s(t.row.DoctorUser.UserName)+"("+e._s(t.row.DoctorUser.FullName)+")\n ")]:void 0}}],null,!0)})],1)],1),e._v(" "),"read"===e.opentype?i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{disabled:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){e.ReReadingOrBackVisible=!1}}},[e._v("\n "+e._s(e.$t("common:button:cancel"))+"\n ")]),e._v(" "),i("el-button",{attrs:{loading:e.btnLoading,size:"small",type:"primary"},on:{click:function(t){return e.confirmSign(1)}}},[e._v("\n "+e._s(e.$t("common:button:save"))+"\n ")])],1):e._e()]):e._e(),e._v(" "),i("el-dialog",{attrs:{"destroy-on-close":!0,visible:e.signVisible,"close-on-click-modal":!1,width:"600px","custom-class":"base-dialog-wrapper"},on:{"update:visible":function(t){e.signVisible=t}}},[i("div",{attrs:{slot:"title"},slot:"title"},[i("span",{staticStyle:{"font-size":"18px"}},[e._v(e._s(e.$t("common:dialogTitle:sign")))]),e._v(" "),i("span",{staticStyle:{"font-size":"12px","margin-left":"5px"}},[e._v(e._s("("+e.$t("common:label:sign")+e.currentUser+")"))])]),e._v(" "),i("SignForm",{ref:"signForm",attrs:{"sign-code-enum":e.signCode},on:{closeDialog:e.closeSignDialog}})],1)],1)],2)},a=[],r=i("db72"),o=i("3e42"),s=i("958c"),l=i("6071"),c=i("333d"),u=i("5f87"),d=i("a599"),f=i("7a9e"),h=i("179b"),p=function(){return{PageIndex:1,PageSize:20,Asc:!0,SortField:"",TrialId:null,SiteId:null,SubjectId:null,SubjectCode:null,IsUrgent:null,TaskName:null,TaskState:null,DoctorUserId:null,ReadingCategory:null,TaskAllocationState:null,BeginAllocateDate:null,EndAllocateDate:null,RootReReadingTaskId:null}},m={name:"TrialsNotice",components:{BaseContainer:l["default"],Pagination:c["default"],SignForm:h["default"]},data:function(){return{searchData:p(),ReReadingOrBackVisible:!1,signVisible:!1,InfluenceTaskList:[],maxLength:0,list:[],siteOptions:[],total:0,opentype:null,currentUser:zzSessionStorage.getItem("userName"),signCode:null,SubjectAssignListTotal:0,loading:!1,AllocationConfigVisible:!1,ConfirmReReadingForm:{RequestReReadingRejectReason:null},rules:{RequestReReadingRejectReason:[{required:!0,message:this.$t("common:ruleMessage:specify"),trigger:"blur"}]},ConfirmReReadingVisible:!1,taskAllocationRuleVisible:!1,AutoAlloctionVisible:!1,manualAllocationVisible:!1,trialId:this.$route.query.trialId,currentData:{},param:{},DoctorUserList:[],TaskAllocationRuleList:[],btnLoading:!1,value:!0,value1:!0,TrialTaskInfo:{TrialId:null,TaskAllocateObjEnum:0,FollowVisitAutoAssignDefaultState:0,FollowGlobalVisitAutoAssignDefaultState:0,TaskAllocateDefaultState:1},title:"",rowData:{},timeList:[],SubjectAssignList:[],SubjectAssignSelectList:[],TaskAllocationRuleSelectList:[],readVisible:!1,TaskOptType:null,OtherInfo:null,ReadingType:null}},mounted:function(){this.$route.query.SiteId&&(this.searchData.SiteId=this.$route.query.SiteId,this.searchData.SubjectCode=this.$route.query.SubjectCode,this.searchData.TaskName=this.$route.query.TaskName,this.searchData.DoctorUserId=this.$route.query.DoctorUserId,Object(d["a"])("SiteId",""),Object(d["a"])("SubjectCode",""),Object(d["a"])("TaskName",""),Object(d["a"])("DoctorUserId","")),this.getList(),this.getSite(),this.getDoctorUserSelectList()},methods:{getInfluencedTaskList:function(e){var t=this;this.loading=!0,this.opentype="look",this.rowData=Object(r["a"])({},e),Object(s["D"])(e.OriginalReReadingTaskId).then((function(e){t.InfluenceTaskList=e.Result,t.ReReadingOrBackVisible=!0,t.loading=!1}))},openReReadingOrBackList:function(e){var t=this;this.loading=!0,this.opentype="read",this.rowData=Object(r["a"])({},e),Object(s["H"])(e.OriginalReReadingTaskId,!0,e.Id).then((function(e){t.InfluenceTaskList=e.Result,t.ReReadingOrBackVisible=!0,t.loading=!1})).catch((function(){t.loading=!1}))},lookReadingResults:function(e){var t=Object(u["a"])(),i=this.$router.resolve({path:"/noneDicomReading?subjectId=".concat(e.SubjectId,"&trialId=").concat(e.TrialId,"&visitTaskId=").concat(e.NewReReadingTaskId,"&TokenKey=").concat(t)});window.open(i.href,"_blank")},confirmSign:function(e){var t=f["default"].processSignature.HeavyReadingApproval;this.type=e,this.signCode=t,this.signVisible=!0},closeSignDialog:function(e,t){e?this.confirmReReading(this.rowData,this.type,!1,t):this.signVisible=!1},confirmReReading:function(e,t,i,n){var a=this;if(i)return this.rowData=Object(r["a"])({},e),this.ConfirmReReadingVisible=!0,void(this.ConfirmReReadingForm={RequestReReadingRejectReason:null});if(2!==t){var o={data:{ConfirmReReadingList:[{Id:e.Id,OriginalReReadingTaskId:e.OriginalReReadingTaskId,RootReReadingTaskId:e.RootReReadingTaskId,NewReReadingTaskId:e.NewReReadingTaskId}],TrialId:this.$route.query.trialId,RequestReReadingResultEnum:t},signInfo:n};this.loading=!0,this.btnLoading=!0,Object(s["q"])(o).then((function(){a.loading=!1,a.btnLoading=!1,a.$message.success("".concat(1===t?a.$t("trials:spmAudit:title:title4"):a.$t("trials:spmAudit:title:title5"))),a.ReReadingOrBackVisible=!1,a.$refs["signForm"].btnLoading=!1,a.signVisible=!1,a.getList()})).catch((function(){a.$refs["signForm"].btnLoading=!1,a.loading=!1,a.btnLoading=!1}))}else this.$refs.reasonForm.validate((function(i){if(i){var r={data:{ConfirmReReadingList:[{Id:e.Id,OriginalReReadingTaskId:e.OriginalReReadingTaskId,RootReReadingTaskId:e.RootReReadingTaskId,NewReReadingTaskId:e.NewReReadingTaskId}],RequestReReadingRejectReason:a.ConfirmReReadingForm.RequestReReadingRejectReason,TrialId:a.$route.query.trialId,RequestReReadingResultEnum:t},signInfo:n};a.loading=!0,a.btnLoading=!0,Object(s["q"])(r).then((function(){a.loading=!1,a.btnLoading=!1,a.$message.success("".concat(1===t?a.$t("trials:spmAudit:title:title4"):a.$t("trials:spmAudit:title:title5"))),a.getList(),a.ConfirmReReadingVisible=!1,a.$refs["signForm"].btnLoading=!1,a.signVisible=!1})).catch((function(){a.$refs["signForm"].btnLoading=!1,a.loading=!1,a.btnLoading=!1}))}}))},changeTimeList:function(){this.timeList?(this.searchData.BeginAllocateDate=this.timeList[0],this.searchData.EndAllocateDate=this.timeList[1]):(this.searchData.BeginAllocateDate=null,this.searchData.EndAllocateDate=null)},getDoctorUserSelectList:function(){var e=this;Object(s["A"])(this.$route.query.trialId).then((function(t){e.DoctorUserList=t.Result,e.DoctorUserList.length>0&&(e.ReadingType=e.DoctorUserList[0].ReadingType)}))},getList:function(){var e=this;this.searchData.TrialId=this.$route.query.trialId,this.loading=!0,Object(s["K"])(this.searchData).then((function(t){e.loading=!1,e.OtherInfo=t.OtherInfo,e.list=t.Result.CurrentPageData,e.total=t.Result.TotalCount})).catch((function(){e.loading=!1}))},handleSearch:function(){this.searchData.PageIndex=1,this.getList()},handleReset:function(){this.searchData=p(),this.getList()},getSite:function(){var e=this;Object(o["Zd"])(this.trialId).then((function(t){e.siteOptions=t.Result}))},handleSortChange:function(e){"ascending"===e.order?this.searchData.Asc=!0:this.searchData.Asc=!1,this.searchData.SortField=e.prop,this.searchData.PageIndex=1,this.getList()}}},g=m,v=(i("3075"),i("2877")),b=Object(v["a"])(g,n,a,!1,null,"c5bdf494",null);t["default"]=b.exports}}]);