1- ! function ( e , t ) { "object" == typeof exports && "object" == typeof module ?module . exports = t ( ) :"function" == typeof define && define . amd ?define ( [ ] , t ) :"object" == typeof exports ?exports . VueMaterial = t ( ) :e . VueMaterial = t ( ) } ( this , function ( ) { return function ( e ) { function t ( a ) { if ( r [ a ] ) return r [ a ] . exports ; var n = r [ a ] = { exports :{ } , id :a , loaded :! 1 } ; return e [ a ] . call ( n . exports , n , n . exports , t ) , n . loaded = ! 0 , n . exports } var r = { } ; return t . m = e , t . c = r , t . p = "/" , t ( 0 ) } ( { 0 :function ( e , t , r ) { e . exports = r ( 70 ) } , 1 :function ( e , t ) { "use strict" ; Object . defineProperty ( t , "__esModule" , { value :! 0 } ) , t . default = { props :{ mdTheme :String } , data :function ( ) { return { closestThemedParent :! 1 } } , methods :{ getClosestThemedParent :function ( e ) { return ! ( ! e || ! e . $el || 0 === e . _uid ) && ( e . mdTheme || e . mdName ?e :this . getClosestThemedParent ( e . $parent ) ) } } , computed :{ themeClass :function ( ) { if ( this . mdTheme ) return "md-theme-" + this . mdTheme ; var e = this . closestThemedParent . mdTheme ; return e || ( e = this . closestThemedParent ?this . closestThemedParent . mdName :this . $material . currentTheme ) , "md-theme-" + e } } , mounted :function ( ) { this . closestThemedParent = this . getClosestThemedParent ( this . $parent ) , this . $material . currentTheme || this . $material . setCurrentTheme ( "default" ) } } , e . exports = t . default } , 70 :function ( e , t , r ) { "use strict" ; function a ( e ) { return e && e . __esModule ?e :{ default :e } } function n ( e ) { e . component ( "md-avatar" , e . extend ( d . default ) ) , e . material . styles . push ( i . default ) } Object . defineProperty ( t , "__esModule" , { value :! 0 } ) , t . default = n ; var o = r ( 224 ) , d = a ( o ) , s = r ( 202 ) , i = a ( s ) ; e . exports = t . default } , 102 :function ( e , t , r ) { "use strict" ; function a ( e ) { return e && e . __esModule ?e :{ default :e } } Object . defineProperty ( t , "__esModule" , { value :! 0 } ) ; var n = r ( 1 ) , o = a ( n ) ; t . default = { mixins :[ o . default ] } , e . exports = t . default } , 180 :function ( e , t ) { } , 202 :function ( e , t ) { e . exports = ".THEME_NAME.md-avatar.md-primary.md-avatar-icon{background-color:PRIMARY-COLOR}.THEME_NAME.md-avatar.md-primary.md-avatar-icon .md-icon{color:PRIMARY-CONTRAST-0.99999}.THEME_NAME.md-avatar.md-accent.md-avatar-icon{background-color:ACCENT-COLOR}.THEME_NAME.md-avatar.md-accent.md-avatar-icon .md-icon{color:ACCENT-CONTRAST-0.99999}.THEME_NAME.md-avatar.md-warn.md-avatar-icon{background-color:WARN-COLOR}.THEME_NAME.md-avatar.md-warn.md-avatar-icon .md-icon{color:WARN-CONTRAST-0.99999}\n" } , 224 :function ( e , t , r ) { var a , n ; r ( 180 ) , a = r ( 102 ) ; var o = r ( 292 ) ; n = a = a || { } , "object" != typeof a . default && "function" != typeof a . default || ( n = a = a . default ) , "function" == typeof n && ( n = n . options ) , n . render = o . render , n . staticRenderFns = o . staticRenderFns , e . exports = a } , 292 :function ( e , t ) { e . exports = { render :function ( ) { var e = this , t = e . $createElement , r = e . _self . _c || t ; return r ( "div" , { staticClass :"md-avatar" , class :[ e . themeClass ] } , [ e . _t ( "default" ) ] , 2 ) } , staticRenderFns :[ ] } } } ) } ) ;
2- //# sourceMappingURL=index.debug.js.map
1+ ( function webpackUniversalModuleDefinition ( root , factory ) {
2+ if ( typeof exports === 'object' && typeof module === 'object' )
3+ module . exports = factory ( ) ;
4+ else if ( typeof define === 'function' && define . amd )
5+ define ( [ ] , factory ) ;
6+ else if ( typeof exports === 'object' )
7+ exports [ "VueMaterial" ] = factory ( ) ;
8+ else
9+ root [ "VueMaterial" ] = factory ( ) ;
10+ } ) ( this , ( function ( ) {
11+ return /******/ ( function ( modules ) { // webpackBootstrap
12+ /******/ // The module cache
13+ /******/ var installedModules = { } ;
14+
15+ /******/ // The require function
16+ /******/ function __webpack_require__ ( moduleId ) {
17+
18+ /******/ // Check if module is in cache
19+ /******/ if ( installedModules [ moduleId ] )
20+ /******/ return installedModules [ moduleId ] . exports ;
21+
22+ /******/ // Create a new module (and put it into the cache)
23+ /******/ var module = installedModules [ moduleId ] = {
24+ /******/ exports : { } ,
25+ /******/ id : moduleId ,
26+ /******/ loaded : false
27+ /******/ } ;
28+
29+ /******/ // Execute the module function
30+ /******/ modules [ moduleId ] . call ( module . exports , module , module . exports , __webpack_require__ ) ;
31+
32+ /******/ // Flag the module as loaded
33+ /******/ module . loaded = true ;
34+
35+ /******/ // Return the exports of the module
36+ /******/ return module . exports ;
37+ /******/ }
38+
39+
40+ /******/ // expose the modules object (__webpack_modules__)
41+ /******/ __webpack_require__ . m = modules ;
42+
43+ /******/ // expose the module cache
44+ /******/ __webpack_require__ . c = installedModules ;
45+
46+ /******/ // __webpack_public_path__
47+ /******/ __webpack_require__ . p = "/" ;
48+
49+ /******/ // Load entry module and return exports
50+ /******/ return __webpack_require__ ( 0 ) ;
51+ /******/ } )
52+ /************************************************************************/
53+ /******/ ( {
54+
55+ /***/ 0 :
56+ /***/ function ( module , exports , __webpack_require__ ) {
57+
58+ module . exports = __webpack_require__ ( 72 ) ;
59+
60+
61+ /***/ } ,
62+
63+ /***/ 1 :
64+ /***/ function ( module , exports ) {
65+
66+ 'use strict' ;
67+
68+ Object . defineProperty ( exports , "__esModule" , {
69+ value : true
70+ } ) ;
71+ exports . default = {
72+ props : {
73+ mdTheme : String
74+ } ,
75+ data : function data ( ) {
76+ return {
77+ closestThemedParent : false
78+ } ;
79+ } ,
80+ methods : {
81+ getClosestThemedParent : function getClosestThemedParent ( $parent ) {
82+ if ( ! $parent || ! $parent . $el || $parent . _uid === 0 ) {
83+ return false ;
84+ }
85+
86+ if ( $parent . mdTheme || $parent . mdName ) {
87+ return $parent ;
88+ }
89+
90+ return this . getClosestThemedParent ( $parent . $parent ) ;
91+ }
92+ } ,
93+ computed : {
94+ themeClass : function themeClass ( ) {
95+ if ( this . mdTheme ) {
96+ return 'md-theme-' + this . mdTheme ;
97+ }
98+
99+ var theme = this . closestThemedParent . mdTheme ;
100+
101+ if ( ! theme ) {
102+ if ( this . closestThemedParent ) {
103+ theme = this . closestThemedParent . mdName ;
104+ } else {
105+ theme = this . $material . currentTheme ;
106+ }
107+ }
108+
109+ return 'md-theme-' + theme ;
110+ }
111+ } ,
112+ mounted : function mounted ( ) {
113+ this . closestThemedParent = this . getClosestThemedParent ( this . $parent ) ;
114+
115+ if ( ! this . $material . currentTheme ) {
116+ this . $material . setCurrentTheme ( 'default' ) ;
117+ }
118+ }
119+ } ;
120+ module . exports = exports [ 'default' ] ;
121+
122+ /***/ } ,
123+
124+ /***/ 72 :
125+ /***/ function ( module , exports , __webpack_require__ ) {
126+
127+ 'use strict' ;
128+
129+ Object . defineProperty ( exports , "__esModule" , {
130+ value : true
131+ } ) ;
132+ exports . default = install ;
133+
134+ var _mdAvatar = __webpack_require__ ( 248 ) ;
135+
136+ var _mdAvatar2 = _interopRequireDefault ( _mdAvatar ) ;
137+
138+ var _mdAvatar3 = __webpack_require__ ( 222 ) ;
139+
140+ var _mdAvatar4 = _interopRequireDefault ( _mdAvatar3 ) ;
141+
142+ function _interopRequireDefault ( obj ) { return obj && obj . __esModule ? obj : { default : obj } ; }
143+
144+ function install ( Vue ) {
145+ Vue . component ( 'md-avatar' , Vue . extend ( _mdAvatar2 . default ) ) ;
146+
147+ Vue . material . styles . push ( _mdAvatar4 . default ) ;
148+ }
149+ module . exports = exports [ 'default' ] ;
150+
151+ /***/ } ,
152+
153+ /***/ 110 :
154+ /***/ function ( module , exports , __webpack_require__ ) {
155+
156+ 'use strict' ;
157+
158+ Object . defineProperty ( exports , "__esModule" , {
159+ value : true
160+ } ) ;
161+
162+ var _mixin = __webpack_require__ ( 1 ) ;
163+
164+ var _mixin2 = _interopRequireDefault ( _mixin ) ;
165+
166+ function _interopRequireDefault ( obj ) { return obj && obj . __esModule ? obj : { default : obj } ; }
167+
168+ exports . default = {
169+ mixins : [ _mixin2 . default ]
170+ } ; //
171+ //
172+ //
173+ //
174+ //
175+ //
176+ //
177+ //
178+
179+ module . exports = exports [ 'default' ] ;
180+
181+ /***/ } ,
182+
183+ /***/ 195 :
184+ /***/ function ( module , exports ) {
185+
186+ // removed by extract-text-webpack-plugin
187+
188+ /***/ } ,
189+
190+ /***/ 222 :
191+ /***/ function ( module , exports ) {
192+
193+ module . exports = ".THEME_NAME.md-avatar.md-primary.md-avatar-icon {\n background-color: PRIMARY-COLOR; }\n .THEME_NAME.md-avatar.md-primary.md-avatar-icon .md-icon {\n color: PRIMARY-CONTRAST-0.99999; }\n\n.THEME_NAME.md-avatar.md-accent.md-avatar-icon {\n background-color: ACCENT-COLOR; }\n .THEME_NAME.md-avatar.md-accent.md-avatar-icon .md-icon {\n color: ACCENT-CONTRAST-0.99999; }\n\n.THEME_NAME.md-avatar.md-warn.md-avatar-icon {\n background-color: WARN-COLOR; }\n .THEME_NAME.md-avatar.md-warn.md-avatar-icon .md-icon {\n color: WARN-CONTRAST-0.99999; }\n"
194+
195+ /***/ } ,
196+
197+ /***/ 248 :
198+ /***/ function ( module , exports , __webpack_require__ ) {
199+
200+ var __vue_exports__ , __vue_options__
201+ var __vue_styles__ = { }
202+
203+ /* styles */
204+ __webpack_require__ ( 195 )
205+
206+ /* script */
207+ __vue_exports__ = __webpack_require__ ( 110 )
208+
209+ /* template */
210+ var __vue_template__ = __webpack_require__ ( 322 )
211+ __vue_options__ = __vue_exports__ = __vue_exports__ || { }
212+ if (
213+ typeof __vue_exports__ . default === "object" ||
214+ typeof __vue_exports__ . default === "function"
215+ ) {
216+ if ( Object . keys ( __vue_exports__ ) . some ( ( function ( key ) { return key !== "default" && key !== "__esModule" } ) ) ) { console . error ( "named exports are not supported in *.vue files." ) }
217+ __vue_options__ = __vue_exports__ = __vue_exports__ . default
218+ }
219+ if ( typeof __vue_options__ === "function" ) {
220+ __vue_options__ = __vue_options__ . options
221+ }
222+ __vue_options__ . __file = "/Users/marcosmoura/Projects/github/vue-material/src/components/mdAvatar/mdAvatar.vue"
223+ __vue_options__ . render = __vue_template__ . render
224+ __vue_options__ . staticRenderFns = __vue_template__ . staticRenderFns
225+
226+ /* hot reload */
227+ if ( false ) { ( function ( ) {
228+ var hotAPI = require ( "vue-hot-reload-api" )
229+ hotAPI . install ( require ( "vue" ) , false )
230+ if ( ! hotAPI . compatible ) return
231+ module . hot . accept ( )
232+ if ( ! module . hot . data ) {
233+ hotAPI . createRecord ( "data-v-1cbfca0d" , __vue_options__ )
234+ } else {
235+ hotAPI . reload ( "data-v-1cbfca0d" , __vue_options__ )
236+ }
237+ } ) ( ) }
238+ if ( __vue_options__ . functional ) { console . error ( "[vue-loader] mdAvatar.vue: functional components are not supported and should be defined in plain js files using render functions." ) }
239+
240+ module . exports = __vue_exports__
241+
242+
243+ /***/ } ,
244+
245+ /***/ 322 :
246+ /***/ function ( module , exports , __webpack_require__ ) {
247+
248+ module . exports = { render :function ( ) { var _vm = this ; var _h = _vm . $createElement ; var _c = _vm . _self . _c || _h ;
249+ return _c ( 'div' , {
250+ staticClass : "md-avatar" ,
251+ class : [ _vm . themeClass ]
252+ } , [ _vm . _t ( "default" ) ] , 2 )
253+ } , staticRenderFns : [ ] }
254+ module . exports . render . _withStripped = true
255+ if ( false ) {
256+ module . hot . accept ( )
257+ if ( module . hot . data ) {
258+ require ( "vue-hot-reload-api" ) . rerender ( "data-v-1cbfca0d" , module . exports )
259+ }
260+ }
261+
262+ /***/ }
263+
264+ /******/ } )
265+ } ) ) ;
266+ ;
0 commit comments