@xysfe/actui
Version:
A fantastic mobile ui lib implement by Vue
1 lines • 16.8 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/gold-visible.js"),require("@xysfe/actui/es/assets/mixins/gold-element.js")):"function"==typeof define&&define.amd?define(["@xysfe/actui/es/assets/utils/create/index.js","@xysfe/actui/es/assets/mixins/gold-visible.js","@xysfe/actui/es/assets/mixins/gold-element.js"],e):"object"==typeof exports?exports.GoldInsureDuty=e(require("@xysfe/actui/es/assets/utils/create/index.js"),require("@xysfe/actui/es/assets/mixins/gold-visible.js"),require("@xysfe/actui/es/assets/mixins/gold-element.js")):t.GoldInsureDuty=e(t["@xysfe/actui/es/assets/utils/create/index.js"],t["@xysfe/actui/es/assets/mixins/gold-visible.js"],t["@xysfe/actui/es/assets/mixins/gold-element.js"])}("undefined"!=typeof self?self:this,function(t,e,n){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=1665)}({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)},1:function(t,e,n){var r=n(32)("wks"),o=n(26),i=n(0).Symbol,s="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=s&&i[t]||(s?i:o)("Symbol."+t))}).store=r},10:function(t,e,n){var r=n(4),o=n(41),i=n(39),s=Object.defineProperty;e.f=n(3)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return s(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}},107:function(t,n){t.exports=e},11:function(t,e){t.exports={}},1128:function(t,e,n){"use strict";var r=n(140),o=n.n(r),i=n(114),s=n.n(i),u=n(107),c=n.n(u),a=n(128),f=n.n(a);e.a={name:"ActGoldInsureDuty",mixins:[c.a,f.a],data:function(){return{dutyList:[]}},props:{duties:{type:Array,default:function(){return[]}},keywords:{type:Object,default:function(){return{}}},brandColor:{type:String,default:""},btnColor:{type:String,default:""},foldAll:{type:Boolean,default:!1},canFold:{type:Boolean,default:!0},color:{type:String,default:""},position:{type:String,default:"middle"}},computed:{itemDetailStyle:function(){return{"act-gold-duty-item-detail":!0,"act-gold-duty-item-detail-left":"left"===this.position,"act-gold-duty-item-detail-middle":"middle"===this.position}},itemTitStyle:function(){return{"act-gold-duty-item-tit":!0,"act-gold-duty-item-tit-right":"right"===this.position,"act-gold-duty-item-tit-middle":"middle"===this.position}}},methods:{showQuestion:function(t){this.dialog?this.dialog.setData(t.duty,t.dutymark):this.dialog=this.$createGoldDialog({closable:!0,maskClosable:!0,title:t.duty,content:t.dutymark,showConfirmButton:!1,confirmButtonColor:this.brandColor}),this.dialog.show()},showKeyword:function(t,e){this.followDialog?this.followDialog.setData(e,this.keywords[e]):this.followDialog=this.$createGoldDialog({closable:!0,maskClosable:!0,title:e,content:this.keywords[e],showConfirmButton:!1,confirmButtonColor:this.brandColor}),this.followDialog.showFollow(t)},toggleDutyDesc:function(t){t.coverage&&"0"!==t.coverage&&t.dutydesc&&t.dutydesc.length&&this.canFold&&(t.active=!t.active)},translateDuties:function(t){if(!t)return[];var e=JSON.parse(s()(t)),n=[];for(var r in this.keywords||{})this.keywords.hasOwnProperty(r)&&n.push(r);for(var i=n.length>0,u=new RegExp(n.join("|"),"g"),c={},a=0,f=e.length;a<f;a++){var l=e[a],d=[];if(l.active=!1,l.dutydesc){var p=l.dutydesc.match(u);if(i&&p){for(var y=l.dutydesc,v=p,h=Array.isArray(v),g=0,v=h?v:o()(v);;){var x;if(h){if(g>=v.length)break;x=v[g++]}else{if(g=v.next(),g.done)break;x=g.value}var m=x;if(!c[m]){var _=y.split(m);_[0]&&d.push(_[0]),d.push({cntt:m}),y=y.substr((_[0]+m).length),c[m]=!0}}y&&d.push(y)}else d.push(l.dutydesc)}l.dutydesc=d}return e}},mounted:function(){this.dutyList=this.translateDuties(this.duties)},watch:{duties:function(t){this.dutyList=this.translateDuties(t)}}}},114:function(t,e,n){t.exports={default:n(125),__esModule:!0}},12:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},125:function(t,e,n){var r=n(2),o=r.JSON||(r.JSON={stringify:JSON.stringify});t.exports=function(t){return o.stringify.apply(o,arguments)}},128:function(t,e){t.exports=n},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)}},140:function(t,e,n){t.exports={default:n(142),__esModule:!0}},142:function(t,e,n){n(52),n(48),t.exports=n(143)},143:function(t,e,n){var r=n(4),o=n(57);t.exports=n(2).getIterator=function(t){var e=o(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return r(e.call(t))}},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)}},1665:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(28),o=n.n(r),i=n(1666);i.a.install=function(t){t.component(i.a.name,i.a),t.prototype.$createGoldInsureDuty=o()(i.a,t)},e.default=i.a},1666:function(t,e,n){"use strict";function r(t){u||n(1667)}var o=n(1128),i=n(1668),s=n(7),u=!1,c=r,a=Object(s.a)(o.a,i.a,i.b,!1,c,"data-v-21e5003e",null);a.options.__file="src\\components\\GoldInsureDuty\\src\\index.vue",e.a=a.exports},1667:function(t,e){},1668: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",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],staticClass:"act-gold-duty"},t._l(t.dutyList,function(e,r){return n("div",{key:r,staticClass:"act-gold-duty-item"},[n("div",{staticClass:"act-gold-duty-item-header",on:{click:function(n){return n.stopPropagation(),t.toggleDutyDesc(e)}}},[n("p",{class:t.itemTitStyle},[t._v("\n "+t._s(e.duty)+"\n "),e.dutymark?n("span",{staticClass:"act-gold-duty-item-question",attrs:{"data-track":"detail_mark"},on:{click:function(n){return n.stopPropagation(),t.showQuestion(e)}}},[t._v("?")]):t._e()]),t._v(" "),e.coverage&&"0"!==e.coverage?n("span",{class:t.itemDetailStyle,style:{color:t.color?t.color:"#f7686c"}},[t._v("\n "+t._s(e.coverage)+"\n ")]):t._e(),t._v(" "),t.canFold?n("span",{staticClass:"act-gold-duty-suffix mem-replayer-hide",class:{"act-gold-duty-arrow":e.coverage&&"0"!==e.coverage&&e.dutydesc&&e.dutydesc.length,"act-gold-duty-arrow-top":e.active}}):t._e()]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.active,expression:"duty.active"}],staticClass:"act-gold-duty-item-txt mem-replayer-show"},[t._l(e.dutydesc,function(e,r){return[e.cntt?n("span",{key:r,staticClass:"act-gold-duty-item-txt-noun",on:{click:function(n){return n.stopPropagation(),t.showKeyword(n,e.cntt)}}},[t._v(t._s(e.cntt))]):[t._v("\n "+t._s(e)+"\n ")]]})],2)])}),0)},o=[];r._withStripped=!0},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(32)("keys"),o=n(26);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):{}}},25:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},26:function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},28:function(e,n){e.exports=t},29:function(t,e,n){var r=n(10).f,o=n(8),i=n(1)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},3:function(t,e,n){t.exports=!n(12)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},30:function(t,e,n){var r=n(42),o=n(33);t.exports=Object.keys||function(t){return r(t,o)}},31:function(t,e,n){var r=n(15);t.exports=function(t){return Object(r(t))}},32: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)"})},33:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},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}},37:function(t,e,n){"use strict";var r=n(18),o=n(9),i=n(55),s=n(5),u=n(11),c=n(60),a=n(29),f=n(62),l=n(1)("iterator"),d=!([].keys&&"next"in[].keys()),p=function(){return this};t.exports=function(t,e,n,y,v,h,g){c(n,e,y);var x,m,_,b=function(t){if(!d&&t in O)return O[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},w=e+" Iterator",S="values"==v,j=!1,O=t.prototype,C=O[l]||O["@@iterator"]||v&&O[v],k=C||b(v),L=v?S?b("entries"):k:void 0,T="Array"==e?O.entries||C:C;if(T&&(_=f(T.call(new t)))!==Object.prototype&&_.next&&(a(_,w,!0),r||"function"==typeof _[l]||s(_,l,p)),S&&C&&"values"!==C.name&&(j=!0,k=function(){return C.call(this)}),r&&!g||!d&&!j&&O[l]||s(O,l,k),u[e]=k,u[w]=p,v)if(x={values:S?k:b("values"),keys:h?k:b("keys"),entries:L},g)for(m in x)m in O||i(O,m,x[m]);else o(o.P+o.F*(d||j),e,x);return x}},39: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}},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),s=n(20)("IE_PROTO");t.exports=function(t,e){var n,u=o(t),c=0,a=[];for(n in u)n!=s&&r(u,n)&&a.push(n);for(;e.length>c;)r(u,n=e[c++])&&(~i(a,n)||a.push(n));return a}},43:function(t,e,n){var r=n(0).document;t.exports=r&&r.documentElement},45:function(t,e,n){var r=n(14),o=n(1)("toStringTag"),i="Arguments"==r(function(){return arguments}()),s=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=s(e=Object(t),o))?n:i?r(e):"Object"==(u=r(e))&&"function"==typeof e.callee?"Arguments":u}},46:function(t,e,n){var r=n(13),o=n(35),i=n(47);t.exports=function(t){return function(e,n,s){var u,c=r(e),a=o(c.length),f=i(s,a);if(t&&n!=n){for(;a>f;)if((u=c[f++])!=u)return!0}else for(;a>f;f++)if((t||f in c)&&c[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)}},48:function(t,e,n){"use strict";var r=n(59)(!0);n(37)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},5:function(t,e,n){var r=n(10),o=n(25);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}},52:function(t,e,n){n(68);for(var r=n(0),o=n(5),i=n(11),s=n(1)("toStringTag"),u="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<u.length;c++){var a=u[c],f=r[a],l=f&&f.prototype;l&&!l[s]&&o(l,s,a),i[a]=i.Array}},53:function(t,e,n){var r=n(4),o=n(61),i=n(33),s=n(20)("IE_PROTO"),u=function(){},c=function(){var t,e=n(22)("iframe"),r=i.length;for(e.style.display="none",n(43).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;r--;)delete c.prototype[i[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(u.prototype=r(t),n=new u,u.prototype=null,n[s]=t):n=c(),void 0===e?n:o(n,e)}},55:function(t,e,n){t.exports=n(5)},57:function(t,e,n){var r=n(45),o=n(1)("iterator"),i=n(11);t.exports=n(2).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}},59:function(t,e,n){var r=n(16),o=n(15);t.exports=function(t){return function(e,n){var i,s,u=String(o(e)),c=r(n),a=u.length;return c<0||c>=a?t?"":void 0:(i=u.charCodeAt(c),i<55296||i>56319||c+1===a||(s=u.charCodeAt(c+1))<56320||s>57343?t?u.charAt(c):i:t?u.slice(c,c+2):s-56320+(i-55296<<10)+65536)}}},6:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},60:function(t,e,n){"use strict";var r=n(53),o=n(25),i=n(29),s={};n(5)(s,n(1)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(s,{next:o(1,n)}),i(t,e+" Iterator")}},61:function(t,e,n){var r=n(10),o=n(4),i=n(30);t.exports=n(3)?Object.defineProperties:function(t,e){o(t);for(var n,s=i(e),u=s.length,c=0;u>c;)r.f(t,n=s[c++],e[n]);return t}},62:function(t,e,n){var r=n(8),o=n(31),i=n(20)("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},63:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},68:function(t,e,n){"use strict";var r=n(69),o=n(63),i=n(11),s=n(13);t.exports=n(37)(Array,"Array",function(t,e){this._t=s(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):"keys"==e?o(0,n):"values"==e?o(0,t[n]):o(0,[n,t[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},69:function(t,e){t.exports=function(){}},7:function(t,e,n){"use strict";function r(t,e,n,r,o,i,s,u){t=t||{};var c=typeof t.default;"object"!==c&&"function"!==c||(t=t.default);var a="function"==typeof t?t.options:t;e&&(a.render=e,a.staticRenderFns=n,a._compiled=!0),r&&(a.functional=!0),i&&(a._scopeId=i);var f;if(s?(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(s)},a._ssrRegister=f):o&&(f=u?function(){o.call(this,this.$root.$options.shadowRoot)}:o),f)if(a.functional){a._injectStyles=f;var l=a.render;a.render=function(t,e){return f.call(e),l(t,e)}}else{var d=a.beforeCreate;a.beforeCreate=d?[].concat(d,f):[f]}return{exports:t,options:a}}e.a=r},8:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},9:function(t,e,n){var r=n(0),o=n(2),i=n(17),s=n(5),u=n(8),c=function(t,e,n){var a,f,l,d=t&c.F,p=t&c.G,y=t&c.S,v=t&c.P,h=t&c.B,g=t&c.W,x=p?o:o[e]||(o[e]={}),m=x.prototype,_=p?r:y?r[e]:(r[e]||{}).prototype;p&&(n=e);for(a in n)(f=!d&&_&&void 0!==_[a])&&u(x,a)||(l=f?_[a]:n[a],x[a]=p&&"function"!=typeof _[a]?n[a]:h&&f?i(l,r):g&&_[a]==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):v&&"function"==typeof l?i(Function.call,l):l,v&&((x.virtual||(x.virtual={}))[a]=l,t&c.R&&m&&!m[a]&&s(m,a,l)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c}})});