@xysfe/actui
Version:
A fantastic mobile ui lib implement by Vue
1 lines • 11.6 kB
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@xysfe/actui/es/assets/utils/create/index.js"),require("@xysfe/actui/es/assets/mixins/visible.js"),require("@xysfe/actui/es/assets/mixins/popup.js"),require("@xysfe/actui/es/Toast/index.js"),require("@xysfe/actui/es/ClaimsContact/index.js")):"function"==typeof define&&define.amd?define(["@xysfe/actui/es/assets/utils/create/index.js","@xysfe/actui/es/assets/mixins/visible.js","@xysfe/actui/es/assets/mixins/popup.js","@xysfe/actui/es/Toast/index.js","@xysfe/actui/es/ClaimsContact/index.js"],e):"object"==typeof exports?exports.GoldClaimsContact=e(require("@xysfe/actui/es/assets/utils/create/index.js"),require("@xysfe/actui/es/assets/mixins/visible.js"),require("@xysfe/actui/es/assets/mixins/popup.js"),require("@xysfe/actui/es/Toast/index.js"),require("@xysfe/actui/es/ClaimsContact/index.js")):t.GoldClaimsContact=e(t["@xysfe/actui/es/assets/utils/create/index.js"],t["@xysfe/actui/es/assets/mixins/visible.js"],t["@xysfe/actui/es/assets/mixins/popup.js"],t["@xysfe/actui/es/Toast/index.js"],t["@xysfe/actui/es/ClaimsContact/index.js"])}("undefined"!=typeof self?self:this,function(t,e,n,r,o){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="../es",e(e.s=2229)}({0:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},10:function(t,e,n){var r=n(4),o=n(41),i=n(38),a=Object.defineProperty;e.f=n(3)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},109:function(t,e){t.exports=n},12:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},1268:function(t,e,n){"use strict";var r=n(70),o=n.n(r),i=n(40),a=n.n(i),s=n(109),u=n.n(s),c=n(2231),f=n.n(c),l=n(635),p=n.n(l);e.a={name:"ActGoldClaimsContact",mixins:[a.a,u.a],data:function(){return{paramData:null,extParamData:null}},props:{param:{type:Object,default:function(){return{}}},extParam:{type:Object,default:function(){return{}}},brandColor:{type:String,default:"#8c7fee"},btnColor:{type:String,default:"#ff5a6e"},listUrl:{type:String,default:"/UserContact/getContactListsV3"}},computed:{paramValue:function(){return this.paramData||this.param},extParamValue:function(){return this.extParamData||this.extParam},ownInfo:function(){var t=this.paramValue,e=t.scene,n=t.person,r=t.contactId;return this.paramValue.contactId?{contactId:r}:n?{truename:n[e+".cname"],sex:n[e+".sex"],birth:n[e+".birth"],certId:n[e+".id"]}:{}},listParam:function(){return this.extParamValue}},methods:{setData:function(t){var e=t.param,n=t.extParam;this.paramData=e,this.extParamData=n},onConfirm:function(t){var e=this.paramValue,n=e.scene,r=e.site;if(!t)return void this.$emit("confirm",null,r);var i=t.contact_id,a=t.addr,s=t.bank,u=t.birth,c=t.certificate,f=t.detail,l=t.email,p=t.ext1,d=t.mobile,x=t.relation,m=t.sex,v=t.socialins,y=t.truename,h={};if(a){var b={1:"resident",2:"office",3:"socialIns"},j=a[0]||{},_=j.type,C=j.province,g=j.city,O=j.district,w=j.detail,P=j.post,S=b[_]||"";if(C&&g&&O){var E=[C,g,O];h[S+"Addr"]=E}w&&(h[S+"Detail"]=w),P&&(h[S+"Post"]=P)}var T=s&&s[0]||{},I=c&&c[0]||{},V=f||{},M={birth:u,email:l,ext1:p,mobile:d,sex:m,socialins:v,cname:y,contactId:i};"payee"===n&&(M.relationToSurvivor=x);var q=o()({},h,T,I,M,V),$=[],k=["cname","birth","sex","id","idType","mobile","email"],D=void 0;for(var U in q)if(q.hasOwnProperty(U)){var R=q[U];""!==R&&void 0!==R&&null!==R&&("relationToSurvivor"===U&&-1==~~R||(D={key:n+"."+U,value:R,site:r},k.indexOf(U)>-1&&(D.fold=!0),$.push(D)))}this.$emit("confirm",$,r)},onError:function(t){this.$emit("error",t)}},components:{ActClaimsContact:f.a,ActToast:p.a}}},13:function(t,e,n){var r=n(34),o=n(15);t.exports=function(t){return r(o(t))}},14:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},15:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},16:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},17:function(t,e,n){var r=n(19);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},18:function(t,e){t.exports=!0},19:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},2:function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},20:function(t,e,n){var r=n(31)("keys"),o=n(24);t.exports=function(t){return r[t]||(r[t]=o(t))}},22:function(t,e,n){var r=n(6),o=n(0).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},2229:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(26),o=n.n(r),i=n(2230);i.a.install=function(t){t.component(i.a.name,i.a),t.prototype.$createGoldClaimsContact=o()(i.a,t)},e.default=i.a},2230:function(t,e,n){"use strict";var r=n(1268),o=n(2232),i=n(7),a=Object(i.a)(r.a,o.a,o.b,!1,null,null,null);a.options.__file="src\\components\\GoldClaimsContact\\src\\index.vue",e.a=a.exports},2231:function(t,e){t.exports=o},2232:function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return o});var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"act-gold-claims-contact"},[n("act-claims-contact",{attrs:{brandColor:t.brandColor,defaultSelectValue:t.ownInfo,listParam:t.listParam,listUrl:t.listUrl,saveUrl:"/ClaimsV2/saveContact",deleteUrl:"/ClaimsV2/delContact",editable:!0,addable:!0,showDisabled:!0,zIndex:t.zIndex,maskClosable:!0},on:{confirm:t.onConfirm,error:t.onError},model:{value:t.isVisible,callback:function(e){t.isVisible=e},expression:"isVisible"}}),t._v(" "),n("act-toast",{ref:"toast"})],1)},o=[];r._withStripped=!0},23:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},24:function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},26:function(e,n){e.exports=t},28:function(t,e,n){var r=n(42),o=n(32);t.exports=Object.keys||function(t){return r(t,o)}},3:function(t,e,n){t.exports=!n(12)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},31:function(t,e,n){var r=n(2),o=n(0),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(18)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},32:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},33:function(t,e,n){var r=n(15);t.exports=function(t){return Object(r(t))}},34:function(t,e,n){var r=n(14);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},35:function(t,e,n){var r=n(16),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},38:function(t,e,n){var r=n(6);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},4:function(t,e,n){var r=n(6);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},40:function(t,n){t.exports=e},41:function(t,e,n){t.exports=!n(3)&&!n(12)(function(){return 7!=Object.defineProperty(n(22)("div"),"a",{get:function(){return 7}}).a})},42:function(t,e,n){var r=n(8),o=n(13),i=n(46)(!1),a=n(20)("IE_PROTO");t.exports=function(t,e){var n,s=o(t),u=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);for(;e.length>u;)r(s,n=e[u++])&&(~i(c,n)||c.push(n));return c}},46:function(t,e,n){var r=n(13),o=n(35),i=n(47);t.exports=function(t){return function(e,n,a){var s,u=r(e),c=o(u.length),f=i(a,c);if(t&&n!=n){for(;c>f;)if((s=u[f++])!=s)return!0}else for(;c>f;f++)if((t||f in u)&&u[f]===n)return t||f||0;return!t&&-1}}},47:function(t,e,n){var r=n(16),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},5:function(t,e,n){var r=n(10),o=n(23);t.exports=n(3)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},51:function(t,e){e.f={}.propertyIsEnumerable},57:function(t,e){e.f=Object.getOwnPropertySymbols},6:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},635:function(t,e){t.exports=r},7:function(t,e,n){"use strict";function r(t,e,n,r,o,i,a,s){t=t||{};var u=typeof t.default;"object"!==u&&"function"!==u||(t=t.default);var c="function"==typeof t?t.options:t;e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),i&&(c._scopeId=i);var f;if(a?(f=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=f):o&&(f=s?function(){o.call(this,this.$root.$options.shadowRoot)}:o),f)if(c.functional){c._injectStyles=f;var l=c.render;c.render=function(t,e){return f.call(e),l(t,e)}}else{var p=c.beforeCreate;c.beforeCreate=p?[].concat(p,f):[f]}return{exports:t,options:c}}e.a=r},70:function(t,e,n){t.exports={default:n(79),__esModule:!0}},79:function(t,e,n){n(80),t.exports=n(2).Object.assign},8:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},80:function(t,e,n){var r=n(9);r(r.S+r.F,"Object",{assign:n(81)})},81:function(t,e,n){"use strict";var r=n(3),o=n(28),i=n(57),a=n(51),s=n(33),u=n(34),c=Object.assign;t.exports=!c||n(12)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=c({},t)[n]||Object.keys(c({},e)).join("")!=r})?function(t,e){for(var n=s(t),c=arguments.length,f=1,l=i.f,p=a.f;c>f;)for(var d,x=u(arguments[f++]),m=l?o(x).concat(l(x)):o(x),v=m.length,y=0;v>y;)d=m[y++],r&&!p.call(x,d)||(n[d]=x[d]);return n}:c},9:function(t,e,n){var r=n(0),o=n(2),i=n(17),a=n(5),s=n(8),u=function(t,e,n){var c,f,l,p=t&u.F,d=t&u.G,x=t&u.S,m=t&u.P,v=t&u.B,y=t&u.W,h=d?o:o[e]||(o[e]={}),b=h.prototype,j=d?r:x?r[e]:(r[e]||{}).prototype;d&&(n=e);for(c in n)(f=!p&&j&&void 0!==j[c])&&s(h,c)||(l=f?j[c]:n[c],h[c]=d&&"function"!=typeof j[c]?n[c]:v&&f?i(l,r):y&&j[c]==l?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(l):m&&"function"==typeof l?i(Function.call,l):l,m&&((h.virtual||(h.virtual={}))[c]=l,t&u.R&&b&&!b[c]&&a(b,c,l)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u}})});