UNPKG

@xysfe/actui

Version:

A fantastic mobile ui lib implement by Vue

1 lines 17.8 kB
!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/utils/helpers.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/utils/helpers.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/utils/helpers.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/utils/helpers.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,r){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=1687)}({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(31)("wks"),o=n(24),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(38),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}},105:function(t,e){t.exports=n},11:function(t,e){t.exports={}},111:function(t,e,n){t.exports={default:n(117),__esModule:!0}},1131:function(t,e,n){"use strict";var r=n(130),o=n.n(r),i=n(111),s=n.n(i),u=n(146),c=n.n(u),a=n(105),f=n.n(a),l=n(119),d=n.n(l),p=n(39);n.n(p);e.a={name:"ActGoldInsureDuty",mixins:[f.a,d.a],data:function(){return{dutyDescMap:{},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:{initKeywordEvent:function(){var t=this;this.$nextTick(function(){c()(t.dutyDescMap).forEach(function(e){var n=document.getElementById(e);n&&(n.onclick=t.dutyDescMap[e].onClick)})})},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){var e=this;if(!t)return[];this.dutyDescMap={};var n=JSON.parse(s()(t)),r=[];for(var i in this.keywords||{})this.keywords.hasOwnProperty(i)&&r.push(i);for(var u=r.length>0,c=new RegExp(r.join("|"),"g"),a={},f=0,l=n.length;f<l;f++){var d=n[f],y=[];if(d.active=!1,"<p><br></p>"===d.dutydesc&&(d.dutydesc=""),d.dutydesc){var v=d.dutydesc.match(c);if(u&&v){for(var h=d.dutydesc,g=v,x=Array.isArray(g),m=0,g=x?g:o()(g);;){var _;if(x){if(m>=g.length)break;_=g[m++]}else{if(m=g.next(),m.done)break;_=m.value}var b=_;!function(t){if(!a[t]){var n=h.split(t);n[0]&&y.push(n[0]);var r="kw_"+Object(p.createUUID)(),o='<span id="'+r+'" class="act-gold-duty-item-txt-noun">'+t+"</span>";y.push(o),e.dutyDescMap[r]={text:t,desc:e.keywords[t],onClick:function(n){n.stopPropagation(),e.showKeyword(n,t)}},h=h.substr((n[0]+t).length),a[t]=!0}}(b)}h&&y.push(h)}else y.push(d.dutydesc)}d.dutydesc=y.join("")}return n}},mounted:function(){},watch:{duties:{handler:function(t){this.dutyList=this.translateDuties(t),this.initKeywordEvent()},deep:!0,immediate:!0}}}},117: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)}},119:function(t,e){t.exports=r},12:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},13:function(t,e,n){var r=n(34),o=n(15);t.exports=function(t){return r(o(t))}},130:function(t,e,n){t.exports={default:n(144),__esModule:!0}},14:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},144:function(t,e,n){n(50),n(48),t.exports=n(145)},145:function(t,e,n){var r=n(4),o=n(56);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))}},146:function(t,e,n){t.exports={default:n(175),__esModule:!0}},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)}},1687:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(26),o=n.n(r),i=n(1688);i.a.install=function(t){t.component(i.a.name,i.a),t.prototype.$createGoldInsureDuty=o()(i.a,t)},e.default=i.a},1688:function(t,e,n){"use strict";function r(t){u||(n(1689),n(1690))}var o=n(1131),i=n(1691),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},1689:function(t,e){},1690:function(t,e){},1691: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"},[n("div",{domProps:{innerHTML:t._s(e.dutydesc)}})])])}),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)}}},174:function(t,e,n){var r=n(9),o=n(2),i=n(12);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],s={};s[t]=e(n),r(r.S+r.F*i(function(){n(1)}),"Object",s)}},175:function(t,e,n){n(176),t.exports=n(2).Object.keys},176:function(t,e,n){var r=n(33),o=n(28);n(174)("keys",function(){return function(t){return o(r(t))}})},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):{}}},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},27: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})}},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}},36:function(t,e,n){"use strict";var r=n(18),o=n(9),i=n(54),s=n(5),u=n(11),c=n(60),a=n(27),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,k=O[l]||O["@@iterator"]||v&&O[v],C=k||b(v),D=v?S?b("entries"):C:void 0,T="Array"==e?O.entries||k:k;if(T&&(_=f(T.call(new t)))!==Object.prototype&&_.next&&(a(_,w,!0),r||"function"==typeof _[l]||s(_,l,p)),S&&k&&"values"!==k.name&&(j=!0,C=function(){return k.call(this)}),r&&!g||!d&&!j&&O[l]||s(O,l,C),u[e]=C,u[w]=p,v)if(x={values:S?C:b("values"),keys:h?C:b("keys"),entries:D},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}},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")}},39:function(t,n){t.exports=e},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(36)(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(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}},50: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}},52:function(t,e,n){var r=n(4),o=n(61),i=n(32),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)}},54:function(t,e,n){t.exports=n(5)},56: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(52),o=n(23),i=n(27),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(28);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(33),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(36)(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}})});