@byzanteam/primitive-element
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -1,1 +0,1 @@ | ||
import t from"vue";function e(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}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})(t)}function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function i(){return"undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys}function a(t,e){s(t,e),Object.getOwnPropertyNames(e.prototype).forEach((function(n){s(t.prototype,e.prototype,n)})),Object.getOwnPropertyNames(e).forEach((function(n){s(t,e,n)}))}function s(t,e,n){(n?Reflect.getOwnMetadataKeys(e,n):Reflect.getOwnMetadataKeys(e)).forEach((function(r){var o=n?Reflect.getOwnMetadata(r,e,n):Reflect.getOwnMetadata(r,e);n?Reflect.defineMetadata(r,o,t,n):Reflect.defineMetadata(r,o,t)}))}var c={__proto__:[]}instanceof Array;function l(t,e){var n=e.prototype._init;e.prototype._init=function(){var e=this,n=Object.getOwnPropertyNames(t);if(t.$options.props)for(var r in t.$options.props)t.hasOwnProperty(r)||n.push(r);n.forEach((function(n){"_"!==n.charAt(0)&&Object.defineProperty(e,n,{get:function(){return t[n]},set:function(e){t[n]=e},configurable:!0})}))};var r=new e;e.prototype._init=n;var o={};return Object.keys(r).forEach((function(t){void 0!==r[t]&&(o[t]=r[t])})),o}var d=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function f(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n.name=n.name||e._componentTag||e.name;var o=e.prototype;Object.getOwnPropertyNames(o).forEach((function(t){if("constructor"!==t)if(d.indexOf(t)>-1)n[t]=o[t];else{var e=Object.getOwnPropertyDescriptor(o,t);void 0!==e.value?"function"==typeof e.value?(n.methods||(n.methods={}))[t]=e.value:(n.mixins||(n.mixins=[])).push({data:function(){return r({},t,e.value)}}):(e.get||e.set)&&((n.computed||(n.computed={}))[t]={get:e.get,set:e.set})}})),(n.mixins||(n.mixins=[])).push({data:function(){return l(this,e)}});var s=e.__decorators__;s&&(s.forEach((function(t){return t(n)})),delete e.__decorators__);var c=Object.getPrototypeOf(e.prototype),f=c instanceof t?c.constructor:t,u=f.extend(n);return p(u,e,f),i()&&a(u,e),u}var u={prototype:!0,arguments:!0,callee:!0,caller:!0};function p(t,e,r){Object.getOwnPropertyNames(e).forEach((function(o){if(!u[o]){var i=Object.getOwnPropertyDescriptor(t,o);if(!i||i.configurable){var a,s,l=Object.getOwnPropertyDescriptor(e,o);if(!c){if("cid"===o)return;var d=Object.getOwnPropertyDescriptor(r,o);if(a=l.value,s=n(a),null!=a&&("object"===s||"function"===s)&&d&&d.value===l.value)return}Object.defineProperty(t,o,l)}}}))}function v(t){return"function"==typeof t?f(t):function(e){return f(e,t)}}v.registerHooks=function(t){d.push.apply(d,o(t))};var y="undefined"!=typeof Reflect&&void 0!==Reflect.getMetadata;function h(t){return void 0===t&&(t={}),function(e,n){var r;!function(t,e,n){if(y&&!Array.isArray(t)&&"function"!=typeof t&&void 0===t.type){var r=Reflect.getMetadata("design:type",e,n);r!==Object&&(t.type=r)}}(t,e,n),(r=function(e,n){(e.props||(e.props={}))[n]=t},function(t,e,n){var o="function"==typeof t?t:t.constructor;o.__decorators__||(o.__decorators__=[]),"number"!=typeof n&&(n=void 0),o.__decorators__.push((function(t){return r(t,e,n)}))})(e,n)}}let g=class List extends t{};function _(t,e,n,r,o,i,a,s,c,l){"boolean"!=typeof a&&(c=s,s=a,a=!1);const d="function"==typeof n?n.options:n;let f;if(t&&t.render&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0,o&&(d.functional=!0)),r&&(d._scopeId=r),i?(f=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__),e&&e.call(this,c(t)),t&&t._registeredComponents&&t._registeredComponents.add(i)},d._ssrRegister=f):e&&(f=a?function(t){e.call(this,l(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),f)if(d.functional){const t=d.render;d.render=function(e,n){return f.call(n),t(e,n)}}else{const t=d.beforeCreate;d.beforeCreate=t?[].concat(t,f):[f]}return n}e([h({default:()=>[]})],g.prototype,"items",void 0),e([h({default:"label"})],g.prototype,"labelKey",void 0),g=e([v],g);const m=g;var b=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ul",{staticClass:"list"},t._l(t.items,(function(e,r){return n("li",{key:r,staticClass:"list__item"},[n("div",{staticClass:"list__item__content"},[t._v("\n "+t._s(e[t.labelKey])+"\n ")])])})),0)};b._withStripped=!0;const O=_({render:b,staticRenderFns:[]},void 0,m,"data-v-6cc4a890",!1,void 0,!1,void 0,void 0,void 0),w=t.extend({props:{src:{type:String,required:!0}},render(t){return t("img",{attrs:{src:this.src}})}});let x=class PrimitiveTable extends t{get columns(){return this.headers.map(t=>({key:t.key,label:t.label||t.key}))}};e([h({default:()=>[]})],x.prototype,"headers",void 0),e([h({default:()=>[]})],x.prototype,"rows",void 0),x=e([v],x);const S=x;var C=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("table",[n("thead",[n("tr",t._l(t.columns,(function(e,r){return n("th",{key:r},[n("span",[t._v(t._s(e.label))])])})),0)]),t._v(" "),n("tbody",t._l(t.rows,(function(e,r){return n("tr",{key:r},t._l(t.columns,(function(r,o){return n("td",{key:o},[t._v("\n "+t._s(e[r.key])+"\n ")])})),0)})),0)])};C._withStripped=!0;const j=_({render:C,staticRenderFns:[]},void 0,S,"data-v-04e22aa5",!1,void 0,!1,void 0,void 0,void 0),P={fontSize:"14px",fontWeight:600,lineHeight:1.5,letterSpacing:0,textAlign:"left",color:"#ffffff",textIndent:0};var R;!function(t){t.scroll="scroll",t.ellipsis="ellipsis"}(R||(R={}));let E=class PrimitiveTextarea extends t{constructor(){super(...arguments),this.editing=!1,this.newContent=this.value}created(){this.computeText()}get currentTextStyle(){return Object.assign(Object.assign({},P),this.textStyle)}get textOverflowClass(){return["textarea",`textarea--${this.textOverflow}`,{"textarea--editing":this.editing}]}get textareaShow(){return this.editing||"scroll"===this.textOverflow}computeText(){this.textareaShow||this.$nextTick(()=>{const t=this.$refs.textareaContentRef;this.getContainerHeight(t);let e=this.newContent.split("");for(;t.scrollHeight>t.clientHeight;)e.pop(),t.innerHTML=`${e.join("")}...`})}getContainerHeight(t){var e;const{paddingSize:n,borderSize:r}=this.calculateNodeStyling(t.parentElement);return(null===(e=t.parentElement)||void 0===e?void 0:e.getBoundingClientRect()).height-r-n}calculateNodeStyling(t){const e=window.getComputedStyle(t);return{paddingSize:parseFloat(e.getPropertyValue("padding-bottom"))+parseFloat(e.getPropertyValue("padding-top")),borderSize:parseFloat(e.getPropertyValue("border-bottom-width"))+parseFloat(e.getPropertyValue("border-top-width"))}}valueChangedFunc(){this.$emit("input",this.newContent)}openEditContent(){this.editing=!0,this.$nextTick(()=>{this.$refs.textareaRef.focus()})}closeEditContent(){this.editing=!1,this.computeText()}};e([h()],E.prototype,"value",void 0),e([h({default:"scroll",validator:t=>["scroll","ellipsis"].includes(t)})],E.prototype,"textOverflow",void 0),e([h()],E.prototype,"textStyle",void 0),E=e([v],E);const T=E;var $=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.textOverflowClass,attrs:{"data-content":t.newContent}},[t.textareaShow?n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.newContent,expression:"newContent"}],ref:"textareaRef",style:t.currentTextStyle,domProps:{value:t.newContent},on:{blur:t.closeEditContent,change:t.valueChangedFunc,input:function(e){e.target.composing||(t.newContent=e.target.value)}}}):n("div",{ref:"textareaContentRef",staticClass:"textarea-content",style:t.currentTextStyle,on:{click:t.openEditContent}},[n("span",[t._v(t._s(t.newContent))])])])};$._withStripped=!0;const F=_({render:$,staticRenderFns:[]},void 0,T,"data-v-65816f26",!1,void 0,!1,void 0,void 0,void 0),k={fontFamily:"微软雅黑",weightSize:["normal",12],color:"inherit",textAlign:"center",letterSpacing:"0px"};let M=class PrimitiveTitle extends t{get textStyle(){return Object.assign(Object.assign({},k),this.titleStyle)}get textFontStyle(){const t=this.textStyle,{weightSize:e}=t,n=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}(t,["weightSize"]),[r,o]=e;return Object.assign(Object.assign({},n),{fontWeight:r,fontSize:o+"px"})}};e([h({default:"这是一个标题",type:String})],M.prototype,"titleContent",void 0),e([h({default:()=>({}),type:Object})],M.prototype,"titleStyle",void 0),M=e([v],M);const A=M;var N=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"primitive-title"},[e("div",{staticClass:"primitive-title__content",style:this.textFontStyle},[this._v("\n "+this._s(this.titleContent)+"\n ")])])};N._withStripped=!0;const z=_({render:N,staticRenderFns:[]},void 0,A,void 0,!1,void 0,!1,void 0,void 0,void 0);export{O as List,w as Photo,j as PrimitiveTable,F as PrimitiveTextarea,z as PrimitiveTitle}; | ||
import t from"vue";const e={borderColor:"transparent",borderWidth:0,radius:0},n=t.extend({props:{url:{type:String,required:!0},borderStyle:{type:Object,default:()=>({})}},computed:{normalizedStyle(){return Object.assign(Object.assign({},e),this.borderStyle)}},render(t){const{borderColor:e,borderWidth:n,radius:r}=this.normalizedStyle;return t("img",{attrs:{src:this.url},style:{width:"100%",height:"100%",display:"block",boxSizing:"border-box",borderStyle:"solid",borderColor:e,borderWidth:`${n}px`,borderRadius:`${r}px`}})}});var r="object"==typeof global&&global&&global.Object===Object&&global,o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")(),s=i.Symbol,a=Object.prototype,c=a.hasOwnProperty,u=a.toString,f=s?s.toStringTag:void 0;var l=Object.prototype.toString;var p=s?s.toStringTag:void 0;function h(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":p&&p in Object(t)?function(t){var e=c.call(t,f),n=t[f];try{t[f]=void 0;var r=!0}catch(t){}var o=u.call(t);return r&&(e?t[f]=n:delete t[f]),o}(t):function(t){return l.call(t)}(t)}function d(t){return null!=t&&"object"==typeof t}var v=Array.isArray;function y(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function b(t){return t}function _(t){if(!y(t))return!1;var e=h(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}var g,m=i["__core-js_shared__"],w=(g=/[^.]+$/.exec(m&&m.keys&&m.keys.IE_PROTO||""))?"Symbol(src)_1."+g:"";var O=Function.prototype.toString;var j=/^\[object .+?Constructor\]$/,x=Function.prototype,S=Object.prototype,A=x.toString,E=S.hasOwnProperty,P=RegExp("^"+A.call(E).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function T(t){return!(!y(t)||(e=t,w&&w in e))&&(_(t)?P:j).test(function(t){if(null!=t){try{return O.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t));var e}function z(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return T(n)?n:void 0}var M=Object.create,R=function(){function t(){}return function(e){if(!y(e))return{};if(M)return M(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function F(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var $=Date.now;var C,D,k,I=function(){try{var t=z(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),N=(C=I?function(t,e){return I(t,"toString",{configurable:!0,enumerable:!1,value:(n=e,function(){return n}),writable:!0});var n}:b,D=0,k=0,function(){var t=$(),e=16-(t-k);if(k=t,e>0){if(++D>=800)return arguments[0]}else D=0;return C.apply(void 0,arguments)}),W=/^(?:0|[1-9]\d*)$/;function L(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&W.test(t))&&t>-1&&t%1==0&&t<e}function q(t,e,n){"__proto__"==e&&I?I(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function H(t,e){return t===e||t!=t&&e!=e}var U=Object.prototype.hasOwnProperty;function B(t,e,n){var r=t[e];U.call(t,e)&&H(r,n)&&(void 0!==n||e in t)||q(t,e,n)}var V=Math.max;function G(t,e){return N(function(t,e,n){return e=V(void 0===e?t.length-1:e,0),function(){for(var r=arguments,o=-1,i=V(r.length-e,0),s=Array(i);++o<i;)s[o]=r[e+o];o=-1;for(var a=Array(e+1);++o<e;)a[o]=r[o];return a[e]=n(s),F(t,this,a)}}(t,e,b),t+"")}function K(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function X(t){return null!=t&&K(t.length)&&!_(t)}var J=Object.prototype;function Q(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||J)}function Y(t){return d(t)&&"[object Arguments]"==h(t)}var Z=Object.prototype,tt=Z.hasOwnProperty,et=Z.propertyIsEnumerable,nt=Y(function(){return arguments}())?Y:function(t){return d(t)&&tt.call(t,"callee")&&!et.call(t,"callee")};var rt="object"==typeof exports&&exports&&!exports.nodeType&&exports,ot=rt&&"object"==typeof module&&module&&!module.nodeType&&module,it=ot&&ot.exports===rt?i.Buffer:void 0,st=(it?it.isBuffer:void 0)||function(){return!1},at={};at["[object Float32Array]"]=at["[object Float64Array]"]=at["[object Int8Array]"]=at["[object Int16Array]"]=at["[object Int32Array]"]=at["[object Uint8Array]"]=at["[object Uint8ClampedArray]"]=at["[object Uint16Array]"]=at["[object Uint32Array]"]=!0,at["[object Arguments]"]=at["[object Array]"]=at["[object ArrayBuffer]"]=at["[object Boolean]"]=at["[object DataView]"]=at["[object Date]"]=at["[object Error]"]=at["[object Function]"]=at["[object Map]"]=at["[object Number]"]=at["[object Object]"]=at["[object RegExp]"]=at["[object Set]"]=at["[object String]"]=at["[object WeakMap]"]=!1;var ct="object"==typeof exports&&exports&&!exports.nodeType&&exports,ut=ct&&"object"==typeof module&&module&&!module.nodeType&&module,ft=ut&&ut.exports===ct&&r.process,lt=function(){try{var t=ut&&ut.require&&ut.require("util").types;return t||ft&&ft.binding&&ft.binding("util")}catch(t){}}(),pt=lt&<.isTypedArray,ht=pt?function(t){return function(e){return t(e)}}(pt):function(t){return d(t)&&K(t.length)&&!!at[h(t)]},dt=Object.prototype.hasOwnProperty;function vt(t,e){var n=v(t),r=!n&&nt(t),o=!n&&!r&&st(t),i=!n&&!r&&!o&&ht(t),s=n||r||o||i,a=s?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],c=a.length;for(var u in t)!e&&!dt.call(t,u)||s&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||L(u,c))||a.push(u);return a}var yt=Object.prototype.hasOwnProperty;function bt(t){if(!y(t))return function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}(t);var e=Q(t),n=[];for(var r in t)("constructor"!=r||!e&&yt.call(t,r))&&n.push(r);return n}function _t(t){return X(t)?vt(t,!0):bt(t)}var gt=z(Object,"create");var mt=Object.prototype.hasOwnProperty;var wt=Object.prototype.hasOwnProperty;function Ot(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function jt(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1}Ot.prototype.clear=function(){this.__data__=gt?gt(null):{},this.size=0},Ot.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Ot.prototype.get=function(t){var e=this.__data__;if(gt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return mt.call(e,t)?e[t]:void 0},Ot.prototype.has=function(t){var e=this.__data__;return gt?void 0!==e[t]:wt.call(e,t)},Ot.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=gt&&void 0===e?"__lodash_hash_undefined__":e,this};var xt=Array.prototype.splice;function St(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}St.prototype.clear=function(){this.__data__=[],this.size=0},St.prototype.delete=function(t){var e=this.__data__,n=jt(e,t);return!(n<0)&&(n==e.length-1?e.pop():xt.call(e,n,1),--this.size,!0)},St.prototype.get=function(t){var e=this.__data__,n=jt(e,t);return n<0?void 0:e[n][1]},St.prototype.has=function(t){return jt(this.__data__,t)>-1},St.prototype.set=function(t,e){var n=this.__data__,r=jt(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};var At=z(i,"Map");function Et(t,e){var n,r,o=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof e?"string":"hash"]:o.map}function Pt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Pt.prototype.clear=function(){this.size=0,this.__data__={hash:new Ot,map:new(At||St),string:new Ot}},Pt.prototype.delete=function(t){var e=Et(this,t).delete(t);return this.size-=e?1:0,e},Pt.prototype.get=function(t){return Et(this,t).get(t)},Pt.prototype.has=function(t){return Et(this,t).has(t)},Pt.prototype.set=function(t,e){var n=Et(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};var Tt=function(t,e){return function(n){return t(e(n))}}(Object.getPrototypeOf,Object),zt=Function.prototype,Mt=Object.prototype,Rt=zt.toString,Ft=Mt.hasOwnProperty,$t=Rt.call(Object);function Ct(t){var e=this.__data__=new St(t);this.size=e.size}Ct.prototype.clear=function(){this.__data__=new St,this.size=0},Ct.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Ct.prototype.get=function(t){return this.__data__.get(t)},Ct.prototype.has=function(t){return this.__data__.has(t)},Ct.prototype.set=function(t,e){var n=this.__data__;if(n instanceof St){var r=n.__data__;if(!At||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Pt(r)}return n.set(t,e),this.size=n.size,this};var Dt="object"==typeof exports&&exports&&!exports.nodeType&&exports,kt=Dt&&"object"==typeof module&&module&&!module.nodeType&&module,It=kt&&kt.exports===Dt?i.Buffer:void 0,Nt=It?It.allocUnsafe:void 0;var Wt=i.Uint8Array;function Lt(t,e){var n,r,o=e?(n=t.buffer,r=new n.constructor(n.byteLength),new Wt(r).set(new Wt(n)),r):t.buffer;return new t.constructor(o,t.byteOffset,t.length)}var qt,Ht=function(t,e,n){for(var r=-1,o=Object(t),i=n(t),s=i.length;s--;){var a=i[qt?s:++r];if(!1===e(o[a],a,o))break}return t};function Ut(t,e,n){(void 0!==n&&!H(t[e],n)||void 0===n&&!(e in t))&&q(t,e,n)}function Bt(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}function Vt(t){return function(t,e,n,r){var o=!n;n||(n={});for(var i=-1,s=e.length;++i<s;){var a=e[i],c=r?r(n[a],t[a],a,n,t):void 0;void 0===c&&(c=t[a]),o?q(n,a,c):B(n,a,c)}return n}(t,_t(t))}function Gt(t,e,n,r,o,i,s){var a=Bt(t,n),c=Bt(e,n),u=s.get(c);if(u)Ut(t,n,u);else{var f,l=i?i(a,c,n+"",t,e,s):void 0,p=void 0===l;if(p){var b=v(c),g=!b&&st(c),m=!b&&!g&&ht(c);l=c,b||g||m?v(a)?l=a:d(f=a)&&X(f)?l=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}(a):g?(p=!1,l=function(t,e){if(e)return t.slice();var n=t.length,r=Nt?Nt(n):new t.constructor(n);return t.copy(r),r}(c,!0)):m?(p=!1,l=Lt(c,!0)):l=[]:function(t){if(!d(t)||"[object Object]"!=h(t))return!1;var e=Tt(t);if(null===e)return!0;var n=Ft.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Rt.call(n)==$t}(c)||nt(c)?(l=a,nt(a)?l=Vt(a):y(a)&&!_(a)||(l=function(t){return"function"!=typeof t.constructor||Q(t)?{}:R(Tt(t))}(c))):p=!1}p&&(s.set(c,l),o(l,c,r,i,s),s.delete(c)),Ut(t,n,l)}}function Kt(t,e,n,r,o){t!==e&&Ht(e,(function(i,s){if(o||(o=new Ct),y(i))Gt(t,e,s,n,Kt,r,o);else{var a=r?r(Bt(t,s),i,s+"",t,e,o):void 0;void 0===a&&(a=i),Ut(t,s,a)}}),_t)}function Xt(t,e,n,r,o,i){return y(t)&&y(e)&&(i.set(e,t),Kt(t,e,void 0,Xt,i),i.delete(e)),t}var Jt,Qt=(Jt=function(t,e,n,r){Kt(t,e,n,r)},G((function(t,e){var n=-1,r=e.length,o=r>1?e[r-1]:void 0,i=r>2?e[2]:void 0;for(o=Jt.length>3&&"function"==typeof o?(r--,o):void 0,i&&function(t,e,n){if(!y(n))return!1;var r=typeof e;return!!("number"==r?X(n)&&L(e,n.length):"string"==r&&e in n)&&H(n[e],t)}(e[0],e[1],i)&&(o=r<3?void 0:o,r=1),t=Object(t);++n<r;){var s=e[n];s&&Jt(t,s,n,o)}return t}))),Yt=G((function(t){return t.push(void 0,Xt),F(Qt,void 0,t)})),Zt=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some((function(t,r){return t[0]===e&&(n=r,!0)})),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),r=this.__entries__[n];return r&&r[1]},e.prototype.set=function(e,n){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,r=t(n,e);~r&&n.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];t.call(e,o[1],o[0])}},e}()}(),te="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,ee="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),ne="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(ee):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)};var re=["top","right","bottom","left","width","height","size","weight"],oe="undefined"!=typeof MutationObserver,ie=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var n=!1,r=!1,o=0;function i(){n&&(n=!1,t()),r&&a()}function s(){ne(i)}function a(){var t=Date.now();if(n){if(t-o<2)return;r=!0}else n=!0,r=!1,setTimeout(s,e);o=t}return a}(this.refresh.bind(this),20)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},t.prototype.connect_=function(){te&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),oe?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){te&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;re.some((function(t){return!!~n.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),se=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];Object.defineProperty(t,o,{value:e[o],enumerable:!1,writable:!1,configurable:!0})}return t},ae=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||ee},ce=de(0,0,0,0);function ue(t){return parseFloat(t)||0}function fe(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce((function(e,n){return e+ue(t["border-"+n+"-width"])}),0)}function le(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return ce;var r=ae(t).getComputedStyle(t),o=function(t){for(var e={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=t["padding-"+o];e[o]=ue(i)}return e}(r),i=o.left+o.right,s=o.top+o.bottom,a=ue(r.width),c=ue(r.height);if("border-box"===r.boxSizing&&(Math.round(a+i)!==e&&(a-=fe(r,"left","right")+i),Math.round(c+s)!==n&&(c-=fe(r,"top","bottom")+s)),!function(t){return t===ae(t).document.documentElement}(t)){var u=Math.round(a+i)-e,f=Math.round(c+s)-n;1!==Math.abs(u)&&(a-=u),1!==Math.abs(f)&&(c-=f)}return de(o.left,o.top,a,c)}var pe="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof ae(t).SVGGraphicsElement}:function(t){return t instanceof ae(t).SVGElement&&"function"==typeof t.getBBox};function he(t){return te?pe(t)?function(t){var e=t.getBBox();return de(0,0,e.width,e.height)}(t):le(t):ce}function de(t,e,n,r){return{x:t,y:e,width:n,height:r}}var ve=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=de(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=he(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),ye=function(t,e){var n,r,o,i,s,a,c,u=(r=(n=e).x,o=n.y,i=n.width,s=n.height,a="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,c=Object.create(a.prototype),se(c,{x:r,y:o,width:i,height:s,top:o,right:r+i,bottom:s+o,left:r}),c);se(this,{target:t,contentRect:u})},be=function(){function t(t,e,n){if(this.activeObservations_=[],this.observations_=new Zt,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=n}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof ae(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new ve(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof ae(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(e){e.isActive()&&t.activeObservations_.push(e)}))},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new ye(t.target,t.broadcastRect())}));this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),_e="undefined"!=typeof WeakMap?new WeakMap:new Zt,ge=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=ie.getInstance(),r=new be(e,n,this);_e.set(this,r)};["observe","unobserve","disconnect"].forEach((function(t){ge.prototype[t]=function(){var e;return(e=_e.get(this))[t].apply(e,arguments)}}));var me=void 0!==ee.ResizeObserver?ee.ResizeObserver:ge,we="function"==typeof Float32Array;function Oe(t,e){return 1-3*e+3*t}function je(t,e){return 3*e-6*t}function xe(t){return 3*t}function Se(t,e,n){return((Oe(e,n)*t+je(e,n))*t+xe(e))*t}function Ae(t,e,n){return 3*Oe(e,n)*t*t+2*je(e,n)*t+xe(e)}function Ee(t){return t}var Pe=function(t,e,n,r){if(!(0<=t&&t<=1&&0<=n&&n<=1))throw new Error("bezier x values must be in [0, 1] range");if(t===e&&n===r)return Ee;for(var o=we?new Float32Array(11):new Array(11),i=0;i<11;++i)o[i]=Se(.1*i,t,n);function s(e){for(var r=0,i=1;10!==i&&o[i]<=e;++i)r+=.1;--i;var s=r+.1*((e-o[i])/(o[i+1]-o[i])),a=Ae(s,t,n);return a>=.001?function(t,e,n,r){for(var o=0;o<4;++o){var i=Ae(e,n,r);if(0===i)return e;e-=(Se(e,n,r)-t)/i}return e}(e,s,t,n):0===a?s:function(t,e,n,r,o){var i,s,a=0;do{(i=Se(s=e+(n-e)/2,r,o)-t)>0?n=s:e=s}while(Math.abs(i)>1e-7&&++a<10);return s}(e,r,r+.1,t,n)}return function(t){return 0===t?0:1===t?1:Se(s(t),e,r)}};const Te="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):t=>setTimeout(t,1e3/60),ze="object"==typeof window&&window.cancelAnimationFrame?window.cancelAnimationFrame.bind(window):t=>clearTimeout(t),Me=Pe(0,0,1,1),Re=Pe(.25,.1,.25,1),Fe=Pe(.42,0,1,1),$e=Pe(0,0,.58,1),Ce=Pe(.42,0,.58,1),De="object"==typeof performance&&performance.now?performance.now.bind(performance):Date.now.bind(Date),ke={delay:0,duration:250,pause:0,easingFunction:"ease"},Ie={linear:Me,ease:Re,easeIn:Fe,easeOut:$e,easeInOut:Ce};class TimerSubscription{constructor(t,e,n){this.timestamp=NaN,this.unsubscribe=t,this.options=e,this.clean=n}static getEasingFunction(t){return"function"==typeof t?t:Ie[t]||Ie.ease}getStartTime(t){return this.timestamp?this.timestamp:this.timestamp=t}getOptions(t,e){return this.options.filter(({delay:n,duration:r,pause:o})=>e<=t+n+r+o)}execute(t){const e=this.getStartTime(t);this.options=this.getOptions(e,t),this.options.length?this.options.forEach(({delay:n,duration:r,easingFunction:o,handler:i})=>{const s=TimerSubscription.getEasingFunction(o),a=t-e-n,c=a<0?0:a>r?1:a/r;c>0&&c<1&&i(s(c))}):(this.unsubscribe(),"function"==typeof this.clean&&this.clean())}}const Ne=(t={})=>{let e=0,n=0,r=!1;const o={...ke,...t},i=new Map,s=()=>{const t=De();i.forEach(e=>e.execute(t)),i.size?n=Te(s):c()},a=()=>{r=!0,Te(s)},c=()=>{r=!1,ze(n)};return{subscribe:(t,n)=>{const s=e++,c=()=>i.delete(s);return i.set(s,new TimerSubscription(c,(t=>{switch(!0){case Array.isArray(t):return t.map(t=>({...o,...t}));default:return[{...o,...t}]}})(t),n)),r||a(),c}}};function We(t,e,n,r,o,i,s,a,c,u){"boolean"!=typeof s&&(c=a,a=s,s=!1);const f="function"==typeof n?n.options:n;let l;if(t&&t.render&&(f.render=t.render,f.staticRenderFns=t.staticRenderFns,f._compiled=!0,o&&(f.functional=!0)),r&&(f._scopeId=r),i?(l=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__),e&&e.call(this,c(t)),t&&t._registeredComponents&&t._registeredComponents.add(i)},f._ssrRegister=l):e&&(l=s?function(t){e.call(this,u(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),l)if(f.functional){const t=f.render;f.render=function(e,n){return l.call(n),t(e,n)}}else{const t=f.beforeCreate;f.beforeCreate=t?[].concat(t,l):[l]}return n}const Le=t.extend({props:{textContent:{type:String,default:""},textStyle:{type:Object},textScrolling:{type:Object}},data:()=>({distance:0,observer:null,timer:Ne(),unsubscribe:()=>{}}),computed:{classes(){return["multiline-text",{"multiline-text--scroll":this.textScrollingProperty.overflowScrolling}]},styles(){const t=Yt({},this.textStyle,{fontFamily:"微软雅黑",weightSize:["normal",12],color:"white",textAlign:"left",lineHeight:20,firstLineIndent:0,spacing:0}),[e,n]=t.weightSize||[];return{fontFamily:t.fontFamily,fontWeight:e,fontSize:`${n}px`,color:t.color,textAlign:t.textAlign,lineHeight:`${t.lineHeight}px`,textIndent:`${t.firstLineIndent}px`,letterSpacing:`${t.spacing}px`}},textScrollingProperty(){return Yt({},this.textScrolling,{overflowScrolling:!1,durationTime:5e3,headerPause:2500,footerPause:2500})},overflowScrolling(){return this.textScrollingProperty.overflowScrolling}},watch:{overflowScrolling(t){this.unsubscribe(),this.resetPosition()}},created(){this.observer=new me(this.handleResize)},mounted(){var t,e;null===(t=this.observer)||void 0===t||t.observe(this.$refs.wrapper),null===(e=this.observer)||void 0===e||e.observe(this.$refs.content)},methods:{handleResize(){const{clientHeight:t,scrollHeight:e}=this.$refs.wrapper;this.unsubscribe(),this.distance=e>t?e-t:0,this.resetPosition()},scroll(){if(!this.textScrollingProperty.overflowScrolling)return;const{durationTime:t,headerPause:e,footerPause:n}=this.textScrollingProperty;this.unsubscribe=this.timer.subscribe({delay:e,duration:t,pause:n,easingFunction:"linear",handler:this.updatePosition},this.resetPosition)},resetPosition(){this.$refs.wrapper.scrollTop=0,this.scroll()},updatePosition(t){this.$refs.wrapper.scrollTop=this.distance*t}}});var qe=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{ref:"wrapper",class:this.classes,style:this.styles},[e("div",{ref:"content",staticClass:"multiline-text__content"},[this._v(this._s(this.textContent))])])};qe._withStripped=!0;const He=We({render:qe,staticRenderFns:[]},void 0,Le,void 0,!1,void 0,!1,void 0,void 0,void 0);function Ue(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s}function Be(t){return(Be="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})(t)}function Ve(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ge(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Ke(){return"undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys}function Xe(t,e){Je(t,e),Object.getOwnPropertyNames(e.prototype).forEach((function(n){Je(t.prototype,e.prototype,n)})),Object.getOwnPropertyNames(e).forEach((function(n){Je(t,e,n)}))}function Je(t,e,n){(n?Reflect.getOwnMetadataKeys(e,n):Reflect.getOwnMetadataKeys(e)).forEach((function(r){var o=n?Reflect.getOwnMetadata(r,e,n):Reflect.getOwnMetadata(r,e);n?Reflect.defineMetadata(r,o,t,n):Reflect.defineMetadata(r,o,t)}))}var Qe={__proto__:[]}instanceof Array;function Ye(t,e){var n=e.prototype._init;e.prototype._init=function(){var e=this,n=Object.getOwnPropertyNames(t);if(t.$options.props)for(var r in t.$options.props)t.hasOwnProperty(r)||n.push(r);n.forEach((function(n){"_"!==n.charAt(0)&&Object.defineProperty(e,n,{get:function(){return t[n]},set:function(e){t[n]=e},configurable:!0})}))};var r=new e;e.prototype._init=n;var o={};return Object.keys(r).forEach((function(t){void 0!==r[t]&&(o[t]=r[t])})),o}var Ze=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function tn(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n.name=n.name||e._componentTag||e.name;var r=e.prototype;Object.getOwnPropertyNames(r).forEach((function(t){if("constructor"!==t)if(Ze.indexOf(t)>-1)n[t]=r[t];else{var e=Object.getOwnPropertyDescriptor(r,t);void 0!==e.value?"function"==typeof e.value?(n.methods||(n.methods={}))[t]=e.value:(n.mixins||(n.mixins=[])).push({data:function(){return Ve({},t,e.value)}}):(e.get||e.set)&&((n.computed||(n.computed={}))[t]={get:e.get,set:e.set})}})),(n.mixins||(n.mixins=[])).push({data:function(){return Ye(this,e)}});var o=e.__decorators__;o&&(o.forEach((function(t){return t(n)})),delete e.__decorators__);var i=Object.getPrototypeOf(e.prototype),s=i instanceof t?i.constructor:t,a=s.extend(n);return nn(a,e,s),Ke()&&Xe(a,e),a}var en={prototype:!0,arguments:!0,callee:!0,caller:!0};function nn(t,e,n){Object.getOwnPropertyNames(e).forEach((function(r){if(!en[r]){var o=Object.getOwnPropertyDescriptor(t,r);if(!o||o.configurable){var i,s,a=Object.getOwnPropertyDescriptor(e,r);if(!Qe){if("cid"===r)return;var c=Object.getOwnPropertyDescriptor(n,r);if(i=a.value,s=Be(i),null!=i&&("object"===s||"function"===s)&&c&&c.value===a.value)return}Object.defineProperty(t,r,a)}}}))}function rn(t){return"function"==typeof t?tn(t):function(e){return tn(e,t)}}rn.registerHooks=function(t){Ze.push.apply(Ze,Ge(t))};var on="undefined"!=typeof Reflect&&void 0!==Reflect.getMetadata;function sn(t){return void 0===t&&(t={}),function(e,n){var r;!function(t,e,n){if(on&&!Array.isArray(t)&&"function"!=typeof t&&void 0===t.type){var r=Reflect.getMetadata("design:type",e,n);r!==Object&&(t.type=r)}}(t,e,n),(r=function(e,n){(e.props||(e.props={}))[n]=t},function(t,e,n){var o="function"==typeof t?t:t.constructor;o.__decorators__||(o.__decorators__=[]),"number"!=typeof n&&(n=void 0),o.__decorators__.push((function(t){return r(t,e,n)}))})(e,n)}}const an={fontFamily:"微软雅黑",weightSize:["normal",12],color:"inherit",textAlign:"center",spacing:0};let cn=class PrimitiveTitle extends t{get textStyle(){return Object.assign(Object.assign({},an),this.titleStyle)}get textFontStyle(){const t=this.textStyle,{weightSize:e,spacing:n}=t,r=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}(t,["weightSize","spacing"]),[o,i]=e;return Object.assign(Object.assign({},r),{letterSpacing:`${n}px`,fontWeight:o,fontSize:`${i}px`})}};Ue([sn({default:"这是一个标题",type:String})],cn.prototype,"titleContent",void 0),Ue([sn({default:()=>({}),type:Object})],cn.prototype,"titleStyle",void 0),cn=Ue([rn],cn);const un=cn;var fn=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"primitive-title"},[e("div",{staticClass:"primitive-title__content",style:this.textFontStyle},[this._v("\n "+this._s(this.titleContent)+"\n ")])])};fn._withStripped=!0;const ln=We({render:fn,staticRenderFns:[]},void 0,un,void 0,!1,void 0,!1,void 0,void 0,void 0);export{He as MultilineText,n as SingleImage,ln as Title}; |
@@ -1,1 +0,1 @@ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],e):e((t=t||self).Carbonium={},t.Vue)}(this,(function(t,e){"use strict";function n(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}function r(t){return(r="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})(t)}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function a(){return"undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys}function s(t,e){c(t,e),Object.getOwnPropertyNames(e.prototype).forEach((function(n){c(t.prototype,e.prototype,n)})),Object.getOwnPropertyNames(e).forEach((function(n){c(t,e,n)}))}function c(t,e,n){(n?Reflect.getOwnMetadataKeys(e,n):Reflect.getOwnMetadataKeys(e)).forEach((function(r){var o=n?Reflect.getOwnMetadata(r,e,n):Reflect.getOwnMetadata(r,e);n?Reflect.defineMetadata(r,o,t,n):Reflect.defineMetadata(r,o,t)}))}e=e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e;var l={__proto__:[]}instanceof Array;function f(t,e){var n=e.prototype._init;e.prototype._init=function(){var e=this,n=Object.getOwnPropertyNames(t);if(t.$options.props)for(var r in t.$options.props)t.hasOwnProperty(r)||n.push(r);n.forEach((function(n){"_"!==n.charAt(0)&&Object.defineProperty(e,n,{get:function(){return t[n]},set:function(e){t[n]=e},configurable:!0})}))};var r=new e;e.prototype._init=n;var o={};return Object.keys(r).forEach((function(t){void 0!==r[t]&&(o[t]=r[t])})),o}var d=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function u(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n.name=n.name||t._componentTag||t.name;var r=t.prototype;Object.getOwnPropertyNames(r).forEach((function(t){if("constructor"!==t)if(d.indexOf(t)>-1)n[t]=r[t];else{var e=Object.getOwnPropertyDescriptor(r,t);void 0!==e.value?"function"==typeof e.value?(n.methods||(n.methods={}))[t]=e.value:(n.mixins||(n.mixins=[])).push({data:function(){return o({},t,e.value)}}):(e.get||e.set)&&((n.computed||(n.computed={}))[t]={get:e.get,set:e.set})}})),(n.mixins||(n.mixins=[])).push({data:function(){return f(this,t)}});var i=t.__decorators__;i&&(i.forEach((function(t){return t(n)})),delete t.__decorators__);var c=Object.getPrototypeOf(t.prototype),l=c instanceof e?c.constructor:e,u=l.extend(n);return v(u,t,l),a()&&s(u,t),u}var p={prototype:!0,arguments:!0,callee:!0,caller:!0};function v(t,e,n){Object.getOwnPropertyNames(e).forEach((function(o){if(!p[o]){var i=Object.getOwnPropertyDescriptor(t,o);if(!i||i.configurable){var a,s,c=Object.getOwnPropertyDescriptor(e,o);if(!l){if("cid"===o)return;var f=Object.getOwnPropertyDescriptor(n,o);if(a=c.value,s=r(a),null!=a&&("object"===s||"function"===s)&&f&&f.value===c.value)return}Object.defineProperty(t,o,c)}}}))}function y(t){return"function"==typeof t?u(t):function(e){return u(e,t)}}y.registerHooks=function(t){d.push.apply(d,i(t))};var h="undefined"!=typeof Reflect&&void 0!==Reflect.getMetadata;function g(t){return void 0===t&&(t={}),function(e,n){var r;!function(t,e,n){if(h&&!Array.isArray(t)&&"function"!=typeof t&&void 0===t.type){var r=Reflect.getMetadata("design:type",e,n);r!==Object&&(t.type=r)}}(t,e,n),(r=function(e,n){(e.props||(e.props={}))[n]=t},function(t,e,n){var o="function"==typeof t?t:t.constructor;o.__decorators__||(o.__decorators__=[]),"number"!=typeof n&&(n=void 0),o.__decorators__.push((function(t){return r(t,e,n)}))})(e,n)}}let _=class List extends e{};function b(t,e,n,r,o,i,a,s,c,l){"boolean"!=typeof a&&(c=s,s=a,a=!1);const f="function"==typeof n?n.options:n;let d;if(t&&t.render&&(f.render=t.render,f.staticRenderFns=t.staticRenderFns,f._compiled=!0,o&&(f.functional=!0)),r&&(f._scopeId=r),i?(d=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__),e&&e.call(this,c(t)),t&&t._registeredComponents&&t._registeredComponents.add(i)},f._ssrRegister=d):e&&(d=a?function(t){e.call(this,l(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),d)if(f.functional){const t=f.render;f.render=function(e,n){return d.call(n),t(e,n)}}else{const t=f.beforeCreate;f.beforeCreate=t?[].concat(t,d):[d]}return n}n([g({default:()=>[]})],_.prototype,"items",void 0),n([g({default:"label"})],_.prototype,"labelKey",void 0),_=n([y],_);const m=_;var O=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ul",{staticClass:"list"},t._l(t.items,(function(e,r){return n("li",{key:r,staticClass:"list__item"},[n("div",{staticClass:"list__item__content"},[t._v("\n "+t._s(e[t.labelKey])+"\n ")])])})),0)};O._withStripped=!0;const x=b({render:O,staticRenderFns:[]},void 0,m,"data-v-6cc4a890",!1,void 0,!1,void 0,void 0,void 0),w=e.extend({props:{src:{type:String,required:!0}},render(t){return t("img",{attrs:{src:this.src}})}});let S=class PrimitiveTable extends e{get columns(){return this.headers.map(t=>({key:t.key,label:t.label||t.key}))}};n([g({default:()=>[]})],S.prototype,"headers",void 0),n([g({default:()=>[]})],S.prototype,"rows",void 0),S=n([y],S);const C=S;var j=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("table",[n("thead",[n("tr",t._l(t.columns,(function(e,r){return n("th",{key:r},[n("span",[t._v(t._s(e.label))])])})),0)]),t._v(" "),n("tbody",t._l(t.rows,(function(e,r){return n("tr",{key:r},t._l(t.columns,(function(r,o){return n("td",{key:o},[t._v("\n "+t._s(e[r.key])+"\n ")])})),0)})),0)])};j._withStripped=!0;const P=b({render:j,staticRenderFns:[]},void 0,C,"data-v-04e22aa5",!1,void 0,!1,void 0,void 0,void 0),R={fontSize:"14px",fontWeight:600,lineHeight:1.5,letterSpacing:0,textAlign:"left",color:"#ffffff",textIndent:0};var E;!function(t){t.scroll="scroll",t.ellipsis="ellipsis"}(E||(E={}));let T=class PrimitiveTextarea extends e{constructor(){super(...arguments),this.editing=!1,this.newContent=this.value}created(){this.computeText()}get currentTextStyle(){return Object.assign(Object.assign({},R),this.textStyle)}get textOverflowClass(){return["textarea",`textarea--${this.textOverflow}`,{"textarea--editing":this.editing}]}get textareaShow(){return this.editing||"scroll"===this.textOverflow}computeText(){this.textareaShow||this.$nextTick(()=>{const t=this.$refs.textareaContentRef;this.getContainerHeight(t);let e=this.newContent.split("");for(;t.scrollHeight>t.clientHeight;)e.pop(),t.innerHTML=`${e.join("")}...`})}getContainerHeight(t){var e;const{paddingSize:n,borderSize:r}=this.calculateNodeStyling(t.parentElement);return(null===(e=t.parentElement)||void 0===e?void 0:e.getBoundingClientRect()).height-r-n}calculateNodeStyling(t){const e=window.getComputedStyle(t);return{paddingSize:parseFloat(e.getPropertyValue("padding-bottom"))+parseFloat(e.getPropertyValue("padding-top")),borderSize:parseFloat(e.getPropertyValue("border-bottom-width"))+parseFloat(e.getPropertyValue("border-top-width"))}}valueChangedFunc(){this.$emit("input",this.newContent)}openEditContent(){this.editing=!0,this.$nextTick(()=>{this.$refs.textareaRef.focus()})}closeEditContent(){this.editing=!1,this.computeText()}};n([g()],T.prototype,"value",void 0),n([g({default:"scroll",validator:t=>["scroll","ellipsis"].includes(t)})],T.prototype,"textOverflow",void 0),n([g()],T.prototype,"textStyle",void 0),T=n([y],T);const $=T;var F=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.textOverflowClass,attrs:{"data-content":t.newContent}},[t.textareaShow?n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.newContent,expression:"newContent"}],ref:"textareaRef",style:t.currentTextStyle,domProps:{value:t.newContent},on:{blur:t.closeEditContent,change:t.valueChangedFunc,input:function(e){e.target.composing||(t.newContent=e.target.value)}}}):n("div",{ref:"textareaContentRef",staticClass:"textarea-content",style:t.currentTextStyle,on:{click:t.openEditContent}},[n("span",[t._v(t._s(t.newContent))])])])};F._withStripped=!0;const k=b({render:F,staticRenderFns:[]},void 0,$,"data-v-65816f26",!1,void 0,!1,void 0,void 0,void 0),M={fontFamily:"微软雅黑",weightSize:["normal",12],color:"inherit",textAlign:"center",letterSpacing:"0px"};let A=class PrimitiveTitle extends e{get textStyle(){return Object.assign(Object.assign({},M),this.titleStyle)}get textFontStyle(){const t=this.textStyle,{weightSize:e}=t,n=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}(t,["weightSize"]),[r,o]=e;return Object.assign(Object.assign({},n),{fontWeight:r,fontSize:o+"px"})}};n([g({default:"这是一个标题",type:String})],A.prototype,"titleContent",void 0),n([g({default:()=>({}),type:Object})],A.prototype,"titleStyle",void 0),A=n([y],A);const N=A;var z=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"primitive-title"},[e("div",{staticClass:"primitive-title__content",style:this.textFontStyle},[this._v("\n "+this._s(this.titleContent)+"\n ")])])};z._withStripped=!0;const H=b({render:z,staticRenderFns:[]},void 0,N,void 0,!1,void 0,!1,void 0,void 0,void 0);t.List=x,t.Photo=w,t.PrimitiveTable=P,t.PrimitiveTextarea=k,t.PrimitiveTitle=H,Object.defineProperty(t,"__esModule",{value:!0})})); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],e):e((t=t||self).Carbonium={},t.Vue)}(this,(function(t,e){"use strict";e=e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e;const n={borderColor:"transparent",borderWidth:0,radius:0},r=e.extend({props:{url:{type:String,required:!0},borderStyle:{type:Object,default:()=>({})}},computed:{normalizedStyle(){return Object.assign(Object.assign({},n),this.borderStyle)}},render(t){const{borderColor:e,borderWidth:n,radius:r}=this.normalizedStyle;return t("img",{attrs:{src:this.url},style:{width:"100%",height:"100%",display:"block",boxSizing:"border-box",borderStyle:"solid",borderColor:e,borderWidth:`${n}px`,borderRadius:`${r}px`}})}});var o="object"==typeof global&&global&&global.Object===Object&&global,i="object"==typeof self&&self&&self.Object===Object&&self,s=o||i||Function("return this")(),a=s.Symbol,c=Object.prototype,u=c.hasOwnProperty,f=c.toString,l=a?a.toStringTag:void 0;var p=Object.prototype.toString;var h=a?a.toStringTag:void 0;function d(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":h&&h in Object(t)?function(t){var e=u.call(t,l),n=t[l];try{t[l]=void 0;var r=!0}catch(t){}var o=f.call(t);return r&&(e?t[l]=n:delete t[l]),o}(t):function(t){return p.call(t)}(t)}function v(t){return null!=t&&"object"==typeof t}var y=Array.isArray;function b(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function _(t){return t}function g(t){if(!b(t))return!1;var e=d(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}var m,w=s["__core-js_shared__"],O=(m=/[^.]+$/.exec(w&&w.keys&&w.keys.IE_PROTO||""))?"Symbol(src)_1."+m:"";var j=Function.prototype.toString;var S=/^\[object .+?Constructor\]$/,x=Function.prototype,A=Object.prototype,E=x.toString,P=A.hasOwnProperty,T=RegExp("^"+E.call(P).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function M(t){return!(!b(t)||(e=t,O&&O in e))&&(g(t)?T:S).test(function(t){if(null!=t){try{return j.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t));var e}function z(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return M(n)?n:void 0}var R=Object.create,F=function(){function t(){}return function(e){if(!b(e))return{};if(R)return R(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function $(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var C=Date.now;var D,I,k,N=function(){try{var t=z(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),W=(D=N?function(t,e){return N(t,"toString",{configurable:!0,enumerable:!1,value:(n=e,function(){return n}),writable:!0});var n}:_,I=0,k=0,function(){var t=C(),e=16-(t-k);if(k=t,e>0){if(++I>=800)return arguments[0]}else I=0;return D.apply(void 0,arguments)}),q=/^(?:0|[1-9]\d*)$/;function L(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&q.test(t))&&t>-1&&t%1==0&&t<e}function H(t,e,n){"__proto__"==e&&N?N(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function U(t,e){return t===e||t!=t&&e!=e}var B=Object.prototype.hasOwnProperty;function V(t,e,n){var r=t[e];B.call(t,e)&&U(r,n)&&(void 0!==n||e in t)||H(t,e,n)}var G=Math.max;function K(t,e){return W(function(t,e,n){return e=G(void 0===e?t.length-1:e,0),function(){for(var r=arguments,o=-1,i=G(r.length-e,0),s=Array(i);++o<i;)s[o]=r[e+o];o=-1;for(var a=Array(e+1);++o<e;)a[o]=r[o];return a[e]=n(s),$(t,this,a)}}(t,e,_),t+"")}function X(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function J(t){return null!=t&&X(t.length)&&!g(t)}var Q=Object.prototype;function Y(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Q)}function Z(t){return v(t)&&"[object Arguments]"==d(t)}var tt=Object.prototype,et=tt.hasOwnProperty,nt=tt.propertyIsEnumerable,rt=Z(function(){return arguments}())?Z:function(t){return v(t)&&et.call(t,"callee")&&!nt.call(t,"callee")};var ot="object"==typeof t&&t&&!t.nodeType&&t,it=ot&&"object"==typeof module&&module&&!module.nodeType&&module,st=it&&it.exports===ot?s.Buffer:void 0,at=(st?st.isBuffer:void 0)||function(){return!1},ct={};ct["[object Float32Array]"]=ct["[object Float64Array]"]=ct["[object Int8Array]"]=ct["[object Int16Array]"]=ct["[object Int32Array]"]=ct["[object Uint8Array]"]=ct["[object Uint8ClampedArray]"]=ct["[object Uint16Array]"]=ct["[object Uint32Array]"]=!0,ct["[object Arguments]"]=ct["[object Array]"]=ct["[object ArrayBuffer]"]=ct["[object Boolean]"]=ct["[object DataView]"]=ct["[object Date]"]=ct["[object Error]"]=ct["[object Function]"]=ct["[object Map]"]=ct["[object Number]"]=ct["[object Object]"]=ct["[object RegExp]"]=ct["[object Set]"]=ct["[object String]"]=ct["[object WeakMap]"]=!1;var ut="object"==typeof t&&t&&!t.nodeType&&t,ft=ut&&"object"==typeof module&&module&&!module.nodeType&&module,lt=ft&&ft.exports===ut&&o.process,pt=function(){try{var t=ft&&ft.require&&ft.require("util").types;return t||lt&<.binding&<.binding("util")}catch(t){}}(),ht=pt&&pt.isTypedArray,dt=ht?function(t){return function(e){return t(e)}}(ht):function(t){return v(t)&&X(t.length)&&!!ct[d(t)]},vt=Object.prototype.hasOwnProperty;function yt(t,e){var n=y(t),r=!n&&rt(t),o=!n&&!r&&at(t),i=!n&&!r&&!o&&dt(t),s=n||r||o||i,a=s?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],c=a.length;for(var u in t)!e&&!vt.call(t,u)||s&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||L(u,c))||a.push(u);return a}var bt=Object.prototype.hasOwnProperty;function _t(t){if(!b(t))return function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}(t);var e=Y(t),n=[];for(var r in t)("constructor"!=r||!e&&bt.call(t,r))&&n.push(r);return n}function gt(t){return J(t)?yt(t,!0):_t(t)}var mt=z(Object,"create");var wt=Object.prototype.hasOwnProperty;var Ot=Object.prototype.hasOwnProperty;function jt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function St(t,e){for(var n=t.length;n--;)if(U(t[n][0],e))return n;return-1}jt.prototype.clear=function(){this.__data__=mt?mt(null):{},this.size=0},jt.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},jt.prototype.get=function(t){var e=this.__data__;if(mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return wt.call(e,t)?e[t]:void 0},jt.prototype.has=function(t){var e=this.__data__;return mt?void 0!==e[t]:Ot.call(e,t)},jt.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=mt&&void 0===e?"__lodash_hash_undefined__":e,this};var xt=Array.prototype.splice;function At(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}At.prototype.clear=function(){this.__data__=[],this.size=0},At.prototype.delete=function(t){var e=this.__data__,n=St(e,t);return!(n<0)&&(n==e.length-1?e.pop():xt.call(e,n,1),--this.size,!0)},At.prototype.get=function(t){var e=this.__data__,n=St(e,t);return n<0?void 0:e[n][1]},At.prototype.has=function(t){return St(this.__data__,t)>-1},At.prototype.set=function(t,e){var n=this.__data__,r=St(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};var Et=z(s,"Map");function Pt(t,e){var n,r,o=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof e?"string":"hash"]:o.map}function Tt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Tt.prototype.clear=function(){this.size=0,this.__data__={hash:new jt,map:new(Et||At),string:new jt}},Tt.prototype.delete=function(t){var e=Pt(this,t).delete(t);return this.size-=e?1:0,e},Tt.prototype.get=function(t){return Pt(this,t).get(t)},Tt.prototype.has=function(t){return Pt(this,t).has(t)},Tt.prototype.set=function(t,e){var n=Pt(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};var Mt=function(t,e){return function(n){return t(e(n))}}(Object.getPrototypeOf,Object),zt=Function.prototype,Rt=Object.prototype,Ft=zt.toString,$t=Rt.hasOwnProperty,Ct=Ft.call(Object);function Dt(t){var e=this.__data__=new At(t);this.size=e.size}Dt.prototype.clear=function(){this.__data__=new At,this.size=0},Dt.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Dt.prototype.get=function(t){return this.__data__.get(t)},Dt.prototype.has=function(t){return this.__data__.has(t)},Dt.prototype.set=function(t,e){var n=this.__data__;if(n instanceof At){var r=n.__data__;if(!Et||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Tt(r)}return n.set(t,e),this.size=n.size,this};var It="object"==typeof t&&t&&!t.nodeType&&t,kt=It&&"object"==typeof module&&module&&!module.nodeType&&module,Nt=kt&&kt.exports===It?s.Buffer:void 0,Wt=Nt?Nt.allocUnsafe:void 0;var qt=s.Uint8Array;function Lt(t,e){var n,r,o=e?(n=t.buffer,r=new n.constructor(n.byteLength),new qt(r).set(new qt(n)),r):t.buffer;return new t.constructor(o,t.byteOffset,t.length)}var Ht,Ut=function(t,e,n){for(var r=-1,o=Object(t),i=n(t),s=i.length;s--;){var a=i[Ht?s:++r];if(!1===e(o[a],a,o))break}return t};function Bt(t,e,n){(void 0!==n&&!U(t[e],n)||void 0===n&&!(e in t))&&H(t,e,n)}function Vt(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}function Gt(t){return function(t,e,n,r){var o=!n;n||(n={});for(var i=-1,s=e.length;++i<s;){var a=e[i],c=r?r(n[a],t[a],a,n,t):void 0;void 0===c&&(c=t[a]),o?H(n,a,c):V(n,a,c)}return n}(t,gt(t))}function Kt(t,e,n,r,o,i,s){var a=Vt(t,n),c=Vt(e,n),u=s.get(c);if(u)Bt(t,n,u);else{var f,l=i?i(a,c,n+"",t,e,s):void 0,p=void 0===l;if(p){var h=y(c),_=!h&&at(c),m=!h&&!_&&dt(c);l=c,h||_||m?y(a)?l=a:v(f=a)&&J(f)?l=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}(a):_?(p=!1,l=function(t,e){if(e)return t.slice();var n=t.length,r=Wt?Wt(n):new t.constructor(n);return t.copy(r),r}(c,!0)):m?(p=!1,l=Lt(c,!0)):l=[]:function(t){if(!v(t)||"[object Object]"!=d(t))return!1;var e=Mt(t);if(null===e)return!0;var n=$t.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Ft.call(n)==Ct}(c)||rt(c)?(l=a,rt(a)?l=Gt(a):b(a)&&!g(a)||(l=function(t){return"function"!=typeof t.constructor||Y(t)?{}:F(Mt(t))}(c))):p=!1}p&&(s.set(c,l),o(l,c,r,i,s),s.delete(c)),Bt(t,n,l)}}function Xt(t,e,n,r,o){t!==e&&Ut(e,(function(i,s){if(o||(o=new Dt),b(i))Kt(t,e,s,n,Xt,r,o);else{var a=r?r(Vt(t,s),i,s+"",t,e,o):void 0;void 0===a&&(a=i),Bt(t,s,a)}}),gt)}function Jt(t,e,n,r,o,i){return b(t)&&b(e)&&(i.set(e,t),Xt(t,e,void 0,Jt,i),i.delete(e)),t}var Qt,Yt=(Qt=function(t,e,n,r){Xt(t,e,n,r)},K((function(t,e){var n=-1,r=e.length,o=r>1?e[r-1]:void 0,i=r>2?e[2]:void 0;for(o=Qt.length>3&&"function"==typeof o?(r--,o):void 0,i&&function(t,e,n){if(!b(n))return!1;var r=typeof e;return!!("number"==r?J(n)&&L(e,n.length):"string"==r&&e in n)&&U(n[e],t)}(e[0],e[1],i)&&(o=r<3?void 0:o,r=1),t=Object(t);++n<r;){var s=e[n];s&&Qt(t,s,n,o)}return t}))),Zt=K((function(t){return t.push(void 0,Jt),$(Yt,void 0,t)})),te=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some((function(t,r){return t[0]===e&&(n=r,!0)})),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),r=this.__entries__[n];return r&&r[1]},e.prototype.set=function(e,n){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,r=t(n,e);~r&&n.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];t.call(e,o[1],o[0])}},e}()}(),ee="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,ne="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),re="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(ne):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)};var oe=["top","right","bottom","left","width","height","size","weight"],ie="undefined"!=typeof MutationObserver,se=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(t,e){var n=!1,r=!1,o=0;function i(){n&&(n=!1,t()),r&&a()}function s(){re(i)}function a(){var t=Date.now();if(n){if(t-o<2)return;r=!0}else n=!0,r=!1,setTimeout(s,e);o=t}return a}(this.refresh.bind(this),20)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},t.prototype.connect_=function(){ee&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),ie?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){ee&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;oe.some((function(t){return!!~n.indexOf(t)}))&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),ae=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];Object.defineProperty(t,o,{value:e[o],enumerable:!1,writable:!1,configurable:!0})}return t},ce=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||ne},ue=ve(0,0,0,0);function fe(t){return parseFloat(t)||0}function le(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce((function(e,n){return e+fe(t["border-"+n+"-width"])}),0)}function pe(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return ue;var r=ce(t).getComputedStyle(t),o=function(t){for(var e={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=t["padding-"+o];e[o]=fe(i)}return e}(r),i=o.left+o.right,s=o.top+o.bottom,a=fe(r.width),c=fe(r.height);if("border-box"===r.boxSizing&&(Math.round(a+i)!==e&&(a-=le(r,"left","right")+i),Math.round(c+s)!==n&&(c-=le(r,"top","bottom")+s)),!function(t){return t===ce(t).document.documentElement}(t)){var u=Math.round(a+i)-e,f=Math.round(c+s)-n;1!==Math.abs(u)&&(a-=u),1!==Math.abs(f)&&(c-=f)}return ve(o.left,o.top,a,c)}var he="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof ce(t).SVGGraphicsElement}:function(t){return t instanceof ce(t).SVGElement&&"function"==typeof t.getBBox};function de(t){return ee?he(t)?function(t){var e=t.getBBox();return ve(0,0,e.width,e.height)}(t):pe(t):ue}function ve(t,e,n,r){return{x:t,y:e,width:n,height:r}}var ye=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=ve(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=de(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),be=function(t,e){var n,r,o,i,s,a,c,u=(r=(n=e).x,o=n.y,i=n.width,s=n.height,a="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,c=Object.create(a.prototype),ae(c,{x:r,y:o,width:i,height:s,top:o,right:r+i,bottom:s+o,left:r}),c);ae(this,{target:t,contentRect:u})},_e=function(){function t(t,e,n){if(this.activeObservations_=[],this.observations_=new te,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=n}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof ce(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new ye(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof ce(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(e){e.isActive()&&t.activeObservations_.push(e)}))},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new be(t.target,t.broadcastRect())}));this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),ge="undefined"!=typeof WeakMap?new WeakMap:new te,me=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=se.getInstance(),r=new _e(e,n,this);ge.set(this,r)};["observe","unobserve","disconnect"].forEach((function(t){me.prototype[t]=function(){var e;return(e=ge.get(this))[t].apply(e,arguments)}}));var we=void 0!==ne.ResizeObserver?ne.ResizeObserver:me,Oe="function"==typeof Float32Array;function je(t,e){return 1-3*e+3*t}function Se(t,e){return 3*e-6*t}function xe(t){return 3*t}function Ae(t,e,n){return((je(e,n)*t+Se(e,n))*t+xe(e))*t}function Ee(t,e,n){return 3*je(e,n)*t*t+2*Se(e,n)*t+xe(e)}function Pe(t){return t}var Te=function(t,e,n,r){if(!(0<=t&&t<=1&&0<=n&&n<=1))throw new Error("bezier x values must be in [0, 1] range");if(t===e&&n===r)return Pe;for(var o=Oe?new Float32Array(11):new Array(11),i=0;i<11;++i)o[i]=Ae(.1*i,t,n);function s(e){for(var r=0,i=1;10!==i&&o[i]<=e;++i)r+=.1;--i;var s=r+.1*((e-o[i])/(o[i+1]-o[i])),a=Ee(s,t,n);return a>=.001?function(t,e,n,r){for(var o=0;o<4;++o){var i=Ee(e,n,r);if(0===i)return e;e-=(Ae(e,n,r)-t)/i}return e}(e,s,t,n):0===a?s:function(t,e,n,r,o){var i,s,a=0;do{(i=Ae(s=e+(n-e)/2,r,o)-t)>0?n=s:e=s}while(Math.abs(i)>1e-7&&++a<10);return s}(e,r,r+.1,t,n)}return function(t){return 0===t?0:1===t?1:Ae(s(t),e,r)}};const Me="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):t=>setTimeout(t,1e3/60),ze="object"==typeof window&&window.cancelAnimationFrame?window.cancelAnimationFrame.bind(window):t=>clearTimeout(t),Re=Te(0,0,1,1),Fe=Te(.25,.1,.25,1),$e=Te(.42,0,1,1),Ce=Te(0,0,.58,1),De=Te(.42,0,.58,1),Ie="object"==typeof performance&&performance.now?performance.now.bind(performance):Date.now.bind(Date),ke={delay:0,duration:250,pause:0,easingFunction:"ease"},Ne={linear:Re,ease:Fe,easeIn:$e,easeOut:Ce,easeInOut:De};class TimerSubscription{constructor(t,e,n){this.timestamp=NaN,this.unsubscribe=t,this.options=e,this.clean=n}static getEasingFunction(t){return"function"==typeof t?t:Ne[t]||Ne.ease}getStartTime(t){return this.timestamp?this.timestamp:this.timestamp=t}getOptions(t,e){return this.options.filter(({delay:n,duration:r,pause:o})=>e<=t+n+r+o)}execute(t){const e=this.getStartTime(t);this.options=this.getOptions(e,t),this.options.length?this.options.forEach(({delay:n,duration:r,easingFunction:o,handler:i})=>{const s=TimerSubscription.getEasingFunction(o),a=t-e-n,c=a<0?0:a>r?1:a/r;c>0&&c<1&&i(s(c))}):(this.unsubscribe(),"function"==typeof this.clean&&this.clean())}}const We=(t={})=>{let e=0,n=0,r=!1;const o={...ke,...t},i=new Map,s=()=>{const t=Ie();i.forEach(e=>e.execute(t)),i.size?n=Me(s):c()},a=()=>{r=!0,Me(s)},c=()=>{r=!1,ze(n)};return{subscribe:(t,n)=>{const s=e++,c=()=>i.delete(s);return i.set(s,new TimerSubscription(c,(t=>{switch(!0){case Array.isArray(t):return t.map(t=>({...o,...t}));default:return[{...o,...t}]}})(t),n)),r||a(),c}}};function qe(t,e,n,r,o,i,s,a,c,u){"boolean"!=typeof s&&(c=a,a=s,s=!1);const f="function"==typeof n?n.options:n;let l;if(t&&t.render&&(f.render=t.render,f.staticRenderFns=t.staticRenderFns,f._compiled=!0,o&&(f.functional=!0)),r&&(f._scopeId=r),i?(l=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__),e&&e.call(this,c(t)),t&&t._registeredComponents&&t._registeredComponents.add(i)},f._ssrRegister=l):e&&(l=s?function(t){e.call(this,u(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,a(t))}),l)if(f.functional){const t=f.render;f.render=function(e,n){return l.call(n),t(e,n)}}else{const t=f.beforeCreate;f.beforeCreate=t?[].concat(t,l):[l]}return n}const Le=e.extend({props:{textContent:{type:String,default:""},textStyle:{type:Object},textScrolling:{type:Object}},data:()=>({distance:0,observer:null,timer:We(),unsubscribe:()=>{}}),computed:{classes(){return["multiline-text",{"multiline-text--scroll":this.textScrollingProperty.overflowScrolling}]},styles(){const t=Zt({},this.textStyle,{fontFamily:"微软雅黑",weightSize:["normal",12],color:"white",textAlign:"left",lineHeight:20,firstLineIndent:0,spacing:0}),[e,n]=t.weightSize||[];return{fontFamily:t.fontFamily,fontWeight:e,fontSize:`${n}px`,color:t.color,textAlign:t.textAlign,lineHeight:`${t.lineHeight}px`,textIndent:`${t.firstLineIndent}px`,letterSpacing:`${t.spacing}px`}},textScrollingProperty(){return Zt({},this.textScrolling,{overflowScrolling:!1,durationTime:5e3,headerPause:2500,footerPause:2500})},overflowScrolling(){return this.textScrollingProperty.overflowScrolling}},watch:{overflowScrolling(t){this.unsubscribe(),this.resetPosition()}},created(){this.observer=new we(this.handleResize)},mounted(){var t,e;null===(t=this.observer)||void 0===t||t.observe(this.$refs.wrapper),null===(e=this.observer)||void 0===e||e.observe(this.$refs.content)},methods:{handleResize(){const{clientHeight:t,scrollHeight:e}=this.$refs.wrapper;this.unsubscribe(),this.distance=e>t?e-t:0,this.resetPosition()},scroll(){if(!this.textScrollingProperty.overflowScrolling)return;const{durationTime:t,headerPause:e,footerPause:n}=this.textScrollingProperty;this.unsubscribe=this.timer.subscribe({delay:e,duration:t,pause:n,easingFunction:"linear",handler:this.updatePosition},this.resetPosition)},resetPosition(){this.$refs.wrapper.scrollTop=0,this.scroll()},updatePosition(t){this.$refs.wrapper.scrollTop=this.distance*t}}});var He=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{ref:"wrapper",class:this.classes,style:this.styles},[e("div",{ref:"content",staticClass:"multiline-text__content"},[this._v(this._s(this.textContent))])])};He._withStripped=!0;const Ue=qe({render:He,staticRenderFns:[]},void 0,Le,void 0,!1,void 0,!1,void 0,void 0,void 0);function Be(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s}function Ve(t){return(Ve="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})(t)}function Ge(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ke(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Xe(){return"undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys}function Je(t,e){Qe(t,e),Object.getOwnPropertyNames(e.prototype).forEach((function(n){Qe(t.prototype,e.prototype,n)})),Object.getOwnPropertyNames(e).forEach((function(n){Qe(t,e,n)}))}function Qe(t,e,n){(n?Reflect.getOwnMetadataKeys(e,n):Reflect.getOwnMetadataKeys(e)).forEach((function(r){var o=n?Reflect.getOwnMetadata(r,e,n):Reflect.getOwnMetadata(r,e);n?Reflect.defineMetadata(r,o,t,n):Reflect.defineMetadata(r,o,t)}))}var Ye={__proto__:[]}instanceof Array;function Ze(t,e){var n=e.prototype._init;e.prototype._init=function(){var e=this,n=Object.getOwnPropertyNames(t);if(t.$options.props)for(var r in t.$options.props)t.hasOwnProperty(r)||n.push(r);n.forEach((function(n){"_"!==n.charAt(0)&&Object.defineProperty(e,n,{get:function(){return t[n]},set:function(e){t[n]=e},configurable:!0})}))};var r=new e;e.prototype._init=n;var o={};return Object.keys(r).forEach((function(t){void 0!==r[t]&&(o[t]=r[t])})),o}var tn=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function en(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n.name=n.name||t._componentTag||t.name;var r=t.prototype;Object.getOwnPropertyNames(r).forEach((function(t){if("constructor"!==t)if(tn.indexOf(t)>-1)n[t]=r[t];else{var e=Object.getOwnPropertyDescriptor(r,t);void 0!==e.value?"function"==typeof e.value?(n.methods||(n.methods={}))[t]=e.value:(n.mixins||(n.mixins=[])).push({data:function(){return Ge({},t,e.value)}}):(e.get||e.set)&&((n.computed||(n.computed={}))[t]={get:e.get,set:e.set})}})),(n.mixins||(n.mixins=[])).push({data:function(){return Ze(this,t)}});var o=t.__decorators__;o&&(o.forEach((function(t){return t(n)})),delete t.__decorators__);var i=Object.getPrototypeOf(t.prototype),s=i instanceof e?i.constructor:e,a=s.extend(n);return rn(a,t,s),Xe()&&Je(a,t),a}var nn={prototype:!0,arguments:!0,callee:!0,caller:!0};function rn(t,e,n){Object.getOwnPropertyNames(e).forEach((function(r){if(!nn[r]){var o=Object.getOwnPropertyDescriptor(t,r);if(!o||o.configurable){var i,s,a=Object.getOwnPropertyDescriptor(e,r);if(!Ye){if("cid"===r)return;var c=Object.getOwnPropertyDescriptor(n,r);if(i=a.value,s=Ve(i),null!=i&&("object"===s||"function"===s)&&c&&c.value===a.value)return}Object.defineProperty(t,r,a)}}}))}function on(t){return"function"==typeof t?en(t):function(e){return en(e,t)}}on.registerHooks=function(t){tn.push.apply(tn,Ke(t))};var sn="undefined"!=typeof Reflect&&void 0!==Reflect.getMetadata;function an(t){return void 0===t&&(t={}),function(e,n){var r;!function(t,e,n){if(sn&&!Array.isArray(t)&&"function"!=typeof t&&void 0===t.type){var r=Reflect.getMetadata("design:type",e,n);r!==Object&&(t.type=r)}}(t,e,n),(r=function(e,n){(e.props||(e.props={}))[n]=t},function(t,e,n){var o="function"==typeof t?t:t.constructor;o.__decorators__||(o.__decorators__=[]),"number"!=typeof n&&(n=void 0),o.__decorators__.push((function(t){return r(t,e,n)}))})(e,n)}}const cn={fontFamily:"微软雅黑",weightSize:["normal",12],color:"inherit",textAlign:"center",spacing:0};let un=class PrimitiveTitle extends e{get textStyle(){return Object.assign(Object.assign({},cn),this.titleStyle)}get textFontStyle(){const t=this.textStyle,{weightSize:e,spacing:n}=t,r=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}(t,["weightSize","spacing"]),[o,i]=e;return Object.assign(Object.assign({},r),{letterSpacing:`${n}px`,fontWeight:o,fontSize:`${i}px`})}};Be([an({default:"这是一个标题",type:String})],un.prototype,"titleContent",void 0),Be([an({default:()=>({}),type:Object})],un.prototype,"titleStyle",void 0),un=Be([on],un);const fn=un;var ln=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"primitive-title"},[e("div",{staticClass:"primitive-title__content",style:this.textFontStyle},[this._v("\n "+this._s(this.titleContent)+"\n ")])])};ln._withStripped=!0;const pn=qe({render:ln,staticRenderFns:[]},void 0,fn,void 0,!1,void 0,!1,void 0,void 0,void 0);t.MultilineText=Ue,t.SingleImage=r,t.Title=pn,Object.defineProperty(t,"__esModule",{value:!0})})); |
{ | ||
"name": "@byzanteam/primitive-element", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Internal components of BA", | ||
@@ -22,2 +22,3 @@ "main": "dist/primitive-element.umd.js", | ||
"lodash-es": "^4.17.15", | ||
"resize-observer-polyfill": "^1.5.1", | ||
"vue": "^2.6.11", | ||
@@ -27,2 +28,3 @@ "vue-property-decorator": "^8.4.1" | ||
"devDependencies": { | ||
"@byzanteam/timer": "^0.2.0", | ||
"@rollup/plugin-commonjs": "^11.0.2", | ||
@@ -38,3 +40,3 @@ "@rollup/plugin-json": "^4.0.2", | ||
"html-webpack-plugin": "^3.2.0", | ||
"node-sass": "^4.13.1", | ||
"node-sass": "^4.14.1", | ||
"rollup": "^1.32.0", | ||
@@ -56,3 +58,3 @@ "rollup-plugin-postcss": "^2.5.0", | ||
"webpack-cli": "^3.3.11", | ||
"webpack-dev-server": "^3.10.3", | ||
"webpack-dev-server": "^3.11.0", | ||
"webpack-merge": "^4.2.2" | ||
@@ -59,0 +61,0 @@ }, |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
105708
398
1
5
30
7
+ Addedresize-observer-polyfill@1.5.1(transitive)