{ "pandav:/components/animate.css.js": { "cubeCode": "Cube(\"pandav:/com/imageV2/1.0.8/components/animate.css\", [], function(m){m.exports=\".index-module_opacity_1j0Um{animation-name:index-module_opacity_1j0Um}.index-module_rotateClockwise_3Qdra{animation-name:index-module_rotateClockwise_3Qdra}.index-module_rotateAnticlockwise_pBpYa{animation-name:index-module_rotateAnticlockwise_pBpYa}.index-module_whirling_3A_wv{animation-name:index-module_whirling_3A_wv}.index-module_scale_FfDY_{animation-name:index-module_scale_FfDY_}@keyframes index-module_opacity_1j0Um{0%{opacity:0}50%{opacity:1}100%{opacity:0}}@keyframes index-module_rotateClockwise_3Qdra{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes index-module_rotateAnticlockwise_pBpYa{0%{transform:rotate(0)}100%{transform:rotate(-360deg)}}@keyframes index-module_whirling_3A_wv{0%{transform:rotate(0)}50%{transform:rotate(-55deg)}100%{transform:rotate(0)}}@keyframes index-module_scale_FfDY_{0%{transform:scale(.8)}50%{transform:scale(1)}100%{transform:scale(.8)}}.index-module_auto_3TjcZ{width:100%;height:100%;object-fit:contain}.index-module_original_2nKAI{position:absolute;object-fit:cover}.index-module_stretch_1bcJi{width:100%;height:100%}\";return m.exports});", "requires": [], "buildLevel": 4, "outputDir": "/com/imageV2/1.0.8/components", "outputPath": "/com/imageV2/1.0.8/components/animate.css.js", "fileName": "/components/animate.css" }, "pandav:/index.js": { "cubeCode": "Cube('pandav:/com/imageV2/1.0.8',['pandav:/npm/bcore/0.0.18/event','pandav:/npm/react/17.0.2','pandav:/npm/react-dom/17.0.2','pandav:/com/imageV2/1.0.8/components/Image'],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/imageV2/1.0.8/components/Image');return a.exports=d.extend(function(a,b){this.config={theme:{}},this.container=a,this.apis=b.apis,this.containSize={boxWidth:$(a)&&$(a).width(),boxHeight:$(a)&&$(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,b){this.render(this._data,a,b)},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,c){a=this.data(a);var d=this.mergeConfig(b);f.render(e.createElement(g,Object.assign({containSize:this.containSize,width:this.containSize.boxWidth,height:this.containSize.boxHeight,id:this.__id,emit:this.emit.bind(this)},d,{data:a,scene:c})),this.container)},destroy:function(){return!!this.container&&void(f.unmountComponentAtNode(this.container),this.container.innerHTML='')}}),a.exports});", "requires": [ "pandav:/components/Image.js" ], "buildLevel": 1, "outputDir": "/com/imageV2/1.0.8", "outputPath": "/com/imageV2/1.0.8/index.js", "fileName": "/index.js" }, "pandav:/components/Image.js": { "cubeCode": "Cube('pandav:/com/imageV2/1.0.8/components/Image',['pandav:/npm/react/17.0.2','pandav:/com/imageV2/1.0.8/components/Wrapper','pandav:/com/imageV2/1.0.8/components/animate.css'],function(a,b,c){var d=c('pandav:/npm/react/17.0.2'),e=c('pandav:/com/imageV2/1.0.8/components/Wrapper');c('pandav:/com/imageV2/1.0.8/components/animate.css','');var f={auto:'index-module_auto_3TjcZ',opacity:'index-module_opacity_1j0Um',original:'index-module_original_2nKAI',rotateAnticlockwise:'index-module_rotateAnticlockwise_pBpYa',rotateClockwise:'index-module_rotateClockwise_3Qdra',scale:'index-module_scale_FfDY_',stretch:'index-module_stretch_1bcJi',whirling:'index-module_whirling_3A_wv'};return a.exports=function(a){var b=d.useRef(null),c=a.options,g=a.data,h=a.scene??{},i=a.width,j=a.height,k=h.backgroundColor,l=void 0===k?null:k,m=c.chart,n=c.animation,o=c.filter,p=c.transform,q=void 0===p?{}:p,r=window?.globalConfig?.userInfo?.site||null,s=n.keyframes,t=m.url,u=m.mode,v=m.opacity,w=m.margin,x=void 0===w?{}:w,y=m.size,z=m.justifyContent,A=m.borderRadius,B=m.color,C=m.colorShow,D=m.eventsThrough,E=A.split(';').map(function(a){return a+'px'}).join(' '),F=B?B:l?l:'#0d2a42',G=x.left,H=void 0===G?0:G,I=x.top,J=void 0===I?0:I,K=x.right,L=void 0===K?0:K,M=x.bottom,N=void 0===M?0:M,O=q.rotateX,P=void 0===O?0:O,Q=q.rotateY,R=void 0===Q?0:Q,S=q.rotateZ,T=void 0===S?0:S,U=q.scaleX,V=void 0===U?1:U,W=q.scaleY,X=void 0===W?1:W,Y=q.scaleZ,Z=void 0===Y?1:Y,$=q.translateX,_=void 0===$?0:$,aa=q.translateY,ba=void 0===aa?0:aa,ca=q.translateZ,da=void 0===ca?0:ca,ea=g&&g[0]&&g[0].url,fa=ea?a.data:[{url:t}];return d.useEffect(function(){b.current&&(b.current.ondragstart=function(){return!1})},[]),d.createElement(e,Object.assign({},a,{keyframes:s,style:n,mode:u,customStyle:{pointerEvents:D?'none':'auto',cursor:D?'default':'pointer',background:C?F:'',display:'flex',justifyContent:z,width:i-H-L,height:j-J-N,margin:J+'px '+L+'px '+N+'px '+H+'px'}}),(ea||t)&&d.createElement('img',{ref:b,className:f[y],src:''.concat(ea||t).concat(r?'?_site='+r:''),onClick:function(){a.emit&&a.emit('handleClick',fa)},onMouseEnter:function(){a.emit&&a.emit('mouseEnter',fa)},onMouseLeave:function(){a.emit&&a.emit('mouseLeave',fa)},style:{borderRadius:E,mixBlendMode:u,opacity:v,filter:function(a){var b=a.blur,c=a.brightness,d=a.contrast,e=a.grayscale,f=a.hueRotate,g=a.invert,h=a.saturate,i=a.sepia,j=a.shadow;return(b.show?'blur('+b.value+'px)':'')+(j.show?' drop-shadow('+j.dropShadow.hShadow+'px '+j.dropShadow.vShadow+'px '+j.dropShadow.blur+'px '+j.dropShadow.color+')':'')+(c.show?' brightness('+c.value+'%)':'')+(d.show?' contrast('+d.value+'%)':'')+(e.show?' grayscale('+e.value+'%)':'')+(f.show?' hue-rotate('+f.value+'deg)':'')+(g.show?' invert('+g.value+'%)':'')+(h.show?' saturate('+h.value+'%)':'')+(i.show?' sepia('+i.value+'%)':'')}(o),transform:'rotateX('+P+'deg) rotateY('+R+'deg) rotateZ('+T+'deg) scaleX('+V+') scaleY('+X+') scaleZ('+Z+') translate3d('+_+'px,'+ba+'px,'+da+'px)'}}))},a.exports});", "requires": [ "pandav:/components/Wrapper.js", "pandav:/components/animate.css.js" ], "buildLevel": 2, "outputDir": "/com/imageV2/1.0.8/components", "outputPath": "/com/imageV2/1.0.8/components/Image.js", "fileName": "/components/Image.js" }, "pandav:/components/Wrapper.js": { "cubeCode": "Cube('pandav:/com/imageV2/1.0.8/components/Wrapper',['pandav:/npm/react/17.0.2','pandav:/npm/lodash/4.6.1','pandav:/com/tween-animation/2.0.0'],function(a,b,c){function d(a){\"@babel/helpers - typeof\";return d='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&'function'==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?'symbol':typeof a},d(a)}function e(a,b){if(!(a instanceof b))throw new TypeError('Cannot call a class as a function')}function f(a,b){for(var c,d=0;dm.timeAxis&&c.push({timeAxis:100,opacity:100});var n=0,o=c.map(function(a){var b=a.timeAxis,c=a.opacity,d=a.rotate,e=a.scale,f=a.translate,g=1e3*(b/100*i),h=g-n,j=d&&d.show?{rotateX:d.rotateX,rotateY:d.rotateY,rotateZ:d.rotateZ}:{rotateX:0,rotateY:0,rotateZ:0},k=e&&e.show?{scaleX:e.scaleX,scaleY:e.scaleY}:{scaleX:100,scaleY:100},l=f&&f.show?t.omit(f,['show']):{translateX:0,translateY:0},m={duration:h,easeType:a.easeType,easeRatio:a.easeRatio,tweenData:Object.assign({opacity:c/100},j,k,l)};return n=g,m});this.tween&&this.tween.destroy(),this.Timeout&&clearTimeout(this.Timeout),this.tween=null,this.Timeout=null,this.Timeout=setTimeout(function(){d.customTween(a,o)},1e3*h)}}},{key:'customTween',value:function c(a,b){var d=a.style,e=d.infinite,f=d.animationSpan,g=b[0].tweenData,h=new o(Object.assign({},g));this.tween=h,h.set(g);for(var j=1;j