{ "pandav:/index.js": { "cubeCode": "Cube('pandav:/com/pointTimelineV2/1.0.1',['pandav:/npm/bcore/0.0.18/event','pandav:/npm/react/17.0.2','pandav:/npm/react-dom/17.0.2','pandav:/com/pointTimelineV2/1.0.1/src/Com.jsx','pandav:/npm/jquery/2.1.4'],function(a,b,c){function d(a){return a&&a.__esModule?a:{default:a}}var e=d(c('pandav:/npm/bcore/0.0.18/event')),f=d(c('pandav:/npm/react/17.0.2')),g=d(c('pandav:/npm/react-dom/17.0.2')),h=d(c('pandav:/com/pointTimelineV2/1.0.1/src/Com.jsx')),i=d(c('pandav:/npm/jquery/2.1.4'));return a.exports=e.default.extend(function(a,b){this.config={theme:{}},this.container=a,this.childrenConfig=[],this.apis=b.apis,this.containSize={boxWidth:(0,i.default)(a)&&(0,i.default)(a).width(),boxHeight:(0,i.default)(a)&&(0,i.default)(a).height()},this.init(b)},{init:function(a){this.mergeConfig(a)},add:function(a,b){a.addTo(this,b)},mergeConfig:function(a){var b;return a?(b=a,this.config=a):b=this.config,b},updateOptions:function(a,b){'[object Object]'===Object.prototype.toString.call(b)&&(this.config=a),this.childrenConfig.forEach(function(c){c.id===b&&(c.config=a)}),this.render(this._data,this.config)},updateChildOptions:function(a){if(0a.length)&&(b=a.length);for(var c=0,d=Array(b);c=aa.length?function(){return null}:void(u(0),_(K-1))},[K,aa]);var ca=function a(){A.current=setInterval(function(){_(function(a){var c=(a+1)%aa.length;if(c>=b(ra/2)&&c<=aa.length-b(ra/2))try{u(qa(aa[a+1].__id__)-('horizontal'==G?k-30:l-30)/2)}catch(a){}return 0==c&&(_(0),u(0)),c})},1e3*U)};(0,p.useEffect)(function(){return 0>=aa.length?function(){return null}:void(n&&n('stateSwitch',aa[$]))},[$]),(0,p.useEffect)(function(){return aa[0]&&0>=aa.length?function(){return null}:(T?ca():_(function(a){var c=a%aa.length,d=b(ra/2),e=aa.length-b(ra/2);try{c>=d&&c<=e?u(qa(aa[a].__id__)-('horizontal'==G?k-30:l-30)/2):c>e&&c=aa.length)return null;var c=aa[a].__id__,d=qa(c);_(a),n&&n('click',aa[a]),a>=b(ra/2)&&a<=aa.length-b(ra/2)?u(d-('horizontal'==G?k-30:l+30)/2):awa?k:wa,height:xa,viewBox:'0,0,'.concat(k>wa?k:wa,',').concat(xa),style:{paddingLeft:'horizontal'==G?'30px':'0',paddingTop:'horizontal'==G?'0':'30px',transform:'horizontal'==G?'translateX(-'.concat(oa,'px)'):'translateY(-'.concat(oa,'px)'),transition:'all '.concat(V,'s'),overflow:'visible',pointerEvents:'none'}},p.default.createElement('path',{strokeWidth:N,stroke:M,d:'horizontal'==G?'M'.concat(ja,',').concat(ka+ia/2,'h').concat(ha):'M'.concat(k/2,',').concat(ja,'V').concat(ha)}),p.default.createElement('g',null,aa.map(function(a,b){var c=a.text,d=void 0===c?'':c,e=a.value,f=void 0===e?'':e,g=a.__id__,h='horizontal'==G?qa(g):k/2,i='horizontal'==G?ka+ia/2:qa(g),j=b===$,l=0===b,m=b===aa.length-1,n=j?R:Q,o=n.timePoint,q=o.url,r=o.size,s=o.translate,t=n.linelabel,u=t.textWidth,v=t.textStyle,w=t.alignItems,x=t.textTranslate,y=n.label,z=y.width,A=y.textStyle,B=y.alignItems,C=y.labelTranslate,F=function b(a){return'horizontal'==G?('justify'==B?h+(l?-96:m?96:0)-ha/2:h-ha/2)-C.x:('justify'==B?h+(l?-96:m?96:0)-ha/2:h-ha/2)-C.x+(E?0==a%2?-J:J:0)},H=function b(a){return'horizontal'==G?E?i-C.y-ia/2+20-(0==a%2?-J:J):i-C.y-ia/2+20-J:E?i-C.y-ia/2+20:i-C.y-ia/2-40};return p.default.createElement('g',{key:b,style:{pointerEvents:'auto'},onClick:sa(b)},p.default.createElement('image',{x:h,y:i,key:b,xlinkHref:q,preserveAspectRatio:'none meet',width:r.width,height:r.height,style:{cursor:'pointer'},transform:'translate('.concat(s.x-r.width/2,', ').concat(s.y-r.height/2,')')}),p.default.createElement('foreignObject',{x:h,y:i+30,width:u,height:2*v.fontSize,style:{overflow:'visible',transform:'translate(-'+u/2+'px, 0px)translate3d('+x.x+'px, '+x.y+'px,0px)'}},p.default.createElement('p',{xmlns:'http://www.w3.org/1999/xhtml',style:Object.assign(Object.assign({},v),{},{height:0,margin:0,fontWeight:v.fontWeight,fontStyle:v.italic,wordBreak:'break-word',textAlign:w,width:''==u?'auto':u,cursor:'pointer'})},d,p.default.createElement('span',{style:{display:'inline-block',width:'100%'}}))),p.default.createElement('foreignObject',{x:F(b),y:H(b),width:ha,height:ia,style:{textAlign:B,pointerEvents:'none'}},p.default.createElement('div',{style:Object.assign(Object.assign({transition:'opacity 600ms ease',width:''==z?'auto':z,opacity:j||D?'1':'0',position:'absolute',top:'50%',left:'50%'},A),{},{fontWeight:A.fontWeight,fontStyle:A.italic,transform:'justify'==B?l?'translate(0%, -50%)':m?'translate(-100%, -50%)':'translate(-50%, -50%)':l?'translate(-50%, -50%)':'translate(-50%, -50%)',textAlign:B,pointerEvents:'auto',cursor:'pointer'})},f.split('\\n').map(function(a,b){return p.default.createElement('div',{key:b},a)}),p.default.createElement('span',{style:{display:'inline-block',width:'100%'}}))))})))),p.default.createElement(o.default,{type:pa,config:O,setIsDraging:y,list:aa,scrollEvent:f,handeleClick:sa,value:c(0,oa)/(na-ma+ba)*ma,boxStyle:{width:k,height:l}}))});return a.exports=s,a.exports});", "requires": [ "pandav:/src/utils.js", "pandav:/src/ScrollBar.jsx" ], "buildLevel": 2, "outputDir": "/com/pointTimelineV2/1.0.1/src", "outputPath": "/com/pointTimelineV2/1.0.1/src/Com.jsx", "fileName": "/src/Com.jsx" } }