UNPKG

xc-workflow-ui

Version:

基于vant二次封装工作流组件库

1 lines 354 kB
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("vue"),require("dayjs"),require("js-audio-recorder"),require("lamejs"),require("xczg-map")):"function"==typeof define&&define.amd?define(["vue",,,,],e):"object"==typeof exports?exports["xc-workflow-ui"]=e(require("vue"),require("dayjs"),require("js-audio-recorder"),require("lamejs"),require("xczg-map")):t["xc-workflow-ui"]=e(t.Vue,t.dayjs,t["js-audio-recorder"],t.lamejs,t["xczg-map"])}(self,((__WEBPACK_EXTERNAL_MODULE__1895__,__WEBPACK_EXTERNAL_MODULE__4553__,__WEBPACK_EXTERNAL_MODULE__5278__,__WEBPACK_EXTERNAL_MODULE__4130__,__WEBPACK_EXTERNAL_MODULE__1359__)=>(()=>{var __webpack_modules__={5291:(t,e,r)=>{var n={"./add_pic.png":9573,"./audio.png":2796,"./audio_icon.png":745,"./location-text-prefix.png":8909,"./location_blue.png":1407,"./voice1.png":9844,"./voice2.png":1285,"./voice_play.png":392};function i(t){var e=o(t);return r(e)}function o(t){if(!r.o(n,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return n[t]}i.keys=function(){return Object.keys(n)},i.resolve=o,t.exports=i,i.id=5291},6568:t=>{"use strict";function e(){return e=Object.assign?Object.assign.bind():function(t){for(var e,r=1;r<arguments.length;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},e.apply(this,arguments)}var r=["attrs","props","domProps"],n=["class","style","directives"],i=["on","nativeOn"],o=function(t,e){return function(){t&&t.apply(this,arguments),e&&e.apply(this,arguments)}};t.exports=function(t){return t.reduce((function(t,a){for(var s in a)if(t[s])if(-1!==r.indexOf(s))t[s]=e({},t[s],a[s]);else if(-1!==n.indexOf(s)){var c=t[s]instanceof Array?t[s]:[t[s]],l=a[s]instanceof Array?a[s]:[a[s]];t[s]=[].concat(c,l)}else if(-1!==i.indexOf(s))for(var u in a[s])if(t[s][u]){var h=t[s][u]instanceof Array?t[s][u]:[t[s][u]],f=a[s][u]instanceof Array?a[s][u]:[a[s][u]];t[s][u]=[].concat(h,f)}else t[s][u]=a[s][u];else if("hook"===s)for(var d in a[s])t[s][d]=t[s][d]?o(t[s][d],a[s][d]):a[s][d];else t[s]=a[s];else t[s]=a[s];return t}),{})}},8219:(t,e,r)=>{"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function i(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(o=i.key,a=void 0,a=function(t,e){if("object"!==n(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!==n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(o,"string"),"symbol"===n(a)?a:String(a)),i)}var o,a}function o(t,e,r){!function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t,e),e.set(t,r)}function a(t,e){return function(t,e){if(e.get)return e.get.call(t);return e.value}(t,c(t,e,"get"))}function s(t,e,r){return function(t,e,r){if(e.set)e.set.call(t,r);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=r}}(t,c(t,e,"set"),r),r}function c(t,e,r){if(!e.has(t))throw new TypeError("attempted to "+r+" private field on non-instance");return e.get(t)}r.d(e,{Q:()=>h});var l=new WeakMap,u=new WeakMap,h=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),o(this,l,{writable:!0,value:void 0}),o(this,u,{writable:!0,value:function(t,e){var r=t.data,n=t.code,i=t.success,o=t.msg,a=!0;return 200===n&&i||(a=!a),!a&&console.warn(o||"response parse error while using default response handle!"),a?r:e}})}var e,r,n;return e=t,(r=[{key:"registerCustomHandle",value:function(t){var e=!1;return"function"==typeof t&&(e=!0,s(this,l,t)),e}},{key:"handleResponse",value:function(t,e){return"function"==typeof a(this,l)?a(this,l).call(this,t):a(this,u).call(this,t,e)}}])&&i(e.prototype,r),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}()},4592:(t,e,r)=>{"use strict";function n(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==e);c=!0);}catch(t){l=!0,i=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,e)}(t,e)||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 i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}r.d(e,{Hl:()=>d,Ih:()=>a,JT:()=>h,Jx:()=>f,TD:()=>o,an:()=>s,ey:()=>l,kl:()=>p,u7:()=>u,xd:()=>c});var o=function(t){return function(e){e.component(t.name,t)}},a=function(t){return{type:String,required:arguments.length>1&&void 0!==arguments[1]&&arguments[1],default:t||""}},s=function(t){return{type:Number,required:arguments.length>1&&void 0!==arguments[1]&&arguments[1],default:t||0}},c=function(t){return{type:Boolean,required:arguments.length>1&&void 0!==arguments[1]&&arguments[1],default:t||!1}},l=function(t){return{type:Function,required:arguments.length>1&&void 0!==arguments[1]&&arguments[1],default:t||function(){}}},u=function(t){return{type:Array,required:arguments.length>1&&void 0!==arguments[1]&&arguments[1],default:t||[]}},h=function(t){return t.sort((function(t,e){return t.propertyOrder?e.propertyOrder?t.propertyOrder-e.propertyOrder:-1:1}))},f=function(t){var e=[];return t.forEach((function(t,r){var i=n(t,1)[0],o=i.groupOrder,a=i.groupName;e.push({groupOrder:o,groupName:a})})),e.sort((function(t,e){return t.groupOrder?e.groupOrder?t.groupOrder-e.groupOrder:-1:1})).map((function(e){var r=e.groupName;return[r,h(t.get(r))]}))},d="其他信息",p="基本信息"},5891:(t,e,r)=>{"use strict";r.d(e,{EX:()=>l,Eq:()=>c,JR:()=>s,ml:()=>a});var n=r(4130),i=r.n(n),o=new RegExp("[`~!@#$^&*(){}':;',\\[\\]《》/?~!@#¥……&*()|{}【】‘;:”“'。,、?]"),a=function(t){return o.test(t)},s=function(t){t=Math.round(t);var e=parseInt(t/60/60%24);e=e<10?"0"+e:e;var r=parseInt(t/60%60);r=r<10?"0"+r:r;var n=parseInt(t%60);return e+":"+r+":"+(n=n<10?"0"+n:n)},c=function(t,e){for(var r=i().WavHeader.readHeader(t),n=r.channels,o=r.sampleRate,a=new(i().Mp3Encoder)(n,o,128),s=e.getChannelData(),c=[],l=s.left&&new Int16Array(s.left.buffer,0,s.left.byteLength/2),u=s.right&&new Int16Array(s.right.buffer,0,s.right.byteLength/2),h=l.length+(u?u.length:0),f=1152,d=0;d<h;d+=f){var p=l.subarray(d,d+f),m=null,v=null;2===n?(m=u.subarray(d,d+f),(v=a.encodeBuffer(p,m)).length>0&&c.push(v)):(v=a.encodeBuffer(p)).length>0&&c.push(v)}var y=a.flush();y.length>0&&c.push(y);var g=new Blob(c,{type:"audio/mp3"});return new File([g],(new Date).getTime()+".mp3")},l=","},1380:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Co:()=>parseCompParam,fP:()=>getOrderedComponentConfig,g7:()=>getComponentProps});var _component__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(4592);function _typeof(t){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}function _toConsumableArray(t){return _arrayWithoutHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}function ownKeys(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(r),!0).forEach((function(e){_defineProperty(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function _defineProperty(t,e,r){return(e=_toPropertyKey(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _toPropertyKey(t){var e=_toPrimitive(t,"string");return"symbol"===_typeof(e)?e:String(e)}function _toPrimitive(t,e){if("object"!==_typeof(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function _toArray(t){return _arrayWithHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableRest()}function _iterableToArray(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _nonIterableRest(){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 _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(t,e):void 0}}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function _iterableToArrayLimit(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==e);c=!0);}catch(t){l=!0,i=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}function _arrayWithHoles(t){if(Array.isArray(t))return t}var generateComponentName=function(t){var e=t.charAt(0).toUpperCase();return"Xc".concat(e).concat(t.slice(1))},CollectComponentName={field:generateComponentName("textarea"),linkSelect:generateComponentName("linkSelect"),actionSheet:generateComponentName("actionSheet"),datepicker:generateComponentName("datepicker"),uploader:generateComponentName("uploader"),recordAudio:generateComponentName("recordAudio"),location:generateComponentName("location"),cascader:generateComponentName("cascader"),radio:generateComponentName("radio"),checkbox:generateComponentName("checkbox"),select:generateComponentName("select"),userSelect:generateComponentName("userSelect")},parseCompParam=function(t){return t.split(";").filter(Boolean).reduce((function(t,e){var r=_slicedToArray(e.split(":"),2),n=r[0],i=r[1];switch(n){case"maxSize":i=1024*(i?Number.parseInt(i):5)*1024;break;case"maxLength":i=i?Number.parseInt(i):200;break;case"showLimit":n="showWordLimit",i="true"===i;break;case"max":i=i?Number.parseInt(i):1/0;break;case"min":i=i?Number.parseInt(i):-1/0;break;case"format":var o=_toArray(e.split(":"));o[0];i=o.slice(1).join(":")}return _objectSpread(_objectSpread({},t),{},_defineProperty({},n,i))}),{})},getComponentProps=function getComponentProps(conf,props,form){var componentType=conf.componentType,propertyName=conf.propertyName,isRequired=conf.isRequired,comment=conf.comment,validateRule=conf.validateRule,validateMessage=conf.validateMessage,required=!!isRequired,formFieldProps=_objectSpread(_objectSpread({name:propertyName,label:comment,border:!1,required},props),{},{placeholder:props.placeholder||"请".concat(["input","texterea","textarea"].includes(componentType)?"输入":"点击选择").concat(comment),rules:[{required,pattern:eval(validateRule||""),message:function(t,e){return validateMessage||"必填项"}}]}),name="",extra={};switch(componentType){case"input":case"texterea":case"textarea":name=CollectComponentName.field;var storageKey=props.storageKey,fromStorage=props.fromStorage,readonly=props.readonly;extra={fromStorage:!(!fromStorage||"1"!==fromStorage),storageKey,readonly:!!readonly};break;case"date":case"daterange":name=CollectComponentName.datepicker;var compType=props.compType,valueFormat=props.valueFormat,format=props.format,type=props.type,formatFromConf=format||valueFormat;extra={type:type||compType||"date",format:"string"==typeof formatFromConf&&formatFromConf?formatFromConf.replaceAll("y","Y").replaceAll("d","D"):"YYYY-MM-DD"};break;case"select":name=CollectComponentName.select;break;case"actionsheet":name=CollectComponentName.actionSheet;var hideSearch=props.hideSearch;extra={hideSearch:"1"===hideSearch};break;case"linkSelect":case"regionselect":name=CollectComponentName.linkSelect,"regionselect"===componentType&&(extra={selectType:!0});break;case"xc-voice":name=CollectComponentName.recordAudio;break;case"file":name=CollectComponentName.uploader,extra={id:conf.id};break;case"cascader":name=CollectComponentName.cascader;break;case"custommap":name=CollectComponentName.location;var jd=form.jd,wd=form.wd,gridApi=props.gridApi;if(jd&&wd&&(extra={jd,wd}),gridApi&&"string"==typeof gridApi){var _gridApi$split=gridApi.split("|"),_gridApi$split2=_slicedToArray(_gridApi$split,2),on=_gridApi$split2[0],outGridTip=_gridApi$split2[1];"on"===on&&(extra=_objectSpread(_objectSpread({},extra),{},{outGridTip}))}break;case"radio":name=CollectComponentName.radio;break;case"checkbox":name=CollectComponentName.checkbox,extra={selectCount:Number.parseInt(props.selectCount)};break;case"userSelect":name=CollectComponentName.userSelect;break;default:console.warn("fieldName: ".concat(propertyName," type: ").concat(componentType," not currently supported"))}return{name,propertyName,baseProps:_objectSpread(_objectSpread({},formFieldProps),extra)}},getOrderedComponentConfig=function(t){var e=t.reduce((function(t,e){var r=e.groupName;return r===_component__WEBPACK_IMPORTED_MODULE_0__.kl?t.mainGroupUnordered.push(e):r!==_component__WEBPACK_IMPORTED_MODULE_0__.Hl&&r?t.customGroupUnordered.has(r)?t.customGroupUnordered.get(r).push(e):t.customGroupUnordered.set(r,[e]):t.defaultGroupUnordered.push(e),t}),{mainGroupUnordered:[],defaultGroupUnordered:[],customGroupUnordered:new Map}),r=e.mainGroupUnordered,n=e.customGroupUnordered,i=(e.mediaGroupUnordered,e.defaultGroupUnordered);return[].concat(_toConsumableArray((0,_component__WEBPACK_IMPORTED_MODULE_0__.JT)(r)),_toConsumableArray((0,_component__WEBPACK_IMPORTED_MODULE_0__.Jx)(n).map((function(t){var e=_slicedToArray(t,2);e[0];return e[1]})).flat(1)),_toConsumableArray((0,_component__WEBPACK_IMPORTED_MODULE_0__.JT)(i)))}},6925:(t,e,r)=>{"use strict";r.d(e,{default:()=>C});var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"workflow-collect__container"},[r("div",{staticClass:"workflow-collect__wrapper"},[r("div",{staticClass:"workflow-collect__content"},[r("van-form",{ref:"formInstance"},[t._t("formArea"),t._v(" "),t._l(t.formComponentList,(function(e,n){var i=e.name,o=e.propertyName,a=e.baseProps;return r(i,t._b({key:n,ref:"field_"+o,refInFor:!0,tag:"component",attrs:{visible:t.componentVisibleState[o+"Visible"]},on:{"sync-companion":t.handleSyncCompanion,"notify-sub":t.handleNotifySub,"link-component":t.handleLinkComponent,"diff-date":t.handleDiffDate,"change-button-disabled":function(e){t.buttonDisabled=e}},model:{value:t.form[o],callback:function(e){t.$set(t.form,o,e)},expression:"form[propertyName]"}},"component",a,!1))}))],2)],1)]),t._v(" "),t._t("customContent"),t._v(" "),r("div",{staticClass:"workflow-collect__footer"},[t._t("leftButton",(function(){return[r("van-button",{staticClass:"workflow-collect__footer--clear",attrs:{disabled:t.buttonDisabled,color:"rgb(220, 220, 220)",round:""},on:{click:function(e){return e.preventDefault(),t.clearFormField.apply(null,arguments)}}},[t._v("\n 清空\n ")])]})),t._v(" "),r("van-button",{staticClass:"workflow-collect__footer--submit",attrs:{disabled:t.buttonDisabled,color:"#2c87ff",round:""},on:{click:function(e){return e.preventDefault(),t.submit.apply(null,arguments)}}},[t._v("\n 提交\n ")])],2)],2)};n._withStripped=!0;r(6629);var i=r(5976),o=r(1150),a=(0,i.d)("form"),s=a[0],c=a[1];const l=s({props:{colon:Boolean,disabled:Boolean,readonly:Boolean,labelWidth:[Number,String],labelAlign:String,inputAlign:String,scrollToError:Boolean,validateFirst:Boolean,errorMessageAlign:String,submitOnEnter:{type:Boolean,default:!0},validateTrigger:{type:String,default:"onBlur"},showError:{type:Boolean,default:!0},showErrorMessage:{type:Boolean,default:!0}},provide:function(){return{vanForm:this}},data:function(){return{fields:[]}},methods:{getFieldsByNames:function(t){return t?this.fields.filter((function(e){return-1!==t.indexOf(e.name)})):this.fields},validateSeq:function(t){var e=this;return new Promise((function(r,n){var i=[];e.getFieldsByNames(t).reduce((function(t,e){return t.then((function(){if(!i.length)return e.validate().then((function(t){t&&i.push(t)}))}))}),Promise.resolve()).then((function(){i.length?n(i):r()}))}))},validateFields:function(t){var e=this;return new Promise((function(r,n){var i=e.getFieldsByNames(t);Promise.all(i.map((function(t){return t.validate()}))).then((function(t){(t=t.filter((function(t){return t}))).length?n(t):r()}))}))},validate:function(t){return t&&!Array.isArray(t)?this.validateField(t):this.validateFirst?this.validateSeq(t):this.validateFields(t)},validateField:function(t){var e=this.fields.filter((function(e){return e.name===t}));return e.length?new Promise((function(t,r){e[0].validate().then((function(e){e?r(e):t()}))})):Promise.reject()},resetValidation:function(t){t&&!Array.isArray(t)&&(t=[t]),this.getFieldsByNames(t).forEach((function(t){t.resetValidation()}))},scrollToField:function(t,e){this.fields.some((function(r){return r.name===t&&(r.$el.scrollIntoView(e),!0)}))},addField:function(t){this.fields.push(t),(0,o.e)(this.fields,this)},removeField:function(t){this.fields=this.fields.filter((function(e){return e!==t}))},getValues:function(){return this.fields.reduce((function(t,e){return t[e.name]=e.formValue,t}),{})},onSubmit:function(t){t.preventDefault(),this.submit()},submit:function(){var t=this,e=this.getValues();this.validate().then((function(){t.$emit("submit",e)})).catch((function(r){t.$emit("failed",{values:e,errors:r}),t.scrollToError&&t.scrollToField(r[0].name)}))}},render:function(){return(0,arguments[0])("form",{class:c(),on:{submit:this.onSubmit}},[this.slots()])}});r(4908);var u=r(5791),h=r(4592),f=r(1380),d=r(1940),p=r(4553),m=r.n(p),v=r(8219);function y(t){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},y(t)}function g(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==e);c=!0);}catch(t){l=!0,i=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return b(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return b(t,e)}(t,e)||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 b(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function A(){A=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var o=e&&e.prototype instanceof g?e:g,a=Object.create(o.prototype),s=new P(n||[]);return i(a,"_invoke",{value:C(t,r,s)}),a}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var f="suspendedStart",d="suspendedYield",p="executing",m="completed",v={};function g(){}function b(){}function w(){}var x={};l(x,a,(function(){return this}));var S=Object.getPrototypeOf,k=S&&S(S(T([])));k&&k!==r&&n.call(k,a)&&(x=k);var _=w.prototype=g.prototype=Object.create(x);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,o,a,s){var c=h(t[i],t,o);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==y(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function C(e,r,n){var i=f;return function(o,a){if(i===p)throw new Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===f)throw i=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=p;var l=h(e,r,n);if("normal"===l.type){if(i=n.done?m:d,l.arg===v)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=m,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var o=h(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(y(e)+" is not iterable")}return b.prototype=w,i(_,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:b,configurable:!0}),b.displayName=l(w,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,l(t,c,"GeneratorFunction")),t.prototype=Object.create(_),t},e.awrap=function(t){return{__await:t}},E(O.prototype),l(O.prototype,s,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(u(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(_),l(_,c,"Generator"),l(_,a,(function(){return this})),l(_,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=T,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(I),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type="throw",s.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;I(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function w(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,i)}function x(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){w(o,n,i,a,s,"next",t)}function s(t){w(o,n,i,a,s,"throw",t)}a(void 0)}))}}function S(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function k(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?S(Object(r),!0).forEach((function(e){_(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):S(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function _(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==y(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===y(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const E={name:"WorkflowCollect",components:k({VanButton:u.Z,VanForm:l},d.Z),props:{isElder:(0,h.xd)(),explicitProps:{type:Object,default:function(){return{}}},implicitProps:{type:Object,default:function(){return{}}},buttonInfo:{type:Object,default:function(){return{}}},dataLoadApis:{type:Object,required:!0},taskDetail:{type:Object,default:function(){return{}}},userInfo:{type:Object,default:function(){return{}}},taskFieldList:(0,h.u7)(),modelFieldList:(0,h.u7)(),id:(0,h.Ih)(),mapCenter:(0,h.Ih)(),afterLoad:(0,h.ey)(),manuallyChoose:(0,h.xd)(!1),locateFailureTitle:(0,h.Ih)("定位失败,未设置默认地址"),btnId:(0,h.Ih)(""),actionName:(0,h.Ih)(""),afterClear:(0,h.ey)()},provide:function(){var t=this,e=this.dataLoadApis,r=this.mapCenter,n=this.isElder,i=this.manuallyChoose,o=this.locateFailureTitle,a=this.btnId,s=this.actionName,c=this.userInfo;return k(k({mapCenter:r?r.split(","):[],getCurrentForm:function(){return t.form}},e),{},{isElder:n,manuallyChoose:i,userInfo:c,locateFailureTitle:o,btnId:a,actionName:s})},data:function(){return{shadowFields:{},showFields:{},isEcho:!1,formComponentList:[],form:{},componentVisibleState:{},buttonLoading:!1,buttonDisabled:!1}},methods:{handleDiffDate:function(t){var e=this;return x(A().mark((function r(){var n,i,o,a,s,c,l,u,h,f,d;return A().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n=t.diff,i=t.period,o=t.calcType,a=t.name,s=e.form,c=e.dataLoadApis.getDurTime,s[n]&&s[a]&&"function"==typeof c){r.next=4;break}return r.abrupt("return");case 4:return l=m()("start"===o?s[a]:s[n]),u=m()("end"===o?s[a]:s[n]),h=s.applyType||null,f="YYYY-MM-DD HH:mm:ss",r.t0=new v.Q,r.next=11,c({startTime:l.format(f),endTime:u.format(f),applyType:h});case 11:r.t1=r.sent,d=r.t0.handleResponse.call(r.t0,r.t1,0),e.form[i]=d;case 14:case"end":return r.stop()}}),r)})))()},handleLinkComponent:function(t){var e=t.hiddenFields,r=t.showFields,n=this.componentVisibleState;e.forEach((function(t){n["".concat(t,"Visible")]=!1})),r.forEach((function(t){n["".concat(t,"Visible")]=!0}))},baseInit:function(){var t=this;this.formComponentList=this.getFormComponentList((0,f.fP)(this.modelFieldList)).filter((function(t){return t.name})),this.form=this.formComponentList.reduce((function(e,r){var n=r.propertyName,i=r.baseProps.defaultValue;return k(k({},e),{},_({},n,t.taskDetail[n]||t.implicitProps[n]||i||""))}),{}),this.componentVisibleState=Object.keys(this.form).reduce((function(t,e){return k(k({},t),{},_({},"".concat(e,"Visible"),!0))}),{})},getFormComponentList:function(t){var e=this,r=["id","createUser","createTime","createDept","updateUser","updateTime","status","isDeleted"];return t.filter((function(t){var e=t.isForm,n=t.propertyName;return!r.includes(n)&&1===e})).map((function(t){var r=t.propertyName,n=t.defaultValue,i=(t.componentType,t.dictCode),o=t.isCache,a=t.componentParameter,s=n||"",c=a?(0,f.Co)(a):{},l=!0,u="",h=c.cacheObj,d=c.cacheKey,p=c.once,m=c.shadow;if(h&&d){var v=localStorage.getItem(h);u=(v?JSON.parse(v):{})[d]}else d&&(u=localStorage.getItem(d));return e.showFields[r]&&e.isEcho&&(u=e.showFields[r]),1===Number.parseInt(o)&&e.isContinueSubmit&&(u=e.cacheForm[r]),1===Number.parseInt(p)&&(l=!1),1!==Number.parseInt(m)||e.shadowFields[r]||(e.shadowFields[r]=u||s),(0,f.g7)(t,k({editable:l,dictCode:i,defaultValue:s},c),e.taskDetail)}))},handleSyncCompanion:function(t){var e=t.key,r=t.val;this.form=k(k({},this.form),{},_({},e,r))},handleNotifySub:function(t){var e=this,r=t.fields,n=t.id,i=t.clearOthers;r.forEach((function(t,r){var o=e.$refs["field_".concat(t)];if(r){if(i&&Array.isArray(o)){g(o,1)[0].reset()}}else Array.isArray(o)?g(o,1)[0].loadOptions(n,i):o&&o.loadOptions(n)}))},submit:function(){var t=this;return x(A().mark((function e(){var r,n;return A().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,r=t.$refs.formInstance,n=t.formComponentList,e.next=4,r.validate(n.map((function(t){return t.propertyName})));case 4:t.$emit("submit",k({},t.form)),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),t.$emit("failed",e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})))()},clearFormField:function(){var t=this.form;this.form=Object.keys(t).reduce((function(t,e){return k(k({},t),{},_({},e,""))}),{}),"function"==typeof this.afterClear&&this.afterClear()}},mounted:function(){this.baseInit(),"function"==typeof this.afterLoad&&this.afterLoad()}};const O=(0,r(1900).Z)(E,n,[],!1,null,"2d20c11e",null).exports;O.install=(0,h.TD)(O);const C=O},9794:(t,e,r)=>{"use strict";r.d(e,{default:()=>N});var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"workflow-detail__container"},[r("van-tabs",{attrs:{color:"#428FFC"},model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},[r("van-tab",{attrs:{title:"事件信息"}},[r("van-skeleton",{attrs:{loading:t.loading,row:5}},[r("div",{staticClass:"workflow-detail__wrapper"},[r("div",{staticClass:"group-card__wrapper group-main-card"},[r("div",{staticClass:"group-card__title"},[r("span",[t._v(" 基本信息 ")]),t._v(" "),t.taskDetail.timeStatus?r("div",{staticClass:"status_tag"},[r("div",{staticClass:"status_tag-icon",style:{backgroundColor:t.status.color+"4D"}},[r("van-icon",{attrs:{color:t.status.color,name:t.status.name,size:"12"}})],1),t._v(" "),r("span",{style:{color:t.status.color}},[t._v("\n "+t._s(t.status.text)+"\n ")])]):t._e()]),t._v(" "),r("span",[t._v(" SJBH "+t._s(t.taskDetail.id)+" ")]),t._v(" "),t._l(t.workflowGroups.mainGroup,(function(e,n){var i=e.comment,o=e.propertyName;return r("div",{key:n,staticClass:"card-text"},[r("span",[t._v(" "+t._s(i)+" ")]),t._v(" "),r("span",[t._v("\n "+t._s(t.transformData.get(o)||t.taskDetail[o]||"暂无数据")+"\n ")])])}))],2),t._v(" "),t._l(t.workflowGroups.customGroup,(function(e,n){var i=e[0],o=e[1];return r("div",{key:""+i+n,staticClass:"group-card__wrapper group-custom-card"},[r("span",{staticClass:"group-card__title"},[t._v(" "+t._s(i)+" ")]),t._v(" "),t._l(o,(function(e,n){var i=e.comment,o=e.propertyName;return r("div",{key:""+i+o+n,staticClass:"card-text"},[r("span",[t._v(" "+t._s(i)+" ")]),t._v(" "),r("span",[t._v("\n "+t._s(t.transformData.get(o)||t.taskDetail[o]||"暂无数据")+"\n ")])])}))],2)})),t._v(" "),t._l(t.workflowGroups.mediaGroup,(function(e,n){var i=e.comment,o=e.propertyName,a=e.mediaType;return r("div",{key:""+i+n,staticClass:"group-card__wrapper group-media-card"},[r("span",{staticClass:"group-card__title"},[t._v(" "+t._s(i)+" ")]),t._v(" "),["1","2","3"].includes(a)?r("Attachment",{attrs:{"media-type":a,"form-value":t.taskDetail[o]}}):"4"===a?r("xc-audio",{attrs:{"form-value":t.taskDetail[o]}}):"5"===a?r("xc-location",{attrs:{"form-value":t.taskDetail[o],center:t.center,"grid-name":t.taskDetail.gridName,"district-name":t.taskDetail.districtName,"village-name":t.taskDetail.villageName,"town-name":t.taskDetail.townName,"region-name":t.taskDetail.regionName,"grid-code":t.taskDetail.gridCode}}):t._e()],1)}))],2),t._v(" "),t._t("detailFoot")],2)],1),t._v(" "),r("van-tab",{attrs:{title:"办理经过"}},[r("div",{staticClass:"workflow-detail__container workflow-detail__history-container"},t._l(t.historyList,(function(e,n){var i=e.nodeName,o=e.otherHistory,a=e.showOther,s=e.cost,c=e.updateTime,l=e.comment,u=e.assigneeName,h=e.btnDesc,f=e.activeState,d=e.color,p=e.backgroundColor;return r("div",{key:n,staticClass:"history__wrapper",class:"history__wrapper--"+f},[r("div",{staticClass:"history__circle"},["passed"!==f?r("div"):r("van-icon",{attrs:{name:"success",color:"#409eff"}})],1),t._v(" "),r("div",{staticClass:"history__content"},[r("div",{staticClass:"content__status"},[r("div",{staticClass:"tag__wrapper"},[r("span",[t._v(t._s(i)+" ")]),t._v(" "),0===n&&t.status.text?r("span",{staticClass:"content__tag",style:{color:"超期"===t.status.text?"#f56c6c":"#409eff",backgroundColor:"超期"===t.status.text?"#fef0f0":"#ecf5ff",borderColor:"超期"===t.status.text?"#fde2e2":"#d9ecff"}},[t._v(t._s("超期"===t.status.text?"超期":"进行中"))]):t._e()]),t._v(" "),0!==n&&s?r("span",{staticClass:"content__status-cost"},[t._v(t._s("用时:"+s))]):t._e()]),t._v(" "),r("div",{staticClass:"content__current"},[r("div",{staticClass:"tag__wrapper"},[r("span",[t._v(t._s(u))]),t._v(" "),h?r("span",{staticClass:"content__tag",style:{color:d,backgroundColor:p}},[t._v("\n "+t._s(h)+"\n ")]):t._e()]),t._v(" "),l?r("span",{staticClass:"content__comment"},[t._v("\n "+t._s(l)+"\n ")]):t._e(),t._v(" "),r("span",{staticClass:"content__time"},[t._v("\n "+t._s(c)+"\n ")])])]),t._v(" "),r("div",{directives:[{name:"show",rawName:"v-show",value:a,expression:"showOther"}],staticClass:"history__sub-content"},t._l(o,(function(e,n){var i=e.updateTime,o=e.comment,a=e.assigneeName,s=e.btnDesc,c=e.color,l=e.backgroundColor,u=e.nodeName;return r("div",{key:n,staticClass:"history__sub-content-item"},[r("div",{staticClass:"tag__wrapper"},[r("span",[t._v(t._s(a+"|"+u))]),t._v(" "),s?r("span",{staticClass:"content__tag",style:{color:c,backgroundColor:l}},[t._v(t._s(s))]):t._e()]),t._v(" "),o?r("span",{staticClass:"content__comment"},[t._v("\n "+t._s(o)+"\n ")]):t._e(),t._v(" "),r("span",{staticClass:"content__time"},[t._v("\n "+t._s(i)+"\n ")])])})),0),t._v(" "),o.length?r("span",{staticClass:"content__button",on:{click:function(e){t.historyList[n].showOther=!t.historyList[n].showOther}}},[r("van-icon",{attrs:{name:"arrow-"+(a?"up":"down")}}),t._v("\n "+t._s(a?"收起":"展开"))],1):t._e()])})),0)])],1),t._v(" "),t.buttonConfig.length?r("div",{staticClass:"bottom_toolbar",class:t.isElder&&"bottom_toolbar--elder",on:{click:t.showToolBarOperator}},[r("span",[t._v("操作")]),t._v(" "),t.showOperator?r("div",{staticClass:"button-whole"},t._l(t.buttonConfig.slice(0,5),(function(e){return r("div",{key:e.id,staticClass:"button-aggregate",on:{click:function(r){return r.stopPropagation(),t.buttonClickEvent(e)}}},[r("div",{staticClass:"button-name"},[t._v("\n "+t._s(e.name)+"\n ")]),t._v(" "),e.icon?r("div",{staticClass:"button-icon"},[r("img",{attrs:{src:e.icon}})]):t._e()])})),0):t._e()]):t._e(),t._v(" "),t.showOperator?r("div",{staticClass:"shadow",on:{click:function(e){t.showOperator=!1}}}):t._e()],1)};n._withStripped=!0;var i=r(8219),o=r(4592);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function c(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?s(Object(r),!0).forEach((function(e){l(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function l(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==a(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===a(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var u=["1","2","3","4"],h={taskFields:(0,o.u7)([],!0),taskDetail:{type:Object,required:!0},componentConfig:(0,o.u7)([],!0),buttonConfig:(0,o.u7)([],!0),history:(0,o.u7)([],!0),dictLoadFunc:{type:Function,required:!0},mobileMapSource:(0,o.Ih)(),replaceOperator:{type:Boolean,default:!1},loading:(0,o.xd)(!1),getGridBoundary:(0,o.ey)(),isElder:(0,o.xd)(),color:(0,o.Ih)("rgba(230, 162, 60, 1)")},f=3600,d=86400,p=function(t){var e=Number.parseInt(t);if(Number.isNaN(e)||e<0)return"";var r=function(t,e){return"".concat(t?"".concat(t).concat(e):"")};if(0===e)return r("0","秒");var n=Math.floor(e/d),i=Math.floor((e-n*d)/f),o=Math.floor((e-n*d-i*f)/60),a=e-n*d-i*f-60*o;return"".concat(r(n,"天")).concat(r(i,"时")).concat(r(o,"分")).concat(r(a,"秒"))},m=function(t){var e=function(t){var e=t.taskFieldsData,r=t.modelData,n=t.taskDetailData;return r.filter((function(t){return 1===t.isMobileList})).map((function(t){var r=(e.find((function(e){return e.propertyName===t.propertyName}))||{}).mediaType;return c(c({},t),{},{mediaType:"custommap"===t.componentType?"5":r})})).filter((function(t){var e=t.mediaType,r=t.propertyName,i=!0;return u.includes(e)&&(i=Array.isArray(n[r])&&n[r].length),i})).reduce((function(t,e){var r=e.groupName,n=e.mediaType;return u.includes(n)||"5"===n?(t.mediaGroup.push(e),t):(r||(t.customGroup.has(o.Hl)?t.customGroup.get(o.Hl).push(e):t.customGroup.set(o.Hl,[e])),r===o.kl?t.mainGroup.push(e):r&&(t.customGroup.has(r)?t.customGroup.get(r).push(e):t.customGroup.set(r,[e])),t)}),{customGroup:new Map,mediaGroup:[],mainGroup:[]})}({taskFieldsData:t.taskFieldsData,modelData:t.modelData,taskDetailData:t.taskDetailData}),r=e.customGroup,n=e.mediaGroup,i=e.mainGroup,a=r.get(o.Hl);a&&r.delete(o.Hl);var s=new Map((0,o.Jx)(r));return a&&s.set(o.Hl,(0,o.JT)(a)),{mainGroup:(0,o.JT)(i),mediaGroup:(0,o.JT)(n),customGroup:s}},v=["checkbox","select","actionsheet"],y=r(9899),g=r(9952),b=r(1924),A=r(5891);function w(t){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},w(t)}var x=["color"];function S(){S=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var o=e&&e.prototype instanceof y?e:y,a=Object.create(o.prototype),s=new P(n||[]);return i(a,"_invoke",{value:C(t,r,s)}),a}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var f="suspendedStart",d="suspendedYield",p="executing",m="completed",v={};function y(){}function g(){}function b(){}var A={};l(A,a,(function(){return this}));var x=Object.getPrototypeOf,k=x&&x(x(T([])));k&&k!==r&&n.call(k,a)&&(A=k);var _=b.prototype=y.prototype=Object.create(A);function E(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(i,o,a,s){var c=h(t[i],t,o);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==w(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(u).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function C(e,r,n){var i=f;return function(o,a){if(i===p)throw new Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=j(s,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===f)throw i=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=p;var l=h(e,r,n);if("normal"===l.type){if(i=n.done?m:d,l.arg===v)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=m,n.method="throw",n.arg=l.arg)}}}function j(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var o=h(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(w(e)+" is not iterable")}return g.prototype=b,i(_,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(_),t},e.awrap=function(t){return{__await:t}},E(O.prototype),l(O.prototype,s,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new O(u(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(_),l(_,c,"Generator"),l(_,a,(function(){return this})),l(_,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=T,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(I),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type="throw",s.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;I(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function k(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==e);c=!0);}catch(t){l=!0,i=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(t,e)||L(t,e)||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 _(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function E(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?_(Object(r),!0).forEach((function(e){O(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object