{ "pandav:/index.js": { "cubeCode": "Cube('pandav:/com/counterV2/1.1.0',['pandav:/npm/bcore/0.0.18/event','pandav:/npm/react/17.0.2','pandav:/npm/react-dom/17.0.2','pandav:/com/counterV2/1.1.0/Counter.jsx','pandav:/npm/jquery/2.1.4'],function(a,b,c){var d=c('pandav:/npm/bcore/0.0.18/event'),e=c('pandav:/npm/react/17.0.2'),f=c('pandav:/npm/react-dom/17.0.2'),g=c('pandav:/com/counterV2/1.1.0/Counter.jsx'),h=c('pandav:/npm/jquery/2.1.4');return a.exports=d.extend(function(a,b){this.config={theme:{}},this.container=a,this.apis=b.apis,this.containSize={boxWidth:h(a)&&h(a).width(),boxHeight:h(a)&&h(a).height()},this.init(b)},{init:function(a){this.mergeConfig(a)},mergeConfig:function(a){var b;return a?(b=a,this.config=a):b=this.config,b},updateOptions:function(a){this.render(this._data,a)},data:function(a){return a&&(this._data=a),this._data},setColors:function(){},resize:function(a,b){this.containSize={boxWidth:a,boxHeight:b},this.render(this._data,this.config)},render:function(a,b){a=this.data(a);var c=this.mergeConfig(b),d=c.options;f.render(e.createElement(g,{width:this.containSize.boxWidth,height:this.containSize.boxHeight,emitEvent:this.emit.bind(this),config:d,data:a,id:this.__id}),this.container)},destroy:function(){return!!this.container&&void(f.unmountComponentAtNode(this.container),this.container.innerHTML='')}}),a.exports});", "requires": [ "pandav:/Counter.jsx" ], "buildLevel": 1, "outputDir": "/com/counterV2/1.1.0", "outputPath": "/com/counterV2/1.1.0/index.js", "fileName": "/index.js" }, "pandav:/initFilterScript/JObject.js": { "cubeCode": "Cube('pandav:/com/counterV2/1.1.0/initFilterScript/JObject',[],function(a){return a.exports});", "requires": [], "buildLevel": 0, "outputDir": "/com/counterV2/1.1.0/initFilterScript", "outputPath": "/com/counterV2/1.1.0/initFilterScript/JObject.js", "fileName": "/initFilterScript/JObject.js" }, "pandav:/initFilterScript/JArray.js": { "cubeCode": "Cube('pandav:/com/counterV2/1.1.0/initFilterScript/JArray',[],function(a){return a.exports});", "requires": [], "buildLevel": 0, "outputDir": "/com/counterV2/1.1.0/initFilterScript", "outputPath": "/com/counterV2/1.1.0/initFilterScript/JArray.js", "fileName": "/initFilterScript/JArray.js" }, "pandav:/components/index.js": { "cubeCode": "Cube('pandav:/com/counterV2/1.1.0/components',[],function(a){function b(a,b){return g(a)||f(a,b)||d(a,b)||c()}function c(){throw new TypeError('Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.')}function d(a,b){if(a){if('string'==typeof a)return e(a,b);var c=Object.prototype.toString.call(a).slice(8,-1);return'Object'===c&&a.constructor&&(c=a.constructor.name),'Map'===c||'Set'===c?Array.from(a):'Arguments'===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?e(a,b):void 0}}function e(a,b){(null==b||b>a.length)&&(b=a.length);for(var c=0,d=Array(b);ca.length)&&(b=a.length);for(var c=0,d=Array(b);c=q&&c=v&&cc?'-':'':0d?'-':'',config:j,lineHeight:u.height?''.concat(u.height,'px'):'unset'}),l.createElement('div',{style:{display:'inline-flex',alignItems:'center',justifyContent:x?'space-between':'flex-start',minWidth:x?y:'auto'}},r.map(function(a,b){return l.createElement('span',{key:'int_'+(r.length-b),style:{position:'relative',display:'inline-block',fontFamily:'\\u5206\\u9694\\u7B26'===a&&'default'!=p.style?p.fontFamily:'inherit',width:'\\u5206\\u9694\\u7B26'!==a&&u.width?u.width:'auto',height:'\\u5206\\u9694\\u7B26'!==a&&u.height?u.height:'auto',lineHeight:u.height?''.concat(u.height,'px'):'unset',marginRight:'\\u5206\\u9694\\u7B26'===a?p.spacingConfig.right:w.right,marginLeft:'\\u5206\\u9694\\u7B26'===a?p.spacingConfig.left:w.left,background:'\\u5206\\u9694\\u7B26'!==a&&h.show&&h.url?'url('.concat(h.url,') 0% 0% / 100% 100% no-repeat'):'none',overflowY:'scroll'===k.animationType?'hidden':'none'}},'\\u5206\\u9694\\u7B26'===a?'default'!=p.style&&p.separator?p.separator:',':'scroll'===k.animationType?l.createElement(H,{value:a,sizeConfig:u,animationConfig:k}):a)}),0c?'-':'':0d?'-':'',config:j,lineHeight:u.height?''.concat(u.height,'px'):'unset'})):null},F=r(function(a){var b=a.value,c=a.config,f=o(0),g=e(f,2),h=g[0],i=g[1],j=m(null),k=m(null),n=m(null),r=m(0),s=m(new Date().valueOf()),t=m(0),u=m(0),v=m(!0),x=c.animationConfig,y=c.formateConfig,z=y.splitConfig,A=y.decimalConfig,B=y.zeroize,C=function b(a){var c=new Date().valueOf(),d=+t.current+r.current*(c-s.current);0a||0>r.current&&d=a&&(u.current=0,J())},1e3*(x.simulateGetDataInterval/(a-1))))},J=function(){i(function(a){return t.current=a,a}),u.current=0,n.current&&clearInterval(n.current),n.current=null};q(function(){return v.current||(t.current=h,!x.simulateGetData&&(D(b),x.animationInterval&&G(b)),x.simulateGetData&&I()),function(){F(),H(),J()}},[b,JSON.stringify(x)]),p(function(){v.current=!1,t.current=b*x.startPercent,i(t.current),x.simulateGetData||(D(b),x.animationInterval&&G(b)),x.simulateGetData&&I()},[]);var K=w(d(h),z.show?z.splitCount:1/0,A.count,B,A.noZero);return l.createElement(E,{value:b,config:c,currentValue:h,showValue:K})}),G=r(function(a){var b=a.value,c=a.config,f=o(0),g=e(f,2),h=g[0],i=g[1],j=m(0),k=m(!0),n=m(null),r=c.animationConfig,s=c.formateConfig,t=s.decimalConfig,u=s.splitConfig,v=s.zeroize,x=function(){y();var a=r.simulateGetDataTimes;j.current+=1,i(function(c){return c+(b-c)/a}),1=a&&(j.current=0,y())},1e3*(r.simulateGetDataInterval/(a-1))))},y=function(){j.current=0,n.current&&clearInterval(n.current),n.current=null};q(function(){return!k.current&&r.simulateGetData?x():i(b),function(){y()}},[b,JSON.stringify(r)]),p(function(){k.current=!1,i(.5*b),r.simulateGetData?x():i(b)},[]);var z=w(d(h),u.show?u.splitCount:1/0,t.count,v,t.noZero);return l.createElement(E,{value:h,config:c,showValue:z})}),H=r(function(a){var b=a.value,c=a.sizeConfig,d=a.animationConfig,f=o(0),g=e(f,2),h=g[0],i=g[1],j=m(0),k=m(null),n=m(0),q=m(new Date().valueOf()),r=c.width,s=c.height,t=function a(){var c=new Date().valueOf(),d=h+n.current*(c-q.current);0=+b||0>n.current&&d<=+b?(i(+b),cancelAnimationFrame(k.current),k.current=null):(i(d),k.current=requestAnimationFrame(a))};return p(function(){return k.current&&cancelAnimationFrame(k.current),k.current=null,q.current=new Date().valueOf(),n.current=(b-j.current)/d.time/1e3,!n.current||(k.current=requestAnimationFrame(t)),function(){k.current&&cancelAnimationFrame(k.current),k.current=null}},[b,s]),p(function(){j.current=b},[b]),l.createElement('div',{style:{position:'absolute',left:0,top:0,display:'inline-block',width:c.width,transform:'translate('.concat(0,'px, ',h*-s,'px)')}},[0,1,2,3,4,5,6,7,8,9].map(function(a){return l.createElement('div',{key:a,style:{width:c.width,height:c.height,lineHeight:''.concat(c.height,'px')}},a)}))}),I=r(function(a){var b=a.symbol,c=a.config,d=a.lineHeight,e={image:c.positiveImage,offsetConfig:c.positiveOffsetConfig,sizeConfig:c.positiveSizeConfig};return'+'===b?'':'-'===b?e={image:c.negativeImage,offsetConfig:c.negativeOffsetConfig,sizeConfig:c.negativeSizeConfig}:e={image:c.equalImage,offsetConfig:c.equalOffsetConfig,sizeConfig:c.equalSizeConfig},c.show||'-'===b?l.createElement('div',{style:{display:'inline-block',background:c.show&&!!e.image?'url('.concat(e.image,') 0% 0% / 100% 100% no-repeat'):'none',width:c.show&&!!e.image?e.sizeConfig.width:'auto',height:c.show&&!!e.image?e.sizeConfig.height:'auto',lineHeight:c.show&&!!e.image?'unset':d,transform:c.show?'translate('.concat(e.image?e.offsetConfig.x:0,'px, ').concat(e.image?e.offsetConfig.y:0,'px)'):'none'}},c.show&&e.image?'':b):null});return a.exports=function(a){var b=a.data,c=null;return b&&b[0]&&!isNaN(+b[0].value)&&(c={value:+b[0].value}),l.createElement(A,{componentProps:a,originValue:b&&b[0]&&b[0].value||'',showData:c,dataName:b&&b[0]&&b[0].name||'',dataSuffix:b&&b[0]&&b[0].suffix||'',dataPrefix:b&&b[0]&&b[0].prefix||''})},a.exports});", "requires": [ "pandav:/components/index.js", "pandav:/index.css.js" ], "buildLevel": 2, "outputDir": "/com/counterV2/1.1.0", "outputPath": "/com/counterV2/1.1.0/Counter.jsx", "fileName": "/Counter.jsx" }, "pandav:/initFilterScript/Normal.js": { "cubeCode": "Cube('pandav:/com/counterV2/1.1.0/initFilterScript/Normal',[],function(a){return a.exports});", "requires": [], "buildLevel": 0, "outputDir": "/com/counterV2/1.1.0/initFilterScript", "outputPath": "/com/counterV2/1.1.0/initFilterScript/Normal.js", "fileName": "/initFilterScript/Normal.js" }, "pandav:/index.css.js": { "cubeCode": "Cube(\"pandav:/com/counterV2/1.1.0/index.css\", [], function(m){m.exports=\".index-module_counter{animation:index-module_enter_39wxC .6s ease-in}@keyframes index-module_enter_39wxC{0%{opacity:0}100%{opacity:1}}\";return m.exports});", "requires": [], "buildLevel": 2, "outputDir": "/com/counterV2/1.1.0", "outputPath": "/com/counterV2/1.1.0/index.css.js", "fileName": "/index.css" } }