UNPKG

xc-workflow-ui

Version:

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

1 lines 23.2 kB
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("vue")):"function"==typeof define&&define.amd?define(["vue"],e):"object"==typeof exports?exports["xc-workflow-ui"]=e(require("vue")):t["xc-workflow-ui"]=e(t.Vue)}(self,(t=>(()=>{"use strict";var e={6568:t=>{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"],o=["on","nativeOn"],i=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 c in a)if(t[c])if(-1!==r.indexOf(c))t[c]=e({},t[c],a[c]);else if(-1!==n.indexOf(c)){var u=t[c]instanceof Array?t[c]:[t[c]],l=a[c]instanceof Array?a[c]:[a[c]];t[c]=[].concat(u,l)}else if(-1!==o.indexOf(c))for(var s in a[c])if(t[c][s]){var f=t[c][s]instanceof Array?t[c][s]:[t[c][s]],d=a[c][s]instanceof Array?a[c][s]:[a[c][s]];t[c][s]=[].concat(f,d)}else t[c][s]=a[c][s];else if("hook"===c)for(var p in a[c])t[c][p]=t[c][p]?i(t[c][p],a[c][p]):a[c][p];else t[c]=a[c];else t[c]=a[c];return t}),{})}},8219:(t,e,r)=>{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 o(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,(i=o.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 o=r.call(t,e||"default");if("object"!==n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"),"symbol"===n(a)?a:String(a)),o)}var i,a}function i(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,u(t,e,"get"))}function c(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,u(t,e,"set"),r),r}function u(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:()=>f});var l=new WeakMap,s=new WeakMap,f=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),i(this,l,{writable:!0,value:void 0}),i(this,s,{writable:!0,value:function(t,e){var r=t.data,n=t.code,o=t.success,i=t.msg,a=!0;return 200===n&&o||(a=!a),!a&&console.warn(i||"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,c(this,l,t)),e}},{key:"handleResponse",value:function(t,e){return"function"==typeof a(this,l)?a(this,l).call(this,t):a(this,s).call(this,t,e)}}])&&o(e.prototype,r),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}()},4592:(t,e,r)=>{r.d(e,{Ih:()=>o,TD:()=>n,u7:()=>a,xd:()=>i});var n=function(t){return function(e){e.component(t.name,t)}},o=function(t){return{type:String,required:arguments.length>1&&void 0!==arguments[1]&&arguments[1],default:t||""}},i=function(t){return{type:Boolean,required:arguments.length>1&&void 0!==arguments[1]&&arguments[1],default:t||!1}},a=function(t){return{type:Array,required:arguments.length>1&&void 0!==arguments[1]&&arguments[1],default:t||[]}}},6618:(t,e,r)=>{r.d(e,{Or:()=>l});var n=r(4592);function o(t){return o="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},o(t)}function i(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 a(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?i(Object(r),!0).forEach((function(e){c(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function c(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==o(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===o(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={title:{type:String,default:""},propertyName:{type:String,default:""},componentType:{type:String,default:""},formValue:{type:String,default:""}},l=(a(a({},u),{},{fieldName:(0,n.Ih)(""),fromStorage:(0,n.xd)(!1)}),a(a({},u),{},{dictCode:{type:String,default:""}}));a(a({},u),{},{mediaType:(0,n.Ih)("",!0),formValue:(0,n.u7)([],!0)}),a(a({},u),{},{formValue:(0,n.u7)([],!0)}),a(a({},u),{},{center:(0,n.u7)([]),mobileMapSource:(0,n.Ih)(),gridName:(0,n.Ih)(),districtName:(0,n.Ih)(),townName:(0,n.Ih)(),villageName:(0,n.Ih)(),regionName:(0,n.Ih)(),gridCode:(0,n.Ih)()})},2391:()=>{},2293:()=>{},1383:()=>{},6629:()=>{},9233:(t,e,r)=>{r.d(e,{Z:()=>y});var n=r(9592),o=r(6568),i=r.n(o),a=r(5976),c=r(8546),u=r(6122),l=r(7692),s=r(806),f=r(1392),d=(0,a.d)("cell"),p=d[0],v=d[1];function h(t,e,r,n){var o,a=e.icon,s=e.size,d=e.title,p=e.label,h=e.value,y=e.isLink,m=r.title||(0,c.Xq)(d);function g(){if(r.label||(0,c.Xq)(p))return t("div",{class:[v("label"),e.labelClass]},[r.label?r.label():p])}var b=null!=(o=e.clickable)?o:y,w={clickable:b,center:e.center,required:e.required,borderless:!e.border};return s&&(w[s]=s),t("div",i()([{class:v(w),attrs:{role:b?"button":null,tabindex:b?0:null},on:{click:function(t){(0,u.j8)(n,"click",t),(0,l.fz)(n)}}},(0,u.ED)(n)]),[r.icon?r.icon():a?t(f.Z,{class:v("left-icon"),attrs:{name:a,classPrefix:e.iconPrefix}}):void 0,function(){if(m)return t("div",{class:[v("title"),e.titleClass],style:e.titleStyle},[r.title?r.title():t("span",[d]),g()])}(),function(){if(r.default||(0,c.Xq)(h))return t("div",{class:[v("value",{alone:!m}),e.valueClass]},[r.default?r.default():t("span",[h])])}(),function(){var n=r["right-icon"];if(n)return n();if(y){var o=e.arrowDirection;return t(f.Z,{class:v("right-icon"),attrs:{name:o?"arrow-"+o:"arrow"}})}}(),null==r.extra?void 0:r.extra()])}h.props=(0,n.Z)({},s.T,l.g2);const y=p(h)},806:(t,e,r)=>{r.d(e,{T:()=>n});var n={icon:String,size:String,center:Boolean,isLink:Boolean,required:Boolean,iconPrefix:String,titleStyle:null,titleClass:null,valueClass:null,labelClass:null,title:[Number,String],value:[Number,String],label:[Number,String],arrowDirection:String,border:{type:Boolean,default:!0},clickable:{type:Boolean,default:null}}},2355:(t,e,r)=>{r(6629),r(1383),r(2293),r(2391)},1392:(t,e,r)=>{r.d(e,{Z:()=>v});var n=r(6568),o=r.n(n),i=r(5976),a=r(216),c=r(6122),u=r(7937),l=(0,i.d)("icon"),s=l[0],f=l[1];var d={medel:"medal","medel-o":"medal-o","calender-o":"calendar-o"};function p(t,e,r,n){var i,l=function(t){return t&&d[t]||t}(e.name),s=function(t){return!!t&&-1!==t.indexOf("/")}(l);return t(e.tag,o()([{class:[e.classPrefix,s?"":e.classPrefix+"-"+l],style:{color:e.color,fontSize:(0,a.N)(e.size)}},(0,c.ED)(n,!0)]),[r.default&&r.default(),s&&t("img",{class:f("image"),attrs:{src:l}}),t(u.Z,{attrs:{dot:e.dot,info:null!=(i=e.badge)?i:e.info}})])}p.props={dot:Boolean,name:String,size:[Number,String],info:[Number,String],badge:[Number,String],color:String,tag:{type:String,default:"i"},classPrefix:{type:String,default:f()}};const v=s(p)},7937:(t,e,r)=>{r.d(e,{Z:()=>d});var n=r(6568),o=r.n(n),i=r(5976),a=r(8546),c=r(6122),u=(0,i.d)("info"),l=u[0],s=u[1];function f(t,e,r,n){var i=e.dot,u=e.info,l=(0,a.Xq)(u)&&""!==u;if(i||l)return t("div",o()([{class:s({dot:i})},(0,c.ED)(n,!0)]),[i?"":e.info])}f.props={dot:Boolean,info:[Number,String]};const d=l(f)},5976:(t,e,r)=>{function n(t,e){return e?"string"==typeof e?" "+t+"--"+e:Array.isArray(e)?e.reduce((function(e,r){return e+n(t,r)}),""):Object.keys(e).reduce((function(r,o){return r+(e[o]?n(t,o):"")}),""):""}function o(t){return function(e,r){return e&&"string"!=typeof e&&(r=e,e=""),""+(e=e?t+"__"+e:t)+n(e,r)}}r.d(e,{d:()=>b});var i=r(8546),a=r(4873),c={methods:{slots:function(t,e){void 0===t&&(t="default");var r=this.$slots,n=this.$scopedSlots[t];return n?n(e):r[t]}}},u=r(1895),l=r.n(u);function s(t){var e=this.name;t.component(e,this),t.component((0,a._)("-"+e),this)}function f(t){return{functional:!0,props:t.props,model:t.model,render:function(e,r){return t(e,r.props,function(t){var e=t.scopedSlots||t.data.scopedSlots||{},r=t.slots();return Object.keys(r).forEach((function(t){e[t]||(e[t]=function(){return r[t]})})),e}(r),r)}}}function d(t){return function(e){return(0,i.mf)(e)&&(e=f(e)),e.functional||(e.mixins=e.mixins||[],e.mixins.push(c)),e.name=t,e.install=s,e}}var p=Object.prototype.hasOwnProperty;function v(t,e){return Object.keys(e).forEach((function(r){!function(t,e,r){var n=e[r];(0,i.Xq)(n)&&(p.call(t,r)&&(0,i.Kn)(n)?t[r]=v(Object(t[r]),e[r]):t[r]=n)}(t,e,r)})),t}var h=l().prototype,y=l().util.defineReactive;y(h,"$vantLang","zh-CN"),y(h,"$vantMessages",{"zh-CN":{name:"姓名",tel:"电话",save:"保存",confirm:"确认",cancel:"取消",delete:"删除",complete:"完成",loading:"加载中...",telEmpty:"请填写电话",nameEmpty:"请填写姓名",nameInvalid:"请输入正确的姓名",confirmDelete:"确定要删除吗",telInvalid:"请输入正确的手机号",vanCalendar:{end:"结束",start:"开始",title:"日期选择",confirm:"确定",startEnd:"开始/结束",weekdays:["日","一","二","三","四","五","六"],monthTitle:function(t,e){return t+"年"+e+"月"},rangePrompt:function(t){return"选择天数不能超过 "+t+" 天"}},vanCascader:{select:"请选择"},vanContactCard:{addText:"添加联系人"},vanContactList:{addText:"新建联系人"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"释放即可刷新..."},vanSubmitBar:{label:"合计:"},vanCoupon:{unlimited:"无使用门槛",discount:function(t){return t+"折"},condition:function(t){return"满"+t+"元可用"}},vanCouponCell:{title:"优惠券",tips:"暂无可用",count:function(t){return t+"张可用"}},vanCouponList:{empty:"暂无优惠券",exchange:"兑换",close:"不使用优惠券",enable:"可用",disabled:"不可用",placeholder:"请输入优惠码"},vanAddressEdit:{area:"地区",postal:"邮政编码",areaEmpty:"请选择地区",addressEmpty:"请填写详细地址",postalEmpty:"邮政编码格式不正确",defaultAddress:"设为默认收货地址",telPlaceholder:"收货人手机号",namePlaceholder:"收货人姓名",areaPlaceholder:"选择省 / 市 / 区"},vanAddressEditDetail:{label:"详细地址",placeholder:"街道门牌、楼层房间号等信息"},vanAddressList:{add:"新增地址"}}});const m={messages:function(){return h.$vantMessages[h.$vantLang]},use:function(t,e){var r;h.$vantLang=t,this.add(((r={})[t]=e,r))},add:function(t){void 0===t&&(t={}),v(h.$vantMessages,t)}};function g(t){var e=(0,a._)(t)+".";return function(t){for(var r=m.messages(),n=(0,i.U2)(r,e+t)||(0,i.U2)(r,t),o=arguments.length,a=new Array(o>1?o-1:0),c=1;c<o;c++)a[c-1]=arguments[c];return(0,i.mf)(n)?n.apply(void 0,a):n}}function b(t){return[d(t="van-"+t),o(t),g(t)]}},4873:(t,e,r)=>{r.d(e,{_:()=>o});var n=/-(\w)/g;function o(t){return t.replace(n,(function(t,e){return e.toUpperCase()}))}},216:(t,e,r)=>{r.d(e,{N:()=>i});var n=r(8546),o=r(139);function i(t){if((0,n.Xq)(t))return t=String(t),(0,o.k)(t)?t+"px":t}},6122:(t,e,r)=>{r.d(e,{ED:()=>a,j8:()=>c});var n=r(9592),o=(r(1895),["ref","key","style","class","attrs","refInFor","nativeOn","directives","staticClass","staticStyle"]),i={nativeOn:"on"};function a(t,e){var r=o.reduce((function(e,r){return t.data[r]&&(e[i[r]||r]=t.data[r]),e}),{});return e&&(r.on=r.on||{},(0,n.Z)(r.on,t.data.on)),r}function c(t,e){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];var i=t.listeners[e];i&&(Array.isArray(i)?i.forEach((function(t){t.apply(void 0,n)})):i.apply(void 0,n))}},8546:(t,e,r)=>{r.d(e,{Kn:()=>a,U2:()=>c,Xq:()=>o,mf:()=>i});var n=r(1895);r.n(n)().prototype.$isServer;function o(t){return null!=t}function i(t){return"function"==typeof t}function a(t){return null!==t&&"object"==typeof t}function c(t,e){var r=e.split("."),n=t;return r.forEach((function(t){var e;n=a(n)&&null!=(e=n[t])?e:""})),n}},7692:(t,e,r)=>{function n(t){!function(t,e){var r=e.to,n=e.url,o=e.replace;if(r&&t){var i=t[o?"replace":"push"](r);i&&i.catch&&i.catch((function(t){if(t&&!function(t){return"NavigationDuplicated"===t.name||t.message&&-1!==t.message.indexOf("redundant navigation")}(t))throw t}))}else n&&(o?location.replace(n):location.href=n)}(t.parent&&t.parent.$router,t.props)}r.d(e,{fz:()=>n,g2:()=>o});var o={url:String,replace:Boolean,to:[String,Object]}},139:(t,e,r)=>{function n(t){return/^\d+(\.\d+)?$/.test(t)}r.d(e,{k:()=>n})},1900:(t,e,r)=>{function n(t,e,r,n,o,i,a,c){var u,l="function"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=r,l._compiled=!0),n&&(l.functional=!0),i&&(l._scopeId="data-v-"+i),a?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},l._ssrRegister=u):o&&(u=c?function(){o.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:o),u)if(l.functional){l._injectStyles=u;var s=l.render;l.render=function(t,e){return u.call(e),s(t,e)}}else{var f=l.beforeCreate;l.beforeCreate=f?[].concat(f,u):[u]}return{exports:t,options:l}}r.d(e,{Z:()=>n})},1895:e=>{e.exports=t},9592:(t,e,r)=>{function n(){return n=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},n.apply(this,arguments)}r.d(e,{Z:()=>n})}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,n),i.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var o={};return(()=>{n.d(o,{default:()=>d});var t=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"xc-flow-show-cell",class:t.isElder&&"xc-flow-show-cell--elder"},[r("van-cell",{attrs:{"title-class":"xc-flow-show-cell__title","value-class":"xc-flow-show-cell__value",title:t.title,value:t.dictValue}})],1)};t._withStripped=!0;n(2355);var e=n(9233),r=n(6618),i=n(8219);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 c(){c=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},u=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function d(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,a=Object.create(i.prototype),c=new T(n||[]);return o(a,"_invoke",{value:L(t,r,c)}),a}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=d;var v="suspendedStart",h="suspendedYield",y="executing",m="completed",g={};function b(){}function w(){}function x(){}var S={};f(S,u,(function(){return this}));var O=Object.getPrototypeOf,j=O&&O(O(D([])));j&&j!==r&&n.call(j,u)&&(S=j);var E=x.prototype=b.prototype=Object.create(S);function _(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function P(t,e){function r(o,i,c,u){var l=p(t[o],t,i);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"==a(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):e.resolve(f).then((function(t){s.value=t,c(s)}),(function(t){return r("throw",t,c,u)}))}u(l.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function L(e,r,n){var o=v;return function(i,a){if(o===y)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=C(c,n);if(u){if(u===g)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===v)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var l=p(e,r,n);if("normal"===l.type){if(o=n.done?m:h,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=m,n.method="throw",n.arg=l.arg)}}}function C(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,C(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=p(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.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,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function k(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 N(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function D(e){if(e||""===e){var r=e[u];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(a(e)+" is not iterable")}return w.prototype=x,o(E,"constructor",{value:x,configurable:!0}),o(x,"constructor",{value:w,configurable:!0}),w.displayName=f(x,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,f(t,s,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}},_(P.prototype),f(P.prototype,l,(function(){return this})),e.AsyncIterator=P,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new P(d(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},_(E),f(E,s,"Generator"),f(E,u,(function(){return this})),f(E,"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=D,T.prototype={constructor:T,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(N),!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 o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):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),g},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),N(r),g}},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 o=n.arg;N(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:D(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function u(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}const l={name:"XcDict",components:{VanCell:e.Z},inject:["isElder","dictLoadFunc"],props:r.Or,data:function(){return{dictValue:""}},methods:{loadDictValue:function(){var t,e=this;return(t=c().mark((function t(){var r,n,o,a,u,l,s,f;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.propertyName,n=e.dictCode,o=e.formValue,a=e.dictLoadFunc,u="无数据",r&&n&&a&&o){t.next=5;break}return e.dictValue=u,t.abrupt("return");case 5:return t.t0=new i.Q,t.next=8,a(n);case 8:t.t1=t.sent,l=t.t0.handleResponse.call(t.t0,t.t1),s=l.find((function(t){return t.dictKey===o}))||{},f=s.dictValue,e.dictValue=f||u;case 12:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){u(i,n,o,a,c,"next",t)}function c(t){u(i,n,o,a,c,"throw",t)}a(void 0)}))})()}},mounted:function(){this.loadDictValue()}};const s=(0,n(1900).Z)(l,t,[],!1,null,"51d5c010",null).exports;var f=n(4592);s.install=function(t){return(0,f.TD)(s)};const d=s})(),o=o.default})()));