2017-01-10 04:04:09 +00:00
( function webpackUniversalModuleDefinition ( root , factory ) {
if ( typeof exports === 'object' && typeof module === 'object' )
module . exports = factory ( ) ;
else if ( typeof define === 'function' && define . amd )
define ( [ ] , factory ) ;
else if ( typeof exports === 'object' )
exports [ "VueMaterial" ] = factory ( ) ;
else
root [ "VueMaterial" ] = factory ( ) ;
} ) ( this , ( function ( ) {
return /******/ ( function ( modules ) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = { } ;
/******/ // The require function
/******/ function _ _webpack _require _ _ ( moduleId ) {
/******/ // Check if module is in cache
/******/ if ( installedModules [ moduleId ] )
/******/ return installedModules [ moduleId ] . exports ;
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules [ moduleId ] = {
2017-02-08 03:16:24 +00:00
/******/ i : moduleId ,
/******/ l : false ,
/******/ exports : { }
2017-01-10 04:04:09 +00:00
/******/ } ;
/******/ // Execute the module function
/******/ modules [ moduleId ] . call ( module . exports , module , module . exports , _ _webpack _require _ _ ) ;
/******/ // Flag the module as loaded
2017-02-08 03:16:24 +00:00
/******/ module . l = true ;
2017-01-10 04:04:09 +00:00
/******/ // Return the exports of the module
/******/ return module . exports ;
/******/ }
/******/ // expose the modules object (__webpack_modules__)
/******/ _ _webpack _require _ _ . m = modules ;
/******/ // expose the module cache
/******/ _ _webpack _require _ _ . c = installedModules ;
2017-02-08 03:16:24 +00:00
/******/ // identity function for calling harmony imports with the correct context
/******/ _ _webpack _require _ _ . i = function ( value ) { return value ; } ;
/******/ // define getter function for harmony exports
/******/ _ _webpack _require _ _ . d = function ( exports , name , getter ) {
/******/ if ( ! _ _webpack _require _ _ . o ( exports , name ) ) {
/******/ Object . defineProperty ( exports , name , {
/******/ configurable : false ,
/******/ enumerable : true ,
/******/ get : getter
/******/ } ) ;
/******/ }
/******/ } ;
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ _ _webpack _require _ _ . n = function ( module ) {
/******/ var getter = module && module . _ _esModule ?
/******/ function getDefault ( ) { return module [ 'default' ] ; } :
/******/ function getModuleExports ( ) { return module ; } ;
/******/ _ _webpack _require _ _ . d ( getter , 'a' , getter ) ;
/******/ return getter ;
/******/ } ;
/******/ // Object.prototype.hasOwnProperty.call
/******/ _ _webpack _require _ _ . o = function ( object , property ) { return Object . prototype . hasOwnProperty . call ( object , property ) ; } ;
2017-01-10 04:04:09 +00:00
/******/ // __webpack_public_path__
/******/ _ _webpack _require _ _ . p = "/" ;
/******/ // Load entry module and return exports
2017-02-08 03:16:24 +00:00
/******/ return _ _webpack _require _ _ ( _ _webpack _require _ _ . s = 402 ) ;
2017-01-10 04:04:09 +00:00
/******/ } )
/************************************************************************/
/******/ ( {
/***/ 0 :
2017-02-08 03:16:24 +00:00
/***/ ( function ( module , exports ) {
module . exports = function normalizeComponent (
rawScriptExports ,
compiledTemplate ,
scopeId ,
cssModules
) {
var esModule
var scriptExports = rawScriptExports = rawScriptExports || { }
// ES6 modules interop
var type = typeof rawScriptExports . default
if ( type === 'object' || type === 'function' ) {
esModule = rawScriptExports
scriptExports = rawScriptExports . default
}
// Vue.extend constructor export interop
var options = typeof scriptExports === 'function'
? scriptExports . options
: scriptExports
// render functions
if ( compiledTemplate ) {
options . render = compiledTemplate . render
options . staticRenderFns = compiledTemplate . staticRenderFns
}
// scopedId
if ( scopeId ) {
options . _scopeId = scopeId
}
// inject cssModules
if ( cssModules ) {
var computed = options . computed || ( options . computed = { } )
Object . keys ( cssModules ) . forEach ( ( function ( key ) {
var module = cssModules [ key ]
computed [ key ] = function ( ) { return module }
} ) )
}
return {
esModule : esModule ,
exports : scriptExports ,
options : options
}
}
/***/ } ) ,
2017-01-10 04:04:09 +00:00
/***/ 1 :
2017-02-08 03:16:24 +00:00
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
"use strict" ;
Object . defineProperty ( exports , "__esModule" , {
value : true
} ) ;
exports . default = {
props : {
mdTheme : String
} ,
data : function data ( ) {
return {
closestThemedParent : false
} ;
} ,
methods : {
getClosestThemedParent : function getClosestThemedParent ( $parent ) {
if ( ! $parent || ! $parent . $el || $parent . _uid === 0 ) {
return false ;
}
if ( $parent . mdTheme || $parent . mdName ) {
return $parent ;
}
return this . getClosestThemedParent ( $parent . $parent ) ;
}
} ,
computed : {
themeClass : function themeClass ( ) {
if ( this . mdTheme ) {
return 'md-theme-' + this . mdTheme ;
}
var theme = this . closestThemedParent . mdTheme ;
if ( ! theme ) {
if ( this . closestThemedParent ) {
theme = this . closestThemedParent . mdName ;
} else {
theme = this . $material . currentTheme ;
}
}
return 'md-theme-' + theme ;
}
} ,
mounted : function mounted ( ) {
this . closestThemedParent = this . getClosestThemedParent ( this . $parent ) ;
if ( ! this . $material . currentTheme ) {
this . $material . setCurrentTheme ( 'default' ) ;
}
}
} ;
module . exports = exports [ 'default' ] ;
/***/ } ) ,
/***/ 137 :
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
"use strict" ;
Object . defineProperty ( exports , "__esModule" , {
value : true
} ) ;
var _mixin = _ _webpack _require _ _ ( 1 ) ;
var _mixin2 = _interopRequireDefault ( _mixin ) ;
function _interopRequireDefault ( obj ) { return obj && obj . _ _esModule ? obj : { default : obj } ; }
exports . default = {
props : {
mdWithHover : Boolean
} ,
mixins : [ _mixin2 . default ] ,
computed : {
classes : function classes ( ) {
return {
'md-with-hover' : this . mdWithHover
} ;
}
}
} ; //
//
//
//
//
//
//
//
module . exports = exports [ 'default' ] ;
/***/ } ) ,
/***/ 138 :
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
"use strict" ;
Object . defineProperty ( exports , "__esModule" , {
value : true
} ) ;
//
//
//
//
//
//
exports . default = {
props : {
mdInset : Boolean
} ,
computed : {
classes : function classes ( ) {
return {
'md-inset' : this . mdInset
} ;
}
}
} ;
module . exports = exports [ 'default' ] ;
/***/ } ) ,
/***/ 139 :
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
"use strict" ;
Object . defineProperty ( exports , "__esModule" , {
value : true
} ) ;
//
//
//
//
//
//
exports . default = {
methods : {
setContentMargin : function setContentMargin ( ) {
this . content . style . marginTop = - this . content . offsetHeight + 'px' ;
} ,
toggle : function toggle ( ) {
this . $refs . expand . classList . toggle ( 'md-active' ) ;
} ,
onWindowResize : function onWindowResize ( ) {
window . requestAnimationFrame ( this . setContentMargin ) ;
}
} ,
mounted : function mounted ( ) {
var _this = this ;
window . setTimeout ( ( function ( ) {
_this . trigger = _this . $el . querySelector ( '[md-expand-trigger]' ) ;
_this . content = _this . $el . querySelector ( '.md-card-content' ) ;
if ( _this . content ) {
_this . setContentMargin ( ) ;
_this . trigger . addEventListener ( 'click' , _this . toggle ) ;
window . addEventListener ( 'resize' , _this . onWindowResize ) ;
}
} ) , 200 ) ;
} ,
destroyed : function destroyed ( ) {
if ( this . content ) {
this . trigger . removeEventListener ( 'click' , this . toggle ) ;
window . removeEventListener ( 'resize' , this . onWindowResize ) ;
}
}
} ;
module . exports = exports [ 'default' ] ;
/***/ } ) ,
/***/ 140 :
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
"use strict" ;
Object . defineProperty ( exports , "__esModule" , {
value : true
} ) ;
//
//
//
//
//
//
exports . default = {
mounted : function mounted ( ) {
this . parentClasses = this . $parent . $el . classList ;
if ( this . parentClasses . contains ( 'md-card-header' ) ) {
this . insideParent = true ;
this . parentClasses . add ( 'md-card-header-flex' ) ;
}
} ,
destroyed : function destroyed ( ) {
this . parentClasses . remove ( 'md-card-header-flex' ) ;
}
} ;
module . exports = exports [ 'default' ] ;
/***/ } ) ,
/***/ 141 :
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
"use strict" ;
Object . defineProperty ( exports , "__esModule" , {
value : true
} ) ;
//
//
//
//
//
//
exports . default = {
props : {
mdRatio : String ,
mdMedium : Boolean ,
mdBig : Boolean
} ,
computed : {
classes : function classes ( ) {
var classes = {
'md-16-9' : this . mdRatio === '16:9' || this . mdRatio === '16/9' ,
'md-4-3' : this . mdRatio === '4:3' || this . mdRatio === '4/3' ,
'md-1-1' : this . mdRatio === '1:1' || this . mdRatio === '1/1'
} ;
if ( this . mdMedium || this . mdBig ) {
classes = {
'md-medium' : this . mdMedium ,
'md-big' : this . mdBig
} ;
}
return classes ;
}
}
} ;
module . exports = exports [ 'default' ] ;
/***/ } ) ,
/***/ 142 :
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
"use strict" ;
Object . defineProperty ( exports , "__esModule" , {
value : true
} ) ;
var _getImageLightness = _ _webpack _require _ _ ( 58 ) ;
var _getImageLightness2 = _interopRequireDefault ( _getImageLightness ) ;
function _interopRequireDefault ( obj ) { return obj && obj . _ _esModule ? obj : { default : obj } ; }
exports . default = {
props : {
mdTextScrim : Boolean ,
mdSolid : Boolean
} ,
data : function data ( ) {
return {
backdropBg : { }
} ;
} ,
computed : {
classes : function classes ( ) {
return {
'md-text-scrim' : this . mdTextScrim ,
'md-solid' : this . mdSolid
} ;
} ,
styles : function styles ( ) {
return {
background : this . backdropBg
} ;
}
} ,
methods : {
applyScrimColor : function applyScrimColor ( darkness ) {
if ( this . $refs . backdrop ) {
this . backdropBg = 'linear-gradient(to bottom, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, ' + darkness / 2 + ') 66%, rgba(0, 0, 0, ' + darkness + ') 100%)' ;
}
} ,
applySolidColor : function applySolidColor ( darkness ) {
var area = this . $el . querySelector ( '.md-card-area' ) ;
if ( area ) {
area . style . background = 'rgba(0, 0, 0, ' + darkness + ')' ;
}
}
} ,
mounted : function mounted ( ) {
var _this = this ;
2017-02-09 00:05:12 +00:00
var applyBackground = function applyBackground ( ) {
var darkness = arguments . length > 0 && arguments [ 0 ] !== undefined ? arguments [ 0 ] : 0.6 ;
if ( _this . mdTextScrim ) {
_this . applyScrimColor ( darkness ) ;
} else if ( _this . mdSolid ) {
_this . applySolidColor ( darkness ) ;
}
} ;
2017-02-08 03:16:24 +00:00
var image = this . $el . querySelector ( 'img' ) ;
if ( image && ( this . mdTextScrim || this . mdSolid ) ) {
( 0 , _getImageLightness2 . default ) ( image , ( function ( lightness ) {
var limit = 256 ;
var darkness = ( Math . abs ( limit - lightness ) * 100 / limit + 15 ) / 100 ;
if ( darkness >= 0.7 ) {
darkness = 0.7 ;
}
2017-02-09 00:05:12 +00:00
applyBackground ( darkness ) ;
} ) , applyBackground ) ;
2017-02-08 03:16:24 +00:00
}
}
} ; //
//
//
//
//
//
//
module . exports = exports [ 'default' ] ;
/***/ } ) ,
/***/ 206 :
/***/ ( function ( module , exports ) {
// removed by extract-text-webpack-plugin
/***/ } ) ,
/***/ 237 :
/***/ ( function ( module , exports ) {
module . exports = " . THEME _NAME . md - card { \ n background - color : BACKGROUND - COLOR ; } \ n . THEME _NAME . md - card . md - primary { \ n background - color : PRIMARY - COLOR ; \ n color : PRIMARY - CONTRAST ; } \ n . THEME _NAME . md - card . md - primary . md - card - header . md - icon - button : not ( . md - primary ) : not ( . md - warn ) : not ( . md - accent ) . md - icon , \ n . THEME _NAME . md - card . md - primary . md - card - actions . md - icon - button : not ( . md - primary ) : not ( . md - warn ) : not ( . md - accent ) . md - icon { \ n color : PRIMARY - CONTRAST - 0.87 ; } \ n . THEME _NAME . md - card . md - primary . md - input - container . md - input - focused input , \ n . THEME _NAME . md - card . md - primary . md - input - container . md - input - focused textarea { \ n color : PRIMARY - CONTRAST ; \ n text - shadow : 0 0 0 PRIMARY - CONTRAST ; } \ n . THEME _NAME . md - card . md - primary . md - input - container . md - input - focused label , \ n . THEME _NAME . md - card . md - primary . md - input - container . md - input - focused . md - icon : not ( . md - icon - delete ) { \ n color : PRIMARY - CONTRAST ; } \ n . THEME _NAME . md - card . md - primary . md - input - container : after { \ n background - color : PRIMARY - CONTRAST ; } \ n . THEME _NAME . md - card . md - primary . md - input - container input , \ n . THEME _NAME . md - card . md - primary . md - input - container textarea { \ n color : PRIMARY - CONTRAST ; \ n text - shadow : 0 0 0 PRIMARY - CONTRAST ; } \ n . THEME _NAME . md - card . md - primary . md - input - container input : : - webkit - input - placeholder , \ n . THEME _NAME . md - card . md - primary . md - input - container textarea : : - webkit - input - placeholder { \ n color : PRIMARY - CONTRAST - 0.54 ; } \ n . THEME _NAME . md - card . md - primary . md - input - container label , \ n . THEME _NAME . md - card . md - primary . md - input - container . md - icon : not ( . md - icon - delete ) { \ n color : PRIMARY - CONTRAST ; } \ n . THEME _NAME . md - card . md - accent { \ n background - color : ACCENT - COLOR ; \ n color : ACCENT - CONTRAST ; } \ n . THEME _NAME . md - card . md - accent . md - card - header . md - icon - button : not ( . md - primary ) : not ( . md - warn ) : not ( . md - accent ) . md - icon , \ n . THEME _NAME . md - card . md - accent . md - card - actions . md - icon - button : not ( . md - primary ) : not ( . md - warn ) : not ( . md - accent ) . md - icon { \ n color : ACCENT - CONTRAST - 0.87 ; } \ n . THEME _NAME . md - card . md - accent . md - input - container . md - input - focused input , \ n . THEME _NAME . md - card . md - accent . md - input - container . md - input - focused textarea { \ n color : ACCENT - CONTRAST ; \ n text - shadow : 0 0 0 ACCENT - CONTRAST ; } \ n . THEME _NAME . md - card . md - accent . md - input - container . md - input - focused label , \ n . THEME _NAME . md - card . md - accent . md - input - container . md - input - focused . md - icon : not ( . md - icon - delete ) { \ n color : ACCENT - CONTRAST ; } \ n . THEME _NAME . md - card . md - accent . md - input - container : after { \ n background - color : ACCENT - CONTRAST ; } \ n . THEME _NAME . md - card . md - accent . md - input - container input , \ n . THEME _NAME . md - card . md - accent . md - input - container textarea { \ n color : ACCENT - CONTRAST ; \ n text - shadow : 0 0 0 ACCENT - CONTRAST ; } \ n . THEME _NAME . md - card . md - accent . md - input - container input : : - webkit - input - placeholder , \ n . THEME _NAME . md - card . md - accent . md - input - container textarea : : - webkit - input - placeholder { \ n color : ACCENT - CONTRAST - 0.54 ; } \ n . THEME _NAME . md - card . md - accent . md - input - container label , \ n . THEME _NAME . md - card . md - accent . md - input - container . md - icon : not ( . md - icon - delete ) { \ n color : ACCENT - CONTRAST ; } \ n . THEME _NAME . md - card . md - warn { \ n background - color : WARN - COLOR ; \ n color : WARN - CONTRAST ; } \ n . THEME _NAME . md - card . md - warn . md - card - header . md - icon - button : not ( . md - primary ) : not ( . md - warn ) : not ( . md - accent ) . md - icon , \ n . THEME _NAME . md - card . md - warn . md - card - actions . md - icon - button : not ( . md - primary ) : not ( . md - warn ) : not ( . md - accent ) . md - icon { \ n color : WARN - CONTRAST - 0.87 ; } \ n . THEME _NAME . md - card . md - warn . md - input - container . md - input - focused input , \ n . THEME _NAME . md - card . md - warn . md - input - container . md - input - focused textarea { \ n color : WARN - CONTRAST ; \ n text - shadow : 0 0 0 WARN - CONTRAST ; } \ n . THEME _NAME . md - card . md - warn . md - input - container . md - input - focused label , \ n . THEME _NAME . md - card . md - warn . md - input - container . md - input - focused . md - icon : not ( . md - icon - delete ) { \ n color : WARN - CONTRAST ; } \ n . THEME _NAME . md - card . md - warn . md - input
/***/ } ) ,
/***/ 266 :
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
/* styles */
_ _webpack _require _ _ ( 206 )
var Component = _ _webpack _require _ _ ( 0 ) (
/* script */
_ _webpack _require _ _ ( 137 ) ,
/* template */
_ _webpack _require _ _ ( 346 ) ,
/* scopeId */
null ,
/* cssModules */
null
)
2017-02-09 00:05:12 +00:00
Component . options . _ _file = "/Users/mrufino/Projects/personal/github/vue-material/src/components/mdCard/mdCard.vue"
2017-02-08 03:16:24 +00:00
if ( Component . esModule && Object . keys ( Component . esModule ) . some ( ( function ( key ) { return key !== "default" && key !== "__esModule" } ) ) ) { console . error ( "named exports are not supported in *.vue files." ) }
if ( Component . options . functional ) { console . error ( "[vue-loader] mdCard.vue: functional components are not supported with templates, they should use render functions." ) }
/* hot reload */
if ( false ) { ( function ( ) {
var hotAPI = require ( "vue-hot-reload-api" )
hotAPI . install ( require ( "vue" ) , false )
if ( ! hotAPI . compatible ) return
module . hot . accept ( )
if ( ! module . hot . data ) {
hotAPI . createRecord ( "data-v-214af038" , Component . options )
} else {
hotAPI . reload ( "data-v-214af038" , Component . options )
}
} ) ( ) }
module . exports = Component . exports
/***/ } ) ,
/***/ 267 :
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
var Component = _ _webpack _require _ _ ( 0 ) (
/* script */
null ,
/* template */
_ _webpack _require _ _ ( 356 ) ,
/* scopeId */
null ,
/* cssModules */
null
)
2017-02-09 00:05:12 +00:00
Component . options . _ _file = "/Users/mrufino/Projects/personal/github/vue-material/src/components/mdCard/mdCardActions.vue"
2017-02-08 03:16:24 +00:00
if ( Component . esModule && Object . keys ( Component . esModule ) . some ( ( function ( key ) { return key !== "default" && key !== "__esModule" } ) ) ) { console . error ( "named exports are not supported in *.vue files." ) }
if ( Component . options . functional ) { console . error ( "[vue-loader] mdCardActions.vue: functional components are not supported with templates, they should use render functions." ) }
/* hot reload */
if ( false ) { ( function ( ) {
var hotAPI = require ( "vue-hot-reload-api" )
hotAPI . install ( require ( "vue" ) , false )
if ( ! hotAPI . compatible ) return
module . hot . accept ( )
if ( ! module . hot . data ) {
hotAPI . createRecord ( "data-v-39548bae" , Component . options )
} else {
hotAPI . reload ( "data-v-39548bae" , Component . options )
}
} ) ( ) }
module . exports = Component . exports
/***/ } ) ,
/***/ 268 :
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
var Component = _ _webpack _require _ _ ( 0 ) (
/* script */
_ _webpack _require _ _ ( 138 ) ,
/* template */
_ _webpack _require _ _ ( 341 ) ,
/* scopeId */
null ,
/* cssModules */
null
)
2017-02-09 00:05:12 +00:00
Component . options . _ _file = "/Users/mrufino/Projects/personal/github/vue-material/src/components/mdCard/mdCardArea.vue"
2017-02-08 03:16:24 +00:00
if ( Component . esModule && Object . keys ( Component . esModule ) . some ( ( function ( key ) { return key !== "default" && key !== "__esModule" } ) ) ) { console . error ( "named exports are not supported in *.vue files." ) }
if ( Component . options . functional ) { console . error ( "[vue-loader] mdCardArea.vue: functional components are not supported with templates, they should use render functions." ) }
/* hot reload */
if ( false ) { ( function ( ) {
var hotAPI = require ( "vue-hot-reload-api" )
hotAPI . install ( require ( "vue" ) , false )
if ( ! hotAPI . compatible ) return
module . hot . accept ( )
if ( ! module . hot . data ) {
hotAPI . createRecord ( "data-v-180bafde" , Component . options )
} else {
hotAPI . reload ( "data-v-180bafde" , Component . options )
}
} ) ( ) }
module . exports = Component . exports
/***/ } ) ,
/***/ 269 :
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
var Component = _ _webpack _require _ _ ( 0 ) (
/* script */
null ,
/* template */
_ _webpack _require _ _ ( 380 ) ,
/* scopeId */
null ,
/* cssModules */
null
)
2017-02-09 00:05:12 +00:00
Component . options . _ _file = "/Users/mrufino/Projects/personal/github/vue-material/src/components/mdCard/mdCardContent.vue"
2017-02-08 03:16:24 +00:00
if ( Component . esModule && Object . keys ( Component . esModule ) . some ( ( function ( key ) { return key !== "default" && key !== "__esModule" } ) ) ) { console . error ( "named exports are not supported in *.vue files." ) }
if ( Component . options . functional ) { console . error ( "[vue-loader] mdCardContent.vue: functional components are not supported with templates, they should use render functions." ) }
/* hot reload */
if ( false ) { ( function ( ) {
var hotAPI = require ( "vue-hot-reload-api" )
hotAPI . install ( require ( "vue" ) , false )
if ( ! hotAPI . compatible ) return
module . hot . accept ( )
if ( ! module . hot . data ) {
hotAPI . createRecord ( "data-v-6cb287a5" , Component . options )
} else {
hotAPI . reload ( "data-v-6cb287a5" , Component . options )
}
} ) ( ) }
module . exports = Component . exports
/***/ } ) ,
/***/ 270 :
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
var Component = _ _webpack _require _ _ ( 0 ) (
/* script */
_ _webpack _require _ _ ( 139 ) ,
/* template */
_ _webpack _require _ _ ( 334 ) ,
/* scopeId */
null ,
/* cssModules */
null
)
2017-02-09 00:05:12 +00:00
Component . options . _ _file = "/Users/mrufino/Projects/personal/github/vue-material/src/components/mdCard/mdCardExpand.vue"
2017-02-08 03:16:24 +00:00
if ( Component . esModule && Object . keys ( Component . esModule ) . some ( ( function ( key ) { return key !== "default" && key !== "__esModule" } ) ) ) { console . error ( "named exports are not supported in *.vue files." ) }
if ( Component . options . functional ) { console . error ( "[vue-loader] mdCardExpand.vue: functional components are not supported with templates, they should use render functions." ) }
/* hot reload */
if ( false ) { ( function ( ) {
var hotAPI = require ( "vue-hot-reload-api" )
hotAPI . install ( require ( "vue" ) , false )
if ( ! hotAPI . compatible ) return
module . hot . accept ( )
if ( ! module . hot . data ) {
hotAPI . createRecord ( "data-v-0b963c9e" , Component . options )
} else {
hotAPI . reload ( "data-v-0b963c9e" , Component . options )
}
} ) ( ) }
module . exports = Component . exports
/***/ } ) ,
/***/ 271 :
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
var Component = _ _webpack _require _ _ ( 0 ) (
/* script */
null ,
/* template */
_ _webpack _require _ _ ( 373 ) ,
/* scopeId */
null ,
/* cssModules */
null
)
2017-02-09 00:05:12 +00:00
Component . options . _ _file = "/Users/mrufino/Projects/personal/github/vue-material/src/components/mdCard/mdCardHeader.vue"
2017-02-08 03:16:24 +00:00
if ( Component . esModule && Object . keys ( Component . esModule ) . some ( ( function ( key ) { return key !== "default" && key !== "__esModule" } ) ) ) { console . error ( "named exports are not supported in *.vue files." ) }
if ( Component . options . functional ) { console . error ( "[vue-loader] mdCardHeader.vue: functional components are not supported with templates, they should use render functions." ) }
/* hot reload */
if ( false ) { ( function ( ) {
var hotAPI = require ( "vue-hot-reload-api" )
hotAPI . install ( require ( "vue" ) , false )
if ( ! hotAPI . compatible ) return
module . hot . accept ( )
if ( ! module . hot . data ) {
hotAPI . createRecord ( "data-v-61490f11" , Component . options )
} else {
hotAPI . reload ( "data-v-61490f11" , Component . options )
}
} ) ( ) }
module . exports = Component . exports
/***/ } ) ,
/***/ 272 :
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
var Component = _ _webpack _require _ _ ( 0 ) (
/* script */
_ _webpack _require _ _ ( 140 ) ,
/* template */
_ _webpack _require _ _ ( 368 ) ,
/* scopeId */
null ,
/* cssModules */
null
)
2017-02-09 00:05:12 +00:00
Component . options . _ _file = "/Users/mrufino/Projects/personal/github/vue-material/src/components/mdCard/mdCardHeaderText.vue"
2017-02-08 03:16:24 +00:00
if ( Component . esModule && Object . keys ( Component . esModule ) . some ( ( function ( key ) { return key !== "default" && key !== "__esModule" } ) ) ) { console . error ( "named exports are not supported in *.vue files." ) }
if ( Component . options . functional ) { console . error ( "[vue-loader] mdCardHeaderText.vue: functional components are not supported with templates, they should use render functions." ) }
/* hot reload */
if ( false ) { ( function ( ) {
var hotAPI = require ( "vue-hot-reload-api" )
hotAPI . install ( require ( "vue" ) , false )
if ( ! hotAPI . compatible ) return
module . hot . accept ( )
if ( ! module . hot . data ) {
hotAPI . createRecord ( "data-v-5744755e" , Component . options )
} else {
hotAPI . reload ( "data-v-5744755e" , Component . options )
}
} ) ( ) }
module . exports = Component . exports
/***/ } ) ,
/***/ 273 :
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
var Component = _ _webpack _require _ _ ( 0 ) (
/* script */
_ _webpack _require _ _ ( 141 ) ,
/* template */
_ _webpack _require _ _ ( 339 ) ,
/* scopeId */
null ,
/* cssModules */
null
)
2017-02-09 00:05:12 +00:00
Component . options . _ _file = "/Users/mrufino/Projects/personal/github/vue-material/src/components/mdCard/mdCardMedia.vue"
2017-02-08 03:16:24 +00:00
if ( Component . esModule && Object . keys ( Component . esModule ) . some ( ( function ( key ) { return key !== "default" && key !== "__esModule" } ) ) ) { console . error ( "named exports are not supported in *.vue files." ) }
if ( Component . options . functional ) { console . error ( "[vue-loader] mdCardMedia.vue: functional components are not supported with templates, they should use render functions." ) }
/* hot reload */
if ( false ) { ( function ( ) {
var hotAPI = require ( "vue-hot-reload-api" )
hotAPI . install ( require ( "vue" ) , false )
if ( ! hotAPI . compatible ) return
module . hot . accept ( )
if ( ! module . hot . data ) {
hotAPI . createRecord ( "data-v-137f4a90" , Component . options )
} else {
hotAPI . reload ( "data-v-137f4a90" , Component . options )
}
} ) ( ) }
module . exports = Component . exports
/***/ } ) ,
/***/ 274 :
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
var Component = _ _webpack _require _ _ ( 0 ) (
/* script */
null ,
/* template */
_ _webpack _require _ _ ( 330 ) ,
/* scopeId */
null ,
/* cssModules */
null
)
2017-02-09 00:05:12 +00:00
Component . options . _ _file = "/Users/mrufino/Projects/personal/github/vue-material/src/components/mdCard/mdCardMediaActions.vue"
2017-02-08 03:16:24 +00:00
if ( Component . esModule && Object . keys ( Component . esModule ) . some ( ( function ( key ) { return key !== "default" && key !== "__esModule" } ) ) ) { console . error ( "named exports are not supported in *.vue files." ) }
if ( Component . options . functional ) { console . error ( "[vue-loader] mdCardMediaActions.vue: functional components are not supported with templates, they should use render functions." ) }
/* hot reload */
if ( false ) { ( function ( ) {
var hotAPI = require ( "vue-hot-reload-api" )
hotAPI . install ( require ( "vue" ) , false )
if ( ! hotAPI . compatible ) return
module . hot . accept ( )
if ( ! module . hot . data ) {
hotAPI . createRecord ( "data-v-04064406" , Component . options )
} else {
hotAPI . reload ( "data-v-04064406" , Component . options )
}
} ) ( ) }
module . exports = Component . exports
/***/ } ) ,
/***/ 275 :
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
var Component = _ _webpack _require _ _ ( 0 ) (
/* script */
_ _webpack _require _ _ ( 142 ) ,
/* template */
_ _webpack _require _ _ ( 337 ) ,
/* scopeId */
null ,
/* cssModules */
null
)
2017-02-09 00:05:12 +00:00
Component . options . _ _file = "/Users/mrufino/Projects/personal/github/vue-material/src/components/mdCard/mdCardMediaCover.vue"
2017-02-08 03:16:24 +00:00
if ( Component . esModule && Object . keys ( Component . esModule ) . some ( ( function ( key ) { return key !== "default" && key !== "__esModule" } ) ) ) { console . error ( "named exports are not supported in *.vue files." ) }
if ( Component . options . functional ) { console . error ( "[vue-loader] mdCardMediaCover.vue: functional components are not supported with templates, they should use render functions." ) }
/* hot reload */
if ( false ) { ( function ( ) {
var hotAPI = require ( "vue-hot-reload-api" )
hotAPI . install ( require ( "vue" ) , false )
if ( ! hotAPI . compatible ) return
module . hot . accept ( )
if ( ! module . hot . data ) {
hotAPI . createRecord ( "data-v-0df115b7" , Component . options )
} else {
hotAPI . reload ( "data-v-0df115b7" , Component . options )
}
} ) ( ) }
module . exports = Component . exports
/***/ } ) ,
/***/ 330 :
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
module . exports = { render : function ( ) { var _vm = this ; var _h = _vm . $createElement ; var _c = _vm . _self . _c || _h ;
return _c ( 'div' , {
staticClass : "md-card-media-actions"
} , [ _vm . _t ( "default" ) ] , 2 )
} , staticRenderFns : [ ] }
module . exports . render . _withStripped = true
if ( false ) {
module . hot . accept ( )
if ( module . hot . data ) {
require ( "vue-hot-reload-api" ) . rerender ( "data-v-04064406" , module . exports )
}
}
/***/ } ) ,
/***/ 334 :
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
module . exports = { render : function ( ) { var _vm = this ; var _h = _vm . $createElement ; var _c = _vm . _self . _c || _h ;
return _c ( 'div' , {
ref : "expand" ,
staticClass : "md-card-expand"
} , [ _vm . _t ( "default" ) ] , 2 )
} , staticRenderFns : [ ] }
module . exports . render . _withStripped = true
if ( false ) {
module . hot . accept ( )
if ( module . hot . data ) {
require ( "vue-hot-reload-api" ) . rerender ( "data-v-0b963c9e" , module . exports )
}
}
/***/ } ) ,
/***/ 337 :
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
module . exports = { render : function ( ) { var _vm = this ; var _h = _vm . $createElement ; var _c = _vm . _self . _c || _h ;
return _c ( 'div' , {
staticClass : "md-card-media-cover" ,
class : _vm . classes
} , [ _vm . _t ( "default" ) , _vm . _v ( " " ) , ( _vm . mdTextScrim ) ? _c ( 'div' , {
ref : "backdrop" ,
staticClass : "md-card-backdrop" ,
style : ( _vm . styles )
} ) : _vm . _e ( ) ] , 2 )
} , staticRenderFns : [ ] }
module . exports . render . _withStripped = true
if ( false ) {
module . hot . accept ( )
if ( module . hot . data ) {
require ( "vue-hot-reload-api" ) . rerender ( "data-v-0df115b7" , module . exports )
}
}
/***/ } ) ,
/***/ 339 :
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
module . exports = { render : function ( ) { var _vm = this ; var _h = _vm . $createElement ; var _c = _vm . _self . _c || _h ;
return _c ( 'div' , {
staticClass : "md-card-media" ,
class : _vm . classes
} , [ _vm . _t ( "default" ) ] , 2 )
} , staticRenderFns : [ ] }
module . exports . render . _withStripped = true
if ( false ) {
module . hot . accept ( )
if ( module . hot . data ) {
require ( "vue-hot-reload-api" ) . rerender ( "data-v-137f4a90" , module . exports )
}
}
/***/ } ) ,
/***/ 341 :
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
module . exports = { render : function ( ) { var _vm = this ; var _h = _vm . $createElement ; var _c = _vm . _self . _c || _h ;
return _c ( 'div' , {
staticClass : "md-card-area" ,
class : _vm . classes
} , [ _vm . _t ( "default" ) ] , 2 )
} , staticRenderFns : [ ] }
module . exports . render . _withStripped = true
if ( false ) {
module . hot . accept ( )
if ( module . hot . data ) {
require ( "vue-hot-reload-api" ) . rerender ( "data-v-180bafde" , module . exports )
}
}
/***/ } ) ,
/***/ 346 :
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
module . exports = { render : function ( ) { var _vm = this ; var _h = _vm . $createElement ; var _c = _vm . _self . _c || _h ;
return _c ( 'div' , {
staticClass : "md-card" ,
class : [ _vm . themeClass , _vm . classes ]
} , [ _vm . _t ( "default" ) ] , 2 )
} , staticRenderFns : [ ] }
module . exports . render . _withStripped = true
if ( false ) {
module . hot . accept ( )
if ( module . hot . data ) {
require ( "vue-hot-reload-api" ) . rerender ( "data-v-214af038" , module . exports )
}
}
/***/ } ) ,
2017-01-10 04:04:09 +00:00
2017-02-08 03:16:24 +00:00
/***/ 356 :
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
module . exports = { render : function ( ) { var _vm = this ; var _h = _vm . $createElement ; var _c = _vm . _self . _c || _h ;
return _c ( 'div' , {
staticClass : "md-card-actions"
} , [ _vm . _t ( "default" ) ] , 2 )
} , staticRenderFns : [ ] }
module . exports . render . _withStripped = true
if ( false ) {
module . hot . accept ( )
if ( module . hot . data ) {
require ( "vue-hot-reload-api" ) . rerender ( "data-v-39548bae" , module . exports )
}
}
/***/ } ) ,
/***/ 368 :
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
module . exports = { render : function ( ) { var _vm = this ; var _h = _vm . $createElement ; var _c = _vm . _self . _c || _h ;
return _c ( 'div' , {
staticClass : "md-card-header-text"
} , [ _vm . _t ( "default" ) ] , 2 )
} , staticRenderFns : [ ] }
module . exports . render . _withStripped = true
if ( false ) {
module . hot . accept ( )
if ( module . hot . data ) {
require ( "vue-hot-reload-api" ) . rerender ( "data-v-5744755e" , module . exports )
}
}
/***/ } ) ,
/***/ 373 :
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
module . exports = { render : function ( ) { var _vm = this ; var _h = _vm . $createElement ; var _c = _vm . _self . _c || _h ;
return _c ( 'div' , {
staticClass : "md-card-header"
} , [ _vm . _t ( "default" ) ] , 2 )
} , staticRenderFns : [ ] }
module . exports . render . _withStripped = true
if ( false ) {
module . hot . accept ( )
if ( module . hot . data ) {
require ( "vue-hot-reload-api" ) . rerender ( "data-v-61490f11" , module . exports )
}
}
2017-01-10 04:04:09 +00:00
2017-02-08 03:16:24 +00:00
/***/ } ) ,
2017-01-10 04:04:09 +00:00
2017-02-08 03:16:24 +00:00
/***/ 380 :
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
2017-01-10 04:04:09 +00:00
2017-02-08 03:16:24 +00:00
module . exports = { render : function ( ) { var _vm = this ; var _h = _vm . $createElement ; var _c = _vm . _self . _c || _h ;
return _c ( 'div' , {
staticClass : "md-card-content"
} , [ _vm . _t ( "default" ) ] , 2 )
} , staticRenderFns : [ ] }
module . exports . render . _withStripped = true
if ( false ) {
module . hot . accept ( )
if ( module . hot . data ) {
require ( "vue-hot-reload-api" ) . rerender ( "data-v-6cb287a5" , module . exports )
}
}
2017-01-10 04:04:09 +00:00
2017-02-08 03:16:24 +00:00
/***/ } ) ,
2017-01-10 04:04:09 +00:00
2017-02-08 03:16:24 +00:00
/***/ 402 :
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
2017-01-10 04:04:09 +00:00
2017-02-08 03:16:24 +00:00
module . exports = _ _webpack _require _ _ ( 95 ) ;
2017-01-10 04:04:09 +00:00
2017-02-08 03:16:24 +00:00
/***/ } ) ,
2017-01-10 04:04:09 +00:00
2017-02-08 03:16:24 +00:00
/***/ 58 :
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
2017-01-10 04:04:09 +00:00
2017-02-08 03:16:24 +00:00
"use strict" ;
2017-01-10 04:04:09 +00:00
2017-02-08 03:16:24 +00:00
Object . defineProperty ( exports , "__esModule" , {
value : true
} ) ;
2017-02-09 00:05:12 +00:00
var getImageLightness = function getImageLightness ( image , onLoad , onError ) {
2017-02-08 03:16:24 +00:00
var canvas = document . createElement ( 'canvas' ) ;
2017-01-10 04:04:09 +00:00
2017-02-09 00:05:12 +00:00
image . crossOrigin = 'Anonymous' ;
2017-02-08 03:16:24 +00:00
image . onload = function ( ) {
var colorSum = 0 ;
var ctx = void 0 ;
var imageData = void 0 ;
var imageMetadata = void 0 ;
var r = void 0 ;
var g = void 0 ;
var b = void 0 ;
var average = void 0 ;
2017-01-10 04:04:09 +00:00
2017-02-08 03:16:24 +00:00
canvas . width = this . width ;
canvas . height = this . height ;
ctx = canvas . getContext ( '2d' ) ;
2017-01-10 04:04:09 +00:00
2017-02-08 03:16:24 +00:00
ctx . drawImage ( this , 0 , 0 ) ;
2017-01-10 04:04:09 +00:00
2017-02-08 03:16:24 +00:00
imageData = ctx . getImageData ( 0 , 0 , canvas . width , canvas . height ) ;
imageMetadata = imageData . data ;
2017-01-10 04:04:09 +00:00
2017-02-08 03:16:24 +00:00
for ( var x = 0 , len = imageMetadata . length ; x < len ; x += 4 ) {
r = imageMetadata [ x ] ;
g = imageMetadata [ x + 1 ] ;
b = imageMetadata [ x + 2 ] ;
2017-01-10 04:04:09 +00:00
2017-02-08 03:16:24 +00:00
average = Math . floor ( ( r + g + b ) / 3 ) ;
colorSum += average ;
}
2017-01-10 04:04:09 +00:00
2017-02-08 03:16:24 +00:00
onLoad ( Math . floor ( colorSum / ( this . width * this . height ) ) ) ;
} ;
2017-02-09 00:05:12 +00:00
image . onerror = onError ;
2017-02-08 03:16:24 +00:00
} ;
2017-01-10 04:04:09 +00:00
2017-02-08 03:16:24 +00:00
exports . default = getImageLightness ;
module . exports = exports [ 'default' ] ;
2017-01-10 04:04:09 +00:00
2017-02-08 03:16:24 +00:00
/***/ } ) ,
2017-01-10 04:04:09 +00:00
2017-02-08 03:16:24 +00:00
/***/ 95 :
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
2017-01-10 04:04:09 +00:00
2017-02-08 03:16:24 +00:00
"use strict" ;
2017-01-10 04:04:09 +00:00
2017-02-08 03:16:24 +00:00
Object . defineProperty ( exports , "__esModule" , {
value : true
} ) ;
exports . default = install ;
2017-01-10 04:04:09 +00:00
2017-02-08 03:16:24 +00:00
var _mdCard = _ _webpack _require _ _ ( 266 ) ;
2017-01-10 04:04:09 +00:00
2017-02-08 03:16:24 +00:00
var _mdCard2 = _interopRequireDefault ( _mdCard ) ;
2017-01-10 04:04:09 +00:00
2017-02-08 03:16:24 +00:00
var _mdCardMedia = _ _webpack _require _ _ ( 273 ) ;
2017-01-10 04:04:09 +00:00
2017-02-08 03:16:24 +00:00
var _mdCardMedia2 = _interopRequireDefault ( _mdCardMedia ) ;
2017-01-10 04:04:09 +00:00
2017-02-08 03:16:24 +00:00
var _mdCardMediaCover = _ _webpack _require _ _ ( 275 ) ;
2017-01-10 04:04:09 +00:00
2017-02-08 03:16:24 +00:00
var _mdCardMediaCover2 = _interopRequireDefault ( _mdCardMediaCover ) ;
2017-01-10 04:04:09 +00:00
2017-02-08 03:16:24 +00:00
var _mdCardMediaActions = _ _webpack _require _ _ ( 274 ) ;
2017-01-10 04:04:09 +00:00
2017-02-08 03:16:24 +00:00
var _mdCardMediaActions2 = _interopRequireDefault ( _mdCardMediaActions ) ;
2017-01-10 04:04:09 +00:00
2017-02-08 03:16:24 +00:00
var _mdCardHeader = _ _webpack _require _ _ ( 271 ) ;
2017-01-10 04:04:09 +00:00
2017-02-08 03:16:24 +00:00
var _mdCardHeader2 = _interopRequireDefault ( _mdCardHeader ) ;
2017-01-10 04:04:09 +00:00
2017-02-08 03:16:24 +00:00
var _mdCardHeaderText = _ _webpack _require _ _ ( 272 ) ;
2017-01-10 04:04:09 +00:00
2017-02-08 03:16:24 +00:00
var _mdCardHeaderText2 = _interopRequireDefault ( _mdCardHeaderText ) ;
2017-01-10 04:04:09 +00:00
2017-02-08 03:16:24 +00:00
var _mdCardContent = _ _webpack _require _ _ ( 269 ) ;
2017-01-10 04:04:09 +00:00
2017-02-08 03:16:24 +00:00
var _mdCardContent2 = _interopRequireDefault ( _mdCardContent ) ;
2017-01-10 04:04:09 +00:00
2017-02-08 03:16:24 +00:00
var _mdCardActions = _ _webpack _require _ _ ( 267 ) ;
2017-01-10 04:04:09 +00:00
2017-02-08 03:16:24 +00:00
var _mdCardActions2 = _interopRequireDefault ( _mdCardActions ) ;
2017-01-10 04:04:09 +00:00
2017-02-08 03:16:24 +00:00
var _mdCardArea = _ _webpack _require _ _ ( 268 ) ;
2017-01-10 04:04:09 +00:00
2017-02-08 03:16:24 +00:00
var _mdCardArea2 = _interopRequireDefault ( _mdCardArea ) ;
2017-01-10 04:04:09 +00:00
2017-02-08 03:16:24 +00:00
var _mdCardExpand = _ _webpack _require _ _ ( 270 ) ;
2017-01-10 04:04:09 +00:00
2017-02-08 03:16:24 +00:00
var _mdCardExpand2 = _interopRequireDefault ( _mdCardExpand ) ;
2017-01-10 04:04:09 +00:00
2017-02-08 03:16:24 +00:00
var _mdCard3 = _ _webpack _require _ _ ( 237 ) ;
2017-01-10 04:04:09 +00:00
2017-02-08 03:16:24 +00:00
var _mdCard4 = _interopRequireDefault ( _mdCard3 ) ;
2017-01-10 04:04:09 +00:00
2017-02-08 03:16:24 +00:00
function _interopRequireDefault ( obj ) { return obj && obj . _ _esModule ? obj : { default : obj } ; }
2017-01-10 04:04:09 +00:00
2017-02-08 03:16:24 +00:00
function install ( Vue ) {
Vue . component ( 'md-card' , _mdCard2 . default ) ;
Vue . component ( 'md-card-media' , _mdCardMedia2 . default ) ;
Vue . component ( 'md-card-media-cover' , _mdCardMediaCover2 . default ) ;
Vue . component ( 'md-card-media-actions' , _mdCardMediaActions2 . default ) ;
Vue . component ( 'md-card-header' , _mdCardHeader2 . default ) ;
Vue . component ( 'md-card-header-text' , _mdCardHeaderText2 . default ) ;
Vue . component ( 'md-card-content' , _mdCardContent2 . default ) ;
Vue . component ( 'md-card-actions' , _mdCardActions2 . default ) ;
Vue . component ( 'md-card-area' , _mdCardArea2 . default ) ;
Vue . component ( 'md-card-expand' , _mdCardExpand2 . default ) ;
2017-01-10 04:04:09 +00:00
2017-02-08 03:16:24 +00:00
Vue . material . styles . push ( _mdCard4 . default ) ;
}
module . exports = exports [ 'default' ] ;
2017-01-10 04:04:09 +00:00
2017-02-08 03:16:24 +00:00
/***/ } )
2017-01-10 04:04:09 +00:00
2017-02-08 03:16:24 +00:00
/******/ } ) ;
} ) ) ;