Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue-json-to-csv

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-json-to-csv - npm Package Compare versions

Comparing version 1.1.7 to 1.1.8

2

dist/vue-json-to-csv.js

@@ -1,1 +0,1 @@

!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define("vue-json-to-csv",[],n):"object"==typeof exports?exports["vue-json-to-csv"]=n():t["vue-json-to-csv"]=n()}(this,function(){return function(t){function n(r){if(e[r])return e[r].exports;var o=e[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}var e={};return n.m=t,n.c=e,n.p="",n(0)}([function(t,n,e){var r=e(1)(e(2),e(83),null,null);t.exports=r.exports},function(t,n){t.exports=function(t,n,e,r){var o,i=t=t||{},u=typeof t["default"];"object"!==u&&"function"!==u||(o=t,i=t["default"]);var c="function"==typeof i?i.options:i;if(n&&(c.render=n.render,c.staticRenderFns=n.staticRenderFns),e&&(c._scopeId=e),r){var f=Object.create(c.computed||null);Object.keys(r).forEach(function(t){var n=r[t];f[t]=function(){return n}}),c.computed=f}return{esModule:o,exports:i,options:c}}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(n,"__esModule",{value:!0});var o=e(3),i=r(o),u=e(42),c=r(u),f=e(48),s=r(f),a=e(51),l=r(a);n["default"]={mixins:[l["default"]],props:{jsonData:{type:Array,required:!0},csvTitle:{type:[String,Number],"default":"csv",required:!1},showLabels:{type:Boolean,"default":!0,required:!1},labels:{type:Object,required:!1},separator:{type:String,"default":",",required:!1}},data:function(){return{csvLabels:null,csvData:null}},destroyed:function(){this.csvLabels=null,this.csvData=null},methods:{handleClick:function(){var t=(0,s["default"])(this._events).indexOf("error")>-1,n=(0,s["default"])(this._events).indexOf("success")>-1;if(!this.jsonData.length)return void this.handleError("Error: Data are empty",t);if(this.labels&&!(0,s["default"])(this.labels).length)return void this.handleError("Error: Labels are empty",t);var e=(0,c["default"])((0,i["default"])({},this.jsonData[0])),r=this.labels||this.$_createCsvLabelsConf(e);if(this.csvLabels=this.showLabels?this.$_createCsvLabels(r,this.separator):"",this.csvData=this.$_createCsvContent(this.jsonData,r,this.separator),"error"===this.csvLabels||"error"===this.csvData)return void this.handleError("Error: An error occured while parsing the data.",t);var o=this.csvLabels+this.csvData,u=this.$_downloadCsv("csv-"+this._uid,o,this.csvTitle);u||this.handleError("An error has occured",t),u&&n&&this.$emit("success",!0)},handleError:function(t,n){throw t}}}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}n.__esModule=!0;var o=e(4),i=r(o);n["default"]=i["default"]||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t}},function(t,n,e){t.exports={"default":e(5),__esModule:!0}},function(t,n,e){e(6),t.exports=e(9).Object.assign},function(t,n,e){var r=e(7);r(r.S+r.F,"Object",{assign:e(23)})},function(t,n,e){var r=e(8),o=e(9),i=e(10),u=e(12),c=e(22),f="prototype",s=function(t,n,e){var a,l,p,d=t&s.F,v=t&s.G,y=t&s.S,h=t&s.P,b=t&s.B,m=t&s.W,x=v?o:o[n]||(o[n]={}),g=x[f],O=v?r:y?r[n]:(r[n]||{})[f];v&&(e=n);for(a in e)l=!d&&O&&void 0!==O[a],l&&c(x,a)||(p=l?O[a]:e[a],x[a]=v&&"function"!=typeof O[a]?e[a]:b&&l?i(p,r):m&&O[a]==p?function(t){var n=function(n,e,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,e)}return new t(n,e,r)}return t.apply(this,arguments)};return n[f]=t[f],n}(p):h&&"function"==typeof p?i(Function.call,p):p,h&&((x.virtual||(x.virtual={}))[a]=p,t&s.R&&g&&!g[a]&&u(g,a,p)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(t,n){var e=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=e)},function(t,n,e){var r=e(11);t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,o){return t.call(n,e,r,o)}}return function(){return t.apply(n,arguments)}}},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n,e){var r=e(13),o=e(21);t.exports=e(17)?function(t,n,e){return r.f(t,n,o(1,e))}:function(t,n,e){return t[n]=e,t}},function(t,n,e){var r=e(14),o=e(16),i=e(20),u=Object.defineProperty;n.f=e(17)?Object.defineProperty:function(t,n,e){if(r(t),n=i(n,!0),r(e),o)try{return u(t,n,e)}catch(c){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},function(t,n,e){var r=e(15);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,e){t.exports=!e(17)&&!e(18)(function(){return 7!=Object.defineProperty(e(19)("div"),"a",{get:function(){return 7}}).a})},function(t,n,e){t.exports=!e(18)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n){t.exports=function(t){try{return!!t()}catch(n){return!0}}},function(t,n,e){var r=e(15),o=e(8).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,n,e){var r=e(15);t.exports=function(t,n){if(!r(t))return t;var e,o;if(n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;if("function"==typeof(e=t.valueOf)&&!r(o=e.call(t)))return o;if(!n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},function(t,n,e){"use strict";var r=e(24),o=e(39),i=e(40),u=e(41),c=e(27),f=Object.assign;t.exports=!f||e(18)(function(){var t={},n={},e=Symbol(),r="abcdefghijklmnopqrst";return t[e]=7,r.split("").forEach(function(t){n[t]=t}),7!=f({},t)[e]||Object.keys(f({},n)).join("")!=r})?function(t,n){for(var e=u(t),f=arguments.length,s=1,a=o.f,l=i.f;f>s;)for(var p,d=c(arguments[s++]),v=a?r(d).concat(a(d)):r(d),y=v.length,h=0;y>h;)l.call(d,p=v[h++])&&(e[p]=d[p]);return e}:f},function(t,n,e){var r=e(25),o=e(38);t.exports=Object.keys||function(t){return r(t,o)}},function(t,n,e){var r=e(22),o=e(26),i=e(30)(!1),u=e(34)("IE_PROTO");t.exports=function(t,n){var e,c=o(t),f=0,s=[];for(e in c)e!=u&&r(c,e)&&s.push(e);for(;n.length>f;)r(c,e=n[f++])&&(~i(s,e)||s.push(e));return s}},function(t,n,e){var r=e(27),o=e(29);t.exports=function(t){return r(o(t))}},function(t,n,e){var r=e(28);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,n,e){var r=e(26),o=e(31),i=e(33);t.exports=function(t){return function(n,e,u){var c,f=r(n),s=o(f.length),a=i(u,s);if(t&&e!=e){for(;s>a;)if(c=f[a++],c!=c)return!0}else for(;s>a;a++)if((t||a in f)&&f[a]===e)return t||a||0;return!t&&-1}}},function(t,n,e){var r=e(32),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},function(t,n,e){var r=e(32),o=Math.max,i=Math.min;t.exports=function(t,n){return t=r(t),t<0?o(t+n,0):i(t,n)}},function(t,n,e){var r=e(35)("keys"),o=e(37);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,n,e){var r=e(9),o=e(8),i="__core-js_shared__",u=o[i]||(o[i]={});(t.exports=function(t,n){return u[t]||(u[t]=void 0!==n?n:{})})("versions",[]).push({version:r.version,mode:e(36)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(t,n){t.exports=!0},function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n){n.f={}.propertyIsEnumerable},function(t,n,e){var r=e(29);t.exports=function(t){return Object(r(t))}},function(t,n,e){t.exports={"default":e(43),__esModule:!0}},function(t,n,e){e(44);var r=e(9).Object;t.exports=function(t){return r.getOwnPropertyNames(t)}},function(t,n,e){e(45)("getOwnPropertyNames",function(){return e(46).f})},function(t,n,e){var r=e(7),o=e(9),i=e(18);t.exports=function(t,n){var e=(o.Object||{})[t]||Object[t],u={};u[t]=n(e),r(r.S+r.F*i(function(){e(1)}),"Object",u)}},function(t,n,e){var r=e(26),o=e(47).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(t){try{return o(t)}catch(n){return u.slice()}};t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?c(t):o(r(t))}},function(t,n,e){var r=e(25),o=e(38).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,n,e){t.exports={"default":e(49),__esModule:!0}},function(t,n,e){e(50),t.exports=e(9).Object.keys},function(t,n,e){var r=e(41),o=e(24);e(45)("keys",function(){return function(t){return o(r(t))}})},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}var o=e(52),i=r(o),u=e(48),c=r(u);t.exports={methods:{$_createCsvLabelsConf:function(t){var n={};return t.map(function(t,e){n[t]={title:t}}),n},$_createCsvLabels:function(t,n){var e="",r="";try{(0,c["default"])(t).map(function(r,o){e+='"'+t[r].title+'"'+n}),e=e.slice(0,-1),r+=e+"\r\n"}catch(o){r="error"}finally{return r}},$_createCsvContent:function(t,n,e){var r="",o="",u="";try{t.map(function(t,f){r="",(0,c["default"])(n).map(function(n,o){u=(0,i["default"])(t[n]),r+="number"===u||"float"===u?t[n]+e:'"'+t[n]+'"'+e}),r=r.slice(0,-1),o+=r+"\r\n"})}catch(f){o="error"}finally{return o}},$_downloadCsv:function(t,n,e){try{var r="data:text/csv;charset=utf-8,\ufeff"+encodeURI(n),o=document.createElement("a");return o.id="csv-"+t,o.href=r,document.body.appendChild(o),document.getElementById(o.id).style.visibility="hidden",document.getElementById(o.id).download=e+".csv",document.body.appendChild(o),document.getElementById(o.id).click(),setTimeout(function(){document.body.removeChild(o)}),!0}catch(i){return!1}}}}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}n.__esModule=!0;var o=e(53),i=r(o),u=e(72),c=r(u),f="function"==typeof c["default"]&&"symbol"==typeof i["default"]?function(t){return typeof t}:function(t){return t&&"function"==typeof c["default"]&&t.constructor===c["default"]&&t!==c["default"].prototype?"symbol":typeof t};n["default"]="function"==typeof c["default"]&&"symbol"===f(i["default"])?function(t){return"undefined"==typeof t?"undefined":f(t)}:function(t){return t&&"function"==typeof c["default"]&&t.constructor===c["default"]&&t!==c["default"].prototype?"symbol":"undefined"==typeof t?"undefined":f(t)}},function(t,n,e){t.exports={"default":e(54),__esModule:!0}},function(t,n,e){e(55),e(67),t.exports=e(71).f("iterator")},function(t,n,e){"use strict";var r=e(56)(!0);e(57)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,n=this._t,e=this._i;return e>=n.length?{value:void 0,done:!0}:(t=r(n,e),this._i+=t.length,{value:t,done:!1})})},function(t,n,e){var r=e(32),o=e(29);t.exports=function(t){return function(n,e){var i,u,c=String(o(n)),f=r(e),s=c.length;return f<0||f>=s?t?"":void 0:(i=c.charCodeAt(f),i<55296||i>56319||f+1===s||(u=c.charCodeAt(f+1))<56320||u>57343?t?c.charAt(f):i:t?c.slice(f,f+2):(i-55296<<10)+(u-56320)+65536)}}},function(t,n,e){"use strict";var r=e(36),o=e(7),i=e(58),u=e(12),c=e(59),f=e(60),s=e(64),a=e(66),l=e(65)("iterator"),p=!([].keys&&"next"in[].keys()),d="@@iterator",v="keys",y="values",h=function(){return this};t.exports=function(t,n,e,b,m,x,g){f(e,n,b);var O,_,S,j=function(t){if(!p&&t in P)return P[t];switch(t){case v:return function(){return new e(this,t)};case y:return function(){return new e(this,t)}}return function(){return new e(this,t)}},w=n+" Iterator",E=m==y,L=!1,P=t.prototype,M=P[l]||P[d]||m&&P[m],C=M||j(m),k=m?E?j("entries"):C:void 0,T="Array"==n?P.entries||M:M;if(T&&(S=a(T.call(new t)),S!==Object.prototype&&S.next&&(s(S,w,!0),r||"function"==typeof S[l]||u(S,l,h))),E&&M&&M.name!==y&&(L=!0,C=function(){return M.call(this)}),r&&!g||!p&&!L&&P[l]||u(P,l,C),c[n]=C,c[w]=h,m)if(O={values:E?C:j(y),keys:x?C:j(v),entries:k},g)for(_ in O)_ in P||i(P,_,O[_]);else o(o.P+o.F*(p||L),n,O);return O}},function(t,n,e){t.exports=e(12)},function(t,n){t.exports={}},function(t,n,e){"use strict";var r=e(61),o=e(21),i=e(64),u={};e(12)(u,e(65)("iterator"),function(){return this}),t.exports=function(t,n,e){t.prototype=r(u,{next:o(1,e)}),i(t,n+" Iterator")}},function(t,n,e){var r=e(14),o=e(62),i=e(38),u=e(34)("IE_PROTO"),c=function(){},f="prototype",s=function(){var t,n=e(19)("iframe"),r=i.length,o="<",u=">";for(n.style.display="none",e(63).appendChild(n),n.src="javascript:",t=n.contentWindow.document,t.open(),t.write(o+"script"+u+"document.F=Object"+o+"/script"+u),t.close(),s=t.F;r--;)delete s[f][i[r]];return s()};t.exports=Object.create||function(t,n){var e;return null!==t?(c[f]=r(t),e=new c,c[f]=null,e[u]=t):e=s(),void 0===n?e:o(e,n)}},function(t,n,e){var r=e(13),o=e(14),i=e(24);t.exports=e(17)?Object.defineProperties:function(t,n){o(t);for(var e,u=i(n),c=u.length,f=0;c>f;)r.f(t,e=u[f++],n[e]);return t}},function(t,n,e){var r=e(8).document;t.exports=r&&r.documentElement},function(t,n,e){var r=e(13).f,o=e(22),i=e(65)("toStringTag");t.exports=function(t,n,e){t&&!o(t=e?t:t.prototype,i)&&r(t,i,{configurable:!0,value:n})}},function(t,n,e){var r=e(35)("wks"),o=e(37),i=e(8).Symbol,u="function"==typeof i,c=t.exports=function(t){return r[t]||(r[t]=u&&i[t]||(u?i:o)("Symbol."+t))};c.store=r},function(t,n,e){var r=e(22),o=e(41),i=e(34)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,n,e){e(68);for(var r=e(8),o=e(12),i=e(59),u=e(65)("toStringTag"),c="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),f=0;f<c.length;f++){var s=c[f],a=r[s],l=a&&a.prototype;l&&!l[u]&&o(l,u,s),i[s]=i.Array}},function(t,n,e){"use strict";var r=e(69),o=e(70),i=e(59),u=e(26);t.exports=e(57)(Array,"Array",function(t,n){this._t=u(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,e=this._i++;return!t||e>=t.length?(this._t=void 0,o(1)):"keys"==n?o(0,e):"values"==n?o(0,t[e]):o(0,[e,t[e]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,n){t.exports=function(){}},function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n,e){n.f=e(65)},function(t,n,e){t.exports={"default":e(73),__esModule:!0}},function(t,n,e){e(74),e(80),e(81),e(82),t.exports=e(9).Symbol},function(t,n,e){"use strict";var r=e(8),o=e(22),i=e(17),u=e(7),c=e(58),f=e(75).KEY,s=e(18),a=e(35),l=e(64),p=e(37),d=e(65),v=e(71),y=e(76),h=e(77),b=e(78),m=e(14),x=e(15),g=e(26),O=e(20),_=e(21),S=e(61),j=e(46),w=e(79),E=e(13),L=e(24),P=w.f,M=E.f,C=j.f,k=r.Symbol,T=r.JSON,D=T&&T.stringify,F="prototype",A=d("_hidden"),N=d("toPrimitive"),I={}.propertyIsEnumerable,R=a("symbol-registry"),$=a("symbols"),G=a("op-symbols"),q=Object[F],B="function"==typeof k,V=r.QObject,W=!V||!V[F]||!V[F].findChild,H=i&&s(function(){return 7!=S(M({},"a",{get:function(){return M(this,"a",{value:7}).a}})).a})?function(t,n,e){var r=P(q,n);r&&delete q[n],M(t,n,e),r&&t!==q&&M(q,n,r)}:M,J=function(t){var n=$[t]=S(k[F]);return n._k=t,n},z=B&&"symbol"==typeof k.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof k},K=function(t,n,e){return t===q&&K(G,n,e),m(t),n=O(n,!0),m(e),o($,n)?(e.enumerable?(o(t,A)&&t[A][n]&&(t[A][n]=!1),e=S(e,{enumerable:_(0,!1)})):(o(t,A)||M(t,A,_(1,{})),t[A][n]=!0),H(t,n,e)):M(t,n,e)},U=function(t,n){m(t);for(var e,r=h(n=g(n)),o=0,i=r.length;i>o;)K(t,e=r[o++],n[e]);return t},Y=function(t,n){return void 0===n?S(t):U(S(t),n)},Q=function(t){var n=I.call(this,t=O(t,!0));return!(this===q&&o($,t)&&!o(G,t))&&(!(n||!o(this,t)||!o($,t)||o(this,A)&&this[A][t])||n)},X=function(t,n){if(t=g(t),n=O(n,!0),t!==q||!o($,n)||o(G,n)){var e=P(t,n);return!e||!o($,n)||o(t,A)&&t[A][n]||(e.enumerable=!0),e}},Z=function(t){for(var n,e=C(g(t)),r=[],i=0;e.length>i;)o($,n=e[i++])||n==A||n==f||r.push(n);return r},tt=function(t){for(var n,e=t===q,r=C(e?G:g(t)),i=[],u=0;r.length>u;)!o($,n=r[u++])||e&&!o(q,n)||i.push($[n]);return i};B||(k=function(){if(this instanceof k)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),n=function(e){this===q&&n.call(G,e),o(this,A)&&o(this[A],t)&&(this[A][t]=!1),H(this,t,_(1,e))};return i&&W&&H(q,t,{configurable:!0,set:n}),J(t)},c(k[F],"toString",function(){return this._k}),w.f=X,E.f=K,e(47).f=j.f=Z,e(40).f=Q,e(39).f=tt,i&&!e(36)&&c(q,"propertyIsEnumerable",Q,!0),v.f=function(t){return J(d(t))}),u(u.G+u.W+u.F*!B,{Symbol:k});for(var nt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;nt.length>et;)d(nt[et++]);for(var rt=L(d.store),ot=0;rt.length>ot;)y(rt[ot++]);u(u.S+u.F*!B,"Symbol",{"for":function(t){return o(R,t+="")?R[t]:R[t]=k(t)},keyFor:function(t){if(!z(t))throw TypeError(t+" is not a symbol!");for(var n in R)if(R[n]===t)return n},useSetter:function(){W=!0},useSimple:function(){W=!1}}),u(u.S+u.F*!B,"Object",{create:Y,defineProperty:K,defineProperties:U,getOwnPropertyDescriptor:X,getOwnPropertyNames:Z,getOwnPropertySymbols:tt}),T&&u(u.S+u.F*(!B||s(function(){var t=k();return"[null]"!=D([t])||"{}"!=D({a:t})||"{}"!=D(Object(t))})),"JSON",{stringify:function(t){for(var n,e,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(e=n=r[1],(x(n)||void 0!==t)&&!z(t))return b(n)||(n=function(t,n){if("function"==typeof e&&(n=e.call(this,t,n)),!z(n))return n}),r[1]=n,D.apply(T,r)}}),k[F][N]||e(12)(k[F],N,k[F].valueOf),l(k,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,n,e){var r=e(37)("meta"),o=e(15),i=e(22),u=e(13).f,c=0,f=Object.isExtensible||function(){return!0},s=!e(18)(function(){return f(Object.preventExtensions({}))}),a=function(t){u(t,r,{value:{i:"O"+ ++c,w:{}}})},l=function(t,n){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!f(t))return"F";if(!n)return"E";a(t)}return t[r].i},p=function(t,n){if(!i(t,r)){if(!f(t))return!0;if(!n)return!1;a(t)}return t[r].w},d=function(t){return s&&v.NEED&&f(t)&&!i(t,r)&&a(t),t},v=t.exports={KEY:r,NEED:!1,fastKey:l,getWeak:p,onFreeze:d}},function(t,n,e){var r=e(8),o=e(9),i=e(36),u=e(71),c=e(13).f;t.exports=function(t){var n=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in n||c(n,t,{value:u.f(t)})}},function(t,n,e){var r=e(24),o=e(39),i=e(40);t.exports=function(t){var n=r(t),e=o.f;if(e)for(var u,c=e(t),f=i.f,s=0;c.length>s;)f.call(t,u=c[s++])&&n.push(u);return n}},function(t,n,e){var r=e(28);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,n,e){var r=e(40),o=e(21),i=e(26),u=e(20),c=e(22),f=e(16),s=Object.getOwnPropertyDescriptor;n.f=e(17)?s:function(t,n){if(t=i(t),n=u(n,!0),f)try{return s(t,n)}catch(e){}if(c(t,n))return o(!r.f.call(t,n),t[n])}},function(t,n){},function(t,n,e){e(76)("asyncIterator")},function(t,n,e){e(76)("observable")},function(t,n){t.exports={render:function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("span",{attrs:{id:"json-to-csv-"+t._uid},on:{click:t.handleClick}},[t._t("default",[e("button",[t._v("\n Download\n ")])])],2)},staticRenderFns:[]}}])});
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define("vue-json-to-csv",[],n):"object"==typeof exports?exports["vue-json-to-csv"]=n():t["vue-json-to-csv"]=n()}(this,function(){return function(t){function n(r){if(e[r])return e[r].exports;var o=e[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}var e={};return n.m=t,n.c=e,n.p="",n(0)}([function(t,n,e){var r=e(1)(e(2),e(83),null,null);t.exports=r.exports},function(t,n){t.exports=function(t,n,e,r){var o,i=t=t||{},u=typeof t["default"];"object"!==u&&"function"!==u||(o=t,i=t["default"]);var c="function"==typeof i?i.options:i;if(n&&(c.render=n.render,c.staticRenderFns=n.staticRenderFns),e&&(c._scopeId=e),r){var f=Object.create(c.computed||null);Object.keys(r).forEach(function(t){var n=r[t];f[t]=function(){return n}}),c.computed=f}return{esModule:o,exports:i,options:c}}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(n,"__esModule",{value:!0});var o=e(3),i=r(o),u=e(42),c=r(u),f=e(48),s=r(f),a=e(51),l=r(a);n["default"]={mixins:[l["default"]],props:{jsonData:{type:Array,required:!0},csvTitle:{type:[String,Number],"default":"csv",required:!1},showLabels:{type:Boolean,"default":!0,required:!1},labels:{type:Object,required:!1},separator:{type:String,"default":",",required:!1}},data:function(){return{csvLabels:null,csvData:null}},destroyed:function(){this.csvLabels=null,this.csvData=null},methods:{handleClick:function(){var t=(0,s["default"])(this._events).indexOf("error")>-1,n=(0,s["default"])(this._events).indexOf("success")>-1;if(!this.jsonData.length)return void this.handleError("Error: Data are empty",t);if(this.labels&&!(0,s["default"])(this.labels).length)return void this.handleError("Error: Labels are empty",t);var e=(0,c["default"])((0,i["default"])({},this.jsonData[0])),r=this.labels||this.$_createCsvLabelsConf(e);if(this.csvLabels=this.showLabels?this.$_createCsvLabels(r,this.separator):"",this.csvData=this.$_createCsvContent(this.jsonData,r,this.separator),"error"===this.csvLabels||"error"===this.csvData)return void this.handleError("Error: An error occured while parsing the data.",t);var o=this.csvLabels+this.csvData,u=this.$_downloadCsv("csv-"+this._uid,o,this.csvTitle);u||this.handleError("An error has occured",t),u&&n&&this.$emit("success",!0)},handleError:function(t,n){throw t}}}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}n.__esModule=!0;var o=e(4),i=r(o);n["default"]=i["default"]||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t}},function(t,n,e){t.exports={"default":e(5),__esModule:!0}},function(t,n,e){e(6),t.exports=e(9).Object.assign},function(t,n,e){var r=e(7);r(r.S+r.F,"Object",{assign:e(23)})},function(t,n,e){var r=e(8),o=e(9),i=e(10),u=e(12),c=e(22),f="prototype",s=function(t,n,e){var a,l,p,d=t&s.F,v=t&s.G,y=t&s.S,h=t&s.P,b=t&s.B,m=t&s.W,x=v?o:o[n]||(o[n]={}),g=x[f],O=v?r:y?r[n]:(r[n]||{})[f];v&&(e=n);for(a in e)l=!d&&O&&void 0!==O[a],l&&c(x,a)||(p=l?O[a]:e[a],x[a]=v&&"function"!=typeof O[a]?e[a]:b&&l?i(p,r):m&&O[a]==p?function(t){var n=function(n,e,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,e)}return new t(n,e,r)}return t.apply(this,arguments)};return n[f]=t[f],n}(p):h&&"function"==typeof p?i(Function.call,p):p,h&&((x.virtual||(x.virtual={}))[a]=p,t&s.R&&g&&!g[a]&&u(g,a,p)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(t,n){var e=t.exports={version:"2.6.9"};"number"==typeof __e&&(__e=e)},function(t,n,e){var r=e(11);t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,o){return t.call(n,e,r,o)}}return function(){return t.apply(n,arguments)}}},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n,e){var r=e(13),o=e(21);t.exports=e(17)?function(t,n,e){return r.f(t,n,o(1,e))}:function(t,n,e){return t[n]=e,t}},function(t,n,e){var r=e(14),o=e(16),i=e(20),u=Object.defineProperty;n.f=e(17)?Object.defineProperty:function(t,n,e){if(r(t),n=i(n,!0),r(e),o)try{return u(t,n,e)}catch(c){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},function(t,n,e){var r=e(15);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,e){t.exports=!e(17)&&!e(18)(function(){return 7!=Object.defineProperty(e(19)("div"),"a",{get:function(){return 7}}).a})},function(t,n,e){t.exports=!e(18)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n){t.exports=function(t){try{return!!t()}catch(n){return!0}}},function(t,n,e){var r=e(15),o=e(8).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,n,e){var r=e(15);t.exports=function(t,n){if(!r(t))return t;var e,o;if(n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;if("function"==typeof(e=t.valueOf)&&!r(o=e.call(t)))return o;if(!n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},function(t,n,e){"use strict";var r=e(17),o=e(24),i=e(39),u=e(40),c=e(41),f=e(27),s=Object.assign;t.exports=!s||e(18)(function(){var t={},n={},e=Symbol(),r="abcdefghijklmnopqrst";return t[e]=7,r.split("").forEach(function(t){n[t]=t}),7!=s({},t)[e]||Object.keys(s({},n)).join("")!=r})?function(t,n){for(var e=c(t),s=arguments.length,a=1,l=i.f,p=u.f;s>a;)for(var d,v=f(arguments[a++]),y=l?o(v).concat(l(v)):o(v),h=y.length,b=0;h>b;)d=y[b++],r&&!p.call(v,d)||(e[d]=v[d]);return e}:s},function(t,n,e){var r=e(25),o=e(38);t.exports=Object.keys||function(t){return r(t,o)}},function(t,n,e){var r=e(22),o=e(26),i=e(30)(!1),u=e(34)("IE_PROTO");t.exports=function(t,n){var e,c=o(t),f=0,s=[];for(e in c)e!=u&&r(c,e)&&s.push(e);for(;n.length>f;)r(c,e=n[f++])&&(~i(s,e)||s.push(e));return s}},function(t,n,e){var r=e(27),o=e(29);t.exports=function(t){return r(o(t))}},function(t,n,e){var r=e(28);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,n,e){var r=e(26),o=e(31),i=e(33);t.exports=function(t){return function(n,e,u){var c,f=r(n),s=o(f.length),a=i(u,s);if(t&&e!=e){for(;s>a;)if(c=f[a++],c!=c)return!0}else for(;s>a;a++)if((t||a in f)&&f[a]===e)return t||a||0;return!t&&-1}}},function(t,n,e){var r=e(32),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},function(t,n,e){var r=e(32),o=Math.max,i=Math.min;t.exports=function(t,n){return t=r(t),t<0?o(t+n,0):i(t,n)}},function(t,n,e){var r=e(35)("keys"),o=e(37);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,n,e){var r=e(9),o=e(8),i="__core-js_shared__",u=o[i]||(o[i]={});(t.exports=function(t,n){return u[t]||(u[t]=void 0!==n?n:{})})("versions",[]).push({version:r.version,mode:e(36)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,n){t.exports=!0},function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n){n.f={}.propertyIsEnumerable},function(t,n,e){var r=e(29);t.exports=function(t){return Object(r(t))}},function(t,n,e){t.exports={"default":e(43),__esModule:!0}},function(t,n,e){e(44);var r=e(9).Object;t.exports=function(t){return r.getOwnPropertyNames(t)}},function(t,n,e){e(45)("getOwnPropertyNames",function(){return e(46).f})},function(t,n,e){var r=e(7),o=e(9),i=e(18);t.exports=function(t,n){var e=(o.Object||{})[t]||Object[t],u={};u[t]=n(e),r(r.S+r.F*i(function(){e(1)}),"Object",u)}},function(t,n,e){var r=e(26),o=e(47).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(t){try{return o(t)}catch(n){return u.slice()}};t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?c(t):o(r(t))}},function(t,n,e){var r=e(25),o=e(38).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,n,e){t.exports={"default":e(49),__esModule:!0}},function(t,n,e){e(50),t.exports=e(9).Object.keys},function(t,n,e){var r=e(41),o=e(24);e(45)("keys",function(){return function(t){return o(r(t))}})},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}var o=e(52),i=r(o),u=e(48),c=r(u);t.exports={methods:{$_createCsvLabelsConf:function(t){var n={};return t.map(function(t,e){n[t]={title:t}}),n},$_createCsvLabels:function(t,n){var e="",r="";try{(0,c["default"])(t).map(function(r,o){e+='"'+t[r].title+'"'+n}),e=e.slice(0,-1),r+=e+"\r\n"}catch(o){r="error"}finally{return r}},$_createCsvContent:function(t,n,e){var r="",o="",u="";try{t.map(function(t,f){r="",(0,c["default"])(n).map(function(n,o){u=(0,i["default"])(t[n]),r+="number"===u||"float"===u?t[n]+e:'"'+t[n]+'"'+e}),r=r.slice(0,-1),o+=r+"\r\n"})}catch(f){o="error"}finally{return o}},$_downloadCsv:function(t,n,e){try{var r="data:text/csv;charset=utf-8,\ufeff"+encodeURIComponent(n),o=document.createElement("a");return o.id="csv-"+t,o.href=r,document.body.appendChild(o),document.getElementById(o.id).style.visibility="hidden",document.getElementById(o.id).download=e+".csv",document.body.appendChild(o),document.getElementById(o.id).click(),setTimeout(function(){document.body.removeChild(o)}),!0}catch(i){return!1}}}}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}n.__esModule=!0;var o=e(53),i=r(o),u=e(72),c=r(u),f="function"==typeof c["default"]&&"symbol"==typeof i["default"]?function(t){return typeof t}:function(t){return t&&"function"==typeof c["default"]&&t.constructor===c["default"]&&t!==c["default"].prototype?"symbol":typeof t};n["default"]="function"==typeof c["default"]&&"symbol"===f(i["default"])?function(t){return"undefined"==typeof t?"undefined":f(t)}:function(t){return t&&"function"==typeof c["default"]&&t.constructor===c["default"]&&t!==c["default"].prototype?"symbol":"undefined"==typeof t?"undefined":f(t)}},function(t,n,e){t.exports={"default":e(54),__esModule:!0}},function(t,n,e){e(55),e(67),t.exports=e(71).f("iterator")},function(t,n,e){"use strict";var r=e(56)(!0);e(57)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,n=this._t,e=this._i;return e>=n.length?{value:void 0,done:!0}:(t=r(n,e),this._i+=t.length,{value:t,done:!1})})},function(t,n,e){var r=e(32),o=e(29);t.exports=function(t){return function(n,e){var i,u,c=String(o(n)),f=r(e),s=c.length;return f<0||f>=s?t?"":void 0:(i=c.charCodeAt(f),i<55296||i>56319||f+1===s||(u=c.charCodeAt(f+1))<56320||u>57343?t?c.charAt(f):i:t?c.slice(f,f+2):(i-55296<<10)+(u-56320)+65536)}}},function(t,n,e){"use strict";var r=e(36),o=e(7),i=e(58),u=e(12),c=e(59),f=e(60),s=e(64),a=e(66),l=e(65)("iterator"),p=!([].keys&&"next"in[].keys()),d="@@iterator",v="keys",y="values",h=function(){return this};t.exports=function(t,n,e,b,m,x,g){f(e,n,b);var O,_,S,j=function(t){if(!p&&t in P)return P[t];switch(t){case v:return function(){return new e(this,t)};case y:return function(){return new e(this,t)}}return function(){return new e(this,t)}},w=n+" Iterator",E=m==y,L=!1,P=t.prototype,M=P[l]||P[d]||m&&P[m],C=M||j(m),k=m?E?j("entries"):C:void 0,T="Array"==n?P.entries||M:M;if(T&&(S=a(T.call(new t)),S!==Object.prototype&&S.next&&(s(S,w,!0),r||"function"==typeof S[l]||u(S,l,h))),E&&M&&M.name!==y&&(L=!0,C=function(){return M.call(this)}),r&&!g||!p&&!L&&P[l]||u(P,l,C),c[n]=C,c[w]=h,m)if(O={values:E?C:j(y),keys:x?C:j(v),entries:k},g)for(_ in O)_ in P||i(P,_,O[_]);else o(o.P+o.F*(p||L),n,O);return O}},function(t,n,e){t.exports=e(12)},function(t,n){t.exports={}},function(t,n,e){"use strict";var r=e(61),o=e(21),i=e(64),u={};e(12)(u,e(65)("iterator"),function(){return this}),t.exports=function(t,n,e){t.prototype=r(u,{next:o(1,e)}),i(t,n+" Iterator")}},function(t,n,e){var r=e(14),o=e(62),i=e(38),u=e(34)("IE_PROTO"),c=function(){},f="prototype",s=function(){var t,n=e(19)("iframe"),r=i.length,o="<",u=">";for(n.style.display="none",e(63).appendChild(n),n.src="javascript:",t=n.contentWindow.document,t.open(),t.write(o+"script"+u+"document.F=Object"+o+"/script"+u),t.close(),s=t.F;r--;)delete s[f][i[r]];return s()};t.exports=Object.create||function(t,n){var e;return null!==t?(c[f]=r(t),e=new c,c[f]=null,e[u]=t):e=s(),void 0===n?e:o(e,n)}},function(t,n,e){var r=e(13),o=e(14),i=e(24);t.exports=e(17)?Object.defineProperties:function(t,n){o(t);for(var e,u=i(n),c=u.length,f=0;c>f;)r.f(t,e=u[f++],n[e]);return t}},function(t,n,e){var r=e(8).document;t.exports=r&&r.documentElement},function(t,n,e){var r=e(13).f,o=e(22),i=e(65)("toStringTag");t.exports=function(t,n,e){t&&!o(t=e?t:t.prototype,i)&&r(t,i,{configurable:!0,value:n})}},function(t,n,e){var r=e(35)("wks"),o=e(37),i=e(8).Symbol,u="function"==typeof i,c=t.exports=function(t){return r[t]||(r[t]=u&&i[t]||(u?i:o)("Symbol."+t))};c.store=r},function(t,n,e){var r=e(22),o=e(41),i=e(34)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,n,e){e(68);for(var r=e(8),o=e(12),i=e(59),u=e(65)("toStringTag"),c="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),f=0;f<c.length;f++){var s=c[f],a=r[s],l=a&&a.prototype;l&&!l[u]&&o(l,u,s),i[s]=i.Array}},function(t,n,e){"use strict";var r=e(69),o=e(70),i=e(59),u=e(26);t.exports=e(57)(Array,"Array",function(t,n){this._t=u(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,e=this._i++;return!t||e>=t.length?(this._t=void 0,o(1)):"keys"==n?o(0,e):"values"==n?o(0,t[e]):o(0,[e,t[e]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,n){t.exports=function(){}},function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n,e){n.f=e(65)},function(t,n,e){t.exports={"default":e(73),__esModule:!0}},function(t,n,e){e(74),e(80),e(81),e(82),t.exports=e(9).Symbol},function(t,n,e){"use strict";var r=e(8),o=e(22),i=e(17),u=e(7),c=e(58),f=e(75).KEY,s=e(18),a=e(35),l=e(64),p=e(37),d=e(65),v=e(71),y=e(76),h=e(77),b=e(78),m=e(14),x=e(15),g=e(41),O=e(26),_=e(20),S=e(21),j=e(61),w=e(46),E=e(79),L=e(39),P=e(13),M=e(24),C=E.f,k=P.f,T=w.f,F=r.Symbol,D=r.JSON,A=D&&D.stringify,N="prototype",I=d("_hidden"),R=d("toPrimitive"),$={}.propertyIsEnumerable,G=a("symbol-registry"),q=a("symbols"),B=a("op-symbols"),V=Object[N],W="function"==typeof F&&!!L.f,H=r.QObject,J=!H||!H[N]||!H[N].findChild,z=i&&s(function(){return 7!=j(k({},"a",{get:function(){return k(this,"a",{value:7}).a}})).a})?function(t,n,e){var r=C(V,n);r&&delete V[n],k(t,n,e),r&&t!==V&&k(V,n,r)}:k,K=function(t){var n=q[t]=j(F[N]);return n._k=t,n},U=W&&"symbol"==typeof F.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof F},Y=function(t,n,e){return t===V&&Y(B,n,e),m(t),n=_(n,!0),m(e),o(q,n)?(e.enumerable?(o(t,I)&&t[I][n]&&(t[I][n]=!1),e=j(e,{enumerable:S(0,!1)})):(o(t,I)||k(t,I,S(1,{})),t[I][n]=!0),z(t,n,e)):k(t,n,e)},Q=function(t,n){m(t);for(var e,r=h(n=O(n)),o=0,i=r.length;i>o;)Y(t,e=r[o++],n[e]);return t},X=function(t,n){return void 0===n?j(t):Q(j(t),n)},Z=function(t){var n=$.call(this,t=_(t,!0));return!(this===V&&o(q,t)&&!o(B,t))&&(!(n||!o(this,t)||!o(q,t)||o(this,I)&&this[I][t])||n)},tt=function(t,n){if(t=O(t),n=_(n,!0),t!==V||!o(q,n)||o(B,n)){var e=C(t,n);return!e||!o(q,n)||o(t,I)&&t[I][n]||(e.enumerable=!0),e}},nt=function(t){for(var n,e=T(O(t)),r=[],i=0;e.length>i;)o(q,n=e[i++])||n==I||n==f||r.push(n);return r},et=function(t){for(var n,e=t===V,r=T(e?B:O(t)),i=[],u=0;r.length>u;)!o(q,n=r[u++])||e&&!o(V,n)||i.push(q[n]);return i};W||(F=function(){if(this instanceof F)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),n=function(e){this===V&&n.call(B,e),o(this,I)&&o(this[I],t)&&(this[I][t]=!1),z(this,t,S(1,e))};return i&&J&&z(V,t,{configurable:!0,set:n}),K(t)},c(F[N],"toString",function(){return this._k}),E.f=tt,P.f=Y,e(47).f=w.f=nt,e(40).f=Z,L.f=et,i&&!e(36)&&c(V,"propertyIsEnumerable",Z,!0),v.f=function(t){return K(d(t))}),u(u.G+u.W+u.F*!W,{Symbol:F});for(var rt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ot=0;rt.length>ot;)d(rt[ot++]);for(var it=M(d.store),ut=0;it.length>ut;)y(it[ut++]);u(u.S+u.F*!W,"Symbol",{"for":function(t){return o(G,t+="")?G[t]:G[t]=F(t)},keyFor:function(t){if(!U(t))throw TypeError(t+" is not a symbol!");for(var n in G)if(G[n]===t)return n},useSetter:function(){J=!0},useSimple:function(){J=!1}}),u(u.S+u.F*!W,"Object",{create:X,defineProperty:Y,defineProperties:Q,getOwnPropertyDescriptor:tt,getOwnPropertyNames:nt,getOwnPropertySymbols:et});var ct=s(function(){L.f(1)});u(u.S+u.F*ct,"Object",{getOwnPropertySymbols:function(t){return L.f(g(t))}}),D&&u(u.S+u.F*(!W||s(function(){var t=F();return"[null]"!=A([t])||"{}"!=A({a:t})||"{}"!=A(Object(t))})),"JSON",{stringify:function(t){for(var n,e,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(e=n=r[1],(x(n)||void 0!==t)&&!U(t))return b(n)||(n=function(t,n){if("function"==typeof e&&(n=e.call(this,t,n)),!U(n))return n}),r[1]=n,A.apply(D,r)}}),F[N][R]||e(12)(F[N],R,F[N].valueOf),l(F,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,n,e){var r=e(37)("meta"),o=e(15),i=e(22),u=e(13).f,c=0,f=Object.isExtensible||function(){return!0},s=!e(18)(function(){return f(Object.preventExtensions({}))}),a=function(t){u(t,r,{value:{i:"O"+ ++c,w:{}}})},l=function(t,n){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!f(t))return"F";if(!n)return"E";a(t)}return t[r].i},p=function(t,n){if(!i(t,r)){if(!f(t))return!0;if(!n)return!1;a(t)}return t[r].w},d=function(t){return s&&v.NEED&&f(t)&&!i(t,r)&&a(t),t},v=t.exports={KEY:r,NEED:!1,fastKey:l,getWeak:p,onFreeze:d}},function(t,n,e){var r=e(8),o=e(9),i=e(36),u=e(71),c=e(13).f;t.exports=function(t){var n=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in n||c(n,t,{value:u.f(t)})}},function(t,n,e){var r=e(24),o=e(39),i=e(40);t.exports=function(t){var n=r(t),e=o.f;if(e)for(var u,c=e(t),f=i.f,s=0;c.length>s;)f.call(t,u=c[s++])&&n.push(u);return n}},function(t,n,e){var r=e(28);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,n,e){var r=e(40),o=e(21),i=e(26),u=e(20),c=e(22),f=e(16),s=Object.getOwnPropertyDescriptor;n.f=e(17)?s:function(t,n){if(t=i(t),n=u(n,!0),f)try{return s(t,n)}catch(e){}if(c(t,n))return o(!r.f.call(t,n),t[n])}},function(t,n){},function(t,n,e){e(76)("asyncIterator")},function(t,n,e){e(76)("observable")},function(t,n){t.exports={render:function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("span",{attrs:{id:"json-to-csv-"+t._uid},on:{click:t.handleClick}},[t._t("default",[e("button",[t._v("\n Download\n ")])])],2)},staticRenderFns:[]}}])});

@@ -1,1 +0,1 @@

window.VueJsonToCsv=function(t){function n(r){if(e[r])return e[r].exports;var o=e[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}var e={};return n.m=t,n.c=e,n.p="",n(0)}([function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}var o=e(1),i=r(o);t.exports={install:function(t,n){t.component("vue-json-to-csv",i["default"])}}},function(t,n,e){var r=e(2)(e(3),e(84),null,null);t.exports=r.exports},function(t,n){t.exports=function(t,n,e,r){var o,i=t=t||{},u=typeof t["default"];"object"!==u&&"function"!==u||(o=t,i=t["default"]);var c="function"==typeof i?i.options:i;if(n&&(c.render=n.render,c.staticRenderFns=n.staticRenderFns),e&&(c._scopeId=e),r){var f=Object.create(c.computed||null);Object.keys(r).forEach(function(t){var n=r[t];f[t]=function(){return n}}),c.computed=f}return{esModule:o,exports:i,options:c}}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(n,"__esModule",{value:!0});var o=e(4),i=r(o),u=e(43),c=r(u),f=e(49),s=r(f),a=e(52),l=r(a);n["default"]={mixins:[l["default"]],props:{jsonData:{type:Array,required:!0},csvTitle:{type:[String,Number],"default":"csv",required:!1},showLabels:{type:Boolean,"default":!0,required:!1},labels:{type:Object,required:!1},separator:{type:String,"default":",",required:!1}},data:function(){return{csvLabels:null,csvData:null}},destroyed:function(){this.csvLabels=null,this.csvData=null},methods:{handleClick:function(){var t=(0,s["default"])(this._events).indexOf("error")>-1,n=(0,s["default"])(this._events).indexOf("success")>-1;if(!this.jsonData.length)return void this.handleError("Error: Data are empty",t);if(this.labels&&!(0,s["default"])(this.labels).length)return void this.handleError("Error: Labels are empty",t);var e=(0,c["default"])((0,i["default"])({},this.jsonData[0])),r=this.labels||this.$_createCsvLabelsConf(e);if(this.csvLabels=this.showLabels?this.$_createCsvLabels(r,this.separator):"",this.csvData=this.$_createCsvContent(this.jsonData,r,this.separator),"error"===this.csvLabels||"error"===this.csvData)return void this.handleError("Error: An error occured while parsing the data.",t);var o=this.csvLabels+this.csvData,u=this.$_downloadCsv("csv-"+this._uid,o,this.csvTitle);u||this.handleError("An error has occured",t),u&&n&&this.$emit("success",!0)},handleError:function(t,n){throw t}}}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}n.__esModule=!0;var o=e(5),i=r(o);n["default"]=i["default"]||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t}},function(t,n,e){t.exports={"default":e(6),__esModule:!0}},function(t,n,e){e(7),t.exports=e(10).Object.assign},function(t,n,e){var r=e(8);r(r.S+r.F,"Object",{assign:e(24)})},function(t,n,e){var r=e(9),o=e(10),i=e(11),u=e(13),c=e(23),f="prototype",s=function(t,n,e){var a,l,p,d=t&s.F,v=t&s.G,h=t&s.S,y=t&s.P,b=t&s.B,m=t&s.W,g=v?o:o[n]||(o[n]={}),x=g[f],_=v?r:h?r[n]:(r[n]||{})[f];v&&(e=n);for(a in e)l=!d&&_&&void 0!==_[a],l&&c(g,a)||(p=l?_[a]:e[a],g[a]=v&&"function"!=typeof _[a]?e[a]:b&&l?i(p,r):m&&_[a]==p?function(t){var n=function(n,e,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,e)}return new t(n,e,r)}return t.apply(this,arguments)};return n[f]=t[f],n}(p):y&&"function"==typeof p?i(Function.call,p):p,y&&((g.virtual||(g.virtual={}))[a]=p,t&s.R&&x&&!x[a]&&u(x,a,p)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(t,n){var e=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=e)},function(t,n,e){var r=e(12);t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,o){return t.call(n,e,r,o)}}return function(){return t.apply(n,arguments)}}},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n,e){var r=e(14),o=e(22);t.exports=e(18)?function(t,n,e){return r.f(t,n,o(1,e))}:function(t,n,e){return t[n]=e,t}},function(t,n,e){var r=e(15),o=e(17),i=e(21),u=Object.defineProperty;n.f=e(18)?Object.defineProperty:function(t,n,e){if(r(t),n=i(n,!0),r(e),o)try{return u(t,n,e)}catch(c){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},function(t,n,e){var r=e(16);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,e){t.exports=!e(18)&&!e(19)(function(){return 7!=Object.defineProperty(e(20)("div"),"a",{get:function(){return 7}}).a})},function(t,n,e){t.exports=!e(19)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n){t.exports=function(t){try{return!!t()}catch(n){return!0}}},function(t,n,e){var r=e(16),o=e(9).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,n,e){var r=e(16);t.exports=function(t,n){if(!r(t))return t;var e,o;if(n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;if("function"==typeof(e=t.valueOf)&&!r(o=e.call(t)))return o;if(!n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},function(t,n,e){"use strict";var r=e(25),o=e(40),i=e(41),u=e(42),c=e(28),f=Object.assign;t.exports=!f||e(19)(function(){var t={},n={},e=Symbol(),r="abcdefghijklmnopqrst";return t[e]=7,r.split("").forEach(function(t){n[t]=t}),7!=f({},t)[e]||Object.keys(f({},n)).join("")!=r})?function(t,n){for(var e=u(t),f=arguments.length,s=1,a=o.f,l=i.f;f>s;)for(var p,d=c(arguments[s++]),v=a?r(d).concat(a(d)):r(d),h=v.length,y=0;h>y;)l.call(d,p=v[y++])&&(e[p]=d[p]);return e}:f},function(t,n,e){var r=e(26),o=e(39);t.exports=Object.keys||function(t){return r(t,o)}},function(t,n,e){var r=e(23),o=e(27),i=e(31)(!1),u=e(35)("IE_PROTO");t.exports=function(t,n){var e,c=o(t),f=0,s=[];for(e in c)e!=u&&r(c,e)&&s.push(e);for(;n.length>f;)r(c,e=n[f++])&&(~i(s,e)||s.push(e));return s}},function(t,n,e){var r=e(28),o=e(30);t.exports=function(t){return r(o(t))}},function(t,n,e){var r=e(29);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,n,e){var r=e(27),o=e(32),i=e(34);t.exports=function(t){return function(n,e,u){var c,f=r(n),s=o(f.length),a=i(u,s);if(t&&e!=e){for(;s>a;)if(c=f[a++],c!=c)return!0}else for(;s>a;a++)if((t||a in f)&&f[a]===e)return t||a||0;return!t&&-1}}},function(t,n,e){var r=e(33),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},function(t,n,e){var r=e(33),o=Math.max,i=Math.min;t.exports=function(t,n){return t=r(t),t<0?o(t+n,0):i(t,n)}},function(t,n,e){var r=e(36)("keys"),o=e(38);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,n,e){var r=e(10),o=e(9),i="__core-js_shared__",u=o[i]||(o[i]={});(t.exports=function(t,n){return u[t]||(u[t]=void 0!==n?n:{})})("versions",[]).push({version:r.version,mode:e(37)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(t,n){t.exports=!0},function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n){n.f={}.propertyIsEnumerable},function(t,n,e){var r=e(30);t.exports=function(t){return Object(r(t))}},function(t,n,e){t.exports={"default":e(44),__esModule:!0}},function(t,n,e){e(45);var r=e(10).Object;t.exports=function(t){return r.getOwnPropertyNames(t)}},function(t,n,e){e(46)("getOwnPropertyNames",function(){return e(47).f})},function(t,n,e){var r=e(8),o=e(10),i=e(19);t.exports=function(t,n){var e=(o.Object||{})[t]||Object[t],u={};u[t]=n(e),r(r.S+r.F*i(function(){e(1)}),"Object",u)}},function(t,n,e){var r=e(27),o=e(48).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(t){try{return o(t)}catch(n){return u.slice()}};t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?c(t):o(r(t))}},function(t,n,e){var r=e(26),o=e(39).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,n,e){t.exports={"default":e(50),__esModule:!0}},function(t,n,e){e(51),t.exports=e(10).Object.keys},function(t,n,e){var r=e(42),o=e(25);e(46)("keys",function(){return function(t){return o(r(t))}})},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}var o=e(53),i=r(o),u=e(49),c=r(u);t.exports={methods:{$_createCsvLabelsConf:function(t){var n={};return t.map(function(t,e){n[t]={title:t}}),n},$_createCsvLabels:function(t,n){var e="",r="";try{(0,c["default"])(t).map(function(r,o){e+='"'+t[r].title+'"'+n}),e=e.slice(0,-1),r+=e+"\r\n"}catch(o){r="error"}finally{return r}},$_createCsvContent:function(t,n,e){var r="",o="",u="";try{t.map(function(t,f){r="",(0,c["default"])(n).map(function(n,o){u=(0,i["default"])(t[n]),r+="number"===u||"float"===u?t[n]+e:'"'+t[n]+'"'+e}),r=r.slice(0,-1),o+=r+"\r\n"})}catch(f){o="error"}finally{return o}},$_downloadCsv:function(t,n,e){try{var r="data:text/csv;charset=utf-8,\ufeff"+encodeURI(n),o=document.createElement("a");return o.id="csv-"+t,o.href=r,document.body.appendChild(o),document.getElementById(o.id).style.visibility="hidden",document.getElementById(o.id).download=e+".csv",document.body.appendChild(o),document.getElementById(o.id).click(),setTimeout(function(){document.body.removeChild(o)}),!0}catch(i){return!1}}}}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}n.__esModule=!0;var o=e(54),i=r(o),u=e(73),c=r(u),f="function"==typeof c["default"]&&"symbol"==typeof i["default"]?function(t){return typeof t}:function(t){return t&&"function"==typeof c["default"]&&t.constructor===c["default"]&&t!==c["default"].prototype?"symbol":typeof t};n["default"]="function"==typeof c["default"]&&"symbol"===f(i["default"])?function(t){return"undefined"==typeof t?"undefined":f(t)}:function(t){return t&&"function"==typeof c["default"]&&t.constructor===c["default"]&&t!==c["default"].prototype?"symbol":"undefined"==typeof t?"undefined":f(t)}},function(t,n,e){t.exports={"default":e(55),__esModule:!0}},function(t,n,e){e(56),e(68),t.exports=e(72).f("iterator")},function(t,n,e){"use strict";var r=e(57)(!0);e(58)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,n=this._t,e=this._i;return e>=n.length?{value:void 0,done:!0}:(t=r(n,e),this._i+=t.length,{value:t,done:!1})})},function(t,n,e){var r=e(33),o=e(30);t.exports=function(t){return function(n,e){var i,u,c=String(o(n)),f=r(e),s=c.length;return f<0||f>=s?t?"":void 0:(i=c.charCodeAt(f),i<55296||i>56319||f+1===s||(u=c.charCodeAt(f+1))<56320||u>57343?t?c.charAt(f):i:t?c.slice(f,f+2):(i-55296<<10)+(u-56320)+65536)}}},function(t,n,e){"use strict";var r=e(37),o=e(8),i=e(59),u=e(13),c=e(60),f=e(61),s=e(65),a=e(67),l=e(66)("iterator"),p=!([].keys&&"next"in[].keys()),d="@@iterator",v="keys",h="values",y=function(){return this};t.exports=function(t,n,e,b,m,g,x){f(e,n,b);var _,O,S,w=function(t){if(!p&&t in P)return P[t];switch(t){case v:return function(){return new e(this,t)};case h:return function(){return new e(this,t)}}return function(){return new e(this,t)}},j=n+" Iterator",E=m==h,L=!1,P=t.prototype,M=P[l]||P[d]||m&&P[m],C=M||w(m),T=m?E?w("entries"):C:void 0,k="Array"==n?P.entries||M:M;if(k&&(S=a(k.call(new t)),S!==Object.prototype&&S.next&&(s(S,j,!0),r||"function"==typeof S[l]||u(S,l,y))),E&&M&&M.name!==h&&(L=!0,C=function(){return M.call(this)}),r&&!x||!p&&!L&&P[l]||u(P,l,C),c[n]=C,c[j]=y,m)if(_={values:E?C:w(h),keys:g?C:w(v),entries:T},x)for(O in _)O in P||i(P,O,_[O]);else o(o.P+o.F*(p||L),n,_);return _}},function(t,n,e){t.exports=e(13)},function(t,n){t.exports={}},function(t,n,e){"use strict";var r=e(62),o=e(22),i=e(65),u={};e(13)(u,e(66)("iterator"),function(){return this}),t.exports=function(t,n,e){t.prototype=r(u,{next:o(1,e)}),i(t,n+" Iterator")}},function(t,n,e){var r=e(15),o=e(63),i=e(39),u=e(35)("IE_PROTO"),c=function(){},f="prototype",s=function(){var t,n=e(20)("iframe"),r=i.length,o="<",u=">";for(n.style.display="none",e(64).appendChild(n),n.src="javascript:",t=n.contentWindow.document,t.open(),t.write(o+"script"+u+"document.F=Object"+o+"/script"+u),t.close(),s=t.F;r--;)delete s[f][i[r]];return s()};t.exports=Object.create||function(t,n){var e;return null!==t?(c[f]=r(t),e=new c,c[f]=null,e[u]=t):e=s(),void 0===n?e:o(e,n)}},function(t,n,e){var r=e(14),o=e(15),i=e(25);t.exports=e(18)?Object.defineProperties:function(t,n){o(t);for(var e,u=i(n),c=u.length,f=0;c>f;)r.f(t,e=u[f++],n[e]);return t}},function(t,n,e){var r=e(9).document;t.exports=r&&r.documentElement},function(t,n,e){var r=e(14).f,o=e(23),i=e(66)("toStringTag");t.exports=function(t,n,e){t&&!o(t=e?t:t.prototype,i)&&r(t,i,{configurable:!0,value:n})}},function(t,n,e){var r=e(36)("wks"),o=e(38),i=e(9).Symbol,u="function"==typeof i,c=t.exports=function(t){return r[t]||(r[t]=u&&i[t]||(u?i:o)("Symbol."+t))};c.store=r},function(t,n,e){var r=e(23),o=e(42),i=e(35)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,n,e){e(69);for(var r=e(9),o=e(13),i=e(60),u=e(66)("toStringTag"),c="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),f=0;f<c.length;f++){var s=c[f],a=r[s],l=a&&a.prototype;l&&!l[u]&&o(l,u,s),i[s]=i.Array}},function(t,n,e){"use strict";var r=e(70),o=e(71),i=e(60),u=e(27);t.exports=e(58)(Array,"Array",function(t,n){this._t=u(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,e=this._i++;return!t||e>=t.length?(this._t=void 0,o(1)):"keys"==n?o(0,e):"values"==n?o(0,t[e]):o(0,[e,t[e]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,n){t.exports=function(){}},function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n,e){n.f=e(66)},function(t,n,e){t.exports={"default":e(74),__esModule:!0}},function(t,n,e){e(75),e(81),e(82),e(83),t.exports=e(10).Symbol},function(t,n,e){"use strict";var r=e(9),o=e(23),i=e(18),u=e(8),c=e(59),f=e(76).KEY,s=e(19),a=e(36),l=e(65),p=e(38),d=e(66),v=e(72),h=e(77),y=e(78),b=e(79),m=e(15),g=e(16),x=e(27),_=e(21),O=e(22),S=e(62),w=e(47),j=e(80),E=e(14),L=e(25),P=j.f,M=E.f,C=w.f,T=r.Symbol,k=r.JSON,D=k&&k.stringify,F="prototype",A=d("_hidden"),N=d("toPrimitive"),I={}.propertyIsEnumerable,R=a("symbol-registry"),$=a("symbols"),G=a("op-symbols"),V=Object[F],q="function"==typeof T,B=r.QObject,W=!B||!B[F]||!B[F].findChild,J=i&&s(function(){return 7!=S(M({},"a",{get:function(){return M(this,"a",{value:7}).a}})).a})?function(t,n,e){var r=P(V,n);r&&delete V[n],M(t,n,e),r&&t!==V&&M(V,n,r)}:M,H=function(t){var n=$[t]=S(T[F]);return n._k=t,n},z=q&&"symbol"==typeof T.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof T},K=function(t,n,e){return t===V&&K(G,n,e),m(t),n=_(n,!0),m(e),o($,n)?(e.enumerable?(o(t,A)&&t[A][n]&&(t[A][n]=!1),e=S(e,{enumerable:O(0,!1)})):(o(t,A)||M(t,A,O(1,{})),t[A][n]=!0),J(t,n,e)):M(t,n,e)},U=function(t,n){m(t);for(var e,r=y(n=x(n)),o=0,i=r.length;i>o;)K(t,e=r[o++],n[e]);return t},Y=function(t,n){return void 0===n?S(t):U(S(t),n)},Q=function(t){var n=I.call(this,t=_(t,!0));return!(this===V&&o($,t)&&!o(G,t))&&(!(n||!o(this,t)||!o($,t)||o(this,A)&&this[A][t])||n)},X=function(t,n){if(t=x(t),n=_(n,!0),t!==V||!o($,n)||o(G,n)){var e=P(t,n);return!e||!o($,n)||o(t,A)&&t[A][n]||(e.enumerable=!0),e}},Z=function(t){for(var n,e=C(x(t)),r=[],i=0;e.length>i;)o($,n=e[i++])||n==A||n==f||r.push(n);return r},tt=function(t){for(var n,e=t===V,r=C(e?G:x(t)),i=[],u=0;r.length>u;)!o($,n=r[u++])||e&&!o(V,n)||i.push($[n]);return i};q||(T=function(){if(this instanceof T)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),n=function(e){this===V&&n.call(G,e),o(this,A)&&o(this[A],t)&&(this[A][t]=!1),J(this,t,O(1,e))};return i&&W&&J(V,t,{configurable:!0,set:n}),H(t)},c(T[F],"toString",function(){return this._k}),j.f=X,E.f=K,e(48).f=w.f=Z,e(41).f=Q,e(40).f=tt,i&&!e(37)&&c(V,"propertyIsEnumerable",Q,!0),v.f=function(t){return H(d(t))}),u(u.G+u.W+u.F*!q,{Symbol:T});for(var nt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;nt.length>et;)d(nt[et++]);for(var rt=L(d.store),ot=0;rt.length>ot;)h(rt[ot++]);u(u.S+u.F*!q,"Symbol",{"for":function(t){return o(R,t+="")?R[t]:R[t]=T(t)},keyFor:function(t){if(!z(t))throw TypeError(t+" is not a symbol!");for(var n in R)if(R[n]===t)return n},useSetter:function(){W=!0},useSimple:function(){W=!1}}),u(u.S+u.F*!q,"Object",{create:Y,defineProperty:K,defineProperties:U,getOwnPropertyDescriptor:X,getOwnPropertyNames:Z,getOwnPropertySymbols:tt}),k&&u(u.S+u.F*(!q||s(function(){var t=T();return"[null]"!=D([t])||"{}"!=D({a:t})||"{}"!=D(Object(t))})),"JSON",{stringify:function(t){for(var n,e,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(e=n=r[1],(g(n)||void 0!==t)&&!z(t))return b(n)||(n=function(t,n){if("function"==typeof e&&(n=e.call(this,t,n)),!z(n))return n}),r[1]=n,D.apply(k,r)}}),T[F][N]||e(13)(T[F],N,T[F].valueOf),l(T,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,n,e){var r=e(38)("meta"),o=e(16),i=e(23),u=e(14).f,c=0,f=Object.isExtensible||function(){return!0},s=!e(19)(function(){return f(Object.preventExtensions({}))}),a=function(t){u(t,r,{value:{i:"O"+ ++c,w:{}}})},l=function(t,n){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!f(t))return"F";if(!n)return"E";a(t)}return t[r].i},p=function(t,n){if(!i(t,r)){if(!f(t))return!0;if(!n)return!1;a(t)}return t[r].w},d=function(t){return s&&v.NEED&&f(t)&&!i(t,r)&&a(t),t},v=t.exports={KEY:r,NEED:!1,fastKey:l,getWeak:p,onFreeze:d}},function(t,n,e){var r=e(9),o=e(10),i=e(37),u=e(72),c=e(14).f;t.exports=function(t){var n=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in n||c(n,t,{value:u.f(t)})}},function(t,n,e){var r=e(25),o=e(40),i=e(41);t.exports=function(t){var n=r(t),e=o.f;if(e)for(var u,c=e(t),f=i.f,s=0;c.length>s;)f.call(t,u=c[s++])&&n.push(u);return n}},function(t,n,e){var r=e(29);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,n,e){var r=e(41),o=e(22),i=e(27),u=e(21),c=e(23),f=e(17),s=Object.getOwnPropertyDescriptor;n.f=e(18)?s:function(t,n){if(t=i(t),n=u(n,!0),f)try{return s(t,n)}catch(e){}if(c(t,n))return o(!r.f.call(t,n),t[n])}},function(t,n){},function(t,n,e){e(77)("asyncIterator")},function(t,n,e){e(77)("observable")},function(t,n){t.exports={render:function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("span",{attrs:{id:"json-to-csv-"+t._uid},on:{click:t.handleClick}},[t._t("default",[e("button",[t._v("\n Download\n ")])])],2)},staticRenderFns:[]}}]);
window.VueJsonToCsv=function(t){function n(r){if(e[r])return e[r].exports;var o=e[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}var e={};return n.m=t,n.c=e,n.p="",n(0)}([function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}var o=e(1),i=r(o);t.exports={install:function(t,n){t.component("vue-json-to-csv",i["default"])}}},function(t,n,e){var r=e(2)(e(3),e(84),null,null);t.exports=r.exports},function(t,n){t.exports=function(t,n,e,r){var o,i=t=t||{},u=typeof t["default"];"object"!==u&&"function"!==u||(o=t,i=t["default"]);var c="function"==typeof i?i.options:i;if(n&&(c.render=n.render,c.staticRenderFns=n.staticRenderFns),e&&(c._scopeId=e),r){var f=Object.create(c.computed||null);Object.keys(r).forEach(function(t){var n=r[t];f[t]=function(){return n}}),c.computed=f}return{esModule:o,exports:i,options:c}}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(n,"__esModule",{value:!0});var o=e(4),i=r(o),u=e(43),c=r(u),f=e(49),s=r(f),a=e(52),l=r(a);n["default"]={mixins:[l["default"]],props:{jsonData:{type:Array,required:!0},csvTitle:{type:[String,Number],"default":"csv",required:!1},showLabels:{type:Boolean,"default":!0,required:!1},labels:{type:Object,required:!1},separator:{type:String,"default":",",required:!1}},data:function(){return{csvLabels:null,csvData:null}},destroyed:function(){this.csvLabels=null,this.csvData=null},methods:{handleClick:function(){var t=(0,s["default"])(this._events).indexOf("error")>-1,n=(0,s["default"])(this._events).indexOf("success")>-1;if(!this.jsonData.length)return void this.handleError("Error: Data are empty",t);if(this.labels&&!(0,s["default"])(this.labels).length)return void this.handleError("Error: Labels are empty",t);var e=(0,c["default"])((0,i["default"])({},this.jsonData[0])),r=this.labels||this.$_createCsvLabelsConf(e);if(this.csvLabels=this.showLabels?this.$_createCsvLabels(r,this.separator):"",this.csvData=this.$_createCsvContent(this.jsonData,r,this.separator),"error"===this.csvLabels||"error"===this.csvData)return void this.handleError("Error: An error occured while parsing the data.",t);var o=this.csvLabels+this.csvData,u=this.$_downloadCsv("csv-"+this._uid,o,this.csvTitle);u||this.handleError("An error has occured",t),u&&n&&this.$emit("success",!0)},handleError:function(t,n){throw t}}}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}n.__esModule=!0;var o=e(5),i=r(o);n["default"]=i["default"]||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t}},function(t,n,e){t.exports={"default":e(6),__esModule:!0}},function(t,n,e){e(7),t.exports=e(10).Object.assign},function(t,n,e){var r=e(8);r(r.S+r.F,"Object",{assign:e(24)})},function(t,n,e){var r=e(9),o=e(10),i=e(11),u=e(13),c=e(23),f="prototype",s=function(t,n,e){var a,l,p,d=t&s.F,v=t&s.G,h=t&s.S,y=t&s.P,b=t&s.B,m=t&s.W,g=v?o:o[n]||(o[n]={}),x=g[f],O=v?r:h?r[n]:(r[n]||{})[f];v&&(e=n);for(a in e)l=!d&&O&&void 0!==O[a],l&&c(g,a)||(p=l?O[a]:e[a],g[a]=v&&"function"!=typeof O[a]?e[a]:b&&l?i(p,r):m&&O[a]==p?function(t){var n=function(n,e,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,e)}return new t(n,e,r)}return t.apply(this,arguments)};return n[f]=t[f],n}(p):y&&"function"==typeof p?i(Function.call,p):p,y&&((g.virtual||(g.virtual={}))[a]=p,t&s.R&&x&&!x[a]&&u(x,a,p)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(t,n){var e=t.exports={version:"2.6.9"};"number"==typeof __e&&(__e=e)},function(t,n,e){var r=e(12);t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,o){return t.call(n,e,r,o)}}return function(){return t.apply(n,arguments)}}},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n,e){var r=e(14),o=e(22);t.exports=e(18)?function(t,n,e){return r.f(t,n,o(1,e))}:function(t,n,e){return t[n]=e,t}},function(t,n,e){var r=e(15),o=e(17),i=e(21),u=Object.defineProperty;n.f=e(18)?Object.defineProperty:function(t,n,e){if(r(t),n=i(n,!0),r(e),o)try{return u(t,n,e)}catch(c){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},function(t,n,e){var r=e(16);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,e){t.exports=!e(18)&&!e(19)(function(){return 7!=Object.defineProperty(e(20)("div"),"a",{get:function(){return 7}}).a})},function(t,n,e){t.exports=!e(19)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n){t.exports=function(t){try{return!!t()}catch(n){return!0}}},function(t,n,e){var r=e(16),o=e(9).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,n,e){var r=e(16);t.exports=function(t,n){if(!r(t))return t;var e,o;if(n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;if("function"==typeof(e=t.valueOf)&&!r(o=e.call(t)))return o;if(!n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},function(t,n,e){"use strict";var r=e(18),o=e(25),i=e(40),u=e(41),c=e(42),f=e(28),s=Object.assign;t.exports=!s||e(19)(function(){var t={},n={},e=Symbol(),r="abcdefghijklmnopqrst";return t[e]=7,r.split("").forEach(function(t){n[t]=t}),7!=s({},t)[e]||Object.keys(s({},n)).join("")!=r})?function(t,n){for(var e=c(t),s=arguments.length,a=1,l=i.f,p=u.f;s>a;)for(var d,v=f(arguments[a++]),h=l?o(v).concat(l(v)):o(v),y=h.length,b=0;y>b;)d=h[b++],r&&!p.call(v,d)||(e[d]=v[d]);return e}:s},function(t,n,e){var r=e(26),o=e(39);t.exports=Object.keys||function(t){return r(t,o)}},function(t,n,e){var r=e(23),o=e(27),i=e(31)(!1),u=e(35)("IE_PROTO");t.exports=function(t,n){var e,c=o(t),f=0,s=[];for(e in c)e!=u&&r(c,e)&&s.push(e);for(;n.length>f;)r(c,e=n[f++])&&(~i(s,e)||s.push(e));return s}},function(t,n,e){var r=e(28),o=e(30);t.exports=function(t){return r(o(t))}},function(t,n,e){var r=e(29);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,n,e){var r=e(27),o=e(32),i=e(34);t.exports=function(t){return function(n,e,u){var c,f=r(n),s=o(f.length),a=i(u,s);if(t&&e!=e){for(;s>a;)if(c=f[a++],c!=c)return!0}else for(;s>a;a++)if((t||a in f)&&f[a]===e)return t||a||0;return!t&&-1}}},function(t,n,e){var r=e(33),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},function(t,n,e){var r=e(33),o=Math.max,i=Math.min;t.exports=function(t,n){return t=r(t),t<0?o(t+n,0):i(t,n)}},function(t,n,e){var r=e(36)("keys"),o=e(38);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,n,e){var r=e(10),o=e(9),i="__core-js_shared__",u=o[i]||(o[i]={});(t.exports=function(t,n){return u[t]||(u[t]=void 0!==n?n:{})})("versions",[]).push({version:r.version,mode:e(37)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,n){t.exports=!0},function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n){n.f={}.propertyIsEnumerable},function(t,n,e){var r=e(30);t.exports=function(t){return Object(r(t))}},function(t,n,e){t.exports={"default":e(44),__esModule:!0}},function(t,n,e){e(45);var r=e(10).Object;t.exports=function(t){return r.getOwnPropertyNames(t)}},function(t,n,e){e(46)("getOwnPropertyNames",function(){return e(47).f})},function(t,n,e){var r=e(8),o=e(10),i=e(19);t.exports=function(t,n){var e=(o.Object||{})[t]||Object[t],u={};u[t]=n(e),r(r.S+r.F*i(function(){e(1)}),"Object",u)}},function(t,n,e){var r=e(27),o=e(48).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(t){try{return o(t)}catch(n){return u.slice()}};t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?c(t):o(r(t))}},function(t,n,e){var r=e(26),o=e(39).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,n,e){t.exports={"default":e(50),__esModule:!0}},function(t,n,e){e(51),t.exports=e(10).Object.keys},function(t,n,e){var r=e(42),o=e(25);e(46)("keys",function(){return function(t){return o(r(t))}})},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}var o=e(53),i=r(o),u=e(49),c=r(u);t.exports={methods:{$_createCsvLabelsConf:function(t){var n={};return t.map(function(t,e){n[t]={title:t}}),n},$_createCsvLabels:function(t,n){var e="",r="";try{(0,c["default"])(t).map(function(r,o){e+='"'+t[r].title+'"'+n}),e=e.slice(0,-1),r+=e+"\r\n"}catch(o){r="error"}finally{return r}},$_createCsvContent:function(t,n,e){var r="",o="",u="";try{t.map(function(t,f){r="",(0,c["default"])(n).map(function(n,o){u=(0,i["default"])(t[n]),r+="number"===u||"float"===u?t[n]+e:'"'+t[n]+'"'+e}),r=r.slice(0,-1),o+=r+"\r\n"})}catch(f){o="error"}finally{return o}},$_downloadCsv:function(t,n,e){try{var r="data:text/csv;charset=utf-8,\ufeff"+encodeURIComponent(n),o=document.createElement("a");return o.id="csv-"+t,o.href=r,document.body.appendChild(o),document.getElementById(o.id).style.visibility="hidden",document.getElementById(o.id).download=e+".csv",document.body.appendChild(o),document.getElementById(o.id).click(),setTimeout(function(){document.body.removeChild(o)}),!0}catch(i){return!1}}}}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}n.__esModule=!0;var o=e(54),i=r(o),u=e(73),c=r(u),f="function"==typeof c["default"]&&"symbol"==typeof i["default"]?function(t){return typeof t}:function(t){return t&&"function"==typeof c["default"]&&t.constructor===c["default"]&&t!==c["default"].prototype?"symbol":typeof t};n["default"]="function"==typeof c["default"]&&"symbol"===f(i["default"])?function(t){return"undefined"==typeof t?"undefined":f(t)}:function(t){return t&&"function"==typeof c["default"]&&t.constructor===c["default"]&&t!==c["default"].prototype?"symbol":"undefined"==typeof t?"undefined":f(t)}},function(t,n,e){t.exports={"default":e(55),__esModule:!0}},function(t,n,e){e(56),e(68),t.exports=e(72).f("iterator")},function(t,n,e){"use strict";var r=e(57)(!0);e(58)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,n=this._t,e=this._i;return e>=n.length?{value:void 0,done:!0}:(t=r(n,e),this._i+=t.length,{value:t,done:!1})})},function(t,n,e){var r=e(33),o=e(30);t.exports=function(t){return function(n,e){var i,u,c=String(o(n)),f=r(e),s=c.length;return f<0||f>=s?t?"":void 0:(i=c.charCodeAt(f),i<55296||i>56319||f+1===s||(u=c.charCodeAt(f+1))<56320||u>57343?t?c.charAt(f):i:t?c.slice(f,f+2):(i-55296<<10)+(u-56320)+65536)}}},function(t,n,e){"use strict";var r=e(37),o=e(8),i=e(59),u=e(13),c=e(60),f=e(61),s=e(65),a=e(67),l=e(66)("iterator"),p=!([].keys&&"next"in[].keys()),d="@@iterator",v="keys",h="values",y=function(){return this};t.exports=function(t,n,e,b,m,g,x){f(e,n,b);var O,_,S,w=function(t){if(!p&&t in P)return P[t];switch(t){case v:return function(){return new e(this,t)};case h:return function(){return new e(this,t)}}return function(){return new e(this,t)}},j=n+" Iterator",E=m==h,L=!1,P=t.prototype,M=P[l]||P[d]||m&&P[m],C=M||w(m),T=m?E?w("entries"):C:void 0,k="Array"==n?P.entries||M:M;if(k&&(S=a(k.call(new t)),S!==Object.prototype&&S.next&&(s(S,j,!0),r||"function"==typeof S[l]||u(S,l,y))),E&&M&&M.name!==h&&(L=!0,C=function(){return M.call(this)}),r&&!x||!p&&!L&&P[l]||u(P,l,C),c[n]=C,c[j]=y,m)if(O={values:E?C:w(h),keys:g?C:w(v),entries:T},x)for(_ in O)_ in P||i(P,_,O[_]);else o(o.P+o.F*(p||L),n,O);return O}},function(t,n,e){t.exports=e(13)},function(t,n){t.exports={}},function(t,n,e){"use strict";var r=e(62),o=e(22),i=e(65),u={};e(13)(u,e(66)("iterator"),function(){return this}),t.exports=function(t,n,e){t.prototype=r(u,{next:o(1,e)}),i(t,n+" Iterator")}},function(t,n,e){var r=e(15),o=e(63),i=e(39),u=e(35)("IE_PROTO"),c=function(){},f="prototype",s=function(){var t,n=e(20)("iframe"),r=i.length,o="<",u=">";for(n.style.display="none",e(64).appendChild(n),n.src="javascript:",t=n.contentWindow.document,t.open(),t.write(o+"script"+u+"document.F=Object"+o+"/script"+u),t.close(),s=t.F;r--;)delete s[f][i[r]];return s()};t.exports=Object.create||function(t,n){var e;return null!==t?(c[f]=r(t),e=new c,c[f]=null,e[u]=t):e=s(),void 0===n?e:o(e,n)}},function(t,n,e){var r=e(14),o=e(15),i=e(25);t.exports=e(18)?Object.defineProperties:function(t,n){o(t);for(var e,u=i(n),c=u.length,f=0;c>f;)r.f(t,e=u[f++],n[e]);return t}},function(t,n,e){var r=e(9).document;t.exports=r&&r.documentElement},function(t,n,e){var r=e(14).f,o=e(23),i=e(66)("toStringTag");t.exports=function(t,n,e){t&&!o(t=e?t:t.prototype,i)&&r(t,i,{configurable:!0,value:n})}},function(t,n,e){var r=e(36)("wks"),o=e(38),i=e(9).Symbol,u="function"==typeof i,c=t.exports=function(t){return r[t]||(r[t]=u&&i[t]||(u?i:o)("Symbol."+t))};c.store=r},function(t,n,e){var r=e(23),o=e(42),i=e(35)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,n,e){e(69);for(var r=e(9),o=e(13),i=e(60),u=e(66)("toStringTag"),c="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),f=0;f<c.length;f++){var s=c[f],a=r[s],l=a&&a.prototype;l&&!l[u]&&o(l,u,s),i[s]=i.Array}},function(t,n,e){"use strict";var r=e(70),o=e(71),i=e(60),u=e(27);t.exports=e(58)(Array,"Array",function(t,n){this._t=u(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,e=this._i++;return!t||e>=t.length?(this._t=void 0,o(1)):"keys"==n?o(0,e):"values"==n?o(0,t[e]):o(0,[e,t[e]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,n){t.exports=function(){}},function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n,e){n.f=e(66)},function(t,n,e){t.exports={"default":e(74),__esModule:!0}},function(t,n,e){e(75),e(81),e(82),e(83),t.exports=e(10).Symbol},function(t,n,e){"use strict";var r=e(9),o=e(23),i=e(18),u=e(8),c=e(59),f=e(76).KEY,s=e(19),a=e(36),l=e(65),p=e(38),d=e(66),v=e(72),h=e(77),y=e(78),b=e(79),m=e(15),g=e(16),x=e(42),O=e(27),_=e(21),S=e(22),w=e(62),j=e(47),E=e(80),L=e(40),P=e(14),M=e(25),C=E.f,T=P.f,k=j.f,F=r.Symbol,D=r.JSON,A=D&&D.stringify,N="prototype",I=d("_hidden"),R=d("toPrimitive"),$={}.propertyIsEnumerable,G=a("symbol-registry"),V=a("symbols"),q=a("op-symbols"),B=Object[N],W="function"==typeof F&&!!L.f,J=r.QObject,H=!J||!J[N]||!J[N].findChild,z=i&&s(function(){return 7!=w(T({},"a",{get:function(){return T(this,"a",{value:7}).a}})).a})?function(t,n,e){var r=C(B,n);r&&delete B[n],T(t,n,e),r&&t!==B&&T(B,n,r)}:T,K=function(t){var n=V[t]=w(F[N]);return n._k=t,n},U=W&&"symbol"==typeof F.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof F},Y=function(t,n,e){return t===B&&Y(q,n,e),m(t),n=_(n,!0),m(e),o(V,n)?(e.enumerable?(o(t,I)&&t[I][n]&&(t[I][n]=!1),e=w(e,{enumerable:S(0,!1)})):(o(t,I)||T(t,I,S(1,{})),t[I][n]=!0),z(t,n,e)):T(t,n,e)},Q=function(t,n){m(t);for(var e,r=y(n=O(n)),o=0,i=r.length;i>o;)Y(t,e=r[o++],n[e]);return t},X=function(t,n){return void 0===n?w(t):Q(w(t),n)},Z=function(t){var n=$.call(this,t=_(t,!0));return!(this===B&&o(V,t)&&!o(q,t))&&(!(n||!o(this,t)||!o(V,t)||o(this,I)&&this[I][t])||n)},tt=function(t,n){if(t=O(t),n=_(n,!0),t!==B||!o(V,n)||o(q,n)){var e=C(t,n);return!e||!o(V,n)||o(t,I)&&t[I][n]||(e.enumerable=!0),e}},nt=function(t){for(var n,e=k(O(t)),r=[],i=0;e.length>i;)o(V,n=e[i++])||n==I||n==f||r.push(n);return r},et=function(t){for(var n,e=t===B,r=k(e?q:O(t)),i=[],u=0;r.length>u;)!o(V,n=r[u++])||e&&!o(B,n)||i.push(V[n]);return i};W||(F=function(){if(this instanceof F)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),n=function(e){this===B&&n.call(q,e),o(this,I)&&o(this[I],t)&&(this[I][t]=!1),z(this,t,S(1,e))};return i&&H&&z(B,t,{configurable:!0,set:n}),K(t)},c(F[N],"toString",function(){return this._k}),E.f=tt,P.f=Y,e(48).f=j.f=nt,e(41).f=Z,L.f=et,i&&!e(37)&&c(B,"propertyIsEnumerable",Z,!0),v.f=function(t){return K(d(t))}),u(u.G+u.W+u.F*!W,{Symbol:F});for(var rt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ot=0;rt.length>ot;)d(rt[ot++]);for(var it=M(d.store),ut=0;it.length>ut;)h(it[ut++]);u(u.S+u.F*!W,"Symbol",{"for":function(t){return o(G,t+="")?G[t]:G[t]=F(t)},keyFor:function(t){if(!U(t))throw TypeError(t+" is not a symbol!");for(var n in G)if(G[n]===t)return n},useSetter:function(){H=!0},useSimple:function(){H=!1}}),u(u.S+u.F*!W,"Object",{create:X,defineProperty:Y,defineProperties:Q,getOwnPropertyDescriptor:tt,getOwnPropertyNames:nt,getOwnPropertySymbols:et});var ct=s(function(){L.f(1)});u(u.S+u.F*ct,"Object",{getOwnPropertySymbols:function(t){return L.f(x(t))}}),D&&u(u.S+u.F*(!W||s(function(){var t=F();return"[null]"!=A([t])||"{}"!=A({a:t})||"{}"!=A(Object(t))})),"JSON",{stringify:function(t){for(var n,e,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(e=n=r[1],(g(n)||void 0!==t)&&!U(t))return b(n)||(n=function(t,n){if("function"==typeof e&&(n=e.call(this,t,n)),!U(n))return n}),r[1]=n,A.apply(D,r)}}),F[N][R]||e(13)(F[N],R,F[N].valueOf),l(F,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,n,e){var r=e(38)("meta"),o=e(16),i=e(23),u=e(14).f,c=0,f=Object.isExtensible||function(){return!0},s=!e(19)(function(){return f(Object.preventExtensions({}))}),a=function(t){u(t,r,{value:{i:"O"+ ++c,w:{}}})},l=function(t,n){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!f(t))return"F";if(!n)return"E";a(t)}return t[r].i},p=function(t,n){if(!i(t,r)){if(!f(t))return!0;if(!n)return!1;a(t)}return t[r].w},d=function(t){return s&&v.NEED&&f(t)&&!i(t,r)&&a(t),t},v=t.exports={KEY:r,NEED:!1,fastKey:l,getWeak:p,onFreeze:d}},function(t,n,e){var r=e(9),o=e(10),i=e(37),u=e(72),c=e(14).f;t.exports=function(t){var n=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in n||c(n,t,{value:u.f(t)})}},function(t,n,e){var r=e(25),o=e(40),i=e(41);t.exports=function(t){var n=r(t),e=o.f;if(e)for(var u,c=e(t),f=i.f,s=0;c.length>s;)f.call(t,u=c[s++])&&n.push(u);return n}},function(t,n,e){var r=e(29);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,n,e){var r=e(41),o=e(22),i=e(27),u=e(21),c=e(23),f=e(17),s=Object.getOwnPropertyDescriptor;n.f=e(18)?s:function(t,n){if(t=i(t),n=u(n,!0),f)try{return s(t,n)}catch(e){}if(c(t,n))return o(!r.f.call(t,n),t[n])}},function(t,n){},function(t,n,e){e(77)("asyncIterator")},function(t,n,e){e(77)("observable")},function(t,n){t.exports={render:function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("span",{attrs:{id:"json-to-csv-"+t._uid},on:{click:t.handleClick}},[t._t("default",[e("button",[t._v("\n Download\n ")])])],2)},staticRenderFns:[]}}]);
{
"name": "vue-json-to-csv",
"version": "1.1.7",
"version": "1.1.8",
"description": "A Vue.js 2 component to transform and download a json in csv format",

@@ -5,0 +5,0 @@ "main": "dist/vue-json-to-csv.js",

@@ -60,3 +60,3 @@ module.exports = {

try {
let uri = 'data:text/csv;charset=utf-8,' + '\uFEFF' + encodeURI(csv)
let uri = 'data:text/csv;charset=utf-8,' + '\uFEFF' + encodeURIComponent(csv)

@@ -63,0 +63,0 @@ let link = document.createElement('a')

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc