{ "pandav:/index.js": { "cubeCode": "Cube('pandav:/com/bg-box/2.0.5',['pandav:/npm/bcore/0.0.18/event','pandav:/npm/jquery/2.1.4','pandav:/npm/lodash/4.6.1'],function(a,b,c){function d(a){if(!a)return'none';if('string'==typeof a)return a;switch(a.type){case'flat':return a.value;case'linearGradient':return'linear-gradient('+a.value.angle+'deg, '+g.map(a.value.stops,function(a){return a.color+' '+a.offset+'%'})+')'}}var e=c('pandav:/npm/bcore/0.0.18/event'),f=c('pandav:/npm/jquery/2.1.4'),g=c('pandav:/npm/lodash/4.6.1');return a.exports=e.extend(function(a,b){this.container=f(a),this.config=g.extend(!0,{},b||{}),this.init()},{init:function(){this._updateStyle()},_updateStyle:function(){var a=this.config,b=a.filter||{},c=a.backdropFilter||{},e={};if('0'!==b.blur&&'0px'!==b.blur&&(e.filter='blur('+(b.blur||'2px')+')'),'0'!==c.blur&&'0px'!==c.blur&&(e['backdrop-filter']='blur('+(c.blur||'5px')+')'),!a.ifCustomBorder)this.container.empty().css(f.extend({border:'none',\"border-radius\":a.borderRadius.topLeft+'px '+a.borderRadius.topRight+'px '+a.borderRadius.bottomRight+'px '+a.borderRadius.bottomLeft+'px',background:d(a.background)},e));else{a.customBorderStyle.slice?this.container.css(f.extend({\"border-radius\":0,\"border-style\":a.customBorderStyle.borderStyle||'solid',\"border-image\":a.customBorderStyle.borderImageStyle,\"border-image-width\":a.customBorderStyle.borderWidth||0,\"border-width\":'1px',\"border-image-source\":'url(\"'+a.customBorderStyle.borderImageSrc+'\") ',background:a.customBorderStyle.background||'none'},e)):this.container.css(f.extend({\"border-radius\":0,border:'none',\"background-color\":a.customBorderStyle.background||'none',\"background-image\":'url(\"'+a.customBorderStyle.borderImageSrc+'\")',\"background-repeat\":'no-repeat',\"background-size\":'100% 100%'},e));var g=f('
');g.css({background:a.customBorderStyle.innerBackground||'none',width:'100%',height:'100%'}),this.container.empty().append(g)}},resize:function(){},render:function(a,b){b=this.config=g.defaultsDeep(b||{},this.config),this._updateStyle()},destroy:function(){this.container.empty(),this._data=null}}),a.exports});", "requires": [], "buildLevel": 1, "outputDir": "/com/bg-box/2.0.5", "outputPath": "/com/bg-box/2.0.5/index.js", "fileName": "/index.js" } }