11/* 
2-  * vue-croppa v1.1.4  
2+  * vue-croppa v1.1.5  
33 * https://github.com/zhanziyang/vue-croppa 
44 *  
55 * Copyright (c) 2017 zhanziyang 
@@ -22,7 +22,7 @@ function createCommonjsModule(fn, module) {
2222	return  module  =  {  exports : { }  } ,  fn ( module ,  module . exports ) ,  module . exports ; 
2323} 
2424
25- var  index  =  createCommonjsModule ( function  ( module ,  exports )  { 
25+ var  canvasExifOrientation  =  createCommonjsModule ( function  ( module ,  exports )  { 
2626( function  ( root ,  factory )  { 
2727    if  ( typeof  undefined  ===  'function'  &&  undefined . amd )  { 
2828        undefined ( [ ] ,  factory ) ; 
@@ -259,7 +259,7 @@ var u = {
259259    return  bytes . buffer ; 
260260  } , 
261261  getRotatedImage : function  getRotatedImage ( img ,  orientation )  { 
262-     var  _canvas  =  index . drawImage ( img ,  orientation ) ; 
262+     var  _canvas  =  canvasExifOrientation . drawImage ( img ,  orientation ) ; 
263263    var  _img  =  new  Image ( ) ; 
264264    _img . src  =  _canvas . toDataURL ( ) ; 
265265    return  _img ; 
@@ -458,7 +458,7 @@ var component = { render: function render() {
458458          $event . stopPropagation ( ) ; $event . preventDefault ( ) ; _vm . _handleDragOver ( $event ) ; 
459459        } ,  "drop" : function  drop ( $event )  { 
460460          $event . stopPropagation ( ) ; $event . preventDefault ( ) ; _vm . _handleDrop ( $event ) ; 
461-         }  }  } ,  [ _c ( 'input' ,  _vm . _b ( {  ref : "fileInput" ,  staticStyle : {  "height" : "1px" ,  "width" : "1px" ,  "overflow" : "hidden" ,  "margin-left" : "-99999px" ,  "position" : "absolute"  } ,  attrs : {  "type" : "file" ,  "accept" : _vm . accept ,  "disabled" : _vm . disabled  } ,  on : {  "change" : _vm . _handleInputChange  }  } ,  'input' ,  _vm . inputAttrs ) ) ,  _c ( 'div' ,  {  staticClass : "slots" ,  staticStyle : {  "width" : "0" ,  "height" : "0" ,  "visibility" : "hidden"  }  } ,  [ _vm . _t ( "initial" ) ,  _vm . _t ( "placeholder" ) ] ,  2 ) ,  _c ( 'canvas' ,  {  ref : "canvas" ,  on : {  "click" : function  click ( $event )  { 
461+         }  }  } ,  [ _c ( 'input' ,  _vm . _b ( {  ref : "fileInput" ,  staticStyle : {  "height" : "1px" ,  "width" : "1px" ,  "overflow" : "hidden" ,  "margin-left" : "-99999px" ,  "position" : "absolute"  } ,  attrs : {  "type" : "file" ,  "accept" : _vm . accept ,  "disabled" : _vm . disabled  } ,  on : {  "change" : _vm . _handleInputChange  }  } ,  'input' ,  _vm . inputAttrs ,   false ) ) ,  _vm . _v ( " " ) ,   _c ( 'div' ,  {  staticClass : "slots" ,  staticStyle : {  "width" : "0" ,  "height" : "0" ,  "visibility" : "hidden"  }  } ,  [ _vm . _t ( "initial" ) ,  _vm . _v ( " " ) ,   _vm . _t ( "placeholder" ) ] ,  2 ) ,   _vm . _v ( " " ) ,  _c ( 'canvas' ,  {  ref : "canvas" ,  on : {  "click" : function  click ( $event )  { 
462462          $event . stopPropagation ( ) ; $event . preventDefault ( ) ; _vm . _handleClick ( $event ) ; 
463463        } ,  "touchstart" : function  touchstart ( $event )  { 
464464          $event . stopPropagation ( ) ; _vm . _handlePointerStart ( $event ) ; 
@@ -490,9 +490,9 @@ var component = { render: function render() {
490490          $event . stopPropagation ( ) ; _vm . _handleWheel ( $event ) ; 
491491        } ,  "mousewheel" : function  mousewheel ( $event )  { 
492492          $event . stopPropagation ( ) ; _vm . _handleWheel ( $event ) ; 
493-         }  }  } ) ,  _vm . showRemoveButton  &&  _vm . img  ? _c ( 'svg' ,  {  staticClass : "icon icon-remove" ,  style : 'top: -'  +  _vm . height  /  40  +  'px; right: -'  +  _vm . width  /  40  +  'px' ,  attrs : {  "viewBox" : "0 0 1024 1024" ,  "version" : "1.1" ,  "xmlns" : "http://www.w3.org/2000/svg" ,  "xmlns:xlink" : "http://www.w3.org/1999/xlink" ,  "width" : _vm . removeButtonSize  ||  _vm . width  /  10 ,  "height" : _vm . removeButtonSize  ||  _vm . width  /  10  } ,  on : {  "click" : _vm . remove  }  } ,  [ _c ( 'path' ,  {  attrs : {  "d" : "M511.921231 0C229.179077 0 0 229.257846 0 512 0 794.702769 229.179077 1024 511.921231 1024 794.781538 1024 1024 794.702769 1024 512 1024 229.257846 794.781538 0 511.921231 0ZM732.041846 650.633846 650.515692 732.081231C650.515692 732.081231 521.491692 593.683692 511.881846 593.683692 502.429538 593.683692 373.366154 732.081231 373.366154 732.081231L291.761231 650.633846C291.761231 650.633846 430.316308 523.500308 430.316308 512.196923 430.316308 500.696615 291.761231 373.523692 291.761231 373.523692L373.366154 291.918769C373.366154 291.918769 503.453538 430.395077 511.881846 430.395077 520.349538 430.395077 650.515692 291.918769 650.515692 291.918769L732.041846 373.523692C732.041846 373.523692 593.447385 502.547692 593.447385 512.196923 593.447385 521.412923 732.041846 650.633846 732.041846 650.633846Z" ,  "fill" : _vm . removeButtonColor  }  } ) ] )  : _vm . _e ( ) ,  _vm . showLoading  &&  _vm . loading  ? _c ( 'div' ,  {  staticClass : "sk-fading-circle" ,  style : _vm . loadingStyle  } ,  _vm . _l ( 12 ,  function  ( i )  { 
493+         }  }  } ) ,  _vm . _v ( " " ) ,  _vm . showRemoveButton  &&  _vm . img  ? _c ( 'svg' ,  {  staticClass : "icon icon-remove" ,  style : 'top: -'  +  _vm . height  /  40  +  'px; right: -'  +  _vm . width  /  40  +  'px' ,  attrs : {  "viewBox" : "0 0 1024 1024" ,  "version" : "1.1" ,  "xmlns" : "http://www.w3.org/2000/svg" ,  "xmlns:xlink" : "http://www.w3.org/1999/xlink" ,  "width" : _vm . removeButtonSize  ||  _vm . width  /  10 ,  "height" : _vm . removeButtonSize  ||  _vm . width  /  10  } ,  on : {  "click" : _vm . remove  }  } ,  [ _c ( 'path' ,  {  attrs : {  "d" : "M511.921231 0C229.179077 0 0 229.257846 0 512 0 794.702769 229.179077 1024 511.921231 1024 794.781538 1024 1024 794.702769 1024 512 1024 229.257846 794.781538 0 511.921231 0ZM732.041846 650.633846 650.515692 732.081231C650.515692 732.081231 521.491692 593.683692 511.881846 593.683692 502.429538 593.683692 373.366154 732.081231 373.366154 732.081231L291.761231 650.633846C291.761231 650.633846 430.316308 523.500308 430.316308 512.196923 430.316308 500.696615 291.761231 373.523692 291.761231 373.523692L373.366154 291.918769C373.366154 291.918769 503.453538 430.395077 511.881846 430.395077 520.349538 430.395077 650.515692 291.918769 650.515692 291.918769L732.041846 373.523692C732.041846 373.523692 593.447385 502.547692 593.447385 512.196923 593.447385 521.412923 732.041846 650.633846 732.041846 650.633846Z" ,  "fill" : _vm . removeButtonColor  }  } ) ] )  : _vm . _e ( ) ,  _vm . _v ( " " ) ,  _vm . showLoading  &&  _vm . loading  ? _c ( 'div' ,  {  staticClass : "sk-fading-circle" ,  style : _vm . loadingStyle  } ,  _vm . _l ( 12 ,  function  ( i )  { 
494494      return  _c ( 'div' ,  {  key : i ,  class : 'sk-circle'  +  i  +  ' sk-circle'  } ,  [ _c ( 'div' ,  {  staticClass : "sk-circle-indicator" ,  style : {  backgroundColor : _vm . loadingColor  }  } ) ] ) ; 
495-     } ) )  : _vm . _e ( ) ,  _vm . _t ( "default" ) ] ,  2 ) ; 
495+     } ) )  : _vm . _e ( ) ,  _vm . _v ( " " ) ,   _vm . _t ( "default" ) ] ,  2 ) ; 
496496  } ,  staticRenderFns : [ ] , 
497497  model : { 
498498    prop : 'value' , 
@@ -1003,7 +1003,7 @@ var component = { render: function render() {
10031003        this . loading  =  false ; 
10041004        this . $emit ( events . FILE_TYPE_MISMATCH_EVENT ,  file ) ; 
10051005        var  type  =  file . type  ||  file . name . toLowerCase ( ) . split ( '.' ) . pop ( ) ; 
1006-         throw  new  Error ( 'File type ('  +  type  +  ') does not match what you specified  ('  +  this . accept  +  ').' ) ; 
1006+         throw  new  Error ( 'File type ('  +  type  +  ') mimatches  ('  +  this . accept  +  ').' ) ; 
10071007      } 
10081008      if  ( typeof  window  !==  'undefined'  &&  typeof  window . FileReader  !==  'undefined' )  { 
10091009        var  fr  =  new  FileReader ( ) ; 
@@ -1031,7 +1031,7 @@ var component = { render: function render() {
10311031      return  file . size  <  this . fileSizeLimit ; 
10321032    } , 
10331033    _fileTypeIsValid : function  _fileTypeIsValid ( file )  { 
1034-       if  ( ! this . accepct )  return  true ; 
1034+       if  ( ! this . accept )  return  true ; 
10351035      var  accept  =  this . accept ; 
10361036      var  baseMimetype  =  accept . replace ( / \/ .* $ / ,  '' ) ; 
10371037      var  types  =  accept . split ( ',' ) ; 
@@ -1497,7 +1497,7 @@ function shouldUseNative() {
14971497	} 
14981498} 
14991499
1500- var  index$1  =  shouldUseNative ( )  ? Object . assign  : function  ( target ,  source )  { 
1500+ var  objectAssign  =  shouldUseNative ( )  ? Object . assign  : function  ( target ,  source )  { 
15011501	var  from ; 
15021502	var  to  =  toObject ( target ) ; 
15031503	var  symbols ; 
@@ -1530,7 +1530,7 @@ var defaultOptions = {
15301530
15311531var  VueCroppa  =  { 
15321532  install : function  install ( Vue ,  options )  { 
1533-     options  =  index$1 ( { } ,  defaultOptions ,  options ) ; 
1533+     options  =  objectAssign ( { } ,  defaultOptions ,  options ) ; 
15341534    var  version  =  Number ( Vue . version . split ( '.' ) [ 0 ] ) ; 
15351535    if  ( version  <  2 )  { 
15361536      throw  new  Error ( 'vue-croppa supports vue version 2.0 and above. You are using Vue@'  +  version  +  '. Please upgrade to the latest version of Vue.' ) ; 
0 commit comments